修改部署问题2

master
喻忠伟 2 weeks ago
parent 123a10f7ae
commit 084f0b99df
  1. 30
      jeecgboot-vue3/src/views/projectApplication/project/Project.api.ts

@ -5,14 +5,22 @@ const {createConfirm} = useMessage();
enum Api { enum Api {
list = '/project/project/list', list = '/project/project/list',
projectType = '/projectType/getProjectTypeList',
departDtoInfo = '/project/project/getDepartDtoInfo',
save = '/project/project/add', save = '/project/project/add',
edit = '/project/project/edit', edit = '/project/project/edit',
deleteOne = '/project/project/delete', deleteOne = '/project/project/delete',
submitOne = '/project/project/submitApply',
rollbackOne = '/project/project/rollbackProject',
deleteBatch = '/project/project/deleteBatch', deleteBatch = '/project/project/deleteBatch',
importExcel = '/project/project/importExcel', importExcel = '/project/project/importExcel',
exportXls = '/project/project/exportXls', exportXls = '/project/project/exportXls',
} }
export const getDepartDtoByProjectId = (params) =>
defHttp.get({url: Api.departDtoInfo, params});
/** /**
* 导出api * 导出api
* @param params * @param params
@ -29,6 +37,14 @@ export const getImportUrl = Api.importExcel;
export const list = (params) => export const list = (params) =>
defHttp.get({url: Api.list, params}); defHttp.get({url: Api.list, params});
export const getProjectTypeList = (params) =>
defHttp.get({url: Api.projectType, params});
export const getDepartBaseInfo = (params) =>
defHttp.get({url: Api.departBaseInfo, params});
/** /**
* 删除单个 * 删除单个
*/ */
@ -37,6 +53,20 @@ export const deleteOne = (params, handleSuccess) => {
handleSuccess(); handleSuccess();
}); });
} }
export const submitOne = (params, handleSuccess) => {
return defHttp.post({url: Api.submitOne, params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
export const rollbackOne = (params, handleSuccess) => {
return defHttp.post({url: Api.rollbackOne, params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
/** /**
* 批量删除 * 批量删除
* @param params * @param params

Loading…
Cancel
Save