<!doctype html>
|
<html>
|
<head>
|
[#include "/business/wechat/include/title.html" /]
|
[#include "/business/wechat/include/wheader.html" /]
|
</head>
|
|
<body>
|
<header class="kltit"><a href="javascript:history.go(-1);"><span></span></a>添加巡检配置</header>
|
|
[#if ciList?? && ciList?size > 0]
|
[#list ciList as ci]
|
<div class="item">
|
<input type="hidden" class="deivceId" value="${ci.ID}"/>
|
<span class="img"></span>
|
<span class="text">
|
<span class="one">搜索码:<em>${ci.SEARCHCODE}</em></span>
|
<span class="one"> 配置名称:<em>${ci.CINAME}</em></span>
|
</span>
|
</div>
|
[/#list]
|
<button class="bluebtn bluebtnsmal2" onclick="saveCi()">确定</button>
|
[#else]
|
<div class="nodate">无需要巡检的配置</div>
|
[/#if]
|
|
</body>
|
<script type="text/javascript">
|
|
$(function() {
|
$(".item").click(function() {
|
$(this).toggleClass("item-foucs"); //Remove any "active" class
|
});
|
});
|
|
function saveCi(){
|
var checkedBox = $(".item-foucs");
|
|
var cis = new Array();
|
checkedBox.each(function() {
|
cis.push($.trim($(this).find(".deivceId").val()));
|
});
|
var cilist = cis.join(",");
|
$.post("${base}/ewyw/ewRemind/ewAddCiDialog.html",{'orderId':'${orderId}','cilist':cilist},function(data,textStatus) {
|
if(data == '1') {
|
popupTips("操作成功", 2000);
|
window.location.href = "${base}/ewyw/ewRemind/ewRemindInfoCl.html?orderId=${orderId}";
|
} else {
|
popupTips("操作失败", 2000);
|
}
|
});
|
}
|
</script>
|
</html>
|