feat: 模板编辑,添加选择系统/内部考试,更新公告,阶段任务方法添加

This commit is contained in:
王熙东
2022-11-16 10:43:34 +08:00
parent efcfb3efe6
commit 96544ab02b
4 changed files with 289 additions and 25 deletions

17
src/api/indexTemplate.js Normal file
View File

@@ -0,0 +1,17 @@
// 模板相关接口
import http from "./config";
//编辑项目模板
export const templateEdit = (obj) => http.post('/admin/project/template/edit',obj);
// 模板详情
export const templateDetail = (id) => http.get(`/admin/project/template/edit?projectTemplateId=${id}`);
// 删除阶段
export const deleteStage = (id) => http.delete(`/admin/project/template/deleteStage`,{stageId:id});
//删除任务
export const deleteTask = (id) => http.delete(`/admin/project/template/deleteTask`,{projectTaskIds:id});
// 移动任务到阶段
export const moveTask = (obj) => http.post('/admin/project/template/moveTask',obj);
// 新建或编辑阶段
export const editStage = (obj) => http.post('/admin/project/template/editStage',obj);
// 新建或编辑阶段任务
export const editTask = (obj) => http.post('/admin/project/template/editTask',obj);