<!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>${Constants.UNIT_CONSTANTS}列表</h2>
|
<div class="fsnt_btn">
|
<a class="operating_conmon" href="javascript:addSubCus();"><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 customerId = '${RequestParameters.customerId}';
|
var pId = '${RequestParameters.pId}';
|
|
|
function addSubCus() {
|
window.top.openDialog("0","新增${Constants.UNIT_CONSTANTS}",
|
{},
|
{"width":60,"height":60},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
"${base}/business/pages/customerconfig/cussub/addSubCus.html?customerId=${RequestParameters.customerId}&pId=${RequestParameters.pId}&level=${RequestParameters.level}");
|
}
|
|
function updateSubCus(id) {
|
window.top.openDialog("0","修改${Constants.UNIT_CONSTANTS}",
|
{},
|
{"width":60,"height":60},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
"${base}/business/pages/customerconfig/cussub/addSubCus.html?customerId=${RequestParameters.customerId}&pId=${RequestParameters.pId}&level=${RequestParameters.level}&id="+id);
|
}
|
|
|
|
function changeState(id,state) {
|
var msg;
|
if(state == 1) {
|
msg = "确定要启用该${Constants.UNIT_CONSTANTS}吗?";
|
} else {
|
msg = "确定要禁用该${Constants.UNIT_CONSTANTS}吗?";
|
}
|
window.top.confirmInfo('信息确认', msg, function(){
|
var params = {"id":id,"state":state};
|
$.post("${base}/business/pages/customerconfig/cussub/changeState.html",params,function(data,textStatus) {
|
if(data.msg == "1") {
|
window.top.popupTips("操作成功");
|
window.location.reload(true);
|
window.top.queryTree('${RequestParameters.customerId}',data.firstCate);
|
} else {
|
window.top.popupTips("请先禁用该单位下的下级单位");
|
}
|
},"json")
|
});
|
}
|
|
$(function() {
|
query();
|
})
|
var nowPage = 1;
|
function query() {
|
var params = {"customerId":customerId,"pId":pId};
|
pagination("${base}/business/pages/customerconfig/cussub/subCusData.html","${base}/business/pages/customerconfig/cussub/subCusCount.html","mainData","pagination",{cpage:nowPage,psize:10},params,function(data,page) {
|
nowPage = page;
|
});
|
}
|
</script>
|
|
</body>
|
</html>
|