From f305ff3484a4146ca2bddd82af995a26b6b38417 Mon Sep 17 00:00:00 2001 From: zch Date: Mon, 30 Sep 2024 15:29:11 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E8=92=B8=E6=B1=BD=E6=9B=B2=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ems/record/recordSteamInstant.js | 8 + .../ems/base/baseMonitorInfoSteam/index.vue | 7 +- .../ems/record/recordSteamInstant/index.vue | 2 +- .../ems/report/currentSteamCurve/index.vue | 731 ++++++++++++++++++ 4 files changed, 744 insertions(+), 4 deletions(-) create mode 100644 src/views/ems/report/currentSteamCurve/index.vue diff --git a/src/api/ems/record/recordSteamInstant.js b/src/api/ems/record/recordSteamInstant.js index 07150c8..ccb2d17 100644 --- a/src/api/ems/record/recordSteamInstant.js +++ b/src/api/ems/record/recordSteamInstant.js @@ -42,3 +42,11 @@ export function delRecordSteamInstant(objId) { method: 'delete' }) } +// 查询蒸汽实时数据(曲线) +export function steamInstantList(query) { + return request({ + url: '/ems/record/recordSteamInstant/steamInstantList', + method: 'get', + params: query + }) +} diff --git a/src/views/ems/base/baseMonitorInfoSteam/index.vue b/src/views/ems/base/baseMonitorInfoSteam/index.vue index 9aaca8d..4613e76 100644 --- a/src/views/ems/base/baseMonitorInfoSteam/index.vue +++ b/src/views/ems/base/baseMonitorInfoSteam/index.vue @@ -252,7 +252,7 @@ export default { monitorCode: null, monitorName: null, monitorAddr: null, - monitorType: 3, + monitorType: 4, monitorStatus: null, collectDeviceId: null, ancestors: null, @@ -354,7 +354,7 @@ export default { monitorCode: null, monitorName: null, monitorAddr: null, - monitorType: 3, + monitorType: 4, monitorStatus: null, collectDeviceId: null, ancestors: null, @@ -422,13 +422,14 @@ export default { this.$refs["form"].validate(valid => { if (valid) { if (this.form.objId != null) { +/* this.form.monitorType = 4;*/ updateBaseMonitorInfo(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); }); } else { - // this.form.monitorType = 4; +/* this.form.monitorType = 4;*/ addBaseMonitorInfo(this.form).then(response => { this.$modal.msgSuccess("新增成功"); this.open = false; diff --git a/src/views/ems/record/recordSteamInstant/index.vue b/src/views/ems/record/recordSteamInstant/index.vue index 59aaca7..16d219a 100644 --- a/src/views/ems/record/recordSteamInstant/index.vue +++ b/src/views/ems/record/recordSteamInstant/index.vue @@ -352,7 +352,7 @@ export default { }, /** 查询计量设备信息下拉树结构 新增用*/ getTreeMonitorInfo() { - listBaseMonitorInfo({ monitorType: 2 }).then(response => { + listBaseMonitorInfo({ monitorType: 4 }).then(response => { this.baseMonitorInfoOptions = [] const data = { objId: 0, monitorName: '顶级节点', children: [] } data.children = this.handleTree(response.data, 'objId', 'parentId') diff --git a/src/views/ems/report/currentSteamCurve/index.vue b/src/views/ems/report/currentSteamCurve/index.vue new file mode 100644 index 0000000..a2a204e --- /dev/null +++ b/src/views/ems/report/currentSteamCurve/index.vue @@ -0,0 +1,731 @@ + + + +