|
|
|
@ -1,67 +1,71 @@ |
|
|
|
|
<template> |
|
|
|
|
<!-- 考核列表 --> |
|
|
|
|
<div class="wrap"> |
|
|
|
|
<div class="page" style="padding-bottom: 0;margin-bottom: 12px"> |
|
|
|
|
<h6 class="l-title"> |
|
|
|
|
<img src="@/assets/img/ass1.png" alt=""> |
|
|
|
|
考核筛选 |
|
|
|
|
</h6> |
|
|
|
|
<ul class="filter"> |
|
|
|
|
<li> |
|
|
|
|
<label>考核时间:</label> |
|
|
|
|
<el-radio-group size="small" v-model="form.month"> |
|
|
|
|
<el-radio v-for="(item,index) in dateList" :key="index" :label="item.id" border> |
|
|
|
|
{{ item.name }} |
|
|
|
|
</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
<el-date-picker |
|
|
|
|
size="small" |
|
|
|
|
v-model="date" |
|
|
|
|
align="right" |
|
|
|
|
unlink-panels type="daterange" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
format="yyyy-MM-dd" |
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
clearable |
|
|
|
|
style="width: 300px" |
|
|
|
|
></el-date-picker> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<ul class="filter"> |
|
|
|
|
<li> |
|
|
|
|
<label>课程名称:</label> |
|
|
|
|
<el-select size="small" v-model="form.curriculumId" @change="initData"> |
|
|
|
|
<el-option label="不限" value=""></el-option> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item,index) in courseList" |
|
|
|
|
:key="index" |
|
|
|
|
:label="item.sysName" |
|
|
|
|
:value="item.sysId" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>实验班级:</label> |
|
|
|
|
<el-select size="small" v-model="form.classId" @change="initData"> |
|
|
|
|
<el-option label="不限" value=""></el-option> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item,index) in classList" |
|
|
|
|
:key="index" |
|
|
|
|
:label="item.className" |
|
|
|
|
:value="item.id" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>实验状态:</label> |
|
|
|
|
<el-select size="small" v-model="form.status" @change="initData"> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item,index) in statusList" |
|
|
|
|
:key="index" :label="item.name" |
|
|
|
|
:value="item.value" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
<div class="page"> |
|
|
|
|
<h6 class="p-title">筛选</h6> |
|
|
|
|
<div class="tool mul"> |
|
|
|
|
<ul class="filter"> |
|
|
|
|
<li> |
|
|
|
|
<label>考核时间</label> |
|
|
|
|
<el-radio-group size="small" v-model="form.month"> |
|
|
|
|
<el-radio v-for="(item,index) in dateList" :key="index" :label="item.id" border> |
|
|
|
|
{{ item.name }} |
|
|
|
|
</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
<el-date-picker |
|
|
|
|
size="small" |
|
|
|
|
v-model="date" |
|
|
|
|
align="right" |
|
|
|
|
unlink-panels type="daterange" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
format="yyyy-MM-dd" |
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
clearable |
|
|
|
|
style="width: 300px" |
|
|
|
|
></el-date-picker> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>实验状态</label> |
|
|
|
|
<el-select size="small" v-model="form.status" @change="initData"> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item,index) in statusList" |
|
|
|
|
:key="index" :label="item.name" |
|
|
|
|
:value="item.value" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>实验班级</label> |
|
|
|
|
<el-select size="small" v-model="form.classId" @change="initData"> |
|
|
|
|
<el-option label="不限" value=""></el-option> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item,index) in classList" |
|
|
|
|
:key="index" |
|
|
|
|
:label="item.className" |
|
|
|
|
:value="item.id" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>课程名称</label> |
|
|
|
|
<el-select size="small" v-model="form.curriculumId" @change="initData"> |
|
|
|
|
<el-option label="不限" value=""></el-option> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item,index) in courseList" |
|
|
|
|
:key="index" |
|
|
|
|
:label="item.sysName" |
|
|
|
|
:value="item.sysId" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-table v-loading="listLoading" :data="listData" class="table" stripe header-align="center"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -91,7 +95,7 @@ |
|
|
|
|
<!-- <span class="ellipsis">{{ stuState[scope.row.stuState] }}</span>--> |
|
|
|
|
<!-- </template>--> |
|
|
|
|
<!-- </el-table-column>--> |
|
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
|
<el-table-column width="100" label="操作" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<!--status:考核状态(0、待开始 1、进行中 2、已结束); stuState:学生考试状态(0、未考 1、在考 2、已考)--> |
|
|
|
|
<el-button v-if="scope.row.status == 2 && scope.row.stuState == 0" type="text" disabled>未参加</el-button> |
|
|
|
@ -478,13 +482,18 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.page .tool { |
|
|
|
|
margin-bottom: 14px; |
|
|
|
|
.wrap { |
|
|
|
|
padding: 12px 60px 20px; |
|
|
|
|
} |
|
|
|
|
.page { |
|
|
|
|
padding: 16px; |
|
|
|
|
} |
|
|
|
|
.filter { |
|
|
|
|
display: flex; |
|
|
|
|
width: auto; |
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
li { |
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
margin-bottom: 16px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
/deep/ .el-tabs__nav-wrap::after { |
|
|
|
@ -496,9 +505,4 @@ export default { |
|
|
|
|
.el-radio-group { |
|
|
|
|
white-space: nowrap; |
|
|
|
|
} |
|
|
|
|
@media (max-width: 1430px) { |
|
|
|
|
.wrap { |
|
|
|
|
padding: 12px 100px 20px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |