|
@@ -221,11 +221,15 @@ export default {
|
|
let _this = this;
|
|
let _this = this;
|
|
|
|
|
|
timer = window.setInterval(function() {
|
|
timer = window.setInterval(function() {
|
|
- updateLearningTimeStudied(row).then(response => {
|
|
|
|
- _this.learning.learningTimeStudied = response.data.learningTimeStudied;
|
|
|
|
- _this.learning.learningProgress = response.data.learningProgress;
|
|
|
|
- _this.$forceUpdate();
|
|
|
|
- });
|
|
|
|
|
|
+ // 累计学习时长<规定学习时长
|
|
|
|
+ if (row.learningTimeStudied < row.learningTimeRequired) {
|
|
|
|
+ // 累计时间
|
|
|
|
+ updateLearningTimeStudied(row).then(response => {
|
|
|
|
+ _this.learning.learningTimeStudied = response.data.learningTimeStudied;
|
|
|
|
+ _this.learning.learningProgress = response.data.learningProgress;
|
|
|
|
+ _this.$forceUpdate();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}, 60000);
|
|
}, 60000);
|
|
},
|
|
},
|
|
// 状态字典翻译
|
|
// 状态字典翻译
|