Commit bfc48606 by 潘建波

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

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