From fbd9c491ebe32558c8fcefffeaa103d2fcb79a27 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 31 十月 2024 20:40:48 +0800
Subject: [PATCH] 查看试卷bug

---
 src/views/exam-list/data-list/index.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/views/exam-list/data-list/index.vue b/src/views/exam-list/data-list/index.vue
index 8f1c21c..c4d9735 100644
--- a/src/views/exam-list/data-list/index.vue
+++ b/src/views/exam-list/data-list/index.vue
@@ -11,6 +11,7 @@
                   {{ stateList[item.status].text }}
                 </el-tag>
               </div>
+              <div v-if="!item.isContinue" style="margin-left: 15px">鎮ㄥ凡鎻愪氦璇曞嵎</div>
             </div>
             <div class="mid-container flex items-center my-4 text-gray-700">
               <el-icon class="mr-1">
@@ -35,7 +36,7 @@
           <div class="right-container">
             <div class="button-container">
               <el-button type="primary" size="large" @click="examClick(item)"
-                :disabled="stateList[item.status].disabled">寮�濮嬭�冭瘯</el-button>
+                :disabled="stateList[item.status].disabled || !item.isContinue">寮�濮嬭�冭瘯</el-button>
             </div>
           </div>
         </div>
@@ -62,7 +63,7 @@
 });
 
 const stateList = {
-  1: {
+  'not_start': {
     text: '鏈紑濮�',
     type: 'primary',
     disabled: true
@@ -76,6 +77,11 @@
     text: '宸茬粨鏉�',
     type: 'info',
     disabled: true
+  },
+  'cancel': {
+    text: '宸蹭綔搴�',
+    type: 'danger',
+    disabled: true
   }
 };
 

--
Gitblit v1.8.0