diff --git a/src/views/system/Department/components/AddDeviceOrProductDialog.vue b/src/views/system/Department/components/AddDeviceOrProductDialog.vue index 2c03374b..8ec44192 100644 --- a/src/views/system/Department/components/AddDeviceOrProductDialog.vue +++ b/src/views/system/Department/components/AddDeviceOrProductDialog.vue @@ -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 }, ); diff --git a/src/views/system/Department/product/index.vue b/src/views/system/Department/product/index.vue index 3f492d3f..1873d052 100644 --- a/src/views/system/Department/product/index.vue +++ b/src/views/system/Department/product/index.vue @@ -548,6 +548,7 @@ watch( () => props.parentId, () => { tableData._selectedRowKeys = []; + tableData.selectedRows = []; }, );