|
|
@@ -201,11 +201,13 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { useExamStore } from '@/store/exam'
|
|
|
import { useUserStore } from '@/store/user'
|
|
|
+import { useAnalysisStore } from '@/store/analysis'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { onMounted ,ref,computed,onUnmounted,nextTick } from 'vue';
|
|
|
import ScanButton from './components/scanButton.vue'//扫描按钮
|
|
|
import UploadImage from './components/UploadImage.vue'//导入扫描图片
|
|
|
import {setExamNumberPosition,finishScanned,getExamScoreSummary,hasImportStudent,getBatchList,getCurrentBatchNo,deleteBatch,updateScanCount,setExamScanSetting,saveChooseCode} from '@/api/exam'
|
|
|
+import { queryQuestionGroupByAiId } from '@/api/analysis'
|
|
|
import scanCommon from '@/utils/scanCommon';
|
|
|
import { ElMessageBox, ElMessage } from 'element-plus'
|
|
|
import { formatTimestamp } from '@/utils/common';
|
|
|
@@ -215,6 +217,7 @@ import WebSocketManager from '@/utils/webSocket'//后端websocket链接js
|
|
|
// 实例化 Store
|
|
|
const examStore = useExamStore()
|
|
|
const userStore = useUserStore()
|
|
|
+const analysisStore = useAnalysisStore()
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
@@ -239,6 +242,7 @@ const examSubjectCode=computed(() => {
|
|
|
const currentUserName=computed(() => {
|
|
|
return userStore.userName;
|
|
|
})
|
|
|
+const isShowGroupAnalysis = computed(() => analysisStore?.isShowGroupAnalysis || false);
|
|
|
//查询是否导入了学生名单
|
|
|
const HasImportStudent = async () => {
|
|
|
const params = {
|
|
|
@@ -472,6 +476,18 @@ const FinishScanned= async () =>{
|
|
|
{
|
|
|
ElMessage.success("完成成功!")
|
|
|
finishLoading.value=false;
|
|
|
+ //显示成绩查询
|
|
|
+ const stepFlow=examStore.currentExam?.stepFlow < 2;
|
|
|
+ if(stepFlow){
|
|
|
+ examStore.setExamInfo({
|
|
|
+ ...examStore.currentExam,
|
|
|
+ stepFlow:2,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ //是否显示分组分析
|
|
|
+ const res = await queryQuestionGroupByAiId(examSubjectId.value);
|
|
|
+ const isShow = res.code === 200;
|
|
|
+ analysisStore.setIsShowGroupAnalysis(isShow);
|
|
|
}
|
|
|
else
|
|
|
{
|