From 701df6c8cdc1a0bee7d531490da40b296073c7e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Sat, 5 Jul 2025 16:06:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=AE=A1=E8=AE=A1=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E8=8F=9C=E5=8D=95=E6=96=B0=E5=A2=9E=E9=80=89?= =?UTF-8?q?=E9=A1=B9=EF=BC=9A=E6=93=8D=E4=BD=9C=E8=AE=B0=E5=BD=95=E3=80=81?= =?UTF-8?q?=E6=B6=88=E6=AF=92=E8=AE=B0=E5=BD=95=EF=BC=8C=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=8E=BB=E9=99=A4=E6=B6=88=E6=AF=92=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=85=8D=E7=BD=AE=E9=80=89=E9=A1=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/audit/History.vue | 205 ++++++++++++++++++++++++++++++ src/components/audit/OperationRecord.vue | 140 ++++++++++++++++++++ src/components/setting/History.vue | 206 ------------------------------ src/stores/auditStore.ts | 21 +++ src/stores/settingStore.ts | 4 - src/views/audit/index.vue | 212 ++++++++++++++----------------- src/views/setting/index.vue | 4 +- 7 files changed, 461 insertions(+), 331 deletions(-) create mode 100644 src/components/audit/History.vue create mode 100644 src/components/audit/OperationRecord.vue delete mode 100644 src/components/setting/History.vue create mode 100644 src/stores/auditStore.ts diff --git a/src/components/audit/History.vue b/src/components/audit/History.vue new file mode 100644 index 0000000..761037d --- /dev/null +++ b/src/components/audit/History.vue @@ -0,0 +1,205 @@ + + + + + diff --git a/src/components/audit/OperationRecord.vue b/src/components/audit/OperationRecord.vue new file mode 100644 index 0000000..1d9520b --- /dev/null +++ b/src/components/audit/OperationRecord.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/src/components/setting/History.vue b/src/components/setting/History.vue deleted file mode 100644 index 045cffb..0000000 --- a/src/components/setting/History.vue +++ /dev/null @@ -1,206 +0,0 @@ - - - - - diff --git a/src/stores/auditStore.ts b/src/stores/auditStore.ts new file mode 100644 index 0000000..31f2d07 --- /dev/null +++ b/src/stores/auditStore.ts @@ -0,0 +1,21 @@ +import { defineStore } from 'pinia' +/** + * 审计模块 + */ +export const useAuditStore = defineStore('audit', () => { + // 设置菜单配置 + const auditMenus = [{ + name: '操作记录', + code: 'history', + roleType: 'admin', + }, { + name: '消毒记录', + code: 'operationRecord', + roleType: 'admin,maintainer', + }] + const historyList: Record[] = [] + return { + auditMenus, + historyList, + } +}) diff --git a/src/stores/settingStore.ts b/src/stores/settingStore.ts index 3f0c1e5..4c3051e 100644 --- a/src/stores/settingStore.ts +++ b/src/stores/settingStore.ts @@ -8,10 +8,6 @@ import { ref } from 'vue' export const useSettingStore = defineStore('setting', () => { // 设置菜单配置 const settingMenus = [{ - name: '消毒历史记录', - code: 'history', - roleType: 'admin,maintainer', - }, { name: '消毒默认配置', code: 'defaultFormula', roleType: 'admin,maintainer', diff --git a/src/views/audit/index.vue b/src/views/audit/index.vue index 1c78a91..117949c 100644 --- a/src/views/audit/index.vue +++ b/src/views/audit/index.vue @@ -1,115 +1,42 @@