+ [task#149196] add the setModelsStatistics function.

This commit is contained in:
wangzemei
2025-10-09 13:34:49 +08:00
committed by sunhao
parent 2cf50877d0
commit db07107ba2
+14
View File
@@ -28,3 +28,17 @@ window.initModelList = async function()
$('#modelsList').zui('dtable').render({cols, data: models});
$('#modelsList').removeClass('loading');
}
/**
* 为模型列表设置表格页脚。
* Set models summary for table footer.
*
* @access public
* @return object
*/
window.setModelsStatistics = function()
{
const pageSummary = $('.models-view').data('pageSummary');
const rows = this.layout.allRows;
return {html: pageSummary.replace('%s', rows.length)};
}