| | |
| | | <span>班级通知</span> |
| | | <el-icon |
| | | style="cursor: pointer" |
| | | color="#FF6D00" |
| | | color="#019e58" |
| | | v-if="noticeList.length > 0 && userInfo.role == 'Teacher'" |
| | | @click="toInfo" |
| | | > |
| | |
| | | <span>班组话题</span> |
| | | <el-icon |
| | | style="cursor: pointer" |
| | | color="#FF6D00" |
| | | color="#019e58" |
| | | v-if="messageList.length > 0" |
| | | @click="toTalk" |
| | | > |
| | |
| | | <span>班级作业概览</span> |
| | | <!-- <el-icon |
| | | style="cursor: pointer" |
| | | color="#FF6D00" |
| | | color="#019e58" |
| | | v-if="tableData.length > 0" |
| | | @click="toWorkList" |
| | | > |
| | |
| | | <span>教学互动</span> |
| | | <el-icon |
| | | style="cursor: pointer" |
| | | color="#FF6D00" |
| | | color="#019e58" |
| | | v-if="tableData.length > 0" |
| | | @click="toTeaching" |
| | | > |
| | |
| | | await toClipboard(val.refCode) |
| | | ElMessage({ |
| | | message: '复制成功', |
| | | type: 'success' |
| | | type: 'success', |
| | | }) |
| | | } catch (e) { |
| | | console.error(e) |
| | |
| | | const getData = () => { |
| | | MG.edu |
| | | .getCourseClass({ |
| | | ClassIdOrRefCode: String(classInfo.id) |
| | | ClassIdOrRefCode: String(classInfo.id), |
| | | }) |
| | | .then((res: any) => { |
| | | if (res) { |
| | |
| | | const getTopicInfo = () => { |
| | | const pramas = { |
| | | classId: classInfo.id, |
| | | refCodes: [config.refCodes.message, config.refCodes.talk] |
| | | refCodes: [config.refCode.message, config.refCode.talk], |
| | | } |
| | | MG.edu.getClassTopic(pramas).then((res: any) => { |
| | | const list = res |
| | | messageTopicInfo.value = list.find((item: any) => item.refCode == config.refCodes.message) |
| | | messageTopicInfo.value = list.find((item: any) => item.refCode == config.refCode.message) |
| | | if (messageTopicInfo.value.id) { |
| | | sessionStorage.messageId = messageTopicInfo.value.id |
| | | noticeLoading.value = true |
| | | getNotice() |
| | | } |
| | | talkTopicInfo.value = list.find((item: any) => item.refCode == config.refCodes.talk) |
| | | talkTopicInfo.value = list.find((item: any) => item.refCode == config.refCode.talk) |
| | | if (talkTopicInfo.value.id) { |
| | | sessionStorage.talkId = talkTopicInfo.value.id |
| | | messageLoading.value = true |
| | |
| | | sort: { |
| | | type: 'Desc', |
| | | field: 'CreateDate', |
| | | subSorts: [] |
| | | } |
| | | subSorts: [], |
| | | }, |
| | | } |
| | | MG.ugc.getTopicMessageList(data).then((res: any) => { |
| | | noticeLoading.value = false |
| | |
| | | noticeList.value = list.map((item: any) => { |
| | | return { |
| | | ...item, |
| | | createDate: moment(item.createDate).format('YYYY-MM-DD') |
| | | createDate: moment(item.createDate).format('YYYY-MM-DD'), |
| | | } |
| | | }) |
| | | }) |
| | |
| | | sort: { |
| | | type: 'Desc', |
| | | field: 'CreateDate', |
| | | subSorts: [] |
| | | } |
| | | subSorts: [], |
| | | }, |
| | | } |
| | | MG.ugc.getTopicMessageList(data).then((res: any) => { |
| | | messageLoading.value = false |
| | |
| | | ...item, |
| | | index: i + 1, |
| | | createDate: moment(item.createDate).format('YYYY-MM-DD HH:mm:ss'), |
| | | updateDate: moment(item.updateDate).format('YYYY-MM-DD HH:mm:ss') |
| | | updateDate: moment(item.updateDate).format('YYYY-MM-DD HH:mm:ss'), |
| | | } |
| | | }) |
| | | }) |
| | |
| | | { |
| | | value: 'Normal', |
| | | field: 'State', |
| | | subFilters: [] |
| | | } |
| | | ] |
| | | subFilters: [], |
| | | }, |
| | | ], |
| | | } |
| | | MG.identity.getGroupUserList(data).then((res: any) => { |
| | | const { datas } = res |
| | |
| | | return { |
| | | ...item, |
| | | index: index + 1, |
| | | createDate: moment(item.createDate).format('YYYY-MM-DD') |
| | | createDate: moment(item.createDate).format('YYYY-MM-DD'), |
| | | } |
| | | }) |
| | | } |
| | |
| | | router.push({ |
| | | path: '/talkingPoint', |
| | | query: { |
| | | classInfo: JSON.stringify(classInfo) |
| | | } |
| | | classInfo: JSON.stringify(classInfo), |
| | | }, |
| | | }) |
| | | } |
| | | |
| | |
| | | router.push({ |
| | | path: '/info', |
| | | query: { |
| | | classInfo: JSON.stringify(classInfo) |
| | | } |
| | | classInfo: JSON.stringify(classInfo), |
| | | }, |
| | | }) |
| | | } |
| | | |
| | |
| | | sort: { |
| | | type: 'Desc', |
| | | field: 'CreateDate', |
| | | subSorts: [] |
| | | subSorts: [], |
| | | }, |
| | | filterList: [ |
| | | // { |
| | |
| | | { |
| | | value: config.taskType.homeWork, |
| | | field: 'Type', |
| | | subFilters: [] |
| | | } |
| | | subFilters: [], |
| | | }, |
| | | ], |
| | | groupId: classInfo?.id |
| | | groupId: classInfo?.id, |
| | | } |
| | | MG.edu |
| | | .getTaskList(data) |
| | |
| | | return { |
| | | ...item, |
| | | beginDate: moment(item.beginDate).format('YYYY-MM-DD'), |
| | | endDate: moment(item.endDate).format('YYYY-MM-DD') |
| | | endDate: moment(item.endDate).format('YYYY-MM-DD'), |
| | | } |
| | | }) |
| | | .slice(0, 3) |
| | |
| | | } |
| | | .classManagePage-box { |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | .classManagePage-nav { |
| | | padding-bottom: 20px; |
| | | border-bottom: 1px solid #e6e8ed; |
| | |
| | | .titleBox { |
| | | display: flex; |
| | | align-items: center; |
| | | margin: 20px 0; |
| | | margin: 10px 0; |
| | | font-size: 16px; |
| | | .title { |
| | | width: 100%; |
| | |
| | | } |
| | | .copyIdBtn { |
| | | background-color: #fff; |
| | | color: #3b93fe; |
| | | padding: 0 6px; |
| | | padding: 10px; |
| | | border-radius: 50px; |
| | | overflow: hidden; |
| | | cursor: pointer; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | .avatarList { |