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