Commit 0b3bb279 authored by caicaicai's avatar caicaicai

修改

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