30 lines
836 B
TypeScript
30 lines
836 B
TypeScript
import { defHttp } from '/@/utils/http/axios';
|
|
import { useMessage } from "/@/hooks/web/useMessage";
|
|
|
|
const { createConfirm } = useMessage();
|
|
|
|
enum Api {
|
|
list = '/lwKhcl/lwKhcl/list',
|
|
cjList = '/lwKhcl/lwKhcl/cjList',
|
|
xqList = '/lwKhcl/lwKhcl/xqList',
|
|
exportXls = '/lwKhcl/lwKhcl/exportXls',
|
|
cjExportXls = '/lwKhcl/lwKhcl/cjExportXls',
|
|
xqExportXls = '/lwKhcl/lwKhcl/xqExportXls',
|
|
}
|
|
|
|
/**
|
|
* 导出api
|
|
* @param params
|
|
*/
|
|
export const getExportUrl = Api.exportXls;
|
|
export const getCjExportUrl = Api.cjExportXls;
|
|
export const getXqExportUrl = Api.xqExportXls;
|
|
|
|
/**
|
|
* 列表接口
|
|
* @param params
|
|
*/
|
|
export const list = (params) => defHttp.get({ url: Api.list, params });
|
|
export const cjList = (params) => defHttp.get({ url: Api.cjList, params });
|
|
export const xqList = (params) => defHttp.get({ url: Api.xqList, params });
|