Commit 9b1dc85bdb04bbb7688f4c1530b895fe05008fbc

Authored by fengtao
1 parent 1be065c0

fix:DEFECT-635 报表配置和定时任务启用了的不允许批量删除

... ... @@ -130,6 +130,14 @@
130 130 handleSuccess,
131 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 142 nextTick(() => {
135 143 setProps(selectionOptions);
... ...
... ... @@ -133,6 +133,14 @@
133 133 handleSuccess,
134 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 145 nextTick(() => {
138 146 setProps(selectionOptions);
... ...