|
|
@ -28,7 +28,11 @@
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="line" />
|
|
|
|
<div
|
|
|
|
|
|
|
|
id="line"
|
|
|
|
|
|
|
|
v-loading="loadingLine"
|
|
|
|
|
|
|
|
element-loading-text="拼命加载中"
|
|
|
|
|
|
|
|
/>
|
|
|
|
<div />
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="line-charts">
|
|
|
|
<div class="line-charts">
|
|
|
@ -154,12 +158,12 @@ export default {
|
|
|
|
headerStyle: { 'background': '#E6E6E6' },
|
|
|
|
headerStyle: { 'background': '#E6E6E6' },
|
|
|
|
// 每日温度记录
|
|
|
|
// 每日温度记录
|
|
|
|
tableData: [],
|
|
|
|
tableData: [],
|
|
|
|
loading: false,
|
|
|
|
loading: true,
|
|
|
|
daily_client_id: undefined,
|
|
|
|
daily_client_id: undefined,
|
|
|
|
value: '',
|
|
|
|
value: '',
|
|
|
|
// 温度记录详情
|
|
|
|
// 温度记录详情
|
|
|
|
dialogVisible: false,
|
|
|
|
dialogVisible: false,
|
|
|
|
recordLoading: false,
|
|
|
|
recordLoading: true,
|
|
|
|
record_client_id: undefined,
|
|
|
|
record_client_id: undefined,
|
|
|
|
recordData: [],
|
|
|
|
recordData: [],
|
|
|
|
record_page: 1,
|
|
|
|
record_page: 1,
|
|
|
@ -168,7 +172,8 @@ export default {
|
|
|
|
record_value: '',
|
|
|
|
record_value: '',
|
|
|
|
record_day: undefined,
|
|
|
|
record_day: undefined,
|
|
|
|
start_time: undefined,
|
|
|
|
start_time: undefined,
|
|
|
|
end_time: undefined
|
|
|
|
end_time: undefined,
|
|
|
|
|
|
|
|
loadingLine: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -179,8 +184,9 @@ export default {
|
|
|
|
this.daily_client_id = this.client_id
|
|
|
|
this.daily_client_id = this.client_id
|
|
|
|
this.getMonitoringData()
|
|
|
|
this.getMonitoringData()
|
|
|
|
this.getDailyData()
|
|
|
|
this.getDailyData()
|
|
|
|
|
|
|
|
this.initCharts()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
).then(() => this.initCharts())
|
|
|
|
)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeDestroy() {
|
|
|
|
beforeDestroy() {
|
|
|
|
window.removeEventListener('resize', () => {
|
|
|
|
window.removeEventListener('resize', () => {
|
|
|
@ -212,11 +218,12 @@ export default {
|
|
|
|
time_type: this.client_date,
|
|
|
|
time_type: this.client_date,
|
|
|
|
obj_type: this.radio1
|
|
|
|
obj_type: this.radio1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.loadingLine = true
|
|
|
|
get_monitoring_info(stringify(data)).then(
|
|
|
|
get_monitoring_info(stringify(data)).then(
|
|
|
|
res => {
|
|
|
|
res => {
|
|
|
|
this.linechartData = res.data
|
|
|
|
this.linechartData = res.data
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
).finally(() => { this.loadingLine = false })
|
|
|
|
},
|
|
|
|
},
|
|
|
|
initCharts() {
|
|
|
|
initCharts() {
|
|
|
|
this.lineCharts()
|
|
|
|
this.lineCharts()
|
|
|
|