From 0d3af1e3612bf691d11ecaf8b013638808a73d7f Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 29 十月 2024 14:37:08 +0800 Subject: [PATCH] 会议列表状态样式优化 --- src/views/exam-list/data-list/index.vue | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/views/exam-list/data-list/index.vue b/src/views/exam-list/data-list/index.vue index 11ed91c..dcf1a5d 100644 --- a/src/views/exam-list/data-list/index.vue +++ b/src/views/exam-list/data-list/index.vue @@ -52,7 +52,6 @@ import { getExamInfo } from '@/api/modules/exam.js'; const examStore = useExamStore(); - const router = useRouter(); const props = defineProps({ @@ -63,7 +62,7 @@ }); const stateList = { - 1: { + 'not_start': { text: '鏈紑濮�', type: 'primary', disabled: true @@ -73,9 +72,14 @@ type: 'success', disabled: false }, - 3: { + 'finished': { text: '宸茬粨鏉�', type: 'info', + disabled: true + }, + 'cancel': { + text: '宸蹭綔搴�', + type: 'danger', disabled: true } }; @@ -84,13 +88,12 @@ console.log(exam); getExamInfo(exam.id).then((res) => { examStore.setExamInfo({ + id: res.data.id, examName: res.data.examName, - examTime: res.data.suggestTime, + suggestTime: res.data.suggestTime, }); examStore.setExamDetail(res.data.titleList); - // examStore.setExamInfo(res.data.examInfo); - // examStore.setExamDetail(res.data.examQuestionList); - // examStore.initExam(); + examStore.initExam(res.data.titleList[0].questionType); router.push('/exam'); }).catch(err => { @@ -108,4 +111,4 @@ .bottom-item { margin-right: 30px; } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0