diff --git a/src/components/DataZTree/components/ZTree/index.vue b/src/components/DataZTree/components/ZTree/index.vue index c0a257c05..def03ba4c 100644 --- a/src/components/DataZTree/components/ZTree/index.vue +++ b/src/components/DataZTree/components/ZTree/index.vue @@ -148,12 +148,12 @@ export default { rootNodeAddDom(rootNode) { const { showSearch, showRefresh } = this.treeSetting const searchIcon = ` - - + + ` const refreshIcon = ` - - + + ` const treeActions = `${showSearch ? searchIcon : ''}${showRefresh ? refreshIcon : ''}` const icons = ` @@ -306,7 +306,7 @@ export default { this.zTree.hideNodes(treeNodes) } - let treeUrl = this.treeSetting.treeUrl + let treeUrl = this.treeSetting.searchUrl ? this.treeSetting.searchUrl : this.treeSetting.treeUrl const filterField = treeUrl.includes('?') ? `&search=${keyword}` : `?search=${keyword}` if (treeUrl.indexOf('assets/nodes/children/tree') > -1) { treeUrl = treeUrl + '&all=all' @@ -336,259 +336,261 @@ export default { } - diff --git a/src/views/ops/Job/QuickJob.vue b/src/views/ops/Job/QuickJob.vue index 5f934da08..d6e1058e1 100644 --- a/src/views/ops/Job/QuickJob.vue +++ b/src/views/ops/Job/QuickJob.vue @@ -225,6 +225,7 @@ export default { }, treeSetting: { treeUrl: '/api/v1/perms/users/self/nodes/children-with-assets/tree/', + searchUrl: '/api/v1/perms/users/self/assets/tree/', showRefresh: true, showMenu: false, showSearch: true,