Commit 8b6d0aeb authored by caicaicai's avatar caicaicai

修改

parent e7bc9174
...@@ -1685,14 +1685,14 @@ var HttpReq = function(){ ...@@ -1685,14 +1685,14 @@ var HttpReq = function(){
//大屏——标题菜单 //大屏——标题菜单
screenTitleMenuQuery: function(param){ screenTitleMenuQuery: function(param){
return request({ return request({
url: '/api/Screen', url: '/api/Title',
method: 'get', method: 'get',
params:param, params:param,
}) })
}, },
screenTitleMenuAdd: function(data){ screenTitleMenuAdd: function(data){
return request({ return request({
url: '/api/Screen', url: '/api/Title',
method: 'POST', method: 'POST',
data:data, data:data,
}).then((res) => { }).then((res) => {
...@@ -1701,14 +1701,14 @@ var HttpReq = function(){ ...@@ -1701,14 +1701,14 @@ var HttpReq = function(){
}, },
screenTitleMenuUpdate: function(data){ screenTitleMenuUpdate: function(data){
return request({ return request({
url: '/api/Screen', url: '/api/Title',
method: 'PUT', method: 'PUT',
data:data, data:data,
}) })
}, },
screenTitleMenuDel: function(data){ screenTitleMenuDel: function(data){
return request({ return request({
url: '/api/Screen', url: '/api/Title',
method: 'Delete', method: 'Delete',
data:data, data:data,
}) })
......
...@@ -13,7 +13,9 @@ export default { ...@@ -13,7 +13,9 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
loadData(){
console.log('车辆管理');
},
}, },
} }
</script> </script>
......
...@@ -13,7 +13,9 @@ export default { ...@@ -13,7 +13,9 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
loadData(){
console.log('数据分析');
},
}, },
} }
</script> </script>
......
<template> <template>
<div class="dataScrView"> <div class="dataScrView">
数据总览 <div>
</div>
<div>
</div>
<div>
</div>
</div> </div>
</template> </template>
...@@ -13,7 +21,9 @@ export default { ...@@ -13,7 +21,9 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
loadData(){
console.log('数据总览');
},
}, },
} }
</script> </script>
...@@ -23,6 +33,5 @@ export default { ...@@ -23,6 +33,5 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
background-color: aliceblue;
} }
</style> </style>
\ No newline at end of file
...@@ -13,7 +13,9 @@ export default { ...@@ -13,7 +13,9 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
loadData(){
console.log('智能调度');
},
}, },
} }
</script> </script>
......
...@@ -49,43 +49,12 @@ export default { ...@@ -49,43 +49,12 @@ export default {
//选择模块 //选择模块
selectModule:'', selectModule:'',
//标题菜单数据 //标题菜单数据
topSmallTitleLeftData:[ topSmallTitleLeftData:[],
{ topSmallTitleRightData:[],
title:'数据总览',
componentName:'dataScreening',
componentRef:'dataScreeningMethod',
status:1,
},
{
title:'车辆管理',
componentName:'carManagement',
componentRef:'carManagementMethod',
status:1,
},
{
title:'智能调度',
componentName:'intelligentSchedul',
componentRef:'intelligentSchedulMethod',
status:1,
}
],
topSmallTitleRightData:[
{
title:'数据分析',
componentName:'dataAnalysis',
componentRef:'dataAnalysisMethod',
status:1,
},
{
title:'后台管理',
componentName:'backstage',
componentRef:'backstageMethod',
status:1,
},
],
} }
}, },
mounted() { mounted() {
this.loadData();
this.setNowTimes(); this.setNowTimes();
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.setNowTimes(); this.setNowTimes();
...@@ -93,19 +62,41 @@ export default { ...@@ -93,19 +62,41 @@ export default {
}, },
methods: { methods: {
loadData() { loadData() {
let leftTemporaryData = [];
let rightTemporaryData = [];
this.$nextTick(()=>{ this.$nextTick(()=>{
HttpReq.truckDispatching.screenTitleMenuQuery({size:9999}).then((res) => { HttpReq.truckDispatching.screenTitleMenuQuery({size:9999,status:1}).then((res) => {
if(res.code == 200){; if(res.code == 200){;
console.log(res); let array1 = res.data.content;
for(let i = 0 ; i<3 ; i++){
leftTemporaryData.push(array1[i]);
}
for(let j = 3 ; j<res.data.totalElements ; j++){
rightTemporaryData.push(array1[j]);
}
this.topSmallTitleLeftData = leftTemporaryData;
this.topSmallTitleRightData = rightTemporaryData;
} }
}) })
}) })
}, },
changeOver(item){ changeOver(item){
this.selectModule = item.componentName; this.selectModule = item.componentName;
// if(item.componentName == 'dataScreening'){ if(item.componentName == 'dataScreening'){
// this.$refs.dataScreeningMethod.loadData(); this.$refs.dataScreeningMethod.loadData();
// } }
if(item.componentName == 'carManagement'){
this.$refs.carManagementMethod.loadData();
}
if(item.componentName == 'intelligentSchedul'){
this.$refs.intelligentSchedulMethod.loadData();
}
if(item.componentName == 'dataAnalysis'){
this.$refs.dataAnalysisMethod.loadData();
}
if(item.componentName == 'backstage'){
console.log('backstage');
}
}, },
//获取当前时间 //获取当前时间
setNowTimes () { setNowTimes () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment