From 362823312cba77320c6bba982a73c4daee09ca75 Mon Sep 17 00:00:00 2001 From: zhufu <17863654727@163.com> Date: Thu, 26 Jun 2025 16:43:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=B3=BB=E7=BB=9F=E5=A4=87?= =?UTF-8?q?=E4=BB=BD=E7=94=BB=E9=9D=A2=EF=BC=8C=E4=BF=A1=E6=81=AF=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=94=BB=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/demo/system.ts | 12 ++++++- src/views/demo/system/backup/index.vue | 35 +++++++++++++++++++++ src/views/demo/system/backup/util.ts | 43 ++++++++++++++++++++++++++ src/views/demo/system/log/index.vue | 35 +++++++++++++++++++++ src/views/demo/system/log/util.ts | 40 ++++++++++++++++++++++++ 5 files changed, 164 insertions(+), 1 deletion(-) create mode 100644 src/views/demo/system/backup/index.vue create mode 100644 src/views/demo/system/backup/util.ts create mode 100644 src/views/demo/system/log/index.vue create mode 100644 src/views/demo/system/log/util.ts diff --git a/src/api/demo/system.ts b/src/api/demo/system.ts index 9f7b35b7..acf1f30d 100644 --- a/src/api/demo/system.ts +++ b/src/api/demo/system.ts @@ -148,6 +148,10 @@ enum Api { GetCxjgCaseInfoById = '/api/DroneCaseInfoSingle/GetCxjgCaseInfoById', // 持续监管-迁入违法专题 MoveInIllegalSubject = '/api/DroneCaseInfoSingle/MoveInIllegalSubject', + // 文件备份加载列表 + SysBackUpInfoLoad = '/api/SysBackUpInfo/Load', + // 消息日志加载列表 + SysLogsLoad = '/api/SysLogs/Load', } export const getPositionsTree = (params?: AccountParams) => defHttp.get({ url: Api.PositionsTree, params }); @@ -555,4 +559,10 @@ export const GetCxjgCaseInfoById = (params) => defHttp.get({ url: Api.GetCxjgCaseInfoById, params }); // 持续监管-迁入违法专题 export const MoveInIllegalSubject = (params) => - defHttp.post({ url: Api.MoveInIllegalSubject, params }); \ No newline at end of file + defHttp.post({ url: Api.MoveInIllegalSubject, params }); +// 文件备份加载列表 +export const SysBackUpInfoLoad = (params) => + defHttp.get({ url: Api.SysBackUpInfoLoad, params }); +// 消息日志加载列表 +export const SysLogsLoad = (params) => + defHttp.get({ url: Api.SysLogsLoad, params }); \ No newline at end of file diff --git a/src/views/demo/system/backup/index.vue b/src/views/demo/system/backup/index.vue new file mode 100644 index 00000000..e98f25d6 --- /dev/null +++ b/src/views/demo/system/backup/index.vue @@ -0,0 +1,35 @@ + + + diff --git a/src/views/demo/system/backup/util.ts b/src/views/demo/system/backup/util.ts new file mode 100644 index 00000000..89a4a75d --- /dev/null +++ b/src/views/demo/system/backup/util.ts @@ -0,0 +1,43 @@ +import { BasicColumn, FormSchema } from '@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '时间', + dataIndex: 'createTime', + }, + { + title: '内容', + dataIndex: 'content', + }, + { + title: '备份文件', + dataIndex: 'backUpFile', + }, + { + title: '路径', + dataIndex: 'remoteRoute', + }, + { + title: '异地路径', + dataIndex: 'remoteRoute', + }, + { + title: '还原方式', + dataIndex: 'resMethod', + }, +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'key', + label: '图斑编号', + component: 'Input', + colProps: { span: 4 }, + }, + { + field: 'originalcaseno', + label: '标识号', + component: 'Input', + colProps: { span: 4 }, + }, +]; diff --git a/src/views/demo/system/log/index.vue b/src/views/demo/system/log/index.vue new file mode 100644 index 00000000..5f4d9c5e --- /dev/null +++ b/src/views/demo/system/log/index.vue @@ -0,0 +1,35 @@ + + + diff --git a/src/views/demo/system/log/util.ts b/src/views/demo/system/log/util.ts new file mode 100644 index 00000000..63abf553 --- /dev/null +++ b/src/views/demo/system/log/util.ts @@ -0,0 +1,40 @@ +import { BasicColumn, FormSchema } from '@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '时间', + dataIndex: 'createTime', + }, + { + title: '内容', + dataIndex: 'content', + }, + { + title: '路由', + dataIndex: 'href', + }, + { + title: '用户', + dataIndex: 'createName', + }, + { + title: '类型', + dataIndex: 'typeName', + }, + +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'key', + label: '图斑编号', + component: 'Input', + colProps: { span: 4 }, + }, + { + field: 'originalcaseno', + label: '标识号', + component: 'Input', + colProps: { span: 4 }, + }, +];