refactor(web): 增加分页通用配置
This commit is contained in:
@@ -87,20 +87,10 @@ function yarnTab(cluster, title, queueNames = 'root', searchName = undefined) {
|
||||
type: "tpl",
|
||||
tpl: "共 <span class='text-primary font-bold'>${total|default:0}</span> 个任务,其中 <span class='text-success font-bold'>${running|default:0}</span> 个任务运行中,<span class='text-danger font-bold'>${unRunning|default:0}</span> 个任务处于非运行状态"
|
||||
},
|
||||
{
|
||||
type: 'pagination',
|
||||
layout: ['pager', 'perPage'],
|
||||
maxButtons: 5,
|
||||
showPageInput: false,
|
||||
}
|
||||
paginationCommonOptions(),
|
||||
],
|
||||
footerToolbar: [
|
||||
{
|
||||
type: 'pagination',
|
||||
layout: ['pager', 'perPage'],
|
||||
maxButtons: 5,
|
||||
showPageInput: false,
|
||||
}
|
||||
paginationCommonOptions(),
|
||||
],
|
||||
columns: yarnCrudColumns(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user