|
@@ -457,13 +457,11 @@ export default {
|
|
|
this.getTwoRigData();
|
|
|
|
|
|
this.handleData();
|
|
|
- this.digLoading = false;
|
|
|
-
|
|
|
- return;
|
|
|
} else {
|
|
|
this.getTwoRigData();
|
|
|
this.handleData();
|
|
|
}
|
|
|
+ this.digLoading = false;
|
|
|
})
|
|
|
.catch(error => {
|
|
|
console.log(error);
|
|
@@ -533,7 +531,7 @@ export default {
|
|
|
},
|
|
|
// 切换教师
|
|
|
upTea() {
|
|
|
- if (this.cutTeaNum <= 0) return this.$message("已经是第一个了");
|
|
|
+ if (this.cutTeaNum <= 0) return this.$message.error("已经是第一个了");
|
|
|
this.digLoading = true;
|
|
|
|
|
|
this.cutTeaNum--;
|
|
@@ -549,7 +547,7 @@ export default {
|
|
|
nextTea() {
|
|
|
// console.log("this.tableData", this.tableData);
|
|
|
if (this.cutTeaNum + 1 >= this.tableData.length)
|
|
|
- return this.$message("已经是最后一个了");
|
|
|
+ return this.$message.error("已经是最后一个了");
|
|
|
this.digLoading = true;
|
|
|
|
|
|
this.cutTeaNum++;
|