@fecp/designer 5.6.9 → 5.6.10

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 (49) 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/ParamsConfig.vue2.mjs +1 -1
  4. package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
  5. package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
  6. package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
  7. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  8. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  9. package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
  10. package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
  11. package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
  12. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  13. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
  14. package/es/designer/src/packages/importantDataChange/index.vue.mjs +1 -1
  15. package/es/designer/src/packages/prod/index.vue.mjs +1 -1
  16. package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
  17. package/es/designer.css +104 -85
  18. package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +83 -89
  19. package/es/packages/vue/src/components/forms/roleSelect/RoleSelect.vue.mjs +28 -31
  20. package/es/packages/vue/src/components/forms/text/Text.vue.mjs +10 -11
  21. package/es/packages/vue/src/components/forms/userSelect/UserSelect.vue.mjs +28 -31
  22. package/es/packages/vue/src/components/table/Table.vue.mjs +19 -3
  23. package/es/packages/vue/src/utils/datasource.mjs +18 -9
  24. package/es/packages/vue/src/utils/importantDataChange.mjs +1 -15
  25. package/lib/designer/package.json.js +1 -1
  26. package/lib/designer/src/components/DocumentParam.vue.js +1 -1
  27. package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
  28. package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  29. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  30. package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
  31. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  32. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  33. package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
  34. package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
  35. package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
  36. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  37. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  38. package/lib/designer/src/packages/importantDataChange/index.vue.js +1 -1
  39. package/lib/designer/src/packages/prod/index.vue.js +1 -1
  40. package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
  41. package/lib/designer.css +104 -85
  42. package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +88 -94
  43. package/lib/packages/vue/src/components/forms/roleSelect/RoleSelect.vue.js +27 -30
  44. package/lib/packages/vue/src/components/forms/text/Text.vue.js +9 -10
  45. package/lib/packages/vue/src/components/forms/userSelect/UserSelect.vue.js +27 -30
  46. package/lib/packages/vue/src/components/table/Table.vue.js +19 -3
  47. package/lib/packages/vue/src/utils/datasource.js +18 -9
  48. package/lib/packages/vue/src/utils/importantDataChange.js +1 -15
  49. package/package.json +1 -1
@@ -6,8 +6,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
6
6
  /* empty css */
7
7
  import "../../../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
8
8
  /* empty css */
9
- import { computed, ref, createBlock, createElementBlock, openBlock, unref, normalizeClass, createSlots, withCtx, createCommentVNode, resolveDynamicComponent, mergeProps, withModifiers, createTextVNode, toDisplayString, createElementVNode, createVNode, Fragment, renderList } from "vue";
10
- import { WarningFilled as warning_filled_default } from "../../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
9
+ import { computed, ref, createBlock, createElementBlock, openBlock, unref, normalizeClass, createSlots, withCtx, createCommentVNode, resolveDynamicComponent, mergeProps, createElementVNode, createVNode, toDisplayString, Fragment, renderList, withModifiers, createTextVNode } from "vue";
11
10
  import { debounce } from "../form/debounce.mjs";
12
11
  import { formatCellValue } from "../../../utils/formatCellValue.mjs";
13
12
  import { SubTitle } from "../subTitle/index.mjs";
@@ -22,11 +21,10 @@ import * as index from "../../bus/index.mjs";
22
21
  /* empty css */
23
22
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
24
23
  import { ElFormItem } from "../../../../../../node_modules/element-plus/es/components/form/index.mjs";
25
- import { ElLink } from "../../../../../../node_modules/element-plus/es/components/link/index.mjs";
26
- import { ElTooltip } from "../../../../../../node_modules/element-plus/es/components/tooltip/index.mjs";
27
24
  import { ElPopover } from "../../../../../../node_modules/element-plus/es/components/popover/index.mjs";
28
25
  import { ElScrollbar } from "../../../../../../node_modules/element-plus/es/components/scrollbar/index.mjs";
