From 92d2d9f9c15aa7ffac27debc41712c05b6f8c712 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com>
Date: Thu, 9 Apr 2026 16:24:21 +0800
Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=81=94=E8=AE=BE=E5=A4=87=E6=8B=89?=
=?UTF-8?q?=E5=8F=96=E8=AE=BE=E5=A4=87=E5=90=8C=E6=AD=A5=E6=8E=A8=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/biz/nuBaseInfo/devicesBind/DbList.vue | 7 ++++---
src/views/biz/nuBaseInfo/devicesBind/SbList.vue | 7 ++++---
src/views/biz/nuBaseInfo/devicesBind/SxtList.vue | 13 +++++++------
.../biz/nuBaseInfo/devicesBind/WsdjList.vue | 7 ++++---
src/views/iot/manager/DeviceManagerList.vue | 16 ++++++++--------
.../iot/manager/components/DeviceGhModal.vue | 3 ++-
6 files changed, 29 insertions(+), 24 deletions(-)
diff --git a/src/views/biz/nuBaseInfo/devicesBind/DbList.vue b/src/views/biz/nuBaseInfo/devicesBind/DbList.vue
index 7b41050..c8ffda6 100644
--- a/src/views/biz/nuBaseInfo/devicesBind/DbList.vue
+++ b/src/views/biz/nuBaseInfo/devicesBind/DbList.vue
@@ -27,14 +27,15 @@
用电量
-
+
-
+
+
电表
diff --git a/src/views/biz/nuBaseInfo/devicesBind/SbList.vue b/src/views/biz/nuBaseInfo/devicesBind/SbList.vue
index 92ae7bb..0485beb 100644
--- a/src/views/biz/nuBaseInfo/devicesBind/SbList.vue
+++ b/src/views/biz/nuBaseInfo/devicesBind/SbList.vue
@@ -27,14 +27,15 @@
用水量
-
+
-
+
+
水表
diff --git a/src/views/biz/nuBaseInfo/devicesBind/SxtList.vue b/src/views/biz/nuBaseInfo/devicesBind/SxtList.vue
index 921e0cc..cb4a117 100644
--- a/src/views/biz/nuBaseInfo/devicesBind/SxtList.vue
+++ b/src/views/biz/nuBaseInfo/devicesBind/SxtList.vue
@@ -23,14 +23,15 @@
-
+
-
- 正常
- 损坏
-
- 维修状态
+
+
+
+
+
+
diff --git a/src/views/biz/nuBaseInfo/devicesBind/WsdjList.vue b/src/views/biz/nuBaseInfo/devicesBind/WsdjList.vue
index 4cf0980..d16fe79 100644
--- a/src/views/biz/nuBaseInfo/devicesBind/WsdjList.vue
+++ b/src/views/biz/nuBaseInfo/devicesBind/WsdjList.vue
@@ -37,14 +37,15 @@
-
+
-
+
+
温湿度计
diff --git a/src/views/iot/manager/DeviceManagerList.vue b/src/views/iot/manager/DeviceManagerList.vue
index 52ef193..5ef33b2 100644
--- a/src/views/iot/manager/DeviceManagerList.vue
+++ b/src/views/iot/manager/DeviceManagerList.vue
@@ -152,15 +152,13 @@
return [
{
label: '绑定区域',
- onClick: handleDeviceBroken.bind(null, record),
- // ifShow: record.onlineStatus!='待集成' && record.dimension == '区域维度' && record.nuId == null
- ifShow: record.dimension == '区域维度' && record.nuId == null
+ onClick: handleDeviceGh.bind(null, record,"绑定"),
+ ifShow: record.onlineStatus!='待集成' && record.dimension == '区域维度' && record.nuId == null
},
{
label: '更换',
- onClick: handleDeviceGh.bind(null, record),
- // ifShow: (record.onlineStatus!='待集成' && record.dimension == '区域维度') && record.nuId != null
- ifShow: (record.dimension == '区域维度') && record.nuId != null
+ onClick: handleDeviceGh.bind(null, record,"更换"),
+ ifShow: (record.onlineStatus!='待集成' && record.dimension == '区域维度') && record.nuId != null
},
{
label: '损坏',
@@ -181,7 +179,8 @@
/**
* 更换
*/
- function handleDeviceGh(record: Recordable) {
+ function handleDeviceGh(record: Recordable,optType) {
+ record.optType = optType;
ghDrawer.value.disableSubmit = false;
ghDrawer.value.edit(record);
}
@@ -189,7 +188,8 @@
/**
* 设备清单
*/
- function handleDevicePreview(record: Recordable) {
+ function handleDevicePreview(record: Recordable,optType) {
+ record.optType = optType;
previewDrawer.value.disableSubmit = true;
previewDrawer.value.edit(record);
}
diff --git a/src/views/iot/manager/components/DeviceGhModal.vue b/src/views/iot/manager/components/DeviceGhModal.vue
index e6b027a..fb8e035 100644
--- a/src/views/iot/manager/components/DeviceGhModal.vue
+++ b/src/views/iot/manager/components/DeviceGhModal.vue
@@ -39,7 +39,8 @@ function add(record) {
* @param record
*/
function edit(record) {
- title.value = disableSubmit.value ? '详情' : '更换';
+ title.value = record.optType;
+ // title.value = disableSubmit.value ? '详情' : '更换';
visible.value = true;
nextTick(() => {
registerForm.value.edit(record);