职务管理页面新增

This commit is contained in:
liyongshun 2022-05-13 18:05:45 +08:00
parent 8c6d1df37c
commit 2e167f4099
1 changed files with 32 additions and 19 deletions

View File

@ -1,29 +1,42 @@
import React from 'react'; import React from "react";
import Route from 'react-router/lib/Route'; import Route from "react-router/lib/Route";
import { WeaLocaleProvider } from 'ecCom' import { WeaLocaleProvider } from "ecCom";
import SimpleOrg from './components/tree/index'; import SimpleOrg from "./components/tree/index";
import StandardOrg from './components/tree/standard_org' import StandardOrg from "./components/tree/standard_org";
import RankScheme from './components/postionrank/RankScheme'; import RankScheme from "./components/postionrank/RankScheme";
import JobLevel from './components/postionrank/JobLevel'; import JobLevel from "./components/postionrank/JobLevel";
import JobGrade from './components/postionrank/JobGrade' import JobGrade from "./components/postionrank/JobGrade";
import stores from './stores'; import CompanyManage from "./components/company/companyManage";
import './style/index'; import OfficeManage from "./components/office/officeManage";
import stores from "./stores";
import "./style/index";
// 读取系统多语言配置 // 读取系统多语言配置
let getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'organization'); let getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(
this,
"organization"
);
// 不需要读取系统多语言 // 不需要读取系统多语言
getLocaleLabel = function(nextState, replace, callback) { callback();}; getLocaleLabel = function (nextState, replace, callback) {
callback();
};
const Home = props => props.children; const Home = (props) => props.children;
const Routes = ( const Routes = (
<Route key='organization' path='organization' onEnter={getLocaleLabel} component={Home}> <Route
<Route key='index' path='index' component={SimpleOrg} /> key="organization"
<Route key='standard' path='standard' component={StandardOrg} /> path="organization"
<Route key='rankscheme' path='rankscheme' component={RankScheme} /> onEnter={getLocaleLabel}
<Route key='joblevel' path='joblevel' component={JobLevel} /> component={Home}>
<Route key='jobgrade' path='jobgrade' component={JobGrade} /> <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="companyManage" path="companyManage" component={CompanyManage} />
<Route key="officeManage" path="officeManage" component={OfficeManage} />
</Route> </Route>
); );