29
- import { ElIcon } from "../../../../../../node_modules/element-plus/es/components/icon/index.mjs";
26
+ import { ElLink } from "../../../../../../node_modules/element-plus/es/components/link/index.mjs";
27
+ import { ElTooltip } from "../../../../../../node_modules/element-plus/es/components/tooltip/index.mjs";
30
28
  const _hoisted_1 = {
31
29
  key: 0,
32
30
  class: "iconfont icon-iconZheng credit-icon"
@@ -36,17 +34,21 @@ const _hoisted_2 = {
36
34
  class: "iconfont icon-iconJian regulation-icon"
37
35
  };
38
36
  const _hoisted_3 = { key: 3 };
39
- const _hoisted_4 = { class: "data-change-popover" };
40
- const _hoisted_5 = { class: "popover-header" };
41
- const _hoisted_6 = { class: "header-count" };
42
- const _hoisted_7 = { class: "diff-meta" };
43
- const _hoisted_8 = { class: "diff-time" };
44
- const _hoisted_9 = { class: "diff-operator" };
45
- const _hoisted_10 = { class: "diff-lines" };
46
- const _hoisted_11 = { class: "diff-line diff-del" };
47
- const _hoisted_12 = { class: "diff-text" };
48
- const _hoisted_13 = { class: "diff-line diff-add" };
49
- const _hoisted_14 = { class: "diff-text" };
37
+ const _hoisted_4 = {
38
+ key: 0,
39
+ class: "form-item-content-wrapper"
40
+ };
41
+ const _hoisted_5 = { class: "data-change-popover" };
42
+ const _hoisted_6 = { class: "popover-header" };
43
+ const _hoisted_7 = { class: "header-count" };
44
+ const _hoisted_8 = { class: "diff-meta" };
45
+ const _hoisted_9 = { class: "diff-time" };
46
+ const _hoisted_10 = { class: "diff-operator" };
47
+ const _hoisted_11 = { class: "diff-lines" };
48
+ const _hoisted_12 = { class: "diff-line diff-del" };
49
+ const _hoisted_13 = { class: "diff-text" };
50
+ const _hoisted_14 = { class: "diff-line diff-add" };
51
+ const _hoisted_15 = { class: "diff-text" };
50
52
  const _sfc_main = /* @__PURE__ */ Object.assign({
51
53
  inheritAttrs: false
52
54
  }, {
@@ -154,7 +156,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
154
156
  return (_ctx, _cache) => {
155
157
  const _component_el_link = ElLink;
156
158
  const _component_el_tooltip = ElTooltip;
157
- const _component_el_icon = ElIcon;
158
159
  const _component_el_scrollbar = ElScrollbar;
159
160
  const _component_el_popover = ElPopover;
160
161
  const _component_el_form_item = ElFormItem;
@@ -211,19 +212,69 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
211
212
  id: `comp_${__props.config.id}`
212
213
  }, createSlots({
213
214
  default: withCtx(() => [
214
- __props.config.labelMode != "label" ? (openBlock(), createBlock(resolveDynamicComponent(componentType.value), mergeProps({
215
- key: 0,
216
- ref_key: "innerComponentRef",
217
- ref: innerComponentRef,
218
- modelValue: compValue.value,
219
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => compValue.value = $event)
220
- }, componentProps.value, {
221
- config: __props.config,
222
- formMode: __props.formMode,
223
- onChange: _cache[1] || (_cache[1] = (value) => {
224
- handleChange(__props.config, value);
225
- })
226
- }), null, 16, ["modelValue", "config", "formMode"])) : createCommentVNode("", true)
215
+ __props.config.labelMode != "label" ? (openBlock(), createElementBlock("div", _hoisted_4, [
216
+ (openBlock(), createBlock(resolveDynamicComponent(componentType.value), mergeProps({
217
+ ref_key: "innerComponentRef",
218
+ ref: innerComponentRef,
219
+ modelValue: compValue.value,
220
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => compValue.value = $event)
221
+ }, componentProps.value, {
222
+ config: __props.config,
223
+ formMode: __props.formMode,
224
+ onChange: _cache[1] || (_cache[1] = (value) => {
225
+ handleChange(__props.config, value);
226
+ })
227
+ }), null, 16, ["modelValue", "config", "formMode"])),
228
+ hasDataChange.value ? (openBlock(), createBlock(_component_el_popover, {
229
+ key: 0,
230
+ placement: "bottom-start",
231
+ width: 340,
232
+ trigger: "hover",
233
+ "show-after": 200,
234
+ "popper-class": "data-change-popper"
235
+ }, {
236
+ reference: withCtx(() => _cache[3] || (_cache[3] = [
237
+ createElementVNode("span", { class: "data-change-triangle" }, null, -1)
238
+ ])),
239
+ default: withCtx(() => [
240
+ createElementVNode("div", _hoisted_5, [
241
+ createElementVNode("div", _hoisted_6, [
242
+ _cache[4] || (_cache[4] = createElementVNode("div", { class: "header-left" }, [
243
+ createElementVNode("span", { class: "header-title" }, "数据变更历史")
244
+ ], -1)),
245
+ createElementVNode("span", _hoisted_7, toDisplayString(fieldChangeRecords.value.length) + " 条记录", 1)
246
+ ]),
247
+ createVNode(_component_el_scrollbar, { "max-height": "320px" }, {
248
+ default: withCtx(() => [
249
+ (openBlock(true), createElementBlock(Fragment, null, renderList(fieldChangeRecords.value, (record, idx) => {
250
+ return openBlock(), createElementBlock("div", {
251
+ key: idx,
252
+ class: "diff-block"
253
+ }, [
254
+ createElementVNode("div", _hoisted_8, [
255
+ createElementVNode("span", _hoisted_9, toDisplayString(record.opTime), 1),
256
+ createElementVNode("span", _hoisted_10, toDisplayString(record.opName), 1)
257
+ ]),
258
+ createElementVNode("div", _hoisted_11, [
259
+ createElementVNode("div", _hoisted_12, [
260
+ _cache[5] || (_cache[5] = createElementVNode("span", { class: "diff-sign" }, "-", -1)),
261
+ createElementVNode("span", _hoisted_13, toDisplayString(formatValue(record.originalValue)), 1)
262
+ ]),
263
+ createElementVNode("div", _hoisted_14, [
264
+ _cache[6] || (_cache[6] = createElementVNode("span", { class: "diff-sign" }, "+", -1)),
265
+ createElementVNode("span", _hoisted_15, toDisplayString(formatValue(record.updateValue)), 1)
266
+ ])
267
+ ])
268
+ ]);
269
+ }), 128))
270
+ ]),
271
+ _: 1
272
+ })
273
+ ])
274
+ ]),
275
+ _: 1
276
+ })) : createCommentVNode("", true)
277
+ ])) : createCommentVNode("", true)
227
278
  ]),
228
279
  _: 2
229
280
  }, [
@@ -254,64 +305,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
254
305
  createElementVNode("i", { class: "iconfont icon-tooltip info-icon" }, null, -1)
255
306
  ])),
