lsc před 2 roky
rodič
revize
b1deb90c9e
1 změnil soubory, kde provedl 20 přidání a 0 odebrání
  1. 20 0
      src/components/index.vue

+ 20 - 0
src/components/index.vue

@@ -282,6 +282,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.typeb != "") {
+              this.typeb = "";
+            }
+          }
+        } else {
+          if (this.typeb == typeid) {
+            this.typeb = "";
+          } else {
+            this.typeb = 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) {