@fecp/designer 5.6.10 → 5.6.13

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 (61) 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/dialog/useDialogDialog.mjs +1 -1
  9. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -0
  10. package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +1 -0
  11. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  12. package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
  13. package/es/designer/src/packages/eventFlow/dialog/action/TableSelection.vue2.mjs +64 -0
  14. package/es/designer/src/packages/eventFlow/dialog/action/config.mjs +10 -0
  15. package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
  16. package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
  17. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  18. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
  19. package/es/designer/src/packages/importantDataChange/index.vue.mjs +2 -2
  20. package/es/designer/src/packages/prod/index.vue.mjs +1 -1
  21. package/es/designer/src/packages/table/headerBtn.vue.mjs +2 -1
  22. package/es/designer.css +165 -151
  23. package/es/packages/mobile/src/index.vue.mjs +3 -3
  24. package/es/packages/vue/src/components/bus/approvalHistory/timeLine.vue.mjs +1 -1
  25. package/es/packages/vue/src/components/bus/flowChart/bpmnjs/component/timeline.vue.mjs +2 -2
  26. package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +13 -10
  27. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +15 -3
  28. package/es/packages/vue/src/components/table/Table.vue.mjs +5 -1
  29. package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +43 -0
  30. package/es/packages/vue/src/utils/importantDataChange.mjs +0 -1
  31. package/lib/designer/package.json.js +1 -1
  32. package/lib/designer/src/components/DocumentParam.vue.js +1 -1
  33. package/lib/designer/src/components/FieldSetMapping.vue2.js +11 -3
  34. package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
  35. package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  36. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  37. package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
  38. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  39. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -0
  40. package/lib/designer/src/packages/dialogGlobal/index.vue2.js +1 -0
  41. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  42. package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
  43. package/lib/designer/src/packages/eventFlow/dialog/action/TableSelection.vue2.js +64 -0
  44. package/lib/designer/src/packages/eventFlow/dialog/action/config.js +10 -0
  45. package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
  46. package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
  47. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  48. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  49. package/lib/designer/src/packages/importantDataChange/index.vue.js +2 -2
  50. package/lib/designer/src/packages/prod/index.vue.js +1 -1
  51. package/lib/designer/src/packages/table/headerBtn.vue.js +2 -1
  52. package/lib/designer.css +165 -151
  53. package/lib/packages/mobile/src/index.vue.js +3 -3
  54. package/lib/packages/vue/src/components/bus/approvalHistory/timeLine.vue.js +1 -1
  55. package/lib/packages/vue/src/components/bus/flowChart/bpmnjs/component/timeline.vue.js +2 -2
  56. package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +12 -9
  57. package/lib/packages/vue/src/components/forms/form/Form.vue.js +14 -2
  58. package/lib/packages/vue/src/components/table/Table.vue.js +5 -1
  59. package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +43 -0
  60. package/lib/packages/vue/src/utils/importantDataChange.js +0 -1
  61. package/package.json +1 -1
@@ -144,12 +144,12 @@ const _sfc_main = {
144
144
  pageParams.value = JSON.parse(routeParams);
145
145
  }
146
146
  emitter.on("loadPage", ({ pageId, params }) => {
147
- loadPage(pageId);
148
147
  pageParams.value = params;
148
+ loadPage(pageId);
149
149
  });
150
150
  emitter.on("replaceLoadPage", ({ pageId, params }) => {
151
- loadPage(pageId, true);
152
151
  pageParams.value = params;
152
+ loadPage(pageId, true);
153
153
  });
154
154
  emitter.on("refreshPage", () => {
155
155
  refreshCurrentPage();
@@ -255,7 +255,7 @@ const _sfc_main = {
255
255
  };
256
256
  }
257
257
  };
258
- const MobileApp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3f56bbe1"]]);
258
+ const MobileApp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-32479e3c"]]);
259
259
  export {
260
260
  MobileApp as default
261
261
  };
@@ -26,7 +26,7 @@ const _hoisted_4 = {
26
26
  class: "appContent"
27
27
  };
28
28
  const _hoisted_5 = { class: "openTask" };
