super-page-runtime 2.3.37-sit2 → 2.3.37-sit4
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/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +47 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +3 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +46 -44
- package/dist/es/components/runtime/utils/events/event-util.js +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +35 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +600 -588
- package/dist/es/components/runtime/utils/events/validator-util.js +154 -150
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +125 -120
- package/dist/es/components/runtime/utils/page-store.js +21 -21
- package/dist/es/components/runtime/utils/table-utils.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +26 -25
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +100 -95
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +67 -67
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +27 -23
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +3 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +22 -20
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +123 -120
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -38
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +7 -6
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +9 -9
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +36 -35
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +56 -55
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +14 -12
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +28 -27
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +25 -23
- package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +5 -4
- package/dist/es/components/runtime/views/super-page.vue2.js +191 -190
- package/dist/es/style.css +71 -71
- package/package.json +2 -2
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as r, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as o, computed as r, onMounted as n, watch as t, resolveComponent as i, createElementBlock as a, openBlock as u, normalizeClass as l, normalizeStyle as p, unref as s, withDirectives as c, createVNode as g, createBlock as f, createCommentVNode as m, vShow as d, withCtx as h, Fragment as v, renderList as y, h as C } from "vue";
|
|
2
2
|
import b from "../common/common-chart-header.vue.js";
|
|
3
3
|
import { getSizeConfig as x, getChartDatasFromPage as O, getValueFromVariable as S, caculateShowCondition as w, isPromise as E, setValueForVariableName as j, updateChartDatasourcesByComponent as $ } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleChartEvent as F, getCustomFunc as k } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import N from "./group-column.vue.js";
|
|
6
6
|
import I from "./normal-column.vue.js";
|
|
7
7
|
import R from "./table-pageination.vue.js";
|
|
8
|
-
import { getSummaryTitleColumn as T, getSummaryDataColumn as H, rowDataToColumn as D, getColumnToRowTableConfig as J, colDataToRow as U, computeFormula as
|
|
8
|
+
import { getSummaryTitleColumn as T, getSummaryDataColumn as H, rowDataToColumn as D, getColumnToRowTableConfig as J, colDataToRow as U, computeFormula as V, getNewColumnConfig as _, summaryStatistics as z, replacePlaceholders as A, getIndexColumn as P, getHeaderCellStyleUtil as G, getRowStyleUtil as K, getCellStyleUtil as L, mergeRowByProperty as q, formatColContent as B } from "./chart-table-util.js";
|
|
9
9
|
import { deepCopy as M } from "../../../../utils/common-util.js";
|
|
10
10
|
const Q = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: Q2 }) {
|
|
11
11
|
var _a;
|
|
12
|
-
const W = e2, X = W.configure.runtime ? W.configure.runtime : {}, Y = X.style, Z = X.class, ee = X.dataConfig, oe = X.headerInfo ? X.headerInfo : {}, re = o(null),
|
|
12
|
+
const W = e2, X = W.configure.runtime ? W.configure.runtime : {}, Y = X.style, Z = X.class, ee = X.dataConfig, oe = X.headerInfo ? X.headerInfo : {}, re = o(null), ne = o(X.props.isEnableGroupHeader), te = o([]), ie = o([]), ae = o([]), ue = o([]), le = o({}), pe = o(false), se = o({}), ce = o({}), ge = o({}), fe = [], me = o({}), de = o({}), he = o(null), ve = r(() => ne.value ? ue.value.filter((e3) => !e3.isLeaf || De(le[e3.columnUuid])) : ie.value.filter((e3) => De(e3))), ye = o(0);
|
|
13
13
|
let Ce = [];
|
|
14
14
|
if (!W.configure.props.modelCustom) {
|
|
15
|
-
if (
|
|
15
|
+
if (ne.value) {
|
|
16
16
|
const e3 = [];
|
|
17
17
|
W.configure.props.groupHeaders.forEach((o2) => {
|
|
18
18
|
o2.parentUuid || e3.push(o2);
|
|
19
19
|
}), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), ue.value = e3, function() {
|
|
20
20
|
if (W.configure.props.base.showIndex) {
|
|
21
21
|
ue.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
|
|
22
|
-
const e4 =
|
|
23
|
-
e4 && (
|
|
22
|
+
const e4 = P();
|
|
23
|
+
e4 && (le.value.$index = e4);
|
|
24
24
|
}
|
|
25
25
|
}();
|
|
26
26
|
} else ie.value = W.configure.items;
|
|
27
27
|
(_a = W.configure.items) == null ? void 0 : _a.forEach((e3) => {
|
|
28
|
-
|
|
28
|
+
le.value[e3.uuid] = e3, Object.keys(e3.style).length > 0 && (me.value[e3.props.base.prop] = { cellStyle: e3.style, titleStyle: e3.titleStyle }), e3.formula && "" !== e3.formula.trim() && (de.value[e3.props.base.prop] = e3.formula);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
pe.value = W.configure.props.base.showSummary, (pe.value || W.configure.props.highOrder.groupField && W.configure.props.highOrder.groupField.length > 0) && (se.value = T(W.configure), pe.value && (ce.value = H(W.configure, "table")), W.configure.props.highOrder.groupField && W.configure.props.highOrder.groupField.length > 0 && (ge.value = H(W.configure, "group")));
|
|
32
32
|
let be = 300, xe = x(W.pageContext, W.configure);
|
|
33
33
|
function Oe(e3) {
|
|
34
|
-
if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return
|
|
35
|
-
const o2 =
|
|
34
|
+
if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return e3.hasRender = true, void console.log("重复更新!", e3);
|
|
35
|
+
const o2 = ne.value ? ue.value : ve;
|
|
36
36
|
F(W.pageContext, W.configure, "beforeUpdateChart", o2, { resultData: e3 }), function(e4) {
|
|
37
37
|
var _a2;
|
|
38
38
|
Je(e4), "service" === W.configure.props.dataOrigin.dataSource && e4.result ? Ce = e4.result[W.configure.props.dataOrigin.service.serviceDataField] : "variable" === W.configure.props.dataOrigin.dataSource && (Ce = S(W.pageContext.entity, W.configure.props.dataOrigin.variable));
|
|
@@ -41,9 +41,9 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
41
41
|
if ("fix" === W.configure.props.dataOrigin.itemNumSource) o3 = W.configure.props.dataOrigin.itemNumFix;
|
|
42
42
|
else if ("variable" === W.configure.props.dataOrigin.itemNumSource) {
|
|
43
43
|
o3 = Number(S(W.pageContext.entity, W.configure.props.dataOrigin.itemNumVariable));
|
|
44
|
-
const r2 = W.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/),
|
|
45
|
-
|
|
46
|
-
Se(o4, i2, e4);
|
|
44
|
+
const r2 = W.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), n2 = r2 ? r2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(Ce));
|
|
45
|
+
t(() => n2.reduce((e5, o4) => e5[o4], W.pageContext.entity), (o4) => {
|
|
46
|
+
console.log("统计表格监听数据变量的变化 newVal:", o4), Se(o4, i2, e4);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
Se(o3, Ce, e4);
|
|
@@ -53,21 +53,21 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
53
53
|
function Se(e3, o2, r2) {
|
|
54
54
|
var _a2;
|
|
55
55
|
if (e3 && e3 < o2.length) {
|
|
56
|
-
let
|
|
57
|
-
if (((_a2 = W.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0)
|
|
56
|
+
let n2 = [];
|
|
57
|
+
if (((_a2 = W.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0) n2 = W.configure.props.dataOrigin.limitCountColumns;
|
|
58
58
|
else {
|
|
59
59
|
ie.value.filter((e4) => "number" === e4.props.base.dataType).forEach((e4) => {
|
|
60
|
-
|
|
60
|
+
n2.push(e4.props.base.prop);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
if ((
|
|
64
|
-
const r3 = o2.slice(e3 - 1, o2.length),
|
|
63
|
+
if ((n2 == null ? void 0 : n2.length) > 0) {
|
|
64
|
+
const r3 = o2.slice(e3 - 1, o2.length), t2 = {};
|
|
65
65
|
let i2 = ie.value[0].props.base.prop;
|
|
66
66
|
"$index" === i2 && (i2 = ie.value[1].props.base.prop), r3.forEach((e4) => {
|
|
67
|
-
|
|
68
|
-
void 0 ===
|
|
67
|
+
n2.forEach((o3) => {
|
|
68
|
+
void 0 === t2[o3] && (t2[o3] = 0), t2[o3] = t2[o3] + e4[o3];
|
|
69
69
|
});
|
|
70
|
-
}), o2.length > e3 && (o2 = o2.slice(0, e3 - 1)),
|
|
70
|
+
}), o2.length > e3 && (o2 = o2.slice(0, e3 - 1)), t2[i2] = W.configure.props.dataOrigin.overItemAlias, o2.push(t2);
|
|
71
71
|
}
|
|
72
72
|
we(o2, r2);
|
|
73
73
|
} else we(o2, r2);
|
|
@@ -75,32 +75,32 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
75
75
|
function we(e3, o2) {
|
|
76
76
|
var _a2, _b, _c, _d, _e, _f, _g;
|
|
77
77
|
if (Ee("rowToColumn")) {
|
|
78
|
-
if (ae.value = JSON.parse(JSON.stringify(W.configure.items)), e3 = D(e3, W.configure, ae.value), !
|
|
78
|
+
if (ae.value = JSON.parse(JSON.stringify(W.configure.items)), e3 = D(e3, W.configure, ae.value), !ne.value) {
|
|
79
79
|
const o3 = function(e4, o4, r2) {
|
|
80
|
-
const
|
|
80
|
+
const n2 = W.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = W.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
|
|
81
81
|
if ((!i2 || 0 === i2.length) && r2.length > 0) {
|
|
82
82
|
const e5 = [];
|
|
83
|
-
return e5.push(
|
|
83
|
+
return e5.push(_("$GroupColumn", W.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(r2[0]).forEach((o5, r3) => {
|
|
84
84
|
if ("$GroupColumn" === o5) return;
|
|
85
|
-
const
|
|
86
|
-
e5.push(
|
|
85
|
+
const n3 = _(o5, o5, r3 + 1, "string");
|
|
86
|
+
e5.push(n3);
|
|
87
87
|
}), e5;
|
|
88
88
|
}
|
|
89
89
|
{
|
|
90
|
-
const e5 = [...o4].filter((e6) => !
|
|
90
|
+
const e5 = [...o4].filter((e6) => !n2.includes(e6.props.base.prop) && !t2.includes(e6.props.base.prop)), i3 = new RegExp(`(${t2.join("|")})$`), a2 = /* @__PURE__ */ new Set();
|
|
91
91
|
return r2.forEach((e6) => {
|
|
92
92
|
Object.keys(e6).forEach((e7) => {
|
|
93
|
-
if (
|
|
93
|
+
if (t2.some((o5) => e7.includes(o5))) {
|
|
94
94
|
const o5 = e7.split(i3)[0];
|
|
95
95
|
a2.add(o5);
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
}), a2.forEach((o5) => {
|
|
99
|
-
|
|
99
|
+
t2.forEach((n3) => {
|
|
100
100
|
var _a3;
|
|
101
|
-
let
|
|
102
|
-
null ==
|
|
103
|
-
const i4 =
|
|
101
|
+
let t3 = (_a3 = ie.value.find((e6) => e6.props.base.prop === n3)) == null ? void 0 : _a3.props.base.name;
|
|
102
|
+
null == t3 && (t3 = "");
|
|
103
|
+
const i4 = _(`${o5}${n3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof r2[0][`${o5}${n3}`] ? "number" : "string");
|
|
104
104
|
e5.push(i4);
|
|
105
105
|
});
|
|
106
106
|
}), e5;
|
|
@@ -108,7 +108,7 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
108
108
|
}(W.configure, ae.value, e3);
|
|
109
109
|
ie.value = o3;
|
|
110
110
|
}
|
|
111
|
-
} else Ee("columnToRow") && (
|
|
111
|
+
} else Ee("columnToRow") && (ne.value || (ie.value = J(W.configure)), e3 = U(e3, W.configure));
|
|
112
112
|
if ((_b = (_a2 = W.configure.props) == null ? void 0 : _a2.dataOrigin) == null ? void 0 : _b.dataFormatting) {
|
|
113
113
|
const o3 = k(W.pageContext, W.configure.props.dataOrigin.dataFormatting);
|
|
114
114
|
if (o3) {
|
|
@@ -116,14 +116,14 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
116
116
|
r2 && (e3 = r2);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
if (Object.keys(de.value).length > 0 && e3 && e3.length > 0 &&
|
|
120
|
-
"frontend" === W.configure.pageination.type ? (ye.value = Ce.length, Te(1, W.configure.pageination.pageSize)) : "backend" === W.configure.pageination.type && (
|
|
121
|
-
}(o2) :
|
|
119
|
+
if (Object.keys(de.value).length > 0 && e3 && e3.length > 0 && V(de.value, e3, W.pageContext.entity), ((_c = W.configure.pageination) == null ? void 0 : _c.enable) ? function(e4) {
|
|
120
|
+
"frontend" === W.configure.pageination.type ? (ye.value = Ce.length, Te(1, W.configure.pageination.pageSize)) : "backend" === W.configure.pageination.type && (te.value = Ce, W.configure.pageination.totalFrom && (ye.value = e4.result[W.configure.pageination.totalFrom]));
|
|
121
|
+
}(o2) : te.value = e3, ((_e = (_d = W.configure.props) == null ? void 0 : _d.highOrder) == null ? void 0 : _e.groupField) && ((_g = (_f = W.configure.props) == null ? void 0 : _f.highOrder) == null ? void 0 : _g.groupField.length) > 0) {
|
|
122
122
|
const e4 = W.configure.props.highOrder.groupField;
|
|
123
|
-
|
|
123
|
+
te.value = function(e5, o3) {
|
|
124
124
|
var _a3, _b2;
|
|
125
125
|
if (0 === ge.value.length) return e5;
|
|
126
|
-
const r2 = [],
|
|
126
|
+
const r2 = [], n2 = (_a3 = W.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), t2 = (_b2 = W.configure.items) == null ? void 0 : _b2.filter((e6) => true === e6.props.base.groupSummary), i2 = {};
|
|
127
127
|
e5.forEach((e6) => {
|
|
128
128
|
const r3 = o3.map((o4) => e6[o4]).join("|");
|
|
129
129
|
i2[r3] || (i2[r3] = []), i2[r3].push(e6);
|
|
@@ -131,20 +131,20 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
131
131
|
const a2 = Object.values(i2);
|
|
132
132
|
for (let e6 = 0; e6 < a2.length; e6++) {
|
|
133
133
|
const o4 = a2[e6], i3 = {};
|
|
134
|
-
|
|
135
|
-
const r3 = e7.props.base.prop,
|
|
136
|
-
i3[r3] =
|
|
137
|
-
}), r2.push(...o4),
|
|
134
|
+
t2 == null ? void 0 : t2.forEach((e7) => {
|
|
135
|
+
const r3 = e7.props.base.prop, n3 = z(ge.value[r3], o4, r3, W.pageContext);
|
|
136
|
+
i3[r3] = n3;
|
|
137
|
+
}), r2.push(...o4), n2 == null ? void 0 : n2.forEach((e7) => {
|
|
138
138
|
const r3 = e7.props.base.prop;
|
|
139
|
-
i3[r3] =
|
|
139
|
+
i3[r3] = A(e7.props.base.summaryTitle, o4[0]);
|
|
140
140
|
}), r2.push(i3), fe.push(r2.length - 1);
|
|
141
141
|
}
|
|
142
142
|
return r2;
|
|
143
|
-
}(
|
|
143
|
+
}(te.value, e4);
|
|
144
144
|
}
|
|
145
145
|
!function(e4) {
|
|
146
146
|
if (W.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
|
|
147
|
-
const o3 =
|
|
147
|
+
const o3 = P();
|
|
148
148
|
o3 && e4.unshift(o3);
|
|
149
149
|
}
|
|
150
150
|
}(ie.value);
|
|
@@ -163,14 +163,14 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
163
163
|
const o2 = me.value[e3.column.property] ? me.value[e3.column.property].cellStyle : null;
|
|
164
164
|
return L(e3, o2, W);
|
|
165
165
|
}
|
|
166
|
-
xe && xe.fixHeight && (be = xe.fixHeight), xe && xe.maxHeight && (be = xe.maxHeight), be && (be = Number(be + "")),
|
|
166
|
+
xe && xe.fixHeight && (be = xe.fixHeight), xe && xe.maxHeight && (be = xe.maxHeight), be && (be = Number(be + "")), n(() => {
|
|
167
167
|
const e3 = O(W.pageContext, W.configure);
|
|
168
168
|
if (e3) Oe(e3);
|
|
169
169
|
else if ("variable" === W.configure.props.dataOrigin.dataSource) {
|
|
170
170
|
!function() {
|
|
171
171
|
const e4 = W.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o3 = e4 ? e4[1].split(".") : [];
|
|
172
|
-
|
|
173
|
-
e5 ? Oe(JSON.parse(JSON.stringify(e5))) : (
|
|
172
|
+
t(() => o3.reduce((e5, o4) => e5[o4], W.pageContext.entity), (e5) => {
|
|
173
|
+
console.log("统计表格监听数据变量的变化 newVal:", e5), e5 ? Oe(JSON.parse(JSON.stringify(e5))) : (te.value = [], console.log("重置统计表格列配置"), W.configure.props.modelCustom ? Je(null) : ne.value ? ue.value = W.configure.props.groupHeaders : ie.value = W.configure.items);
|
|
174
174
|
});
|
|
175
175
|
}();
|
|
176
176
|
const o2 = S(W.pageContext.entity, W.configure.props.dataOrigin.variable);
|
|
@@ -178,26 +178,26 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
const ke = (e3) => {
|
|
181
|
-
const { columns: o2, data: r2 } = e3,
|
|
181
|
+
const { columns: o2, data: r2 } = e3, n2 = [];
|
|
182
182
|
return o2.forEach((e4, o3) => {
|
|
183
183
|
if (se.value[e4.property]) {
|
|
184
|
-
const
|
|
185
|
-
|
|
184
|
+
const t2 = se.value[e4.property].label;
|
|
185
|
+
n2[o3] = C("div", {}, [A(t2, r2)]);
|
|
186
186
|
} else if (ce.value[e4.property]) {
|
|
187
|
-
const
|
|
188
|
-
|
|
187
|
+
const t2 = r2.filter((e5, o4) => !fe.includes(o4));
|
|
188
|
+
n2[o3] = z(ce.value[e4.property], t2, e4.property, W.pageContext);
|
|
189
189
|
}
|
|
190
|
-
}),
|
|
190
|
+
}), n2;
|
|
191
191
|
};
|
|
192
|
-
function Ne({ row: e3, column: o2, rowIndex: r2, columnIndex:
|
|
193
|
-
const
|
|
192
|
+
function Ne({ row: e3, column: o2, rowIndex: r2, columnIndex: n2 }) {
|
|
193
|
+
const t2 = o2.property, i2 = W.configure.props.highOrder;
|
|
194
194
|
if (i2.scopeFunc) {
|
|
195
|
-
const
|
|
196
|
-
if (
|
|
197
|
-
const i3 =
|
|
195
|
+
const t3 = k(W.pageContext, i2.scopeFunc);
|
|
196
|
+
if (t3) {
|
|
197
|
+
const i3 = t3.apply(t3, [{ tableData: te.value, row: e3, column: o2, rowIndex: r2, columnIndex: n2 }]);
|
|
198
198
|
if (i3) return i3;
|
|
199
199
|
}
|
|
200
|
-
} else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(
|
|
200
|
+
} else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(t2)) return q(e3, o2, r2, t2, te.value);
|
|
201
201
|
}
|
|
202
202
|
function Ie(e3, o2) {
|
|
203
203
|
"frontend" === W.configure.pageination.type ? Te(e3, o2) : He(e3, o2);
|
|
@@ -206,7 +206,7 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
206
206
|
"frontend" === W.configure.pageination.type ? Te(e3, o2) : He(e3, o2);
|
|
207
207
|
}
|
|
208
208
|
function Te(e3, o2) {
|
|
209
|
-
Ce && (
|
|
209
|
+
Ce && (te.value = Ce.slice((e3 - 1) * o2, e3 * o2));
|
|
210
210
|
}
|
|
211
211
|
function He(e3, o2) {
|
|
212
212
|
W.configure.pageination.currentPageSet && j(W.pageContext.entity, W.configure.pageination.currentPageSet, e3), W.configure.pageination.pageSizeSet && j(W.pageContext.entity, W.configure.pageination.pageSizeSet, o2), $(W.pageContext, W.configure.uuid);
|
|
@@ -228,19 +228,19 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
228
228
|
}
|
|
229
229
|
function Ue(e3, o2, r2) {
|
|
230
230
|
e3.forEach((e4) => {
|
|
231
|
-
const
|
|
232
|
-
let i2 = { name:
|
|
231
|
+
const n2 = e4.props.base.prop, t2 = e4.props.base.name;
|
|
232
|
+
let i2 = { name: n2, label: t2, i18nKey: t2 };
|
|
233
233
|
e4.children && e4.children.length > 0 && (i2.children = [], Ue(e4.children, i2.children, r2)), e4.props.format && e4.props.format.type && r2.push(e4), o2.push(i2);
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
return Q2({ updateChartDatas: Oe, exportChart: function() {
|
|
237
237
|
let e3 = [], o2 = [];
|
|
238
|
-
o2 =
|
|
238
|
+
o2 = ne.value ? W.configure.props.groupHeaders : ve.value;
|
|
239
239
|
let r2 = [];
|
|
240
240
|
Ue(o2, e3, r2);
|
|
241
241
|
return { isTable: true, dataArr: function(e4) {
|
|
242
242
|
let o3 = [];
|
|
243
|
-
|
|
243
|
+
te.value && (o3 = M(te.value), o3.forEach((o4) => {
|
|
244
244
|
e4.forEach((e5) => {
|
|
245
245
|
const r3 = B(o4, e5.props.format, e5, W.pageContext, W.configure);
|
|
246
246
|
o4[e5.props.base.prop] = r3;
|
|
@@ -249,8 +249,8 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
249
249
|
return o3;
|
|
250
250
|
}(r2), columns: e3, title: oe == null ? void 0 : oe.title };
|
|
251
251
|
} }), (o2, r2) => {
|
|
252
|
-
const
|
|
253
|
-
return u(), a("div", { style:
|
|
252
|
+
const n2 = i("el-table");
|
|
253
|
+
return u(), a("div", { style: p(s(Y)), class: l([s(Z), "amb-widget-chart amb-widget-flex amb-chart-table"]), ref: "thisRef" }, [c(g(b, { ref_key: "headerRef", ref: re, headerInfo: s(oe), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[d, s(oe).showHeader || e2.pageContext.showHomepageSearch]]), g(n2, { ref_key: "gridRef", ref: he, data: te.value, style: { width: "100%" }, "max-height": s(be), "header-cell-style": je, "row-style": $e, "cell-style": Fe, "show-summary": pe.value, stripe: e2.configure.props.base.stripe, "summary-method": ke, "span-method": Ne }, { default: h(() => [ne.value ? (u(true), a(v, { key: 0 }, y(ue.value, (o3, r3) => (u(), a(v, { key: r3 }, [o3.isLeaf ? (u(), f(I, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: le.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : (u(), f(N, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: le.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (u(true), a(v, { key: 1 }, y(ve.value, (o3, r3) => (u(), f(I, { key: r3, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"]))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (u(), f(R, { key: 0, configure: e2.configure, "table-data": te.value, total: ye.value, onPageChange: Ie, onPageSizeChange: Re }, null, 8, ["configure", "table-data", "total"])) : m("", true)], 6);
|
|
254
254
|
};
|
|
255
255
|
} });
|
|
256
256
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, createBlock as n, openBlock as
|
|
2
|
-
import { getRuntimeComponentByName as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
1
|
+
import { defineComponent as e, ref as o, createBlock as n, openBlock as r, resolveDynamicComponent as t, mergeProps as l, nextTick as u, markRaw as a } from "vue";
|
|
2
|
+
import { getRuntimeComponentByName as c } from "../../../utils/assemblys-config.js";
|
|
3
|
+
import s from "../error-render.vue.js";
|
|
4
|
+
const m = e({ __name: "event-call-component", setup(e2, { expose: m2 }) {
|
|
5
|
+
const p = o(null), v = o({}), f = () => {
|
|
6
|
+
p.value = null, v.value = {};
|
|
7
7
|
};
|
|
8
|
-
return
|
|
8
|
+
return m2({ renderComponent: async function(e3, o2) {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
const n2 =
|
|
12
|
-
|
|
10
|
+
p.value = null, v.value = o2 || {}, await u();
|
|
11
|
+
const n2 = c(e3);
|
|
12
|
+
p.value = !n2 || "object" != typeof n2 && "function" != typeof n2 ? s : a(n2);
|
|
13
13
|
} catch (e4) {
|
|
14
|
-
|
|
14
|
+
console.error("event-call-component renderedComponent error", e4), p.value = s;
|
|
15
15
|
}
|
|
16
|
-
} }), (e3, o2) => (
|
|
16
|
+
} }), (e3, o2) => (r(), n(t(p.value), l(v.value, { onDestroy: f }), null, 16));
|
|
17
17
|
} });
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
m as default
|
|
20
20
|
};
|
|
@@ -1,34 +1,38 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as
|
|
2
|
-
import { packageTemplateFiles as
|
|
3
|
-
import { ElMessage as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, resolveComponent as o, createBlock as a, openBlock as n, withCtx as u, createVNode as s, createTextVNode as i, toDisplayString as p } from "vue";
|
|
2
|
+
import { packageTemplateFiles as r } from "../../../utils/common-util.js";
|
|
3
|
+
import { ElMessage as c } from "element-plus";
|
|
4
|
+
const m = "${", g = "}", d = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["export", "close"], setup(e2, { emit: d2 }) {
|
|
5
5
|
var _a, _b;
|
|
6
|
-
const f = e2,
|
|
7
|
-
function
|
|
8
|
-
let t2,
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
const f = e2, x = t(false), v = d2, b = t([]), h = t([]), C = (_a = f.configure.props) == null ? void 0 : _a.base, w = (_b = f.pageContext) == null ? void 0 : _b.entity.data;
|
|
7
|
+
function y(e3) {
|
|
8
|
+
let t2, l2;
|
|
9
|
+
console.log("templateShowName", e3);
|
|
10
|
+
let o2 = e3;
|
|
11
|
+
const a2 = o2.indexOf(m), n2 = o2.indexOf(g);
|
|
12
|
+
return console.log("prefixIndex", a2), console.log("suffixIndex", n2), -1 !== a2 && -1 !== n2 ? (a2 > n2 ? (o2 = o2.substring(0, n2) + o2.substring(n2 + 1), console.log("non replacement value === newValue", o2)) : (t2 = o2.substring(a2 + 2, n2), l2 = o2.substring(a2, n2 + 1), console.log("field", t2), console.log("formatStr", l2), h.value.push(t2), console.log("fields", h.value), o2 = o2.replace(l2, ""), console.log("newValue", o2)), y(o2)) : h.value;
|
|
11
13
|
}
|
|
12
14
|
function N(e3) {
|
|
13
|
-
|
|
15
|
+
v("export", f.configure, e3);
|
|
14
16
|
}
|
|
15
17
|
function O() {
|
|
16
|
-
|
|
18
|
+
v("close");
|
|
17
19
|
}
|
|
18
|
-
return
|
|
19
|
-
C.templateFiles && C.templateFiles.length > 0 ? b.value =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
return l(() => {
|
|
21
|
+
C.templateFiles && C.templateFiles.length > 0 ? b.value = r(C.templateFiles, f.pageContext, f.configure) : C.templateUuid && C.templateName && b.value.push({ templateUuid: C.templateUuid, templateName: C.templateName }), b.value.forEach((e3) => {
|
|
22
|
+
e3 && e3.templateName && (e3.templateName = function(e4) {
|
|
23
|
+
const t2 = y(e4);
|
|
24
|
+
return console.log("fields", t2), t2.forEach((t3) => {
|
|
25
|
+
const l2 = m + t3 + g;
|
|
26
|
+
let o2;
|
|
27
|
+
-1 !== e4.indexOf(l2) && Object.prototype.hasOwnProperty.call(w, t3) && (o2 = w[t3] ? w[t3] : "", e4 = e4.replace(l2, o2));
|
|
28
|
+
}), e4;
|
|
29
|
+
}(e3.templateName));
|
|
30
|
+
}), b.value && 0 !== b.value.length || (c({ message: "无符合条件可导出的模板!", type: "warning" }), v("close")), 1 === (b == null ? void 0 : b.value.length) ? (N(b.value[0]), v("close")) : x.value = true;
|
|
27
31
|
}), (e3, t2) => {
|
|
28
|
-
const
|
|
29
|
-
return
|
|
32
|
+
const l2 = o("el-table-column"), r2 = o("el-button"), c2 = o("el-table"), m2 = o("el-dialog");
|
|
33
|
+
return n(), a(m2, { modelValue: x.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => x.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: O }, { default: u(() => [s(c2, { data: b.value, style: { width: "100%" } }, { default: u(() => [s(l2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: u((e4) => [i(p(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), s(l2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: u((t3) => [s(r2, { type: "text", size: "small", onClick: (e4) => N(t3.row), loading: void 0 !== f.pageContext.canClick && void 0 !== f.pageContext.clickUuid && !f.pageContext.canClick && f.pageContext.clickUuid === f.configure.uuid }, { default: u(() => [i(p(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick", "loading"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
|
|
30
34
|
};
|
|
31
35
|
} });
|
|
32
36
|
export {
|
|
33
|
-
|
|
37
|
+
d as default
|
|
34
38
|
};
|
|
@@ -19,6 +19,7 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
19
19
|
B.value = l2 ?? 0, R(n2 || i2 || false, e3);
|
|
20
20
|
}
|
|
21
21
|
} catch (e3) {
|
|
22
|
+
console.error(e3);
|
|
22
23
|
}
|
|
23
24
|
}, R = (e3, t2) => {
|
|
24
25
|
var _a;
|
|
@@ -53,8 +54,9 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
53
54
|
}
|
|
54
55
|
return [window];
|
|
55
56
|
})();
|
|
56
|
-
b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
|
|
57
|
+
console.log("检测父级滚动节点", e3), b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
|
|
57
58
|
} catch (e3) {
|
|
59
|
+
console.error(e3);
|
|
58
60
|
}
|
|
59
61
|
});
|
|
60
62
|
}, 100);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as
|
|
2
|
-
import { handleAfterInitEvent as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as r, openBlock as i, normalizeStyle as a, normalizeClass as s, unref as l } from "vue";
|
|
2
|
+
import { handleAfterInitEvent as c } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { getSystemFrontendUrl as u } from "agilebuilder-ui/src/utils/common-util.js";
|
|
4
4
|
const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, configure: {}, indexObj: {}, selectWidget: {} }, setup(e2, { expose: g2 }) {
|
|
5
5
|
const p = e2, m = t(null), d = p.configure.runtime ? p.configure.runtime : {}, y = d.style, w = d.class, h = t();
|
|
@@ -26,7 +26,7 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
|
|
|
26
26
|
t2(n3);
|
|
27
27
|
} else n2(new Error("System not found"));
|
|
28
28
|
}).catch((e4) => {
|
|
29
|
-
n2(e4);
|
|
29
|
+
console.error("Failed to load page for iframe:", e4), n2(e4);
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
}
|
|
@@ -35,11 +35,11 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
|
|
|
35
35
|
}
|
|
36
36
|
return n(() => {
|
|
37
37
|
o(() => {
|
|
38
|
-
|
|
38
|
+
c(null, p.pageContext, p.configure, { componentRef: m.value, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
|
|
39
39
|
});
|
|
40
40
|
}), g2({ changeIframeSrc: b, changeIframeSrcByPage: v, getPagePathByCode: P, refreshIframe: function() {
|
|
41
41
|
m.value && m.value.contentWindow.location.reload();
|
|
42
|
-
} }), (e3, t2) => (
|
|
42
|
+
} }), (e3, t2) => (i(), r("iframe", { ref_key: "thisRef", ref: m, src: h.value, class: s(["amb-widget-container-iframe", l(w)]), style: a(l(y)) }, null, 14, f));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
45
|
g as default
|