import React from 'react'; import { inject, observer } from 'mobx-react'; import { WeaTop, WeaTab, WeaOrgTree, WeaEchart, WeaYear, WeaDialog, WeaPopoverHrm, WeaCheckbox, WeaRadioGroup, WeaRightMenu, WeaTools, WeaErrorPage, WeaAlertPage, WeaDatePicker, WeaBrowser, WeaNewScroll, WeaSearchGroup } from 'ecCom'; import { WeaTableNew } from 'comsMobx'; const WeaTable = WeaTableNew.WeaTable; import { Modal, Row, Col, Button, Spin, Icon, Calendar, Tooltip, Timeline } from 'antd'; import '../style/checking.less'; import '../style/outside.less'; import * as mobx from 'mobx'; import isEmpty from 'lodash/isEmpty'; import cloneDeep from 'lodash/cloneDeep'; import toString from 'lodash/toString'; import moment from 'moment'; import * as Util from '../util/index'; import Map from '../coms/Map'; import loadjs from 'loadjs'; import { i18n } from '../public/i18n'; import { WeaLocaleProvider } from 'ecCom'; import { carousel } from '../util/index' import {addContentPath} from '../util/index.js' const getLabel = WeaLocaleProvider.getLabel; const toJS = mobx.toJS; @observer export default class OutSideTabkey1 extends React.Component{ handlerPosition(item) { const { hrmOutside } = this.props; hrmOutside.updatePosition(item); hrmOutside.updateVisible(true); } render() { const { hrmOutside } = this.props; let { timeData } = hrmOutside; timeData = toJS(timeData); return { timeData && timeData.map((item,index) => { return
{item.date}
{ isEmpty(item.items) &&
{getLabel('386505',"当天无外勤签到记录")}
} { !isEmpty(item.items) && item.items.map(i=> { return
{i.name} {i.time} {i.signTitle}
{i.information &&
} {i.pics &&
{ i.pics.map(pic=> { return
{ carousel(pic,index,'ant-timeline-item')}/> }
}) }
} { i.crm && i.crm.length > 0 &&
{ i.crm.map((d, i) => { return (
{d}
) }) }
}
this.handlerPosition.bind(this, i)}>
{i.title}
}) }
}) }
} }