This commit is contained in:
tianshujie
2024-05-23 14:22:15 +08:00
committed by caoyanyi
parent 0c6ff7c5bd
commit 16dde69d13
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -197,11 +197,11 @@ dtable
set::checkable($canBatchEdit),
set::nested(true),
set::className('shadow rounded'),
set::footPager(usePager()),
set::canRowCheckable(jsRaw("function(rowID){return this.getRowInfo(rowID).data.type == 'project';}")),
set::onRenderCell(jsRaw('window.renderCell')),
set::orderBy($orderBy),
set::sortLink(createLink('program', 'browse', "status={$status}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}&param={$param}")),
set::footPager(usePager()),
set::footToolbar(array
(
'type' => 'btn-group',
@@ -216,11 +216,11 @@ dtable
) : null
)
)),
set::footer(array($showCheckbox ? 'checkbox' : null, 'toolbar', 'checkedInfo', 'flex', 'pager')),
set::checkInfo(jsRaw("function(checkedIDList){ return window.footerSummary(this, checkedIDList);}")),
set::emptyTip($lang->program->noProgram),
set::createTip($lang->program->create),
set::createLink($canCreateProgram ? createLink('program', 'create') : ''),
!$canBatchEdit ? set::footer([jsRaw("function(){return {html: '{$summary}'};}"), 'flex', 'pager']) : null,
set::customData(array('pageSummary' => $summary, 'checkedSummary' => $lang->program->checkedProjects))
);