af-mobile-client-vue3 1.4.63 → 1.4.64
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/certs/127.0.0.1+2-key.pem +28 -0
- package/certs/127.0.0.1+2.pem +27 -0
- package/mock/modules/prose.mock.ts.timestamp-1758877157774.mjs +53 -0
- package/mock/modules/user.mock.ts.timestamp-1758877157774.mjs +97 -0
- package/package.json +120 -120
- package/src/api/user/index.ts +45 -45
- 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/core/ImageUploader/index.vue +510 -510
- package/src/components/data/OtherCharge/OtherChargeItemModal.vue +547 -547
- package/src/router/guards.ts +131 -131
- package/src/services/api/Login.ts +6 -6
- package/src/services/v3Api.ts +170 -170
- package/src/types/platform.ts +194 -194
- package/src/utils/platform-auth.ts +150 -150
- package/src/utils/queryFormDefaultRangePicker.ts +57 -57
- 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/external/index.vue +158 -158
- package/src/views/loading/AuthLoading.vue +395 -395
- package/src/views/user/register/index.vue +958 -958
- package/vite.config.ts +122 -122
package/vite.config.ts
CHANGED
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
import type { ConfigEnv, UserConfig } from 'vite'
|
|
2
|
-
import path from 'node:path'
|
|
3
|
-
import process from 'node:process'
|
|
4
|
-
import { loadEnv } from 'vite'
|
|
5
|
-
import { createVitePlugins } from './build/vite'
|
|
6
|
-
import { exclude, include } from './build/vite/optimize'
|
|
7
|
-
|
|
8
|
-
export default ({ mode }: ConfigEnv): UserConfig => {
|
|
9
|
-
const root = process.cwd()
|
|
10
|
-
const env = loadEnv(mode, root)
|
|
11
|
-
|
|
12
|
-
const appProxys = {}
|
|
13
|
-
|
|
14
|
-
const v4Server = 'http://
|
|
15
|
-
const v3Server = 'http://
|
|
16
|
-
const OSSServerDev = 'http://
|
|
17
|
-
const geoserver = 'http://
|
|
18
|
-
const mockServer = 'http://127.0.0.1:8086'
|
|
19
|
-
// const OSSServerProd = 'http://192.168.50.67:31351'
|
|
20
|
-
|
|
21
|
-
return {
|
|
22
|
-
base: env.VITE_APP_PUBLIC_PATH,
|
|
23
|
-
plugins: createVitePlugins(mode),
|
|
24
|
-
|
|
25
|
-
server: {
|
|
26
|
-
host: true,
|
|
27
|
-
port: 7190,
|
|
28
|
-
allowedHosts: [
|
|
29
|
-
'www.aofengcloud.com',
|
|
30
|
-
'.aofengcloud.com',
|
|
31
|
-
],
|
|
32
|
-
proxy: Object.assign({
|
|
33
|
-
// '/api/af-system/user': {
|
|
34
|
-
// target: 'http://127.0.0.1:9002/',
|
|
35
|
-
// rewrite: (path: string) => path.replace(/^\/api\/af-system\//, '/'),
|
|
36
|
-
// ws: false,
|
|
37
|
-
// changeOrigin: true,
|
|
38
|
-
// },
|
|
39
|
-
'/api/invoice': {
|
|
40
|
-
target: 'http://219.153.176.6:8400/',
|
|
41
|
-
rewrite: (path: string) => path.replace(/^\/api\//, '/'),
|
|
42
|
-
ws: false,
|
|
43
|
-
changeOrigin: true,
|
|
44
|
-
},
|
|
45
|
-
'/api/af-system/entity/t_files': {
|
|
46
|
-
target: v3Server,
|
|
47
|
-
ws: false,
|
|
48
|
-
changeOrigin: true,
|
|
49
|
-
},
|
|
50
|
-
'/resource': {
|
|
51
|
-
// pathRewrite: { '^/resource': '/' },
|
|
52
|
-
target: v4Server,
|
|
53
|
-
changeOrigin: true,
|
|
54
|
-
},
|
|
55
|
-
// '/api/af-auth/login': {
|
|
56
|
-
// target: 'http://127.0.0.1:9200/',
|
|
57
|
-
// rewrite: (path: string) => path.replace(/^\/api\/af-auth\//, '/'),
|
|
58
|
-
// ws: false,
|
|
59
|
-
// changeOrigin: true,
|
|
60
|
-
// },
|
|
61
|
-
// geoserver 转发
|
|
62
|
-
'/linepatrol/geoserver': {
|
|
63
|
-
target: geoserver,
|
|
64
|
-
changeOrigin: true,
|
|
65
|
-
rewrite: path => path.replace(/^\/linepatrol\/geoserver/, '/geoserver'),
|
|
66
|
-
},
|
|
67
|
-
// MateChat 聊天 API 代理
|
|
68
|
-
'/api/fastApi': {
|
|
69
|
-
rewrite: (path: string) => path.replace(/^\/api\/fastApi/, '/api'),
|
|
70
|
-
target: 'http://k8s.aofengcloud.com:32202',
|
|
71
|
-
ws: false,
|
|
72
|
-
changeOrigin: true,
|
|
73
|
-
},
|
|
74
|
-
'/api': {
|
|
75
|
-
// v3用
|
|
76
|
-
// rewrite: (path: string) => path.replace(/^\/api\/af-system\//, '/rs/'),
|
|
77
|
-
target: v4Server,
|
|
78
|
-
ws: false,
|
|
79
|
-
changeOrigin: true,
|
|
80
|
-
},
|
|
81
|
-
'/oss': {
|
|
82
|
-
target: OSSServerDev,
|
|
83
|
-
rewrite: (path: string) => path.replace(/^\/oss\//, '/'),
|
|
84
|
-
changeOrigin: true,
|
|
85
|
-
},
|
|
86
|
-
}, appProxys),
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
resolve: {
|
|
90
|
-
alias: {
|
|
91
|
-
'@': path.join(__dirname, './src'),
|
|
92
|
-
'~': path.join(__dirname, './src/assets'),
|
|
93
|
-
'~root': path.join(__dirname, '.'),
|
|
94
|
-
'@af-mobile-client-vue3': path.join(__dirname, './src'),
|
|
95
|
-
'xml-utils': path.resolve(__dirname, 'node_modules/xml-utils'),
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
build: {
|
|
100
|
-
cssCodeSplit: false,
|
|
101
|
-
chunkSizeWarningLimit: 2048,
|
|
102
|
-
outDir: `./dist/${env.VITE_APP_OUT_DIR}`,
|
|
103
|
-
rollupOptions: {
|
|
104
|
-
output: {
|
|
105
|
-
// 打包时分割资源
|
|
106
|
-
chunkFileNames: 'static/js/[name]-[hash].js',
|
|
107
|
-
entryFileNames: 'static/js/[name]-[hash].js',
|
|
108
|
-
assetFileNames: 'static/[ext]/[name]-[hash].[ext]',
|
|
109
|
-
manualChunks(id) {
|
|
110
|
-
if (id.includes('node_modules'))
|
|
111
|
-
return 'third' // 代码分割为第三方包
|
|
112
|
-
|
|
113
|
-
if (id.includes('views'))
|
|
114
|
-
return 'views' // 代码分割为业务视图
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
optimizeDeps: { include, exclude },
|
|
121
|
-
}
|
|
122
|
-
}
|
|
1
|
+
import type { ConfigEnv, UserConfig } from 'vite'
|
|
2
|
+
import path from 'node:path'
|
|
3
|
+
import process from 'node:process'
|
|
4
|
+
import { loadEnv } from 'vite'
|
|
5
|
+
import { createVitePlugins } from './build/vite'
|
|
6
|
+
import { exclude, include } from './build/vite/optimize'
|
|
7
|
+
|
|
8
|
+
export default ({ mode }: ConfigEnv): UserConfig => {
|
|
9
|
+
const root = process.cwd()
|
|
10
|
+
const env = loadEnv(mode, root)
|
|
11
|
+
|
|
12
|
+
const appProxys = {}
|
|
13
|
+
|
|
14
|
+
const v4Server = 'http://aote-office.8866.org:31567'
|
|
15
|
+
const v3Server = 'http://aote-office.8866.org:31567'
|
|
16
|
+
const OSSServerDev = 'http://aote-office.8866.org:31567'
|
|
17
|
+
const geoserver = 'http://aote-office.8866.org:31567'
|
|
18
|
+
const mockServer = 'http://127.0.0.1:8086'
|
|
19
|
+
// const OSSServerProd = 'http://192.168.50.67:31351'
|
|
20
|
+
|
|
21
|
+
return {
|
|
22
|
+
base: env.VITE_APP_PUBLIC_PATH,
|
|
23
|
+
plugins: createVitePlugins(mode),
|
|
24
|
+
|
|
25
|
+
server: {
|
|
26
|
+
host: true,
|
|
27
|
+
port: 7190,
|
|
28
|
+
allowedHosts: [
|
|
29
|
+
'www.aofengcloud.com',
|
|
30
|
+
'.aofengcloud.com',
|
|
31
|
+
],
|
|
32
|
+
proxy: Object.assign({
|
|
33
|
+
// '/api/af-system/user': {
|
|
34
|
+
// target: 'http://127.0.0.1:9002/',
|
|
35
|
+
// rewrite: (path: string) => path.replace(/^\/api\/af-system\//, '/'),
|
|
36
|
+
// ws: false,
|
|
37
|
+
// changeOrigin: true,
|
|
38
|
+
// },
|
|
39
|
+
'/api/invoice': {
|
|
40
|
+
target: 'http://219.153.176.6:8400/',
|
|
41
|
+
rewrite: (path: string) => path.replace(/^\/api\//, '/'),
|
|
42
|
+
ws: false,
|
|
43
|
+
changeOrigin: true,
|
|
44
|
+
},
|
|
45
|
+
'/api/af-system/entity/t_files': {
|
|
46
|
+
target: v3Server,
|
|
47
|
+
ws: false,
|
|
48
|
+
changeOrigin: true,
|
|
49
|
+
},
|
|
50
|
+
'/resource': {
|
|
51
|
+
// pathRewrite: { '^/resource': '/' },
|
|
52
|
+
target: v4Server,
|
|
53
|
+
changeOrigin: true,
|
|
54
|
+
},
|
|
55
|
+
// '/api/af-auth/login': {
|
|
56
|
+
// target: 'http://127.0.0.1:9200/',
|
|
57
|
+
// rewrite: (path: string) => path.replace(/^\/api\/af-auth\//, '/'),
|
|
58
|
+
// ws: false,
|
|
59
|
+
// changeOrigin: true,
|
|
60
|
+
// },
|
|
61
|
+
// geoserver 转发
|
|
62
|
+
'/linepatrol/geoserver': {
|
|
63
|
+
target: geoserver,
|
|
64
|
+
changeOrigin: true,
|
|
65
|
+
rewrite: path => path.replace(/^\/linepatrol\/geoserver/, '/geoserver'),
|
|
66
|
+
},
|
|
67
|
+
// MateChat 聊天 API 代理
|
|
68
|
+
'/api/fastApi': {
|
|
69
|
+
rewrite: (path: string) => path.replace(/^\/api\/fastApi/, '/api'),
|
|
70
|
+
target: 'http://k8s.aofengcloud.com:32202',
|
|
71
|
+
ws: false,
|
|
72
|
+
changeOrigin: true,
|
|
73
|
+
},
|
|
74
|
+
'/api': {
|
|
75
|
+
// v3用
|
|
76
|
+
// rewrite: (path: string) => path.replace(/^\/api\/af-system\//, '/rs/'),
|
|
77
|
+
target: v4Server,
|
|
78
|
+
ws: false,
|
|
79
|
+
changeOrigin: true,
|
|
80
|
+
},
|
|
81
|
+
'/oss': {
|
|
82
|
+
target: OSSServerDev,
|
|
83
|
+
rewrite: (path: string) => path.replace(/^\/oss\//, '/'),
|
|
84
|
+
changeOrigin: true,
|
|
85
|
+
},
|
|
86
|
+
}, appProxys),
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
resolve: {
|
|
90
|
+
alias: {
|
|
91
|
+
'@': path.join(__dirname, './src'),
|
|
92
|
+
'~': path.join(__dirname, './src/assets'),
|
|
93
|
+
'~root': path.join(__dirname, '.'),
|
|
94
|
+
'@af-mobile-client-vue3': path.join(__dirname, './src'),
|
|
95
|
+
'xml-utils': path.resolve(__dirname, 'node_modules/xml-utils'),
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
build: {
|
|
100
|
+
cssCodeSplit: false,
|
|
101
|
+
chunkSizeWarningLimit: 2048,
|
|
102
|
+
outDir: `./dist/${env.VITE_APP_OUT_DIR}`,
|
|
103
|
+
rollupOptions: {
|
|
104
|
+
output: {
|
|
105
|
+
// 打包时分割资源
|
|
106
|
+
chunkFileNames: 'static/js/[name]-[hash].js',
|
|
107
|
+
entryFileNames: 'static/js/[name]-[hash].js',
|
|
108
|
+
assetFileNames: 'static/[ext]/[name]-[hash].[ext]',
|
|
109
|
+
manualChunks(id) {
|
|
110
|
+
if (id.includes('node_modules'))
|
|
111
|
+
return 'third' // 代码分割为第三方包
|
|
112
|
+
|
|
113
|
+
if (id.includes('views'))
|
|
114
|
+
return 'views' // 代码分割为业务视图
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
optimizeDeps: { include, exclude },
|
|
121
|
+
}
|
|
122
|
+
}
|