Browse Source

update: 质检单列表删除增加title

xyh 2 years ago
parent
commit
7c8e549acb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/pages/quality/table/hooks.tsx

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

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