af-mobile-client-vue3 1.4.47 → 1.4.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -4
- package/public/favicon.svg +4 -4
- package/scripts/verifyCommit.js +19 -19
- package/src/assets/img/component/liuli.png +0 -0
- package/src/components/common/otherCharge/ChargePrintSelectorAndRemarks.vue +137 -137
- package/src/components/common/otherCharge/CodePayment.vue +357 -357
- package/src/components/common/otherCharge/FileUploader.vue +602 -602
- package/src/components/common/otherCharge/GridFileUploader.vue +846 -846
- package/src/components/common/otherCharge/PaymentMethodSelector.vue +202 -202
- package/src/components/common/otherCharge/PaymentMethodSelectorCard.vue +45 -45
- package/src/components/common/otherCharge/ReceiptModal.vue +273 -273
- package/src/components/common/otherCharge/index.ts +43 -43
- package/src/components/data/OtherCharge/OtherChargeItemModal.vue +547 -547
- package/src/components/data/UserDetail/types.ts +1 -1
- package/src/components/data/XReportGrid/XAddReport/index.ts +1 -1
- package/src/components/data/XReportGrid/XReportDrawer/index.ts +1 -1
- package/src/components/data/XTag/index.vue +10 -10
- package/src/components/layout/TabBarLayout/index.vue +40 -40
- package/src/hooks/useCommon.ts +9 -9
- package/src/main.ts +1 -2
- package/src/plugins/AppData.ts +38 -38
- package/src/router/invoiceRoutes.ts +33 -33
- package/src/router/routes.ts +433 -427
- package/src/services/api/common.ts +109 -109
- package/src/services/api/manage.ts +8 -8
- package/src/services/api/search.ts +16 -16
- package/src/services/restTools.ts +56 -56
- package/src/utils/authority-utils.ts +84 -84
- package/src/utils/crypto.ts +39 -39
- package/src/utils/queryFormDefaultRangePicker.ts +57 -57
- package/src/utils/runEvalFunction.ts +13 -13
- package/src/utils/wechat.ts +4 -4
- package/src/views/component/EvaluateRecordView/index.vue +40 -40
- package/src/views/component/MateChat/MateChatView.vue +258 -0
- package/src/views/component/MateChat/apiService.ts +104 -0
- package/src/views/component/XCellDetailView/index.vue +217 -217
- package/src/views/component/XCellListView/index.vue +107 -138
- package/src/views/component/XFormGroupView/index.vue +78 -82
- package/src/views/component/XFormView/index.vue +41 -46
- package/src/views/component/XReportFormIframeView/index.vue +47 -47
- package/src/views/component/XReportFormView/index.vue +13 -13
- package/src/views/component/XSignatureView/index.vue +50 -50
- package/src/views/component/index.vue +4 -0
- package/src/views/component/notice.vue +46 -46
- package/src/views/component/topNav.vue +36 -36
- package/src/views/invoiceShow/index.vue +61 -61
- package/src/views/user/login/index.vue +22 -22
- package/vite.config.ts +6 -0
package/src/router/routes.ts
CHANGED
|
@@ -1,427 +1,433 @@
|
|
|
1
|
-
import type { RouteRecordRaw } from 'vue-router'
|
|
2
|
-
import XForm from '@af-mobile-client-vue3/components/data/XForm/index.vue'
|
|
3
|
-
import XReport from '@af-mobile-client-vue3/components/data/XReportGrid/XReport.vue'
|
|
4
|
-
import GridView from '@af-mobile-client-vue3/layout/GridView/index.vue'
|
|
5
|
-
import { ACCESS_TOKEN, PLATFORM_TYPE, USER_TYPE } from '@af-mobile-client-vue3/stores/mutation-type'
|
|
6
|
-
import { getPlatformRoutePrefix } from '@af-mobile-client-vue3/types/platform'
|
|
7
|
-
import { createStorage } from '@af-mobile-client-vue3/utils/Storage'
|
|
8
|
-
import Forbidden from '@af-mobile-client-vue3/views/common/Forbidden.vue'
|
|
9
|
-
import NotFound from '@af-mobile-client-vue3/views/common/NotFound.vue'
|
|
10
|
-
import EvaluateRecordView from '@af-mobile-client-vue3/views/component/EvaluateRecordView/index.vue'
|
|
11
|
-
import IconifyView from '@af-mobile-client-vue3/views/component/IconifyView/index.vue'
|
|
12
|
-
import ComponentView from '@af-mobile-client-vue3/views/component/index.vue'
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
//
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
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
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
},
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
1
|
+
import type { RouteRecordRaw } from 'vue-router'
|
|
2
|
+
import XForm from '@af-mobile-client-vue3/components/data/XForm/index.vue'
|
|
3
|
+
import XReport from '@af-mobile-client-vue3/components/data/XReportGrid/XReport.vue'
|
|
4
|
+
import GridView from '@af-mobile-client-vue3/layout/GridView/index.vue'
|
|
5
|
+
import { ACCESS_TOKEN, PLATFORM_TYPE, USER_TYPE } from '@af-mobile-client-vue3/stores/mutation-type'
|
|
6
|
+
import { getPlatformRoutePrefix } from '@af-mobile-client-vue3/types/platform'
|
|
7
|
+
import { createStorage } from '@af-mobile-client-vue3/utils/Storage'
|
|
8
|
+
import Forbidden from '@af-mobile-client-vue3/views/common/Forbidden.vue'
|
|
9
|
+
import NotFound from '@af-mobile-client-vue3/views/common/NotFound.vue'
|
|
10
|
+
import EvaluateRecordView from '@af-mobile-client-vue3/views/component/EvaluateRecordView/index.vue'
|
|
11
|
+
import IconifyView from '@af-mobile-client-vue3/views/component/IconifyView/index.vue'
|
|
12
|
+
import ComponentView from '@af-mobile-client-vue3/views/component/index.vue'
|
|
13
|
+
import MateChatView from '@af-mobile-client-vue3/views/component/MateChat/MateChatView.vue'
|
|
14
|
+
import OtherChargeForm from '@af-mobile-client-vue3/views/component/OtherCharge/index.vue'
|
|
15
|
+
import UserDetailView from '@af-mobile-client-vue3/views/component/UserDetailView/index.vue'
|
|
16
|
+
import UserDetailPage from '@af-mobile-client-vue3/views/component/UserDetailView/UserDetailPage.vue'
|
|
17
|
+
import XCellDetailView from '@af-mobile-client-vue3/views/component/XCellDetailView/index.vue'
|
|
18
|
+
import XCellListView from '@af-mobile-client-vue3/views/component/XCellListView/index.vue'
|
|
19
|
+
import XFormAppraiseView from '@af-mobile-client-vue3/views/component/XFormAppraiseView/index.vue'
|
|
20
|
+
import XFormGroupView from '@af-mobile-client-vue3/views/component/XFormGroupView/index.vue'
|
|
21
|
+
import XFormView from '@af-mobile-client-vue3/views/component/XFormView/index.vue'
|
|
22
|
+
import XOlMapView from '@af-mobile-client-vue3/views/component/XOlMapView/index.vue'
|
|
23
|
+
import XLocationPicker from '@af-mobile-client-vue3/views/component/XOlMapView/XLocationPicker/index.vue'
|
|
24
|
+
import XReportFormIframeView from '@af-mobile-client-vue3/views/component/XReportFormIframeView/index.vue'
|
|
25
|
+
import XReportFormView from '@af-mobile-client-vue3/views/component/XReportFormView/index.vue'
|
|
26
|
+
import XReportGridView from '@af-mobile-client-vue3/views/component/XReportGridView/index.vue'
|
|
27
|
+
import XRequestView from '@af-mobile-client-vue3/views/component/XRequestView/index.vue'
|
|
28
|
+
import XSignatureView from '@af-mobile-client-vue3/views/component/XSignatureView/index.vue'
|
|
29
|
+
import AuthLoading from '@af-mobile-client-vue3/views/loading/AuthLoading.vue'
|
|
30
|
+
import login from '@af-mobile-client-vue3/views/user/login/index.vue'
|
|
31
|
+
import my from '@af-mobile-client-vue3/views/user/my/index.vue'
|
|
32
|
+
import register from '@af-mobile-client-vue3/views/user/register/index.vue'
|
|
33
|
+
import AbnormalAlarmRecords from '@af-mobile-client-vue3/views/userRecords/AbnormalAlarmRecords.vue'
|
|
34
|
+
import CardReplacementRecords from '@af-mobile-client-vue3/views/userRecords/CardReplacementRecords.vue'
|
|
35
|
+
import ChangeRecords from '@af-mobile-client-vue3/views/userRecords/ChangeRecords.vue'
|
|
36
|
+
import CommandViewRecords from '@af-mobile-client-vue3/views/userRecords/CommandViewRecords.vue'
|
|
37
|
+
import GasCompensationRecords from '@af-mobile-client-vue3/views/userRecords/GasCompensationRecords.vue'
|
|
38
|
+
import InstrumentCollectionRecords from '@af-mobile-client-vue3/views/userRecords/InstrumentCollectionRecords.vue'
|
|
39
|
+
import MeterRecords from '@af-mobile-client-vue3/views/userRecords/MeterRecords.vue'
|
|
40
|
+
import OperateRecords from '@af-mobile-client-vue3/views/userRecords/OperateRecords.vue'
|
|
41
|
+
import OtherChargeRecords from '@af-mobile-client-vue3/views/userRecords/OtherChargeRecords.vue'
|
|
42
|
+
import PaymentRecords from '@af-mobile-client-vue3/views/userRecords/PaymentRecords.vue'
|
|
43
|
+
import PriceAdjustmentRecords from '@af-mobile-client-vue3/views/userRecords/PriceAdjustmentRecords.vue'
|
|
44
|
+
import ReplacementRecords from '@af-mobile-client-vue3/views/userRecords/ReplacementRecords.vue'
|
|
45
|
+
import SafetyRecords from '@af-mobile-client-vue3/views/userRecords/SafetyRecords.vue'
|
|
46
|
+
import TransactionRecords from '@af-mobile-client-vue3/views/userRecords/TransactionRecords.vue'
|
|
47
|
+
import TransferRecords from '@af-mobile-client-vue3/views/userRecords/TransferRecords.vue'
|
|
48
|
+
import externalUserRoutes from './external-routes'
|
|
49
|
+
|
|
50
|
+
const routes: Array<RouteRecordRaw> = [
|
|
51
|
+
{
|
|
52
|
+
path: '/',
|
|
53
|
+
name: 'root',
|
|
54
|
+
redirect: () => {
|
|
55
|
+
// 动态重定向逻辑:根据用户类型决定重定向目标
|
|
56
|
+
// 直接从 localStorage 获取数据,避免 Pinia 初始化时序问题
|
|
57
|
+
const Storage = createStorage({ storage: localStorage })
|
|
58
|
+
const token = Storage.get(ACCESS_TOKEN, '')
|
|
59
|
+
const userType = Storage.get(USER_TYPE, null)
|
|
60
|
+
const platformType = Storage.get(PLATFORM_TYPE, null)
|
|
61
|
+
|
|
62
|
+
if (token && userType === 'EXTERNAL') {
|
|
63
|
+
// 外部用户:尝试获取平台路由前缀
|
|
64
|
+
const platformPrefix = getPlatformRoutePrefix(platformType)
|
|
65
|
+
|
|
66
|
+
if (platformPrefix && platformPrefix !== '/ex/') {
|
|
67
|
+
return platformPrefix
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
// 默认重定向到 Component(系统用户或未登录用户)
|
|
71
|
+
return { name: 'Component' }
|
|
72
|
+
},
|
|
73
|
+
children: [
|
|
74
|
+
{
|
|
75
|
+
path: '/XReportFormIframeView',
|
|
76
|
+
name: 'XReportFormIframeView',
|
|
77
|
+
component: XReportFormIframeView,
|
|
78
|
+
meta: {
|
|
79
|
+
requiresAuth: true,
|
|
80
|
+
allowExternalUser: false,
|
|
81
|
+
title: '表单iframe视图',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
path: '/Components/XForm',
|
|
86
|
+
name: 'XForm',
|
|
87
|
+
component: XForm,
|
|
88
|
+
props: route => ({
|
|
89
|
+
groupFormItems: JSON.parse(decodeURIComponent(route.query.groupFormItems as string)),
|
|
90
|
+
serviceName: route.query.serviceName,
|
|
91
|
+
formData: JSON.parse(decodeURIComponent(route.query.formData as string)),
|
|
92
|
+
mode: route.query.mode,
|
|
93
|
+
}),
|
|
94
|
+
meta: {
|
|
95
|
+
requiresAuth: true,
|
|
96
|
+
allowExternalUser: false,
|
|
97
|
+
title: '新增/修改表单',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
path: '/Component',
|
|
104
|
+
name: 'Component',
|
|
105
|
+
redirect: { name: 'ComponentView' },
|
|
106
|
+
children: [
|
|
107
|
+
{
|
|
108
|
+
path: '/Component/main',
|
|
109
|
+
name: 'ComponentView',
|
|
110
|
+
component: ComponentView,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
path: '/Component/XCellListView',
|
|
114
|
+
name: 'XCellListView',
|
|
115
|
+
component: XCellListView,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
path: '/Component/XCellDetailView/:id',
|
|
119
|
+
name: 'XCellDetailView',
|
|
120
|
+
component: XCellDetailView,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
path: '/Component/XFormGroupView',
|
|
124
|
+
name: 'XFormGroupView',
|
|
125
|
+
component: XFormGroupView,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
path: '/Component/XReportFormView',
|
|
129
|
+
name: 'XReportFormView',
|
|
130
|
+
component: XReportFormView,
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
path: '/Component/XOlMapView',
|
|
134
|
+
name: 'XOlMapView',
|
|
135
|
+
component: XOlMapView,
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
path: '/Component/XOlMapView/XLocationPicker',
|
|
139
|
+
name: 'XLocationPicker',
|
|
140
|
+
component: XLocationPicker,
|
|
141
|
+
},
|
|
142
|
+
// {
|
|
143
|
+
// path: '/Components/XForm',
|
|
144
|
+
// name: 'XForm',
|
|
145
|
+
// component: XForm,
|
|
146
|
+
// props: route => ({
|
|
147
|
+
// groupFormItems: JSON.parse(decodeURIComponent(route.query.groupFormItems as string)),
|
|
148
|
+
// serviceName: route.query.serviceName,
|
|
149
|
+
// formData: JSON.parse(decodeURIComponent(route.query.formData as string)),
|
|
150
|
+
// mode: route.query.mode,
|
|
151
|
+
// }),
|
|
152
|
+
// meta:{ title: '新增/修改表单' }
|
|
153
|
+
// },
|
|
154
|
+
{
|
|
155
|
+
path: '/Component/XFormAppraiseView/:id/:openid',
|
|
156
|
+
name: 'XFormAppraiseView',
|
|
157
|
+
component: XFormAppraiseView,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
path: '/Component/XFormView',
|
|
161
|
+
name: 'XFormView',
|
|
162
|
+
component: XFormView,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
path: '/Component/OtherCharge',
|
|
166
|
+
name: 'OtherChargeForm',
|
|
167
|
+
component: OtherChargeForm,
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
path: '/Component/EvaluateRecordView',
|
|
171
|
+
name: 'EvaluateRecordView',
|
|
172
|
+
component: EvaluateRecordView,
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
path: '/Component/XSignatureView',
|
|
176
|
+
name: 'XSignatureView',
|
|
177
|
+
component: XSignatureView,
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
path: '/Component/XReportGridView',
|
|
181
|
+
name: 'XReportGridView',
|
|
182
|
+
component: XReportGridView,
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
path: '/Component/XReport',
|
|
186
|
+
name: 'XReport',
|
|
187
|
+
component: XReport,
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
path: '/GridView',
|
|
191
|
+
name: 'GridView',
|
|
192
|
+
component: GridView,
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
path: '/Component/XRequestView',
|
|
196
|
+
name: 'XRequestView',
|
|
197
|
+
component: XRequestView,
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
path: '/Component/IconifyView',
|
|
201
|
+
name: 'IconifyView',
|
|
202
|
+
component: IconifyView,
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
path: '/Component/UserDetailView',
|
|
206
|
+
name: 'UserDetailView',
|
|
207
|
+
component: UserDetailView,
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
path: '/Component/UserDetail/:userInfoId',
|
|
211
|
+
name: 'UserDetailRoute',
|
|
212
|
+
component: UserDetailPage,
|
|
213
|
+
meta: { title: '用户详情' },
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
path: '/Component/MateChatView',
|
|
217
|
+
name: 'MateChatView',
|
|
218
|
+
component: MateChatView,
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
// 用户记录相关路由
|
|
224
|
+
{
|
|
225
|
+
path: '/OperateRecords',
|
|
226
|
+
name: 'OperateRecords',
|
|
227
|
+
component: OperateRecords,
|
|
228
|
+
meta: {
|
|
229
|
+
title: '操作记录',
|
|
230
|
+
keepAlive: false,
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
path: '/PaymentRecords',
|
|
235
|
+
name: 'PaymentRecords',
|
|
236
|
+
component: PaymentRecords,
|
|
237
|
+
meta: {
|
|
238
|
+
title: '缴费记录',
|
|
239
|
+
keepAlive: false,
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
path: '/MeterRecords',
|
|
244
|
+
name: 'MeterRecords',
|
|
245
|
+
component: MeterRecords,
|
|
246
|
+
meta: {
|
|
247
|
+
title: '抄表记录',
|
|
248
|
+
keepAlive: false,
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
path: '/TransferRecords',
|
|
253
|
+
name: 'TransferRecords',
|
|
254
|
+
component: TransferRecords,
|
|
255
|
+
meta: {
|
|
256
|
+
title: '过户记录',
|
|
257
|
+
keepAlive: false,
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
path: '/SafetyRecords',
|
|
262
|
+
name: 'SafetyRecords',
|
|
263
|
+
component: SafetyRecords,
|
|
264
|
+
meta: {
|
|
265
|
+
title: '安检记录',
|
|
266
|
+
keepAlive: false,
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
path: '/ReplacementRecords',
|
|
271
|
+
name: 'ReplacementRecords',
|
|
272
|
+
component: ReplacementRecords,
|
|
273
|
+
meta: {
|
|
274
|
+
title: '换表记录',
|
|
275
|
+
keepAlive: false,
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
path: '/OtherChargeRecords',
|
|
280
|
+
name: 'OtherChargeRecords',
|
|
281
|
+
component: OtherChargeRecords,
|
|
282
|
+
meta: {
|
|
283
|
+
title: '其他收费记录',
|
|
284
|
+
keepAlive: false,
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
path: '/TransactionRecords',
|
|
289
|
+
name: 'TransactionRecords',
|
|
290
|
+
component: TransactionRecords,
|
|
291
|
+
meta: {
|
|
292
|
+
title: '流水记录',
|
|
293
|
+
keepAlive: false,
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
path: '/AbnormalAlarmRecords',
|
|
298
|
+
name: 'AbnormalAlarmRecords',
|
|
299
|
+
component: AbnormalAlarmRecords,
|
|
300
|
+
meta: {
|
|
301
|
+
title: '异常报警记录',
|
|
302
|
+
keepAlive: false,
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
path: '/CardReplacementRecords',
|
|
307
|
+
name: 'CardReplacementRecords',
|
|
308
|
+
component: CardReplacementRecords,
|
|
309
|
+
meta: {
|
|
310
|
+
title: '补卡记录',
|
|
311
|
+
keepAlive: false,
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
path: '/ChangeRecords',
|
|
316
|
+
name: 'ChangeRecords',
|
|
317
|
+
component: ChangeRecords,
|
|
318
|
+
meta: {
|
|
319
|
+
title: '变更记录',
|
|
320
|
+
keepAlive: false,
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
path: '/CommandViewRecords',
|
|
325
|
+
name: 'CommandViewRecords',
|
|
326
|
+
component: CommandViewRecords,
|
|
327
|
+
meta: {
|
|
328
|
+
title: '指令查看记录',
|
|
329
|
+
keepAlive: false,
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
path: '/GasCompensationRecords',
|
|
334
|
+
name: 'GasCompensationRecords',
|
|
335
|
+
component: GasCompensationRecords,
|
|
336
|
+
meta: {
|
|
337
|
+
title: '补气记录',
|
|
338
|
+
keepAlive: false,
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
path: '/InstrumentCollectionRecords',
|
|
343
|
+
name: 'InstrumentCollectionRecords',
|
|
344
|
+
component: InstrumentCollectionRecords,
|
|
345
|
+
meta: {
|
|
346
|
+
title: '表具采集记录',
|
|
347
|
+
keepAlive: false,
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
path: '/PriceAdjustmentRecords',
|
|
352
|
+
name: 'PriceAdjustmentRecords',
|
|
353
|
+
component: PriceAdjustmentRecords,
|
|
354
|
+
meta: {
|
|
355
|
+
title: '价格调整记录',
|
|
356
|
+
keepAlive: false,
|
|
357
|
+
},
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
path: '/login',
|
|
361
|
+
name: 'login',
|
|
362
|
+
component: login,
|
|
363
|
+
meta: {
|
|
364
|
+
requiresAuth: false,
|
|
365
|
+
allowExternalUser: true,
|
|
366
|
+
title: '用户登录',
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
path: '/loading',
|
|
371
|
+
name: 'AuthLoading',
|
|
372
|
+
component: AuthLoading,
|
|
373
|
+
meta: {
|
|
374
|
+
requiresAuth: false,
|
|
375
|
+
allowExternalUser: true,
|
|
376
|
+
title: '正在登录中...',
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
|
|
380
|
+
{
|
|
381
|
+
path: '/user/my',
|
|
382
|
+
name: 'userProfile',
|
|
383
|
+
component: my,
|
|
384
|
+
meta: {
|
|
385
|
+
requiresAuth: true,
|
|
386
|
+
allowExternalUser: false,
|
|
387
|
+
title: '个人中心',
|
|
388
|
+
},
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
path: '/register/:strategyId?/:openId?',
|
|
392
|
+
name: 'register',
|
|
393
|
+
component: register,
|
|
394
|
+
meta: {
|
|
395
|
+
requiresAuth: false,
|
|
396
|
+
allowExternalUser: true,
|
|
397
|
+
title: '用户注册',
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
...externalUserRoutes,
|
|
401
|
+
{
|
|
402
|
+
path: '/403',
|
|
403
|
+
name: '403',
|
|
404
|
+
component: Forbidden,
|
|
405
|
+
meta: {
|
|
406
|
+
requiresAuth: false,
|
|
407
|
+
allowExternalUser: true,
|
|
408
|
+
title: '禁止访问',
|
|
409
|
+
},
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
path: '/404',
|
|
413
|
+
name: '404',
|
|
414
|
+
component: NotFound,
|
|
415
|
+
meta: {
|
|
416
|
+
requiresAuth: false,
|
|
417
|
+
allowExternalUser: true,
|
|
418
|
+
title: '页面未找到',
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
path: '/:pathMatch(.*)',
|
|
423
|
+
redirect: {
|
|
424
|
+
name: '404',
|
|
425
|
+
},
|
|
426
|
+
meta: {
|
|
427
|
+
requiresAuth: false,
|
|
428
|
+
allowExternalUser: true,
|
|
429
|
+
},
|
|
430
|
+
},
|
|
431
|
+
]
|
|
432
|
+
|
|
433
|
+
export default routes
|