|
|
@ -118,6 +118,7 @@ class Collaborators extends Component {
|
|
|
|
if (type === "cooperation") {
|
|
|
|
if (type === "cooperation") {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
Collaboratorsvisibleadmin: true,
|
|
|
|
Collaboratorsvisibleadmin: true,
|
|
|
|
|
|
|
|
Collaboratorsvisible: false,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else if ("admin") {
|
|
|
|
} else if ("admin") {
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
@ -132,6 +133,7 @@ class Collaborators extends Component {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
Collaboratorsvisible: true,
|
|
|
|
Collaboratorsvisible: true,
|
|
|
|
|
|
|
|
Collaboratorsvisibleadmin: false,
|
|
|
|
Collaboratorslist: response.data
|
|
|
|
Collaboratorslist: response.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -517,17 +519,16 @@ class Collaborators extends Component {
|
|
|
|
closable={false}
|
|
|
|
closable={false}
|
|
|
|
footer={null}
|
|
|
|
footer={null}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="mb15 font-14 edu-txt-center color-orange-tip">
|
|
|
|
<div className="mb15 font-14 edu-txt-center color-orange-tip">
|
|
|
|
选择的成员将会成为新的管理员<br/> 您将不再拥有管理员的权限,但您仍是合作团队的一员
|
|
|
|
选择的成员将会成为新的管理员<br/> 您将不再拥有管理员的权限,但您仍是合作团队的一员
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="clearfix mb15 edu-bg-light-blue edu-max-h200">
|
|
|
|
<div className="clearfix mb15 edu-bg-light-blue edu-max-h200">
|
|
|
|
<ul className="">
|
|
|
|
<ul className="">
|
|
|
|
<li className="clearfix">
|
|
|
|
<li className={Collaboratorslist&&Collaboratorslist.length===0?"centertop20 clearfix":"clearfix"}>
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
请先将新的管理员通过 <a className={"color-blue"} onClick={() => this.showCollaboratorsvisible("cooperation")}>"添加合作者"</a> 加入合作者列表
|
|
|
|
|
|
|
|
</span>
|
|
|
|
<RadioGroup onChange={this.onChange} value={this.state.value}>
|
|
|
|
<RadioGroup onChange={this.onChange} value={this.state.value}>
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Collaboratorslist.length === 0 ? "" : Collaboratorslist.map((item, key) => {
|
|
|
|
Collaboratorslist.length === 0 ? "" : Collaboratorslist.map((item, key) => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
@ -536,7 +537,6 @@ class Collaborators extends Component {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</RadioGroup>
|
|
|
|
</RadioGroup>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
@ -642,7 +642,7 @@ class Collaborators extends Component {
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
`
|
|
|
|
`
|
|
|
|
.collaborators-item-middles{width: 100% !important; margin-left: 20px;}
|
|
|
|
.collaborators-item-middles{width: 100% !important;}
|
|
|
|
.ysltithead{
|
|
|
|
.ysltithead{
|
|
|
|
padding-bottom: 20px;
|
|
|
|
padding-bottom: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -665,7 +665,7 @@ class Collaborators extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="fl collaborators-item-middles">
|
|
|
|
<div className="fl collaborators-item-middles">
|
|
|
|
<p className="mb10 sortinxdirection space-between hezuozhe634">
|
|
|
|
<p className="mb10 sortinxdirection space-between hezuozhe655">
|
|
|
|
<a href={item.user.user_url} target="_blank" className="yslusername">{item.user.name}</a>
|
|
|
|
<a href={item.user.user_url} target="_blank" className="yslusername">{item.user.name}</a>
|
|
|
|
{item.user.shixun_manager === true ? "" : <span>
|
|
|
|
{item.user.shixun_manager === true ? "" : <span>
|
|
|
|
<i className={this.state.hovertype===true&&key===this.state.hoverkey?"fontnewreds iconfont icon-shanchu_Hover":"fontneweees iconfont icon-shanchu_moren"}
|
|
|
|
<i className={this.state.hovertype===true&&key===this.state.hoverkey?"fontnewreds iconfont icon-shanchu_Hover":"fontneweees iconfont icon-shanchu_moren"}
|
|
|
@ -681,10 +681,10 @@ class Collaborators extends Component {
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<p className="color-grey-B2 font-12 mb10 sortinxdirection mt14">
|
|
|
|
<p className="color-grey-B2 font-12 mb10 sortinxdirection mt14">
|
|
|
|
<p className="hezuozhe630 sortinxdirection space-between">
|
|
|
|
<p className="hezuozhe655 sortinxdirection space-between">
|
|
|
|
{/*<p className={item.user.identity===null||item.user.identity===undefined||item.user.identity===""?" font-16 ":"mr20 font-16 w70"}>{item.user.identity}</p>*/}
|
|
|
|
{/*<p className={item.user.identity===null||item.user.identity===undefined||item.user.identity===""?" font-16 ":"mr20 font-16 w70"}>{item.user.identity}</p>*/}
|
|
|
|
<p
|
|
|
|
<p
|
|
|
|
className={item.user.school_name === null || item.user.school_name === "" ? "" : " font-16 color888hezuo maxfont450"}>{item.user.school_name}</p>
|
|
|
|
className={item.user.school_name === null || item.user.school_name === "" ? "" : " font-12 color888hezuo maxfont450"}>{item.user.school_name}</p>
|
|
|
|
<p className="fabushixunwidth color888hezuo">发布实训项目 <span
|
|
|
|
<p className="fabushixunwidth color888hezuo">发布实训项目 <span
|
|
|
|
className="ml2">{item.user.user_shixuns_count}</span></p>
|
|
|
|
className="ml2">{item.user.user_shixuns_count}</span></p>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|