af-mobile-client-vue3 1.4.9 → 1.4.10
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 +1 -1
- package/src/components/data/UserDetail/index.vue +10 -1
- package/src/router/routes.ts +421 -421
- package/src/styles/login.less +1 -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/vite.config.ts +7 -0
package/package.json
CHANGED
|
@@ -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) {
|