Commit 9b881239 authored by zhengke's avatar zhengke

修改

parent 1d41a084
......@@ -174,16 +174,16 @@
<div class="page-search row items-center">
<div class="col row wrap q-ml-lg q-col-gutter-md">
<div class="col-3">
<q-input @input="research" clearable standout="bg-primary text-white" v-model="msg.GuestName" label="学员名称"
@clear="research" maxlength="20" />
<q-input @input="research(1)" clearable standout="bg-primary text-white" v-model="msg.GuestName" label="学员名称"
@clear="research(0)" maxlength="20" />
</div>
<div class="col-3">
<q-input @input="research" clearable standout="bg-primary text-white" v-model="msg.ClassName" label="班级名称"
@clear="research" maxlength="20" />
<q-input @input="research(2)" clearable standout="bg-primary text-white" v-model="msg.ClassName" label="班级名称"
@clear="research(0)" maxlength="20" />
</div>
<div class="col-3">
<q-input @input="research" clearable standout="bg-primary text-white" v-model="msg.ClassNo" label="班级编号"
@clear="research" maxlength="20" />
<q-input @input="research(3)" clearable standout="bg-primary text-white" v-model="msg.ClassNo" label="班级编号"
@clear="research(0)" maxlength="20" />
</div>
</div>
</div>
......@@ -274,6 +274,7 @@
dataList: [], //数据列表
checkedStu: [], //选中数据
checked: false,
AlldataList:[] //所有数据
}
},
mounted() {
......@@ -326,14 +327,23 @@
this.setStuChecked();
},
//重新查询
research() {
this.getClassStudentTree();
research(type) {
//按学员名称过滤
if(type==1){
const needle = this.msg.GuestName;
this.dataList = this.AlldataList.filter(
(v) => v.Name.indexOf(needle) > -1
);
console.log(this.dataList);
}
// this.getClassStudentTree();
},
//获取题库分页列表
getClassStudentTree() {
queryClassStudentTree(this.msg).then(res => {
if (res.Code == 1) {
this.dataList = res.Data;
this.AlldataList = res.Data;
this.dataList.forEach(x => {
x.isShowChild = false;
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment