diff --git a/src/components/setting/History.vue b/src/components/audit/History.vue similarity index 98% rename from src/components/setting/History.vue rename to src/components/audit/History.vue index 045cffb..761037d 100644 --- a/src/components/setting/History.vue +++ b/src/components/audit/History.vue @@ -2,11 +2,10 @@ // import { useSettingStore } from '@/stores/settingStore' import { syncSendCmd } from 'apis/system' import { ElMessageBox } from 'element-plus' +import { FtMessage } from 'libs/message' import { computed, onMounted, ref } from 'vue' -import { FtMessage } from '@/libs/message' - -import HistoryDetail from './HistoryDetail.vue' +import HistoryDetail from '../setting/HistoryDetail.vue' // const settingStore = useSettingStore() const tableData = ref([]) const selectedRecords = ref([]) 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/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 @@