修复表格对不齐问题

This commit is contained in:
hy
2024-12-31 09:45:56 +08:00
parent f1868168af
commit 1816f1a497

View File

@@ -177,9 +177,10 @@ patch(ListRenderer.prototype, 'jikimo_frontend.ListRenderer', {
const thead_th_num = thead_tr.children().length
const tbody_tr_num = tbody_tr.children().length
const num = thead_th_num - tbody_tr_num
console.log('num', num);
if(num == -1) {
thead_tr.prepend('<td>序号</td>')
tbody.children('tr').each(function () {
$(this).children('td').eq(0).remove()
})
}
} catch (e) {