af-mobile-client-vue3 1.3.76 → 1.3.78

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,115 +1,115 @@
1
- {
2
- "name": "af-mobile-client-vue3",
3
- "type": "module",
4
- "version": "1.3.76",
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
- },
49
- "devDependencies": {
50
- "@antfu/eslint-config": "4.17.0",
51
- "@commitlint/cli": "^19.8.1",
52
- "@commitlint/config-conventional": "^19.8.1",
53
- "@commitlint/types": "^19.8.1",
54
- "@iconify/json": "2.2.318",
55
- "@iconify/utils": "^2.3.0",
56
- "@intlify/unplugin-vue-i18n": "^6.0.8",
57
- "@types/crypto-js": "^4.2.2",
58
- "@types/lodash-es": "^4.17.12",
59
- "@types/node": "^24.0.14",
60
- "@types/nprogress": "^0.2.3",
61
- "@unocss/eslint-config": "66.3.3",
62
- "@vitejs/plugin-legacy": "^7.0.1",
63
- "@vitejs/plugin-vue": "^6.0.0",
64
- "autoprefixer": "^10.4.21",
65
- "bumpp": "^10.2.0",
66
- "consola": "^3.4.2",
67
- "cross-env": "^7.0.3",
68
- "eslint": "^9.31.0",
69
- "eslint-plugin-format": "^1.0.1",
70
- "less": "^4.4.0",
71
- "lint-staged": "^16.1.2",
72
- "mockjs": "^1.1.0",
73
- "postcss-mobile-forever": "^5.0.0",
74
- "rollup": "^4.45.1",
75
- "simple-git-hooks": "^2.13.0",
76
- "tar": "^7.4.3",
77
- "terser": "^5.43.1",
78
- "typescript": "^5.8.3",
79
- "unocss": "66.3.3",
80
- "vite": "^7.0.5",
81
- "vite-plugin-compression": "^0.5.1",
82
- "vite-plugin-mock-dev-server": "^1.9.1",
83
- "vite-plugin-pwa": "^1.0.1",
84
- "vite-plugin-sitemap": "^0.8.2",
85
- "vite-plugin-vconsole": "^2.1.1",
86
- "vite-plugin-vue-devtools": "^7.7.7",
87
- "vue-tsc": "^3.0.2"
88
- },
89
- "pnpm": {
90
- "allowedDeprecatedVersions": {
91
- "glob": "7.2.3",
92
- "inflight": "1.0.6",
93
- "sourcemap-codec": "1.4.8"
94
- },
95
- "peerDependencyRules": {
96
- "allowedVersions": {}
97
- },
98
- "onlyBuiltDependencies": [
99
- "core-js",
100
- "esbuild",
101
- "simple-git-hooks",
102
- "unrs-resolver"
103
- ]
104
- },
105
- "resolutions": {
106
- "vite": "^7.0.5"
107
- },
108
- "simple-git-hooks": {
109
- "pre-commit": "pnpm lint-staged",
110
- "commit-msg": "pnpm commitlint $1"
111
- },
112
- "lint-staged": {
113
- "*": "eslint --fix"
114
- }
115
- }
1
+ {
2
+ "name": "af-mobile-client-vue3",
3
+ "type": "module",
4
+ "version": "1.3.78",
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
+ },
49
+ "devDependencies": {
50
+ "@antfu/eslint-config": "4.17.0",
51
+ "@commitlint/cli": "^19.8.1",
52
+ "@commitlint/config-conventional": "^19.8.1",
53
+ "@commitlint/types": "^19.8.1",
54
+ "@iconify/json": "2.2.318",
55
+ "@iconify/utils": "^2.3.0",
56
+ "@intlify/unplugin-vue-i18n": "^6.0.8",
57
+ "@types/crypto-js": "^4.2.2",
58
+ "@types/lodash-es": "^4.17.12",
59
+ "@types/node": "^24.0.14",
60
+ "@types/nprogress": "^0.2.3",
61
+ "@unocss/eslint-config": "66.3.3",
62
+ "@vitejs/plugin-legacy": "^7.0.1",
63
+ "@vitejs/plugin-vue": "^6.0.0",
64
+ "autoprefixer": "^10.4.21",
65
+ "bumpp": "^10.2.0",
66
+ "consola": "^3.4.2",
67
+ "cross-env": "^7.0.3",
68
+ "eslint": "^9.31.0",
69
+ "eslint-plugin-format": "^1.0.1",
70
+ "less": "^4.4.0",
71
+ "lint-staged": "^16.1.2",
72
+ "mockjs": "^1.1.0",
73
+ "postcss-mobile-forever": "^5.0.0",
74
+ "rollup": "^4.45.1",
75
+ "simple-git-hooks": "^2.13.0",
76
+ "tar": "^7.4.3",
77
+ "terser": "^5.43.1",
78
+ "typescript": "^5.8.3",
79
+ "unocss": "66.3.3",
80
+ "vite": "^7.0.5",
81
+ "vite-plugin-compression": "^0.5.1",
82
+ "vite-plugin-mock-dev-server": "^1.9.1",
83
+ "vite-plugin-pwa": "^1.0.1",
84
+ "vite-plugin-sitemap": "^0.8.2",
85
+ "vite-plugin-vconsole": "^2.1.1",
86
+ "vite-plugin-vue-devtools": "^7.7.7",
87
+ "vue-tsc": "^3.0.2"
88
+ },
89
+ "pnpm": {
90
+ "allowedDeprecatedVersions": {
91
+ "glob": "7.2.3",
92
+ "inflight": "1.0.6",
93
+ "sourcemap-codec": "1.4.8"
94
+ },
95
+ "peerDependencyRules": {
96
+ "allowedVersions": {}
97
+ },
98
+ "onlyBuiltDependencies": [
99
+ "core-js",
100
+ "esbuild",
101
+ "simple-git-hooks",
102
+ "unrs-resolver"
103
+ ]
104
+ },
105
+ "resolutions": {
106
+ "vite": "^7.0.5"
107
+ },
108
+ "simple-git-hooks": {
109
+ "pre-commit": "pnpm lint-staged",
110
+ "commit-msg": "pnpm commitlint $1"
111
+ },
112
+ "lint-staged": {
113
+ "*": "eslint --fix"
114
+ }
115
+ }
package/src/App.vue CHANGED
@@ -47,7 +47,7 @@ const mode = computed(() => {
47
47
  <NavBar />
48
48
  <router-view v-slot="{ Component }">
49
49
  <section class="app-wrapper">
50
- <keep-alive :include="keepAliveRouteNames">
50
+ <keep-alive :include="keepAliveRouteNames" :max="5">
51
51
  <component :is="Component" :key="$route.fullPath" />
52
52
  </keep-alive>
53
53
  </section>
@@ -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
+ }
@@ -455,7 +455,27 @@ function handleFunctionStyle(funcString, record) {
455
455
  return {}
456
456
  }
457
457
  }
