af-mobile-client-vue3 1.4.5 → 1.4.7-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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.4.5",
4
+ "version": "1.4.7-cs",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -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'
@@ -214,6 +214,15 @@ function printProfile() {
214
214
  // 同时触发自定义打印事件
215
215
  emit('print', user.value)
216
216
  }
217
+ // 防止操作员办完业务从业务办理返回到此页面再点击业务办理这里需要在进入页面时调用刷新数据
218
+ onActivated(async () => {
219
+ console.log('进入页面(已缓存)')
220
+ // 可在这里刷新数据、重置状态等
221
+ await fetchUserDetail()
222
+ if (props.showRecentTime) {
223
+ await fetchRecentRecord()
224
+ }
225
+ })
217
226
 
218
227
  // 监听用户ID变化
219
228
  watch(() => props.userInfoId, async (newId) => {
@@ -620,7 +620,7 @@ 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
- option.value = await executeStrFunctionByContext(this, attr.keyName, [props.form, runLogic, props.mode, getConfigByNameAsync, post])
623
+ option.value = await executeStrFunctionByContext(currInst, attr.keyName, [props.form, runLogic, props.mode, getConfigByNameAsync, post])
624
624
  }
625
625
  }
626
626
 
@@ -89,6 +89,8 @@ html:not(.dark) {
89
89
  }
90
90
  .login_form {
91
91
  margin-top: 65px;
92
+ background-color: white !important;
93
+ z-index: 10;
92
94
  }
93
95
  .forget_password_form {
94
96
  margin-top: 15px;
@@ -9,11 +9,11 @@ const emit = defineEmits(['deleteRow'])
9
9
  // 访问路由
10
10
  const router = useRouter()
11
11
  // 获取默认值
12
- // const idKey = ref('o_id')
12
+ const idKey = ref('o_id')
13
13
 
14
14
  // 简易crud表单测试
15
- const configName = ref('ceshiCRUD')
16
- const serviceName = ref('af-safecheck')
15
+ const configName = ref('mobile_instrumentManageCRUD')
16
+ const serviceName = ref('af-revenue')
17
17
 
18
18
  // 资源权限测试
19
19
  // const configName = ref('crud_sources_test')
@@ -83,17 +83,14 @@ const serviceName = ref('af-safecheck')
83
83
  // })
84
84
  // }
85
85
 
86
- // 删除功能
86
+ // // 删除功能
87
87
  // function deleteRow(result) {
88
88
  // emit('deleteRow', result.o_id)
89
89
  // }
90
- // const fixQueryForm = ref({
91
- // f_operator_id: '487184754014158848',
92
- // })
93
90
  </script>
94
91
 
95
92
  <template>
96
- <NormalDataLayout id="XCellListView" title="工作计划">
93
+ <NormalDataLayout id="XCellListView" title="测试">
97
94
  <template #layout_content>
98
95
  <XCellList
99
96
  :config-name="configName"
package/vite.config.ts CHANGED
@@ -64,6 +64,13 @@ export default ({ mode }: ConfigEnv): UserConfig => {
64
64
  changeOrigin: true,
65
65
  rewrite: path => path.replace(/^\/linepatrol\/geoserver/, '/geoserver'),
66
66
  },
67
+ // '/api/af-revenue': {
68
+ // // target: v4Server,
69
+ // rewrite: (path: string) => path.replace(/^\/api\/af-revenue\//, '/'),
70
+ // target: 'http://127.0.0.1:9026',
71
+ // ws: false,
72
+ // changeOrigin: true,
73
+ // },
67
74
  '/api': {
68
75
  // v3用
69
76
  // rewrite: (path: string) => path.replace(/^\/api\/af-system\//, '/rs/'),
package/.npmignore DELETED
@@ -1,26 +0,0 @@
1
- # Logs
2
- logs
3
- *.log
4
- npm-debug.log*
5
- yarn-debug.log*
6
- yarn-error.log*
7
- pnpm-debug.log*
8
- lerna-debug.log*
9
-
10
- node_modules
11
- dist
12
- dist-ssr
13
- *.local
14
- stats.html
15
-
16
- # Editor directories and files
17
- .idea
18
- *.suo
19
- *.ntvs*
20
- *.njsproj
21
- *.sln
22
- *.sw?
23
-
24
- # Misc
25
- .DS_Store
26
- .history