QYF-GitLab1
2 小时以前 49a435043b0b1a289a24606e35253365d7ab3956
src/views/classManage/jobDetail.vue
@@ -253,20 +253,20 @@
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({
@@ -274,7 +274,7 @@
  page: 1,
  pageSize: 15,
  count: 0,
  loading: true
  loading: true,
})
const questionKey = [
@@ -288,7 +288,7 @@
  'Embedded_QuestionBank_QuestionType',
  'Embedded_QuestionBank_Score',
  'Embedded_QuestionBank_Stem',
  'Embedded_QuestionBank_StemStyle'
  'Embedded_QuestionBank_StemStyle',
]
//  分页
@@ -343,7 +343,7 @@
    taskId: classInfo?.taskWorkId,
    classId: classInfo?.id,
    filterList,
    searchList
    searchList,
  }
  MG.edu
    .getTaskSubmitList(data)
@@ -356,7 +356,7 @@
        { 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 = []
@@ -368,7 +368,7 @@
            type: item.type,
            state: item.state,
            submit: item.submit,
            updateTaskSubmitCmsItemRequests: []
            updateTaskSubmitCmsItemRequests: [],
          }
          item.singleChoiceName = '单选题'
          item.singleChoiceArr = []
@@ -423,23 +423,23 @@
        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
@@ -463,7 +463,7 @@
    taskId: classInfo?.taskWorkId, // taskData?.id
    path: String(classInfo?.taskCmsId), //taskData?.rootCmsItemId
    type: '*',
    keys: questionKey
    keys: questionKey,
  }
  MG.edu
    .getTaskCmsItem(data)
@@ -498,7 +498,7 @@
    .catch((e: any) => {
      ElMessage({
        message: '列表获取失败',
        type: 'error'
        type: 'error',
      })
      tableLoading.value = false
      console.log(e)
@@ -531,7 +531,7 @@
          questionType: item.Embedded_QuestionBank_QuestionType,
          questionAnalysisCon: item.Embedded_QuestionBank_AnalysisCon,
          questionAnswer: item.Embedded_QuestionBank_Answer,
          customAnswer: null
          customAnswer: null,
        }
      } catch (error) {
        console.log(item)
@@ -564,7 +564,7 @@
    taskId: classInfo?.taskWorkId,
    classId: classInfo?.id,
    filterList,
    searchList
    searchList,
  }
  MG.edu
    .getUnSubmitList(data)
@@ -581,7 +581,7 @@
            ...item,
            index: index + 1,
            createDate: moment(item.createDate).format('YYYY-MM-DD'),
            appUserId: item.appUser.id
            appUserId: item.appUser.id,
          }
        })
        pages.count = totalSize
@@ -604,7 +604,7 @@
  if (item) {
    const requestData = {
      classId: classInfo?.id,
      requests: []
      requests: [],
    }
    const data = JSON.parse(item)
    listData.forEach((citem: any) => {
@@ -617,7 +617,7 @@
            score: uitem.score,
            answer: uitem.answer,
            state: 'Normal',
            comments: 'judge'
            comments: 'judge',
          }
        })
      }
@@ -668,7 +668,7 @@
    content,
    type: 'Normal',
    cmsTypeRefCode: '',
    newDataListRequest: []
    newDataListRequest: [],
  }
  MG.ugc
    .newTopicMessage(data)
@@ -676,7 +676,7 @@
      if (res) {
        ElMessage({
          type: 'success',
          message: '已催交'
          message: '已催交',
        })
      }
    })
@@ -691,8 +691,8 @@
    {
      compareType: 'Contains',
      keywords: searchKey.value,
      field: 'Name'
    }
      field: 'Name',
    },
  ]
  pages.page = 1
  if (workState.value != 'WaitSubmit') {
@@ -712,6 +712,7 @@
  .classManagePage-nav {
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    height: 40px;
    border-bottom: 1px solid #e6e8ed;
@@ -737,6 +738,7 @@
      z-index: 99;
      background: #fff;
      box-shadow: 0px 0px 20px 1px #eeeeee83;
      box-sizing: border-box;
    }
    .contentBox {
      width: 100%;
@@ -747,7 +749,7 @@
        display: flex;
        justify-content: flex-start;
        align-items: center;
        border-left: 4px solid #ff6d00;
        border-left: 4px solid #019e58;
        span {
          margin-right: 15px;
        }
@@ -787,7 +789,7 @@
        height: 3px;
      }
      .content-user-box::-webkit-scrollbar-thumb {
        background-color: #ff6d00;
        background-color: #019e58;
        cursor: pointer;
      }
      .content-user-box::-webkit-scrollbar-track-piece {
@@ -799,6 +801,14 @@
          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;
@@ -826,6 +836,7 @@
    border-radius: 5px;
    margin: 10px auto;
    padding-bottom: 20px;
    box-sizing: border-box;
    .pubContent {
      position: relative;
      height: 80vh;