af-mobile-client-vue3 1.0.94 → 1.0.96
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/.env +6 -6
- package/.env.development +4 -4
- package/.env.envoiceShow +6 -6
- package/.env.production +6 -6
- package/.husky/commit-msg +1 -1
- package/.husky/pre-commit +1 -1
- package/.vscode/settings.json +61 -61
- package/build/vite/index.ts +91 -91
- package/eslint.config.js +9 -1
- package/mock/modules/user.mock.ts +152 -152
- package/package.json +1 -1
- package/public/favicon.svg +4 -4
- package/public/safari-pinned-tab.svg +32 -32
- package/scripts/verifyCommit.js +19 -19
- package/src/App.vue +43 -43
- package/src/api/user/index.ts +40 -40
- package/src/bootstrap.ts +18 -18
- package/src/components/core/App/MicroAppView.vue +3 -3
- package/src/components/core/NavBar/index.vue +12 -12
- package/src/components/core/SvgIcon/index.vue +1 -1
- package/src/components/core/Tabbar/index.vue +38 -38
- package/src/components/core/Uploader/index.vue +1 -1
- package/src/components/core/XGridDropOption/index.vue +151 -151
- package/src/components/core/XMultiSelect/index.vue +183 -183
- package/src/components/data/XCellDetail/index.vue +106 -106
- package/src/components/data/XCellList/XCellList.md +28 -28
- package/src/components/data/XCellList/index.vue +50 -11
- package/src/components/data/XCellListFilter/QrScanner/index.vue +1 -1
- package/src/components/data/XCellListFilter/VpnRecognition/index.vue +3 -3
- package/src/components/data/XCellListFilter/index.vue +160 -62
- package/src/components/data/XForm/index.vue +2 -2
- package/src/components/data/XFormGroup/index.vue +3 -3
- package/src/components/data/XFormItem/index.vue +25 -26
- package/src/components/data/XOlMap/demo.vue +209 -0
- package/src/components/data/XOlMap/index.vue +644 -0
- package/src/components/data/XReportForm/XReportFormJsonRender.vue +220 -220
- package/src/components/data/XReportForm/index.vue +1079 -1079
- package/src/components/data/XReportGrid/XAddReport/XAddReport.vue +4 -7
- package/src/components/data/XReportGrid/XAddReport/index.md +3 -7
- package/src/components/data/XReportGrid/XAddReport/index.ts +2 -2
- package/src/components/data/XReportGrid/XReport.vue +25 -38
- package/src/components/data/XReportGrid/XReportDesign.vue +46 -46
- package/src/components/data/XReportGrid/XReportDrawer/XReportDrawer.vue +3 -3
- package/src/components/data/XReportGrid/XReportDrawer/index.ts +2 -2
- package/src/components/data/XReportGrid/XReportJsonRender.vue +20 -7
- package/src/components/data/XReportGrid/XReportTrGroup.vue +4 -4
- package/src/components/data/XReportGrid/index.md +4 -6
- package/src/components/data/XSignature/index.vue +285 -285
- package/src/components/data/XTag/index.vue +10 -10
- package/src/components/layout/NormalDataLayout/index.vue +70 -70
- package/src/components/layout/TabBarLayout/index.vue +40 -40
- package/src/components.d.ts +53 -53
- package/src/env.d.ts +16 -16
- package/src/font-style/font.css +3 -3
- package/src/hooks/useCommon.ts +9 -9
- package/src/layout/GridView/index.vue +1 -1
- package/src/layout/PageLayout.vue +5 -5
- package/src/layout/SingleLayout.vue +3 -3
- package/src/locales/en-US.json +25 -25
- package/src/locales/zh-CN.json +25 -25
- package/src/plugins/AppData.ts +38 -38
- package/src/plugins/index.ts +1 -1
- package/src/router/guards.ts +59 -59
- package/src/router/index.ts +61 -60
- package/src/router/invoiceRoutes.ts +33 -33
- package/src/router/routes.ts +20 -14
- package/src/services/api/common.ts +109 -109
- package/src/services/api/manage.ts +8 -8
- package/src/services/restTools.ts +52 -52
- package/src/services/v3Api.ts +46 -35
- package/src/stores/modules/cachedView.ts +1 -1
- package/src/stores/modules/setting.ts +52 -52
- package/src/stores/modules/user.ts +5 -5
- package/src/stores/mutation-type.ts +7 -7
- package/src/styles/app.less +6 -1
- package/src/utils/Storage.ts +1 -1
- package/src/utils/authority-utils.ts +84 -84
- package/src/utils/crypto.ts +39 -39
- package/src/utils/http/index.ts +6 -6
- package/src/utils/i18n.ts +41 -41
- package/src/utils/indexedDB.ts +180 -180
- package/src/utils/mobileUtil.ts +26 -26
- package/src/utils/routerUtil.ts +271 -271
- package/src/utils/runEvalFunction.ts +13 -13
- package/src/utils/validate.ts +1 -1
- package/src/utils/wechatUtil.ts +9 -9
- package/src/views/chat/index.vue +1 -1
- package/src/views/common/LoadError.vue +64 -64
- package/src/views/common/NotFound.vue +68 -68
- package/src/views/component/EvaluateRecordView/index.vue +40 -40
- package/src/views/component/XCellDetailView/index.vue +217 -216
- package/src/views/component/XCellListView/index.vue +1 -1
- package/src/views/component/XFormAppraiseView/index.vue +4 -4
- package/src/views/component/XFormGroupView/index.vue +1 -1
- package/src/views/component/XFormView/index.vue +6 -7
- package/src/views/component/XReportFormIframeView/index.vue +47 -47
- package/src/views/component/XReportFormView/index.vue +13 -13
- package/src/views/component/XReportGridView/index.vue +2 -3
- package/src/views/component/XSignatureView/index.vue +50 -50
- package/src/views/component/index.vue +4 -4
- package/src/views/component/menu.vue +117 -117
- package/src/views/component/notice.vue +46 -46
- package/src/views/component/topNav.vue +36 -36
- package/src/views/invoiceShow/index.vue +61 -62
- package/src/views/user/login/ForgetPasswordForm.vue +94 -93
- package/src/views/user/login/LoginForm.vue +8 -7
- package/src/views/user/login/LoginTitle.vue +68 -68
- package/src/views/user/login/index.vue +22 -22
- package/src/views/user/my/index.vue +230 -230
- package/src/vue-router.d.ts +9 -9
- package/tsconfig.json +43 -43
- package/uno.config.ts +1 -1
- package/vite.config.ts +123 -123
package/vite.config.ts
CHANGED
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import viewport from 'postcss-mobile-forever'
|
|
6
|
-
import
|
|
7
|
-
import { createVitePlugins } from './build/vite'
|
|
8
|
-
|
|
9
|
-
// import fs from 'fs'
|
|
10
|
-
export default ({ mode }: ConfigEnv): UserConfig => {
|
|
11
|
-
const root = process.cwd()
|
|
12
|
-
const env = loadEnv(mode, root)
|
|
13
|
-
|
|
14
|
-
const appProxys = {}
|
|
15
|
-
|
|
16
|
-
const v4Server = 'http://aote-office.8866.org:31567'
|
|
17
|
-
const v3Server = 'http://aote-office.8866.org:31567'
|
|
18
|
-
const OSSServerDev = 'http://192.168.50.67:30351'
|
|
19
|
-
// const OSSServerProd = 'http://192.168.50.67:31351'
|
|
20
|
-
|
|
21
|
-
return {
|
|
22
|
-
base: env.VITE_APP_PUBLIC_PATH,
|
|
23
|
-
plugins: [
|
|
24
|
-
createVitePlugins(),
|
|
25
|
-
],
|
|
26
|
-
|
|
27
|
-
server: {
|
|
28
|
-
host: true,
|
|
29
|
-
port: 7190,
|
|
30
|
-
// https: {
|
|
31
|
-
// key: fs.readFileSync('certs/127.0.0.1+2-key.pem'),
|
|
32
|
-
// cert: fs.readFileSync('certs/127.0.0.1+2.pem')
|
|
33
|
-
// },
|
|
34
|
-
proxy: Object.assign({
|
|
35
|
-
'/api/af-system/resource': {
|
|
36
|
-
target: v4Server,
|
|
37
|
-
ws: false,
|
|
38
|
-
changeOrigin: true,
|
|
39
|
-
},
|
|
40
|
-
'/api/invoice': {
|
|
41
|
-
target: 'http://219.153.176.6:8400/',
|
|
42
|
-
rewrite: (path: string) => path.replace(/^\/api\//, '/'),
|
|
43
|
-
ws: false,
|
|
44
|
-
changeOrigin: true,
|
|
45
|
-
},
|
|
46
|
-
'/api/af-system/entity/t_files': {
|
|
47
|
-
target: v3Server,
|
|
48
|
-
ws: false,
|
|
49
|
-
changeOrigin: true,
|
|
50
|
-
},
|
|
51
|
-
'/resource': {
|
|
52
|
-
// pathRewrite: { '^/resource': '/' },
|
|
53
|
-
target: v4Server,
|
|
54
|
-
changeOrigin: true,
|
|
55
|
-
},
|
|
56
|
-
// '/api/af-auth/login': {
|
|
57
|
-
// target: 'http://127.0.0.1:9200/',
|
|
58
|
-
// rewrite: (path: string) => path.replace(/^\/api\/af-auth\//, '/'),
|
|
59
|
-
// ws: false,
|
|
60
|
-
// changeOrigin: true,
|
|
61
|
-
// },
|
|
62
|
-
'/api': {
|
|
63
|
-
// v3用
|
|
64
|
-
// rewrite: (path: string) => path.replace(/^\/api\/af-system\//, '/rs/'),
|
|
65
|
-
target: v4Server,
|
|
66
|
-
ws: false,
|
|
67
|
-
changeOrigin: true,
|
|
68
|
-
},
|
|
69
|
-
'/oss': {
|
|
70
|
-
target: OSSServerDev,
|
|
71
|
-
rewrite: (path: string) => path.replace(/^\/oss\//, '/'),
|
|
72
|
-
changeOrigin: true,
|
|
73
|
-
},
|
|
74
|
-
}, appProxys),
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
resolve: {
|
|
78
|
-
alias: {
|
|
79
|
-
'~@': path.join(__dirname, './src'),
|
|
80
|
-
'@': path.join(__dirname, './src'),
|
|
81
|
-
'~': path.join(__dirname, './src/assets'),
|
|
82
|
-
'@af-mobile-client-vue3': path.join(__dirname, './src'),
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
css: {
|
|
87
|
-
// postcss 官网:www.postcss.com.cn/
|
|
88
|
-
postcss: {
|
|
89
|
-
plugins: [
|
|
90
|
-
// 自动获取浏览器的流行度和能够支持的属性,并为 CSS 规则添加前缀
|
|
91
|
-
autoprefixer(),
|
|
92
|
-
viewport({
|
|
93
|
-
appSelector: '#system-app',
|
|
94
|
-
viewportWidth: 375,
|
|
95
|
-
maxDisplayWidth: 800,
|
|
96
|
-
appContainingBlock: 'auto',
|
|
97
|
-
necessarySelectorWhenAuto: '.app-wrapper',
|
|
98
|
-
rootContainingBlockSelectorList: ['van-tabbar', 'van-popup'],
|
|
99
|
-
}),
|
|
100
|
-
],
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
build: {
|
|
105
|
-
chunkSizeWarningLimit: 2048,
|
|
106
|
-
rollupOptions: {
|
|
107
|
-
output: {
|
|
108
|
-
// 打包时分割资源
|
|
109
|
-
chunkFileNames: 'static/js/[name]-[hash].js',
|
|
110
|
-
entryFileNames: 'static/js/[name]-[hash].js',
|
|
111
|
-
assetFileNames: 'static/[ext]/[name]-[hash].[ext]',
|
|
112
|
-
manualChunks(id) {
|
|
113
|
-
if (id.includes('node_modules'))
|
|
114
|
-
return 'third' // 代码分割为第三方包
|
|
115
|
-
|
|
116
|
-
if (id.includes('views'))
|
|
117
|
-
return 'views' // 代码分割为业务视图
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
}
|
|
123
|
-
}
|
|
1
|
+
import type { ConfigEnv, UserConfig } from 'vite'
|
|
2
|
+
import path from 'node:path'
|
|
3
|
+
import process from 'node:process'
|
|
4
|
+
import autoprefixer from 'autoprefixer'
|
|
5
|
+
import viewport from 'postcss-mobile-forever'
|
|
6
|
+
import { loadEnv } from 'vite'
|
|
7
|
+
import { createVitePlugins } from './build/vite'
|
|
8
|
+
|
|
9
|
+
// import fs from 'fs'
|
|
10
|
+
export default ({ mode }: ConfigEnv): UserConfig => {
|
|
11
|
+
const root = process.cwd()
|
|
12
|
+
const env = loadEnv(mode, root)
|
|
13
|
+
|
|
14
|
+
const appProxys = {}
|
|
15
|
+
|
|
16
|
+
const v4Server = 'http://aote-office.8866.org:31567'
|
|
17
|
+
const v3Server = 'http://aote-office.8866.org:31567'
|
|
18
|
+
const OSSServerDev = 'http://192.168.50.67:30351'
|
|
19
|
+
// const OSSServerProd = 'http://192.168.50.67:31351'
|
|
20
|
+
|
|
21
|
+
return {
|
|
22
|
+
base: env.VITE_APP_PUBLIC_PATH,
|
|
23
|
+
plugins: [
|
|
24
|
+
createVitePlugins(),
|
|
25
|
+
],
|
|
26
|
+
|
|
27
|
+
server: {
|
|
28
|
+
host: true,
|
|
29
|
+
port: 7190,
|
|
30
|
+
// https: {
|
|
31
|
+
// key: fs.readFileSync('certs/127.0.0.1+2-key.pem'),
|
|
32
|
+
// cert: fs.readFileSync('certs/127.0.0.1+2.pem')
|
|
33
|
+
// },
|
|
34
|
+
proxy: Object.assign({
|
|
35
|
+
'/api/af-system/resource': {
|
|
36
|
+
target: v4Server,
|
|
37
|
+
ws: false,
|
|
38
|
+
changeOrigin: true,
|
|
39
|
+
},
|
|
40
|
+
'/api/invoice': {
|
|
41
|
+
target: 'http://219.153.176.6:8400/',
|
|
42
|
+
rewrite: (path: string) => path.replace(/^\/api\//, '/'),
|
|
43
|
+
ws: false,
|
|
44
|
+
changeOrigin: true,
|
|
45
|
+
},
|
|
46
|
+
'/api/af-system/entity/t_files': {
|
|
47
|
+
target: v3Server,
|
|
48
|
+
ws: false,
|
|
49
|
+
changeOrigin: true,
|
|
50
|
+
},
|
|
51
|
+
'/resource': {
|
|
52
|
+
// pathRewrite: { '^/resource': '/' },
|
|
53
|
+
target: v4Server,
|
|
54
|
+
changeOrigin: true,
|
|
55
|
+
},
|
|
56
|
+
// '/api/af-auth/login': {
|
|
57
|
+
// target: 'http://127.0.0.1:9200/',
|
|
58
|
+
// rewrite: (path: string) => path.replace(/^\/api\/af-auth\//, '/'),
|
|
59
|
+
// ws: false,
|
|
60
|
+
// changeOrigin: true,
|
|
61
|
+
// },
|
|
62
|
+
'/api': {
|
|
63
|
+
// v3用
|
|
64
|
+
// rewrite: (path: string) => path.replace(/^\/api\/af-system\//, '/rs/'),
|
|
65
|
+
target: v4Server,
|
|
66
|
+
ws: false,
|
|
67
|
+
changeOrigin: true,
|
|
68
|
+
},
|
|
69
|
+
'/oss': {
|
|
70
|
+
target: OSSServerDev,
|
|
71
|
+
rewrite: (path: string) => path.replace(/^\/oss\//, '/'),
|
|
72
|
+
changeOrigin: true,
|
|
73
|
+
},
|
|
74
|
+
}, appProxys),
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
resolve: {
|
|
78
|
+
alias: {
|
|
79
|
+
'~@': path.join(__dirname, './src'),
|
|
80
|
+
'@': path.join(__dirname, './src'),
|
|
81
|
+
'~': path.join(__dirname, './src/assets'),
|
|
82
|
+
'@af-mobile-client-vue3': path.join(__dirname, './src'),
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
css: {
|
|
87
|
+
// postcss 官网:www.postcss.com.cn/
|
|
88
|
+
postcss: {
|
|
89
|
+
plugins: [
|
|
90
|
+
// 自动获取浏览器的流行度和能够支持的属性,并为 CSS 规则添加前缀
|
|
91
|
+
autoprefixer(),
|
|
92
|
+
viewport({
|
|
93
|
+
appSelector: '#system-app',
|
|
94
|
+
viewportWidth: 375,
|
|
95
|
+
maxDisplayWidth: 800,
|
|
96
|
+
appContainingBlock: 'auto',
|
|
97
|
+
necessarySelectorWhenAuto: '.app-wrapper',
|
|
98
|
+
rootContainingBlockSelectorList: ['van-tabbar', 'van-popup'],
|
|
99
|
+
}),
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
build: {
|
|
105
|
+
chunkSizeWarningLimit: 2048,
|
|
106
|
+
rollupOptions: {
|
|
107
|
+
output: {
|
|
108
|
+
// 打包时分割资源
|
|
109
|
+
chunkFileNames: 'static/js/[name]-[hash].js',
|
|
110
|
+
entryFileNames: 'static/js/[name]-[hash].js',
|
|
111
|
+
assetFileNames: 'static/[ext]/[name]-[hash].[ext]',
|
|
112
|
+
manualChunks(id) {
|
|
113
|
+
if (id.includes('node_modules'))
|
|
114
|
+
return 'third' // 代码分割为第三方包
|
|
115
|
+
|
|
116
|
+
if (id.includes('views'))
|
|
117
|
+
return 'views' // 代码分割为业务视图
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
}
|
|
123
|
+
}
|