forked from Gitlink/forgeplus-react
后端新增字段-非成员不能修改编辑易修
This commit is contained in:
parent
4ffb2acc9c
commit
0e949110fd
|
@ -49,7 +49,7 @@ class OrderItem extends Component {
|
||||||
return (
|
return (
|
||||||
item &&
|
item &&
|
||||||
<div className="issueItem">
|
<div className="issueItem">
|
||||||
{(current_user && current_user.login) && user_admin_or_member && checkbox}
|
{(current_user && current_user.login) && checkbox}
|
||||||
<div className="flex-1">
|
<div className="flex-1">
|
||||||
<p className="mb10 df" style={{alignItems:"center"}}>
|
<p className="mb10 df" style={{alignItems:"center"}}>
|
||||||
<Link to={`/${owner}/${projectsId}/issues/${item.id}`} title={item.name} className="hide-1 font-16 color-grey-3 lineh-30 mr10" style={{maxWidth:"370px"}}>{item.name}</Link>
|
<Link to={`/${owner}/${projectsId}/issues/${item.id}`} title={item.name} className="hide-1 font-16 color-grey-3 lineh-30 mr10" style={{maxWidth:"370px"}}>{item.name}</Link>
|
||||||
|
|
|
@ -578,7 +578,7 @@ class order extends Component {
|
||||||
<div className="f-wrap-between screenWrap">
|
<div className="f-wrap-between screenWrap">
|
||||||
<div className="df">
|
<div className="df">
|
||||||
{
|
{
|
||||||
((current_user && current_user.login) && (data && data.user_admin_or_member)) ?
|
((current_user && current_user.login) && (data && data.user_operate_issue)) ?
|
||||||
<Checkbox value="0" style={{ lineHeight: "50px", marginRight: "15px" }} checked={all} onChange={this.changeAll}></Checkbox>
|
<Checkbox value="0" style={{ lineHeight: "50px", marginRight: "15px" }} checked={all} onChange={this.changeAll}></Checkbox>
|
||||||
: ""
|
: ""
|
||||||
}
|
}
|
||||||
|
@ -823,14 +823,14 @@ class order extends Component {
|
||||||
<OrderItem
|
<OrderItem
|
||||||
key={key}
|
key={key}
|
||||||
item={item}
|
item={item}
|
||||||
checkbox={current_user &&(data && data.user_admin_or_member) ? <Checkbox value={item.id} key={item.id} style={{ margin: '4px 15px 0px 0px' }}></Checkbox> : ""}
|
checkbox={current_user &&(data && data.user_operate_issue) ? <Checkbox value={item.id} key={item.id} style={{ margin: '4px 15px 0px 0px' }}></Checkbox> : ""}
|
||||||
search_count={search_count}
|
search_count={search_count}
|
||||||
page={select_params.page}
|
page={select_params.page}
|
||||||
limit={select_params.limit}
|
limit={select_params.limit}
|
||||||
{...this.props}
|
{...this.props}
|
||||||
{...this.state}
|
{...this.state}
|
||||||
deletedetail={this.deletedetail}
|
deletedetail={this.deletedetail}
|
||||||
user_admin_or_member={data && data.user_admin_or_member}
|
user_admin_or_member={data && data.user_operate_issue}
|
||||||
></OrderItem>
|
></OrderItem>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
|
|
Loading…
Reference in New Issue