af-mobile-client-vue3 1.0.78 → 1.0.80

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.0.78",
4
+ "version": "1.0.80",
5
5
  "description": "Vue + Vite component lib",
6
6
  "license": "MIT",
7
7
  "engines": {
@@ -100,8 +100,9 @@ defineExpose({ init })
100
100
  :title="item.describe ? item.describe : item.tableName "
101
101
  >
102
102
  <div class="x-form-group-item">
103
+ <!-- :ref="`xFormListRef-${index}`" -->
103
104
  <XForm
104
- :ref="`xFormListRef-${index}`"
105
+ ref="xFormListRef"
105
106
  :mode="props.mode"
106
107
  :group-form-items="item"
107
108
  :form-data="item.groupName ? formData[item.groupName] : formData"
@@ -23,6 +23,7 @@ export interface UserInfo {
23
23
  name: string
24
24
  avatar: string
25
25
  functions: Array<any>
26
+ rolestr: string
26
27
  }
27
28
 
28
29
  interface IUserState {
@@ -1,22 +1,20 @@
1
1
  <script setup lang="ts">
2
2
  import XFormGroup from '@af-mobile-client-vue3/components/data/XFormGroup/index.vue'
3
3
  import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
4
- import {onBeforeMount, onMounted, ref} from 'vue'
4
+ import { onBeforeMount, onMounted, ref } from 'vue'
5
5
  import { showDialog } from 'vant'
6
- import {runLogic} from "@af-mobile-client-vue3/services/api/common";
7
6
  import { useRoute } from 'vue-router'
8
7
 
9
-
10
8
  // 纯表单
11
- const configName = ref("form_check_test")
12
- const serviceName = ref("af-system")
9
+ const configName = ref('form_check_test')
10
+ const serviceName = ref('af-system')
13
11
 
14
12
  // const configName = ref("计划下发Form")
15
13
  // const serviceName = ref("af-linepatrol")
16
14
 
17
15
  // 表单组
18
- // const configName = ref("lngChargeAuditMobileFormGroup")
19
- // const serviceName = ref("af-gaslink")
16
+ // const configName = ref('lngChargeAuditMobileFormGroup')
17
+ // const serviceName = ref('af-gaslink')
20
18
 
21
19
  const formData = ref({})
22
20
  const formGroup = ref(null)
@@ -44,12 +42,12 @@ function submit(_result) {
44
42
  // runLogic('getlngChargeAuditMobileFormGroupData', { id: route.query?.id, o_id: route.query?.o_id }, 'af-gaslink').then((res) => {
45
43
  // console.log('res------', res)
46
44
  // formData.value = { ...res }
47
- // formGroup.value.init({
48
- // configName: configName.value,
49
- // serviceName: serviceName.value,
50
- // groupFormData: { ...res },
51
- // mode: "新增"
52
- // })
45
+ // formGroup.value.init({
46
+ // configName: configName.value,
47
+ // serviceName: serviceName.value,
48
+ // groupFormData: { ...res },
49
+ // mode: "新增"
50
+ // })
53
51
  // isInit.value = true
54
52
  // })
55
53
  // }
@@ -62,7 +60,7 @@ function submit(_result) {
62
60
  <template>
63
61
  <NormalDataLayout id="XFormGroupView" title="纯表单">
64
62
  <template #layout_content>
65
- <!-- v-if="isInit"-->
63
+ <!-- v-if="isInit" -->
66
64
  <XFormGroup
67
65
  ref="formGroup"
68
66
  :config-name="configName"
@@ -153,6 +153,7 @@ function afterGeneral(result) {
153
153
  name: result.name,
154
154
  avatar: result.avatar ? result.avatar : setting.getSetting()?.defaultAvatarUrl,
155
155
  functions: result.functions,
156
+ rolestr: result.rolestr,
156
157
  }
157
158
  userState.setUserInfo(user)
158
159
  userState.setPermissions([{ id: 'queryForm', operation: ['add', 'edit'] }])