diff --git a/Web/src/views/system/log/difflog/index.vue b/Web/src/views/system/log/difflog/index.vue
index ea22e620..3c2a79c7 100644
--- a/Web/src/views/system/log/difflog/index.vue
+++ b/Web/src/views/system/log/difflog/index.vue
@@ -5,12 +5,12 @@
-
+
-
+
@@ -79,7 +79,7 @@
-
+
diff --git a/Web/src/views/system/log/exlog/index.vue b/Web/src/views/system/log/exlog/index.vue
index f02a222e..3dd1c5a1 100644
--- a/Web/src/views/system/log/exlog/index.vue
+++ b/Web/src/views/system/log/exlog/index.vue
@@ -5,12 +5,12 @@
-
+
-
+
@@ -64,6 +64,7 @@
+ 导出
清空
@@ -123,6 +124,7 @@ import { auth } from '/@/utils/authFunction';
import { VxeGridInstance, VxeGridListeners, VxeGridPropTypes } from 'vxe-table';
import { useVxeTable } from '/@/hooks/useVxeTableOptionsHook';
import { Local } from '/@/utils/storage';
+import { downloadByData, getFileName } from '/@/utils/download';
import VueJsonPretty from 'vue-json-pretty';
import 'vue-json-pretty/lib/styles.css';
import { StringToObj } from '/@/utils/json-utils';
@@ -268,6 +270,16 @@ const handleView = async ({ row }: any) => {
state.detail.returnResult = StringToObj(data?.result?.returnResult);
state.visible = true;
};
+
+// 导出日志
+const exportLog = async () => {
+ options.loading = true;
+ var res = await getAPI(SysLogExApi).apiSysLogExExportPost(state.queryParams, { responseType: 'blob' });
+ options.loading = false;
+
+ var fileName = getFileName(res.headers);
+ downloadByData(res.data as any, fileName);
+};