diff --git a/src/components/Audit.vue b/src/components/Audit.vue
index adf0fbb..ab7014a 100644
--- a/src/components/Audit.vue
+++ b/src/components/Audit.vue
@@ -59,6 +59,8 @@
+
导出审计
+
import { ref, onMounted } from 'vue'
-import { useWebSocketStore, useAuditStore } from '@/store'
-import { getUserBehaviorRecordDescJSON } from '@/mock/command'
+import { useWebSocketStore, useAuditStore, useSettingStore } from '@/store'
+import { getUserBehaviorRecordDescJSON, exportUserBehaviorRecordJSON } from '@/mock/command'
import moment from 'moment'
const webSocketStore = useWebSocketStore()
const auditStore = useAuditStore()
+const settingStore = useSettingStore()
onMounted(() => {
// 读取全部审计记录 需要分页
@@ -99,6 +102,12 @@ const handleCurrentPageChange = page => {
webSocketStore.sendCommandMsg(getUserBehaviorRecordDescJSON(page - 1, 6))
auditStore.updateAuditLoading(true)
}
+
+const exportAudit = () => {
+ settingStore.updateExportText('导出审计中')
+ settingStore.updateExportLoading(true)
+ webSocketStore.sendCommandMsg(exportUserBehaviorRecordJSON)
+}
diff --git a/src/components/Setting/index.vue b/src/components/Setting/index.vue
index af9e471..843d1d3 100644
--- a/src/components/Setting/index.vue
+++ b/src/components/Setting/index.vue
@@ -21,11 +21,11 @@
日期/时间设置
配置
-
+