@fecp/designer 5.4.82 → 5.4.83
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/DocumentParam.vue.mjs +1 -1
- package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
- package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
- package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
- package/es/designer/src/packages/prod/index.vue.mjs +1 -1
- package/es/designer/src/packages/table/aside/index.mjs +1 -1
- package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
- package/es/designer/src/packages/table/index.vue.mjs +17 -166
- package/es/designer/src/packages/table/property/widgets.vue.mjs +37 -10
- package/es/designer/src/packages/table/queryModule/DynamicModeConfig.vue.mjs +18 -6
- package/es/designer/src/packages/utils/datasource.mjs +2 -3
- package/es/designer.css +231 -210
- package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +2 -3
- package/es/packages/vue/src/components/table/Table.vue.mjs +32 -5
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +6 -5
- package/es/packages/vue/src/components/table/TableFilter.vue.mjs +3 -3
- package/es/packages/vue/src/utils/datasource.mjs +4 -6
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DocumentParam.vue.js +1 -1
- package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
- package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
- package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
- package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
- package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
- package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
- package/lib/designer/src/packages/prod/index.vue.js +1 -1
- package/lib/designer/src/packages/table/aside/index.js +1 -1
- package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
- package/lib/designer/src/packages/table/index.vue.js +24 -173
- package/lib/designer/src/packages/table/property/widgets.vue.js +37 -10
- package/lib/designer/src/packages/table/queryModule/DynamicModeConfig.vue.js +18 -6
- package/lib/designer/src/packages/utils/datasource.js +2 -3
- package/lib/designer.css +231 -210
- package/lib/packages/vue/src/components/forms/h2/H2.vue.js +1 -1
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +2 -3
- package/lib/packages/vue/src/components/table/Table.vue.js +38 -11
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +6 -5
- package/lib/packages/vue/src/components/table/TableFilter.vue.js +3 -3
- package/lib/packages/vue/src/utils/datasource.js +4 -6
- package/package.json +1 -1
|
@@ -310,8 +310,7 @@ const _sfc_main = {
|
|
|
310
310
|
}, createSlots({
|
|
311
311
|
suffix: withCtx(() => [
|
|
312
312
|
createVNode(_component_el_icon, {
|
|
313
|
-
class: "el-input__icon",
|
|
314
|
-
style: { "cursor": "pointer" },
|
|
313
|
+
class: "el-input__icon search",
|
|
315
314
|
onClick: handleSearch
|
|
316
315
|
}, {
|
|
317
316
|
default: withCtx(() => [
|
|
@@ -470,7 +469,7 @@ const _sfc_main = {
|
|
|
470
469
|
};
|
|
471
470
|
}
|
|
472
471
|
};
|
|
473
|
-
const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
472
|
+
const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fe7f988e"]]);
|
|
474
473
|
export {
|
|
475
474
|
DynamicQuery as default
|
|
476
475
|
};
|
|
@@ -7,6 +7,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { ref, getCurrentInstance, computed, reactive, watch, onMounted, onUnmounted, createBlock, openBlock, normalizeClass, withCtx, createElementBlock, createCommentVNode, normalizeStyle, createElementVNode, Fragment, createVNode, unref, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
9
9
|
import "../../../../../node_modules/vxe-table/es/components.mjs";
|
|
10
|
+
import XEUtils from "../../../../../_virtual/index2.mjs";
|
|
10
11
|
/* empty css */
|
|
11
12
|
import { createDataSource } from "../../utils/datasource.mjs";
|
|
12
13
|
import Pagination from "./Pagination.vue.mjs";
|
|
@@ -144,13 +145,26 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
144
145
|
}));
|
|
145
146
|
const dataSourceOptions = ref({});
|
|
146
147
|
const dictionaryOptions = ref({});
|
|
148
|
+
const staticSortData = ref({});
|
|
147
149
|
const displayData = computed(() => {
|
|
148
150
|
var _a;
|
|
149
151
|
if (props.tableData && props.tableData.length > 0) {
|
|
150
|
-
return props.tableData;
|
|
152
|
+
return sortDataWithStaticRules(props.tableData);
|
|
151
153
|
}
|
|
152
|
-
|
|
154
|
+
const data = ((_a = dataSourceManager.value) == null ? void 0 : _a.getData().list) || [];
|
|
155
|
+
return sortDataWithStaticRules(data);
|
|
153
156
|
});
|
|
157
|
+
const sortDataWithStaticRules = (data) => {
|
|
158
|
+
if (!data || data.length === 0) return data;
|
|
159
|
+
const sortFields = Object.keys(staticSortData.value);
|
|
160
|
+
if (sortFields.length === 0) return data;
|
|
161
|
+
const mockList = data.map((item) => ({ ...item }));
|
|
162
|
+
const fields = sortFields.map((field) => ({
|
|
163
|
+
field,
|
|
164
|
+
order: staticSortData.value[field]
|
|
165
|
+
}));
|
|
166
|
+
return XEUtils.orderBy(mockList, fields);
|
|
167
|
+
};
|
|
154
168
|
const isPagination = computed(() => {
|
|
155
169
|
var _a;
|
|
156
170
|
if (props.isSubTable || props.isDialog) {
|
|
@@ -442,9 +456,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
442
456
|
};
|
|
443
457
|
const handleSortChange = ({ property, order }) => {
|
|
444
458
|
const orderValue = order ? order.replace("ending", "") : "";
|
|
445
|
-
|
|
459
|
+
const field = fieldsData.value.find((item) => item.fieldName == property);
|
|
460
|
+
if ((field == null ? void 0 : field.sortRule) == "server") {
|
|
446
461
|
dataSourceManager.value.updateSort(property, orderValue);
|
|
447
462
|
tableDataFetch();
|
|
463
|
+
} else if ((field == null ? void 0 : field.sortRule) == "static") {
|
|
464
|
+
if (orderValue) {
|
|
465
|
+
staticSortData.value[property] = orderValue;
|
|
466
|
+
} else {
|
|
467
|
+
delete staticSortData.value[property];
|
|
468
|
+
}
|
|
448
469
|
}
|
|
449
470
|
emit("sort-change", { field: property, order: orderValue });
|
|
450
471
|
};
|
|
@@ -580,6 +601,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
580
601
|
range: true,
|
|
581
602
|
reserve: true
|
|
582
603
|
});
|
|
604
|
+
const sortConfig = reactive({
|
|
605
|
+
multiple: true,
|
|
606
|
+
chronological: true,
|
|
607
|
+
remote: true
|
|
608
|
+
});
|
|
583
609
|
const handlePersonalize = () => {
|
|
584
610
|
if (tableRef.value) {
|
|
585
611
|
tableRef.value.openCustom();
|
|
@@ -775,6 +801,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
775
801
|
"row-config": rowConfig.value,
|
|
776
802
|
"radio-config": unref(radioConfig),
|
|
777
803
|
"checkbox-config": unref(checkboxConfig),
|
|
804
|
+
"sort-config": unref(sortConfig),
|
|
778
805
|
"show-footer": summaryConfig.value.enabled,
|
|
779
806
|
"footer-data": footerData.value,
|
|
780
807
|
onSortChange: handleSortChange,
|
|
@@ -815,7 +842,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
815
842
|
];
|
|
816
843
|
}),
|
|
817
844
|
_: 3
|
|
818
|
-
}, 8, ["data", "auto-resize", "height", "export-config", "row-config", "radio-config", "checkbox-config", "show-footer", "footer-data"])
|
|
845
|
+
}, 8, ["data", "auto-resize", "height", "export-config", "row-config", "radio-config", "checkbox-config", "sort-config", "show-footer", "footer-data"])
|
|
819
846
|
]),
|
|
820
847
|
isPagination.value ? (openBlock(), createBlock(Pagination, {
|
|
821
848
|
key: 2,
|
|
@@ -831,7 +858,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
831
858
|
};
|
|
832
859
|
}
|
|
833
860
|
});
|
|
834
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
861
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-578f27a6"]]);
|
|
835
862
|
export {
|
|
836
863
|
_Table as default
|
|
837
864
|
};
|
|
@@ -376,11 +376,12 @@ const _sfc_main = {
|
|
|
376
376
|
fixed: field.isFixed ? "left" : void 0,
|
|
377
377
|
align: field.align,
|
|
378
378
|
"header-align": field.headerAlign,
|
|
379
|
-
sortable: field.
|
|
379
|
+
sortable: field.sortRule && field.sortRule != "none",
|
|
380
380
|
resizable: false,
|
|
381
381
|
"show-header-overflow": "",
|
|
382
382
|
"show-footer-overflow": "",
|
|
383
|
-
"show-overflow": field.isOverflowWrap ? false : "title"
|
|
383
|
+
"show-overflow": field.isOverflowWrap ? false : "title",
|
|
384
|
+
"header-class-name": field.sortRule == "server" ? "serverSort" : ""
|
|
384
385
|
}, {
|
|
385
386
|
default: withCtx(({ row }) => [
|
|
386
387
|
renderSlot(_ctx.$slots, `cell-${field.fieldName}`, {
|
|
@@ -391,7 +392,7 @@ const _sfc_main = {
|
|
|
391
392
|
field.isLink ? (openBlock(), createBlock(_component_el_link, {
|
|
392
393
|
key: 1,
|
|
393
394
|
type: "primary",
|
|
394
|
-
underline:
|
|
395
|
+
underline: "never",
|
|
395
396
|
onClick: ($event) => handleButtonClick(row, field, field.linkConfig)
|
|
396
397
|
}, {
|
|
397
398
|
default: withCtx(() => [
|
|
@@ -415,7 +416,7 @@ const _sfc_main = {
|
|
|
415
416
|
], true)
|
|
416
417
|
]),
|
|
417
418
|
_: 2
|
|
418
|
-
}, 1032, ["field", "title", "width", "min-width", "fixed", "align", "header-align", "sortable", "show-overflow"]);
|
|
419
|
+
}, 1032, ["field", "title", "width", "min-width", "fixed", "align", "header-align", "sortable", "show-overflow", "header-class-name"]);
|
|
419
420
|
}), 128)),
|
|
420
421
|
!__props.readonly && shouldShowOptColumn.value ? (openBlock(), createBlock(unref(VxeColumn), {
|
|
421
422
|
key: 3,
|
|
@@ -446,7 +447,7 @@ const _sfc_main = {
|
|
|
446
447
|
};
|
|
447
448
|
}
|
|
448
449
|
};
|
|
449
|
-
const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
450
|
+
const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5138d230"]]);
|
|
450
451
|
export {
|
|
451
452
|
TableColumn as default
|
|
452
453
|
};
|
|
@@ -46,7 +46,7 @@ const _sfc_main = {
|
|
|
46
46
|
emits: ["search", "reset"],
|
|
47
47
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
48
48
|
useCssVars((_ctx) => ({
|
|
49
|
-
"
|
|
49
|
+
"0b02222c": `${config.value.collapseRows * 90}px`
|
|
50
50
|
}));
|
|
51
51
|
const props = __props;
|
|
52
52
|
const emit = __emit;
|
|
@@ -240,7 +240,7 @@ const _sfc_main = {
|
|
|
240
240
|
onClick: handleSearch
|
|
241
241
|
}, {
|
|
242
242
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
243
|
-
createTextVNode("
|
|
243
|
+
createTextVNode("查询")
|
|
244
244
|
])),
|
|
245
245
|
_: 1
|
|
246
246
|
}),
|
|
@@ -282,7 +282,7 @@ const _sfc_main = {
|
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
|
-
const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
285
|
+
const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b60de83e"]]);
|
|
286
286
|
export {
|
|
287
287
|
TableFilter as default
|
|
288
288
|
};
|
|
@@ -255,19 +255,17 @@ class DataSourceManager {
|
|
|
255
255
|
* 更新排序
|
|
256
256
|
*/
|
|
257
257
|
updateSort(field, order) {
|
|
258
|
-
const existingIndex = this.sortRules.findIndex(
|
|
259
|
-
|
|
260
|
-
);
|
|
258
|
+
const existingIndex = this.sortRules.findIndex((rule) => rule.field === field);
|
|
259
|
+
debugger;
|
|
261
260
|
if (!order) {
|
|
262
261
|
if (existingIndex > -1) {
|
|
263
262
|
this.sortRules.splice(existingIndex, 1);
|
|
264
263
|
}
|
|
265
264
|
} else {
|
|
266
265
|
if (existingIndex > -1) {
|
|
267
|
-
this.sortRules
|
|
268
|
-
} else {
|
|
269
|
-
this.sortRules.push({ field, order });
|
|
266
|
+
this.sortRules.splice(existingIndex, 1);
|
|
270
267
|
}
|
|
268
|
+
this.sortRules.unshift({ field, order });
|
|
271
269
|
}
|
|
272
270
|
}
|
|
273
271
|
/**
|
|
@@ -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.
|
|
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");
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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
|
require("../../axios/config.js");
|
|
37
37
|
require("../../../../_virtual/FileSaver.min.js");
|
|
38
38
|
require("../../../../_virtual/index.js");
|
|
@@ -86,7 +86,7 @@ const widgets = require("../table/property/widgets.vue.js");
|
|
|
86
86
|
require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
|
|
87
87
|
;/* empty css */
|
|
88
88
|
;/* empty css */
|
|
89
|
-
;/* empty css
|
|
89
|
+
;/* empty css */
|
|
90
90
|
;/* empty css */
|
|
91
91
|
;/* empty css */
|
|
92
92
|
;/* empty css */
|
|
@@ -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.
|
|
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");
|
|
@@ -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.
|
|
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");
|
|
@@ -19,7 +19,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
|
|
|
19
19
|
const vue = require("vue");
|
|
20
20
|
const common = require("../../utils/common.js");
|
|
21
21
|
require("../../utils/eventBus.js");
|
|
22
|
-
const ValueSelector = require("../../../components/ValueSelector.
|
|
22
|
+
const ValueSelector = require("../../../components/ValueSelector.vue.js");
|
|
23
23
|
const index = require("../../../api/index.js");
|
|
24
24
|
const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
|
|
25
25
|
;/* 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.
|
|
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");
|
|
@@ -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.
|
|
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");
|