|
@@ -268,6 +268,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.typef != "") {
|
|
|
+ this.typef = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.typef == typeid) {
|
|
|
+ this.typef = "";
|
|
|
+ } else {
|
|
|
+ this.typef = 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) {
|
|
|
this.typeE.splice(this.typeE.indexOf(typeid), 1);
|
|
@@ -287,21 +307,21 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- } else if (typeName == "赛道") {
|
|
|
+ } 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.typef != "") {
|
|
|
- this.typef = "";
|
|
|
+ if (this.typed != "") {
|
|
|
+ this.typed = "";
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- if (this.typef == typeid) {
|
|
|
- this.typef = "";
|
|
|
+ if (this.typed == typeid) {
|
|
|
+ this.typed = "";
|
|
|
} else {
|
|
|
- this.typef = typeid;
|
|
|
+ this.typed = typeid;
|
|
|
if (this.typeE.indexOf(ftypeId) != -1) {
|
|
|
this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
|
|
|
}
|