From d6a7d93398f33931b9c9df31cc2d9c94e427a9f7 Mon Sep 17 00:00:00 2001 From: Aaron3S Date: Wed, 10 May 2023 16:03:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dops=20=E5=BF=AB?= =?UTF-8?q?=E6=8D=B7=E5=91=BD=E4=BB=A4=E6=90=9C=E7=B4=A2=E6=A0=91=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DataZTree/components/ZTree/index.vue | 468 +++++++++--------- src/views/ops/Job/QuickJob.vue | 1 + 2 files changed, 236 insertions(+), 233 deletions(-) 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,