super-page-runtime 2.3.4 → 2.3.5-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 +78 -70
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
- package/dist/es/components/runtime/utils/charts/chart-util.js +24 -26
- package/dist/es/components/runtime/utils/common-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/common-util.js +62 -47
- package/dist/es/components/runtime/utils/events/event-util.js +119 -119
- package/dist/es/components/runtime/utils/events/print-label.js +25 -27
- package/dist/es/components/runtime/utils/events/standard-event.js +471 -481
- package/dist/es/components/runtime/utils/events/validator-util.js +24 -24
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
- package/dist/es/components/runtime/utils/page-init-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +67 -60
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.d.ts +14 -0
- package/dist/es/components/runtime/utils/table-utils.js +62 -37
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
- 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 +9 -11
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +11 -12
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -18
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +18 -19
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +8 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +10 -15
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +130 -131
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +8 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +24 -26
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -3
- 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 +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +40 -43
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +116 -119
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +42 -42
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +62 -63
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +35 -34
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +54 -52
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +59 -50
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +63 -61
- package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -7
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +138 -141
- package/dist/es/style.css +82 -82
- package/package.json +2 -2
|
@@ -1,67 +1,82 @@
|
|
|
1
1
|
import { getSystemBackendUrl as e } from "agilebuilder-ui/src/utils/common-util";
|
|
2
2
|
import { getLanguageWithLocale as t } from "agilebuilder-ui/src/utils/util";
|
|
3
|
-
|
|
3
|
+
import { ExpressionEvaluator as n } from "../views/assemblys/chart/table/chart-table-util.js";
|
|
4
|
+
import { getCustomFunc as r } from "./events/event-util.js";
|
|
5
|
+
function o(e2) {
|
|
4
6
|
return "function" == typeof Array.isArray ? Array.isArray(e2) : "[object Array]" === Object.prototype.toString.call(e2);
|
|
5
7
|
}
|
|
6
|
-
function
|
|
7
|
-
if (
|
|
8
|
+
function i(t2, n2) {
|
|
9
|
+
if (n2) return t2;
|
|
8
10
|
{
|
|
9
|
-
const { baseURL:
|
|
10
|
-
let
|
|
11
|
-
return "developing.model" ===
|
|
11
|
+
const { baseURL: n3, projectModel: r2 } = window.$vueApp.config.globalProperties;
|
|
12
|
+
let o2 = n3;
|
|
13
|
+
return "developing.model" === r2 || t2 && (o2 = e(t2)), o2;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
|
-
function
|
|
16
|
+
function u(e2, t2, n2, r2) {
|
|
15
17
|
let o2 = e2;
|
|
16
|
-
if (e2 &&
|
|
18
|
+
if (e2 && n2 && !function(e3) {
|
|
17
19
|
return 0 === e3.indexOf("http:") || 0 === e3.indexOf("https:");
|
|
18
20
|
}(e2)) {
|
|
19
|
-
o2 =
|
|
21
|
+
o2 = i(n2, r2) + "/" + t2 + e2;
|
|
20
22
|
}
|
|
21
23
|
return o2;
|
|
22
24
|
}
|
|
23
|
-
function
|
|
24
|
-
if (!e2) return e2;
|
|
25
|
-
|
|
25
|
+
function l(e2, o2, i2) {
|
|
26
|
+
if (!e2 || 0 === e2.length) return e2;
|
|
27
|
+
let u2 = e2;
|
|
26
28
|
if (Array.isArray(e2)) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
e2[0].templates && (u2 = function(e3, t2, o3) {
|
|
30
|
+
const i3 = [];
|
|
31
|
+
return e3.forEach((e4) => {
|
|
32
|
+
let u3 = true;
|
|
33
|
+
if (e4.scopeFunc) {
|
|
34
|
+
const n2 = r(t2, e4.scopeFunc);
|
|
35
|
+
n2 && (u3 = n2.apply(n2, [{ pageContext: t2, configureObj: o3, template: e4 }]));
|
|
36
|
+
} else e4.conditions && e4.conditions.length > 0 && (u3 = n.evaluate(t2, e4.conditions));
|
|
37
|
+
false !== u3 && e4.templates.forEach((e5) => {
|
|
38
|
+
i3.push({ templateUuid: e5.templateUuid, templateName: e5.templateName });
|
|
39
|
+
});
|
|
40
|
+
}), i3;
|
|
41
|
+
}(e2, o2, i2));
|
|
42
|
+
const l2 = t(), a2 = [], s2 = [], p2 = "~-~-";
|
|
43
|
+
return u2.forEach((e3) => {
|
|
44
|
+
const t2 = e3.templateName;
|
|
45
|
+
if (t2.indexOf(p2) > 0) {
|
|
46
|
+
const n2 = t2.substring(0, t2.indexOf(p2)), r2 = t2.substring(t2.indexOf(p2) + p2.length, t2.lastIndexOf(p2)), o3 = t2.substring(t2.lastIndexOf(p2) + p2.length);
|
|
47
|
+
l2 === r2 && s2.indexOf(n2) < 0 && (a2.push({ templateUuid: e3.templateUuid, templateName: o3 }), s2.push(n2));
|
|
48
|
+
} else a2.push(e3);
|
|
49
|
+
}), a2;
|
|
35
50
|
}
|
|
36
51
|
}
|
|
37
|
-
function
|
|
52
|
+
function a(e2) {
|
|
38
53
|
return e2.toLowerCase().replace(/( |^)[a-z]/g, (e3) => e3.toUpperCase());
|
|
39
54
|
}
|
|
40
|
-
function s(e2, t2,
|
|
41
|
-
return "V" + t2 + "__" + e2 + "__" +
|
|
55
|
+
function s(e2, t2, n2) {
|
|
56
|
+
return "V" + t2 + "__" + e2 + "__" + n2;
|
|
42
57
|
}
|
|
43
|
-
function
|
|
58
|
+
function p(e2) {
|
|
44
59
|
if ("object" != typeof e2 || null == e2) return e2;
|
|
45
60
|
const t2 = Array.isArray(e2) ? [] : {};
|
|
46
|
-
for (const
|
|
61
|
+
for (const n2 in e2) e2.hasOwnProperty(n2) && (t2[n2] = p(e2[n2]));
|
|
47
62
|
return t2;
|
|
48
63
|
}
|
|
49
|
-
function
|
|
64
|
+
function f(e2) {
|
|
50
65
|
let t2;
|
|
51
66
|
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
67
|
}
|
|
53
|
-
function
|
|
68
|
+
function c(e2) {
|
|
54
69
|
var _a, _b, _c, _d;
|
|
55
70
|
let t2;
|
|
56
71
|
if (e2 && ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop)) {
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
2 ===
|
|
72
|
+
let n2 = (_d = (_c = e2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop;
|
|
73
|
+
n2.indexOf("${") >= 0 && (n2 = n2.substring(2, n2.lastIndexOf("}")));
|
|
74
|
+
const r2 = n2.split(".");
|
|
75
|
+
2 === r2.length ? t2 = r2[1] : 3 === r2.length && (t2 = r2[1] + "__" + r2[2]);
|
|
61
76
|
} else e2.code && (t2 = e2.code);
|
|
62
77
|
return t2;
|
|
63
78
|
}
|
|
64
|
-
function
|
|
79
|
+
function d(e2) {
|
|
65
80
|
try {
|
|
66
81
|
if (null != e2) {
|
|
67
82
|
const t2 = parseInt(e2 + "");
|
|
@@ -72,30 +87,30 @@ function p(e2) {
|
|
|
72
87
|
return false;
|
|
73
88
|
}
|
|
74
89
|
}
|
|
75
|
-
function
|
|
90
|
+
function m(e2) {
|
|
76
91
|
return !!e2.isWorkflowEntity || !(void 0 !== e2.isWorkflowEntity || !e2.workflowCode);
|
|
77
92
|
}
|
|
78
|
-
function
|
|
93
|
+
function g(e2, t2) {
|
|
79
94
|
if (e2 && t2) {
|
|
80
95
|
let t3 = e2.jumpPageMobileOpenMode;
|
|
81
96
|
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
97
|
}
|
|
83
98
|
}
|
|
84
|
-
function
|
|
99
|
+
function h(e2, t2) {
|
|
85
100
|
return null === e2[t2] || void 0 === e2[t2] || "" === e2[t2];
|
|
86
101
|
}
|
|
87
102
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
103
|
+
p as deepCopy,
|
|
104
|
+
i as getBaseUrl,
|
|
90
105
|
s as getListCode,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
106
|
+
c as getPropClassName,
|
|
107
|
+
u as getRealRestApiPath,
|
|
108
|
+
f as getWorkflowId,
|
|
109
|
+
o as isArrayFn,
|
|
110
|
+
d as isNumber,
|
|
111
|
+
h as isVariableInvalidValue,
|
|
112
|
+
m as isWorkflowPage,
|
|
113
|
+
l as packageTemplateFiles,
|
|
114
|
+
g as refreshMobileDialogType,
|
|
115
|
+
a as upperFirstCase
|
|
101
116
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
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 i, judgeDataNumber as o, 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";
|
|
6
6
|
import { analysisCondition as s } from "agilebuilder-ui/src/utils/util";
|
|
7
|
-
import { getListCode as f, deepCopy as
|
|
8
|
-
import
|
|
7
|
+
import { getListCode as f, deepCopy as m } from "../common-util.js";
|
|
8
|
+
import g from "../eventBus.js";
|
|
9
9
|
import { getValueFromSource as p } from "../page-helper-util.js";
|
|
10
10
|
import { expressJump as d } from "../table-utils.js";
|
|
11
11
|
const v = ["downloadTemplate", "back", "exportForm", "exportPDF", "lineEditCreate", "workflowSave"], b = ["downloadTemplate", "exportForm", "exportPDF", "export", "exportCharts"], C = ["import"];
|
|
@@ -32,7 +32,7 @@ function x(e2, n2) {
|
|
|
32
32
|
for (const t3 in n3) {
|
|
33
33
|
j(n3[t3], e3);
|
|
34
34
|
}
|
|
35
|
-
}(n2, t2),
|
|
35
|
+
}(n2, t2), n2.customEvents = t2;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
function k(e2, n2) {
|
|
@@ -70,154 +70,154 @@ function O(e2) {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function h(e2, n2, t2,
|
|
74
|
-
return N(e2, n2, t2,
|
|
73
|
+
function h(e2, n2, t2, i2, o2) {
|
|
74
|
+
return N(e2, n2, t2, i2, true, o2, false);
|
|
75
75
|
}
|
|
76
|
-
function E(e2, n2, t2,
|
|
76
|
+
function E(e2, n2, t2, i2, o2) {
|
|
77
77
|
var _a, _b;
|
|
78
|
-
if (
|
|
78
|
+
if (i2 && "change" === i2) {
|
|
79
79
|
const e3 = n2.subTableWatchProps;
|
|
80
80
|
if (e3) for (const n3 in e3) {
|
|
81
|
-
const
|
|
82
|
-
|
|
81
|
+
const i3 = e3[n3], o3 = (_b = (_a = t2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
|
|
82
|
+
i3 && i3.indexOf(o3) >= 0 && g.$emit("_refreshSubTable_" + n3, { propName: o3 });
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
return N(e2, n2, t2,
|
|
85
|
+
return N(e2, n2, t2, i2, true, o2, true);
|
|
86
86
|
}
|
|
87
|
-
function y(e2, n2, t2,
|
|
88
|
-
return E(e2, n2, t2, "afterInit",
|
|
87
|
+
function y(e2, n2, t2, i2) {
|
|
88
|
+
return E(e2, n2, t2, "afterInit", i2);
|
|
89
89
|
}
|
|
90
|
-
function w(e2, n2, t2,
|
|
91
|
-
return N(e2, n2, t2,
|
|
90
|
+
function w(e2, n2, t2, i2, o2) {
|
|
91
|
+
return N(e2, n2, t2, i2, false, o2, false);
|
|
92
92
|
}
|
|
93
|
-
function N(e2, t2,
|
|
94
|
-
const a2 =
|
|
93
|
+
function N(e2, t2, i2, r2, u2, c2, l2) {
|
|
94
|
+
const a2 = i2 && i2.runtime && i2.runtime.events ? i2.runtime.events : [];
|
|
95
95
|
let s2;
|
|
96
96
|
if (l2 || !function(e3) {
|
|
97
97
|
return e3 && S.indexOf(e3) >= 0;
|
|
98
98
|
}(r2)) {
|
|
99
99
|
if (s2 = B(t2, a2, r2), u2) {
|
|
100
|
-
return H(t2,
|
|
100
|
+
return H(t2, i2, s2, R(t2, i2, e2, c2));
|
|
101
101
|
}
|
|
102
102
|
return s2;
|
|
103
103
|
}
|
|
104
|
-
!function(e3, t3,
|
|
105
|
-
const r3 =
|
|
104
|
+
!function(e3, t3, i3) {
|
|
105
|
+
const r3 = o(t3, i3.ids);
|
|
106
106
|
if (!r3) return;
|
|
107
|
-
if (void 0 !== e3.canClick && false === e3.canClick) return
|
|
108
|
-
Q(
|
|
109
|
-
if (true ===
|
|
107
|
+
if (void 0 !== e3.canClick && false === e3.canClick) return;
|
|
108
|
+
Q(i3).then((o2) => {
|
|
109
|
+
if (true === o2.canExecute) {
|
|
110
110
|
e3.clickUuid = t3.uuid, e3.canClick = false;
|
|
111
|
-
const
|
|
111
|
+
const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = B(e3, o3, "beforeValidateForm");
|
|
112
112
|
let u3;
|
|
113
|
-
if (r4 && (u3 = H(e3, t3, r4,
|
|
113
|
+
if (r4 && (u3 = H(e3, t3, r4, i3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
|
|
114
114
|
n(u3) ? u3.then((n2) => {
|
|
115
|
-
n2 && true === n2 ? F(e3, t3,
|
|
115
|
+
n2 && true === n2 ? F(e3, t3, i3) : e3.canClick = true;
|
|
116
116
|
}).catch((n2) => {
|
|
117
|
-
|
|
118
|
-
}) : F(e3, t3,
|
|
117
|
+
e3.canClick = true;
|
|
118
|
+
}) : F(e3, t3, i3);
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
|
-
}(t2,
|
|
121
|
+
}(t2, i2, U(e2, t2, i2, c2));
|
|
122
122
|
}
|
|
123
123
|
const S = ["click", "suffixClick", "prefixClick", "menuClick"];
|
|
124
124
|
function P(e2, n2) {
|
|
125
125
|
return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
|
|
126
126
|
}
|
|
127
|
-
function R(e2, n2, t2,
|
|
128
|
-
const
|
|
129
|
-
if (
|
|
130
|
-
return null != t2 && (
|
|
127
|
+
function R(e2, n2, t2, i2) {
|
|
128
|
+
const o2 = {};
|
|
129
|
+
if (i2) for (const e3 in i2) o2[e3] = i2[e3];
|
|
130
|
+
return null != t2 && (o2._value = t2), e2 && (o2.pageContext = e2), n2 && (o2.configureObj = n2), o2;
|
|
131
131
|
}
|
|
132
|
-
function F(e2, t2,
|
|
133
|
-
const
|
|
132
|
+
function F(e2, t2, i2) {
|
|
133
|
+
const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
|
|
134
134
|
let r2 = true;
|
|
135
|
-
|
|
136
|
-
const c2 = z(e2,
|
|
135
|
+
(i2 == null ? void 0 : i2.skipValidate) && (r2 = false);
|
|
136
|
+
const c2 = z(e2, o2, "click");
|
|
137
137
|
if (c2) {
|
|
138
138
|
const e3 = function(e4, n2) {
|
|
139
139
|
return e4 && v.includes(n2.eventName);
|
|
140
140
|
}(c2.isStandard, c2.event);
|
|
141
141
|
e3 && (r2 = false);
|
|
142
142
|
}
|
|
143
|
-
u(e2, t2, r2).then((
|
|
144
|
-
if (!
|
|
145
|
-
const r3 = D(e2, t2,
|
|
143
|
+
u(e2, t2, r2).then((o3) => {
|
|
144
|
+
if (!o3) return void (e2.canClick = true);
|
|
145
|
+
const r3 = D(e2, t2, i2);
|
|
146
146
|
r3 ? n(r3) ? r3.then((n2) => {
|
|
147
|
-
n2 ? A(e2, t2, c2,
|
|
147
|
+
n2 ? A(e2, t2, c2, i2) : e2.canClick = true;
|
|
148
148
|
}).catch((n2) => {
|
|
149
|
-
|
|
150
|
-
}) : A(e2, t2, c2,
|
|
149
|
+
e2.canClick = true;
|
|
150
|
+
}) : A(e2, t2, c2, i2) : e2.canClick = true;
|
|
151
151
|
}).catch((n2) => {
|
|
152
|
-
|
|
152
|
+
e2.canClick = true;
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
function T(e2, n2, t2,
|
|
156
|
-
const r2 = U(e2, n2, t2,
|
|
157
|
-
A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [],
|
|
155
|
+
function T(e2, n2, t2, i2, o2) {
|
|
156
|
+
const r2 = U(e2, n2, t2, o2);
|
|
157
|
+
A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
|
|
158
158
|
}
|
|
159
|
-
function U(e2, n2, t2,
|
|
160
|
-
const
|
|
159
|
+
function U(e2, n2, t2, i2) {
|
|
160
|
+
const o2 = n2.code, r2 = n2.version, u2 = P(n2, t2);
|
|
161
161
|
if (u2) {
|
|
162
162
|
const e3 = c(n2, u2), t3 = e3 ? e3.getSelections() : null, l2 = e3 ? e3.getSelectionIds() : null;
|
|
163
|
-
|
|
164
|
-
_(n2) && (
|
|
163
|
+
i2 || (i2 = {}), i2.tableUuid = u2, i2.listCode = f(o2, r2, u2);
|
|
164
|
+
_(n2) && (i2.selections = t3, i2.id = l2 && l2.length > 0 ? l2[0] : null, i2.ids = l2);
|
|
165
165
|
const a2 = e3 ? e3.getTableConfigure() : null;
|
|
166
|
-
|
|
166
|
+
i2.tableConfigure = a2;
|
|
167
167
|
}
|
|
168
|
-
return R(n2, t2, e2,
|
|
168
|
+
return R(n2, t2, e2, i2);
|
|
169
169
|
}
|
|
170
170
|
function D(e2, n2, t2) {
|
|
171
|
-
const
|
|
172
|
-
let
|
|
173
|
-
return
|
|
171
|
+
const i2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
|
|
172
|
+
let o2;
|
|
173
|
+
return i2 && (o2 = H(e2, n2, i2, null, t2)), void 0 === o2 || o2;
|
|
174
174
|
}
|
|
175
175
|
function L(e2, n2, t2) {
|
|
176
|
-
const
|
|
177
|
-
|
|
176
|
+
const i2 = e2.code + "_";
|
|
177
|
+
g.$emit(i2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
|
|
178
178
|
}
|
|
179
179
|
function _(e2, n2) {
|
|
180
180
|
return !(!e2.pageType || "list" !== e2.pageType);
|
|
181
181
|
}
|
|
182
|
-
function V(e2, t2,
|
|
183
|
-
const
|
|
182
|
+
function V(e2, t2, i2) {
|
|
183
|
+
const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = B(e2, o2, "afterClick");
|
|
184
184
|
if (r2) {
|
|
185
|
-
const
|
|
186
|
-
n(
|
|
185
|
+
const o3 = H(e2, t2, r2, null, i2);
|
|
186
|
+
n(o3) ? o3.finally(() => {
|
|
187
187
|
e2.canClick = true;
|
|
188
188
|
}) : e2.canClick = true;
|
|
189
189
|
} else e2.canClick = true;
|
|
190
190
|
}
|
|
191
|
-
function q(e2, n2, t2,
|
|
192
|
-
|
|
191
|
+
function q(e2, n2, t2, i2, o2, u2) {
|
|
192
|
+
i2 ? (e2.result = o2, e2.canClick = true) : r(e2, n2, o2, "", u2);
|
|
193
193
|
const c2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
|
|
194
194
|
c2 && H(e2, n2, c2, t2);
|
|
195
195
|
}
|
|
196
|
-
function A(e2, t2,
|
|
196
|
+
function A(e2, t2, i2, o2) {
|
|
197
197
|
let r2 = t2, u2 = t2.props.linkPage;
|
|
198
198
|
if (u2 && u2 instanceof Array) {
|
|
199
199
|
const n2 = function(e3) {
|
|
200
200
|
let n3 = e3 ? e3.row : null;
|
|
201
201
|
n3 || (n3 = e3 && e3.selections && e3.selections.length > 0 ? e3.selections[0] : null);
|
|
202
202
|
return n3;
|
|
203
|
-
}(
|
|
203
|
+
}(o2), i3 = d(e2, t2, u2, n2);
|
|
204
204
|
let c2, l2 = false;
|
|
205
|
-
|
|
205
|
+
i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = m(t2), r2.props.linkPage = u2);
|
|
206
206
|
}
|
|
207
|
-
u2 && u2.jumpPageUrl ? (e2.canClick = true, L(e2, r2,
|
|
208
|
-
const r3 =
|
|
207
|
+
u2 && u2.jumpPageUrl ? (e2.canClick = true, L(e2, r2, o2)) : function(e3, t3, i3, o3) {
|
|
208
|
+
const r3 = i3, u3 = _(e3);
|
|
209
209
|
if (r3) {
|
|
210
|
-
const
|
|
210
|
+
const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = H(e3, t3, i4, o3);
|
|
211
211
|
if (function(e4, n2) {
|
|
212
212
|
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);
|
|
213
213
|
}(c2, l2)) return void (e3.canClick = true);
|
|
214
214
|
n(a2) ? a2.then((n2) => {
|
|
215
|
-
n2 ? q(e3, t3,
|
|
215
|
+
n2 ? q(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
|
|
216
216
|
}).catch((n2) => {
|
|
217
|
-
|
|
218
|
-
}) : q(e3, t3,
|
|
219
|
-
} else q(e3, t3,
|
|
220
|
-
}(e2, t2,
|
|
217
|
+
e3.canClick = true;
|
|
218
|
+
}) : q(e3, t3, o3, c2, a2, u3);
|
|
219
|
+
} else q(e3, t3, o3, false, null, u3);
|
|
220
|
+
}(e2, t2, i2, o2);
|
|
221
221
|
}
|
|
222
222
|
function I(e2, n2) {
|
|
223
223
|
const t2 = e2.customEvents;
|
|
@@ -228,10 +228,10 @@ function I(e2, n2) {
|
|
|
228
228
|
}
|
|
229
229
|
function B(e2, n2, t2) {
|
|
230
230
|
if (n2 && t2) {
|
|
231
|
-
const
|
|
232
|
-
if (
|
|
233
|
-
const n3 =
|
|
234
|
-
return n3.isStandard ?
|
|
231
|
+
const o2 = n2.filter((e3) => e3.name === t2);
|
|
232
|
+
if (o2 && o2.length > 0) {
|
|
233
|
+
const n3 = o2[0];
|
|
234
|
+
return n3.isStandard ? i[n3.eventName] : I(e2, n3);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -245,74 +245,74 @@ function $(e2, n2) {
|
|
|
245
245
|
}
|
|
246
246
|
function z(e2, n2, t2) {
|
|
247
247
|
if (n2 && t2) {
|
|
248
|
-
const
|
|
249
|
-
if (
|
|
250
|
-
const n3 =
|
|
251
|
-
return n3.isStandard ? { func:
|
|
248
|
+
const o2 = n2.filter((e3) => e3.name === t2);
|
|
249
|
+
if (o2 && o2.length > 0) {
|
|
250
|
+
const n3 = o2[0];
|
|
251
|
+
return n3.isStandard ? { func: i[n3.eventName], isStandard: true, event: n3 } : { func: I(e2, n3), isStandard: false, event: n3 };
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
function H(e2, n2, t2,
|
|
255
|
+
function H(e2, n2, t2, i2, o2) {
|
|
256
256
|
if (t2) {
|
|
257
|
-
if (
|
|
258
|
-
return t2.apply(t2, [
|
|
257
|
+
if (i2 || (i2 = { pageContext: e2, configureObj: n2 }), o2 && i2) for (const e3 in o2) i2[e3] = o2[e3];
|
|
258
|
+
return t2.apply(t2, [i2]);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
function Q(e2) {
|
|
262
|
-
const n2 = e2.pageContext,
|
|
262
|
+
const n2 = e2.pageContext, i2 = e2.configureObj, o2 = _(n2);
|
|
263
263
|
let r2 = [];
|
|
264
|
-
if (
|
|
264
|
+
if (o2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
|
|
265
265
|
else {
|
|
266
266
|
const e3 = n2.entity.data;
|
|
267
267
|
r2.push(e3);
|
|
268
268
|
}
|
|
269
|
-
const u2 =
|
|
270
|
-
return new Promise((e3,
|
|
269
|
+
const u2 = i2.props.base.condition;
|
|
270
|
+
return new Promise((e3, i3) => {
|
|
271
271
|
if (void 0 === u2 || "" === u2 || void 0 === r2 || 0 === r2.length) e3({ canExecute: true });
|
|
272
272
|
else {
|
|
273
|
-
const
|
|
274
|
-
let f2,
|
|
273
|
+
const i4 = n2.entity.context, o3 = t(n2), c2 = true, l2 = n2.tableName;
|
|
274
|
+
let f2, m2, g2 = true;
|
|
275
275
|
for (let e4 = 0; e4 < r2.length; e4++) {
|
|
276
276
|
const t2 = r2[e4];
|
|
277
277
|
for (let e5 = 0; e5 < u2.length; e5++) {
|
|
278
278
|
const r3 = u2[e5], a2 = r3.toolTips, p2 = r3.conditionList;
|
|
279
|
-
if (!s(p2, t2,
|
|
280
|
-
|
|
279
|
+
if (!s(p2, t2, o3, i4, c2, l2, null, n2)) {
|
|
280
|
+
g2 = false, f2 = a2, m2 = t2;
|
|
281
281
|
break;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
|
|
285
|
+
g2 ? e3({ canExecute: true }) : (f2 && a({ showClose: true, type: "warning", message: f2 }), e3({ canExecute: false, message: f2, failEntity: m2 }));
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
|
-
function W(e2, n2, t2,
|
|
290
|
-
var
|
|
291
|
-
n2 && (G("loadBeforeSend", w(null, (
|
|
289
|
+
function W(e2, n2, t2, i2) {
|
|
290
|
+
var o2;
|
|
291
|
+
n2 && (G("loadBeforeSend", w(null, (o2 = { pageContext: t2, configureObj: i2 }).pageContext, o2.configureObj, "beforeListLoad", o2), e2), G("beforeRequest", function(e3) {
|
|
292
292
|
return w(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
|
|
293
|
-
}({ pageContext: t2, configureObj:
|
|
293
|
+
}({ pageContext: t2, configureObj: i2 }), e2), G("gridDataLoaded", function(e3) {
|
|
294
294
|
return w(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
|
|
295
|
-
}({ pageContext: t2, configureObj:
|
|
295
|
+
}({ pageContext: t2, configureObj: i2 }), e2), G("gridComplete", function(e3) {
|
|
296
296
|
return w(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
|
|
297
|
-
}({ pageContext: t2, configureObj:
|
|
297
|
+
}({ pageContext: t2, configureObj: i2 }), e2), G("resizeHeight", function(e3) {
|
|
298
298
|
return w(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
|
|
299
|
-
}({ pageContext: t2, configureObj:
|
|
299
|
+
}({ pageContext: t2, configureObj: i2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), G("beforeInsertRow", function(e3) {
|
|
300
300
|
return w(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
|
|
301
|
-
}({ pageContext: t2, configureObj:
|
|
301
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("afterInsertRow", function(e3) {
|
|
302
302
|
return w(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
|
|
303
|
-
}({ pageContext: t2, configureObj:
|
|
303
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeDelete", function(e3) {
|
|
304
304
|
return w(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
|
|
305
|
-
}({ pageContext: t2, configureObj:
|
|
305
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("afterDelete", function(e3) {
|
|
306
306
|
return w(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
|
|
307
|
-
}({ pageContext: t2, configureObj:
|
|
307
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeEdit", function(e3) {
|
|
308
308
|
return w(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
|
|
309
|
-
}({ pageContext: t2, configureObj:
|
|
309
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeRestore", function(e3) {
|
|
310
310
|
return w(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
|
|
311
|
-
}({ pageContext: t2, configureObj:
|
|
311
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeRestoreValidate", function(e3) {
|
|
312
312
|
return w(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
|
|
313
|
-
}({ pageContext: t2, configureObj:
|
|
313
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), function(e3, n3, t3) {
|
|
314
314
|
n3 && (t3[e3] = n3);
|
|
315
|
-
}("filterDataEvent", w(null, t2,
|
|
315
|
+
}("filterDataEvent", w(null, t2, i2, "filter-data", { pageContext: t2, configureObj: i2 }), e2));
|
|
316
316
|
}
|
|
317
317
|
function G(e2, n2, t2) {
|
|
318
318
|
n2 && (t2[e2] = n2);
|
|
@@ -344,7 +344,7 @@ function ne(e2, n2, t2) {
|
|
|
344
344
|
function te(e2) {
|
|
345
345
|
return w(null, e2.pageContext, e2.configureObj, "before-upload", e2);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function ie(n2) {
|
|
348
348
|
let t2 = true;
|
|
349
349
|
if (!e()) {
|
|
350
350
|
const e2 = n2 && n2.events ? n2.events : [];
|
|
@@ -355,19 +355,19 @@ function oe(n2) {
|
|
|
355
355
|
}
|
|
356
356
|
return t2;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
return H(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption:
|
|
358
|
+
function oe(e2, n2, t2, i2, o2) {
|
|
359
|
+
return H(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
|
|
360
360
|
}
|
|
361
361
|
function re(n2, t2) {
|
|
362
|
-
let
|
|
362
|
+
let i2 = true;
|
|
363
363
|
if (e()) {
|
|
364
364
|
const e2 = z(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
|
|
365
365
|
if (e2) {
|
|
366
|
-
const n3 = e2.isStandard, t3 = e2.event,
|
|
367
|
-
n3 &&
|
|
366
|
+
const n3 = e2.isStandard, t3 = e2.event, o2 = navigator ? navigator.userAgent : null;
|
|
367
|
+
n3 && o2 && (o2.indexOf(" uni-app ") > 0 ? (b.includes(t3.eventName) || C.includes(t3.eventName)) && (i2 = false) : C.includes(t3.eventName) && (i2 = false));
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
return
|
|
370
|
+
return i2;
|
|
371
371
|
}
|
|
372
372
|
export {
|
|
373
373
|
j as appendDefaultMethods,
|
|
@@ -389,12 +389,12 @@ export {
|
|
|
389
389
|
J as gridSelectRecord,
|
|
390
390
|
M as gridSelectionChange,
|
|
391
391
|
y as handleAfterInitEvent,
|
|
392
|
-
|
|
392
|
+
oe as handleChartEvent,
|
|
393
393
|
h as handleEvent,
|
|
394
394
|
E as handleFormEvent,
|
|
395
395
|
ne as headerClick,
|
|
396
396
|
x as initPageEvents,
|
|
397
|
-
|
|
397
|
+
ie as isShowComponent,
|
|
398
398
|
re as isShowMobileEvent,
|
|
399
399
|
O as removeCustomFuncFromWindow,
|
|
400
400
|
Z as rowClick,
|