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.
Files changed (84) hide show
  1. package/.env +6 -6
  2. package/.env.development +4 -4
  3. package/.env.envoiceShow +6 -6
  4. package/.env.production +6 -6
  5. package/.husky/commit-msg +1 -1
  6. package/.husky/pre-commit +1 -1
  7. package/.vscode/settings.json +61 -61
  8. package/build/vite/index.ts +105 -91
  9. package/mock/modules/user.mock.ts +152 -152
  10. package/package.json +3 -1
  11. package/public/favicon.svg +4 -4
  12. package/public/safari-pinned-tab.svg +32 -32
  13. package/scripts/verifyCommit.js +19 -19
  14. package/src/App.vue +43 -43
  15. package/src/api/user/index.ts +40 -40
  16. package/src/bootstrap.ts +18 -18
  17. package/src/components/core/NavBar/index.vue +12 -12
  18. package/src/components/core/Tabbar/index.vue +38 -38
  19. package/src/components/core/Uploader/index.vue +2 -2
  20. package/src/components/core/XGridDropOption/index.vue +151 -151
  21. package/src/components/core/XMultiSelect/index.vue +183 -183
  22. package/src/components/data/XCellDetail/index.vue +106 -106
  23. package/src/components/data/XForm/index.vue +5 -0
  24. package/src/components/data/XFormItem/index.vue +48 -14
  25. package/src/components/data/XOlMap/README.md +0 -2
  26. package/src/components/data/XOlMap/XLocationPicker/index.vue +21 -9
  27. package/src/components/data/XOlMap/index.vue +81 -74
  28. package/src/components/data/XOlMap/types.ts +0 -4
  29. package/src/components/data/XOlMap/utils/wgs84ToGcj02.js +154 -154
  30. package/src/components/data/XReportForm/XReportFormJsonRender.vue +220 -220
  31. package/src/components/data/XReportForm/index.vue +1079 -1079
  32. package/src/components/data/XReportGrid/XAddReport/index.ts +1 -1
  33. package/src/components/data/XReportGrid/XReportDrawer/index.ts +1 -1
  34. package/src/components/data/XSignature/index.vue +285 -285
  35. package/src/components/data/XTag/index.vue +10 -10
  36. package/src/components/layout/NormalDataLayout/index.vue +70 -70
  37. package/src/components/layout/TabBarLayout/index.vue +40 -40
  38. package/src/components.d.ts +53 -53
  39. package/src/env.d.ts +16 -16
  40. package/src/font-style/font.css +3 -3
  41. package/src/hooks/useCommon.ts +9 -9
  42. package/src/locales/en-US.json +25 -25
  43. package/src/locales/zh-CN.json +25 -25
  44. package/src/plugins/AppData.ts +38 -38
  45. package/src/router/guards.ts +59 -59
  46. package/src/router/index.ts +61 -61
  47. package/src/router/invoiceRoutes.ts +33 -33
  48. package/src/router/routes.ts +6 -0
  49. package/src/services/api/common.ts +109 -109
  50. package/src/services/api/manage.ts +8 -8
  51. package/src/services/api/search.ts +16 -16
  52. package/src/services/restTools.ts +56 -56
  53. package/src/services/v3Api.ts +11 -11
  54. package/src/stores/modules/setting.ts +52 -52
  55. package/src/stores/mutation-type.ts +7 -7
  56. package/src/utils/authority-utils.ts +84 -84
  57. package/src/utils/crypto.ts +39 -39
  58. package/src/utils/i18n.ts +41 -41
  59. package/src/utils/indexedDB.ts +180 -180
  60. package/src/utils/mobileUtil.ts +26 -26
  61. package/src/utils/routerUtil.ts +271 -271
  62. package/src/utils/runEvalFunction.ts +13 -13
  63. package/src/utils/wechatUtil.ts +9 -9
  64. package/src/views/common/LoadError.vue +64 -64
  65. package/src/views/common/NotFound.vue +68 -68
  66. package/src/views/component/EvaluateRecordView/index.vue +40 -40
  67. package/src/views/component/IconifyView/index.vue +507 -0
  68. package/src/views/component/XCellDetailView/index.vue +217 -217
  69. package/src/views/component/XOlMapView/XLocationPicker/index.vue +120 -120
  70. package/src/views/component/XOlMapView/index.vue +0 -1
  71. package/src/views/component/XReportFormIframeView/index.vue +47 -47
  72. package/src/views/component/XReportFormView/index.vue +13 -13
  73. package/src/views/component/XSignatureView/index.vue +50 -50
  74. package/src/views/component/index.vue +4 -0
  75. package/src/views/component/menu.vue +117 -117
  76. package/src/views/component/notice.vue +46 -46
  77. package/src/views/component/topNav.vue +36 -36
  78. package/src/views/invoiceShow/index.vue +61 -61
  79. package/src/views/user/login/ForgetPasswordForm.vue +94 -94
  80. package/src/views/user/login/LoginTitle.vue +68 -68
  81. package/src/views/user/login/index.vue +22 -22
  82. package/src/views/user/my/index.vue +230 -230
  83. package/src/vue-router.d.ts +9 -9
  84. 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
