af-mobile-client-vue3 1.1.5 → 1.1.7
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 +105 -91
- package/mock/modules/user.mock.ts +152 -152
- package/package.json +3 -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/NavBar/index.vue +12 -12
- package/src/components/core/Tabbar/index.vue +38 -38
- package/src/components/core/Uploader/index.vue +2 -2
- 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/XForm/index.vue +5 -0
- package/src/components/data/XFormItem/index.vue +48 -14
- package/src/components/data/XOlMap/README.md +0 -2
- package/src/components/data/XOlMap/XLocationPicker/index.vue +21 -9
- package/src/components/data/XOlMap/index.vue +81 -74
- package/src/components/data/XOlMap/types.ts +0 -4
- package/src/components/data/XOlMap/utils/wgs84ToGcj02.js +154 -154
- package/src/components/data/XReportForm/XReportFormJsonRender.vue +220 -220
- package/src/components/data/XReportForm/index.vue +1079 -1079
- package/src/components/data/XReportGrid/XAddReport/index.ts +1 -1
- package/src/components/data/XReportGrid/XReportDrawer/index.ts +1 -1
- 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/locales/en-US.json +25 -25
- package/src/locales/zh-CN.json +25 -25
- package/src/plugins/AppData.ts +38 -38
- package/src/router/guards.ts +59 -59
- package/src/router/index.ts +61 -61
- package/src/router/invoiceRoutes.ts +33 -33
- package/src/router/routes.ts +6 -0
- 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/services/v3Api.ts +11 -11
- package/src/stores/modules/setting.ts +52 -52
- package/src/stores/mutation-type.ts +7 -7
- package/src/utils/authority-utils.ts +84 -84
- package/src/utils/crypto.ts +39 -39
- 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/wechatUtil.ts +9 -9
- 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/IconifyView/index.vue +507 -0
- package/src/views/component/XCellDetailView/index.vue +217 -217
- package/src/views/component/XOlMapView/XLocationPicker/index.vue +120 -120
- package/src/views/component/XOlMapView/index.vue +0 -1
- 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/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 -61
- package/src/views/user/login/ForgetPasswordForm.vue +94 -94
- 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/.env
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
VITE_APP_PUBLIC_PATH=/example-web
|
|
2
|
-
VITE_APP_PREVIEW=true
|
|
3
|
-
VITE_APP_API_BASE_URL=/api
|
|
4
|
-
VITE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
5
|
-
VITE_APP_SYSTEM_NAME=af-system
|
|
6
|
-
# 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
|
|
1
|
+
VITE_APP_PUBLIC_PATH=/example-web
|
|
2
|
+
VITE_APP_PREVIEW=true
|
|
3
|
+
VITE_APP_API_BASE_URL=/api
|
|
4
|
+
VITE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
5
|
+
VITE_APP_SYSTEM_NAME=af-system
|
|
6
|
+
# 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
|
|
7
7
|
VITE_APP_COMPATIBLE=V4
|
package/.env.development
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
NODE_ENV=development
|
|
2
|
-
VITE_APP_PUBLIC_PATH=/
|
|
3
|
-
VITE_APP_PREVIEW=true
|
|
4
|
-
VITE_APP_API_BASE_URL=/api
|
|
1
|
+
NODE_ENV=development
|
|
2
|
+
VITE_APP_PUBLIC_PATH=/
|
|
3
|
+
VITE_APP_PREVIEW=true
|
|
4
|
+
VITE_APP_API_BASE_URL=/api
|
package/.env.envoiceShow
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
VITE_APP_PUBLIC_PATH=/invoiceShow
|
|
2
|
-
VITE_APP_PREVIEW=true
|
|
3
|
-
VITE_APP_API_BASE_URL=/api
|
|
4
|
-
VITE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
5
|
-
VITE_APP_SYSTEM_NAME=af-system
|
|
6
|
-
# 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
|
|
1
|
+
VITE_APP_PUBLIC_PATH=/invoiceShow
|
|
2
|
+
VITE_APP_PREVIEW=true
|
|
3
|
+
VITE_APP_API_BASE_URL=/api
|
|
4
|
+
VITE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
5
|
+
VITE_APP_SYSTEM_NAME=af-system
|
|
6
|
+
# 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
|
|
7
7
|
VITE_APP_COMPATIBLE=V4
|
package/.env.production
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
VITE_APP_PUBLIC_PATH=/
|
|
2
|
-
VITE_APP_PREVIEW=true
|
|
3
|
-
VITE_APP_API_BASE_URL=/api
|
|
4
|
-
VITE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
5
|
-
VITE_APP_SYSTEM_NAME=af-system
|
|
6
|
-
# 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
|
|
1
|
+
VITE_APP_PUBLIC_PATH=/
|
|
2
|
+
VITE_APP_PREVIEW=true
|
|
3
|
+
VITE_APP_API_BASE_URL=/api
|
|
4
|
+
VITE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
5
|
+
VITE_APP_SYSTEM_NAME=af-system
|
|
6
|
+
# 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
|
|
7
7
|
VITE_APP_COMPATIBLE=V4
|
package/.husky/commit-msg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
node scripts/verifyCommit.js
|
|
1
|
+
node scripts/verifyCommit.js
|
package/.husky/pre-commit
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
pnpm lint
|
|
1
|
+
pnpm lint
|
package/.vscode/settings.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Enable the ESlint flat config support
|
|
3
|
-
"eslint.experimental.useFlatConfig": true,
|
|
4
|
-
|
|
5
|
-
// Disable the default formatter, use eslint instead
|
|
6
|
-
"prettier.enable": false,
|
|
7
|
-
"editor.formatOnSave": false,
|
|
8
|
-
|
|
9
|
-
// Auto fix
|
|
10
|
-
"editor.codeActionsOnSave": {
|
|
11
|
-
"source.fixAll": "explicit",
|
|
12
|
-
"source.organizeImports": "never"
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
// Disable the MD033 rule
|
|
16
|
-
"markdownlint.config": {
|
|
17
|
-
"default": true,
|
|
18
|
-
"MD033": false
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
// Silent the stylistic rules in you IDE, but still auto fix them
|
|
22
|
-
"eslint.rules.customizations": [
|
|
23
|
-
{ "rule": "style/*", "severity": "off" },
|
|
24
|
-
{ "rule": "*-indent", "severity": "off" },
|
|
25
|
-
{ "rule": "*-spacing", "severity": "off" },
|
|
26
|
-
{ "rule": "*-spaces", "severity": "off" },
|
|
27
|
-
{ "rule": "*-order", "severity": "off" },
|
|
28
|
-
{ "rule": "*-dangle", "severity": "off" },
|
|
29
|
-
{ "rule": "*-newline", "severity": "off" },
|
|
30
|
-
{ "rule": "*quotes", "severity": "off" },
|
|
31
|
-
{ "rule": "*semi", "severity": "off" }
|
|
32
|
-
],
|
|
33
|
-
|
|
34
|
-
// Enable eslint for all supported languages
|
|
35
|
-
"eslint.validate": [
|
|
36
|
-
"javascript",
|
|
37
|
-
"javascriptreact",
|
|
38
|
-
"typescript",
|
|
39
|
-
"typescriptreact",
|
|
40
|
-
"vue",
|
|
41
|
-
"html",
|
|
42
|
-
"markdown",
|
|
43
|
-
"json",
|
|
44
|
-
"jsonc",
|
|
45
|
-
"yaml"
|
|
46
|
-
],
|
|
47
|
-
|
|
48
|
-
// Specify the UI library you need to prompt
|
|
49
|
-
"common-intellisense.showSlots": false,
|
|
50
|
-
"common-intellisense.ui": [
|
|
51
|
-
"vant4"
|
|
52
|
-
],
|
|
53
|
-
|
|
54
|
-
// Configuration of i18n i18n-ally
|
|
55
|
-
"i18n-ally.enabledParsers": ["json"],
|
|
56
|
-
"i18n-ally.displayLanguage": "zh-CN",
|
|
57
|
-
"i18n-ally.localesPaths": [
|
|
58
|
-
"src/locales"
|
|
59
|
-
],
|
|
60
|
-
"i18n-ally.keystyle": "nested"
|
|
61
|
-
}
|
|
1
|
+
{
|
|
2
|
+
// Enable the ESlint flat config support
|
|
3
|
+
"eslint.experimental.useFlatConfig": true,
|
|
4
|
+
|
|
5
|
+
// Disable the default formatter, use eslint instead
|
|
6
|
+
"prettier.enable": false,
|
|
7
|
+
"editor.formatOnSave": false,
|
|
8
|
+
|
|
9
|
+
// Auto fix
|
|
10
|
+
"editor.codeActionsOnSave": {
|
|
11
|
+
"source.fixAll": "explicit",
|
|
12
|
+
"source.organizeImports": "never"
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
// Disable the MD033 rule
|
|
16
|
+
"markdownlint.config": {
|
|
17
|
+
"default": true,
|
|
18
|
+
"MD033": false
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
// Silent the stylistic rules in you IDE, but still auto fix them
|
|
22
|
+
"eslint.rules.customizations": [
|
|
23
|
+
{ "rule": "style/*", "severity": "off" },
|
|
24
|
+
{ "rule": "*-indent", "severity": "off" },
|
|
25
|
+
{ "rule": "*-spacing", "severity": "off" },
|
|
26
|
+
{ "rule": "*-spaces", "severity": "off" },
|
|
27
|
+
{ "rule": "*-order", "severity": "off" },
|
|
28
|
+
{ "rule": "*-dangle", "severity": "off" },
|
|
29
|
+
{ "rule": "*-newline", "severity": "off" },
|
|
30
|
+
{ "rule": "*quotes", "severity": "off" },
|
|
31
|
+
{ "rule": "*semi", "severity": "off" }
|
|
32
|
+
],
|
|
33
|
+
|
|
34
|
+
// Enable eslint for all supported languages
|
|
35
|
+
"eslint.validate": [
|
|
36
|
+
"javascript",
|
|
37
|
+
"javascriptreact",
|
|
38
|
+
"typescript",
|
|
39
|
+
"typescriptreact",
|
|
40
|
+
"vue",
|
|
41
|
+
"html",
|
|
42
|
+
"markdown",
|
|
43
|
+
"json",
|
|
44
|
+
"jsonc",
|
|
45
|
+
"yaml"
|
|
46
|
+
],
|
|
47
|
+
|
|
48
|
+
// Specify the UI library you need to prompt
|
|
49
|
+
"common-intellisense.showSlots": false,
|
|
50
|
+
"common-intellisense.ui": [
|
|
51
|
+
"vant4"
|
|
52
|
+
],
|
|
53
|
+
|
|
54
|
+
// Configuration of i18n i18n-ally
|
|
55
|
+
"i18n-ally.enabledParsers": ["json"],
|
|
56
|
+
"i18n-ally.displayLanguage": "zh-CN",
|
|
57
|
+
"i18n-ally.localesPaths": [
|
|
58
|
+
"src/locales"
|
|
59
|
+
],
|
|
60
|
+
"i18n-ally.keystyle": "nested"
|
|
61
|
+
}
|
package/build/vite/index.ts
CHANGED
|
@@ -1,91 +1,105 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import process from 'node:process'
|
|
3
|
-
import legacy from '@vitejs/plugin-legacy'
|
|
4
|
-
import vue from '@vitejs/plugin-vue'
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
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
|
-
symbolId
|
|
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
|
-
|
|
1
|
+
import path from 'node:path'
|
|
2
|
+
import process from 'node:process'
|
|
3
|
+
import legacy from '@vitejs/plugin-legacy'
|
|
4
|
+
import vue from '@vitejs/plugin-vue'
|
|
5
|
+
import { presetIcons } from 'unocss'
|
|
6
|
+
import UnoCSS from 'unocss/vite'
|
|
7
|
+
import viteCompression from 'vite-plugin-compression'
|
|
8
|
+
import mockDevServerPlugin from 'vite-plugin-mock-dev-server'
|
|
9
|
+
import { VitePWA } from 'vite-plugin-pwa'
|
|
10
|
+
import Sitemap from 'vite-plugin-sitemap'
|
|
11
|
+
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
|
|
12
|
+
import { createViteVConsole } from './vconsole'
|
|
13
|
+
|
|
14
|
+
export function createVitePlugins() {
|
|
15
|
+
const root = process.cwd()
|
|
16
|
+
|
|
17
|
+
return [
|
|
18
|
+
vue({
|
|
19
|
+
template: {
|
|
20
|
+
compilerOptions: {
|
|
21
|
+
// 注册自定义组件micro-app 防止控制台警告
|
|
22
|
+
isCustomElement: tag => tag.startsWith('micro-app'),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
}),
|
|
26
|
+
|
|
27
|
+
// https://github.com/jbaubree/vite-plugin-sitemap
|
|
28
|
+
Sitemap(),
|
|
29
|
+
|
|
30
|
+
// https://github.com/pengzhanbo/vite-plugin-mock-dev-server
|
|
31
|
+
mockDevServerPlugin(),
|
|
32
|
+
|
|
33
|
+
// svg icon
|
|
34
|
+
createSvgIconsPlugin({
|
|
35
|
+
// 指定图标文件夹
|
|
36
|
+
iconDirs: [path.resolve(root, 'src/icons/svg')],
|
|
37
|
+
// 指定 symbolId 格式
|
|
38
|
+
symbolId: 'icon-[dir]-[name]',
|
|
39
|
+
}),
|
|
40
|
+
|
|
41
|
+
// 生产环境 gzip 压缩资源
|
|
42
|
+
viteCompression({
|
|
43
|
+
algorithm: 'gzip',
|
|
44
|
+
// 文件大于10240b(10kb)时才压缩文件
|
|
45
|
+
threshold: 10240,
|
|
46
|
+
// 禁止在控制台输出压缩结果
|
|
47
|
+
verbose: false,
|
|
48
|
+
// 压缩完文件后删除源文件
|
|
49
|
+
deleteOriginFile: false,
|
|
50
|
+
}),
|
|
51
|
+
|
|
52
|
+
legacy({
|
|
53
|
+
targets: ['defaults', 'not IE 11'],
|
|
54
|
+
}),
|
|
55
|
+
|
|
56
|
+
// https://github.com/antfu/unocss
|
|
57
|
+
// see uno.config.ts for config
|
|
58
|
+
UnoCSS({
|
|
59
|
+
presets: [
|
|
60
|
+
presetIcons({
|
|
61
|
+
scale: 1.2,
|
|
62
|
+
warn: true,
|
|
63
|
+
extraProperties: {
|
|
64
|
+
'display': 'inline-block',
|
|
65
|
+
'vertical-align': 'middle',
|
|
66
|
+
'width': 'var(--van-font-size-md)',
|
|
67
|
+
'height': 'var(--van-font-size-md)',
|
|
68
|
+
},
|
|
69
|
+
}),
|
|
70
|
+
],
|
|
71
|
+
}),
|
|
72
|
+
|
|
73
|
+
// https://github.com/vadxq/vite-plugin-vconsole
|
|
74
|
+
createViteVConsole(),
|
|
75
|
+
|
|
76
|
+
// https://github.com/antfu/vite-plugin-pwa
|
|
77
|
+
VitePWA({
|
|
78
|
+
registerType: 'autoUpdate',
|
|
79
|
+
includeAssets: ['favicon.svg', 'safari-pinned-tab.svg'],
|
|
80
|
+
manifest: {
|
|
81
|
+
name: 'af-mobile-client-vue3',
|
|
82
|
+
short_name: 'af-mobile-client-vue3',
|
|
83
|
+
theme_color: '#ffffff',
|
|
84
|
+
icons: [
|
|
85
|
+
{
|
|
86
|
+
src: '/pwa-192x192.png',
|
|
87
|
+
sizes: '192x192',
|
|
88
|
+
type: 'image/png',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
src: '/pwa-512x512.png',
|
|
92
|
+
sizes: '512x512',
|
|
93
|
+
type: 'image/png',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
src: '/pwa-512x512.png',
|
|
97
|
+
sizes: '512x512',
|
|
98
|
+
type: 'image/png',
|
|
99
|
+
purpose: 'any maskable',
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
}),
|
|
104
|
+
]
|
|
105
|
+
}
|