lsc 2 年之前
父節點
當前提交
b1deb90c9e
共有 1 個文件被更改,包括 20 次插入0 次删除
  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) {