fix: bug#10762

This commit is contained in:
JiangQiming 2023-03-28 14:11:13 +08:00
parent c83fe499fa
commit 42828b295f
2 changed files with 8 additions and 1 deletions

View File

@ -232,7 +232,7 @@ const table: any = {
// allPermissions,
// );
// item.selectPermissions = newPermission;
// fix: bug#10756
item.selectPermissions = n[1];
//
@ -264,6 +264,12 @@ const table: any = {
removedItem.selectPermissions = ['read'];
});
}
if (!nValue.length) {
//
table.tableData.forEach((item: any) => {
item.selectPermissions = ['read'];
});
}
},
{ deep: true },
);

View File

@ -548,6 +548,7 @@ watch(
() => props.parentId,
() => {
tableData._selectedRowKeys = [];
tableData.selectedRows = [];
},
);
</script>