修改因添加表格必填而出现报错问题

This commit is contained in:
黄焱
2024-04-15 17:04:43 +08:00
parent 65330b083b
commit 48cba4274b
2 changed files with 12 additions and 3 deletions

View File

@@ -128,8 +128,7 @@ patch(ListRenderer.prototype, 'jikimo_frontend.ListRenderer', {
this.allColumns.forEach(_ => {
if( tableRequiredList.indexOf(_.name) >= 0 ) {
const dom = $(`th[data-name=${_.name}]`)
let t = dom.html()
dom.html('<i style="color: red;margin-left: -4px;position: absolute;left: 0">*</i>' + t)
dom.addClass('addRequired')
}
})
}