diff --git a/src/renderer/src/views/classTask/classTask.vue b/src/renderer/src/views/classTask/classTask.vue index 61107f9..46897d7 100644 --- a/src/renderer/src/views/classTask/classTask.vue +++ b/src/renderer/src/views/classTask/classTask.vue @@ -48,7 +48,6 @@ > - @@ -57,19 +56,16 @@ import { ref, onMounted, onUnmounted, computed, watch } from 'vue' import { listByDeadDate, listClassworkdata } from '@/api/classTask' import TaskItem from '@/views/classTask/container/classTask/task-item.vue' -// import ItemDialog from '@/views/classTask/container/item-dialog.vue' import { useToolState } from '@/store/modules/tool' -import { getCurrentTime, getDateFormatDate, getTheOtherDay, getTheOtheNextDay } from '@/utils/date' +import { getDateFormatDate, getTheOtherDay, getTheOtheNextDay } from '@/utils/date' import useUserStore from '@/store/modules/user' import {createWindow} from '@/utils/tool' -import {sessionStore} from '@/utils/store' import {debounce } from '@/utils/comm' const toolState = useToolState(); - const userStore = useUserStore().user -// const itemDialogRef = ref(null) + const tabOptions = ref(['待批改', '已批改']) const tabActive = ref('待批改') const dataList = ref([]) @@ -104,12 +100,6 @@ const deleteReserv = (item) => { // }) } - -// 当日之后的日期禁用 -const disabledDate = (time) => { - return time.getTime() > Date.now() -} - const changeStartEndDate = (val) => { console.log('起止日期改变', val) getData() // 加载数据 diff --git a/src/renderer/src/views/classTask/container/item-dialog.vue b/src/renderer/src/views/classTask/container/item-dialog.vue deleted file mode 100644 index 717cb0d..0000000 --- a/src/renderer/src/views/classTask/container/item-dialog.vue +++ /dev/null @@ -1,821 +0,0 @@ - - - - - - - diff --git a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue index 3252c0f..833a403 100644 --- a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue +++ b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue @@ -238,7 +238,7 @@ import { useRouter } from 'vue-router' import {listEntpcoursework, listEntpcourseworkNew, getEntpcoursework} from '@/api/education/entpCourseWork' import { addClassworkReturnId } from '@/api/teaching/classwork' -import { updateClasswork, listEvaluationclue,readFile, listClassworkeval,delClassworkeval,addClassworkeval,updateClassworkeval } from '@/api/classTask' +import { updateClasswork, listEvaluationclue, listClassworkeval,delClassworkeval,addClassworkeval,updateClassworkeval } from '@/api/classTask' import { listEvaluation } from '@/api/subject' import { listEntpcoursefile } from '@/api/education/entpcoursefile' import { listKnowledgePoint } from "@/api/knowledge/knowledgePoint"; @@ -250,6 +250,7 @@ import FileUpload from "@/components/FileUpload/index.vue"; 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' @@ -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) => {