256
307
  _: 1
257
- }, 8, ["content"])) : createCommentVNode("", true),
258
- hasDataChange.value ? (openBlock(), createBlock(_component_el_popover, {
259
- key: 5,
260
- placement: "bottom-start",
261
- width: 340,
262
- trigger: "hover",
263
- "show-after": 200,
264
- "popper-class": "data-change-popper"
265
- }, {
266
- reference: withCtx(() => [
267
- createVNode(_component_el_icon, {
268
- class: "data-change-icon",
269
- size: 16
270
- }, {
271
- default: withCtx(() => [
272
- createVNode(unref(warning_filled_default))
273
- ]),
274
- _: 1
275
- })
276
- ]),
277
- default: withCtx(() => [
278
- createElementVNode("div", _hoisted_4, [
279
- createElementVNode("div", _hoisted_5, [
280
- _cache[3] || (_cache[3] = createElementVNode("div", { class: "header-left" }, [
281
- createElementVNode("span", { class: "header-title" }, "数据变更历史")
282
- ], -1)),
283
- createElementVNode("span", _hoisted_6, toDisplayString(fieldChangeRecords.value.length) + " 条记录", 1)
284
- ]),
285
- createVNode(_component_el_scrollbar, { "max-height": "320px" }, {
286
- default: withCtx(() => [
287
- (openBlock(true), createElementBlock(Fragment, null, renderList(fieldChangeRecords.value, (record, idx) => {
288
- return openBlock(), createElementBlock("div", {
289
- key: idx,
290
- class: "diff-block"
291
- }, [
292
- createElementVNode("div", _hoisted_7, [
293
- createElementVNode("span", _hoisted_8, toDisplayString(record.opTime), 1),
294
- createElementVNode("span", _hoisted_9, toDisplayString(record.opName), 1)
295
- ]),
296
- createElementVNode("div", _hoisted_10, [
297
- createElementVNode("div", _hoisted_11, [
298
- _cache[4] || (_cache[4] = createElementVNode("span", { class: "diff-sign" }, "-", -1)),
299
- createElementVNode("span", _hoisted_12, toDisplayString(formatValue(record.originalValue)), 1)
300
- ]),
301
- createElementVNode("div", _hoisted_13, [
302
- _cache[5] || (_cache[5] = createElementVNode("span", { class: "diff-sign" }, "+", -1)),
303
- createElementVNode("span", _hoisted_14, toDisplayString(formatValue(record.updateValue)), 1)
304
- ])
305
- ])
306
- ]);
307
- }), 128))
308
- ]),
309
- _: 1
310
- })
311
- ])
312
- ]),
313
- _: 1
314
- })) : createCommentVNode("", true)
308
+ }, 8, ["content"])) : createCommentVNode("", true)
315
309
  ];
