<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>DSL配置管理</title>
|
[#include "/business/pages/include/static.html" /]
|
</head>
|
|
<body>
|
<div class="facieditlistright">
|
<div class="fs_navtitle facieditlistright_navtitle" id="fsNavtitle">
|
<h2>DSL配置列表</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 = '${pId}';
|
var thirdCate = '${thirdCate}';
|
function query(){
|
var params = {"pId":pId,"thirdCate":thirdCate};
|
pagination("${base}/business/pages/dslcate/dslconfigCateData.html","${base}/business/pages/dslcate/dslconfigCateCount.html","mainData","pagination",{psize:10},params);
|
}
|
|
$(function() {
|
|
query(pId);
|
})
|
|
|
function addCate(){
|
var url = "${base}/business/pages/dslcate/dslconfigAdd.html?thirdCate="+thirdCate+"&pId="+pId;
|
window.top.openDialog("0","新增DSL配置分类",
|
{},
|
{"width":60,"height":60},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
url);
|
}
|
|
|
function updateCate(id) {
|
var url = "${base}/business/pages/dslcate/dslconfigAdd.html?id="+id+"&thirdCate="+thirdCate;
|
window.top.openDialog("0","修改DSL配置分类",
|
{},
|
{"width":60,"height":60},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
url);
|
}
|
|
|
function delCate(id,index){
|
|
var tip = "";
|
var url = "";
|
if(index == 1 ){
|
tip = '确定要启用该数据吗?';
|
url = "${base}/business/pages/dslcate/openconfig.html";
|
}else{
|
tip = '确定要禁用该数据吗?';
|
url = "${base}/business/pages/dslcate/delconfigCate.html";
|
}
|
|
window.top.confirmInfo('提示', tip, function(){
|
$.post(url,{"id":id},function(data){
|
if(data.result == "1"){
|
window.top.popupTips("操作成功");
|
query(pId);
|
window.top.queryTree(data.firstCate,data.secondCate);
|
} else {
|
window.top.popupTips(data.result);
|
}
|
},"json");
|
});
|
}
|
|
</script>
|
|
</body>
|
</html>
|