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