yujialong 2 months ago
parent 67e2c1b6ec
commit 732b804ede
  1. 4
      src/pages/allocationReview/list/index.vue
  2. 33
      src/pages/myReview/list/index.vue
  3. 14
      src/pages/myReview/records/index.vue
  4. 15
      src/pages/myReview/theoryReview/index.vue

@ -51,8 +51,8 @@
<el-table-column prop="reviewedAnswer" label="已评答卷数" align="center" width="90"></el-table-column> <el-table-column prop="reviewedAnswer" label="已评答卷数" align="center" width="90"></el-table-column>
<el-table-column prop="time" label="评阅时间" align="center" width="160" /> <el-table-column prop="time" label="评阅时间" align="center" width="160" />
<el-table-column prop="stage" label="评阅阶段" align="center" width="90"></el-table-column> <el-table-column prop="stage" label="评阅阶段" align="center" width="90"></el-table-column>
<el-table-column prop="reviewStatusName" label="评阅情况" align="center" width="90"></el-table-column> <el-table-column prop="reviewStatus" label="评阅情况" align="center" width="90"></el-table-column>
<el-table-column prop="reviewStatusName" label="任务分配情况" align="center" width="100"></el-table-column> <el-table-column prop="taskAllocationStatus" label="任务分配情况" align="center" width="100"></el-table-column>
<el-table-column label="操作" align="center" width="220" fixed="right"> <el-table-column label="操作" align="center" width="220" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.evaluationId && (scope.row.hasManualScoreType || scope.row.allowManualGrading)"> <template v-if="scope.row.evaluationId && (scope.row.hasManualScoreType || scope.row.allowManualGrading)">

