af-mobile-client-vue3 1.2.14 → 1.2.15

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.
@@ -0,0 +1,28 @@
1
+ -----BEGIN PRIVATE KEY-----
2
+ MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQChKsPmzaqY3iw4
3
+ nugwJIdl/Xf4HA33hxiNs1u5VnL/DceCz/6uOfj/pi1w3N4Zzn8j58aY5Oh2HTDJ
4
+ laaDEHQmq7suBgeAVIJoplr4SDQEyecehqH5bHt4MnJ5ize1ldNxzXgO5a2XwfPz
5
+ YxWw90jZk1QEQIgS1Ip90amJk7al+M/+dIb61uoET/xLIrcVXtc9lzglPyZpNYQd
6
+ LB0hkjd+Ed8c5Hx90/gc/JJh3Ur1YfWREr4SJwfz1+KbUGbADEFwaLX6G5Hma6qi
7
+ gC3OZ13M1+bxpxT01+TGtPzUhFADFF+ychj8v4U4UbypgsiW9Wya7LHRNUfODmXc
8
+ UT2M5O/pAgMBAAECggEAUtmDH3D2k+MSZID751O/7uQf+gGiBG8EZkOfkWUpdIgG
9
+ 2e5GhBX1NKaekXhZDHck0LZjV1HFVoKnA9nUYWfh7cc2T/B1hrjq2RU7iorDgvqv
10
+ vveC6I+l4SI9ytGQb953dfckErRrSqo/2AxFqFVWs9KSzCTITrXIA+n1921h5Wtz
11
+ 2UGsiyt7SR9ASOQ9o16QlDBNan7SulQyIam/NHaiDuyoB8bBxrewPGIx12vESbeK
12
+ NlpZhWd9jzcdkfLudIiCkp2XQ3lQsQHHNIgTij2GsYEE6hb4jLIfRsuUz6IHdFcE
13
+ gnqnXtUJPUMMmaoz6sFG3yLjHrsMUfSShDzMp19ViQKBgQDJzZ1fL+ZhQd7kTR4N
14
+ zDexXHcuHFXhXJ8VuXKcCgc5K4wt88yVQTNWwWRw27RFIh75DHQhm3FQiGydf+HM
15
+ 8k7riKA0ab3/AO5u9JYNf+Pbz0k/+rthWk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 G61nc3v7Os4g/ZElXA3xePYEfHewTURe5NagEHx+jdXEwK4nEChrJxmlbNgk6VEL
21
+ TYDLhA0bWWm7/CMv1oPOXWPLI5BDi56HnjJVXem6JpOwiHRmiZcj1DvP9m52+8f9
22
+ g94Q9zMBvwpNneaNAcUgATxykMjZoLJBCe1EdqmO0xXEJI6Cz8nJEp6CJBl5Vi/t
23
+ deKITXWe7ZP2/temIHG3Tv62l3/XQqdCvztgk50aW8YGyci243k7YDgWuULPvDf1
24
+ N0cUEC3PYKnkhhSWyy91aMyrsorWGpsjrb6xgla+0SpHNb+ZAl1SEY5VqTOsWxE/
25
+ qAQ+5xHN1EnrIqtNX7Lzp/7ekq0OQTP/U9D2soLpX7jlnWgQPnoBrNmOYr26UpzB
26
+ os3c4GV0Cr9AChbLjbWPn7D9+cA1
27
+ -----END CERTIFICATE-----
package/package.json CHANGED
@@ -1,113 +1,113 @@
1
- {
2
- "name": "af-mobile-client-vue3",
3
- "type": "module",
4
- "version": "1.2.14",
5
- "packageManager": "pnpm@10.12.3",
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
- "build": "vue-tsc --noEmit && vite build",
13
- "build:dev": "vue-tsc --noEmit && vite build --mode=development",
14
- "preview": "vite preview",
15
- "lint": "eslint . && vue-tsc --noEmit",
16
- "lint:fix": "eslint . --fix",
17
- "release": "bumpp --commit --push --tag",
18
- "typecheck": "vue-tsc --noEmit",
19
- "commitlint": "commitlint --edit",
20
- "prepare": "simple-git-hooks"
21
- },
22
- "dependencies": {
23
- "@vant/area-data": "^2.0.0",
24
- "crypto-js": "^4.2.0",
25
- "dayjs": "^1.11.13",
26
- "ol": "^10.5.0",
27
- "vue3-hash-calendar": "^1.1.3",
28
- "@iconify/vue": "4.3.0",
29
- "@micro-zoe/micro-app": "1.0.0-rc.24",
30
- "@unhead/vue": "2.0.11",
31
- "@vant/touch-emulator": "^1.4.0",
32
- "@vant/use": "^1.6.0",
33
- "@vueuse/core": "^13.4.0",
34
- "axios": "^1.10.0",
35
- "echarts": "^5.6.0",
36
- "lodash-es": "^4.17.21",
37
- "nprogress": "^0.2.0",
38
- "pinia": "^3.0.3",
39
- "pinia-plugin-persistedstate": "^4.3.0",
40
- "resize-detector": "^0.3.0",
41
- "vant": "^4.9.20",
42
- "vconsole": "^3.15.1",
43
- "vue": "^3.5.17",
44
- "vue-i18n": "^11.1.7",
45
- "vue-router": "^4.5.1"
46
- },
47
- "devDependencies": {
48
- "vite-plugin-compression": "^0.5.1",
49
- "@iconify/json": "2.2.318",
50
- "@types/crypto-js": "^4.2.2",
51
- "@antfu/eslint-config": "4.16.1",
52
- "@commitlint/cli": "^19.8.1",
53
- "@commitlint/config-conventional": "^19.8.1",
54
- "@commitlint/types": "^19.8.1",
55
- "@intlify/unplugin-vue-i18n": "^6.0.8",
56
- "@types/lodash-es": "^4.17.12",
57
- "@types/node": "^24.0.4",
58
- "@types/nprogress": "^0.2.3",
59
- "@unocss/eslint-config": "66.2.3",
60
- "@vitejs/plugin-legacy": "^7.0.0",
61
- "@vitejs/plugin-vue": "^6.0.0",
62
- "autoprefixer": "^10.4.21",
63
- "bumpp": "^10.2.0",
64
- "consola": "^3.4.2",
65
- "cross-env": "^7.0.3",
66
- "eslint": "^9.29.0",
67
- "eslint-plugin-format": "^1.0.1",
68
- "less": "^4.3.0",
69
- "lint-staged": "^16.1.2",
70
- "mockjs": "^1.1.0",
71
- "postcss-mobile-forever": "^5.0.0",
72
- "rollup": "^4.44.0",
73
- "simple-git-hooks": "^2.13.0",
74
- "terser": "^5.43.1",
75
- "typescript": "^5.8.3",
76
- "unocss": "66.2.3",
77
- "vite": "^7.0.0",
78
- "vite-plugin-mock-dev-server": "^1.9.1",
79
- "vite-plugin-pwa": "^1.0.0",
80
- "vite-plugin-sitemap": "^0.8.2",
81
- "vite-plugin-vconsole": "^2.1.1",
82
- "vite-plugin-vue-devtools": "^7.7.7",
83
- "vue-tsc": "^2.2.10"
84
- },
85
- "pnpm": {
86
- "allowedDeprecatedVersions": {
87
- "glob": "7.2.3",
88
- "inflight": "1.0.6",
89
- "sourcemap-codec": "1.4.8"
90
- },
91
- "peerDependencyRules": {
92
- "allowedVersions": {
93
- "typescript": "5.8.3"
94
- }
95
- },
96
- "onlyBuiltDependencies": [
97
- "core-js",
98
- "esbuild",
99
- "simple-git-hooks",
100
- "unrs-resolver"
101
- ]
102
- },
103
- "resolutions": {
104
- "vite": "^7.0.0"
105
- },
106
- "simple-git-hooks": {
107
- "pre-commit": "pnpm lint-staged",
108
- "commit-msg": "pnpm commitlint $1"
109
- },
110
- "lint-staged": {
111
- "*": "eslint --fix"
112
- }
113
- }
1
+ {
2
+ "name": "af-mobile-client-vue3",
3
+ "type": "module",
4
+ "version": "1.2.15",
5
+ "packageManager": "pnpm@10.12.3",
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
+ "build": "vue-tsc --noEmit && vite build",
13
+ "build:dev": "vue-tsc --noEmit && vite build --mode=development",
14
+ "preview": "vite preview",
15
+ "lint": "eslint . && vue-tsc --noEmit",
16
+ "lint:fix": "eslint . --fix",
17
+ "release": "bumpp --commit --push --tag",
18
+ "typecheck": "vue-tsc --noEmit",
19
+ "commitlint": "commitlint --edit",
20
+ "prepare": "simple-git-hooks"
21
+ },
22
+ "dependencies": {
23
+ "@vant/area-data": "^2.0.0",
24
+ "crypto-js": "^4.2.0",
25
+ "dayjs": "^1.11.13",
26
+ "ol": "^10.5.0",
27
+ "vue3-hash-calendar": "^1.1.3",
28
+ "@iconify/vue": "4.3.0",
29
+ "@micro-zoe/micro-app": "1.0.0-rc.24",
30
+ "@unhead/vue": "2.0.11",
31
+ "@vant/touch-emulator": "^1.4.0",
32
+ "@vant/use": "^1.6.0",
33
+ "@vueuse/core": "^13.4.0",
34
+ "axios": "^1.10.0",
35
+ "echarts": "^5.6.0",
36
+ "lodash-es": "^4.17.21",
37
+ "nprogress": "^0.2.0",
38
+ "pinia": "^3.0.3",
39
+ "pinia-plugin-persistedstate": "^4.3.0",
40
+ "resize-detector": "^0.3.0",
41
+ "vant": "^4.9.20",
42
+ "vconsole": "^3.15.1",
43
+ "vue": "^3.5.17",
44
+ "vue-i18n": "^11.1.7",
45
+ "vue-router": "^4.5.1"
46
+ },
47
+ "devDependencies": {
48
+ "vite-plugin-compression": "^0.5.1",
49
+ "@iconify/json": "2.2.318",
50
+ "@types/crypto-js": "^4.2.2",
51
+ "@antfu/eslint-config": "4.16.1",
52
+ "@commitlint/cli": "^19.8.1",
53
+ "@commitlint/config-conventional": "^19.8.1",
54
+ "@commitlint/types": "^19.8.1",
55
+ "@intlify/unplugin-vue-i18n": "^6.0.8",
56
+ "@types/lodash-es": "^4.17.12",
57
+ "@types/node": "^24.0.4",
58
+ "@types/nprogress": "^0.2.3",
59
+ "@unocss/eslint-config": "66.2.3",
60
+ "@vitejs/plugin-legacy": "^7.0.0",
61
+ "@vitejs/plugin-vue": "^6.0.0",
62
+ "autoprefixer": "^10.4.21",
63
+ "bumpp": "^10.2.0",
64
+ "consola": "^3.4.2",
65
+ "cross-env": "^7.0.3",
66
+ "eslint": "^9.29.0",
67
+ "eslint-plugin-format": "^1.0.1",
68
+ "less": "^4.3.0",
69
+ "lint-staged": "^16.1.2",
70
+ "mockjs": "^1.1.0",
71
+ "postcss-mobile-forever": "^5.0.0",
72
+ "rollup": "^4.44.0",
73
+ "simple-git-hooks": "^2.13.0",
74
+ "terser": "^5.43.1",
75
+ "typescript": "^5.8.3",
76
+ "unocss": "66.2.3",
77
+ "vite": "^7.0.0",
78
+ "vite-plugin-mock-dev-server": "^1.9.1",
79
+ "vite-plugin-pwa": "^1.0.0",
80
+ "vite-plugin-sitemap": "^0.8.2",
81
+ "vite-plugin-vconsole": "^2.1.1",
82
+ "vite-plugin-vue-devtools": "^7.7.7",
83
+ "vue-tsc": "^2.2.10"
84
+ },
85
+ "pnpm": {
86
+ "allowedDeprecatedVersions": {
87
+ "glob": "7.2.3",
88
+ "inflight": "1.0.6",
89
+ "sourcemap-codec": "1.4.8"
90
+ },
91
+ "peerDependencyRules": {
92
+ "allowedVersions": {
93
+ "typescript": "5.8.3"
94
+ }
95
+ },
96
+ "onlyBuiltDependencies": [
97
+ "core-js",
98
+ "esbuild",
99
+ "simple-git-hooks",
100
+ "unrs-resolver"
101
+ ]
102
+ },
103
+ "resolutions": {
104
+ "vite": "^7.0.0"
105
+ },
106
+ "simple-git-hooks": {
107
+ "pre-commit": "pnpm lint-staged",
108
+ "commit-msg": "pnpm commitlint $1"
109
+ },
110
+ "lint-staged": {
111
+ "*": "eslint --fix"
112
+ }
113
+ }
@@ -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
+ }
@@ -382,11 +382,11 @@ async function onSubmit() {
382
382
  const realForm = handleFormKeys(requestForm)
383
383
  try {
384
384
  addOrModifyEntity(realForm, tableName.value, props.serviceName || import.meta.env.VITE_APP_SYSTEM_NAME).then(() => {
385
- showSuccessToast('提交成功!')
385
+ showSuccessToast('提交成功!!')
386
386
  })
387
387
  }
388
388
  catch (error) {
389
- showFailToast('提交失败!')
389
+ showFailToast('提交失败!!')
390
390
  }
391
391
  finally {
392
392
  setTimeout(() => {
@@ -1,6 +1,6 @@
1
- const loginApi = {
2
- Login: '/af-auth/login',
3
- Logout: '/af-auth/logout',
4
- }
5
-
6
- export { loginApi }
1
+ const loginApi = {
2
+ Login: '/af-auth/login',
3
+ Logout: '/af-auth/logout',
4
+ }
5
+
6
+ export { loginApi }
@@ -1,58 +1,62 @@
1
- import { getConfigByNameAsync } from '@af-mobile-client-vue3/services/api/common'
2
- import { APP_WEB_CONFIG_KEY } from '@af-mobile-client-vue3/stores/mutation-type'
3
- import { createStorage } from '@af-mobile-client-vue3/utils/Storage'
4
- import { defineStore } from 'pinia'
5
- import { ref } from 'vue'
6
-
7
- export interface WebConfig {
8
- systemName: string
9
- routerName: string
10
- systemDesc: string
11
- homePage: string
12
- defaultAvatarUrl: string
13
- wechatLogin: boolean
14
- }
15
-
16
- // 存放 webConfig 中的 setting 配置
17
- export const useSettingStore = defineStore('setting', () => {
18
- const setting = ref<WebConfig>(undefined)
19
- const isInitialized = ref(false)
20
-
21
- const setSetting = (newSetting: WebConfig) => {
22
- setting.value = newSetting
23
- }
24
-
25
- const getSetting = () => {
26
- return setting.value
27
- }
28
-
29
- // 将 init 作为 store 的方法导出
30
- const init = async () => {
31
- if (isInitialized.value)
32
- return
33
-
34
- const useStore = createStorage()
35
- const catchWebConfig = useStore.get(APP_WEB_CONFIG_KEY)
36
- if (catchWebConfig) {
37
- setSetting(catchWebConfig)
38
- }
39
- else {
40
- const res = await getConfigByNameAsync('webMobileConfig')
41
- if (res.setting) {
42
- useStore.set(APP_WEB_CONFIG_KEY, res)
43
- setSetting(res.setting)
44
- }
45
- }
46
-
47
- isInitialized.value = true
48
- }
49
-
50
- return {
51
- setSetting,
52
- getSetting,
53
- init, // 导出 init 方法
54
- isInitialized,
55
- }
56
- })
57
-
58
- export default useSettingStore
1
+ import { getConfigByNameAsync } from '@af-mobile-client-vue3/services/api/common'
2
+ import { APP_WEB_CONFIG_KEY } from '@af-mobile-client-vue3/stores/mutation-type'
3
+ import { createStorage } from '@af-mobile-client-vue3/utils/Storage'
4
+ import { defineStore } from 'pinia'
5
+ import { ref } from 'vue'
6
+
7
+ export interface WebConfig {
8
+ systemName: string
9
+ routerName: string
10
+ systemDesc: string
11
+ homePage: string
12
+ defaultAvatarUrl: string
13
+ wechatLogin: boolean
14
+ wxLoginAge: boolean
15
+ wxAutoLogin: string
16
+ tenantName: string
17
+ }
18
+
19
+ // 存放 webConfig 中的 setting 配置
20
+ export const useSettingStore = defineStore('setting', () => {
21
+ const setting = ref<WebConfig>(undefined)
22
+ const isInitialized = ref(false)
23
+
24
+ const setSetting = (newSetting: WebConfig) => {
25
+ setting.value = newSetting
26
+ }
27
+
28
+ const getSetting = () => {
29
+ return setting.value
30
+ }
31
+
32
+ // 将 init 作为 store 的方法导出
33
+ const init = async () => {
34
+ if (isInitialized.value)
35
+ return
36
+
37
+ const useStore = createStorage()
38
+ const catchWebConfig = useStore.get(APP_WEB_CONFIG_KEY)
39
+ if (catchWebConfig?.setting) {
40
+ setSetting(catchWebConfig?.setting)
41
+ }
42
+ else {
43
+ const res = await getConfigByNameAsync('webMobileConfig')
44
+ if (res.setting) {
45
+ useStore.set(APP_WEB_CONFIG_KEY, res)
46
+ console.log('res.setting', res.setting)
47
+ setSetting(res.setting)
48
+ }
49
+ }
50
+
51
+ isInitialized.value = true
52
+ }
53
+
54
+ return {
55
+ setSetting,
56
+ getSetting,
57
+ init, // 导出 init 方法
58
+ isInitialized,
59
+ }
60
+ })
61
+
62
+ export default useSettingStore