forked from nsjcy/frontEnd/nsjcy

liuwh
2020-03-24 f39bc9d667e68526c79387d754e6304a80825ef5
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
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 UnderAgeList from './page/UnderAgeList';
import KeyWord from './page/KeyWord';
import ActiveManage from './page/ActiveManage';
import ActiveManageEdit from './page/ActiveManageEdit';
import ActiveManageEditquestionnaire from './page/ActiveManageEditquestionnaire';
 
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 LawSubscribe from './page/LawSubscribe';
import LawSubscribeDetail from './page/LawSubscribeDetail';
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 QuestionDetail from './page/QuestionDetail';
 
import NoInspectionReportList from './page/NoInspectionReportList';
import NoInspectionReportDetail from './page/NoInspectionReportDetail';
 
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={{ height: '100%' }}>
        <Switch>
          <Route path="/bus/attachment/:busId/:attachmentId" component={AttTree} />
          <Route path="/bus/attachment/:busId" component={AttTree} />
          {/* <Route path='/questionnaire/newly' component={AttTree} /> */}
          {/* 问卷详情 */}
          <Route path='/activeManageEditquestionnaire/:id' component={null} />
           {/* 签到墙 */}
           <Route path='/signIn/:id' 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='/underAgeList' component={UnderAgeList} />
          <Route path='/keyWord' component={KeyWord} />
          <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='/activeManageEditquestionnaire/:id' component={ActiveManageEditquestionnaire} />
          <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='/lawSubscribe' component={LawSubscribe} />
          <Route path='/lawSubscribeDetail/:id/:flag' component={LawSubscribeDetail} />
          <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/:id' component={Newly} />
          {/* 问卷详情 */}
          <Route path='/questionnaire/detail/:id' component={QuestionDetail} />
 
          
          {/* 公安审核 */}
          <Route path='/entry/policeSecurity' component={PoliceSecurity} />
          <Route path='/entry/policeSecurityEdit/:id' component={policeSecurityEdit} />
 
          {/* 签到墙 */}
          <Route path='/signIn/:id' component={SignIn} />
 
          {/* 未检举报(列表、详情) */}
          <Route path='/noInspectionReportList' component={NoInspectionReportList} />
          <Route path='/noInspectionReportDetail/:id/:flag' component={NoInspectionReportDetail} />
 
 
          
          <Route path='/' component={Index} />
        </Switch>
      </Layout>
    </Router>
  </LocaleProvider>,
  document.getElementById('root')
);