产品-薪资档案页面待停薪列表添加取消待办的功能

This commit is contained in:
黎永顺 2023-03-20 14:45:09 +08:00
parent 7c330c2675
commit a3d11cf249
2 changed files with 8 additions and 1 deletions

View File

@ -19,6 +19,12 @@ class AllWithoutPay extends Component {
message.error(errormsg || "操作失败!");
}
});
}else if(key === "batchDeleteTodo"){
if (selectedRowKeys.length === 0) {
message.warning("未选择条目");
return;
}
console.log(selectedRowKeys);
}else{
const { pageInfo } = this.props;
if (pageInfo.total === 0) {
@ -48,6 +54,7 @@ class AllWithoutPay extends Component {
<Menu className="dropdownMenuWrapper" onClick={this.handleClick}>
<Menu.Item key="allWithoutpay">全部停薪</Menu.Item>
<Menu.Item key="batchWithoutpay">批量停薪</Menu.Item>
<Menu.Item key="batchDeleteTodo">批量删除待办</Menu.Item>
</Menu>
);
}

View File

@ -496,7 +496,7 @@ class Index extends Component {
placement="bottomRight"
content={<Menu onClick={(e) => this.handleMenuClick(e, record.id)}>
<Menu.Item key="stopSalary">停薪</Menu.Item>
{/*<Menu.Item key="deleteSuspendTodo">删除待办</Menu.Item>*/}
<Menu.Item key="deleteSuspendTodo">删除待办</Menu.Item>
</Menu>} title="">
<i className="icon-coms-more"/>
</Popover>