@fecp/designer 5.4.14 → 5.4.16
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/es/designer/package.json.mjs +1 -1
- package/es/designer/src/api/index.mjs +7 -1
- package/es/designer/src/components/DocumentParam.vue.mjs +17 -19
- package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
- package/es/designer/src/components/RiskSchemeDialog.vue2.mjs +241 -0
- package/es/designer/src/components/RiskSchemeSelector.vue2.mjs +68 -0
- package/es/designer/src/components/TemplateDialog.vue.mjs +1 -1
- package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
- package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
- package/es/designer/src/packages/dataSource/dataSource.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +11 -6
- package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +55 -0
- package/es/designer/src/packages/eventFlow/dialog/action/config.mjs +171 -69
- package/es/designer/src/packages/form/aside/index.mjs +6 -2
- package/es/designer/src/packages/form/components/Contract.vue.mjs +80 -0
- package/es/designer/src/packages/form/components/Document.vue.mjs +27 -10
- package/es/designer/src/packages/form/index.vue.mjs +10 -17
- package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/contract.vue.mjs +227 -0
- package/es/designer/src/packages/form/property/document.vue.mjs +3 -3
- package/es/designer/src/packages/form/property/index.vue.mjs +5 -2
- package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
- package/es/designer/src/packages/prod/index.vue.mjs +1 -1
- package/es/designer/src/packages/table/headerBtn.vue.mjs +6 -1
- package/es/designer.css +224 -115
- package/es/packages/vue/src/components/bus/contract/Contract.vue.mjs +101 -0
- package/es/packages/vue/src/components/bus/contract/index.mjs +7 -0
- package/es/packages/vue/src/components/forms/cascader/Cascader.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/date/Date.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +3 -2
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +10 -3
- package/es/packages/vue/src/components/forms/radio/Radio.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/select/Select.vue.mjs +1 -1
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +54 -29
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/api/index.js +7 -1
- package/lib/designer/src/components/DocumentParam.vue.js +16 -18
- package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
- package/lib/designer/src/components/RiskSchemeDialog.vue2.js +241 -0
- package/lib/designer/src/components/RiskSchemeSelector.vue2.js +68 -0
- package/lib/designer/src/components/TemplateDialog.vue.js +1 -1
- package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
- package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
- package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
- package/lib/designer/src/packages/dataSource/dataSource.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +11 -6
- package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +55 -0
- package/lib/designer/src/packages/eventFlow/dialog/action/config.js +170 -68
- package/lib/designer/src/packages/form/aside/index.js +6 -2
- package/lib/designer/src/packages/form/components/Contract.vue.js +80 -0
- package/lib/designer/src/packages/form/components/Document.vue.js +26 -9
- package/lib/designer/src/packages/form/index.vue.js +10 -17
- package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/designer/src/packages/form/property/contract.vue.js +227 -0
- package/lib/designer/src/packages/form/property/document.vue.js +3 -3
- package/lib/designer/src/packages/form/property/index.vue.js +5 -2
- package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
- package/lib/designer/src/packages/prod/index.vue.js +1 -1
- package/lib/designer/src/packages/table/headerBtn.vue.js +6 -1
- package/lib/designer.css +224 -115
- package/lib/packages/vue/src/components/bus/contract/Contract.vue.js +101 -0
- package/lib/packages/vue/src/components/bus/contract/index.js +7 -0
- package/lib/packages/vue/src/components/forms/cascader/Cascader.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/date/Date.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +3 -2
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +14 -7
- package/lib/packages/vue/src/components/forms/radio/Radio.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/select/Select.vue.js +1 -1
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +53 -28
- package/package.json +1 -1
|
@@ -13,110 +13,212 @@ const TableRowDelete = require("./TableRowDelete.vue2.js");
|
|
|
13
13
|
const Dialog = require("./Dialog.vue.js");
|
|
14
14
|
const Upload = require("./Upload.vue2.js");
|
|
15
15
|
const TableChildSelection = require("./TableChildSelection.vue2.js");
|
|
16
|
+
const RiskSch = require("./RiskSch.vue.js");
|
|
16
17
|
const menuData = [
|
|
17
18
|
{
|
|
18
19
|
index: "page",
|
|
19
20
|
label: "页面",
|
|
20
21
|
items: [
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
{
|
|
23
|
+
index: "page-jump",
|
|
24
|
+
label: "跳转页面",
|
|
25
|
+
desc: "跳转到指定页面",
|
|
26
|
+
component: Page.default,
|
|
27
|
+
default: {
|
|
28
|
+
transitionType: "page",
|
|
29
|
+
routePath: "",
|
|
30
|
+
routeParams: []
|
|
31
|
+
}
|
|
32
|
+
},
|
|
26
33
|
{ index: "page-refresh", label: "刷新页面", desc: "刷新当前页面" },
|
|
27
|
-
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
{
|
|
35
|
+
index: "page-go-back",
|
|
36
|
+
label: "页面返回",
|
|
37
|
+
desc: "返回之前访问的页面",
|
|
38
|
+
component: PageGoBack.default,
|
|
39
|
+
default: {
|
|
40
|
+
backLevel: 1,
|
|
41
|
+
showConfirm: false,
|
|
42
|
+
confirmTitle: "确认返回",
|
|
43
|
+
confirmMessage: "确定要返回到上一页吗?",
|
|
44
|
+
noHistoryAction: "none"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
34
47
|
]
|
|
35
48
|
},
|
|
36
49
|
{
|
|
37
50
|
index: "ui",
|
|
38
51
|
label: "交互",
|
|
39
52
|
items: [
|
|
40
|
-
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
53
|
+
{
|
|
54
|
+
index: "ui-dialog",
|
|
55
|
+
label: "打开弹层",
|
|
56
|
+
desc: "打开指定的弹层",
|
|
57
|
+
component: Dialog.default,
|
|
58
|
+
default: {
|
|
59
|
+
dialogSource: "global",
|
|
60
|
+
selectionMode: "none",
|
|
61
|
+
fieldMapping: []
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
index: "ui-message",
|
|
66
|
+
label: "显示提示信息",
|
|
67
|
+
desc: "显示消息提示",
|
|
68
|
+
component: Message.default,
|
|
69
|
+
default: {
|
|
70
|
+
messageType: "success",
|
|
71
|
+
message: ""
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
index: "ui-confirm",
|
|
76
|
+
label: "确认弹窗",
|
|
77
|
+
desc: "显示确认对话框",
|
|
78
|
+
component: Confirm.default,
|
|
79
|
+
default: {
|
|
80
|
+
messageType: "warning",
|
|
81
|
+
title: "确认操作",
|
|
82
|
+
message: "此操作将永久删除该记录, 是否继续?",
|
|
83
|
+
confirmText: "确定",
|
|
84
|
+
cancelText: "取消",
|
|
85
|
+
showCancel: true,
|
|
86
|
+
confirmAction: "continue"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
index: "ui-upload",
|
|
91
|
+
label: "文件上传",
|
|
92
|
+
desc: "上传文件到服务器",
|
|
93
|
+
component: Upload.default,
|
|
94
|
+
default: {
|
|
95
|
+
acceptType: [
|
|
96
|
+
"doc",
|
|
97
|
+
"xls",
|
|
98
|
+
"ppt",
|
|
99
|
+
"pdf",
|
|
100
|
+
"text",
|
|
101
|
+
"image",
|
|
102
|
+
"video",
|
|
103
|
+
"audio",
|
|
104
|
+
"zip"
|
|
105
|
+
],
|
|
106
|
+
maxSize: "0",
|
|
107
|
+
multipleUpload: false
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
index: "riskSchDialog",
|
|
112
|
+
label: "风险拦截校验",
|
|
113
|
+
desc: "弹出风险拦截提示信息",
|
|
114
|
+
component: RiskSch.default,
|
|
115
|
+
default: {
|
|
116
|
+
schName: [],
|
|
117
|
+
schNo: "",
|
|
118
|
+
params: []
|
|
119
|
+
}
|
|
120
|
+
}
|
|
73
121
|
]
|
|
74
122
|
},
|
|
75
123
|
{
|
|
76
124
|
index: "form",
|
|
77
125
|
label: "表单",
|
|
78
126
|
items: [
|
|
79
|
-
{
|
|
80
|
-
|
|
127
|
+
{
|
|
128
|
+
index: "form-setValue",
|
|
129
|
+
label: "请求表单赋值",
|
|
130
|
+
desc: "通过请求设置表单字段的值",
|
|
131
|
+
component: FormSetValue.default,
|
|
132
|
+
default: { fieldMapping: [] }
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
index: "form-submit",
|
|
136
|
+
label: "请求表单提交",
|
|
137
|
+
desc: "提交表单数据到后台服务",
|
|
138
|
+
component: FormSubmit.default,
|
|
139
|
+
default: { formValidate: true, fieldMapping: [], extraParams: [] }
|
|
140
|
+
}
|
|
81
141
|
]
|
|
82
142
|
},
|
|
83
143
|
{
|
|
84
144
|
index: "table",
|
|
85
145
|
label: "列表",
|
|
86
146
|
items: [
|
|
87
|
-
{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
147
|
+
{
|
|
148
|
+
index: "table-refresh",
|
|
149
|
+
label: "列表数据刷新",
|
|
150
|
+
desc: "刷新表格的数据列表",
|
|
151
|
+
component: TableRefresh.default,
|
|
152
|
+
default: {
|
|
153
|
+
resetSort: false,
|
|
154
|
+
resetFilter: false,
|
|
155
|
+
resetPagination: false
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
index: "table-row-delete",
|
|
160
|
+
label: "行数据删除",
|
|
161
|
+
desc: "删除列表的行数据",
|
|
162
|
+
component: TableRowDelete.default,
|
|
163
|
+
default: {
|
|
164
|
+
showConfirmDeleteMessage: true,
|
|
165
|
+
resetTableAfterDelete: true
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
index: "table-child-refresh",
|
|
170
|
+
label: "子列表数据刷新",
|
|
171
|
+
desc: "刷新子列表的数据列表",
|
|
172
|
+
component: TableChildRefresh.default,
|
|
173
|
+
default: {
|
|
174
|
+
resetSort: false,
|
|
175
|
+
resetFilter: false,
|
|
176
|
+
resetPagination: false
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
index: "table-child-selection",
|
|
181
|
+
label: "子列表勾选数据赋值",
|
|
182
|
+
desc: "将子列表勾选的数据赋值到主表单",
|
|
183
|
+
component: TableChildSelection.default,
|
|
184
|
+
default: {
|
|
185
|
+
subTableSelectionFieldMapping: []
|
|
186
|
+
}
|
|
187
|
+
}
|
|
104
188
|
]
|
|
105
189
|
},
|
|
106
190
|
{
|
|
107
191
|
index: "request",
|
|
108
192
|
label: "请求",
|
|
109
193
|
items: [
|
|
110
|
-
{
|
|
194
|
+
{
|
|
195
|
+
index: "request-send",
|
|
196
|
+
label: "发送请求",
|
|
197
|
+
desc: "通过数据源发送API请求",
|
|
198
|
+
component: Request.default,
|
|
199
|
+
default: { showSuccessMessage: false }
|
|
200
|
+
}
|
|
111
201
|
]
|
|
112
202
|
},
|
|
113
203
|
{
|
|
114
204
|
index: "storage",
|
|
115
205
|
label: "存储",
|
|
116
206
|
items: [
|
|
117
|
-
{
|
|
118
|
-
|
|
119
|
-
|
|
207
|
+
{
|
|
208
|
+
index: "storage-set",
|
|
209
|
+
label: "存入本地 / 会话缓存",
|
|
210
|
+
desc: "将数据保存到本地存储或会话存储"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
index: "storage-get",
|
|
214
|
+
label: "从缓存中读取数据",
|
|
215
|
+
desc: "从本地存储或会话存储中获取数据"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
index: "storage-remove",
|
|
219
|
+
label: "删除缓存数据",
|
|
220
|
+
desc: "从本地存储或会话存储中删除指定数据"
|
|
221
|
+
}
|
|
120
222
|
]
|
|
121
223
|
}
|
|
122
224
|
];
|
|
@@ -170,7 +170,7 @@ const components = [
|
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
fieldType: "document",
|
|
173
|
-
label: "
|
|
173
|
+
label: "要件资料",
|
|
174
174
|
titleMode: "label",
|
|
175
175
|
isSupplement: true,
|
|
176
176
|
multiple: true,
|
|
@@ -190,7 +190,11 @@ const components = [
|
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
fieldType: "contract",
|
|
193
|
-
label: "
|
|
193
|
+
label: "合同信息",
|
|
194
|
+
titleMode: "label",
|
|
195
|
+
mode: "view",
|
|
196
|
+
genType: "1",
|
|
197
|
+
params: []
|
|
194
198
|
}
|
|
195
199
|
]
|
|
196
200
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
require("../../../../../node_modules/element-plus/es/index.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
const vue = require("vue");
|
|
6
|
+
const H2Wrapper = require("./H2Wrapper.vue.js");
|
|
7
|
+
const SubTitle = require("./SubTitle.vue.js");
|
|
8
|
+
;/* empty css */
|
|
9
|
+
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
10
|
+
const index = require("../../../../../node_modules/element-plus/es/components/icon/index.js");
|
|
11
|
+
const _hoisted_1 = { class: "contract-container" };
|
|
12
|
+
const _hoisted_2 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
style: { "margin-bottom": "12px" }
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_3 = { class: "contract-preview" };
|
|
17
|
+
const _hoisted_4 = { class: "preview-icon" };
|
|
18
|
+
const _hoisted_5 = { class: "preview-info" };
|
|
19
|
+
const _hoisted_6 = ["title"];
|
|
20
|
+
const _hoisted_7 = { class: "preview-mode" };
|
|
21
|
+
const _sfc_main = {
|
|
22
|
+
__name: "Contract",
|
|
23
|
+
props: {
|
|
24
|
+
componentData: {
|
|
25
|
+
type: Object,
|
|
26
|
+
required: true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
setup(__props) {
|
|
30
|
+
const props = __props;
|
|
31
|
+
const titleMode = vue.computed(() => {
|
|
32
|
+
var _a;
|
|
33
|
+
const mode = ((_a = props.componentData) == null ? void 0 : _a.titleMode) || "none";
|
|
34
|
+
return mode;
|
|
35
|
+
});
|
|
36
|
+
const modeText = vue.computed(() => {
|
|
37
|
+
var _a;
|
|
38
|
+
const modeMap = {
|
|
39
|
+
view: "合同查看",
|
|
40
|
+
make: "合同制作",
|
|
41
|
+
sign: "合同签署"
|
|
42
|
+
};
|
|
43
|
+
return modeMap[(_a = props.componentData) == null ? void 0 : _a.mode] || "合同查看";
|
|
44
|
+
});
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
const _component_Document = vue.resolveComponent("Document");
|
|
47
|
+
const _component_el_icon = index.ElIcon;
|
|
48
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
49
|
+
titleMode.value !== "none" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
50
|
+
titleMode.value === "label" ? (vue.openBlock(), vue.createBlock(H2Wrapper.default, {
|
|
51
|
+
key: 0,
|
|
52
|
+
componentData: __props.componentData
|
|
53
|
+
}, null, 8, ["componentData"])) : titleMode.value === "subLabel" ? (vue.openBlock(), vue.createBlock(SubTitle.default, {
|
|
54
|
+
key: 1,
|
|
55
|
+
componentData: __props.componentData
|
|
56
|
+
}, null, 8, ["componentData"])) : vue.createCommentVNode("", true)
|
|
57
|
+
])) : vue.createCommentVNode("", true),
|
|
58
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
59
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
60
|
+
vue.createVNode(_component_el_icon, null, {
|
|
61
|
+
default: vue.withCtx(() => [
|
|
62
|
+
vue.createVNode(_component_Document)
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
68
|
+
vue.createElementVNode("div", {
|
|
69
|
+
class: "preview-name",
|
|
70
|
+
title: __props.componentData.label
|
|
71
|
+
}, vue.toDisplayString(__props.componentData.label), 9, _hoisted_6),
|
|
72
|
+
vue.createElementVNode("div", _hoisted_7, vue.toDisplayString(modeText.value), 1)
|
|
73
|
+
])
|
|
74
|
+
])
|
|
75
|
+
]);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const Contract = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-edf403fc"]]);
|
|
80
|
+
exports.default = Contract;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
require("../../../../../node_modules/element-plus/es/index.js");
|
|
4
|
+
;/* empty css */
|
|
3
5
|
const vue = require("vue");
|
|
4
|
-
const document = require("../../../assets/document.png.js");
|
|
5
6
|
const H2Wrapper = require("./H2Wrapper.vue.js");
|
|
6
7
|
const SubTitle = require("./SubTitle.vue.js");
|
|
7
8
|
;/* empty css */
|
|
8
9
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
10
|
+
const index = require("../../../../../node_modules/element-plus/es/components/icon/index.js");
|
|
9
11
|
const _hoisted_1 = { class: "document-container" };
|
|
10
12
|
const _hoisted_2 = {
|
|
11
13
|
key: 0,
|
|
12
14
|
style: { "margin-bottom": "12px" }
|
|
13
15
|
};
|
|
16
|
+
const _hoisted_3 = { class: "document-preview" };
|
|
17
|
+
const _hoisted_4 = { class: "preview-icon" };
|
|
18
|
+
const _hoisted_5 = { class: "preview-info" };
|
|
19
|
+
const _hoisted_6 = ["title"];
|
|
14
20
|
const _sfc_main = {
|
|
15
21
|
__name: "Document",
|
|
16
22
|
props: {
|
|
@@ -27,6 +33,8 @@ const _sfc_main = {
|
|
|
27
33
|
return mode;
|
|
28
34
|
});
|
|
29
35
|
return (_ctx, _cache) => {
|
|
36
|
+
const _component_FolderAdd = vue.resolveComponent("FolderAdd");
|
|
37
|
+
const _component_el_icon = index.ElIcon;
|
|
30
38
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
31
39
|
titleMode.value !== "none" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
32
40
|
titleMode.value === "label" ? (vue.openBlock(), vue.createBlock(H2Wrapper.default, {
|
|
@@ -37,16 +45,25 @@ const _sfc_main = {
|
|
|
37
45
|
componentData: __props.componentData
|
|
38
46
|
}, null, 8, ["componentData"])) : vue.createCommentVNode("", true)
|
|
39
47
|
])) : vue.createCommentVNode("", true),
|
|
40
|
-
|
|
41
|
-
vue.createElementVNode("
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
49
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
50
|
+
vue.createVNode(_component_el_icon, null, {
|
|
51
|
+
default: vue.withCtx(() => [
|
|
52
|
+
vue.createVNode(_component_FolderAdd)
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
})
|
|
56
|
+
]),
|
|
57
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
58
|
+
vue.createElementVNode("div", {
|
|
59
|
+
class: "preview-name",
|
|
60
|
+
title: __props.componentData.label
|
|
61
|
+
}, vue.toDisplayString(__props.componentData.label), 9, _hoisted_6)
|
|
62
|
+
])
|
|
63
|
+
])
|
|
47
64
|
]);
|
|
48
65
|
};
|
|
49
66
|
}
|
|
50
67
|
};
|
|
51
|
-
const Document = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
68
|
+
const Document = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5b174026"]]);
|
|
52
69
|
exports.default = Document;
|
|
@@ -19,6 +19,7 @@ const SubForm = require("./components/SubForm.vue.js");
|
|
|
19
19
|
const approvalHistory = require("./components/approvalHistory.vue.js");
|
|
20
20
|
const SubTable = require("./components/SubTable.vue.js");
|
|
21
21
|
const Document = require("./components/Document.vue.js");
|
|
22
|
+
const Contract = require("./components/Contract.vue.js");
|
|
22
23
|
const index$5 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
23
24
|
const common = require("../utils/common.js");
|
|
24
25
|
const index$1 = require("../../../../node_modules/@vexip-ui/utils/dist/index.js");
|
|
@@ -110,10 +111,10 @@ const _sfc_main = {
|
|
|
110
111
|
(labelPosition) => {
|
|
111
112
|
const targetHeight = labelPosition === "top" ? 0.75 : 1;
|
|
112
113
|
layoutData.value.forEach((item) => {
|
|
113
|
-
var _a, _b, _c
|
|
114
|
+
var _a, _b, _c;
|
|
114
115
|
if (["subTitle", "h2", "divider"].includes((_a = item.component) == null ? void 0 : _a.fieldType)) {
|
|
115
116
|
item.h = 1 * targetHeight;
|
|
116
|
-
} else if (["subForm", "subTable", "approvalHistory"].includes(
|
|
117
|
+
} else if (["subForm", "subTable", "approvalHistory", "document", "contract"].includes(
|
|
117
118
|
(_b = item.component) == null ? void 0 : _b.fieldType
|
|
118
119
|
)) {
|
|
119
120
|
if (((_c = item.component) == null ? void 0 : _c.titleMode) == "none") {
|
|
@@ -121,12 +122,6 @@ const _sfc_main = {
|
|
|
121
122
|
} else {
|
|
122
123
|
item.h = 3 * targetHeight;
|
|
123
124
|
}
|
|
124
|
-
} else if (["document"].includes((_d = item.component) == null ? void 0 : _d.fieldType)) {
|
|
125
|
-
if (((_e = item.component) == null ? void 0 : _e.titleMode) == "none") {
|
|
126
|
-
item.h = 6 * targetHeight;
|
|
127
|
-
} else {
|
|
128
|
-
item.h = 7 * targetHeight;
|
|
129
|
-
}
|
|
130
125
|
}
|
|
131
126
|
});
|
|
132
127
|
gridLayout.value.resizeEvent();
|
|
@@ -227,16 +222,11 @@ const _sfc_main = {
|
|
|
227
222
|
w: editConfigData.value.columns,
|
|
228
223
|
h: editConfigData.value.labelPosition == "top" ? 1.5 : 2
|
|
229
224
|
};
|
|
230
|
-
} else if (component.fieldType == "approvalHistory") {
|
|
225
|
+
} else if (component.fieldType == "approvalHistory" || component.fieldType == "document" || component.fieldType == "contract") {
|
|
231
226
|
finalWH = {
|
|
232
227
|
w: editConfigData.value.columns,
|
|
233
228
|
h: editConfigData.value.labelPosition == "top" ? 2.25 : 3
|
|
234
229
|
};
|
|
235
|
-
} else if (component.fieldType == "document") {
|
|
236
|
-
finalWH = {
|
|
237
|
-
w: editConfigData.value.columns,
|
|
238
|
-
h: editConfigData.value.labelPosition == "top" ? 4.5 : 6
|
|
239
|
-
};
|
|
240
230
|
}
|
|
241
231
|
const colNum = editConfigData.value.columns;
|
|
242
232
|
const rowHeight = editConfigData.value.labelPosition == "top" ? 90 : 60;
|
|
@@ -481,8 +471,11 @@ const _sfc_main = {
|
|
|
481
471
|
}, null, 8, ["component-data"])) : item.component.fieldType == "document" ? (vue.openBlock(), vue.createBlock(Document.default, {
|
|
482
472
|
key: 5,
|
|
483
473
|
"component-data": item.component
|
|
484
|
-
}, null, 8, ["component-data"])) : item.component.fieldType == "
|
|
474
|
+
}, null, 8, ["component-data"])) : item.component.fieldType == "contract" ? (vue.openBlock(), vue.createBlock(Contract.default, {
|
|
485
475
|
key: 6,
|
|
476
|
+
"component-data": item.component
|
|
477
|
+
}, null, 8, ["component-data"])) : item.component.fieldType == "divider" ? (vue.openBlock(), vue.createBlock(_component_el_divider, {
|
|
478
|
+
key: 7,
|
|
486
479
|
"border-style": "dashed"
|
|
487
480
|
}, {
|
|
488
481
|
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
@@ -490,7 +483,7 @@ const _sfc_main = {
|
|
|
490
483
|
])),
|
|
491
484
|
_: 1
|
|
492
485
|
})) : (vue.openBlock(), vue.createBlock(ComponentPreviewWrapper.default, {
|
|
493
|
-
key:
|
|
486
|
+
key: 8,
|
|
494
487
|
"component-data": item.component
|
|
495
488
|
}, null, 8, ["component-data"]))
|
|
496
489
|
], 2)
|
|
@@ -513,5 +506,5 @@ const _sfc_main = {
|
|
|
513
506
|
};
|
|
514
507
|
}
|
|
515
508
|
};
|
|
516
|
-
const formWorkArea = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
509
|
+
const formWorkArea = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-459e2f10"]]);
|
|
517
510
|
exports.default = formWorkArea;
|
|
@@ -13,7 +13,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
|
|
|
13
13
|
const vue = require("vue");
|
|
14
14
|
const common = require("../../utils/common.js");
|
|
15
15
|
const eventBus = require("../../utils/eventBus.js");
|
|
16
|
-
const ValueSelector = require("../../../components/ValueSelector.
|
|
16
|
+
const ValueSelector = require("../../../components/ValueSelector.vue2.js");
|
|
17
17
|
const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
|
|
18
18
|
const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
19
19
|
const index$2 = require("../../../../../node_modules/element-plus/es/components/input/index.js");
|