fix: 工单执行按钮仅在审核通过(approved)状态显示,审核中不再显示执行按钮

This commit is contained in:
logan committed 2026-06-03 00:38:12 +08:00
1 parent bbf9522710
commit 70da8a8a8b
1 file changed
+2 -2
+2 -2
View File
@@ -475,7 +475,7 @@ export default function TicketsPage() {
</button> </button>
)} )}
{canExecute && ticket.is_executor && (ticket.status === 'approved' || ticket.status === 'reviewing') && ( {canExecute && ticket.is_executor && ticket.status === 'approved' && (
<button <button
onClick={async () => { onClick={async () => {
try { try {
@@ -660,7 +660,7 @@ function TicketDetailDialog({ ticket: initialTicket, onClose, canApprove, canExe
</button> </button>
</> </>
)} )}
{canExecute && ticket.is_executor && (ticket.status === 'approved' || ticket.status === 'reviewing') && ( {canExecute && ticket.is_executor && ticket.status === 'approved' && (
<button <button
onClick={handleExecute} onClick={handleExecute}
disabled={loading} disabled={loading}