|
|
@@ -13067,6 +13067,13 @@ export default {
|
|
|
confirmOpenDigData:'',
|
|
|
canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5'],
|
|
|
diffKey:"1",
|
|
|
+ getCourseGroupLoading: false,
|
|
|
+ selectSWorksLoading:false,
|
|
|
+ selectStudentLoading:false,
|
|
|
+ selectSLookLoading:false,
|
|
|
+ getPickLoading:false,
|
|
|
+ selectPzLoading:false,
|
|
|
+ getSplitScreenDataLoading:false,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -14531,6 +14538,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
selectStudent() {
|
|
|
+ if(this.selectStudentLoading) return
|
|
|
+ this.selectStudentLoading = true
|
|
|
//学生查看自己作业
|
|
|
let params = {
|
|
|
uid: this.userid,
|
|
|
@@ -14853,8 +14862,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ this.selectStudentLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ this.selectStudentLoading = false
|
|
|
+
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
@@ -15213,6 +15226,8 @@ export default {
|
|
|
.catch(() => {});
|
|
|
},
|
|
|
selectSWorks(gindex) {
|
|
|
+ if(this.selectSWorksLoading) return
|
|
|
+ this.selectSWorksLoading = true
|
|
|
//教师查看全部作业
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
|
@@ -16313,8 +16328,12 @@ export default {
|
|
|
}, 0)
|
|
|
})
|
|
|
}
|
|
|
+ this.selectSWorksLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ this.selectSWorksLoading = false
|
|
|
+
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
@@ -17816,6 +17835,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getCourseGroup(gindex) {
|
|
|
+ if(this.getCourseGroupLoading) return
|
|
|
+ this.getCourseGroupLoading = true
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
|
classid: this.tcid ? this.tcid : "1",
|
|
|
@@ -17865,8 +17886,12 @@ export default {
|
|
|
this.selectSWorks(gindex);
|
|
|
this.isGroup = false;
|
|
|
}
|
|
|
+ this.getCourseGroupLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ this.getCourseGroupLoading = false
|
|
|
+
|
|
|
// this.$message.error("网络不佳");
|
|
|
console.error(err);
|
|
|
});
|
|
|
@@ -18037,6 +18062,8 @@ export default {
|
|
|
this.selectPz();
|
|
|
},
|
|
|
selectPz() {
|
|
|
+ if(this.selectPzLoading) return
|
|
|
+ this.selectPzLoading = true
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
|
s: this.courseType,
|
|
|
@@ -18059,8 +18086,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ this.selectPzLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ this.selectPzLoading = false
|
|
|
+
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
@@ -18214,6 +18245,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
selectSLook() {
|
|
|
+ if(this.selectSLookLoading) return
|
|
|
+ this.selectSLookLoading = true
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
|
};
|
|
|
@@ -18246,8 +18279,12 @@ export default {
|
|
|
this.getCourseDetail(2);
|
|
|
}
|
|
|
}
|
|
|
+ this.selectSLookLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ this.selectSLookLoading = false
|
|
|
+
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
@@ -21030,6 +21067,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getPick() {
|
|
|
+ if(this.getPickLoading) return
|
|
|
+ this.getPickLoading = true
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
|
};
|
|
|
@@ -21067,8 +21106,12 @@ export default {
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
}
|
|
|
+ this.getPickLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ this.getPickLoading = false
|
|
|
+
|
|
|
this.$message.error("网络不佳");
|
|
|
console.error(err);
|
|
|
});
|
|
|
@@ -21255,6 +21298,8 @@ export default {
|
|
|
getSplitScreenData() {
|
|
|
// return;
|
|
|
// if (this.tType != 1) return;
|
|
|
+ if(this.getSplitScreenDataLoading) return
|
|
|
+ this.getSplitScreenDataLoading = true
|
|
|
let params = {
|
|
|
cid: this.id
|
|
|
};
|
|
|
@@ -21321,8 +21366,12 @@ export default {
|
|
|
.catch(() => {});
|
|
|
}
|
|
|
}
|
|
|
+ this.getSplitScreenDataLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch(e => {
|
|
|
+ this.getSplitScreenDataLoading = false
|
|
|
+
|
|
|
console.log("获取分屏数出错:", e);
|
|
|
});
|
|
|
},
|