Commit becf5f9c authored by zhengjiangtao's avatar zhengjiangtao

增加表格联动点击事件

parent 8db56280
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
text-align: center; text-align: center;
} }
//背景色奇数和偶数 //背景色奇数和偶数(自定义)
.back-02 { .back-02 {
background:transparent!important; background:transparent!important;
opacity:1; opacity:1;
......
...@@ -505,6 +505,7 @@ rowClassName = (record, index) => { ...@@ -505,6 +505,7 @@ rowClassName = (record, index) => {
render() { render() {
let defaultPageConfig = this.pageConfig; let defaultPageConfig = this.pageConfig;
const { current, pageSize, total } = this.state; const { current, pageSize, total } = this.state;
const {onEditClick} =this.props;
let { pagination, isChecked, fname,data,totalCount,selectedRowKeys } = this.state; let { pagination, isChecked, fname,data,totalCount,selectedRowKeys } = this.state;
return ( return (
<div className="equipmentMaintain-bottom-left" id="equipmentMaintain-bottom-left"> <div className="equipmentMaintain-bottom-left" id="equipmentMaintain-bottom-left">
...@@ -537,6 +538,7 @@ rowClassName = (record, index) => { ...@@ -537,6 +538,7 @@ rowClassName = (record, index) => {
defaultPageConfig={defaultPageConfig} defaultPageConfig={defaultPageConfig}
getPanelHeight={this.getPanelHeight} getPanelHeight={this.getPanelHeight}
rowClassName={this.rowClassName} rowClassName={this.rowClassName}
onRowClick={(record) => onEditClick(record)}
/> />
......
...@@ -32,7 +32,7 @@ export default class EquipmentMaintainTrain extends Component { ...@@ -32,7 +32,7 @@ export default class EquipmentMaintainTrain extends Component {
<div className="equipmentMaintain-safty-content"> <div className="equipmentMaintain-safty-content">
<div className="equipmentMaintain-top"></div> <div className="equipmentMaintain-top"></div>
<div className="equipmentMaintain-bottom"> <div className="equipmentMaintain-bottom">
<EquipmentMaintainLeft ref={node => this.list = node}/> <EquipmentMaintainLeft ref={node => this.list = node} onEditClick={this.onEditClick}/>
<EquipmentMaintainRight ref={node => this.listTwo = node}/> <EquipmentMaintainRight ref={node => this.listTwo = node}/>
</div> </div>
</div> </div>
......
...@@ -494,6 +494,7 @@ rowClassName = (record, index) => { ...@@ -494,6 +494,7 @@ rowClassName = (record, index) => {
render() { render() {
let defaultPageConfig = this.pageConfig; let defaultPageConfig = this.pageConfig;
const { current, pageSize, total } = this.state; const { current, pageSize, total } = this.state;
const {onEditClick} =this.props;
let { pagination, isChecked, fname,data,totalCount,selectedRowKeys } = this.state; let { pagination, isChecked, fname,data,totalCount,selectedRowKeys } = this.state;
return ( return (
<div className="fire-bottom-left" id="fire-bottom-left"> <div className="fire-bottom-left" id="fire-bottom-left">
...@@ -558,6 +559,7 @@ rowClassName = (record, index) => { ...@@ -558,6 +559,7 @@ rowClassName = (record, index) => {
defaultPageConfig={defaultPageConfig} defaultPageConfig={defaultPageConfig}
getPanelHeight={this.getPanelHeight} getPanelHeight={this.getPanelHeight}
rowClassName={this.rowClassName} rowClassName={this.rowClassName}
onRowClick={(record) => onEditClick(record)}
/> />
......
...@@ -30,7 +30,7 @@ export default class Safety extends Component { ...@@ -30,7 +30,7 @@ export default class Safety extends Component {
<div className="fire-safty-content"> <div className="fire-safty-content">
<div className="fire-top"></div> <div className="fire-top"></div>
<div className="fire-bottom"> <div className="fire-bottom">
<SafteyLeft ref={node => this.list = node}/> <SafteyLeft ref={node => this.list = node} onEditClick={this.onEditClick}/>
<SafteyRight ref={node => this.listTwo = node}/> <SafteyRight ref={node => this.listTwo = node}/>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment