feat: 优化选择效果
This commit is contained in:
@@ -56,6 +56,11 @@ function setCheckedRows({
|
|||||||
}: {
|
}: {
|
||||||
records: CrmPermissionApi.Permission[];
|
records: CrmPermissionApi.Permission[];
|
||||||
}) {
|
}) {
|
||||||
|
if (records.some((item) => item.level === PermissionLevelEnum.OWNER)) {
|
||||||
|
message.warning('不能选择负责人!');
|
||||||
|
gridApi.grid.setAllCheckboxRow(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
checkedRows.value = records;
|
checkedRows.value = records;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user