316
310
  }),
317
311
  key: "0"
@@ -320,7 +314,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
320
314
  };
321
315
  }
322
316
  });
323
- const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0535ed33"]]);
317
+ const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4bbb491d"]]);
324
318
  export {
325
319
  _FormItem as default
326
320
  };
@@ -2,13 +2,12 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { getCurrentInstance, inject, computed, createElementBlock, openBlock, createVNode, mergeProps, toHandlers, createSlots, withCtx, createTextVNode } from "vue";
5
+ import { getCurrentInstance, inject, computed, createBlock, openBlock, mergeProps, toHandlers, createSlots, withCtx, createVNode, createTextVNode } from "vue";
6
6
  import { openDialog } from "../../dialog/index.mjs";
7
7
  /* empty css */
8
8
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
9
9
  import { ElInput } from "../../../../../../node_modules/element-plus/es/components/input/index.mjs";
10
10
  import { ElButton } from "../../../../../../node_modules/element-plus/es/components/button/index.mjs";
11
- const _hoisted_1 = { class: "text-field-wrapper" };
12
11
  const _sfc_main = /* @__PURE__ */ Object.assign({
13
12
  inheritAttrs: false
14
13
  }, {
@@ -93,38 +92,36 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
93
92
  return (_ctx, _cache) => {
94
93
  const _component_el_button = ElButton;
95
94
  const _component_el_input = ElInput;
96
- return openBlock(), createElementBlock("div", _hoisted_1, [
97
- createVNode(_component_el_input, mergeProps({
98
- modelValue: inputValue.value,
99
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
100
- }, toHandlers(__props.config.eventHandlers), {
101
- placeholder: __props.placeholder,
102
- disabled: __props.disabled,
103
- onChange: handleChange,
104
- clearable: "",
105
- onClear: handleClear
106
- }), createSlots({ _: 2 }, [
107
- __props.formMode != "query" ? {
108
- name: "append",
109
- fn: withCtx(() => [
110
- createVNode(_component_el_button, {
111
- class: "suffixButton",
112
- onClick: openSuffixDialog
113
- }, {
114
- default: withCtx(() => _cache[1] || (_cache[1] = [
115
- createTextVNode("选择")
116
- ])),
117
- _: 1
118
- })
119
- ]),
120
- key: "0"
121
- } : void 0
122
- ]), 1040, ["modelValue", "placeholder", "disabled"])
123
- ]);
95
+ return openBlock(), createBlock(_component_el_input, mergeProps({
96
+ modelValue: inputValue.value,
97
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
98
+ }, toHandlers(__props.config.eventHandlers), {
99
+ placeholder: __props.placeholder,
100
+ disabled: __props.disabled,
101
+ onChange: handleChange,
102
+ clearable: "",
103
+ onClear: handleClear
104
+ }), createSlots({ _: 2 }, [
105
+ __props.formMode != "query" ? {
106
+ name: "append",
107
+ fn: withCtx(() => [
108
+ createVNode(_component_el_button, {
109
+ class: "suffixButton",
110
+ onClick: openSuffixDialog
111
+ }, {
112
+ default: withCtx(() => _cache[1] || (_cache[1] = [
113
+ createTextVNode("选择")
114
+ ])),
115
+ _: 1
116
+ })
117
+ ]),
118
+ key: "0"
119
+ } : void 0
120
+ ]), 1040, ["modelValue", "placeholder", "disabled"]);
124
121
  };
125
122
  }
126
123
  });
