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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
| <template>
| <el-main>
| <!-- <NavBar /> -->
| <div class="content">
| <!-- 页面导航区域 -->
| <div class="page-nav" v-if="navFlag">
| <div class="nav-item" v-for="item in navList" :key="item.id">
| <div class="nav-title">{{item.title}}</div>
| <div class="nav-child" v-if="item.children && item.children.length!==0">
| <el-link :underline="false" class="child-item" v-for="child in item.children" @click="handleJump(child.link)" :key="child.id">{{child.label}}</el-link>
| </div>
| </div>
| </div>
| <router-view v-else></router-view>
| <!-- 底部区域 -->
| <!-- <MyFooter/> -->
| </div>
| </el-main>
| </template>
|
| <script>
| // import MyFooter from "../Footer"
| import NavBar from "../NavBar"
| export default {
| name: "Main",
| components: {
| // MyFooter,
| NavBar
| },
| data() {
| return {
| navFlag: true,
| navList:[
| {
| id:1,
| title:'系统设置',
| children:[
| {
| id:2,
| label:'用户管理',
| link:'/system/userSetting/user',
| },
| {
| id:3,
| label:'角色管理',
| link:'/system/userSetting/role',
| },
| {
| id:4,
| label:'部门管理',
| link:'/system/userSetting/department',
| },
| {
| id:5,
| label:'卡口设备管理',
| link:'/system/device/bayonet',
| },
| {
| id:6,
| label:'点位管理',
| link:'/system/device/point',
| },
| ]
| },
| {
| id:7,
| title:'运营管理',
| children:[
| {
| id:8,
| label:'案件池',
| link:'/operate/casepool/pool',
| },
| {
| id:9,
| label:'上报管理',
| link:'/operate/casepool/escalation',
| },
| {
| id:10,
| label:'调度管理',
| link:'/operate/casepool/dispatch',
| },
| {
| id:11,
| label:'审核管理',
| link:'/operate/management/myIndex',
| },
| {
| id:13,
| label:'我的待办',
| link:'/operate/myWait',
| },
| {
| id:14,
| label:'案卷查询',
| link:'/operate/viewEvent',
| },
| {
| id:15,
| label:'车辆管理',
| link:'/operate/car/carIndex',
| },
| {
| id:16,
| label:'图片管理',
| link:'/operate/images',
| },
| {
| id:17,
| label:'视频管理',
| link:'/operate/videoControl',
| },
| {
| id:18,
| label:'消息管理',
| link:'/operate/message/messageIndex',
| },
| {
| id:19,
| label:'短信管理',
| link:'/operate/sms/smsIndex',
| },
| {
| id:20,
| label:'日志管理',
| link:'/operate/log',
| },
| ]
| },
| {
| id:21,
| title:'视频巡查',
| children:[
| {
| id:22,
| label:'视频巡查',
| link:'/video',
| },
| ]
| },
| {
| id:23,
| title:'智能巡查',
| children:[
| {
| id:24,
| label:'预警研判',
| link:'/studyJudge',
| },
| {
| id:25,
| label:'违规检索',
| link:'/illegalSearch',
| },
| {
| id:26,
| label:'趋势分析',
| link:'/trendAnalysis',
| },
| {
| id:27,
| label:'违章统计',
| link:'/trendAnalysis',
| },
| {
| id:28,
| label:'违法统计',
| link:'/typeStatistics',
| },
| ]
| },
| ]
| }
| },
| watch: {
| '$route.path'(newPath, oldPath) {
| newPath === '/home' ? this.navFlag = true : this.navFlag = false
| }
| },
| methods:{
| handleJump(url){
| const baseURL = '/home'
| console.log(url)
| // 路由跳转
| this.$router.push({path:baseURL+url})
| }
| }
| };
| </script>
| <style lang="scss">
| .el-main {
| min-width: 1024px;
| padding: 0;
|
| .content {
| padding: 11px;
| height: 100%;
| .page-nav{
| padding: 40px 100px;
| text-align: left;
| .nav-item{
| line-height: 60px;
| .nav-title{
| color: #4b9bb7;
| }
| .nav-child{
| display: flex;
| // justify-content: space-between;
| flex-wrap: wrap;
| .el-link{
| justify-content: flex-start;
| padding-left: 30px;
| }
| .child-item{
| width: 24%;
| text-align: left;
| margin-bottom: 22px;
| margin-right: 1%;
| border: 1px solid #17324c;
| color: #4b9bb7;
| position: relative;
| &::after{
| content: '';
| display: block;
| position: absolute;
| left: 15px;
| height: 8px;
| width: 8px;
| border-radius: 50%;
| background-color: #4b9bb7;
| }
| }
| }
| }
| }
| }
| }
| </style>
|
|