소스 검색

update: 物料绑定管理删除增加title

xyh 2 년 전
부모
커밋
287ea8ea9d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/app/src/pages/material-bind/table/hooks.tsx

+ 2 - 2
packages/app/src/pages/material-bind/table/hooks.tsx

@@ -63,7 +63,7 @@ export function useHandle(refetch: () => void) {
       key: 'id',
       width: DOUBLE_BTN_WIDTH,
       fixed: 'right',
-      render(_, {id}) {
+      render(_, {id, wllbCode}) {
         return (
           <>
             <Button
@@ -77,7 +77,7 @@ export function useHandle(refetch: () => void) {
             <Button
               type='text'
               danger
-              onClick={onDelete(id)}
+              onClick={onDelete(id, wllbCode)}
               loading={pendingId === id}
             >
               删除