|
|
|
@ -196,7 +196,7 @@ export default {
|
|
|
|
|
value: '',
|
|
|
|
|
// 温度记录详情
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
recordLoading: true,
|
|
|
|
|
recordLoading: false,
|
|
|
|
|
record_client_id: undefined,
|
|
|
|
|
recordData: [],
|
|
|
|
|
record_page: 1,
|
|
|
|
@ -206,17 +206,17 @@ export default {
|
|
|
|
|
record_day: undefined,
|
|
|
|
|
start_time: undefined,
|
|
|
|
|
end_time: undefined,
|
|
|
|
|
loadingLine: true
|
|
|
|
|
loadingLine: false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
if (this.$store.getters.currentOptions.length > 0) {
|
|
|
|
|
this.client_id = this.$store.getters.currentOptions[0].client_id
|
|
|
|
|
this.daily_client_id = this.client_id
|
|
|
|
|
}
|
|
|
|
|
this.getMonitoringData()
|
|
|
|
|
this.getDailyData()
|
|
|
|
|
this.initCharts()
|
|
|
|
|
// this.initCharts()
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy() {
|
|
|
|
|
window.removeEventListener('resize', () => {
|
|
|
|
@ -295,20 +295,22 @@ export default {
|
|
|
|
|
get_monitoring_info(stringify(data)).then(
|
|
|
|
|
res => {
|
|
|
|
|
this.linechartData = res.data
|
|
|
|
|
this.lineCharts(t)
|
|
|
|
|
}
|
|
|
|
|
).finally(() => {
|
|
|
|
|
this.loadingLine = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
initCharts() {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.lineCharts()
|
|
|
|
|
})
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
// this.lineCharts()
|
|
|
|
|
// })
|
|
|
|
|
window.addEventListener('resize', () => {
|
|
|
|
|
this.myChart2.resize()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
lineCharts(t) {
|
|
|
|
|
console.log('0101222222222', t)
|
|
|
|
|
if (t) {
|
|
|
|
|
this.myChart2.clear()
|
|
|
|
|
} else {
|
|
|
|
|