|
|
|
@ -4,6 +4,7 @@ |
|
|
|
|
<h6 class="page-name">筛选</h6> |
|
|
|
|
<div class="tool"> |
|
|
|
|
<ul class="filter"> |
|
|
|
|
<template v-if="fromNakadai"> |
|
|
|
|
<li> |
|
|
|
|
<label>省份</label> |
|
|
|
|
<el-select v-model="filter.provinceId" clearable placeholder="请选择省份" @change="provinceChange" |
|
|
|
@ -26,6 +27,14 @@ |
|
|
|
|
:value="item.schoolId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</template> |
|
|
|
|
<li v-else> |
|
|
|
|
<label>班级</label> |
|
|
|
|
<el-select v-model="filter.classId" clearable @change="initData"> |
|
|
|
|
<el-option v-for="item in classList" :key="item.id" :label="item.className" :value="item.id"> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>评阅状态</label> |
|
|
|
|
<el-select v-model="filter.evaluationStatus" clearable placeholder="请选择评阅状态" @change="initData"> |
|
|
|
@ -40,15 +49,15 @@ |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>搜索</label> |
|
|
|
|
<el-input style="width: 400px;" placeholder="请输入学生姓名、学生学号、团队名称、答卷ID、提交名称" prefix-icon="el-icon-search" |
|
|
|
|
v-model="filter.keyword" clearable /> |
|
|
|
|
<el-input style="width: 400px;" :placeholder="`请输入学生姓名、学生学号、${fromNakadai ? '团队名称、' : ''}答卷ID、提交名称`" |
|
|
|
|
prefix-icon="el-icon-search" v-model="filter.keyword" clearable /> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<div> |
|
|
|
|
<el-button type="primary" @click="batchAlloc">批量分配评阅人员</el-button> |
|
|
|
|
<el-button type="primary" @click="toSetup">修改评阅设置</el-button> |
|
|
|
|
<!-- <el-button type="primary">批量导出评分表</el-button> --> |
|
|
|
|
<el-button type="primary">批量导出列表</el-button> |
|
|
|
|
<!-- <el-button type="primary">批量导出列表</el-button> --> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -56,10 +65,13 @@ |
|
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true"></el-table-column> |
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center"></el-table-column> |
|
|
|
|
<template v-if="fromNakadai"> |
|
|
|
|
<el-table-column prop="provinceName" label="省份" align="center" width="100"></el-table-column> |
|
|
|
|
<el-table-column prop="cityName" label="城市" align="center" width="120"></el-table-column> |
|
|
|
|
<el-table-column prop="realSchool" label="学生所在院校" align="center" width="120"></el-table-column> |
|
|
|
|
<el-table-column prop="teamName" label="团队名称" align="center" width="90"></el-table-column> |
|
|
|
|
</template> |
|
|
|
|
<el-table-column v-else prop="className" label="学生所在班级" align="center" width="120"></el-table-column> |
|
|
|
|
<el-table-column prop="userName" label="学生姓名" align="center" width="80"></el-table-column> |
|
|
|
|
<el-table-column prop="workNumber" label="学号" align="center" width="70"></el-table-column> |
|
|
|
|
<el-table-column prop="reportId" label="答卷ID" align="center" width="60"></el-table-column> |
|
|
|
@ -106,14 +118,13 @@ import Setup from '../list/setup' |
|
|
|
|
import Allocation from './allocation' |
|
|
|
|
import Breadcrumb from '@/components/breadcrumb' |
|
|
|
|
import Util from '@/libs/util' |
|
|
|
|
import Setting from '@/setting' |
|
|
|
|
import Const from '@/const/ques' |
|
|
|
|
import Qs from 'qs' |
|
|
|
|
import dayjs from 'dayjs' |
|
|
|
|
|
|
|
|
|
const fromNakadai = localStorage.getItem('reviewFromNakadai') |
|
|
|
|
export default { |
|
|
|
|
components: { Allocation, Setup, Breadcrumb }, |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
fromNakadai, |
|
|
|
|
crumbs: [], |
|
|
|
|
competitionId: this.$route.query.competitionId || '', |
|
|
|
|
assessmentId: this.$route.query.assessmentId || '', |
|
|
|
@ -123,6 +134,7 @@ export default { |
|
|
|
|
provinces: [], |
|
|
|
|
cities: [], |
|
|
|
|
schools: [], |
|
|
|
|
classList: [], |
|
|
|
|
evaluationStatus: [ |
|
|
|
|
{ |
|
|
|
|
name: '待评阅' |
|
|
|
@ -143,6 +155,7 @@ export default { |
|
|
|
|
], |
|
|
|
|
date: [], |
|
|
|
|
filter: { |
|
|
|
|
classId: '', |
|
|
|
|
cityId: '', |
|
|
|
|
provinceId: '', |
|
|
|
|
realSchoolId: '', |
|
|
|
@ -196,8 +209,13 @@ export default { |
|
|
|
|
this.$router.push(`records?competitionId=${query.competitionId}&stageId=${query.stageId}`).catch(() => { }) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (fromNakadai) { |
|
|
|
|
this.getProvince() |
|
|
|
|
this.getSchool() |
|
|
|
|
} else { |
|
|
|
|
this.getClassData() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.getList() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -267,6 +285,12 @@ export default { |
|
|
|
|
this.schools = list |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 获取班级 |
|
|
|
|
getClassData () { |
|
|
|
|
this.$post(this.api.myClass).then(res => { |
|
|
|
|
this.classList = res.list |
|
|
|
|
}).catch(res => { }) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 批量分配评阅人员 |
|
|
|
|
async batchAlloc () { |
|
|
|
|