@fecp/designer 5.6.10 → 5.6.11

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.
Files changed (43) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
  3. package/es/designer/src/components/FieldSetMapping.vue2.mjs +11 -3
  4. package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
  5. package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
  6. package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
  7. package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
  8. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +2 -1
  9. package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
  10. package/es/designer/src/packages/eventFlow/dialog/action/TableSelection.vue2.mjs +64 -0
  11. package/es/designer/src/packages/eventFlow/dialog/action/config.mjs +10 -0
  12. package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
  13. package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
  14. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  15. package/es/designer/src/packages/importantDataChange/index.vue.mjs +1 -1
  16. package/es/designer/src/packages/prod/index.vue.mjs +1 -1
  17. package/es/designer/src/packages/table/headerBtn.vue.mjs +2 -1
  18. package/es/designer.css +84 -73
  19. package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +13 -10
  20. package/es/packages/vue/src/components/table/Table.vue.mjs +5 -1
  21. package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +43 -0
  22. package/lib/designer/package.json.js +1 -1
  23. package/lib/designer/src/components/DocumentParam.vue.js +1 -1
  24. package/lib/designer/src/components/FieldSetMapping.vue2.js +11 -3
  25. package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
  26. package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  27. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  28. package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
  29. package/lib/designer/src/packages/dialogGlobal/index.vue.js +2 -1
  30. package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
  31. package/lib/designer/src/packages/eventFlow/dialog/action/TableSelection.vue2.js +64 -0
  32. package/lib/designer/src/packages/eventFlow/dialog/action/config.js +10 -0
  33. package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
  34. package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
  35. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  36. package/lib/designer/src/packages/importantDataChange/index.vue.js +1 -1
  37. package/lib/designer/src/packages/prod/index.vue.js +1 -1
  38. package/lib/designer/src/packages/table/headerBtn.vue.js +2 -1
  39. package/lib/designer.css +84 -73
  40. package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +12 -9
  41. package/lib/packages/vue/src/components/table/Table.vue.js +5 -1
  42. package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +43 -0
  43. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- const version = "5.6.10";
1
+ const version = "5.6.11";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -9,7 +9,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
9
9
  /* empty css */
