|
@@ -23,7 +23,7 @@ const TelephoneFormItem = ({ value, onChange, validateFn }) => {
|
|
|
const { code = -1, data } = await queryClient({ current: 1, pageSize: 20, search })
|
|
const { code = -1, data } = await queryClient({ current: 1, pageSize: 20, search })
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
const { client = [] } = data
|
|
const { client = [] } = data
|
|
|
- setState({ ...state, list: client })
|
|
|
|
|
|
|
+ setState({ ...state, list: client, visible: !!client?.length })
|
|
|
if (client?.length) {
|
|
if (client?.length) {
|
|
|
validateFn(validateEnum.Warning)
|
|
validateFn(validateEnum.Warning)
|
|
|
} else {
|
|
} else {
|
|
@@ -66,7 +66,7 @@ const TelephoneFormItem = ({ value, onChange, validateFn }) => {
|
|
|
<Popover
|
|
<Popover
|
|
|
zIndex={1003}
|
|
zIndex={1003}
|
|
|
placement="bottom"
|
|
placement="bottom"
|
|
|
- visible={list && list.length && visible}
|
|
|
|
|
|
|
+ visible={visible && list?.length}
|
|
|
onVisibleChange={e => setState({ ...state, visible: e })}
|
|
onVisibleChange={e => setState({ ...state, visible: e })}
|
|
|
title={
|
|
title={
|
|
|
<Alert
|
|
<Alert
|