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
@@ -1,152 +1,152 @@
1
- // https://github.com/pengzhanbo/vite-plugin-mock-dev-server
2
- import { defineMock } from 'vite-plugin-mock-dev-server'
3
-
4
- export default defineMock([{
5
- url: '/rs/logic/getLogin',
6
- delay: 300,
7
- body: () => {
8
- return {
9
- jwt: '60436',
10
- states: '登陆成功',
11
- }
12
- },
13
- }, {
14
- url: '/af-auth/login',
15
- delay: 300,
16
- body: () => {
17
- return {
18
- code: 200,
19
- error: false,
20
- success: true,
21
- msg: null,
22
- data: {
23
- access_token: 'eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2tleSI6IjFjZWQ4YTFmLWQ0NTctNDkxYi1iNDUzLTZiNTkyZWVlMWEyNSIsImZfdXNlcm5hbWUiOiJhZG1pbjIiLCJpZCI6MTIyMTM4fQ.AvIlpXKyf2wJ1acjpiorSHsSaKoCwx4bgPFkVk-qN7iZFFxldEC2qi9IKhu-5Xgz_WAf8VjFdaUWZlvVtefIDA',
24
- expires_in: 720,
25
- resources: {
26
- code: 200,
27
- data: {
28
- accesstime: '1706695089844',
29
- deleted: 'false',
30
- depids: '45500',
31
- deps: '滨河营业厅',
32
- deptype: '营业厅',
33
- dir: 'standard_windows',
34
- ename: 'admin2',
35
- entitytype: 't_user',
36
- f_age: '',
37
- f_create_date: '2022-11-22 11:50:52',
38
- f_department_name: '滨河营业厅',
39
- f_description: '',
40
- f_dir: 'standard_windows',
41
- f_extend1: 'null',
42
- f_extend2: 'null',
43
- f_icon: 'tree_user',
44
- f_idnumber: '',
45
- f_last_modification_time: '2023-07-03 11:39:40',
46
- f_ldap_version: 5154,
47
- f_mac_adress: 'null',
48
- f_old_userid: 'null',
49
- f_role_name: '安检员 客服中心管理员 营业员 收费员 客服中心管理员(气价设置) 呼叫员 乌达区派单员 测试营业员 海勃湾区派单员 安检管理员 维修员 系统管理 管理员 ',
50
- f_sex: '男',
51
- f_show_department_name: 'null',
52
- f_show_rolestr: 'null',
53
- f_update_date: '2024-01-16 15:00:11',
54
- f_user_macip: 'null',
55
- f_user_telephone: '',
56
- forceoutstate: '1',
57
- fullids: '37710.45500.122138.',
58
- fullnames: ' 安康逸华天然气有限公司.滨河营业厅.管理员',
59
- haslicense: 'false',
60
- id: '122138',
61
- imgid: 'null',
62
- initpassword: '000000',
63
- login_address: 'XX XX',
64
- logindate: '2024-02-01 10:41:22',
65
- loginid: '15',
66
- loginip: '61.150.12.251',
67
- loginnum: 1,
68
- loginnumber: 'null',
69
- name: '管理员',
70
- number: '',
71
- orgid: '37710',
72
- orgs: ' 安康逸华天然气有限公司',
73
- parentid: '45500',
74
- parentname: '滨河营业厅',
75
- position: '18',
76
- qrcode: '/rs/user/getQRcode?QRCODE=1d91-1669088967031-19905',
77
- resourcetype: 'user',
78
- roles: '63342,202099,185540,190376,201979,226308,244916,63336,276279,169595,63132,63192,278593,278597',
79
- rolesnames: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
80
- rolestr: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
81
- selfid: '122139',
82
- state: '在职',
83
- tablename: 't_user',
84
- templatename: 'useredit',
85
- token: '122138',
86
- ticket: null,
87
- url: null,
88
- userid: '31f7-1631780331801-89562',
89
- function: [],
90
- },
91
- msg: '操作成功',
92
- },
93
- },
94
- }
95
- },
96
- }, {
97
- url: '/rs/logic/getLogin/智慧燃气',
98
- delay: 300,
99
- body: () => {
100
- return {
101
- accesstime: '1706694963867',
102
- deleted: 'false',
103
- depids: '108646',
104
- deps: '客户服务热线班组',
105
- deptype: '部门',
106
- dir: 'tctrq',
107
- ename: 'cs',
108
- entitytype: 't_user',
109
- f_create_date: null,
110
- f_department_name: '客户服务热线班组',
111
- f_icon: 'tree_user',
112
- f_mac_adress: null,
113
- f_old_userid: null,
114
- f_role_name: '系统管理员 维修员 派单员 维修员 派单员 管理员 需要定位人员 用户管理员 班组长 安检员 安检员 抄表员 维修员 派单员 ',
115
- f_sex: '男',
116
- f_update_date: '2023-05-31 14:12:16',
117
- f_user_macip: null,
118
- forceoutstate: '0',
119
- fullids: '46997.108646.60436.',
120
- fullnames: '铜川市天然气.客户服务热线班组.测试',
121
- haslicense: 'true',
122
- id: '60436',
123
- imgid: null,
124
- initpassword: '1',
125
- logindate: '09 27 2022 10:11AM',
126
- loginid: '15',
127
- loginip: '192.168.17.106',
128
- loginnum: '0',
129
- loginnumber: null,
130
- name: '测试',
131
- number: '1007',
132
- orgid: '46997',
133
- orgs: '铜川市天然气',
134
- parentid: '108646',
135
- parentname: '客户服务热线班组',
136
- position: '2',
137
- qrcode: '/rs/user/getQRcode?QRCODE=31f7-1631780331801-89562',
138
- resourcetype: 'user',
139
- roles: '63342,202099,185540,190376,201979,226308,244916,63336,276279,169595,63132,63192,278593,278597',
140
- rolesnames: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
141
- rolestr: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
142
- selfid: '60437',
143
- state: '在职',
144
- tablename: 't_user',
145
- templatename: 'useredit',
146
- ticket: null,
147
- url: null,
148
- userid: '31f7-1631780331801-89562',
149
- functions: [],
150
- }
151
- },
152
- }])
1
+ // https://github.com/pengzhanbo/vite-plugin-mock-dev-server
2
+ import { defineMock } from 'vite-plugin-mock-dev-server'
3
+
4
+ export default defineMock([{
5
+ url: '/rs/logic/getLogin',
6
+ delay: 300,
7
+ body: () => {
8
+ return {
9
+ jwt: '60436',
10
+ states: '登陆成功',
11
+ }
12
+ },
13
+ }, {
14
+ url: '/af-auth/login',
15
+ delay: 300,
16
+ body: () => {
17
+ return {
18
+ code: 200,
19
+ error: false,
20
+ success: true,
21
+ msg: null,
22
+ data: {
23
+ access_token: 'eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2tleSI6IjFjZWQ4YTFmLWQ0NTctNDkxYi1iNDUzLTZiNTkyZWVlMWEyNSIsImZfdXNlcm5hbWUiOiJhZG1pbjIiLCJpZCI6MTIyMTM4fQ.AvIlpXKyf2wJ1acjpiorSHsSaKoCwx4bgPFkVk-qN7iZFFxldEC2qi9IKhu-5Xgz_WAf8VjFdaUWZlvVtefIDA',
24
+ expires_in: 720,
25
+ resources: {
26
+ code: 200,
27
+ data: {
28
+ accesstime: '1706695089844',
29
+ deleted: 'false',
30
+ depids: '45500',
31
+ deps: '滨河营业厅',
32
+ deptype: '营业厅',
33
+ dir: 'standard_windows',
34
+ ename: 'admin2',
35
+ entitytype: 't_user',
36
+ f_age: '',
37
+ f_create_date: '2022-11-22 11:50:52',
38
+ f_department_name: '滨河营业厅',
39
+ f_description: '',
40
+ f_dir: 'standard_windows',
41
+ f_extend1: 'null',
42
+ f_extend2: 'null',
43
+ f_icon: 'tree_user',
44
+ f_idnumber: '',
45
+ f_last_modification_time: '2023-07-03 11:39:40',
46
+ f_ldap_version: 5154,
47
+ f_mac_adress: 'null',
48
+ f_old_userid: 'null',
49
+ f_role_name: '安检员 客服中心管理员 营业员 收费员 客服中心管理员(气价设置) 呼叫员 乌达区派单员 测试营业员 海勃湾区派单员 安检管理员 维修员 系统管理 管理员 ',
50
+ f_sex: '男',
51
+ f_show_department_name: 'null',
52
+ f_show_rolestr: 'null',
53
+ f_update_date: '2024-01-16 15:00:11',
54
+ f_user_macip: 'null',
55
+ f_user_telephone: '',
56
+ forceoutstate: '1',
57
+ fullids: '37710.45500.122138.',
58
+ fullnames: ' 安康逸华天然气有限公司.滨河营业厅.管理员',
59
+ haslicense: 'false',
60
+ id: '122138',
61
+ imgid: 'null',
62
+ initpassword: '000000',
63
+ login_address: 'XX XX',
64
+ logindate: '2024-02-01 10:41:22',
65
+ loginid: '15',
66
+ loginip: '61.150.12.251',
67
+ loginnum: 1,
68
+ loginnumber: 'null',
69
+ name: '管理员',
70
+ number: '',
71
+ orgid: '37710',
72
+ orgs: ' 安康逸华天然气有限公司',
73
+ parentid: '45500',
74
+ parentname: '滨河营业厅',
75
+ position: '18',
76
+ qrcode: '/rs/user/getQRcode?QRCODE=1d91-1669088967031-19905',
77
+ resourcetype: 'user',
78
+ roles: '63342,202099,185540,190376,201979,226308,244916,63336,276279,169595,63132,63192,278593,278597',
79
+ rolesnames: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
80
+ rolestr: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
81
+ selfid: '122139',
82
+ state: '在职',
83
+ tablename: 't_user',
84
+ templatename: 'useredit',
85
+ token: '122138',
86
+ ticket: null,
87
+ url: null,
88
+ userid: '31f7-1631780331801-89562',
89
+ function: [],
90
+ },
91
+ msg: '操作成功',
92
+ },
93
+ },
94
+ }
95
+ },
96
+ }, {
97
+ url: '/rs/logic/getLogin/智慧燃气',
98
+ delay: 300,
99
+ body: () => {
100
+ return {
101
+ accesstime: '1706694963867',
102
+ deleted: 'false',
103
+ depids: '108646',
104
+ deps: '客户服务热线班组',
105
+ deptype: '部门',
106
+ dir: 'tctrq',
107
+ ename: 'cs',
108
+ entitytype: 't_user',
109
+ f_create_date: null,
110
+ f_department_name: '客户服务热线班组',
111
+ f_icon: 'tree_user',
112
+ f_mac_adress: null,
113
+ f_old_userid: null,
114
+ f_role_name: '系统管理员 维修员 派单员 维修员 派单员 管理员 需要定位人员 用户管理员 班组长 安检员 安检员 抄表员 维修员 派单员 ',
115
+ f_sex: '男',
116
+ f_update_date: '2023-05-31 14:12:16',
117
+ f_user_macip: null,
118
+ forceoutstate: '0',
119
+ fullids: '46997.108646.60436.',
120
+ fullnames: '铜川市天然气.客户服务热线班组.测试',
121
+ haslicense: 'true',
122
+ id: '60436',
123
+ imgid: null,
124
+ initpassword: '1',
125
+ logindate: '09 27 2022 10:11AM',
126
+ loginid: '15',
127
+ loginip: '192.168.17.106',
128
+ loginnum: '0',
129
+ loginnumber: null,
130
+ name: '测试',
131
+ number: '1007',
132
+ orgid: '46997',
133
+ orgs: '铜川市天然气',
134
+ parentid: '108646',
135
+ parentname: '客户服务热线班组',
136
+ position: '2',
137
+ qrcode: '/rs/user/getQRcode?QRCODE=31f7-1631780331801-89562',
138
+ resourcetype: 'user',
139
+ roles: '63342,202099,185540,190376,201979,226308,244916,63336,276279,169595,63132,63192,278593,278597',
140
+ rolesnames: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
141
+ rolestr: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
142
+ selfid: '60437',
143
+ state: '在职',
144
+ tablename: 't_user',
145
+ templatename: 'useredit',
146
+ ticket: null,
147
+ url: null,
148
+ userid: '31f7-1631780331801-89562',
149
+ functions: [],
150
+ }
151
+ },
152
+ }])
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.1.5",
4
+ "version": "1.1.7",
5
5
  "description": "Vue + Vite component lib",
