系统数据迁移、复制功能开发:增加导入类型“租户模式导入”
This commit is contained in:
@ -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,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user