Commit 6e0c9add by ethanlamzs

定义按钮事件

1 parent f89d8610
...@@ -122,13 +122,18 @@ export default class schoolmgr extends Component{ ...@@ -122,13 +122,18 @@ export default class schoolmgr extends Component{
console.log('onCheck', checkedKeys); console.log('onCheck', checkedKeys);
this.setState({ checkedKeys }); this.setState({ checkedKeys });
} }
//根据当前选择的对象,删除指定的联系人 //根据当前选择的对象,删除指定的联系人
removelkman = () => { removelkman = () => {
console.log('removelkman'); console.log('removelkman');
} }
//定义特殊操作的按钮流程
specopation = (action) => {
console.log('specatcion'+action);
}
render(){ render(){
...@@ -187,9 +192,11 @@ export default class schoolmgr extends Component{ ...@@ -187,9 +192,11 @@ export default class schoolmgr extends Component{
<ChartCard <ChartCard
bordered={false} bordered={false}
title='操作/功能区' title='操作/功能区'
contentHeight={46} > contentHeight={86} >
<div> <div>
<Button style={{ marginLeft: 8 }} onClick={this.removelkman}>删除联系人</Button> <Button style={{ marginLeft: 8 }} onClick={this.removelkman}>删除联系人</Button>
<Button style={{ marginLeft: 8 }} onClick={() => this.specopation(1)}>头像强刷</Button>
<Button style={{ marginLeft: 8 }} onClick={() =>this.specopation(2)}>通讯录强刷</Button>
</div> </div>
</ChartCard> </ChartCard>
</div> </div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!