xiangpei
2024-10-31 fbd9c491ebe32558c8fcefffeaa103d2fcb79a27
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>
@@ -52,7 +53,6 @@
import { getExamInfo } from '@/api/modules/exam.js';
const examStore = useExamStore();
const router = useRouter();
const props = defineProps({
@@ -63,7 +63,7 @@
});
const stateList = {
  1: {
  'not_start': {
    text: '未开始',
    type: 'primary',
    disabled: true
@@ -77,6 +77,11 @@
    text: '已结束',
    type: 'info',
    disabled: true
  },
  'cancel': {
    text: '已作废',
    type: 'danger',
    disabled: true
  }
};
@@ -89,7 +94,7 @@
      suggestTime: res.data.suggestTime,
    });
    examStore.setExamDetail(res.data.titleList);
    examStore.initExam();
    examStore.initExam(res.data.titleList[0].questionType);
    router.push('/exam');
  }).catch(err => {
@@ -107,4 +112,4 @@
.bottom-item {
  margin-right: 30px;
}
</style>
</style>