<!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:addCate();"><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 = '${cateId}';
|
var nowPage = 1;
|
function query(pId){
|
var params = {"pId":pId};
|
pagination("${base}/business/pages/servicelist/slapartner/partnerServiceData.html","${base}/business/pages/servicelist/slapartner/partnerServiceCount.html","mainData","pagination",{cpage:nowPage,psize:10},params,function(data,page) {
|
nowPage = page;
|
});
|
}
|
|
$(function() {
|
|
query(pId);
|
})
|
|
|
function addCate(){
|
var url = "${base}/business/pages/servicelist/slapartner/servicecategoryAdd.html?categoryid="+pId;
|
window.top.openDialog("0","新增服务目录",
|
{},
|
{"width":70,"height":60},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
url);
|
}
|
|
function batchServiceLevels() {
|
window.top.location.href="${base}/business/pages/servicelist/slapartner/batchSlaTab.html";
|
}
|
|
function updateCate(id) {
|
var url = "${base}/business/pages/servicelist/slapartner/servicecategoryAdd.html?id="+id;
|
window.top.openDialog("0","修改服务目录",
|
{},
|
{"width":70,"height":60},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
url);
|
}
|
|
|
function delCate(id,index){
|
|
var tip = "";
|
|
if(index == 1 ){
|
tip = '确定要启用该数据吗?';
|
}else{
|
tip = '确定要禁用该数据吗?';
|
}
|
|
window.top.confirmInfo('提示', tip, function(){
|
$.post("${base}/business/pages/servicelist/slapartner/updateState.html",{"id":id,"state":index},function(data){
|
if(data.result == "1"){
|
window.top.popupTips("操作成功");
|
query(pId);
|
window.top.queryTree(data.firstCate,data.secondCate);
|
} else if(data.result == "2") {
|
if(index==1) {
|
window.top.popupTips("上级分类为已禁用,该条数据不可启用,请先启用上级数据");
|
} else {
|
window.top.popupTips("该分类下有启用的数据,请先禁用该数据");
|
}
|
}
|
},"json");
|
});
|
}
|
|
function serviceUser(id) {
|
var url = "${base}/business/pages/servicelist/slaproject/serviceUser.html?cateId="+id;
|
window.top.openDialog("0","服务人员",
|
{},
|
{"width":80,"height":60},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
url);
|
}
|
</script>
|
|
</body>
|
</html>
|