29
- const _hoisted_6 = { style: { "font-weight": "bold" } };
29
+ const _hoisted_6 = { style: { "font-weight": "bold", "flex": "1", "display": "flex", "width": "0", "margin-right": "12px" } };
30
30
  const _hoisted_7 = {
31
31
  key: 0,
32
32
  class: "appAssignee"
@@ -20,7 +20,7 @@ const _hoisted_5 = {
20
20
  class: "appContent"
21
21
  };
22
22
  const _hoisted_6 = { class: "openTask" };
23
- const _hoisted_7 = { style: { "font-weight": "bold" } };
23
+ const _hoisted_7 = { style: { "font-weight": "bold", "flex": "1", "display": "flex", "width": "0", "margin-right": "12px" } };
24
24
  const _hoisted_8 = {
25
25
  key: 0,
26
26
  class: "appAssignee"
@@ -251,7 +251,7 @@ const _sfc_main = {
251
251
  };
252
252
  }
253
253
  };
254
- const timeline = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4d562e1e"]]);
254
+ const timeline = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ce9dc48a"]]);
255
255
  export {
256
256
  timeline as default
257
257
  };
@@ -3,7 +3,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
- import { ref, computed, watch, resolveComponent, createBlock, openBlock, resolveDynamicComponent, mergeProps, withCtx, createElementVNode, normalizeStyle, normalizeClass, createElementBlock, Fragment, createCommentVNode, normalizeProps, toDisplayString, createVNode, createTextVNode, renderList } from "vue";
6
+ import { ref, computed, watch, resolveComponent, createBlock, openBlock, resolveDynamicComponent, mergeProps, normalizeClass, withCtx, createElementVNode, normalizeStyle, createElementBlock, Fragment, createCommentVNode, normalizeProps, toDisplayString, createVNode, createTextVNode, renderList } from "vue";
7
7
  import { parseRouteParams } from "../../utils/parseRouteParams.mjs";
8
8
  import { calculate } from "../../utils/formulajs/calculate.mjs";
