| | |
| | | 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.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() |
| | | } |
| | |
| | | { |
| | | 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 { |
| | |
| | | .MessageBox { |
| | | width: 100%; |
| | | 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; |