0000020: 基本配置-特定服务管理 问题解决:新增 选上级时不再出现叶子节点,修改 存在下级不得改为叶子节点,
0000022: 基本配置-特征作用域 问题解决:新增修改页面及列表展示页面取消叶子节点信息,该字典所有配置均为根节点,叶子节点。
This commit is contained in:
@@ -76,6 +76,9 @@ public class SysDictInfoController extends BaseController {
|
|||||||
for(int i=0;i<strArr.length;i++){
|
for(int i=0;i<strArr.length;i++){
|
||||||
intArr[i] = Integer.valueOf(strArr[i]);
|
intArr[i] = Integer.valueOf(strArr[i]);
|
||||||
}
|
}
|
||||||
|
if(intArr.length==1){
|
||||||
|
model.addAttribute("specType", intArr[0]);
|
||||||
|
}
|
||||||
String searchType = null;
|
String searchType = null;
|
||||||
String searchContent = null;
|
String searchContent = null;
|
||||||
if(!StringUtils.isBlank(sysDictInfo.getItemCode())){
|
if(!StringUtils.isBlank(sysDictInfo.getItemCode())){
|
||||||
@@ -164,6 +167,9 @@ public class SysDictInfoController extends BaseController {
|
|||||||
for(int i=0;i<strArr.length;i++){
|
for(int i=0;i<strArr.length;i++){
|
||||||
intArr[i] = Integer.valueOf(strArr[i]);
|
intArr[i] = Integer.valueOf(strArr[i]);
|
||||||
}
|
}
|
||||||
|
if(intArr.length==1){
|
||||||
|
model.addAttribute("specType", intArr[0]);
|
||||||
|
}
|
||||||
model.addAttribute("intArr", Arrays.asList(intArr));
|
model.addAttribute("intArr", Arrays.asList(intArr));
|
||||||
model.addAttribute("sysDictInfo", sysDictInfo);
|
model.addAttribute("sysDictInfo", sysDictInfo);
|
||||||
model.addAttribute("itType", itType);
|
model.addAttribute("itType", itType);
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
for (int i=0; i<list.size(); i++){
|
for (int i=0; i<list.size(); i++){
|
||||||
SpecificServiceCfg specificServiceCfg = list.get(i);
|
SpecificServiceCfg specificServiceCfg = list.get(i);
|
||||||
if(StringUtils.isBlank(extId)||(extId!=null&&!extId.equals(specificServiceCfg.getSpecServiceId().toString()))){
|
if(StringUtils.isBlank(extId)||(extId!=null&&!extId.equals(specificServiceCfg.getSpecServiceId().toString()))){
|
||||||
if(specificServiceCfg.getIsValid().equals(0)&&specificServiceCfg.getIsLeaf().equals(1)){
|
if(specificServiceCfg.getIsValid().equals(0)||specificServiceCfg.getIsLeaf().equals(1)){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Map<String, Object> map = Maps.newHashMap();
|
Map<String, Object> map = Maps.newHashMap();
|
||||||
|
|||||||
@@ -235,15 +235,19 @@
|
|||||||
<form:input path="itemValue" htmlEscape="false" maxlength="2000" class="form-control"/>
|
<form:input path="itemValue" htmlEscape="false" maxlength="2000" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<c:if test="${specType != null and specType==3 }">
|
||||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
<form:hidden path="isLeaf" value="0"/>
|
||||||
<div class="col-md-4">
|
</c:if>
|
||||||
<%-- <form:radiobuttons path="isLeaf" items="${fns:getDictOption('SYS_YES_NO')}" /> --%>
|
<c:if test="${specType != null and specType!=3 }">
|
||||||
<form:select path="isLeaf" class="form-control">
|
<div class="form-group">
|
||||||
<form:options items="${fns:getDictList('SYS_YES_NO')}" itemLabel="itemValue" itemValue="itemCode" htmlEscape="false"/>
|
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
||||||
</form:select>
|
<div class="col-md-4">
|
||||||
|
<form:select path="isLeaf" class="form-control">
|
||||||
|
<form:options items="${fns:getDictList('SYS_YES_NO')}" itemLabel="itemValue" itemValue="itemCode" htmlEscape="false"/>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</c:if>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><spring:message code="desc"/>:</label>
|
<label class="col-md-3 control-label"><spring:message code="desc"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
|
|||||||
@@ -258,7 +258,9 @@
|
|||||||
<th><spring:message code="config_content"/></th>
|
<th><spring:message code="config_content"/></th>
|
||||||
<th><spring:message code="desc"/></th>
|
<th><spring:message code="desc"/></th>
|
||||||
<th><spring:message code="item_type"/></th>
|
<th><spring:message code="item_type"/></th>
|
||||||
|
<c:if test="${specType != null and specType!=3 }">
|
||||||
<th><spring:message code="is_leaf"/></th>
|
<th><spring:message code="is_leaf"/></th>
|
||||||
|
</c:if>
|
||||||
<th><spring:message code="creator"/></th>
|
<th><spring:message code="creator"/></th>
|
||||||
<th class="sort-column create_time"><spring:message code="create_time"/>
|
<th class="sort-column create_time"><spring:message code="create_time"/>
|
||||||
</th><th><spring:message code="editor"/></th>
|
</th><th><spring:message code="editor"/></th>
|
||||||
@@ -275,7 +277,9 @@
|
|||||||
<td>${sysDictInfo.itemValue}</td>
|
<td>${sysDictInfo.itemValue}</td>
|
||||||
<td title="${sysDictInfo.itemDesc}">${fns:abbr(sysDictInfo.itemDesc,15)}</td>
|
<td title="${sysDictInfo.itemDesc}">${fns:abbr(sysDictInfo.itemDesc,15)}</td>
|
||||||
<td>${fns:getDictLabel("SYS_DICT_ITM_TYPE",sysDictInfo.itemType,"0")}</td>
|
<td>${fns:getDictLabel("SYS_DICT_ITM_TYPE",sysDictInfo.itemType,"0")}</td>
|
||||||
|
<c:if test="${specType != null and specType!=3 }">
|
||||||
<td>${fns:getDictLabel("SYS_YES_NO",sysDictInfo.isLeaf,"0")}</td>
|
<td>${fns:getDictLabel("SYS_YES_NO",sysDictInfo.isLeaf,"0")}</td>
|
||||||
|
</c:if>
|
||||||
<td><c:if test="${sysDictInfo.sysDictCreator != null}">
|
<td><c:if test="${sysDictInfo.sysDictCreator != null}">
|
||||||
${fns:getUserById(sysDictInfo.sysDictCreator.id).name}
|
${fns:getUserById(sysDictInfo.sysDictCreator.id).name}
|
||||||
</c:if></td>
|
</c:if></td>
|
||||||
|
|||||||
@@ -43,45 +43,39 @@
|
|||||||
$("#name").focus();
|
$("#name").focus();
|
||||||
$("#inputForm").validate({
|
$("#inputForm").validate({
|
||||||
rules:{
|
rules:{
|
||||||
'specServiceId':{
|
specServiceId:{
|
||||||
required:true,
|
required:true,
|
||||||
digits:true,
|
digits:true,
|
||||||
maxValue: true,
|
maxValue: true,
|
||||||
remote:'${ctx}/specific/specificServiceCfg/isIdRepeat?oldId=${specificServiceCfg.specServiceId}'
|
remote:'${ctx}/specific/specificServiceCfg/isIdRepeat?oldId=${specificServiceCfg.specServiceId}'
|
||||||
},
|
},
|
||||||
'specServiceName':{
|
specServiceName:{
|
||||||
required:true
|
required:true
|
||||||
},
|
},
|
||||||
'groupId':{
|
groupId:{
|
||||||
digits:true,
|
digits:true,
|
||||||
maxValue:true
|
maxValue:true
|
||||||
},
|
},
|
||||||
'specServiceDesc':{
|
isLeaf:{
|
||||||
required:true
|
|
||||||
},
|
|
||||||
'isLeaf':{
|
|
||||||
leafHasTree:true,
|
leafHasTree:true,
|
||||||
leafChange:true
|
leafChange:true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
messages: {
|
messages: {
|
||||||
'specServiceId':{
|
specServiceId:{
|
||||||
required:'请填写协议ID',
|
required:'请填写协议ID',
|
||||||
digits:"请填写整数数字",
|
digits:"请填写整数数字",
|
||||||
maxValue: "请填写正确的协议ID(0~210000000)",
|
maxValue: "请填写正确的协议ID(0~210000000)",
|
||||||
remote:'该协议ID已存在'
|
remote:'该协议ID已存在'
|
||||||
},
|
},
|
||||||
'specServiceName':{
|
specServiceName:{
|
||||||
required:'请填写协议名称'
|
required:'请填写协议名称'
|
||||||
},
|
},
|
||||||
'groupId':{
|
groupId:{
|
||||||
digits:'请填写整数数值',
|
digits:'请填写整数数值',
|
||||||
maxValue:'请填写正确的分组Id(0~210000000)'
|
maxValue:'请填写正确的分组Id(0~210000000)'
|
||||||
},
|
},
|
||||||
'specServiceDesc':{
|
isLeaf:{
|
||||||
required:'请填写协议描述'
|
|
||||||
},
|
|
||||||
'isLeaf':{
|
|
||||||
leafHasTree:'该配置上级为根节点,不得设为叶子节点',
|
leafHasTree:'该配置上级为根节点,不得设为叶子节点',
|
||||||
leafChange:'该配置包含下级配置,不得改为叶子节点'
|
leafChange:'该配置包含下级配置,不得改为叶子节点'
|
||||||
}
|
}
|
||||||
@@ -181,7 +175,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><font color="red">*</font>协议描述:</label>
|
<label class="col-md-3 control-label">协议描述:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<form:textarea path="specServiceDesc" htmlEscape="false" maxlength="2000" class="form-control"/>
|
<form:textarea path="specServiceDesc" htmlEscape="false" maxlength="2000" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user