|
|
|
@ -11,14 +11,14 @@ |
|
|
|
|
<div> |
|
|
|
|
<el-form label-width="80px"> |
|
|
|
|
<el-form-item label="实验班级" class="userRadio"> |
|
|
|
|
<el-radio-group v-model="form.classId" @change="getData"> |
|
|
|
|
<el-radio-group v-model="form.classId" @change="initData"> |
|
|
|
|
<el-radio label="" border>不限</el-radio> |
|
|
|
|
<el-radio v-for="(item,index) in classList" :key="index" :label="item.classId" border>{{item.className}}</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
<div class="flex-between no-mb"> |
|
|
|
|
<el-form-item label="考核状态"> |
|
|
|
|
<el-select v-model="form.status" clearable placeholder="请选择实验状态" @change="getData"> |
|
|
|
|
<el-select v-model="form.status" clearable placeholder="请选择实验状态" @change="initData"> |
|
|
|
|
<el-option v-for="(item,index) in statusList" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -140,7 +140,7 @@ export default { |
|
|
|
|
keyword: function(val) { |
|
|
|
|
clearTimeout(this.searchTimer) |
|
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
|
this.getData() |
|
|
|
|
this.initData() |
|
|
|
|
},500) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -214,6 +214,10 @@ export default { |
|
|
|
|
this.handlePage() |
|
|
|
|
}).catch(err => {}) |
|
|
|
|
}, |
|
|
|
|
initData(){ |
|
|
|
|
this.pageNo = 1 |
|
|
|
|
this.getData() |
|
|
|
|
}, |
|
|
|
|
handlePage(){ |
|
|
|
|
let list = this.listDataAll |
|
|
|
|
this.listData = list.slice((this.pageNo - 1) * this.pageSize,this.pageNo * this.pageSize) |
|
|
|
|