Commit ffece678f10f0f6805e3f35f2d5dcf728f26771e
1 parent
cba8c9ea
feat: update工单管理
Showing
1 changed file
with
2 additions
and
1 deletions
src/pages/Tickets/index.tsx
@@ -300,6 +300,7 @@ const TicketsPage = () => { | @@ -300,6 +300,7 @@ const TicketsPage = () => { | ||
300 | render: (_text, record) => { | 300 | render: (_text, record) => { |
301 | if (record?.id) { | 301 | if (record?.id) { |
302 | const hasResolvePermission = record?.paths?.includes('RESOLVE'); | 302 | const hasResolvePermission = record?.paths?.includes('RESOLVE'); |
303 | + const hasDeletePermission = record?.paths?.includes('DELETE'); | ||
303 | return ( | 304 | return ( |
304 | <> | 305 | <> |
305 | {hasResolvePermission && ( | 306 | {hasResolvePermission && ( |
@@ -312,7 +313,7 @@ const TicketsPage = () => { | @@ -312,7 +313,7 @@ const TicketsPage = () => { | ||
312 | <ReadModal id={record.id} toReload={reload}></ReadModal> | 313 | <ReadModal id={record.id} toReload={reload}></ReadModal> |
313 | | 314 | |
314 | </> | 315 | </> |
315 | - {hasResolvePermission && ( | 316 | + {hasDeletePermission && ( |
316 | <> | 317 | <> |
317 | <DeleteButton | 318 | <DeleteButton |
318 | ids={[record.id]} | 319 | ids={[record.id]} |