|
@@ -420,29 +420,37 @@ export default {
|
|
|
if (this.planType === 1) {
|
|
|
timer = window.setInterval(function () {
|
|
|
updateLjLearnTime(row).then(res => {
|
|
|
- this.file.data.timer = res.data
|
|
|
- this.learnTime+=res.data;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.file.data.timer = res.data
|
|
|
+ this.learnTime+=res.data;
|
|
|
+ })
|
|
|
})
|
|
|
}, 60000);
|
|
|
} else if (this.planType === 2) {
|
|
|
timer = window.setInterval(function () {
|
|
|
updateYsLearnTime(row).then(res => {
|
|
|
- this.file.data.timer = res.data
|
|
|
- this.learnTime+=res.data;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.file.data.timer = res.data
|
|
|
+ this.learnTime+=res.data;
|
|
|
+ })
|
|
|
})
|
|
|
}, 60000);
|
|
|
} else if (this.planType === 3) {
|
|
|
timer = window.setInterval(function () {
|
|
|
updateFlLearnTime(row).then(res => {
|
|
|
- this.file.data.timer = res.data
|
|
|
- this.learnTime+=res.data;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.file.data.timer = res.data
|
|
|
+ this.learnTime+=res.data;
|
|
|
+ })
|
|
|
})
|
|
|
}, 60000);
|
|
|
} else if (this.planType === 4) {
|
|
|
timer = window.setInterval(function () {
|
|
|
updateFtLearnTime(row).then(res => {
|
|
|
- this.file.data.timer = res.data
|
|
|
- this.learnTime+=res.data;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.file.data.timer = res.data
|
|
|
+ this.learnTime+=res.data;
|
|
|
+ })
|
|
|
})
|
|
|
}, 60000);
|
|
|
}
|