86 lines
3.5 KiB
JavaScript
86 lines
3.5 KiB
JavaScript
|
|
window.WeaHrm4Formal = false;
|
|||
|
|
window.inputType = {
|
|||
|
|
inputType: 'MULTILANG',
|
|||
|
|
isBase64: true
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
window.HrmGroupCol = 2; //人力布局(1、一行2列,2、一行4列)
|
|||
|
|
window.HrmLabelCol = 6;
|
|||
|
|
window.HrmWrapperCol = 15;
|
|||
|
|
window.HrmEngineLabelCol = 6;
|
|||
|
|
window.HrmEngineWrapperCol = 18;
|
|||
|
|
window.defaultScheduleBGColor = [
|
|||
|
|
'#47A9FC',
|
|||
|
|
'#70C06F',
|
|||
|
|
'#F6D65C',
|
|||
|
|
'#EA744D',
|
|||
|
|
'#4EBCCC',
|
|||
|
|
'#EA5C85',
|
|||
|
|
'#8F72F2',
|
|||
|
|
'#7297F2',
|
|||
|
|
'#CA4DE4',
|
|||
|
|
'#A7CC62'
|
|||
|
|
];
|
|||
|
|
|
|||
|
|
import {
|
|||
|
|
Route
|
|||
|
|
} from 'react-router';
|
|||
|
|
import {
|
|||
|
|
WeaLocaleProvider
|
|||
|
|
} from 'ecCom';
|
|||
|
|
import {
|
|||
|
|
isEnableMultiLang
|
|||
|
|
} from './apis/common';
|
|||
|
|
import Home from './components/Home';
|
|||
|
|
import MonthReport from './components/report/month/index';
|
|||
|
|
import MonthReport4Template from './components/report/month4template/index';
|
|||
|
|
import MonthCalendarReport from './components/report/monthCalendar/index';
|
|||
|
|
import OriginalPunchRecord from './components/originalPunchRecord/index';
|
|||
|
|
import DailyReport from './components/report/daily/index';
|
|||
|
|
import VacationBalanceReportCopy from './components/vacationBalanceReportCopy/index';
|
|||
|
|
import Shift from './components/shift/index';
|
|||
|
|
import Checking from './components/Checking'; // 考勤
|
|||
|
|
import Test from './components/Test';
|
|||
|
|
|
|||
|
|
import './style/index';
|
|||
|
|
import './util/index';
|
|||
|
|
import stores from './stores/index';
|
|||
|
|
// isEnableMultiLang().then(data => {
|
|||
|
|
// window.inputType = {
|
|||
|
|
// inputType: 'NORMAL'
|
|||
|
|
// }
|
|||
|
|
// if (data.status === '1') {
|
|||
|
|
// if (data.isEnableMultiLang) {
|
|||
|
|
// window.inputType = {
|
|||
|
|
// inputType: 'MULTILANG',
|
|||
|
|
// isBase64: true
|
|||
|
|
// }
|
|||
|
|
// }
|
|||
|
|
// }
|
|||
|
|
// }, error => {
|
|||
|
|
// window.inputType = {
|
|||
|
|
// inputType: 'NORMAL'
|
|||
|
|
// }
|
|||
|
|
// });
|
|||
|
|
|
|||
|
|
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'hrm');
|
|||
|
|
const HrmAttendanceRoute = (
|
|||
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@pbfiph`} path="attendance" onEnter={getLocaleLabel} component={Home}>
|
|||
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@7aed6q`} name='report' path='report'>
|
|||
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@aq75od`} name='month' path='month' component={MonthReport4Template}/>
|
|||
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@d6bhr3`} name='monthCalendar' path='monthCalendar' component={MonthCalendarReport}/>
|
|||
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@r8kyi9`} name='daily' path='daily' component={DailyReport}/>
|
|||
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@8ajobo`} name='vacationBalanceReport' path='vacationBalanceReport' component={VacationBalanceReportCopy} />
|
|||
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@9efd8e`} name='originalPunchRecord' path='originalPunchRecord' component={OriginalPunchRecord} />
|
|||
|
|
</Route>
|
|||
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@hip8im`} name='vacationBalanceReport' path='vacationBalanceReport' component={VacationBalanceReportCopy} />
|
|||
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@unm7yw`} name='shift' path='shift' component={Shift} />
|
|||
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@s4e8iv`} name="checking" breadcrumbName="我的考勤" path="checking" component={Checking}/>
|
|||
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@axzhkd`} name="test" path="test" component={Test}/>
|
|||
|
|
</Route>
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
module.exports = {
|
|||
|
|
Route: HrmAttendanceRoute,
|
|||
|
|
store: stores
|
|||
|
|
}
|