Merge branches 'dev' and 'dev_dyd' of https://fcd.gdyditc.com/itc-framework/ma/2024/front into dev_dyd
This commit is contained in:
@ -112,6 +112,21 @@ export async function getFormTemplate(id: string, mode: ErrorMessageMode = 'moda
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取模板详情信息-优先从缓存获取
|
||||
*/
|
||||
export async function getFormTemplateUsingCache(id: string, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<FormTemplateModel>(
|
||||
{
|
||||
url: Api.Info,
|
||||
params: {id,useCache:1},
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新模板状态
|
||||
*/
|
||||
|
||||
79
src/api/system/dataMigration/index.ts
Normal file
79
src/api/system/dataMigration/index.ts
Normal file
@ -0,0 +1,79 @@
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { ErrorMessageMode } from '/#/axios';
|
||||
|
||||
enum Api {
|
||||
ExportDatas= '/system/dataMigration/exportDatas',
|
||||
DownloadDatas='/system/dataMigration/downloadDatas',
|
||||
LogList='/system/dataMigration/logList',
|
||||
LogDetails='/system/dataMigration/logDetails',
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 系统配置迁移-导出资源
|
||||
*/
|
||||
export async function exportDatas(params, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post(
|
||||
{
|
||||
url: Api.ExportDatas,
|
||||
data:params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @description: 根据uuid(目录名称)下载数据
|
||||
*/
|
||||
export async function downloadDatas(params?: object, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.download(
|
||||
{
|
||||
url: Api.DownloadDatas+"/"+params.uuid,
|
||||
method: 'GET',
|
||||
responseType: 'blob',
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @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,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -11,6 +11,7 @@ enum Api {
|
||||
SimpleTree = '/system/menu/simple-tree',
|
||||
TenantSimpleTree = '/system/menu/tenant-auth-tree',
|
||||
Menu = '/system/menu',
|
||||
MenuInfoByComponentPath = '/system/menu/info-by-component-path',
|
||||
Button = '/system/menu/button',
|
||||
Column = '/system/menu-colum/list',
|
||||
Form = '/system/menu-form/list',
|
||||
@ -197,3 +198,21 @@ export async function getMenuFormById(params, mode: ErrorMessageMode = 'modal')
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据组件路径查询菜单
|
||||
*/
|
||||
export async function getMenuByIdComponentPath(componentPath:String, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<MenuModel[]>(
|
||||
{
|
||||
url: Api.MenuInfoByComponentPath,
|
||||
params:{componentPath}
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user