diff --git a/src/api/growthpath.js b/src/api/growthpath.js index 9a44c166..58c80026 100644 --- a/src/api/growthpath.js +++ b/src/api/growthpath.js @@ -78,6 +78,8 @@ export const exportStudentTaskPage = (obj) => http.post('/professional/studentTa // 任务管理概览 export const taskInformation = (growthId) => http.get('/professional/managementOverview/taskInformation/' + growthId) +// 任务管理完成统计概览 +export const taskCompletionRate = (growthId) => http.get('/professional/managementOverview/taskCompletionRate/' + growthId) diff --git a/src/components/growthpath/StudentManage.vue b/src/components/growthpath/StudentManage.vue index 741d8b4a..330e6e40 100644 --- a/src/components/growthpath/StudentManage.vue +++ b/src/components/growthpath/StudentManage.vue @@ -437,19 +437,19 @@ const tablecolumns = ref([ }, { title: "完成状态", - dataIndex: "finishStatus", - key: "finishStatus", + dataIndex: "completionStatus", + key: "completionStatus", width: 100, align: "center", className: "h", ellipsis: true, - customRender: ({ record: { finishStatus } }) => + customRender: ({ record: { completionStatus } }) => ({ null: "未开始", 0: "未开始", 1: "已完成", 2: "进行中", - }[finishStatus] || "未开始"), + }[completionStatus] || "未开始"), }, { title: "操作", @@ -632,6 +632,8 @@ function submitCall(selectList) { tableData.value.loading = false; message.success("添加成功"); getStuList(); + }).catch(err =>{ + tableData.value.loading = false; }); } diff --git a/src/views/growthpath/PathManage.vue b/src/views/growthpath/PathManage.vue index a365672b..33fe15ff 100644 --- a/src/views/growthpath/PathManage.vue +++ b/src/views/growthpath/PathManage.vue @@ -95,7 +95,7 @@