|
@@ -998,20 +998,20 @@ |
|
|
// 判断是否有序号列 |
|
|
// 判断是否有序号列 |
|
|
if (op.isShowNum) { |
|
|
if (op.isShowNum) { |
|
|
$border.append('<div class="jfgrid-border-cell jfgrid-border-num"></div>'); |
|
|
$border.append('<div class="jfgrid-border-cell jfgrid-border-num"></div>'); |
|
|
op.running.leftWidth += 30; |
|
|
|
|
|
|
|
|
op.running.leftWidth += 60; |
|
|
} |
|
|
} |
|
|
// 判断是否允许多选 |
|
|
// 判断是否允许多选 |
|
|
if (op.isMultiselect) { |
|
|
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>') |
|
|
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' }); |
|
|
.css({ 'left': op.running.leftWidth, 'line-height': (op.running.headHeight - 1) + 'px' }); |
|
|
$border.append($cb); |
|
|
$border.append($cb); |
|
|
op.running.leftWidth += 30; |
|
|
|
|
|
|
|
|
op.running.leftWidth += 60; |
|
|
} |
|
|
} |
|
|
// 是否有展开 |
|
|
// 是否有展开 |
|
|
if (op.isSubGrid) { |
|
|
if (op.isSubGrid) { |
|
|
var $sub = $('<div class="jfgrid-border-cell jfgrid-border-sub"></div>').css('left', op.running.leftWidth); |
|
|
var $sub = $('<div class="jfgrid-border-cell jfgrid-border-sub"></div>').css('left', op.running.leftWidth); |
|
|
$border.append($sub); |
|
|
$border.append($sub); |
|
|
op.running.leftWidth += 30; |
|
|
|
|
|
|
|
|
op.running.leftWidth += 60; |
|
|
} |
|
|
} |
|
|
op.running.leftWidth += op.running.frozenleft; |
|
|
op.running.leftWidth += op.running.frozenleft; |
|
|
$self.css({ 'padding-top': op.running.headHeight }); |
|
|
$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' }); |
|
|
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.append(row['jfcheck'].$cell); |
|
|
_left += 30; |
|
|
|
|
|
|
|
|
_left += 60; |
|
|
} |
|
|
} |
|
|
// 是否有子表选项 |
|
|
// 是否有子表选项 |
|
|
if (op.isSubGrid) { |
|
|
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' }); |
|
|
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.append(row['jfsubGrid'].$cell); |
|
|
_left += 30; |
|
|
|
|
|
|
|
|
_left += 60; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 加载固定列数据 |
|
|
// 加载固定列数据 |
|
@@ -2153,7 +2153,7 @@ |
|
|
isAutoHeight: false, // 自动适应表格高度 |
|
|
isAutoHeight: false, // 自动适应表格高度 |
|
|
height: 0, |
|
|
height: 0, |
|
|
rowHeight: 28, // 行高 |
|
|
rowHeight: 28, // 行高 |
|
|
numRowWitdh: 30 // 序号列宽度 |
|
|
|
|
|
|
|
|
numRowWitdh: 60 // 序号列宽度 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|