From 96544ab02b562b914b43433f913c5f3e04ea614d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E4=B8=9C?= <2195178163@qq.com> Date: Wed, 16 Nov 2022 10:43:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A8=A1=E6=9D=BF=E7=BC=96=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E9=80=89=E6=8B=A9=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?/=E5=86=85=E9=83=A8=E8=80=83=E8=AF=95,=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=85=AC=E5=91=8A,=E9=98=B6=E6=AE=B5=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexTemplate.js | 17 ++ src/components/drawers/AddTest.vue | 8 + src/views/projectcenter/LibraryAdd.vue | 287 ++++++++++++++++++-- src/views/projectcenter/TemplateLibrary.vue | 2 +- 4 files changed, 289 insertions(+), 25 deletions(-) create mode 100644 src/api/indexTemplate.js diff --git a/src/api/indexTemplate.js b/src/api/indexTemplate.js new file mode 100644 index 00000000..713e349a --- /dev/null +++ b/src/api/indexTemplate.js @@ -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); \ No newline at end of file diff --git a/src/components/drawers/AddTest.vue b/src/components/drawers/AddTest.vue index c04ab2be..fbd6c832 100644 --- a/src/components/drawers/AddTest.vue +++ b/src/components/drawers/AddTest.vue @@ -15,6 +15,13 @@ @click="closeDrawer" /> +
+ 系统考试 + 外部考试 +
{ diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue index eb1b0eb1..87f27829 100644 --- a/src/views/projectcenter/LibraryAdd.vue +++ b/src/views/projectcenter/LibraryAdd.vue @@ -200,7 +200,7 @@ : 'none', }" > - + 考勤
- + 二维码
- + 管理
@@ -308,7 +308,7 @@
 
-
发布
+
发布
@@ -388,51 +388,78 @@
基本信息 + 编辑

-
项目名称:
+
模板名称:
- 管理者进阶 - 管理者腾飞班 +
封面图:
- + + + +
-
项目时间:
+
模板时间:
- 2022-7-16 12:30 ~ 2022-7-30 12:30 +
项目经理:
- 张雪 +
资源归属:
- - +
-
项目说明:
+
模板说明:
- - +
同步学习记录:
- 同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)
项目级别:
- - +
培训体系:
- - +
是否BOEU实施:
- BOEU实施
+
+ 取消 + 保存 +
@@ -467,7 +509,7 @@
-
+
上传共享文档
@@ -548,7 +590,9 @@