|
@@ -5,7 +5,6 @@ import { Button, Checkbox, message, Modal, Table } from 'antd'
|
|
|
import { useState, useMemo } from 'react'
|
|
import { useState, useMemo } from 'react'
|
|
|
import { useDispatch } from 'umi'
|
|
import { useDispatch } from 'umi'
|
|
|
import { VList } from 'virtuallist-antd'
|
|
import { VList } from 'virtuallist-antd'
|
|
|
-import styles from './index.less'
|
|
|
|
|
|
|
|
|
|
const SyncClient = ({ customer, client, actionPayload }) => {
|
|
const SyncClient = ({ customer, client, actionPayload }) => {
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
@@ -97,8 +96,7 @@ const SyncClient = ({ customer, client, actionPayload }) => {
|
|
|
ghost
|
|
ghost
|
|
|
type="primary"
|
|
type="primary"
|
|
|
loading={loading}
|
|
loading={loading}
|
|
|
- onClick={() => setState({ ...state, visible: true, loading: true })}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ onClick={() => setState({ ...state, visible: true, loading: true })}>
|
|
|
<Copy theme="two-tone" fill={['#333', '#886ab5']} />
|
|
<Copy theme="two-tone" fill={['#333', '#886ab5']} />
|
|
|
<span className="ml-1">同步地址信息</span>
|
|
<span className="ml-1">同步地址信息</span>
|
|
|
</Button>
|
|
</Button>
|
|
@@ -108,8 +106,7 @@ const SyncClient = ({ customer, client, actionPayload }) => {
|
|
|
// getContainer={false}
|
|
// getContainer={false}
|
|
|
visible={visible}
|
|
visible={visible}
|
|
|
onCancel={() => setState({ ...state, visible: false, loading: false })}
|
|
onCancel={() => setState({ ...state, visible: false, loading: false })}
|
|
|
- onOk={handleOnConfirm}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ onOk={handleOnConfirm}>
|
|
|
<div className="rounded-3 p-4 mb-2 pt-0">
|
|
<div className="rounded-3 p-4 mb-2 pt-0">
|
|
|
<Checkbox.Group defaultValue={checkValues} onChange={e => setState({ ...state, checkValues: e })}>
|
|
<Checkbox.Group defaultValue={checkValues} onChange={e => setState({ ...state, checkValues: e })}>
|
|
|
<div className="flex flex-nowrap">
|
|
<div className="flex flex-nowrap">
|
|
@@ -144,20 +141,18 @@ const SyncClient = ({ customer, client, actionPayload }) => {
|
|
|
</div>
|
|
</div>
|
|
|
</Checkbox.Group>
|
|
</Checkbox.Group>
|
|
|
</div>
|
|
</div>
|
|
|
- <div className={styles.tableSyncClient}>
|
|
|
|
|
- <Table
|
|
|
|
|
- rowKey="id"
|
|
|
|
|
- size="small"
|
|
|
|
|
- columns={columns}
|
|
|
|
|
- dataSource={client}
|
|
|
|
|
- pagination={false}
|
|
|
|
|
- scroll={{ y: 400 }}
|
|
|
|
|
- components={vList}
|
|
|
|
|
- rowSelection={{
|
|
|
|
|
- onChange: selectedRowKeys => setState({ ...state, selectedKeys: selectedRowKeys })
|
|
|
|
|
- }}
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <Table
|
|
|
|
|
+ rowKey="id"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ columns={columns}
|
|
|
|
|
+ dataSource={client}
|
|
|
|
|
+ pagination={false}
|
|
|
|
|
+ scroll={{ y: 400 }}
|
|
|
|
|
+ components={vList}
|
|
|
|
|
+ rowSelection={{
|
|
|
|
|
+ onChange: selectedRowKeys => setState({ ...state, selectedKeys: selectedRowKeys })
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
</Modal>
|
|
</Modal>
|
|
|
</>
|
|
</>
|
|
|
)
|
|
)
|