Showing
1 changed file
with
2 additions
and
5 deletions
| @@ -142,11 +142,8 @@ | @@ -142,11 +142,8 @@ | ||
| 142 | const rowSelection = { | 142 | const rowSelection = { |
| 143 | onChange: (_, selectedRows: any[]) => { | 143 | onChange: (_, selectedRows: any[]) => { |
| 144 | batchDeleteIds.value = selectedRows.map((it) => it.id) as never as any; | 144 | batchDeleteIds.value = selectedRows.map((it) => it.id) as never as any; |
| 145 | - if (batchDeleteIds.value.length > 0) { | ||
| 146 | - setStatusIsFalse(); | ||
| 147 | - } else { | ||
| 148 | - setStatusIsTrue(); | ||
| 149 | - } | 145 | + if (batchDeleteIds.value.length > 0) setStatusIsFalse(); |
| 146 | + else setStatusIsTrue(); | ||
| 150 | }, | 147 | }, |
| 151 | getCheckboxProps: (record) => ({ | 148 | getCheckboxProps: (record) => ({ |
| 152 | disabled: record.state === 1, | 149 | disabled: record.state === 1, |