xinyb
2022-10-27 ac6f6ae335c2a514cbbb5776b410cacb3921ffd9
优化页面上面板和格线的高度
3个文件已修改
13 ■■■■ 已修改文件
WebRoot/js/hotkey.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebRoot/style/commons.css 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/com/yc/action/grid/TreeGrid.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebRoot/js/hotkey.js
@@ -1391,14 +1391,15 @@
            if (panelType == 10 || panelType == 18) {
                panelHeight = panelHeight - 8;//文字颜色说明占了8高
                var panelTable0Height = $('#panelTable0').outerHeight(true);
                $('#' + gridId[0]).css('height', (panelHeight - topPanelHeight - panelTable0Height - 25) + 'px');// 减去25是因为margin和padding的值
                $('#' + gridId[0]).css('margin-bottom','0').css('margin-top','0');
                $('#' + gridId[0]).css('height', (panelHeight - topPanelHeight - panelTable0Height) + 5 + 'px');// 减去25是因为margin和padding的值
                return;
            }
            var panelFormIdHeight = $('#panel_' + formId).outerHeight(true);
            if(panelFormIdHeight==null){
                panelFormIdHeight = $('.main_talbe').outerHeight(true);
            }
            $('#' + gridId[0]).css('height', (panelHeight - topPanelHeight - panelFormIdHeight - 50) + 'px');// 减去50是因为margin和padding的值
            $('#' + gridId[0]).css('height', (panelHeight - topPanelHeight - panelFormIdHeight - 10) + 'px');// 减去50是因为margin和padding的值
            return;
        }
        return;
WebRoot/style/commons.css
@@ -107,7 +107,7 @@
    /*_padding-bottom: 0px;*/
}
#tplt-panel{
    margin: 0px 15px 10px 15px!important;
    margin: 0px 15px 0px 15px!important;
    /*padding: 3px;*/
    /*padding-top: 3px;*/
}
@@ -168,7 +168,7 @@
.panel_table_td{
    /*word-break: keep-all; delete by danaus 19-1-24*/
    font-size: 13px;
    padding:3px 0px 3px 0px;
    /*padding:3px 0px 3px 0px;*/
    border-right-style:none;
    border-left-style:none;
    border-top-style:none;
@@ -591,7 +591,7 @@
/*-------下面调整界面上显示的控件位置------*/
.panelControlDiv{
    padding-top: 5px;
    padding-top: 3px;
    /*margin-right: 35px;*/
}
#top20 #h_all .panelControlDiv{
src/com/yc/action/grid/TreeGrid.java
@@ -2025,7 +2025,7 @@
                    //--------------------
                    String hi = this.setGridHight(dto);
                    dto.headerDiv = "\n<div id=\"T_" + dto.formID + "\" style=\"margin:10px;width: 98%; height: " + hi + ";" + ((dto.b497 && dto.PriFormID == 0 || dto.b499 && dto.PriFormID == 0) && dto.xxk == 0 ? "display:none" : "") + "\"></div>";//增加多表加载时不显示所有格线
                    dto.headerDiv = "\n<div id=\"T_" + dto.formID + "\" style=\"margin:5px 10px 0px 10px;width: 98%; height: " + hi + ";" + ((dto.b497 && dto.PriFormID == 0 || dto.b499 && dto.PriFormID == 0) && dto.xxk == 0 ? "display:none" : "") + "\"></div>";//增加多表加载时不显示所有格线
                    if ((i <= 1 && !dto.muilGrid) || (dto.muilGrid && i < 1 && num < 4)) {//不是多表,只需要生成一个gt-grid   单表,清单表(二表,三表,多表)
                        if ((dto.winType != 7 && dto.winType != 77) && (dto.b497 && dto.PriFormID == -1 || dto.b499 && dto.PriFormID == -1)) {//表示496,498多表的第一个表
                            int value = Integer.parseInt(dto.tolkey);