细节微调

This commit is contained in:
thinkgem
2022-08-09 16:43:59 +08:00
parent 4a6c15d56a
commit 6bcd2a28c4
2 changed files with 4 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ $('#dataGrid').dataGrid({
searchForm: $("#searchForm"),
dataGridPage: $('#dataGridPage'),
autoGridHeight: function(){
return $('#searchForm').parent().height() - $('#dataGridPage').height() - 45;
return $('#searchForm').parent().height() - $('#dataGridPage').height() - 50;
},
columnModel: [
{header:'${text("岗位名称")}', name:'postName', index:'a.post_name', width:200, align:"center"},
@@ -91,7 +91,7 @@ $('#dataGrid2').dataGrid({
searchForm: $("#searchForm2"),
dataGridPage: $('#dataGrid2Page'),
autoGridHeight: function(){
return $('#searchForm2').parent().height() - $('#dataGrid2Page').height() - 45;
return $('#searchForm2').parent().height() - $('#dataGrid2Page').height() - 50;
},
columnModel: [
{header:'${text("登录账号")}', name:'loginCode', index:'a.login_code', width:200, align:"center"},

View File

@@ -39,7 +39,7 @@
var windowHeight = $(window).height(),
headerHeight = $('.box-header').outerHeight() || 0,
footerHeight = $('.box-footer').outerHeight() || 0,
height = windowHeight - headerHeight - footerHeight - 13;
height = windowHeight - headerHeight - footerHeight - 20;
return height < 300 ? 300 : height;
}
});
@@ -59,7 +59,7 @@
var windowHeight = $(window).height(),
headerHeight = $('.box-header').outerHeight() || 0,
footerHeight = $('.box-footer').outerHeight() || 0,
height = windowHeight - headerHeight - footerHeight - 13;
height = windowHeight - headerHeight - footerHeight - 20;
return height < 300 ? 300 : height;
}
});