|
|
@@ -36,6 +36,8 @@ const ChangeCompanyInput = props => {
|
|
|
title = '客户'
|
|
|
},
|
|
|
defaultValue,
|
|
|
+ showRemoveIcon = true,
|
|
|
+ showConnectIcon = true,
|
|
|
editable = true
|
|
|
} = props
|
|
|
const refreshClient = () => {
|
|
|
@@ -60,7 +62,7 @@ const ChangeCompanyInput = props => {
|
|
|
})
|
|
|
toggleModal(true)
|
|
|
}
|
|
|
- const notValueRender = (
|
|
|
+ const notValueRender = showConnectIcon && (
|
|
|
<div onClick={handleConnectCustomer} className={styles.notCompanyContent}>
|
|
|
<LinkOne size="14" />
|
|
|
<span className="ml-5px">关联单位</span>
|
|
|
@@ -107,11 +109,13 @@ const ChangeCompanyInput = props => {
|
|
|
</div>
|
|
|
{editable && (
|
|
|
<div className={styles.iconContent}>
|
|
|
- <Tooltip placement="right" title="移除单位">
|
|
|
- <span className={styles.unlinkIcon} onClick={removeCustomer}>
|
|
|
- <LinkInterrupt />
|
|
|
- </span>
|
|
|
- </Tooltip>
|
|
|
+ {showRemoveIcon ? (
|
|
|
+ <Tooltip placement="right" title="移除单位">
|
|
|
+ <span className={styles.unlinkIcon} onClick={removeCustomer}>
|
|
|
+ <LinkInterrupt />
|
|
|
+ </span>
|
|
|
+ </Tooltip>
|
|
|
+ ) : null}
|
|
|
<Tooltip placement="right" title="更换单位" onClick={handleConnectCustomer}>
|
|
|
<span className={styles.switchIcon}>
|
|
|
<Switch />
|