forked from nsjcy/frontEnd/nsjcy

liuwh
2020-02-20 6383764128f9f38513df1a55449b230a7b29092a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import { Router, Route, Switch } from 'react-router-dom';
import { Layout } from 'antd';
import hashHistory from 'history/createHashHistory';
import ReactDOM from 'react-dom';
import React from 'react';
 
import BusManage from './page/BusManage';
import Active from './page/Active';
import Viewer from './page/Viewer'
import AttTree from './page/AttTree';
import Index from './page/Index';
import Menu from './page/Menu';
import MsgList from './page/List';
import BusDetail from './page/BusDetail';
import SupPerson from './page/SupPerson';
import Company from './page/Company';
import ActiveManage from './page/ActiveManage';
import ActiveManageEdit from './page/ActiveManageEdit';
import KnowledgeBase from './page/KnowledgeBase';
import ArticlePublish from './page/ArticlePublish';
import ArticleEidt from './page/ArticleEidt';
import ComSuggest from './page/ComplaintSugges';
import TypeList from './page/UnitManage';
import Snapshot from './page/Snapshot';
import SnapshotDetail from './page/SnapshotDetail';
import Sweeping from './page/Sweeping';
import SweepingDetail from './page/SweepingDetail';
import MsgDetail from './page/MsgDetail';
import UserManage from './page/UserManage';
import UserDetail from './page/UserDetail';
import InsideUser from './page/InsideUser';
import UpdatePWD from './page/UpdatePWD';
import CareList from './page/CareList';
import CareListEdit from './page/CareListEdit';
// 入职查询
import ApplyFor from './page/ApplyFor';
import ApplyForEdit from './page/ApplyForEdit';
import Examine from './page/Examine';
import ExamineEdit from './page/ExamineEdit';
import NewlyList from './page/NewlyList';
import Newly from './page/Newly';
import SignIn from './page/SignIn';
 
import PoliceSecurity from './page/PoliceSecurity';
import policeSecurityEdit from './page/policeSecurityEdit';
 
import { LocaleProvider } from 'antd';
import zh_CN from 'antd/lib/locale-provider/zh_CN';
import 'moment/locale/zh-cn';
 
ReactDOM.render(
  <LocaleProvider locale={zh_CN}>
    <Router history={hashHistory()}>
      <Layout style={{ minHeight: '100vh' }}>
        <Switch>
          <Route path="/bus/attachment/:busId/:attachmentId" component={AttTree} />
          <Route path="/bus/attachment/:busId" component={AttTree} />
          <Route path='/questionnaire/newly' component={null} />
          <Route component={Menu} />
        </Switch>
        <Switch>
          <Route path="/bus/attachment/:busId/:attachmentId" component={Viewer} />
          <Route path='/busDetail/:type/:busId/:createId/:flag/:sontype?' component={BusDetail} />
          <Route path="/bus/attachment/:busId" component={Viewer} />
          <Route path='/msgList/:type' render={props => <MsgList {...props} />} />
          <Route path='/msgDetail/:type/:busId/:createId/:flag/:sontype' component={MsgDetail} />
          <Route path='/busManage/:type' render={props => <BusManage key={Date.now()} {...props} />} />
          <Route path='/complaintSugges/:type' render={props => <ComSuggest key={Date.now()} {...props} />} />
          <Route path='/userCenter' component={UserManage} />
          <Route path='/statistical' component={Active} />
          <Route path='/infoManage' component={Active} />
          <Route path='/active' component={Active} />
          <Route path='/supPerson' component={SupPerson} />
          <Route path='/company' component={Company} />
          <Route path='/knowledgeBase' component={KnowledgeBase} />
          <Route path='/articlePublish' component={ArticlePublish} />
          <Route path='/articleEidt/:id' component={ArticleEidt} />
          <Route path='/typeManage' component={TypeList} />
          <Route path='/activeManage' component={ActiveManage} />
          <Route path='/activeManageEdit/:id' component={ActiveManageEdit} />
          <Route path='/snapshot' component={Snapshot} />
          <Route path='/snapshotDetail/:id/:flag' component={SnapshotDetail} />
          <Route path='/sweeping' component={Sweeping} />
          <Route path='/sweepingDetail/:id/:flag' component={SweepingDetail} />
          <Route path='/userDetail/:id/:flag' component={UserDetail} />
          <Route path='/insideUser' component={InsideUser} />
          <Route path='/updatePWD/:id' component={UpdatePWD} />
          {/* 社会关护 */}
          <Route path='/careList' component={CareList} />
          <Route path='/careListEdit/:id' component={CareListEdit} />
          {/* 入职查询 */}
          <Route path='/entry/applyFor' component={ApplyFor} />
          <Route path='/entry/ApplyForEdit/:id' component={ApplyForEdit} />
          <Route path='/entry/examine' component={Examine} />
          <Route path='/entry/examineEdit/:id' component={ExamineEdit} />
 
          {/* 问卷管理部分 */}
          <Route path='/questionnaire/newlyList' component={NewlyList} />
          <Route path='/questionnaire/newly' component={Newly} />
          
          {/* 公安审核 */}
          <Route path='/entry/policeSecurity' component={PoliceSecurity} />
          <Route path='/entry/policeSecurityEdit/:id' component={policeSecurityEdit} />
 
          {/* 签到墙 */}
          <Route path='/signIn/:id' component={SignIn} />
          
          <Route path='/' component={Index} />
        </Switch>
      </Layout>
    </Router>
  </LocaleProvider>,
  document.getElementById('root')
);