Commit b9d8e0005d8bd8bba6302f9b1756b585e9564ec1

Authored by 曾国涛
2 parents 2ebc03ac ffece678
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 = () =&gt; { @@ -312,7 +313,7 @@ const TicketsPage = () =&gt; {
312 <ReadModal id={record.id} toReload={reload}></ReadModal> 313 <ReadModal id={record.id} toReload={reload}></ReadModal>
313 &nbsp; 314 &nbsp;
314 </> 315 </>
315 - {hasResolvePermission && ( 316 + {hasDeletePermission && (
316 <> 317 <>
317 <DeleteButton 318 <DeleteButton
318 ids={[record.id]} 319 ids={[record.id]}