优化管理员审核

This commit is contained in:
2026-04-24 10:44:46 +08:00
parent f7d0ee81f8
commit d69412a0f7
2 changed files with 35 additions and 24 deletions

View File

@@ -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'),
},
]