|
|
@@ -24,7 +24,7 @@ const SyncClient = ({ customer, client }) => {
|
|
|
// eslint-disable-next-line consistent-return
|
|
|
const handleOnConfirm = async () => {
|
|
|
const { checkValues, selectedKeys } = state
|
|
|
- if (checkValues?.length < 2) {
|
|
|
+ if (!checkValues?.length) {
|
|
|
return message.error('同步选项至少选中一个')
|
|
|
}
|
|
|
if (!selectedKeys?.length) {
|
|
|
@@ -89,7 +89,8 @@ const SyncClient = ({ customer, client }) => {
|
|
|
size="small"
|
|
|
ghost
|
|
|
type="primary"
|
|
|
- onClick={() => setState({ ...state, visible: true })}>
|
|
|
+ onClick={() => setState({ ...state, visible: true })}
|
|
|
+ >
|
|
|
<Copy theme="two-tone" fill={['#333', '#886ab5']} />
|
|
|
<span className="ml-1">同步地址信息</span>
|
|
|
{/* <div className="flex items-center justify-center">
|
|
|
@@ -102,11 +103,13 @@ const SyncClient = ({ customer, client }) => {
|
|
|
getContainer={false}
|
|
|
visible={visible}
|
|
|
onCancel={() => setState({ ...state, visible: false })}
|
|
|
- onOk={handleOnConfirm}>
|
|
|
+ onOk={handleOnConfirm}
|
|
|
+ >
|
|
|
<div className="rounded-3 p-4 mb-2 pt-0">
|
|
|
<Checkbox.Group
|
|
|
defaultValue={checkValues}
|
|
|
- onChange={e => setState({ ...state, checkValues: e })}>
|
|
|
+ onChange={e => setState({ ...state, checkValues: e })}
|
|
|
+ >
|
|
|
<div className="flex flex-nowrap">
|
|
|
<Checkbox value="district">
|
|
|
<div className="w-100px text-left">地区</div>
|