Commit fcb83e73836cd915e597859f71bd23cccff1e5a7
1 parent
ba71ea2b
初始化
Showing
3 changed files
with
6 additions
and
10 deletions
src/pages/Order/components/OrderDrawer.tsx
1 | // import { PlusOutlined } from '@ant-design/icons'; | 1 | // import { PlusOutlined } from '@ant-design/icons'; |
2 | import { useRef,useState,Key } from 'react'; | 2 | import { useRef,useState,Key } from 'react'; |
3 | import { postErpOrderAdd } from '@/services'; | 3 | import { postErpOrderAdd } from '@/services'; |
4 | -import { DrawerForm, ProFormText, ProFormList, ProForm, ProFormGroup, ProCard, FormListActionType } from '@ant-design/pro-components'; | 4 | +import { DrawerForm, ProFormText, ProFormList, ProFormGroup, ProCard, FormListActionType } from '@ant-design/pro-components'; |
5 | import { Form, message } from 'antd'; | 5 | import { Form, message } from 'antd'; |
6 | 6 | ||
7 | const waitTime = (time: number = 100) => { | 7 | const waitTime = (time: number = 100) => { |
src/pages/Order/index.less
src/pages/Order/index.tsx
@@ -252,7 +252,6 @@ const TableList: React.FC<unknown> = () => { | @@ -252,7 +252,6 @@ const TableList: React.FC<unknown> = () => { | ||
252 | title: '操作', | 252 | title: '操作', |
253 | dataIndex: 'operation', | 253 | dataIndex: 'operation', |
254 | key: 'operation', | 254 | key: 'operation', |
255 | - valueType: 'option', | ||
256 | align: 'center', | 255 | align: 'center', |
257 | 256 | ||
258 | render: () => <Flex> | 257 | render: () => <Flex> |
@@ -264,11 +263,10 @@ const TableList: React.FC<unknown> = () => { | @@ -264,11 +263,10 @@ const TableList: React.FC<unknown> = () => { | ||
264 | }, | 263 | }, |
265 | { | 264 | { |
266 | title: '备注', | 265 | title: '备注', |
267 | - dataIndex: 'operation', | ||
268 | - key: 'operation', | ||
269 | - valueType: 'option', | 266 | + dataIndex: 'notes', |
267 | + key: 'notes', | ||
270 | align: 'center', | 268 | align: 'center', |
271 | - render: () => [<Button type="dashed" size='small'>详情</Button>], | 269 | + render: () =>[<Button type="dashed" size='small'>详情</Button>], |
272 | }, | 270 | }, |
273 | ]} | 271 | ]} |
274 | rowSelection={{ | 272 | rowSelection={{ |
@@ -287,9 +285,6 @@ const TableList: React.FC<unknown> = () => { | @@ -287,9 +285,6 @@ const TableList: React.FC<unknown> = () => { | ||
287 | ); | 285 | ); |
288 | }; | 286 | }; |
289 | 287 | ||
290 | - const allItemKeys = data.map(record => record.id); | ||
291 | - const checkAll = allItemKeys.length === selectedItems.length; | ||
292 | - const indeterminate = selectedItems.length > 0 && selectedItems.length < allItemKeys.length; | ||
293 | 288 | ||
294 | return ( | 289 | return ( |
295 | <PageContainer | 290 | <PageContainer |