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 @@ - - +