127
- const _RoleSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aacdc4d9"]]);
124
+ const _RoleSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ec160822"]]);
128
125
  export {
129
126
  _RoleSelect as default
130
127
  };
@@ -2,7 +2,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { computed, getCurrentInstance, inject, createElementBlock, openBlock, createVNode, createCommentVNode, mergeProps, toHandlers, createSlots, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode, unref } from "vue";
5
+ import { computed, getCurrentInstance, inject, createElementBlock, openBlock, Fragment, createVNode, createCommentVNode, mergeProps, toHandlers, createSlots, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode, unref } from "vue";
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  /* empty css */
@@ -26,10 +26,9 @@ import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
26
26
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
27
27
  import { ElInput } from "../../../../../../node_modules/element-plus/es/components/input/index.mjs";
28
28
  import { ElButton } from "../../../../../../node_modules/element-plus/es/components/button/index.mjs";
29
- const _hoisted_1 = { class: "text-field-wrapper" };
30
- const _hoisted_2 = { class: "prefix-content" };
31
- const _hoisted_3 = { class: "suffix-content" };
32
- const _hoisted_4 = {
29
+ const _hoisted_1 = { class: "prefix-content" };
30
+ const _hoisted_2 = { class: "suffix-content" };
31
+ const _hoisted_3 = {
33
32
  key: 0,
34
33
  class: "data-masking"
35
34
  };
@@ -210,7 +209,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
210
209
  return (_ctx, _cache) => {
211
210
  const _component_el_button = ElButton;
212
211
  const _component_el_input = ElInput;
213
- return openBlock(), createElementBlock("div", _hoisted_1, [
212
+ return openBlock(), createElementBlock(Fragment, null, [
214
213
  createVNode(_component_el_input, mergeProps({
215
214
  modelValue: inputValue.value,
216
215
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
@@ -226,14 +225,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
226
225
  __props.prefix ? {
227
226
  name: "prefix",
228
227
  fn: withCtx(() => [
229
- createElementVNode("span", _hoisted_2, toDisplayString(__props.prefix), 1)
228
+ createElementVNode("span", _hoisted_1, toDisplayString(__props.prefix), 1)
230
229
  ]),
231
230
  key: "0"
232
231
  } : void 0,
233
232
  __props.suffix ? {
234
233
  name: "suffix",
235
234
  fn: withCtx(() => [
236
- createElementVNode("span", _hoisted_3, toDisplayString(__props.suffix), 1)
235
+ createElementVNode("span", _hoisted_2, toDisplayString(__props.suffix), 1)
237
236
  ]),
238
237
  key: "1"
239
238
  } : void 0,
@@ -262,12 +261,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
262
261
  key: "2"
263
262
  } : void 0
264
263
  ]), 1040, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "show-word-limit"]),
265
- __props.dataMasking ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(maskedValue.value), 1)) : createCommentVNode("", true)
266
- ]);
264
+ __props.dataMasking ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(maskedValue.value), 1)) : createCommentVNode("", true)
265
+ ], 64);
267
266
  };
268
267
  }
269
268
  });
270
- const _Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-78a3c304"]]);
269
+ const _Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-750b92ed"]]);
271
270
  export {
272
271
  _Text as default
273
272
  };
@@ -2,13 +2,12 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { getCurrentInstance, inject, computed, createElementBlock, openBlock, createVNode, mergeProps, toHandlers, createSlots, withCtx, createTextVNode } from "vue";
5
+ import { getCurrentInstance, inject, computed, createBlock, openBlock, mergeProps, toHandlers, createSlots, withCtx, createVNode, createTextVNode } from "vue";
6
6
  import { openDialog } from "../../dialog/index.mjs";
7
7
  /* empty css */
8
8
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
9
9
  import { ElInput } from "../../../../../../node_modules/element-plus/es/components/input/index.mjs";
10
10
  import { ElButton } from "../../../../../../node_modules/element-plus/es/components/button/index.mjs";
