增加菜单、角色管理提示信息国际化

修改匹配方式默认为子串匹配
This commit is contained in:
duandongmei
2018-07-04 10:41:45 +08:00
parent 69f3fa964e
commit ec78647436
8 changed files with 19 additions and 34 deletions

View File

@@ -16,7 +16,7 @@
name: {remote: "${ctx}/sys/role/checkName?oldName=" + encodeURIComponent("${role.name}")}
},
messages: {
name: {remote: "角色名已存在"}
name: {remote: "<spring:message code='role_unique'/>"}
},
submitHandler: function(form){
var ids = [], nodes = tree.getCheckedNodes(true);
@@ -25,12 +25,12 @@
}
$("#menuIds").val(ids);
loading('正在提交,请稍等...');
loading('onloading...');
form.submit();
},
errorContainer: "#messageBox",
errorPlacement: function(error, element) {
$("#messageBox").text("输入有误,请先更正。");
$("#messageBox").text("<spring:message code='role_error_info'/>");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
error.appendTo(element.parent().parent());
} else {
@@ -78,7 +78,7 @@
<h3 class="page-title">
<spring:message code="menuManage"/>
<spring:message code="roleManage"/>
</h3>
<div class="row">
@@ -87,12 +87,6 @@
<div class="portlet-title">
<div class="caption">
<i class="fa fa-gift"></i><shiro:hasPermission name="sys:role:edit"><c:if test="${not empty role.id}"><spring:message code="edit"/></c:if><c:if test="${empty role.id}"><spring:message code="add"/></c:if></shiro:hasPermission><shiro:lacksPermission name="sys:role:edit"><spring:message code="show"/></shiro:lacksPermission></div>
<div class="tools">
<a href="javascript:;" class="collapse"> </a>
<a href="#portlet-config" data-toggle="modal" class="config"> </a>
<a href="javascript:;" class="reload"> </a>
<a href="javascript:;" class="remove"> </a>
</div>
</div>
<div class="portlet-body form">