diff --git a/src/views/lecturer/TwoCoaching.vue b/src/views/lecturer/TwoCoaching.vue index 77a13b35..c9383a0a 100644 --- a/src/views/lecturer/TwoCoaching.vue +++ b/src/views/lecturer/TwoCoaching.vue @@ -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" > 0) { @@ -1411,7 +1412,9 @@ "aname":this.userInfo.name,//当前人的姓名 "status": 1, //状态 "contentId": this.contentData.id, - "progress": this.sendEventProgress, + } + if(this.resType == 10){ + postData.progress = this.sendEventProgress; } //静默处理 apiStat.sendEvent(postData).then(rs=>{