super-page-runtime 2.3.40 → 2.3.41-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/api/page-expose-util.js +139 -127
- package/dist/es/components/runtime/utils/events/event-util.js +234 -222
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +500 -521
- package/dist/es/components/runtime/utils/events/validator-util.js +69 -72
- 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/common/home-chart-condition-render.vue.js +8 -8
- 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 +95 -100
- 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.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 +9 -11
- 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 +53 -53
- 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 +6 -7
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +5 -6
- 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 +45 -44
- 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 +6 -8
- 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 +8 -9
- 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 +8 -10
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- 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 +52 -53
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { isMobileBrowser as e, isPromise as n } from "agilebuilder-ui/src/utils/common-util";
|
|
2
|
-
import { getAdditionalParamMap as t, standardEvents as
|
|
3
|
-
import { isNotNeedValidateRequired as
|
|
4
|
-
import { getComponentRef as
|
|
5
|
-
import { ElMessage as
|
|
6
|
-
import { analysisCondition as
|
|
7
|
-
import { getListCode as
|
|
2
|
+
import { getAdditionalParamMap as t, standardEvents as i, judgeDataNumber as o, checkAndTipFileUploading as r, dealAfterOperate as u } from "./standard-event.js";
|
|
3
|
+
import { isNotNeedValidateRequired as c, validateDataModelFunc as l } from "./validator-util.js";
|
|
4
|
+
import { getComponentRef as a, getComponentRefByCode as s } from "../global-refs.js";
|
|
5
|
+
import { ElMessage as f } from "element-plus";
|
|
6
|
+
import { analysisCondition as m } from "agilebuilder-ui/src/utils/util";
|
|
7
|
+
import { getListCode as g, deepCopy as p } from "../common-util.js";
|
|
8
8
|
import d from "../eventBus.js";
|
|
9
|
-
import { getValueFromSource as
|
|
9
|
+
import { getValueFromSource as b } from "../page-helper-util.js";
|
|
10
10
|
import { expressJump as v } from "../table-utils.js";
|
|
11
|
-
const
|
|
12
|
-
function
|
|
11
|
+
const C = ["downloadTemplate", "exportForm", "exportPDF", "export", "exportCharts"], x = ["import"];
|
|
12
|
+
function j(e2, n2) {
|
|
13
13
|
if (e2 && e2.customEvents) {
|
|
14
14
|
const t2 = function(e3) {
|
|
15
15
|
const n3 = {};
|
|
@@ -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
|
-
|
|
27
|
+
f.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 += "事件解析失败,请检查事件函数体是否正确",
|
|
36
|
+
e4.title && (t4 += e4.title + "的"), e4.label && (t4 += e4.label), t4 += "事件解析失败,请检查事件函数体是否正确", f.error(t4);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}), n3;
|
|
@@ -41,24 +41,24 @@ function x(e2, n2) {
|
|
|
41
41
|
!function(e3, n3) {
|
|
42
42
|
if (!n3) return;
|
|
43
43
|
for (const t3 in n3) {
|
|
44
|
-
|
|
44
|
+
h(n3[t3], e3);
|
|
45
45
|
}
|
|
46
46
|
}(n2, t2), n2.customEvents = t2;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function k(e2, n2) {
|
|
50
50
|
if (e2.customEvents) return e2.customEvents[n2];
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function h(e2, n2) {
|
|
53
53
|
e2.get = function(e3) {
|
|
54
|
-
return e3 ?
|
|
54
|
+
return e3 ? s(n2, e3) : void 0;
|
|
55
55
|
}, e2.getByUuid = function(e3) {
|
|
56
|
-
return e3 ?
|
|
56
|
+
return e3 ? a(n2, e3) : void 0;
|
|
57
57
|
}, e2.getPageContext = function() {
|
|
58
58
|
return n2;
|
|
59
59
|
}, e2.getContextValue = function(e3) {
|
|
60
60
|
let t2 = n2 && n2.entity ? n2.entity.context : null;
|
|
61
|
-
return t2 = t2 || {},
|
|
61
|
+
return t2 = t2 || {}, b(t2, e3, "context");
|
|
62
62
|
}, e2.getContext = function() {
|
|
63
63
|
return n2 && n2.entity ? n2.entity.context : {};
|
|
64
64
|
}, e2.getSystem = function() {
|
|
@@ -70,7 +70,7 @@ function k(e2, n2) {
|
|
|
70
70
|
}, e2.getPage = function() {
|
|
71
71
|
return n2 && n2.entity ? n2.entity.page : {};
|
|
72
72
|
}, e2.getCustomFunc = function(e3) {
|
|
73
|
-
return
|
|
73
|
+
return k(n2, e3);
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
function O(e2) {
|
|
@@ -81,170 +81,171 @@ function O(e2) {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function y(e2, n2, t2, i2, o2) {
|
|
85
|
+
return S(e2, n2, t2, i2, true, o2, false);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function E(e2, n2, t2, i2, o2) {
|
|
88
88
|
var _a, _b;
|
|
89
|
-
if (
|
|
89
|
+
if (i2 && "change" === i2) {
|
|
90
90
|
const e3 = n2.subTableWatchProps;
|
|
91
91
|
if (e3) for (const n3 in e3) {
|
|
92
|
-
const
|
|
93
|
-
|
|
92
|
+
const i3 = e3[n3], o3 = (_b = (_a = t2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
|
|
93
|
+
i3 && i3.indexOf(o3) >= 0 && d.$emit("_refreshSubTable_" + n3, { propName: o3 });
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
return
|
|
97
|
-
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
100
|
-
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
103
|
-
}
|
|
104
|
-
function
|
|
105
|
-
const
|
|
106
|
-
let
|
|
107
|
-
if (
|
|
108
|
-
return e3 &&
|
|
109
|
-
}(
|
|
110
|
-
if (
|
|
111
|
-
return
|
|
96
|
+
return S(e2, n2, t2, i2, true, o2, true);
|
|
97
|
+
}
|
|
98
|
+
function N(e2, n2, t2, i2) {
|
|
99
|
+
return E(e2, n2, t2, "afterInit", i2);
|
|
100
|
+
}
|
|
101
|
+
function w(e2, n2, t2, i2, o2) {
|
|
102
|
+
return S(e2, n2, t2, i2, false, o2, false);
|
|
103
|
+
}
|
|
104
|
+
function S(e2, t2, i2, u2, c2, l2, a2) {
|
|
105
|
+
const s2 = i2 && i2.runtime && i2.runtime.events ? i2.runtime.events : [];
|
|
106
|
+
let f2;
|
|
107
|
+
if (a2 || !function(e3) {
|
|
108
|
+
return e3 && P.indexOf(e3) >= 0;
|
|
109
|
+
}(u2)) {
|
|
110
|
+
if (f2 = B(t2, s2, u2), c2) {
|
|
111
|
+
return Q(t2, i2, f2, T(t2, i2, e2, l2));
|
|
112
112
|
}
|
|
113
|
-
return
|
|
113
|
+
return f2;
|
|
114
114
|
}
|
|
115
|
-
!function(e3, t3,
|
|
116
|
-
const
|
|
117
|
-
if (!
|
|
115
|
+
!function(e3, t3, i3) {
|
|
116
|
+
const u3 = o(t3, i3.ids);
|
|
117
|
+
if (!u3) return;
|
|
118
118
|
if (void 0 !== e3.canClick && false === e3.canClick) return;
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
if (r(e3)) return;
|
|
120
|
+
W(i3).then((o2) => {
|
|
121
|
+
if (true === o2.canExecute) {
|
|
121
122
|
e3.clickUuid = t3.uuid, e3.canClick = false;
|
|
122
|
-
const
|
|
123
|
-
let
|
|
124
|
-
if (
|
|
125
|
-
n(
|
|
126
|
-
n2 && true === n2 ?
|
|
123
|
+
const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r2 = B(e3, o3, "beforeValidateForm");
|
|
124
|
+
let u4;
|
|
125
|
+
if (r2 && (u4 = Q(e3, t3, r2, i3)), void 0 === u4 && (u4 = true), !u4) return void (e3.canClick = true);
|
|
126
|
+
n(u4) ? u4.then((n2) => {
|
|
127
|
+
n2 && true === n2 ? F(e3, t3, i3) : e3.canClick = true;
|
|
127
128
|
}).catch((n2) => {
|
|
128
129
|
e3.canClick = true;
|
|
129
|
-
}) :
|
|
130
|
+
}) : F(e3, t3, i3);
|
|
130
131
|
}
|
|
131
132
|
});
|
|
132
|
-
}(t2,
|
|
133
|
+
}(t2, i2, D(e2, t2, i2, l2));
|
|
133
134
|
}
|
|
134
|
-
const
|
|
135
|
-
function
|
|
135
|
+
const P = ["click", "suffixClick", "prefixClick", "menuClick"];
|
|
136
|
+
function R(e2, n2) {
|
|
136
137
|
return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
return null != t2 && (
|
|
139
|
+
function T(e2, n2, t2, i2) {
|
|
140
|
+
const o2 = {};
|
|
141
|
+
if (i2) for (const e3 in i2) o2[e3] = i2[e3];
|
|
142
|
+
return null != t2 && (o2._value = t2), e2 && (o2.pageContext = e2), n2 && (o2.configureObj = n2), o2;
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
-
const
|
|
144
|
+
function F(e2, t2, i2) {
|
|
145
|
+
const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
|
|
145
146
|
let r2 = true;
|
|
146
|
-
(
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
149
|
-
const e3 =
|
|
150
|
-
|
|
147
|
+
(i2 == null ? void 0 : i2.skipValidate) && (r2 = false);
|
|
148
|
+
const u2 = z(e2, o2, "click");
|
|
149
|
+
if (u2) {
|
|
150
|
+
const e3 = u2.isStandard, n2 = u2.event;
|
|
151
|
+
c(e3, n2) && (r2 = false);
|
|
151
152
|
}
|
|
152
|
-
|
|
153
|
-
if (!
|
|
154
|
-
const r3 =
|
|
153
|
+
l(e2, t2, u2, r2).then((o3) => {
|
|
154
|
+
if (!o3) return void (e2.canClick = true);
|
|
155
|
+
const r3 = L(e2, t2, i2);
|
|
155
156
|
r3 ? n(r3) ? r3.then((n2) => {
|
|
156
|
-
n2 ?
|
|
157
|
+
n2 ? I(e2, t2, u2, i2) : e2.canClick = true;
|
|
157
158
|
}).catch((n2) => {
|
|
158
|
-
|
|
159
|
-
}) :
|
|
159
|
+
e2.canClick = true;
|
|
160
|
+
}) : I(e2, t2, u2, i2) : e2.canClick = true;
|
|
160
161
|
}).catch((n2) => {
|
|
161
|
-
|
|
162
|
+
e2.canClick = true;
|
|
162
163
|
});
|
|
163
164
|
}
|
|
164
|
-
function
|
|
165
|
-
const r2 =
|
|
166
|
-
|
|
165
|
+
function U(e2, n2, t2, i2, o2) {
|
|
166
|
+
const r2 = D(e2, n2, t2, o2);
|
|
167
|
+
I(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
|
|
167
168
|
}
|
|
168
|
-
function
|
|
169
|
-
const
|
|
169
|
+
function D(e2, n2, t2, i2) {
|
|
170
|
+
const o2 = n2.code, r2 = n2.version, u2 = R(n2, t2);
|
|
170
171
|
if (u2) {
|
|
171
|
-
const e3 =
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
const
|
|
175
|
-
|
|
172
|
+
const e3 = a(n2, u2), t3 = e3 ? e3.getSelections() : null, c2 = e3 ? e3.getSelectionIds() : null;
|
|
173
|
+
i2 || (i2 = {}), i2.tableUuid = u2, i2.listCode = g(o2, r2, u2);
|
|
174
|
+
V(n2) && (i2.selections = t3, i2.id = c2 && c2.length > 0 ? c2[0] : null, i2.ids = c2);
|
|
175
|
+
const l2 = e3 ? e3.getTableConfigure() : null;
|
|
176
|
+
i2.tableConfigure = l2;
|
|
176
177
|
}
|
|
177
|
-
return
|
|
178
|
-
}
|
|
179
|
-
function D(e2, n2, t2) {
|
|
180
|
-
const o2 = $(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
|
|
181
|
-
let i2;
|
|
182
|
-
return o2 && (i2 = z(e2, n2, o2, null, t2)), void 0 === i2 || i2;
|
|
178
|
+
return T(n2, t2, e2, i2);
|
|
183
179
|
}
|
|
184
180
|
function L(e2, n2, t2) {
|
|
185
|
-
const
|
|
186
|
-
|
|
181
|
+
const i2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
|
|
182
|
+
let o2;
|
|
183
|
+
return i2 && (o2 = Q(e2, n2, i2, null, t2)), void 0 === o2 || o2;
|
|
187
184
|
}
|
|
188
|
-
function _(e2, n2) {
|
|
185
|
+
function _(e2, n2, t2) {
|
|
186
|
+
const i2 = e2.code + "_";
|
|
187
|
+
d.$emit(i2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
|
|
188
|
+
}
|
|
189
|
+
function V(e2, n2) {
|
|
189
190
|
return !(!e2.pageType || "list" !== e2.pageType);
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
-
const
|
|
192
|
+
function q(e2, t2, i2) {
|
|
193
|
+
const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = B(e2, o2, "afterClick");
|
|
193
194
|
if (r2) {
|
|
194
|
-
const
|
|
195
|
-
n(
|
|
195
|
+
const o3 = Q(e2, t2, r2, null, i2);
|
|
196
|
+
n(o3) ? o3.finally(() => {
|
|
196
197
|
e2.canClick = true;
|
|
197
198
|
}) : e2.canClick = true;
|
|
198
199
|
} else e2.canClick = true;
|
|
199
200
|
}
|
|
200
|
-
function
|
|
201
|
-
|
|
202
|
-
const c2 =
|
|
203
|
-
c2 &&
|
|
201
|
+
function A(e2, n2, t2, i2, o2, r2) {
|
|
202
|
+
i2 ? (e2.result = o2, e2.canClick = true) : u(e2, n2, o2, "", r2);
|
|
203
|
+
const c2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
|
|
204
|
+
c2 && Q(e2, n2, c2, t2);
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
+
function I(e2, t2, i2, o2) {
|
|
206
207
|
let r2 = t2, u2 = t2.props.linkPage;
|
|
207
208
|
if (u2 && u2 instanceof Array) {
|
|
208
209
|
const n2 = function(e3) {
|
|
209
210
|
let n3 = e3 ? e3.row : null;
|
|
210
211
|
n3 || (n3 = e3 && e3.selections && e3.selections.length > 0 ? e3.selections[0] : null);
|
|
211
212
|
return n3;
|
|
212
|
-
}(
|
|
213
|
+
}(o2), i3 = v(e2, t2, u2, n2);
|
|
213
214
|
let c2, l2 = false;
|
|
214
|
-
|
|
215
|
+
i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = p(t2), r2.props.linkPage = u2);
|
|
215
216
|
}
|
|
216
|
-
u2 && u2.jumpPageUrl ? (e2.canClick = true,
|
|
217
|
-
const r3 =
|
|
217
|
+
u2 && u2.jumpPageUrl ? (e2.canClick = true, _(e2, r2, o2)) : function(e3, t3, i3, o3) {
|
|
218
|
+
const r3 = i3, u3 = V(e3);
|
|
218
219
|
if (r3) {
|
|
219
|
-
const
|
|
220
|
+
const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = Q(e3, t3, i4, o3);
|
|
220
221
|
if (function(e4, n2) {
|
|
221
222
|
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);
|
|
222
223
|
}(c2, l2)) return void (e3.canClick = true);
|
|
223
224
|
n(a2) ? a2.then((n2) => {
|
|
224
|
-
n2 ?
|
|
225
|
+
n2 ? A(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
|
|
225
226
|
}).catch((n2) => {
|
|
226
|
-
|
|
227
|
-
}) :
|
|
228
|
-
} else
|
|
229
|
-
}(e2, t2,
|
|
227
|
+
e3.canClick = true;
|
|
228
|
+
}) : A(e3, t3, o3, c2, a2, u3);
|
|
229
|
+
} else A(e3, t3, o3, false, null, u3);
|
|
230
|
+
}(e2, t2, i2, o2);
|
|
230
231
|
}
|
|
231
|
-
function
|
|
232
|
+
function $(e2, n2) {
|
|
232
233
|
const t2 = e2.customEvents;
|
|
233
234
|
if (t2 && n2) {
|
|
234
235
|
let e3 = "";
|
|
235
236
|
return e3 = "object" == typeof n2 ? n2.componentUuid + "_" + n2.name : n2, t2[e3];
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
|
-
function
|
|
239
|
+
function B(e2, n2, t2) {
|
|
239
240
|
if (n2 && t2) {
|
|
240
|
-
const
|
|
241
|
-
if (
|
|
242
|
-
const n3 =
|
|
243
|
-
return n3.isStandard ?
|
|
241
|
+
const o2 = n2.filter((e3) => e3.name === t2);
|
|
242
|
+
if (o2 && o2.length > 0) {
|
|
243
|
+
const n3 = o2[0];
|
|
244
|
+
return n3.isStandard ? i[n3.eventName] : $(e2, n3);
|
|
244
245
|
}
|
|
245
246
|
}
|
|
246
247
|
}
|
|
247
|
-
function
|
|
248
|
+
function H(e2, n2) {
|
|
248
249
|
if (e2 && n2) {
|
|
249
250
|
const t2 = e2.filter((e3) => e3.name === n2);
|
|
250
251
|
if (t2 && t2.length > 0) {
|
|
@@ -252,117 +253,128 @@ function B(e2, n2) {
|
|
|
252
253
|
}
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
|
-
function
|
|
256
|
+
function z(e2, n2, t2) {
|
|
256
257
|
if (n2 && t2) {
|
|
257
|
-
const
|
|
258
|
-
if (
|
|
259
|
-
const n3 =
|
|
260
|
-
return n3.isStandard ? { func:
|
|
258
|
+
const o2 = n2.filter((e3) => e3.name === t2);
|
|
259
|
+
if (o2 && o2.length > 0) {
|
|
260
|
+
const n3 = o2[0];
|
|
261
|
+
return n3.isStandard ? { func: i[n3.eventName], isStandard: true, event: n3 } : { func: $(e2, n3), isStandard: false, event: n3 };
|
|
261
262
|
}
|
|
262
263
|
}
|
|
263
264
|
}
|
|
264
|
-
function
|
|
265
|
+
function Q(e2, n2, t2, i2, o2) {
|
|
265
266
|
if (t2) {
|
|
266
|
-
if (
|
|
267
|
-
|
|
267
|
+
if (i2 || (i2 = { pageContext: e2, configureObj: n2 }), o2 && i2) for (const e3 in o2) i2[e3] = o2[e3];
|
|
268
|
+
try {
|
|
269
|
+
return t2.apply(t2, [i2]);
|
|
270
|
+
} catch (e3) {
|
|
271
|
+
throw function(e4) {
|
|
272
|
+
var _a, _b, _c, _d;
|
|
273
|
+
let n3 = "";
|
|
274
|
+
const t3 = (e4 == null ? void 0 : e4.title) || ((_b = (_a = e4 == null ? void 0 : e4.props) == null ? void 0 : _a.base) == null ? void 0 : _b.title), i3 = (e4 == null ? void 0 : e4.label) || ((_d = (_c = e4 == null ? void 0 : e4.props) == null ? void 0 : _c.base) == null ? void 0 : _d.label);
|
|
275
|
+
t3 && (n3 += t3 + "的");
|
|
276
|
+
i3 && (n3 += i3);
|
|
277
|
+
n3 += "事件执行失败,请检查事件函数体是否正确", f.error(n3);
|
|
278
|
+
}(n2), e3;
|
|
279
|
+
}
|
|
268
280
|
}
|
|
269
281
|
}
|
|
270
|
-
function
|
|
271
|
-
const n2 = e2.pageContext,
|
|
282
|
+
function W(e2) {
|
|
283
|
+
const n2 = e2.pageContext, i2 = e2.configureObj, o2 = V(n2);
|
|
272
284
|
let r2 = [];
|
|
273
|
-
if (
|
|
285
|
+
if (o2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
|
|
274
286
|
else {
|
|
275
287
|
const e3 = n2.entity.data;
|
|
276
288
|
r2.push(e3);
|
|
277
289
|
}
|
|
278
|
-
const u2 =
|
|
279
|
-
return new Promise((e3,
|
|
290
|
+
const u2 = i2.props.base.condition;
|
|
291
|
+
return new Promise((e3, i3) => {
|
|
280
292
|
if (null == u2 || "" === u2 || null == r2 || 0 === r2.length) e3({ canExecute: true });
|
|
281
293
|
else {
|
|
282
|
-
const
|
|
283
|
-
let a2,
|
|
294
|
+
const i4 = n2.entity.context, o3 = t(n2), c2 = true, l2 = n2.tableName;
|
|
295
|
+
let a2, s2, g2 = true;
|
|
284
296
|
for (let e4 = 0; e4 < r2.length; e4++) {
|
|
285
297
|
const t2 = r2[e4];
|
|
286
298
|
for (let e5 = 0; e5 < u2.length; e5++) {
|
|
287
|
-
const r3 = u2[e5],
|
|
288
|
-
if (!
|
|
289
|
-
g2 = false, a2 =
|
|
299
|
+
const r3 = u2[e5], f2 = r3.toolTips, p2 = r3.conditionList;
|
|
300
|
+
if (!m(p2, t2, o3, i4, c2, l2, null, n2)) {
|
|
301
|
+
g2 = false, a2 = f2, s2 = t2;
|
|
290
302
|
break;
|
|
291
303
|
}
|
|
292
304
|
}
|
|
293
305
|
}
|
|
294
|
-
g2 ? e3({ canExecute: true }) : (a2 &&
|
|
306
|
+
g2 ? e3({ canExecute: true }) : (a2 && f({ showClose: true, type: "warning", message: a2 }), e3({ canExecute: false, message: a2, failEntity: s2 }));
|
|
295
307
|
}
|
|
296
308
|
});
|
|
297
309
|
}
|
|
298
|
-
function
|
|
299
|
-
var
|
|
300
|
-
n2 && (
|
|
301
|
-
return
|
|
302
|
-
}({ pageContext: t2, configureObj:
|
|
303
|
-
return
|
|
304
|
-
}({ pageContext: t2, configureObj:
|
|
305
|
-
return
|
|
306
|
-
}({ pageContext: t2, configureObj:
|
|
307
|
-
return
|
|
308
|
-
}({ pageContext: t2, configureObj:
|
|
309
|
-
return
|
|
310
|
-
}({ pageContext: t2, configureObj:
|
|
311
|
-
return
|
|
312
|
-
}({ pageContext: t2, configureObj:
|
|
313
|
-
return
|
|
314
|
-
}({ pageContext: t2, configureObj:
|
|
315
|
-
return
|
|
316
|
-
}({ pageContext: t2, configureObj:
|
|
317
|
-
return
|
|
318
|
-
}({ pageContext: t2, configureObj:
|
|
319
|
-
return
|
|
320
|
-
}({ pageContext: t2, configureObj:
|
|
321
|
-
return
|
|
322
|
-
}({ pageContext: t2, configureObj:
|
|
310
|
+
function G(e2, n2, t2, i2) {
|
|
311
|
+
var o2;
|
|
312
|
+
n2 && (J("loadBeforeSend", w(null, (o2 = { pageContext: t2, configureObj: i2 }).pageContext, o2.configureObj, "beforeListLoad", o2), e2), J("beforeRequest", function(e3) {
|
|
313
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
|
|
314
|
+
}({ pageContext: t2, configureObj: i2 }), e2), J("gridDataLoaded", function(e3) {
|
|
315
|
+
return w(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
|
|
316
|
+
}({ pageContext: t2, configureObj: i2 }), e2), J("gridComplete", function(e3) {
|
|
317
|
+
return w(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
|
|
318
|
+
}({ pageContext: t2, configureObj: i2 }), e2), J("resizeHeight", function(e3) {
|
|
319
|
+
return w(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
|
|
320
|
+
}({ pageContext: t2, configureObj: i2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), J("beforeInsertRow", function(e3) {
|
|
321
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
|
|
322
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), J("afterInsertRow", function(e3) {
|
|
323
|
+
return w(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
|
|
324
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), J("beforeDelete", function(e3) {
|
|
325
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
|
|
326
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), J("afterDelete", function(e3) {
|
|
327
|
+
return w(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
|
|
328
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), J("beforeEdit", function(e3) {
|
|
329
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
|
|
330
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), J("beforeRestore", function(e3) {
|
|
331
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
|
|
332
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), J("beforeRestoreValidate", function(e3) {
|
|
333
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
|
|
334
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), function(e3, n3, t3) {
|
|
323
335
|
n3 && (t3[e3] = n3);
|
|
324
|
-
}("filterDataEvent",
|
|
325
|
-
}
|
|
326
|
-
function G(e2, n2, t2) {
|
|
327
|
-
n2 && (t2[e2] = n2);
|
|
336
|
+
}("filterDataEvent", w(null, t2, i2, "filter-data", { pageContext: t2, configureObj: i2 }), e2));
|
|
328
337
|
}
|
|
329
338
|
function J(e2, n2, t2) {
|
|
330
|
-
|
|
339
|
+
n2 && (t2[e2] = n2);
|
|
331
340
|
}
|
|
332
341
|
function K(e2, n2, t2) {
|
|
333
|
-
return
|
|
342
|
+
return y(null, e2, n2, "select", t2);
|
|
334
343
|
}
|
|
335
344
|
function M(e2, n2, t2) {
|
|
336
|
-
return
|
|
345
|
+
return y(null, e2, n2, "select-all", t2);
|
|
337
346
|
}
|
|
338
347
|
function X(e2, n2, t2) {
|
|
339
|
-
return
|
|
348
|
+
return y(null, e2, n2, "selection-change", t2);
|
|
340
349
|
}
|
|
341
350
|
function Y(e2, n2, t2) {
|
|
342
|
-
return
|
|
351
|
+
return y(null, e2, n2, "cell-click", t2);
|
|
343
352
|
}
|
|
344
353
|
function Z(e2, n2, t2) {
|
|
345
|
-
return
|
|
354
|
+
return y(null, e2, n2, "cell-dblclick", t2);
|
|
346
355
|
}
|
|
347
356
|
function ee(e2, n2, t2) {
|
|
348
|
-
return
|
|
357
|
+
return y(null, e2, n2, "row-click", t2);
|
|
349
358
|
}
|
|
350
359
|
function ne(e2, n2, t2) {
|
|
351
|
-
return
|
|
360
|
+
return y(null, e2, n2, "row-dblclick", t2);
|
|
352
361
|
}
|
|
353
|
-
function te(e2) {
|
|
354
|
-
return
|
|
362
|
+
function te(e2, n2, t2) {
|
|
363
|
+
return y(null, e2, n2, "header-click", t2);
|
|
355
364
|
}
|
|
356
|
-
function
|
|
357
|
-
return
|
|
365
|
+
function ie(e2) {
|
|
366
|
+
return y(null, e2.pageContext, e2.configureObj, "before-upload", e2);
|
|
358
367
|
}
|
|
359
|
-
function
|
|
360
|
-
return
|
|
368
|
+
function oe(e2, n2, t2) {
|
|
369
|
+
return y(null, e2, n2, "uploaded", t2);
|
|
361
370
|
}
|
|
362
371
|
function re(e2, n2, t2) {
|
|
363
|
-
return
|
|
372
|
+
return y(null, e2, n2, "before-delete", t2);
|
|
373
|
+
}
|
|
374
|
+
function ue(e2, n2, t2) {
|
|
375
|
+
return y(null, e2, n2, "deleted", t2);
|
|
364
376
|
}
|
|
365
|
-
function
|
|
377
|
+
function ce(n2) {
|
|
366
378
|
let t2 = true;
|
|
367
379
|
if (!e()) {
|
|
368
380
|
const e2 = n2 && n2.events ? n2.events : [];
|
|
@@ -373,53 +385,53 @@ function ue(n2) {
|
|
|
373
385
|
}
|
|
374
386
|
return t2;
|
|
375
387
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
388
|
+
function le(e2, n2, t2, i2, o2) {
|
|
389
|
+
return Q(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
|
|
378
390
|
}
|
|
379
|
-
function
|
|
380
|
-
let
|
|
391
|
+
function ae(n2, t2) {
|
|
392
|
+
let i2 = true;
|
|
381
393
|
if (e()) {
|
|
382
|
-
const e2 =
|
|
394
|
+
const e2 = z(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
|
|
383
395
|
if (e2) {
|
|
384
|
-
const n3 = e2.isStandard, t3 = e2.event,
|
|
385
|
-
n3 &&
|
|
396
|
+
const n3 = e2.isStandard, t3 = e2.event, o2 = navigator ? navigator.userAgent : null;
|
|
397
|
+
n3 && o2 && (o2.indexOf("Html5Plus") > 0 ? (C.includes(t3.eventName) || x.includes(t3.eventName)) && (i2 = false) : x.includes(t3.eventName) && (i2 = false));
|
|
386
398
|
}
|
|
387
399
|
}
|
|
388
|
-
return
|
|
400
|
+
return i2;
|
|
389
401
|
}
|
|
390
402
|
export {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
403
|
+
h as appendDefaultMethods,
|
|
404
|
+
W as canExecuteButton,
|
|
405
|
+
Y as cellClick,
|
|
406
|
+
Z as cellDblClick,
|
|
407
|
+
q as doAfterClickEvent,
|
|
408
|
+
L as doBeforeClickEvent,
|
|
409
|
+
_ as doClickJumpPageEvent,
|
|
410
|
+
U as doSuffixOrPrefixClickEvent,
|
|
411
|
+
re as fileUploadBeforeDelete,
|
|
412
|
+
ie as fileUploadBeforeUpload,
|
|
413
|
+
ue as fileUploadDeleted,
|
|
402
414
|
oe as fileUploadUploaded,
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
415
|
+
z as getClickEventFuncByType,
|
|
416
|
+
k as getCustomFunc,
|
|
417
|
+
D as getDefaultEventParams,
|
|
418
|
+
B as getEventFuncByType,
|
|
419
|
+
H as getEventNameByType,
|
|
420
|
+
w as getHandleEvent,
|
|
421
|
+
R as getTableUuid,
|
|
422
|
+
M as gridSelectAllRecords,
|
|
423
|
+
K as gridSelectRecord,
|
|
424
|
+
X as gridSelectionChange,
|
|
425
|
+
N as handleAfterInitEvent,
|
|
426
|
+
le as handleChartEvent,
|
|
427
|
+
y as handleEvent,
|
|
428
|
+
E as handleFormEvent,
|
|
429
|
+
te as headerClick,
|
|
430
|
+
j as initPageEvents,
|
|
431
|
+
ce as isShowComponent,
|
|
432
|
+
ae as isShowMobileEvent,
|
|
421
433
|
O as removeCustomFuncFromWindow,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
434
|
+
ee as rowClick,
|
|
435
|
+
ne as rowDblClick,
|
|
436
|
+
G as setTableEvents
|
|
425
437
|
};
|