@@ -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
+ }
@@ -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 UnoCSS from 'unocss/vite'
6
- import viteCompression from 'vite-plugin-compression'
7
- import mockDevServerPlugin from 'vite-plugin-mock-dev-server'
8
- import { VitePWA } from 'vite-plugin-pwa'
9
- import Sitemap from 'vite-plugin-sitemap'
10
- import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
11
- import { createViteVConsole } from './vconsole'
12
-
13
- export function createVitePlugins() {
14
- const root = process.cwd()
15
-
16
- return [
17
- vue({
18
- template: {
19
- compilerOptions: {
20
- // 注册自定义组件micro-app 防止控制台警告
21
- isCustomElement: tag => tag.startsWith('micro-app'),
22
- },
23
- },
24
- }),
25
-
26
- // https://github.com/jbaubree/vite-plugin-sitemap
27
- Sitemap(),
28
-
29
- // https://github.com/pengzhanbo/vite-plugin-mock-dev-server
30
- mockDevServerPlugin(),
31
-
32
- // svg icon
33
- createSvgIconsPlugin({
34
- // 指定图标文件夹
35
- iconDirs: [path.resolve(root, 'src/icons/svg')],
36
- // 指定 symbolId 格式
37
- symbolId: 'icon-[dir]-[name]',
38
- }),
39
-
40
- // 生产环境 gzip 压缩资源
41
- viteCompression({
42
- algorithm: 'gzip',
43
- // 文件大于10240b(10kb)时才压缩文件
44
- threshold: 10240,
45
- // 禁止在控制台输出压缩结果
46
- verbose: false,
47
- // 压缩完文件后删除源文件
48
- deleteOriginFile: false,
49
- }),
50
-
51
- legacy({
52
- targets: ['defaults', 'not IE 11'],
53
- }),
54
-
55
- // https://github.com/antfu/unocss
56
- // see uno.config.ts for config
57
- UnoCSS(),
58
-
59
- // https://github.com/vadxq/vite-plugin-vconsole
60
- createViteVConsole(),
61
-
62
- // https://github.com/antfu/vite-plugin-pwa
63
- VitePWA({
64
- registerType: 'autoUpdate',
65
- includeAssets: ['favicon.svg', 'safari-pinned-tab.svg'],
66
- manifest: {
67
- name: 'af-mobile-client-vue3',
68
- short_name: 'af-mobile-client-vue3',
69
- theme_color: '#ffffff',
70
- icons: [
71
- {
72
- src: '/pwa-192x192.png',
73
- sizes: '192x192',
74
- type: 'image/png',
75
- },
76
- {
77
- src: '/pwa-512x512.png',
78
- sizes: '512x512',
79
- type: 'image/png',
80
- },
81
- {
82
- src: '/pwa-512x512.png',
83
- sizes: '512x512',
84
- type: 'image/png',
85
- purpose: 'any maskable',
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
+ }