Browse Source

update: 增加产成品报工单删除title

xyh 2 years ago
parent
commit
0f84a01fef
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/pages/product-report/table/hooks.tsx

+ 2 - 2
packages/app/src/pages/product-report/table/hooks.tsx

@@ -53,14 +53,14 @@ export function useColumns(refetch: () => void) {
       key: 'id',
       fixed: 'right',
       width: SMALL_TABLE_WIDTH,
-      render(_, {id}) {
+      render(_, {id, noticeCode}) {
         return (
           <>
             <Button
               type='text'
               danger
               loading={pendingId === id}
-              onClick={onDelete(id)}
+              onClick={onDelete(id, noticeCode)}
             >
               删除
             </Button>