<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>选择关联配置</title>
|
<!--(start) public flies-->
|
|
</head>
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/popTree.html" /]
|
<body>
|
<div class="fs_main clearfix">
|
|
<div class="event_fill list_common_select">
|
<table><tr><th width="85%">
|
|
<div class="fill_item">
|
<label>搜索码:</label>
|
<input class="general" type="text" name="searchCode" id="searchCode" />
|
</div>
|
|
<div class="fill_item">
|
<label>配置项名称:</label>
|
<input class="general" type="text" name="cmdbName" id="cmdbName" />
|
</div>
|
|
[@popTree textName="categoryName" valueName="categoryId" url="${base}/business/pages/ciadd/ciTree.html" width="300px"/]
|
|
</th><td width="15%">
|
<a class="retrievebtn" id="reset">重置</a><a class="retrievebtn focus" onclick="query();">查询</a>
|
</td></tr></table>
|
</div>
|
</div>
|
|
<div class="fs_main clearfix">
|
<div id="main"></div>
|
</div>
|
|
<script type="text/javascript">
|
var flowId = '${RequestParameters.flowId}';
|
var dslId = '${RequestParameters.dslId}';
|
var proId = '${RequestParameters.proId}';
|
function query() {
|
var searchCode = $.trim($("#searchCode").val());
|
var cmdbName = $.trim($("#cmdbName").val());
|
var categoryId = $.trim($("#categoryId").val());
|
var params = {"proId":proId,"dslId":dslId,"flowId":flowId,"searchCode":searchCode,"cmdbName":cmdbName,'categoryId':categoryId};
|
loading($("#main"));
|
$.post("${base}/business/pages/change/dslciData.html",params,function(data,textStatus) {
|
$("#main").html(data);
|
})
|
}
|
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
var checkedBox = $(".deivceId:checked");
|
if(checkedBox.length==0) {
|
popupTips("请选择dsl关联的配置");
|
return;
|
}
|
|
var devices = new Array();
|
checkedBox.each(function() {
|
devices.push($(this).val());
|
});
|
devices = devices.join(",");
|
|
var b = false;
|
if(!b) {
|
$.post("${base}/business/pages/change/saveDslci.html",{"devices":devices,"flowId":flowId,"dslId":dslId},function(data,textStatus) {
|
window.top.hideDialog("add");
|
window.top.document.getElementById("dialogIframelinkci").contentWindow.query();
|
})
|
} else {
|
popupTips("正在提交,请稍后...");
|
}
|
}
|
}
|
|
$(function() {
|
query();
|
$("#reset").click(function() {
|
window.location.reload(true);
|
});
|
})
|
</script>
|
</body>
|
</html>
|