import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { WeaDialog, WeaTable, WeaTab, } from 'ecCom'; import { Button, } from 'antd'; import { WeaTableNew } from 'comsMobx'; import { i18n } from '../../../public/i18n'; import {addContentPath} from '../../../util/index.js' @observer export default class Detail extends Component { export = () => { const { store } = this.props; const { detailTable } = store; detailTable.exportAll(); } render() { const { store } = this.props; const { dialogParams, detailTable, detail, hasOnlyTable, handleDetailTabChange, } = store, { userInfo, signInfo, columns, datas, tableStore, tabDatas, selectedKey, } = detail; const generateDialogParams = () => { const props = { ...dialogParams }; let buttons = []; //[]; Object.assign(props, { buttons, moreBtn: { datas: store.convertToMenus(buttons) }, }) return props; } const UserInfo = props => { const { userInfo } = props, { messagerurl, shortname, shiftInfo, lastname, schedual } = userInfo; return (
{shortname}/

{lastname}

{shiftInfo} {schedual}

) } const SignInfo = props => { const { signInfo } = props; return

{signInfo}

} const DetailTable = props => { const { columns, datas } = props; return (
) } return ( { hasOnlyTable ?(
{ tabDatas.length > 0 && ( ) }
) : (
) }
) } }