11
- const _hoisted_1 = { class: "text-field-wrapper" };
12
11
  const _sfc_main = /* @__PURE__ */ Object.assign({
13
12
  inheritAttrs: false
14
13
  }, {
@@ -93,38 +92,36 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
93
92
  return (_ctx, _cache) => {
94
93
  const _component_el_button = ElButton;
95
94
  const _component_el_input = ElInput;
96
- return openBlock(), createElementBlock("div", _hoisted_1, [
97
- createVNode(_component_el_input, mergeProps({
98
- modelValue: inputValue.value,
99
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
100
- }, toHandlers(__props.config.eventHandlers), {
101
- placeholder: __props.placeholder,
102
- disabled: __props.disabled,
103
- onChange: handleChange,
104
- clearable: "",
105
- onClear: handleClear
106
- }), createSlots({ _: 2 }, [
107
- __props.formMode != "query" ? {
108
- name: "append",
109
- fn: withCtx(() => [
110
- createVNode(_component_el_button, {
111
- class: "suffixButton",
112
- onClick: openSuffixDialog
113
- }, {
114
- default: withCtx(() => _cache[1] || (_cache[1] = [
115
- createTextVNode("选择")
116
- ])),
117
- _: 1
118
- })
119
- ]),
120
- key: "0"
121
- } : void 0
122
- ]), 1040, ["modelValue", "placeholder", "disabled"])
123
- ]);
95
+ return openBlock(), createBlock(_component_el_input, mergeProps({
96
+ modelValue: inputValue.value,
97
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
98
+ }, toHandlers(__props.config.eventHandlers), {
99
+ placeholder: __props.placeholder,
100
+ disabled: __props.disabled,
101
+ onChange: handleChange,
102
+ clearable: "",
103
+ onClear: handleClear
104
+ }), createSlots({ _: 2 }, [
105
+ __props.formMode != "query" ? {
106
+ name: "append",
107
+ fn: withCtx(() => [
108
+ createVNode(_component_el_button, {
109
+ class: "suffixButton",
110
+ onClick: openSuffixDialog
111
+ }, {
112
+ default: withCtx(() => _cache[1] || (_cache[1] = [
113
+ createTextVNode("选择")
114
+ ])),
115
+ _: 1
116
+ })
117
+ ]),
118
+ key: "0"
119
+ } : void 0
120
+ ]), 1040, ["modelValue", "placeholder", "disabled"]);
124
121
  };
125
122
  }
126
123
  });
127
- const _UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-06dfa7f6"]]);
124
+ const _UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e9403912"]]);
128
125
  export {
129
126
  _UserSelect as default
130
127
  };
@@ -703,8 +703,24 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
703
703
  modes: ["current", "all", "empty"],
704
704
  original: false,
705
705
  excludeFields: ["operationCol"],
706
- beforeExportMethod: ({ options }) => {
707
- if (options.mode == "all") ;
706
+ remote: true,
707
+ exportMethod: async ({ options }) => {
708
+ const opt = {
709
+ ...options,
710
+ remote: false
711
+ };
712
+ if (options.mode == "all") {
713
+ const res = await dataSourceManager.value.fetch(
714
+ {
715
+ pageNo: 1,
716
+ pageSize: -1
717
+ },
718
+ true
719
+ );
720
+ const remoteExportData = res.list || res;
721
+ opt.data = remoteExportData;
722
+ }
723
+ tableRef.value.exportData(opt);
708
724
  }
709
725
  });
710
726
  if (props.selectMode == "multiple" || localConfig.value.selectMode == "multiple") {
@@ -1006,7 +1022,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1006
1022
  };
1007
1023
  }
1008
1024
  });
1009
- const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5622719c"]]);
1025
+ const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-79a7b787"]]);
1010
1026
  export {
1011
1027
  _Table as default
1012
1028
  };
