| | |
| | | const options = ref([ |
| | | { |
| | | label: '全部', |
| | | value: 'all' |
| | | value: 'all', |
| | | }, |
| | | { |
| | | label: '未批改', |
| | | value: 'WaitCheck' |
| | | value: 'WaitCheck', |
| | | }, |
| | | { |
| | | label: '已批改', |
| | | value: 'Normal' |
| | | value: 'Normal', |
| | | }, |
| | | { |
| | | label: '未提交', |
| | | value: 'WaitSubmit' |
| | | } |
| | | value: 'WaitSubmit', |
| | | }, |
| | | ]) |
| | | |
| | | let pages = reactive({ |
| | |
| | | page: 1, |
| | | pageSize: 15, |
| | | count: 0, |
| | | loading: true |
| | | loading: true, |
| | | }) |
| | | |
| | | const questionKey = [ |
| | |
| | | 'Embedded_QuestionBank_QuestionType', |
| | | 'Embedded_QuestionBank_Score', |
| | | 'Embedded_QuestionBank_Stem', |
| | | 'Embedded_QuestionBank_StemStyle' |
| | | 'Embedded_QuestionBank_StemStyle', |
| | | ] |
| | | |
| | | // 分页 |
| | |
| | | taskId: classInfo?.taskWorkId, |
| | | classId: classInfo?.id, |
| | | filterList, |
| | | searchList |
| | | searchList, |
| | | } |
| | | MG.edu |
| | | .getTaskSubmitList(data) |
| | |
| | | { name: '简答题', totalScore: 0, value: 'shortAnswer', data: [] }, |
| | | { name: '论述题', totalScore: 0, value: 'discuss', data: [] }, |
| | | { name: '连线题', totalScore: 0, value: 'matching', data: [] }, |
| | | { name: '分类题', totalScore: 0, value: 'classification', data: [] } |
| | | { name: '分类题', totalScore: 0, value: 'classification', data: [] }, |
| | | ] |
| | | try { |
| | | let list: any = [] |
| | |
| | | type: item.type, |
| | | state: item.state, |
| | | submit: item.submit, |
| | | updateTaskSubmitCmsItemRequests: [] |
| | | updateTaskSubmitCmsItemRequests: [], |
| | | } |
| | | item.singleChoiceName = '单选题' |
| | | item.singleChoiceArr = [] |
| | |
| | | const lenghtArr = [...res.datas] |
| | | singleChoiceLength.value = lenghtArr.reduce( |
| | | (max: any, obj: any) => Math.max(max, obj.singleChoiceArr.length), |
| | | 0 |
| | | 0, |
| | | ) |
| | | multipleChoiceLength.value = lenghtArr.reduce( |
| | | (max: any, obj: any) => Math.max(max, obj.multipleChoiceArr.length), |
| | | 0 |
| | | 0, |
| | | ) |
| | | judgeLength.value = lenghtArr.reduce( |
| | | (max: any, obj: any) => Math.max(max, obj.judgeArr.length), |
| | | 0 |
| | | 0, |
| | | ) |
| | | completionLength.value = lenghtArr.reduce( |
| | | (max: any, obj: any) => Math.max(max, obj.completionArr.length), |
| | | 0 |
| | | 0, |
| | | ) |
| | | otherLength.value = lenghtArr.reduce( |
| | | (max: any, obj: any) => Math.max(max, obj.otherArr.length), |
| | | 0 |
| | | 0, |
| | | ) |
| | | tableLoading.value = false |
| | | tableData.value = res.datas |
| | |
| | | taskId: classInfo?.taskWorkId, // taskData?.id |
| | | path: String(classInfo?.taskCmsId), //taskData?.rootCmsItemId |
| | | type: '*', |
| | | keys: questionKey |
| | | keys: questionKey, |
| | | } |
| | | MG.edu |
| | | .getTaskCmsItem(data) |
| | |
| | | .catch((e: any) => { |
| | | ElMessage({ |
| | | message: '列表获取失败', |
| | | type: 'error' |
| | | type: 'error', |
| | | }) |
| | | tableLoading.value = false |
| | | console.log(e) |
| | |
| | | questionType: item.Embedded_QuestionBank_QuestionType, |
| | | questionAnalysisCon: item.Embedded_QuestionBank_AnalysisCon, |
| | | questionAnswer: item.Embedded_QuestionBank_Answer, |
| | | customAnswer: null |
| | | customAnswer: null, |
| | | } |
| | | } catch (error) { |
| | | console.log(item) |
| | |
| | | taskId: classInfo?.taskWorkId, |
| | | classId: classInfo?.id, |
| | | filterList, |
| | | searchList |
| | | searchList, |
| | | } |
| | | MG.edu |
| | | .getUnSubmitList(data) |
| | |
| | | ...item, |
| | | index: index + 1, |
| | | createDate: moment(item.createDate).format('YYYY-MM-DD'), |
| | | appUserId: item.appUser.id |
| | | appUserId: item.appUser.id, |
| | | } |
| | | }) |
| | | pages.count = totalSize |
| | |
| | | if (item) { |
| | | const requestData = { |
| | | classId: classInfo?.id, |
| | | requests: [] |
| | | requests: [], |
| | | } |
| | | const data = JSON.parse(item) |
| | | listData.forEach((citem: any) => { |
| | |
| | | score: uitem.score, |
| | | answer: uitem.answer, |
| | | state: 'Normal', |
| | | comments: 'judge' |
| | | comments: 'judge', |
| | | } |
| | | }) |
| | | } |
| | |
| | | content, |
| | | type: 'Normal', |
| | | cmsTypeRefCode: '', |
| | | newDataListRequest: [] |
| | | newDataListRequest: [], |
| | | } |
| | | MG.ugc |
| | | .newTopicMessage(data) |
| | |
| | | if (res) { |
| | | ElMessage({ |
| | | type: 'success', |
| | | message: '已催交' |
| | | message: '已催交', |
| | | }) |
| | | } |
| | | }) |
| | |
| | | { |
| | | compareType: 'Contains', |
| | | keywords: searchKey.value, |
| | | field: 'Name' |
| | | } |
| | | field: 'Name', |
| | | }, |
| | | ] |
| | | pages.page = 1 |
| | | if (workState.value != 'WaitSubmit') { |
| | |
| | | |
| | | .classManagePage-nav { |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | padding: 0 20px; |
| | | height: 40px; |
| | | border-bottom: 1px solid #e6e8ed; |
| | |
| | | z-index: 99; |
| | | background: #fff; |
| | | box-shadow: 0px 0px 20px 1px #eeeeee83; |
| | | box-sizing: border-box; |
| | | } |
| | | .contentBox { |
| | | width: 100%; |
| | |
| | | display: flex; |
| | | justify-content: flex-start; |
| | | align-items: center; |
| | | border-left: 4px solid #ff6d00; |
| | | border-left: 4px solid #019e58; |
| | | span { |
| | | margin-right: 15px; |
| | | } |
| | |
| | | height: 3px; |
| | | } |
| | | .content-user-box::-webkit-scrollbar-thumb { |
| | | background-color: #ff6d00; |
| | | background-color: #019e58; |
| | | cursor: pointer; |
| | | } |
| | | .content-user-box::-webkit-scrollbar-track-piece { |
| | |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | padding: 10px 0; |
| | | .selectState { |
| | | display: flex; |
| | | align-items: center; |
| | | width: 200px; |
| | | span { |
| | | min-width: 50px; |
| | | } |
| | | } |
| | | .searchBox { |
| | | width: 300px; |
| | | float: left; |
| | |
| | | border-radius: 5px; |
| | | margin: 10px auto; |
| | | padding-bottom: 20px; |
| | | box-sizing: border-box; |
| | | .pubContent { |
| | | position: relative; |
| | | height: 80vh; |