af-mobile-client-vue3 1.4.9 → 1.4.11-cs
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/.env +1 -0
- package/package.json +4 -2
- package/src/components/data/UserDetail/index.vue +10 -1
- package/src/components/data/XFormItem/index.vue +4 -2
- package/src/router/routes.ts +421 -421
- package/src/stores/modules/setting.ts +1 -1
- package/src/stores/modules/user.ts +4 -0
- package/src/styles/login.less +1 -0
- package/src/utils/EncryptUtil.ts +246 -0
- package/src/utils/http/index.ts +24 -0
- package/src/utils/queryFormDefaultRangePicker.ts +57 -57
- package/src/views/component/XCellListView/index.vue +104 -138
- package/src/views/component/XFormGroupView/index.vue +78 -82
- package/src/views/component/XFormView/index.vue +41 -46
- package/src/views/user/login/LoginForm.vue +2 -1
- package/vite.config.ts +9 -2
package/.env
CHANGED
|
@@ -8,3 +8,4 @@ VITE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
|
8
8
|
VITE_APP_SYSTEM_NAME=af-system
|
|
9
9
|
# 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
|
|
10
10
|
VITE_APP_COMPATIBLE=V4
|
|
11
|
+
VITE_RSA_PRIVATE_KEY=MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAIRrmftLDHCQqREEJ132Onu+W3vmFbdF7QD751SrcDDGDTfzuz1zBuElvkHhuDBb7KZkXrCIe+MhvX2IvxcLObl3faX+evYlnfj2HRbF0hIpQLuIq22tL06ZcV5w7wqLxUZRpFElIFm8gZTkUvfKXVuHw89e4daDVhU5hK3GHNGTAgMBAAECgYABiINrFaE1E8pkBYx1JJA5yuhL73aUktfd2TeCU00vFg6kyrWCI85Sa2RKu/6CJNZWeOFgdubEUv7a22tRrNIZb3yUMaqtTwSso78mspIOJqjWXTkTH9WPElfTcdpdIse/lgZtPz6egxkuhadSvwrM9Y6NgusiW/5+x95Ct08iOQJBAN5aK+7uISURvGQj2EaRtgGEd8+d4oHl+BYvvTeG3qSgUikHQW3j0sp4gXPw2kxw6sjVgLFOc4FB6LGqwzOTzokCQQCYdYG8ty3Uo/ebUlNzeJFxHXjy/KvBSytAUzAXkRu3nZrkEaPQsi3dgOkZgk+F1fMDzfQ4EbDIU6xvqOoZXHg7AkATCW9XfoXR8anKfRMoP5Nwn9HOMbtR2cmaxK2TknV/bMZ8AsYETYwfj5+tuIJIJybC2RyykX/sIiN1CqS5xr7ZAkArj19rMRdaKyMi8MnBM1Cy9g3Jt2HHj5ejAGG8SgyWUOShh1y70z0BjcSMMkxQXAncK2s83ekZw7aADM4eQupjAkARRgTwwMOnn3IoKmQusKhZk0uxilZ4Zc2LH6Z4GiWnvteM0W8Zw4Z1lJUcjgQq3dGqL2RdmzeQZ+HgPIOXrZVK
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "af-mobile-client-vue3",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.11-cs",
|
|
5
5
|
"packageManager": "pnpm@10.13.1",
|
|
6
6
|
"description": "Vue + Vite component lib",
|
|
7
7
|
"engines": {
|
|
@@ -44,7 +44,9 @@
|
|
|
44
44
|
"vue-i18n": "^11.1.10",
|
|
45
45
|
"vue-router": "^4.5.1",
|
|
46
46
|
"vue3-hash-calendar": "^1.1.3",
|
|
47
|
-
"weixin-js-sdk": "^1.6.5"
|
|
47
|
+
"weixin-js-sdk": "^1.6.5",
|
|
48
|
+
"jsencrypt": "^3.3.2",
|
|
49
|
+
"bcryptjs": "^2.4.3"
|
|
48
50
|
},
|
|
49
51
|
"devDependencies": {
|
|
50
52
|
"@antfu/eslint-config": "4.17.0",
|
|
@@ -4,7 +4,7 @@ import type { BaseUser, ConfigItem } from './types'
|
|
|
4
4
|
import useLoading from '@af-mobile-client-vue3/hooks/useLoading'
|
|
5
5
|
import { mobileUtil } from '@af-mobile-client-vue3/utils/mobileUtil'
|
|
6
6
|
import { Button as VanButton, Empty as VanEmpty, Icon as VanIcon, Loading as VanLoading } from 'vant'
|
|
7
|
-
import { computed, ref, watch } from 'vue'
|
|
7
|
+
import { computed, onActivated, ref, watch } from 'vue'
|
|
8
8
|
import { useRouter } from 'vue-router'
|
|
9
9
|
import InfoDisplay from '../InfoDisplay/index.vue'
|
|
10
10
|
import { getCacheUserDetail, getRecentBusinessTime } from './api'
|
|
@@ -215,6 +215,15 @@ function printProfile() {
|
|
|
215
215
|
emit('print', user.value)
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
// 防止操作员办完业务从业务办理返回到此页面再点击业务办理这里需要在进入页面时调用刷新数据
|
|
219
|
+
onActivated(async () => {
|
|
220
|
+
console.log('进入页面(已缓存)')
|
|
221
|
+
await fetchUserDetail()
|
|
222
|
+
if (props.showRecentTime) {
|
|
223
|
+
await fetchRecentRecord()
|
|
224
|
+
}
|
|
225
|
+
})
|
|
226
|
+
|
|
218
227
|
// 监听用户ID变化
|
|
219
228
|
watch(() => props.userInfoId, async (newId) => {
|
|
220
229
|
if (newId) {
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
Switch as VanSwitch,
|
|
38
38
|
TimePicker as VanTimePicker,
|
|
39
39
|
} from 'vant'
|
|
40
|
-
import { computed, defineEmits, defineModel, defineProps, getCurrentInstance, onBeforeMount, ref, watch } from 'vue'
|
|
40
|
+
import { computed, defineEmits, defineModel, defineProps, getCurrentInstance, onBeforeMount, ref, watch, nextTick } from 'vue'
|
|
41
41
|
|
|
42
42
|
const props = defineProps({
|
|
43
43
|
attr: {
|
|
@@ -620,7 +620,9 @@ function onCalendarConfirm(values) {
|
|
|
620
620
|
// js 函数作为数据源
|
|
621
621
|
async function updateOptions() {
|
|
622
622
|
if (attr.keyName && (attr.keyName.toString().includes('async ') || attr.keyName.toString().includes('function '))) {
|
|
623
|
-
|
|
623
|
+
await nextTick(async () => {
|
|
624
|
+
option.value = await executeStrFunctionByContext(currInst, attr.keyName, [props.form, runLogic, props.mode, getConfigByNameAsync, post])
|
|
625
|
+
})
|
|
624
626
|
}
|
|
625
627
|
}
|
|
626
628
|
|