From b8bb1d377e6d44645b1e18aa9249c2f02fe8cd6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=A6=8D?= <1455167345@qq.com> Date: Wed, 12 Jun 2024 09:56:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E8=AE=BE=E8=AE=A1=E5=8D=95?= =?UTF-8?q?=E9=80=89=E6=8C=89=E9=92=AEvalue=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/onlineform/formdesign/FormModal.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/demo/onlineform/formdesign/FormModal.vue b/src/views/demo/onlineform/formdesign/FormModal.vue index 340b3b4a..6ed171cc 100644 --- a/src/views/demo/onlineform/formdesign/FormModal.vue +++ b/src/views/demo/onlineform/formdesign/FormModal.vue @@ -203,7 +203,9 @@ item.csType = element.data[currentIndex].csType; } }); + console.log(item.label, item.csType); if (item.csType == 'int') { + console.log(item); item.componentProps.options.forEach((optionChild) => { optionChild.value = Number(optionChild.value); }); @@ -245,6 +247,11 @@ list.csType = element.data[currentIndex].csType; } }); + if (list.csType == 'int') { + list.componentProps.options.forEach((optionChild) => { + optionChild.value = Number(optionChild.value); + }); + } } // 设计子表给里面的控件增加csType字段 if (list.type == 'subTable') { @@ -358,7 +365,8 @@ console.log('正常提交'); // saveFormDatas.value.scheme.scheme = JSON.stringify(schems); setTimeout(() => { - submitSaveClick(schems); + console.log(schems); + // submitSaveClick(schems); }, 500); } }