af-mobile-client-vue3 1.4.21 → 1.4.23

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.
@@ -1,46 +1,41 @@
1
- <script setup lang="ts">
2
- import XForm from '@af-mobile-client-vue3/components/data/XForm/index.vue'
3
- import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
4
- import { ref } from 'vue'
5
- import {
6
- Button as VanButton,
7
- } from 'vant'
8
-
9
- const configName = ref('测试Form')
10
- const serviceName = ref('af-safecheck')
11
- const formGroupAddConstruction = ref()
12
-
13
- // 提交测试
14
- function onSubmit(form) {
15
- console.log('事件触发提交表单----', form)
16
- }
17
- async function onAsyncSubmit() {
18
- const res = await formGroupAddConstruction.value.asyncSubmit()
19
- console.log('异步提交表单----', res)
20
- }
21
- function emitFunc(func, data) {
22
- console.log('emitFunc:', func, data)
23
- }
24
- </script>
25
-
26
- <template>
27
- <NormalDataLayout id="XFormGroupView" title="纯表单">
28
- <template #layout_content>
29
- <XForm
30
- ref="formGroupAddConstruction"
31
- mode="新增"
32
- :config-name="configName"
33
- :show-tab-header="false"
34
- service-name="af-safecheck"
35
- :is-group-form="true"
36
- @on-submit="onSubmit"
37
- @x-form-item-emit-func="emitFunc"
38
- />
39
- </template>
40
- </NormalDataLayout>
41
- <van-button type="primary" @click="onAsyncSubmit">提交</van-button>
42
- </template>
43
-
44
- <style scoped lang="less">
45
-
46
- </style>
1
+ <script setup lang="ts">
2
+ import XForm from '@af-mobile-client-vue3/components/data/XForm/index.vue'
3
+ import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
4
+ import { ref } from 'vue'
5
+
6
+ const configName = ref('ceshiForm')
7
+ const serviceName = ref('af-system')
8
+
9
+ const formGroupAddConstruction = ref(null)
10
+ const formData = ref({
11
+ 'YYYY': '2025-09-08 16:03:22',
12
+ 'YYYY-MM': '2025-09-08 16:03:22',
13
+ 'YYYY-MM-DD': '2025-09-08 16:03:22',
14
+ 'YYYY-MM-DDHH': '2025-09-08 16:03:22',
15
+ 'YYYY-MM-DDHHMM': '2025-09-08 16:03:22',
16
+ 'YYYY-MM-DDHHMMSS': '2025-09-08 16:03:22',
17
+ })
18
+
19
+ function onSubmit(data: any) {
20
+ console.warn('提交表单', data)
21
+ }
22
+ </script>
23
+
24
+ <template>
25
+ <NormalDataLayout id="XFormGroupView" title="纯表单">
26
+ <template #layout_content>
27
+ <XForm
28
+ ref="formGroupAddConstruction"
29
+ mode="修改"
30
+ :config-name="configName"
31
+ :service-name="serviceName"
32
+ :form-data="formData"
33
+ @on-submit="onSubmit"
34
+ />
35
+ </template>
36
+ </NormalDataLayout>
37
+ </template>
38
+
39
+ <style scoped lang="less">
40
+
41
+ </style>
@@ -186,7 +186,7 @@ const webMobileConfig = useSettingStore().getSetting()
186
186
  <h2 class="username">
187
187
  {{ username }}
188
188
  <span
189
- v-if="locationStatus.statusTag"
189
+ v-if="roleName?.includes('需要定位人员') && locationStatus.statusTag"
190
190
  class="upload-status-tag" :class="[locationStatus.statusTag.color]"
191
191
  >
192
192
  {{ locationStatus.statusTag.text }}