From 7aa833d048a1f13769366aa15d7b9e1a151b7983 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Sun, 3 Jul 2022 21:43:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E8=BF=87=E6=BB=A4=E5=99=A8=E6=8E=92=E5=BA=8F=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=87=BA=E7=8E=B0sql=E6=B3=A8=E5=85=A5=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=90=8E=E4=BE=9D=E7=84=B6=E8=83=BD=E5=A4=9F=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/DeWidget/DeSelect.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/components/widget/DeWidget/DeSelect.vue b/frontend/src/components/widget/DeWidget/DeSelect.vue index a79378e6e9..9b1571bacc 100644 --- a/frontend/src/components/widget/DeWidget/DeSelect.vue +++ b/frontend/src/components/widget/DeWidget/DeSelect.vue @@ -128,6 +128,8 @@ export default { this.element.options.attrs.fieldId.length > 0 && method(param).then(res => { this.datas = this.optionDatas(res.data) + }).catch(e => { + bus.$emit('valid-values-change', false) }) || (this.element.options.value = '') }, 'element.options.attrs.multiple': function(value, old) { @@ -167,6 +169,8 @@ export default { this.show = true this.handleCoustomStyle() }) + }).catch(e => { + bus.$emit('valid-values-change', false) }) || (this.element.options.value = '') } @@ -222,6 +226,8 @@ export default { } method({ fieldIds: this.element.options.attrs.fieldId.split(','), sort: this.element.options.attrs.sort }).then(res => { this.datas = this.optionDatas(res.data) + }).catch(e => { + bus.$emit('valid-values-change', false) }) } if (this.element.options.value) {