Commit becf5f9c authored by zhengjiangtao's avatar zhengjiangtao

增加表格联动点击事件

parent 8db56280
......@@ -27,7 +27,7 @@
text-align: center;
}
//背景色奇数和偶数
//背景色奇数和偶数(自定义)
.back-02 {
background:transparent!important;
opacity:1;
......
......@@ -505,6 +505,7 @@ rowClassName = (record, index) => {
render() {
let defaultPageConfig = this.pageConfig;
const { current, pageSize, total } = this.state;
const {onEditClick} =this.props;
let { pagination, isChecked, fname,data,totalCount,selectedRowKeys } = this.state;
return (
<div className="equipmentMaintain-bottom-left" id="equipmentMaintain-bottom-left">
......@@ -537,6 +538,7 @@ rowClassName = (record, index) => {
defaultPageConfig={defaultPageConfig}
getPanelHeight={this.getPanelHeight}
rowClassName={this.rowClassName}
onRowClick={(record) => onEditClick(record)}
/>
......
......@@ -32,7 +32,7 @@ export default class EquipmentMaintainTrain extends Component {
<div className="equipmentMaintain-safty-content">
<div className="equipmentMaintain-top"></div>
<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}/>
</div>
</div>
......
......@@ -494,6 +494,7 @@ rowClassName = (record, index) => {
render() {
let defaultPageConfig = this.pageConfig;
const { current, pageSize, total } = this.state;
const {onEditClick} =this.props;
let { pagination, isChecked, fname,data,totalCount,selectedRowKeys } = this.state;
return (
<div className="fire-bottom-left" id="fire-bottom-left">
......@@ -558,6 +559,7 @@ rowClassName = (record, index) => {
defaultPageConfig={defaultPageConfig}
getPanelHeight={this.getPanelHeight}
rowClassName={this.rowClassName}
onRowClick={(record) => onEditClick(record)}
/>
......
......@@ -30,7 +30,7 @@ export default class Safety extends Component {
<div className="fire-safty-content">
<div className="fire-top"></div>
<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}/>
</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