From 7f620df8b4d9132f92561596768b5e57d8d24362 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com>
Date: Mon, 30 Mar 2026 18:20:25 +0800
Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=81=94=E8=AE=BE=E5=A4=87=E7=AE=A1?=
=?UTF-8?q?=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../device/manager/DeviceManagerList.vue | 209 ++++++++++++++++
.../components/AddDepartPreviewForm.vue | 200 ++++++++++++++++
.../components/AddDepartPreviewModal.vue | 84 +++++++
.../manager/components/AddNuPreviewForm.vue | 220 +++++++++++++++++
.../manager/components/AddNuPreviewModal.vue | 84 +++++++
.../device/manager/components/CameraList.vue | 163 +++++++++++++
.../manager/components/DepartPreviewList.vue | 217 +++++++++++++++++
.../manager/components/DepartPreviewModal.vue | 82 +++++++
.../components/DeviceIntegrationModal.vue | 116 +++++++++
.../manager/components/ElectricityList.vue | 144 +++++++++++
.../device/manager/components/HumidList.vue | 144 +++++++++++
.../device/manager/components/NetworkList.vue | 144 +++++++++++
.../manager/components/NuPreviewList.vue | 226 ++++++++++++++++++
.../manager/components/NuPreviewModal.vue | 82 +++++++
.../device/manager/components/WaterList.vue | 144 +++++++++++
.../manager/components/integration.api.ts | 21 ++
.../manager/components/integration.data.ts | 51 ++++
.../device/manager/components/preview.api.ts | 31 +++
.../device/manager/components/preview.data.ts | 118 +++++++++
src/views/device/manager/manager.api.ts | 20 ++
src/views/device/manager/manager.data.ts | 37 +++
21 files changed, 2537 insertions(+)
create mode 100644 src/views/device/manager/DeviceManagerList.vue
create mode 100644 src/views/device/manager/components/AddDepartPreviewForm.vue
create mode 100644 src/views/device/manager/components/AddDepartPreviewModal.vue
create mode 100644 src/views/device/manager/components/AddNuPreviewForm.vue
create mode 100644 src/views/device/manager/components/AddNuPreviewModal.vue
create mode 100644 src/views/device/manager/components/CameraList.vue
create mode 100644 src/views/device/manager/components/DepartPreviewList.vue
create mode 100644 src/views/device/manager/components/DepartPreviewModal.vue
create mode 100644 src/views/device/manager/components/DeviceIntegrationModal.vue
create mode 100644 src/views/device/manager/components/ElectricityList.vue
create mode 100644 src/views/device/manager/components/HumidList.vue
create mode 100644 src/views/device/manager/components/NetworkList.vue
create mode 100644 src/views/device/manager/components/NuPreviewList.vue
create mode 100644 src/views/device/manager/components/NuPreviewModal.vue
create mode 100644 src/views/device/manager/components/WaterList.vue
create mode 100644 src/views/device/manager/components/integration.api.ts
create mode 100644 src/views/device/manager/components/integration.data.ts
create mode 100644 src/views/device/manager/components/preview.api.ts
create mode 100644 src/views/device/manager/components/preview.data.ts
create mode 100644 src/views/device/manager/manager.api.ts
create mode 100644 src/views/device/manager/manager.data.ts
diff --git a/src/views/device/manager/DeviceManagerList.vue b/src/views/device/manager/DeviceManagerList.vue
new file mode 100644
index 0000000..ba4bbff
--- /dev/null
+++ b/src/views/device/manager/DeviceManagerList.vue
@@ -0,0 +1,209 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/AddDepartPreviewForm.vue b/src/views/device/manager/components/AddDepartPreviewForm.vue
new file mode 100644
index 0000000..0bf6c2b
--- /dev/null
+++ b/src/views/device/manager/components/AddDepartPreviewForm.vue
@@ -0,0 +1,200 @@
+
+
+
+
+
+
+
+
+
+ {{item.deviceModel}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/AddDepartPreviewModal.vue b/src/views/device/manager/components/AddDepartPreviewModal.vue
new file mode 100644
index 0000000..3bcb5a6
--- /dev/null
+++ b/src/views/device/manager/components/AddDepartPreviewModal.vue
@@ -0,0 +1,84 @@
+
+
+
+ 关闭
+ 确认
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/AddNuPreviewForm.vue b/src/views/device/manager/components/AddNuPreviewForm.vue
new file mode 100644
index 0000000..2dfec1f
--- /dev/null
+++ b/src/views/device/manager/components/AddNuPreviewForm.vue
@@ -0,0 +1,220 @@
+
+
+
+
+
+
+
+
+
+ {{item.nuName}}
+
+
+
+
+
+
+
+
+ {{item.deviceModel}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/AddNuPreviewModal.vue b/src/views/device/manager/components/AddNuPreviewModal.vue
new file mode 100644
index 0000000..f73db82
--- /dev/null
+++ b/src/views/device/manager/components/AddNuPreviewModal.vue
@@ -0,0 +1,84 @@
+
+
+
+ 关闭
+ 确认
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/CameraList.vue b/src/views/device/manager/components/CameraList.vue
new file mode 100644
index 0000000..6737535
--- /dev/null
+++ b/src/views/device/manager/components/CameraList.vue
@@ -0,0 +1,163 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/DepartPreviewList.vue b/src/views/device/manager/components/DepartPreviewList.vue
new file mode 100644
index 0000000..8b45699
--- /dev/null
+++ b/src/views/device/manager/components/DepartPreviewList.vue
@@ -0,0 +1,217 @@
+
+
+
+
+
+
+
+
+ 机构维度
+ 区域维度
+ 设备预览
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/DepartPreviewModal.vue b/src/views/device/manager/components/DepartPreviewModal.vue
new file mode 100644
index 0000000..d7f34e8
--- /dev/null
+++ b/src/views/device/manager/components/DepartPreviewModal.vue
@@ -0,0 +1,82 @@
+
+
+
+ 关闭
+ 确认
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/DeviceIntegrationModal.vue b/src/views/device/manager/components/DeviceIntegrationModal.vue
new file mode 100644
index 0000000..ae9a3af
--- /dev/null
+++ b/src/views/device/manager/components/DeviceIntegrationModal.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关闭
+ 确认
+
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/ElectricityList.vue b/src/views/device/manager/components/ElectricityList.vue
new file mode 100644
index 0000000..e4ebc7d
--- /dev/null
+++ b/src/views/device/manager/components/ElectricityList.vue
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/HumidList.vue b/src/views/device/manager/components/HumidList.vue
new file mode 100644
index 0000000..00c1007
--- /dev/null
+++ b/src/views/device/manager/components/HumidList.vue
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/NetworkList.vue b/src/views/device/manager/components/NetworkList.vue
new file mode 100644
index 0000000..79da17f
--- /dev/null
+++ b/src/views/device/manager/components/NetworkList.vue
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/NuPreviewList.vue b/src/views/device/manager/components/NuPreviewList.vue
new file mode 100644
index 0000000..35459dc
--- /dev/null
+++ b/src/views/device/manager/components/NuPreviewList.vue
@@ -0,0 +1,226 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/NuPreviewModal.vue b/src/views/device/manager/components/NuPreviewModal.vue
new file mode 100644
index 0000000..8147f76
--- /dev/null
+++ b/src/views/device/manager/components/NuPreviewModal.vue
@@ -0,0 +1,82 @@
+
+
+
+ 关闭
+ 确认
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/WaterList.vue b/src/views/device/manager/components/WaterList.vue
new file mode 100644
index 0000000..bb8aae5
--- /dev/null
+++ b/src/views/device/manager/components/WaterList.vue
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
diff --git a/src/views/device/manager/components/integration.api.ts b/src/views/device/manager/components/integration.api.ts
new file mode 100644
index 0000000..e957796
--- /dev/null
+++ b/src/views/device/manager/components/integration.api.ts
@@ -0,0 +1,21 @@
+import { defHttp } from '/@/utils/http/axios';
+
+enum Api {
+ cameraList = '/iot/device/manager/cameraList',
+ networkList = '/iot/device/manager/networkList',
+ electricityList = '/iot/device/manager/electricityList',
+ waterList = '/iot/device/manager/waterList',
+ humidList = '/iot/device/manager/humidList',
+}
+
+/**
+ * 列表
+ * @param params
+ */
+export const cameraList = (params) => defHttp.get({ url: Api.cameraList, params });
+export const networkList = (params) => defHttp.get({ url: Api.networkList, params });
+export const electricityList = (params) => defHttp.get({ url: Api.electricityList, params });
+export const waterList = (params) => defHttp.get({ url: Api.waterList, params });
+export const humidList = (params) => defHttp.get({ url: Api.humidList, params });
+
+
diff --git a/src/views/device/manager/components/integration.data.ts b/src/views/device/manager/components/integration.data.ts
new file mode 100644
index 0000000..2cb61fe
--- /dev/null
+++ b/src/views/device/manager/components/integration.data.ts
@@ -0,0 +1,51 @@
+import {BasicColumn} from '/@/components/Table';
+import {FormSchema} from '/@/components/Table';
+
+//列表数据
+export const deviceColumns: BasicColumn[] = [
+ {
+ title: '设备维度',
+ align: "center",
+ dataIndex: 'dimension',
+ width: 150
+ },
+ {
+ title: '设备类型',
+ align: "center",
+ dataIndex: 'deviceType_dictText'
+ },
+ {
+ title: '设备型号',
+ align: "center",
+ dataIndex: 'deviceModel',
+ width: 200
+ },
+ {
+ title: '生产厂家',
+ align: "center",
+ dataIndex: 'factory',
+ width: 200
+ },
+ {
+ title: '在线状态',
+ align: "center",
+ dataIndex: 'deviceStatus',
+ width: 100
+ },
+ {
+ title: '设备状态',
+ align: "center",
+ dataIndex: 'maintainStatus',
+ customRender:({record})=>{
+ if(record.maintainStatus=='0'){
+ return "正常";
+ }
+ if(record.maintainStatus=='1'){
+ return "损坏";
+ }
+ },
+ width: 200
+ },
+];
+
+export const searchFormSchema: FormSchema[] = [];
diff --git a/src/views/device/manager/components/preview.api.ts b/src/views/device/manager/components/preview.api.ts
new file mode 100644
index 0000000..82bbbea
--- /dev/null
+++ b/src/views/device/manager/components/preview.api.ts
@@ -0,0 +1,31 @@
+import { defHttp } from '/@/utils/http/axios';
+
+enum Api {
+ departPreview = '/iot/device/manager/departPreview',
+ nuPreview = '/iot/device/manager/nuPreview',
+ configList = '/iot/device/config/queryList',
+ nuList = '/iot/device/manager/nuList',
+ savePreview = '/iot/device/manager/savePreview',
+ deletePreview = '/iot/device/manager/deletePreview',
+}
+
+/**
+ * 列表
+ * @param params
+ */
+export const departPreview = (params) => defHttp.get({ url: Api.departPreview, params });
+export const nuPreview = (params) => defHttp.get({ url: Api.nuPreview, params });
+export const configList = (params) => defHttp.get({ url: Api.configList, params });
+export const nuList = (params) => defHttp.get({ url: Api.nuList, params });
+/**
+ * 新增机构
+ * @param id
+ */
+export const savePreview = (params) => defHttp.post({ url: Api.savePreview, params });
+/**
+ * 删除
+ * @param id
+ */
+export const deletePreview = (params) => defHttp.post({ url: Api.deletePreview, params });
+
+
diff --git a/src/views/device/manager/components/preview.data.ts b/src/views/device/manager/components/preview.data.ts
new file mode 100644
index 0000000..e6427a6
--- /dev/null
+++ b/src/views/device/manager/components/preview.data.ts
@@ -0,0 +1,118 @@
+import {BasicColumn} from '/@/components/Table';
+import {FormSchema} from '/@/components/Table';
+
+//列表数据
+export const departColumns: BasicColumn[] = [
+ {
+ title: '机构编码',
+ align: "center",
+ dataIndex: 'orgCode',
+ width: 150
+ },
+ {
+ title: '机构名称',
+ align: "center",
+ dataIndex: 'departName',
+ },
+ {
+ title: '设备类型',
+ align: "center",
+ dataIndex: 'deviceType_dictText',
+ width: 150
+ },
+ {
+ title: '设备型号',
+ align: "center",
+ dataIndex: 'deviceModel',
+ width: 150
+ },
+ {
+ title: '生产厂家',
+ align: "center",
+ dataIndex: 'factory',
+ width: 150
+ },
+ {
+ title: '设备维度',
+ align: "center",
+ dataIndex: 'dimension',
+ width: 150
+ },
+ {
+ title: '采购数量',
+ align: "center",
+ dataIndex: 'purchaseQuantity',
+ width: 150
+ },
+];
+
+export const nuColumns: BasicColumn[] = [
+ {
+ title: '机构编码',
+ align: "center",
+ dataIndex: 'orgCode',
+ width: 100
+ },
+ {
+ title: '机构名称',
+ align: "center",
+ dataIndex: 'departName',
+ },
+ {
+ title: '区域编码',
+ align: "center",
+ dataIndex: 'nuId',
+ customRender:({record})=>{
+ if(record.nuId==null || record.nuId==''){
+ return "-";
+ }else{
+ return record.nuId;
+ }
+ },
+ width: 120
+ },
+ {
+ title: '区域名称',
+ align: "center",
+ dataIndex: 'nuName',
+ customRender:({record})=>{
+ if(record.nuName==null || record.nuName==''){
+ return "-";
+ }else{
+ return record.nuName;
+ }
+ },
+ },
+ {
+ title: '设备类型',
+ align: "center",
+ dataIndex: 'deviceType_dictText',
+ width: 150
+ },
+ {
+ title: '设备型号',
+ align: "center",
+ dataIndex: 'deviceModel',
+ width: 150
+ },
+ {
+ title: '生产厂家',
+ align: "center",
+ dataIndex: 'factory',
+ width: 150
+ },
+ {
+ title: '设备维度',
+ align: "center",
+ dataIndex: 'dimension',
+ width: 100
+ },
+ {
+ title: '采购数量',
+ align: "center",
+ dataIndex: 'purchaseQuantity',
+ width: 100
+ },
+];
+
+export const searchFormSchema: FormSchema[] = [];
diff --git a/src/views/device/manager/manager.api.ts b/src/views/device/manager/manager.api.ts
new file mode 100644
index 0000000..bc4ba07
--- /dev/null
+++ b/src/views/device/manager/manager.api.ts
@@ -0,0 +1,20 @@
+import { defHttp } from '/@/utils/http/axios';
+
+enum Api {
+ list = '/iot/device/manager/list',
+ save = '/iot/device/manager/add',
+ delete = '/iot/device/manager/delete'
+}
+
+/**
+ * 列表
+ * @param params
+ */
+export const list = (params) => defHttp.get({ url: Api.list, params });
+
+/**
+ * 添加
+ * @param params
+ */
+export const save = (params) => defHttp.post({ url: Api.save, params }, { joinParamsToUrl: true });
+
diff --git a/src/views/device/manager/manager.data.ts b/src/views/device/manager/manager.data.ts
new file mode 100644
index 0000000..71fb343
--- /dev/null
+++ b/src/views/device/manager/manager.data.ts
@@ -0,0 +1,37 @@
+import {BasicColumn} from '/@/components/Table';
+import {FormSchema} from '/@/components/Table';
+
+//列表数据
+export const columns: BasicColumn[] = [
+ {
+ title: '机构编码',
+ align: "center",
+ dataIndex: 'orgCode',
+ width: 150
+ },
+ {
+ title: '机构名称',
+ align: "center",
+ dataIndex: 'departName'
+ },
+ {
+ title: '机构负责人',
+ align: "center",
+ dataIndex: 'orgLeader',
+ width: 200
+ },
+ {
+ title: '审核状态',
+ align: "center",
+ dataIndex: 'auditStatus',
+ width: 200
+ },
+ {
+ title: '审核日期',
+ align: "center",
+ dataIndex: 'auditTime',
+ width: 200
+ },
+];
+
+export const searchFormSchema: FormSchema[] = [];