Parcourir la source

列表序号超过1000展示不完全

新疆警官学校中职
ndbs il y a 2 ans
Parent
révision
636a7f7dcd
3 fichiers modifiés avec 11 ajouts et 11 suppressions
  1. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/jquery/plugin/jfGrid/jfgrid.js
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/grid/jfgrid.css
  3. +6
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/grid/jfgrid.js

+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/jquery/plugin/jfGrid/jfgrid.js Voir le fichier

@@ -204,18 +204,18 @@
if (dfop.isShowNum) {
var $num = $('<div class="jfgrid-border-cell jfgrid-border-num"></div>');
$border.prepend($num);
_width += 30;
_width += 60;
}
if (dfop.isMultiselect) {
var $cb = $('<div class="jfgrid-border-cell jfgrid-border-cb"><input role="checkbox" id="jfgrid_all_cb_' + dfop.id + '" type="checkbox"></div>')
.css('left', _width + 'px').css('line-height', (dfop._headHeight - 1) + 'px');
$border.prepend($cb);
_width += 30;
_width += 60;
}
if (dfop.isSubGrid) {
var $sub = $('<div class="jfgrid-border-cell jfgrid-border-sub"></div>').css('left', _width + 'px');
$border.prepend($sub);
_width += 30;
_width += 60;
}

dfop._borderLeftPadding = _width;


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/grid/jfgrid.css Voir le fichier

@@ -47,7 +47,7 @@
position: absolute;
top: 0;
left: 0;
width: 30px;
width: 60px;
height: 100%;
border-right: 1px solid #ccc;
}
@@ -165,7 +165,7 @@
left: 0;
font-size: 12px;
color: #333;
width: 30px;
width: 60px;
line-height: 27px;
border-bottom: 1px solid #ccc;
border-right: 1px solid #ccc;


+ 6
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/grid/jfgrid.js Voir le fichier

@@ -998,20 +998,20 @@
// 判断是否有序号列
if (op.isShowNum) {
$border.append('<div class="jfgrid-border-cell jfgrid-border-num"></div>');
op.running.leftWidth += 30;
op.running.leftWidth += 60;
}
// 判断是否允许多选
if (op.isMultiselect) {
var $cb = $('<div class="jfgrid-border-cell jfgrid-border-cb"><img id="jfgrid_all_cb_' + op.id + '" src="' + imageurl + cb[0] + '" /></div>')
.css({ 'left': op.running.leftWidth, 'line-height': (op.running.headHeight - 1) + 'px' });
$border.append($cb);
op.running.leftWidth += 30;
op.running.leftWidth += 60;
}
// 是否有展开
if (op.isSubGrid) {
var $sub = $('<div class="jfgrid-border-cell jfgrid-border-sub"></div>').css('left', op.running.leftWidth);
$border.append($sub);
op.running.leftWidth += 30;
op.running.leftWidth += 60;
}
op.running.leftWidth += op.running.frozenleft;
$self.css({ 'padding-top': op.running.headHeight });
@@ -1281,7 +1281,7 @@

row['jfcheck'].$cell.css({ 'top': row['jfcheck'].top, 'left': row['jfcheck'].left, 'text-align': 'center', 'height': op.rowHeight, 'line-height': (op.rowHeight - 1) + 'px' });
$left.append(row['jfcheck'].$cell);
_left += 30;
_left += 60;
}
// 是否有子表选项
if (op.isSubGrid) {
@@ -1293,7 +1293,7 @@
};
row['jfsubGrid'].$cell.css({ 'top': row['jfsubGrid'].top, 'left': row['jfsubGrid'].left, 'text-align': 'center', 'height': op.rowHeight, 'line-height': (op.rowHeight - 1) + 'px' });
$left.append(row['jfsubGrid'].$cell);
_left += 30;
_left += 60;
}

// 加载固定列数据
@@ -2153,7 +2153,7 @@
isAutoHeight: false, // 自动适应表格高度
height: 0,
rowHeight: 28, // 行高
numRowWitdh: 30 // 序号列宽度
numRowWitdh: 60 // 序号列宽度


};


Chargement…
Annuler
Enregistrer