|
|
@@ -270,6 +270,7 @@ export default {
|
|
|
this.currWorm = worm
|
|
|
this.currKind = kind
|
|
|
this.chartLineInit(atData,ahData,worm[0],this.allPest[kind[0]])
|
|
|
+ this.chartsShow = true;
|
|
|
this.viewSwitch2 = this.allPest[kind[0]]
|
|
|
var drawPieChartData = [];
|
|
|
// 饼状图
|
|
|
@@ -287,6 +288,7 @@ export default {
|
|
|
}
|
|
|
if (ss == worm.length - 1) {
|
|
|
this.chartPieInit(drawPieChartData)
|
|
|
+ this.chartsShowA = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -294,6 +296,8 @@ export default {
|
|
|
} else {
|
|
|
this.chartLineInit([],[],[],'')
|
|
|
this.chartPieInit([])
|
|
|
+ this.chartsShow = false;
|
|
|
+ this.chartsShowA = false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -302,6 +306,8 @@ export default {
|
|
|
if (data.dat1.length == 0) {
|
|
|
this.chartLineInit([],[],[],'')
|
|
|
this.chartPieInit([])
|
|
|
+ this.chartsShow = false;
|
|
|
+ this.chartsShowA = false;
|
|
|
}
|
|
|
},
|
|
|
// 返回时间戳
|
|
|
@@ -563,10 +569,9 @@ export default {
|
|
|
}
|
|
|
.equipStatus {
|
|
|
display: flex;
|
|
|
- justify-content: center;
|
|
|
margin: 10px 0;
|
|
|
.equipIcon {
|
|
|
- margin-right: 14%;
|
|
|
+ margin: 0 10%;
|
|
|
}
|
|
|
.equipParams {
|
|
|
min-width: 80px;
|