super-page-runtime 2.3.8 → 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 +57 -57
- 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/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/table/chart-table-util.js +89 -94
- 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 +1 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +22 -19
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +34 -31
- 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/package.json +2 -2
- package/dist/es.zip +0 -0
|
@@ -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];
|
|
@@ -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 o } from "pinia";
|
|
3
|
+
import a from "./eventBus.js";
|
|
4
|
+
const t = o("pageContextUtil", () => {
|
|
5
|
+
const o2 = e({ systemCode: "", systemVersion: -1 }), t2 = e(false), n = e(false), u = e(false), l = e(0), d = e(0);
|
|
6
|
+
return { pageContext: o2, setPageContext: function(e2) {
|
|
7
|
+
o2.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
|
+
d.value++, u.value = false;
|
|
12
|
+
}, componentsTotalNmber: l, componentsLoadedNumber: d, setPageComponentsLoaded: function(e2) {
|
|
13
|
+
t2.value = e2, t2.value && n.value && (a.$emit("pageLoaded"), u.value = true);
|
|
14
14
|
}, setFormPageDataLoadState: function(e2) {
|
|
15
|
-
n.value = e2, t2.value && n.value && (
|
|
15
|
+
n.value = e2, 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
|
-
|
|
22
|
+
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);
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as
|
|
2
|
-
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup(e2) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
|
|
8
|
-
return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[0] || (t3[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(d, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[1] || (t3[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[2] || (t3[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
|
|
9
|
-
};
|
|
10
|
-
} });
|
|
1
|
+
import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as d, Fragment as n, renderList as p } from "vue";
|
|
2
|
+
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup: (e2) => (l(e2.headerInfo, () => {
|
|
3
|
+
}), (l2, t2) => {
|
|
4
|
+
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
|
|
5
|
+
return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[0] || (t2[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(n, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[1] || (t2[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[2] || (t2[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
|
|
6
|
+
}) });
|
|
11
7
|
export {
|
|
12
8
|
t as default
|
|
13
9
|
};
|
|
@@ -3,13 +3,12 @@ import { Search as p } from "@element-plus/icons-vue";
|
|
|
3
3
|
import g from "./common-chart-header-group.vue.js";
|
|
4
4
|
import m from "./common-chart-header-breadcrumb.vue.js";
|
|
5
5
|
import b from "./common-homepage-search.vue.js";
|
|
6
|
-
import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as
|
|
7
|
-
const
|
|
6
|
+
import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as w } from "../../../../utils/page-helper-util.js";
|
|
7
|
+
const x = { class: "amb-widget-chart-header" }, O = { class: "amb-widget-chart-header-item" }, k = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, j = { class: "amb-widget-chart-header-item" }, C = { key: 0, class: "amb-widget-chart-header-item" }, P = e({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(e2, { expose: P2, emit: _ }) {
|
|
8
8
|
const N = e2, D = o(null), A = o(), R = _;
|
|
9
9
|
function S(e3) {
|
|
10
10
|
const o2 = N.headerInfo.drillOptions.length;
|
|
11
|
-
if (e3 >= o2)
|
|
12
|
-
else {
|
|
11
|
+
if (!(e3 >= o2)) {
|
|
13
12
|
for (let r2 = o2 - 1; r2 >= e3; r2--) N.headerInfo.drillOptions.splice(r2, 1);
|
|
14
13
|
q(e3);
|
|
15
14
|
}
|
|
@@ -35,7 +34,7 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
|
|
|
35
34
|
for (let e4 of o2.variables) {
|
|
36
35
|
if (!e4.fieldName || !e4.variable) continue;
|
|
37
36
|
const o3 = y(r2, e4.fieldName, void 0);
|
|
38
|
-
|
|
37
|
+
w(N.pageContext.entity, e4.variable, o3);
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
N.headerInfo.drillOptions || (N.headerInfo.drillOptions = []);
|
|
@@ -47,12 +46,11 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
|
|
|
47
46
|
if (r2 + 1 >= N.headerInfo.options.length) {
|
|
48
47
|
return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), void R("drill-end", e3);
|
|
49
48
|
}
|
|
50
|
-
N.headerInfo.options;
|
|
51
49
|
const n2 = N.headerInfo.options[r2], t2 = o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : null, a2 = { fieldName: n2.target ? n2.target.replace(".", "_") : "", rawFieldName: n2.target ? n2.target : "", label: e3.name, value: e3.name, data: t2 };
|
|
52
50
|
N.headerInfo.drillOptions.push(a2), q(r2 + 1);
|
|
53
51
|
}, closeDrill: S }), (o2, v2) => {
|
|
54
|
-
const y2 = r("el-icon"),
|
|
55
|
-
return t(), n("div",
|
|
52
|
+
const y2 = r("el-icon"), w2 = r("el-tooltip");
|
|
53
|
+
return t(), n("div", x, [a("div", O, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(m, { key: 0, ref_key: "drillObjRef", ref: D, headerInfo: e2.headerInfo, onCloseDrill: S }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", k, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), a("div", j, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), e2.pageContext.showHomepageSearch ? (t(), n("div", C, [c(w2, { content: "打开查询弹窗", effect: "light" }, { default: I(() => [c(y2, { onClick: G }, { default: I(() => [c(u(p))]), _: 1 })]), _: 1 }), c(b, { ref_key: "commonHomepageSearchRef", ref: A, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])])) : l("", true)]);
|
|
56
54
|
};
|
|
57
55
|
} });
|
|
58
56
|
export {
|