任务多选权限-必须登录

This commit is contained in:
caishi 2020-05-29 17:07:48 +08:00
parent a5363d098a
commit d8b2244b9c
3 changed files with 11 additions and 13 deletions

View File

@ -1,6 +1,7 @@
.screenWrap{
background:rgba(250,250,250,1);
border:1px solid rgba(221,221,221,1);
padding-left: 20px;
}
.searchBanner{

View File

@ -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;

View File

@ -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}