super-page-runtime 2.3.33-sit2 → 2.3.33
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 +116 -116
- package/dist/es/components/runtime/utils/events/print-label.js +27 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +738 -726
- package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
- 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 +130 -125
- 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/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 +14 -10
- 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/common/common-homepage-search.vue2.js +1 -1
- 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.vue2.js +15 -14
- 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 +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
- 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/common/save-chart-condition-dialog.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 +3 -1
- 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 +63 -63
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- 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 +119 -116
- 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 +46 -45
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -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 +28 -28
- 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 +9 -9
- 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 +57 -56
- 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 +12 -11
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +4 -3
- 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.vue2.js +19 -18
- 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 +18 -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 +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 +183 -182
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/package.json +2 -2
|
@@ -3,31 +3,31 @@ import e from "../../../../assets/chart-themes/gauge-theme.js";
|
|
|
3
3
|
import i from "../../../../assets/chart-themes/pie-theme.js";
|
|
4
4
|
import n from "../../../../assets/chart-themes/radar-theme.js";
|
|
5
5
|
import s from "../../../../assets/chart-themes/scatter-theme.js";
|
|
6
|
-
import { getDefaultValue as
|
|
7
|
-
import { getValueFromSource as
|
|
6
|
+
import { getDefaultValue as o } from "../page-init-util.js";
|
|
7
|
+
import { getValueFromSource as r, setValueForVariableName as a, getParamNames as l, getValueFromVariable as c, formatVariableValue as f, setVariableValue as u } from "../page-helper-util.js";
|
|
8
8
|
import { getI18n as d } from "agilebuilder-ui/src/utils/util";
|
|
9
9
|
import { appendDefaultMethods as p } from "../events/event-util.js";
|
|
10
10
|
var h = ((t2) => (t2.X_FIELD_NAME = "__x", t2.Y_TEMP_NAME = "__y", t2))(h || {});
|
|
11
|
-
function g(
|
|
12
|
-
return "bar" ===
|
|
11
|
+
function g(o2, r2 = "bar") {
|
|
12
|
+
return "bar" === r2 ? t[o2] : "gauge" === r2 ? e[o2] : "pie" === r2 ? i[o2] : "radar" === r2 ? n[o2] : "scatter" === r2 ? s[o2] : t[o2];
|
|
13
13
|
}
|
|
14
14
|
function m() {
|
|
15
15
|
return [{ value: "theme1", label: "主题1" }, { value: "theme2", label: "主题2" }, { value: "theme3", label: "主题3" }];
|
|
16
16
|
}
|
|
17
17
|
function x(t2, e2, i2, n2, s2) {
|
|
18
|
-
return function(
|
|
19
|
-
let
|
|
20
|
-
if (s2 && (
|
|
21
|
-
if (Array.isArray(
|
|
22
|
-
if (isNaN(
|
|
18
|
+
return function(o2) {
|
|
19
|
+
let r2 = o2 == null ? void 0 : o2.value;
|
|
20
|
+
if (s2 && (r2 = o2), null == r2 || null == r2) return r2;
|
|
21
|
+
if (Array.isArray(r2)) return console.log("numformatter is array", r2), r2;
|
|
22
|
+
if (isNaN(r2) || !t2 || !t2.indexOf) return r2;
|
|
23
23
|
if (t2.indexOf("precision") > -1) {
|
|
24
24
|
let t3 = parseInt(e2);
|
|
25
|
-
(null == t3 || isNaN(t3)) && (t3 = 2),
|
|
25
|
+
(null == t3 || isNaN(t3)) && (t3 = 2), r2 = parseFloat(parseFloat(r2).toFixed(t3));
|
|
26
26
|
}
|
|
27
27
|
let a2 = "";
|
|
28
28
|
t2.indexOf("prefix") > -1 && i2 && (a2 = i2);
|
|
29
29
|
let l2 = "";
|
|
30
|
-
return t2.indexOf("append") > -1 && n2 && (l2 = n2), a2 +
|
|
30
|
+
return t2.indexOf("append") > -1 && n2 && (l2 = n2), a2 + r2.toLocaleString() + l2;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
function b(t2, e2) {
|
|
@@ -53,37 +53,39 @@ function I(t2, e2, i2) {
|
|
|
53
53
|
if (!(i2 && e2 && e2.clickSet && t2)) return;
|
|
54
54
|
const n2 = e2.clickSet;
|
|
55
55
|
i2.on("click", function(s2) {
|
|
56
|
-
let
|
|
57
|
-
|
|
56
|
+
let o2 = e2.highlightInfos ? e2.highlightInfos : [];
|
|
57
|
+
console.log("highlightInfos", o2, s2);
|
|
58
|
+
let r2 = -1;
|
|
59
|
+
if (o2) {
|
|
58
60
|
const t3 = [];
|
|
59
|
-
for (let a2 = 0; a2 <
|
|
60
|
-
const l2 =
|
|
61
|
+
for (let a2 = 0; a2 < o2.length; a2++) {
|
|
62
|
+
const l2 = o2[a2], c2 = l2.seriesIndex === s2.seriesIndex && l2.dataIndex === s2.dataIndex;
|
|
61
63
|
if (c2 || !n2.multiple) {
|
|
62
64
|
if (n2.selected) {
|
|
63
65
|
const t4 = "chart-pie" === e2.name ? "unselect" : "downplay";
|
|
64
66
|
i2.dispatchAction({ type: t4, seriesIndex: l2.seriesIndex, dataIndex: l2.dataIndex });
|
|
65
67
|
}
|
|
66
68
|
} else t3.push(l2);
|
|
67
|
-
c2 && (
|
|
69
|
+
c2 && (r2 = a2);
|
|
68
70
|
}
|
|
69
|
-
|
|
71
|
+
o2 = t3;
|
|
70
72
|
}
|
|
71
|
-
if (-1 ===
|
|
73
|
+
if (-1 === r2) {
|
|
72
74
|
if (n2.selected) {
|
|
73
75
|
const t3 = "chart-pie" === e2.name ? "select" : "highlight";
|
|
74
76
|
i2.dispatchAction({ type: t3, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
|
|
75
77
|
}
|
|
76
|
-
|
|
78
|
+
o2.push({ seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
|
|
77
79
|
}
|
|
78
|
-
e2.highlightInfos =
|
|
80
|
+
e2.highlightInfos = o2, N(t2, e2);
|
|
79
81
|
});
|
|
80
82
|
}
|
|
81
83
|
function v(t2, e2, i2) {
|
|
82
84
|
if (!i2 || !e2 || !t2) return;
|
|
83
85
|
const n2 = e2.highlightInfos ? e2.highlightInfos : [];
|
|
84
86
|
for (let t3 = 0; t3 < n2.length; t3++) {
|
|
85
|
-
const s2 = n2[t3],
|
|
86
|
-
i2.dispatchAction({ type:
|
|
87
|
+
const s2 = n2[t3], o2 = "chart-pie" === e2.name ? "unselect" : "downplay";
|
|
88
|
+
i2.dispatchAction({ type: o2, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
|
|
87
89
|
}
|
|
88
90
|
e2.highlightInfos = [], N(t2, e2);
|
|
89
91
|
}
|
|
@@ -91,13 +93,13 @@ function N(t2, e2) {
|
|
|
91
93
|
if (!e2.clickSet) return;
|
|
92
94
|
const i2 = e2.clickSet, n2 = i2.variables;
|
|
93
95
|
if (!n2 || 0 == n2.length) return;
|
|
94
|
-
const s2 = e2.highlightInfos ? e2.highlightInfos : [],
|
|
95
|
-
for (const t3 of s2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex <
|
|
96
|
+
const s2 = e2.highlightInfos ? e2.highlightInfos : [], o2 = e2.cacheDatas ? e2.cacheDatas : [], l2 = [], c2 = [];
|
|
97
|
+
for (const t3 of s2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex < o2.length && l2.push(o2[t3.dataIndex]));
|
|
96
98
|
for (const e3 of n2) {
|
|
97
99
|
if (!e3.fieldName || !e3.variable) continue;
|
|
98
100
|
const n3 = [];
|
|
99
101
|
for (const t3 of l2) {
|
|
100
|
-
const i3 =
|
|
102
|
+
const i3 = r(t3, e3.fieldName, void 0);
|
|
101
103
|
null != i3 && n3.push(i3);
|
|
102
104
|
}
|
|
103
105
|
i2.multiple ? a(t2.entity, e3.variable, n3) : a(t2.entity, e3.variable, n3.length > 0 ? n3[0] : void 0);
|
|
@@ -105,22 +107,22 @@ function N(t2, e2) {
|
|
|
105
107
|
}
|
|
106
108
|
function y(t2, e2, i2) {
|
|
107
109
|
const n2 = e2.items ? e2.items : [], s2 = e2.props ? e2.props.orderByTarget : "";
|
|
108
|
-
let
|
|
109
|
-
if ("x" == s2 || "X" == s2)
|
|
110
|
+
let o2 = null;
|
|
111
|
+
if ("x" == s2 || "X" == s2) o2 = "__x";
|
|
110
112
|
else if (s2) {
|
|
111
113
|
for (const t3 of n2) if (t3.uuid == s2) {
|
|
112
114
|
const e3 = t3.props ? t3.props : {}, i3 = e3.yaxisSource, n3 = e3.yaxisField;
|
|
113
115
|
if (n3 && (!i3 || "variable" == i3)) {
|
|
114
|
-
|
|
116
|
+
o2 = n3;
|
|
115
117
|
break;
|
|
116
118
|
}
|
|
117
119
|
if ("formula" == i3 && e3.formula) {
|
|
118
|
-
|
|
120
|
+
o2 = t3.uuid + "_field";
|
|
119
121
|
break;
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
|
-
if (!
|
|
125
|
+
if (!o2) return;
|
|
124
126
|
const a2 = e2.props ? e2.props.orderSource : "";
|
|
125
127
|
let l2 = e2.props ? e2.props.orderFix : "";
|
|
126
128
|
if ("variable" == a2) {
|
|
@@ -128,18 +130,18 @@ function y(t2, e2, i2) {
|
|
|
128
130
|
l2 = f(t2, i3);
|
|
129
131
|
}
|
|
130
132
|
l2 = "desc" == l2 || "DESC" == l2 ? "desc" : "asc", i2.sort((t3, e3) => {
|
|
131
|
-
const i3 =
|
|
133
|
+
const i3 = r(t3, o2, void 0), n3 = r(e3, o2, void 0);
|
|
132
134
|
return "desc" === l2 ? n3 - i3 : i3 - n3;
|
|
133
135
|
});
|
|
134
136
|
}
|
|
135
137
|
function S(t2, e2, i2, n2, s2) {
|
|
136
138
|
if (!i2) return i2;
|
|
137
|
-
const
|
|
138
|
-
if (!
|
|
139
|
+
const o2 = e2.props ? e2.props : {};
|
|
140
|
+
if (!o2.limitQuantity) return i2;
|
|
139
141
|
let a2 = null;
|
|
140
|
-
if (
|
|
142
|
+
if (o2.itemNumVariable ? (a2 = f(t2, o2.itemNumVariable), a2 = parseInt(a2)) : a2 = o2.itemNumFix ? o2.itemNumFix : 10, null == a2 || null == a2 || isNaN(a2)) return i2;
|
|
141
143
|
if (i2.length < a2) return i2;
|
|
142
|
-
const l2 =
|
|
144
|
+
const l2 = o2.overItemAlias, c2 = [], u2 = {};
|
|
143
145
|
n2 = n2 || [], s2 = s2 || [];
|
|
144
146
|
for (let t3 = 0; t3 < i2.length; t3++) {
|
|
145
147
|
const e3 = i2[t3];
|
|
@@ -148,14 +150,14 @@ function S(t2, e2, i2, n2, s2) {
|
|
|
148
150
|
if (!l2) break;
|
|
149
151
|
for (const t4 of n2) {
|
|
150
152
|
if (!t4) continue;
|
|
151
|
-
let i3 =
|
|
153
|
+
let i3 = r(e3, t4, void 0);
|
|
152
154
|
i3 = null == i3 || null == i3 ? "" : i3, u2[t4] || (u2[t4] = []);
|
|
153
155
|
const n3 = u2[t4];
|
|
154
156
|
n3.includes(i3) || n3.push(i3);
|
|
155
157
|
}
|
|
156
158
|
for (const t4 of s2) {
|
|
157
159
|
if (!t4) continue;
|
|
158
|
-
const i3 =
|
|
160
|
+
const i3 = r(e3, t4, void 0);
|
|
159
161
|
if (isNaN(i3)) continue;
|
|
160
162
|
const n3 = u2[t4];
|
|
161
163
|
isNaN(n3) ? u2[t4] = i3 : u2[t4] = i3 + n3;
|
|
@@ -187,7 +189,7 @@ function F(t2, e2, i2) {
|
|
|
187
189
|
function _(t2, e2) {
|
|
188
190
|
let i2;
|
|
189
191
|
for (const n2 of t2) {
|
|
190
|
-
const t3 = parseFloat(
|
|
192
|
+
const t3 = parseFloat(r(n2, e2, null));
|
|
191
193
|
(void 0 === i2 || !isNaN(t3) && t3 < i2) && (i2 = t3);
|
|
192
194
|
}
|
|
193
195
|
return i2;
|
|
@@ -195,7 +197,7 @@ function _(t2, e2) {
|
|
|
195
197
|
function A(t2, e2) {
|
|
196
198
|
let i2;
|
|
197
199
|
for (const n2 of t2) {
|
|
198
|
-
const t3 = parseFloat(
|
|
200
|
+
const t3 = parseFloat(r(n2, e2, null));
|
|
199
201
|
(void 0 === i2 || !isNaN(t3) && t3 > i2) && (i2 = t3);
|
|
200
202
|
}
|
|
201
203
|
return i2;
|
|
@@ -203,7 +205,7 @@ function A(t2, e2) {
|
|
|
203
205
|
function M(t2, e2) {
|
|
204
206
|
let i2;
|
|
205
207
|
for (const n2 of t2) {
|
|
206
|
-
const t3 = parseFloat(
|
|
208
|
+
const t3 = parseFloat(r(n2, e2, null));
|
|
207
209
|
void 0 === i2 ? i2 = t3 : isNaN(t3) || (i2 += t3);
|
|
208
210
|
}
|
|
209
211
|
return i2;
|
|
@@ -218,11 +220,11 @@ function w(t2, e2, i2, n2) {
|
|
|
218
220
|
const s2 = l(t2);
|
|
219
221
|
for (const e3 of s2) {
|
|
220
222
|
let s3 = null;
|
|
221
|
-
s3 = e3.startsWith("${row.") ?
|
|
223
|
+
s3 = e3.startsWith("${row.") ? r(i2, e3.substring(6, e3.length - 1), null) : c(n2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), s3);
|
|
222
224
|
}
|
|
223
225
|
t2.includes("return ") || (t2 = "return " + t2);
|
|
224
|
-
const
|
|
225
|
-
return p(
|
|
226
|
+
const o2 = new Function("params", t2);
|
|
227
|
+
return p(o2, n2), o2({ pageContext: n2, row: i2 });
|
|
226
228
|
}
|
|
227
229
|
function $(t2, e2) {
|
|
228
230
|
if (!t2 || !t2.$el) return;
|
|
@@ -246,7 +248,7 @@ function j(t2, e2, i2) {
|
|
|
246
248
|
}
|
|
247
249
|
if (s2 && t2) {
|
|
248
250
|
for (const i3 of t2) if (i3.prop && i3.value) {
|
|
249
|
-
const t3 =
|
|
251
|
+
const t3 = o(e2, i3.value, "input-text", false), n3 = i3.prop.substring(2, i3.prop.length - 1).split(".");
|
|
250
252
|
null != t3 && u(e2.entity, n3, t3);
|
|
251
253
|
}
|
|
252
254
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isMobileBrowser as e, isPromise as n } from "agilebuilder-ui/src/utils/common-util";
|
|
2
|
-
import { getAdditionalParamMap as t, standardEvents as
|
|
2
|
+
import { getAdditionalParamMap as t, standardEvents as o, judgeDataNumber as i, dealAfterOperate as r } from "./standard-event.js";
|
|
3
3
|
import { validateDataModelFunc as u } from "./validator-util.js";
|
|
4
4
|
import { getComponentRef as c, getComponentRefByCode as l } from "../global-refs.js";
|
|
5
5
|
import { ElMessage as a } from "element-plus";
|
|
@@ -24,7 +24,7 @@ function x(e2, n2) {
|
|
|
24
24
|
n3[e4.eventName] = t3;
|
|
25
25
|
} catch (n4) {
|
|
26
26
|
const t4 = `自定义方法${e4.eventName}解析失败,请检查函数体是否正确`;
|
|
27
|
-
a.error(t4);
|
|
27
|
+
console.error(t4, n4), a.error(t4);
|
|
28
28
|
}
|
|
29
29
|
} else {
|
|
30
30
|
let t3 = e4.componentUuid + "_";
|
|
@@ -33,7 +33,7 @@ function x(e2, n2) {
|
|
|
33
33
|
n3[t3] = new Function("params", e4.jsContent);
|
|
34
34
|
} catch (n4) {
|
|
35
35
|
let t4 = "";
|
|
36
|
-
e4.title && (t4 += e4.title + "的"), e4.label && (t4 += e4.label), t4 += "事件解析失败,请检查事件函数体是否正确", a.error(t4);
|
|
36
|
+
e4.title && (t4 += e4.title + "的"), e4.label && (t4 += e4.label), t4 += "事件解析失败,请检查事件函数体是否正确", a.error(t4), console.error(t4, n4);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}), n3;
|
|
@@ -43,7 +43,7 @@ function x(e2, n2) {
|
|
|
43
43
|
for (const t3 in n3) {
|
|
44
44
|
j(n3[t3], e3);
|
|
45
45
|
}
|
|
46
|
-
}(n2, t2), n2.customEvents = t2;
|
|
46
|
+
}(n2, t2), console.log("initPage customEvents", t2), n2.customEvents = t2;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
function k(e2, n2) {
|
|
@@ -81,154 +81,154 @@ function O(e2) {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
function h(e2, n2, t2,
|
|
85
|
-
return w(e2, n2, t2,
|
|
84
|
+
function h(e2, n2, t2, o2, i2) {
|
|
85
|
+
return w(e2, n2, t2, o2, true, i2, false);
|
|
86
86
|
}
|
|
87
|
-
function y(e2, n2, t2,
|
|
87
|
+
function y(e2, n2, t2, o2, i2) {
|
|
88
88
|
var _a, _b;
|
|
89
|
-
if (
|
|
89
|
+
if (o2 && "change" === o2) {
|
|
90
90
|
const e3 = n2.subTableWatchProps;
|
|
91
91
|
if (e3) for (const n3 in e3) {
|
|
92
|
-
const
|
|
93
|
-
|
|
92
|
+
const o3 = e3[n3], i3 = (_b = (_a = t2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
|
|
93
|
+
o3 && o3.indexOf(i3) >= 0 && g.$emit("_refreshSubTable_" + n3, { propName: i3 });
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
return w(e2, n2, t2,
|
|
96
|
+
return w(e2, n2, t2, o2, true, i2, true);
|
|
97
97
|
}
|
|
98
|
-
function E(e2, n2, t2,
|
|
99
|
-
return y(e2, n2, t2, "afterInit",
|
|
98
|
+
function E(e2, n2, t2, o2) {
|
|
99
|
+
return y(e2, n2, t2, "afterInit", o2);
|
|
100
100
|
}
|
|
101
|
-
function N(e2, n2, t2,
|
|
102
|
-
return w(e2, n2, t2,
|
|
101
|
+
function N(e2, n2, t2, o2, i2) {
|
|
102
|
+
return w(e2, n2, t2, o2, false, i2, false);
|
|
103
103
|
}
|
|
104
|
-
function w(e2, t2,
|
|
105
|
-
const a2 =
|
|
104
|
+
function w(e2, t2, o2, r2, u2, c2, l2) {
|
|
105
|
+
const a2 = o2 && o2.runtime && o2.runtime.events ? o2.runtime.events : [];
|
|
106
106
|
let s2;
|
|
107
107
|
if (l2 || !function(e3) {
|
|
108
108
|
return e3 && S.indexOf(e3) >= 0;
|
|
109
109
|
}(r2)) {
|
|
110
110
|
if (s2 = $(t2, a2, r2), u2) {
|
|
111
|
-
return H(t2,
|
|
111
|
+
return H(t2, o2, s2, R(t2, o2, e2, c2));
|
|
112
112
|
}
|
|
113
113
|
return s2;
|
|
114
114
|
}
|
|
115
|
-
!function(e3, t3,
|
|
116
|
-
const r3 =
|
|
115
|
+
!function(e3, t3, o3) {
|
|
116
|
+
const r3 = i(t3, o3.ids);
|
|
117
117
|
if (!r3) return;
|
|
118
|
-
if (void 0 !== e3.canClick && false === e3.canClick) return;
|
|
119
|
-
Q(
|
|
120
|
-
if (true ===
|
|
118
|
+
if (void 0 !== e3.canClick && false === e3.canClick) return void console.log("不能重复点击");
|
|
119
|
+
Q(o3).then((i2) => {
|
|
120
|
+
if (true === i2.canExecute) {
|
|
121
121
|
e3.clickUuid = t3.uuid, e3.canClick = false;
|
|
122
|
-
const
|
|
122
|
+
const i3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = $(e3, i3, "beforeValidateForm");
|
|
123
123
|
let u3;
|
|
124
|
-
if (r4 && (u3 = H(e3, t3, r4,
|
|
124
|
+
if (r4 && (u3 = H(e3, t3, r4, o3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
|
|
125
125
|
n(u3) ? u3.then((n2) => {
|
|
126
|
-
n2 && true === n2 ? T(e3, t3,
|
|
126
|
+
n2 && true === n2 ? T(e3, t3, o3) : e3.canClick = true;
|
|
127
127
|
}).catch((n2) => {
|
|
128
|
-
e3.canClick = true;
|
|
129
|
-
}) : T(e3, t3,
|
|
128
|
+
console.log(n2), e3.canClick = true;
|
|
129
|
+
}) : T(e3, t3, o3);
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
-
}(t2,
|
|
132
|
+
}(t2, o2, U(e2, t2, o2, c2));
|
|
133
133
|
}
|
|
134
134
|
const S = ["click", "suffixClick", "prefixClick", "menuClick"];
|
|
135
135
|
function P(e2, n2) {
|
|
136
136
|
return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
|
|
137
137
|
}
|
|
138
|
-
function R(e2, n2, t2,
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
return null != t2 && (
|
|
138
|
+
function R(e2, n2, t2, o2) {
|
|
139
|
+
const i2 = {};
|
|
140
|
+
if (o2) for (const e3 in o2) i2[e3] = o2[e3];
|
|
141
|
+
return null != t2 && (i2._value = t2), e2 && (i2.pageContext = e2), n2 && (i2.configureObj = n2), i2;
|
|
142
142
|
}
|
|
143
|
-
function T(e2, t2,
|
|
144
|
-
const
|
|
143
|
+
function T(e2, t2, o2) {
|
|
144
|
+
const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
|
|
145
145
|
let r2 = true;
|
|
146
|
-
(
|
|
147
|
-
const c2 = z(e2,
|
|
146
|
+
console.log("doValidateForm---eventParams=", o2), (o2 == null ? void 0 : o2.skipValidate) && (r2 = false);
|
|
147
|
+
const c2 = z(e2, i2, "click");
|
|
148
148
|
if (c2) {
|
|
149
149
|
const e3 = function(e4, n2) {
|
|
150
150
|
return e4 && v.includes(n2.eventName);
|
|
151
151
|
}(c2.isStandard, c2.event);
|
|
152
152
|
e3 && (r2 = false);
|
|
153
153
|
}
|
|
154
|
-
u(e2, t2, r2).then((
|
|
155
|
-
if (!
|
|
156
|
-
const r3 = D(e2, t2,
|
|
154
|
+
u(e2, t2, r2).then((i3) => {
|
|
155
|
+
if (!i3) return void (e2.canClick = true);
|
|
156
|
+
const r3 = D(e2, t2, o2);
|
|
157
157
|
r3 ? n(r3) ? r3.then((n2) => {
|
|
158
|
-
n2 ? A(e2, t2, c2,
|
|
158
|
+
n2 ? A(e2, t2, c2, o2) : e2.canClick = true;
|
|
159
159
|
}).catch((n2) => {
|
|
160
|
-
e2.canClick = true;
|
|
161
|
-
}) : A(e2, t2, c2,
|
|
160
|
+
console.error(n2), e2.canClick = true;
|
|
161
|
+
}) : A(e2, t2, c2, o2) : e2.canClick = true;
|
|
162
162
|
}).catch((n2) => {
|
|
163
|
-
e2.canClick = true;
|
|
163
|
+
console.error(n2), e2.canClick = true;
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
function F(e2, n2, t2,
|
|
167
|
-
const r2 = U(e2, n2, t2,
|
|
168
|
-
A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [],
|
|
166
|
+
function F(e2, n2, t2, o2, i2) {
|
|
167
|
+
const r2 = U(e2, n2, t2, i2);
|
|
168
|
+
A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], o2), r2);
|
|
169
169
|
}
|
|
170
|
-
function U(e2, n2, t2,
|
|
171
|
-
const
|
|
170
|
+
function U(e2, n2, t2, o2) {
|
|
171
|
+
const i2 = n2.code, r2 = n2.version, u2 = P(n2, t2);
|
|
172
172
|
if (u2) {
|
|
173
173
|
const e3 = c(n2, u2), t3 = e3 ? e3.getSelections() : null, l2 = e3 ? e3.getSelectionIds() : null;
|
|
174
|
-
|
|
175
|
-
_(n2) && (
|
|
174
|
+
o2 || (o2 = {}), o2.tableUuid = u2, o2.listCode = f(i2, r2, u2);
|
|
175
|
+
_(n2) && (o2.selections = t3, o2.id = l2 && l2.length > 0 ? l2[0] : null, o2.ids = l2);
|
|
176
176
|
const a2 = e3 ? e3.getTableConfigure() : null;
|
|
177
|
-
|
|
177
|
+
o2.tableConfigure = a2;
|
|
178
178
|
}
|
|
179
|
-
return R(n2, t2, e2,
|
|
179
|
+
return R(n2, t2, e2, o2);
|
|
180
180
|
}
|
|
181
181
|
function D(e2, n2, t2) {
|
|
182
|
-
const
|
|
183
|
-
let
|
|
184
|
-
return
|
|
182
|
+
const o2 = $(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
|
|
183
|
+
let i2;
|
|
184
|
+
return o2 && (i2 = H(e2, n2, o2, null, t2)), void 0 === i2 || i2;
|
|
185
185
|
}
|
|
186
186
|
function L(e2, n2, t2) {
|
|
187
|
-
const
|
|
188
|
-
g.$emit(
|
|
187
|
+
const o2 = e2.code + "_";
|
|
188
|
+
g.$emit(o2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
|
|
189
189
|
}
|
|
190
190
|
function _(e2, n2) {
|
|
191
191
|
return !(!e2.pageType || "list" !== e2.pageType);
|
|
192
192
|
}
|
|
193
|
-
function V(e2, t2,
|
|
194
|
-
const
|
|
193
|
+
function V(e2, t2, o2) {
|
|
194
|
+
const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = $(e2, i2, "afterClick");
|
|
195
195
|
if (r2) {
|
|
196
|
-
const
|
|
197
|
-
n(
|
|
196
|
+
const i3 = H(e2, t2, r2, null, o2);
|
|
197
|
+
n(i3) ? i3.finally(() => {
|
|
198
198
|
e2.canClick = true;
|
|
199
199
|
}) : e2.canClick = true;
|
|
200
200
|
} else e2.canClick = true;
|
|
201
201
|
}
|
|
202
|
-
function q(e2, n2, t2,
|
|
203
|
-
|
|
202
|
+
function q(e2, n2, t2, o2, i2, u2) {
|
|
203
|
+
o2 ? (e2.result = i2, e2.canClick = true) : r(e2, n2, i2, "", u2);
|
|
204
204
|
const c2 = $(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
|
|
205
205
|
c2 && H(e2, n2, c2, t2);
|
|
206
206
|
}
|
|
207
|
-
function A(e2, t2,
|
|
207
|
+
function A(e2, t2, o2, i2) {
|
|
208
208
|
let r2 = t2, u2 = t2.props.linkPage;
|
|
209
209
|
if (u2 && u2 instanceof Array) {
|
|
210
210
|
const n2 = function(e3) {
|
|
211
211
|
let n3 = e3 ? e3.row : null;
|
|
212
212
|
n3 || (n3 = e3 && e3.selections && e3.selections.length > 0 ? e3.selections[0] : null);
|
|
213
213
|
return n3;
|
|
214
|
-
}(
|
|
214
|
+
}(i2), o3 = d(e2, t2, u2, n2);
|
|
215
215
|
let c2, l2 = false;
|
|
216
|
-
|
|
216
|
+
o3 && (l2 = o3.show, c2 = l2 ? o3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = m(t2), r2.props.linkPage = u2);
|
|
217
217
|
}
|
|
218
|
-
u2 && u2.jumpPageUrl ? (e2.canClick = true, L(e2, r2,
|
|
219
|
-
const r3 =
|
|
218
|
+
u2 && u2.jumpPageUrl ? (e2.canClick = true, L(e2, r2, i2)) : function(e3, t3, o3, i3) {
|
|
219
|
+
const r3 = o3, u3 = _(e3);
|
|
220
220
|
if (r3) {
|
|
221
|
-
const
|
|
221
|
+
const o4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = H(e3, t3, o4, i3);
|
|
222
222
|
if (function(e4, n2) {
|
|
223
223
|
return e4 && ("exportForm" === n2.eventName || "exportPDF" === n2.eventName || "import" === n2.eventName || "assign" === n2.eventName || "copyTask" === n2.eventName || "addSigner" === n2.eventName || "returnTaskTo" === n2.eventName || "removeSigner" === n2.eventName || "saveQueryCharts" === n2.eventName || "addTransactor" === n2.eventName || "removeTransactor" === n2.eventName);
|
|
224
224
|
}(c2, l2)) return void (e3.canClick = true);
|
|
225
225
|
n(a2) ? a2.then((n2) => {
|
|
226
|
-
n2 ? q(e3, t3,
|
|
226
|
+
n2 ? q(e3, t3, i3, c2, n2, u3) : e3.canClick = true;
|
|
227
227
|
}).catch((n2) => {
|
|
228
|
-
e3.canClick = true;
|
|
229
|
-
}) : q(e3, t3,
|
|
230
|
-
} else q(e3, t3,
|
|
231
|
-
}(e2, t2,
|
|
228
|
+
console.error(n2), e3.canClick = true;
|
|
229
|
+
}) : q(e3, t3, i3, c2, a2, u3);
|
|
230
|
+
} else q(e3, t3, i3, false, null, u3);
|
|
231
|
+
}(e2, t2, o2, i2);
|
|
232
232
|
}
|
|
233
233
|
function I(e2, n2) {
|
|
234
234
|
const t2 = e2.customEvents;
|
|
@@ -239,10 +239,10 @@ function I(e2, n2) {
|
|
|
239
239
|
}
|
|
240
240
|
function $(e2, n2, t2) {
|
|
241
241
|
if (n2 && t2) {
|
|
242
|
-
const
|
|
243
|
-
if (
|
|
244
|
-
const n3 =
|
|
245
|
-
return n3.isStandard ?
|
|
242
|
+
const i2 = n2.filter((e3) => e3.name === t2);
|
|
243
|
+
if (i2 && i2.length > 0) {
|
|
244
|
+
const n3 = i2[0];
|
|
245
|
+
return n3.isStandard ? o[n3.eventName] : I(e2, n3);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}
|
|
@@ -256,38 +256,38 @@ function B(e2, n2) {
|
|
|
256
256
|
}
|
|
257
257
|
function z(e2, n2, t2) {
|
|
258
258
|
if (n2 && t2) {
|
|
259
|
-
const
|
|
260
|
-
if (
|
|
261
|
-
const n3 =
|
|
262
|
-
return n3.isStandard ? { func:
|
|
259
|
+
const i2 = n2.filter((e3) => e3.name === t2);
|
|
260
|
+
if (i2 && i2.length > 0) {
|
|
261
|
+
const n3 = i2[0];
|
|
262
|
+
return n3.isStandard ? { func: o[n3.eventName], isStandard: true, event: n3 } : { func: I(e2, n3), isStandard: false, event: n3 };
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
function H(e2, n2, t2,
|
|
266
|
+
function H(e2, n2, t2, o2, i2) {
|
|
267
267
|
if (t2) {
|
|
268
|
-
if (
|
|
269
|
-
return t2.apply(t2, [
|
|
268
|
+
if (o2 || (o2 = { pageContext: e2, configureObj: n2 }), i2 && o2) for (const e3 in i2) o2[e3] = i2[e3];
|
|
269
|
+
return t2.apply(t2, [o2]);
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
function Q(e2) {
|
|
273
|
-
const n2 = e2.pageContext,
|
|
273
|
+
const n2 = e2.pageContext, o2 = e2.configureObj, i2 = _(n2);
|
|
274
274
|
let r2 = [];
|
|
275
|
-
if (
|
|
275
|
+
if (i2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
|
|
276
276
|
else {
|
|
277
277
|
const e3 = n2.entity.data;
|
|
278
278
|
r2.push(e3);
|
|
279
279
|
}
|
|
280
|
-
const u2 =
|
|
281
|
-
return new Promise((e3,
|
|
280
|
+
const u2 = o2.props.base.condition;
|
|
281
|
+
return new Promise((e3, o3) => {
|
|
282
282
|
if (null == u2 || "" === u2 || null == r2 || 0 === r2.length) e3({ canExecute: true });
|
|
283
283
|
else {
|
|
284
|
-
const
|
|
284
|
+
const o4 = n2.entity.context, i3 = t(n2), c2 = true, l2 = n2.tableName;
|
|
285
285
|
let f2, m2, g2 = true;
|
|
286
286
|
for (let e4 = 0; e4 < r2.length; e4++) {
|
|
287
287
|
const t2 = r2[e4];
|
|
288
288
|
for (let e5 = 0; e5 < u2.length; e5++) {
|
|
289
289
|
const r3 = u2[e5], a2 = r3.toolTips, p2 = r3.conditionList;
|
|
290
|
-
if (!s(p2, t2,
|
|
290
|
+
if (!s(p2, t2, i3, o4, c2, l2, null, n2)) {
|
|
291
291
|
g2 = false, f2 = a2, m2 = t2;
|
|
292
292
|
break;
|
|
293
293
|
}
|
|
@@ -297,33 +297,33 @@ function Q(e2) {
|
|
|
297
297
|
}
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
|
-
function W(e2, n2, t2,
|
|
301
|
-
var
|
|
302
|
-
n2 && (G("loadBeforeSend", N(null, (
|
|
300
|
+
function W(e2, n2, t2, o2) {
|
|
301
|
+
var i2;
|
|
302
|
+
n2 && (G("loadBeforeSend", N(null, (i2 = { pageContext: t2, configureObj: o2 }).pageContext, i2.configureObj, "beforeListLoad", i2), e2), G("beforeRequest", function(e3) {
|
|
303
303
|
return N(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
|
|
304
|
-
}({ pageContext: t2, configureObj:
|
|
304
|
+
}({ pageContext: t2, configureObj: o2 }), e2), G("gridDataLoaded", function(e3) {
|
|
305
305
|
return N(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
|
|
306
|
-
}({ pageContext: t2, configureObj:
|
|
306
|
+
}({ pageContext: t2, configureObj: o2 }), e2), G("gridComplete", function(e3) {
|
|
307
307
|
return N(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
|
|
308
|
-
}({ pageContext: t2, configureObj:
|
|
308
|
+
}({ pageContext: t2, configureObj: o2 }), e2), G("resizeHeight", function(e3) {
|
|
309
309
|
return N(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
|
|
310
|
-
}({ pageContext: t2, configureObj:
|
|
310
|
+
}({ pageContext: t2, configureObj: o2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), G("beforeInsertRow", function(e3) {
|
|
311
311
|
return N(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
|
|
312
|
-
}({ pageContext: t2, configureObj:
|
|
312
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("afterInsertRow", function(e3) {
|
|
313
313
|
return N(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
|
|
314
|
-
}({ pageContext: t2, configureObj:
|
|
314
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeDelete", function(e3) {
|
|
315
315
|
return N(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
|
|
316
|
-
}({ pageContext: t2, configureObj:
|
|
316
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("afterDelete", function(e3) {
|
|
317
317
|
return N(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
|
|
318
|
-
}({ pageContext: t2, configureObj:
|
|
318
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeEdit", function(e3) {
|
|
319
319
|
return N(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
|
|
320
|
-
}({ pageContext: t2, configureObj:
|
|
320
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeRestore", function(e3) {
|
|
321
321
|
return N(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
|
|
322
|
-
}({ pageContext: t2, configureObj:
|
|
322
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeRestoreValidate", function(e3) {
|
|
323
323
|
return N(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
|
|
324
|
-
}({ pageContext: t2, configureObj:
|
|
324
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), function(e3, n3, t3) {
|
|
325
325
|
n3 && (t3[e3] = n3);
|
|
326
|
-
}("filterDataEvent", N(null, t2,
|
|
326
|
+
}("filterDataEvent", N(null, t2, o2, "filter-data", { pageContext: t2, configureObj: o2 }), e2));
|
|
327
327
|
}
|
|
328
328
|
function G(e2, n2, t2) {
|
|
329
329
|
n2 && (t2[e2] = n2);
|
|
@@ -355,7 +355,7 @@ function ne(e2, n2, t2) {
|
|
|
355
355
|
function te(e2) {
|
|
356
356
|
return N(null, e2.pageContext, e2.configureObj, "before-upload", e2);
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function oe(n2) {
|
|
359
359
|
let t2 = true;
|
|
360
360
|
if (!e()) {
|
|
361
361
|
const e2 = n2 && n2.events ? n2.events : [];
|
|
@@ -366,19 +366,19 @@ function ie(n2) {
|
|
|
366
366
|
}
|
|
367
367
|
return t2;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
return H(e2, n2, $(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption:
|
|
369
|
+
function ie(e2, n2, t2, o2, i2) {
|
|
370
|
+
return H(e2, n2, $(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: o2, ...i2 });
|
|
371
371
|
}
|
|
372
372
|
function re(n2, t2) {
|
|
373
|
-
let
|
|
373
|
+
let o2 = true;
|
|
374
374
|
if (e()) {
|
|
375
375
|
const e2 = z(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
|
|
376
376
|
if (e2) {
|
|
377
|
-
const n3 = e2.isStandard, t3 = e2.event,
|
|
378
|
-
n3 &&
|
|
377
|
+
const n3 = e2.isStandard, t3 = e2.event, i2 = navigator ? navigator.userAgent : null;
|
|
378
|
+
n3 && i2 && (i2.indexOf(" uni-app ") > 0 ? (b.includes(t3.eventName) || C.includes(t3.eventName)) && (o2 = false) : C.includes(t3.eventName) && (o2 = false));
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
return
|
|
381
|
+
return o2;
|
|
382
382
|
}
|
|
383
383
|
export {
|
|
384
384
|
j as appendDefaultMethods,
|
|
@@ -401,12 +401,12 @@ export {
|
|
|
401
401
|
J as gridSelectRecord,
|
|
402
402
|
M as gridSelectionChange,
|
|
403
403
|
E as handleAfterInitEvent,
|
|
404
|
-
|
|
404
|
+
ie as handleChartEvent,
|
|
405
405
|
h as handleEvent,
|
|
406
406
|
y as handleFormEvent,
|
|
407
407
|
ne as headerClick,
|
|
408
408
|
x as initPageEvents,
|
|
409
|
-
|
|
409
|
+
oe as isShowComponent,
|
|
410
410
|
re as isShowMobileEvent,
|
|
411
411
|
O as removeCustomFuncFromWindow,
|
|
412
412
|
Z as rowClick,
|