<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>系统功能管理</title>
|
[#include "/business/pages/include/static.html" /]
|
</head>
|
|
<body>
|
<div class="facieditlistright">
|
<div class="fs_navtitle facieditlistright_navtitle" id="fsNavtitle">
|
<h2>系统功能列表</h2>
|
<div class="fsnt_btn">
|
<a class="operating_conmon" href="javascript:addxtgn();">
|
<span class="facilistright_forticon">增加</span>
|
</a>
|
</div>
|
</div>
|
<div id="mainData"></div>
|
<div class="paging clearfix" id="pagination"></div>
|
</div>
|
<script type="text/javascript">
|
var pId = '${RequestParameters.pId}';
|
var type = '${RequestParameters.type}';
|
var nowPage = 1;
|
function query(pId){
|
var params = {"pId":pId,"type":type};
|
pagination("${base}/business/pages/xtgl/xtgn/xtgnData.html","${base}/business/pages/xtgl/xtgn/xtgnCount.html","mainData","pagination",{cpage:nowPage,psize:10},params,function(data,page) {
|
nowPage = page;
|
});
|
}
|
|
$(function() {
|
|
query(pId);
|
})
|
|
|
function addxtgn(){
|
var url = "${base}/business/pages/xtgl/xtgn/xtgnAdd.html?sjbh="+pId+"&type="+type;
|
window.top.openDialog("0","新增系统功能",
|
{},
|
{"width":60,"height":70},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
url);
|
}
|
|
|
function updateCate(id) {
|
var url = "${base}/business/pages/xtgl/xtgn/xtgnAdd.html?id="+id+"&sjbh="+pId+"&type="+type;
|
window.top.openDialog("0","修改系统功能",
|
{},
|
{"width":60,"height":70},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
url);
|
}
|
|
|
function delCate(id){
|
|
window.top.confirmInfo('提示','确定要删除该数据吗?', function(){
|
$.post("${base}/business/pages/xtgl/xtgn/delete.html",{"id":id},function(data){
|
if(data.msg == "1"){
|
window.top.popupTips("操作成功");
|
query(pId);
|
window.top.queryTree(data.firstCate,data.secondCate);
|
} else {
|
window.top.popupTips(data.msg);
|
}
|
},"json");
|
});
|
}
|
|
|
</script>
|
|
</body>
|
</html>
|