@fecp/designer 5.4.14 → 5.4.15
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/components/DocumentParam.vue.mjs +15 -17
- package/es/designer/src/packages/dataSource/dataSource.vue.mjs +1 -1
- 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/contract.vue.mjs +212 -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.css +196 -105
- package/es/packages/vue/src/components/bus/contract/Contract.vue.mjs +96 -0
- package/es/packages/vue/src/components/bus/contract/index.mjs +7 -0
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +1 -1
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +10 -3
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -1
- package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
- package/es/packages/vue/src/utils/datasource.mjs +1 -1
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DocumentParam.vue.js +14 -16
- package/lib/designer/src/packages/dataSource/dataSource.vue.js +1 -1
- 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/contract.vue.js +212 -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.css +196 -105
- package/lib/packages/vue/src/components/bus/contract/Contract.vue.js +96 -0
- package/lib/packages/vue/src/components/bus/contract/index.js +7 -0
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +1 -1
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +14 -7
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +1 -1
- package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
- package/lib/packages/vue/src/utils/datasource.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ref, inject, computed, onMounted, createElementBlock, openBlock, createBlock, resolveDynamicComponent, unref } from "vue";
|
|
2
|
+
import "../../forms/h2/index.mjs";
|
|
3
|
+
import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
|
|
4
|
+
import { parseRouteParams, parseSingleParamValue } from "../../../utils/parseRouteParams.mjs";
|
|
5
|
+
const _hoisted_1 = { class: "contract-content" };
|
|
6
|
+
const path = "/tech/ctr/components/DocCtrInfoComponent";
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
8
|
+
inheritAttrs: false
|
|
9
|
+
}, {
|
|
10
|
+
__name: "Contract",
|
|
11
|
+
props: {
|
|
12
|
+
config: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
localConfig: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
formMode: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: ""
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const ctx = getCurrentVueInstance();
|
|
28
|
+
ref("");
|
|
29
|
+
const formData = inject("formData");
|
|
30
|
+
inject("rowHeight");
|
|
31
|
+
inject("gridLayout");
|
|
32
|
+
inject("gridLayoutFieldsData");
|
|
33
|
+
const setFormItemHeight = inject("setFormItemHeight");
|
|
34
|
+
const fieldsData = props.localConfig.fieldsData.map((item) => {
|
|
35
|
+
return item.component;
|
|
36
|
+
});
|
|
37
|
+
const hiddenFields = props.localConfig.hiddenFields;
|
|
38
|
+
const parsedParams = parseRouteParams(props.config.params, formData.value, [
|
|
39
|
+
...fieldsData,
|
|
40
|
+
...hiddenFields
|
|
41
|
+
]);
|
|
42
|
+
const busNo = parseSingleParamValue(props.config.busNo, formData.value, [
|
|
43
|
+
...fieldsData,
|
|
44
|
+
...hiddenFields
|
|
45
|
+
]);
|
|
46
|
+
const mode = computed(() => {
|
|
47
|
+
if (props.formMode == "query") {
|
|
48
|
+
return "view";
|
|
49
|
+
}
|
|
50
|
+
return props.config.mode;
|
|
51
|
+
});
|
|
52
|
+
const currentComponent = ref(null);
|
|
53
|
+
const loadComponentByPath = (path2) => {
|
|
54
|
+
const route = ctx.$router.getRoutes().find((item) => item.path === path2);
|
|
55
|
+
if (!route) return;
|
|
56
|
+
const comp = route.components.default;
|
|
57
|
+
if (!comp) return;
|
|
58
|
+
if (typeof comp === "function") {
|
|
59
|
+
comp().then((module) => {
|
|
60
|
+
currentComponent.value = module.default;
|
|
61
|
+
});
|
|
62
|
+
} else {
|
|
63
|
+
currentComponent.value = comp;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
onMounted(() => {
|
|
67
|
+
loadComponentByPath(path);
|
|
68
|
+
});
|
|
69
|
+
function loaded(dom) {
|
|
70
|
+
const foundItem = props.localConfig.fieldsData.find(
|
|
71
|
+
(item) => item.id == props.config.id
|
|
72
|
+
);
|
|
73
|
+
const titleHeight = 0;
|
|
74
|
+
if (foundItem) {
|
|
75
|
+
foundItem.fixedH = true;
|
|
76
|
+
foundItem.h = dom.offsetHeight + titleHeight;
|
|
77
|
+
setFormItemHeight(props.config.id, true, dom.offsetHeight + titleHeight);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return (_ctx, _cache) => {
|
|
81
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
82
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), {
|
|
83
|
+
mode: unref(mode),
|
|
84
|
+
busNo: unref(busNo),
|
|
85
|
+
busSubject: __props.config.busSubject,
|
|
86
|
+
genType: __props.config.genType,
|
|
87
|
+
parmList: unref(parsedParams),
|
|
88
|
+
onLoaded: loaded
|
|
89
|
+
}, null, 40, ["mode", "busNo", "busSubject", "genType", "parmList"]))
|
|
90
|
+
]);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
_sfc_main as default
|
|
96
|
+
};
|
|
@@ -9,9 +9,9 @@ import { Form } from "../forms/form/index.mjs";
|
|
|
9
9
|
import { parseRouteParams } from "../../utils/parseRouteParams.mjs";
|
|
10
10
|
import { calculate } from "../../utils/formulajs/calculate.mjs";
|
|
11
11
|
import { useEventFlow, executeEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
|
|
12
|
-
/* empty css */
|
|
13
12
|
/* empty css */
|
|
14
13
|
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
17
17
|
/* empty css */
|
|
@@ -11,6 +11,7 @@ import { SubForm } from "../subForm/index.mjs";
|
|
|
11
11
|
import { SubTable } from "../subTable/index.mjs";
|
|
12
12
|
import { ApprovalHistory } from "../../bus/approvalHistory/index.mjs";
|
|
13
13
|
import { Document } from "../../bus/document/index.mjs";
|
|
14
|
+
import { Contract } from "../../bus/contract/index.mjs";
|
|
14
15
|
import * as index$1 from "../index.mjs";
|
|
15
16
|
import * as index from "../../bus/index.mjs";
|
|
16
17
|
/* empty css */
|
|
@@ -142,11 +143,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
142
143
|
ref: innerComponentRef,
|
|
143
144
|
config: __props.config,
|
|
144
145
|
localConfig: __props.localConfig
|
|
145
|
-
}, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "
|
|
146
|
+
}, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "contract" ? (openBlock(), createBlock(unref(Contract), {
|
|
146
147
|
key: 6,
|
|
148
|
+
ref_key: "innerComponentRef",
|
|
149
|
+
ref: innerComponentRef,
|
|
150
|
+
config: __props.config,
|
|
151
|
+
localConfig: __props.localConfig
|
|
152
|
+
}, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "blank" || __props.config.fieldType == "divider" ? (openBlock(), createElementBlock("div", {
|
|
153
|
+
key: 7,
|
|
147
154
|
class: normalizeClass(__props.config.fieldType)
|
|
148
155
|
}, null, 2)) : (openBlock(), createBlock(_component_el_form_item, {
|
|
149
|
-
key:
|
|
156
|
+
key: 8,
|
|
150
157
|
prop: __props.config.fieldName,
|
|
151
158
|
required: __props.config.required,
|
|
152
159
|
error: __props.error,
|
|
@@ -195,7 +202,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
195
202
|
};
|
|
196
203
|
}
|
|
197
204
|
});
|
|
198
|
-
const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
205
|
+
const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e00643b1"]]);
|
|
199
206
|
export {
|
|
200
207
|
_FormItem as default
|
|
201
208
|
};
|
|
@@ -3,9 +3,9 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { computed, getCurrentInstance, inject, createElementBlock, openBlock, createVNode, createCommentVNode, mergeProps, toHandlers, createSlots, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode, unref } from "vue";
|
|
6
|
-
/* empty css */
|
|
7
6
|
/* empty css */
|
|
8
7
|
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
9
|
import { openDialog } from "../../dialog/index.mjs";
|
|
10
10
|
import api from "../../../api/index.mjs";
|
|
11
11
|
/* empty css */
|
|
@@ -7,10 +7,10 @@ import "../../../../../node_modules/vxe-table/es/components.mjs";
|
|
|
7
7
|
import { CopyDocument as copy_document_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
8
8
|
import { checkFilterMatch } from "../../utils/parseFilterConfig.mjs";
|
|
9
9
|
import { removeEmptyValues } from "../../utils/common.mjs";
|
|
10
|
-
/* empty css */
|
|
11
10
|
/* empty css */
|
|
12
11
|
/* empty css */
|
|
13
12
|
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
15
|
import "./index.mjs";
|
|
16
16
|
import "../forms/form/index.mjs";
|
|
@@ -2,9 +2,9 @@ import { reactive } from "vue";
|
|
|
2
2
|
import { parseRouteParams } from "./parseRouteParams.mjs";
|
|
3
3
|
import "../../../../node_modules/element-plus/es/index.mjs";
|
|
4
4
|
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
5
|
/* empty css */
|
|
7
6
|
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
8
|
import { ElLoading } from "../../../../node_modules/element-plus/es/components/loading/index.mjs";
|
|
9
9
|
import { ElMessage } from "../../../../node_modules/element-plus/es/components/message/index.mjs";
|
|
10
10
|
class DataSourceManager {
|
|
@@ -65,21 +65,19 @@ const _sfc_main = {
|
|
|
65
65
|
const _component_el_option = index$3.ElOption;
|
|
66
66
|
const _component_el_select = index$3.ElSelect;
|
|
67
67
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
68
|
-
params.value.length === 0 ? (vue.openBlock(), vue.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
vue.createTextVNode(" " + vue.toDisplayString(vue.unref(scenarioOptions)), 1)
|
|
82
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
68
|
+
params.value.length === 0 ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
69
|
+
key: 0,
|
|
70
|
+
type: "primary",
|
|
71
|
+
size: "small",
|
|
72
|
+
icon: vue.unref(index$2.Plus),
|
|
73
|
+
link: "",
|
|
74
|
+
onClick: addParam
|
|
75
|
+
}, {
|
|
76
|
+
default: vue.withCtx(() => _cache[0] || (_cache[0] = [
|
|
77
|
+
vue.createTextVNode(" 新增要件参数 ")
|
|
78
|
+
])),
|
|
79
|
+
_: 1
|
|
80
|
+
}, 8, ["icon"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
83
81
|
_cache[2] || (_cache[2] = vue.createElementVNode("div", { class: "param-header" }, [
|
|
84
82
|
vue.createElementVNode("div", { class: "param-cell scenario-header" }, "业务场景"),
|
|
85
83
|
vue.createElementVNode("div", { class: "param-cell key-header" }, "业务主键"),
|
|
@@ -154,5 +152,5 @@ const _sfc_main = {
|
|
|
154
152
|
};
|
|
155
153
|
}
|
|
156
154
|
};
|
|
157
|
-
const DocumentParam = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
155
|
+
const DocumentParam = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-97d41de4"]]);
|
|
158
156
|
exports.default = DocumentParam;
|
|
@@ -382,5 +382,5 @@ const _sfc_main = {
|
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
|
-
const DataSource = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
385
|
+
const DataSource = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b94fbb2f"]]);
|
|
386
386
|
exports.default = DataSource;
|
|
@@ -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;
|