Commit 0b3bb279 authored by caicaicai's avatar caicaicai

修改

parent 602398b1
...@@ -327,7 +327,8 @@ export default { ...@@ -327,7 +327,8 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
loadData(){ loadData(text){
if(text == true){
this.whetherShow = true; this.whetherShow = true;
this.dayCurrentTimeFn(); this.dayCurrentTimeFn();
this.monthCurrentTimeFn(); this.monthCurrentTimeFn();
...@@ -422,8 +423,11 @@ export default { ...@@ -422,8 +423,11 @@ export default {
}) })
//卡车动态 //卡车动态
}) })
}else{
this.whetherShow = false;
}
}, },
//车辆运行状况 //车辆运行状况
carWorkingStateEcharts(){ carWorkingStateEcharts(){
......
...@@ -144,13 +144,13 @@ export default { ...@@ -144,13 +144,13 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
loadData(){ loadData(text){
if(text == true){
this.whetherShow = true; this.whetherShow = true;
this.dayCurrentTimeFn(); this.dayCurrentTimeFn();
this.monthCurrentTimeFn(); this.monthCurrentTimeFn();
this.yearCurrentTimeFn(); this.yearCurrentTimeFn();
this.$nextTick(()=>{ this.$nextTick(()=>{
//采取产量统计图表 //采取产量统计图表
this.echarts1Fn(); this.echarts1Fn();
...@@ -271,7 +271,9 @@ export default { ...@@ -271,7 +271,9 @@ export default {
}) })
}) })
}else{
this.whetherShow = false;
}
}, },
//采取产量统计 //采取产量统计
echarts1Fn(){ echarts1Fn(){
......
...@@ -434,7 +434,8 @@ export default { ...@@ -434,7 +434,8 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
loadData(){ loadData(text){
if(text == true){
this.whetherShow = true; this.whetherShow = true;
this.dayCurrentTimeFn(); this.dayCurrentTimeFn();
this.monthCurrentTimeFn(); this.monthCurrentTimeFn();
...@@ -588,6 +589,10 @@ export default { ...@@ -588,6 +589,10 @@ export default {
}) })
}) })
}else{
this.whetherShow = false;
}
}, },
//卡车切换时间 //卡车切换时间
truckChangeTime(text){ truckChangeTime(text){
......
...@@ -149,7 +149,8 @@ export default { ...@@ -149,7 +149,8 @@ export default {
mounted() { }, mounted() { },
methods: { methods: {
//获取总数据 //获取总数据
loadData(){ loadData(text){
if(text == true){
this.whetherShow = true; this.whetherShow = true;
this.selectCarFleet = ''; this.selectCarFleet = '';
this.selectCarRadioArray = []; this.selectCarRadioArray = [];
...@@ -186,9 +187,12 @@ export default { ...@@ -186,9 +187,12 @@ export default {
this.dispatchDetailsList = res.data.content; this.dispatchDetailsList = res.data.content;
} }
}) })
// //车辆区域分布Echarts
this.carsAreaDistributionEcharts(); this.carsAreaDistributionEcharts();
}) })
}else{
this.whetherShow = false;
}
}, },
//获取车辆信息 //获取车辆信息
loadData2() { loadData2() {
......
...@@ -54,6 +54,13 @@ export default { ...@@ -54,6 +54,13 @@ export default {
currentTime:'', currentTime:'',
//选择模块 //选择模块
selectModule:'', selectModule:'',
//各模块展示传值
isShow:{
dataScreening:false,
carManagement:false,
intelligentSchedul:false,
dataAnalysis:false,
},
//标题菜单数据 //标题菜单数据
topSmallTitleLeftData:[], topSmallTitleLeftData:[],
topSmallTitleRightData:[], topSmallTitleRightData:[],
...@@ -61,6 +68,7 @@ export default { ...@@ -61,6 +68,7 @@ export default {
carName:'4001', carName:'4001',
//司机用户名 //司机用户名
driverUserName:'lisan', driverUserName:'lisan',
} }
}, },
mounted() { mounted() {
...@@ -93,34 +101,110 @@ export default { ...@@ -93,34 +101,110 @@ export default {
changeOver(item){ changeOver(item){
this.selectModule = item.componentName; this.selectModule = item.componentName;
if(item.componentName == 'dataScreening'){ if(item.componentName == 'dataScreening'){
this.$refs.dataScreeningMethod.loadData(); if(this.isShow.dataScreening == false){
this.$refs.dataScreeningMethod.loadData(true);
this.isShow.dataScreening = true;
this.isShow.carManagement = false;
this.isShow.intelligentSchedul = false;
this.isShow.dataAnalysis = false;
}else{
this.$refs.dataScreeningMethod.loadData(false);
this.isShow.dataScreening = false;
}
this.$refs.carManagementMethod.loadData(false);
this.$refs.intelligentSchedulMethod.loadData(false);
this.$refs.dataAnalysisMethod.loadData(false);
} }
if(item.componentName == 'carManagement'){ if(item.componentName == 'carManagement'){
this.$refs.carManagementMethod.loadData(); if(this.isShow.carManagement == false){
this.$refs.carManagementMethod.loadData(true);
this.isShow.carManagement = true;
this.isShow.dataScreening = false;
this.isShow.intelligentSchedul = false;
this.isShow.dataAnalysis = false;
}else{
this.$refs.carManagementMethod.loadData(false);
this.isShow.carManagement = false;
}
this.$refs.dataScreeningMethod.loadData(false);
this.$refs.intelligentSchedulMethod.loadData(false);
this.$refs.dataAnalysisMethod.loadData(false);
} }
if(item.componentName == 'intelligentSchedul'){ if(item.componentName == 'intelligentSchedul'){
this.$refs.intelligentSchedulMethod.loadData(); if(this.isShow.intelligentSchedul == false){
this.$refs.intelligentSchedulMethod.loadData(true);
this.isShow.intelligentSchedul = true;
this.isShow.dataScreening = false;
this.isShow.carManagement = false;
this.isShow.dataAnalysis = false;
}else{
this.$refs.intelligentSchedulMethod.loadData(false);
this.isShow.intelligentSchedul = false;
}
this.$refs.dataScreeningMethod.loadData(false);
this.$refs.carManagementMethod.loadData(false);
this.$refs.dataAnalysisMethod.loadData(false);
} }
if(item.componentName == 'dataAnalysis'){ if(item.componentName == 'dataAnalysis'){
this.$refs.dataAnalysisMethod.loadData(); if(this.isShow.dataAnalysis == false){
this.$refs.dataAnalysisMethod.loadData(true);
this.isShow.dataAnalysis = true;
this.isShow.dataScreening = false;
this.isShow.carManagement = false;
this.isShow.intelligentSchedul = false;
}else{
this.$refs.dataAnalysisMethod.loadData(false);
this.isShow.dataAnalysis = false;
}
this.$refs.dataScreeningMethod.loadData(false);
this.$refs.carManagementMethod.loadData(false);
this.$refs.intelligentSchedulMethod.loadData(false);
} }
if(item.componentName == 'backstage'){ if(item.componentName == 'backstage'){
this.isShow.dataScreening = false;
this.isShow.carManagement = false;
this.isShow.intelligentSchedul = false;
this.isShow.dataAnalysis = false;
this.$refs.dataScreeningMethod.loadData(false);
this.$refs.carManagementMethod.loadData(false);
this.$refs.intelligentSchedulMethod.loadData(false);
this.$refs.dataAnalysisMethod.loadData(false);
this.$nextTick(()=>{
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
path: "/dashboard", path: "/dashboard",
}); });
window.open(routeUrl.href, '_blank'); window.open(routeUrl.href, '_blank');
})
} }
if(item.componentName == 'toVideoSurveillance'){ if(item.componentName == 'toVideoSurveillance'){
this.isShow.dataScreening = false;
this.isShow.carManagement = false;
this.isShow.intelligentSchedul = false;
this.isShow.dataAnalysis = false;
this.$refs.dataScreeningMethod.loadData(false);
this.$refs.carManagementMethod.loadData(false);
this.$refs.intelligentSchedulMethod.loadData(false);
this.$refs.dataAnalysisMethod.loadData(false);
this.$nextTick(()=>{
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
path: "/monitoringManagement/mineVideo", path: "/monitoringManagement/mineVideo",
}); });
window.open(routeUrl.href, '_blank'); window.open(routeUrl.href, '_blank');
})
} }
}, },
//车辆信息弹框 //车辆信息弹框
showSpecificInforFn(){ showSpecificInforFn(){
this.selectModule = 'carSpecificInfor'; this.selectModule = 'carSpecificInfor';
this.$refs.carSpecificInforMethod.loadData(this.carName,this.driverUserName); this.$refs.carSpecificInforMethod.loadData(this.carName,this.driverUserName);
this.isShow.dataScreening = false;
this.isShow.carManagement = false;
this.isShow.intelligentSchedul = false;
this.isShow.dataAnalysis = false;
this.$refs.dataScreeningMethod.loadData(false);
this.$refs.carManagementMethod.loadData(false);
this.$refs.intelligentSchedulMethod.loadData(false);
this.$refs.dataAnalysisMethod.loadData(false);
}, },
//获取当前时间 //获取当前时间
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