@ -5,7 +5,7 @@
<ul class="filter"> <ul class="filter">
<li> <li>
<label>评阅时间</label> <label>评阅时间</label>
<el-radio-group v-model="filter.month"> <el-radio-group v-model="month" @change="monthChange">
<el-radio v-for="(item, index) in dateList" :key="index" :label="item.id" border>{{ item.name <el-radio v-for="(item, index) in dateList" :key="index" :label="item.id" border>{{ item.name
}}</el-radio> }}</el-radio>
</el-radio-group> </el-radio-group>
@ -117,19 +117,9 @@ export default {
name: '已完成' name: '已完成'
}, },
], ],
status: [ month: '',
{
id: 1,
name: '启用'
},
{
id: 0,
name: '禁用'
},
],
date: [], date: [],
filter: { filter: {
month: '',
startTime: '', startTime: '',
endTime: '', endTime: '',
evaluationResult: '', evaluationResult: '',
@ -145,14 +135,6 @@ export default {
}; };
}, },
watch: { watch: {
'filter.month': function (val) {
if (val) {
let unit = 24 * 60 * 60 * 1000
this.date = [dayjs(new Date(Date.now() - unit * 30 * val)).format('YYYY-MM-DD'), dayjs(new Date(Date.now() + unit)).format('YYYY-MM-DD')]
} else {
this.date = []
}
},
date: function (val) { date: function (val) {
if (val) { if (val) {
this.filter.startTime = val[0] this.filter.startTime = val[0]
@ -205,6 +187,7 @@ export default {
this.loading = true this.loading = true
const { page } = await this.$post(this.api.myReviewTask, { const { page } = await this.$post(this.api.myReviewTask, {
...this.filter, ...this.filter,
isTimed: this.month === 0 ? 1 : 0,
pageNum: this.page, pageNum: this.page,
pageSize: this.pageSize, pageSize: this.pageSize,
}) })
@ -269,6 +252,16 @@ export default {
this.handleStage() this.handleStage()
}, 1000) }, 1000)
}, },
//
monthChange (val) {
if (val) {
const unit = 24 * 60 * 60 * 1000
this.date = [dayjs(new Date(Date.now() - unit * 30 * val)).format('YYYY-MM-DD'), dayjs(new Date(Date.now() + unit)).format('YYYY-MM-DD')]
} else {
this.date = []
// this.initData()
}
},
// //
toReview (row) { toReview (row) {

@ -32,7 +32,7 @@
<li> <li>
<label>评阅状态</label> <label>评阅状态</label>
<el-select v-model="filter.status" clearable placeholder="请选择评阅状态" @change="initData"> <el-select v-model="filter.status" clearable placeholder="请选择评阅状态" @change="initData">
<el-option v-for="(item, i) in status" :key="i" :label="item.name" :value="item.id"></el-option> <el-option v-for="(item, i) in status" :key="i" :value="item.name"></el-option>
</el-select> </el-select>
</li> </li>
<li> <li>
@ -70,7 +70,7 @@
show-overflow-tooltip></el-table-column> show-overflow-tooltip></el-table-column>
<el-table-column prop="evaluationStatus" label="评阅状态" align="center" width="90"> <el-table-column prop="evaluationStatus" label="评阅状态" align="center" width="90">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.evaluationStatus === '待评阅' ? 'danger' : 'success'">{{ scope.row.evaluationStatus <el-tag :type="scope.row.status === '待评阅' ? 'danger' : 'success'">{{ scope.row.status
}}</el-tag> }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
@ -109,12 +109,10 @@ export default {
schools: [], schools: [],
status: [ status: [
{ {
id: 1, name: '待评阅'
name: '启用'
}, },
{ {
id: 0, name: '已评阅'
name: '禁用'
}, },
], ],
date: [], date: [],
@ -231,8 +229,8 @@ export default {
}, },
// //
clearprovince () { clearprovince () {
this.filter.cityId = '', this.filter.cityId = ''
this.filter.schoolId = '' this.filter.realSchoolId = ''
}, },
// //
provinceChange () { provinceChange () {

@ -175,7 +175,7 @@
<template v-if="showUserInfo"> <template v-if="showUserInfo">
<p>考生所在院校{{ info.realSchool }}</p> <p>考生所在院校{{ info.realSchool }}</p>
<p>团队名称{{ info.teamName }}</p> <p>团队名称{{ info.teamName }}</p>
<p>考生班级{{ info.className }}</p> <!-- <p>考生班级{{ info.className }}</p> -->
<p>考生姓名{{ info.userName }}</p> <p>考生姓名{{ info.userName }}</p>
<p>考生学号{{ info.workNumber }}</p> <p>考生学号{{ info.workNumber }}</p>
</template> </template>
@ -445,11 +445,7 @@ export default {
Util.successMsg('删除成功') Util.successMsg('删除成功')
}, },
// //
async prev () {
},
//
async switchRecord (isNext) { async switchRecord (isNext) {
const res = await this.$post(this.api.getTheLabReportIdUpAndDown, { const res = await this.$post(this.api.getTheLabReportIdUpAndDown, {
competitionId: this.competitionId, competitionId: this.competitionId,
@ -457,7 +453,8 @@ export default {
currentReportId: this.reportId currentReportId: this.reportId
}) })
const id = res[isNext ? 'nextReportId' : 'previousReportId'] const id = res[isNext ? 'nextReportId' : 'previousReportId']
this[isNext ? 'showNext' : 'showPrev'] = !!id this.showNext = !!res.nextReportId
this.showPrev = !!res.previousReportId
if (id) { if (id) {
this.reportId = id this.reportId = id
this.$router.push(`/theoryReview?id=${id}&u=${this.showUserInfo}&c=${this.competitionId}&s=${this.stageId}`) this.$router.push(`/theoryReview?id=${id}&u=${this.showUserInfo}&c=${this.competitionId}&s=${this.stageId}`)
@ -473,13 +470,13 @@ export default {
const params = [] const params = []
paper.forEach(e => { paper.forEach(e => {
e.userAnswerList.forEach(n => { e.userAnswerList.forEach(n => {
n.reviewScore !== '' && params.push({ n.originUserScore !== n.reviewScore && params.push({
assignmentDetailId: n.assignmentDetailId, assignmentDetailId: n.assignmentDetailId,
reviewScore: n.reviewScore, reviewScore: n.reviewScore,
}) })
}) })
}) })
await this.$post(this.api.reviewPaper, params) if (params.length) await this.$post(this.api.reviewPaper, params)
Util.successMsg('保存成功') Util.successMsg('保存成功')
} finally { } finally {
this.submiting = false this.submiting = false

Loading…
Cancel
Save