From f5f8aaedd1d488fb20a293182dd7a40e2e82096e Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期二, 30 四月 2024 12:20:44 +0800 Subject: [PATCH] 添加action --- Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue index c05ef39..91f77bb 100644 --- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue +++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue @@ -7,7 +7,8 @@ :formItems="this.componentVO.formDefineVO && this.componentVO.formDefineVO.items" :disabled="!inDialog" :isEdit="canEdit" - :formData="form"> + :formData="form" + @getFormData="getFormData"> </basic-form> </div> </template> @@ -147,6 +148,7 @@ console.log(this.params) }, onLoad:function () { + debugger; if (Object.keys(this.sourceData).length>0 && this.isShow) { this.loading = true; dataForm(this.params).then(res => { @@ -158,8 +160,12 @@ }); } }, - handleRefresh(){ - + handleRefresh() { + this.form={} + this.onLoad(); + }, + getFormData(form) { + this.form = form; } } } -- Gitblit v1.9.3