From dfb37046694d38ec1936508bfbe68c1cdf61aa0e Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 14 Apr 2025 17:28:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=9F=E7=9F=A5=E8=AE=BE=E5=A4=87=20----=20?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E9=85=8D=E7=BD=AE=E9=9D=99=E6=80=81=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8F=8A=E5=9F=BA=E6=9C=AC=E9=80=BB=E8=BE=91=E5=88=9D?= =?UTF-8?q?=E6=AD=A5=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../perception-devices/attribute-config.js | 20 ++ .../components/add-edit-form.vue | 171 ++++++++++++++++++ .../attribute-config/config.js | 18 ++ .../attribute-config/index.vue | 84 ++++++++- 4 files changed, 291 insertions(+), 2 deletions(-) create mode 100644 src/api/perception-devices/attribute-config.js create mode 100644 src/views/perception-devices/attribute-config/components/add-edit-form.vue create mode 100644 src/views/perception-devices/attribute-config/config.js diff --git a/src/api/perception-devices/attribute-config.js b/src/api/perception-devices/attribute-config.js new file mode 100644 index 00000000..672dcd16 --- /dev/null +++ b/src/api/perception-devices/attribute-config.js @@ -0,0 +1,20 @@ +import request from '@/utils/request' + +/* 感知设备 ---- 属性配置接口 */ + +// 列表接口 +export const getAttributeConfigListAPI = (data) => { + return request.post('/xxx', data) +} +// 新增接口 +export const addAttributeConfigDataAPI = (data) => { + return request.post('/xxx', data) +} +// 修改接口 +export const editAttributeConfigDataAPI = (data) => { + return request.post('/xxx', data) +} +// 删除接口 +export const deleteAttributeConfigDataAPI = (data) => { + return request.post('/xxx', data) +} diff --git a/src/views/perception-devices/attribute-config/components/add-edit-form.vue b/src/views/perception-devices/attribute-config/components/add-edit-form.vue new file mode 100644 index 00000000..6ede6fab --- /dev/null +++ b/src/views/perception-devices/attribute-config/components/add-edit-form.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/src/views/perception-devices/attribute-config/config.js b/src/views/perception-devices/attribute-config/config.js new file mode 100644 index 00000000..0bcec210 --- /dev/null +++ b/src/views/perception-devices/attribute-config/config.js @@ -0,0 +1,18 @@ +export const formLabel = [{ f_label: '搜索关键词', f_model: 'proName', f_type: 'ipt', isShow: false }] +export const columnsList = [ + { t_props: 'projectName', t_label: 'ID' }, + { t_props: 'address', t_label: '设备ID' }, + { t_props: 'planStartTime', t_label: '属性ID' }, + { t_props: 'planEndTime', t_label: '属性名称' }, + { t_props: 'ownerUnit', t_label: '描述' }, + { t_props: 'auditStatus', t_label: '数据类型' }, + { t_props: 'auditStatus', t_label: '单位' }, + { t_props: 'auditStatus', t_label: '属性值' }, + { t_props: 'auditStatus', t_label: '创建时间' }, +] + +export const dialogConfig = { + outerWidth: '50%', + outerTitle: '新增', + outerVisible: false, +} diff --git a/src/views/perception-devices/attribute-config/index.vue b/src/views/perception-devices/attribute-config/index.vue index 885d85d0..d5eeb52f 100644 --- a/src/views/perception-devices/attribute-config/index.vue +++ b/src/views/perception-devices/attribute-config/index.vue @@ -1,9 +1,89 @@