@fecp/designer 5.4.17 → 5.4.19
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 +1 -1
- package/es/designer/src/components/ParamsConfig.vue2.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/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +17 -5
- package/es/designer/src/packages/eventFlow/dialog/action/config.mjs +1 -0
- package/es/designer/src/packages/form/index.vue.mjs +18 -5
- package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
- 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 +1 -1
- package/es/designer.css +69 -69
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +10 -0
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +10 -0
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +10 -0
- package/es/packages/vue/src/components/riskSch/RiskSchRenderer.vue.mjs +87 -0
- package/es/packages/vue/src/components/riskSch/index.mjs +71 -0
- package/es/packages/vue/src/components/table/Table.vue.mjs +10 -0
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +10 -0
- package/es/packages/vue/src/composables/usePageEvents.mjs +10 -0
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +44 -7
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DocumentParam.vue.js +1 -1
- package/lib/designer/src/components/ParamsConfig.vue2.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/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +17 -5
- package/lib/designer/src/packages/eventFlow/dialog/action/config.js +1 -0
- package/lib/designer/src/packages/form/index.vue.js +17 -4
- package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
- 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 +1 -1
- package/lib/designer.css +69 -69
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +10 -0
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +10 -0
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +10 -0
- package/lib/packages/vue/src/components/riskSch/RiskSchRenderer.vue.js +87 -0
- package/lib/packages/vue/src/components/riskSch/index.js +71 -0
- package/lib/packages/vue/src/components/table/Table.vue.js +10 -0
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +10 -0
- package/lib/packages/vue/src/composables/usePageEvents.js +10 -0
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +57 -20
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
|
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { computed, ref, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
|
|
11
11
|
import { Plus as plus_default, Delete as delete_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
12
|
-
import ValueSelector from "./ValueSelector.
|
|
12
|
+
import ValueSelector from "./ValueSelector.vue.mjs";
|
|
13
13
|
import api from "../api/index.mjs";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
@@ -4,7 +4,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { computed, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
|
|
6
6
|
import { Plus as plus_default, Delete as delete_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
7
|
-
import ValueSelector from "./ValueSelector.
|
|
7
|
+
import ValueSelector from "./ValueSelector.vue.mjs";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
10
10
|
import { ElButton } from "../../../node_modules/element-plus/es/components/button/index.mjs";
|
|
@@ -16,7 +16,7 @@ import { Plus as plus_default, RefreshRight as refresh_right_default, Delete as
|
|
|
16
16
|
import { getEditConfigData, getEditingType, cloneDeep, getEditConfigDataFields } from "../../packages/utils/common.mjs";
|
|
17
17
|
import { defaultProperty } from "../../packages/form/aside/index.mjs";
|
|
18
18
|
import { defaultProperty as defaultProperty$1 } from "../../packages/table/aside/index.mjs";
|
|
19
|
-
import ValueSelector from "../../components/ValueSelector.
|
|
19
|
+
import ValueSelector from "../../components/ValueSelector.vue.mjs";
|
|
20
20
|
/* empty css */
|
|
21
21
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
22
22
|
import { ElDialog } from "../../../../node_modules/element-plus/es/components/dialog/index.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
|
|
|
14
14
|
import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
|
|
15
15
|
import { computed, watch, ref, createElementBlock, unref, openBlock, createBlock, isRef, createVNode, createElementVNode, withCtx, Fragment, renderList } from "vue";
|
|
16
16
|
import { useVModel } from "../../../../node_modules/@vueuse/core/dist/index.mjs";
|
|
17
|
-
import ValueSelector from "../../components/ValueSelector.
|
|
17
|
+
import ValueSelector from "../../components/ValueSelector.vue.mjs";
|
|
18
18
|
import api from "../../api/index.mjs";
|
|
19
19
|
import { getEditConfigDataSources } from "../utils/common.mjs";
|
|
20
20
|
import { createDataSource } from "../utils/datasource.mjs";
|
|
@@ -30,7 +30,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs
|
|
|
30
30
|
/* empty css */
|
|
31
31
|
/* empty css */
|
|
32
32
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
33
|
-
/* empty css
|
|
33
|
+
/* empty css */
|
|
34
34
|
import "../../axios/config.mjs";
|
|
35
35
|
import "../../../../_virtual/FileSaver.min.mjs";
|
|
36
36
|
import "../../../../_virtual/index.mjs";
|
|
@@ -77,7 +77,7 @@ import "../formulaEditor/core/functionCore.mjs";
|
|
|
77
77
|
import "../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
|
|
78
78
|
/* empty css */
|
|
79
79
|
/* empty css */
|
|
80
|
-
/* empty css
|
|
80
|
+
/* empty css */
|
|
81
81
|
/* empty css */
|
|
82
82
|
/* empty css */
|
|
83
83
|
/* empty css */
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import "../../../../../../node_modules/element-plus/es/index.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
+
/* empty css */
|
|
4
5
|
import { createElementBlock, openBlock, Fragment, createVNode, withCtx } from "vue";
|
|
5
6
|
import RiskSchemeSelector from "../../../../components/RiskSchemeSelector.vue2.mjs";
|
|
6
|
-
import ValueSelector from "../../../../components/ValueSelector.
|
|
7
|
+
import ValueSelector from "../../../../components/ValueSelector.vue.mjs";
|
|
7
8
|
import ParamsConfig from "../../../../components/ParamsConfig.vue2.mjs";
|
|
8
9
|
import { ElFormItem } from "../../../../../../node_modules/element-plus/es/components/form/index.mjs";
|
|
10
|
+
import { ElSwitch } from "../../../../../../node_modules/element-plus/es/components/switch/index.mjs";
|
|
9
11
|
const _sfc_main = {
|
|
10
12
|
__name: "RiskSch",
|
|
11
13
|
props: {
|
|
@@ -13,15 +15,25 @@ const _sfc_main = {
|
|
|
13
15
|
},
|
|
14
16
|
setup(__props) {
|
|
15
17
|
return (_ctx, _cache) => {
|
|
18
|
+
const _component_el_switch = ElSwitch;
|
|
16
19
|
const _component_el_form_item = ElFormItem;
|
|
17
20
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
21
|
+
createVNode(_component_el_form_item, { label: "表单校验" }, {
|
|
22
|
+
default: withCtx(() => [
|
|
23
|
+
createVNode(_component_el_switch, {
|
|
24
|
+
modelValue: __props.formData.formValidate,
|
|
25
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.formValidate = $event)
|
|
26
|
+
}, null, 8, ["modelValue"])
|
|
27
|
+
]),
|
|
28
|
+
_: 1
|
|
29
|
+
}),
|
|
18
30
|
createVNode(_component_el_form_item, { label: "风险方案" }, {
|
|
19
31
|
default: withCtx(() => [
|
|
20
32
|
createVNode(RiskSchemeSelector, {
|
|
21
33
|
modelValue: __props.formData.schName,
|
|
22
|
-
"onUpdate:modelValue": _cache[
|
|
34
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.schName = $event),
|
|
23
35
|
schNo: __props.formData.schNo,
|
|
24
|
-
"onUpdate:schNo": _cache[
|
|
36
|
+
"onUpdate:schNo": _cache[2] || (_cache[2] = ($event) => __props.formData.schNo = $event)
|
|
25
37
|
}, null, 8, ["modelValue", "schNo"])
|
|
26
38
|
]),
|
|
27
39
|
_: 1
|
|
@@ -30,7 +42,7 @@ const _sfc_main = {
|
|
|
30
42
|
default: withCtx(() => [
|
|
31
43
|
createVNode(ValueSelector, {
|
|
32
44
|
modelValue: __props.formData.busNo,
|
|
33
|
-
"onUpdate:modelValue": _cache[
|
|
45
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.formData.busNo = $event),
|
|
34
46
|
multiple: false,
|
|
35
47
|
placeholder: "选择业务主键"
|
|
36
48
|
}, null, 8, ["modelValue"])
|
|
@@ -41,7 +53,7 @@ const _sfc_main = {
|
|
|
41
53
|
default: withCtx(() => [
|
|
42
54
|
createVNode(ParamsConfig, {
|
|
43
55
|
modelValue: __props.formData.params,
|
|
44
|
-
"onUpdate:modelValue": _cache[
|
|
56
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.formData.params = $event)
|
|
45
57
|
}, null, 8, ["modelValue"])
|
|
46
58
|
]),
|
|
47
59
|
_: 1
|
|
@@ -19,7 +19,7 @@ import SubTable from "./components/SubTable.vue.mjs";
|
|
|
19
19
|
import Document from "./components/Document.vue.mjs";
|
|
20
20
|
import Contract from "./components/Contract.vue.mjs";
|
|
21
21
|
import { StarFilled as star_filled_default, Star as star_default, Lock as lock_default, Unlock as unlock_default, Delete as delete_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
22
|
-
import { getEditConfigData, setSelectedItem, setHoverItem, getCurrentClass, isSelectedItem } from "../utils/common.mjs";
|
|
22
|
+
import { getEditConfigData, setEditConfigData, setSelectedItem, setHoverItem, getCurrentClass, isSelectedItem } from "../utils/common.mjs";
|
|
23
23
|
import { throttle as eo } from "../../../../node_modules/@vexip-ui/utils/dist/index.mjs";
|
|
24
24
|
import { defaultProperty } from "./aside/index.mjs";
|
|
25
25
|
/* empty css */
|
|
@@ -60,6 +60,14 @@ const _sfc_main = {
|
|
|
60
60
|
editConfigData.value.fieldsData.forEach((item) => {
|
|
61
61
|
item.component = { ...defaultProperty, ...item.component };
|
|
62
62
|
});
|
|
63
|
+
watch(
|
|
64
|
+
editConfigData,
|
|
65
|
+
(val) => {
|
|
66
|
+
console.log("🚀 ~ val:", val);
|
|
67
|
+
setEditConfigData(val);
|
|
68
|
+
},
|
|
69
|
+
{ deep: true }
|
|
70
|
+
);
|
|
63
71
|
const layoutDragData = ref([]);
|
|
64
72
|
const layoutData = ref(editConfigData.value.fieldsData || []);
|
|
65
73
|
const gridLayout = ref(null);
|
|
@@ -101,6 +109,7 @@ const _sfc_main = {
|
|
|
101
109
|
item.x = 0;
|
|
102
110
|
});
|
|
103
111
|
layoutData.value = [...validItems, ...itemsToRelayout];
|
|
112
|
+
editConfigData.value.fieldsData = layoutData.value;
|
|
104
113
|
}
|
|
105
114
|
}
|
|
106
115
|
);
|
|
@@ -112,9 +121,13 @@ const _sfc_main = {
|
|
|
112
121
|
var _a, _b, _c;
|
|
113
122
|
if (["subTitle", "h2", "divider"].includes((_a = item.component) == null ? void 0 : _a.fieldType)) {
|
|
114
123
|
item.h = 1 * targetHeight;
|
|
115
|
-
} else if ([
|
|
116
|
-
|
|
117
|
-
|
|
124
|
+
} else if ([
|
|
125
|
+
"subForm",
|
|
126
|
+
"subTable",
|
|
127
|
+
"approvalHistory",
|
|
128
|
+
"document",
|
|
129
|
+
"contract"
|
|
130
|
+
].includes((_b = item.component) == null ? void 0 : _b.fieldType)) {
|
|
118
131
|
if (((_c = item.component) == null ? void 0 : _c.titleMode) == "none") {
|
|
119
132
|
item.h = 2 * targetHeight;
|
|
120
133
|
} else {
|
|
@@ -504,7 +517,7 @@ const _sfc_main = {
|
|
|
504
517
|
};
|
|
505
518
|
}
|
|
506
519
|
};
|
|
507
|
-
const formWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
520
|
+
const formWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d23df582"]]);
|
|
508
521
|
export {
|
|
509
522
|
formWorkArea as default
|
|
510
523
|
};
|
|
@@ -11,7 +11,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
11
11
|
import { computed, ref, watch, createBlock, openBlock, unref, isRef, withCtx, createVNode, createElementBlock, createCommentVNode, createTextVNode, Fragment } from "vue";
|
|
12
12
|
import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
|
|
13
13
|
import emitter from "../../utils/eventBus.mjs";
|
|
14
|
-
import ValueSelector from "../../../components/ValueSelector.
|
|
14
|
+
import ValueSelector from "../../../components/ValueSelector.vue.mjs";
|
|
15
15
|
import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
|
|
16
16
|
import { ElForm, ElFormItem } from "../../../../../node_modules/element-plus/es/components/form/index.mjs";
|
|
17
17
|
import { ElInput } from "../../../../../node_modules/element-plus/es/components/input/index.mjs";
|
|
@@ -17,7 +17,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
17
17
|
import { computed, ref, createBlock, openBlock, withCtx, createVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
|
|
18
18
|
import { getCurrentItem } from "../../utils/common.mjs";
|
|
19
19
|
import "../../utils/eventBus.mjs";
|
|
20
|
-
import ValueSelector from "../../../components/ValueSelector.
|
|
20
|
+
import ValueSelector from "../../../components/ValueSelector.vue.mjs";
|
|
21
21
|
import api from "../../../api/index.mjs";
|
|
22
22
|
import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
|
|
23
23
|
/* empty css */
|
|
@@ -13,7 +13,7 @@ import { computed, ref, createBlock, openBlock, unref, isRef, withCtx, createVNo
|
|
|
13
13
|
import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
|
|
14
14
|
import TemplateSelector from "../../../components/TemplateSelector.vue.mjs";
|
|
15
15
|
import emitter from "../../utils/eventBus.mjs";
|
|
16
|
-
import ValueSelector from "../../../components/ValueSelector.
|
|
16
|
+
import ValueSelector from "../../../components/ValueSelector.vue.mjs";
|
|
17
17
|
import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
|
|
18
18
|
import { ElForm, ElFormItem } from "../../../../../node_modules/element-plus/es/components/form/index.mjs";
|
|
19
19
|
import { ElInput } from "../../../../../node_modules/element-plus/es/components/input/index.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
|
|
|
14
14
|
import { useModel, ref, watch, computed, createBlock, openBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, createTextVNode, unref } from "vue";
|
|
15
15
|
import { Plus as plus_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
16
16
|
import { getEditConfigData, getEditConfigDataFields, setEditConfigData } from "../utils/common.mjs";
|
|
17
|
-
import ValueSelector from "../../components/ValueSelector.
|
|
17
|
+
import ValueSelector from "../../components/ValueSelector.vue.mjs";
|
|
18
18
|
import api from "../../api/index.mjs";
|
|
19
19
|
/* empty css */
|
|
20
20
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|