mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 06:46:43 +08:00
Merge branch 'zcwy-master' into dev0515
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -1392,7 +1392,8 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
progress(val) {
|
progress(val) {
|
||||||
this.sendEventProgress = val
|
const progressValue = parseFloat(val) * 100;
|
||||||
|
this.sendEventProgress = Number(progressValue.toFixed(2));
|
||||||
},
|
},
|
||||||
saveStudyDuration(duration) { //保存本地存储的学习时长
|
saveStudyDuration(duration) { //保存本地存储的学习时长
|
||||||
if (duration > 0) {
|
if (duration > 0) {
|
||||||
@@ -1411,7 +1412,9 @@
|
|||||||
"aname":this.userInfo.name,//当前人的姓名
|
"aname":this.userInfo.name,//当前人的姓名
|
||||||
"status": 1, //状态
|
"status": 1, //状态
|
||||||
"contentId": this.contentData.id,
|
"contentId": this.contentData.id,
|
||||||
"progress": this.sendEventProgress,
|
}
|
||||||
|
if(this.resType == 10){
|
||||||
|
postData.progress = this.sendEventProgress;
|
||||||
}
|
}
|
||||||
//静默处理
|
//静默处理
|
||||||
apiStat.sendEvent(postData).then(rs=>{
|
apiStat.sendEvent(postData).then(rs=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user