|
@@ -349,33 +349,7 @@
|
|
|
}
|
|
|
|
|
|
function createActions(record: EditRecordRow): ActionItem[] {
|
|
|
- if (record.ischeck === 0) {
|
|
|
- // 如果不是正式会员添加审核操作
|
|
|
- return [
|
|
|
- {
|
|
|
- label: '审核',
|
|
|
- icon: 'ant-design:check-circle-outlined',
|
|
|
- color: 'success',
|
|
|
- onClick: handleCheck.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- label: '编辑',
|
|
|
- icon: 'ant-design:edit-outlined',
|
|
|
- color: 'warning',
|
|
|
- onClick: handleEdit.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- label: '删除',
|
|
|
- color: 'error',
|
|
|
- icon: 'ic:outline-delete-outline',
|
|
|
- popConfirm: {
|
|
|
- title: '是否确认删除',
|
|
|
- confirm: handleDelete.bind(null, record),
|
|
|
- },
|
|
|
- },
|
|
|
- ];
|
|
|
- }
|
|
|
- return [
|
|
|
+ const actionArr: ActionItem[] = [
|
|
|
{
|
|
|
label: '编辑',
|
|
|
icon: 'ant-design:edit-outlined',
|
|
@@ -392,6 +366,16 @@
|
|
|
},
|
|
|
},
|
|
|
];
|
|
|
+ if (record.ischeck === 0) {
|
|
|
+ // 如果不是正式会员添加审核操作
|
|
|
+ actionArr.unshift({
|
|
|
+ label: '审核',
|
|
|
+ icon: 'ant-design:check-circle-outlined',
|
|
|
+ color: 'success',
|
|
|
+ onClick: handleCheck.bind(null, record),
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return actionArr;
|
|
|
}
|
|
|
return {
|
|
|
popupData,
|