From 8201f1c8fc451048f7d2ea500d538a6bba92c603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sun, 8 Oct 2023 04:46:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/mdp-ui/mixin/MdpTableMixin.js | 5 +++++ src/views/mdp/form/formData/Index.vue | 15 +++++++++++---- src/views/mdp/form/formDef/Form.vue | 10 ++++++---- src/views/mdp/form/formField/FieldCfg.vue | 4 ++-- src/views/mdp/form/formField/Index.vue | 4 ++++ 5 files changed, 28 insertions(+), 10 deletions(-) diff --git a/src/components/mdp-ui/mixin/MdpTableMixin.js b/src/components/mdp-ui/mixin/MdpTableMixin.js index d9d2daa..b63e5c7 100644 --- a/src/components/mdp-ui/mixin/MdpTableMixin.js +++ b/src/components/mdp-ui/mixin/MdpTableMixin.js @@ -516,6 +516,11 @@ export const MdpTableMixin = { if(d[expandFieldName] && d[expandFieldName] instanceof String){ d[expandFieldName]=JSON.parse(d[expandFieldName]) } + if(d[expandFieldName] instanceof Array){ + d[expandFieldName].forEach(k=>{ + d[expandFieldName+"."+k.id]=k.value + }) + } }) } }, diff --git a/src/views/mdp/form/formData/Index.vue b/src/views/mdp/form/formData/Index.vue index a67a973..0676a3f 100644 --- a/src/views/mdp/form/formData/Index.vue +++ b/src/views/mdp/form/formData/Index.vue @@ -1,7 +1,7 @@