cloud-web-corejs 1.0.54-dev.372 → 1.0.54-dev.374
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 +1 -1
- package/src/components/excelExport/mixins.js +0 -2
- package/src/components/vb-tabs/x-tabs.vue +13 -9
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2 -2
- package/src/components/xform/form-render/index.vue +62 -23
- package/src/components/xform/form-render/indexMixin.js +3149 -2
- package/src/components/xform/mixins/defaultHandle.js +336 -1
- package/src/components/xform/utils/formula-util.js +30 -0
- package/src/layout/components/Sidebar/default.vue +1389 -1266
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- package/src/views/user/form/view/list.vue +1 -1
|
@@ -536,12 +536,12 @@ modules = {
|
|
|
536
536
|
}
|
|
537
537
|
this.resetEvent();
|
|
538
538
|
},
|
|
539
|
-
openEditDialog(row, param) {
|
|
539
|
+
openEditDialog(row, param, option) {
|
|
540
540
|
let formRef = this.getFormRef();
|
|
541
541
|
let parentTarget = formRef.$attrs["parent-target"];
|
|
542
542
|
parentTarget &&
|
|
543
543
|
parentTarget.$attrs.openEditDialog &&
|
|
544
|
-
parentTarget.$attrs.openEditDialog(row, param);
|
|
544
|
+
parentTarget.$attrs.openEditDialog(row, param, option);
|
|
545
545
|
},
|
|
546
546
|
importExcel() {},
|
|
547
547
|
getGrid(that, tableRef) {
|
|
@@ -24,12 +24,18 @@
|
|
|
24
24
|
<template v-if="showFormContent">
|
|
25
25
|
<template v-for="(widget, index) in widgetList">
|
|
26
26
|
<template v-if="'container' === widget.category">
|
|
27
|
-
<component
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
<component
|
|
28
|
+
:is="getContainerWidgetName(widget)"
|
|
29
|
+
:widget="widget"
|
|
30
|
+
:field="widget"
|
|
31
|
+
:key="widget.id"
|
|
32
|
+
:parent-list="widgetList"
|
|
33
|
+
:index-of-parent-list="index"
|
|
34
|
+
:parent-widget="null"
|
|
35
|
+
>
|
|
30
36
|
<!-- 递归传递插槽!!! -->
|
|
31
37
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
32
|
-
<slot :name="slot" v-bind="scope"/>
|
|
38
|
+
<slot :name="slot" v-bind="scope" />
|
|
33
39
|
</template>
|
|
34
40
|
</component>
|
|
35
41
|
</template>
|
|
@@ -46,40 +52,73 @@
|
|
|
46
52
|
>
|
|
47
53
|
<!-- 递归传递插槽!!! -->
|
|
48
54
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
49
|
-
<slot :name="slot" v-bind="scope"/>
|
|
55
|
+
<slot :name="slot" v-bind="scope" />
|
|
50
56
|
</template>
|
|
51
57
|
</component>
|
|
52
58
|
</template>
|
|
53
59
|
</template>
|
|
54
60
|
</template>
|
|
55
61
|
</el-form>
|
|
56
|
-
<searchFormDialog
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<
|
|
62
|
-
|
|
62
|
+
<searchFormDialog
|
|
63
|
+
v-if="showSearchDialog"
|
|
64
|
+
:visiable.sync="showSearchDialog"
|
|
65
|
+
:option="searchDialogOption"
|
|
66
|
+
></searchFormDialog>
|
|
67
|
+
<formDialog
|
|
68
|
+
v-if="showFormDialog"
|
|
69
|
+
:visiable.sync="showFormDialog"
|
|
70
|
+
:option="formDialogOption"
|
|
71
|
+
></formDialog>
|
|
72
|
+
<importDialog
|
|
73
|
+
v-if="showImportDialog"
|
|
74
|
+
:visiable.sync="showImportDialog"
|
|
75
|
+
:param="importDialogOption"
|
|
76
|
+
:parentTarget="_self"
|
|
77
|
+
></importDialog>
|
|
78
|
+
<formDrawer
|
|
79
|
+
v-if="showFormDrawer"
|
|
80
|
+
:visiable.sync="showFormDrawer"
|
|
81
|
+
:option="formDrawerOption"
|
|
82
|
+
></formDrawer>
|
|
83
|
+
<fileReferenceDialog
|
|
84
|
+
v-if="showFileReferenceDialog"
|
|
85
|
+
:visiable.sync="showFileReferenceDialog"
|
|
86
|
+
:option="fileReferenceDialogOption"
|
|
87
|
+
></fileReferenceDialog>
|
|
88
|
+
<formulaDialog
|
|
89
|
+
v-if="formulaDialogVisible"
|
|
90
|
+
:visiable.sync="formulaDialogVisible"
|
|
91
|
+
:option="formulaDialogOption"
|
|
92
|
+
></formulaDialog>
|
|
63
93
|
</div>
|
|
64
94
|
</template>
|
|
65
95
|
|
|
66
96
|
<script>
|
|
67
97
|
//import ElForm from 'element-ui/packages/form/src/form.vue' /* 用于源码调试Element UI */
|
|
68
|
-
import
|
|
69
|
-
import FieldComponents from
|
|
70
|
-
import indexMixin from
|
|
71
|
-
|
|
98
|
+
import "./container-item/index";
|
|
99
|
+
import FieldComponents from "../../../components/xform/form-designer/form-widget/field-widget/index";
|
|
100
|
+
import indexMixin from "../../../components/xform/form-render/indexMixin";
|
|
72
101
|
|
|
73
102
|
export default {
|
|
74
|
-
name:
|
|
103
|
+
name: "VFormRender",
|
|
75
104
|
components: {
|
|
76
105
|
...FieldComponents,
|
|
77
|
-
searchFormDialog: () =>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
106
|
+
searchFormDialog: () =>
|
|
107
|
+
import(
|
|
108
|
+
"../../../components/xform/form-designer/form-widget/dialog/searchFormDialog.vue"
|
|
109
|
+
),
|
|
110
|
+
formDialog: () =>
|
|
111
|
+
import("../../../components/xform/form-designer/form-widget/dialog/formDialog.vue"),
|
|
112
|
+
importDialog: () =>
|
|
113
|
+
import(
|
|
114
|
+
"../../../components/xform/form-designer/form-widget/dialog/importDialog.vue"
|
|
115
|
+
),
|
|
116
|
+
formDrawer: () =>
|
|
117
|
+
import("../../../components/xform/form-designer/form-widget/dialog/formDrawer.vue"),
|
|
118
|
+
fileReferenceDialog: () =>
|
|
119
|
+
import(
|
|
120
|
+
"../../../components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue"
|
|
121
|
+
),
|
|
83
122
|
},
|
|
84
123
|
mixins: [indexMixin],
|
|
85
124
|
};
|