list: (text, row) => {
let arr = [];
if (row.status === SHSTATUS) {
arr.push({
name: '审核',
onClick: () => {
this.handleRever(row);
},
});
}
if (row.status === SHNOSTATUS || row.status === CANCELSTATUS) {
arr.push({
name: '删除',
isPopConfirm: true,
onClick: () => {
this.handleDelete([row.lecturerId], false);
},
});
}
if (row.status === SHNOSTATUS) {
arr.push({
name: '修改',
onClick: () => {
this.handleUpdate(row);
},
});
}
arr.push({
name: '查看',
onClick: () => {
this.handleGet(row);
},
});
return arr;
},
React开发(279):ant design 改变按钮状态判断方式
2021/12/4 0:16:30