|
@@ -17,8 +17,7 @@ const Detail = props => {
|
|
|
visible,
|
|
visible,
|
|
|
dataId = '',
|
|
dataId = '',
|
|
|
projectType,
|
|
projectType,
|
|
|
- filterTag = true,
|
|
|
|
|
- ClientShow = false
|
|
|
|
|
|
|
+ filterTag = true
|
|
|
} = props
|
|
} = props
|
|
|
const shouldUpdate = refresh[updateKey] || false
|
|
const shouldUpdate = refresh[updateKey] || false
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
@@ -59,28 +58,30 @@ const Detail = props => {
|
|
|
md={{ span: 24 }}
|
|
md={{ span: 24 }}
|
|
|
lg={{ span: 9 }}
|
|
lg={{ span: 9 }}
|
|
|
xl={{ span: 9 }}
|
|
xl={{ span: 9 }}
|
|
|
- className="sheet-box-left">
|
|
|
|
|
|
|
+ className="sheet-box-left"
|
|
|
|
|
+ >
|
|
|
<div className="sheet-left-panel pr-4">
|
|
<div className="sheet-left-panel pr-4">
|
|
|
<Form cloudUser={state.cloudUser} updateKey={updateKey} projectType={projectType} />
|
|
<Form cloudUser={state.cloudUser} updateKey={updateKey} projectType={projectType} />
|
|
|
- {ClientShow ? (
|
|
|
|
|
- <div className="mt-4">
|
|
|
|
|
- <ClientDetail client={state.client} filterTag={filterTag} />
|
|
|
|
|
- </div>
|
|
|
|
|
- ) : null}
|
|
|
|
|
- <div className="text-center mt-6">
|
|
|
|
|
- <Button type="primary" ghost size="small">
|
|
|
|
|
- <LinkOne size="14" />
|
|
|
|
|
- <span className="ml-5px">关联CLD客户</span>
|
|
|
|
|
- </Button>
|
|
|
|
|
- </div>
|
|
|
|
|
- {ClientShow ? (
|
|
|
|
|
|
|
+ {state.cloudUser.cld?.clientId ? (
|
|
|
|
|
+ <>
|
|
|
|
|
+ <div className="mt-4">
|
|
|
|
|
+ <ClientDetail client={state.client} filterTag={filterTag} />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="text-center mt-6">
|
|
|
|
|
+ <Button type="primary" ghost size="small">
|
|
|
|
|
+ <LinkInterrupt size="14" />
|
|
|
|
|
+ <span className="ml-5px">移除CLD客户</span>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </>
|
|
|
|
|
+ ) : (
|
|
|
<div className="text-center mt-6">
|
|
<div className="text-center mt-6">
|
|
|
<Button type="primary" ghost size="small">
|
|
<Button type="primary" ghost size="small">
|
|
|
- <LinkInterrupt size="14" />
|
|
|
|
|
- <span className="ml-5px">移除CLD客户</span>
|
|
|
|
|
|
|
+ <LinkOne size="14" />
|
|
|
|
|
+ <span className="ml-5px">关联CLD客户</span>
|
|
|
</Button>
|
|
</Button>
|
|
|
</div>
|
|
</div>
|
|
|
- ) : null}
|
|
|
|
|
|
|
+ )}
|
|
|
</div>
|
|
</div>
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col
|
|
<Col
|
|
@@ -89,7 +90,8 @@ const Detail = props => {
|
|
|
lg={{ span: 15 }}
|
|
lg={{ span: 15 }}
|
|
|
xl={{ span: 15 }}
|
|
xl={{ span: 15 }}
|
|
|
flex={{ flexDirection: 'column' }}
|
|
flex={{ flexDirection: 'column' }}
|
|
|
- className="sheet-box-right">
|
|
|
|
|
|
|
+ className="sheet-box-right"
|
|
|
|
|
+ >
|
|
|
<TabList
|
|
<TabList
|
|
|
compilationList={state.compilationList}
|
|
compilationList={state.compilationList}
|
|
|
cloudUser={state.cloudUser}
|
|
cloudUser={state.cloudUser}
|