forked from Gitlink/forgeplus-react
任务多选权限-必须登录
This commit is contained in:
parent
a5363d098a
commit
d8b2244b9c
|
|
@ -1,6 +1,7 @@
|
|||
.screenWrap{
|
||||
background:rgba(250,250,250,1);
|
||||
border:1px solid rgba(221,221,221,1);
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.searchBanner{
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@
|
|||
flex-wrap: wrap;
|
||||
align-content: center;
|
||||
border-bottom:1px dashed #cecdcd;
|
||||
padding:16px 0px;
|
||||
padding:16px 0px 16px 20px;
|
||||
}
|
||||
.issueNo{
|
||||
padding:0px 5px;
|
||||
|
|
|
|||
|
|
@ -180,16 +180,9 @@ class order extends Component {
|
|||
select_params.page = 1;
|
||||
|
||||
if (current_user) {
|
||||
if (select_params.author_id && select_params.author_id === current_user.user_id) {
|
||||
author_id = current_user.user_id;
|
||||
} else {
|
||||
author_id = undefined;
|
||||
}
|
||||
if (select_params.assigned_to_id && select_params.assigned_to_id === current_user.user_id) {
|
||||
assigned_to_id = current_user.user_id;
|
||||
} else {
|
||||
assigned_to_id = undefined;
|
||||
}
|
||||
author_id = (select_params.author_id && select_params.author_id === current_user.user_id) ? current_user.user_id : undefined;
|
||||
|
||||
assigned_to_id = (select_params.assigned_to_id && select_params.assigned_to_id === current_user.user_id) ? current_user.user_id : undefined;
|
||||
}
|
||||
|
||||
this.setState({
|
||||
|
|
@ -561,7 +554,11 @@ class order extends Component {
|
|||
<Spin spinning={isSpin}>
|
||||
<div className="f-wrap-between screenWrap">
|
||||
<div className="df">
|
||||
<Checkbox value="0" style={{ lineHeight: "50px", margin: "0px 15px 0px 20px" }} checked={all} onChange={this.changeAll}></Checkbox>
|
||||
{
|
||||
current_user ?
|
||||
<Checkbox value="0" style={{ lineHeight: "50px", marginRight: "15px" }} checked={all} onChange={this.changeAll}></Checkbox>
|
||||
:""
|
||||
}
|
||||
{checkedValue && checkedValue.length > 0 ?
|
||||
<span style={{ lineHeight: "50px" }}>选中{checkedValue.length}个issue</span>
|
||||
:
|
||||
|
|
@ -803,7 +800,7 @@ class order extends Component {
|
|||
<OrderItem
|
||||
key={key}
|
||||
item={item}
|
||||
checkbox={<Checkbox value={item.id} key={item.id} style={{ margin: '4px 15px 0px 20px' }}></Checkbox>}
|
||||
checkbox={current_user ? <Checkbox value={item.id} key={item.id} style={{ margin: '4px 15px 0px 0px' }}></Checkbox>:""}
|
||||
search_count={search_count}
|
||||
page={select_params.page}
|
||||
limit={select_params.limit}
|
||||
|
|
|
|||
Loading…
Reference in New Issue