| | |
| | | <el-table-column prop="index" label="序号" width="70" /> |
| | | <el-table-column label="话题名称" width="500"> |
| | | <template #default="scope"> |
| | | <span style="color: #ff6c00" v-if="scope.row.name">{{ scope.row.name }}</span> |
| | | <span style="color: #019e58" v-if="scope.row.name">{{ scope.row.name }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="createDate" label="发起日期" /> |
| | |
| | | }) |
| | | |
| | | onMounted(() => { |
| | | const userCache: any = localStorage.getItem('jesk-userInfo') |
| | | const userCache: any = localStorage.getItem(config.userInfoKey) |
| | | if (userCache) { |
| | | userInfo.value = JSON.parse(userCache) |
| | | } |
| | |
| | | const getTopicInfo = () => { |
| | | const pramas = { |
| | | classId: classInfo.id, |
| | | refCodes: [config.refCodes.talk] |
| | | refCodes: [config.refCode.talk] |
| | | } |
| | | MG.edu.getClassTopic(pramas).then((res: any) => { |
| | | const list = res |
| | | 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) { |
| | | getMessage() |
| | | } |
| | |
| | | } |
| | | |
| | | const newTalkMessage = () => { |
| | | const userCache: any = localStorage.getItem('jesk-userInfo') |
| | | const userCache: any = localStorage.getItem(config.userInfoKey) |
| | | const userInfo = JSON.parse(userCache) |
| | | const textObj = { |
| | | content: talkContent.value, |