materialRequirementsPlanning.js
632 Bytes
import { connect } from 'umi';
import MaterialRequirementsPlanning from '../../components/Common/MaterialRequirementsPlanning';
function materialRequirementsPlanning({
dispatch, app, content,
}) {
const commonListProps = {
app,
content,
dispatch,
onAddPane: getAddPane, /* 增加标签 */
};
function getAddPane(pane) {
/* 增加标签 */
dispatch({ type: 'app/addPane', payload: { pane } });
}
return (
<MaterialRequirementsPlanning {...commonListProps} style={{ height: '100%' }} />
);
}
export default connect(({ app, content }) =>
({ app, content }))(materialRequirementsPlanning);