super-page-runtime 2.3.7 → 2.3.9-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 +50 -50
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +102 -102
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +26 -24
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +59 -58
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +38 -37
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +28 -27
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +29 -22
- package/dist/es/components/runtime/utils/common-util.d.ts +4 -0
- package/dist/es/components/runtime/utils/common-util.js +4 -0
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.js +18 -18
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +122 -104
- package/dist/es/components/runtime/utils/page-init-util.js +24 -25
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +4 -1
- 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.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +11 -12
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- 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 +19 -17
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +26 -20
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +10 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +31 -28
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +32 -25
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +52 -49
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +33 -30
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +38 -35
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +18 -15
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -55
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
- 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 +55 -53
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +63 -61
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +25 -22
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +16 -13
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +11 -12
- package/dist/es/style.css +30 -0
- package/package.json +2 -2
- package/dist/es.zip +0 -0
|
@@ -8,8 +8,8 @@ import C from "../eventBus.js";
|
|
|
8
8
|
import T from "axios";
|
|
9
9
|
import { handleEvent as y, getTableUuid as h, doAfterClickEvent as P } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as w } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as k, getDefaultValue as R, getModelFields as
|
|
12
|
-
import { updateChartDatasources as
|
|
11
|
+
import { getPermissionCodes as k, getDefaultValue as R, getModelFields as N } from "../page-init-util.js";
|
|
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
15
|
import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
|
|
@@ -226,8 +226,7 @@ const j = { save: function(e2) {
|
|
|
226
226
|
let t2 = null;
|
|
227
227
|
try {
|
|
228
228
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
229
|
-
} catch (
|
|
230
|
-
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
229
|
+
} catch (e4) {
|
|
231
230
|
}
|
|
232
231
|
x.printLabel(e3, t2);
|
|
233
232
|
}(e2);
|
|
@@ -280,7 +279,7 @@ function D(e2) {
|
|
|
280
279
|
let o2 = null;
|
|
281
280
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
282
281
|
const i2 = o2 ? o2.state : void 0;
|
|
283
|
-
o2 && (o2.state = "disabled"),
|
|
282
|
+
o2 && (o2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
284
283
|
o2 && (o2.state = i2);
|
|
285
284
|
}).catch(() => {
|
|
286
285
|
o2 && (o2.state = i2);
|
|
@@ -380,10 +379,11 @@ function q(t2, s2, n2, o2, i2) {
|
|
|
380
379
|
let i3 = s3.props.base.successOperation;
|
|
381
380
|
const a3 = s3.props.base.isNeedValueMapping, r2 = h(t3, s3);
|
|
382
381
|
i3 || z.includes(s3.name) || (i3 = "refresh");
|
|
383
|
-
if ("refresh" === i3)
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
382
|
+
if ("refresh" === i3) {
|
|
383
|
+
if (r2) {
|
|
384
|
+
b(t3, r2).refresh();
|
|
385
|
+
}
|
|
386
|
+
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
387
387
|
const o4 = e(t3.entity.page);
|
|
388
388
|
let i4 = n3;
|
|
389
389
|
i4 || (i4 = {}), Object.assign(o4, i4), J(t3, s3, o4, a3);
|
|
@@ -437,7 +437,7 @@ function Y(e2, t2, s2, n2, o2) {
|
|
|
437
437
|
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
438
438
|
const t4 = e4.source;
|
|
439
439
|
if (!t4) return;
|
|
440
|
-
const o3 = t4.split("."), i3 = S(n3, o3), a2 = e4.target, r2 =
|
|
440
|
+
const o3 = t4.split("."), i3 = S(n3, o3), a2 = e4.target, r2 = N(null, a2);
|
|
441
441
|
I(s3.entity, r2, i3);
|
|
442
442
|
});
|
|
443
443
|
}
|
|
@@ -455,7 +455,7 @@ function K(e2, t2, s2, n2) {
|
|
|
455
455
|
const s3 = h(e2, t2);
|
|
456
456
|
if (s3) {
|
|
457
457
|
b(e2, s3).refresh();
|
|
458
|
-
}
|
|
458
|
+
}
|
|
459
459
|
} else if (i2 && "form" === i2) {
|
|
460
460
|
const t3 = e2.entity.data;
|
|
461
461
|
fe(e2, t3.ID ? t3.ID : t3.id);
|
|
@@ -516,10 +516,10 @@ function X(e2, s2) {
|
|
|
516
516
|
null != w2 && f2.append("isWorkflowEntity", w2 + "");
|
|
517
517
|
const R2 = k(a2, i2);
|
|
518
518
|
R2 && f2.append("functionCode", R2);
|
|
519
|
-
const
|
|
520
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
521
|
-
const
|
|
522
|
-
f2.append("isPermission",
|
|
519
|
+
const N2 = ie(i2);
|
|
520
|
+
f2.append("additionalParamMapStr", JSON.stringify(N2));
|
|
521
|
+
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
522
|
+
f2.append("isPermission", M2 + "");
|
|
523
523
|
const v2 = i2.systemCode;
|
|
524
524
|
v2 && f2.append("systemCode", v2);
|
|
525
525
|
const S2 = i2.backendUrl;
|
|
@@ -556,7 +556,7 @@ function ee(e2) {
|
|
|
556
556
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
557
557
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
558
558
|
const d2 = ie(t2);
|
|
559
|
-
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids
|
|
559
|
+
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids && (c2.ids = [d2.ids]));
|
|
560
560
|
const m2 = n2.props.base.successOperation;
|
|
561
561
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
562
562
|
}
|
|
@@ -809,7 +809,7 @@ function ge(e2, s2, o2) {
|
|
|
809
809
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
810
810
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
811
811
|
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
|
|
812
|
-
if (
|
|
812
|
+
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
813
813
|
const t3 = {};
|
|
814
814
|
e3.tableUuids.forEach((e4) => {
|
|
815
815
|
const s4 = r(u2, l2, e4);
|
|
@@ -862,7 +862,7 @@ function ge(e2, s2, o2) {
|
|
|
862
862
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
863
863
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
864
864
|
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
865
|
-
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = be(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2),
|
|
865
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = be(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
866
866
|
const t3 = {};
|
|
867
867
|
e3.tableUuids.forEach((e4) => {
|
|
868
868
|
const s4 = r(u2, l2, e4);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PageContext } from '../interfaces/page-design-types';
|
|
2
2
|
|
|
3
3
|
export declare function setObjectPropRule(prop: any, rules: any, leafRule: any): {};
|
|
4
|
-
export declare function validator(entity: any, rules: any, columns: any, rowIndex: any, isSql: any): any;
|
|
4
|
+
export declare function validator(entity: any, rules: any, columns: any, rowIndex: any, isSql: any, pageContext: any): any;
|
|
5
5
|
export declare function validateDataModelFunc(pageContext: any, configureObj: any, isEnableRequired: any): Promise<unknown>;
|
|
6
6
|
/**
|
|
7
7
|
* 封装自定义校验规则
|
|
@@ -1,119 +1,137 @@
|
|
|
1
1
|
import e from "async-validator";
|
|
2
2
|
import { ElMessage as t } from "element-plus";
|
|
3
|
-
import { getComponentRefByCode as
|
|
3
|
+
import { getComponentRefByCode as s, getComponentRef as n, getAllComponentRefs as r } from "../global-refs.js";
|
|
4
4
|
import { getI18n as i } from "agilebuilder-ui/src/utils/util";
|
|
5
5
|
import { getAdditionalParamMap as l } from "./standard-event.js";
|
|
6
6
|
import { isPromise as o } from "agilebuilder-ui/src/utils/common-util";
|
|
7
7
|
import { getListCode as a, isWorkflowPage as u } from "../common-util.js";
|
|
8
|
-
function f(e2, t2,
|
|
9
|
-
const
|
|
8
|
+
function f(e2, t2, s2) {
|
|
9
|
+
const n2 = {};
|
|
10
10
|
t2 || (t2 = {});
|
|
11
11
|
let r2 = 0;
|
|
12
12
|
const i2 = e2.split(".");
|
|
13
13
|
return i2.forEach((e3) => {
|
|
14
14
|
let l2;
|
|
15
|
-
if (r2 === i2.length - 1) l2 = function(e4, t3,
|
|
16
|
-
let
|
|
17
|
-
for (let r3 = 0; r3 < t3.length; r3++) if (
|
|
18
|
-
if (t3[r3 + 1] ===
|
|
15
|
+
if (r2 === i2.length - 1) l2 = function(e4, t3, s3) {
|
|
16
|
+
let n3;
|
|
17
|
+
for (let r3 = 0; r3 < t3.length; r3++) if (n3 = 0 === r3 ? e4[t3[r3]] : n3.fields[t3[r3]], r3 !== t3.length - 1) {
|
|
18
|
+
if (t3[r3 + 1] === s3) break;
|
|
19
19
|
}
|
|
20
|
-
return
|
|
21
|
-
}(
|
|
20
|
+
return n3;
|
|
21
|
+
}(n2, i2, e3), l2.fields[e3] = s2;
|
|
22
22
|
else {
|
|
23
|
-
let
|
|
24
|
-
0 === r2 ? l2 = t2 : (
|
|
25
|
-
let
|
|
23
|
+
let s3;
|
|
24
|
+
0 === r2 ? l2 = t2 : (s3 = function(e4, t3, s4) {
|
|
25
|
+
let n3;
|
|
26
26
|
for (let r3 = 0; r3 < t3.length; r3++) {
|
|
27
27
|
const i3 = t3[r3];
|
|
28
|
-
if (
|
|
28
|
+
if (n3 = 0 === r3 ? e4[i3] : n3.fields[t3[r3]], i3 === s4) break;
|
|
29
29
|
}
|
|
30
|
-
return
|
|
31
|
-
}(
|
|
30
|
+
return n3;
|
|
31
|
+
}(n2, i2, i2[r2 - 1]), l2 = s3.fields), l2[e3] || (l2[e3] = { type: "object", required: true, fields: {} }), 0 === r2 ? n2[e3] = l2[e3] : s3.fields[e3] = l2[e3];
|
|
32
32
|
}
|
|
33
33
|
r2++;
|
|
34
|
-
}),
|
|
34
|
+
}), n2;
|
|
35
35
|
}
|
|
36
|
-
function c(e2, t2, n2,
|
|
37
|
-
return
|
|
36
|
+
function c(e2, t2, s2, n2, r2, i2) {
|
|
37
|
+
return m(e2, t2, s2, n2, true, r2, i2);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function d(e2) {
|
|
40
40
|
if (e2) return Object.keys(e2).forEach((t2) => {
|
|
41
41
|
if (t2.indexOf(".") >= 0) {
|
|
42
|
-
let
|
|
43
|
-
|
|
42
|
+
let s2 = [];
|
|
43
|
+
s2 = t2.split("."), e2[s2[0]] ? e2[s2[0]].fields[s2[1]] = e2[t2][0] : (e2[s2[0]] = new Object(), e2[s2[0]].fields = new Object(), e2[s2[0]].fields[s2[1]] = e2[t2][0], e2[s2[0]].type = "object"), delete e2[t2];
|
|
44
44
|
}
|
|
45
45
|
}), e2;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
let
|
|
49
|
-
if (
|
|
50
|
-
return new e(
|
|
51
|
-
let
|
|
52
|
-
if (e2
|
|
53
|
-
|
|
47
|
+
function m(n2, r2, i2, l2, o2, a2, u2) {
|
|
48
|
+
let f2, c2 = d(r2);
|
|
49
|
+
if (r2 && null !== r2 || !i2 || (c2 = {}), !c2 || 0 === Object.keys(c2).length) return n2.validateErrorField = "", true;
|
|
50
|
+
return new e(c2).validate(n2, { first: true }, (e2, c3) => {
|
|
51
|
+
let d2;
|
|
52
|
+
if (e2) {
|
|
53
|
+
f2 = e2[0].message, d2 = e2[0].field, t({ message: f2, showClose: true, type: "warning", duration: 3e3 });
|
|
54
|
+
const n3 = s(u2, d2);
|
|
55
|
+
n3 && n3.addRequiredClass && n3.addRequiredClass();
|
|
56
|
+
} else f2 = true;
|
|
57
|
+
if (d2 && true === o2) {
|
|
58
|
+
if (/[A-Z]+/.test(d2) && void 0 !== n2[d2.toLowerCase()]) {
|
|
54
59
|
const e3 = JSON.parse(JSON.stringify(n2));
|
|
55
|
-
e3[
|
|
60
|
+
e3[d2.toUpperCase()] = n2[d2.toLowerCase()], delete e3[d2.toLowerCase()], f2 = m(e3, r2, i2, l2, false, a2, u2);
|
|
56
61
|
}
|
|
57
62
|
}
|
|
58
|
-
}),
|
|
63
|
+
}), f2;
|
|
59
64
|
}
|
|
60
|
-
function p(e2, n2,
|
|
61
|
-
const
|
|
62
|
-
return null !=
|
|
65
|
+
function p(e2, n2, r2) {
|
|
66
|
+
const o2 = e2.entity.data, a2 = { ...e2.entity.page, ...o2 }, f2 = e2.rules, c2 = n2.props.base ? n2.props.base.isEnableRequired : null;
|
|
67
|
+
return null != c2 && (r2 = c2), null == r2 && (r2 = false), function(e3, n3, r3, o3) {
|
|
63
68
|
if (e3) {
|
|
64
|
-
return u(
|
|
65
|
-
return new Promise((
|
|
66
|
-
const
|
|
67
|
-
b(e4, n4,
|
|
68
|
-
if (
|
|
69
|
-
let i2 =
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
return u(o3) ? function(e4, n4, r4) {
|
|
70
|
+
return new Promise((o4, a3) => {
|
|
71
|
+
const u2 = l(n4), f3 = n4.entity.context, c3 = n4.entity.task, d2 = true, m2 = n4.subTablePageInfo;
|
|
72
|
+
b(e4, n4, r4).then((r5) => {
|
|
73
|
+
if (r5) {
|
|
74
|
+
let i2, l2, a4, p2, g2 = r5;
|
|
75
|
+
const b2 = n4.workflowRules;
|
|
76
|
+
if (b2) {
|
|
77
|
+
const t2 = true, s2 = window.$vueApp.config.globalProperties.$formValidator(e4, b2, d2, u2, c3, f3, m2, t2);
|
|
78
|
+
g2 = s2.msg, i2 = s2.field, l2 = s2.listCode, a4 = s2.rowIndex, p2 = s2.pageNum;
|
|
79
|
+
} else g2 = true;
|
|
80
|
+
if (true !== g2) {
|
|
81
|
+
if (t({ showClose: true, message: g2 + "", type: "warning" }), l2) {
|
|
82
|
+
const e5 = s(n4, l2);
|
|
83
|
+
e5 && e5.addRequiredClass && e5.addRequiredClass(i2, a4, p2);
|
|
84
|
+
} else {
|
|
85
|
+
const e5 = s(n4, i2);
|
|
86
|
+
e5 && e5.addRequiredClass && e5.addRequiredClass();
|
|
87
|
+
}
|
|
88
|
+
o4(false);
|
|
89
|
+
} else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, o4(e4);
|
|
90
|
+
} else a3(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
73
91
|
}).catch((e5) => {
|
|
74
|
-
|
|
92
|
+
a3(e5);
|
|
75
93
|
});
|
|
76
94
|
});
|
|
77
|
-
}(n3,
|
|
78
|
-
return new Promise((
|
|
79
|
-
b(e4, t2,
|
|
95
|
+
}(n3, o3, r3) : function(e4, t2, s2) {
|
|
96
|
+
return new Promise((n4, r4) => {
|
|
97
|
+
b(e4, t2, s2).then((t3) => {
|
|
80
98
|
if (t3) {
|
|
81
99
|
const t4 = JSON.parse(JSON.stringify(e4));
|
|
82
|
-
Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField,
|
|
83
|
-
} else
|
|
100
|
+
Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, n4(t4);
|
|
101
|
+
} else n4(false);
|
|
84
102
|
}).catch((e5) => {
|
|
85
103
|
r4(e5);
|
|
86
104
|
});
|
|
87
105
|
});
|
|
88
|
-
}(n3,
|
|
106
|
+
}(n3, o3, r3);
|
|
89
107
|
}
|
|
90
108
|
return new Promise((e4, t2) => {
|
|
91
109
|
e4(true);
|
|
92
110
|
});
|
|
93
|
-
}(
|
|
111
|
+
}(r2, a2, f2, e2);
|
|
94
112
|
}
|
|
95
113
|
function g(e2) {
|
|
96
|
-
return new Promise((t2,
|
|
114
|
+
return new Promise((t2, s2) => {
|
|
97
115
|
const r2 = [], i2 = e2.customValidatorUuids;
|
|
98
116
|
i2 && i2.forEach((t3) => {
|
|
99
|
-
const
|
|
100
|
-
|
|
117
|
+
const s3 = n(e2, t3);
|
|
118
|
+
s3 && s3.validator && r2.push(s3.validator());
|
|
101
119
|
}), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
|
|
102
120
|
e3.includes(false) ? t2(false) : t2(true);
|
|
103
121
|
}) : t2(true);
|
|
104
122
|
});
|
|
105
123
|
}
|
|
106
|
-
function b(e2, t2,
|
|
124
|
+
function b(e2, t2, s2) {
|
|
107
125
|
return new Promise((r2, l2) => {
|
|
108
126
|
const a2 = JSON.parse(JSON.stringify(e2));
|
|
109
|
-
if (
|
|
110
|
-
if (true === c(a2,
|
|
127
|
+
if (s2 && 0 !== Object.keys(s2).length) {
|
|
128
|
+
if (true === c(a2, s2, null, null, true, t2)) {
|
|
111
129
|
const e3 = function(e4) {
|
|
112
130
|
if (!e4) return true;
|
|
113
131
|
const t3 = e4.tableUuids;
|
|
114
132
|
if (!t3) return true;
|
|
115
|
-
for (let
|
|
116
|
-
const r3 = t3[
|
|
133
|
+
for (let s3 = 0; s3 < t3.length; s3++) {
|
|
134
|
+
const r3 = t3[s3], i2 = n(e4, r3);
|
|
117
135
|
if (i2) {
|
|
118
136
|
if (!i2.validatorSunTableListData()) return false;
|
|
119
137
|
}
|
|
@@ -123,20 +141,20 @@ function b(e2, t2, n2) {
|
|
|
123
141
|
if (true === e3) {
|
|
124
142
|
const e4 = function(e5) {
|
|
125
143
|
const t3 = [];
|
|
126
|
-
e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((
|
|
127
|
-
|
|
128
|
-
const r3 = e5.customEvents[
|
|
129
|
-
t3.push(r3.apply(r3, [{ prop:
|
|
144
|
+
e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((s3) => {
|
|
145
|
+
s3.events.forEach((n2) => {
|
|
146
|
+
const r3 = e5.customEvents[n2];
|
|
147
|
+
t3.push(r3.apply(r3, [{ prop: s3.prop, pageContext: e5 }]));
|
|
130
148
|
});
|
|
131
149
|
});
|
|
132
|
-
if (t3 && t3.length > 0) return new Promise((e6,
|
|
133
|
-
const
|
|
150
|
+
if (t3 && t3.length > 0) return new Promise((e6, s3) => {
|
|
151
|
+
const n2 = [], r3 = [];
|
|
134
152
|
t3.forEach((e7) => {
|
|
135
|
-
o(e7) ?
|
|
136
|
-
}), r3.includes(false) && e6(false),
|
|
153
|
+
o(e7) ? n2.push(e7) : r3.push(e7);
|
|
154
|
+
}), r3.includes(false) && e6(false), n2.length > 0 ? Promise.all(n2).then((t4) => {
|
|
137
155
|
t4.includes(false) ? e6(false) : e6(true);
|
|
138
156
|
}).catch((t4) => {
|
|
139
|
-
|
|
157
|
+
e6(false);
|
|
140
158
|
}) : e6(true);
|
|
141
159
|
});
|
|
142
160
|
return null;
|
|
@@ -156,21 +174,21 @@ function b(e2, t2, n2) {
|
|
|
156
174
|
function h(e2, t2) {
|
|
157
175
|
if (!e2) return t2;
|
|
158
176
|
t2 || (t2 = {});
|
|
159
|
-
const
|
|
160
|
-
return
|
|
177
|
+
const s2 = Object.keys(e2), n2 = e2;
|
|
178
|
+
return s2.forEach((e3) => {
|
|
161
179
|
if ("__subRules" === e3) {
|
|
162
|
-
const e4 =
|
|
163
|
-
Object.keys(e4).forEach((
|
|
164
|
-
t2.subRules || (t2.subRules = {}), t2.subRules[
|
|
180
|
+
const e4 = n2.__subRules;
|
|
181
|
+
Object.keys(e4).forEach((s3) => {
|
|
182
|
+
t2.subRules || (t2.subRules = {}), t2.subRules[s3] ? Object.assign(t2.subRules[s3], e4[s3]) : t2.subRules[s3] = e4[s3];
|
|
165
183
|
});
|
|
166
|
-
} else j(
|
|
167
|
-
}),
|
|
184
|
+
} else j(n2[e3]), t2[e3] = n2[e3];
|
|
185
|
+
}), d(t2);
|
|
168
186
|
}
|
|
169
187
|
function w(e2) {
|
|
170
188
|
if (!e2 || 0 === Object.keys(e2).length) return;
|
|
171
|
-
const t2 = {},
|
|
172
|
-
for (let
|
|
173
|
-
const r2 = n2
|
|
189
|
+
const t2 = {}, s2 = Object.keys(e2);
|
|
190
|
+
for (let n2 = 0; n2 < s2.length; n2++) {
|
|
191
|
+
const r2 = s2[n2], i2 = e2[r2];
|
|
174
192
|
y(i2), r2.indexOf(".") > 0 ? f(r2, t2, i2) : i2 && i2.length > 0 && (t2[r2] = [...i2]);
|
|
175
193
|
}
|
|
176
194
|
return t2;
|
|
@@ -178,55 +196,55 @@ function w(e2) {
|
|
|
178
196
|
function y(e2, t2) {
|
|
179
197
|
e2.forEach((e3) => {
|
|
180
198
|
e3.message;
|
|
181
|
-
const t3 = e3.label,
|
|
182
|
-
e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label:
|
|
199
|
+
const t3 = e3.label, s2 = i().t(t3);
|
|
200
|
+
e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label: s2 })), e3.myType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), e3.patternType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), void 0 !== e3.max && null !== e3.max && (e3.message = i().t("superPageRuntimeMessage.overMaxLength", { label: s2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = i().t("superPageRuntimeMessage.limitMinLength", { label: s2, value: e3.min }));
|
|
183
201
|
});
|
|
184
202
|
}
|
|
185
|
-
function
|
|
186
|
-
const t2 = e2.entity.data,
|
|
203
|
+
function R(e2) {
|
|
204
|
+
const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = l(e2), r2 = e2.entity.context, i2 = e2.entity.task;
|
|
187
205
|
e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
|
|
188
206
|
t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
|
|
189
207
|
});
|
|
190
|
-
let o2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions,
|
|
208
|
+
let o2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, i2, r2);
|
|
191
209
|
return o2 = h(e2.customRules, o2), o2;
|
|
192
210
|
}
|
|
193
|
-
function
|
|
211
|
+
function v(e2, t2) {
|
|
194
212
|
if (!t2) return;
|
|
195
|
-
const
|
|
213
|
+
const n2 = {};
|
|
196
214
|
t2.forEach((e3) => {
|
|
197
|
-
const { name: t3, rules:
|
|
198
|
-
|
|
215
|
+
const { name: t3, rules: s2 } = e3;
|
|
216
|
+
s2 && (n2[t3] = s2);
|
|
199
217
|
});
|
|
200
218
|
let r2 = e2.rules ? e2.rules : {};
|
|
201
|
-
r2 = h(
|
|
219
|
+
r2 = h(n2, r2), e2.rules = r2;
|
|
202
220
|
let i2 = e2.workflowRules ? e2.workflowRules : {};
|
|
203
|
-
i2 = h(
|
|
221
|
+
i2 = h(n2, i2), e2.workflowRules = i2;
|
|
204
222
|
const l2 = t2.filter((e3) => "_all_fields" === e3.name);
|
|
205
223
|
l2 && l2.length > 0 && E(e2, l2[0]), t2.forEach((t3) => {
|
|
206
224
|
if ("_all_fields" !== t3.name) {
|
|
207
|
-
O(
|
|
225
|
+
O(s(e2, t3.name), t3);
|
|
208
226
|
}
|
|
209
227
|
});
|
|
210
228
|
}
|
|
211
|
-
function
|
|
229
|
+
function P(e2) {
|
|
212
230
|
E(e2, { disabled: true });
|
|
213
231
|
}
|
|
214
232
|
function E(e2, t2) {
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
218
|
-
O(
|
|
233
|
+
const s2 = r(e2);
|
|
234
|
+
if (s2) for (const e3 in s2) {
|
|
235
|
+
const n2 = s2[e3];
|
|
236
|
+
O(n2 ? n2.value : n2, t2);
|
|
219
237
|
}
|
|
220
238
|
}
|
|
221
239
|
function k(e2, t2, r2) {
|
|
222
240
|
var _a;
|
|
223
241
|
let i2, l2;
|
|
224
|
-
if (r2 ? (i2 =
|
|
242
|
+
if (r2 ? (i2 = s(e2, r2), l2 = i2 ? i2.getTableUuid() : null) : (l2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = l2 ? n(e2, l2) : null), !i2) return;
|
|
225
243
|
const o2 = e2.code, u2 = e2.version, f2 = a(o2, u2, l2);
|
|
226
244
|
if (((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[r2]) {
|
|
227
|
-
const
|
|
245
|
+
const s2 = e2.workflowRules.subRules[r2];
|
|
228
246
|
t2.forEach((e3) => {
|
|
229
|
-
|
|
247
|
+
s2[e3.name] = e3;
|
|
230
248
|
});
|
|
231
249
|
}
|
|
232
250
|
i2.dynamicControlTableEdit(e2, t2, f2);
|
|
@@ -234,14 +252,14 @@ function k(e2, t2, r2) {
|
|
|
234
252
|
function O(e2, t2) {
|
|
235
253
|
var _a, _b, _c;
|
|
236
254
|
if (e2) {
|
|
237
|
-
const
|
|
238
|
-
void 0 !== t2.show && (t2.show ? e2.show() : e2.hide()), void 0 !== t2.required && ((_a =
|
|
255
|
+
const s2 = e2.getConfigure();
|
|
256
|
+
void 0 !== t2.show && (t2.show ? e2.show() : e2.hide()), void 0 !== t2.required && ((_a = s2 == null ? void 0 : s2.runtime) == null ? void 0 : _a.props) && (s2.runtime.props.required = t2.required), void 0 !== t2.readonly && ((_b = s2 == null ? void 0 : s2.runtime) == null ? void 0 : _b.props) && (t2.readonly ? s2.runtime.props.state = "readonly" : s2.runtime.props.state = "enabled"), void 0 !== t2.disabled && s2 && (((_c = s2 == null ? void 0 : s2.runtime) == null ? void 0 : _c.props) && (t2.disabled ? s2.runtime.props.state = "disabled" : s2.runtime.props.state = "enabled"), "table" === s2.name && e2.changeOperationAddState(false));
|
|
239
257
|
}
|
|
240
258
|
}
|
|
241
259
|
function j(e2) {
|
|
242
|
-
e2 && e2.type && "boolean" === e2.type ? e2.validator = function(e3, t2,
|
|
260
|
+
e2 && e2.type && "boolean" === e2.type ? e2.validator = function(e3, t2, s2) {
|
|
243
261
|
return null == t2 ? !e3.required : "number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2);
|
|
244
|
-
} : e2 && e2.type && "date" === e2.type && (e2.validator = function(e3, t2,
|
|
262
|
+
} : e2 && e2.type && "date" === e2.type && (e2.validator = function(e3, t2, s2) {
|
|
245
263
|
if (null == t2) return !e3.required;
|
|
246
264
|
{
|
|
247
265
|
const e4 = new Date(t2);
|
|
@@ -250,16 +268,16 @@ function j(e2) {
|
|
|
250
268
|
});
|
|
251
269
|
}
|
|
252
270
|
export {
|
|
253
|
-
|
|
271
|
+
P as disabledAllFields,
|
|
254
272
|
k as dynamicControlTableEdit,
|
|
255
|
-
|
|
273
|
+
R as getWorkflowRules,
|
|
256
274
|
y as i18nValidatePropRulesMessage,
|
|
257
275
|
w as i18nValidateRulesMessage,
|
|
258
276
|
h as packageCustomRules,
|
|
259
277
|
j as packageCustomValidator,
|
|
260
278
|
f as setObjectPropRule,
|
|
261
279
|
O as updateComponentDisplayState,
|
|
262
|
-
|
|
280
|
+
v as updateFormItemEditState,
|
|
263
281
|
p as validateDataModelFunc,
|
|
264
282
|
c as validator
|
|
265
283
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
import { getAdditionalParamMap as t } from "./events/standard-event.js";
|
|
3
3
|
import { PageDimensions as s } from "./interfaces/page-design-types.js";
|
|
4
|
-
import { getFormPropName as i, getVariableValue as
|
|
4
|
+
import { getFormPropName as i, getVariableValue as n, setVariableValue as o, formatVariableValue as r } from "./page-helper-util.js";
|
|
5
5
|
import { getSessionCache as l } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { functions as a } from "./api/page-expose-util.js";
|
|
7
7
|
import { isWorkflowPage as p, deepCopy as u } from "./common-util.js";
|
|
@@ -40,7 +40,6 @@ function g(e2) {
|
|
|
40
40
|
e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
|
|
41
41
|
}), e2.props.judgeHeavyList) : null;
|
|
42
42
|
} catch (e3) {
|
|
43
|
-
console.error("getJudgeHeavyList error:", e3);
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
function b(e2) {
|
|
@@ -62,7 +61,7 @@ function y(e2, t2) {
|
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
function h(e2, t2) {
|
|
65
|
-
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query
|
|
64
|
+
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
|
|
66
65
|
Object.assign(t2, e2.query);
|
|
67
66
|
w(e2.query.paramStoreId, t2);
|
|
68
67
|
}
|
|
@@ -79,32 +78,32 @@ function w(e2, t2) {
|
|
|
79
78
|
function E(e2, t2) {
|
|
80
79
|
let s2, i2 = t2;
|
|
81
80
|
t2 || (s2 = e2.props.base ? e2.props.base : {}, i2 = s2.prop);
|
|
82
|
-
let
|
|
83
|
-
return t2 && !t2.startsWith("${") ?
|
|
81
|
+
let n2 = null;
|
|
82
|
+
return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), n2 = i2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
|
|
84
83
|
}
|
|
85
84
|
function v(e2, t2, s2) {
|
|
86
85
|
const i2 = E(t2, s2), r2 = e2.entity;
|
|
87
86
|
if (null == r2.data.ID && null == r2.data.id) {
|
|
88
87
|
let s3, l2, a2 = false;
|
|
89
88
|
t2 && (s3 = t2.props.base ? t2.props.base : {}, l2 = t2.name, a2 = s3.multiple);
|
|
90
|
-
const p2 =
|
|
89
|
+
const p2 = n(r2, i2);
|
|
91
90
|
if (null == p2) {
|
|
92
91
|
const t3 = s3 ? s3.defaultValue : null;
|
|
93
92
|
if (t3) {
|
|
94
93
|
const s4 = P(e2, t3, l2, a2);
|
|
95
|
-
null != s4 &&
|
|
94
|
+
null != s4 && o(r2, i2, s4);
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
98
|
return i2;
|
|
100
99
|
}
|
|
101
100
|
function P(e2, t2, s2, i2) {
|
|
102
|
-
let
|
|
103
|
-
if (t2 && (
|
|
101
|
+
let n2;
|
|
102
|
+
if (t2 && (n2 = r(e2, t2), null != n2 && null != n2 && s2)) {
|
|
104
103
|
let e3 = false;
|
|
105
|
-
"checkbox" == s2 ? e3 = true : "select" == s2 && (e3 = i2), e3 && (
|
|
104
|
+
"checkbox" == s2 ? e3 = true : "select" == s2 && (e3 = i2), e3 && (n2 = (n2 + "").split(","));
|
|
106
105
|
}
|
|
107
|
-
return
|
|
106
|
+
return n2;
|
|
108
107
|
}
|
|
109
108
|
function M(e2, t2) {
|
|
110
109
|
var _a, _b;
|
|
@@ -112,14 +111,14 @@ function M(e2, t2) {
|
|
|
112
111
|
const s2 = [];
|
|
113
112
|
if (e2.autoPermissions) for (const i2 of e2.autoPermissions) s2.push(t2.code + "." + i2.simpleCode);
|
|
114
113
|
if (e2.functionCodes) {
|
|
115
|
-
const i2 = e2.sourceTypes ? e2.sourceTypes : [],
|
|
116
|
-
for (let e3 = 0; e3 <
|
|
117
|
-
const
|
|
114
|
+
const i2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
|
|
115
|
+
for (let e3 = 0; e3 < n2.length; e3++) {
|
|
116
|
+
const o2 = n2[e3], r2 = e3 < i2.length ? i2[e3] : "";
|
|
118
117
|
let l2 = "";
|
|
119
|
-
if ("service" == r2) l2 =
|
|
120
|
-
else if ("standard" === r2) l2 = t2.code + "." +
|
|
118
|
+
if ("service" == r2) l2 = o2;
|
|
119
|
+
else if ("standard" === r2) l2 = t2.code + "." + o2;
|
|
121
120
|
else {
|
|
122
|
-
l2 = "custom" === k(
|
|
121
|
+
l2 = "custom" === k(o2, t2).type ? o2 : t2.code + "." + o2;
|
|
123
122
|
}
|
|
124
123
|
s2.includes(l2) || s2.push(l2);
|
|
125
124
|
}
|
|
@@ -133,26 +132,26 @@ function k(e2, t2) {
|
|
|
133
132
|
}
|
|
134
133
|
return null;
|
|
135
134
|
}
|
|
136
|
-
function j(s2, i2,
|
|
137
|
-
const
|
|
135
|
+
function j(s2, i2, n2) {
|
|
136
|
+
const o2 = s2.tableRuntimes, r2 = t(i2);
|
|
138
137
|
let l2;
|
|
139
138
|
const a2 = i2.code;
|
|
140
|
-
return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes:
|
|
139
|
+
return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: l2, pageCode: a2, publishVersion: n2, pageType: s2.pageType });
|
|
141
140
|
}
|
|
142
141
|
const C = ["button-detail", "print-label"];
|
|
143
142
|
function I(e2, t2, s2) {
|
|
144
143
|
var _a, _b;
|
|
145
|
-
const
|
|
144
|
+
const n2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
|
|
146
145
|
let r2 = false;
|
|
147
|
-
if (
|
|
146
|
+
if (o2 && C.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
148
147
|
const s3 = e2.fieldPermissionMap.get("all_fields");
|
|
149
148
|
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
|
|
150
149
|
}
|
|
151
|
-
if (
|
|
152
|
-
const l2 = i(
|
|
150
|
+
if (n2) {
|
|
151
|
+
const l2 = i(n2);
|
|
153
152
|
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[l2] || (e2.rules[l2] = []), t2.props.rules.forEach((e3) => {
|
|
154
153
|
d(e3), !s2 && e3 && e3.required && (e3.required = false);
|
|
155
|
-
}), e2.rules[l2] = t2.props.rules),
|
|
154
|
+
}), e2.rules[l2] = t2.props.rules), o2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
156
155
|
const i2 = e2.fieldPermissionMap.get(l2);
|
|
157
156
|
if (!s2 && e2.workflowRules && (e2.workflowRules[l2] || e2.workflowRules.rules && e2.workflowRules.rules[l2])) {
|
|
158
157
|
let t3 = e2.workflowRules[l2];
|