This commit is contained in:
thinkgem
2021-12-19 22:13:04 +08:00
parent e49d6f25af
commit dddf34e3aa
6 changed files with 13 additions and 15 deletions

View File

@@ -105,6 +105,10 @@ import com.jeesite.modules.bpm.entity.BpmEntity;
if (c.attrName == table.treeViewNameAttrName){
print(', isTreeName=true');
}
if (c.isNull == @Global.YES && @StringUtils.inString(c.simpleAttrType,
'Long', 'Integer', 'Double', 'BigDecimal', 'Date')){
print(', isUpdateForce=true');
}
}
%>),
<%

View File

@@ -81,7 +81,6 @@ for(c in table.columnList){
field: 'parentCode',
fieldLabel: 'parentName',
component: 'TreeSelect',
defaultValue: '',
componentProps: {
allowClear: true,
style: 'width: calc(50% - 60px)',
@@ -116,7 +115,6 @@ for (c in table.columnList){
defaultValue: '30',
<% }else{ %>
component: '${c.showType == 'input' ? 'Input' : 'InputTextArea'}',
defaultValue: '',
<% } %>
<% if (c.dataLength != '0'){ %>
componentProps: {
@@ -133,7 +131,6 @@ for (c in table.columnList){
mode: 'multiple',
<% } %>
},
defaultValue: '',
<% }else if(c.showType == 'radio' || c.showType == 'checkbox'){ %>
component: '${@StringUtils.cap(c.showType)}Group',
componentProps: {
@@ -157,7 +154,6 @@ for (c in table.columnList){
canSelectParent: false,
allowClear: true,
},
defaultValue: '',
<% }else if(c.showType == 'officeselect'){
if (isNotBlank(c.attrName2)){ %>
fieldLabel: '${c.attrName2}',
@@ -167,7 +163,6 @@ for (c in table.columnList){
api: officeTreeData,
allowClear: true,
},
defaultValue: '',
<% }else if(c.showType == 'areaselect'){
if (isNotBlank(c.attrName2)){ %>
fieldLabel: '${c.attrName2}',
@@ -177,7 +172,6 @@ for (c in table.columnList){
api: areaTreeData,
allowClear: true,
},
defaultValue: '',
<% }else{ %>
component: 'Input',
<% }

View File

@@ -157,7 +157,6 @@ for(c in table.columnList){
mode: 'multiple',
<% } %>
},
defaultValue: '',
<% }else if(c.showType == 'radio' || c.showType == 'checkbox'){ %>
component: '${@StringUtils.cap(c.showType)}Group',
componentProps: {
@@ -189,21 +188,18 @@ for(c in table.columnList){
canSelectParent: false,
allowClear: true,
},
defaultValue: '',
<% }else if(c.showType == 'officeselect'){ %>
component: 'TreeSelect',
componentProps: {
api: officeTreeData,
allowClear: true,
},
defaultValue: '',
<% }else if(c.showType == 'areaselect'){ %>
component: 'TreeSelect',
componentProps: {
api: areaTreeData,
allowClear: true,
},
defaultValue: '',
<% }else{ %>
component: 'Input',
<% } %>

View File

@@ -105,6 +105,10 @@ import com.jeesite.modules.bpm.entity.BpmEntity;
if (c.attrName == table.treeViewNameAttrName){
print(', isTreeName=true');
}
if (c.isNull == @Global.YES && @StringUtils.inString(c.simpleAttrType,
'Long', 'Integer', 'Double', 'BigDecimal', 'Date')){
print(', isUpdateForce=true');
}
}
%>),
<%