杨磊
26 分钟以前 ee213bf458d3961a0560ce3b68a3ad38322ece97
src/views/classManage/studentJob.vue
@@ -44,7 +44,7 @@
          <el-table-column label="序号" prop="id" width="70"> </el-table-column>
          <el-table-column label="名称" prop="name"> </el-table-column>
          <el-table-column label="作业完成情况" #default="scope">
            <span v-if="scope.row.submitState == 'WaitCheck'" style="color: #ff6d00">待批改</span>
            <span v-if="scope.row.submitState == 'WaitCheck'" style="color: #019e58">待批改</span>
            <span v-if="scope.row.submitState == 'Normal'" style="color: #67c23a">已批改</span>
            <span v-if="!scope.row.submitState" style="color: red">未提交</span>
          </el-table-column>
@@ -105,8 +105,8 @@
  {
    value: config.taskType.homeWork,
    field: 'Type',
    subFilters: []
  }
    subFilters: [],
  },
])
// task
const taskData = reactive({
@@ -118,7 +118,7 @@
  state: '',
  groupId: '',
  beginDate: '',
  endDate: ''
  endDate: '',
})
const visiblePub = ref(false)
@@ -137,7 +137,7 @@
  'Embedded_QuestionBank_QuestionType',
  'Embedded_QuestionBank_Score',
  'Embedded_QuestionBank_Stem',
  'Embedded_QuestionBank_StemStyle'
  'Embedded_QuestionBank_StemStyle',
]
let pages = reactive({
@@ -145,7 +145,7 @@
  page: 1,
  pageSize: 15,
  count: 0,
  loading: false
  loading: false,
})
// 作业列表
const tableData: any = ref([])
@@ -180,11 +180,11 @@
    size: pages.pageSize,
    sort: {
      type: 'Desc',
      field: 'CreateDate'
      field: 'CreateDate',
    },
    filterList,
    searchList,
    groupId: classInfo?.id
    groupId: classInfo?.id,
  }
  MG.edu
    .getTaskList(data)
@@ -208,7 +208,7 @@
            ...item,
            totalScore: item.judgeScore + item.otherScore,
            beginDate: moment(item.beginDate).format('YYYY-MM-DD'),
            endDate: moment(item.endDate).format('YYYY-MM-DD')
            endDate: moment(item.endDate).format('YYYY-MM-DD'),
          }
        })
      } else {
@@ -228,8 +228,8 @@
    {
      compareType: 'Contains',
      keywords: searchKey.value,
      field: 'Name'
    }
      field: 'Name',
    },
  ]
  pages.page = 1
  pages.currentPage = 1
@@ -256,29 +256,37 @@
// 答题
const answer = (item: any) => {
  router.push({
    path: '/bookService/details/answer',
    query: {
      answerTitle: item.name,
      taskId: item.id,
      groupId: classInfo?.id,
      answerType: 'task'
    }
  ElMessage({
    type: 'warning',
    message: '正在建设中...',
  })
  // router.push({
  //   path: '/bookService/details/answer',
  //   query: {
  //     answerTitle: item.name,
  //     taskId: item.id,
  //     groupId: classInfo?.id,
  //     answerType: 'task',
  //   },
  // })
}
// 预览
const preview = (item: any) => {
  router.push({
    path: '/bookService/details/answer',
    query: {
      answerTitle: item.name,
      taskId: item.id,
      groupId: classInfo?.id,
      answerType: 'task',
      isPreview: 'true'
    }
   ElMessage({
    type: 'warning',
    message: '正在建设中...',
  })
  // router.push({
  //   path: '/bookService/details/answer',
  //   query: {
  //     answerTitle: item.name,
  //     taskId: item.id,
  //     groupId: classInfo?.id,
  //     answerType: 'task',
  //     isPreview: 'true',
  //   },
  // })
}
</script>
@@ -303,13 +311,13 @@
          color: #333;
          line-height: 30px;
          text-align: left;
          border-left: 6px solid #ff6c00;
          border-left: 6px solid #019e58;
          padding-left: 10px;
        }
      }
      margin-top: 20px;
      ::v-deep .el-tabs__nav-wrap::after {
        background-color: #ff6d00;
        background-color: #019e58;
        height: 1px;
      }
@@ -320,7 +328,7 @@
      }
      ::v-deep .is-active {
        background-color: #ff6d00;
        background-color: #019e58;
        color: #fff;
        border-radius: 3px 3px 0 0;
      }
@@ -343,6 +351,7 @@
      border-radius: 5px;
      margin: 10px auto;
      padding-bottom: 20px;
      box-sizing: border-box;
      .pubContent {
        height: 800px;
      }