<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
[#include "/business/pages/include/static.html" /]
|
<title>巡检配置</title>
|
|
<script type="text/javascript">
|
//点击事件
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
var ciJsonList = "[";
|
$("input[name=ciId]:checked").each(function(){
|
var ciId = $(this).val();
|
var cateName = $(this).parents("tr").find("td:eq(1)").text();
|
var ciName = $(this).parents("tr").find("td:eq(2)").text();
|
var searchCode = $(this).parents("tr").find("td:eq(3)").text();
|
var position = $(this).parents("tr").find("td:eq(4)").text();
|
|
var ciJson = "{"
|
ciJson = ciJson + "ciId:'" + ciId + "',"
|
ciJson = ciJson + "cateName:'" + cateName + "',"
|
ciJson = ciJson + "ciName:'" + ciName + "',"
|
ciJson = ciJson + "searchCode:'" + searchCode + "',"
|
ciJson = ciJson + "position:'" + position + "'"
|
ciJson = ciJson + "}";
|
ciJsonList = ciJsonList + ciJson;
|
});
|
ciJsonList = ciJsonList + "]";
|
ciJsonList = ciJsonList.replace(/}{/g,"},{");
|
window.top.document.getElementById('baseInfo').contentWindow.addPatrolCi(ciJsonList);
|
window.top.hideDialog(dialogID);
|
}
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
<div class="table_basic">
|
<form id="myForm" action="" method="post">
|
<input name="businessId" id="businessId" type="hidden" value="${RequestParameters.businessId}">
|
<table class="display_form" id="ciList" style="width:95%">
|
<tr class="title">
|
<td style="width:5%"></td>
|
<td style="width:15%">分类名称</td>
|
<td style="width:15%">配置名称</td>
|
<td style="width:15%">搜索码</td>
|
<td style="width:25%">存放位置</td>
|
</tr>
|
[#if ciList??&&ciList?size>0]
|
[#list ciList as ci]
|
<tr>
|
<td><input type="checkbox" value="${ci.ID}" name="ciId"></td>
|
<td>${ci.CATENAME}</td>
|
<td><a class="blue_txt lb_button" target="_blank" href="${base}/business/pages/cfg/cfgInfoIndex.html?id=${ci.ID}">${ci.CINAME}</a></td>
|
<td>${ci.SEARCHCODE}</td>
|
<td>${ci.POSITION}</td>
|
</tr>
|
[/#list]
|
[#else]
|
<tr>
|
<td colspan="5" align="center">无需要巡检配置</td>
|
</tr>
|
[/#if]
|
</table>
|
</form>
|
</div>
|
</body>
|
</html>
|