| | |
| | | font-size: 100%; |
| | | font: inherit; |
| | | vertical-align: baseline; |
| | | white-space: normal; |
| | | } |
| | | /* HTML5 display-role reset for older browsers */ |
| | | article, |
| | |
| | | width: 100%; |
| | | height: calc(100% - 63px); |
| | | padding: 5px 25px; |
| | | box-sizing: border-box; |
| | | overflow: auto; |
| | | .noticeItem { |
| | | display: flex; |
| | |
| | | <div v-html="item.userAnswer"></div> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="shortAnswer" v-if="item.questionType == 'shortAnswer' && !isJudge"> |
| | | <div class="anSwer" v-if="!isPreview"> |
| | | <div class="anSwerText" v-if="item.questionAnswer" style="margin: 15px 0"> |
| | | <span style="min-width: 40px">答案:</span |
| | | ><span v-html="item.questionAnswer"></span> |
| | | </div> |
| | | <div :class="isPreview ? 'questionAnalysisCon' : ''" v-if="item.questionAnalysisCon"> |
| | | 分析:<span v-html="item.questionAnalysisCon"></span> |
| | | </div> |
| | | </div> |
| | | <div v-else> |
| | | <div v-html="item.userAnswer"></div> |
| | | </div> |
| | | </div> --> |
| | | <div v-if="isJudge"> |
| | | <div class="shortAnswer anSwerText" v-if="item.answer" style="margin: 15px 0"> |
| | | <span v-html="item.answer"></span> |
| | |
| | | |
| | | const emit = defineEmits(['selectQuestion', 'deleteItem', 'judgeUpdate']) |
| | | |
| | | onMounted(() => {}) |
| | | // onMounted(() => { |
| | | // console.log(props.questionList) |
| | | // }) |
| | | |
| | | const checkItems = (e: Event, item: any) => { |
| | | emit('selectQuestion', item) |
| | |
| | | padding: 10px; |
| | | box-sizing: border-box; |
| | | font-family: PingFang SC; |
| | | span { |
| | | white-space: pre-wrap !important; |
| | | } |
| | | .questionT { |
| | | // display: flex; |
| | | flex-wrap: wrap; |
| | |
| | | transform="translate(-63.9 -63.9)" /> |
| | | </svg>` |
| | | }, |
| | | { |
| | | label: '教学互动', |
| | | key: '9', |
| | | path: 'teachInteraction', |
| | | icon: `<svg xmlns="http://www.w3.org/2000/svg" width="16.2" height="16.2" viewBox="0 0 1024 1024"> |
| | | <path |
| | | d="M447.766594 480.256747H252.078775C126.599562 480.256747 24.274252 377.931437 24.274252 252.452225S125.852662 24.647702 252.078775 24.647702 479.883297 126.973012 479.883297 252.452225V448.140044c0 17.925602-14.191101 32.116703-32.116703 32.116703zM252.078775 88.134209c-90.374909 0-164.318016 73.943107-164.318016 164.318016s73.943107 164.318016 164.318016 164.318016h164.318016v-164.318016c0-90.374909-73.943107-164.318016-164.318016-164.318016zM251.331875 999.352298C125.852662 999.352298 23.527352 897.026988 23.527352 771.547775s102.32531-227.804522 227.804523-227.804522H447.766594c17.178702 0 32.116703 14.191101 32.116703 32.116703v196.434719c-0.7469 124.732312-103.07221 227.057622-228.551422 227.057623z m0-392.122539c-90.374909 0-164.318016 73.943107-164.318017 164.318016s73.943107 164.318016 164.318017 164.318016 164.318016-73.943107 164.318016-164.318016v-164.318016h-164.318016zM773.415026 999.352298c-125.479212 0-227.804522-102.32531-227.804523-227.804523V575.113056c0-17.178702 14.191101-32.116703 32.116703-32.116703h196.43472c125.479212 0 227.804522 102.32531 227.804522 227.804522 0 36.598104-8.962801 72.449307-25.394603 104.56601-8.215901 15.684902-26.888403 21.660102-42.573304 13.444202-15.684902-8.215901-21.660102-26.888403-13.444201-42.573304 11.950401-23.153902 18.672502-49.295405 18.672502-75.436908 0-90.374909-73.943107-164.318016-164.318016-164.318016h-164.318016v164.318016c0 90.374909 73.943107 164.318016 164.318016 164.318016 17.178702 0 34.357403-2.9876 50.042305-8.2159 16.431802-5.228301 34.357403 3.7345 39.585703 20.166301 5.228301 16.431802-3.7345 34.357403-20.166302 39.585704-23.900802 8.962801-47.054705 12.697301-70.955506 12.697302zM773.415026 480.256747H577.727206c-17.178702 0-32.116703-14.191101-32.116703-32.116703V252.452225c0-125.479212 102.32531-227.804522 227.804523-227.804523s227.804522 102.32531 227.804522 227.804523-102.32531 227.804522-227.804522 227.804522z m-164.318017-63.486506h164.318017c90.374909 0 164.318016-73.943107 164.318016-164.318016s-73.943107-164.318016-164.318016-164.318016-164.318016 73.943107-164.318017 164.318016v164.318016z" /> |
| | | </svg>` |
| | | }, |
| | | // { |
| | | // label: '教学互动', |
| | | // key: '9', |
| | | // path: 'teachInteraction', |
| | | // icon: `<svg xmlns="http://www.w3.org/2000/svg" width="16.2" height="16.2" viewBox="0 0 1024 1024"> |
| | | // <path |
| | | // d="M447.766594 480.256747H252.078775C126.599562 480.256747 24.274252 377.931437 24.274252 252.452225S125.852662 24.647702 252.078775 24.647702 479.883297 126.973012 479.883297 252.452225V448.140044c0 17.925602-14.191101 32.116703-32.116703 32.116703zM252.078775 88.134209c-90.374909 0-164.318016 73.943107-164.318016 164.318016s73.943107 164.318016 164.318016 164.318016h164.318016v-164.318016c0-90.374909-73.943107-164.318016-164.318016-164.318016zM251.331875 999.352298C125.852662 999.352298 23.527352 897.026988 23.527352 771.547775s102.32531-227.804522 227.804523-227.804522H447.766594c17.178702 0 32.116703 14.191101 32.116703 32.116703v196.434719c-0.7469 124.732312-103.07221 227.057622-228.551422 227.057623z m0-392.122539c-90.374909 0-164.318016 73.943107-164.318017 164.318016s73.943107 164.318016 164.318017 164.318016 164.318016-73.943107 164.318016-164.318016v-164.318016h-164.318016zM773.415026 999.352298c-125.479212 0-227.804522-102.32531-227.804523-227.804523V575.113056c0-17.178702 14.191101-32.116703 32.116703-32.116703h196.43472c125.479212 0 227.804522 102.32531 227.804522 227.804522 0 36.598104-8.962801 72.449307-25.394603 104.56601-8.215901 15.684902-26.888403 21.660102-42.573304 13.444202-15.684902-8.215901-21.660102-26.888403-13.444201-42.573304 11.950401-23.153902 18.672502-49.295405 18.672502-75.436908 0-90.374909-73.943107-164.318016-164.318016-164.318016h-164.318016v164.318016c0 90.374909 73.943107 164.318016 164.318016 164.318016 17.178702 0 34.357403-2.9876 50.042305-8.2159 16.431802-5.228301 34.357403 3.7345 39.585703 20.166301 5.228301 16.431802-3.7345 34.357403-20.166302 39.585704-23.900802 8.962801-47.054705 12.697301-70.955506 12.697302zM773.415026 480.256747H577.727206c-17.178702 0-32.116703-14.191101-32.116703-32.116703V252.452225c0-125.479212 102.32531-227.804522 227.804523-227.804523s227.804522 102.32531 227.804522 227.804523-102.32531 227.804522-227.804522 227.804522z m-164.318017-63.486506h164.318017c90.374909 0 164.318016-73.943107 164.318016-164.318016s-73.943107-164.318016-164.318016-164.318016-164.318016 73.943107-164.318017 164.318016v164.318016z" /> |
| | | // </svg>` |
| | | // }, |
| | | { |
| | | label: '话题', |
| | | key: '8', |
| | |
| | | import { ref, watch, provide, onMounted, inject } from 'vue' |
| | | import { useRoute, useRouter, onBeforeRouteUpdate } from 'vue-router' |
| | | import { menu } from './config' |
| | | import { getPublicImage } from '@/assets/js/middleGround/tool' |
| | | import defaultImg from '@/assets/images/default-book-img.png' |
| | | |
| | | const router: any = useRouter() |
| | |
| | | z-index: 99; |
| | | background: #fff; |
| | | box-shadow: 0px 0px 20px 1px #eeeeee83; |
| | | box-sizing: border-box; |
| | | } |
| | | .contentBox { |
| | | width: 100%; |
| | |
| | | z-index: 99; |
| | | background: #fff; |
| | | box-shadow: 0px 0px 20px 1px #eeeeee83; |
| | | box-sizing: border-box; |
| | | } |
| | | .contentBox { |
| | | width: 100%; |
| | |
| | | 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%; |
| | |
| | | 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; |
| | |
| | | align-center |
| | | v-model="visibleView" |
| | | destroy-on-close |
| | | width="900" |
| | | width="1200" |
| | | > |
| | | <template #header> |
| | | <div class="viewTitle">已选题目</div> |
| | |
| | | align-center |
| | | v-model="visibleLook" |
| | | destroy-on-close |
| | | width="900" |
| | | width="1200" |
| | | > |
| | | <template #header> |
| | | <div class="viewTitle">预览作业</div> |
| | |
| | | if (questionKey != null) { |
| | | for (let fieldKey of questionKey) { |
| | | if (item.datas[fieldKey]) { |
| | | const values = JSON.parse(item.datas[fieldKey]) |
| | | if (values.length > 0) { |
| | | // 用字段名处理返回的字段值 |
| | | if (values[0].Value) { |
| | | item[fieldKey] = values[0].Value |
| | | } else if (values[0].Data) { |
| | | item[fieldKey] = values[0].Data.Value |
| | | } else if (!values[0].Value && values[0].FileList?.length > 0) { |
| | | item[fieldKey] = values[0].FileList |
| | | } else { |
| | | item[fieldKey] = '-' |
| | | try { |
| | | const values = JSON.parse(item.datas[fieldKey]) |
| | | if (values.length > 0) { |
| | | // 用字段名处理返回的字段值 |
| | | if (values[0].Value) { |
| | | item[fieldKey] = values[0].Value |
| | | } else if (values[0].Data) { |
| | | item[fieldKey] = values[0].Data.Value |
| | | } else if (!values[0].Value && values[0].FileList?.length > 0) { |
| | | item[fieldKey] = values[0].FileList |
| | | } else { |
| | | item[fieldKey] = '-' |
| | | } |
| | | } |
| | | } catch (error) { |
| | | console.log(error, item.datas[fieldKey],item) |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | 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; |
| | | } |
| | |
| | | publisher: userInfo?.name ?? '', |
| | | publishRole: userInfo?.role ?? '', |
| | | icon: userInfo.icon ?? '', |
| | | type: userInfo.type ?? '' |
| | | type: userInfo.type ?? '', |
| | | } |
| | | const data = { |
| | | description: '', |
| | |
| | | content: JSON.stringify(textObj), |
| | | type: 'Normal', |
| | | cmsTypeRefCode: '', |
| | | newDataListRequest: [] |
| | | newDataListRequest: [], |
| | | } |
| | | MG.ugc.newTopicMessage(data).then((res: any) => { |
| | | if (res) { |
| | | ElMessage({ |
| | | message: '已回复', |
| | | type: 'success' |
| | | type: 'success', |
| | | }) |
| | | dialogVisible.value = false |
| | | textarea.value = '' |
| | |
| | | const getTopicInfo = () => { |
| | | const pramas = { |
| | | classId: classInfo.id, |
| | | refCodes: [config.refCode.talk] |
| | | refCodes: [config.refCode.talk], |
| | | } |
| | | MG.edu.getClassTopic(pramas).then((res: any) => { |
| | | const list = res |
| | |
| | | { |
| | | keywords: classInfo.MessageName, |
| | | field: 'Name', |
| | | compareType: 'Contains' |
| | | } |
| | | compareType: 'Contains', |
| | | }, |
| | | ], |
| | | appRefCode: config.appRefCode, |
| | | topicIdOrRefCode: String(talkTopicInfo.value.id) |
| | | topicIdOrRefCode: String(talkTopicInfo.value.id), |
| | | } |
| | | MG.ugc.getTopicMessageList(data).then((res: any) => { |
| | | const list = res.datas |
| | |
| | | item.createDate = moment(item.createDate).format('YYYY-MM-DD HH:mm:ss') |
| | | item.updateDate = moment(item.updateDate).format('YYYY-MM-DD HH:mm:ss') |
| | | return { |
| | | ...item |
| | | ...item, |
| | | } |
| | | }) |
| | | ownData.value = list[0] |
| | |
| | | start: 0, |
| | | size: 999, |
| | | parentId: ownData?.value.id, |
| | | topicIdOrRefCode: String(talkTopicInfo.value.id) |
| | | topicIdOrRefCode: String(talkTopicInfo.value.id), |
| | | } |
| | | MG.ugc.getTopicMessageSubList(data).then((res: any) => { |
| | | const list = res.datas |
| | |
| | | item.createDate = moment(item.createDate).format('YYYY-MM-DD HH:mm:ss') |
| | | item.updateDate = moment(item.updateDate).format('YYYY-MM-DD HH:mm:ss') |
| | | return { |
| | | ...item |
| | | ...item, |
| | | } |
| | | }) |
| | | }) |
| | |
| | | // 删除回复话题 |
| | | const removeMessageItem = (item: any) => { |
| | | const data = { |
| | | messageIds: [item.id] |
| | | messageIds: [item.id], |
| | | } |
| | | MG.ugc.delTopicMessage(data).then((res: any) => { |
| | | if (res) { |
| | | ElMessage({ |
| | | message: '已删除', |
| | | type: 'success' |
| | | type: 'success', |
| | | }) |
| | | } |
| | | getMessage() |
| | |
| | | state: 'Normal', |
| | | content: JSON.stringify(item.publicText), |
| | | newDataRequests: [], |
| | | updateDataRequests: [] |
| | | updateDataRequests: [], |
| | | } |
| | | MG.ugc |
| | | .updateTopicMessage(data) |
| | |
| | | if (res) { |
| | | ElMessage({ |
| | | type: 'success', |
| | | message: '已发布' |
| | | message: '已发布', |
| | | }) |
| | | getMessage() |
| | | } |
| | |
| | | background: #fff; |
| | | |
| | | .classManagePage-nav { |
| | | width: 100%; |
| | | padding: 0 20px; |
| | | height: 40px; |
| | | border-bottom: 1px solid #e6e8ed; |
| | |
| | | background: #fff; |
| | | } |
| | | .classManagePage-content { |
| | | width: 100%; |
| | | position: relative; |
| | | .backBtn { |
| | | width: 100%; |
| | |
| | | z-index: 99; |
| | | background: #fff; |
| | | box-shadow: 0px 0px 20px 1px #eee; |
| | | box-sizing: border-box; |
| | | } |
| | | .talkBox { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: flex-start; |
| | | padding: 0 20px; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | .leftBox { |
| | | flex: 1; |
| | | min-width: 500px; |
| | |
| | | height: 60px; |
| | | border-bottom: 1px solid #e7eaec; |
| | | line-height: 60px; |
| | | box-sizing: border-box; |
| | | } |
| | | :deep(.inputBox) { |
| | | padding: 20px 30px; |
| | | box-sizing: border-box; |
| | | position: relative; |
| | | |
| | | .el-textarea__inner { |
| | |
| | | padding: 0 30px; |
| | | box-sizing: border-box; |
| | | .MessageHeader { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | |
| | | } |
| | | .MessageContent { |
| | | padding: 0 60px; |
| | | box-sizing: border-box; |
| | | padding-bottom: 20px; |
| | | margin-bottom: 10px; |
| | | font-family: PingFang SC; |
| | |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | border-bottom: 1px solid #e7eaec; |
| | | box-sizing: border-box; |
| | | |
| | | .talkUser { |
| | | display: flex; |
| | |
| | | overflow: auto; |
| | | |
| | | padding: 20px 30px; |
| | | box-sizing: border-box; |
| | | .contentTilte { |
| | | font-family: PingFang SC; |
| | | font-weight: bold; |
| | |
| | | }) |
| | | return false |
| | | } |
| | | if (userInfo.role == 'Teacher') { |
| | | const data: any = menu.filter((item) => item.path != 'myClass') |
| | | listMenu.value = data |
| | | } else { |
| | | const data: any = menu.filter((item) => item.path != 'myCourse') |
| | | listMenu.value = data |
| | | } |
| | | // if (userInfo.role == 'Teacher') { |
| | | // const data: any = menu.filter((item) => item.path != 'myClass') |
| | | // listMenu.value = data |
| | | // } else { |
| | | // const data: any = menu.filter((item) => item.path != 'myCourse') |
| | | // listMenu.value = data |
| | | // } |
| | | listMenu.value = menu |
| | | }) |
| | | const goRouter = (item: any) => { |
| | | if (!localStorage.getItem(config.tokenKey) || localStorage.getItem(config.tokenKey) == null) { |