修改voip、dns响应策略、ip欺骗模块权限bug
系统管理模块所有提示信息增加国际化 增加清空数据sql
This commit is contained in:
@@ -7,13 +7,25 @@
|
||||
<%@ attribute name="readonly" type="java.lang.Boolean" required="false" description="是否查看模式"%>
|
||||
<%@ attribute name="maxWidth" type="java.lang.String" required="false" description="最大宽度"%>
|
||||
<%@ attribute name="maxHeight" type="java.lang.String" required="false" description="最大高度"%>
|
||||
<ol id="${input}Preview"></ol><c:if test="${!readonly}"><a href="javascript:" onclick="${input}FinderOpen();" class="btn btn-primary">${selectMultiple?'添加':'选择'}</a> <a href="javascript:" onclick="${input}DelAll();" class="btn btn-warning">清除</a></c:if>
|
||||
<ol id="${input}Preview"></ol>
|
||||
<c:if test="${!readonly}">
|
||||
<a href="javascript:" onclick="${input}FinderOpen();" class="btn btn-primary">
|
||||
<c:if test="${!selectMultiple}">
|
||||
<spring:message code='choose'/>
|
||||
</c:if>
|
||||
<c:if test="${selectMultiple}">
|
||||
<spring:message code='insert'/>
|
||||
</c:if>
|
||||
</a>
|
||||
<a href="javascript:" onclick="${input}DelAll();" class="btn btn-warning">
|
||||
<spring:message code='clear'/></a>
|
||||
</c:if>
|
||||
<script type="text/javascript">
|
||||
function ${input}FinderOpen(){//<c:if test="${type eq 'thumb'}"><c:set var="ctype" value="images"/></c:if><c:if test="${type ne 'thumb'}"><c:set var="ctype" value="${type}"/></c:if>
|
||||
var date = new Date(), year = date.getFullYear(), month = (date.getMonth()+1)>9?date.getMonth()+1:"0"+(date.getMonth()+1);
|
||||
var url = "${ctxStatic}/global/plugins/ckfinder/ckfinder.html?type=${ctype}&start=${ctype}:${uploadPath}/"+year+"/"+month+
|
||||
"/&action=js&func=${input}SelectAction&thumbFunc=${input}ThumbSelectAction&cb=${input}Callback&dts=${type eq 'thumb'?'1':'0'}&sm=${selectMultiple?1:0}";
|
||||
windowOpen(url,"文件管理",1000,700);
|
||||
"/&action=js&func=${input}SelectAction&thumbFunc=${input}ThumbSelectAction&cb=${input}Callback&dts=${type eq 'thumb'?'1':'0'}&sm=${selectMultiple?1:0}&langCode=${cookie.Language.value}";
|
||||
windowOpen(url,"<spring:message code='file_management'/>",1000,700);
|
||||
//top.$.jBox("iframe:"+url+"&pwMf=1", {title: "文件管理", width: 1000, height: 500, buttons:{'关闭': true}});
|
||||
}
|
||||
function ${input}SelectAction(fileUrl, data, allFiles){
|
||||
@@ -63,7 +75,7 @@
|
||||
}
|
||||
}
|
||||
if ($("#${input}Preview").text() == ""){
|
||||
$("#${input}Preview").html("<li style='list-style:none;padding-top:5px;'>无</li>");
|
||||
$("#${input}Preview").html("<li style='list-style:none;padding-top:5px;'><spring:message code='nothing'/></li>");
|
||||
}
|
||||
}
|
||||
${input}Preview();
|
||||
|
||||
@@ -130,7 +130,7 @@ label.errorShow {
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
errorPlacement: function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||||
error.appendTo(element.parent().parent());
|
||||
} else {
|
||||
@@ -185,7 +185,7 @@ label.errorShow {
|
||||
<div class="col-md-4">
|
||||
<c:set var="fatherName"><spring:message code="root_node"/></c:set>
|
||||
<sys:treeselect id="serviceDictInfo" name="parent.serviceDictId" value="${serviceDictInfo.parent.serviceDictId}" labelName="parent.itemValue" labelValue="${serviceDictInfo.parent.serviceDictId eq '0'?fatherName:fns:getServiceDictInfoById(serviceDictInfo.parent.serviceDictId).itemValue}"
|
||||
title="菜单" url="/basics/serviceDictInfo/treeData?itType=${itType}" cssClass="required form-control"/>
|
||||
title="menu" url="/basics/serviceDictInfo/treeData?itType=${itType}" cssClass="required form-control"/>
|
||||
<label class="errorShow" style="display: none;"><spring:message code="isLevelNoSure"/></label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
errorPlacement: function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||||
error.appendTo(element.parent().parent());
|
||||
} else {
|
||||
@@ -143,7 +143,7 @@
|
||||
<div class="col-md-4">
|
||||
<c:set var="fatherName"><spring:message code="root_node"/></c:set>
|
||||
<sys:treeselect id="sysDictInfo" name="parent.sysDictId" value="${sysDictInfo.parent.sysDictId}" labelName="parent.itemValue" labelValue="${sysDictInfo.parent.sysDictId eq '0'?fatherName:fns:getSysDictInfoById(sysDictInfo.parent.sysDictId).itemValue}"
|
||||
title="菜单" url="/basics/sysDictInfo/treeData?itType=${itType}" extId="${sysDictInfo.sysDictId}" cssClass="required form-control"/>
|
||||
title="menu" url="/basics/sysDictInfo/treeData?itType=${itType}" extId="${sysDictInfo.sysDictId}" cssClass="required form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
</c:if>
|
||||
|
||||
@@ -454,11 +454,11 @@
|
||||
<button type="button" class="btn btn-default" id="filter-btn"> <spring:message code="filter"/> <i class="fa fa-angle-double-down"></i></button>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<shiro:hasPermission name="avVoip:audit">
|
||||
<shiro:hasPermission name="avVoip:config">
|
||||
<sys:delRow url="${ctx}/ntc/av/voipForm" id="contentTable" label="update"></sys:delRow>
|
||||
<sys:delRow url="${ctx}/ntc/av/updateAvVoipValid?isValid=-1&functionId=${cfg.functionId }" id="contentTable" label="delete"></sys:delRow>
|
||||
</shiro:hasPermission>
|
||||
<sys:delRow url="${ctx}/ntc/av/voipExport?functionId=${cfg.functionId }" id="contentTable" label="export" maxRow="${page.maxExportSize }"></sys:delRow>
|
||||
<%-- <sys:delRow url="${ctx}/ntc/av/voipExport?functionId=${cfg.functionId }" id="contentTable" label="export" maxRow="${page.maxExportSize }"></sys:delRow> --%>
|
||||
<shiro:hasPermission name="avVoip:audit">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
|
||||
@@ -122,6 +122,7 @@
|
||||
<sys:delRow url="${ctx}/cfg/dnsIp/form" id="contentTable" label="update"></sys:delRow>
|
||||
<sys:delRow url="${ctx}/cfg/dnsIp/delete?isValid=-1&functionId=${cfg.functionId }" id="contentTable" label="delete"></sys:delRow>
|
||||
</shiro:hasPermission>
|
||||
<shiro:hasPermission name="dns:fake:ip:audit">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-wrench"></i> <spring:message code="examine"></spring:message>
|
||||
@@ -133,6 +134,7 @@
|
||||
<li><sys:delRow url="${ctx}/cfg/dnsIp/audit?isAudit=3&isValid=0&functionId=${cfg.functionId }" id="contentTable" label="cancelPass"></sys:delRow></li>
|
||||
</ul>
|
||||
</div>
|
||||
</shiro:hasPermission>
|
||||
<a class="btn btn-icon-only btn-default setfields tooltips"
|
||||
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
||||
<i class="icon-wrench"></i>
|
||||
|
||||
@@ -106,6 +106,7 @@
|
||||
<sys:delRow url="${ctx}/maintenance/dnsResStrategy/form" id="contentTable" label="update"></sys:delRow>
|
||||
<sys:delRow url="${ctx}/maintenance/dnsResStrategy/delete?isValid=-1&functionId=${cfg.functionId }" id="contentTable" label="delete"></sys:delRow>
|
||||
</shiro:hasPermission>
|
||||
<shiro:hasPermission name="dns:res:strategy:audit">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-wrench"></i> <spring:message code="examine"></spring:message>
|
||||
@@ -117,6 +118,7 @@
|
||||
<li><sys:delRow url="${ctx}/maintenance/dnsResStrategy/audit?isAudit=3&isValid=0&functionId=${cfg.functionId }" id="contentTable" label="cancelPass"></sys:delRow></li>
|
||||
</ul>
|
||||
</div>
|
||||
</shiro:hasPermission>
|
||||
<a class="btn btn-icon-only btn-default setfields tooltips"
|
||||
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
||||
<i class="icon-wrench"></i>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
errorPlacement: function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||||
error.appendTo(element.parent().parent());
|
||||
} else {
|
||||
|
||||
@@ -54,7 +54,7 @@ function selectP(){
|
||||
},
|
||||
errorContainer : "#messageBox",
|
||||
errorPlacement : function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")
|
||||
|| element.is(":radio")
|
||||
|| element.parent().is(
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
$("#name").focus();
|
||||
$("#inputForm").validate({
|
||||
submitHandler: function(form){
|
||||
loading('正在提交,请稍等...');
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
errorPlacement: function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||||
error.appendTo(element.parent().parent());
|
||||
} else {
|
||||
@@ -36,7 +36,7 @@
|
||||
<label class="control-label">上级区域:</label>
|
||||
<div class="controls">
|
||||
<sys:treeselect id="area" name="parent.id" value="${area.parent.id}" labelName="parent.name" labelValue="${area.parent.name}"
|
||||
title="区域" url="/sys/area/treeData" extId="${area.id}" cssClass="" allowClear="true"/>
|
||||
title="area" url="/sys/area/treeData" extId="${area.id}" cssClass="" allowClear="true"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
|
||||
@@ -40,27 +40,19 @@
|
||||
}
|
||||
|
||||
},
|
||||
messages: {
|
||||
'moduleName':{
|
||||
required:'模块名称必须填写'
|
||||
},
|
||||
'mark':{
|
||||
required:'字典标识必须填写'
|
||||
}
|
||||
},
|
||||
submitHandler: function(form){
|
||||
|
||||
if(!validateItem()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
loading('正在提交,请稍等...');
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
errorPlacement: function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||||
error.appendTo(element.parent().parent());
|
||||
} else {
|
||||
@@ -75,7 +67,7 @@
|
||||
|
||||
var $itemsObject = $("#items >p:visible");
|
||||
if($itemsObject.length==0){
|
||||
$("#messageBox").text("保存信息出现问题,请添加词条项!").show();
|
||||
$("#messageBox").text("<spring:message code='dict_saveitem_error'/>").show();
|
||||
return false;
|
||||
|
||||
}else {
|
||||
@@ -91,7 +83,7 @@
|
||||
});
|
||||
|
||||
if(!flag){
|
||||
$("#messageBox").text("保存信息出现问题,每个词条标识与值都不能为空!").show();
|
||||
$("#messageBox").text("<spring:message code='dict_saveitem_nullerror'/>").show();
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -119,9 +111,9 @@
|
||||
<div class="theme-panel hidden-xs hidden-sm">
|
||||
<button type="button" class="btn btn-default" onclick="history.go(-1)"><spring:message code="back"/></button>
|
||||
</div>
|
||||
<h3 class="page-title">
|
||||
<%-- <h3 class="page-title">
|
||||
<spring:message code="dictManage"/>
|
||||
</h3>
|
||||
</h3> --%>
|
||||
<div class="col-md-12">
|
||||
|
||||
<%-- <ul class="nav nav-tabs">
|
||||
@@ -176,7 +168,7 @@
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><spring:message code="entry"/></label>
|
||||
<div class="col-md-4">
|
||||
<span type="button" class="btn black" title="点击添加词条项" id="btn_add_item">
|
||||
<span type="button" class="btn black" title="<spring:message code="click_add_entry"/>" id="btn_add_item">
|
||||
<i class="icon-plus"></i> <spring:message code="add_entry"/>
|
||||
</span>
|
||||
<span class="help-inline"><font color="red">*</font> </span>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
animation:true,
|
||||
html:true,
|
||||
placement:'left',
|
||||
title:'修改记录',
|
||||
title:'<spring:message code="edit_record"/>',
|
||||
content:function(){
|
||||
var html = [];
|
||||
var content = $(this).attr("data-content");
|
||||
@@ -273,7 +273,7 @@
|
||||
</form:form>
|
||||
</div>
|
||||
|
||||
<sys:message content="${message}"/>
|
||||
<spring:message code="${message}"/>
|
||||
|
||||
<table id="contentTable" class="table table-striped table-bordered table-condensed">
|
||||
<thead>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
errorPlacement: function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||||
error.appendTo(element.parent().parent());
|
||||
} else {
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
$("#name").focus();
|
||||
$("#inputForm").validate({
|
||||
submitHandler: function(form){
|
||||
loading('正在提交,请稍等...');
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
errorPlacement: function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||||
error.appendTo(element.parent().parent());
|
||||
} else {
|
||||
@@ -61,7 +61,7 @@
|
||||
<label class="col-md-3 control-label"><spring:message code="parent_menu"></spring:message>:</label>
|
||||
<div class="col-md-4">
|
||||
<sys:treeselect id="menu" name="parent.id" value="${menu.parent.id}" labelName="parent.name" labelValue="${menu.parent.name}"
|
||||
title="菜单" url="/sys/menu/treeData" extId="${menu.id}" cssClass="required form-control"/>
|
||||
title="menu" url="/sys/menu/treeData" extId="${menu.id}" cssClass="required form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -128,8 +128,15 @@
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><spring:message code="visible"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<form:radiobuttons path="isShow" items="${fns:getDictList('SYS_SHOW_HIDE')}" itemLabel="itemValue" itemValue="itemCode" htmlEscape="false" class="required"/>
|
||||
<c:forEach items="${fns:getDictList('SYS_SHOW_HIDE')}" var="isShowC">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="isShow" value="${isShowC.itemCode }" class="required areaControl"
|
||||
<c:if test="${menu.isShow==isShowC.itemCode}">checked</c:if>
|
||||
><spring:message code="${isShowC.itemValue }"/>
|
||||
</label>
|
||||
</c:forEach></br>
|
||||
<span class="help-inline"><spring:message code="is_show_sysmenu"/></span>
|
||||
<div for="isShow"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
}).show();
|
||||
});
|
||||
function updateSort() {
|
||||
loading('正在提交,请稍等...');
|
||||
loading('onloading...');
|
||||
$("#listForm").attr("action", "${ctx}/sys/menu/updateSort");
|
||||
$("#listForm").submit();
|
||||
}
|
||||
|
||||
@@ -8,15 +8,12 @@
|
||||
$("#name").focus();
|
||||
$("#inputForm").validate({
|
||||
submitHandler: function(form){
|
||||
loading('正在提交,请稍等...');
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
},
|
||||
messages: {
|
||||
'area.name': {required: "归属区域必填"}
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
errorPlacement: function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||||
error.appendTo(element.parent().parent());
|
||||
} else {
|
||||
@@ -47,20 +44,20 @@
|
||||
|
||||
<form:form id="inputForm" modelAttribute="sysOffice" action="${ctx}/sys/office/saveOrUpdate" method="post" class="form-horizontal">
|
||||
<form:hidden path="id"/>
|
||||
<sys:message content="${message}"/>
|
||||
<spring:message code="${message}"/>
|
||||
<div class="form-body">
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><spring:message code="parent_org"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<sys:treeselect id="office" name="parent.id" value="${office.parent.id}" labelName="parent.name" labelValue="${office.parent.name}"
|
||||
title="机构" url="/sys/office/treeData" extId="${office.id}" cssClass="form-control" allowClear="${office.currentUser.admin}"/>
|
||||
title="organization" url="/sys/office/treeData" extId="${office.id}" cssClass="form-control" allowClear="${office.currentUser.admin}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><spring:message code="belong_area"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<sys:treeselect id="area" name="area.id" value="${office.area.id}" labelName="area.name" labelValue="${office.area.name}"
|
||||
title="区域" url="/sys/area/treeData" cssClass="required form-control" allowClear="${office.currentUser.admin}"/>
|
||||
title="area" url="/sys/area/treeData" cssClass="required form-control" allowClear="${office.currentUser.admin}"/>
|
||||
</div>
|
||||
<span class="help-inline"><font color="red">*</font></span>
|
||||
</div>
|
||||
@@ -114,14 +111,14 @@
|
||||
<label class="col-md-3 control-label"><spring:message code="leader"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<sys:treeselect id="primaryPerson" name="primaryPerson.id" value="${office.primaryPerson.id}" labelName="office.primaryPerson.name" labelValue="${office.primaryPerson.name}"
|
||||
title="用户" url="/sys/office/treeData?type=6" allowClear="true" notAllowSelectParent="true" cssClass="form-control"/>
|
||||
title="user" url="/sys/office/treeData?type=6" allowClear="true" notAllowSelectParent="true" cssClass="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><spring:message code="vice_leader"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<sys:treeselect id="deputyPerson" name="deputyPerson.id" value="${office.deputyPerson.id}" labelName="office.deputyPerson.name" labelValue="${office.deputyPerson.name}"
|
||||
title="用户" url="/sys/office/treeData?type=6" allowClear="true" notAllowSelectParent="true" cssClass="form-control"/>
|
||||
title="user" url="/sys/office/treeData?type=6" allowClear="true" notAllowSelectParent="true" cssClass="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
<%-- <shiro:hasPermission name="sys:office:edit"><li><a href="${ctx}/sys/office/form?parent.id=${sysOffice.id}">机构添加</a></li></shiro:hasPermission> --%>
|
||||
<!-- </ul> -->
|
||||
<div class="table-responsive">
|
||||
<sys:message content="${message}"/>
|
||||
<spring:message code="${message}"/>
|
||||
<table id="treeTable" class="table table-striped table-bordered table-condensed">
|
||||
<thead><tr><th><spring:message code="org_name"/></th><th><spring:message code="belong_area"/></th><th><spring:message code="org_coding"/></th><th><spring:message code="level"/></th><th><spring:message code="org_type"/></th><th><spring:message code="org_duty_type"/></th><th><spring:message code="remarks"/></th><shiro:hasPermission name="sys:office:edit"><th><spring:message code="operation"/></th></shiro:hasPermission></tr></thead>
|
||||
<tbody id="treeTableList"></tbody>
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
|
||||
if(validateForm()){
|
||||
$("input[type='submit']").attr("disabled",true);
|
||||
loading('正在提交,请稍等...');
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
parent.location.reload();
|
||||
}
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
errorPlacement: function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||||
error.appendTo(element.parent().parent());
|
||||
} else {
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
return false;
|
||||
};
|
||||
// 执行保存
|
||||
loading('正在提交,请稍等...');
|
||||
loading('onloading...');
|
||||
var idsArr = "";
|
||||
for (var i = 0; i<ids.length; i++) {
|
||||
idsArr = (idsArr + ids[i]) + (((i + 1)== ids.length) ? '':',');
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<!-- BEGIN FORM-->
|
||||
<form:form id="inputForm" modelAttribute="sysRole" action="${ctx}/sys/role/saveOrUpdate" method="post" class="form-horizontal">
|
||||
<form:hidden path="id"/>
|
||||
<sys:message content="${message}"/>
|
||||
<spring:message code="${message}"/>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><spring:message code="role_name"/>:</label>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<div class="col-md-12">
|
||||
|
||||
|
||||
<sys:message content="${message}"/>
|
||||
<spring:message code="${message}"/>
|
||||
<table id="contentTable" class="table table-striped table-bordered table-condensed">
|
||||
<tr><th><spring:message code="role_name"/></th><th><spring:message code="data_range"/></th><th><spring:message code="describe"/></th><shiro:hasPermission name="sys:role:edit"><th><spring:message code="operation"/></th></shiro:hasPermission></tr>
|
||||
<c:forEach items="${list}" var="role">
|
||||
|
||||
@@ -12,21 +12,21 @@
|
||||
$("#inputForm").validate({
|
||||
rules: {
|
||||
loginId: {remote: "${ctx}/sys/user/checkLoginName?oldLoginId=" + encodeURIComponent('${user.loginId}')},
|
||||
'office.name': {officeIsValid: true }
|
||||
'office.name': {officeIsValid: true },
|
||||
'entity.name': {required: true }
|
||||
},
|
||||
messages: {
|
||||
loginId: {remote: "用户登录名已存在"},
|
||||
'office.name': {officeIsValid: "部门不再公司范围内"},
|
||||
'entity.name': {required: "需选择所在单位"},
|
||||
confirmNewPassword: {equalTo: "输入与上面相同的密码"}
|
||||
loginId: {remote: "<spring:message code='name_existed'/>"},
|
||||
'office.name': {officeIsValid: "<spring:message code='company_range'/>"},
|
||||
confirmNewPassword: {equalTo: "<spring:message code='equal_password'/>"}
|
||||
},
|
||||
submitHandler: function(form){
|
||||
loading('正在提交,请稍等...');
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
errorPlacement: function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||||
error.appendTo(element.parent().parent());
|
||||
} else {
|
||||
@@ -97,7 +97,7 @@
|
||||
<div class="portlet-body form">
|
||||
<form:form id="inputForm" modelAttribute="sysUser" action="${ctx}/sys/user/saveOrUpdate" method="post" class="form-horizontal">
|
||||
<form:hidden path="id"/>
|
||||
<sys:message content="${message}"/>
|
||||
<spring:message code="${message}"/>
|
||||
<div class="form-body">
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><spring:message code="name_image"/>:</label>
|
||||
@@ -125,7 +125,7 @@
|
||||
<label class="col-md-3 control-label"><spring:message code="owner_company"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<sys:treeselect id="company" name="company.id" value="${user.company.id}" labelName="company.name" labelValue="${user.company.name}"
|
||||
title="公司" url="/sys/office/treeData?type=1" cssClass="required form-control" notAllowSelectRoot="true"/>
|
||||
title="company" url="/sys/office/treeData?type=1" cssClass="required form-control" notAllowSelectRoot="true"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
<label class="col-md-3 control-label"><spring:message code="organizer"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<sys:treeselect id="entity" name="entity.id" value="${user.entity.id}" labelName="entity.name" labelValue="${user.entity.name}"
|
||||
title="单位" url="/sys/office/treeData?type=2" cssClass="required form-control" notAllowSelectRoot="true"/>
|
||||
title="organization" url="/sys/office/treeData?type=2" cssClass="required form-control" notAllowSelectRoot="true"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
<label class="col-md-3 control-label"><spring:message code="owner_group"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<sys:treeselect id="office" name="office.id" value="${user.office.id}" labelName="office.name" labelValue="${user.office.name}"
|
||||
title="部门" url="/sys/office/treeData?type=3" cssClass="required form-control" notAllowSelectRoot="true"/>
|
||||
title="group" url="/sys/office/treeData?type=3" cssClass="required form-control" notAllowSelectRoot="true"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
.validate(
|
||||
{
|
||||
submitHandler : function(form) {
|
||||
loading('正在提交,请稍等...');
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
},
|
||||
errorContainer : "#messageBox",
|
||||
errorPlacement : function(error, element) {
|
||||
$("#messageBox").text("输入有误,请先更正。");
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")
|
||||
|| element.is(":radio")
|
||||
|| element.parent().is(
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
<label><spring:message code="owner_company"/>:</label>
|
||||
<sys:treeselect id="company" name="company.id"
|
||||
value="${user.company.id}" labelName="company.name"
|
||||
labelValue="${user.company.name}" title="公司"
|
||||
labelValue="${user.company.name}" title="company"
|
||||
url="/sys/office/treeData?type=1" cssClass="form-control"
|
||||
allowClear="true"/>
|
||||
</div>
|
||||
@@ -113,7 +113,7 @@
|
||||
<div class="form-group">
|
||||
<label><spring:message code="owner_group"/>:</label>
|
||||
<sys:treeselect id="office" name="office.id" value="${user.office.id}" labelName="office.name"
|
||||
labelValue="${user.office.name}" title="部门"
|
||||
labelValue="${user.office.name}" title="group"
|
||||
url="/sys/office/treeData?type=3" cssClass="form-control" allowClear="true"
|
||||
notAllowSelectParent="true"/>
|
||||
</div>
|
||||
@@ -162,7 +162,7 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<sys:message content="${message}" />
|
||||
<spring:message code="${message}" />
|
||||
<table id="contentTable"
|
||||
class="table table-striped table-bordered table-condensed">
|
||||
<thead>
|
||||
|
||||
Reference in New Issue
Block a user