优化管理员审核
This commit is contained in:
@@ -101,7 +101,7 @@ const optButtons: OptButton[] = [
|
||||
text: '',
|
||||
type: 'success',
|
||||
icon: 'el-icon-Check',
|
||||
display: (row: TableRow) => Number(row.status) === 0,
|
||||
display: (row: TableRow) => Number(row.status) === 0 && Number((row as anyObj).can_review ?? 0) === 1,
|
||||
click: (row: TableRow) => void onReview(row as anyObj, 'approve'),
|
||||
},
|
||||
{
|
||||
@@ -111,7 +111,7 @@ const optButtons: OptButton[] = [
|
||||
text: '',
|
||||
type: 'danger',
|
||||
icon: 'el-icon-Close',
|
||||
display: (row: TableRow) => Number(row.status) === 0,
|
||||
display: (row: TableRow) => Number(row.status) === 0 && Number((row as anyObj).can_review ?? 0) === 1,
|
||||
click: (row: TableRow) => void onReview(row as anyObj, 'reject'),
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user