|
|
|
@ -186,10 +186,6 @@ export default {
|
|
|
|
|
this.queryParams.params['beginCollectTime'] = this.daterangeCollectTime[0]
|
|
|
|
|
this.queryParams.params['endCollectTime'] = this.daterangeCollectTime[1]
|
|
|
|
|
}
|
|
|
|
|
// 将monitorCode改为sensorId
|
|
|
|
|
if (this.queryParams.sensorId !== null) {
|
|
|
|
|
this.queryParams.params['sensorId'] = this.queryParams.sensorId;
|
|
|
|
|
}
|
|
|
|
|
this.getChart()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -252,17 +248,13 @@ export default {
|
|
|
|
|
|
|
|
|
|
/** 节点单击事件 */
|
|
|
|
|
handleNodeClick(data) {
|
|
|
|
|
/* this.queryParams.monitorCode = data.code*/
|
|
|
|
|
this.queryParams.sensorId = data.code
|
|
|
|
|
this.queryParams.monitorCode = data.code
|
|
|
|
|
this.selectMonitorName = data.label
|
|
|
|
|
this.handleQuery()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** 曲线 */
|
|
|
|
|
async getChart() {
|
|
|
|
|
if (this.queryParams.sensorId == null) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let query = JSON.parse(JSON.stringify(this.queryParams))
|
|
|
|
|
const {data} = await pointSteamInstantList(query)
|
|
|
|
|
let option1 = {
|
|
|
|
|