From d75c0042edd9d28243a93b13ac05c4d4624a2fe0 Mon Sep 17 00:00:00 2001 From: suguangxu <274928232@qq.com> Date: Tue, 10 Jun 2025 12:16:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=95=B0=E6=8D=AE=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=E3=80=81=E5=A4=8D=E5=88=B6=E5=8A=9F=E8=83=BD=E5=BC=80?= =?UTF-8?q?=E5=8F=91=EF=BC=9A=E5=A2=9E=E5=8A=A0=E5=AF=BC=E5=85=A5=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E2=80=9C=E7=A7=9F=E6=88=B7=E6=A8=A1=E5=BC=8F=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dataMigration/index.ts | 42 +++++- .../dataMigration/components/export/index.vue | 22 +-- .../components/import/ImportSystemConfig.vue | 61 +++++--- .../dataMigration/components/import/index.vue | 139 ++++++++++++++++-- 4 files changed, 223 insertions(+), 41 deletions(-) diff --git a/src/api/system/dataMigration/index.ts b/src/api/system/dataMigration/index.ts index b6b67d4..af38afb 100644 --- a/src/api/system/dataMigration/index.ts +++ b/src/api/system/dataMigration/index.ts @@ -4,6 +4,8 @@ import { ErrorMessageMode } from '/#/axios'; enum Api { ExportDatas= '/system/dataMigration/exportDatas', DownloadDatas='/system/dataMigration/downloadDatas', + LogList='/system/dataMigration/logList', + LogDetails='/system/dataMigration/logDetails', } /** @@ -25,10 +27,7 @@ export async function exportDatas(params, mode: ErrorMessageMode = 'modal') { /** * @description: 根据uuid(目录名称)下载数据 */ -export async function downloadDatas( - params?: object, - mode: ErrorMessageMode = 'modal' -) { +export async function downloadDatas(params?: object, mode: ErrorMessageMode = 'modal') { return defHttp.download( { url: Api.DownloadDatas+"/"+params.uuid, @@ -42,4 +41,39 @@ export async function downloadDatas( } +/** + * @description: 获取日志列表 + */ +export async function getLogList(mode: ErrorMessageMode = 'modal') { + return defHttp.get<[]>( + { + url: Api.LogList + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取日志详情 + */ +export async function getLogDetails(fileName:String,mode: ErrorMessageMode = 'modal') { + return defHttp.get<[]>( + { + url: Api.LogDetails, + params:{ + fileName + } + }, + { + errorMessageMode: mode, + }, + ); +} + + + + + diff --git a/src/views/system/dataMigration/components/export/index.vue b/src/views/system/dataMigration/components/export/index.vue index e2d8c77..6933cd1 100644 --- a/src/views/system/dataMigration/components/export/index.vue +++ b/src/views/system/dataMigration/components/export/index.vue @@ -234,16 +234,18 @@ display:block; margin-left:20px; margin-bottom:20px; - color: rgba(0,0,255,0.8); - text-decoration:underline rgba(#0000ff,0.8); - font-weight: 500; - font-size: 16px; - cursor: pointer; - &:hover{ - color: rgba(0,0,255,1); - text-decoration:underline #0000ff; - - } + span{ + color: rgba(0,0,255,0.8); + text-decoration:underline rgba(#0000ff,0.8); + font-weight: 500; + font-size: 16px; + cursor: pointer; + &:hover{ + color: rgba(0,0,255,1); + text-decoration:underline #0000ff; + + } + } } .list-wrapper{ diff --git a/src/views/system/dataMigration/components/import/ImportSystemConfig.vue b/src/views/system/dataMigration/components/import/ImportSystemConfig.vue index 078a063..6509b0a 100644 --- a/src/views/system/dataMigration/components/import/ImportSystemConfig.vue +++ b/src/views/system/dataMigration/components/import/ImportSystemConfig.vue @@ -3,21 +3,31 @@ + + + + + + + + @@ -25,12 +35,14 @@ {{ t('将文件拖到此处,或') }}{{ t('点击上传') }} +