diff --git a/src/components/growthpath/GrowthFaceStu.vue b/src/components/growthpath/GrowthFaceStu.vue index 2b057b2a..75bd2377 100644 --- a/src/components/growthpath/GrowthFaceStu.vue +++ b/src/components/growthpath/GrowthFaceStu.vue @@ -513,13 +513,15 @@ watch( () => { coursePlanIndex.value = 0; params.value.pid = data.value[coursePlanIndex.value]?.id || 0; - if (data.value[coursePlanIndex.value].type !== 4) { + if ( + data.value[coursePlanIndex.value] && + data.value[coursePlanIndex.value].type !== 4 + ) { columns.value = [...columns2]; } else { columns.value = [...columns2, ...columns1]; } tableRef.value.fetch(); - console.log(1111111); } ); @@ -599,6 +601,7 @@ const batchSignAll = () => { }) .then((res) => { message.success("签到成功"); + tableRef.value.fetch(); }) .catch((err) => { message.error("签到失败"); @@ -671,7 +674,7 @@ function afterVisibleChange(bool) { function resetStudentPage() { tableRef.value.reset({ pid: data.value[coursePlanIndex.value]?.id, - type: 18, + type: 3, }); } diff --git a/src/views/growthpath/PathManage.vue b/src/views/growthpath/PathManage.vue index 6123706e..c0dded03 100644 --- a/src/views/growthpath/PathManage.vue +++ b/src/views/growthpath/PathManage.vue @@ -402,18 +402,20 @@ @@ -443,18 +445,20 @@ @@ -528,7 +532,9 @@