oeeCommonList.js
743 Bytes
import React from 'react';
import { connect } from 'dva';
import OeeCommonListComponent from '../../../oee/common/oeeCommonList';
function OeeCommonList({
dispatch, app, content, sModelsId, onSaveCurrentState, formRoute, sModelsType,
}) {
const CommonListComponentProps = {
app,
content,
dispatch,
onAddPane: getAddPane, /* 增加标签 */
sModelsId,
onSaveCurrentState,
formRoute,
sModelsType,
};
function getAddPane(pane) {
/* 增加标签 */
dispatch({ type: 'app/addPane', payload: { pane } });
}
return (
<OeeCommonListComponent {...CommonListComponentProps} style={{ height: '100%' }} />
);
}
export default connect(({ app, content }) =>
({ app, content }))(OeeCommonList);