|
|
@@ -5196,7 +5196,7 @@
|
|
|
<div
|
|
|
v-for="(s, sIndex) in noWorksS[toolIndex]"
|
|
|
:key="sIndex"
|
|
|
- class="noWorksName"
|
|
|
+ class="noWorksName2"
|
|
|
@click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
|
|
|
>
|
|
|
<el-tooltip
|
|
|
@@ -16820,7 +16820,14 @@ export default {
|
|
|
},
|
|
|
confirmOpenDig:false,
|
|
|
confirmOpenDigData:'',
|
|
|
- diffKey:"1"
|
|
|
+ diffKey:"1",
|
|
|
+ getCourseGroupLoading: false,
|
|
|
+ selectSWorksLoading:false,
|
|
|
+ selectStudentLoading:false,
|
|
|
+ selectSLookLoading:false,
|
|
|
+ getPickLoading:false,
|
|
|
+ selectPzLoading:false,
|
|
|
+ getSplitScreenDataLoading:false,
|
|
|
};
|
|
|
},
|
|
|
watch:{
|
|
|
@@ -16842,11 +16849,11 @@ export default {
|
|
|
},
|
|
|
worksStudent: {
|
|
|
handler(newVal, oldVal) {
|
|
|
- const sum1 = newVal.reduce((total, subArr) => total + subArr.length, 0);
|
|
|
- const sum2 = oldVal.reduce((total, subArr) => total + subArr.length, 0);
|
|
|
+ // const sum1 = newVal.reduce((total, subArr) => total + subArr.length, 0);
|
|
|
+ // const sum2 = oldVal.reduce((total, subArr) => total + subArr.length, 0);
|
|
|
// console.log('worksStudent',sum1,sum2);
|
|
|
|
|
|
- if(sum1 != sum2){
|
|
|
+ if(JSON.stringify(newVal) != JSON.stringify(oldVal)){
|
|
|
this.AIloading = [];
|
|
|
this.loopLoading = [];
|
|
|
|
|
|
@@ -17797,6 +17804,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ console.log('6666');
|
|
|
+
|
|
|
this.navList[i].task[j].tool[k].isTool = !this.navList[i].task[j].tool[k]
|
|
|
.isTool;
|
|
|
var a = document.scrollingElement;
|
|
|
@@ -19012,6 +19021,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
selectStudent() {
|
|
|
+ if (this.selectStudentLoading) return
|
|
|
+ this.selectStudentLoading = true
|
|
|
//学生查看自己作业
|
|
|
let params = {
|
|
|
uid: this.userid,
|
|
|
@@ -19333,8 +19344,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ this.selectStudentLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch(err => {
|
|
|
+ this.selectStudentLoading = false
|
|
|
+
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
@@ -19773,6 +19788,8 @@ export default {
|
|
|
return lang;
|
|
|
},
|
|
|
selectSWorks(gindex) {
|
|
|
+ if (this.selectSWorksLoading) return
|
|
|
+ this.selectSWorksLoading = true
|
|
|
//教师查看全部作业
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
|
@@ -20891,8 +20908,12 @@ export default {
|
|
|
}, 0);
|
|
|
});
|
|
|
}
|
|
|
+ this.selectSWorksLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch(err => {
|
|
|
+ this.selectSWorksLoading = false
|
|
|
+
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
@@ -22477,6 +22498,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getCourseGroup(gindex) {
|
|
|
+ if(this.getCourseGroupLoading) return
|
|
|
+ this.getCourseGroupLoading = true
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
|
classid: this.tcid ? this.tcid : "1"
|
|
|
@@ -22526,8 +22549,10 @@ export default {
|
|
|
this.selectSWorks(gindex);
|
|
|
this.isGroup = false;
|
|
|
}
|
|
|
+ this.getCourseGroupLoading = false
|
|
|
})
|
|
|
.catch(err => {
|
|
|
+ this.getCourseGroupLoading = false
|
|
|
// this.$message.error("网络不佳");
|
|
|
console.error(err);
|
|
|
});
|
|
|
@@ -22699,6 +22724,8 @@ export default {
|
|
|
this.selectPz();
|
|
|
},
|
|
|
selectPz() {
|
|
|
+ if(this.selectPzLoading) return
|
|
|
+ this.selectPzLoading = true
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
|
s: this.courseType,
|
|
|
@@ -22721,8 +22748,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ this.selectPzLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch(err => {
|
|
|
+ this.selectPzLoading = false
|
|
|
+
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
@@ -22876,6 +22907,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
selectSLook() {
|
|
|
+ if(this.selectSLookLoading) return
|
|
|
+ this.selectSLookLoading = true
|
|
|
let params = {
|
|
|
cid: this.id
|
|
|
};
|
|
|
@@ -22909,8 +22942,12 @@ export default {
|
|
|
this.getCourseDetail(2);
|
|
|
}
|
|
|
}
|
|
|
+ this.selectSLookLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch(err => {
|
|
|
+ this.selectSLookLoading = false
|
|
|
+
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
@@ -24256,6 +24293,9 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
teacherWorkSubmit(t, i, index, s) {
|
|
|
+ console.log('t',t);
|
|
|
+ if(t == 72) return
|
|
|
+
|
|
|
this.sStudent = s;
|
|
|
this.toolindex = i;
|
|
|
this.sTool = t;
|
|
|
@@ -25758,6 +25798,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getPick() {
|
|
|
+ if(this.getPickLoading) return
|
|
|
+ this.getPickLoading = true
|
|
|
let params = {
|
|
|
cid: this.id
|
|
|
};
|
|
|
@@ -25795,8 +25837,10 @@ export default {
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
}
|
|
|
+ this.getPickLoading = false
|
|
|
})
|
|
|
.catch(err => {
|
|
|
+ this.getPickLoading = false
|
|
|
this.$message.error("网络不佳");
|
|
|
console.error(err);
|
|
|
});
|
|
|
@@ -25993,6 +26037,8 @@ export default {
|
|
|
getSplitScreenData() {
|
|
|
// return;
|
|
|
// if (this.tType != 1) return;
|
|
|
+ if(this.getSplitScreenDataLoading) return
|
|
|
+ this.getSplitScreenDataLoading = true
|
|
|
let params = {
|
|
|
cid: this.id
|
|
|
};
|
|
|
@@ -26060,8 +26106,12 @@ export default {
|
|
|
.catch(() => {});
|
|
|
}
|
|
|
}
|
|
|
+ this.getSplitScreenDataLoading = false
|
|
|
+
|
|
|
})
|
|
|
.catch(e => {
|
|
|
+ this.getSplitScreenDataLoading = false
|
|
|
+
|
|
|
console.log("获取分屏数出错:", e);
|
|
|
});
|
|
|
},
|
|
|
@@ -28403,6 +28453,31 @@ export default {
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
|
|
|
+.noWorksName2 {
|
|
|
+ background: #fff;
|
|
|
+ color: #0061ff;
|
|
|
+ width: 90px;
|
|
|
+ height: 25px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 25px;
|
|
|
+ border-radius: 4px;
|
|
|
+ margin: 10px 15px 10px 0;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ padding: 5px;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ cursor: pointer;
|
|
|
+ border: 1px solid #0061ff;
|
|
|
+}
|
|
|
+
|
|
|
+.noWorksName2 > span {
|
|
|
+ max-width: 100%;
|
|
|
+ display: block;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
+
|
|
|
.isWorksName2 {
|
|
|
width: 100px;
|
|
|
height: 40px;
|