super-page-runtime 2.2.90 → 2.2.91-sit5
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/charts/chart-util.js +26 -32
- package/dist/es/components/runtime/utils/common-util.js +31 -31
- package/dist/es/components/runtime/utils/events/event-util.js +7 -7
- package/dist/es/components/runtime/utils/events/standard-event.js +14 -14
- package/dist/es/components/runtime/utils/page-helper-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +9 -9
- package/dist/es/components/runtime/utils/page-permission-util.js +6 -6
- package/dist/es/components/runtime/utils/table-utils.js +5 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +134 -132
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +24 -24
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +51 -55
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/style.css +3 -3
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import t from "../../../../assets/chart-themes/theme1.js";
|
|
|
2
2
|
import e from "../../../../assets/chart-themes/theme2.js";
|
|
3
3
|
import n from "../../../../assets/chart-themes/theme3.js";
|
|
4
4
|
import { getDefaultValue as i } from "../page-init-util.js";
|
|
5
|
-
import { getValueFromSource as s, setValueForVariableName as o, getParamNames as r, formatVariableValue as
|
|
5
|
+
import { getValueFromSource as s, setValueForVariableName as o, getParamNames as r, formatVariableValue as a, getValueFromVariable as l, setVariableValue as c } from "../page-helper-util.js";
|
|
6
6
|
import { appendDefaultMethods as f } from "../events/event-util.js";
|
|
7
7
|
var u = ((t2) => (t2.X_FIELD_NAME = "__x", t2.Y_TEMP_NAME = "__y", t2))(u || {});
|
|
8
8
|
const d = { theme1: t, theme2: e, theme3: n };
|
|
@@ -22,10 +22,10 @@ function m(t2, e2, n2, i2, s2) {
|
|
|
22
22
|
let t3 = parseInt(e2);
|
|
23
23
|
(null == t3 || isNaN(t3)) && (t3 = 2), r2 = parseFloat(parseFloat(r2).toFixed(t3));
|
|
24
24
|
}
|
|
25
|
-
let l2 = "";
|
|
26
|
-
t2.indexOf("prefix") > -1 && n2 && (l2 = n2);
|
|
27
25
|
let a2 = "";
|
|
28
|
-
|
|
26
|
+
t2.indexOf("prefix") > -1 && n2 && (a2 = n2);
|
|
27
|
+
let l2 = "";
|
|
28
|
+
return t2.indexOf("append") > -1 && i2 && (l2 = i2), a2 + r2.toLocaleString() + l2;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
function g(t2, e2) {
|
|
@@ -54,15 +54,15 @@ function x(t2, e2, n2) {
|
|
|
54
54
|
let o2 = e2.highlightInfos ? e2.highlightInfos : [], r2 = -1;
|
|
55
55
|
if (o2) {
|
|
56
56
|
const t3 = [];
|
|
57
|
-
for (let
|
|
58
|
-
const
|
|
57
|
+
for (let a2 = 0; a2 < o2.length; a2++) {
|
|
58
|
+
const l2 = o2[a2], c2 = l2.seriesIndex === s2.seriesIndex && l2.dataIndex === s2.dataIndex;
|
|
59
59
|
if (c2 || !i2.multiple) {
|
|
60
60
|
if (i2.selected) {
|
|
61
61
|
const t4 = "chart-pie" === e2.name ? "unselect" : "downplay";
|
|
62
|
-
n2.dispatchAction({ type: t4, seriesIndex:
|
|
62
|
+
n2.dispatchAction({ type: t4, seriesIndex: l2.seriesIndex, dataIndex: l2.dataIndex });
|
|
63
63
|
}
|
|
64
|
-
} else t3.push(
|
|
65
|
-
c2 && (r2 =
|
|
64
|
+
} else t3.push(l2);
|
|
65
|
+
c2 && (r2 = a2);
|
|
66
66
|
}
|
|
67
67
|
o2 = t3;
|
|
68
68
|
}
|
|
@@ -89,12 +89,12 @@ function b(t2, e2) {
|
|
|
89
89
|
if (!e2.clickSet) return;
|
|
90
90
|
const n2 = e2.clickSet, i2 = n2.variables;
|
|
91
91
|
if (!i2 || 0 == i2.length) return;
|
|
92
|
-
const r2 = e2.highlightInfos ? e2.highlightInfos : [],
|
|
93
|
-
for (const t3 of r2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex <
|
|
92
|
+
const r2 = e2.highlightInfos ? e2.highlightInfos : [], a2 = e2.cacheDatas ? e2.cacheDatas : [], l2 = [], c2 = [];
|
|
93
|
+
for (const t3 of r2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex < a2.length && l2.push(a2[t3.dataIndex]));
|
|
94
94
|
for (const e3 of i2) {
|
|
95
95
|
if (!e3.fieldName || !e3.variable) continue;
|
|
96
96
|
const i3 = [];
|
|
97
|
-
for (const t3 of
|
|
97
|
+
for (const t3 of l2) {
|
|
98
98
|
const n3 = s(t3, e3.fieldName, void 0);
|
|
99
99
|
null != n3 && i3.push(n3);
|
|
100
100
|
}
|
|
@@ -115,35 +115,29 @@ function v(t2, e2, n2) {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
if (!r2) return;
|
|
118
|
-
const
|
|
118
|
+
const l2 = e2.props ? e2.props.orderSource : "";
|
|
119
119
|
let c2 = e2.props ? e2.props.orderFix : "";
|
|
120
|
-
if ("variable" ==
|
|
120
|
+
if ("variable" == l2) {
|
|
121
121
|
const n3 = e2.props ? e2.props.orderVariable : "";
|
|
122
|
-
c2 =
|
|
123
|
-
}
|
|
124
|
-
c2 = "desc" == c2 || "DESC" == c2 ? "desc" : "asc";
|
|
125
|
-
const f2 = n2.length;
|
|
126
|
-
for (let t3 = 0; t3 < f2 - 1; t3++) {
|
|
127
|
-
const e3 = s(n2[t3], r2, void 0);
|
|
128
|
-
for (let i3 = t3 + 1; i3 < f2; i3++) {
|
|
129
|
-
const o3 = s(n2[i3], r2, void 0);
|
|
130
|
-
let l2 = false;
|
|
131
|
-
"desc" == c2 ? e3 < o3 && (l2 = true) : e3 > o3 && (l2 = true), l2 && ([n2[t3], n2[i3]] = [n2[i3], n2[t3]]);
|
|
132
|
-
}
|
|
122
|
+
c2 = a(t2, n3);
|
|
133
123
|
}
|
|
124
|
+
c2 = "desc" == c2 || "DESC" == c2 ? "desc" : "asc", n2.sort((t3, e3) => {
|
|
125
|
+
const n3 = s(t3, r2, void 0), i3 = s(e3, r2, void 0);
|
|
126
|
+
return "desc" === c2 ? i3 - n3 : n3 - i3;
|
|
127
|
+
});
|
|
134
128
|
}
|
|
135
129
|
function N(t2, e2, n2, i2, o2) {
|
|
136
130
|
if (!n2) return n2;
|
|
137
131
|
const r2 = e2.props ? e2.props : {};
|
|
138
132
|
if (!r2.limitQuantity) return n2;
|
|
139
|
-
let
|
|
140
|
-
if (r2.itemNumVariable ? (
|
|
141
|
-
if (n2.length <
|
|
133
|
+
let l2 = null;
|
|
134
|
+
if (r2.itemNumVariable ? (l2 = a(t2, r2.itemNumVariable), l2 = parseInt(l2)) : l2 = r2.itemNumFix ? r2.itemNumFix : 10, null == l2 || null == l2 || isNaN(l2)) return n2;
|
|
135
|
+
if (n2.length < l2) return n2;
|
|
142
136
|
const c2 = r2.overItemAlias, f2 = [], u2 = {};
|
|
143
137
|
i2 = i2 || [], o2 = o2 || [];
|
|
144
138
|
for (let t3 = 0; t3 < n2.length; t3++) {
|
|
145
139
|
const e3 = n2[t3];
|
|
146
|
-
if (t3 <
|
|
140
|
+
if (t3 < l2) f2.push(e3);
|
|
147
141
|
else {
|
|
148
142
|
if (!c2) break;
|
|
149
143
|
for (const t4 of i2) {
|
|
@@ -218,11 +212,11 @@ function k(t2, e2, n2, i2) {
|
|
|
218
212
|
const o2 = r(t2);
|
|
219
213
|
for (const e3 of o2) {
|
|
220
214
|
let o3 = null;
|
|
221
|
-
o3 = e3.startsWith("${row.") ? s(n2, e3.substring(6, e3.length - 1), null) :
|
|
215
|
+
o3 = e3.startsWith("${row.") ? s(n2, e3.substring(6, e3.length - 1), null) : l(i2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), o3);
|
|
222
216
|
}
|
|
223
217
|
t2.includes("return ") || (t2 = "return " + t2);
|
|
224
|
-
const
|
|
225
|
-
return f(
|
|
218
|
+
const a2 = new Function("params", t2);
|
|
219
|
+
return f(a2, i2), a2({ pageContext: i2, row: n2 });
|
|
226
220
|
}
|
|
227
221
|
function M(t2) {
|
|
228
222
|
if (!t2 || !t2.$el) return;
|
|
@@ -1,35 +1,35 @@
|
|
|
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
|
-
function
|
|
3
|
+
function n(e2) {
|
|
4
4
|
return "function" == typeof Array.isArray ? Array.isArray(e2) : "[object Array]" === Object.prototype.toString.call(e2);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
if (
|
|
6
|
+
function r(t2, n2) {
|
|
7
|
+
if (n2) return t2;
|
|
8
8
|
{
|
|
9
|
-
const { baseURL:
|
|
10
|
-
let i2 =
|
|
11
|
-
return "developing.model" ===
|
|
9
|
+
const { baseURL: n3, projectModel: r2 } = window.$vueApp.config.globalProperties;
|
|
10
|
+
let i2 = n3;
|
|
11
|
+
return "developing.model" === r2 || t2 && (i2 = e(t2)), i2;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
function i(e2, t2,
|
|
14
|
+
function i(e2, t2, n2, i2) {
|
|
15
15
|
let o2 = e2;
|
|
16
|
-
if (e2 &&
|
|
16
|
+
if (e2 && n2 && !function(e3) {
|
|
17
17
|
return 0 === e3.indexOf("http:") || 0 === e3.indexOf("https:");
|
|
18
18
|
}(e2)) {
|
|
19
|
-
o2 =
|
|
19
|
+
o2 = r(n2, i2) + "/" + t2 + e2;
|
|
20
20
|
}
|
|
21
21
|
return o2;
|
|
22
22
|
}
|
|
23
23
|
function o(e2) {
|
|
24
24
|
if (!e2) return e2;
|
|
25
|
-
const
|
|
25
|
+
const n2 = t();
|
|
26
26
|
if (Array.isArray(e2)) {
|
|
27
|
-
const t2 = [],
|
|
27
|
+
const t2 = [], r2 = [], i2 = "~-~-";
|
|
28
28
|
return e2.forEach((e3) => {
|
|
29
29
|
const o2 = e3.templateName;
|
|
30
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)),
|
|
32
|
-
|
|
31
|
+
const u2 = o2.substring(0, o2.indexOf(i2)), s2 = o2.substring(o2.indexOf(i2) + i2.length, o2.lastIndexOf(i2)), a2 = o2.substring(o2.lastIndexOf(i2) + i2.length);
|
|
32
|
+
n2 === s2 && r2.indexOf(u2) < 0 && (t2.push({ templateUuid: e3.templateUuid, templateName: a2 }), r2.push(u2));
|
|
33
33
|
} else t2.push(e3);
|
|
34
34
|
}), t2;
|
|
35
35
|
}
|
|
@@ -37,31 +37,31 @@ function o(e2) {
|
|
|
37
37
|
function u(e2) {
|
|
38
38
|
return e2.toLowerCase().replace(/( |^)[a-z]/g, (e3) => e3.toUpperCase());
|
|
39
39
|
}
|
|
40
|
-
function s(e2, t2,
|
|
41
|
-
return "V" + t2 + "__" + e2 + "__" +
|
|
40
|
+
function s(e2, t2, n2) {
|
|
41
|
+
return "V" + t2 + "__" + e2 + "__" + n2;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function a(e2) {
|
|
44
44
|
if ("object" != typeof e2 || null == e2) return e2;
|
|
45
45
|
const t2 = Array.isArray(e2) ? [] : {};
|
|
46
|
-
for (const
|
|
46
|
+
for (const n2 in e2) e2.hasOwnProperty(n2) && (t2[n2] = a(e2[n2]));
|
|
47
47
|
return t2;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function l(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 p(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)) {
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
2 ===
|
|
57
|
+
let n2 = (_d = (_c = e2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop;
|
|
58
|
+
n2.indexOf("${") >= 0 && (n2 = n2.substring(2, n2.lastIndexOf("}")));
|
|
59
|
+
const r2 = n2.split(".");
|
|
60
|
+
2 === r2.length ? t2 = r2[1] : 3 === r2.length && (t2 = r2[1] + "__" + r2[2]);
|
|
61
61
|
} else e2.code && (t2 = e2.code);
|
|
62
62
|
return t2;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function f(e2) {
|
|
65
65
|
try {
|
|
66
66
|
if (null != e2) {
|
|
67
67
|
const t2 = parseInt(e2 + "");
|
|
@@ -73,7 +73,7 @@ function p(e2) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
function c(e2) {
|
|
76
|
-
return !!e2.isWorkflowEntity
|
|
76
|
+
return !!e2.isWorkflowEntity;
|
|
77
77
|
}
|
|
78
78
|
function d(e2, t2) {
|
|
79
79
|
if (e2 && t2) {
|
|
@@ -85,14 +85,14 @@ function g(e2, t2) {
|
|
|
85
85
|
return null === e2[t2] || void 0 === e2[t2] || "" === e2[t2];
|
|
86
86
|
}
|
|
87
87
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
a as deepCopy,
|
|
89
|
+
r as getBaseUrl,
|
|
90
90
|
s as getListCode,
|
|
91
|
-
|
|
91
|
+
p as getPropClassName,
|
|
92
92
|
i as getRealRestApiPath,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
l as getWorkflowId,
|
|
94
|
+
n as isArrayFn,
|
|
95
|
+
f as isNumber,
|
|
96
96
|
g as isVariableInvalidValue,
|
|
97
97
|
c as isWorkflowPage,
|
|
98
98
|
o as packageTemplateFiles,
|
|
@@ -204,18 +204,18 @@ function q(e2, t2, i2, o2) {
|
|
|
204
204
|
i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = g(t2), r2.props.linkPage = u2);
|
|
205
205
|
}
|
|
206
206
|
u2 && u2.jumpPageUrl ? (e2.canClick = true, D(e2, r2, o2)) : function(e3, t3, i3, o3) {
|
|
207
|
-
const r3 = i3;
|
|
207
|
+
const r3 = i3, u3 = L(e3);
|
|
208
208
|
if (r3) {
|
|
209
|
-
const i4 = r3.func,
|
|
209
|
+
const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = z(e3, t3, i4, o3);
|
|
210
210
|
if (function(e4, n2) {
|
|
211
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 || "saveQueryCharts" === n2.eventName);
|
|
212
|
-
}(
|
|
213
|
-
n(
|
|
214
|
-
n2 ? V(e3, t3, o3,
|
|
212
|
+
}(c2, l2)) return void (e3.canClick = true);
|
|
213
|
+
n(a2) ? a2.then((n2) => {
|
|
214
|
+
n2 ? V(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
|
|
215
215
|
}).catch((n2) => {
|
|
216
216
|
e3.canClick = true;
|
|
217
|
-
}) : V(e3, t3, o3,
|
|
218
|
-
} else e3
|
|
217
|
+
}) : V(e3, t3, o3, c2, a2, u3);
|
|
218
|
+
} else V(e3, t3, o3, false, null, u3);
|
|
219
219
|
}(e2, t2, i2, o2);
|
|
220
220
|
}
|
|
221
221
|
function A(e2, n2) {
|
|
@@ -12,7 +12,7 @@ import { getPermissionCodes as k, getDefaultValue as R, getModelFields as N } fr
|
|
|
12
12
|
import { updateChartDatasources as M, caculateShowCondition as v, getVariableValue as S, setVariableValue as I } from "../page-helper-util.js";
|
|
13
13
|
import x from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as A } from "../table-utils.js";
|
|
15
|
-
import { getWorkflowRules as
|
|
15
|
+
import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
|
|
16
16
|
import { functions as E } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as _ } from "../page-store.js";
|
|
18
18
|
const j = { save: function(e2) {
|
|
@@ -38,8 +38,8 @@ const j = { save: function(e2) {
|
|
|
38
38
|
}, disagreeList: function(e2) {
|
|
39
39
|
return z(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
40
40
|
}, back: function(e2) {
|
|
41
|
-
const t2 = e2.pageContext;
|
|
42
|
-
G(t2,
|
|
41
|
+
const t2 = e2.pageContext, s2 = t2.entity ? t2.entity.data : {}, n2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
|
|
42
|
+
G(t2, e2.configureObj, s2, n2);
|
|
43
43
|
}, delete: function(e2) {
|
|
44
44
|
return function(e3) {
|
|
45
45
|
return new Promise((s2, i2) => {
|
|
@@ -382,9 +382,9 @@ function q(t2, s2, n2, o2, i2) {
|
|
|
382
382
|
b(t3, r2).refresh();
|
|
383
383
|
}
|
|
384
384
|
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
385
|
-
const
|
|
386
|
-
let
|
|
387
|
-
|
|
385
|
+
const o4 = e(t3.entity.page);
|
|
386
|
+
let i4 = n3;
|
|
387
|
+
i4 || (i4 = {}), Object.assign(o4, i4), G(t3, s3, o4, a3);
|
|
388
388
|
}
|
|
389
389
|
o3 && l({ message: u().t(o3), type: "success", showClose: true });
|
|
390
390
|
}(t2, s2, n2, o2), t2.canClick = true) : a2 && "form" === a2 ? function(e2, t3, s3, n3) {
|
|
@@ -396,7 +396,7 @@ function q(t2, s2, n2, o2, i2) {
|
|
|
396
396
|
const n5 = t4.props.base.successOperation;
|
|
397
397
|
if (!n5 || null === n5) return;
|
|
398
398
|
const o4 = t4.props.base.isNeedValueMapping;
|
|
399
|
-
"noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? de(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (G(e3, s4, o4), e3.canClick = true);
|
|
399
|
+
"noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? de(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (G(e3, t4, s4, o4), e3.canClick = true);
|
|
400
400
|
}(e2, t3, { ...o3, ...e2.entity.page });
|
|
401
401
|
} else e2.canClick = true;
|
|
402
402
|
n3 && l({ message: u().t(n3), type: "success", showClose: true });
|
|
@@ -406,12 +406,12 @@ function H(e2, t2, s2) {
|
|
|
406
406
|
let n2;
|
|
407
407
|
return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
|
|
408
408
|
}
|
|
409
|
-
function G(e2, t2, s2) {
|
|
410
|
-
const
|
|
411
|
-
if ("openWindow" ===
|
|
409
|
+
function G(e2, t2, s2, n2) {
|
|
410
|
+
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
411
|
+
if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
|
|
412
412
|
else {
|
|
413
|
-
const
|
|
414
|
-
C.$emit(
|
|
413
|
+
const i2 = e2.tableName, a2 = void 0 !== n2 && true === n2 && s2 && void 0 !== s2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
|
|
414
|
+
C.$emit(r2 + "close-dialog", { isNeedValueMapping: a2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: i2, jumpMode: o2 });
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
function J(e2, t2, s2, n2, o2) {
|
|
@@ -805,7 +805,7 @@ function me(e2, s2, o2) {
|
|
|
805
805
|
f2 && (C2.ids = fe(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
|
|
806
806
|
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = _();
|
|
807
807
|
h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
|
|
808
|
-
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Z(t3, true, e3), e3.workflowRules =
|
|
808
|
+
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Z(t3, true, e3), e3.workflowRules = O(e3);
|
|
809
809
|
const s4 = e3.pageType;
|
|
810
810
|
s4 && "form" === s4 && function(e4) {
|
|
811
811
|
(function(e5) {
|
|
@@ -859,7 +859,7 @@ function me(e2, s2, o2) {
|
|
|
859
859
|
const h2 = C2 + "/dsc/commons/gets", P2 = _();
|
|
860
860
|
P2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(h2, T2).then((t3) => {
|
|
861
861
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
862
|
-
const s4 = e3.customRules, n2 = e3.rules, i4 =
|
|
862
|
+
const s4 = e3.customRules, n2 = e3.rules, i4 = U(s4, n2);
|
|
863
863
|
e3.rules = i4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
|
|
864
864
|
}).catch((t3) => {
|
|
865
865
|
e3.canClick = true, i3(t3);
|
|
@@ -280,7 +280,7 @@ function caculateShowCondition(pageContext, showConditions, row) {
|
|
|
280
280
|
const s = e.dataType;
|
|
281
281
|
"CONTAIN" != n && "NOT_CONTAIN" != n || r && !r.includes && (n = "CONTAIN" == n ? "EQ" : "NET");
|
|
282
282
|
let i = e.variableIsNull, u;
|
|
283
|
-
if (i || (i = "null"), void 0 !== a && "" !== a || (a = null, "null" === i ? n = "IS_NULL" : "notequal" === i ? n = "IS_NOT_NULL" : u = true), null == u) try {
|
|
283
|
+
if (i || (i = "null"), "IS_NULL" !== n && "IS_NOT_NULL" !== n && (void 0 !== a && "" !== a || (a = null, "null" === i ? n = "IS_NULL" : "notequal" === i ? n = "IS_NOT_NULL" : u = true)), null == u) try {
|
|
284
284
|
u = executeExpression(r, n, a, s);
|
|
285
285
|
} catch (t2) {
|
|
286
286
|
u = false;
|
|
@@ -136,21 +136,21 @@ function C(s2, i2, n2) {
|
|
|
136
136
|
const I = ["button-detail", "print-label"];
|
|
137
137
|
function O(e2, t2) {
|
|
138
138
|
var _a, _b;
|
|
139
|
-
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null;
|
|
140
|
-
let
|
|
141
|
-
if (
|
|
139
|
+
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, n2 = p(e2);
|
|
140
|
+
let o2 = false;
|
|
141
|
+
if (n2 && I.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
142
142
|
const s3 = e2.fieldPermissionMap.get("all_fields");
|
|
143
|
-
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled",
|
|
143
|
+
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", o2 = true);
|
|
144
144
|
}
|
|
145
145
|
if (s2) {
|
|
146
|
-
const
|
|
147
|
-
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[
|
|
146
|
+
const r2 = i(s2);
|
|
147
|
+
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[r2] || (e2.rules[r2] = []), t2.props.rules.forEach((e3) => {
|
|
148
148
|
d(e3);
|
|
149
|
-
}), e2.rules[
|
|
150
|
-
const s3 = e2.fieldPermissionMap.get(
|
|
149
|
+
}), e2.rules[r2] = t2.props.rules), n2 && !o2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
150
|
+
const s3 = e2.fieldPermissionMap.get(r2);
|
|
151
151
|
t2.runtime.props || (t2.runtime.props = {}), s3 ? false === s3.canEdit ? t2.runtime.props.state = "disabled" : s3.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true) : t2.runtime.props.state = "";
|
|
152
152
|
}
|
|
153
|
-
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop:
|
|
153
|
+
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: r2, events: t2.props.customRuleEvents }));
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function _(e2, t2) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var o = ((o2) => (o2.AUTHENTICATED = "AUTHENTICATED", o2.ANONYMOUS = "ANONYMOUS", o2.AUTHORIZED = "AUTHORIZED", o2))(o || {});
|
|
2
|
-
const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/
|
|
2
|
+
const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }, { code: "returnableTaskInformation", label: "获取可退回环节信息", funcType: "AUTHENTICATED", path: "/workflow-commons/returnable-task/{taskId}$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", props: { base: { type: "info", plain: true } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", props: { base: { type: "primary" } }, functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", props: { base: { type: "primary", plain: true } }, functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", props: { base: { type: "primary" } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", props: { base: { type: "success", text: true } }, functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", props: { base: { type: "danger", text: true } }, functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", props: { base: { type: "primary", text: true } }, functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消", props: { base: { type: "info", text: true } }, functions: [] } }, s = {};
|
|
3
3
|
function n(o2) {
|
|
4
4
|
return o2 ? e[o2] : void 0;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function a(o2) {
|
|
7
7
|
if (!o2) return;
|
|
8
8
|
let n2 = s[o2];
|
|
9
9
|
if (null == n2) {
|
|
10
10
|
for (const s2 in e) {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
for (const e2 of
|
|
11
|
+
const a2 = e[s2].functions;
|
|
12
|
+
if (a2) {
|
|
13
|
+
for (const e2 of a2) {
|
|
14
14
|
if (o2 === (e2.code ? e2.code : s2)) {
|
|
15
15
|
n2 = e2;
|
|
16
16
|
break;
|
|
@@ -25,6 +25,6 @@ function t(o2) {
|
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
27
|
o as FuncType,
|
|
28
|
-
|
|
28
|
+
a as getFunctionInfo,
|
|
29
29
|
n as getStandPermissionInfo
|
|
30
30
|
};
|
|
@@ -24,7 +24,11 @@ function u(t2, i2, s2, n2) {
|
|
|
24
24
|
const o2 = e(i3, t2);
|
|
25
25
|
o2 && (u3.permission = o2);
|
|
26
26
|
}
|
|
27
|
-
u3.label = o(u3.title), u3.sourceButton = { uuid: i3.uuid }, r3.props = u3, void 0 !== n2
|
|
27
|
+
if (u3.label = o(u3.title), u3.sourceButton = { uuid: i3.uuid }, r3.props = u3, void 0 !== n2) {
|
|
28
|
+
const t3 = n2(i3);
|
|
29
|
+
r3.onClick = (t3 == null ? void 0 : t3.onClick) ?? t3, r3.eventName = t3 == null ? void 0 : t3.eventName;
|
|
30
|
+
}
|
|
31
|
+
s2.push(r3);
|
|
28
32
|
});
|
|
29
33
|
}
|
|
30
34
|
function l(t2, e2, o2, n2) {
|