修改二次

This commit is contained in:
zhangsir
2024-06-03 21:32:56 +08:00
parent 7d27f428b5
commit 47146754d7

View File

@@ -31,8 +31,12 @@ export default {
}); });
}) })
}, },
getCoachingTeacher(){ getCoachingTeacher(val){
console.log(this.value) addTeacher({pageNo:1,pageSize:20,keyword:val}).then(res=>{
this.options = res.data.map(item => {
return { value: item.realName, label: item.realName };
});
})
}, },
getJump(){ getJump(){
@@ -74,7 +78,7 @@ export default {
remote remote
reserve-keyword reserve-keyword
placeholder="请输入辅导老师姓名" placeholder="请输入辅导老师姓名"
@change="getCoachingTeacher" :remote-method="getCoachingTeacher"
> >
<el-option <el-option
v-for="item in options" v-for="item in options"