From 3a1933de583f2ebb2bfd6c9f2960f748fe8c3462 Mon Sep 17 00:00:00 2001
From: 黄何裕 <1053952480@qq.com>
Date: 星期五, 12 七月 2024 17:40:26 +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