0000020: 基本配置-特定服务管理 问题解决:新增 选上级时不再出现叶子节点,修改 存在下级不得改为叶子节点,

0000022: 基本配置-特征作用域 问题解决:新增修改页面及列表展示页面取消叶子节点信息,该字典所有配置均为根节点,叶子节点。
This commit is contained in:
zhangshilin
2018-03-21 18:19:03 +08:00
parent a62a7ce2c7
commit 19d346e2de
5 changed files with 32 additions and 24 deletions

View File

@@ -43,45 +43,39 @@
$("#name").focus();
$("#inputForm").validate({
rules:{
'specServiceId':{
specServiceId:{
required:true,
digits:true,
maxValue: true,
remote:'${ctx}/specific/specificServiceCfg/isIdRepeat?oldId=${specificServiceCfg.specServiceId}'
},
'specServiceName':{
specServiceName:{
required:true
},
'groupId':{
groupId:{
digits:true,
maxValue:true
},
'specServiceDesc':{
required:true
},
'isLeaf':{
isLeaf:{
leafHasTree:true,
leafChange:true
}
},
messages: {
'specServiceId':{
specServiceId:{
required:'请填写协议ID',
digits:"请填写整数数字",
maxValue: "请填写正确的协议ID(0~210000000)",
remote:'该协议ID已存在'
},
'specServiceName':{
specServiceName:{
required:'请填写协议名称'
},
'groupId':{
groupId:{
digits:'请填写整数数值',
maxValue:'请填写正确的分组Id(0~210000000)'
},
'specServiceDesc':{
required:'请填写协议描述'
},
'isLeaf':{
isLeaf:{
leafHasTree:'该配置上级为根节点,不得设为叶子节点',
leafChange:'该配置包含下级配置,不得改为叶子节点'
}
@@ -181,7 +175,7 @@
</div>
</div>
<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">
<form:textarea path="specServiceDesc" htmlEscape="false" maxlength="2000" class="form-control"/>
</div>