import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { WeaDialog } from 'ecCom'; import { Button } from 'antd'; import { WeaTableNew } from 'comsMobx'; import { i18n } from '../../../public/i18n'; import uuid from 'uuid/v1'; import SignDetail from './SignDetail'; // import {Tabs} from 'weaHrmComsPublic'; import { Tabs } from '../../../../../pc4backstage/hrmComsPublic/index'; const { WeaTable } = WeaTableNew; @observer export default class Detail extends Component { export = () => { const { store } = this.props; const { detailTable } = store; detailTable.exportAll(); } genRowKey = (record, index) => record.id || `${record.workcode}_${record.kqdate}`; render() { // const { // Tabs // } = window.weaHrmComsPublic; const { store } = this.props; const { dialogParams, detailTable, tabConfig, } = store; const { iskqCalendarDialog, setScrollY, scrollY, } = store; const config = store.toJS(tabConfig); const tabProps = { tabConfig: config, tabChangeHandle: config.tabChangeHandle, activeTabInfo: { activeTabKey: config.activeTabKey, activeTabIndex: store.getTabIndex(config.tabs, config.activeTabKey) }, store: store } const generateDialogParams = () => { const props = { ...dialogParams }; let buttons = []; if (!iskqCalendarDialog) { Object.assign(props, { buttons, }) } Object.assign(props, { moreBtn: { datas: store.convertToMenus(!iskqCalendarDialog ? buttons : []) }, }) return props; } let children = []; if (config.tabs.length > 1) { children.push( ( { config.tabs.map((tab, index) => { return (
) }) }
) ) } else { children.push( ( ) ) } return ( setScrollY(height)}> {iskqCalendarDialog ? : children} ) } }