@@ -121,7 +121,7 @@ class DataSourceManager {
121
121
  /**
122
122
  * 发起请求
123
123
  */
124
- async fetch(extraParams = {}) {
124
+ async fetch(extraParams = {}, justReturnData = false) {
125
125
  const currentDs = this.getCurrentDataSource();
126
126
  if (!currentDs) {
127
127
  console.warn("未找到当前数据源配置");
@@ -183,20 +183,25 @@ class DataSourceManager {
183
183
  default:
184
184
  response = await this.http.get(url, { params });
185
185
  }
186
+ let tableData = {};
186
187
  if (response && typeof response === "object" && "code" in response) {
187
188
  if (response.code == 0) {
188
189
  const responseData = response.data;
189
190
  const responseMessage = response.message;
190
191
  if (this.pagination) {
191
- this.data.list = (responseData == null ? void 0 : responseData.records) || responseData;
192
- this.data.total = (responseData == null ? void 0 : responseData.total) || (responseData == null ? void 0 : responseData.length);
192
+ tableData.list = (responseData == null ? void 0 : responseData.records) || responseData;
193
+ tableData.total = (responseData == null ? void 0 : responseData.total) || (responseData == null ? void 0 : responseData.length);
193
194
  } else {
194
- this.data = responseData;
195
+ tableData = responseData;
195
196
  }
196
- this.emit("loaded", this.data);
197
+ this.emit("loaded", tableData);
197
198
  if (this.showSuccessMessage && responseMessage) {
198
199
  ElMessage.success(responseMessage);
199
200
  }
201
+ if (justReturnData) {
202
+ return tableData;
203
+ }
204
+ this.data = tableData;
200
205
  return this.data;
201
206
  } else {
202
207
  this.error = response.message || "请求失败";
@@ -206,12 +211,16 @@ class DataSourceManager {
206
211
  } else {
207
212
  const responseData = response;
208
213
  if (this.pagination) {
209
- this.data.list = (responseData == null ? void 0 : responseData.records) || responseData;
210
- this.data.total = (responseData == null ? void 0 : responseData.total) || (responseData == null ? void 0 : responseData.length);
214
+ tableData.list = (responseData == null ? void 0 : responseData.records) || responseData;
215
+ tableData.total = (responseData == null ? void 0 : responseData.total) || (responseData == null ? void 0 : responseData.length);
211
216
  } else {
212
- this.data = responseData;
217
+ tableData = responseData;
218
+ }
219
+ this.emit("loaded", tableData);
220
+ if (justReturnData) {
221
+ return tableData;
213
222
  }
214
- this.emit("loaded", this.data);
223
+ this.data = tableData;
215
224
  return this.data;
216
225
  }
217
226
  } catch (err) {
@@ -7,7 +7,7 @@ function camelToColumn(fieldName) {
7
7
  if (!fieldName) return "";
8
8
  return fieldName.replace(/([A-Z])/g, "_$1").toUpperCase();
9
9
  }
10
- const MOCK_DATA = [
10
+ [
11
11
  {
12
12
  logId: "67edd238e0d1eabf032c456adef6b215",
13
13
  tableName: "LEASE_INIT_APPLY",
@@ -51,12 +51,6 @@ const MOCK_DATA = [
51
51
  runTime: 69
52
52
  }
53
53
  ];
54
- async function mockFetchChanges(params) {
55
- await new Promise((resolve) => setTimeout(resolve, 200));
56
- return MOCK_DATA.filter(
57
- (item) => item.tableName === params.tableName && item.keyName === params.keyName && item.keyValue === params.keyValue
58
- );
59
- }
60
54
  class ImportantDataChangeManager {
61
55
  /**
62
56
  * @param {Array} configList - 配置组 [{ tableName, keyField: { type, value } }]
@@ -96,7 +90,6 @@ class ImportantDataChangeManager {
96
90
  * TODO: 替换 mock API 为真实后端接口
97
91
  */
98
92
  async fetchChanges() {
99
- var _a;
100
93
  const allRecords = [];
101
94
  for (const config of this.configList) {
102
95
  const keyName = this._getKeyName(config.keyField);
@@ -107,13 +100,6 @@ class ImportantDataChangeManager {
107
100
  keyName,
108
101
  keyValue
109
102
  });
110
- debugger;
111
- await mockFetchChanges({
112
- tableName: (_a = config.tableName) == null ? void 0 : _a.toUpperCase(),
113
- keyName,
114
- keyValue
115
- });
116
- debugger;
117
103
  allRecords.push(...records);
118
104
  }
119
105
  this.changeRecords = 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.9";
3
+ const version = "5.6.10";
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.vue.js");
14
+ const ValueSelector = require("./ValueSelector.vue2.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");
@@ -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.vue.js");
9
+ const ValueSelector = require("./ValueSelector.vue2.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.vue.js");
21
+ const ValueSelector = require("../../components/ValueSelector.vue2.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.vue.js");
19
+ const ValueSelector = require("../../components/ValueSelector.vue2.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");