| | |
| | | <el-table-column label="序号" prop="id" width="70"> </el-table-column> |
| | | <el-table-column label="名称" prop="name"> </el-table-column> |
| | | <el-table-column label="作业完成情况" #default="scope"> |
| | | <span v-if="scope.row.submitState == 'WaitCheck'" style="color: #ff6d00">待批改</span> |
| | | <span v-if="scope.row.submitState == 'WaitCheck'" style="color: #019e58">待批改</span> |
| | | <span v-if="scope.row.submitState == 'Normal'" style="color: #67c23a">已批改</span> |
| | | <span v-if="!scope.row.submitState" style="color: red">未提交</span> |
| | | </el-table-column> |
| | |
| | | { |
| | | 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([]) |
| | | |
| | | onMounted(() => { |
| | | const userCache: any = localStorage.getItem('jesk-userInfo') |
| | | const userCache: any = localStorage.getItem(config.userInfoKey) |
| | | if (userCache) { |
| | | userInfo.value = JSON.parse(userCache) |
| | | } |
| | |
| | | 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> |
| | | |
| | |
| | | color: #333; |
| | | line-height: 30px; |
| | | text-align: left; |
| | | border-left: 6px solid #ff6c00; |
| | | border-left: 6px solid #019e58; |
| | | padding-left: 10px; |
| | | } |
| | | } |
| | | margin-top: 20px; |
| | | ::v-deep .el-tabs__nav-wrap::after { |
| | | background-color: #ff6d00; |
| | | background-color: #019e58; |
| | | height: 1px; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | ::v-deep .is-active { |
| | | background-color: #ff6d00; |
| | | background-color: #019e58; |
| | | color: #fff; |
| | | border-radius: 3px 3px 0 0; |
| | | } |
| | |
| | | border-radius: 5px; |
| | | margin: 10px auto; |
| | | padding-bottom: 20px; |
| | | box-sizing: border-box; |
| | | .pubContent { |
| | | height: 800px; |
| | | } |