9
9
  import { useEventFlow, executeEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
@@ -316,6 +316,7 @@ const _sfc_main = {
316
316
  emit("confirm");
317
317
  }
318
318
  return (_ctx, _cache) => {
319
+ var _a;
319
320
  const _component_fec_table = resolveComponent("fec-table");
320
321
  const _component_fec_form = resolveComponent("fec-form");
321
322
  const _component_el_button = ElButton;
@@ -340,18 +341,20 @@ const _sfc_main = {
340
341
  draggable: true,
341
342
  "close-on-click-modal": false,
342
343
  "append-to-body": "",
343
- class: "fec-dialog-renderer"
344
+ class: normalizeClass(["fec-dialog-renderer", {
345
+ "fec-dialog-renderer-component": ((_a = __props.dialogConfig) == null ? void 0 : _a.contentSource) === "component"
346
+ }])
344
347
  }, {
345
348
  header: withCtx(() => {
346
- var _a;
349
+ var _a2;
347
350
  return [
348
351
  createElementVNode("div", _hoisted_1, [
349
- createElementVNode("span", null, toDisplayString(((_a = currentDialogConfig.value) == null ? void 0 : _a.dialogTitle) || "弹层"), 1)
352
+ createElementVNode("span", null, toDisplayString(((_a2 = currentDialogConfig.value) == null ? void 0 : _a2.dialogTitle) || "弹层"), 1)
350
353
  ])
351
354
  ];
352
355
  }),
353
356
  footer: withCtx(() => {
354
- var _a, _b, _c;
357
+ var _a2, _b, _c;
355
358
  return [
356
359
  createVNode(_component_el_button, { onClick: handleCancel }, {
357
360
  default: withCtx(() => _cache[3] || (_cache[3] = [
@@ -359,7 +362,7 @@ const _sfc_main = {
359
362
  ])),
360
363
  _: 1
361
364
  }),
362
- ((_a = __props.dialogConfig) == null ? void 0 : _a.contentSource) === "table" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
365
+ ((_a2 = __props.dialogConfig) == null ? void 0 : _a2.contentSource) === "table" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
363
366
  !__props.dialogConfig.isSubTableReadOnly && __props.dialogConfig.selectionMode != "none" ? (openBlock(), createBlock(_component_el_button, {
364
367
  key: 0,
365
368
  type: "primary",
@@ -386,10 +389,10 @@ const _sfc_main = {
386
389
  ];
387
390
  }),
388
391
  default: withCtx(() => {
389
- var _a, _b, _c, _d, _e;
392
+ var _a2, _b, _c, _d, _e;
390
393
  return [
391
394
  createElementVNode("div", {
392
- class: normalizeClass(["dialog-content-wrapper", "fec-dialog-" + ((_a = __props.dialogConfig) == null ? void 0 : _a.contentSource)]),
395
+ class: normalizeClass(["dialog-content-wrapper", "fec-dialog-" + ((_a2 = __props.dialogConfig) == null ? void 0 : _a2.contentSource)]),
393
396
  style: normalizeStyle(contentStyle.value)
394
397
  }, [
395
398
  ((_b = __props.dialogConfig) == null ? void 0 : _b.contentSource) === "table" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -434,11 +437,11 @@ const _sfc_main = {
434
437
  ];
435
438
  }),
436
439
  _: 1
437
- }, 8, ["modelValue", "width"]));
440
+ }, 8, ["modelValue", "width", "class"]));
438
441
  };
439
442
  }
440
443
  };
441
- const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bb1d2a15"]]);
444
+ const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b0f2231"]]);
442
445
  export {
443
446
  DialogRenderer as default
444
447
  };
@@ -7,7 +7,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
- import { getCurrentInstance, ref, watch, onMounted, onBeforeUnmount, computed, provide, resolveDirective, withDirectives, createCommentVNode, createBlock, openBlock, normalizeClass, withCtx, createVNode, normalizeStyle, unref, createElementBlock, Fragment, renderList } from "vue";
10
+ import { getCurrentInstance, ref, watch, onMounted, onBeforeUnmount, computed, nextTick, provide, resolveDirective, withDirectives, createCommentVNode, createBlock, openBlock, normalizeClass, withCtx, createVNode, normalizeStyle, unref, createElementBlock, Fragment, renderList } from "vue";
11
11
  import "../../../../../../node_modules/grid-layout-plus/es/index.mjs";
12
12
  import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
13
13
  import getJsonAsyncUtil from "../../../utils/getJsonAsyncUtil.mjs";
@@ -161,9 +161,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
161
161
  }
162
162
  }
163
163
  );
164
+ let isSyncingToParent = false;
164
165
  watch(
165
166
  () => props.modelValue,
166
167
  (newVal, oldVal) => {
168
+ if (isSyncingToParent) return;
167
169
  if (JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
168
170
  loadFormData("change");
169
171
  }
@@ -929,8 +931,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
929
931
  }
930
932
  return result;
931
933
  };
934
+ let isApplyingLinkage = false;
932
935
  const applyLinkageEffectsForChangedFields = (changedFieldNames) => {
933
936
  var _a;
937
+ if (isApplyingLinkage) return;
938
+ isApplyingLinkage = true;
934
939
  const linkedConfig = localConfig.value.linkedConfig || {};
935
940
  const fields = [...fieldsData.value, ...hiddenFields.value];
936
941
  const relevantConfigs = filterRelevantLinkageConfigs(
@@ -953,7 +958,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
953
958
  value: formData.value,
954
959
  fieldsList: fields
955
960
  });
956
- formData.value[field.fieldName] = calcResult;
961
+ if (!isEqual(formData.value[field.fieldName], calcResult)) {
962
+ formData.value[field.fieldName] = calcResult;
963
+ }
957
964
  }
958
965
  });
959
966
  }
@@ -1069,6 +1076,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1069
1076
  const fieldsConfigArr = updatedLayoutData.filter((item) => !item.hidden);
1070
1077
  gridLayoutFieldsData.value = sortLayoutItems(fieldsConfigArr);
1071
1078
  (_a = gridLayout == null ? void 0 : gridLayout.value) == null ? void 0 : _a.resizeEvent();
1079
+ isApplyingLinkage = false;
1072
1080
  };
