From d7378bf0afd7532f2b2e8244eda4acb179a04cf0 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sun, 25 Aug 2024 23:00:39 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E5=A4=9A=E5=BA=8F=E5=88=97=E5=8F=B7?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tunnelManage.js | 26 ++- src/views/device-manage/index.vue | 259 +++++++++++++++--------------- src/views/edit/edit.vue | 154 ++++++++++++++---- src/views/site/index.vue | 16 +- src/views/tunnel-manage/index.vue | 145 ++++++++++++----- 5 files changed, 385 insertions(+), 215 deletions(-) diff --git a/src/api/tunnelManage.js b/src/api/tunnelManage.js index a6d2c59..c9e0472 100644 --- a/src/api/tunnelManage.js +++ b/src/api/tunnelManage.js @@ -56,13 +56,31 @@ export const editEquipment = (data) => { data }) } -export const getEquipmentSerialNumberOptions = (tunnelId,equipmentId) => { +export const getWindPressureSerialNumberOptions = (tunnelId) => { return request({ - url: '/tunnel/tunnel/serialnumber/options', + url: '/tunnel/equipment/serialnumber/wind/pressure/options', method: 'get', params:{ - tunnelId:tunnelId, - equipmentId:equipmentId + tunnelId:tunnelId + } + }) +} +export const getOtherSensorSerialNumberOptions = (tunnelId) => { + return request({ + url: '/tunnel/equipment/serialnumber/options', + method: 'get', + params:{ + tunnelId:tunnelId + } + }) +} +//获取隧道中正在使用的序列号 +export const getSerialNumberOnUse = (tunnelId) => { + return request({ + url: '/tunnel/equipment/serialnumber/on/use', + method: 'get', + params:{ + tunnelId:tunnelId } }) } diff --git a/src/views/device-manage/index.vue b/src/views/device-manage/index.vue index b5348e0..0f3d835 100644 --- a/src/views/device-manage/index.vue +++ b/src/views/device-manage/index.vue @@ -36,7 +36,7 @@ 风机设备管理
采集频率 - + @@ -45,62 +45,63 @@
- - - - - - - - - - - - - - + + + +