|
@@ -159,6 +159,7 @@ const Evaluate = React.createClass({
|
|
|
render: (text, it) => { return Moment(it.createTime).format('YYYY/MM/DD') }
|
|
|
}
|
|
|
];
|
|
|
+ const hasSelected = this.state.selectedRowKeys.length > 0;
|
|
|
return (
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<div className="content-container">
|
|
@@ -167,7 +168,7 @@ const Evaluate = React.createClass({
|
|
|
<div className="content-actions"><Button type="primary" onClick={this.addClick}>开始新评估<Icon type="plus" /></Button></div>
|
|
|
</div>
|
|
|
<div className="content-search">
|
|
|
- <Button type="danger" onClick={this.remove} disabled={!this.state.selectedRowKeys.length}>删除</Button>
|
|
|
+ <Button type="danger" onClick={this.remove} disabled={!hasSelected}>删除</Button>
|
|
|
</div>
|
|
|
<div className="content-body">
|
|
|
<Table rowKey="id" columns={columns}
|