super-page-runtime 2.3.12-sit2 → 2.3.13-migrate1
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/events/event-util.js +4 -4
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +126 -107
- package/dist/es/components/runtime/utils/events/validator-util.js +169 -146
- package/dist/es/components/runtime/utils/page-init-util.js +5 -2
- package/dist/es/components/runtime/utils/page-permission-util.js +14 -14
- 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/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 +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -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 +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- 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 +2 -0
- 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/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +60 -59
- 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 +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- 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 +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +33 -33
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +35 -34
- 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 +42 -41
- 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 +38 -37
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +3 -3
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -6
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -3
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +159 -148
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +85 -82
- package/package.json +2 -2
|
@@ -1,109 +1,124 @@
|
|
|
1
1
|
import e from "async-validator";
|
|
2
2
|
import { ElMessage as t } from "element-plus";
|
|
3
|
-
import { getComponentRefByCode as
|
|
3
|
+
import { getComponentRefByCode as n, getComponentRef as s, getAllComponentRefs as r } from "../global-refs.js";
|
|
4
4
|
import { getI18n as i } from "agilebuilder-ui/src/utils/util";
|
|
5
|
-
import { getAdditionalParamMap as
|
|
6
|
-
import { isPromise as
|
|
5
|
+
import { getAdditionalParamMap as o } from "./standard-event.js";
|
|
6
|
+
import { isPromise as l } 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, n2) {
|
|
9
|
+
const s2 = {};
|
|
10
10
|
t2 || (t2 = {});
|
|
11
11
|
let r2 = 0;
|
|
12
12
|
const i2 = e2.split(".");
|
|
13
13
|
return i2.forEach((e3) => {
|
|
14
|
-
let
|
|
15
|
-
if (r2 === i2.length - 1)
|
|
16
|
-
let
|
|
17
|
-
for (let r3 = 0; r3 < t3.length; r3++) if (
|
|
18
|
-
if (t3[r3 + 1] ===
|
|
14
|
+
let o2;
|
|
15
|
+
if (r2 === i2.length - 1) o2 = function(e4, t3, n3) {
|
|
16
|
+
let s3;
|
|
17
|
+
for (let r3 = 0; r3 < t3.length; r3++) if (s3 = 0 === r3 ? e4[t3[r3]] : s3.fields[t3[r3]], r3 !== t3.length - 1) {
|
|
18
|
+
if (t3[r3 + 1] === n3) break;
|
|
19
19
|
}
|
|
20
|
-
return
|
|
21
|
-
}(
|
|
20
|
+
return s3;
|
|
21
|
+
}(s2, i2, e3), o2.fields[e3] = n2;
|
|
22
22
|
else {
|
|
23
|
-
let
|
|
24
|
-
0 === r2 ?
|
|
25
|
-
let
|
|
23
|
+
let n3;
|
|
24
|
+
0 === r2 ? o2 = t2 : (n3 = function(e4, t3, n4) {
|
|
25
|
+
let s3;
|
|
26
26
|
for (let r3 = 0; r3 < t3.length; r3++) {
|
|
27
27
|
const i3 = t3[r3];
|
|
28
|
-
if (
|
|
28
|
+
if (s3 = 0 === r3 ? e4[i3] : s3.fields[t3[r3]], i3 === n4) break;
|
|
29
29
|
}
|
|
30
|
-
return
|
|
31
|
-
}(
|
|
30
|
+
return s3;
|
|
31
|
+
}(s2, i2, i2[r2 - 1]), o2 = n3.fields), o2[e3] || (o2[e3] = { type: "object", required: true, fields: {} }), 0 === r2 ? s2[e3] = o2[e3] : n3.fields[e3] = o2[e3];
|
|
32
32
|
}
|
|
33
33
|
r2++;
|
|
34
|
-
}),
|
|
34
|
+
}), s2;
|
|
35
35
|
}
|
|
36
|
-
function c(e2, t2,
|
|
37
|
-
return m(e2, t2,
|
|
36
|
+
function c(e2, t2, n2, s2, r2, i2) {
|
|
37
|
+
return m(e2, t2, n2, s2, true, r2, i2);
|
|
38
38
|
}
|
|
39
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 n2 = [];
|
|
43
|
+
n2 = t2.split("."), e2[n2[0]] ? e2[n2[0]].fields[n2[1]] = e2[t2][0] : (e2[n2[0]] = new Object(), e2[n2[0]].fields = new Object(), e2[n2[0]].fields[n2[1]] = e2[t2][0], e2[n2[0]].type = "object"), delete e2[t2];
|
|
44
44
|
}
|
|
45
45
|
}), e2;
|
|
46
46
|
}
|
|
47
|
-
function m(
|
|
47
|
+
function m(s2, r2, i2, o2, l2, a2, u2) {
|
|
48
48
|
let f2, c2 = d(r2);
|
|
49
|
-
if (r2 && null !== r2 || !i2 || (c2 = {}), !c2 || 0 === Object.keys(c2).length) return
|
|
50
|
-
return new e(c2).validate(
|
|
49
|
+
if (r2 && null !== r2 || !i2 || (c2 = {}), !c2 || 0 === Object.keys(c2).length) return s2.validateErrorField = "", true;
|
|
50
|
+
return new e(c2).validate(s2, { first: true }, (e2, c3) => {
|
|
51
51
|
let d2;
|
|
52
52
|
if (e2) {
|
|
53
53
|
f2 = e2[0].message, d2 = e2[0].field, t({ message: f2, showClose: true, type: "warning", duration: 3e3 });
|
|
54
|
-
const
|
|
55
|
-
|
|
54
|
+
const s3 = n(u2, d2);
|
|
55
|
+
s3 && s3.addRequiredClass && s3.addRequiredClass();
|
|
56
56
|
} else f2 = true;
|
|
57
|
-
if (d2 && true ===
|
|
58
|
-
if (/[A-Z]+/.test(d2) && void 0 !==
|
|
59
|
-
const e3 = JSON.parse(JSON.stringify(
|
|
60
|
-
e3[d2.toUpperCase()] =
|
|
57
|
+
if (d2 && true === l2) {
|
|
58
|
+
if (/[A-Z]+/.test(d2) && void 0 !== s2[d2.toLowerCase()]) {
|
|
59
|
+
const e3 = JSON.parse(JSON.stringify(s2));
|
|
60
|
+
e3[d2.toUpperCase()] = s2[d2.toLowerCase()], delete e3[d2.toLowerCase()], f2 = m(e3, r2, i2, o2, false, a2, u2);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}), f2;
|
|
64
64
|
}
|
|
65
|
-
function p(e2,
|
|
66
|
-
const
|
|
67
|
-
return null != c2 && (r2 = c2), null == r2 && (r2 = false), function(e3,
|
|
65
|
+
function p(e2, s2, r2) {
|
|
66
|
+
const l2 = e2.entity.data, a2 = { ...e2.entity.page, ...l2 }, f2 = e2.rules, c2 = s2.props.base ? s2.props.base.isEnableRequired : null;
|
|
67
|
+
return null != c2 && (r2 = c2), null == r2 && (r2 = false), function(e3, s3, r3, l3) {
|
|
68
68
|
if (e3) {
|
|
69
|
-
return u(
|
|
70
|
-
return new Promise((
|
|
71
|
-
const u2 =
|
|
72
|
-
b(e4,
|
|
69
|
+
return u(l3) ? function(e4, s4, r4) {
|
|
70
|
+
return new Promise((l4, a3) => {
|
|
71
|
+
const u2 = o(s4), f3 = s4.entity.context, c3 = s4.entity.task, d2 = true, m2 = s4.subTablePageInfo;
|
|
72
|
+
b(e4, s4, r4).then((r5) => {
|
|
73
73
|
if (r5) {
|
|
74
|
-
let
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
74
|
+
let o2, a4, p2, g2, b2 = r5;
|
|
75
|
+
const h2 = s4.workflowRules;
|
|
76
|
+
if (h2) {
|
|
77
|
+
if (!function(e5, s5) {
|
|
78
|
+
if (!e5.actionPermissions) return true;
|
|
79
|
+
const r7 = Object.keys(e5.actionPermissions);
|
|
80
|
+
for (let o3 = 0; o3 < r7.length; o3++) {
|
|
81
|
+
const l5 = r7[o3], a5 = e5.actionPermissions[l5];
|
|
82
|
+
if (a5 && a5.notEmpty) {
|
|
83
|
+
let r8 = false;
|
|
84
|
+
if (s5[l5] ? Array.isArray(s5[l5]) && 0 === s5[l5].length && (r8 = true) : r8 = true, r8) {
|
|
85
|
+
const s6 = n(e5, l5).getConfigure();
|
|
86
|
+
return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: s6.title ? s6.title : l5 }), type: "warning" }), false;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return true;
|
|
91
|
+
}(s4, e4)) return void l4(false);
|
|
92
|
+
const r6 = true, y2 = window.$vueApp.config.globalProperties.$formValidator(e4, h2, d2, u2, c3, f3, m2, r6);
|
|
93
|
+
b2 = y2.msg, o2 = y2.field, a4 = y2.listCode, p2 = y2.rowIndex, g2 = y2.pageNum;
|
|
94
|
+
} else b2 = true;
|
|
95
|
+
if (true !== b2) {
|
|
96
|
+
if (t({ showClose: true, message: b2 + "", type: "warning" }), a4) {
|
|
97
|
+
const e5 = n(s4, a4);
|
|
98
|
+
e5 && e5.addRequiredClass && e5.addRequiredClass(o2, p2, g2);
|
|
84
99
|
} else {
|
|
85
|
-
const e5 =
|
|
100
|
+
const e5 = n(s4, o2);
|
|
86
101
|
e5 && e5.addRequiredClass && e5.addRequiredClass();
|
|
87
102
|
}
|
|
88
|
-
|
|
89
|
-
} else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField,
|
|
103
|
+
l4(false);
|
|
104
|
+
} else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4);
|
|
90
105
|
} else a3(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
91
106
|
}).catch((e5) => {
|
|
92
107
|
a3(e5);
|
|
93
108
|
});
|
|
94
109
|
});
|
|
95
|
-
}(
|
|
96
|
-
return new Promise((
|
|
97
|
-
b(e4, t2,
|
|
110
|
+
}(s3, l3, r3) : function(e4, t2, n2) {
|
|
111
|
+
return new Promise((s4, r4) => {
|
|
112
|
+
b(e4, t2, n2).then((t3) => {
|
|
98
113
|
if (t3) {
|
|
99
114
|
const t4 = JSON.parse(JSON.stringify(e4));
|
|
100
|
-
Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField,
|
|
101
|
-
} else
|
|
115
|
+
Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, s4(t4);
|
|
116
|
+
} else s4(false);
|
|
102
117
|
}).catch((e5) => {
|
|
103
118
|
r4(e5);
|
|
104
119
|
});
|
|
105
120
|
});
|
|
106
|
-
}(
|
|
121
|
+
}(s3, l3, r3);
|
|
107
122
|
}
|
|
108
123
|
return new Promise((e4, t2) => {
|
|
109
124
|
e4(true);
|
|
@@ -111,118 +126,126 @@ function p(e2, n2, r2) {
|
|
|
111
126
|
}(r2, a2, f2, e2);
|
|
112
127
|
}
|
|
113
128
|
function g(e2) {
|
|
114
|
-
return new Promise((t2,
|
|
129
|
+
return new Promise((t2, n2) => {
|
|
115
130
|
const r2 = [], i2 = e2.customValidatorUuids;
|
|
116
131
|
i2 && i2.forEach((t3) => {
|
|
117
|
-
const
|
|
118
|
-
|
|
132
|
+
const n3 = s(e2, t3);
|
|
133
|
+
n3 && n3.validator && r2.push(n3.validator());
|
|
119
134
|
}), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
|
|
120
135
|
e3.includes(false) ? t2(false) : t2(true);
|
|
121
136
|
}) : t2(true);
|
|
122
137
|
});
|
|
123
138
|
}
|
|
124
|
-
function b(e2,
|
|
125
|
-
return new Promise((
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
128
|
-
if (true === c(
|
|
139
|
+
function b(e2, n2, r2) {
|
|
140
|
+
return new Promise((o2, a2) => {
|
|
141
|
+
const u2 = JSON.parse(JSON.stringify(e2));
|
|
142
|
+
if (r2 && 0 !== Object.keys(r2).length) {
|
|
143
|
+
if (true === c(u2, r2, null, null, true, n2)) {
|
|
129
144
|
const e3 = function(e4) {
|
|
145
|
+
var _a;
|
|
130
146
|
if (!e4) return true;
|
|
131
|
-
const
|
|
132
|
-
if (!
|
|
133
|
-
for (let
|
|
134
|
-
const
|
|
135
|
-
if (
|
|
136
|
-
if (
|
|
147
|
+
const n3 = e4.tableUuids;
|
|
148
|
+
if (!n3) return true;
|
|
149
|
+
for (let r3 = 0; r3 < n3.length; r3++) {
|
|
150
|
+
const o3 = n3[r3], l2 = s(e4, o3);
|
|
151
|
+
if (l2) {
|
|
152
|
+
if (l2.getConfigure()) {
|
|
153
|
+
const e5 = l2.getConfigure();
|
|
154
|
+
if ((_a = e5 == null ? void 0 : e5.verification) == null ? void 0 : _a.notEmpty) {
|
|
155
|
+
const n4 = l2.getTableData();
|
|
156
|
+
if (!n4 || !Array.isArray(n4) || 0 === n4.length) return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: e5.title ? e5.title : e5.code }), type: "warning" }), false;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
if (!l2.validatorSunTableListData()) return false;
|
|
137
160
|
}
|
|
138
161
|
}
|
|
139
162
|
return true;
|
|
140
|
-
}(
|
|
163
|
+
}(n2);
|
|
141
164
|
if (true === e3) {
|
|
142
165
|
const e4 = function(e5) {
|
|
143
|
-
const
|
|
144
|
-
e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((
|
|
145
|
-
|
|
146
|
-
const r3 = e5.customEvents[
|
|
147
|
-
|
|
166
|
+
const t2 = [];
|
|
167
|
+
e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((n3) => {
|
|
168
|
+
n3.events.forEach((s2) => {
|
|
169
|
+
const r3 = e5.customEvents[s2];
|
|
170
|
+
t2.push(r3.apply(r3, [{ prop: n3.prop, pageContext: e5 }]));
|
|
148
171
|
});
|
|
149
172
|
});
|
|
150
|
-
if (
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}), r3.includes(false) && e6(false),
|
|
155
|
-
|
|
156
|
-
}).catch((
|
|
157
|
-
e6(false);
|
|
173
|
+
if (t2 && t2.length > 0) return new Promise((e6, n3) => {
|
|
174
|
+
const s2 = [], r3 = [];
|
|
175
|
+
t2.forEach((e7) => {
|
|
176
|
+
l(e7) ? s2.push(e7) : r3.push(e7);
|
|
177
|
+
}), r3.includes(false) && e6(false), s2.length > 0 ? Promise.all(s2).then((t3) => {
|
|
178
|
+
t3.includes(false) ? e6(false) : e6(true);
|
|
179
|
+
}).catch((t3) => {
|
|
180
|
+
console.error(t3), e6(false);
|
|
158
181
|
}) : e6(true);
|
|
159
182
|
});
|
|
160
183
|
return null;
|
|
161
|
-
}(
|
|
162
|
-
e4 &&
|
|
163
|
-
e5 ? g(
|
|
164
|
-
|
|
165
|
-
}) :
|
|
166
|
-
}) : g(
|
|
167
|
-
|
|
184
|
+
}(n2);
|
|
185
|
+
e4 && l(e4) ? e4.then((e5) => {
|
|
186
|
+
e5 ? g(n2).then((e6) => {
|
|
187
|
+
o2(e6);
|
|
188
|
+
}) : o2(false);
|
|
189
|
+
}) : g(n2).then((e5) => {
|
|
190
|
+
o2(e5);
|
|
168
191
|
});
|
|
169
|
-
} else
|
|
170
|
-
} else
|
|
171
|
-
} else
|
|
192
|
+
} else a2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
193
|
+
} else a2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
194
|
+
} else o2(true);
|
|
172
195
|
});
|
|
173
196
|
}
|
|
174
197
|
function h(e2, t2) {
|
|
175
198
|
if (!e2) return t2;
|
|
176
199
|
t2 || (t2 = {});
|
|
177
|
-
const
|
|
178
|
-
return
|
|
200
|
+
const n2 = Object.keys(e2), s2 = e2;
|
|
201
|
+
return n2.forEach((e3) => {
|
|
179
202
|
if ("__subRules" === e3) {
|
|
180
|
-
const e4 =
|
|
181
|
-
Object.keys(e4).forEach((
|
|
182
|
-
t2.subRules || (t2.subRules = {}), t2.subRules[
|
|
203
|
+
const e4 = s2.__subRules;
|
|
204
|
+
Object.keys(e4).forEach((n3) => {
|
|
205
|
+
t2.subRules || (t2.subRules = {}), t2.subRules[n3] ? Object.assign(t2.subRules[n3], e4[n3]) : t2.subRules[n3] = e4[n3];
|
|
183
206
|
});
|
|
184
|
-
} else
|
|
207
|
+
} else C(s2[e3]), t2[e3] = s2[e3];
|
|
185
208
|
}), d(t2);
|
|
186
209
|
}
|
|
187
|
-
function
|
|
210
|
+
function y(e2) {
|
|
188
211
|
if (!e2 || 0 === Object.keys(e2).length) return;
|
|
189
|
-
const t2 = {},
|
|
190
|
-
for (let
|
|
191
|
-
const r2 = s2
|
|
192
|
-
|
|
212
|
+
const t2 = {}, n2 = Object.keys(e2);
|
|
213
|
+
for (let s2 = 0; s2 < n2.length; s2++) {
|
|
214
|
+
const r2 = n2[s2], i2 = e2[r2];
|
|
215
|
+
w(i2), r2.indexOf(".") > 0 ? f(r2, t2, i2) : i2 && i2.length > 0 && (t2[r2] = [...i2]);
|
|
193
216
|
}
|
|
194
217
|
return t2;
|
|
195
218
|
}
|
|
196
|
-
function
|
|
219
|
+
function w(e2, t2) {
|
|
197
220
|
e2.forEach((e3) => {
|
|
198
221
|
e3.message;
|
|
199
|
-
const t3 = e3.label,
|
|
200
|
-
e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label:
|
|
222
|
+
const t3 = e3.label, n2 = i().t(t3);
|
|
223
|
+
e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label: n2 })), e3.myType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: n2 })), e3.patternType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: n2 })), void 0 !== e3.max && null !== e3.max && (e3.message = i().t("superPageRuntimeMessage.overMaxLength", { label: n2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = i().t("superPageRuntimeMessage.limitMinLength", { label: n2, value: e3.min }));
|
|
201
224
|
});
|
|
202
225
|
}
|
|
203
226
|
function R(e2) {
|
|
204
|
-
const t2 = e2.entity.data,
|
|
227
|
+
const t2 = e2.entity.data, n2 = { ...e2.entity.page, ...t2 }, s2 = o(e2), r2 = e2.entity.context, i2 = e2.entity.task;
|
|
205
228
|
e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
|
|
206
229
|
t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
|
|
207
230
|
});
|
|
208
|
-
let
|
|
209
|
-
return
|
|
231
|
+
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, n2, true, s2, i2, r2);
|
|
232
|
+
return l2 = h(e2.customRules, l2), l2;
|
|
210
233
|
}
|
|
211
234
|
function v(e2, t2) {
|
|
212
235
|
if (!t2) return;
|
|
213
|
-
const
|
|
236
|
+
const s2 = {};
|
|
214
237
|
t2.forEach((e3) => {
|
|
215
|
-
const { name: t3, rules:
|
|
216
|
-
s2 && (
|
|
238
|
+
const { name: t3, rules: n2 } = e3;
|
|
239
|
+
n2 ? s2[t3] = n2 : false === e3.required && (s2[t3] = []);
|
|
217
240
|
});
|
|
218
241
|
let r2 = e2.rules ? e2.rules : {};
|
|
219
|
-
r2 = h(
|
|
242
|
+
r2 = h(s2, r2), e2.rules = r2;
|
|
220
243
|
let i2 = e2.workflowRules ? e2.workflowRules : {};
|
|
221
|
-
i2 = h(
|
|
222
|
-
const
|
|
223
|
-
|
|
244
|
+
i2 = h(s2, i2), e2.workflowRules = i2;
|
|
245
|
+
const o2 = t2.filter((e3) => "_all_fields" === e3.name);
|
|
246
|
+
o2 && o2.length > 0 && E(e2, o2[0]), t2.forEach((t3) => {
|
|
224
247
|
if ("_all_fields" !== t3.name) {
|
|
225
|
-
O(
|
|
248
|
+
O(n(e2, t3.name), t3);
|
|
226
249
|
}
|
|
227
250
|
});
|
|
228
251
|
}
|
|
@@ -230,21 +253,21 @@ function P(e2) {
|
|
|
230
253
|
E(e2, { disabled: true });
|
|
231
254
|
}
|
|
232
255
|
function E(e2, t2) {
|
|
233
|
-
const
|
|
234
|
-
if (
|
|
235
|
-
const
|
|
236
|
-
O(
|
|
256
|
+
const n2 = r(e2);
|
|
257
|
+
if (n2) for (const e3 in n2) {
|
|
258
|
+
const s2 = n2[e3];
|
|
259
|
+
O(s2 ? s2.value : s2, t2);
|
|
237
260
|
}
|
|
238
261
|
}
|
|
239
262
|
function k(e2, t2, r2) {
|
|
240
263
|
var _a;
|
|
241
|
-
let i2,
|
|
242
|
-
if (r2 ? (i2 =
|
|
243
|
-
const
|
|
264
|
+
let i2, o2;
|
|
265
|
+
if (r2 ? (i2 = n(e2, r2), o2 = i2 ? i2.getTableUuid() : null) : (o2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = o2 ? s(e2, o2) : null), !i2) return;
|
|
266
|
+
const l2 = e2.code, u2 = e2.version, f2 = a(l2, u2, o2);
|
|
244
267
|
if (((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[r2]) {
|
|
245
|
-
const
|
|
268
|
+
const n2 = e2.workflowRules.subRules[r2];
|
|
246
269
|
t2.forEach((e3) => {
|
|
247
|
-
|
|
270
|
+
n2[e3.name] = e3;
|
|
248
271
|
});
|
|
249
272
|
}
|
|
250
273
|
i2.dynamicControlTableEdit(e2, t2, f2);
|
|
@@ -252,32 +275,32 @@ function k(e2, t2, r2) {
|
|
|
252
275
|
function O(e2, t2) {
|
|
253
276
|
var _a, _b, _c;
|
|
254
277
|
if (e2) {
|
|
255
|
-
const
|
|
256
|
-
void 0 !== t2.show && (t2.show ? e2.show() : e2.hide()), void 0 !== t2.required && ((_a =
|
|
278
|
+
const n2 = e2.getConfigure();
|
|
279
|
+
void 0 !== t2.show && (t2.show ? e2.show() : e2.hide()), void 0 !== t2.required && ((_a = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _a.props) && (n2.runtime.props.required = t2.required), void 0 !== t2.readonly && ((_b = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _b.props) && (t2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== t2.disabled && n2 && (((_c = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _c.props) && (t2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled"), "table" === n2.name && e2.changeOperationAddState(false));
|
|
257
280
|
}
|
|
258
281
|
}
|
|
259
|
-
function
|
|
282
|
+
function C(e2) {
|
|
260
283
|
if (!(e2 == null ? void 0 : e2.type)) return;
|
|
261
|
-
const t2 =
|
|
284
|
+
const t2 = j[e2.type];
|
|
262
285
|
t2 && (e2.validator = t2.validator);
|
|
263
286
|
}
|
|
264
|
-
const
|
|
265
|
-
return true ===
|
|
266
|
-
} }, date: { validator: function(e2, t2,
|
|
267
|
-
if (true !==
|
|
268
|
-
const
|
|
269
|
-
return !isNaN(
|
|
270
|
-
} }, number: { validator: function(e2, t2,
|
|
271
|
-
return true ===
|
|
272
|
-
} } },
|
|
287
|
+
const j = { boolean: { validator: function(e2, t2, n2) {
|
|
288
|
+
return true === x(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
|
|
289
|
+
} }, date: { validator: function(e2, t2, n2) {
|
|
290
|
+
if (true !== x(e2, t2)) return false;
|
|
291
|
+
const s2 = new Date(t2);
|
|
292
|
+
return !isNaN(s2.getTime());
|
|
293
|
+
} }, number: { validator: function(e2, t2, n2) {
|
|
294
|
+
return true === x(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
|
|
295
|
+
} } }, x = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
|
|
273
296
|
export {
|
|
274
297
|
P as disabledAllFields,
|
|
275
298
|
k as dynamicControlTableEdit,
|
|
276
299
|
R as getWorkflowRules,
|
|
277
|
-
|
|
278
|
-
|
|
300
|
+
w as i18nValidatePropRulesMessage,
|
|
301
|
+
y as i18nValidateRulesMessage,
|
|
279
302
|
h as packageCustomRules,
|
|
280
|
-
|
|
303
|
+
C as packageCustomValidator,
|
|
281
304
|
f as setObjectPropRule,
|
|
282
305
|
O as updateComponentDisplayState,
|
|
283
306
|
v as updateFormItemEditState,
|
|
@@ -40,6 +40,7 @@ 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);
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
function b(e2) {
|
|
@@ -49,7 +50,9 @@ function b(e2) {
|
|
|
49
50
|
const s2 = t2.split("&");
|
|
50
51
|
for (const t3 of s2) {
|
|
51
52
|
const s3 = t3.split("=");
|
|
52
|
-
|
|
53
|
+
let i2 = s3[0];
|
|
54
|
+
const n2 = s3.length > 1 ? s3[1] : "";
|
|
55
|
+
e2[i2] = n2, i2.indexOf("ai__") >= 0 && (i2 = i2.substring(i2.indexOf("ai__") + 4)), e2[i2] = n2;
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
e2._t_;
|
|
@@ -61,7 +64,7 @@ function y(e2, t2) {
|
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
function h(e2, t2) {
|
|
64
|
-
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
|
|
67
|
+
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query, e2.query)) {
|
|
65
68
|
Object.assign(t2, e2.query);
|
|
66
69
|
w(e2.query.paramStoreId, t2);
|
|
67
70
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
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/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
|
-
function
|
|
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" }] }, workflowStart: { group: "流程表单功能", label: "起草", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/start$POST" }] }, 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
|
+
function t(o2) {
|
|
4
4
|
return o2 ? e[o2] : void 0;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function n(o2) {
|
|
7
7
|
if (!o2) return;
|
|
8
|
-
let
|
|
9
|
-
if (null ==
|
|
8
|
+
let t2 = s[o2];
|
|
9
|
+
if (null == t2) {
|
|
10
10
|
for (const s2 in e) {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
for (const e2 of
|
|
11
|
+
const n2 = e[s2].functions;
|
|
12
|
+
if (n2) {
|
|
13
|
+
for (const e2 of n2) {
|
|
14
14
|
if (o2 === (e2.code ? e2.code : s2)) {
|
|
15
|
-
|
|
15
|
+
t2 = e2;
|
|
16
16
|
break;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
if (
|
|
19
|
+
if (t2) break;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
s[o2] =
|
|
22
|
+
s[o2] = t2 || "";
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return t2 || void 0;
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
27
|
o as FuncType,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
n as getFunctionInfo,
|
|
29
|
+
t as getStandPermissionInfo
|
|
30
30
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ref as e } from "vue";
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import
|
|
4
|
-
const t =
|
|
5
|
-
const
|
|
6
|
-
return { pageContext:
|
|
7
|
-
|
|
2
|
+
import { defineStore as a } from "pinia";
|
|
3
|
+
import o from "./eventBus.js";
|
|
4
|
+
const t = a("pageContextUtil", () => {
|
|
5
|
+
const a2 = e({ systemCode: "", systemVersion: -1 }), t2 = e(false), n = e(false), u = e(false), l = e(0), v = e(0);
|
|
6
|
+
return { pageContext: a2, setPageContext: function(e2) {
|
|
7
|
+
a2.value = e2;
|
|
8
8
|
}, countComponentsTotalNmber: function() {
|
|
9
9
|
l.value++, t2.value = false, u.value = false;
|
|
10
10
|
}, countComponentsLoadedNumber: function() {
|
|
11
|
-
|
|
12
|
-
}, componentsTotalNmber: l, componentsLoadedNumber:
|
|
13
|
-
t2.value = e2, t2.value && n.value && (
|
|
11
|
+
v.value++, u.value = false;
|
|
12
|
+
}, componentsTotalNmber: l, componentsLoadedNumber: v, setPageComponentsLoaded: function(e2) {
|
|
13
|
+
t2.value = e2, t2.value && n.value && (o.$emit("pageLoaded"), u.value = true);
|
|
14
14
|
}, setFormPageDataLoadState: function(e2) {
|
|
15
|
-
n.value = e2, t2.value && n.value && (u.value = true);
|
|
15
|
+
n.value = e2, t2.value && n.value && (t2.value, n.value, u.value = true);
|
|
16
16
|
}, formPageDataLoaded: n, pageComponentsLoaded: t2, restorePageLoadState: function() {
|
|
17
17
|
t2.value = false, n.value = false, u.value = false;
|
|
18
18
|
}, pageLoaded: u, getPageLoaded: function() {
|
|
@@ -19,7 +19,7 @@ function u(t2, e2) {
|
|
|
19
19
|
}
|
|
20
20
|
function l(t2, e2, i2, s2) {
|
|
21
21
|
const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
|
|
22
|
-
r2 && u2 && u2.forEach((e3) => {
|
|
22
|
+
e2.btnList, r2 && u2 && u2.forEach((e3) => {
|
|
23
23
|
const r3 = {}, u3 = Object.assign({}, e3.props.base);
|
|
24
24
|
if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
|
|
25
25
|
const i3 = o(e3, t2);
|