fuliqi
2024-08-15 02b9931c5e3a54d69d4d20a9dc6aad141fc35141
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 => {