fix: bug#10762
This commit is contained in:
parent
c83fe499fa
commit
42828b295f
|
@ -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 },
|
||||
);
|
||||
|
|
|
@ -548,6 +548,7 @@ watch(
|
|||
() => props.parentId,
|
||||
() => {
|
||||
tableData._selectedRowKeys = [];
|
||||
tableData.selectedRows = [];
|
||||
},
|
||||
);
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue