Commit fcb83e73836cd915e597859f71bd23cccff1e5a7

Authored by zhongnanhuang
1 parent ba71ea2b

初始化

src/pages/Order/components/OrderDrawer.tsx
1 1 // import { PlusOutlined } from '@ant-design/icons';
2 2 import { useRef,useState,Key } from 'react';
3 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 5 import { Form, message } from 'antd';
6 6  
7 7 const waitTime = (time: number = 100) => {
... ...
src/pages/Order/index.less
1 1 // 嵌套表格去掉左方多余部分
2 2 .ant-table .ant-table-middle{
3 3 margin-inline: 0 !important;
4   -}
5 4 \ No newline at end of file
  5 +}
  6 +
... ...
src/pages/Order/index.tsx
... ... @@ -252,7 +252,6 @@ const TableList: React.FC<unknown> = () => {
252 252 title: '操作',
253 253 dataIndex: 'operation',
254 254 key: 'operation',
255   - valueType: 'option',
256 255 align: 'center',
257 256  
258 257 render: () => <Flex>
... ... @@ -264,11 +263,10 @@ const TableList: React.FC&lt;unknown&gt; = () =&gt; {
264 263 },
265 264 {
266 265 title: '备注',
267   - dataIndex: 'operation',
268   - key: 'operation',
269   - valueType: 'option',
  266 + dataIndex: 'notes',
  267 + key: 'notes',
270 268 align: 'center',
271   - render: () => [<Button type="dashed" size='small'>详情</Button>],
  269 + render: () =>[<Button type="dashed" size='small'>详情</Button>],
272 270 },
273 271 ]}
274 272 rowSelection={{
... ... @@ -287,9 +285,6 @@ const TableList: React.FC&lt;unknown&gt; = () =&gt; {
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 289 return (
295 290 <PageContainer
... ...