项目书-基本信息 功能添加 10.23

master
zhc077 1 month ago
parent eaf3ea0327
commit 1d1fbb3602
  1. 6
      jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/project/controller/ProjectController.java
  2. 5
      jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/jiBenXinXi.api.ts

@ -67,6 +67,12 @@ public class ProjectController extends JeecgController<Project, IProjectService>
return Result.OK(pageList); return Result.OK(pageList);
} }
@ApiOperation(value = "项目表-根据id查询", notes = "项目表-根据id查询")
@GetMapping(value = "/getById")
public Result<Project> getById(Project project,HttpServletRequest req) {
return Result.OK(projectService.getById(project.getId()));
}
/** /**
* 添加 * 添加
* *

@ -5,6 +5,7 @@ const {createConfirm} = useMessage();
enum Api { enum Api {
list = '/project/project/list', list = '/project/project/list',
getOne = '/project/project/getById',
save = '/project/project/add', save = '/project/project/add',
shenbao = '/project/project/save4shenbao', shenbao = '/project/project/save4shenbao',
edit = '/project/project/edit', edit = '/project/project/edit',
@ -30,6 +31,10 @@ 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 getById = (params) =>
defHttp.get({url: Api.getOne, params});
/** /**
* 删除单个 * 删除单个
*/ */

Loading…
Cancel
Save