From 9c1076e64cfb61492b0afff03cef608bd2a21dde Mon Sep 17 00:00:00 2001
From: yangjun <1173114630@qq.com>
Date: Thu, 14 Aug 2025 13:53:56 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=B4=E4=BF=AE=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/BaseWlsbListForm.vue | 96 +++++++++++++++----
1 file changed, 80 insertions(+), 16 deletions(-)
diff --git a/src/views/biz/nuBaseInfo/components/BaseWlsbListForm.vue b/src/views/biz/nuBaseInfo/components/BaseWlsbListForm.vue
index 58c8e5d..adcc8a1 100644
--- a/src/views/biz/nuBaseInfo/components/BaseWlsbListForm.vue
+++ b/src/views/biz/nuBaseInfo/components/BaseWlsbListForm.vue
@@ -15,7 +15,12 @@
- 摄像头
+ 摄像头
+ 报修状态:
+ 正常
+ 维修中
+ 报废
+
{{item.nuId_dictText?item.nuId_dictText:'未配置'}}
NUID: {{item.nuId?item.nuId:'未配置'}}
@@ -35,10 +40,14 @@

预览
-
+

画面配置
+
+ 
+ 报修
+
@@ -58,7 +67,12 @@
- 智能电表
+ 智能电表
+ 报修状态:
+ 正常
+ 维修中
+ 报废
+
{{item.nuId_dictText?item.nuId_dictText:'未配置'}}
NUID: {{item.nuId?item.nuId:'未配置'}}
@@ -77,22 +91,26 @@

抄表
-
+

拉闸
-
+

合闸
-
+

清零
-
+

日志
+
+ 
+ 报修
+
@@ -112,7 +130,12 @@
- 智能水表
+ 智能水表
+ 报修状态:
+ 正常
+ 维修中
+ 报废
+
{{item.nuId_dictText?item.nuId_dictText:'未配置'}}
NUID: {{item.nuId?item.nuId:'未配置'}}
@@ -131,22 +154,26 @@

抄表
-
+

开阀
-
+

关阀
-
+

清零
-
+

日志
+
+ 
+ 报修
+
@@ -165,7 +192,12 @@
- 温湿度计
+ 温湿度计
+ 报修状态:
+ 正常
+ 维修中
+ 报废
+
{{item.nuId_dictText?item.nuId_dictText:'未配置'}}
NUID: {{item.nuId?item.nuId:'未配置'}}
@@ -194,14 +226,18 @@

抄表
-
+
+

日志
+
+ 
+ 报修
+
@@ -238,6 +274,7 @@ import DeviceInfoDrawer from "/@/views/iot/yiweilian/components/DeviceInfoDrawer
import {useDrawer} from "@/components/Drawer";
import {updateDeviceRealTime} from '/@/views/iot/yiweilian/humid.api';
import {eleSbReset, eleSbControl, eleSbRead } from "/@/views/iot/tq/water/water.api";
+import { ReloadOutlined } from '@ant-design/icons-vue';
const formRef = ref();
const apiLogModal = ref();
const apiLogWaterModal = ref();
@@ -252,7 +289,34 @@ const anyInfo = ref({});//区域信息
//注册drawer
const [registerDrawer, { openDrawer }] = useDrawer();
+function handleBaoxiu(record,type){
+console.log("🚀 ~ handleBaoxiu ~ record,type:", record,type)
+
+ Modal.confirm({
+ title: '报修',
+ content: '是否进行报修?',
+ closable: true,
+ okText: '确定',
+ cancelText: '取消',
+ async onOk() {
+ var url = "";
+ if(type=='1'){//摄像头报修
+ url = '/iot/tplink/cameraInfo/baoxiu';
+ }else if(type=='2'){ //电表报修
+ url = '/iot/tq/electricityMeter/baoxiu';
+ }else if(type=='3'){ //水表报修
+ url = '/iot/tq/waterMeter/baoxiu';
+ }else if(type=='4'){ //温湿度计报修
+ url = '/iot/yiweilian/humidDevice/baoxiu';
+ }
+ defHttp.post({url: url,params:{id:record.id}}).then(res => {
+ edit(anyInfo.value);
+ });
+ },
+ });
+}
function edit(record) {
+ console.log("🚀 ~ edit ~ record:", record)
anyInfo.value = record;
getSxt(record);//摄像头
getZndb(record);//智能电表