|
@@ -2443,6 +2443,7 @@ import ganChart from "../components/ganChart.vue"
|
|
|
import graph from "../components/graph.vue"
|
|
|
import pdf from "../components/vpdf";
|
|
|
import * as imageConversion from "image-conversion";
|
|
|
+import courseDetailVue from '../courseDetail.vue';
|
|
|
export default {
|
|
|
components: {
|
|
|
EditorBar,
|
|
@@ -4542,6 +4543,9 @@ export default {
|
|
|
},
|
|
|
"*"
|
|
|
);
|
|
|
+ if(tool == 1 || tool == 3 || tool == 6){
|
|
|
+ this.setPeople(this.unitIndex,taskCount,this.userid);
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
previewImg(url) {
|
|
@@ -6826,14 +6830,19 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
setPeople(i, task, uid) {
|
|
|
+ if(this.checkboxList3.indexOf(uid) == -1 && uid != this.courseUserid){
|
|
|
+ this.checkboxList3.push(uid)
|
|
|
+ this.setMan();
|
|
|
+ }
|
|
|
+ debugger
|
|
|
if (
|
|
|
this.unitJson[i].chapterInfo[0].taskJson[task].people != uid && (!this.unitJson[i].chapterInfo[0].taskJson[task].tcMember || this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.indexOf(uid) == -1)
|
|
|
) {
|
|
|
this.unitJson[i].chapterInfo[0].taskJson[task].tcMember ?
|
|
|
this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.push(uid) :
|
|
|
this.unitJson[i].chapterInfo[0].taskJson[task].tcMember = [uid]
|
|
|
- this.$forceUpdate();
|
|
|
}
|
|
|
+ this.$forceUpdate();
|
|
|
},
|
|
|
goToTask(i) {
|
|
|
document.getElementsByClassName("rightBox")[0].scrollTop =
|
|
@@ -6999,7 +7008,7 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success",
|
|
|
});
|
|
|
- this.setPeople(this.unitIndex,this.taskCount,this.userid);
|
|
|
+ this.setPeople(this.unitIndex,task,this.userid);
|
|
|
this.seleteCourseUpdate();
|
|
|
})
|
|
|
.catch((err) => {
|