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.
Files changed (113) 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 +91 -91
  9. package/eslint.config.js +9 -1
  10. package/mock/modules/user.mock.ts +152 -152
  11. package/package.json +1 -1
  12. package/public/favicon.svg +4 -4
  13. package/public/safari-pinned-tab.svg +32 -32
  14. package/scripts/verifyCommit.js +19 -19
  15. package/src/App.vue +43 -43
  16. package/src/api/user/index.ts +40 -40
  17. package/src/bootstrap.ts +18 -18
  18. package/src/components/core/App/MicroAppView.vue +3 -3
  19. package/src/components/core/NavBar/index.vue +12 -12
  20. package/src/components/core/SvgIcon/index.vue +1 -1
  21. package/src/components/core/Tabbar/index.vue +38 -38
  22. package/src/components/core/Uploader/index.vue +1 -1
  23. package/src/components/core/XGridDropOption/index.vue +151 -151
  24. package/src/components/core/XMultiSelect/index.vue +183 -183
  25. package/src/components/data/XCellDetail/index.vue +106 -106
  26. package/src/components/data/XCellList/XCellList.md +28 -28
  27. package/src/components/data/XCellList/index.vue +50 -11
  28. package/src/components/data/XCellListFilter/QrScanner/index.vue +1 -1
  29. package/src/components/data/XCellListFilter/VpnRecognition/index.vue +3 -3
  30. package/src/components/data/XCellListFilter/index.vue +160 -62
  31. package/src/components/data/XForm/index.vue +2 -2
  32. package/src/components/data/XFormGroup/index.vue +3 -3
  33. package/src/components/data/XFormItem/index.vue +25 -26
  34. package/src/components/data/XOlMap/demo.vue +209 -0
  35. package/src/components/data/XOlMap/index.vue +644 -0
  36. package/src/components/data/XReportForm/XReportFormJsonRender.vue +220 -220
  37. package/src/components/data/XReportForm/index.vue +1079 -1079
  38. package/src/components/data/XReportGrid/XAddReport/XAddReport.vue +4 -7
  39. package/src/components/data/XReportGrid/XAddReport/index.md +3 -7
  40. package/src/components/data/XReportGrid/XAddReport/index.ts +2 -2
  41. package/src/components/data/XReportGrid/XReport.vue +25 -38
  42. package/src/components/data/XReportGrid/XReportDesign.vue +46 -46
  43. package/src/components/data/XReportGrid/XReportDrawer/XReportDrawer.vue +3 -3
  44. package/src/components/data/XReportGrid/XReportDrawer/index.ts +2 -2
  45. package/src/components/data/XReportGrid/XReportJsonRender.vue +20 -7
  46. package/src/components/data/XReportGrid/XReportTrGroup.vue +4 -4
  47. package/src/components/data/XReportGrid/index.md +4 -6
  48. package/src/components/data/XSignature/index.vue +285 -285
  49. package/src/components/data/XTag/index.vue +10 -10
  50. package/src/components/layout/NormalDataLayout/index.vue +70 -70
  51. package/src/components/layout/TabBarLayout/index.vue +40 -40
  52. package/src/components.d.ts +53 -53
  53. package/src/env.d.ts +16 -16
  54. package/src/font-style/font.css +3 -3
  55. package/src/hooks/useCommon.ts +9 -9
  56. package/src/layout/GridView/index.vue +1 -1
  57. package/src/layout/PageLayout.vue +5 -5
  58. package/src/layout/SingleLayout.vue +3 -3
  59. package/src/locales/en-US.json +25 -25
  60. package/src/locales/zh-CN.json +25 -25
  61. package/src/plugins/AppData.ts +38 -38
  62. package/src/plugins/index.ts +1 -1
  63. package/src/router/guards.ts +59 -59
  64. package/src/router/index.ts +61 -60
  65. package/src/router/invoiceRoutes.ts +33 -33
  66. package/src/router/routes.ts +20 -14
  67. package/src/services/api/common.ts +109 -109
  68. package/src/services/api/manage.ts +8 -8
  69. package/src/services/restTools.ts +52 -52
  70. package/src/services/v3Api.ts +46 -35
  71. package/src/stores/modules/cachedView.ts +1 -1
  72. package/src/stores/modules/setting.ts +52 -52
  73. package/src/stores/modules/user.ts +5 -5
  74. package/src/stores/mutation-type.ts +7 -7
  75. package/src/styles/app.less +6 -1
  76. package/src/utils/Storage.ts +1 -1
  77. package/src/utils/authority-utils.ts +84 -84
  78. package/src/utils/crypto.ts +39 -39
  79. package/src/utils/http/index.ts +6 -6
  80. package/src/utils/i18n.ts +41 -41
  81. package/src/utils/indexedDB.ts +180 -180
  82. package/src/utils/mobileUtil.ts +26 -26
  83. package/src/utils/routerUtil.ts +271 -271
  84. package/src/utils/runEvalFunction.ts +13 -13
  85. package/src/utils/validate.ts +1 -1
  86. package/src/utils/wechatUtil.ts +9 -9
  87. package/src/views/chat/index.vue +1 -1
  88. package/src/views/common/LoadError.vue +64 -64
  89. package/src/views/common/NotFound.vue +68 -68
  90. package/src/views/component/EvaluateRecordView/index.vue +40 -40
  91. package/src/views/component/XCellDetailView/index.vue +217 -216
  92. package/src/views/component/XCellListView/index.vue +1 -1
  93. package/src/views/component/XFormAppraiseView/index.vue +4 -4
  94. package/src/views/component/XFormGroupView/index.vue +1 -1
  95. package/src/views/component/XFormView/index.vue +6 -7
  96. package/src/views/component/XReportFormIframeView/index.vue +47 -47
  97. package/src/views/component/XReportFormView/index.vue +13 -13
  98. package/src/views/component/XReportGridView/index.vue +2 -3
  99. package/src/views/component/XSignatureView/index.vue +50 -50
  100. package/src/views/component/index.vue +4 -4
  101. package/src/views/component/menu.vue +117 -117
  102. package/src/views/component/notice.vue +46 -46
  103. package/src/views/component/topNav.vue +36 -36
  104. package/src/views/invoiceShow/index.vue +61 -62
  105. package/src/views/user/login/ForgetPasswordForm.vue +94 -93
  106. package/src/views/user/login/LoginForm.vue +8 -7
  107. package/src/views/user/login/LoginTitle.vue +68 -68
  108. package/src/views/user/login/index.vue +22 -22
  109. package/src/views/user/my/index.vue +230 -230
  110. package/src/vue-router.d.ts +9 -9
  111. package/tsconfig.json +43 -43
  112. package/uno.config.ts +1 -1
  113. package/vite.config.ts +123 -123
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,91 @@
1
- import path from 'node:path'
2
- import process from 'node:process'
3
- import vue from '@vitejs/plugin-vue'
4
- import legacy from '@vitejs/plugin-legacy'
5
- import UnoCSS from 'unocss/vite'
6
- import viteCompression from 'vite-plugin-compression'
7
- import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
8
- import { VitePWA } from 'vite-plugin-pwa'
9
- import Sitemap from 'vite-plugin-sitemap'
10
- import mockDevServerPlugin from 'vite-plugin-mock-dev-server'
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 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
+ }
package/eslint.config.js CHANGED
@@ -3,5 +3,13 @@ import antfu from '@antfu/eslint-config'
3
3
  export default antfu({
4
4
  // enable UnoCSS support
5
5
  // https://unocss.dev/integrations/vscode
6
- unocss: true,
6
+ ignorePatterns: ['package.json'],
7
+ // 禁用对 package.json 中键排序的检查
8
+ rules: {
9
+ 'jsonc/sort-keys': 'off',
10
+ 'imports/no-unused-vars': 'off',
11
+ 'ts/no-unsafe-function-type': 'off',
12
+ 'unused-imports/no-unused-vars': 'off',
13
+ 'no-console': ['error', { allow: ['warn', 'error', 'log', 'info'] }],
14
+ },
7
15
  })