af-mobile-client-vue3 1.4.33 → 1.4.34
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/package.json +117 -117
- package/src/api/user/index.ts +45 -45
- package/src/components/data/OtherCharge/OtherChargeGroupModal.vue +542 -542
- package/src/router/guards.ts +131 -131
- package/src/services/api/Login.ts +6 -6
- package/src/services/v3Api.ts +170 -170
- package/src/types/platform.ts +194 -194
- package/src/utils/platform-auth.ts +150 -150
- package/src/utils/wechat.ts +297 -297
- package/src/views/external/index.vue +158 -158
- package/src/views/loading/AuthLoading.vue +395 -395
- package/src/views/user/my/comm/ModifyPassword.vue +2 -1
- package/src/views/user/register/index.vue +958 -958
- package/vite.config.ts +115 -115
- package/certs/127.0.0.1+2-key.pem +0 -28
- package/certs/127.0.0.1+2.pem +0 -27
- package/mock/modules/prose.mock.ts.timestamp-1758877157774.mjs +0 -53
- package/mock/modules/user.mock.ts.timestamp-1758877157774.mjs +0 -97
package/package.json
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "af-mobile-client-vue3",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
5
|
-
"packageManager": "pnpm@10.13.1",
|
|
6
|
-
"description": "Vue + Vite component lib",
|
|
7
|
-
"engines": {
|
|
8
|
-
"node": ">=20.19.0"
|
|
9
|
-
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"dev": "cross-env MOCK_SERVER_PORT=8086 vite",
|
|
12
|
-
"compress": "node ./compress.js",
|
|
13
|
-
"build:dev": "vue-tsc --noEmit && vite build --mode development && pnpm run compress",
|
|
14
|
-
"build:pro": "vue-tsc --noEmit && vite build --mode production && pnpm run compress",
|
|
15
|
-
"preview": "vite preview",
|
|
16
|
-
"lint": "eslint .",
|
|
17
|
-
"lint:fix": "eslint . --fix",
|
|
18
|
-
"release": "bumpp --commit --push --tag",
|
|
19
|
-
"typecheck": "vue-tsc --noEmit",
|
|
20
|
-
"commitlint": "commitlint --edit",
|
|
21
|
-
"prepare": "simple-git-hooks"
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@iconify/vue": "4.3.0",
|
|
25
|
-
"@micro-zoe/micro-app": "1.0.0-rc.26",
|
|
26
|
-
"@unhead/vue": "2.0.12",
|
|
27
|
-
"@vant/area-data": "^2.0.0",
|
|
28
|
-
"@vant/touch-emulator": "^1.4.0",
|
|
29
|
-
"@vant/use": "^1.6.0",
|
|
30
|
-
"@vueuse/core": "^13.5.0",
|
|
31
|
-
"axios": "^1.10.0",
|
|
32
|
-
"crypto-js": "^4.2.0",
|
|
33
|
-
"dayjs": "^1.11.13",
|
|
34
|
-
"echarts": "^5.6.0",
|
|
35
|
-
"lodash-es": "^4.17.21",
|
|
36
|
-
"nprogress": "^0.2.0",
|
|
37
|
-
"ol": "^10.5.0",
|
|
38
|
-
"pinia": "^3.0.3",
|
|
39
|
-
"pinia-plugin-persistedstate": "^4.4.1",
|
|
40
|
-
"resize-detector": "^0.3.0",
|
|
41
|
-
"vant": "^4.9.21",
|
|
42
|
-
"vconsole": "^3.15.1",
|
|
43
|
-
"vue": "^3.5.17",
|
|
44
|
-
"vue-i18n": "^11.1.10",
|
|
45
|
-
"vue-router": "^4.5.1",
|
|
46
|
-
"vue3-hash-calendar": "^1.1.3",
|
|
47
|
-
"weixin-js-sdk": "^1.6.5",
|
|
48
|
-
"jsencrypt": "^3.3.2",
|
|
49
|
-
"bcryptjs": "^2.4.3"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@antfu/eslint-config": "4.17.0",
|
|
53
|
-
"@commitlint/cli": "^19.8.1",
|
|
54
|
-
"@commitlint/config-conventional": "^19.8.1",
|
|
55
|
-
"@commitlint/types": "^19.8.1",
|
|
56
|
-
"@iconify/json": "2.2.318",
|
|
57
|
-
"@iconify/utils": "^2.3.0",
|
|
58
|
-
"@intlify/unplugin-vue-i18n": "^6.0.8",
|
|
59
|
-
"@types/crypto-js": "^4.2.2",
|
|
60
|
-
"@types/lodash-es": "^4.17.12",
|
|
61
|
-
"@types/node": "^24.0.14",
|
|
62
|
-
"@types/nprogress": "^0.2.3",
|
|
63
|
-
"@unocss/eslint-config": "66.3.3",
|
|
64
|
-
"@vitejs/plugin-legacy": "^7.0.1",
|
|
65
|
-
"@vitejs/plugin-vue": "^6.0.0",
|
|
66
|
-
"autoprefixer": "^10.4.21",
|
|
67
|
-
"bumpp": "^10.2.0",
|
|
68
|
-
"consola": "^3.4.2",
|
|
69
|
-
"cross-env": "^7.0.3",
|
|
70
|
-
"eslint": "^9.31.0",
|
|
71
|
-
"eslint-plugin-format": "^1.0.1",
|
|
72
|
-
"less": "^4.4.0",
|
|
73
|
-
"lint-staged": "^16.1.2",
|
|
74
|
-
"mockjs": "^1.1.0",
|
|
75
|
-
"postcss-mobile-forever": "^5.0.0",
|
|
76
|
-
"rollup": "^4.45.1",
|
|
77
|
-
"simple-git-hooks": "^2.13.0",
|
|
78
|
-
"tar": "^7.4.3",
|
|
79
|
-
"terser": "^5.43.1",
|
|
80
|
-
"typescript": "^5.8.3",
|
|
81
|
-
"unocss": "66.3.3",
|
|
82
|
-
"vite": "^7.0.5",
|
|
83
|
-
"vite-plugin-compression": "^0.5.1",
|
|
84
|
-
"vite-plugin-mock-dev-server": "^1.9.1",
|
|
85
|
-
"vite-plugin-pwa": "^1.0.1",
|
|
86
|
-
"vite-plugin-sitemap": "^0.8.2",
|
|
87
|
-
"vite-plugin-vconsole": "^2.1.1",
|
|
88
|
-
"vite-plugin-vue-devtools": "^7.7.7",
|
|
89
|
-
"vue-tsc": "^3.0.2"
|
|
90
|
-
},
|
|
91
|
-
"pnpm": {
|
|
92
|
-
"allowedDeprecatedVersions": {
|
|
93
|
-
"glob": "7.2.3",
|
|
94
|
-
"inflight": "1.0.6",
|
|
95
|
-
"sourcemap-codec": "1.4.8"
|
|
96
|
-
},
|
|
97
|
-
"peerDependencyRules": {
|
|
98
|
-
"allowedVersions": {}
|
|
99
|
-
},
|
|
100
|
-
"onlyBuiltDependencies": [
|
|
101
|
-
"core-js",
|
|
102
|
-
"esbuild",
|
|
103
|
-
"simple-git-hooks",
|
|
104
|
-
"unrs-resolver"
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
"resolutions": {
|
|
108
|
-
"vite": "^7.0.5"
|
|
109
|
-
},
|
|
110
|
-
"simple-git-hooks": {
|
|
111
|
-
"pre-commit": "pnpm lint-staged",
|
|
112
|
-
"commit-msg": "pnpm commitlint $1"
|
|
113
|
-
},
|
|
114
|
-
"lint-staged": {
|
|
115
|
-
"*": "eslint --fix"
|
|
116
|
-
}
|
|
117
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "af-mobile-client-vue3",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.4.34",
|
|
5
|
+
"packageManager": "pnpm@10.13.1",
|
|
6
|
+
"description": "Vue + Vite component lib",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=20.19.0"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"dev": "cross-env MOCK_SERVER_PORT=8086 vite",
|
|
12
|
+
"compress": "node ./compress.js",
|
|
13
|
+
"build:dev": "vue-tsc --noEmit && vite build --mode development && pnpm run compress",
|
|
14
|
+
"build:pro": "vue-tsc --noEmit && vite build --mode production && pnpm run compress",
|
|
15
|
+
"preview": "vite preview",
|
|
16
|
+
"lint": "eslint .",
|
|
17
|
+
"lint:fix": "eslint . --fix",
|
|
18
|
+
"release": "bumpp --commit --push --tag",
|
|
19
|
+
"typecheck": "vue-tsc --noEmit",
|
|
20
|
+
"commitlint": "commitlint --edit",
|
|
21
|
+
"prepare": "simple-git-hooks"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@iconify/vue": "4.3.0",
|
|
25
|
+
"@micro-zoe/micro-app": "1.0.0-rc.26",
|
|
26
|
+
"@unhead/vue": "2.0.12",
|
|
27
|
+
"@vant/area-data": "^2.0.0",
|
|
28
|
+
"@vant/touch-emulator": "^1.4.0",
|
|
29
|
+
"@vant/use": "^1.6.0",
|
|
30
|
+
"@vueuse/core": "^13.5.0",
|
|
31
|
+
"axios": "^1.10.0",
|
|
32
|
+
"crypto-js": "^4.2.0",
|
|
33
|
+
"dayjs": "^1.11.13",
|
|
34
|
+
"echarts": "^5.6.0",
|
|
35
|
+
"lodash-es": "^4.17.21",
|
|
36
|
+
"nprogress": "^0.2.0",
|
|
37
|
+
"ol": "^10.5.0",
|
|
38
|
+
"pinia": "^3.0.3",
|
|
39
|
+
"pinia-plugin-persistedstate": "^4.4.1",
|
|
40
|
+
"resize-detector": "^0.3.0",
|
|
41
|
+
"vant": "^4.9.21",
|
|
42
|
+
"vconsole": "^3.15.1",
|
|
43
|
+
"vue": "^3.5.17",
|
|
44
|
+
"vue-i18n": "^11.1.10",
|
|
45
|
+
"vue-router": "^4.5.1",
|
|
46
|
+
"vue3-hash-calendar": "^1.1.3",
|
|
47
|
+
"weixin-js-sdk": "^1.6.5",
|
|
48
|
+
"jsencrypt": "^3.3.2",
|
|
49
|
+
"bcryptjs": "^2.4.3"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@antfu/eslint-config": "4.17.0",
|
|
53
|
+
"@commitlint/cli": "^19.8.1",
|
|
54
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
55
|
+
"@commitlint/types": "^19.8.1",
|
|
56
|
+
"@iconify/json": "2.2.318",
|
|
57
|
+
"@iconify/utils": "^2.3.0",
|
|
58
|
+
"@intlify/unplugin-vue-i18n": "^6.0.8",
|
|
59
|
+
"@types/crypto-js": "^4.2.2",
|
|
60
|
+
"@types/lodash-es": "^4.17.12",
|
|
61
|
+
"@types/node": "^24.0.14",
|
|
62
|
+
"@types/nprogress": "^0.2.3",
|
|
63
|
+
"@unocss/eslint-config": "66.3.3",
|
|
64
|
+
"@vitejs/plugin-legacy": "^7.0.1",
|
|
65
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
66
|
+
"autoprefixer": "^10.4.21",
|
|
67
|
+
"bumpp": "^10.2.0",
|
|
68
|
+
"consola": "^3.4.2",
|
|
69
|
+
"cross-env": "^7.0.3",
|
|
70
|
+
"eslint": "^9.31.0",
|
|
71
|
+
"eslint-plugin-format": "^1.0.1",
|
|
72
|
+
"less": "^4.4.0",
|
|
73
|
+
"lint-staged": "^16.1.2",
|
|
74
|
+
"mockjs": "^1.1.0",
|
|
75
|
+
"postcss-mobile-forever": "^5.0.0",
|
|
76
|
+
"rollup": "^4.45.1",
|
|
77
|
+
"simple-git-hooks": "^2.13.0",
|
|
78
|
+
"tar": "^7.4.3",
|
|
79
|
+
"terser": "^5.43.1",
|
|
80
|
+
"typescript": "^5.8.3",
|
|
81
|
+
"unocss": "66.3.3",
|
|
82
|
+
"vite": "^7.0.5",
|
|
83
|
+
"vite-plugin-compression": "^0.5.1",
|
|
84
|
+
"vite-plugin-mock-dev-server": "^1.9.1",
|
|
85
|
+
"vite-plugin-pwa": "^1.0.1",
|
|
86
|
+
"vite-plugin-sitemap": "^0.8.2",
|
|
87
|
+
"vite-plugin-vconsole": "^2.1.1",
|
|
88
|
+
"vite-plugin-vue-devtools": "^7.7.7",
|
|
89
|
+
"vue-tsc": "^3.0.2"
|
|
90
|
+
},
|
|
91
|
+
"pnpm": {
|
|
92
|
+
"allowedDeprecatedVersions": {
|
|
93
|
+
"glob": "7.2.3",
|
|
94
|
+
"inflight": "1.0.6",
|
|
95
|
+
"sourcemap-codec": "1.4.8"
|
|
96
|
+
},
|
|
97
|
+
"peerDependencyRules": {
|
|
98
|
+
"allowedVersions": {}
|
|
99
|
+
},
|
|
100
|
+
"onlyBuiltDependencies": [
|
|
101
|
+
"core-js",
|
|
102
|
+
"esbuild",
|
|
103
|
+
"simple-git-hooks",
|
|
104
|
+
"unrs-resolver"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"resolutions": {
|
|
108
|
+
"vite": "^7.0.5"
|
|
109
|
+
},
|
|
110
|
+
"simple-git-hooks": {
|
|
111
|
+
"pre-commit": "pnpm lint-staged",
|
|
112
|
+
"commit-msg": "pnpm commitlint $1"
|
|
113
|
+
},
|
|
114
|
+
"lint-staged": {
|
|
115
|
+
"*": "eslint --fix"
|
|
116
|
+
}
|
|
117
|
+
}
|
package/src/api/user/index.ts
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
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(data: any) {
|
|
27
|
-
const params = {
|
|
28
|
-
resourceName: data.resourceName,
|
|
29
|
-
isMobile: true,
|
|
30
|
-
}
|
|
31
|
-
return get(
|
|
32
|
-
`/af-system/user/info/${data.username}`,
|
|
33
|
-
params,
|
|
34
|
-
)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @description: 用户登出
|
|
39
|
-
*/
|
|
40
|
-
export function doLogout() {
|
|
41
|
-
return http.request({
|
|
42
|
-
url: loginApi.Logout,
|
|
43
|
-
method: 'DELETE',
|
|
44
|
-
})
|
|
45
|
-
}
|
|
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(data: any) {
|
|
27
|
+
const params = {
|
|
28
|
+
resourceName: data.resourceName,
|
|
29
|
+
isMobile: true,
|
|
30
|
+
}
|
|
31
|
+
return get(
|
|
32
|
+
`/af-system/user/info/${data.username}`,
|
|
33
|
+
params,
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @description: 用户登出
|
|
39
|
+
*/
|
|
40
|
+
export function doLogout() {
|
|
41
|
+
return http.request({
|
|
42
|
+
url: loginApi.Logout,
|
|
43
|
+
method: 'DELETE',
|
|
44
|
+
})
|
|
45
|
+
}
|