💪 optimize: 优化代码
This commit is contained in:
parent
42f244fcd3
commit
426ce185a7
|
@ -102,7 +102,7 @@ export default class Key extends React.Component {
|
|||
render() {
|
||||
return (
|
||||
<div id="more" className="maincenter">
|
||||
<TabPage tabs={this.state.tabList} tabChange={() => this.tabFn.bind(this)}>
|
||||
<TabPage tabs={this.state.tabList} tabChange={this.tabFn}>
|
||||
{this.state.tabactive == 0 ? (
|
||||
<div className="main-body">
|
||||
<Grid
|
||||
|
@ -120,7 +120,7 @@ export default class Key extends React.Component {
|
|||
pageChange={(e) => {
|
||||
this.pageChange(e)
|
||||
}}
|
||||
checkChange={() => this.selection.bind(this)}
|
||||
checkChange={this.selection}
|
||||
ComponentHandler={(com, rowData) => {
|
||||
if (com == "time") {
|
||||
return <div>{moment.unix(rowData.time).format("YYYY-MM-DD HH:mm:ss")}</div>
|
||||
|
|
Loading…
Reference in New Issue