| | |
| | | { |
| | | value: config.taskType.homeWork, |
| | | field: 'Type', |
| | | subFilters: [] |
| | | } |
| | | subFilters: [], |
| | | }, |
| | | ]) |
| | | // task |
| | | const taskData = reactive({ |
| | |
| | | state: '', |
| | | groupId: '', |
| | | beginDate: '', |
| | | endDate: '' |
| | | endDate: '', |
| | | }) |
| | | |
| | | const visiblePub = ref(false) |
| | |
| | | 'Embedded_QuestionBank_QuestionType', |
| | | 'Embedded_QuestionBank_Score', |
| | | 'Embedded_QuestionBank_Stem', |
| | | 'Embedded_QuestionBank_StemStyle' |
| | | 'Embedded_QuestionBank_StemStyle', |
| | | ] |
| | | |
| | | let pages = reactive({ |
| | |
| | | page: 1, |
| | | pageSize: 15, |
| | | count: 0, |
| | | loading: false |
| | | loading: false, |
| | | }) |
| | | // 作业列表 |
| | | const tableData: any = ref([]) |
| | |
| | | size: pages.pageSize, |
| | | sort: { |
| | | type: 'Desc', |
| | | field: 'CreateDate' |
| | | field: 'CreateDate', |
| | | }, |
| | | filterList, |
| | | searchList, |
| | | groupId: classInfo?.id |
| | | groupId: classInfo?.id, |
| | | } |
| | | MG.edu |
| | | .getTaskList(data) |
| | |
| | | ...item, |
| | | totalScore: item.judgeScore + item.otherScore, |
| | | beginDate: moment(item.beginDate).format('YYYY-MM-DD'), |
| | | endDate: moment(item.endDate).format('YYYY-MM-DD') |
| | | endDate: moment(item.endDate).format('YYYY-MM-DD'), |
| | | } |
| | | }) |
| | | } else { |
| | |
| | | { |
| | | compareType: 'Contains', |
| | | keywords: searchKey.value, |
| | | field: 'Name' |
| | | } |
| | | field: 'Name', |
| | | }, |
| | | ] |
| | | pages.page = 1 |
| | | pages.currentPage = 1 |
| | |
| | | |
| | | // 答题 |
| | | const answer = (item: any) => { |
| | | router.push({ |
| | | path: '/bookService/details/answer', |
| | | query: { |
| | | answerTitle: item.name, |
| | | taskId: item.id, |
| | | groupId: classInfo?.id, |
| | | answerType: 'task' |
| | | } |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: '正在建设中...', |
| | | }) |
| | | // router.push({ |
| | | // path: '/bookService/details/answer', |
| | | // query: { |
| | | // answerTitle: item.name, |
| | | // taskId: item.id, |
| | | // groupId: classInfo?.id, |
| | | // answerType: 'task', |
| | | // }, |
| | | // }) |
| | | } |
| | | |
| | | // 预览 |
| | | const preview = (item: any) => { |
| | | router.push({ |
| | | path: '/bookService/details/answer', |
| | | query: { |
| | | answerTitle: item.name, |
| | | taskId: item.id, |
| | | groupId: classInfo?.id, |
| | | answerType: 'task', |
| | | isPreview: 'true' |
| | | } |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: '正在建设中...', |
| | | }) |
| | | // router.push({ |
| | | // path: '/bookService/details/answer', |
| | | // query: { |
| | | // answerTitle: item.name, |
| | | // taskId: item.id, |
| | | // groupId: classInfo?.id, |
| | | // answerType: 'task', |
| | | // isPreview: 'true', |
| | | // }, |
| | | // }) |
| | | } |
| | | </script> |
| | | |
| | |
| | | border-radius: 5px; |
| | | margin: 10px auto; |
| | | padding-bottom: 20px; |
| | | box-sizing: border-box; |
| | | .pubContent { |
| | | height: 800px; |
| | | } |