super-page-runtime 2.3.37-sit5 → 2.3.37
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/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -47
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +1 -3
- package/dist/es/components/runtime/utils/charts/chart-util.js +44 -46
- package/dist/es/components/runtime/utils/events/event-util.js +9 -9
- package/dist/es/components/runtime/utils/events/print-label.js +0 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +572 -584
- package/dist/es/components/runtime/utils/events/validator-util.js +53 -54
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +117 -120
- package/dist/es/components/runtime/utils/page-store.js +21 -21
- package/dist/es/components/runtime/utils/table-utils.js +4 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +10 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -24
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +20 -22
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +120 -123
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +45 -46
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +36 -36
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +43 -43
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +40 -40
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +19 -19
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page.vue2.js +187 -187
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/package.json +2 -2
|
@@ -2,8 +2,8 @@ import e from "async-validator";
|
|
|
2
2
|
import { ElMessage as t } from "element-plus";
|
|
3
3
|
import { getComponentRefByCode as s, getComponentRef as r, getAllComponentRefs as n } from "../global-refs.js";
|
|
4
4
|
import { getI18n as o } from "agilebuilder-ui/src/utils/util";
|
|
5
|
-
import { getAdditionalParamMap as
|
|
6
|
-
import { isPromise as
|
|
5
|
+
import { getAdditionalParamMap as i } from "./standard-event.js";
|
|
6
|
+
import { isPromise as l } from "agilebuilder-ui/src/utils/common-util";
|
|
7
7
|
import { parseSubTablePermissionCondition as a } from "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
8
8
|
import { isWorkflowPage as u, getListCode as c } from "../common-util.js";
|
|
9
9
|
import { scrollIntoComponentWithCode as f, scrollIntoComponentWithUuid as d } from "../anchor-util.js";
|
|
@@ -13,24 +13,24 @@ function m(e2, t2, s2) {
|
|
|
13
13
|
let n2 = 0;
|
|
14
14
|
const o2 = e2.split(".");
|
|
15
15
|
return o2.forEach((e3) => {
|
|
16
|
-
let
|
|
17
|
-
if (n2 === o2.length - 1)
|
|
16
|
+
let i2;
|
|
17
|
+
if (n2 === o2.length - 1) i2 = function(e4, t3, s3) {
|
|
18
18
|
let r3;
|
|
19
19
|
for (let n3 = 0; n3 < t3.length; n3++) if (r3 = 0 === n3 ? e4[t3[n3]] : r3.fields[t3[n3]], n3 !== t3.length - 1) {
|
|
20
20
|
if (t3[n3 + 1] === s3) break;
|
|
21
21
|
}
|
|
22
22
|
return r3;
|
|
23
|
-
}(r2, o2, e3),
|
|
23
|
+
}(r2, o2, e3), i2.fields[e3] = s2;
|
|
24
24
|
else {
|
|
25
25
|
let s3;
|
|
26
|
-
0 === n2 ?
|
|
26
|
+
0 === n2 ? i2 = t2 : (s3 = function(e4, t3, s4) {
|
|
27
27
|
let r3;
|
|
28
28
|
for (let n3 = 0; n3 < t3.length; n3++) {
|
|
29
29
|
const o3 = t3[n3];
|
|
30
30
|
if (r3 = 0 === n3 ? e4[o3] : r3.fields[t3[n3]], o3 === s4) break;
|
|
31
31
|
}
|
|
32
32
|
return r3;
|
|
33
|
-
}(r2, o2, o2[n2 - 1]),
|
|
33
|
+
}(r2, o2, o2[n2 - 1]), i2 = s3.fields), i2[e3] || (i2[e3] = { type: "object", required: true, fields: {} }), 0 === n2 ? r2[e3] = i2[e3] : s3.fields[e3] = i2[e3];
|
|
34
34
|
}
|
|
35
35
|
n2++;
|
|
36
36
|
}), r2;
|
|
@@ -46,7 +46,7 @@ function g(e2) {
|
|
|
46
46
|
}
|
|
47
47
|
}), e2;
|
|
48
48
|
}
|
|
49
|
-
function b(r2, n2, o2,
|
|
49
|
+
function b(r2, n2, o2, i2, l2, a2, u2) {
|
|
50
50
|
let c2, d2 = g(n2);
|
|
51
51
|
if (n2 && null !== n2 || !o2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return r2.validateErrorField = "", true;
|
|
52
52
|
return new e(d2).validate(r2, { first: true }, (e2, d3) => {
|
|
@@ -62,87 +62,86 @@ function b(r2, n2, o2, l2, i2, a2, u2) {
|
|
|
62
62
|
console.error("滚动失败", e3);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
console.log("errors", e2, "fields", d3);
|
|
66
65
|
} else c2 = true;
|
|
67
|
-
if (m2 && true ===
|
|
66
|
+
if (m2 && true === l2) {
|
|
68
67
|
if (/[A-Z]+/.test(m2) && void 0 !== r2[m2.toLowerCase()]) {
|
|
69
68
|
const e3 = JSON.parse(JSON.stringify(r2));
|
|
70
|
-
e3[m2.toUpperCase()] = r2[m2.toLowerCase()], delete e3[m2.toLowerCase()], c2 = b(e3, n2, o2,
|
|
69
|
+
e3[m2.toUpperCase()] = r2[m2.toLowerCase()], delete e3[m2.toLowerCase()], c2 = b(e3, n2, o2, i2, false, a2, u2);
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
}), c2;
|
|
74
73
|
}
|
|
75
74
|
function h(e2, r2, n2) {
|
|
76
|
-
const
|
|
77
|
-
return null != m2 && (n2 = m2), null == n2 && (n2 = false), function(e3, r3, n3,
|
|
75
|
+
const l2 = e2.entity.data, c2 = { ...e2.entity.page, ...l2 }, d2 = e2.rules, m2 = r2.props.base ? r2.props.base.isEnableRequired : null;
|
|
76
|
+
return null != m2 && (n2 = m2), null == n2 && (n2 = false), function(e3, r3, n3, l3) {
|
|
78
77
|
if (e3) {
|
|
79
|
-
return u(
|
|
80
|
-
return new Promise((
|
|
81
|
-
const c3 =
|
|
78
|
+
return u(l3) ? function(e4, r4, n4) {
|
|
79
|
+
return new Promise((l4, u2) => {
|
|
80
|
+
const c3 = i(r4), d3 = r4.entity.context, m3 = r4.entity.task, p2 = true, g2 = r4.subTablePageInfo;
|
|
82
81
|
w(e4, r4, n4).then((n5) => {
|
|
83
82
|
if (n5) {
|
|
84
|
-
let
|
|
83
|
+
let i2, u3, b2, h2, y2 = n5;
|
|
85
84
|
const w2 = r4.workflowRules;
|
|
86
85
|
if (w2) {
|
|
87
86
|
if (!function(e5, r5) {
|
|
88
87
|
var _a, _b, _c, _d;
|
|
89
88
|
if (!e5.actionPermissions) return true;
|
|
90
89
|
const n7 = Object.keys(e5.actionPermissions);
|
|
91
|
-
for (let
|
|
92
|
-
const
|
|
90
|
+
for (let i3 = 0; i3 < n7.length; i3++) {
|
|
91
|
+
const l5 = n7[i3], u4 = e5.actionPermissions[l5];
|
|
93
92
|
if (u4 && u4.notEmpty) {
|
|
94
|
-
if ((_a = e5.hiddenNotValidatorCodes) == null ? void 0 : _a.has(
|
|
93
|
+
if ((_a = e5.hiddenNotValidatorCodes) == null ? void 0 : _a.has(l5)) continue;
|
|
95
94
|
let n8 = false;
|
|
96
|
-
if (r5[
|
|
97
|
-
const n9 = s(e5,
|
|
95
|
+
if (r5[l5] ? Array.isArray(r5[l5]) && 0 === r5[l5].length && (n8 = true) : n8 = true, n8) {
|
|
96
|
+
const n9 = s(e5, l5);
|
|
98
97
|
if (!n9) return true;
|
|
99
|
-
const
|
|
98
|
+
const i4 = n9.getConfigure();
|
|
100
99
|
if ((_b = u4.notEmptyCondition) == null ? void 0 : _b.parentCondition) {
|
|
101
100
|
if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, r5, {}, (_c = e5.entity) == null ? void 0 : _c.request, (_d = e5.entity) == null ? void 0 : _d.task, e5.contextParam)) return true;
|
|
102
101
|
}
|
|
103
|
-
return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label:
|
|
102
|
+
return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: i4.title ? i4.title : l5 }), type: "warning" }), false;
|
|
104
103
|
}
|
|
105
104
|
}
|
|
106
105
|
}
|
|
107
106
|
return true;
|
|
108
|
-
}(r4, e4)) return void
|
|
107
|
+
}(r4, e4)) return void l4(false);
|
|
109
108
|
const n6 = true, f2 = Object.assign({}, w2), R2 = r4.hiddenNotValidatorCodes;
|
|
110
109
|
R2 && R2.size > 0 && R2.forEach((e5) => {
|
|
111
110
|
f2.subRules && delete f2.subRules[e5], f2.rules && delete f2.rules[e5];
|
|
112
111
|
}), f2.subRules && (Object.keys(f2.subRules).length > 0 ? f2.totalSubRules || (f2.totalSubRules = {}) : delete f2.subRules);
|
|
113
112
|
const v2 = window.$vueApp.config.globalProperties.$formValidator(e4, f2, p2, c3, m3, d3, g2, n6);
|
|
114
|
-
y2 = v2.msg,
|
|
113
|
+
y2 = v2.msg, i2 = v2.field, u3 = v2.listCode, b2 = v2.rowIndex, h2 = v2.pageNum;
|
|
115
114
|
} else y2 = true;
|
|
116
115
|
if (true !== y2) {
|
|
117
116
|
if (t({ showClose: true, message: y2 + "", type: "warning" }), u3) {
|
|
118
117
|
const e5 = s(r4, u3);
|
|
119
118
|
if (e5 && e5.addRequiredClass) {
|
|
120
|
-
e5.addRequiredClass(
|
|
119
|
+
e5.addRequiredClass(i2, b2, h2);
|
|
121
120
|
try {
|
|
122
|
-
f(r4, u3), e5.scrollToCell({ fieldName:
|
|
121
|
+
f(r4, u3), e5.scrollToCell({ fieldName: i2, rowIndex: b2, pageNum: h2 });
|
|
123
122
|
} catch (e6) {
|
|
124
123
|
console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法", e6);
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
} else {
|
|
128
|
-
const e5 = s(r4,
|
|
127
|
+
const e5 = s(r4, i2);
|
|
129
128
|
if (e5 && e5.addRequiredClass) {
|
|
130
129
|
e5.addRequiredClass();
|
|
131
130
|
try {
|
|
132
|
-
f(r4,
|
|
131
|
+
f(r4, i2);
|
|
133
132
|
} catch (e6) {
|
|
134
133
|
console.error("滚动失败", e6);
|
|
135
134
|
}
|
|
136
135
|
}
|
|
137
136
|
}
|
|
138
|
-
|
|
139
|
-
} else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField,
|
|
137
|
+
l4(false);
|
|
138
|
+
} else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4);
|
|
140
139
|
} else u2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
141
140
|
}).catch((e5) => {
|
|
142
141
|
u2(e5);
|
|
143
142
|
});
|
|
144
143
|
});
|
|
145
|
-
}(r3,
|
|
144
|
+
}(r3, l3, n3) : function(e4, t2, s2) {
|
|
146
145
|
return new Promise((r4, n4) => {
|
|
147
146
|
w(e4, t2, s2).then((t3) => {
|
|
148
147
|
if (t3) {
|
|
@@ -153,7 +152,7 @@ function h(e2, r2, n2) {
|
|
|
153
152
|
n4(e5);
|
|
154
153
|
});
|
|
155
154
|
});
|
|
156
|
-
}(r3,
|
|
155
|
+
}(r3, l3, n3);
|
|
157
156
|
}
|
|
158
157
|
return new Promise((e4, t2) => {
|
|
159
158
|
e4(true);
|
|
@@ -172,7 +171,7 @@ function y(e2) {
|
|
|
172
171
|
});
|
|
173
172
|
}
|
|
174
173
|
function w(e2, s2, n2) {
|
|
175
|
-
return new Promise((
|
|
174
|
+
return new Promise((i2, a2) => {
|
|
176
175
|
const c2 = JSON.parse(JSON.stringify(e2)), f2 = { ...n2 }, m2 = s2.hiddenNotValidatorCodes;
|
|
177
176
|
if (f2 && m2 && m2.size > 0 && m2.forEach((e3) => {
|
|
178
177
|
delete f2[e3];
|
|
@@ -185,9 +184,9 @@ function w(e2, s2, n2) {
|
|
|
185
184
|
const s3 = e4.tableUuids;
|
|
186
185
|
if (!s3) return true;
|
|
187
186
|
for (let n3 = 0; n3 < s3.length; n3++) {
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
190
|
-
const a3 = r(e4,
|
|
187
|
+
const i3 = s3[n3], l2 = e4.hiddenNotValidatorCodes;
|
|
188
|
+
if (l2 && l2.size > 0 && l2.has(i3)) continue;
|
|
189
|
+
const a3 = r(e4, i3);
|
|
191
190
|
if (a3) {
|
|
192
191
|
if (a3.getConfigure()) {
|
|
193
192
|
const s4 = a3.getConfigure();
|
|
@@ -195,7 +194,7 @@ function w(e2, s2, n2) {
|
|
|
195
194
|
const r2 = a3.getTableData();
|
|
196
195
|
if (!r2 || !Array.isArray(r2) || 0 === r2.length) {
|
|
197
196
|
try {
|
|
198
|
-
d(e4,
|
|
197
|
+
d(e4, i3);
|
|
199
198
|
} catch (e5) {
|
|
200
199
|
}
|
|
201
200
|
return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: s4.title ? s4.title : s4.code }), type: "warning" }), false;
|
|
@@ -204,7 +203,7 @@ function w(e2, s2, n2) {
|
|
|
204
203
|
}
|
|
205
204
|
if (!a3.validatorSunTableListData()) {
|
|
206
205
|
try {
|
|
207
|
-
d(e4,
|
|
206
|
+
d(e4, i3);
|
|
208
207
|
} catch (e5) {
|
|
209
208
|
}
|
|
210
209
|
return false;
|
|
@@ -225,7 +224,7 @@ function w(e2, s2, n2) {
|
|
|
225
224
|
if (t2 && t2.length > 0) return new Promise((e6, s3) => {
|
|
226
225
|
const r2 = [], n3 = [];
|
|
227
226
|
t2.forEach((e7) => {
|
|
228
|
-
|
|
227
|
+
l(e7) ? r2.push(e7) : n3.push(e7);
|
|
229
228
|
}), n3.includes(false) && e6(false), r2.length > 0 ? Promise.all(r2).then((t3) => {
|
|
230
229
|
t3.includes(false) ? e6(false) : e6(true);
|
|
231
230
|
}).catch((t3) => {
|
|
@@ -234,16 +233,16 @@ function w(e2, s2, n2) {
|
|
|
234
233
|
});
|
|
235
234
|
return null;
|
|
236
235
|
}(s2);
|
|
237
|
-
e4 &&
|
|
236
|
+
e4 && l(e4) ? e4.then((e5) => {
|
|
238
237
|
e5 ? y(s2).then((e6) => {
|
|
239
|
-
|
|
240
|
-
}) :
|
|
238
|
+
i2(e6);
|
|
239
|
+
}) : i2(false);
|
|
241
240
|
}) : y(s2).then((e5) => {
|
|
242
|
-
|
|
241
|
+
i2(e5);
|
|
243
242
|
});
|
|
244
243
|
} else a2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
245
244
|
} else a2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
246
|
-
} else
|
|
245
|
+
} else i2(true);
|
|
247
246
|
});
|
|
248
247
|
}
|
|
249
248
|
function R(e2, t2, s2) {
|
|
@@ -276,13 +275,13 @@ function P(e2, t2) {
|
|
|
276
275
|
});
|
|
277
276
|
}
|
|
278
277
|
function E(e2) {
|
|
279
|
-
const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, r2 =
|
|
278
|
+
const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, r2 = i(e2), n2 = e2.entity.context, o2 = e2.entity.task;
|
|
280
279
|
e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
|
|
281
280
|
t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
|
|
282
281
|
});
|
|
283
|
-
let
|
|
282
|
+
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, r2, o2, n2);
|
|
284
283
|
const a2 = e2.customRules;
|
|
285
|
-
return
|
|
284
|
+
return l2 = R(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
|
|
286
285
|
}
|
|
287
286
|
function k(e2, t2) {
|
|
288
287
|
if (!t2) return;
|
|
@@ -317,9 +316,9 @@ function O(e2, t2) {
|
|
|
317
316
|
}
|
|
318
317
|
function j(e2, t2, n2) {
|
|
319
318
|
var _a;
|
|
320
|
-
let o2,
|
|
321
|
-
if (n2 ? (o2 = s(e2, n2),
|
|
322
|
-
const
|
|
319
|
+
let o2, i2;
|
|
320
|
+
if (n2 ? (o2 = s(e2, n2), i2 = o2 ? o2.getTableUuid() : null) : (i2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, o2 = i2 ? r(e2, i2) : null), !o2) return;
|
|
321
|
+
const l2 = e2.code, a2 = e2.version, u2 = c(l2, a2, i2);
|
|
323
322
|
if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[n2] || (e2.workflowRules.subRules[n2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[n2]) {
|
|
324
323
|
const s2 = e2.workflowRules.subRules[n2];
|
|
325
324
|
t2.forEach((e3) => {
|
|
@@ -334,8 +333,8 @@ function T(e2, t2, s2) {
|
|
|
334
333
|
const r2 = t2.getConfigure();
|
|
335
334
|
if (void 0 !== s2.show && (s2.show ? t2.show() : t2.hide()), void 0 !== s2.required && ((_a = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _a.props) && (r2.runtime.props.required = s2.required), void 0 !== s2.readonly && ((_b = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _b.props) && (s2.readonly ? r2.runtime.props.state = "readonly" : r2.runtime.props.state = "enabled"), void 0 !== s2.disabled && r2 && (((_c = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _c.props) && (s2.disabled ? r2.runtime.props.state = "disabled" : r2.runtime.props.state = "enabled"), "table" === r2.name)) {
|
|
336
335
|
t2.changeOperationAddState(false);
|
|
337
|
-
const s3 = t2 ? t2.getTableUuid() : null, r3 = e2.code, n2 = e2.version, o2 = c(r3, n2, s3),
|
|
338
|
-
t2.dynamicControlTableEdit(e2,
|
|
336
|
+
const s3 = t2 ? t2.getTableUuid() : null, r3 = e2.code, n2 = e2.version, o2 = c(r3, n2, s3), i2 = [{ name: "_all_fields", disabled: true }];
|
|
337
|
+
t2.dynamicControlTableEdit(e2, i2, o2);
|
|
339
338
|
}
|
|
340
339
|
}
|
|
341
340
|
}
|
|
@@ -44,9 +44,8 @@ function analysisScanValue(scanValue, scanRuleSets) {
|
|
|
44
44
|
}
|
|
45
45
|
let res = false;
|
|
46
46
|
if (validStr) try {
|
|
47
|
-
|
|
47
|
+
res = eval("(" + validStr + ")");
|
|
48
48
|
} catch (e) {
|
|
49
|
-
console.log(e);
|
|
50
49
|
}
|
|
51
50
|
else res = true;
|
|
52
51
|
if (res) return executeAnalysisForScan(scanValue, scanSet);
|
|
@@ -63,11 +62,11 @@ function executeAnalysisForScan(e, t) {
|
|
|
63
62
|
let n = e;
|
|
64
63
|
if (t2.splitChar && t2.splitNum) {
|
|
65
64
|
const a3 = (t2.splitChar, t2.splitChar), s2 = e.split(a3), l = t2.splitNum < 1 ? 1 : t2.splitNum;
|
|
66
|
-
|
|
65
|
+
n = l <= s2.length ? s2[l - 1] : "";
|
|
67
66
|
}
|
|
68
67
|
if (t2.splitChar2 && t2.splitNum2) {
|
|
69
68
|
const e2 = (t2.splitChar2, t2.splitChar2), a3 = n.split(e2), s2 = t2.splitNum2 < 1 ? 1 : t2.splitNum2;
|
|
70
|
-
|
|
69
|
+
n = s2 <= a3.length ? a3[s2 - 1] : "";
|
|
71
70
|
}
|
|
72
71
|
if (n.length > 0) {
|
|
73
72
|
const e2 = _getScanIndexs(n, t2.startIndex, t2.endIndex), a3 = e2[0], s2 = e2[1];
|