super-page-runtime 2.3.18 → 2.3.19-sit2
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/assets/chart-themes/bar-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/bar-theme.js +4 -0
- package/dist/es/assets/chart-themes/gauge-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/gauge-theme.js +4 -0
- package/dist/es/assets/chart-themes/pie-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/pie-theme.js +4 -0
- package/dist/es/assets/chart-themes/radar-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/radar-theme.js +4 -0
- package/dist/es/assets/chart-themes/scatter-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/scatter-theme.js +4 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -70
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +67 -66
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +31 -30
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +66 -65
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +47 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +33 -32
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +129 -119
- package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +577 -512
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/page-init-util.js +87 -68
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- 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 +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +148 -145
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +5 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.js +4 -0
- 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/common/task-informition-dialog.vue.js +3 -3
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +37 -25
- 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 +194 -194
- 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 +55 -54
- 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 +4 -4
- 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 +3 -4
- 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 +43 -27
- 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 +11 -13
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.d.ts +14 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +14 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +26 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +28 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +9 -9
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +22 -13
- 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.vue.d.ts +9 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +180 -168
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +134 -86
- package/package.json +2 -2
- package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme1.js +0 -4
- package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme2.js +0 -4
- package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme3.js +0 -4
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import t from "../../../../assets/chart-themes/
|
|
2
|
-
import e from "../../../../assets/chart-themes/
|
|
3
|
-
import n from "../../../../assets/chart-themes/
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import t from "../../../../assets/chart-themes/bar-theme.js";
|
|
2
|
+
import e from "../../../../assets/chart-themes/gauge-theme.js";
|
|
3
|
+
import n from "../../../../assets/chart-themes/pie-theme.js";
|
|
4
|
+
import i from "../../../../assets/chart-themes/radar-theme.js";
|
|
5
|
+
import s from "../../../../assets/chart-themes/scatter-theme.js";
|
|
6
|
+
import { getDefaultValue as r } from "../page-init-util.js";
|
|
7
|
+
import { getValueFromSource as o, setValueForVariableName as a, getParamNames as l, formatVariableValue as c, getValueFromVariable as f, setVariableValue as u } from "../page-helper-util.js";
|
|
8
|
+
import { getI18n as d } from "agilebuilder-ui/src/utils/util";
|
|
9
|
+
import { appendDefaultMethods as p } from "../events/event-util.js";
|
|
10
|
+
var h = ((t2) => (t2.X_FIELD_NAME = "__x", t2.Y_TEMP_NAME = "__y", t2))(h || {});
|
|
11
|
+
function g(r2, o2 = "bar") {
|
|
12
|
+
return "bar" === o2 ? t[r2] : "gauge" === o2 ? e[r2] : "pie" === o2 ? n[r2] : "radar" === o2 ? i[r2] : "scatter" === o2 ? s[r2] : t[r2];
|
|
11
13
|
}
|
|
12
|
-
function
|
|
14
|
+
function m() {
|
|
13
15
|
return [{ value: "theme1", label: "主题1" }, { value: "theme2", label: "主题2" }, { value: "theme3", label: "主题3" }];
|
|
14
16
|
}
|
|
15
|
-
function
|
|
16
|
-
return function(
|
|
17
|
-
let
|
|
18
|
-
if (s2 && (
|
|
19
|
-
if (Array.isArray(
|
|
20
|
-
if (isNaN(
|
|
17
|
+
function x(t2, e2, n2, i2, s2) {
|
|
18
|
+
return function(r2) {
|
|
19
|
+
let o2 = r2 == null ? void 0 : r2.value;
|
|
20
|
+
if (s2 && (o2 = r2), null == o2 || null == o2) return o2;
|
|
21
|
+
if (Array.isArray(o2)) return o2;
|
|
22
|
+
if (isNaN(o2) || !t2 || !t2.indexOf) return o2;
|
|
21
23
|
if (t2.indexOf("precision") > -1) {
|
|
22
24
|
let t3 = parseInt(e2);
|
|
23
|
-
(null == t3 || isNaN(t3)) && (t3 = 2),
|
|
25
|
+
(null == t3 || isNaN(t3)) && (t3 = 2), o2 = parseFloat(parseFloat(o2).toFixed(t3));
|
|
24
26
|
}
|
|
25
|
-
let l2 = "";
|
|
26
|
-
t2.indexOf("prefix") > -1 && n2 && (l2 = n2);
|
|
27
27
|
let a2 = "";
|
|
28
|
-
|
|
28
|
+
t2.indexOf("prefix") > -1 && n2 && (a2 = n2);
|
|
29
|
+
let l2 = "";
|
|
30
|
+
return t2.indexOf("append") > -1 && i2 && (l2 = i2), a2 + o2.toLocaleString() + l2;
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
|
-
function
|
|
33
|
+
function b(t2, e2) {
|
|
32
34
|
if (!e2) return;
|
|
33
|
-
if (e2.tooltipFormatterArgs && (e2.tooltip || (e2.tooltip = {}), e2.tooltip.valueFormatter =
|
|
35
|
+
if (e2.tooltipFormatterArgs && (e2.tooltip || (e2.tooltip = {}), e2.tooltip.valueFormatter = x.apply(e2, e2.tooltipFormatterArgs)), e2.series) {
|
|
34
36
|
const n3 = t2.props ? t2.props.enableDrill : null;
|
|
35
|
-
for (const i3 of e2.series) e2.radar || (i3.data = []), i3.labelFormatterArgs && (i3.label || (i3.label = {}), i3.label.formatter =
|
|
37
|
+
for (const i3 of e2.series) e2.radar || (i3.data = []), i3.labelFormatterArgs && (i3.label || (i3.label = {}), i3.label.formatter = x.apply(i3, i3.labelFormatterArgs)), !n3 && t2.clickSet && t2.clickSet.selected && i3.emphasis && (i3.emphasis.disabled = false), "pie" === i3.type && t2.clickSet && t2.clickSet.selected && (t2.clickSet.multiple ? i3.selectedMode = "multiple" : i3.selectedMode = "single");
|
|
36
38
|
}
|
|
37
39
|
if (e2.radar) for (const t3 of e2.radar) t3.indicator = [];
|
|
38
40
|
const n2 = e2.series;
|
|
@@ -47,66 +49,66 @@ function g(t2, e2) {
|
|
|
47
49
|
});
|
|
48
50
|
t2.defaultYaxis = s2;
|
|
49
51
|
}
|
|
50
|
-
function
|
|
52
|
+
function I(t2, e2, n2) {
|
|
51
53
|
if (!(n2 && e2 && e2.clickSet && t2)) return;
|
|
52
54
|
const i2 = e2.clickSet;
|
|
53
55
|
n2.on("click", function(s2) {
|
|
54
|
-
let
|
|
55
|
-
if (
|
|
56
|
+
let r2 = e2.highlightInfos ? e2.highlightInfos : [], o2 = -1;
|
|
57
|
+
if (r2) {
|
|
56
58
|
const t3 = [];
|
|
57
|
-
for (let
|
|
58
|
-
const
|
|
59
|
+
for (let a2 = 0; a2 < r2.length; a2++) {
|
|
60
|
+
const l2 = r2[a2], c2 = l2.seriesIndex === s2.seriesIndex && l2.dataIndex === s2.dataIndex;
|
|
59
61
|
if (c2 || !i2.multiple) {
|
|
60
62
|
if (i2.selected) {
|
|
61
63
|
const t4 = "chart-pie" === e2.name ? "unselect" : "downplay";
|
|
62
|
-
n2.dispatchAction({ type: t4, seriesIndex:
|
|
64
|
+
n2.dispatchAction({ type: t4, seriesIndex: l2.seriesIndex, dataIndex: l2.dataIndex });
|
|
63
65
|
}
|
|
64
|
-
} else t3.push(
|
|
65
|
-
c2 && (
|
|
66
|
+
} else t3.push(l2);
|
|
67
|
+
c2 && (o2 = a2);
|
|
66
68
|
}
|
|
67
|
-
|
|
69
|
+
r2 = t3;
|
|
68
70
|
}
|
|
69
|
-
if (-1 ===
|
|
71
|
+
if (-1 === o2) {
|
|
70
72
|
if (i2.selected) {
|
|
71
73
|
const t3 = "chart-pie" === e2.name ? "select" : "highlight";
|
|
72
74
|
n2.dispatchAction({ type: t3, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
|
|
73
75
|
}
|
|
74
|
-
|
|
76
|
+
r2.push({ seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
|
|
75
77
|
}
|
|
76
|
-
e2.highlightInfos =
|
|
78
|
+
e2.highlightInfos = r2, N(t2, e2);
|
|
77
79
|
});
|
|
78
80
|
}
|
|
79
|
-
function
|
|
81
|
+
function v(t2, e2, n2) {
|
|
80
82
|
if (!n2 || !e2 || !t2) return;
|
|
81
83
|
const i2 = e2.highlightInfos ? e2.highlightInfos : [];
|
|
82
84
|
for (let t3 = 0; t3 < i2.length; t3++) {
|
|
83
|
-
const s2 = i2[t3],
|
|
84
|
-
n2.dispatchAction({ type:
|
|
85
|
+
const s2 = i2[t3], r2 = "chart-pie" === e2.name ? "unselect" : "downplay";
|
|
86
|
+
n2.dispatchAction({ type: r2, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
|
|
85
87
|
}
|
|
86
|
-
e2.highlightInfos = [],
|
|
88
|
+
e2.highlightInfos = [], N(t2, e2);
|
|
87
89
|
}
|
|
88
|
-
function
|
|
90
|
+
function N(t2, e2) {
|
|
89
91
|
if (!e2.clickSet) return;
|
|
90
92
|
const n2 = e2.clickSet, i2 = n2.variables;
|
|
91
93
|
if (!i2 || 0 == i2.length) return;
|
|
92
|
-
const
|
|
93
|
-
for (const t3 of
|
|
94
|
+
const s2 = e2.highlightInfos ? e2.highlightInfos : [], r2 = e2.cacheDatas ? e2.cacheDatas : [], l2 = [], c2 = [];
|
|
95
|
+
for (const t3 of s2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex < r2.length && l2.push(r2[t3.dataIndex]));
|
|
94
96
|
for (const e3 of i2) {
|
|
95
97
|
if (!e3.fieldName || !e3.variable) continue;
|
|
96
98
|
const i3 = [];
|
|
97
|
-
for (const t3 of
|
|
98
|
-
const n3 =
|
|
99
|
+
for (const t3 of l2) {
|
|
100
|
+
const n3 = o(t3, e3.fieldName, void 0);
|
|
99
101
|
null != n3 && i3.push(n3);
|
|
100
102
|
}
|
|
101
|
-
n2.multiple ?
|
|
103
|
+
n2.multiple ? a(t2.entity, e3.variable, i3) : a(t2.entity, e3.variable, i3.length > 0 ? i3[0] : void 0);
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
|
-
function
|
|
105
|
-
const i2 = e2.items ? e2.items : [],
|
|
106
|
+
function y(t2, e2, n2) {
|
|
107
|
+
const i2 = e2.items ? e2.items : [], s2 = e2.props ? e2.props.orderByTarget : "";
|
|
106
108
|
let r2 = null;
|
|
107
|
-
if ("x" ==
|
|
108
|
-
else if (
|
|
109
|
-
for (const t3 of i2) if (t3.uuid ==
|
|
109
|
+
if ("x" == s2 || "X" == s2) r2 = "__x";
|
|
110
|
+
else if (s2) {
|
|
111
|
+
for (const t3 of i2) if (t3.uuid == s2) {
|
|
110
112
|
const e3 = t3.props ? t3.props : {}, n3 = e3.yaxisSource, i3 = e3.yaxisField;
|
|
111
113
|
if (i3 && (!n3 || "variable" == n3)) {
|
|
112
114
|
r2 = i3;
|
|
@@ -116,59 +118,59 @@ function v(t2, e2, n2) {
|
|
|
116
118
|
}
|
|
117
119
|
if (!r2) return;
|
|
118
120
|
const a2 = e2.props ? e2.props.orderSource : "";
|
|
119
|
-
let
|
|
121
|
+
let l2 = e2.props ? e2.props.orderFix : "";
|
|
120
122
|
if ("variable" == a2) {
|
|
121
123
|
const n3 = e2.props ? e2.props.orderVariable : "";
|
|
122
|
-
|
|
124
|
+
l2 = c(t2, n3);
|
|
123
125
|
}
|
|
124
|
-
|
|
125
|
-
const n3 =
|
|
126
|
-
return "desc" ===
|
|
126
|
+
l2 = "desc" == l2 || "DESC" == l2 ? "desc" : "asc", n2.sort((t3, e3) => {
|
|
127
|
+
const n3 = o(t3, r2, void 0), i3 = o(e3, r2, void 0);
|
|
128
|
+
return "desc" === l2 ? i3 - n3 : n3 - i3;
|
|
127
129
|
});
|
|
128
130
|
}
|
|
129
|
-
function
|
|
131
|
+
function S(t2, e2, n2, i2, s2) {
|
|
130
132
|
if (!n2) return n2;
|
|
131
133
|
const r2 = e2.props ? e2.props : {};
|
|
132
134
|
if (!r2.limitQuantity) return n2;
|
|
133
135
|
let a2 = null;
|
|
134
|
-
if (r2.itemNumVariable ? (a2 =
|
|
136
|
+
if (r2.itemNumVariable ? (a2 = c(t2, r2.itemNumVariable), a2 = parseInt(a2)) : a2 = r2.itemNumFix ? r2.itemNumFix : 10, null == a2 || null == a2 || isNaN(a2)) return n2;
|
|
135
137
|
if (n2.length < a2) return n2;
|
|
136
|
-
const
|
|
137
|
-
i2 = i2 || [],
|
|
138
|
+
const l2 = r2.overItemAlias, f2 = [], u2 = {};
|
|
139
|
+
i2 = i2 || [], s2 = s2 || [];
|
|
138
140
|
for (let t3 = 0; t3 < n2.length; t3++) {
|
|
139
141
|
const e3 = n2[t3];
|
|
140
142
|
if (t3 < a2) f2.push(e3);
|
|
141
143
|
else {
|
|
142
|
-
if (!
|
|
144
|
+
if (!l2) break;
|
|
143
145
|
for (const t4 of i2) {
|
|
144
146
|
if (!t4) continue;
|
|
145
|
-
let n3 =
|
|
147
|
+
let n3 = o(e3, t4, void 0);
|
|
146
148
|
n3 = null == n3 || null == n3 ? "" : n3, u2[t4] || (u2[t4] = []);
|
|
147
149
|
const i3 = u2[t4];
|
|
148
150
|
i3.includes(n3) || i3.push(n3);
|
|
149
151
|
}
|
|
150
|
-
for (const t4 of
|
|
152
|
+
for (const t4 of s2) {
|
|
151
153
|
if (!t4) continue;
|
|
152
|
-
const n3 =
|
|
154
|
+
const n3 = o(e3, t4, void 0);
|
|
153
155
|
if (isNaN(n3)) continue;
|
|
154
156
|
const i3 = u2[t4];
|
|
155
157
|
isNaN(i3) ? u2[t4] = n3 : u2[t4] = n3 + i3;
|
|
156
158
|
}
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
|
-
return
|
|
161
|
+
return l2 && (u2.__x = l2, f2.push(u2)), f2;
|
|
160
162
|
}
|
|
161
|
-
function
|
|
163
|
+
function F(t2, e2, n2) {
|
|
162
164
|
const i2 = {};
|
|
163
165
|
for (const s2 of t2) {
|
|
164
166
|
const t3 = s2.props ? s2.props : {};
|
|
165
167
|
if ("formula" === t3.yaxisSource) {
|
|
166
|
-
const s3 =
|
|
168
|
+
const s3 = l(t3.formula);
|
|
167
169
|
for (const t4 of s3) if (!(t4 in i2)) {
|
|
168
|
-
if (t4.startsWith("${min.")) i2[t4] =
|
|
169
|
-
else if (t4.startsWith("${max.")) i2[t4] =
|
|
170
|
-
else if (t4.startsWith("${sum.")) i2[t4] =
|
|
171
|
-
else if (t4.startsWith("${avg.")) i2[t4] =
|
|
170
|
+
if (t4.startsWith("${min.")) i2[t4] = _(e2, t4.substring(6, t4.length - 1));
|
|
171
|
+
else if (t4.startsWith("${max.")) i2[t4] = A(e2, t4.substring(6, t4.length - 1));
|
|
172
|
+
else if (t4.startsWith("${sum.")) i2[t4] = M(e2, t4.substring(6, t4.length - 1));
|
|
173
|
+
else if (t4.startsWith("${avg.")) i2[t4] = k(e2, t4.substring(6, t4.length - 1));
|
|
172
174
|
else if (t4.startsWith("${add.")) {
|
|
173
175
|
const e3 = t4.substring(6, t4.length - 1);
|
|
174
176
|
n2.add(e3);
|
|
@@ -178,97 +180,105 @@ function y(t2, e2, n2) {
|
|
|
178
180
|
}
|
|
179
181
|
return i2;
|
|
180
182
|
}
|
|
181
|
-
function
|
|
183
|
+
function _(t2, e2) {
|
|
182
184
|
let n2;
|
|
183
185
|
for (const i2 of t2) {
|
|
184
|
-
const t3 = parseFloat(
|
|
186
|
+
const t3 = parseFloat(o(i2, e2, null));
|
|
185
187
|
(void 0 === n2 || !isNaN(t3) && t3 < n2) && (n2 = t3);
|
|
186
188
|
}
|
|
187
189
|
return n2;
|
|
188
190
|
}
|
|
189
|
-
function
|
|
191
|
+
function A(t2, e2) {
|
|
190
192
|
let n2;
|
|
191
193
|
for (const i2 of t2) {
|
|
192
|
-
const t3 = parseFloat(
|
|
194
|
+
const t3 = parseFloat(o(i2, e2, null));
|
|
193
195
|
(void 0 === n2 || !isNaN(t3) && t3 > n2) && (n2 = t3);
|
|
194
196
|
}
|
|
195
197
|
return n2;
|
|
196
198
|
}
|
|
197
|
-
function
|
|
199
|
+
function M(t2, e2) {
|
|
198
200
|
let n2;
|
|
199
201
|
for (const i2 of t2) {
|
|
200
|
-
const t3 = parseFloat(
|
|
202
|
+
const t3 = parseFloat(o(i2, e2, null));
|
|
201
203
|
void 0 === n2 ? n2 = t3 : isNaN(t3) || (n2 += t3);
|
|
202
204
|
}
|
|
203
205
|
return n2;
|
|
204
206
|
}
|
|
205
|
-
function
|
|
206
|
-
const n2 =
|
|
207
|
+
function k(t2, e2) {
|
|
208
|
+
const n2 = M(t2, e2);
|
|
207
209
|
return void 0 === n2 || 0 === t2.length ? n2 : parseFloat((n2 / t2.length).toFixed(5));
|
|
208
210
|
}
|
|
209
|
-
function
|
|
211
|
+
function w(t2, e2, n2, i2) {
|
|
210
212
|
if (!t2) return;
|
|
211
213
|
if (e2) for (const n3 in e2) t2 = t2.replace(new RegExp("\\${add." + n3 + "}", "g"), e2[n3]);
|
|
212
|
-
const
|
|
213
|
-
for (const e3 of
|
|
214
|
-
let
|
|
215
|
-
|
|
214
|
+
const s2 = l(t2);
|
|
215
|
+
for (const e3 of s2) {
|
|
216
|
+
let s3 = null;
|
|
217
|
+
s3 = e3.startsWith("${row.") ? o(n2, e3.substring(6, e3.length - 1), null) : f(i2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), s3);
|
|
216
218
|
}
|
|
217
219
|
t2.includes("return ") || (t2 = "return " + t2);
|
|
218
|
-
const
|
|
219
|
-
return
|
|
220
|
+
const r2 = new Function("params", t2);
|
|
221
|
+
return p(r2, i2), r2({ pageContext: i2, row: n2 });
|
|
220
222
|
}
|
|
221
|
-
function
|
|
223
|
+
function $(t2, e2) {
|
|
222
224
|
if (!t2 || !t2.$el) return;
|
|
223
225
|
const n2 = t2.$el.getElementsByTagName("canvas");
|
|
224
226
|
if (!n2 || 0 === n2.length) return;
|
|
225
227
|
const i2 = n2[0], s2 = i2.width + ":" + i2.height;
|
|
226
228
|
return { isTable: false, fileContent: i2.toDataURL(), fileSize: s2, title: e2 == null ? void 0 : e2.title };
|
|
227
229
|
}
|
|
228
|
-
function
|
|
229
|
-
const
|
|
230
|
-
let
|
|
231
|
-
if (
|
|
232
|
-
const t3 = JSON.parse(
|
|
230
|
+
function j(t2, e2, n2) {
|
|
231
|
+
const i2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS");
|
|
232
|
+
let s2 = true;
|
|
233
|
+
if (i2) {
|
|
234
|
+
const t3 = JSON.parse(i2);
|
|
233
235
|
if (t3[n2]) {
|
|
234
|
-
const
|
|
235
|
-
if (Object.keys(
|
|
236
|
-
|
|
237
|
-
for (const t4 in
|
|
236
|
+
const i3 = t3[n2];
|
|
237
|
+
if (Object.keys(i3).length > 0) {
|
|
238
|
+
s2 = false;
|
|
239
|
+
for (const t4 in i3) null !== i3[t4] && void 0 !== i3[t4] && a(e2.entity, t4, i3[t4]);
|
|
238
240
|
}
|
|
239
241
|
}
|
|
240
242
|
}
|
|
241
|
-
if (
|
|
243
|
+
if (s2 && t2) {
|
|
242
244
|
for (const n3 of t2) if (n3.prop && n3.value) {
|
|
243
|
-
const t3 =
|
|
244
|
-
null != t3 &&
|
|
245
|
+
const t3 = r(e2, n3.value, "input-text", false), i3 = n3.prop.substring(2, n3.prop.length - 1).split(".");
|
|
246
|
+
null != t3 && u(e2.entity, i3, t3);
|
|
245
247
|
}
|
|
246
248
|
}
|
|
247
249
|
}
|
|
248
|
-
function
|
|
250
|
+
function O(t2) {
|
|
249
251
|
if (t2 == null ? void 0 : t2.grid) {
|
|
250
252
|
const e2 = t2.grid, n2 = (t3) => !t3 || "0" === t3;
|
|
251
253
|
n2(e2.top) && n2(e2.right) && n2(e2.bottom) && n2(e2.left) && Object.assign(e2, { right: "10%", bottom: "60", left: "10%" });
|
|
252
254
|
}
|
|
253
255
|
}
|
|
256
|
+
function E(t2) {
|
|
257
|
+
var _a;
|
|
258
|
+
if ((_a = t2 == null ? void 0 : t2.toolbox) == null ? void 0 : _a.feature) {
|
|
259
|
+
const e2 = t2.toolbox.feature;
|
|
260
|
+
for (const t3 in e2) e2[t3].show && (e2[t3].title = d().t("chartMessage." + t3), "dataView" === t3 && (e2[t3].lang = [d().t("chartMessage.dataView"), d().t("chartMessage.close"), d().t("chartMessage.refresh")]));
|
|
261
|
+
}
|
|
262
|
+
}
|
|
254
263
|
export {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
264
|
+
h as CommonName,
|
|
265
|
+
F as caculateFormulaValue,
|
|
266
|
+
v as clearChartSelected,
|
|
267
|
+
w as executeChartFormula,
|
|
268
|
+
$ as exportCommonChart,
|
|
269
|
+
E as formatToolboxI18n,
|
|
270
|
+
k as getAvgValue,
|
|
271
|
+
g as getCustomTheme,
|
|
272
|
+
m as getCustomThemeOptions,
|
|
273
|
+
A as getMaxValue,
|
|
274
|
+
_ as getMinValue,
|
|
275
|
+
x as getNumFormatter,
|
|
276
|
+
M as getSumValue,
|
|
277
|
+
b as initChartOption,
|
|
278
|
+
S as limitDatas,
|
|
279
|
+
I as monitorChartClickToVariable,
|
|
280
|
+
O as setDefaultGrid,
|
|
281
|
+
j as setHomeChartInitConfigValue,
|
|
282
|
+
y as sortDatas,
|
|
283
|
+
N as updateClickVariablesForSelected
|
|
274
284
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare function getBackFillDataKey(pageCode: string, dataId: string): string;
|
|
2
|
+
/**
|
|
3
|
+
* 缓存回填数据
|
|
4
|
+
* @param pageCode 页面编码
|
|
5
|
+
* @param data 数据
|
|
6
|
+
*/
|
|
7
|
+
export declare function cacheBackfillData(pageCode: string, data: any): void;
|
|
8
|
+
/**
|
|
9
|
+
* 删除缓存回填数据
|
|
10
|
+
* @param pageCode 页面编码
|
|
11
|
+
* @param data 数据
|
|
12
|
+
*/
|
|
13
|
+
export declare function removeCacheFillData(pageCode: string, data: any): void;
|
|
14
|
+
/**
|
|
15
|
+
* 删除缓存回填数据
|
|
16
|
+
* @param pageCode 页面编码
|
|
17
|
+
* @param dataId 数据ID
|
|
18
|
+
*/
|
|
19
|
+
export declare function removeCacheFillDataById(pageCode: string, dataId: any): void;
|
|
20
|
+
/**
|
|
21
|
+
* sessionStorage中是否存在回填数据
|
|
22
|
+
* @param pageCode 页面编码
|
|
23
|
+
* @param dataId 数据ID
|
|
24
|
+
* @returns boolean
|
|
25
|
+
*/
|
|
26
|
+
export declare function hasBackfillData(pageCode: string, dataId: any): boolean;
|
|
27
|
+
export declare function getRealFillData(pageCode: string, dataId: any, dbData: any): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { getUsername as e } from "agilebuilder-ui/src/utils/auth";
|
|
2
|
+
function t(e2, t2) {
|
|
3
|
+
let i2 = "new";
|
|
4
|
+
return t2.id ? i2 = t2.id : t2.ID && (i2 = t2.ID), n(e2, i2);
|
|
5
|
+
}
|
|
6
|
+
function n(t2, n2) {
|
|
7
|
+
return n2 ? `${e()}_backfill_data_${t2}_${n2}` : `${e()}_backfill_data_${t2}_new`;
|
|
8
|
+
}
|
|
9
|
+
function i(e2, n2) {
|
|
10
|
+
sessionStorage.setItem(t(e2, n2), JSON.stringify(n2));
|
|
11
|
+
}
|
|
12
|
+
function o(e2, n2) {
|
|
13
|
+
sessionStorage.removeItem(t(e2, n2));
|
|
14
|
+
}
|
|
15
|
+
function r(e2, t2) {
|
|
16
|
+
sessionStorage.removeItem(n(e2, t2));
|
|
17
|
+
}
|
|
18
|
+
function s(e2, t2) {
|
|
19
|
+
return null !== sessionStorage.getItem(n(e2, t2));
|
|
20
|
+
}
|
|
21
|
+
function u(e2, t2, i2) {
|
|
22
|
+
const o2 = sessionStorage.getItem(n(e2, t2));
|
|
23
|
+
if (o2) {
|
|
24
|
+
const e3 = JSON.parse(o2);
|
|
25
|
+
let t3 = null;
|
|
26
|
+
e3.version ? t3 = e3.version : e3.VERSION && (t3 = e3.VERSION);
|
|
27
|
+
let n2 = null;
|
|
28
|
+
if (i2.version ? n2 = i2.version : i2.VERSION && (n2 = i2.VERSION), t3 == n2) return e3;
|
|
29
|
+
}
|
|
30
|
+
return i2;
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
i as cacheBackfillData,
|
|
34
|
+
n as getBackFillDataKey,
|
|
35
|
+
u as getRealFillData,
|
|
36
|
+
s as hasBackfillData,
|
|
37
|
+
o as removeCacheFillData,
|
|
38
|
+
r as removeCacheFillDataById
|
|
39
|
+
};
|
|
@@ -146,10 +146,10 @@ function T(e2, t2, i2) {
|
|
|
146
146
|
r3 ? n(r3) ? r3.then((n2) => {
|
|
147
147
|
n2 ? A(e2, t2, c2, i2) : e2.canClick = true;
|
|
148
148
|
}).catch((n2) => {
|
|
149
|
-
|
|
149
|
+
e2.canClick = true;
|
|
150
150
|
}) : A(e2, t2, c2, i2) : e2.canClick = true;
|
|
151
151
|
}).catch((n2) => {
|
|
152
|
-
|
|
152
|
+
e2.canClick = true;
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
function F(e2, n2, t2, i2, o2) {
|
|
@@ -214,7 +214,7 @@ function A(e2, t2, i2, o2) {
|
|
|
214
214
|
n(a2) ? a2.then((n2) => {
|
|
215
215
|
n2 ? q(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
|
|
216
216
|
}).catch((n2) => {
|
|
217
|
-
|
|
217
|
+
e3.canClick = true;
|
|
218
218
|
}) : q(e3, t3, o3, c2, a2, u3);
|
|
219
219
|
} else q(e3, t3, o3, false, null, u3);
|
|
220
220
|
}(e2, t2, i2, o2);
|
|
@@ -3,27 +3,26 @@ import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
|
|
|
3
3
|
import { generateCodeByRule as o } from "../barcode-util.js";
|
|
4
4
|
function a(n2, a2) {
|
|
5
5
|
e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [a2]).then((e2) => {
|
|
6
|
-
const a3 = JSON.parse(e2[0].template),
|
|
6
|
+
const a3 = JSON.parse(e2[0].template), i2 = [];
|
|
7
7
|
a3.panels.forEach((e3) => {
|
|
8
8
|
e3.printElements.forEach((e4) => {
|
|
9
|
-
"barcode" !== e4.options.textType && "qrcode" !== e4.options.textType ||
|
|
9
|
+
"barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || i2.push(e4.options);
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
|
-
const
|
|
12
|
+
const l = new t.PrintTemplate({ template: a3 }), r = { callback: () => {
|
|
13
13
|
}, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, f = {};
|
|
14
14
|
a3.panels[0].printElements.forEach((e3) => {
|
|
15
15
|
if ("datetime" === e3.options.dataType && e3.options.field) {
|
|
16
16
|
const t2 = e3.options.field.substring(6);
|
|
17
17
|
f[t2] = e3.options.dateFormat;
|
|
18
18
|
}
|
|
19
|
-
}), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2,
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
19
|
+
}), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, i3) {
|
|
20
|
+
const l2 = JSON.parse(JSON.stringify(e3.selections));
|
|
21
|
+
if (l2.forEach((e4) => {
|
|
22
22
|
Object.keys(t2).forEach((t3) => {
|
|
23
23
|
if (e4[t3] && "number" == typeof e4[t3] && !isNaN(e4[t3])) try {
|
|
24
24
|
e4[t3] = new Date(e4[t3]);
|
|
25
25
|
} catch (e5) {
|
|
26
|
-
console.error(`日期格式化失败: ${e5}`);
|
|
27
26
|
}
|
|
28
27
|
});
|
|
29
28
|
}), n3.length > 0) {
|
|
@@ -31,51 +30,51 @@ function a(n2, a2) {
|
|
|
31
30
|
n3.forEach((t3) => {
|
|
32
31
|
e4.push(function(e5, t4) {
|
|
33
32
|
return new Promise((n4, a5) => {
|
|
34
|
-
const s3 = e5.field.split("."),
|
|
33
|
+
const s3 = e5.field.split("."), i4 = [];
|
|
35
34
|
s3.length < 2 && n4([]);
|
|
36
35
|
try {
|
|
37
36
|
p(s3[1]).then((e6) => {
|
|
38
37
|
t4.forEach((t5, n5) => {
|
|
39
38
|
const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
|
|
40
|
-
a6.value = o(JSON.parse(e6.barcodeModelItems), t5),
|
|
41
|
-
}), n4(
|
|
39
|
+
a6.value = o(JSON.parse(e6.barcodeModelItems), t5), i4.push(a6);
|
|
40
|
+
}), n4(i4);
|
|
42
41
|
});
|
|
43
42
|
} catch (e6) {
|
|
44
|
-
|
|
43
|
+
n4([]);
|
|
45
44
|
}
|
|
46
45
|
});
|
|
47
|
-
}(t3,
|
|
46
|
+
}(t3, l2));
|
|
48
47
|
}), Promise.all(e4).then((e5) => {
|
|
49
48
|
e5.forEach((e6) => {
|
|
50
49
|
e6.forEach((e7) => {
|
|
51
|
-
const t3 = e7.index, n4 =
|
|
50
|
+
const t3 = e7.index, n4 = l2[t3];
|
|
52
51
|
n4[e7.type] || (n4[e7.type] = {}), n4[e7.type][e7.name] = e7.value;
|
|
53
52
|
});
|
|
54
|
-
}), a4.print(
|
|
53
|
+
}), a4.print(l2, s2, i3);
|
|
55
54
|
});
|
|
56
|
-
} else a4.print(
|
|
57
|
-
}(n2, f,
|
|
55
|
+
} else a4.print(l2, s2, i3);
|
|
56
|
+
}(n2, f, i2, l, c, r) : "form" === n2.pageContext.pageType && s(n2, i2, l, c, r) : s(n2, i2, l, c, r);
|
|
58
57
|
});
|
|
59
58
|
}
|
|
60
59
|
function s(e2, t2, n2, a2, s2) {
|
|
61
60
|
if (t2.length > 0) {
|
|
62
|
-
const
|
|
61
|
+
const i2 = [];
|
|
63
62
|
t2.forEach((t3) => {
|
|
64
|
-
|
|
63
|
+
i2.push(function(e3, t4) {
|
|
65
64
|
return new Promise((n3, a3) => {
|
|
66
|
-
const s3 = t4.field.split("."),
|
|
67
|
-
s3.length < 2 && n3(
|
|
65
|
+
const s3 = t4.field.split("."), i3 = { type: null, name: null, value: null };
|
|
66
|
+
s3.length < 2 && n3(i3), i3.type = s3[0], i3.name = s3[1];
|
|
68
67
|
try {
|
|
69
|
-
p(
|
|
68
|
+
p(i3.name).then((t5) => {
|
|
70
69
|
const a4 = JSON.parse(t5.barcodeModelItems);
|
|
71
|
-
|
|
70
|
+
i3.value = o(a4, e3.entity.data), n3(i3);
|
|
72
71
|
});
|
|
73
72
|
} catch (e4) {
|
|
74
|
-
|
|
73
|
+
n3(i3);
|
|
75
74
|
}
|
|
76
75
|
});
|
|
77
76
|
}(e2.pageContext, t3));
|
|
78
|
-
}), Promise.all(
|
|
77
|
+
}), Promise.all(i2).then((t3) => {
|
|
79
78
|
const o2 = {};
|
|
80
79
|
t3.forEach((e3) => {
|
|
81
80
|
e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
|
|
@@ -93,8 +92,8 @@ function p(t2) {
|
|
|
93
92
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
|
|
94
93
|
}
|
|
95
94
|
n();
|
|
96
|
-
const
|
|
95
|
+
const i = { printLabel: a };
|
|
97
96
|
export {
|
|
98
|
-
|
|
97
|
+
i as default,
|
|
99
98
|
a as printLabel
|
|
100
99
|
};
|
|
@@ -39,6 +39,7 @@ export declare const standardEvents: {
|
|
|
39
39
|
removeSigner: (params: any) => void;
|
|
40
40
|
retrieveTask: (params: any) => Promise<unknown>;
|
|
41
41
|
extractWorkflow: (params: any) => Promise<unknown>;
|
|
42
|
+
extractWorkflowEvent: (params: any) => void;
|
|
42
43
|
cancelExtractWorkflow: (params: any) => Promise<unknown>;
|
|
43
44
|
approveExtractWorkflow: (params: any) => Promise<unknown>;
|
|
44
45
|
refuseExtractWorkflow: (params: any) => Promise<unknown>;
|
|
@@ -80,7 +81,8 @@ export declare function getRemoveSigner(params: any): any;
|
|
|
80
81
|
export declare function doRemoveSigners(params: any, selectRemoveTasks: any): void;
|
|
81
82
|
export declare function getRemoveTransactor(params: any): any;
|
|
82
83
|
export declare function doRemoveTransactors(params: any, selectRemoveTasks: any): void;
|
|
83
|
-
export declare function
|
|
84
|
+
export declare function extractWorkflowFunc(params: any): Promise<unknown>;
|
|
85
|
+
export declare function isVisibleWorkflowButton(pageContext: any, standardEventName: any, buttonInfo: any, completeTaskParam: any, btnConfigure: any, data: any): boolean;
|
|
84
86
|
/**
|
|
85
87
|
* 刷新页面
|
|
86
88
|
* @param pageContext
|