1.完善一些提示的国际化配置

2.欺骗ip权限控制调整
This commit is contained in:
chenjinsong
2018-04-13 13:47:22 +08:00
parent cfb453d310
commit 0dd7f79af0
2 changed files with 8 additions and 8 deletions

View File

@@ -305,7 +305,7 @@ $(function(){
<div class="col-md-6"> <div class="col-md-6">
<div class="row"> <div class="row">
<div class="col-md-offset-3 col-md-8"> <div class="col-md-offset-3 col-md-8">
<shiro:hasPermission name="ip:cfg:edit"> <shiro:hasPermission name="cfg:dnsip:edit">
<input id="submitBtn" type="submit" class="btn btn-circle blue" value=<spring:message code="submit"></spring:message>> <input id="submitBtn" type="submit" class="btn btn-circle blue" value=<spring:message code="submit"></spring:message>>
</shiro:hasPermission> </shiro:hasPermission>
<button id="cancel" type="button" class="btn btn-circle grey-salsa btn-outline" onclick="history.go(-1)"><spring:message code="cancel"></spring:message></button> <button id="cancel" type="button" class="btn btn-circle grey-salsa btn-outline" onclick="history.go(-1)"><spring:message code="cancel"></spring:message></button>

View File

@@ -52,9 +52,9 @@
function edit() { function edit() {
var checkboxes = $(".child-checks:checked"); var checkboxes = $(".child-checks:checked");
if (checkboxes.length == 0) { if (checkboxes.length == 0) {
alertx("请选择一条配置"); alertx("<spring:message code='one_more'/>");
} else if (checkboxes.length > 1) { } else if (checkboxes.length > 1) {
alertx("只能选择一条配置"); alertx("<spring:message code='check_one'/>");
} else { } else {
window.location.href = "${ctx}/cfg/dnsIp/form?cfgId=" + checkboxes.attr("id"); window.location.href = "${ctx}/cfg/dnsIp/form?cfgId=" + checkboxes.attr("id");
} }
@@ -63,7 +63,7 @@
function delCfg() { function delCfg() {
var checkboxes = $(".child-checks:checked"); var checkboxes = $(".child-checks:checked");
if (checkboxes.length == 0) { if (checkboxes.length == 0) {
alertx("请选择一条配置"); alertx("<spring:message code='one_more'/>");
} else { } else {
var ids = ""; var ids = "";
checkboxes.each(function(){ checkboxes.each(function(){
@@ -83,7 +83,7 @@
<div class="page-content"> <div class="page-content">
<div class="theme-panel hidden-xs hidden-sm"> <div class="theme-panel hidden-xs hidden-sm">
<shiro:hasPermission name="cfg:ip:edit"> <shiro:hasPermission name="cfg:dnsip:edit">
<button type="button" class="btn btn-primary" onClick="javascript:window.location='${ctx}/cfg/dnsIp/form'"> <button type="button" class="btn btn-primary" onClick="javascript:window.location='${ctx}/cfg/dnsIp/form'">
<i class="fa fa-plus"></i> <i class="fa fa-plus"></i>
<spring:message code="add"></spring:message></button> <spring:message code="add"></spring:message></button>
@@ -131,7 +131,7 @@
<%-- <button type="button" class="btn btn-default" onclick="edit()"> <%-- <button type="button" class="btn btn-default" onclick="edit()">
<i class="fa fa-edit"></i> <spring:message code="edit"/> <i class="fa fa-edit"></i> <spring:message code="edit"/>
</button> --%> </button> --%>
<shiro:hasPermission name="cfg:ip:edit"> <shiro:hasPermission name="cfg:dnsip:edit">
<button class="btn btn-default" onclick="delCfg()" data-toggle="tooltip" data-placement="top"> <button class="btn btn-default" onclick="delCfg()" data-toggle="tooltip" data-placement="top">
<i class="fa fa-trash"> <spring:message code="delete"/></i> <i class="fa fa-trash"> <spring:message code="delete"/></i>
</button> </button>
@@ -246,7 +246,7 @@
<table class="table table-striped table-bordered table-condensed text-nowrap"> <table class="table table-striped table-bordered table-condensed text-nowrap">
<thead> <thead>
<tr> <tr>
<shiro:hasPermission name="cfg:ip:edit"> <shiro:hasPermission name="cfg:dnsip:edit">
<th><input type="checkbox" class="i-checks" id="checkAll"></th> <th><input type="checkbox" class="i-checks" id="checkAll"></th>
</shiro:hasPermission> </shiro:hasPermission>
<th><spring:message code="config_describe"/></th> <th><spring:message code="config_describe"/></th>
@@ -276,7 +276,7 @@
</thead> </thead>
<tbody> <tbody>
<c:forEach items="${page.list }" var="dnsIpCfg" varStatus="status" step="1"> <c:forEach items="${page.list }" var="dnsIpCfg" varStatus="status" step="1">
<shiro:hasPermission name="cfg:ip:edit"> <shiro:hasPermission name="cfg:dnsip:edit">
<td><input type="checkbox" class="i-checks child-checks" id="${dnsIpCfg.fakeId}" value="${dnsIpCfg.isAudit}"></td> <td><input type="checkbox" class="i-checks child-checks" id="${dnsIpCfg.fakeId}" value="${dnsIpCfg.isAudit}"></td>
</shiro:hasPermission> </shiro:hasPermission>
<td>${dnsIpCfg.cfgDesc }</td> <td>${dnsIpCfg.cfgDesc }</td>