6
6
  "license": "MIT",
7
7
  "engines": {
@@ -25,6 +25,7 @@
25
25
  "@vant/touch-emulator": "^1.4.0",
26
26
  "@vant/use": "^1.6.0",
27
27
  "@vueuse/core": "^13.1.0",
28
+ "@iconify/vue": "4.3.0",
28
29
  "animate.css": "^4.1.1",
29
30
  "axios": "^1.8.4",
30
31
  "crypto-js": "^4.2.0",
@@ -44,6 +45,7 @@
44
45
  },
45
46
  "devDependencies": {
46
47
  "@antfu/eslint-config": "^4.12.0",
48
+ "@iconify/json": "2.2.318",
47
49
  "@types/crypto-js": "^4.2.2",
48
50
  "@types/lodash-es": "^4.17.12",
49
51
  "@types/node": "^22.14.1",
@@ -1,4 +1,4 @@
1
- <svg t="1709866807903" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4913" width="32" height="32">
2
- <path d="M512 598.528a111.232 111.232 0 0 0-111.232 111.2064V870.4h222.464v-160.6656c0-61.44-49.792-111.232-111.232-111.232z m0 58.0608c-30.72 0-55.6032 24.9088-55.6032 55.6288v105.0368h111.2064v-105.0368c0-30.72-24.8832-55.6288-55.6032-55.6288z" fill="#FB4D31" p-id="4914"></path>
3
- <path d="M542.08 270.208l45.2608-78.5408a24.5248 24.5248 0 0 0 0-25.6A26.4448 26.4448 0 0 0 564.1472 153.6a26.3424 26.3424 0 0 0-22.5792 13.44L512 217.6256l-29.5424-50.5344c-4.5824-8.192-13.184-13.312-22.5536-13.4912a26.4448 26.4448 0 0 0-23.2448 12.4928 24.5248 24.5248 0 0 0 0 25.6l45.2352 78.5152L156.928 832.768a24.4736 24.4736 0 0 0 0.3328 25.088c4.8384 7.8336 13.3888 12.544 22.5792 12.5184h664.3456c9.3184 0 17.92-4.7616 22.6304-12.4672a24.4736 24.4736 0 0 0 0.3072-25.088l-325.0176-562.688v0.0512zM619.52 816.64h-33.3568c-12.3648 0-9.6768 0.1024-65.0496 0H512c-55.3728 0.1024-24.704 0-61.7984 0H225.28L512 322.1248 798.72 816.64h-179.2z" fill="#000000" p-id="4915"></path>
4
- </svg>
1
+ <svg t="1709866807903" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4913" width="32" height="32">
2
+ <path d="M512 598.528a111.232 111.232 0 0 0-111.232 111.2064V870.4h222.464v-160.6656c0-61.44-49.792-111.232-111.232-111.232z m0 58.0608c-30.72 0-55.6032 24.9088-55.6032 55.6288v105.0368h111.2064v-105.0368c0-30.72-24.8832-55.6288-55.6032-55.6288z" fill="#FB4D31" p-id="4914"></path>
3
+ <path d="M542.08 270.208l45.2608-78.5408a24.5248 24.5248 0 0 0 0-25.6A26.4448 26.4448 0 0 0 564.1472 153.6a26.3424 26.3424 0 0 0-22.5792 13.44L512 217.6256l-29.5424-50.5344c-4.5824-8.192-13.184-13.312-22.5536-13.4912a26.4448 26.4448 0 0 0-23.2448 12.4928 24.5248 24.5248 0 0 0 0 25.6l45.2352 78.5152L156.928 832.768a24.4736 24.4736 0 0 0 0.3328 25.088c4.8384 7.8336 13.3888 12.544 22.5792 12.5184h664.3456c9.3184 0 17.92-4.7616 22.6304-12.4672a24.4736 24.4736 0 0 0 0.3072-25.088l-325.0176-562.688v0.0512zM619.52 816.64h-33.3568c-12.3648 0-9.6768 0.1024-65.0496 0H512c-55.3728 0.1024-24.704 0-61.7984 0H225.28L512 322.1248 798.72 816.64h-179.2z" fill="#000000" p-id="4915"></path>
4
+ </svg>
@@ -1,32 +1,32 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
- "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
- <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
- width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000"
6
- preserveAspectRatio="xMidYMid meet">
7
- <metadata>
8
- Created by potrace 1.14, written by Peter Selinger 2001-2017
9
- </metadata>
10
- <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
11
- fill="#000000" stroke="none">
12
- <path d="M2232 4334 c-45 -23 -67 -67 -63 -130 0 -11 55 -113 121 -227 l120
13
- -207 -186 -322 c-103 -178 -229 -397 -282 -488 -53 -91 -110 -190 -127 -220
14
- -17 -30 -168 -291 -335 -580 -167 -289 -310 -536 -317 -550 -8 -14 -25 -43
15
- -38 -65 -13 -22 -32 -56 -43 -75 -19 -35 -203 -354 -269 -465 -63 -106 -53
16
- -178 30 -222 29 -15 171 -16 1717 -16 1855 0 1719 -5 1769 59 37 47 28 87 -50
17
- 224 -39 69 -80 141 -91 160 -26 45 -236 409 -465 805 -99 171 -191 330 -205
18
- 355 -14 25 -76 133 -138 240 -96 165 -210 363 -280 485 -10 17 -93 161 -185
19
- 320 -92 160 -176 305 -186 323 l-19 32 109 188 c140 242 133 229 133 273 -1
20
- 69 -58 119 -136 119 -58 0 -88 -30 -172 -174 -43 -75 -82 -136 -85 -136 -4 0
21
- -13 12 -20 28 -46 90 -146 246 -166 259 -35 23 -102 27 -141 7z m388 -926 c30
22
- -51 64 -111 76 -133 12 -22 68 -119 124 -215 56 -96 112 -193 125 -215 12 -22
23
- 55 -96 95 -165 40 -69 91 -156 113 -195 22 -38 126 -218 232 -400 105 -181
24
- 203 -350 217 -375 14 -25 74 -128 133 -230 60 -102 116 -198 125 -215 62 -107
25
- 123 -211 130 -220 6 -7 -140 -10 -433 -9 l-441 1 -1 314 c-1 273 -4 321 -19
26
- 369 -46 138 -98 215 -202 292 -63 47 -139 87 -171 89 -2 1 -25 6 -51 14 -95
27
- 25 -271 2 -362 -47 -153 -82 -263 -228 -296 -390 -4 -18 -7 -170 -8 -337 l-1
28
- -304 -442 -1 c-293 -1 -439 2 -433 9 7 9 77 127 135 230 13 22 128 220 255
29
- 440 128 220 241 416 252 435 74 129 221 382 274 473 35 59 64 109 64 111 0 3
30
- 22 40 49 84 27 44 50 84 52 89 10 26 344 593 349 593 3 0 30 -42 60 -92z"/>
31
- </g>
32
- </svg>
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
+ "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
+ <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
+ width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000"
6
+ preserveAspectRatio="xMidYMid meet">
7
+ <metadata>
8
+ Created by potrace 1.14, written by Peter Selinger 2001-2017
9
+ </metadata>
10
+ <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
11
+ fill="#000000" stroke="none">
12
+ <path d="M2232 4334 c-45 -23 -67 -67 -63 -130 0 -11 55 -113 121 -227 l120
13
+ -207 -186 -322 c-103 -178 -229 -397 -282 -488 -53 -91 -110 -190 -127 -220
14
+ -17 -30 -168 -291 -335 -580 -167 -289 -310 -536 -317 -550 -8 -14 -25 -43
15
+ -38 -65 -13 -22 -32 -56 -43 -75 -19 -35 -203 -354 -269 -465 -63 -106 -53
16
+ -178 30 -222 29 -15 171 -16 1717 -16 1855 0 1719 -5 1769 59 37 47 28 87 -50
17
+ 224 -39 69 -80 141 -91 160 -26 45 -236 409 -465 805 -99 171 -191 330 -205
18
+ 355 -14 25 -76 133 -138 240 -96 165 -210 363 -280 485 -10 17 -93 161 -185
19
+ 320 -92 160 -176 305 -186 323 l-19 32 109 188 c140 242 133 229 133 273 -1
20
+ 69 -58 119 -136 119 -58 0 -88 -30 -172 -174 -43 -75 -82 -136 -85 -136 -4 0
21
+ -13 12 -20 28 -46 90 -146 246 -166 259 -35 23 -102 27 -141 7z m388 -926 c30
22
+ -51 64 -111 76 -133 12 -22 68 -119 124 -215 56 -96 112 -193 125 -215 12 -22
23
+ 55 -96 95 -165 40 -69 91 -156 113 -195 22 -38 126 -218 232 -400 105 -181
24
+ 203 -350 217 -375 14 -25 74 -128 133 -230 60 -102 116 -198 125 -215 62 -107
25
+ 123 -211 130 -220 6 -7 -140 -10 -433 -9 l-441 1 -1 314 c-1 273 -4 321 -19
26
+ 369 -46 138 -98 215 -202 292 -63 47 -139 87 -171 89 -2 1 -25 6 -51 14 -95
27
+ 25 -271 2 -362 -47 -153 -82 -263 -228 -296 -390 -4 -18 -7 -170 -8 -337 l-1
28
+ -304 -442 -1 c-293 -1 -439 2 -433 9 7 9 77 127 135 230 13 22 128 220 255
29
+ 440 128 220 241 416 252 435 74 129 221 382 274 473 35 59 64 109 64 111 0 3
30
+ 22 40 49 84 27 44 50 84 52 89 10 26 344 593 349 593 3 0 30 -42 60 -92z"/>
31
+ </g>
32
+ </svg>
@@ -1,19 +1,19 @@
1
- import fs from 'node:fs'
2
-
3
- // import process from 'node:process'
4
-
5
- const msg = fs.readFileSync('.git/COMMIT_EDITMSG', 'utf-8').trim()
6
-
7
- const commitRE = /^(?:revert: )?(?:feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(?:\(.+\))?: .{1,50}/
8
- // const mergeRe = /^(Merge pull request|Merge branch)/
9
-
10
- if (!commitRE.test(msg)) {
11
- // if (!mergeRe.test(msg)) {
12
- // console.log('git commit unpass')
13
- // console.error('git commit error, needs title(scope): desc')
14
- // process.exit(1)
15
- // }
16
- }
17
- else {
18
- console.log('git commit pass')
19
- }
1
+ import fs from 'node:fs'
2
+
3
+ // import process from 'node:process'
4
+
5
+ const msg = fs.readFileSync('.git/COMMIT_EDITMSG', 'utf-8').trim()
6
+
7
+ const commitRE = /^(?:revert: )?(?:feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(?:\(.+\))?: .{1,50}/
8
+ // const mergeRe = /^(Merge pull request|Merge branch)/
9
+
10
+ if (!commitRE.test(msg)) {
11
+ // if (!mergeRe.test(msg)) {
12
+ // console.log('git commit unpass')
13
+ // console.error('git commit error, needs title(scope): desc')
14
+ // process.exit(1)
15
+ // }
16
+ }
17
+ else {
18
+ console.log('git commit pass')
19
+ }
package/src/App.vue CHANGED
@@ -1,43 +1,43 @@
1
- <script setup lang="ts">
2
- import type { ConfigProviderThemeVars } from 'vant'
3
- import { useHead } from '@unhead/vue'
4
- import {
5
- ConfigProvider as VanConfigProvider,
6
- } from 'vant/es'
7
- import { reactive } from 'vue'
8
-
9
- useHead({
10
- title: '智慧燃气',
11
- meta: [
12
- {
13
- name: 'description',
14
- content: '智慧燃气手机端',
15
- },
16
- {
17
- name: 'theme-color',
18
- content: () => '#ffffff',
19
- },
20
- ],
21
- })
22
- const themeVars: ConfigProviderThemeVars = reactive({
23
- baseFont: 'PingFangSC-Regular-woff2, serif',
24
- })
25
- </script>
26
-
27
- <template>
28
- <VanConfigProvider theme="light" :theme-vars="themeVars" theme-vars-scope="global">
29
- <router-view v-slot="{ Component }">
30
- <component :is="Component" />
31
- </router-view>
32
- </VanConfigProvider>
33
- </template>
34
-
35
- <style>
36
- @import "./font-style/font.css";
37
- input[type="password"]::-ms-reveal{
38
- display: none;
39
- }
40
- input[type="password"]::-ms-clear{
41
- display: none;
42
- }
43
- </style>
1
+ <script setup lang="ts">
2
+ import type { ConfigProviderThemeVars } from 'vant'
3
+ import { useHead } from '@unhead/vue'
4
+ import {
5
+ ConfigProvider as VanConfigProvider,
6
+ } from 'vant/es'
7
+ import { reactive } from 'vue'
8
+
9
+ useHead({
10
+ title: '智慧燃气',
11
+ meta: [
12
+ {
13
+ name: 'description',
14
+ content: '智慧燃气手机端',
15
+ },
16
+ {
17
+ name: 'theme-color',
18
+ content: () => '#ffffff',
19
+ },
20
+ ],
21
+ })
22
+ const themeVars: ConfigProviderThemeVars = reactive({
23
+ baseFont: 'PingFangSC-Regular-woff2, serif',
24
+ })
25
+ </script>
26
+
27
+ <template>
28
+ <VanConfigProvider theme="light" :theme-vars="themeVars" theme-vars-scope="global">
29
+ <router-view v-slot="{ Component }">
30
+ <component :is="Component" />
31
+ </router-view>
32
+ </VanConfigProvider>
33
+ </template>
34
+
35
+ <style>
36
+ @import "./font-style/font.css";
37
+ input[type="password"]::-ms-reveal{
38
+ display: none;
39
+ }
40
+ input[type="password"]::-ms-clear{
41
+ display: none;
42
+ }
43
+ </style>
@@ -1,40 +1,40 @@
1
- import { loginApi } from '@af-mobile-client-vue3/services/api/Login'
2
-
3
- import { get, post } from '@af-mobile-client-vue3/services/restTools'
4
- import { http } from '@af-mobile-client-vue3/utils/http'
5
-
6
- export interface BasicResponseModel<T = any> {
7
- code: number
8
- msg: string
9
- data: T
10
- }
11
-
12
- export function login(data: any) {
13
- return post(
14
- loginApi.Login,
15
- data,
16
- )
17
- }
18
-
19
- export function OALogin(data: any) {
20
- return get(`/af-system/user/${data.username}/${data.password}/智慧OA`)
21
- }
22
-
23
- /**
24
- * @description: 获取用户信息
25
- */
26
- export function getUserInfo() {
27
- return get(
28
- '/getUserInfo',
29
- )
30
- }
31
-
32
- /**
33
- * @description: 用户登出
34
- */
35
- export function doLogout() {
36
- return http.request({
37
- url: loginApi.Logout,
38
- method: 'DELETE',
39
- })
40
- }
1
+ import { loginApi } from '@af-mobile-client-vue3/services/api/Login'
2
+
3
+ import { get, post } from '@af-mobile-client-vue3/services/restTools'
4
+ import { http } from '@af-mobile-client-vue3/utils/http'
5
+
6
+ export interface BasicResponseModel<T = any> {
7
+ code: number
8
+ msg: string
9
+ data: T
10
+ }
11
+
12
+ export function login(data: any) {
13
+ return post(
14
+ loginApi.Login,
15
+ data,
16
+ )
17
+ }
18
+
19
+ export function OALogin(data: any) {
20
+ return get(`/af-system/user/${data.username}/${data.password}/智慧OA`)
21
+ }
22
+
23
+ /**
24
+ * @description: 获取用户信息
25
+ */
26
+ export function getUserInfo() {
27
+ return get(
28
+ '/getUserInfo',
29
+ )
30
+ }
31
+
32
+ /**
33
+ * @description: 用户登出
34
+ */
35
+ export function doLogout() {
36
+ return http.request({
37
+ url: loginApi.Logout,
38
+ method: 'DELETE',
39
+ })
40
+ }
package/src/bootstrap.ts CHANGED
@@ -1,18 +1,18 @@
1
- import type { Router } from 'vue-router'
2
- import guards from '@af-mobile-client-vue3/router/guards'
3
- import { loadGuards, loadRoutes } from '@af-mobile-client-vue3/utils/routerUtil'
4
-
5
- type GuardFunction = (to: any, from: any, next?: any) => void
6
- interface Guards {
7
- beforeEach?: GuardFunction[]
8
- afterEach?: GuardFunction[]
9
- }
10
-
11
- async function bootstrap(router: Router, customGuard: Guards = {}) {
12
- // 加载路由
13
- loadRoutes()
14
- // 加载路由守卫
15
- loadGuards({ ...guards, ...customGuard }, router)
16
- }
17
-
18
- export default bootstrap
1
+ import type { Router } from 'vue-router'
2
+ import guards from '@af-mobile-client-vue3/router/guards'
3
+ import { loadGuards, loadRoutes } from '@af-mobile-client-vue3/utils/routerUtil'
4
+
5
+ type GuardFunction = (to: any, from: any, next?: any) => void
6
+ interface Guards {
7
+ beforeEach?: GuardFunction[]
8
+ afterEach?: GuardFunction[]
9
+ }
10
+
11
+ async function bootstrap(router: Router, customGuard: Guards = {}) {
12
+ // 加载路由
13
+ loadRoutes()
14
+ // 加载路由守卫
15
+ loadGuards({ ...guards, ...customGuard }, router)
16
+ }
17
+
18
+ export default bootstrap