From 9bac52a1d05a46a0255c2c56745238e302f11879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Wed, 15 Apr 2026 18:01:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=81=94=E8=AE=BE=E5=A4=87BUG?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nuBaseInfo/iotDevices/IotDevices.data.ts | 19 ++-- .../iotDevices/IotDevicesTyList.vue | 12 +-- .../manager/components/DeviceBrokenForm.vue | 1 + .../iot/manager/components/DeviceGhForm.vue | 1 + .../manager/components/log/DeviceLogList.vue | 91 ++++++++++++++++++- .../components/preview/DevicePreviewForm.vue | 7 ++ src/views/iot/manager/manager.data.ts | 6 ++ 7 files changed, 119 insertions(+), 18 deletions(-) diff --git a/src/views/biz/nuBaseInfo/iotDevices/IotDevices.data.ts b/src/views/biz/nuBaseInfo/iotDevices/IotDevices.data.ts index d5ae58c..828bd1a 100644 --- a/src/views/biz/nuBaseInfo/iotDevices/IotDevices.data.ts +++ b/src/views/biz/nuBaseInfo/iotDevices/IotDevices.data.ts @@ -60,16 +60,21 @@ export const columnsTy: BasicColumn[] = [ align: "center", dataIndex: 'sn' }, - // { - // title: '设备型号', - // align: "center", - // dataIndex: 'deviceModel' - // }, { - title: '设备维度', + title: '设备名称', align: "center", - dataIndex: 'dimension' + dataIndex: 'deviceName' }, + { + title: '设备型号', + align: "center", + dataIndex: 'deviceModel' + }, + // { + // title: '设备维度', + // align: "center", + // dataIndex: 'dimension' + // }, { title: '设备类型', align: "center", diff --git a/src/views/biz/nuBaseInfo/iotDevices/IotDevicesTyList.vue b/src/views/biz/nuBaseInfo/iotDevices/IotDevicesTyList.vue index 90c3109..7776cff 100644 --- a/src/views/biz/nuBaseInfo/iotDevices/IotDevicesTyList.vue +++ b/src/views/biz/nuBaseInfo/iotDevices/IotDevicesTyList.vue @@ -58,11 +58,11 @@
提示:您停用区域【{{queryParam.nuName}}】,将释放所有设备,请慎重操作! - 提示:请联系平台运维组技术人员绑定物联设备! + 提示:请【物联设备】功能中绑定设备!
- + @@ -127,14 +127,14 @@ const emit = defineEmits(['register', 'ok']); xs: 24, sm: 16, }); - + /** * 成功回调 */ function handleSuccess() { (selectedRowKeys.value = []) && reload(); } - + /** * 摄像头预览 */ @@ -156,7 +156,7 @@ function handlePreview(record: Recordable) { }, ]; } - + /** * 查询 @@ -164,7 +164,7 @@ function handlePreview(record: Recordable) { function searchQuery() { reload(); } - + function init(record) { console.log("🚀 ~ init ~ record:", record) nuInfo.value = record; diff --git a/src/views/iot/manager/components/DeviceBrokenForm.vue b/src/views/iot/manager/components/DeviceBrokenForm.vue index 18eb016..1d92425 100644 --- a/src/views/iot/manager/components/DeviceBrokenForm.vue +++ b/src/views/iot/manager/components/DeviceBrokenForm.vue @@ -40,6 +40,7 @@ const formData = reactive>({ nuId: undefined, nuName: undefined, dimension: undefined, + deviceName: undefined, deviceType: undefined, deviceModel: undefined, factory: undefined, diff --git a/src/views/iot/manager/components/DeviceGhForm.vue b/src/views/iot/manager/components/DeviceGhForm.vue index e609bbf..840e22b 100644 --- a/src/views/iot/manager/components/DeviceGhForm.vue +++ b/src/views/iot/manager/components/DeviceGhForm.vue @@ -53,6 +53,7 @@ const formData = reactive>({ nuId: undefined, nuName: undefined, dimension: undefined, + deviceName: undefined, deviceType: undefined, deviceModel: undefined, factory: undefined, diff --git a/src/views/iot/manager/components/log/DeviceLogList.vue b/src/views/iot/manager/components/log/DeviceLogList.vue index 5c2dca0..06f78e0 100644 --- a/src/views/iot/manager/components/log/DeviceLogList.vue +++ b/src/views/iot/manager/components/log/DeviceLogList.vue @@ -1,5 +1,42 @@ diff --git a/src/views/iot/manager/manager.data.ts b/src/views/iot/manager/manager.data.ts index 8760c8f..2ebd66a 100644 --- a/src/views/iot/manager/manager.data.ts +++ b/src/views/iot/manager/manager.data.ts @@ -148,6 +148,12 @@ export const logColumns: BasicColumn[] = [ dataIndex: 'dimension', width: 100 }, + { + title: '设备名称', + align: "center", + dataIndex: 'deviceName', + width: 100 + }, { title: '设备类型', align: "center",