<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>选择关联配置</title>
|
<!--(start) public flies-->
|
|
</head>
|
[#include "/business/pages/include/static.html" /]
|
<script type="text/javascript" src="${common_static}/static/script/jquery.mypagination.js"></script>
|
<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" name="thirdCateName" id="thirdCateName" onclick="selCate()" readonly="readonly"/>
|
<input type = "hidden" name="thirdCateId" id="thirdCateId"/></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 class="paging clearfix" id="pagination" style="text-align:center;"></div>
|
</div>
|
|
<script type="text/javascript">
|
var projectId = '${RequestParameters.projectId}';
|
var flowId = '${RequestParameters.flowId}';
|
function query() {
|
var seachcode = $.trim($("#seachcode").val());
|
var cmdbName = $.trim($("#cmdbName").val());
|
var thirdCateId = $.trim($("#thirdCateId").val());
|
var params = {"projectId":projectId,"flowId":flowId,"seachcode":seachcode,"cmdbName":cmdbName,"categoryid":thirdCateId,"flowId":flowId};
|
loading($("#main"));
|
$.post("${base}/business/pages/change/linkDeviceData.html",params,function(data,textStatus) {
|
loaded($("#main"));
|
$("#main").html(data);
|
})
|
|
}
|
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
var checkedBox = $(".deivceId:checked");
|
if(checkedBox.length==0) {
|
popupTips("请选择配置修改的配置");
|
return;
|
}
|
|
var devices = new Array();
|
checkedBox.each(function() {
|
devices.push($(this).val());
|
});
|
devices = devices.join(",");
|
|
var b = false;
|
if(!b) {
|
$.post("${base}/business/pages/cmdb/propform/addtemp.html",{"devices":devices,"flowId":flowId},function(data,textStatus) {
|
window.top.hideDialog(0);
|
window.top.document.getElementById('pzIframe').contentWindow.changeDevice();
|
//window.top.changeDevice();
|
})
|
} else {
|
popupTips("正在提交,请稍后...");
|
}
|
}
|
}
|
|
$(function() {
|
query();
|
})
|
function selCate(){
|
var url = "${base}/business/pages/cmdb/ci/getCiCategorySl.html?type=3"
|
window.top.openDialog("selectSl","操作",
|
{},
|
{"width":80,"height":80},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],url);
|
}
|
|
function showCategotyName(id,name){
|
$("#thirdCateName").val(name);
|
$("#thirdCateId").val(id);
|
|
}
|
</script>
|
</body>
|
</html>
|