|
@@ -33,7 +33,7 @@
|
|
} else {
|
|
} else {
|
|
$.jBox.tip(data.msg,'error');
|
|
$.jBox.tip(data.msg,'error');
|
|
}
|
|
}
|
|
- $("#searchForm").submit();
|
|
|
|
|
|
+ g();
|
|
},"JSON");//这里返回的类型有:json,html,xml,text
|
|
},"JSON");//这里返回的类型有:json,html,xml,text
|
|
}
|
|
}
|
|
return;
|
|
return;
|
|
@@ -54,7 +54,7 @@
|
|
} else {
|
|
} else {
|
|
$.jBox.tip(data.msg,'error');
|
|
$.jBox.tip(data.msg,'error');
|
|
}
|
|
}
|
|
- $("#searchForm").submit();
|
|
|
|
|
|
+ g();
|
|
},"JSON");//这里返回的类型有:json,html,xml,text
|
|
},"JSON");//这里返回的类型有:json,html,xml,text
|
|
}
|
|
}
|
|
return;
|
|
return;
|
|
@@ -77,7 +77,7 @@
|
|
items.push($(this).val());
|
|
items.push($(this).val());
|
|
});
|
|
});
|
|
//保存批量排序
|
|
//保存批量排序
|
|
- $.post("${ctx}/newhome/newPageFirstNavigation/batchSaveSort?sortList="+items, function(data) {
|
|
|
|
|
|
+ $.post("${ctx}/newhome/newPageFirstNavigation/batchSaveSort?type=${newPageFirstNavigation.type}&sortList="+items, function(data) {
|
|
if(true==data.success){
|
|
if(true==data.success){
|
|
$.jBox.tip(data.msg, 'info');
|
|
$.jBox.tip(data.msg, 'info');
|
|
setInterval(g,1000);
|
|
setInterval(g,1000);
|
|
@@ -99,7 +99,7 @@
|
|
|
|
|
|
function g() {
|
|
function g() {
|
|
//刷新页面
|
|
//刷新页面
|
|
- window.location.href="${ctx}/newhome/newPageFirstNavigation/";
|
|
|
|
|
|
+ window.location.href="${ctx}/newhome/newPageFirstNavigation?type=${newPageFirstNavigation.type}";
|
|
}
|
|
}
|
|
|
|
|
|
//修改排序值
|
|
//修改排序值
|
|
@@ -112,13 +112,14 @@
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
<ul class="nav nav-tabs">
|
|
<ul class="nav nav-tabs">
|
|
- <li class="active"><a href="${ctx}/newhome/newPageFirstNavigation/">主菜单列表</a></li>
|
|
|
|
|
|
+ <li class=${newPageFirstNavigation.type==0?"active":""}><a href="${ctx}/newhome/newPageFirstNavigation?type=0">主菜单列表</a></li>
|
|
|
|
+ <li class=${newPageFirstNavigation.type==2?"active":""}><a href="${ctx}/newhome/newPageFirstNavigation?type=2">快捷运营菜单</a></li>
|
|
</ul>
|
|
</ul>
|
|
-<form:form id="searchForm" modelAttribute="newPageFirstNavigation" action="${ctx}/newhome/newPageFirstNavigation/" method="post" class="breadcrumb form-search">
|
|
|
|
|
|
+<form:form id="searchForm" modelAttribute="newPageFirstNavigation" action="${ctx}/newhome/newPageFirstNavigation?type${newPageFirstNavigation.type}" method="get" class="breadcrumb form-search">
|
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
<input class="btn btn-primary" style="width:80px" onclick="batchSaveSort()" value="一键排序"/>
|
|
<input class="btn btn-primary" style="width:80px" onclick="batchSaveSort()" value="一键排序"/>
|
|
- <input class="btn btn-primary" style="width:80px" onclick="window.location='${ctx}/newhome/newPageFirstNavigation/form'" value="添加主菜单"/>
|
|
|
|
|
|
+ <input class="btn btn-primary" style="width:${newPageFirstNavigation.type==0?80:120}px" onclick="window.location='${ctx}/newhome/newPageFirstNavigation/form?type=${newPageFirstNavigation.type}'" value="添加${newPageFirstNavigation.type==0?"主":"快捷运营"}菜单"/>
|
|
<input class="btn btn-primary" style="width:100px" onclick="updateStaticHome()" value="生成静态首页"/>
|
|
<input class="btn btn-primary" style="width:100px" onclick="updateStaticHome()" value="生成静态首页"/>
|
|
<div style="margin-top: 10px">
|
|
<div style="margin-top: 10px">
|
|
<label><font color="#a9a9a9">注:排序值越小越靠前</font></label>
|
|
<label><font color="#a9a9a9">注:排序值越小越靠前</font></label>
|
|
@@ -129,7 +130,7 @@
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>ID</th>
|
|
- <th>主菜单名称</th>
|
|
|
|
|
|
+ <th><c:if test="${newPageFirstNavigation.type==0}">主</c:if>菜单名称</th>
|
|
<th>图标</th>
|
|
<th>图标</th>
|
|
<th>跳转链接</th>
|
|
<th>跳转链接</th>
|
|
<th>网站状态</th>
|
|
<th>网站状态</th>
|
|
@@ -194,12 +195,12 @@
|
|
<fmt:formatDate value="${newPageFirstNavigation.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
|
|
<fmt:formatDate value="${newPageFirstNavigation.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
|
|
</td>
|
|
</td>
|
|
<shiro:hasPermission name="newhome:newPageFirstNavigation:edit"><td>
|
|
<shiro:hasPermission name="newhome:newPageFirstNavigation:edit"><td>
|
|
- <a href="${ctx}/newhome/newPageFirstNavigation/form?id=${newPageFirstNavigation.id}">编辑</a>
|
|
|
|
|
|
+ <a href="${ctx}/newhome/newPageFirstNavigation/form?id=${newPageFirstNavigation.id}&type=${newPageFirstNavigation.type}">编辑</a>
|
|
<%--<c:if test="${newPageFirstNavigation.type eq 0}">
|
|
<%--<c:if test="${newPageFirstNavigation.type eq 0}">
|
|
<a href="${ctx}/newhome/newPageSecondaryNavigation/?firstNavigationId=${newPageFirstNavigation.id}">二级分类设置</a>
|
|
<a href="${ctx}/newhome/newPageSecondaryNavigation/?firstNavigationId=${newPageFirstNavigation.id}">二级分类设置</a>
|
|
</c:if>--%>
|
|
</c:if>--%>
|
|
<shiro:hasPermission name="newhome:newPageFirstNavigation:delete">
|
|
<shiro:hasPermission name="newhome:newPageFirstNavigation:delete">
|
|
- <a href="${ctx}/newhome/newPageFirstNavigation/delete?id=${newPageFirstNavigation.id}" onclick="return confirmx('确定删除该菜单吗?', this.href)">删除</a>
|
|
|
|
|
|
+ <a href="${ctx}/newhome/newPageFirstNavigation/delete?id=${newPageFirstNavigation.id}&type=${newPageFirstNavigation.type}" onclick="return confirmx('确定删除该菜单吗?', this.href)">删除</a>
|
|
</shiro:hasPermission>
|
|
</shiro:hasPermission>
|
|
</td></shiro:hasPermission>
|
|
</td></shiro:hasPermission>
|
|
</tr>
|
|
</tr>
|