fix: 工单执行按钮仅在审核通过(approved)状态显示,审核中不再显示执行按钮
This commit is contained in:
1 parent
bbf9522710
commit
70da8a8a8b
1 file changed
+2
-2
@@ -475,7 +475,7 @@ export default function TicketsPage() {
|
||||
</button>
|
||||
)}
|
||||
|
||||
{canExecute && ticket.is_executor && (ticket.status === 'approved' || ticket.status === 'reviewing') && (
|
||||
{canExecute && ticket.is_executor && ticket.status === 'approved' && (
|
||||
<button
|
||||
onClick={async () => {
|
||||
try {
|
||||
@@ -660,7 +660,7 @@ function TicketDetailDialog({ ticket: initialTicket, onClose, canApprove, canExe
|
||||
</button>
|
||||
</>
|
||||
)}
|
||||
{canExecute && ticket.is_executor && (ticket.status === 'approved' || ticket.status === 'reviewing') && (
|
||||
{canExecute && ticket.is_executor && ticket.status === 'approved' && (
|
||||
<button
|
||||
onClick={handleExecute}
|
||||
disabled={loading}
|
||||
|
||||
Reference in new issue
Block a user