|
@@ -145,7 +145,9 @@
|
|
this.maxTemparture = response[0]['temperatureMax'];
|
|
this.maxTemparture = response[0]['temperatureMax'];
|
|
this.detail.totalDays = response[0]['totalDays'];
|
|
this.detail.totalDays = response[0]['totalDays'];
|
|
this.detail.undetectedCount = response[0]['undetectedCount'];
|
|
this.detail.undetectedCount = response[0]['undetectedCount'];
|
|
- this.getStatus()
|
|
|
|
|
|
+ //this.getStatus()
|
|
|
|
+ //只根据绿码来判断状态
|
|
|
|
+ this.getGreenCode()
|
|
this.echarts();
|
|
this.echarts();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -155,6 +157,14 @@
|
|
mui.toast(error);
|
|
mui.toast(error);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //根据绿码显示颜色
|
|
|
|
+ getGreenCode() {
|
|
|
|
+ var colors = this.$refs.greenCode.getCode();
|
|
|
|
+ this.statusColor = colors.foreground;
|
|
|
|
+ this.statusTitleColor = colors.foreground;
|
|
|
|
+ this.statusName = colors.title;
|
|
|
|
+ console.log(colors);
|
|
|
|
+ },
|
|
//计算显示颜色
|
|
//计算显示颜色
|
|
getStatus() {
|
|
getStatus() {
|
|
if (this.chartsList.length) {
|
|
if (this.chartsList.length) {
|