From 9a816b18c2421a99a8810a0cae5f6d1ce9984288 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Sun, 27 Apr 2025 22:16:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=94=9F=E6=88=90=E6=A8=A1=E6=9D=BF=E5=A2=9E=E5=BC=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/modules/gen/app/appForm.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/core/src/main/resources/templates/modules/gen/app/appForm.xml b/modules/core/src/main/resources/templates/modules/gen/app/appForm.xml index 83aa3b1f..6042277e 100644 --- a/modules/core/src/main/resources/templates/modules/gen/app/appForm.xml +++ b/modules/core/src/main/resources/templates/modules/gen/app/appForm.xml @@ -131,28 +131,31 @@ export default { continue; } %> - <% if(c.showType == 'userselect'){ %> + <% if(c.showType == 'userselect' && c.attrType != 'String'){ %> ${c.simpleAttrName}: { userCode: '', userName: '' }, - <% }else if(c.showType == 'officeselect'){ %> + <% }else if(c.showType == 'officeselect' && c.attrType != 'String'){ %> ${c.simpleAttrName}: { officeCode: '', officeName: '' }, - <% }else if(c.showType == 'companyselect'){ %> + <% }else if(c.showType == 'companyselect' && c.attrType != 'String'){ %> ${c.simpleAttrName}: { companyCode: '', companyName: '' }, - <% }else if(c.showType == 'areaselect'){ %> + <% }else if(c.showType == 'areaselect' && c.attrType != 'String'){ %> ${c.simpleAttrName}: { areaCode: '', areaName: '' }, <% }else{ %> ${c.attrName}: '', + <% if (!isBlank(c.attrName2)){ %> + ${c.attrName2}: '', + <% } %> <% } %> <% }