Commit 9b1dc85bdb04bbb7688f4c1530b895fe05008fbc
1 parent
1be065c0
fix:DEFECT-635 报表配置和定时任务启用了的不允许批量删除
Showing
2 changed files
with
16 additions
and
0 deletions
@@ -130,6 +130,14 @@ | @@ -130,6 +130,14 @@ | ||
130 | handleSuccess, | 130 | handleSuccess, |
131 | setProps | 131 | setProps |
132 | ); | 132 | ); |
133 | + selectionOptions.rowSelection.getCheckboxProps = (record: Recordable) => { | ||
134 | + // Demo:status为1的选择框禁用 | ||
135 | + if (record.status === 1) { | ||
136 | + return { disabled: true }; | ||
137 | + } else { | ||
138 | + return { disabled: false }; | ||
139 | + } | ||
140 | + }; | ||
133 | 141 | ||
134 | nextTick(() => { | 142 | nextTick(() => { |
135 | setProps(selectionOptions); | 143 | setProps(selectionOptions); |
@@ -133,6 +133,14 @@ | @@ -133,6 +133,14 @@ | ||
133 | handleSuccess, | 133 | handleSuccess, |
134 | setProps | 134 | setProps |
135 | ); | 135 | ); |
136 | + selectionOptions.rowSelection.getCheckboxProps = (record: Recordable) => { | ||
137 | + // Demo:status为1的选择框禁用 | ||
138 | + if (record.status === 1) { | ||
139 | + return { disabled: true }; | ||
140 | + } else { | ||
141 | + return { disabled: false }; | ||
142 | + } | ||
143 | + }; | ||
136 | 144 | ||
137 | nextTick(() => { | 145 | nextTick(() => { |
138 | setProps(selectionOptions); | 146 | setProps(selectionOptions); |