import React from 'react'; import { WeaLocaleProvider } from 'ecCom'; import { addContentPath } from '../../util/pathUtil'; const getLabel = WeaLocaleProvider.getLabel; import Header from './Common/header'; import './css/index'; export default class Content_dataCenter extends React.Component { constructor(props) { super(props); this.onMouseOver = this.onMouseOver.bind(this); this.onMouseMove = this.onMouseMove.bind(this); } onMouseOver(module) { $(`#${module}`).css('background-image', 'none'); $(`#${module}`).find('.mtitle').show().css('padding-top', '52px'); $(`#${module}`).css('opacity', '0.8'); } onMouseMove(module) { $(`#${module}`).css('background-image', `url(${addContentPath(`/images/homepage/portalcenter/${module}_wev8.png`)})`); $(`#${module}`).find('.mtitle').hide(); $(`#${module}`).css('opacity', '1'); } render() { const { data = {}, eid } = this.props; const { moreLocal, iconMore } = data; return (
this.onMouseOver('workflow')} onMouseLeave={() => this.onMouseMove('workflow')} data-url="/spa/workflow/index_mobx.jsp#/main/workflow/listDoing?resourceid=1" style={{ height: '120px' }} >
122
{getLabel(500431, '待办事宜') }
this.onMouseOver('capital')} onMouseLeave={() => this.onMouseMove('capital')} data-url="/spa/cpt/index.html#/main/cpt/mycapital" style={{ backgroundColor: 'rgb(255, 210, 0)', height: '120px', backgroundImage: `url(${addContentPath('/images/homepage/portalcenter/capital_wev8.png')})`, opacity: 1 }} >
0
{getLabel(30044, '资产') }
this.onMouseOver('cowork')} onMouseLeave={() => this.onMouseMove('cowork')} data-url="/spa/cowork/static/index.html#/main/cowork/hrmview?searchHrmid=1" style={{ backgroundColor: 'rgb(253, 144, 0)', height: '120px', backgroundImage: `url(${addContentPath('/images/homepage/portalcenter/cowork_wev8.png')})`, opacity: 1 }} >
18
{getLabel(17855, '协作') }
this.onMouseOver('project')} onMouseLeave={() => this.onMouseMove('project')} data-url="/spa/prj/index.html#/main/prj/mineProject?search_resourceid=1" style={{ backgroundColor: 'rgb(203, 97, 254)', height: '120px' }} >
0
{getLabel(1211, '我的项目') }
this.onMouseOver('crm')} onMouseLeave={() => this.onMouseMove('crm')} data-url="/spa/crm/static/index.html#/main/crm/customer/hrmView?searchHrmId=1" style={{ backgroundColor: 'rgb(104, 113, 227)', height: '120px' }} >
0
{getLabel(6059, '我的客户') }
this.onMouseOver('blog')} onMouseLeave={() => this.onMouseMove('blog')} data-url="/spa/blog/static/index.html#/user/1" style={{ backgroundColor: 'rgb(86, 222, 115)', height: '120px' }} >
0
{getLabel(26468, '我的微博') }
this.onMouseOver('doc')} onMouseLeave={() => this.onMouseMove('doc')} data-url="/spa/document/static/index.html#/main/document/search" style={{ backgroundolor: 'rgb(253, 38, 119)', height: '120px', backgroundImage: `url(${addContentPath('/images/homepage/portalcenter/doc_wev8.png')})`, opacity: 1 }} >
5
{getLabel(1212, '我的文档') }
this.onMouseOver('meetting')} onMouseLeave={() => this.onMouseMove('meetting')} data-url="/spa/meeting/static/index.html#/main/meeting/CalView" style={{ backgroundColor: 'rgb(104, 113, 227)', height: '120px', backgroundImage: `url(${addContentPath('/images/homepage/portalcenter/meetting_wev8.png')})`, opacity: 1 }} >
0
{getLabel(2102, '我的会议') }
this.onMouseOver('workplan')} onMouseLeave={() => this.onMouseMove('workplan')} data-url="/spa/workplan/static/index.html#/main/wp/myWorkPlan" style={{ backgroundolor: 'rgb(203, 97, 254)', height: '120px', backgroundImage: `url(${addContentPath('/images/homepage/portalcenter/workplan_wev8.png')})`, opacity: 1 }} >
0
{getLabel(18480, '我的日程') }
{moreLocal == 'footer' ? : ''}
); } }