af-mobile-client-vue3 1.0.83 → 1.0.84

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.83",
4
+ "version": "1.0.84",
5
5
  "description": "Vue + Vite component lib",
6
6
  "license": "MIT",
7
7
  "engines": {
@@ -858,9 +858,6 @@ watch(() => form, (_oldVal, _newVal) => {
858
858
  :rules="[{ required: attr.rule.required === 'true', message: `请填写${attr.name}` }]"
859
859
  @blur="() => formTypeCheck(attr, localValue as string)"
860
860
  />
861
- <p>{{ userState.f.resources.rolestr }}</p>
862
- <p>{{ attr.showFormItemFunc }}</p>
863
- <p>{{ showItem }}</p>
864
861
  </div>
865
862
  </template>
866
863
 
@@ -62,7 +62,7 @@ const routes: Array<RouteRecordRaw> = [
62
62
  component: XCellDetailView,
63
63
  },
64
64
  {
65
- path: '/Component/XFormGroupView/:id',
65
+ path: '/Component/XFormGroupView',
66
66
  name: 'XFormGroupView',
67
67
  component: XFormGroupView,
68
68
  },
@@ -12,10 +12,8 @@ const router = useRouter()
12
12
  const idKey = ref('o_id')
13
13
 
14
14
  // 简易crud表单测试
15
- // const configName = ref('crud_oper_log_manage')
16
- // const serviceName = ref('af-system')
17
- const configName = ref('saleOrderAuditMobileCRUD')
18
- const serviceName = ref('af-gaslink')
15
+ const configName = ref('crud_oper_log_manage')
16
+ const serviceName = ref('af-system')
19
17
 
20
18
  // 资源权限测试
21
19
  // const configName = ref('crud_sources_test')
@@ -51,12 +49,11 @@ const serviceName = ref('af-gaslink')
51
49
  function toDetail(item) {
52
50
  router.push({
53
51
  name: 'XFormGroupView',
54
- // query: {
55
- // id: item[idKey.value],
56
- // id: item.rr_id,
57
- // o_id: item.o_id,
58
- // },
59
- params: { id: item.u_id },
52
+ query: {
53
+ id: item[idKey.value],
54
+ // id: item.rr_id,
55
+ // o_id: item.o_id,
56
+ },
60
57
  })
61
58
  }
62
59
 
@@ -98,16 +95,11 @@ function deleteRow(result) {
98
95
  <XCellList
99
96
  :config-name="configName"
100
97
  :service-name="serviceName"
98
+ :fix-query-form="{ o_f_oper_name: 'edu_test' }"
99
+ :id-key="idKey"
101
100
  @to-detail="toDetail"
101
+ @delete-row="deleteRow"
102
102
  />
103
- <!-- <XCellList-->
104
- <!-- :config-name="configName"-->
105
- <!-- :service-name="serviceName"-->
106
- <!-- :fix-query-form="{ o_f_oper_name: 'edu_test' }"-->
107
- <!-- :id-key="idKey"-->
108
- <!-- @to-detail="toDetail"-->
109
- <!-- @delete-row="deleteRow"-->
110
- <!-- />-->
111
103
  </template>
112
104
  </NormalDataLayout>
113
105
  </template>
@@ -4,13 +4,10 @@ import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDat
4
4
  import { onBeforeMount, onMounted, ref } from 'vue'
5
5
  import { showDialog } from 'vant'
6
6
  import { useRoute } from 'vue-router'
7
- import { runLogic } from '@af-mobile-client-vue3/services/api/common'
8
7
 
9
8
  // 纯表单
10
- // const configName = ref('form_check_test')
11
- // const serviceName = ref('af-system')
12
- const configName = ref('salesOrderReviewFormGroup')
13
- const serviceName = ref('af-gaslink')
9
+ const configName = ref('form_check_test')
10
+ const serviceName = ref('af-system')
14
11
 
15
12
  // const configName = ref("计划下发Form")
16
13
  // const serviceName = ref("af-linepatrol")
@@ -54,15 +51,10 @@ function submit(_result) {
54
51
  // isInit.value = true
55
52
  // })
56
53
  // }
57
- function initComponents() {
58
- runLogic('getOrderById', { id: route.params?.id }, 'af-gaslink').then((res) => {
59
- formData.value = { companyInfo: { ...res }, vehicleInfo: { ...res } }
60
- isInit.value = true
61
- })
62
- }
63
- onBeforeMount(() => {
64
- initComponents()
65
- })
54
+
55
+ // onBeforeMount(() => {
56
+ // initComponents()
57
+ // })
66
58
  </script>
67
59
 
68
60
  <template>
@@ -70,7 +62,6 @@ onBeforeMount(() => {
70
62
  <template #layout_content>
71
63
  <!-- v-if="isInit" -->
72
64
  <XFormGroup
73
- v-if="isInit"
74
65
  ref="formGroup"
75
66
  :config-name="configName"
76
67
  :service-name="serviceName"