Explorar el Código

单位树查询修改。

zhengqiang hace 5 años
padre
commit
d626e51180
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/components/SelectTree/index.vue

+ 3 - 1
src/components/SelectTree/index.vue

@@ -174,7 +174,9 @@ export default {
     },
     filterNode(value, data) {
       if (!value) return true;
-      return data.name.indexOf(value) !== -1;
+
+      var name = data[this.props.label];
+      return name.indexOf(value) !== -1;
     }
   },
   watch: {