From 91ded3eac61b8a7e859ab3915edff4e557e6f6f2 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Sun, 27 Apr 2025 15:39:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=97=A5=E6=9C=9F=E6=97=B6=E9=97=B4=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/modules/gen/app/appForm.xml | 43 +++++++++++-------- 1 file changed, 25 insertions(+), 18 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 2cf8bc5d..83aa3b1f 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 @@ -40,53 +40,58 @@ } %> <% if(c.showType == 'input'){ %> - + <% }else if(c.showType == 'textarea'){ %> - + <% }else if(c.showType == 'select' || c.showType == 'select_multiple'){ var isMultiple = (c.showType == 'select_multiple'); %> - - multiple="true"<% } %> placeholder="请选择${c.columnLabel}"> + + :multiple="true"<% } %> placeholder="请选择${c.columnLabel}"> <% }else if(c.showType == 'radio'){ %> - + <% }else if(c.showType == 'checkbox'){ %> - + <% }else if(c.showType == 'date' || c.showType == 'datetime'){ var isTime = (c.showType == 'datetime'); %> - - + + + <% }else if(c.showType == 'userselect'){ %> - - + + :label-value="model.${c.attrName2}" @label-input="model.${c.attrName2} = $event"<% } %>> <% }else if(c.showType == 'officeselect'){ %> - - + + :label-value="model.${c.attrName2}" @label-input="model.${c.attrName2} = $event"<% } %>> <% }else if(c.showType == 'companyselect'){ %> - - + + :label-value="model.${c.attrName2}" @label-input="model.${c.attrName2} = $event"<% } %>> <% }else if(c.showType == 'areaselect'){ %> - - + + :label-value="model.${c.attrName2}" @label-input="model.${c.attrName2} = $event"<% } %>> <% }else{ %> - + <% } %> @@ -167,7 +172,7 @@ export default { } %> <% if(c.isRequired == '1'){ %> - '${c.attrName}': [ + '${c.simpleAttrName}': [ { required: true, message: '请输入${c.columnLabel}', @@ -199,6 +204,8 @@ export default { ${c.simpleAttrName}List: [], <% }else if(c.showType == 'areaselect'){ %> ${c.simpleAttrName}List: [], + <% }else if(c.showType == 'date' || c.showType == 'datetime'){ %> + ${c.attrName}Open: false, <% } %> <% }