diff --git a/.env.development b/.env.development index 1767d8b3..1f463837 100644 --- a/.env.development +++ b/.env.development @@ -7,7 +7,7 @@ ENV = 'development' #VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7003' +#VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7003' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_API_Url = 'http://192.168.247.200' @@ -21,7 +21,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7003' # sit -#VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' +VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' # UAT diff --git a/src/components/examination/subject.vue b/src/components/examination/subject.vue index e7912540..24adec46 100644 --- a/src/components/examination/subject.vue +++ b/src/components/examination/subject.vue @@ -6,8 +6,8 @@ {{ item.tgtGrade }}分 - - {{ item.answerMethod === '02'? '仅文字回答':item.answerMethod === '03'? '仅语音回答':'不限制回答方式' }} + + {{ answerMethod }} @@ -149,7 +149,12 @@ backgroundColor: '#0066FF', border: '1rpx solid rgb(12, 123, 245)' }; - + const answerMethodMap = { + '01': '不限制回答方式', + '02': '仅文字回答', + '03': '仅语音回答' + }; + const answerMethod = computed(() => answerMethodMap[props.item?.answerMethod || ''] || ''); const emit = defineEmits(['subject_click', 'update:modelValue']); const props = defineProps({ modelValue: { diff --git a/src/pages/examination/index.vue b/src/pages/examination/index.vue index 407ded06..4f2443f2 100644 --- a/src/pages/examination/index.vue +++ b/src/pages/examination/index.vue @@ -407,6 +407,7 @@ } topicList.push( + ...examination.qnsInfoVos.map((res) => { const es_status = (() => { try { @@ -471,7 +472,8 @@ ...res, mark: false, es_status: es_status, - my_answer: my_answer + my_answer: my_answer, + answerMethod:answerMethod.value }; }) ); diff --git a/src/pages/practice/index.vue b/src/pages/practice/index.vue index 537bef06..ee8271c2 100644 --- a/src/pages/practice/index.vue +++ b/src/pages/practice/index.vue @@ -370,13 +370,13 @@ isPreview: false, clearResult: true, es_status: '', // 预设一下问答题的状态,'' 空为没有 00 转圈 01 播放,其他暂定 - my_answer: [] + my_answer: [], + answerMethod:answerMethod.value })); answerMethod.value = practice.answerMethod ?? '01' console.log('answerMethod', answerMethod.value); addProblem(); // 记录练习起始时间 - practiceStartTime = new Date().getTime(); setupKeyboardHeightListener((height) => { popup_input_bottom.value = `${height}px`;