458
+ function handleFunctionShow(funcString, record) {
459
+ if (!funcString) {
460
+ return true
461
+ }
458
462
 
463
+ try {
464
+ // 同步执行函数
465
+ const obj = executeStrFunctionByContext(currInst, funcString, [record])
466
+ // 如果返回的是对象,则直接返回
467
+ // 如果返回的是布尔值,则直接返回
468
+ if (typeof obj === 'boolean') {
469
+ return obj
470
+ }
471
+ // 其他情况返回空对象
472
+ return true
473
+ }
474
+ catch (error) {
475
+ console.error('Error in handleFunctionShow:', error)
476
+ return true
477
+ }
478
+ }
459
479
  // 逆序排列主要按钮
460
480
  const reversedMainActions = computed(() => {
461
481
  return [...mainActions.value].reverse()
@@ -881,7 +901,7 @@ function handleCheckboxChange(item: any, checked: boolean) {
881
901
  </VanRow>
882
902
  <VanRow gutter="20" class="card_item_details" @click="handleCardClick(item, $event)">
883
903
  <VanCol v-for="column of detailColumns" :key="`details_${column.dataIndex}`" :span="column.span">
884
- <p>
904
+ <p v-if="handleFunctionShow(column.showFormItemFuncForMobile, item)">
885
905
  {{ (column.showLabel === undefined || column.showLabel) ? `${column.title}: ` : '' }}
886
906
  <XBadge
887
907
  :style="handleFunctionStyle(column.styleFunctionForValue, item)"
@@ -902,7 +922,7 @@ function handleCheckboxChange(item: any, checked: boolean) {
902
922
  :key="`tag_${column.dataIndex}`"
903
923
  >
904
924
  <VanTag
905
- v-if="handleFunctionStyle(column.showFormItemFuncForMobile, item)"
925
+ :show="handleFunctionShow(column.showFormItemFuncForMobile, item)"
906
926
  :text-color="column.tagColor"
907
927
  :color="column.tagBorderColor"
908
928
  size="large"
@@ -930,7 +950,7 @@ function handleCheckboxChange(item: any, checked: boolean) {
930
950
  @click="handleCardClick(item, $event)"
931
951
  >
932
952
  <VanCol v-for="column of footColumns" :key="`foot_${column.dataIndex}`" :span="12">
933
- <p>
953
+ <p v-if="handleFunctionShow(column.showFormItemFuncForMobile, item)">
934
954
  <span :style="handleFunctionStyle(column.styleFunctionForTitle, item)">
935
955
  {{ (column.showLabel === undefined || column.showLabel) ? `${column.title}: ` : '' }}
936
956
  </span>