Explorar o código

部门筛选优化

liwei19941102 hai 1 ano
pai
achega
45e31bb23e
Modificáronse 1 ficheiros con 11 adicións e 1 borrados
  1. 11 1
      src/views/car/carInfo/index.vue

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

@@ -220,7 +220,8 @@
       ext2: undefined,
       params: {
         ext1$energyType: undefined,
-        ext2$bussinessType: undefined
+        ext2$bussinessType: undefined,
+        ext1$deptId: undefined
       }
     },
     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();
 
   onMounted(() => {