change - 更改错误,单机树形结构节点传参,页面不需要seniorID,而是monitorId

master
zch 1 month ago
parent 9eadb55c8a
commit 75d54bd308

@ -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]
} }
// monitorCodesensorId
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 = {

Loading…
Cancel
Save