This commit is contained in:
liuyuan
2025-06-10 17:50:28 +08:00
parent d8bfb66827
commit 29b2a8b206
15 changed files with 3960 additions and 3412 deletions

View File

@@ -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
);
}