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('点击上传') }}
+