* Fix bug #37439.
This commit is contained in:
@@ -7,4 +7,15 @@ css::import($jsRoot . 'dtable/min.css');
|
||||
.dtable-header {border-bottom: 1px solid #f4f5f7;}
|
||||
.dtable-header .dtable-cell {font-weight: bold;}
|
||||
</style>
|
||||
<script>zui.DTable.defineFn();</script>
|
||||
<script>
|
||||
function convertCols(cols)
|
||||
{
|
||||
cols.forEach(function(col)
|
||||
{
|
||||
if(col.fixed == 'no') col.fixed = false;
|
||||
});
|
||||
|
||||
return cols;
|
||||
}
|
||||
zui.DTable.defineFn();
|
||||
</script>
|
||||
|
||||
@@ -186,7 +186,8 @@ else
|
||||
}
|
||||
|
||||
$config->execution->datatable->fieldList['id']['title'] = 'idAB';
|
||||
$config->execution->datatable->fieldList['id']['type'] = 'checkID';
|
||||
$config->execution->datatable->fieldList['id']['type'] = 'checkID';
|
||||
$config->execution->datatable->fieldList['id']['fixed'] = 'left';
|
||||
$config->execution->datatable->fieldList['id']['sortType'] = true;
|
||||
$config->execution->datatable->fieldList['id']['checkbox'] = true;
|
||||
|
||||
|
||||
@@ -115,6 +115,7 @@ js::set('isCNLang', !$this->loadModel('common')->checkNotCN());
|
||||
<script>
|
||||
cols = JSON.parse(cols);
|
||||
data = JSON.parse(data);
|
||||
if(convertCols != undefined) cols = convertCols(cols);
|
||||
const options =
|
||||
{
|
||||
striped: true,
|
||||
|
||||
Reference in New Issue
Block a user