feat: 优化选择效果

pull/128/head
xingyu4j 2025-06-04 14:59:56 +08:00
parent 6cede50dcc
commit 5990386498
1 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,11 @@ function setCheckedRows({
}: {
records: CrmPermissionApi.Permission[];
}) {
if (records.some((item) => item.level === PermissionLevelEnum.OWNER)) {
message.warning('不能选择负责人!');
gridApi.grid.setAllCheckboxRow(false);
return;
}
checkedRows.value = records;
}