From c6d7797e671d46334726e5df1bac698722aa6eb7 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 09 七月 2024 14:21:17 +0800
Subject: [PATCH] 添加学生时,校验密码、手机号

---
 src/views/exam/exam/ExamManage.vue |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/views/exam/exam/ExamManage.vue b/src/views/exam/exam/ExamManage.vue
index 11054e4..742481a 100644
--- a/src/views/exam/exam/ExamManage.vue
+++ b/src/views/exam/exam/ExamManage.vue
@@ -35,10 +35,10 @@
         label="鍙傝�冪彮绾�"
         prop="className"
       ></el-table-column>
-      <el-table-column
-        label="鐝骇浜烘暟"
-        prop="studentNum"
-      ></el-table-column>
+<!--      <el-table-column-->
+<!--        label="鐝骇浜烘暟"-->
+<!--        prop="studentNum"-->
+<!--      ></el-table-column>-->
       <el-table-column
         label="鑰冭瘯鍦扮偣"
         prop="examPlace"
@@ -72,8 +72,17 @@
             @click="handlerEdit(scope.row)"
           >淇敼
           </el-button>
+          <el-popconfirm
+            v-if="scope.row.status === 'not_start'"
+            style="margin: 0 5px"
+            title="纭畾瑕佸垹闄よ鑰冭瘯鍚楋紵"
+            @confirm="deleteExam(scope.row.id)"
+          >
+            <el-button slot="reference" type="danger" size="small">鍒犻櫎</el-button>
+          </el-popconfirm>
+
+          <el-button v-if="scope.row.status === 'finished'" type="success" size="small" @click="markPaper(scope.row)">闃呭嵎</el-button>
           <el-button type="danger" size="small" @click="deleteExam(scope.row.id)">鍒犻櫎</el-button>
-          <el-button type="success" size="small" @click="markPaper(scope.row)">闃呭嵎</el-button>
           <el-button type="warning" size="small" @click="monitor(scope.row)">鐩戞帶</el-button>
         </template>
       </el-table-column>

--
Gitblit v1.8.0