From 02b9931c5e3a54d69d4d20a9dc6aad141fc35141 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 15 八月 2024 11:37:14 +0800
Subject: [PATCH] 恢复举手,隐藏举手顶部显示

---
 src/views/grade-list/data-list/index.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/views/grade-list/data-list/index.vue b/src/views/grade-list/data-list/index.vue
index cffad72..221d3a2 100644
--- a/src/views/grade-list/data-list/index.vue
+++ b/src/views/grade-list/data-list/index.vue
@@ -1,14 +1,17 @@
 <template>
   <div class="list-container w-full h-full">
     <el-scrollbar>
-      <el-card shadow="hover" class="mb-3" v-for="item in props.dataList">
+      <el-card shadow="hover" class="mb-3" v-for="item in props.dataList" :key="item.id">
         <div class="item flex justify-between items-center">
           <div class="left-container flex flex-col justify-between">
             <div class="top-container flex items-center">
               <div class="title mr-5 text-xl font-bold">{{ item.examName }}</div>
               <div class="tag">
-                <el-tag type="primary" effect="light" round>
+                <el-tag type="primary" effect="light" round v-if="item.status === 0">
                   宸叉壒鏀�
+                </el-tag>
+                <el-tag type="danger" effect="light" round v-if="item.status === 1">
+                  缂鸿��
                 </el-tag>
               </div>
             </div>
@@ -88,14 +91,15 @@
 
 const checkExam = (item) => {
   getGradeInfo(item.id).then((res) => {
-    const {id,examName, score,navbar,titleList} = res.data;
+    console.log(res.data);
+    const {id,examName, score,navbar,titleItems} = res.data;
     gradeStore.setExamInfo({
       id,
       examName,
       score,
       navbar
     });
-    gradeStore.setExamDetail(titleList);
+    gradeStore.setExamDetail(titleItems);
     gradeStore.initExam();
     router.push('/grade');
   }).catch(err => {

--
Gitblit v1.8.0