<!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" id="add">
|
<a class="operating_conmon" href="javascript:add();">
|
<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}';
|
|
function query(pId){
|
var params = {"pId":pId};
|
pagination("${base}/business/pages/wbx/rcxjitem/rcxjxListData.html","${base}/business/pages/wbx/rcxjitem/rcxjxListCount.html","mainData","pagination",{psize:10},params);
|
}
|
|
$(function() {
|
|
query(pId);
|
})
|
|
function add(){
|
var url = '${base}/business/pages/wbx/rcxjitem/addZcxjItem.html?categoryid='+pId+'&jb=3';
|
window.top.openDialog("0","新增日常巡检项",
|
{},
|
{"width":60,"height":80},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
url);
|
}
|
|
function update(id) {
|
var url = "${base}/business/pages/wbx/rcxjitem/addZcxjItem.html?id="+id;
|
window.top.openDialog("0","修改日常巡检项",
|
{},
|
{"width":60,"height":80},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
url);
|
}
|
|
|
|
function detail(id) {
|
var url = "${base}${base}/business/pages/wbx/rcxjitem/rcxjxDetail.html?id="+id;
|
window.top.openDialog("0","详情",
|
{},
|
{"width":60,"height":80},
|
[],
|
url);
|
}
|
|
|
|
function del(id,index){
|
|
var tip = "";
|
|
if(index == 1 ){
|
tip = '确定要启用该数据吗?';
|
}else{
|
tip = '确定要禁用该数据吗?';
|
}
|
|
window.top.confirmInfo('提示', tip, function(){
|
$.post("${base}/business/pages/wbx/rcxjitem/deleteZcxjItem.html",{"id":id,"state":index},function(data){
|
if(data == "1"){
|
window.top.popupTips("操作成功");
|
query(pId);
|
} else {
|
window.top.popupTips("操作失败");
|
}
|
});
|
});
|
}
|
</script>
|
|
</body>
|
</html>
|