From 042e6e4bd96a5f67160939a146e769a47295b4a8 Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Fri, 24 Jan 2025 16:44:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E6=A6=82=E8=A7=88=E5=9B=BE=E8=A1=A8=E6=95=B0=E6=8D=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/growthpath.js | 2 + src/components/growthpath/StudentManage.vue | 10 +- src/views/growthpath/PathManage.vue | 111 +++++++++----------- 3 files changed, 58 insertions(+), 65 deletions(-) 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 @@