super-page-runtime 2.3.5 → 2.3.6-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 +78 -70
- package/dist/es/components/runtime/utils/charts/chart-util.js +1 -1
- package/dist/es/components/runtime/utils/common-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/common-util.js +62 -47
- 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 +21 -19
- package/dist/es/components/runtime/utils/events/validator-util.js +23 -23
- package/dist/es/components/runtime/utils/page-init-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +45 -33
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.d.ts +14 -0
- package/dist/es/components/runtime/utils/table-utils.js +57 -32
- 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/common/common-homepage-search.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +10 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +36 -33
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +131 -131
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +8 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -26
- 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 +9 -10
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +48 -48
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +42 -42
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +22 -21
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +45 -46
- 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/rich-text/richtext-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +60 -51
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +69 -67
- 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.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +11 -12
- package/dist/es/style.css +82 -82
- package/package.json +2 -2
- package/dist/es.zip +0 -0
|
@@ -8,8 +8,8 @@ import C from "../eventBus.js";
|
|
|
8
8
|
import T from "axios";
|
|
9
9
|
import { handleEvent as y, getTableUuid as h, doAfterClickEvent as P } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as w } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as k, getDefaultValue as R, getModelFields as
|
|
12
|
-
import { updateChartDatasources as
|
|
11
|
+
import { getPermissionCodes as k, getDefaultValue as R, getModelFields as N } from "../page-init-util.js";
|
|
12
|
+
import { updateChartDatasources as M, caculateShowCondition as v, getVariableValue as S, setVariableValue as I } from "../page-helper-util.js";
|
|
13
13
|
import x from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as A } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
|
|
@@ -71,7 +71,7 @@ const j = { save: function(e2) {
|
|
|
71
71
|
}, downloadTemplate: function(e2) {
|
|
72
72
|
!function(e3) {
|
|
73
73
|
var _a;
|
|
74
|
-
const t2 = e3.pageContext, s2 = e3.configureObj, o2 = s2.props.base, a2 = i(o2.templateFiles);
|
|
74
|
+
const t2 = e3.pageContext, s2 = e3.configureObj, o2 = s2.props.base, a2 = i(o2.templateFiles, t2, s2);
|
|
75
75
|
let r2, c2;
|
|
76
76
|
a2 && a2.length > 0 && (r2 = a2[0].templateUuid, c2 = a2[0].templateName);
|
|
77
77
|
const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
|
|
@@ -226,8 +226,7 @@ const j = { save: function(e2) {
|
|
|
226
226
|
let t2 = null;
|
|
227
227
|
try {
|
|
228
228
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
229
|
-
} catch (
|
|
230
|
-
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
229
|
+
} catch (e4) {
|
|
231
230
|
}
|
|
232
231
|
x.printLabel(e3, t2);
|
|
233
232
|
}(e2);
|
|
@@ -280,7 +279,7 @@ function D(e2) {
|
|
|
280
279
|
let o2 = null;
|
|
281
280
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
282
281
|
const i2 = o2 ? o2.state : void 0;
|
|
283
|
-
o2 && (o2.state = "disabled"),
|
|
282
|
+
o2 && (o2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
284
283
|
o2 && (o2.state = i2);
|
|
285
284
|
}).catch(() => {
|
|
286
285
|
o2 && (o2.state = i2);
|
|
@@ -288,6 +287,7 @@ function D(e2) {
|
|
|
288
287
|
}
|
|
289
288
|
function L(e2, s2, o2, i2) {
|
|
290
289
|
var _a;
|
|
290
|
+
e2.clickUuid = s2.uuid;
|
|
291
291
|
const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = E.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, C2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: k(s2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
292
292
|
u2 && (C2.logSettingText = u2.join(""));
|
|
293
293
|
const y2 = ie(e2);
|
|
@@ -319,6 +319,7 @@ function L(e2, s2, o2, i2) {
|
|
|
319
319
|
});
|
|
320
320
|
}(r2, f2, C2, e2.isTest), h2 && h2.then(() => {
|
|
321
321
|
P(e2, s2);
|
|
322
|
+
}).catch((e3) => {
|
|
322
323
|
});
|
|
323
324
|
}
|
|
324
325
|
function B() {
|
|
@@ -378,10 +379,11 @@ function q(t2, s2, n2, o2, i2) {
|
|
|
378
379
|
let i3 = s3.props.base.successOperation;
|
|
379
380
|
const a3 = s3.props.base.isNeedValueMapping, r2 = h(t3, s3);
|
|
380
381
|
i3 || z.includes(s3.name) || (i3 = "refresh");
|
|
381
|
-
if ("refresh" === i3)
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
382
|
+
if ("refresh" === i3) {
|
|
383
|
+
if (r2) {
|
|
384
|
+
b(t3, r2).refresh();
|
|
385
|
+
}
|
|
386
|
+
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
385
387
|
const o4 = e(t3.entity.page);
|
|
386
388
|
let i4 = n3;
|
|
387
389
|
i4 || (i4 = {}), Object.assign(o4, i4), J(t3, s3, o4, a3);
|
|
@@ -435,7 +437,7 @@ function Y(e2, t2, s2, n2, o2) {
|
|
|
435
437
|
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
436
438
|
const t4 = e4.source;
|
|
437
439
|
if (!t4) return;
|
|
438
|
-
const o3 = t4.split("."), i3 = S(n3, o3), a2 = e4.target, r2 =
|
|
440
|
+
const o3 = t4.split("."), i3 = S(n3, o3), a2 = e4.target, r2 = N(null, a2);
|
|
439
441
|
I(s3.entity, r2, i3);
|
|
440
442
|
});
|
|
441
443
|
}
|
|
@@ -453,7 +455,7 @@ function K(e2, t2, s2, n2) {
|
|
|
453
455
|
const s3 = h(e2, t2);
|
|
454
456
|
if (s3) {
|
|
455
457
|
b(e2, s3).refresh();
|
|
456
|
-
}
|
|
458
|
+
}
|
|
457
459
|
} else if (i2 && "form" === i2) {
|
|
458
460
|
const t3 = e2.entity.data;
|
|
459
461
|
fe(e2, t3.ID ? t3.ID : t3.id);
|
|
@@ -514,10 +516,10 @@ function X(e2, s2) {
|
|
|
514
516
|
null != w2 && f2.append("isWorkflowEntity", w2 + "");
|
|
515
517
|
const R2 = k(a2, i2);
|
|
516
518
|
R2 && f2.append("functionCode", R2);
|
|
517
|
-
const
|
|
518
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
519
|
-
const
|
|
520
|
-
f2.append("isPermission",
|
|
519
|
+
const N2 = ie(i2);
|
|
520
|
+
f2.append("additionalParamMapStr", JSON.stringify(N2));
|
|
521
|
+
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
522
|
+
f2.append("isPermission", M2 + "");
|
|
521
523
|
const v2 = i2.systemCode;
|
|
522
524
|
v2 && f2.append("systemCode", v2);
|
|
523
525
|
const S2 = i2.backendUrl;
|
|
@@ -554,7 +556,7 @@ function ee(e2) {
|
|
|
554
556
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
555
557
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
556
558
|
const d2 = ie(t2);
|
|
557
|
-
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids
|
|
559
|
+
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids && (c2.ids = [d2.ids]));
|
|
558
560
|
const m2 = n2.props.base.successOperation;
|
|
559
561
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
560
562
|
}
|
|
@@ -807,7 +809,7 @@ function ge(e2, s2, o2) {
|
|
|
807
809
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
808
810
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
809
811
|
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
|
|
810
|
-
if (
|
|
812
|
+
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
811
813
|
const t3 = {};
|
|
812
814
|
e3.tableUuids.forEach((e4) => {
|
|
813
815
|
const s4 = r(u2, l2, e4);
|
|
@@ -860,7 +862,7 @@ function ge(e2, s2, o2) {
|
|
|
860
862
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
861
863
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
862
864
|
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
863
|
-
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = be(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2),
|
|
865
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = be(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
864
866
|
const t3 = {};
|
|
865
867
|
e3.tableUuids.forEach((e4) => {
|
|
866
868
|
const s4 = r(u2, l2, e4);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "async-validator";
|
|
2
2
|
import { ElMessage as t } from "element-plus";
|
|
3
|
-
import { getComponentRefByCode as n,
|
|
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
5
|
import { getAdditionalParamMap as l } from "./standard-event.js";
|
|
6
6
|
import { isPromise as o } from "agilebuilder-ui/src/utils/common-util";
|
|
@@ -94,17 +94,17 @@ function p(e2, n2, s2) {
|
|
|
94
94
|
}
|
|
95
95
|
function g(e2) {
|
|
96
96
|
return new Promise((t2, n2) => {
|
|
97
|
-
const
|
|
97
|
+
const r2 = [], i2 = e2.customValidatorUuids;
|
|
98
98
|
i2 && i2.forEach((t3) => {
|
|
99
|
-
const n3 =
|
|
100
|
-
n3 && n3.validator &&
|
|
101
|
-
}),
|
|
99
|
+
const n3 = s(e2, t3);
|
|
100
|
+
n3 && n3.validator && r2.push(n3.validator());
|
|
101
|
+
}), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
|
|
102
102
|
e3.includes(false) ? t2(false) : t2(true);
|
|
103
103
|
}) : t2(true);
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
function b(e2, t2, n2) {
|
|
107
|
-
return new Promise((
|
|
107
|
+
return new Promise((r2, l2) => {
|
|
108
108
|
const a2 = JSON.parse(JSON.stringify(e2));
|
|
109
109
|
if (n2 && 0 !== Object.keys(n2).length) {
|
|
110
110
|
if (true === c(a2, n2, null, null)) {
|
|
@@ -113,7 +113,7 @@ function b(e2, t2, n2) {
|
|
|
113
113
|
const t3 = e4.tableUuids;
|
|
114
114
|
if (!t3) return true;
|
|
115
115
|
for (let n3 = 0; n3 < t3.length; n3++) {
|
|
116
|
-
const
|
|
116
|
+
const r3 = t3[n3], i2 = s(e4, r3);
|
|
117
117
|
if (i2) {
|
|
118
118
|
if (!i2.validatorSunTableListData()) return false;
|
|
119
119
|
}
|
|
@@ -124,33 +124,33 @@ function b(e2, t2, n2) {
|
|
|
124
124
|
const e4 = function(e5) {
|
|
125
125
|
const t3 = [];
|
|
126
126
|
e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((n3) => {
|
|
127
|
-
n3.events.forEach((
|
|
128
|
-
const
|
|
129
|
-
t3.push(
|
|
127
|
+
n3.events.forEach((s2) => {
|
|
128
|
+
const r3 = e5.customEvents[s2];
|
|
129
|
+
t3.push(r3.apply(r3, [{ prop: n3.prop, pageContext: e5 }]));
|
|
130
130
|
});
|
|
131
131
|
});
|
|
132
132
|
if (t3 && t3.length > 0) return new Promise((e6, n3) => {
|
|
133
|
-
const
|
|
133
|
+
const s2 = [], r3 = [];
|
|
134
134
|
t3.forEach((e7) => {
|
|
135
|
-
o(e7) ?
|
|
136
|
-
}),
|
|
135
|
+
o(e7) ? s2.push(e7) : r3.push(e7);
|
|
136
|
+
}), r3.includes(false) && e6(false), s2.length > 0 ? Promise.all(s2).then((t4) => {
|
|
137
137
|
t4.includes(false) ? e6(false) : e6(true);
|
|
138
138
|
}).catch((t4) => {
|
|
139
|
-
|
|
139
|
+
e6(false);
|
|
140
140
|
}) : e6(true);
|
|
141
141
|
});
|
|
142
142
|
return null;
|
|
143
143
|
}(t2);
|
|
144
144
|
e4 && o(e4) ? e4.then((e5) => {
|
|
145
145
|
e5 ? g(t2).then((e6) => {
|
|
146
|
-
|
|
147
|
-
}) :
|
|
146
|
+
r2(e6);
|
|
147
|
+
}) : r2(false);
|
|
148
148
|
}) : g(t2).then((e5) => {
|
|
149
|
-
|
|
149
|
+
r2(e5);
|
|
150
150
|
});
|
|
151
151
|
} else l2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
152
152
|
} else l2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
153
|
-
} else
|
|
153
|
+
} else r2(true);
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
function h(e2, t2) {
|
|
@@ -212,19 +212,19 @@ function R(e2) {
|
|
|
212
212
|
E(e2, { disabled: true });
|
|
213
213
|
}
|
|
214
214
|
function E(e2, t2) {
|
|
215
|
-
const n2 =
|
|
215
|
+
const n2 = r(e2);
|
|
216
216
|
if (n2) for (const e3 in n2) {
|
|
217
217
|
const s2 = n2[e3];
|
|
218
218
|
O(s2 ? s2.value : s2, t2);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function k(e2, t2,
|
|
221
|
+
function k(e2, t2, r2) {
|
|
222
222
|
var _a;
|
|
223
223
|
let i2, l2;
|
|
224
|
-
if (
|
|
224
|
+
if (r2 ? (i2 = n(e2, r2), l2 = i2 ? i2.getTableUuid() : null) : (l2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = l2 ? s(e2, l2) : null), !i2) return;
|
|
225
225
|
const o2 = e2.code, u2 = e2.version, f2 = a(o2, u2, l2);
|
|
226
|
-
if (((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[
|
|
227
|
-
const n2 = e2.workflowRules.subRules[
|
|
226
|
+
if (((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[r2]) {
|
|
227
|
+
const n2 = e2.workflowRules.subRules[r2];
|
|
228
228
|
t2.forEach((e3) => {
|
|
229
229
|
n2[e3.name] = e3;
|
|
230
230
|
});
|
|
@@ -44,5 +44,5 @@ export declare function getPermissionCodes(configure: Component, pageContext: Pa
|
|
|
44
44
|
* @returns
|
|
45
45
|
*/
|
|
46
46
|
export declare function queryPageSuperGrids(pageDesign: any, pageContext: any, publishVersion: any): Promise<any>;
|
|
47
|
-
export declare function packageFormRules(pageContext: PageContext, configure: any): void;
|
|
47
|
+
export declare function packageFormRules(pageContext: PageContext, configure: any, isHasPermission: boolean): void;
|
|
48
48
|
export declare function controlObjectRenderState(pageContext: PageContext, propName: string): void;
|
|
@@ -6,14 +6,14 @@ 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";
|
|
8
8
|
import { packageCustomValidator as d } from "./events/validator-util.js";
|
|
9
|
-
import { isMobileBrowser as
|
|
10
|
-
function
|
|
9
|
+
import { isMobileBrowser as f } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
+
function m(t2) {
|
|
11
11
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t2);
|
|
12
12
|
}
|
|
13
13
|
function c(e2) {
|
|
14
14
|
var _a, _b, _c;
|
|
15
15
|
if (null == e2) return null;
|
|
16
|
-
const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: g(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam } };
|
|
16
|
+
const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: g(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam } };
|
|
17
17
|
if (e2.props && e2.props.notIdInitializationList) {
|
|
18
18
|
let s2 = e2.props.notIdInitializationList;
|
|
19
19
|
"string" == typeof s2 && (s2 = JSON.parse(s2)), s2.length > 0 && (t2.notIdInitializationList = s2);
|
|
@@ -23,7 +23,7 @@ function c(e2) {
|
|
|
23
23
|
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? s2[t3.name] = [] : t3.defaultValue ? s2[t3.name] = t3.defaultValue : s2[t3.name] = void 0);
|
|
24
24
|
}
|
|
25
25
|
return function(e3) {
|
|
26
|
-
if (
|
|
26
|
+
if (f()) {
|
|
27
27
|
e3.entity.page._isMobile = "true";
|
|
28
28
|
const t3 = navigator ? navigator.userAgent : null;
|
|
29
29
|
t3 ? t3.indexOf(" uni-app ") > 0 ? (e3.entity.page._isMobileApp = "true", e3.entity.page._isMobileBrowser = "false") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "true") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "false");
|
|
@@ -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) {
|
|
@@ -58,16 +57,16 @@ function b(e2) {
|
|
|
58
57
|
function y(e2, t2) {
|
|
59
58
|
if (e2) {
|
|
60
59
|
Object.assign(t2, e2);
|
|
61
|
-
|
|
60
|
+
w(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
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
|
}
|
|
69
68
|
}
|
|
70
|
-
function
|
|
69
|
+
function w(e2, t2) {
|
|
71
70
|
if (e2) {
|
|
72
71
|
const s2 = l(e2);
|
|
73
72
|
if (s2) {
|
|
@@ -82,7 +81,7 @@ function E(e2, t2) {
|
|
|
82
81
|
let n2 = null;
|
|
83
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
|
-
function
|
|
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;
|
|
@@ -107,6 +106,8 @@ function P(e2, t2, s2, i2) {
|
|
|
107
106
|
return n2;
|
|
108
107
|
}
|
|
109
108
|
function M(e2, t2) {
|
|
109
|
+
var _a, _b;
|
|
110
|
+
if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
|
|
110
111
|
const s2 = [];
|
|
111
112
|
if (e2.autoPermissions) for (const i2 of e2.autoPermissions) s2.push(t2.code + "." + i2.simpleCode);
|
|
112
113
|
if (e2.functionCodes) {
|
|
@@ -117,47 +118,58 @@ function M(e2, t2) {
|
|
|
117
118
|
if ("service" == r2) l2 = o2;
|
|
118
119
|
else if ("standard" === r2) l2 = t2.code + "." + o2;
|
|
119
120
|
else {
|
|
120
|
-
l2 = "custom" ===
|
|
121
|
+
l2 = "custom" === k(o2, t2).type ? o2 : t2.code + "." + o2;
|
|
121
122
|
}
|
|
122
123
|
s2.includes(l2) || s2.push(l2);
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
return s2.join(",");
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
+
function k(e2, t2) {
|
|
128
129
|
const s2 = t2.pagePermissions;
|
|
129
130
|
if (s2 && s2.length > 0) {
|
|
130
131
|
for (let t3 = 0; t3 < s2.length; t3++) if (s2[t3].simpleCode === e2) return s2[t3];
|
|
131
132
|
}
|
|
132
133
|
return null;
|
|
133
134
|
}
|
|
134
|
-
function
|
|
135
|
+
function j(s2, i2, n2) {
|
|
135
136
|
const o2 = s2.tableRuntimes, r2 = t(i2);
|
|
136
137
|
let l2;
|
|
137
138
|
const a2 = i2.code;
|
|
138
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 });
|
|
139
140
|
}
|
|
140
|
-
const
|
|
141
|
-
function
|
|
141
|
+
const C = ["button-detail", "print-label"];
|
|
142
|
+
function I(e2, t2, s2) {
|
|
142
143
|
var _a, _b;
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
if (
|
|
144
|
+
const n2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
|
|
145
|
+
let r2 = false;
|
|
146
|
+
if (o2 && C.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
146
147
|
const s3 = e2.fieldPermissionMap.get("all_fields");
|
|
147
|
-
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled",
|
|
148
|
+
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
|
|
148
149
|
}
|
|
149
|
-
if (
|
|
150
|
-
const
|
|
151
|
-
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[
|
|
152
|
-
d(e3);
|
|
153
|
-
}), e2.rules[
|
|
154
|
-
const
|
|
155
|
-
|
|
150
|
+
if (n2) {
|
|
151
|
+
const l2 = i(n2);
|
|
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) => {
|
|
153
|
+
d(e3), !s2 && e3 && e3.required && (e3.required = false);
|
|
154
|
+
}), e2.rules[l2] = t2.props.rules), o2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
155
|
+
const i2 = e2.fieldPermissionMap.get(l2);
|
|
156
|
+
if (!s2 && e2.workflowRules && (e2.workflowRules[l2] || e2.workflowRules.rules && e2.workflowRules.rules[l2])) {
|
|
157
|
+
let t3 = e2.workflowRules[l2];
|
|
158
|
+
if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[l2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
|
|
159
|
+
const s3 = t3[e3];
|
|
160
|
+
if (s3 && s3.required) {
|
|
161
|
+
s3.required = false;
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
else t3 && t3.required && (t3.required = false);
|
|
166
|
+
}
|
|
167
|
+
t2.runtime.props || (t2.runtime.props = {}), i2 ? (!s2 && i2.canEdit && (i2.canEdit = false), false === i2.canEdit ? t2.runtime.props.state = "disabled" : i2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
|
|
156
168
|
}
|
|
157
|
-
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop:
|
|
169
|
+
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: l2, events: t2.props.customRuleEvents }));
|
|
158
170
|
}
|
|
159
171
|
}
|
|
160
|
-
function
|
|
172
|
+
function O(e2, t2) {
|
|
161
173
|
if (e2.initInfo) {
|
|
162
174
|
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((s2) => {
|
|
163
175
|
const i2 = e2.initInfo[s2];
|
|
@@ -173,16 +185,16 @@ function _(e2, t2) {
|
|
|
173
185
|
}
|
|
174
186
|
}
|
|
175
187
|
export {
|
|
176
|
-
|
|
188
|
+
O as controlObjectRenderState,
|
|
177
189
|
c as convertToPageContext,
|
|
178
190
|
P as getDefaultValue,
|
|
179
|
-
|
|
191
|
+
v as getFormModelFields,
|
|
180
192
|
E as getModelFields,
|
|
181
193
|
M as getPermissionCodes,
|
|
182
194
|
b as packageAdditionalMapWithLocationSearch,
|
|
183
195
|
y as packageAdditionalMapWithPageRequest,
|
|
184
196
|
h as packageAdditionalMapWithRoute,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
197
|
+
I as packageFormRules,
|
|
198
|
+
m as queryPageDesignByCode,
|
|
199
|
+
j as queryPageSuperGrids
|
|
188
200
|
};
|
|
@@ -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() {
|
|
@@ -18,3 +18,17 @@ export declare function getDistanceToAppContainer(tableDivRef: any): {
|
|
|
18
18
|
distanceToTop: number;
|
|
19
19
|
distanceToBottom: number;
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* 是否有字段的权限
|
|
23
|
+
* @param pageContext
|
|
24
|
+
* @param fieldName
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
export declare function isHasFieldAuth(pageContext: any, configure: any): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 是否有字段的权限
|
|
30
|
+
* @param pageContext
|
|
31
|
+
* @param fieldName
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
export declare function isHasFieldPermissionAuth(pageContext: any, tableName: any, fieldName: any): boolean;
|
|
@@ -1,55 +1,80 @@
|
|
|
1
1
|
import "agilebuilder-ui/src/utils/common-util";
|
|
2
2
|
import "agilebuilder-ui/src/utils/util";
|
|
3
|
+
import { ExpressionEvaluator as t } from "../views/assemblys/chart/table/chart-table-util.js";
|
|
4
|
+
import { getCustomFunc as e } from "./events/event-util.js";
|
|
3
5
|
import "agilebuilder-ui/src/utils/request";
|
|
4
|
-
import
|
|
5
|
-
import { getPermissionCodes as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
t.$emit(i2 + "_open-dialog", e2);
|
|
6
|
+
import i from "./eventBus.js";
|
|
7
|
+
import { getPermissionCodes as o } from "./page-init-util.js";
|
|
8
|
+
import { $t as n } from "./i18n-util.js";
|
|
9
|
+
import { getFormPropName as s } from "./page-helper-util.js";
|
|
10
|
+
function r(t2) {
|
|
11
|
+
const e2 = t2.pageContext && t2.pageContext.code;
|
|
12
|
+
i.$emit(e2 + "_open-dialog", t2);
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
+
function u(t2, e2) {
|
|
14
15
|
const i2 = t2.tableName;
|
|
15
16
|
if (!e2 && i2) return i2;
|
|
16
17
|
let o2;
|
|
17
18
|
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (o2 = JSON.parse(t2.tableRuntimes[e2].configure)), o2 && o2.props && o2.props.dataOrigin ? o2.props.dataOrigin.tableName : null;
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
const r2 = !(!
|
|
21
|
-
|
|
22
|
-
const r3 = {}, u3 = Object.assign({},
|
|
23
|
-
if ("custom" ===
|
|
24
|
-
const
|
|
25
|
-
|
|
20
|
+
function l(t2, e2, i2, s2) {
|
|
21
|
+
const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
|
|
22
|
+
r2 && u2 && u2.forEach((e3) => {
|
|
23
|
+
const r3 = {}, u3 = Object.assign({}, e3.props.base);
|
|
24
|
+
if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
|
|
25
|
+
const i3 = o(e3, t2);
|
|
26
|
+
i3 && (u3.permission = i3);
|
|
26
27
|
}
|
|
27
|
-
if (u3.label =
|
|
28
|
-
const t3 =
|
|
28
|
+
if (u3.label = n(u3.title), u3.sourceButton = { uuid: e3.uuid }, r3.props = u3, void 0 !== s2) {
|
|
29
|
+
const t3 = s2(e3);
|
|
29
30
|
r3.onClick = (t3 == null ? void 0 : t3.onClick) ?? t3, r3.eventName = t3 == null ? void 0 : t3.eventName;
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
+
i2.push(r3);
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function p(i2, o2, n2, s2) {
|
|
35
36
|
let r2;
|
|
36
|
-
const u2 =
|
|
37
|
+
const u2 = n2 == null ? void 0 : n2.some((n3) => {
|
|
37
38
|
let u3 = false;
|
|
38
|
-
if (
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
41
|
-
|
|
39
|
+
if (n3.scopeFunc) {
|
|
40
|
+
const t2 = e(i2, n3.scopeFunc);
|
|
41
|
+
if (t2) {
|
|
42
|
+
t2.apply(t2, [{ pageContext: i2, configureObj: o2, row: s2 }]) && (u3 = true);
|
|
42
43
|
}
|
|
43
|
-
} else if (
|
|
44
|
-
|
|
44
|
+
} else if (n3.showCondition && n3.showCondition.length > 0) {
|
|
45
|
+
t.evaluate(i2, n3.showCondition, s2) && (u3 = true);
|
|
45
46
|
} else u3 = true;
|
|
46
|
-
if (u3) return r2 =
|
|
47
|
+
if (u3) return r2 = n3, true;
|
|
47
48
|
});
|
|
48
49
|
return { show: u2, toPage: r2 };
|
|
49
50
|
}
|
|
51
|
+
function a(t2, e2) {
|
|
52
|
+
var _a;
|
|
53
|
+
const i2 = t2.tableName;
|
|
54
|
+
let o2 = "";
|
|
55
|
+
const n2 = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base;
|
|
56
|
+
if (n2 && n2.prop) {
|
|
57
|
+
const t3 = n2.prop;
|
|
58
|
+
o2 = s(t3);
|
|
59
|
+
}
|
|
60
|
+
return c(t2, i2, o2);
|
|
61
|
+
}
|
|
62
|
+
function c(t2, e2, i2) {
|
|
63
|
+
if (!i2 || !e2) return true;
|
|
64
|
+
const o2 = t2.branchFieldAuth;
|
|
65
|
+
if (o2) {
|
|
66
|
+
const t3 = o2.hasAuthFields;
|
|
67
|
+
if (t3 && t3[e2] && t3[e2].indexOf(i2) >= 0) return true;
|
|
68
|
+
const n2 = o2.allAuthFields;
|
|
69
|
+
if (n2 && n2[e2] && n2[e2].indexOf(i2) >= 0) return false;
|
|
70
|
+
}
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
50
73
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
74
|
+
p as expressJump,
|
|
75
|
+
l as getOperationButtons,
|
|
76
|
+
u as getTableNameByTableUuid,
|
|
77
|
+
a as isHasFieldAuth,
|
|
78
|
+
c as isHasFieldPermissionAuth,
|
|
79
|
+
r as popupToPage
|
|
55
80
|
};
|
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
|
};
|