From 6693d187d58d1049b4d8f9024fcc5e56805e1fa4 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 18 Sep 2024 10:50:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E6=9F=A5=E7=9C=8B=E4=BB=AA=E8=A1=A8=E6=9D=BF=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=A1=86=E8=BF=87=E6=BB=A4=E5=99=A8=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/components/widget/deWidget/DeSelect.vue | 8 ++++++-- .../src/components/widget/deWidget/DeSelectGrid.vue | 8 ++++++-- .../src/components/widget/deWidget/DeSelectTree.vue | 8 ++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/core/frontend/src/components/widget/deWidget/DeSelect.vue b/core/frontend/src/components/widget/deWidget/DeSelect.vue index df97f6665d..d27b1e66ed 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelect.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelect.vue @@ -420,10 +420,14 @@ export default { if (!token && linkToken) { method = linkMultFieldValues } - method({ + const param = { fieldIds: this.element.options.attrs.fieldId.split(this.separator), sort: this.element.options.attrs.sort - }).then(res => { + } + if (this.panelInfo.proxy) { + param.userId = this.panelInfo.proxy + } + method(param).then(res => { this.data = this.optionData(res.data) bus.$emit('valid-values-change', true) cb && cb() diff --git a/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue b/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue index cf43f0521f..c5caad7810 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue @@ -364,10 +364,14 @@ export default { if (!token && linkToken) { method = linkMultFieldValues } - method({ + const param = { fieldIds: this.element.options.attrs.fieldId.split(','), sort: this.element.options.attrs.sort, keyword: this.keyWord - }).then(res => { + } + if (this.panelInfo.proxy) { + param.userId = this.panelInfo.proxy + } + method(param).then(res => { this.data = this.optionData(res.data) this.changeInputStyle() if (this.element.options.attrs.multiple) { diff --git a/core/frontend/src/components/widget/deWidget/DeSelectTree.vue b/core/frontend/src/components/widget/deWidget/DeSelectTree.vue index 0a4112e149..2dc7725884 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelectTree.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelectTree.vue @@ -293,10 +293,14 @@ export default { if (!token && linkToken) { method = linkMappingFieldValues } - method({ + const param = { fieldIds: this.element.options.attrs.fieldId.split(','), sort: this.element.options.attrs.sort - }).then(res => { + } + if (this.panelInfo.proxy) { + param.userId = this.panelInfo.proxy + } + method(param).then(res => { this.data = this.optionData(res.data) this.$nextTick(() => { this.$refs.deSelectTree && this.$refs.deSelectTree.treeDataUpdateFun(this.data)