|
@@ -129,6 +129,8 @@
|
|
|
userid +
|
|
|
'&oid=' +
|
|
|
oid +
|
|
|
+ '&org='+
|
|
|
+ org +
|
|
|
'&cid=' +
|
|
|
classId +
|
|
|
'&tType=' +
|
|
@@ -190,6 +192,7 @@ export default {
|
|
|
oid: this.$route.query.oid,
|
|
|
classId: this.$route.query.cid,
|
|
|
tType: this.$route.query.tType,
|
|
|
+ org: this.$route.query.org,
|
|
|
screenType: this.$route.query.screenType,
|
|
|
CourseType: [],
|
|
|
CourseTypeJson: {},
|
|
@@ -462,6 +465,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.selectTypeByOid();
|
|
|
+ this.selectTypeByOrg();
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
@@ -490,6 +494,29 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ selectTypeByOrg() {
|
|
|
+ let params = {
|
|
|
+ oid: this.org,
|
|
|
+ };
|
|
|
+ this.ajax
|
|
|
+ .get(this.$store.state.api + "selectTypeByOrg", params)
|
|
|
+ .then((res) => {
|
|
|
+ for (var i = 0; i < res.data[0].length; i++) {
|
|
|
+ for (var j = 0; j < res.data[1].length; j++) {
|
|
|
+ if (res.data[0][i].id == res.data[1][j].pid) {
|
|
|
+ if (!this.CourseTypeJson[res.data[0][i].id]) {
|
|
|
+ this.CourseTypeJson[res.data[0][i].id] = [];
|
|
|
+ }
|
|
|
+ this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$forceUpdate();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
this.selectType();
|