|
|
@ -1,5 +1,9 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="page"> |
|
|
|
<div class="page"> |
|
|
|
|
|
|
|
<el-tabs v-if="!fromNakadai" v-model="curTab" @tab-click="tabChange"> |
|
|
|
|
|
|
|
<el-tab-pane v-for="(item, i) in tabs" :key="i" :label="item.name" :name="item.id"></el-tab-pane> |
|
|
|
|
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
|
|
|
|
<h6 class="page-name">筛选</h6> |
|
|
|
<h6 class="page-name">筛选</h6> |
|
|
|
<div class="tool"> |
|
|
|
<div class="tool"> |
|
|
|
<ul class="filter"> |
|
|
|
<ul class="filter"> |
|
|
@ -42,18 +46,24 @@ |
|
|
|
|
|
|
|
|
|
|
|
<el-table :data="list" v-loading="loading" class="table" ref="table" stripe header-align="center" row-key="stageId"> |
|
|
|
<el-table :data="list" v-loading="loading" class="table" ref="table" stripe header-align="center" row-key="stageId"> |
|
|
|
<el-table-column type="index" width="50" label="序号" align="center"></el-table-column> |
|
|
|
<el-table-column type="index" width="50" label="序号" align="center"></el-table-column> |
|
|
|
<el-table-column prop="competitionName" label="大赛名称" align="center" min-width="120" |
|
|
|
<template v-if="curTab === '1'"> |
|
|
|
|
|
|
|
<el-table-column :key="1" prop="competitionName" label="大赛名称" align="center" min-width="120" |
|
|
|
|
|
|
|
show-overflow-tooltip></el-table-column> |
|
|
|
|
|
|
|
<el-table-column :key="2" prop="stageName" label="阶段赛名称" align="center" min-width="100"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column :key="3" prop="competitionContent" label="比赛内容" align="center" |
|
|
|
|
|
|
|
min-width="100"></el-table-column> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<el-table-column v-else :key="4" prop="competitionName" label="考核名称" align="center" min-width="120" |
|
|
|
show-overflow-tooltip></el-table-column> |
|
|
|
show-overflow-tooltip></el-table-column> |
|
|
|
<el-table-column prop="stageName" label="阶段赛名称" align="center" min-width="100"></el-table-column> |
|
|
|
<el-table-column :key="5" prop="totalAnswer" label="总答卷数" align="center" width="90"></el-table-column> |
|
|
|
<el-table-column prop="competitionContent" label="比赛内容" align="center" min-width="100"></el-table-column> |
|
|
|
<el-table-column :key="6" prop="unReviewedAnswer" label="待评答卷数" align="center" width="90"></el-table-column> |
|
|
|
<el-table-column prop="totalAnswer" label="总答卷数" align="center" width="90"></el-table-column> |
|
|
|
<el-table-column :key="7" prop="reviewedAnswer" label="已评答卷数" align="center" width="90"></el-table-column> |
|
|
|
<el-table-column prop="unReviewedAnswer" label="待评答卷数" align="center" width="90"></el-table-column> |
|
|
|
<el-table-column :key="8" prop="time" label="评阅时间" align="center" width="160" /> |
|
|
|
<el-table-column prop="reviewedAnswer" label="已评答卷数" align="center" width="90"></el-table-column> |
|
|
|
<el-table-column :key="9" prop="stage" label="评阅阶段" align="center" width="90"></el-table-column> |
|
|
|
<el-table-column prop="time" label="评阅时间" align="center" width="160" /> |
|
|
|
<el-table-column :key="10" prop="reviewStatus" label="评阅情况" align="center" width="90"></el-table-column> |
|
|
|
<el-table-column prop="stage" label="评阅阶段" align="center" width="90"></el-table-column> |
|
|
|
<el-table-column :key="11" prop="taskAllocationStatus" label="任务分配情况" align="center" |
|
|
|
<el-table-column prop="reviewStatus" label="评阅情况" align="center" width="90"></el-table-column> |
|
|
|
width="100"></el-table-column> |
|
|
|
<el-table-column prop="taskAllocationStatus" label="任务分配情况" align="center" width="100"></el-table-column> |
|
|
|
<el-table-column :key="12" 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.seted"> |
|
|
|
<template v-if="scope.row.seted"> |
|
|
|
<el-button v-auth="'分配评阅任务:评阅进度'" type="text" @click="toProgress(scope.row)">评阅进度</el-button> |
|
|
|
<el-button v-auth="'分配评阅任务:评阅进度'" type="text" @click="toProgress(scope.row)">评阅进度</el-button> |
|
|
@ -87,6 +97,22 @@ export default { |
|
|
|
data () { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
loading: false, |
|
|
|
loading: false, |
|
|
|
|
|
|
|
fromNakadai: localStorage.getItem('reviewFromNakadai'), |
|
|
|
|
|
|
|
tabs: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: '1', |
|
|
|
|
|
|
|
name: '竞赛' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: '2', |
|
|
|
|
|
|
|
name: '考核' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: '3', |
|
|
|
|
|
|
|
name: '练习' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
curTab: '1', |
|
|
|
dateList: [ |
|
|
|
dateList: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: '', |
|
|
|
id: '', |
|
|
@ -198,7 +224,7 @@ export default { |
|
|
|
async getList () { |
|
|
|
async getList () { |
|
|
|
try { |
|
|
|
try { |
|
|
|
this.loading = true |
|
|
|
this.loading = true |
|
|
|
const { pageList } = await this.$post(this.api.reviewSettingsList, { |
|
|
|
const { pageList } = await this.$post(this.api[this.curTab === '1' ? 'reviewSettingsList' : 'assessmentReviewSettingList'], { |
|
|
|
...this.filter, |
|
|
|
...this.filter, |
|
|
|
isTimed: this.month === 0 ? 0 : '', |
|
|
|
isTimed: this.month === 0 ? 0 : '', |
|
|
|
pageNum: this.page, |
|
|
|
pageNum: this.page, |
|
|
@ -224,6 +250,10 @@ export default { |
|
|
|
this.loading = false |
|
|
|
this.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// tab切换回调 |
|
|
|
|
|
|
|
async tabChange () { |
|
|
|
|
|
|
|
this.initData() |
|
|
|
|
|
|
|
}, |
|
|
|
// 切换页码 |
|
|
|
// 切换页码 |
|
|
|
currentChange (val) { |
|
|
|
currentChange (val) { |
|
|
|
this.page = val |
|
|
|
this.page = val |
|
|
|