From df7497ca2086152c43d3ae0d57c13fb53bb64bf4 Mon Sep 17 00:00:00 2001 From: konbai <1527468660@qq.com> Date: Sun, 13 Mar 2022 16:16:07 +0800 Subject: [PATCH] =?UTF-8?q?fix=20--=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=9B=A0=E6=9C=AC=E5=9C=B0=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E8=A1=A8=E5=8D=95=E5=86=85=E5=AE=B9=E9=94=99?= =?UTF-8?q?=E8=AF=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/tool/build/index.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/src/views/tool/build/index.vue b/ruoyi-ui/src/views/tool/build/index.vue index a430cdb9..36611527 100644 --- a/ruoyi-ui/src/views/tool/build/index.vue +++ b/ruoyi-ui/src/views/tool/build/index.vue @@ -276,7 +276,7 @@ export default { that.drawingList = []; const formId = that.$route.query && that.$route.query.formId; if (formId) { - getForm(formId).then(res =>{ + getForm(formId).then(res => { that.formConf = JSON.parse(res.data.content); that.drawingList = that.formConf.fields; that.form = res.data; @@ -284,6 +284,7 @@ export default { } else { if (formConfInDB) { that.formConf = formConfInDB + that.formConf.fields = null } } loadBeautifier(btf => { @@ -393,8 +394,8 @@ export default { }, AssembleFormData() { this.formData = { - fields: deepClone(this.drawingList), - ...this.formConf + ...this.formConf, + fields: deepClone(this.drawingList) } }, generate(data) { @@ -502,9 +503,9 @@ export default { /** 表单基本信息 */ handleForm() { this.formData = { - fields: deepClone(this.drawingList), - ...this.formConf - } + ...this.formConf, + fields: deepClone(this.drawingList) + }; this.form.content = JSON.stringify(this.formData); this.formOpen = true; this.formTitle = "添加表单";