From 91645e9d87249621aa358ef519111ea72679d959 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期五, 11 十月 2024 13:34:05 +0800
Subject: [PATCH] 修改

---
 src/views/onlineEducation/count/components/studentList.vue |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/views/onlineEducation/count/components/studentList.vue b/src/views/onlineEducation/count/components/studentList.vue
index ccf1759..0503dec 100644
--- a/src/views/onlineEducation/count/components/studentList.vue
+++ b/src/views/onlineEducation/count/components/studentList.vue
@@ -14,16 +14,19 @@
       <el-table-column
         prop="name"
         label="姓名"
+        align="center"
       >
       </el-table-column>
       <el-table-column
         label="身份证号"
         prop="idcard"
+        align="center"
         width="160" :show-overflow-tooltip="true">
       </el-table-column>
       <el-table-column
         prop="lessonTocal"
         label="总学时"
+        align="center"
       >
         <template #default="scope">
           {{type == 'batch' ? scope.row.batchLessonNum : scope.row.courseLessonNum}}
@@ -32,10 +35,13 @@
       <el-table-column
         prop="lessonNum"
         label="已学学时"
+        align="center"
       ></el-table-column>
       <el-table-column
         prop="finishStatus"
         label="是否已结束培训"
+        width="175"
+        align="center"
       >
         <template #default="scope">
           {{scope.row.finishStatus == 0 ? '未结束' : '已结束'}}
@@ -51,6 +57,17 @@
             style="color: #1890ff"
             @click="viewLessonReport(scope.row.url)"
           >查看学时报告</el-button>
+        </template>
+      </el-table-column>
+      <el-table-column label="未达标短信提醒" align="center" class-name="small-padding fixed-width">
+        <template #default="scope">
+          <el-button
+            v-if="scope.row.finishStatus == 0"
+            size="mini"
+            type="text"
+            style="color: #1890ff"
+            @click="sendMessage(scope.row)"
+          >短信提醒</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -145,6 +162,17 @@
     },
     viewLessonReport(data){
       this.$refs.lessonRef.openDialog(data)
+    },
+    sendMessage(row){
+      this.$confirm('此操作将向该学员发送短信, 是否继续?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(async () => {
+
+      }).catch(() => {
+
+      });
     }
   }
 }

--
Gitblit v1.9.2