Update index.html

This commit is contained in:
Anyon 2022-03-03 13:15:49 +08:00
parent 3183d03abb
commit 2b41ad4c7a

View File

@ -55,6 +55,7 @@
$('#QueueTable').layTable({
even: true, height: 'full',
sort: {field: 'loops_time desc,id', type: 'desc'},
// 扩展数据处理,需要返回原 items 数据
filter: function (items, result) {
return result && result.extra && $('[data-extra]').map(function () {
this.innerHTML = result.extra[this.dataset.extra] || 0;