32 lines
764 B
JavaScript
32 lines
764 B
JavaScript
|
|
import React, { Component } from "react";
|
||
|
|
import { WeaTableEdit } from "ecCom";
|
||
|
|
import { inject, observer } from "mobx-react";
|
||
|
|
|
||
|
|
@inject("columnPermission")
|
||
|
|
@observer
|
||
|
|
class CustomItem extends Component {
|
||
|
|
componentDidMount() {
|
||
|
|
this.init();
|
||
|
|
}
|
||
|
|
|
||
|
|
init = () => {
|
||
|
|
const { columnPermission } = this.props;
|
||
|
|
columnPermission.loadTabThreeRelatedData();
|
||
|
|
};
|
||
|
|
|
||
|
|
render() {
|
||
|
|
const { columnPermission } = this.props, { tableEditConfig, refreshMainTabComponent } = columnPermission;
|
||
|
|
return (
|
||
|
|
<div>
|
||
|
|
<WeaTableEdit
|
||
|
|
ecId={`${this && this.props && this.props.ecId || ""}_WeaTableEdit@5fu5eh`}
|
||
|
|
rowKey={"fieldidrowKey"}
|
||
|
|
{...tableEditConfig['fieldDef']}
|
||
|
|
/>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default CustomItem;
|