移动端代码生成模板增强

This commit is contained in:
thinkgem
2025-04-27 22:16:12 +08:00
parent f3d283ae4e
commit 9a816b18c2

View File

@@ -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}: '',
<% } %>
<% } %>
<%
}