1073
1081
  function sortLayoutItems(arr) {
1074
1082
  return [...arr].sort((a, b) => {
@@ -1148,7 +1156,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1148
1156
  applyLinkageEffectsForChangedFields(changedFields);
1149
1157
  }
1150
1158
  prevFormData.value = { ...formData.value };
1159
+ isSyncingToParent = true;
1151
1160
  emit("update:modelValue", getFormData());
1161
+ nextTick(() => {
1162
+ isSyncingToParent = false;
1163
+ });
1152
1164
  },
1153
1165
  { deep: true }
1154
1166
  );
@@ -1318,7 +1330,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1318
1330
  };
1319
1331
  }
1320
1332
  });
1321
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5a2b92b9"]]);
1333
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2a14b0ea"]]);
1322
1334
  export {
1323
1335
  _Form as default
1324
1336
  };
@@ -887,6 +887,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
887
887
  const setFormData = (data) => {
888
888
  Object.assign(hiddenFormData.value, data);
889
889
  };
890
+ const getFormData = () => {
891
+ return hiddenFormData.value;
892
+ };
890
893
  __expose({
891
894
  tableRef,
892
895
  refresh,
@@ -897,6 +900,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
897
900
  exportData: handleExport,
898
901
  localConfig,
899
902
  setFormData,
903
+ getFormData,
900
904
  handleCustomBtnClick
901
905
  });
902
906
  return (_ctx, _cache) => {
@@ -1022,7 +1026,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1022
1026
  };
1023
1027
  }
1024
1028
  });
1025
- const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-79a7b787"]]);
1029
+ const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-28ff595c"]]);
1026
1030
  export {
1027
1031
  _Table as default
1028
1032
  };
@@ -390,6 +390,47 @@ async function handleTableChildSelection(node, data, fields, context) {
390
390
  };
391
391
  }
392
392
  }
