From dacc22e47196a32cc5d5084e393b440ddff1c885 Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Thu, 27 Feb 2025 23:17:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/growthpath/GrowthFaceStu.vue | 33 ++++++++----------- .../growthpath/GrowthFaceTaskManage.vue | 2 +- .../growthpath/GrowthOnlineManage.vue | 9 +---- .../growthpath/GrowthOpenCourse.vue | 1 + src/components/growthpath/ImportStu.vue | 8 ++--- 5 files changed, 20 insertions(+), 33 deletions(-) diff --git a/src/components/growthpath/GrowthFaceStu.vue b/src/components/growthpath/GrowthFaceStu.vue index 0f42737e..0295403b 100644 --- a/src/components/growthpath/GrowthFaceStu.vue +++ b/src/components/growthpath/GrowthFaceStu.vue @@ -125,16 +125,11 @@ div style="margin-top: 20px; flex-wrap: wrap" v-if="data?.length" > -
+
添加学员
签到二维码
@@ -156,7 +150,6 @@ div style="margin-right: 20px" v-if="data[coursePlanIndex]?.assessmentId" @click="qrcodeAssement()" - :class="{ notClick: courseSelectRows.length > 0 }" >
评估二维码
@@ -164,7 +157,6 @@ div class="btn btn1" style="margin-right: 20px" @click="qrcodeVisible()" - :class="{ notClick: courseSelectRows.length > 0 }" >
开课二维码
@@ -187,7 +179,6 @@ div class="btn btn1" @click="exportTaskStu" style="margin-right: 20px" - :class="{ notClick: courseSelectRows.length > 0 }" >
导出签到数据
@@ -196,7 +187,6 @@ div class="btn btn1" @click="exportAssessment" v-if="data[coursePlanIndex]?.assessmentId" - :class="{ notClick: courseSelectRows.length > 0 }" >
导出评估数据
@@ -460,8 +450,6 @@ const columns = ref([ title: "考勤情况", ellipsis: true, className: "h", - dataIndex: "opacation", - key: "opacation", width: 130, align: "center", customRender: (text) => @@ -470,13 +458,19 @@ const columns = ref([
stuSign(text)} + onClick={(event) => { + event.stopPropagation(); + stuSign(text); + }} > 签到 stuSign(text)} + onClick={(event) => { + event.stopPropagation(); + stuSign(text); + }} > 请假 @@ -491,7 +485,7 @@ const columns = ref([ className: "h", dataIndex: "opacation", key: "opacation", - width: 130, + width: 80, align: "center", customRender: ({ record }) => data.value[coursePlanIndex.value].type == 4 || @@ -570,17 +564,17 @@ const batchSign = () => { .attendanceSign({ courseId: offcoursePlanId.value, ids: courseSelectRows.value?.map((t) => t.studentId), - taskId: props.datasource.id, taskType: props.datasource.taskType, type: 3, }) .then((res) => { message.success("签到成功"); + tableRef.value.fetch(); }) .catch((err) => { message.error("签到失败"); }); - tableRef.value.fetch(); + }, }); }; @@ -603,7 +597,6 @@ const batchSignAll = () => { .catch((err) => { message.error("签到失败"); }); - tableRef.value.fetch(); }, }); }; @@ -630,7 +623,7 @@ function stuSign(text) { // taskId: props.datasource.id, taskType: props.datasource.taskType, type: 3, - }); + }) } //搜索学员 diff --git a/src/components/growthpath/GrowthFaceTaskManage.vue b/src/components/growthpath/GrowthFaceTaskManage.vue index e0f0ec33..02640d79 100644 --- a/src/components/growthpath/GrowthFaceTaskManage.vue +++ b/src/components/growthpath/GrowthFaceTaskManage.vue @@ -315,7 +315,7 @@ const columns = ref([ dataIndex: "studentName", key: "studentName", width: 50, - align: "left", + align: "center", className: "classify", scopedSlots: { customRender: "action" }, customRender: (text) => ( diff --git a/src/components/growthpath/GrowthOnlineManage.vue b/src/components/growthpath/GrowthOnlineManage.vue index 96843df5..e1661bbc 100644 --- a/src/components/growthpath/GrowthOnlineManage.vue +++ b/src/components/growthpath/GrowthOnlineManage.vue @@ -286,7 +286,6 @@ export default { dataIndex: "stdPositionName", key: "stdPositionName", align: "center", - ellipsis: true, className: "h", customRender: (text) => { return ( @@ -306,7 +305,6 @@ export default { dataIndex: "qualsLevelDesr", key: "qualsLevelDesr", align: "center", - ellipsis: true, className: "h", customRender: (text) => { return ( @@ -326,7 +324,6 @@ export default { dataIndex: "bandCode", key: "bandCode", align: "center", - ellipsis: true, className: "h", customRender: (text) => { return ( @@ -344,7 +341,6 @@ export default { dataIndex: "joinMethod", key: "joinMethod", align: "center", - ellipsis: true, className: "h", customRender: ({ record: { joinMethod } }) => ({ @@ -357,7 +353,6 @@ export default { dataIndex: "progress", key: "progress", align: "center", - ellipsis: true, className: "h", customRender: (text) => { return ( @@ -372,8 +367,7 @@ export default { dataIndex: "finishTime", key: "finishTime", align: "center", - width: 150, - ellipsis: true, + width: 180, customRender: (text) => { return (
@@ -390,7 +384,6 @@ export default { dataIndex: "completionStatus", key: "completionStatus", align: "center", - ellipsis: true, className: "h", customRender: (text) => { return ( diff --git a/src/components/growthpath/GrowthOpenCourse.vue b/src/components/growthpath/GrowthOpenCourse.vue index 9442f13f..d256cf58 100644 --- a/src/components/growthpath/GrowthOpenCourse.vue +++ b/src/components/growthpath/GrowthOpenCourse.vue @@ -603,6 +603,7 @@ const columns = ref([ dataIndex: "teacher", key: "teacher", width: "20%", + ellipsis: true, align: "center", customRender: ({ record }) => { // const teachers = record.offteachers; diff --git a/src/components/growthpath/ImportStu.vue b/src/components/growthpath/ImportStu.vue index a8072eb6..59f98157 100644 --- a/src/components/growthpath/ImportStu.vue +++ b/src/components/growthpath/ImportStu.vue @@ -66,7 +66,7 @@ 上传失败
- {{ uploadpercent == 100 ? "上传成功" : "正在上传" }} + {{ uploadpercent == 100 ? "导入成功" : "正在上传" }}
@@ -189,8 +189,8 @@
- - + +
@@ -346,7 +346,7 @@ export default { }); state.fileName = info.file.name; let i = 0; - message.success("上传成功"); + message.success("导入成功"); if (info.file.response.code == 1) { state.fileList = []; state.addLoading = false;