QYF-GitLab1
14 小时以前 e1f87494b737169c412ca723baf3085cb0c5706e
src/views/classManage/classHome.vue
@@ -69,7 +69,7 @@
              <span>班级通知</span>
              <el-icon
                style="cursor: pointer"
                color="#FF6D00"
                color="#019e58"
                v-if="noticeList.length > 0 && userInfo.role == 'Teacher'"
                @click="toInfo"
              >
@@ -98,7 +98,7 @@
              <span>班组话题</span>
              <el-icon
                style="cursor: pointer"
                color="#FF6D00"
                color="#019e58"
                v-if="messageList.length > 0"
                @click="toTalk"
              >
@@ -131,7 +131,7 @@
              <span>班级作业概览</span>
              <!-- <el-icon
                style="cursor: pointer"
                color="#FF6D00"
                color="#019e58"
                v-if="tableData.length > 0"
                @click="toWorkList"
              >
@@ -155,7 +155,7 @@
              <span>教学互动</span>
              <el-icon
                style="cursor: pointer"
                color="#FF6D00"
                color="#019e58"
                v-if="tableData.length > 0"
                @click="toTeaching"
              >
@@ -270,7 +270,7 @@
    await toClipboard(val.refCode)
    ElMessage({
      message: '复制成功',
      type: 'success'
      type: 'success',
    })
  } catch (e) {
    console.error(e)
@@ -281,7 +281,7 @@
const getData = () => {
  MG.edu
    .getCourseClass({
      ClassIdOrRefCode: String(classInfo.id)
      ClassIdOrRefCode: String(classInfo.id),
    })
    .then((res: any) => {
      if (res) {
@@ -302,17 +302,17 @@
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
@@ -331,8 +331,8 @@
    sort: {
      type: 'Desc',
      field: 'CreateDate',
      subSorts: []
    }
      subSorts: [],
    },
  }
  MG.ugc.getTopicMessageList(data).then((res: any) => {
    noticeLoading.value = false
@@ -340,7 +340,7 @@
    noticeList.value = list.map((item: any) => {
      return {
        ...item,
        createDate: moment(item.createDate).format('YYYY-MM-DD')
        createDate: moment(item.createDate).format('YYYY-MM-DD'),
      }
    })
  })
@@ -356,8 +356,8 @@
    sort: {
      type: 'Desc',
      field: 'CreateDate',
      subSorts: []
    }
      subSorts: [],
    },
  }
  MG.ugc.getTopicMessageList(data).then((res: any) => {
    messageLoading.value = false
@@ -374,7 +374,7 @@
        ...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'),
      }
    })
  })
@@ -391,9 +391,9 @@
      {
        value: 'Normal',
        field: 'State',
        subFilters: []
      }
    ]
        subFilters: [],
      },
    ],
  }
  MG.identity.getGroupUserList(data).then((res: any) => {
    const { datas } = res
@@ -424,7 +424,7 @@
        return {
          ...item,
          index: index + 1,
          createDate: moment(item.createDate).format('YYYY-MM-DD')
          createDate: moment(item.createDate).format('YYYY-MM-DD'),
        }
      })
    }
@@ -442,8 +442,8 @@
  router.push({
    path: '/talkingPoint',
    query: {
      classInfo: JSON.stringify(classInfo)
    }
      classInfo: JSON.stringify(classInfo),
    },
  })
}
@@ -453,8 +453,8 @@
  router.push({
    path: '/info',
    query: {
      classInfo: JSON.stringify(classInfo)
    }
      classInfo: JSON.stringify(classInfo),
    },
  })
}
@@ -469,7 +469,7 @@
    sort: {
      type: 'Desc',
      field: 'CreateDate',
      subSorts: []
      subSorts: [],
    },
    filterList: [
      // {
@@ -480,10 +480,10 @@
      {
        value: config.taskType.homeWork,
        field: 'Type',
        subFilters: []
      }
        subFilters: [],
      },
    ],
    groupId: classInfo?.id
    groupId: classInfo?.id,
  }
  MG.edu
    .getTaskList(data)
@@ -495,7 +495,7 @@
            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)
@@ -517,6 +517,7 @@
}
.classManagePage-box {
  padding: 20px;
  box-sizing: border-box;
  .classManagePage-nav {
    padding-bottom: 20px;
    border-bottom: 1px solid #e6e8ed;
@@ -625,7 +626,7 @@
      .titleBox {
        display: flex;
        align-items: center;
        margin: 20px 0;
        margin: 10px 0;
        font-size: 16px;
        .title {
          width: 100%;
@@ -694,11 +695,11 @@
    }
    .copyIdBtn {
      background-color: #fff;
      color: #3b93fe;
      padding: 0 6px;
      padding: 10px;
      border-radius: 50px;
      overflow: hidden;
      cursor: pointer;
      font-size: 14px;
    }
  }
  .avatarList {