Browse Source

update: 半成品报工删除增加title

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

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

@@ -57,7 +57,7 @@ export function useHandle(refetch: () => void) {
 
       width: isSuper ? DOUBLE_BTN_WIDTH : SMALL_TABLE_WIDTH,
       fixed: 'right',
-      render(_, {id, type}) {
+      render(_, {id, type, noticeCode}) {
         return (
           <>
             <Button
@@ -73,7 +73,7 @@ export function useHandle(refetch: () => void) {
                 type='text'
                 danger
                 loading={deleteId === id}
-                onClick={onDelete(id)}
+                onClick={onDelete(id, noticeCode)}
               >
                 删除
               </Button>