From 0b8990b4a3cfa8126287a594f0d3810ec97b2e15 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期五, 14 七月 2023 16:00:08 +0800 Subject: [PATCH] 弹窗展示 --- Source/UBCS-WEB/src/components/FormTemplate/index.vue | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue index c7e2680..71981c8 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue @@ -3,7 +3,8 @@ :visible.sync="dialogVisible" v-if="dialogVisible" v-dialogDrag - top="5vh" + top="-5vh" + class="avue-dialog avue-dialog--top" :title="title" :width="width" append-to-body @@ -332,6 +333,20 @@ const { defaultValue, formValue } = this.getDefaultValueAndFormValues( this.form ); + const noData = [ + "jiliangdwname", + "materialtypeText", + "morengongysname", + "$caigouwl", + "$xiaoshouwl", + "$shifoupihaoguanli", + "lcstatus_text", + "hesuanfenleiname", + "$kucunwl", + ]; + noData.forEach((item) => { + this.$delete(formValue, item); + }); resForm.data = formValue; resForm = Object.assign({}, resForm, defaultValue); resForm.secDTOList = []; @@ -373,11 +388,9 @@ let resForm = {}; const { defaultValue, formValue } = this.getDefaultValueAndFormValues(this.form); - noData.forEach(item => { - if (formValue[item]) { - this.$delete(formValue, item) - } - }) + noData.forEach((item) => { + this.$delete(formValue, item); + }); resForm.data = formValue; resForm = Object.assign({}, resForm, defaultValue); resForm.secDTOList = this.secVOList.map((item) => { @@ -389,7 +402,6 @@ resForm.codeClassifyOid = this.codeClassifyOid; resForm.codeRuleOid = this.codeRuleOid; resForm.templateOid = this.templateOid; - console.log(resForm, 'ddd'); this.$emit("submit", resForm); }) .catch(() => {}); -- Gitblit v1.9.3