提交
This commit is contained in:
@@ -704,6 +704,7 @@ export default {
|
||||
fontWeight: "bold",
|
||||
color: "#258feb",
|
||||
},
|
||||
classStatus: false, //点击结班改变按钮状态
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
@@ -1096,10 +1097,14 @@ export default {
|
||||
},
|
||||
// 改变班级状态
|
||||
changeClassStatu(statusCode) {
|
||||
debounce(async () => {
|
||||
let that = this;
|
||||
that.opClass(statusCode);
|
||||
}, 300);
|
||||
if(this.classStatus){
|
||||
return
|
||||
}
|
||||
this.classStatus = true;
|
||||
debounce(async () => {
|
||||
let that = this;
|
||||
that.opClass(statusCode);
|
||||
}, 300);
|
||||
},
|
||||
// 考试周和结班状态下,学员的信息
|
||||
async getStudentScoreList() {
|
||||
@@ -1180,6 +1185,7 @@ export default {
|
||||
title: "操作成功",
|
||||
icon: "success",
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
this.getClassInfo();
|
||||
if (statusCode == "2") {
|
||||
@@ -1196,9 +1202,11 @@ export default {
|
||||
})
|
||||
.catch((e) => {
|
||||
uni.hideLoading();
|
||||
//恢复按钮状态
|
||||
this.classStatus = false;
|
||||
console.log(e, "数据报错");
|
||||
uni.showToast({
|
||||
title: res.errMsg,
|
||||
title: e.errMsg,
|
||||
icon: "none",
|
||||
duration: 3000,
|
||||
});
|
||||
@@ -1363,7 +1371,7 @@ export default {
|
||||
this.thisClass.homeWorkNumber = 0;
|
||||
if (res.result.classModel.days > 0) {
|
||||
this.thisClass.homeWorkNumber = Math.ceil(
|
||||
(res.result.classModel.days - res.result.classModel.examDays) /
|
||||
(res.result.classModel.days) /
|
||||
7
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user