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');
}
}
%>),
<%

View File

@@ -33,7 +33,7 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
@Column(name="test_radio", attrName="testRadio", label="单选框"),
@Column(name="test_checkbox", attrName="testCheckbox", label="复选框"),
@Column(name="test_date", attrName="testDate", label="日期选择", isUpdateForce=true/*是否强制更新当调用update并且该属性为空的时候允许更新为空*/),
@Column(name="test_datetime", attrName="testDatetime", label="日期时间"),
@Column(name="test_datetime", attrName="testDatetime", label="日期时间", isUpdateForce=true),
@Column(name="test_user_code", attrName="testUser.userCode", label="用户选择"),
@Column(name="test_office_code", attrName="testOffice.officeCode", label="机构选择"),
@Column(name="test_area_code", attrName="testAreaCode", label="区域选择"),

View File

@@ -32,8 +32,8 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
@Column(name="test_select_multiple", attrName="testSelectMultiple", label="下拉多选"),
@Column(name="test_radio", attrName="testRadio", label="单选框"),
@Column(name="test_checkbox", attrName="testCheckbox", label="复选框"),
@Column(name="test_date", attrName="testDate", label="日期选择"),
@Column(name="test_datetime", attrName="testDatetime", label="日期时间"),
@Column(name="test_date", attrName="testDate", label="日期选择", isUpdateForce=true),
@Column(name="test_datetime", attrName="testDatetime", label="日期时间", isUpdateForce=true),
@Column(name="test_user_code", attrName="testUser.userCode", label="用户选择"),
@Column(name="test_office_code", attrName="testOffice.officeCode", label="机构选择"),
@Column(name="test_area_code", attrName="testAreaCode", label="区域选择"),
@@ -149,7 +149,7 @@ public class TestDataChild extends DataEntity<TestDataChild> {
this.testCheckbox = testCheckbox;
}
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd")
public Date getTestDate() {
return testDate;
}
@@ -158,7 +158,7 @@ public class TestDataChild extends DataEntity<TestDataChild> {
this.testDate = testDate;
}
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
public Date getTestDatetime() {
return testDatetime;
}