/** * @Date: 2019-05-20T16:45:00+08:00 * @Last modified time: 2019-06-26T18:40:44+08:00 */ import React from 'react'; import { connect } from 'dva'; import CommonReportComponent from '../../../oee/common/indexOee'; function IndexOee({ dispatch, app, content, location, sModelsId, }) { const CommonReportProps = { app, content, dispatch, routing: location, onAddPane: getAddPane, /* 增加标签 */ // sModelsId: JSON.parse(location.state.sParam).sModelsId, sModelsId, formRoute: location.pathname, }; function getAddPane(pane) { /* 增加标签 */ dispatch({ type: 'app/addPane', payload: { pane } }); } return ( ); } export default connect(({ app, content }) => ({ app, content }))(IndexOee);