|
@@ -133,9 +133,9 @@
|
|
|
<div class="task_pbox" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
taskCount
|
|
|
].people">负责人:{{
|
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
+ getMan(chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
taskCount
|
|
|
- ].people
|
|
|
+ ].people)
|
|
|
}}</div>
|
|
|
<div class="task_pbox" style="color:#838383" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
taskCount
|
|
@@ -727,6 +727,7 @@ export default {
|
|
|
deleteGroupArray: {},
|
|
|
checkChair: "",
|
|
|
checkDeleteGroup: [],
|
|
|
+ ManAarray: [],
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -884,7 +885,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
allScrell() {
|
|
|
- window.parent.postMessage({ allScreen: this.screenType+'s' }, "*");
|
|
|
+ window.parent.postMessage({ allScreen: this.screenType + 's' }, "*");
|
|
|
},
|
|
|
nextOrpreSteps(t) {
|
|
|
var b = this.chapInfoList.length - 1;
|
|
@@ -1118,7 +1119,7 @@ export default {
|
|
|
console.log(unitJson);
|
|
|
for (var i = 0; i < unitJson.length; i++) {
|
|
|
let task = unitJson[i].chapterInfo[0].taskJson
|
|
|
-
|
|
|
+
|
|
|
for (var j = 0; j < task.length; j++) {
|
|
|
var tool = task[j].toolArray
|
|
|
for (var z = 0; z < tool.length; z++) {
|
|
@@ -1134,6 +1135,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ this.getTeacher();
|
|
|
} else {
|
|
|
this.courseDetail = res.data[0][0];
|
|
|
this.chapInfoList = JSON.parse(this.courseDetail.chapters);
|
|
@@ -1308,6 +1310,30 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ getTeacher() {
|
|
|
+ let params = {
|
|
|
+ oid:
|
|
|
+ this.org && this.org != "undefined" && this.org != "null"
|
|
|
+ ? this.org
|
|
|
+ : this.oid,
|
|
|
+ cu: "",
|
|
|
+ cn: "",
|
|
|
+ };
|
|
|
+ this.ajax
|
|
|
+ .get(
|
|
|
+ this.$store.state.api +
|
|
|
+ (this.org && this.org != "undefined" && this.org != "null"
|
|
|
+ ? "selectUserAddOrg"
|
|
|
+ : "selectUserAdd"),
|
|
|
+ params
|
|
|
+ )
|
|
|
+ .then((res) => {
|
|
|
+ this.ManAarray = res.data[0]
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
addTools(t, i, index) {
|
|
|
var a = 0;
|
|
|
// this.taskCount = index;
|
|
@@ -1778,11 +1804,25 @@ export default {
|
|
|
+ ((time.getDate()) < 10 ? '0' + (time.getDate()) : (time.getDate()));
|
|
|
return s2
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ getMan() {
|
|
|
+ return function (people) {
|
|
|
+ let _people = people
|
|
|
+ if (this.ManAarray.length) {
|
|
|
+ for (var i = 0; i < this.ManAarray.length; i++) {
|
|
|
+ if (this.ManAarray[i].userid == people) {
|
|
|
+ _people = this.ManAarray[i].name;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return _people
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
if (this.screenType == 2) {
|
|
|
- window.parent.postMessage({ allScreen: 4+'s' }, "*");
|
|
|
+ window.parent.postMessage({ allScreen: 4 + 's' }, "*");
|
|
|
} else if (this.screenType == 3) {
|
|
|
window.parent.postMessage({ allScreen: 5 }, "*");
|
|
|
} else if (this.screenType == 1) {
|