393
+ async function handleTableSelection(node, data, fields, context) {
394
+ var _a, _b, _c, _d, _e;
395
+ const basic = node.basic || {};
396
+ debugger;
397
+ const tableComponent = (_a = context.components) == null ? void 0 : _a.table;
398
+ const setFormDataMethod = (_c = (_b = tableComponent == null ? void 0 : tableComponent.$) == null ? void 0 : _b.exposed) == null ? void 0 : _c.setFormData;
399
+ const getSelectionMethod = (_e = (_d = tableComponent == null ? void 0 : tableComponent.$) == null ? void 0 : _d.exposed) == null ? void 0 : _e.getSelection;
400
+ if (typeof getSelectionMethod === "function") {
401
+ const rows = await getSelectionMethod();
402
+ const fieldMapping = basic.tableSelectionFieldMapping;
403
+ if (fieldMapping && Array.isArray(fieldMapping)) {
404
+ let formData = {};
405
+ fieldMapping.forEach((mapping) => {
406
+ const { field, value } = mapping;
407
+ const targetField = fields.find((item) => item.id == field);
408
+ if (!targetField) {
409
+ return {
410
+ success: false,
411
+ message: `未找到字段: ${field}`
412
+ };
413
+ }
414
+ const values = rows.map((row) => row[value]);
415
+ formData[targetField.fieldName] = values.join(",");
416
+ });
417
+ if (typeof setFormDataMethod === "function") {
418
+ setFormDataMethod(formData);
419
+ return {
420
+ success: true,
421
+ message: "赋值成功"
422
+ };
423
+ } else {
424
+ console.error("未找到列表组件的 setFormData 方法");
425
+ return {
426
+ success: false,
427
+ message: "列表组件未正确配置或 setFormData 方法未暴露",
428
+ shouldShowError: true
429
+ };
430
+ }
431
+ }
432
+ }
433
+ }
393
434
  async function handleTableRowDelete(node, data, fields, context) {
394
435
  var _a, _b, _c;
395
436
  console.log("[EventFlow] 执行表格行删除:", node.basic);
@@ -830,6 +871,7 @@ const defaultActionHandlers = {
830
871
  "table-row-delete": handleTableRowDelete,
831
872
  "table-child-refresh": handleTableChildRefresh,
832
873
  "table-child-selection": handleTableChildSelection,
874
+ "table-selection": handleTableSelection,
833
875
  "form-setValue": handleFormSetValue,
834
876
  "form-submit": handleFormSubmit,
835
877
  custom: handleCustomAction,
@@ -852,5 +894,6 @@ export {
852
894
  handleTableChildSelection,
853
895
  handleTableRefresh,
854
896
  handleTableRowDelete,
897
+ handleTableSelection,
855
898
  handleUpload
856
899
  };
@@ -87,7 +87,6 @@ class ImportantDataChangeManager {
87
87
  }
88
88
  /**
89
89
  * 拉取所有配置组的变更日志
90
- * TODO: 替换 mock API 为真实后端接口
91
90
  */
92
91
  async fetchChanges() {
93
92
  const allRecords = [];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.6.10";
3
+ const version = "5.6.13";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -11,7 +11,7 @@ require("../../../node_modules/element-plus/es/index.js");
11
11
  ;/* empty css */
12
12
  const Vue = require("vue");
13
13
  const index$2 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
14
- const ValueSelector = require("./ValueSelector.vue2.js");
14
+ const ValueSelector = require("./ValueSelector.vue.js");
15
15
  const index = require("../api/index.js");
16
16
  ;/* empty css */
17
17
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
@@ -69,6 +69,14 @@ const _sfc_main = {
69
69
  type: Boolean,
70
70
  default: false
71
71
  },
72
+ hasField: {
73
+ type: Boolean,
74
+ default: true
75
+ },
76
+ hasHidden: {
77
+ type: Boolean,
78
+ default: true
79
+ },
72
80
  size: {
73
81
  type: String,
74
82
  default: ""
@@ -278,7 +286,7 @@ const _sfc_main = {
278
286
  filterable: ""
279
287
  }, {
280
288
  default: Vue.withCtx(() => [
281
- Vue.unref(formFields).length > 0 ? (Vue.openBlock(), Vue.createBlock(_component_el_option_group, {
289
+ __props.hasField && Vue.unref(formFields).length > 0 ? (Vue.openBlock(), Vue.createBlock(_component_el_option_group, {
282
290
  key: 0,
283
291
  label: "表单字段"
284
292
  }, {
@@ -293,7 +301,7 @@ const _sfc_main = {
293
301
  ]),
294
302
  _: 1
295
303
  })) : Vue.createCommentVNode("", true),
296
- Vue.unref(hiddenFields).length > 0 ? (Vue.openBlock(), Vue.createBlock(_component_el_option_group, {
304
+ __props.hasHidden && Vue.unref(hiddenFields).length > 0 ? (Vue.openBlock(), Vue.createBlock(_component_el_option_group, {
297
305
  key: 1,
298
306
  label: "隐藏域"
299
307
  }, {
@@ -406,5 +414,5 @@ const _sfc_main = {
406
414
  };
407
415
  }
408
416
  };
409
- const FieldSetMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-15f7f3da"]]);
417
+ const FieldSetMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-f3c710c3"]]);
410
418
  exports.default = FieldSetMapping;
@@ -6,7 +6,7 @@ require("../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const Vue = require("vue");
8
8
  const index$1 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
9
- const ValueSelector = require("./ValueSelector.vue2.js");
9
+ const ValueSelector = require("./ValueSelector.vue.js");
10
10
  ;/* empty css */
11
11
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
12
12
  const index = require("../../../node_modules/element-plus/es/components/button/index.js");
@@ -18,7 +18,7 @@ const index$2 = require("../../../../node_modules/@element-plus/icons-vue/dist/i
18
18
  const common = require("../../packages/utils/common.js");
19
19
  const index$5 = require("../../packages/form/aside/index.js");
20
20
  const index$6 = require("../../packages/table/aside/index.js");
21
- const ValueSelector = require("../../components/ValueSelector.vue2.js");
21
+ const ValueSelector = require("../../components/ValueSelector.vue.js");
22
22
  ;/* empty css */
23
23
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
24
24
  const index = require("../../../../node_modules/element-plus/es/components/dialog/index.js");
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
16
16
  require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
17
17
  const Vue = require("vue");
18
18
  const index = require("../../../../node_modules/@vueuse/core/dist/index.js");
19
- const ValueSelector = require("../../components/ValueSelector.vue2.js");
19
+ const ValueSelector = require("../../components/ValueSelector.vue.js");
20
20
  const index$1 = require("../../api/index.js");
21
21
  const common = require("../utils/common.js");
22
22
  const datasource = require("../utils/datasource.js");
@@ -32,7 +32,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
32
32
  ;/* empty css */
33
33
  ;/* empty css */
34
34
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
35
- ;/* empty css */
35
+ ;/* empty css */
36
36
  const index$8 = require("../../api/index.js");
37
37
  ;/* empty css */
38
38
  ;/* empty css */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue.js");
3
+ const index = require("./index.vue2.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogDialog() {
6
6
  const dialogDialogVisible = Vue.ref(false);
@@ -76,6 +76,7 @@ const widgets = require("../table/property/widgets.vue.js");
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 */
@@ -76,6 +76,7 @@ const widgets = require("../table/property/widgets.vue.js");
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 */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue.js");
3
+ const index = require("./index.vue2.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogGlobalDialog() {
6
6
  const dialogGlobalDialogVisible = Vue.ref(false);
@@ -6,7 +6,7 @@ require("../../../../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const Vue = require("vue");
8
8
  const RiskSchemeSelector = require("../../../../components/RiskSchemeSelector.vue2.js");
9
- const ValueSelector = require("../../../../components/ValueSelector.vue2.js");
9
+ const ValueSelector = require("../../../../components/ValueSelector.vue.js");
10
10
  const ParamsConfig = require("../../../../components/ParamsConfig.vue2.js");
11
11
  const index = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
12
12
  const index$1 = require("../../../../../../node_modules/element-plus/es/components/switch/index.js");
@@ -0,0 +1,64 @@
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
+ ;/* empty css */
6
+ const Vue = require("vue");
7
+ const FieldSetMapping = require("../../../../components/FieldSetMapping.vue2.js");
8
+ const common = require("../../../utils/common.js");
9
+ const index = require("../../../../api/index.js");
10
+ ;/* empty css */
11
+ const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
12
+ const index$1 = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
13
+ const _sfc_main = {
14
+ __name: "TableSelection",
15
+ props: {
16
+ formData: Object
17
+ },
18
+ setup(__props) {
19
+ const currentInstance = Vue.getCurrentInstance();
20
+ const ctx = currentInstance.proxy;
21
+ const props = __props;
22
+ const fieldList = Vue.computed(() => {
23
+ const fieldList2 = common.getEditConfigDataFields();
24
+ const editConfigData = common.getEditConfigData();
25
+ const hiddenFields = (editConfigData == null ? void 0 : editConfigData.hiddenFields) || [];
26
+ return [...fieldList2, ...hiddenFields];
27
+ });
28
+ const subTableOptions = Vue.ref({});
29
+ Vue.watch(
30
+ () => props.formData.selectSubTableFieldId,
31
+ (id) => {
32
+ const fieldItem = common.getEditConfigDataFields().find((item) => item.id == id);
33
+ if (fieldItem) {
34
+ const subTableId = fieldItem.subTableId;
35
+ index.default.getById(ctx.$http, subTableId).then((data) => {
36
+ subTableOptions.value = JSON.parse(data.context);
37
+ });
38
+ }
39
+ },
40
+ {
41
+ immediate: true
42
+ }
43
+ );
44
+ return (_ctx, _cache) => {
45
+ const _component_el_form_item = index$1.ElFormItem;
46
+ return Vue.openBlock(), Vue.createBlock(_component_el_form_item, { label: "选取后隐藏域赋值映射" }, {
47
+ default: Vue.withCtx(() => [
48
+ Vue.createVNode(FieldSetMapping.default, {
49
+ modelValue: __props.formData.tableSelectionFieldMapping,
50
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.tableSelectionFieldMapping = $event),
51
+ fieldLabel: "赋值隐藏域字段",
52
+ valueLabel: "列表字段",
53
+ valueOptions: Vue.unref(fieldList),
54
+ hasField: false,
55
+ valueSelectMode: ""
56
+ }, null, 8, ["modelValue", "valueOptions"])
57
+ ]),
58
+ _: 1
59
+ });
60
+ };
61
+ }
62
+ };
63
+ const TableSelection = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-de74c7a5"]]);
64
+ exports.default = TableSelection;
@@ -13,6 +13,7 @@ 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 TableSelection = require("./TableSelection.vue2.js");
16
17
  const RiskSch = require("./RiskSch.vue.js");
17
18
  const menuData = [
18
19
  {
@@ -166,6 +167,15 @@ const menuData = [
166
167
  resetTableAfterDelete: true
167
168
  }
168
169
  },
170
+ {
171
+ index: "table-selection",
172
+ label: "列表勾选数据赋值",
173
+ desc: "将列表勾选的数据赋值到隐藏域字段",
174
+ component: TableSelection.default,
175
+ default: {
176
+ tableSelectionFieldMapping: []
177
+ }
178
+ },
169
179
  {
170
180
  index: "table-child-refresh",
171
181
  label: "子列表数据刷新",
@@ -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.vue2.js");
16
+ const ValueSelector = require("../../../components/ValueSelector.vue.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");
@@ -20,7 +20,7 @@ const EventConfigButton = require("../../../components/EventConfigButton.vue.js"
20
20
  const Vue = require("vue");
21
21
  const common = require("../../utils/common.js");
22
22
  require("../../utils/eventBus.js");
23
- const ValueSelector = require("../../../components/ValueSelector.vue2.js");
23
+ const ValueSelector = require("../../../components/ValueSelector.vue.js");
24
24
  const index = require("../../../api/index.js");
25
25
  const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
26
26
  ;/* empty css */
@@ -14,7 +14,7 @@ const Vue = require("vue");
14
14
  const common = require("../../utils/common.js");
15
15
  const TemplateSelector = require("../../../components/TemplateSelector.vue2.js");
16
16
  const eventBus = require("../../utils/eventBus.js");
17
- const ValueSelector = require("../../../components/ValueSelector.vue2.js");
17
+ const ValueSelector = require("../../../components/ValueSelector.vue.js");
18
18
  const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
19
19
  const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
20
20
  const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
54
54
  require("../../../components/TemplateSelector.vue.js");
55
55
  require("../../table/default.js");
56
56
  ;/* empty css */
57
- ;/* empty css */
58
- ;/* empty css */
57
+ ;/* empty css */
58
+ ;/* empty css */
59
59
  require("../../../store/index.js");
60
60
  ;/* empty css */
61
61
  const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
@@ -7,7 +7,7 @@ require("../../../../node_modules/element-plus/es/index.js");
7
7
  ;/* empty css */
8
8
  ;/* empty css */
9
9
  const Vue = require("vue");
10
- const ValueSelector = require("../../components/ValueSelector.vue2.js");
10
+ const ValueSelector = require("../../components/ValueSelector.vue.js");
11
11
  const common = require("../utils/common.js");
12
12
  ;/* empty css */
13
13
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
@@ -180,5 +180,5 @@ const _sfc_main = {
180
180
  };
181
181
  }
182
182
  };
183
- const ImportantDataChangeDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e3b38158"]]);
183
+ const ImportantDataChangeDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ed2c5a64"]]);
184
184
  exports.default = ImportantDataChangeDialog;
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/es/index.js");
16
16
  const Vue = require("vue");
17
17
  const index$6 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
18
18
  const common = require("../utils/common.js");
19
- const ValueSelector = require("../../components/ValueSelector.vue2.js");
19
+ const ValueSelector = require("../../components/ValueSelector.vue.js");
20
20
  const index = require("../../api/index.js");
21
21
  ;/* empty css */
22
22
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
@@ -47,7 +47,7 @@ const index$1 = require("../../../../node_modules/@element-plus/icons-vue/dist/i
47
47
  ;/* empty css */
48
48
  require("../../store/index.js");
49
49
  ;/* empty css */
50
- ;/* empty css */
50
+ ;/* empty css */
51
51
  ;/* empty css */
52
52
  ;/* empty css */
53
53
  ;/* empty css */
@@ -78,6 +78,7 @@ const useDialogGlobalDialog = require("../dialogGlobal/useDialogGlobalDialog.js"
78
78
  ;/* empty css */
79
79
  ;/* empty css */
80
80
  ;/* empty css */
81
+ ;/* empty css */
81
82
  ;/* empty css */
82
83
  ;/* empty css */
83
84
  ;/* empty css */