10
10
  import { getCurrentInstance, 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.vue2.mjs";
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";
@@ -67,6 +67,14 @@ const _sfc_main = {
67
67
  type: Boolean,
68
68
  default: false
69
69
  },
70
+ hasField: {
71
+ type: Boolean,
72
+ default: true
73
+ },
74
+ hasHidden: {
75
+ type: Boolean,
76
+ default: true
77
+ },
70
78
  size: {
71
79
  type: String,
72
80
  default: ""
@@ -276,7 +284,7 @@ const _sfc_main = {
276
284
  filterable: ""
277
285
  }, {
278
286
  default: withCtx(() => [
279
- unref(formFields).length > 0 ? (openBlock(), createBlock(_component_el_option_group, {
287
+ __props.hasField && unref(formFields).length > 0 ? (openBlock(), createBlock(_component_el_option_group, {
280
288
  key: 0,
281
289
  label: "表单字段"
282
290
  }, {
@@ -291,7 +299,7 @@ const _sfc_main = {
291
299
  ]),
292
300
  _: 1
293
301
  })) : createCommentVNode("", true),
294
- unref(hiddenFields).length > 0 ? (openBlock(), createBlock(_component_el_option_group, {
302
+ __props.hasHidden && unref(hiddenFields).length > 0 ? (openBlock(), createBlock(_component_el_option_group, {
295
303
  key: 1,
296
304
  label: "隐藏域"
297
305
  }, {
@@ -404,7 +412,7 @@ const _sfc_main = {
404
412
  };
405
413
  }
406
414
  };
407
- const FieldSetMapping = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-15f7f3da"]]);
415
+ const FieldSetMapping = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f3c710c3"]]);
408
416
  export {
409
417
  FieldSetMapping as default
410
418
  };
@@ -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.vue2.mjs";
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.vue2.mjs";
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 { getCurrentInstance, 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.vue2.mjs";
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 api from "../../api/index.mjs";
35
35
  /* empty css */
36
36
  /* empty css */
@@ -74,6 +74,7 @@ import widgets from "../table/property/widgets.vue.mjs";
74
74
  /* empty css */
75
75
  /* empty css */
76
76
  /* empty css */
77
+ /* empty css */
77
78
  /* empty css */
78
79
  /* empty css */
79
80
  /* empty css */
@@ -84,7 +85,7 @@ import widgets from "../table/property/widgets.vue.mjs";
84
85
  import "../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
85
86
  /* empty css */
86
87
  /* empty css */
87
- /* empty css */
88
+ /* empty css */
88
89
  /* empty css */
89
90
  /* empty css */
90
91
  /* empty css */
@@ -4,7 +4,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
4
4
  /* empty css */
5
5
  import { createElementBlock, openBlock, Fragment, createVNode, withCtx } from "vue";
6
6
  import RiskSchemeSelector from "../../../../components/RiskSchemeSelector.vue2.mjs";
7
- import ValueSelector from "../../../../components/ValueSelector.vue2.mjs";
7
+ import ValueSelector from "../../../../components/ValueSelector.vue.mjs";
8
8
  import ParamsConfig from "../../../../components/ParamsConfig.vue2.mjs";
9
9
  import { ElFormItem } from "../../../../../../node_modules/element-plus/es/components/form/index.mjs";
10
10
  import { ElSwitch } from "../../../../../../node_modules/element-plus/es/components/switch/index.mjs";
@@ -0,0 +1,64 @@
1
+ import "../../../../../../node_modules/element-plus/es/index.mjs";
2
+ /* empty css */
3
+ /* empty css */
4
+ import { getCurrentInstance, computed, ref, watch, createBlock, openBlock, withCtx, createVNode, unref } from "vue";
5
+ import FieldSetMapping from "../../../../components/FieldSetMapping.vue2.mjs";
6
+ import { getEditConfigDataFields, getEditConfigData } from "../../../utils/common.mjs";
7
+ import api from "../../../../api/index.mjs";
8
+ /* empty css */
9
+ import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
10
+ import { ElFormItem } from "../../../../../../node_modules/element-plus/es/components/form/index.mjs";
11
+ const _sfc_main = {
12
+ __name: "TableSelection",
13
+ props: {
14
+ formData: Object
15
+ },
16
+ setup(__props) {
17
+ const currentInstance = getCurrentInstance();
18
+ const ctx = currentInstance.proxy;
19
+ const props = __props;
20
+ const fieldList = computed(() => {
21
+ const fieldList2 = getEditConfigDataFields();
22
+ const editConfigData = getEditConfigData();
23
+ const hiddenFields = (editConfigData == null ? void 0 : editConfigData.hiddenFields) || [];
24
+ return [...fieldList2, ...hiddenFields];
25
+ });
26
+ const subTableOptions = ref({});
27
+ watch(
28
+ () => props.formData.selectSubTableFieldId,
29
+ (id) => {
30
+ const fieldItem = getEditConfigDataFields().find((item) => item.id == id);
31
+ if (fieldItem) {
32
+ const subTableId = fieldItem.subTableId;
33
+ api.getById(ctx.$http, subTableId).then((data) => {
34
+ subTableOptions.value = JSON.parse(data.context);
35
+ });
36
+ }
37
+ },
38
+ {
39
+ immediate: true
40
+ }
41
+ );
42
+ return (_ctx, _cache) => {
43
+ const _component_el_form_item = ElFormItem;
44
+ return openBlock(), createBlock(_component_el_form_item, { label: "选取后隐藏域赋值映射" }, {
45
+ default: withCtx(() => [
46
+ createVNode(FieldSetMapping, {
47
+ modelValue: __props.formData.tableSelectionFieldMapping,
48
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.tableSelectionFieldMapping = $event),
49
+ fieldLabel: "赋值隐藏域字段",
50
+ valueLabel: "列表字段",
51
+ valueOptions: unref(fieldList),
52
+ hasField: false,
53
+ valueSelectMode: ""
54
+ }, null, 8, ["modelValue", "valueOptions"])
55
+ ]),
56
+ _: 1
57
+ });
58
+ };
59
+ }
60
+ };
61
+ const TableSelection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-de74c7a5"]]);
62
+ export {
63
+ TableSelection as default
64
+ };
@@ -11,6 +11,7 @@ import TableRowDelete from "./TableRowDelete.vue2.mjs";
11
11
  import _sfc_main$2 from "./Dialog.vue.mjs";
12
12
  import Upload from "./Upload.vue2.mjs";
13
13
  import TableChildSelection from "./TableChildSelection.vue2.mjs";
14
+ import TableSelection from "./TableSelection.vue2.mjs";
14
15
  import _sfc_main$5 from "./RiskSch.vue.mjs";
15
16
  const menuData = [
16
17
  {
@@ -164,6 +165,15 @@ const menuData = [
164
165
  resetTableAfterDelete: true
165
166
  }
166
167
  },
168
+ {
169
+ index: "table-selection",
170
+ label: "列表勾选数据赋值",
171
+ desc: "将列表勾选的数据赋值到隐藏域字段",
172
+ component: TableSelection,
173
+ default: {
174
+ tableSelectionFieldMapping: []
175
+ }
176
+ },
167
177
  {
168
178
  index: "table-child-refresh",
169
179
  label: "子列表数据刷新",
@@ -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.vue2.mjs";
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";
@@ -18,7 +18,7 @@ import __unplugin_components_6 from "../../../components/EventConfigButton.vue.m
18
18
  import { getCurrentInstance, computed, ref, createBlock, openBlock, withCtx, createVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
19
19
  import { getCurrentItem } from "../../utils/common.mjs";
20
20
  import "../../utils/eventBus.mjs";
21
- import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
21
+ import ValueSelector from "../../../components/ValueSelector.vue.mjs";
22
22
  import api from "../../../api/index.mjs";
23
23
  import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
24
24
  /* empty css */
@@ -12,7 +12,7 @@ import { computed, ref, createBlock, openBlock, unref, isRef, withCtx, createVNo
12
12
  import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
13
13
  import TemplateSelector from "../../../components/TemplateSelector.vue2.mjs";
14
14
  import emitter from "../../utils/eventBus.mjs";
15
- import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
15
+ import ValueSelector from "../../../components/ValueSelector.vue.mjs";
16
16
  import ParamsConfig from "../../../components/ParamsConfig.vue2.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";
@@ -5,7 +5,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  import { useModel, ref, watch, createBlock, openBlock, withCtx, createElementVNode, createElementBlock, createCommentVNode, createVNode, createTextVNode, Fragment, renderList, toDisplayString } from "vue";
8
- import ValueSelector from "../../components/ValueSelector.vue2.mjs";
8
+ import ValueSelector from "../../components/ValueSelector.vue.mjs";
9
9
  import { getEditConfigData, setEditConfigData } from "../utils/common.mjs";
10
10
  /* empty css */
11
11
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -14,7 +14,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
14
14
  import { getCurrentInstance, 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.vue2.mjs";
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";
@@ -45,7 +45,7 @@ import { Connection as connection_default, Grid as grid_default, ChatLineSquare
45
45
  /* empty css */
46
46
  import "../../store/index.mjs";
47
47
  /* empty css */
48
- /* empty css */
48
+ /* empty css */
49
49
  /* empty css */
50
50
  /* empty css */
51
51
  /* empty css */
@@ -76,6 +76,7 @@ import { useDialogGlobalDialog } from "../dialogGlobal/useDialogGlobalDialog.mjs
76
76
  /* empty css */
77
77
  /* empty css */
78
78
  /* empty css */
79
+ /* empty css */
79
80
  /* empty css */
80
81
  /* empty css */
81
82
  /* empty css */