| 12345678910111213141516171819202122232425262728293031323334353637 |
- import { defHttp } from '/@/utils/http/axios';
- import { Modal } from 'ant-design-vue';
- enum Api {
- list = '/safety/reportInfo/list',
- save = '/safety/reportInfo/createReportFile',
- deleteById = '/safety/reportInfo/delete',
- downLoad='/safety/reportInfo/download'
- }
- /**
- * 列表接口
- * @param params
- */
- export const list = (params) => defHttp.get({ url: Api.list, params });
- /**
- * 保存或者更新用户
- * @param params
- */
- export const save = (params) => defHttp.post({ url: Api.save, params });
- /**
- * 删除用户
- */
- export const deleteById = (params, handleSuccess) => {
- return defHttp.delete({ url: Api.deleteById, params }, { joinParamsToUrl: true }).then(() => {
- handleSuccess();
- });
- };
- /*
- 下载
- */
- export const downLoad = (params) => defHttp.post({ url: Api.downLoad, params, responseType: 'blob' });
|