From 1f06c11bdac340712d869149350f5da8a2111af2 Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Tue, 21 Jan 2025 17:20:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=93=E4=B8=9A=E5=8A=9B=E5=BF=85=E4=BF=AE?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83=E9=83=A8=E7=BD=B2=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/growthpath.js | 7 +- src/api/method.js | 4 +- src/components/growthpath/CommonHomework.vue | 355 +++++ src/components/growthpath/CommonTest.vue | 744 +++++++++ .../growthpath/GrowthAssessment.vue | 518 +++--- src/components/growthpath/GrowthInvist.vue | 1 - .../growthpath/GrowthLineCourse.vue | 91 +- .../growthpath/GrowthOpenCourse.vue | 1414 +++++++++++++++++ src/views/growthpath/EditingTasks.vue | 21 +- src/views/growthpath/PathManage.vue | 47 +- vue.config.js | 4 +- 11 files changed, 2798 insertions(+), 408 deletions(-) create mode 100644 src/components/growthpath/CommonHomework.vue create mode 100644 src/components/growthpath/CommonTest.vue create mode 100644 src/components/growthpath/GrowthOpenCourse.vue diff --git a/src/api/growthpath.js b/src/api/growthpath.js index 8a9c5f91..29a342a8 100644 --- a/src/api/growthpath.js +++ b/src/api/growthpath.js @@ -19,6 +19,10 @@ export const publishedTask = (id) => http.get(API_URL + '/professional/task/publ export const withdrawTask = (id) => http.get(API_URL + '/professional/task/withdrawal/' + id) //批量删除学习任务 export const deleteTask = (ids) => http.get(API_URL + '/professional/task/delete/' + ids) + + +//列表排序 +export const toSortTask = (ids) => http.get(API_URL + `/professional/task/sortTask/` + ids) //新增、编辑成长路径 // export const addEdit = (obj) => http.post('/admin/grow/edit', obj) //编辑获取路径信息 @@ -48,8 +52,7 @@ export const copyCreate = (obj) => http.post('/admin/grow/copy', obj) export const removeTask = (obj) => http.post(`/admin/grow/removeTask?growId=${obj.growId}&taskIdList=${obj.taskId}`) //改变选修必修 export const isRequiredTask = (obj) => http.post(`/admin/grow/isRequiredTask?taskId=${obj.taskId}`) -//列表排序 -export const toSortTask = (obj) => http.post(`/admin/grow/toSortTask?taskIdList=${obj}`) + //获取学员列表 export const getGrowStudent = (obj) => http.get('/admin/student/getGrowStudent', { params: obj }) //获取查看详情 diff --git a/src/api/method.js b/src/api/method.js index cb856747..31bd834c 100644 --- a/src/api/method.js +++ b/src/api/method.js @@ -278,8 +278,8 @@ const commonData = { const organizationalTree = [] //嵌套页面 -// const iframeUrl = window.location.protocol + process.env.VUE_APP_IFRAME_URL -const iframeUrl = 'http://localhost:80/pc/iframe' +const iframeUrl = window.location.protocol + process.env.VUE_APP_IFRAME_URL +// const iframeUrl = 'http://localhost:80/pc/iframe' //学员端路由 const studentUrl = window.location.protocol + process.env.VUE_APP_IFRAME_STUDENT_URL const teacherUrl = window.location.protocol + process.env.VUE_APP_IFRAME_TEACHER_URL diff --git a/src/components/growthpath/CommonHomework.vue b/src/components/growthpath/CommonHomework.vue new file mode 100644 index 00000000..daf49c92 --- /dev/null +++ b/src/components/growthpath/CommonHomework.vue @@ -0,0 +1,355 @@ + + + diff --git a/src/components/growthpath/CommonTest.vue b/src/components/growthpath/CommonTest.vue new file mode 100644 index 00000000..2979ed0e --- /dev/null +++ b/src/components/growthpath/CommonTest.vue @@ -0,0 +1,744 @@ + + + diff --git a/src/components/growthpath/GrowthAssessment.vue b/src/components/growthpath/GrowthAssessment.vue index 2a2a0a58..941afa55 100644 --- a/src/components/growthpath/GrowthAssessment.vue +++ b/src/components/growthpath/GrowthAssessment.vue @@ -1,65 +1,123 @@ - diff --git a/src/views/growthpath/EditingTasks.vue b/src/views/growthpath/EditingTasks.vue index d205fb0b..3ab0fe29 100644 --- a/src/views/growthpath/EditingTasks.vue +++ b/src/views/growthpath/EditingTasks.vue @@ -251,15 +251,13 @@ - - +