Commit bfc48606 by 潘建波

🐛 修改同步资源查询无效问题

1 parent 655061ba
......@@ -46,9 +46,13 @@ export default {
}
},
components: {},
watch: {
watch: {
filterText(val) {
this.$refs.synctree.filter(val);
debugger;
// this.$refs.synctree.filter(val);
setTimeout(() => {
this.$refs.synctree.filter(val);
}, 100);
},
treeDatas(val) {
this.treeData[0].childs = val;
......@@ -60,13 +64,12 @@ export default {
this.isLoadingTree = true;
},
filterNode(value, data) {
// console.log('filterNode:', data)
if (!value) return true;
return data.label.indexOf(value) !== -1;
},
handleNodeClick(data){
if(data.label === "平台同步资源") return;
this.$emit('syncTable', data)
handleNodeClick(data) {
if (data.label === "平台同步资源") return;
this.$emit("syncTable", data);
},
handleRefresh(s, d, n) {
// console.log(s, d, n)
......
......@@ -9,7 +9,7 @@
v-model="searchText"
>
</el-input>
<SyncTree ref="syncRef" :treeDatas="syncTree" @syncTable="syncTable">
<SyncTree ref="syncRef" :filterText="searchText" :treeDatas="syncTree" @syncTable="syncTable">
</SyncTree>
<cameraTree
:filterText="searchText"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!