| | |
| | | const currentIndex = ref(0); |
| | | |
| | | const getActiveQuestion = computed(() => { |
| | | console.log("sb", currentType.value) |
| | | const temp = examDetail.value.find(item => item.questionType === currentType.value); |
| | | if (temp) { |
| | | return temp.questionList[currentIndex.value]; |
| | |
| | | const setExamDetail = (detail) => { |
| | | examDetail.value = detail; |
| | | }; |
| | | const initExam = () => { |
| | | const initExam = (questionType) => { |
| | | currentIndex.value = 0; |
| | | currentType.value = 1; |
| | | currentType.value = questionType; |
| | | } |
| | | return { |
| | | examInfo, |
| | |
| | | navbar |
| | | }); |
| | | gradeStore.setExamDetail(titleItems); |
| | | gradeStore.initExam(); |
| | | gradeStore.initExam(res.data.titleItems[0].questionType); |
| | | router.push('/grade'); |
| | | }).catch(err => { |
| | | |
| | |
| | | .bottom-item { |
| | | margin-right: 30px; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | </div> |
| | | |
| | | <div class="card-footer flex justify-center mb-7 shrink-0"> |
| | | <el-pagination background layout="prev, pager, next" |
| | | :total="dataList.length" |
| | | <el-pagination background layout="prev, pager, next" |
| | | :total="dataList.length" |
| | | :default-page-size="currentSize" |
| | | :currentPage="currentIndex" |
| | | :hide-on-single-page="true" |
| | |
| | | loading.value = true; |
| | | getGradeList({examName: searchText.value, pageIndex: currentIndex.value, pageSize: currentSize.value}).then(res => { |
| | | dataList.value = res.data.list; |
| | | console.log(dataList.value, "wwww") |
| | | loading.value = false; |
| | | }).catch(err => { |
| | | loading.value = false; |
| | |
| | | :deep(.el-tabs__nav-wrap:after) { |
| | | display: none; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | {{ examInfo.examName }} |
| | | </div> |
| | | <AnswerGrade></AnswerGrade> |
| | | |
| | | |
| | | <div class="return-container grow flex justify-end"> |
| | | <el-button type="danger" size="large" circle @click="closeClick"> |
| | | <template #icon> |
| | |
| | | |
| | | const gradeStore = useGradeStore(); |
| | | const { currentType, currentIndex, examDetail, examType, examInfo } = storeToRefs(gradeStore); |
| | | |
| | | console.log("我草泥马:", storeToRefs(gradeStore)) |
| | | const typeComponent = { |
| | | 1: AnswerSingle, |
| | | 2: AnswerMultiple, |
| | |
| | | background-color: rgba($color: #3680fa, $alpha: 0.2); |
| | | margin-bottom: 20px; |
| | | } |
| | | </style> |
| | | </style> |