Commit bc5b44c3 authored by 黄奎's avatar 黄奎
parents ea62d681 d68c76db
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
<div style="margin:10px 0 15px 0;">邀请新学员</div> <div style="margin:10px 0 15px 0;">邀请新学员</div>
</div> </div>
<div class="drop_NameDown"> <div class="drop_NameDown">
<q-select standout="bg-primary text-white" v-model="checkedStudent" :options="InvitationList" <q-select dense standout filled v-model="checkedStudent" :options="InvitationOptions"
option-value="StuId" option-label="StuName" label="选择学员" /> @filter="filterInvitaFn" emit-value map-options input-debounce="0" use-input option-value="StuId" option-label="StuName" label="选择学员" />
</div> </div>
<q-card-actions align="right" class="bg-white" style="margin-top:20px;"> <q-card-actions align="right" class="bg-white" style="margin-top:20px;">
<q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="ishowInvit=false" /> <q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="ishowInvit=false" />
...@@ -148,6 +148,7 @@ ...@@ -148,6 +148,7 @@
}, },
InvitationList: [], //学员下拉数据 InvitationList: [], //学员下拉数据
checkedStudent: '', //选择学员 checkedStudent: '', //选择学员
InvitationOptions:[]
} }
}, },
created() { created() {
...@@ -158,6 +159,14 @@ ...@@ -158,6 +159,14 @@
this.getStudentList(); this.getStudentList();
}, },
methods: { methods: {
filterInvitaFn(val, update, abort) {
update(() => {
this.InvitationOptions = this.InvitationList.filter(
v => v.StuName.indexOf(val) > -1
);
});
},
//获取学员信息 //获取学员信息
getStudentData() { getStudentData() {
this.studentList = []; this.studentList = [];
...@@ -220,7 +229,7 @@ ...@@ -220,7 +229,7 @@
GetStudentList({}).then(res => { GetStudentList({}).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.InvitationList = res.Data; this.InvitationList = res.Data;
console.log("this.InvitationList",this.InvitationList); this.InvitationOptions = this.InvitationList;
} }
}) })
}, },
......
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