Commit 6237196c by 胡悦

修改

1 parent 9530f4a6
...@@ -358,7 +358,11 @@ export default { ...@@ -358,7 +358,11 @@ export default {
exportData: {} exportData: {}
} }
}, },
watch: {
filterText(val) {
this.$refs.tree.filter(val);
}
},
mounted() { mounted() {
dictInfo('trialdrive_vehicle_model').then(res => { dictInfo('trialdrive_vehicle_model').then(res => {
this.vehicleData.find(item => item.prop == 'modelId').options = res.data this.vehicleData.find(item => item.prop == 'modelId').options = res.data
...@@ -588,6 +592,7 @@ export default { ...@@ -588,6 +592,7 @@ export default {
this.closeFilter(); this.closeFilter();
}, },
filterNode(value, data) { filterNode(value, data) {
console.log(value, data)
if (!value) return true if (!value) return true
return data.label.indexOf(value) !== -1 return data.label.indexOf(value) !== -1
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!