|
@@ -417,6 +417,26 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ } else if (typeName == "学科") {
|
|
|
+ if (type == 1) {
|
|
|
+ if (this.typeE.indexOf(typeid) != -1) {
|
|
|
+ this.typeE.splice(this.typeE.indexOf(typeid), 1);
|
|
|
+ } else {
|
|
|
+ this.typeE.push(typeid);
|
|
|
+ if (this.typed != "") {
|
|
|
+ this.typed = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.typed == typeid) {
|
|
|
+ this.typed = "";
|
|
|
+ } else {
|
|
|
+ this.typed = typeid;
|
|
|
+ if (this.typeE.indexOf(ftypeId) != -1) {
|
|
|
+ this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
} else if (typeName == "项目类型") {
|
|
|
if (type == 1) {
|
|
|
if (this.typeE.indexOf(typeid) != -1) {
|
|
@@ -698,29 +718,42 @@ export default {
|
|
|
this.CourseType = res.data;
|
|
|
|
|
|
for (var i = 0; i < res.data[0].length; i++) {
|
|
|
+ if(res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86db5"){
|
|
|
+ res.data[0][i].name = "赛道";
|
|
|
+ }else if(res.data[0][i].id == "2f8beae3-d030-11ec-8c78-005056b86db5"){
|
|
|
+ res.data[0][i].name = "主题";
|
|
|
+ }else if(res.data[0][i].id == "34628934-d02f-11ec-8c78-005056b86db5"){
|
|
|
+ res.data[0][i].name = "年级";
|
|
|
+ }
|
|
|
if (!this.CourseTypeJson[res.data[0][i].id]) {
|
|
|
this.CourseTypeJson[res.data[0][i].id] = [];
|
|
|
}
|
|
|
if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
|
|
|
- if (res.data[0][i].name == "赛道") {
|
|
|
+ if (res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86db5") {
|
|
|
this.CourseType[0][i].name = "项目类型";
|
|
|
}
|
|
|
+ }else if(this.org == '150e3120-9195-11ed-b13d-005056b86db5'){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ if (res.data[0][i].name == "赛道") {
|
|
|
+ this.CourseType[0][i].name = "学科";
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (res.data[2].length == 0 && res.data[3].length == 0) {
|
|
|
- // for (var j = 0; j < res.data[1].length; j++) {
|
|
|
- // if (res.data[0][i].id == res.data[1][j].pid) {
|
|
|
- // this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
|
|
|
- // }
|
|
|
- // }
|
|
|
- if (this.org == '150e3120-9195-11ed-b13d-005056b86db5') {
|
|
|
+ if(this.org == '150e3120-9195-11ed-b13d-005056b86db5'){
|
|
|
+ for (var j = 0; j < res.data[1].length; j++) {
|
|
|
+ if (res.data[0][i].id == res.data[1][j].pid) {
|
|
|
+ this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ // this.CourseType = []
|
|
|
for (var j = 0; j < res.data[1].length; j++) {
|
|
|
if (res.data[0][i].id == res.data[1][j].pid) {
|
|
|
this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
|
|
|
}
|
|
|
}
|
|
|
- } else {
|
|
|
- this.CourseType = []
|
|
|
}
|
|
|
} else {
|
|
|
if (res.data[2].length > 0) {
|