From d289085047c1b5b77a654b5be7c4069b3751defb Mon Sep 17 00:00:00 2001 From: yaojn Date: Fri, 7 Nov 2025 11:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=20-=20[=E4=BF=AE=E5=A4=8D]=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E5=AD=90=E7=BB=84=E4=BB=B6=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=90=8E=E5=80=BC=E4=B8=A2=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20=20=20=20=20-=20[=E5=85=B3=E8=81=94]#[1548695533748224]?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E5=AD=90=E7=BB=84=E4=BB=B6=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=90=8E=E5=80=BC=E4=B8=A2=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947?= =?UTF-8?q?543040/939050947543057/1548695533748224?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/plugins/TsSheet/child-form-item.vue | 4 +++- .../plugins/TsSheet/form/component/formcollapse.vue | 5 +---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/resources/plugins/TsSheet/child-form-item.vue b/src/resources/plugins/TsSheet/child-form-item.vue index 5e7b8938..59d47ac0 100644 --- a/src/resources/plugins/TsSheet/child-form-item.vue +++ b/src/resources/plugins/TsSheet/child-form-item.vue @@ -32,6 +32,7 @@ :isClearSpecifiedAttr="isClearSpecifiedAttr" :externalData="externalData" @resize="$emit('resize')" + @setValue="setValue" @emit=" val => { $emit('emit', val); @@ -171,7 +172,8 @@ export default { return errorList; }, setValue(val) { - this.$emit('setValue', {uuid: this.formItem.uuid, value: val}); + const { value } = val || {}; + this.$set(this.formData, this.formItem.uuid, value); } }, filter: {}, diff --git a/src/resources/plugins/TsSheet/form/component/formcollapse.vue b/src/resources/plugins/TsSheet/form/component/formcollapse.vue index 30285d59..76cbbd6a 100644 --- a/src/resources/plugins/TsSheet/form/component/formcollapse.vue +++ b/src/resources/plugins/TsSheet/form/component/formcollapse.vue @@ -24,13 +24,13 @@ :formItem="component" :formData="formData" :formItemList="formItemList" + :formDataForWatch="formDataForWatch" :mode="mode" :disabled="disabled" :readonly="readonly" :externalData="externalData" :disabledDelete="formItem.hasOwnProperty('inherit')" @resize="$emit('resize')" - @setValue="setValue" @emit=" val => { $emit('emit', val); @@ -188,9 +188,6 @@ export default { this.currentTabObj.component.push(this.currentEventItem.uuid); } this.isShowFormItemKeyDialog = false; - }, - setValue(val) { - this.$emit('setValue', val); } }, filter: {}, -- Gitee