From 47146754d72b02e7064b2da93196f3e92b99069c Mon Sep 17 00:00:00 2001 From: zhangsir Date: Mon, 3 Jun 2024 21:32:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=8C=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lecturer/TwoCoaching.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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" > Date: Tue, 4 Jun 2024 09:26:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=8A=A0=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/coursenew.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 73893027..9b8394c0 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -1392,7 +1392,8 @@ }); }, progress(val) { - this.sendEventProgress = val + const progressValue = parseFloat(val) * 100; + this.sendEventProgress = Number(progressValue.toFixed(2)); }, saveStudyDuration(duration) { //保存本地存储的学习时长 if (duration > 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=>{