super-page-runtime 2.3.34 → 2.3.35-sit1
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/anchor-util.js +43 -51
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +98 -96
- package/dist/es/components/runtime/utils/events/event-util.js +131 -119
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.js +154 -138
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +26 -28
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +94 -99
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- 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 +9 -11
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- 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 +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +68 -53
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +31 -22
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +14 -16
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +18 -19
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +16 -15
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getValueFromSource as
|
|
2
|
-
import { deepCopy as
|
|
3
|
-
import { setDefaultGrid as s, CommonName as a, caculateFormulaValue as l, executeChartFormula as r, sortDatas as n, limitDatas as u, formatToolboxI18n as
|
|
4
|
-
import { handleChartEvent as
|
|
1
|
+
import { getValueFromSource as e, formatVariableValue as t, setValueForVariableName as i } from "../page-helper-util.js";
|
|
2
|
+
import { deepCopy as o } from "../common-util.js";
|
|
3
|
+
import { setDefaultGrid as s, CommonName as a, caculateFormulaValue as l, executeChartFormula as r, sortDatas as n, limitDatas as u, formatToolboxI18n as d } from "./chart-util.js";
|
|
4
|
+
import { handleChartEvent as f } from "../events/event-util.js";
|
|
5
5
|
function c(c2, m, h, y) {
|
|
6
6
|
if (!y || !y.result) return;
|
|
7
|
-
s(h), h.tooltip || (h.tooltip = {}),
|
|
7
|
+
s(h), h.tooltip || (h.tooltip = {}), f(c2, m, "beforeUpdateChart", h, { resultData: y });
|
|
8
8
|
const g = y && y.result ? y.result : {};
|
|
9
9
|
let v = y && y.groupValue ? y.groupValue : void 0;
|
|
10
10
|
const F = m.serviceDataField;
|
|
@@ -13,152 +13,154 @@ function c(c2, m, h, y) {
|
|
|
13
13
|
let D = m.props ? m.props.groups : null;
|
|
14
14
|
if (D || (D = []), !v || 0 === v.length) {
|
|
15
15
|
v = [];
|
|
16
|
-
for (const
|
|
16
|
+
for (const e2 of D) v.push(e2.group);
|
|
17
17
|
}
|
|
18
18
|
const _ = {}, x = [], A = [];
|
|
19
|
-
for (const
|
|
19
|
+
for (const e2 of D) _[e2.group] = e2.target, e2.target && !x.includes(e2.target) && (x.push(e2.target), v.includes(e2.group) && A.push(e2.target));
|
|
20
20
|
let N = m.props ? m.props.mulGroupShow : "";
|
|
21
21
|
N = "break" == N ? "\r\n" : " ";
|
|
22
|
-
for (const
|
|
23
|
-
if (!
|
|
24
|
-
const
|
|
25
|
-
for (const
|
|
26
|
-
const s2 = _[
|
|
27
|
-
a2 &&
|
|
22
|
+
for (const t2 of S) {
|
|
23
|
+
if (!t2) continue;
|
|
24
|
+
const i2 = [];
|
|
25
|
+
for (const o3 of v) {
|
|
26
|
+
const s2 = _[o3], a2 = e(t2, s2, void 0);
|
|
27
|
+
a2 && i2.push(a2);
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
|
|
29
|
+
const o2 = i2.join(N);
|
|
30
|
+
t2[a.X_FIELD_NAME] = o2;
|
|
31
31
|
}
|
|
32
32
|
const E = m.items ? m.items : [], C = [], b = {}, w = [], I = {}, X = [], L = [], M = /* @__PURE__ */ new Set(), j = l(E, S, M);
|
|
33
|
-
for (const
|
|
34
|
-
for (const
|
|
35
|
-
const
|
|
33
|
+
for (const e2 of M) X.push(e2);
|
|
34
|
+
for (const e2 of E) {
|
|
35
|
+
const t2 = e2.props ? e2.props : {}, i2 = t2.yaxisSource, o2 = t2.yaxisField, s2 = t2.isCumulative;
|
|
36
36
|
let a2 = null;
|
|
37
|
-
if (!
|
|
38
|
-
let
|
|
39
|
-
for (const
|
|
40
|
-
a2 = { uuid:
|
|
41
|
-
} else a2 = { uuid:
|
|
42
|
-
else a2 = { uuid:
|
|
43
|
-
null != a2 && (C.push(a2), b[
|
|
37
|
+
if (!o2 || i2 && "variable" != i2) if ("formula" == i2) {
|
|
38
|
+
let i3 = t2.formula ? t2.formula : "";
|
|
39
|
+
for (const e3 in j) i3 = i3.replace(new RegExp(e3.replace("$", "\\$"), "g"), j[e3]);
|
|
40
|
+
a2 = { uuid: e2.uuid, type: "formula", formula: i3, isFormulaCalculateAfterSort: t2.isFormulaCalculateAfterSort, data: [], dynamicDatas: [] };
|
|
41
|
+
} else a2 = { uuid: e2.uuid, type: "fixed", field: t2.yaxisFix, data: [], dynamicDatas: [] };
|
|
42
|
+
else a2 = { uuid: e2.uuid, type: "variable", field: o2, isCumulative: s2, data: [], dynamicDatas: [] }, o2 && !X.includes(o2) && X.push(o2), o2 && !L.includes(o2) && L.push(o2), s2 && !M.has(o2) && M.add(o2);
|
|
43
|
+
null != a2 && (C.push(a2), b[e2.uuid] = a2), t2.dynamicSeriesField && !w.includes(t2.dynamicSeriesField) && a2 && (a2.dynamicField = t2.dynamicSeriesField, a2.dynamicSeriesTitle = t2.dynamicSeriesTitle, a2.dynamicShowStack = t2.dynamicShowStack, w.push(t2.dynamicSeriesField), I[t2.dynamicSeriesField] = o2), t2.dynamicSeriesDataField && t2.dynamicSeriesDataField.forEach((e3) => {
|
|
44
|
+
X.includes(e3) || X.push(e3);
|
|
45
|
+
});
|
|
44
46
|
}
|
|
45
47
|
const k = {};
|
|
46
48
|
if (w.length > 0) {
|
|
47
|
-
const
|
|
48
|
-
for (const
|
|
49
|
-
const l2 =
|
|
50
|
-
let r2 =
|
|
49
|
+
const t2 = [], i2 = {};
|
|
50
|
+
for (const o2 of S) if (o2) for (const s2 of X) {
|
|
51
|
+
const l2 = o2[a.X_FIELD_NAME];
|
|
52
|
+
let r2 = i2[l2];
|
|
51
53
|
if (!r2) {
|
|
52
54
|
r2 = {};
|
|
53
|
-
for (const
|
|
54
|
-
r2[a.X_FIELD_NAME] =
|
|
55
|
+
for (const e2 of x) r2[e2] = o2[e2];
|
|
56
|
+
r2[a.X_FIELD_NAME] = o2[a.X_FIELD_NAME], i2[l2] = r2, t2.push(r2);
|
|
55
57
|
}
|
|
56
|
-
let n2 =
|
|
58
|
+
let n2 = e(o2, s2, void 0);
|
|
57
59
|
if (!isNaN(n2)) {
|
|
58
|
-
const
|
|
59
|
-
isNaN || (n2 +=
|
|
60
|
+
const e2 = r2[s2];
|
|
61
|
+
isNaN(e2) || (n2 += e2), r2[s2] = n2;
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
|
-
for (const
|
|
63
|
-
const
|
|
64
|
+
for (const t3 of w) {
|
|
65
|
+
const o2 = [];
|
|
64
66
|
for (const s2 of S) {
|
|
65
67
|
if (!s2) continue;
|
|
66
|
-
const l2 =
|
|
68
|
+
const l2 = i2[s2[a.X_FIELD_NAME]];
|
|
67
69
|
if (!l2) continue;
|
|
68
|
-
let r2 =
|
|
69
|
-
r2 = null == r2 || null == r2 ? "" : r2,
|
|
70
|
-
const n2 = I[
|
|
70
|
+
let r2 = e(s2, t3, void 0);
|
|
71
|
+
r2 = null == r2 || null == r2 ? "" : r2, o2.includes(r2) || (o2.push(r2), L.push(r2), M.add(r2));
|
|
72
|
+
const n2 = I[t3];
|
|
71
73
|
if (void 0 !== n2) {
|
|
72
|
-
const
|
|
73
|
-
let
|
|
74
|
-
void 0 ===
|
|
74
|
+
const t4 = e(s2, n2, void 0);
|
|
75
|
+
let i3 = l2[r2];
|
|
76
|
+
void 0 === i3 ? i3 = t4 : isNaN(t4) || (i3 += t4), l2[r2] = i3;
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
|
-
k[
|
|
79
|
+
k[t3] = o2;
|
|
78
80
|
}
|
|
79
|
-
S =
|
|
81
|
+
S = t2;
|
|
80
82
|
}
|
|
81
83
|
let T = {};
|
|
82
84
|
const V = /* @__PURE__ */ new Set(), $ = m.props ? m.props.orderByTarget : "";
|
|
83
|
-
for (const
|
|
84
|
-
for (const
|
|
85
|
-
p(
|
|
86
|
-
for (const
|
|
87
|
-
const
|
|
88
|
-
t2
|
|
85
|
+
for (const e2 of C) "formula" === e2.type && e2.isFormulaCalculateAfterSort && $ !== e2.uuid && V.add(e2.uuid + "_field");
|
|
86
|
+
for (const e2 of S) if (e2) {
|
|
87
|
+
p(e2, M, T);
|
|
88
|
+
for (const t2 of C) if ("formula" === t2.type && !t2.isFormulaCalculateAfterSort) {
|
|
89
|
+
const i2 = r(t2.formula, T, e2, c2);
|
|
90
|
+
e2[t2.uuid + "_field"] = i2;
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
if (n(c2, m, S), V.size > 0) {
|
|
92
|
-
const
|
|
93
|
-
for (const
|
|
94
|
-
p(
|
|
95
|
-
for (const
|
|
96
|
-
const
|
|
97
|
-
|
|
94
|
+
const e2 = {};
|
|
95
|
+
for (const t2 of S) {
|
|
96
|
+
p(t2, M, e2);
|
|
97
|
+
for (const i2 of C) if ("formula" === i2.type && V.has(i2.uuid + "_field")) {
|
|
98
|
+
const o2 = r(i2.formula, e2, t2, c2);
|
|
99
|
+
t2[i2.uuid + "_field"] = o2;
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
S = u(c2, m, S, x, L);
|
|
102
104
|
const B = [];
|
|
103
105
|
T = {};
|
|
104
|
-
for (const
|
|
105
|
-
for (const
|
|
106
|
-
const
|
|
107
|
-
let s2 = T[
|
|
108
|
-
void 0 ===
|
|
106
|
+
for (const t2 of S) if (t2) {
|
|
107
|
+
for (const i2 of M) {
|
|
108
|
+
const o2 = e(t2, i2, void 0);
|
|
109
|
+
let s2 = T[i2];
|
|
110
|
+
void 0 === o2 || isNaN(o2) || (void 0 === s2 ? s2 = o2 : s2 += o2), T[i2] = s2;
|
|
109
111
|
}
|
|
110
|
-
B.push(
|
|
111
|
-
for (const
|
|
112
|
-
let
|
|
113
|
-
const s2 =
|
|
114
|
-
if (
|
|
115
|
-
let a2 = k[
|
|
112
|
+
B.push(t2[a.X_FIELD_NAME]);
|
|
113
|
+
for (const i2 of C) {
|
|
114
|
+
let o2 = i2.data;
|
|
115
|
+
const s2 = i2.dynamicDatas;
|
|
116
|
+
if (i2.dynamicField) {
|
|
117
|
+
let a2 = k[i2.dynamicField];
|
|
116
118
|
a2 = a2 || [];
|
|
117
119
|
for (let l2 = 0; l2 < a2.length; l2++) {
|
|
118
|
-
l2 >= s2.length && s2.push([]),
|
|
120
|
+
l2 >= s2.length && s2.push([]), o2 = s2[l2];
|
|
119
121
|
const r2 = a2[l2];
|
|
120
|
-
let n2 =
|
|
121
|
-
|
|
122
|
+
let n2 = e(t2, r2, void 0);
|
|
123
|
+
i2.isCumulative && (n2 = T[r2]), o2.push(n2);
|
|
122
124
|
}
|
|
123
|
-
} else if ("fixed" ===
|
|
124
|
-
else if ("variable" ===
|
|
125
|
-
let s3 =
|
|
126
|
-
|
|
127
|
-
} else "formula" ===
|
|
125
|
+
} else if ("fixed" === i2.type) o2.push(i2.field);
|
|
126
|
+
else if ("variable" === i2.type) {
|
|
127
|
+
let s3 = e(t2, i2.field, void 0);
|
|
128
|
+
i2.isCumulative && (s3 = T[i2.field]), o2.push(s3);
|
|
129
|
+
} else "formula" === i2.type ? o2.push(t2[i2.uuid + "_field"]) : o2.push(void 0);
|
|
128
130
|
}
|
|
129
131
|
}
|
|
130
|
-
const G = m.defaultSeries, R =
|
|
131
|
-
for (const
|
|
132
|
-
const
|
|
133
|
-
if (
|
|
134
|
-
let s2 = k[
|
|
132
|
+
const G = m.defaultSeries, R = o(null == G ? [] : G), U = [];
|
|
133
|
+
for (const e2 of R) {
|
|
134
|
+
const i2 = b[e2.uuid];
|
|
135
|
+
if (i2.dynamicField) {
|
|
136
|
+
let s2 = k[i2.dynamicField];
|
|
135
137
|
s2 = s2 || [];
|
|
136
|
-
const a2 =
|
|
138
|
+
const a2 = i2.dynamicDatas ? i2.dynamicDatas : [];
|
|
137
139
|
for (let l2 = 0; l2 < s2.length; l2++) {
|
|
138
|
-
const r2 = s2[l2], n2 =
|
|
139
|
-
if (
|
|
140
|
-
const
|
|
141
|
-
n2.name =
|
|
140
|
+
const r2 = s2[l2], n2 = o(e2);
|
|
141
|
+
if (i2.dynamicSeriesTitle) {
|
|
142
|
+
const e3 = i2.dynamicSeriesTitle.replace("${name}", r2);
|
|
143
|
+
n2.name = t(c2, e3);
|
|
142
144
|
} else n2.name = r2;
|
|
143
|
-
n2.data = l2 < a2.length ? a2[l2] : [], "bar" ==
|
|
145
|
+
n2.data = l2 < a2.length ? a2[l2] : [], "bar" == e2.type && i2.dynamicShowStack && (n2.stack = e2.uuid), U.push(n2);
|
|
144
146
|
}
|
|
145
|
-
} else
|
|
147
|
+
} else e2.data = i2 ? i2.data : [], U.push(e2);
|
|
146
148
|
}
|
|
147
149
|
h.series = U;
|
|
148
150
|
const z = m.defaultXaxis, Y = m.defaultYaxis;
|
|
149
151
|
if (h.isBar) {
|
|
150
|
-
if (Y) for (const
|
|
152
|
+
if (Y) for (const e2 of Y) e2.data = B;
|
|
151
153
|
h.xAxis = z, h.yAxis = Y;
|
|
152
154
|
} else z && z.length > 0 && (z[0].data = B), h.xAxis = z, h.yAxis = Y;
|
|
153
|
-
|
|
155
|
+
d(h);
|
|
154
156
|
const q = m.props ? m.props.selGroupVariable : null;
|
|
155
|
-
!(m.props ? m.props.enableDrill : null) && q && (m.highlightInfos = [],
|
|
157
|
+
!(m.props ? m.props.enableDrill : null) && q && (m.highlightInfos = [], i(c2.entity, q, null)), f(c2, m, "afterUpdateChart", h, { resultData: y }), m.groupFields = A, m.cacheDatas = S, m.rawResult = y;
|
|
156
158
|
}
|
|
157
|
-
function p(
|
|
158
|
-
for (const s2 of
|
|
159
|
-
const
|
|
160
|
-
let a2 =
|
|
161
|
-
void 0 ===
|
|
159
|
+
function p(t2, i2, o2) {
|
|
160
|
+
for (const s2 of i2) {
|
|
161
|
+
const i3 = e(t2, s2, void 0);
|
|
162
|
+
let a2 = o2[s2];
|
|
163
|
+
void 0 === i3 || isNaN(i3) || (void 0 === a2 ? a2 = i3 : a2 += i3), o2[s2] = a2;
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
166
|
export {
|