mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
修改二次
This commit is contained in:
@@ -31,8 +31,12 @@ export default {
|
||||
});
|
||||
})
|
||||
},
|
||||
getCoachingTeacher(){
|
||||
console.log(this.value)
|
||||
getCoachingTeacher(val){
|
||||
addTeacher({pageNo:1,pageSize:20,keyword:val}).then(res=>{
|
||||
this.options = res.data.map(item => {
|
||||
return { value: item.realName, label: item.realName };
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
getJump(){
|
||||
@@ -74,7 +78,7 @@ export default {
|
||||
remote
|
||||
reserve-keyword
|
||||
placeholder="请输入辅导老师姓名"
|
||||
@change="getCoachingTeacher"
|
||||
:remote-method="getCoachingTeacher"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
|
||||
Reference in New Issue
Block a user