|
@@ -73,7 +73,7 @@ class HisList extends Component {
|
|
return '';
|
|
return '';
|
|
}
|
|
}
|
|
|
|
|
|
- handleSelect(e,id){console.log(e,id)
|
|
|
|
|
|
+ handleSelect(e,id){
|
|
e.stopPropagation();
|
|
e.stopPropagation();
|
|
let {select} = this.state;
|
|
let {select} = this.state;
|
|
if(select.indexOf(id)==-1){
|
|
if(select.indexOf(id)==-1){
|
|
@@ -132,6 +132,14 @@ class HisList extends Component {
|
|
handleDownload&&handleDownload(select);
|
|
handleDownload&&handleDownload(select);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ getExportStyle(){
|
|
|
|
+ const {select} = this.state;
|
|
|
|
+ if(select.length>0){
|
|
|
|
+ return `${style['export']} ${style['exp-select']}`
|
|
|
|
+ }
|
|
|
|
+ return style['export'];
|
|
|
|
+ }
|
|
|
|
+
|
|
getList(){
|
|
getList(){
|
|
const { data } = this.props;
|
|
const { data } = this.props;
|
|
let list = data&&data.map((v,i)=>{
|
|
let list = data&&data.map((v,i)=>{
|
|
@@ -172,7 +180,7 @@ class HisList extends Component {
|
|
<div className={style['all-box']}>
|
|
<div className={style['all-box']}>
|
|
<img src={this.getAllIcon()} className={style['check-all']} onClick={this.handleAll}/>
|
|
<img src={this.getAllIcon()} className={style['check-all']} onClick={this.handleAll}/>
|
|
<span onClick={this.handleAll}>全选</span>
|
|
<span onClick={this.handleAll}>全选</span>
|
|
- <span className={style['export']} onClick={this.handleDownload}>导出已选数据</span>
|
|
|
|
|
|
+ <span className={this.getExportStyle()} onClick={this.handleDownload}>导出已选数据</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|