From e002066da69d1155cf0c50ffe8dac85d6c2b621c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=86=E4=B8=AA=E7=99=BD?= <543593352@qq.com> Date: Fri, 8 Nov 2024 09:54:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E8=AE=BE=E8=AE=A1=EF=BC=9A?= =?UTF-8?q?=E9=A2=98=E6=BA=90=E5=90=8C=E6=AD=A52.0=20web=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classTask/container/newTask/taskTypeView.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue index 3252c0f..707fb53 100644 --- a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue +++ b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue @@ -251,6 +251,7 @@ import whiteboard from '@/components/whiteboard/whiteboard.vue' import prevReadMsgDialog from '@/views/classTask/container/newTask/prevReadMsg-Dialog.vue' import examDetailsDrawer from '@/components/exam-question/examDetailsDrawer.vue' +import { JYApiListCT, JYApiListOriginYear, JYApiListSO} from "@/utils/examQuestion/jyeoo" import { useToolState } from '@/store/modules/tool' import useUserStore from '@/store/modules/user' const userStore = useUserStore().user @@ -877,7 +878,19 @@ const showExamAnalyseDrawer = (row) => { -onMounted(() => { +onMounted(async() => { + // 获取当前学科下的试题题型 + const name = userStore.edustage + userStore.edusubject; + const jyCT = await JYApiListCT(proxy, name); + if (jyCT.length == 0) { + ElMessage.error('获取题型失败!'); + return; + } + entpCourseWorkTypeList.value = jyCT; + // 获取当前学科下的试题年份 + entpCourseWorkYearList.value = JYApiListOriginYear(); + entpCourseWorkGroupList.value = await JYApiListSO(proxy, name); + }) watch(() => props.propsformobj.uniquekey, (newVal) => {