QYF-GitLab1
2 天以前 49a435043b0b1a289a24606e35253365d7ab3956
src/views/classManage/talkDetail.vue
@@ -159,7 +159,7 @@
    publisher: userInfo?.name ?? '',
    publishRole: userInfo?.role ?? '',
    icon: userInfo.icon ?? '',
    type: userInfo.type ?? ''
    type: userInfo.type ?? '',
  }
  const data = {
    description: '',
@@ -171,13 +171,13 @@
    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 = ''
@@ -190,7 +190,7 @@
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
@@ -211,11 +211,11 @@
      {
        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
@@ -231,7 +231,7 @@
      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]
@@ -246,7 +246,7 @@
    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
@@ -265,7 +265,7 @@
      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,
      }
    })
  })
@@ -274,13 +274,13 @@
// 删除回复话题
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()
@@ -298,7 +298,7 @@
    state: 'Normal',
    content: JSON.stringify(item.publicText),
    newDataRequests: [],
    updateDataRequests: []
    updateDataRequests: [],
  }
  MG.ugc
    .updateTopicMessage(data)
@@ -306,7 +306,7 @@
      if (res) {
        ElMessage({
          type: 'success',
          message: '已发布'
          message: '已发布',
        })
        getMessage()
      }
@@ -327,7 +327,6 @@
  background: #fff;
  .classManagePage-nav {
    width: 100%;
    padding: 0 20px;
    height: 40px;
    border-bottom: 1px solid #e6e8ed;
@@ -339,7 +338,6 @@
    background: #fff;
  }
  .classManagePage-content {
    width: 100%;
    position: relative;
    .backBtn {
      width: 100%;
@@ -353,13 +351,14 @@
      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;
@@ -375,9 +374,11 @@
          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 {
@@ -397,7 +398,6 @@
          padding: 0 30px;
          box-sizing: border-box;
          .MessageHeader {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
@@ -411,6 +411,7 @@
          }
          .MessageContent {
            padding: 0 60px;
            box-sizing: border-box;
            padding-bottom: 20px;
            margin-bottom: 10px;
            font-family: PingFang SC;
@@ -442,6 +443,7 @@
          justify-content: space-between;
          align-items: center;
          border-bottom: 1px solid #e7eaec;
          box-sizing: border-box;
          .talkUser {
            display: flex;
@@ -457,6 +459,7 @@
          overflow: auto;
          padding: 20px 30px;
          box-sizing: border-box;
          .contentTilte {
            font-family: PingFang SC;
            font-weight: bold;