Commit ffece678f10f0f6805e3f35f2d5dcf728f26771e

Authored by PurelzMgnead
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 300 render: (_text, record) => {
301 301 if (record?.id) {
302 302 const hasResolvePermission = record?.paths?.includes('RESOLVE');
  303 + const hasDeletePermission = record?.paths?.includes('DELETE');
303 304 return (
304 305 <>
305 306 {hasResolvePermission && (
... ... @@ -312,7 +313,7 @@ const TicketsPage = () =&gt; {
312 313 <ReadModal id={record.id} toReload={reload}></ReadModal>
313 314 &nbsp;
314 315 </>
315   - {hasResolvePermission && (
  316 + {hasDeletePermission && (
316 317 <>
317 318 <DeleteButton
318 319 ids={[record.id]}
... ...