|
@@ -8,7 +8,7 @@ import { Table } from '@arco-design/web-react'
|
|
|
import '@arco-design/web-react/dist/css/arco.css'
|
|
import '@arco-design/web-react/dist/css/arco.css'
|
|
|
import styles from './index.less'
|
|
import styles from './index.less'
|
|
|
|
|
|
|
|
-const SyncClient = ({ customer, client }) => {
|
|
|
|
|
|
|
+const SyncClient = ({ customer, client, actionPayload }) => {
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
|
visible: false,
|
|
visible: false,
|
|
@@ -20,11 +20,10 @@ const SyncClient = ({ customer, client }) => {
|
|
|
const refreshCompany = () => {
|
|
const refreshCompany = () => {
|
|
|
dispatch({
|
|
dispatch({
|
|
|
type: 'refresh/commitAction',
|
|
type: 'refresh/commitAction',
|
|
|
- payload: 'company'
|
|
|
|
|
|
|
+ payload: actionPayload
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // eslint-disable-next-line consistent-return
|
|
|
|
|
const handleOnConfirm = async () => {
|
|
const handleOnConfirm = async () => {
|
|
|
const { checkValues, selectedKeys } = state
|
|
const { checkValues, selectedKeys } = state
|
|
|
if (!checkValues?.length) {
|
|
if (!checkValues?.length) {
|
|
@@ -80,7 +79,6 @@ const SyncClient = ({ customer, client }) => {
|
|
|
{
|
|
{
|
|
|
dataIndex: 'stay',
|
|
dataIndex: 'stay',
|
|
|
title: '参考住宿',
|
|
title: '参考住宿',
|
|
|
- // width: '15%',
|
|
|
|
|
ellipsis: true
|
|
ellipsis: true
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
@@ -97,8 +95,6 @@ const SyncClient = ({ customer, client }) => {
|
|
|
>
|
|
>
|
|
|
<Copy theme="two-tone" fill={['#333', '#886ab5']} />
|
|
<Copy theme="two-tone" fill={['#333', '#886ab5']} />
|
|
|
<span className="ml-1">同步地址信息</span>
|
|
<span className="ml-1">同步地址信息</span>
|
|
|
- {/* <div className="flex items-center justify-center">
|
|
|
|
|
- </div> */}
|
|
|
|
|
</Button>
|
|
</Button>
|
|
|
<Modal
|
|
<Modal
|
|
|
width="70%"
|
|
width="70%"
|
|
@@ -160,18 +156,6 @@ const SyncClient = ({ customer, client }) => {
|
|
|
}}
|
|
}}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
- {/* <Table
|
|
|
|
|
- rowKey="id"
|
|
|
|
|
- size="small"
|
|
|
|
|
- columns={columns}
|
|
|
|
|
- dataSource={client}
|
|
|
|
|
- bordered
|
|
|
|
|
- scroll={{ y: 400 }}
|
|
|
|
|
- pagination={false}
|
|
|
|
|
- rowSelection={{
|
|
|
|
|
- onChange: selectedRowKeys => setState({ ...state, selectedKeys: selectedRowKeys })
|
|
|
|
|
- }}
|
|
|
|
|
- /> */}
|
|
|
|
|
</Modal>
|
|
</Modal>
|
|
|
</>
|
|
</>
|
|
|
)
|
|
)
|