init
This commit is contained in:
2025-06-27 17:42:38 +08:00
commit bd6402478b
5317 changed files with 785994 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
const { createConfirm } = useMessage();
enum Api {
logFilesList = '/health-system/service/log/files',
logFilesDelete = '/health-system/service/log/file/delete',
logFilesLDown = '/health-system/service/log/file/down',
}
export const logFilesListApi = (params: any) => defHttp.get({ url: Api.logFilesList, params: params });
//文档删除
export const logFilesDeleteApi = (params: any, handleSuccess: Function) => {
createConfirm({
iconType: 'warning',
title: '确认删除',
content: '是否删除数据',
okText: '确认',
cancelText: '取消',
onOk: () => {
return defHttp
.get(
{
url: Api.logFilesDelete,
params,
},
{ joinParamsToUrl: true }
)
.then(() => {
handleSuccess();
});
},
});
};
export const logFilesLDownApi = (params: any) =>
defHttp.get(
{
url: Api.logFilesLDown,
params: params,
responseType: 'blob',
},
{ isTransformResponse: false }
);