职务管理页面新增

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 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 stores from './stores';
import './style/index';
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 CompanyManage from "./components/company/companyManage";
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 = (
<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="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="companyManage" path="companyManage" component={CompanyManage} />
<Route key="officeManage" path="officeManage" component={OfficeManage} />
</Route>
);