vue2-client 1.9.114 → 1.9.116
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
|
@@ -843,17 +843,17 @@ export default {
|
|
|
843
843
|
if (this.attr.dataChangeFunc) {
|
|
844
844
|
this.debouncedDataChangeFunc = debounce(this.dataChangeFunc, 200)
|
|
845
845
|
// 执行一次
|
|
846
|
-
|
|
846
|
+
this.dataChangeFunc()
|
|
847
847
|
}
|
|
848
848
|
if (this.attr.showFormItemFunc) {
|
|
849
849
|
this.debouncedShowFormItemFunc = debounce(this.showFormItemFunc, 100)
|
|
850
850
|
// 执行一次
|
|
851
|
-
|
|
851
|
+
this.showFormItemFunc()
|
|
852
852
|
}
|
|
853
853
|
if (this.attr.showQueryFormItemFunc) {
|
|
854
854
|
this.debouncedShowQueryFormItemFunc = debounce(this.showQueryFormItemFunc, 100)
|
|
855
855
|
// 执行一次
|
|
856
|
-
|
|
856
|
+
this.showFormItemFunc()
|
|
857
857
|
}
|
|
858
858
|
// 人员联动框增加监听
|
|
859
859
|
if (this?.attr?.keyName?.toString()?.startsWith('search@根据表单项[') && this?.attr?.keyName?.toString().endsWith(']联动人员')) {
|
|
@@ -1101,7 +1101,7 @@ export default {
|
|
|
1101
1101
|
let source = this.attr.keyName.substring(7)
|
|
1102
1102
|
const userid = this.currUser.id
|
|
1103
1103
|
let roleName = 'roleName'
|
|
1104
|
-
if (source.startsWith('
|
|
1104
|
+
if (source.startsWith('根据角色[') && source.endsWith(']获取人员')) {
|
|
1105
1105
|
const startIndex = source.indexOf('[') + 1
|
|
1106
1106
|
const endIndex = source.indexOf(']', startIndex)
|
|
1107
1107
|
roleName = source.substring(startIndex, endIndex)
|
|
@@ -21,11 +21,13 @@
|
|
|
21
21
|
<span class="xFormGroupTitle">{{ item.describe }}</span>
|
|
22
22
|
</a-col>
|
|
23
23
|
</a-row>
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
<div v-show="formShow[`show${item.slotName}`]">
|
|
25
|
+
<template v-if="item.formGroupType === 'slot'">
|
|
26
|
+
<slot :name="item.slotName" :data="allFormData" :index="index">
|
|
27
|
+
<a-empty :description="`[${item.describe}:${item.slotName}]插槽没有使用`"/>
|
|
28
|
+
</slot>
|
|
29
|
+
</template>
|
|
30
|
+
</div>
|
|
29
31
|
<x-add-native-form
|
|
30
32
|
@x-form-item-emit-func="emitFunc"
|
|
31
33
|
v-if="item.formGroupType !== 'slot' && formShow[`show${item.groupName}`]"
|
|
@@ -83,8 +83,8 @@ routerResource.example = {
|
|
|
83
83
|
{
|
|
84
84
|
path: 'default',
|
|
85
85
|
name: '示例页面',
|
|
86
|
-
component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
|
87
|
-
|
|
86
|
+
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
|
87
|
+
component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
|
88
88
|
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
|
89
89
|
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
90
90
|
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|