import React, { Component } from 'react' import { Timeline } from 'antd'; import isEmpty from 'lodash/isEmpty'; import {observer} from 'mobx-react' import {toJS} from 'mobx' import {Icon} from 'antd' import Map from '../../coms/Map'; import { WeaLocaleProvider, WeaDialog } from 'ecCom'; import { carousel } from '../../util/index' import {addContentPath} from '../../util/index.js' const getLabel = WeaLocaleProvider.getLabel; @observer export default class TimeView extends Component { componentDidMount () { const {newOutSide} = this.props; const {getData,init,temp} = newOutSide; getData(); } handlerPosition(item) { const { newOutSide } = this.props; newOutSide.updatePosition(item); newOutSide.updateVisible(true); } render() { const {newOutSide} = this.props; const {timeData,visible,positionObj} = newOutSide; let themeFontSize = 12; try{ themeFontSize = parseInt(JSON.parse(localStorage['theme-themeInfo']).themeFontSize); }catch(e){ } return (
{/* 点击地图的弹出框 */} {newOutSide.updateVisible(false);}} closable style={{width: 700, height: 500}} title = {getLabel('386506',"位置详情")} icon="icon-coms-hrm" iconBgcolor='#008572' > {visible &&} { timeData && toJS(timeData).map((item,index) => { return (
12 ? 'list-item-title-large' : ''}`}>{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}
) }) }
} {i.title}
) }) }
) }) }
) } }