优化角色禁用不允许分配

springboot3
RuoYi 2025-04-16 12:52:28 +08:00
parent 9333d9411b
commit ad6342a6e4
1 changed files with 6 additions and 5 deletions

View File

@ -63,11 +63,12 @@
columns: [{ columns: [{
checkbox: true, checkbox: true,
formatter:function (value, row, index) { formatter:function (value, row, index) {
if($.common.isEmpty(value)) { var state = row.status == '1' ? true : false;
return { checked: row.flag }; if ($.common.isEmpty(value)) {
} else { return { checked: row.flag, disabled: state };
return { checked: value } } else {
} return { checked: value, disabled: state };
}
} }
}, },
{ {