|
@@ -21,86 +21,97 @@ enum Api {
|
|
checkUserName = '/service/manage/agentNew/checkUserName',
|
|
checkUserName = '/service/manage/agentNew/checkUserName',
|
|
logList = '/service/manage/agentNew/logList',
|
|
logList = '/service/manage/agentNew/logList',
|
|
export = '/service/manage/agentNew/export',
|
|
export = '/service/manage/agentNew/export',
|
|
- addIncrementNum = '/service/manage/agentNew/addIncrementNum'
|
|
|
|
|
|
+ addIncrementNum = '/service/manage/agentNew/addIncrementNum',
|
|
|
|
+ AgentLoglist = '/service/manage/manageAgentLog/list',
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* @description: Get sample list value
|
|
* @description: Get sample list value
|
|
*/
|
|
*/
|
|
|
|
|
|
- export const agentNewList = (params: PageParams) =>
|
|
|
|
- defHttp.post<Result>({
|
|
|
|
- url: Api.agentNewList,
|
|
|
|
- params: params,
|
|
|
|
- headers: {
|
|
|
|
- // @ts-ignore
|
|
|
|
- ignoreCancelToken: true,
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- export const agentNewAdd = (params: PageParams) =>
|
|
|
|
- defHttp.post<Result>({
|
|
|
|
- url: Api.agentNewAdd,
|
|
|
|
- params: params,
|
|
|
|
- headers: {
|
|
|
|
- // @ts-ignore
|
|
|
|
- ignoreCancelToken: true,
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- export const agentNewDel = (params: PageParams) =>
|
|
|
|
- defHttp.post<Result>({
|
|
|
|
- url: Api.agentNewDel,
|
|
|
|
- params: params,
|
|
|
|
- headers: {
|
|
|
|
- // @ts-ignore
|
|
|
|
- ignoreCancelToken: true,
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- export const agentNewUpdate = (params: PageParams) =>
|
|
|
|
- defHttp.post<Result>({
|
|
|
|
- url: Api.agentNewUpdate,
|
|
|
|
- params: params,
|
|
|
|
- headers: {
|
|
|
|
- // @ts-ignore
|
|
|
|
- ignoreCancelToken: true,
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- export const addIncrementNum = (params: PageParams) =>
|
|
|
|
- defHttp.post<Result>({
|
|
|
|
- url: Api.addIncrementNum,
|
|
|
|
- params: params,
|
|
|
|
- headers: {
|
|
|
|
- // @ts-ignore
|
|
|
|
- ignoreCancelToken: true,
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- export const checkUser = (params: PageParams) =>
|
|
|
|
- defHttp.get<Result>({
|
|
|
|
- url: Api.checkUserName,
|
|
|
|
- params: params,
|
|
|
|
- headers: {
|
|
|
|
- // @ts-ignore
|
|
|
|
- ignoreCancelToken: true,
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
|
|
+export const agentNewList = (params: PageParams) =>
|
|
|
|
+ defHttp.post<Result>({
|
|
|
|
+ url: Api.agentNewList,
|
|
|
|
+ params: params,
|
|
|
|
+ headers: {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ ignoreCancelToken: true,
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+export const agentNewAdd = (params: PageParams) =>
|
|
|
|
+ defHttp.post<Result>({
|
|
|
|
+ url: Api.agentNewAdd,
|
|
|
|
+ params: params,
|
|
|
|
+ headers: {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ ignoreCancelToken: true,
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+export const agentNewDel = (params: PageParams) =>
|
|
|
|
+ defHttp.post<Result>({
|
|
|
|
+ url: Api.agentNewDel,
|
|
|
|
+ params: params,
|
|
|
|
+ headers: {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ ignoreCancelToken: true,
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+export const agentNewUpdate = (params: PageParams) =>
|
|
|
|
+ defHttp.post<Result>({
|
|
|
|
+ url: Api.agentNewUpdate,
|
|
|
|
+ params: params,
|
|
|
|
+ headers: {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ ignoreCancelToken: true,
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+export const addIncrementNum = (params: PageParams) =>
|
|
|
|
+ defHttp.post<Result>({
|
|
|
|
+ url: Api.addIncrementNum,
|
|
|
|
+ params: params,
|
|
|
|
+ headers: {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ ignoreCancelToken: true,
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+export const checkUser = (params: PageParams) =>
|
|
|
|
+ defHttp.get<Result>({
|
|
|
|
+ url: Api.checkUserName,
|
|
|
|
+ params: params,
|
|
|
|
+ headers: {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ ignoreCancelToken: true,
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+
|
|
export const logListApi = (params: PageParams) =>
|
|
export const logListApi = (params: PageParams) =>
|
|
- defHttp.post<Result>({
|
|
|
|
- url: Api.logList,
|
|
|
|
- params: params,
|
|
|
|
- headers: {
|
|
|
|
- // @ts-ignore
|
|
|
|
- ignoreCancelToken: true,
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
|
|
+ defHttp.post<Result>({
|
|
|
|
+ url: Api.logList,
|
|
|
|
+ params: params,
|
|
|
|
+ headers: {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ ignoreCancelToken: true,
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+export const AgentLoglist = (params: PageParams) =>
|
|
|
|
+ defHttp.post<Result>({
|
|
|
|
+ url: Api.AgentLoglist,
|
|
|
|
+ params: params,
|
|
|
|
+ headers: {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ ignoreCancelToken: true,
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+
|
|
export const DownExport = (params: PageParams) =>
|
|
export const DownExport = (params: PageParams) =>
|
|
-defHttp.downloadFile<FileStream>({
|
|
|
|
- url: Api.export,
|
|
|
|
- params: params,
|
|
|
|
- fileName:'经销商销售统计.xlsx',
|
|
|
|
- // data: params,
|
|
|
|
- headers: {
|
|
|
|
- // @ts-ignore
|
|
|
|
- ignoreCancelToken: true,
|
|
|
|
- },
|
|
|
|
- responseType: 'blob'
|
|
|
|
-});
|
|
|
|
|
|
+ defHttp.downloadFile<FileStream>({
|
|
|
|
+ url: Api.export,
|
|
|
|
+ params: params,
|
|
|
|
+ fileName: '经销商销售统计.xlsx',
|
|
|
|
+ // data: params,
|
|
|
|
+ headers: {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ ignoreCancelToken: true,
|
|
|
|
+ },
|
|
|
|
+ responseType: 'blob',
|
|
|
|
+ });
|