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