import React from 'react' import { toJS } from 'mobx' import { inject, observer, } from 'mobx-react' import { WeaTop, WeaAlertPage, WeaBrowser, WeaLocaleProvider } from 'ecCom' import { Spin, } from 'antd'; import { i18n } from '../../public/i18n'; import '../../style/import.css'; import { addContentPath } from '../../util/index.js'; import StepDialog from './stepDialog'; import { renderNoright } from '../../util'; const getLabel = WeaLocaleProvider.getLabel; @inject("newImport") @observer export default class newImport extends React.Component { constructor(props) { super(props); } componentDidMount() { const {newImport} = this.props; newImport.getHasRight(); } componentWillMount() { } getImportCard = () => { const { newImport } = this.props, { isMouseOver, curIndex, setMouseStatus, } = newImport; let arr = []; const cardConfig = [ { "subTitle": getLabel(547211,'分部设置'), "bgColor": "#92B75B", "icon": "icon-coms-Department-number", "title": getLabel(547332,'分部'), "linkName": getLabel(547207,'分部导入'), "url": "/spa/organization/static/index.html#/main/organization/company" }, { "subTitle": getLabel(547212,'部门设置'), "bgColor": "#92B75B", "icon": "icon-coms-Department-number", "title": getLabel(547331,'部门'), "linkName": getLabel(547208,'部门导入'), "url": "/spa/organization/static/index.html#/main/organization/department" }, // { // "subTitle": "岗位设置", // "bgColor": "#49B2FE", // "icon": "icon-coms-hrm", // "title": "岗位", // "linkName": "岗位体系导入", // "url": "/spa/organization/static/index.html#/main/organization/job" // }, { "subTitle": getLabel(547213,'组织维护'), "bgColor": "#51A39A", "icon": "icon-coms-crm", "title": getLabel(547205,'人员'), "linkName": getLabel(547209,'人员导入'), "url": "/spa/organization/static/index.html#/main/organization/resource" }, { "subTitle": getLabel(547214,'等级设置'), "bgColor": "rgb(230, 168, 69)", "icon": "icon-portal-kpi-o", "title": getLabel(547210,'职等职级导入'), "linkName": getLabel(547206,'职等职级'), "url": "/spa/organization/static/index.html#/main/organization/rankscheme" }, ] cardConfig.map((c, index) => { arr.push(