mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-02-03 09:05:28 +08:00
前端和后端源码,合并到一个git仓库中,方便用户下载,避免前后端不匹配的问题
This commit is contained in:
32
jeecgboot-vue3/src/views/demo/vextable/api.ts
Normal file
32
jeecgboot-vue3/src/views/demo/vextable/api.ts
Normal file
@ -0,0 +1,32 @@
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
|
||||
enum Api {
|
||||
list = '/test/jeecgOrderMain/list',
|
||||
delete = '/test/jeecgOrderMain/delete',
|
||||
orderCustomerList = '/test/jeecgOrderMain/queryOrderCustomerListByMainId',
|
||||
orderTicketList = '/test/jeecgOrderMain/queryOrderTicketListByMainId',
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表接口
|
||||
* @param params
|
||||
*/
|
||||
export const list = (params) => defHttp.get({ url: Api.list, params });
|
||||
/**
|
||||
* 子表单信息
|
||||
* @param params
|
||||
*/
|
||||
export const orderTicketList = (params) => defHttp.get({ url: Api.orderTicketList, params });
|
||||
/**
|
||||
* 子表单信息
|
||||
* @param params
|
||||
*/
|
||||
export const orderCustomerList = (params) => defHttp.get({ url: Api.orderCustomerList, params });
|
||||
/**
|
||||
* 删除用户
|
||||
*/
|
||||
export const deleteOne = (params, handleSuccess) => {
|
||||
return defHttp.delete({ url: Api.delete, params }, { joinParamsToUrl: true }).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user