super-page-runtime 2.2.19 → 2.2.22
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 +1 -3
- package/dist/es/components/runtime/utils/common-util.js +22 -22
- package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/event-util.js +124 -116
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +2 -3
- package/dist/es/components/runtime/utils/table-utils.js +26 -31
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +38 -35
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +10 -10
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +186 -174
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +42 -42
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +46 -43
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +22 -21
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +56 -53
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +80 -77
- package/dist/es/components/runtime/views/home-chart.vue.js +23 -21
- package/dist/es/components/runtime/views/super-page.vue.js +95 -94
- package/dist/es/style.css +3 -1
- package/package.json +2 -2
|
@@ -76,9 +76,7 @@ const C = { showElement: function(e2, t2, n2) {
|
|
|
76
76
|
const e3 = o2.getConfigure();
|
|
77
77
|
e3 && e3.uuid && e3.name && "table" === e3.name && (i2 = e3.uuid);
|
|
78
78
|
}
|
|
79
|
-
i2 &&
|
|
80
|
-
s.$emit("_refreshChildData_" + i2, n2);
|
|
81
|
-
}, 10);
|
|
79
|
+
i2 && s.$emit("_refreshChildData_" + i2, n2);
|
|
82
80
|
}, getServerConfigValue: (e2) => window.$vueApp.config.globalProperties[e2], getBackendUrl: (e2) => y(e2.backendUrl, false), getPlateBackendUrl: () => window.$vueApp.config.globalProperties.baseAPI, getEntity: (e2) => e2.entity.data, getEntityValue: (e2, t2) => e2.entity.data ? e2.entity.data[t2] : null, getPageData: (e2) => e2.entity.page, getPageDataValue: (e2, t2) => e2.entity.page ? e2.entity.page[t2] : null, getAdditionalParams: (e2) => u(e2), getAdditionalParamValue(e2, t2) {
|
|
83
81
|
const n2 = u(e2);
|
|
84
82
|
return n2 ? n2[t2] : null;
|
|
@@ -7,29 +7,29 @@ function n(t2, r2) {
|
|
|
7
7
|
if (r2) return t2;
|
|
8
8
|
{
|
|
9
9
|
const { baseURL: r3, projectModel: n2 } = window.$vueApp.config.globalProperties;
|
|
10
|
-
let
|
|
11
|
-
return "developing.model" === n2 || t2 && (
|
|
10
|
+
let i2 = r3;
|
|
11
|
+
return "developing.model" === n2 || t2 && (i2 = e(t2)), i2;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
let
|
|
14
|
+
function i(e2, t2, r2, i2) {
|
|
15
|
+
let o2 = e2;
|
|
16
16
|
if (e2 && r2 && !function(e3) {
|
|
17
17
|
return 0 === e3.indexOf("http:") || 0 === e3.indexOf("https:");
|
|
18
18
|
}(e2)) {
|
|
19
|
-
|
|
19
|
+
o2 = n(r2, i2) + "/" + t2 + e2;
|
|
20
20
|
}
|
|
21
|
-
return
|
|
21
|
+
return o2;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function o(e2) {
|
|
24
24
|
if (!e2) return e2;
|
|
25
25
|
const r2 = t();
|
|
26
26
|
if (Array.isArray(e2)) {
|
|
27
|
-
const t2 = [], n2 = [],
|
|
27
|
+
const t2 = [], n2 = [], i2 = "~-~-";
|
|
28
28
|
return e2.forEach((e3) => {
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
const u2 =
|
|
32
|
-
r2 === s2 && n2.indexOf(u2) < 0 && (t2.push({ templateUuid: e3.templateUuid, templateName:
|
|
29
|
+
const o2 = e3.templateName;
|
|
30
|
+
if (o2.indexOf(i2) > 0) {
|
|
31
|
+
const u2 = o2.substring(0, o2.indexOf(i2)), s2 = o2.substring(o2.indexOf(i2) + i2.length, o2.lastIndexOf(i2)), l2 = o2.substring(o2.lastIndexOf(i2) + i2.length);
|
|
32
|
+
r2 === s2 && n2.indexOf(u2) < 0 && (t2.push({ templateUuid: e3.templateUuid, templateName: l2 }), n2.push(u2));
|
|
33
33
|
} else t2.push(e3);
|
|
34
34
|
}), t2;
|
|
35
35
|
}
|
|
@@ -40,17 +40,17 @@ function u(e2) {
|
|
|
40
40
|
function s(e2, t2, r2) {
|
|
41
41
|
return "V" + t2 + "__" + e2 + "__" + r2;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function l(e2) {
|
|
44
44
|
if ("object" != typeof e2 || null == e2) return e2;
|
|
45
45
|
const t2 = Array.isArray(e2) ? [] : {};
|
|
46
|
-
for (const r2 in e2) e2.hasOwnProperty(r2) && (t2[r2] =
|
|
46
|
+
for (const r2 in e2) e2.hasOwnProperty(r2) && (t2[r2] = l(e2[r2]));
|
|
47
47
|
return t2;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function a(e2) {
|
|
50
50
|
let t2;
|
|
51
51
|
return e2.entity && e2.entity.data && (t2 = e2.entity.data.WORKFLOW_ID, t2 || (t2 = e2.entity.data.workflow_id), t2 || (t2 = e2.entity.data.workflowId)), t2;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function f(e2) {
|
|
54
54
|
var _a, _b, _c, _d;
|
|
55
55
|
let t2;
|
|
56
56
|
if (e2 && ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop)) {
|
|
@@ -78,24 +78,24 @@ function c(e2) {
|
|
|
78
78
|
function d(e2, t2) {
|
|
79
79
|
if (e2 && t2) {
|
|
80
80
|
let t3 = e2.jumpPageMobileOpenMode;
|
|
81
|
-
t3 || (e2.jumpPageOpenMode ? (t3 = e2.jumpPageOpenMode, "newTab" === t3 && (t3 = "refresh")) : t3 = "refresh"), "refresh" === t3 && (e2.dialogType = "drawer", e2.jumpPageWidth = "100%", e2.isRefreshWhenClosePopup = true), e2.jumpMode = t3, e2.jumpPageMobileOpenMode = t3;
|
|
81
|
+
t3 || (e2.jumpPageOpenMode ? (t3 = e2.jumpPageOpenMode, "newTab" === t3 && (t3 = "refresh")) : t3 = "refresh"), "refresh" === t3 && (e2.dialogType = "drawer", e2.jumpPageWidth = "100%", e2.isRefreshWhenClosePopup = true), e2.jumpMode = t3, e2.jumpPageMobileOpenMode = t3, e2.jumpPageTitle || (e2.jumpPageTitle = "QMS质量管理系统");
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
function g(e2, t2) {
|
|
85
85
|
return null === e2[t2] || void 0 === e2[t2] || "" === e2[t2];
|
|
86
86
|
}
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
l as deepCopy,
|
|
89
89
|
n as getBaseUrl,
|
|
90
90
|
s as getListCode,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
f as getPropClassName,
|
|
92
|
+
i as getRealRestApiPath,
|
|
93
|
+
a as getWorkflowId,
|
|
94
94
|
r as isArrayFn,
|
|
95
95
|
p as isNumber,
|
|
96
96
|
g as isVariableInvalidValue,
|
|
97
97
|
c as isWorkflowPage,
|
|
98
|
-
|
|
98
|
+
o as packageTemplateFiles,
|
|
99
99
|
d as refreshMobileDialogType,
|
|
100
100
|
u as upperFirstCase
|
|
101
101
|
};
|
|
@@ -29,6 +29,7 @@ export declare function handleAfterInitEvent($event: any, pageContext: PageConte
|
|
|
29
29
|
export declare function getHandleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
30
30
|
export declare function getTableUuid(pageContext: PageContext, configure: Component): any;
|
|
31
31
|
export declare function handleEventByEventName(pageContext: PageContext, configure: Component, eventName: string, otherParams?: object): any;
|
|
32
|
+
export declare function doSuffixOrPrefixClickEvent($event: any, pageContext: PageContext, configure: Component, eventType: any, otherParams?: object): void;
|
|
32
33
|
export declare function doBeforeClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): any;
|
|
33
34
|
/**
|
|
34
35
|
* TODO: 跳转页面功能
|
|
@@ -62,7 +62,7 @@ function x(e2, n2) {
|
|
|
62
62
|
return v(n2, e3);
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function k(e2) {
|
|
66
66
|
if (e2 && e2.customEvents) {
|
|
67
67
|
const n2 = e2.customEvents.filter((e3) => "customFunc" === e3.name && e3.jsContent);
|
|
68
68
|
n2 && n2.length > 0 && n2.forEach((e3) => {
|
|
@@ -70,7 +70,7 @@ function j(e2) {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function j(e2, n2, t2, i2, o2) {
|
|
74
74
|
return y(e2, n2, t2, i2, true, o2, false);
|
|
75
75
|
}
|
|
76
76
|
function O(e2, n2, t2, i2, o2) {
|
|
@@ -90,43 +90,35 @@ function h(e2, n2, t2, i2) {
|
|
|
90
90
|
function E(e2, n2, t2, i2, o2) {
|
|
91
91
|
return y(e2, n2, t2, i2, false, o2, false);
|
|
92
92
|
}
|
|
93
|
-
function y(e2, t2, i2, r2, u2,
|
|
94
|
-
const
|
|
95
|
-
let
|
|
96
|
-
if (
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
function y(e2, t2, i2, r2, u2, c2, l2) {
|
|
94
|
+
const a2 = i2 && i2.runtime && i2.runtime.events ? i2.runtime.events : [];
|
|
95
|
+
let s2;
|
|
96
|
+
if (l2 || !/* @__PURE__ */ function(e3) {
|
|
97
|
+
return e3 && ("click" === e3 || "suffixClick" === e3 || "prefixClick" === e3);
|
|
98
|
+
}(r2)) {
|
|
99
|
+
if (s2 = q(t2, a2, r2), u2) {
|
|
100
|
+
return B(t2, i2, s2, N(t2, i2, e2, c2));
|
|
99
101
|
}
|
|
100
|
-
return
|
|
101
|
-
}
|
|
102
|
-
{
|
|
103
|
-
const r3 = w(t2, i2);
|
|
104
|
-
if (r3) {
|
|
105
|
-
const e3 = c(t2, r3), n2 = e3 ? e3.getSelections() : null, i3 = e3 ? e3.getSelectionIds() : null;
|
|
106
|
-
l2 || (l2 = {}), l2.tableUuid = r3, l2.listCode = f(s2, g2, r3);
|
|
107
|
-
T(t2) && (l2.selections = n2, l2.id = i3 && i3.length > 0 ? i3[0] : null, l2.ids = i3);
|
|
108
|
-
const o2 = e3 ? e3.getTableConfigure() : null;
|
|
109
|
-
l2.tableConfigure = o2;
|
|
110
|
-
}
|
|
111
|
-
!function(e3, t3, i3) {
|
|
112
|
-
const r4 = o(t3, i3.ids);
|
|
113
|
-
if (!r4) return;
|
|
114
|
-
if (void 0 !== e3.canClick && false === e3.canClick) return;
|
|
115
|
-
A(i3).then((o2) => {
|
|
116
|
-
if (true === o2.canExecute) {
|
|
117
|
-
e3.clickUuid = t3.uuid, e3.canClick = false;
|
|
118
|
-
const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r5 = _(e3, o3, "beforeValidateForm");
|
|
119
|
-
let u3;
|
|
120
|
-
if (r5 && (u3 = I(e3, t3, r5, i3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
|
|
121
|
-
n(u3) ? u3.then((n2) => {
|
|
122
|
-
n2 && true === n2 ? S(e3, t3, i3) : e3.canClick = true;
|
|
123
|
-
}).catch((n2) => {
|
|
124
|
-
e3.canClick = true;
|
|
125
|
-
}) : S(e3, t3, i3);
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}(t2, i2, N(t2, i2, e2, l2));
|
|
102
|
+
return s2;
|
|
129
103
|
}
|
|
104
|
+
!function(e3, t3, i3) {
|
|
105
|
+
const r3 = o(t3, i3.ids);
|
|
106
|
+
if (!r3) return;
|
|
107
|
+
if (void 0 !== e3.canClick && false === e3.canClick) return;
|
|
108
|
+
$(i3).then((o2) => {
|
|
109
|
+
if (true === o2.canExecute) {
|
|
110
|
+
e3.clickUuid = t3.uuid, e3.canClick = false;
|
|
111
|
+
const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = q(e3, o3, "beforeValidateForm");
|
|
112
|
+
let u3;
|
|
113
|
+
if (r4 && (u3 = B(e3, t3, r4, i3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
|
|
114
|
+
n(u3) ? u3.then((n2) => {
|
|
115
|
+
n2 && true === n2 ? S(e3, t3, i3) : e3.canClick = true;
|
|
116
|
+
}).catch((n2) => {
|
|
117
|
+
e3.canClick = true;
|
|
118
|
+
}) : S(e3, t3, i3);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}(t2, i2, P(e2, t2, i2, c2));
|
|
130
122
|
}
|
|
131
123
|
function w(e2, n2) {
|
|
132
124
|
return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
|
|
@@ -140,7 +132,7 @@ function S(e2, t2, i2) {
|
|
|
140
132
|
const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
|
|
141
133
|
let r2 = true;
|
|
142
134
|
(i2 == null ? void 0 : i2.skipValidate) && (r2 = false);
|
|
143
|
-
const c2 =
|
|
135
|
+
const c2 = A(e2, o2, "click");
|
|
144
136
|
if (c2) {
|
|
145
137
|
const e3 = function(e4, n2) {
|
|
146
138
|
return e4 && b.includes(n2.eventName);
|
|
@@ -149,43 +141,58 @@ function S(e2, t2, i2) {
|
|
|
149
141
|
}
|
|
150
142
|
u(e2, t2, r2).then((o3) => {
|
|
151
143
|
if (!o3) return void (e2.canClick = true);
|
|
152
|
-
const r3 =
|
|
144
|
+
const r3 = T(e2, t2, i2);
|
|
153
145
|
r3 ? n(r3) ? r3.then((n2) => {
|
|
154
|
-
n2 ?
|
|
146
|
+
n2 ? _(e2, t2, c2, i2) : e2.canClick = true;
|
|
155
147
|
}).catch((n2) => {
|
|
156
148
|
e2.canClick = true;
|
|
157
|
-
}) :
|
|
149
|
+
}) : _(e2, t2, c2, i2) : e2.canClick = true;
|
|
158
150
|
}).catch((n2) => {
|
|
159
151
|
e2.canClick = true;
|
|
160
152
|
});
|
|
161
153
|
}
|
|
162
|
-
function R(e2, n2, t2) {
|
|
163
|
-
const
|
|
154
|
+
function R(e2, n2, t2, i2, o2) {
|
|
155
|
+
const r2 = P(e2, n2, t2, o2);
|
|
156
|
+
_(n2, t2, A(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
|
|
157
|
+
}
|
|
158
|
+
function P(e2, n2, t2, i2) {
|
|
159
|
+
const o2 = n2.code, r2 = n2.version, u2 = w(n2, t2);
|
|
160
|
+
if (u2) {
|
|
161
|
+
const e3 = c(n2, u2), t3 = e3 ? e3.getSelections() : null, l2 = e3 ? e3.getSelectionIds() : null;
|
|
162
|
+
i2 || (i2 = {}), i2.tableUuid = u2, i2.listCode = f(o2, r2, u2);
|
|
163
|
+
U(n2) && (i2.selections = t3, i2.id = l2 && l2.length > 0 ? l2[0] : null, i2.ids = l2);
|
|
164
|
+
const a2 = e3 ? e3.getTableConfigure() : null;
|
|
165
|
+
i2.tableConfigure = a2;
|
|
166
|
+
}
|
|
167
|
+
return N(n2, t2, e2, i2);
|
|
168
|
+
}
|
|
169
|
+
function T(e2, n2, t2) {
|
|
170
|
+
const i2 = q(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
|
|
164
171
|
let o2;
|
|
165
|
-
return i2 && (o2 =
|
|
172
|
+
return i2 && (o2 = B(e2, n2, i2, null, t2)), void 0 === o2 || o2;
|
|
166
173
|
}
|
|
167
|
-
function
|
|
174
|
+
function F(e2, n2, t2) {
|
|
168
175
|
const i2 = e2.code + "_";
|
|
169
176
|
m.$emit(i2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
|
|
170
177
|
}
|
|
171
|
-
function
|
|
178
|
+
function U(e2, n2) {
|
|
172
179
|
return !(!e2.pageType || "list" !== e2.pageType);
|
|
173
180
|
}
|
|
174
|
-
function
|
|
175
|
-
const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 =
|
|
181
|
+
function D(e2, t2, i2) {
|
|
182
|
+
const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = q(e2, o2, "afterClick");
|
|
176
183
|
if (r2) {
|
|
177
|
-
const o3 =
|
|
184
|
+
const o3 = B(e2, t2, r2, null, i2);
|
|
178
185
|
n(o3) ? o3.finally(() => {
|
|
179
186
|
e2.canClick = true;
|
|
180
187
|
}) : e2.canClick = true;
|
|
181
188
|
} else e2.canClick = true;
|
|
182
189
|
}
|
|
183
|
-
function
|
|
190
|
+
function L(e2, n2, t2, i2, o2, u2) {
|
|
184
191
|
i2 ? (e2.result = o2, e2.canClick = true) : r(e2, n2, o2, "", u2);
|
|
185
|
-
const c2 =
|
|
186
|
-
c2 &&
|
|
192
|
+
const c2 = q(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
|
|
193
|
+
c2 && B(e2, n2, c2, t2);
|
|
187
194
|
}
|
|
188
|
-
function
|
|
195
|
+
function _(e2, t2, i2, o2) {
|
|
189
196
|
let r2 = t2, u2 = t2.props.linkPage;
|
|
190
197
|
if (u2 && u2 instanceof Array) {
|
|
191
198
|
const n2 = function(e3) {
|
|
@@ -196,38 +203,38 @@ function D(e2, t2, i2, o2) {
|
|
|
196
203
|
let c2, l2 = false;
|
|
197
204
|
i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = g(t2), r2.props.linkPage = u2);
|
|
198
205
|
}
|
|
199
|
-
u2 && u2.jumpPageUrl ? (e2.canClick = true,
|
|
206
|
+
u2 && u2.jumpPageUrl ? (e2.canClick = true, F(e2, r2, o2)) : function(e3, t3, i3, o3) {
|
|
200
207
|
const r3 = i3;
|
|
201
208
|
if (r3) {
|
|
202
|
-
const i4 = r3.func, u3 = r3.isStandard, c2 = r3.event, l2 =
|
|
209
|
+
const i4 = r3.func, u3 = r3.isStandard, c2 = r3.event, l2 = B(e3, t3, i4, o3), a2 = U(e3);
|
|
203
210
|
if (function(e4, n2) {
|
|
204
211
|
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);
|
|
205
212
|
}(u3, c2)) return void (e3.canClick = true);
|
|
206
213
|
n(l2) ? l2.then((n2) => {
|
|
207
|
-
n2 ?
|
|
214
|
+
n2 ? L(e3, t3, o3, u3, n2, a2) : e3.canClick = true;
|
|
208
215
|
}).catch((n2) => {
|
|
209
216
|
e3.canClick = true;
|
|
210
|
-
}) :
|
|
217
|
+
}) : L(e3, t3, o3, u3, l2, a2);
|
|
211
218
|
} else e3.canClick = true;
|
|
212
219
|
}(e2, t2, i2, o2);
|
|
213
220
|
}
|
|
214
|
-
function
|
|
221
|
+
function V(e2, n2) {
|
|
215
222
|
const t2 = e2.customEvents;
|
|
216
223
|
if (t2 && n2) {
|
|
217
224
|
let e3 = "";
|
|
218
225
|
return e3 = "object" == typeof n2 ? n2.componentUuid + "_" + n2.name : n2, t2[e3];
|
|
219
226
|
}
|
|
220
227
|
}
|
|
221
|
-
function
|
|
228
|
+
function q(e2, n2, t2) {
|
|
222
229
|
if (n2 && t2) {
|
|
223
230
|
const o2 = n2.filter((e3) => e3.name === t2);
|
|
224
231
|
if (o2 && o2.length > 0) {
|
|
225
232
|
const n3 = o2[0];
|
|
226
|
-
return n3.isStandard ? i[n3.eventName] :
|
|
233
|
+
return n3.isStandard ? i[n3.eventName] : V(e2, n3);
|
|
227
234
|
}
|
|
228
235
|
}
|
|
229
236
|
}
|
|
230
|
-
function
|
|
237
|
+
function I(e2, n2) {
|
|
231
238
|
if (e2 && n2) {
|
|
232
239
|
const t2 = e2.filter((e3) => e3.name === n2);
|
|
233
240
|
if (t2 && t2.length > 0) {
|
|
@@ -235,23 +242,23 @@ function V(e2, n2) {
|
|
|
235
242
|
}
|
|
236
243
|
}
|
|
237
244
|
}
|
|
238
|
-
function
|
|
245
|
+
function A(e2, n2, t2) {
|
|
239
246
|
if (n2 && t2) {
|
|
240
247
|
const o2 = n2.filter((e3) => e3.name === t2);
|
|
241
248
|
if (o2 && o2.length > 0) {
|
|
242
249
|
const n3 = o2[0];
|
|
243
|
-
return n3.isStandard ? { func: i[n3.eventName], isStandard: true, event: n3 } : { func:
|
|
250
|
+
return n3.isStandard ? { func: i[n3.eventName], isStandard: true, event: n3 } : { func: V(e2, n3), isStandard: false, event: n3 };
|
|
244
251
|
}
|
|
245
252
|
}
|
|
246
253
|
}
|
|
247
|
-
function
|
|
254
|
+
function B(e2, n2, t2, i2, o2) {
|
|
248
255
|
if (t2) {
|
|
249
256
|
if (i2 || (i2 = { pageContext: e2, configureObj: n2 }), o2 && i2) for (const e3 in o2) i2[e3] = o2[e3];
|
|
250
257
|
return t2.apply(t2, [i2]);
|
|
251
258
|
}
|
|
252
259
|
}
|
|
253
|
-
function
|
|
254
|
-
const n2 = e2.pageContext, i2 = e2.configureObj, o2 =
|
|
260
|
+
function $(e2) {
|
|
261
|
+
const n2 = e2.pageContext, i2 = e2.configureObj, o2 = U(n2);
|
|
255
262
|
let r2 = [];
|
|
256
263
|
if (o2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
|
|
257
264
|
else {
|
|
@@ -278,65 +285,65 @@ function A(e2) {
|
|
|
278
285
|
}
|
|
279
286
|
});
|
|
280
287
|
}
|
|
281
|
-
function
|
|
288
|
+
function z(e2, n2, t2, i2) {
|
|
282
289
|
var o2;
|
|
283
|
-
n2 && (
|
|
290
|
+
n2 && (H("loadBeforeSend", E(null, (o2 = { pageContext: t2, configureObj: i2 }).pageContext, o2.configureObj, "beforeListLoad", o2), e2), H("beforeRequest", function(e3) {
|
|
284
291
|
return E(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
|
|
285
|
-
}({ pageContext: t2, configureObj: i2 }), e2),
|
|
292
|
+
}({ pageContext: t2, configureObj: i2 }), e2), H("gridDataLoaded", function(e3) {
|
|
286
293
|
return E(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
|
|
287
|
-
}({ pageContext: t2, configureObj: i2 }), e2),
|
|
294
|
+
}({ pageContext: t2, configureObj: i2 }), e2), H("gridComplete", function(e3) {
|
|
288
295
|
return E(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
|
|
289
|
-
}({ pageContext: t2, configureObj: i2 }), e2),
|
|
296
|
+
}({ pageContext: t2, configureObj: i2 }), e2), H("resizeHeight", function(e3) {
|
|
290
297
|
return E(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
|
|
291
|
-
}({ pageContext: t2, configureObj: i2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}),
|
|
298
|
+
}({ pageContext: t2, configureObj: i2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), H("beforeInsertRow", function(e3) {
|
|
292
299
|
return E(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
|
|
293
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
300
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("afterInsertRow", function(e3) {
|
|
294
301
|
return E(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
|
|
295
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
302
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("beforeDelete", function(e3) {
|
|
296
303
|
return E(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
|
|
297
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
304
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("afterDelete", function(e3) {
|
|
298
305
|
return E(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
|
|
299
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
306
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("beforeEdit", function(e3) {
|
|
300
307
|
return E(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
|
|
301
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
308
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("beforeRestore", function(e3) {
|
|
302
309
|
return E(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
|
|
303
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
310
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("beforeRestoreValidate", function(e3) {
|
|
304
311
|
return E(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
|
|
305
312
|
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), function(e3, n3, t3) {
|
|
306
313
|
n3 && (t3[e3] = n3);
|
|
307
314
|
}("filterDataEvent", E(null, t2, i2, "filter-data", { pageContext: t2, configureObj: i2 }), e2));
|
|
308
315
|
}
|
|
309
|
-
function $(e2, n2, t2) {
|
|
310
|
-
n2 && (t2[e2] = n2);
|
|
311
|
-
}
|
|
312
|
-
function z(e2, n2, t2) {
|
|
313
|
-
return k(null, e2, n2, "select", t2);
|
|
314
|
-
}
|
|
315
316
|
function H(e2, n2, t2) {
|
|
316
|
-
|
|
317
|
+
n2 && (t2[e2] = n2);
|
|
317
318
|
}
|
|
318
319
|
function W(e2, n2, t2) {
|
|
319
|
-
return
|
|
320
|
+
return j(null, e2, n2, "select", t2);
|
|
320
321
|
}
|
|
321
322
|
function G(e2, n2, t2) {
|
|
322
|
-
return
|
|
323
|
+
return j(null, e2, n2, "select-all", t2);
|
|
323
324
|
}
|
|
324
325
|
function J(e2, n2, t2) {
|
|
325
|
-
return
|
|
326
|
+
return j(null, e2, n2, "selection-change", t2);
|
|
326
327
|
}
|
|
327
328
|
function K(e2, n2, t2) {
|
|
328
|
-
return
|
|
329
|
+
return j(null, e2, n2, "cell-click", t2);
|
|
329
330
|
}
|
|
330
331
|
function M(e2, n2, t2) {
|
|
331
|
-
return
|
|
332
|
+
return j(null, e2, n2, "cell-dblclick", t2);
|
|
332
333
|
}
|
|
333
334
|
function Q(e2, n2, t2) {
|
|
334
|
-
return
|
|
335
|
+
return j(null, e2, n2, "row-click", t2);
|
|
336
|
+
}
|
|
337
|
+
function X(e2, n2, t2) {
|
|
338
|
+
return j(null, e2, n2, "row-dblclick", t2);
|
|
339
|
+
}
|
|
340
|
+
function Y(e2, n2, t2) {
|
|
341
|
+
return j(null, e2, n2, "header-click", t2);
|
|
335
342
|
}
|
|
336
|
-
function
|
|
343
|
+
function Z(e2) {
|
|
337
344
|
return E(null, e2.pageContext, e2.configureObj, "before-upload", e2);
|
|
338
345
|
}
|
|
339
|
-
function
|
|
346
|
+
function ee(n2) {
|
|
340
347
|
let t2 = true;
|
|
341
348
|
if (!e()) {
|
|
342
349
|
const e2 = n2 && n2.events ? n2.events : [];
|
|
@@ -347,36 +354,37 @@ function Y(n2) {
|
|
|
347
354
|
}
|
|
348
355
|
return t2;
|
|
349
356
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
357
|
+
function ne(e2, n2, t2, i2, o2) {
|
|
358
|
+
return B(e2, n2, q(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
|
|
352
359
|
}
|
|
353
360
|
export {
|
|
354
361
|
x as appendDefaultMethods,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
362
|
+
$ as canExecuteButton,
|
|
363
|
+
K as cellClick,
|
|
364
|
+
M as cellDblClick,
|
|
365
|
+
D as doAfterClickEvent,
|
|
366
|
+
T as doBeforeClickEvent,
|
|
367
|
+
F as doClickJumpPageEvent,
|
|
368
|
+
R as doSuffixOrPrefixClickEvent,
|
|
369
|
+
Z as fileUploadBeforeUpload,
|
|
370
|
+
A as getClickEventFuncByType,
|
|
363
371
|
v as getCustomFunc,
|
|
364
|
-
|
|
365
|
-
|
|
372
|
+
q as getEventFuncByType,
|
|
373
|
+
I as getEventNameByType,
|
|
366
374
|
E as getHandleEvent,
|
|
367
375
|
w as getTableUuid,
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
376
|
+
G as gridSelectAllRecords,
|
|
377
|
+
W as gridSelectRecord,
|
|
378
|
+
J as gridSelectionChange,
|
|
371
379
|
h as handleAfterInitEvent,
|
|
372
|
-
|
|
373
|
-
|
|
380
|
+
ne as handleChartEvent,
|
|
381
|
+
j as handleEvent,
|
|
374
382
|
O as handleFormEvent,
|
|
375
|
-
|
|
383
|
+
Y as headerClick,
|
|
376
384
|
C as initPageEvents,
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
385
|
+
ee as isShowComponent,
|
|
386
|
+
k as removeCustomFuncFromWindow,
|
|
387
|
+
Q as rowClick,
|
|
388
|
+
X as rowDblClick,
|
|
389
|
+
z as setTableEvents
|
|
382
390
|
};
|
|
@@ -56,7 +56,7 @@ export declare function getSaveFormRequest(pageContext: PageContext, configureOb
|
|
|
56
56
|
* @param isListButton
|
|
57
57
|
*/
|
|
58
58
|
export declare function dealAfterOperate(pageContext: any, configureObj: any, data: any, successTip: any, isListButton?: boolean): void;
|
|
59
|
-
export declare function updateValuesWhenCloseDialog(parentPageContext: any, parentConfigureObj: any, sourceModel: any, sourceTableName: any): void;
|
|
59
|
+
export declare function updateValuesWhenCloseDialog(parentPageContext: any, parentConfigureObj: any, sourceModel: any, sourceTableName: any, valueMappings?: any): void;
|
|
60
60
|
export declare function refreshFormOrListPage(pageContext: any, configureObj: any, isRefreshWhenClosePopup: any, mySuccessOperation: any): void;
|
|
61
61
|
export declare function doImportFinally(params: any, fileObj: any): void;
|
|
62
62
|
export declare function judgeDataNumber(buttonConfigureObj: any, ids: any): boolean;
|
|
@@ -402,10 +402,9 @@ function H(e2, t2, s2) {
|
|
|
402
402
|
b.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function $(e2, t2, s2, n2) {
|
|
405
|
+
function $(e2, t2, s2, n2, o2) {
|
|
406
406
|
var _a;
|
|
407
|
-
|
|
408
|
-
o2 || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
407
|
+
o2 || (o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
409
408
|
const i2 = e2.tableName;
|
|
410
409
|
!function(e3, t3, s3) {
|
|
411
410
|
if (e3 && null !== e3 && t3) {
|
|
@@ -3,54 +3,49 @@ import "agilebuilder-ui/src/utils/util";
|
|
|
3
3
|
import "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import t from "./eventBus.js";
|
|
5
5
|
import { getPermissionCodes as e } from "./page-init-util.js";
|
|
6
|
-
import {
|
|
7
|
-
import { $t as
|
|
8
|
-
import { ExpressionEvaluator as
|
|
9
|
-
function
|
|
6
|
+
import { getCustomFunc as i } from "./events/event-util.js";
|
|
7
|
+
import { $t as o } from "./i18n-util.js";
|
|
8
|
+
import { ExpressionEvaluator as s } from "../views/assemblys/chart/table/chart-table-util.js";
|
|
9
|
+
function n(e2) {
|
|
10
10
|
const i2 = e2.pageContext && e2.pageContext.code;
|
|
11
11
|
t.$emit(i2 + "_open-dialog", e2);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function r(t2, e2) {
|
|
14
14
|
const i2 = t2.tableName;
|
|
15
15
|
if (!e2 && i2) return i2;
|
|
16
16
|
let o2;
|
|
17
17
|
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (o2 = JSON.parse(t2.tableRuntimes[e2].configure)), o2 && o2.props && o2.props.dataOrigin ? o2.props.dataOrigin.tableName : null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
if ("custom" ===
|
|
24
|
-
const
|
|
25
|
-
|
|
19
|
+
function u(t2, i2, s2, n2) {
|
|
20
|
+
const r2 = !(!i2.props || !i2.props.base) && i2.props.base.showOperation, u2 = i2.btnList;
|
|
21
|
+
r2 && u2 && u2.forEach((i3) => {
|
|
22
|
+
const r3 = {}, u3 = Object.assign({}, i3.props.base);
|
|
23
|
+
if ("custom" === i3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === i3.isPermission || i3.isPermission + "" == "true") {
|
|
24
|
+
const o2 = e(i3, t2);
|
|
25
|
+
o2 && (u3.permission = o2);
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
else {
|
|
29
|
-
const e2 = i(t2, o3.events, "click");
|
|
30
|
-
u3.onClick = e2;
|
|
31
|
-
}
|
|
32
|
-
n2.push(u3);
|
|
27
|
+
u3.label = o(u3.title), u3.sourceButton = { uuid: i3.uuid }, r3.props = u3, void 0 !== n2 && (r3.onClick = n2(i3)), s2.push(r3);
|
|
33
28
|
});
|
|
34
29
|
}
|
|
35
|
-
function
|
|
30
|
+
function l(t2, e2, o2, n2) {
|
|
36
31
|
let r2;
|
|
37
|
-
const u2 =
|
|
32
|
+
const u2 = o2 == null ? void 0 : o2.some((o3) => {
|
|
38
33
|
let u3 = false;
|
|
39
|
-
if (
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
|
|
34
|
+
if (o3.scopeFunc) {
|
|
35
|
+
const s2 = i(t2, o3.scopeFunc);
|
|
36
|
+
if (s2) {
|
|
37
|
+
s2.apply(s2, [{ pageContext: t2, configureObj: e2, row: n2 }]) && (u3 = true);
|
|
43
38
|
}
|
|
44
|
-
} else if (
|
|
45
|
-
|
|
39
|
+
} else if (o3.showCondition && o3.showCondition.length > 0) {
|
|
40
|
+
s.evaluate(t2, o3.showCondition, n2) && (u3 = true);
|
|
46
41
|
} else u3 = true;
|
|
47
|
-
if (u3) return r2 =
|
|
42
|
+
if (u3) return r2 = o3, true;
|
|
48
43
|
});
|
|
49
44
|
return { show: u2, toPage: r2 };
|
|
50
45
|
}
|
|
51
46
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
l as expressJump,
|
|
48
|
+
u as getOperationButtons,
|
|
49
|
+
r as getTableNameByTableUuid,
|
|
50
|
+
n as popupToPage
|
|
56
51
|
};
|