|
|
@ -44,6 +44,7 @@ class ConnectProject extends Component{
|
|
|
|
}).then((result)=>{
|
|
|
|
}).then((result)=>{
|
|
|
|
if(result.data.status==0){
|
|
|
|
if(result.data.status==0){
|
|
|
|
this.closeConnectionProject()
|
|
|
|
this.closeConnectionProject()
|
|
|
|
|
|
|
|
this.props.connectSuccess()
|
|
|
|
this.props.showNotification('关联成功')
|
|
|
|
this.props.showNotification('关联成功')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((error)=>{
|
|
|
|
}).catch((error)=>{
|
|
|
@ -122,7 +123,24 @@ class ConnectProject extends Component{
|
|
|
|
footer={null}
|
|
|
|
footer={null}
|
|
|
|
destroyOnClose={true}
|
|
|
|
destroyOnClose={true}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div className="newupload_conbox clearfix">
|
|
|
|
<style>{`
|
|
|
|
|
|
|
|
.connectProject .ant-radio {
|
|
|
|
|
|
|
|
float: left;
|
|
|
|
|
|
|
|
line-height: 18px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.connectProject .ant-radio-wrapper .name {
|
|
|
|
|
|
|
|
max-width: 480px;
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
text-overflow:ellipsis;
|
|
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.connectProject .ant-radio-wrapper>span:last-child {
|
|
|
|
|
|
|
|
line-height: 18px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`}</style>
|
|
|
|
|
|
|
|
<div className="newupload_conbox clearfix connectProject">
|
|
|
|
{
|
|
|
|
{
|
|
|
|
(projects && !!projects.length || this.state.keyword) &&
|
|
|
|
(projects && !!projects.length || this.state.keyword) &&
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -131,7 +149,7 @@ class ConnectProject extends Component{
|
|
|
|
onSearch={this.onSearchValue}
|
|
|
|
onSearch={this.onSearchValue}
|
|
|
|
></Search>
|
|
|
|
></Search>
|
|
|
|
<Radio.Group onChange={this.onChange} value={this.state.radioValue} className={"with100"}>
|
|
|
|
<Radio.Group onChange={this.onChange} value={this.state.radioValue} className={"with100"}>
|
|
|
|
<div className="mt15" style={{"maxHeight":"161px","overflow-y":"auto"}}>
|
|
|
|
<div className="mt15" style={{"maxHeight":"228px","overflow-y":"auto", "overflow-x": 'hidden'}}>
|
|
|
|
<InfiniteScroll
|
|
|
|
<InfiniteScroll
|
|
|
|
threshold={20}
|
|
|
|
threshold={20}
|
|
|
|
initialLoad={false}
|
|
|
|
initialLoad={false}
|
|
|
@ -141,7 +159,9 @@ class ConnectProject extends Component{
|
|
|
|
useWindow={false}
|
|
|
|
useWindow={false}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{ projects.map(item => {
|
|
|
|
{ projects.map(item => {
|
|
|
|
return <p className="mb7" key={item.id}><Radio value={item.id}>{item.name}</Radio></p>
|
|
|
|
return <p className="mb7" key={item.id}><Radio value={item.id}>
|
|
|
|
|
|
|
|
<span title={item.name.length > 12 ? item.name : ''} className="name">{item.name}</span>
|
|
|
|
|
|
|
|
</Radio></p>
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
</InfiniteScroll>
|
|
|
|
</InfiniteScroll>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|