trunk/pc4mobx/organization/index.js

34 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-05-05 16:02:19 +08:00
import React from 'react';
import Route from 'react-router/lib/Route';
import { WeaLocaleProvider } from 'ecCom'
import SimpleOrg from './components/tree/index';
import StandardOrg from './components/tree/standard_org'
2022-05-06 16:53:43 +08:00
import RankScheme from './components/postionrank/RankScheme';
import JobLevel from './components/postionrank/JobLevel';
import JobGrade from './components/postionrank/JobGrade'
2022-05-05 16:02:19 +08:00
import stores from './stores';
import './style/index';
// 读取系统多语言配置
2022-05-06 16:53:43 +08:00
let getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'organization');
2022-05-05 16:02:19 +08:00
// 不需要读取系统多语言
getLocaleLabel = function(nextState, replace, callback) { callback();};
const Home = props => props.children;
const Routes = (
<Route key='organization' path='organization' onEnter={getLocaleLabel} component={Home}>
<Route key='index' path='index' component={SimpleOrg} />
<Route key='standard' path='standard' component={StandardOrg} />
2022-05-06 16:53:43 +08:00
<Route key='rankscheme' path='rankscheme' component={RankScheme} />
<Route key='joblevel' path='joblevel' component={JobLevel} />
<Route key='jobgrade' path='jobgrade' component={JobGrade} />
2022-05-05 16:02:19 +08:00
</Route>
);
module.exports = {
Route: Routes,
store: stores,
};