@fecp/designer 5.6.9 → 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.
- package/es/designer/package.json.mjs +1 -1
- package/es/designer/src/components/FieldSetMapping.vue2.mjs +11 -3
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +2 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/eventFlow/dialog/action/TableSelection.vue2.mjs +64 -0
- package/es/designer/src/packages/eventFlow/dialog/action/config.mjs +10 -0
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -0
- package/es/designer.css +153 -123
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +13 -10
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +83 -89
- package/es/packages/vue/src/components/forms/roleSelect/RoleSelect.vue.mjs +28 -31
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +10 -11
- package/es/packages/vue/src/components/forms/userSelect/UserSelect.vue.mjs +28 -31
- package/es/packages/vue/src/components/table/Table.vue.mjs +23 -3
- package/es/packages/vue/src/utils/datasource.mjs +18 -9
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +43 -0
- package/es/packages/vue/src/utils/importantDataChange.mjs +1 -15
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/FieldSetMapping.vue2.js +11 -3
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +2 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/eventFlow/dialog/action/TableSelection.vue2.js +64 -0
- package/lib/designer/src/packages/eventFlow/dialog/action/config.js +10 -0
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer/src/packages/table/headerBtn.vue.js +1 -0
- package/lib/designer.css +153 -123
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +12 -9
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +88 -94
- package/lib/packages/vue/src/components/forms/roleSelect/RoleSelect.vue.js +27 -30
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +9 -10
- package/lib/packages/vue/src/components/forms/userSelect/UserSelect.vue.js +27 -30
- package/lib/packages/vue/src/components/table/Table.vue.js +23 -3
- package/lib/packages/vue/src/utils/datasource.js +18 -9
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +43 -0
- package/lib/packages/vue/src/utils/importantDataChange.js +1 -15
- package/package.json +1 -1
|
@@ -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,
|
|
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
|
|
349
|
+
var _a2;
|
|
347
350
|
return [
|
|
348
351
|
createElementVNode("div", _hoisted_1, [
|
|
349
|
-
createElementVNode("span", null, toDisplayString(((
|
|
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
|
|
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
|
-
((
|
|
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
|
|
392
|
+
var _a2, _b, _c, _d, _e;
|
|
390
393
|
return [
|
|
391
394
|
createElementVNode("div", {
|
|
392
|
-
class: normalizeClass(["dialog-content-wrapper", "fec-dialog-" + ((
|
|
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-
|
|
444
|
+
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b0f2231"]]);
|
|
442
445
|
export {
|
|
443
446
|
DialogRenderer as default
|
|
444
447
|
};
|
|
@@ -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,
|
|
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 {
|
|
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 = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
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(),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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-
|
|
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,
|
|
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(),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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-
|
|
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: "
|
|
30
|
-
const _hoisted_2 = { class: "
|
|
31
|
-
const _hoisted_3 = {
|
|
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(
|
|
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",
|
|
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",
|
|
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",
|
|
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-
|
|
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,
|
|
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(),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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-
|
|
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
|
-
|
|
707
|
-
|
|
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") {
|
|
@@ -871,6 +887,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
871
887
|
const setFormData = (data) => {
|
|
872
888
|
Object.assign(hiddenFormData.value, data);
|
|
873
889
|
};
|
|
890
|
+
const getFormData = () => {
|
|
891
|
+
return hiddenFormData.value;
|
|
892
|
+
};
|
|
874
893
|
__expose({
|
|
875
894
|
tableRef,
|
|
876
895
|
refresh,
|
|
@@ -881,6 +900,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
881
900
|
exportData: handleExport,
|
|
882
901
|
localConfig,
|
|
883
902
|
setFormData,
|
|
903
|
+
getFormData,
|
|
884
904
|
handleCustomBtnClick
|
|
885
905
|
});
|
|
886
906
|
return (_ctx, _cache) => {
|
|
@@ -1006,7 +1026,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1006
1026
|
};
|
|
1007
1027
|
}
|
|
1008
1028
|
});
|
|
1009
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1029
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-28ff595c"]]);
|
|
1010
1030
|
export {
|
|
1011
1031
|
_Table as default
|
|
1012
1032
|
};
|
|
@@ -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
|
-
|
|
192
|
-
|
|
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
|
-
|
|
195
|
+
tableData = responseData;
|
|
195
196
|
}
|
|
196
|
-
this.emit("loaded",
|
|
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
|
-
|
|
210
|
-
|
|
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
|
-
|
|
217
|
+
tableData = responseData;
|
|
218
|
+
}
|
|
219
|
+
this.emit("loaded", tableData);
|
|
220
|
+
if (justReturnData) {
|
|
221
|
+
return tableData;
|
|
213
222
|
}
|
|
214
|
-
this.
|
|
223
|
+
this.data = tableData;
|
|
215
224
|
return this.data;
|
|
216
225
|
}
|
|
217
226
|
} catch (err) {
|