From a3ca45b775907ca98dd0163d854d5f25967519c8 Mon Sep 17 00:00:00 2001 From: lixg Date: Fri, 3 Feb 2023 18:40:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index1.js | 14 +- .../drawers/project/AddCertificate.vue | 641 +++++++----------- .../drawers/project/CreateCertificate.vue | 76 ++- src/views/projectcenter/TaskPage.vue | 28 +- 4 files changed, 321 insertions(+), 438 deletions(-) diff --git a/src/api/index1.js b/src/api/index1.js index 1a2376f0..537ad5e5 100644 --- a/src/api/index1.js +++ b/src/api/index1.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-04 22:45:31 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2023-02-01 11:07:17 + * @LastEditTime: 2023-02-03 18:39:27 * @FilePath: /fe-manage/src/api/index1.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -190,4 +190,14 @@ export const getImportStatus = (uuid) => http.get('/admin/student/getImportStatu // 面授课导入学员 export const FaceTeachImportStudent = (obj) => http.post('/admin/student/importStudent', obj, { headers: { "Content-Type": "multipart/form-data" } }) //成绩录入 -export const updateStudent = (obj) => http.post('/admin/student/homeWorkScoreEntry', obj) \ No newline at end of file +export const updateStudent = (obj) => http.post('/admin/student/homeWorkScoreEntry', obj) + + +//获取证书列表 +export const certificate = (obj) => http.get('/admin/certificate/page', { params: obj }) +//添加证书 +export const saveupdatecertificate = (obj) => http.post('/admin/certificate/saveOrUpdate', obj) +//删除证书 +export const certificatedel = (obj) => http.get('/admin/certificate/del', { params: obj }) +//证书详情 +export const certificatedetail = (obj) => http.post('/admin/certificate/get', obj) \ No newline at end of file diff --git a/src/components/drawers/project/AddCertificate.vue b/src/components/drawers/project/AddCertificate.vue index c50083c3..7b217634 100644 --- a/src/components/drawers/project/AddCertificate.vue +++ b/src/components/drawers/project/AddCertificate.vue @@ -18,7 +18,6 @@
-
@@ -31,15 +30,15 @@
-
+ +
+
+
+ +
+ 证书封面: +
+
+ + avatar +
+ + +
+
+
+
+
+ 建议尺寸:750*348 格式支持jpg、gif、png、jpeg、svg、bmp +
+
+
+
+
+ 证书说明: +
+
+
- - -
- 设置获得条件 -
-
- + 设置获得条件
+
-
- +
+
- - - 完成项目 + + + 完成项目 -
-
- - 全部任务 - 完成必修任务 - +
+
+ + 全部任务 + 完成必修任务 +
- - 完成阶段 - -
-
- - 第一阶段 - 第二阶段 - 第三阶段 - + + 完成阶段 + +
+
+ + 第一阶段 + 第二阶段 + 第三阶段 +
- - 完成任务 - -
-
- - 任务一 - 任务二 - 任务三 - + + 完成任务 + +
+
+ + 任务一 + 任务二 + 任务三 +
- - 考试合格 - -
-
- - 考试一 - 考试二 - 考试三 - + + 考试合格 + +
+
+ + 考试一 + 考试二 + 考试三 +
- - 获得积分 - -
-
- 高于 - - 分可获得,当前项目积分为 10 分 + + 获得积分 + +
+
+ 高于 + + 分可获得,当前项目积分为 10 分
- + +
+
-
+
- +
- +