This commit is contained in:
liumengyi
2023-08-18 17:24:23 +08:00
parent b1dc250ff7
commit b562b0ac59
3 changed files with 15 additions and 2 deletions
+12 -1
View File
@@ -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>
+2 -1
View File
@@ -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;
+1
View File
@@ -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,