1.修复窗口大小改变时表头可能出错的问题

2.将拓扑、3d机房的弹框改为动态改变大小
This commit is contained in:
chenjinsong
2018-10-09 11:30:10 +08:00
parent 3d4bcf43f5
commit c2cf40da87
5 changed files with 29 additions and 15 deletions

View File

@@ -254,7 +254,7 @@ function $id(tid,type,show){// id 类型 alter的消息
$cloneHeader.attr("id",defaults.cloneHeader);
//行列两层嵌套循环,对应设定克隆表列宽
//计算表头行数defaults.minRows
$cloneHeader.find("tr").each(function(row,domEle){ // 克隆表 行循环
$cloneHeader.find("tr").each(function(row,domEle){// 克隆表 行循环
if(row<defaults.minRows){
$colDataOrg = $tableOrg.find("tr").eq(row).children(); // 原数据表 取第row行数据
$(domEle).children().each(function(col){ // 克隆表 列循环
@@ -296,8 +296,10 @@ function $id(tid,type,show){// id 类型 alter的消息
div.insertBefore($('body table',window.document).first()); // 将div加入页面中
var $divArray = $(this).closest("div");
var divO = $divArray[0];
div.css('top','0px');
div.css('display','inline');
if (divO.scrollTop > 20) {
div.css('top','0px');
div.css('display','inline');
}
}
return $("#"+defaults.headerDiv);
@@ -363,14 +365,14 @@ function $id(tid,type,show){// id 类型 alter的消息
if(tableOrgPosition.top < divO.scrollTop){
var preDivTop=$headerDiv.parent().prevAll("div[id='divTop']");
if(preDivTop.length>0){
$headerDiv.css('top','28px');
$("#"+defaults.headerDiv).css('top','28px');
}else{
$headerDiv.css('top','0px');
$("#"+defaults.headerDiv).css('top','0px');
}
$headerDiv.css('display','inline');
$("#"+defaults.headerDiv).css('display','inline');
}else{
$headerDiv.css('display','none');
$("#"+defaults.headerDiv).css('display','none');
}
}
});

View File

@@ -412,7 +412,6 @@ $(function(){
}
</script>
<style type="text/css">
html, body {
@@ -649,8 +648,8 @@ html, body {
<!-- 3D机房弹框 -->
<div id="nodeBoxs" style="display:none;"></div>
<div id="alarmInfo" style="display:none;">
<iframe id="I6" name="I6" height="525px" width="100%" border="0"
style="background: #FFFFFF;" frameborder="0" src="" scrolling="auto">
<iframe id="I6" name="I6" border="0"
style="background: #FFFFFF;min-height:400px;min-width:600px" frameborder="0" src="" scrolling="no">
i18n_snr.message.frame_n81i
</iframe>
</div>

View File

@@ -327,13 +327,13 @@
}
}
function ieBrowser(){
if($.browser.msie){
/* if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
} */
}
//程辉 2013-5-8 新增 导出当前页

View File

@@ -333,10 +333,13 @@ function getDetectInfo(id,type,showStatus){
}
top.$("#I5").attr("src",url);//由于所有数据列表不会出现隐藏的情况所以标题的确定就有I5来负责
var thisheight = $(document).height()*0.9;
var thiswidth = $(document).width()*0.9;
parent.layer.open({
type: 1,
title: "i18n_st.text.policy_n81i",
area:['1024px', '600px'],
area:[thiswidth + 'px', thisheight + 'px'],
shade: 0.6,
closeBtn: 1,
maxmin:true,

View File

@@ -455,7 +455,8 @@ body {
window.top.layer.open({
type: 1,
title: params[1],
area:['206px', 'auto'],
area:['206px', ''],
scrollbar: true,
content: window.top.$("#nodeBoxs")
})
}
@@ -470,13 +471,22 @@ body {
}else if(nodeType == 1){
var url ="<c:url value='/detection/detectionWarning.do?action=queryNE&ip="+nodeip+"&levelAlarm=1"+param+"+&type=3Droom'/>";
}
var thisheight = $(document).height()*0.9;
var thiswidth = $(document).width()*0.9;
window.top.layer.open({
type: 1,
area:['900px', '600px'],
maxmin:true,
area: [thiswidth + 'px', thisheight + 'px'],
scrollbar: true,
content: window.top.$("#alarmInfo")
})
window.top.$("#I6").html("");
window.top.$("#I6").attr("src",url);
window.top.$("#I6").load(function(){
var main = window.top.$("#I6");
main.height(thisheight);
main.width(thiswidth);
});
}
/* function getAlarmInfo(param,nodeip,nodeType){