From c71fc7c8d650ff9c7b9e3c0c75fc63bac589ddb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com>
Date: Fri, 27 Mar 2026 17:42:01 +0800
Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=81=94=E8=AE=BE=E5=A4=87=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/device/config/DeviceConfigList.vue | 122 ++++++++++++
.../config/components/DeviceConfigForm.vue | 179 ++++++++++++++++++
.../config/components/DeviceConfigModal.vue | 84 ++++++++
src/views/device/config/config.api.ts | 20 ++
src/views/device/config/config.data.ts | 28 +++
5 files changed, 433 insertions(+)
create mode 100644 src/views/device/config/DeviceConfigList.vue
create mode 100644 src/views/device/config/components/DeviceConfigForm.vue
create mode 100644 src/views/device/config/components/DeviceConfigModal.vue
create mode 100644 src/views/device/config/config.api.ts
create mode 100644 src/views/device/config/config.data.ts
diff --git a/src/views/device/config/DeviceConfigList.vue b/src/views/device/config/DeviceConfigList.vue
new file mode 100644
index 0000000..e9dfa0e
--- /dev/null
+++ b/src/views/device/config/DeviceConfigList.vue
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/config/components/DeviceConfigForm.vue b/src/views/device/config/components/DeviceConfigForm.vue
new file mode 100644
index 0000000..45b0d68
--- /dev/null
+++ b/src/views/device/config/components/DeviceConfigForm.vue
@@ -0,0 +1,179 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 机构维度
+ 区域维度
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/config/components/DeviceConfigModal.vue b/src/views/device/config/components/DeviceConfigModal.vue
new file mode 100644
index 0000000..1cbb687
--- /dev/null
+++ b/src/views/device/config/components/DeviceConfigModal.vue
@@ -0,0 +1,84 @@
+
+
+
+ 关闭
+ 确认
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/config/config.api.ts b/src/views/device/config/config.api.ts
new file mode 100644
index 0000000..ef0f1ec
--- /dev/null
+++ b/src/views/device/config/config.api.ts
@@ -0,0 +1,20 @@
+import { defHttp } from '/@/utils/http/axios';
+
+enum Api {
+ list = '/iot/device/config/list',
+ save = '/iot/device/config/add',
+ delete = '/iot/device/config/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/config/config.data.ts b/src/views/device/config/config.data.ts
new file mode 100644
index 0000000..3b0c177
--- /dev/null
+++ b/src/views/device/config/config.data.ts
@@ -0,0 +1,28 @@
+import {BasicColumn} from '/@/components/Table';
+import {FormSchema} from '/@/components/Table';
+
+//列表数据
+export const columns: BasicColumn[] = [
+ {
+ title: '设备类型',
+ align: "center",
+ dataIndex: 'deviceType_dictText'
+ },
+ {
+ title: '规格型号',
+ align: "center",
+ dataIndex: 'deviceModel'
+ },
+ {
+ title: '生产厂家',
+ align: "center",
+ dataIndex: 'factory'
+ },
+ {
+ title: '设备维度',
+ align: "center",
+ dataIndex: 'dimension'
+ },
+];
+
+export const searchFormSchema: FormSchema[] = [];