af-mobile-client-vue3 1.3.34 → 1.3.36
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/.claude/settings.local.json +6 -3
- package/mock/modules/user.mock.ts +1 -1
- package/package.json +1 -1
- package/src/components/data/UserDetail/recordEntries.ts +14 -14
- package/src/components/data/XFormItem/index.vue +1 -0
- package/src/router/routes.ts +135 -140
- package/src/utils/http/index.ts +1 -1
- package/vite.config.ts +0 -5
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
2
3
|
"permissions": {
|
|
3
4
|
"allow": [
|
|
5
|
+
"Bash(rm:*)",
|
|
4
6
|
"Bash(pnpm typecheck:*)",
|
|
5
7
|
"Bash(pnpm lint:*)",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
+
"Bash(pnpm build:*)",
|
|
9
|
+
"Bash(timeout 10s pnpm dev)",
|
|
10
|
+
"Bash(true)"
|
|
8
11
|
],
|
|
9
12
|
"deny": []
|
|
10
13
|
}
|
|
11
|
-
}
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
21
21
|
textColor: 'text-gray-500',
|
|
22
22
|
dateLabel: '操作记录',
|
|
23
23
|
route: 'OperateRecords',
|
|
24
|
-
path: '/
|
|
24
|
+
path: '/OperateRecords',
|
|
25
25
|
forMeterTypes: ['气量卡表', '金额卡表', '物联网表', '机表'],
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -32,7 +32,7 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
32
32
|
textColor: 'text-blue-500',
|
|
33
33
|
dateLabel: '缴费',
|
|
34
34
|
route: 'PaymentRecords',
|
|
35
|
-
path: '/
|
|
35
|
+
path: '/PaymentRecords',
|
|
36
36
|
forMeterTypes: ['气量卡表', '金额卡表', '物联网表', '机表'],
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -43,7 +43,7 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
43
43
|
textColor: 'text-green-500',
|
|
44
44
|
dateLabel: '抄表',
|
|
45
45
|
route: 'MeterRecords',
|
|
46
|
-
path: '/
|
|
46
|
+
path: '/MeterRecords',
|
|
47
47
|
forMeterTypes: ['物联网表', '机表'],
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -54,7 +54,7 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
54
54
|
textColor: 'text-purple-500',
|
|
55
55
|
dateLabel: '过户',
|
|
56
56
|
route: 'TransferRecords',
|
|
57
|
-
path: '/
|
|
57
|
+
path: '/TransferRecords',
|
|
58
58
|
forMeterTypes: ['气量卡表', '金额卡表', '物联网表', '机表'],
|
|
59
59
|
},
|
|
60
60
|
{
|
|
@@ -65,7 +65,7 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
65
65
|
textColor: 'text-orange-500',
|
|
66
66
|
dateLabel: '换表',
|
|
67
67
|
route: 'ReplacementRecords',
|
|
68
|
-
path: '/
|
|
68
|
+
path: '/ReplacementRecords',
|
|
69
69
|
forMeterTypes: ['气量卡表', '金额卡表', '物联网表', '机表'],
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -76,7 +76,7 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
76
76
|
textColor: 'text-indigo-500',
|
|
77
77
|
dateLabel: '其他收费',
|
|
78
78
|
route: 'OtherChargeRecords',
|
|
79
|
-
path: '/
|
|
79
|
+
path: '/OtherChargeRecords',
|
|
80
80
|
forMeterTypes: ['气量卡表', '金额卡表', '物联网表', '机表'],
|
|
81
81
|
},
|
|
82
82
|
{
|
|
@@ -87,7 +87,7 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
87
87
|
textColor: 'text-red-500',
|
|
88
88
|
dateLabel: '异常报警',
|
|
89
89
|
route: 'AbnormalAlarmRecords',
|
|
90
|
-
path: '/
|
|
90
|
+
path: '/AbnormalAlarmRecords',
|
|
91
91
|
forMeterTypes: ['物联网表', '机表'],
|
|
92
92
|
},
|
|
93
93
|
{
|
|
@@ -98,7 +98,7 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
98
98
|
textColor: 'text-orange-500',
|
|
99
99
|
dateLabel: '补卡',
|
|
100
100
|
route: 'CardReplacementRecords',
|
|
101
|
-
path: '/
|
|
101
|
+
path: '/CardReplacementRecords',
|
|
102
102
|
forMeterTypes: ['气量卡表', '金额卡表', '机表'],
|
|
103
103
|
},
|
|
104
104
|
{
|
|
@@ -109,18 +109,18 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
109
109
|
textColor: 'text-purple-500',
|
|
110
110
|
dateLabel: '变更',
|
|
111
111
|
route: 'ChangeRecords',
|
|
112
|
-
path: '/
|
|
112
|
+
path: '/ChangeRecords',
|
|
113
113
|
forMeterTypes: ['气量卡表', '金额卡表', '物联网表', '机表'],
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
id: 'commandView',
|
|
117
|
-
title: '
|
|
117
|
+
title: '指令查看',
|
|
118
118
|
icon: 'i-fa-solid-eye',
|
|
119
119
|
bgColor: 'bg-blue-100',
|
|
120
120
|
textColor: 'text-blue-500',
|
|
121
121
|
dateLabel: '指令查看',
|
|
122
122
|
route: 'CommandViewRecords',
|
|
123
|
-
path: '/
|
|
123
|
+
path: '/CommandViewRecords',
|
|
124
124
|
forMeterTypes: ['物联网表', '机表'],
|
|
125
125
|
},
|
|
126
126
|
{
|
|
@@ -131,7 +131,7 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
131
131
|
textColor: 'text-green-500',
|
|
132
132
|
dateLabel: '流水',
|
|
133
133
|
route: 'GasCompensationRecords',
|
|
134
|
-
path: '/
|
|
134
|
+
path: '/GasCompensationRecords',
|
|
135
135
|
forMeterTypes: ['气量卡表', '金额卡表', '物联网表', '机表'],
|
|
136
136
|
},
|
|
137
137
|
{
|
|
@@ -142,7 +142,7 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
142
142
|
textColor: 'text-gray-500',
|
|
143
143
|
dateLabel: '表具采集',
|
|
144
144
|
route: 'InstrumentCollectionRecords',
|
|
145
|
-
path: '/
|
|
145
|
+
path: '/InstrumentCollectionRecords',
|
|
146
146
|
forMeterTypes: ['物联网表', '机表'],
|
|
147
147
|
},
|
|
148
148
|
{
|
|
@@ -153,7 +153,7 @@ export const defaultRecordEntries: RecordEntry[] = [
|
|
|
153
153
|
textColor: 'text-red-500',
|
|
154
154
|
dateLabel: '价格调整',
|
|
155
155
|
route: 'PriceAdjustmentRecords',
|
|
156
|
-
path: '/
|
|
156
|
+
path: '/PriceAdjustmentRecords',
|
|
157
157
|
forMeterTypes: ['气量卡表', '金额卡表', '物联网表', '机表'],
|
|
158
158
|
},
|
|
159
159
|
]
|
|
@@ -882,6 +882,7 @@ function findOptionInTree(options, value) {
|
|
|
882
882
|
<VanField
|
|
883
883
|
v-if="attr.type === 'radio' && mode !== '查询' && showItem"
|
|
884
884
|
name="radio"
|
|
885
|
+
center
|
|
885
886
|
:placeholder="attr.placeholder ? attr.placeholder : `请选择${attr.name}`"
|
|
886
887
|
:label="labelData"
|
|
887
888
|
:label-align="labelAlign"
|
package/src/router/routes.ts
CHANGED
|
@@ -207,147 +207,142 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
207
207
|
},
|
|
208
208
|
],
|
|
209
209
|
},
|
|
210
|
+
|
|
211
|
+
// 用户记录相关路由
|
|
210
212
|
{
|
|
211
|
-
path: '/
|
|
212
|
-
name: '
|
|
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
|
-
component: PriceAdjustmentRecords,
|
|
345
|
-
meta: {
|
|
346
|
-
title: '价格调整记录',
|
|
347
|
-
keepAlive: false,
|
|
348
|
-
},
|
|
349
|
-
},
|
|
350
|
-
],
|
|
213
|
+
path: '/OperateRecords',
|
|
214
|
+
name: 'OperateRecords',
|
|
215
|
+
component: OperateRecords,
|
|
216
|
+
meta: {
|
|
217
|
+
title: '操作记录',
|
|
218
|
+
keepAlive: false,
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
path: '/PaymentRecords',
|
|
223
|
+
name: 'PaymentRecords',
|
|
224
|
+
component: PaymentRecords,
|
|
225
|
+
meta: {
|
|
226
|
+
title: '缴费记录',
|
|
227
|
+
keepAlive: false,
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
path: '/MeterRecords',
|
|
232
|
+
name: 'MeterRecords',
|
|
233
|
+
component: MeterRecords,
|
|
234
|
+
meta: {
|
|
235
|
+
title: '抄表记录',
|
|
236
|
+
keepAlive: false,
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
path: '/TransferRecords',
|
|
241
|
+
name: 'TransferRecords',
|
|
242
|
+
component: TransferRecords,
|
|
243
|
+
meta: {
|
|
244
|
+
title: '过户记录',
|
|
245
|
+
keepAlive: false,
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
path: '/SafetyRecords',
|
|
250
|
+
name: 'SafetyRecords',
|
|
251
|
+
component: SafetyRecords,
|
|
252
|
+
meta: {
|
|
253
|
+
title: '安检记录',
|
|
254
|
+
keepAlive: false,
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
path: '/ReplacementRecords',
|
|
259
|
+
name: 'ReplacementRecords',
|
|
260
|
+
component: ReplacementRecords,
|
|
261
|
+
meta: {
|
|
262
|
+
title: '换表记录',
|
|
263
|
+
keepAlive: false,
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
path: '/OtherChargeRecords',
|
|
268
|
+
name: 'OtherChargeRecords',
|
|
269
|
+
component: OtherChargeRecords,
|
|
270
|
+
meta: {
|
|
271
|
+
title: '其他收费记录',
|
|
272
|
+
keepAlive: false,
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
path: '/TransactionRecords',
|
|
277
|
+
name: 'TransactionRecords',
|
|
278
|
+
component: TransactionRecords,
|
|
279
|
+
meta: {
|
|
280
|
+
title: '流水记录',
|
|
281
|
+
keepAlive: false,
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
path: '/AbnormalAlarmRecords',
|
|
286
|
+
name: 'AbnormalAlarmRecords',
|
|
287
|
+
component: AbnormalAlarmRecords,
|
|
288
|
+
meta: {
|
|
289
|
+
title: '异常报警记录',
|
|
290
|
+
keepAlive: false,
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
path: '/CardReplacementRecords',
|
|
295
|
+
name: 'CardReplacementRecords',
|
|
296
|
+
component: CardReplacementRecords,
|
|
297
|
+
meta: {
|
|
298
|
+
title: '补卡记录',
|
|
299
|
+
keepAlive: false,
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
path: '/ChangeRecords',
|
|
304
|
+
name: 'ChangeRecords',
|
|
305
|
+
component: ChangeRecords,
|
|
306
|
+
meta: {
|
|
307
|
+
title: '变更记录',
|
|
308
|
+
keepAlive: false,
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
path: '/CommandViewRecords',
|
|
313
|
+
name: 'CommandViewRecords',
|
|
314
|
+
component: CommandViewRecords,
|
|
315
|
+
meta: {
|
|
316
|
+
title: '指令查看记录',
|
|
317
|
+
keepAlive: false,
|
|
318
|
+
},
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
path: '/GasCompensationRecords',
|
|
322
|
+
name: 'GasCompensationRecords',
|
|
323
|
+
component: GasCompensationRecords,
|
|
324
|
+
meta: {
|
|
325
|
+
title: '补气记录',
|
|
326
|
+
keepAlive: false,
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
path: '/InstrumentCollectionRecords',
|
|
331
|
+
name: 'InstrumentCollectionRecords',
|
|
332
|
+
component: InstrumentCollectionRecords,
|
|
333
|
+
meta: {
|
|
334
|
+
title: '表具采集记录',
|
|
335
|
+
keepAlive: false,
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
path: '/PriceAdjustmentRecords',
|
|
340
|
+
name: 'PriceAdjustmentRecords',
|
|
341
|
+
component: PriceAdjustmentRecords,
|
|
342
|
+
meta: {
|
|
343
|
+
title: '价格调整记录',
|
|
344
|
+
keepAlive: false,
|
|
345
|
+
},
|
|
351
346
|
},
|
|
352
347
|
{
|
|
353
348
|
path: '/login',
|
package/src/utils/http/index.ts
CHANGED
package/vite.config.ts
CHANGED
|
@@ -30,11 +30,6 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
|
|
30
30
|
'.aofengcloud.com',
|
|
31
31
|
],
|
|
32
32
|
proxy: Object.assign({
|
|
33
|
-
'/api/af-auth/login': {
|
|
34
|
-
target: mockServer,
|
|
35
|
-
ws: false,
|
|
36
|
-
changeOrigin: true,
|
|
37
|
-
},
|
|
38
33
|
'/api/af-system/user': {
|
|
39
34
|
target: 'http://127.0.0.1:9002/',
|
|
40
35
|
rewrite: (path: string) => path.replace(/^\/api\/af-system\//, '/'),
|