Browse Source

部门筛选优化

liwei19941102 2 năm trước cách đây
mục cha
commit
45e31bb23e
1 tập tin đã thay đổi với 11 bổ sung1 xóa
  1. 11 1
      src/views/car/carInfo/index.vue

+ 11 - 1
src/views/car/carInfo/index.vue

@@ -220,7 +220,8 @@
       ext2: undefined,
       ext2: undefined,
       params: {
       params: {
         ext1$energyType: undefined,
         ext1$energyType: undefined,
-        ext2$bussinessType: undefined
+        ext2$bussinessType: undefined,
+        ext1$deptId: undefined
       }
       }
     },
     },
     rules: {
     rules: {
@@ -439,6 +440,15 @@
     })
     })
   }
   }
 
 
+  const handleNodeClick = (data, node) => {
+    if (data.id != 100) {
+      queryParams.value.params["ext1$deptId"] = data.id
+    } else {
+      queryParams.value.params["ext1$deptId"] = null
+    }
+    getList();
+  }
+
   getList();
   getList();
 
 
   onMounted(() => {
   onMounted(() => {