<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>选择关联配置</title>
|
<!--(start) public flies-->
|
|
</head>
|
[#include "/business/pages/include/static.html" /]
|
<body class="search_list_body">
|
<div class="search_list">
|
<div class="sl_search clearfix">
|
<table><tr><td>
|
<ul>
|
<li><label>搜索码:</label><input class="general" type="text" id="seachcode" name="seachcode" /></li>
|
<li><label>配置名称:</label><input class="general" type="text" id="cmdbName" name="cmdbName"/></li>
|
<li><label>配置编号:</label><input class="general" type="text" id="membercode" name="membercode"/></li>
|
</ul>
|
</td><td>
|
<a class="retrievebtn" href="javascript:window.location.reload(true);">重置</a><a class="retrievebtn focus" href="javascript:query();">查询</a>
|
</td></tr></table>
|
</div>
|
<table class="display_form" id="main">
|
|
</table>
|
</div>
|
|
<script type="text/javascript">
|
var orderId = '${RequestParameters.orderId}';
|
var flowId = '${RequestParameters.flowId}';
|
function query() {
|
var customerid = '${customerid}';
|
var projectId = '${projectId}';
|
var seachcode = $.trim($("#seachcode").val());
|
var cmdbName = $.trim($("#cmdbName").val());
|
var membercode = $.trim($("#membercode").val());
|
var ciids = '${ciIds}';
|
$.post("${base}/business/pages/incident/deviceList.html",{"customerid":customerid,"projectId":projectId,"seachcode":seachcode,"cmdbName":cmdbName,"ciids":ciids,"membercode":membercode},function(data,textStatus) {
|
$("#main").html(data);
|
})
|
|
}
|
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
var checkedBox = $("#main :checkbox:checked");
|
if(checkedBox.length==0) {
|
popupTips("请选择关联的配置");
|
return;
|
}
|
|
var devices = new Array();
|
checkedBox.each(function() {
|
devices.push($(this).val());
|
});
|
|
var deviceIds = devices.join(",");
|
|
$.post("${base}/business/pages/incident/saveLinkDevices.html",{"flowId":flowId,"deviceIds":deviceIds},function(data,textStatus) {
|
if(data=="1") {
|
window.top.popupTips("关联成功");
|
window.top.document.getElementById('deviceIframe').contentWindow.location.reload(true);
|
window.top.hideDialog(dialogID);
|
} else {
|
window.top.popupTips("关联失败");
|
}
|
})
|
}
|
}
|
|
$(function() {
|
query();
|
})
|
|
function detail(id){
|
var url = "${base}/business/pages/cfg/cfgDetail.html?id="+id;
|
window.top.openDialog("3","详情",
|
{},
|
{"width":60,"height":70},
|
[],
|
url);
|
}
|
</script>
|
</body>
|
</html>
|