51 lines
1.7 KiB
JavaScript
51 lines
1.7 KiB
JavaScript
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";
|
|
import RankScheme from "./components/postionrank/RankScheme";
|
|
import JobLevel from "./components/postionrank/JobLevel";
|
|
import JobGrade from "./components/postionrank/JobGrade";
|
|
import Sequence from "./components/sequence/Sequence";
|
|
import Group from "./components/group/Group";
|
|
import OfficeManage from "./components/office/officeManage";
|
|
import CompanyExtend from "./components/company/CompanyExtend"
|
|
import stores from "./stores";
|
|
import "./style/index";
|
|
|
|
// 读取系统多语言配置
|
|
let getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(
|
|
this,
|
|
"organization"
|
|
);
|
|
|
|
// 不需要读取系统多语言
|
|
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} />
|
|
<Route key="rankscheme" path="rankscheme" component={RankScheme} />
|
|
<Route key="joblevel" path="joblevel" component={JobLevel} />
|
|
<Route key="jobgrade" path="jobgrade" component={JobGrade} />
|
|
<Route key="sequence" path="sequence" component={Sequence} />
|
|
<Route key="group" path="group" component={Group} />
|
|
<Route key="officeManage" path="officeManage" component={OfficeManage} />
|
|
<Route key="companyExtend" path="companyExtend" component={CompanyExtend} />
|
|
</Route>
|
|
);
|
|
|
|
module.exports = {
|
|
Route: Routes,
|
|
store: stores,
|
|
};
|