From fccb5033a79fc309e3018ed9ec57252caa3e6ffa Mon Sep 17 00:00:00 2001 From: fhysy <1149505133@qq.com> Date: Mon, 26 May 2025 17:42:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(store):=20=E6=B7=BB=E5=8A=A0=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=8A=9F=E8=83=BD=E5=88=97=E8=A1=A8=E5=92=8C=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=88=97=E8=A1=A8=E7=9A=84=E6=8E=92=E5=BA=8F=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E3=80=81=E8=B0=83=E6=95=B4=E5=AD=97=E5=85=B8=E5=92=8C?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E9=A1=B5=E9=9D=A2=E3=80=81=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 attribute.js 中添加了 UpdateFunctionList 和 UpdateEventList 两个 action --- src/store/modules/attribute.js | 8 + src/views/iot/device/index.vue | 2 +- src/views/iot/device/profile/functionWrap.vue | 76 +- .../profile/DeviceDetailsView/eventLog.vue | 24 +- .../profile/attribute/eventFormModel.vue | 806 +++++++++--------- src/views/profile/attribute/eventView.vue | 239 ++---- .../profile/attribute/functionFormModel.vue | 735 ++++++++-------- src/views/profile/attribute/functionView.vue | 68 +- src/views/system/dict/data.vue | 79 +- src/views/system/user/index.vue | 4 +- 10 files changed, 938 insertions(+), 1103 deletions(-) diff --git a/src/store/modules/attribute.js b/src/store/modules/attribute.js index dbef5110..58639a93 100644 --- a/src/store/modules/attribute.js +++ b/src/store/modules/attribute.js @@ -177,6 +177,14 @@ const attribute = { EditEvent({ commit, state }, param) { commit('UPDATE_EVENT', param) }, + // 修改 列表 + UpdateFunctionList({ commit, state }, param) { + commit('SET_FUNCTION_LIST', param) + }, + // 修改 列表 + UpdateEventList({ commit, state }, param) { + commit('SET_EVENT_LIST', param) + }, // 删除分组 删除分组 判断分组是否有属性,有属性就不能删除 DeleteGroup({ commit, state }, idx) { let groupItem = state.groupList[idx]; diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue index fbc87974..532f0809 100644 --- a/src/views/iot/device/index.vue +++ b/src/views/iot/device/index.vue @@ -877,7 +877,7 @@ export default { } ], deviceTag: [ - { required: true, message: "设备标签不能为空", trigger: "change" } + // { required: true, message: "设备标签不能为空", trigger: "change" } ] }, deviceTypeList: {}, diff --git a/src/views/iot/device/profile/functionWrap.vue b/src/views/iot/device/profile/functionWrap.vue index 02f234a3..4ee554f0 100644 --- a/src/views/iot/device/profile/functionWrap.vue +++ b/src/views/iot/device/profile/functionWrap.vue @@ -333,14 +333,12 @@ - - - diff --git a/src/views/profile/attribute/eventView.vue b/src/views/profile/attribute/eventView.vue index 6b31e2e3..845d48b7 100644 --- a/src/views/profile/attribute/eventView.vue +++ b/src/views/profile/attribute/eventView.vue @@ -33,9 +33,23 @@ align="center" class-name="small-padding fixed-width" label="操作" - width="180px" + width="200px" > - - - diff --git a/src/views/profile/attribute/functionView.vue b/src/views/profile/attribute/functionView.vue index fa2731bb..6c01ea59 100644 --- a/src/views/profile/attribute/functionView.vue +++ b/src/views/profile/attribute/functionView.vue @@ -31,9 +31,23 @@ align="center" class-name="small-padding fixed-width" label="操作" - width="180px" + width="200px" >