super-page-runtime 2.2.92-sit10 → 2.2.92-sit4
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/events/standard-event.js +100 -101
- package/dist/es/components/runtime/utils/page-init-util.js +6 -6
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +21 -21
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +18 -18
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +15 -15
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +1 -2
- package/package.json +2 -2
|
@@ -26,17 +26,17 @@ const j = { save: function(e2) {
|
|
|
26
26
|
const t2 = e2.pageContext.code + "_";
|
|
27
27
|
C.$emit(t2 + "export-pdf-report", e2);
|
|
28
28
|
}, submit: function(e2) {
|
|
29
|
-
return
|
|
29
|
+
return K(e2, false, "submit", "/dsc/commons/submits");
|
|
30
30
|
}, submitList: function(e2) {
|
|
31
|
-
return
|
|
31
|
+
return K(e2, true, "submit", "/dsc/commons/batch-submits");
|
|
32
32
|
}, agree: function(e2) {
|
|
33
|
-
return
|
|
33
|
+
return K(e2, false, "agree", "/dsc/commons/approves");
|
|
34
34
|
}, agreeList: function(e2) {
|
|
35
|
-
return
|
|
35
|
+
return K(e2, true, "agree", "/dsc/commons/batch-approves");
|
|
36
36
|
}, disagree: function(e2) {
|
|
37
|
-
return
|
|
37
|
+
return K(e2, false, "disagree", "/dsc/commons/refuses");
|
|
38
38
|
}, disagreeList: function(e2) {
|
|
39
|
-
return
|
|
39
|
+
return K(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
40
40
|
}, back: function(e2) {
|
|
41
41
|
const t2 = e2.pageContext, s2 = t2.entity ? t2.entity.data : {}, n2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
|
|
42
42
|
J(t2, e2.configureObj, s2, n2);
|
|
@@ -126,11 +126,11 @@ const j = { save: function(e2) {
|
|
|
126
126
|
const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
127
127
|
let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons";
|
|
128
128
|
if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
129
|
-
const m2 =
|
|
129
|
+
const m2 = Z(e3);
|
|
130
130
|
let f2;
|
|
131
131
|
f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
|
|
132
132
|
let n2 = true;
|
|
133
|
-
s3 && (n2 =
|
|
133
|
+
s3 && (n2 = ee(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
134
134
|
}).catch((e4) => {
|
|
135
135
|
s2(e4);
|
|
136
136
|
});
|
|
@@ -142,29 +142,29 @@ const j = { save: function(e2) {
|
|
|
142
142
|
const i2 = e3.pageContext, a2 = i2.systemCode, r2 = i2.backendUrl;
|
|
143
143
|
let p2 = n(r2, i2.isTest) + "/dsc/workflow-commons/submit";
|
|
144
144
|
if (p2 = o(p2, a2, r2, i2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
145
|
-
const d2 =
|
|
145
|
+
const d2 = Z(e3), m2 = c.post(p2, d2);
|
|
146
146
|
m2 && m2.then((s3) => {
|
|
147
147
|
let n2 = true;
|
|
148
|
-
s3 && (n2 =
|
|
148
|
+
s3 && (n2 = ee(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
149
149
|
}).catch((e4) => {
|
|
150
150
|
s2(e4);
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}(e2);
|
|
154
154
|
}, submitTask: function(e2) {
|
|
155
|
-
return
|
|
155
|
+
return te(e2, "SUBMIT");
|
|
156
156
|
}, approve: function(e2) {
|
|
157
|
-
return
|
|
157
|
+
return te(e2, "APPROVE");
|
|
158
158
|
}, refuse: function(e2) {
|
|
159
|
-
return
|
|
159
|
+
return te(e2, "REFUSE");
|
|
160
160
|
}, readed: function(e2) {
|
|
161
|
-
return
|
|
161
|
+
return te(e2, "READED");
|
|
162
162
|
}, agreement: function(e2) {
|
|
163
|
-
return
|
|
163
|
+
return te(e2, "AGREEMENT");
|
|
164
164
|
}, oppose: function(e2) {
|
|
165
|
-
return
|
|
165
|
+
return te(e2, "OPPOSE");
|
|
166
166
|
}, kiken: function(e2) {
|
|
167
|
-
return
|
|
167
|
+
return te(e2, "KIKEN");
|
|
168
168
|
}, assign: function(e2) {
|
|
169
169
|
return function(e3) {
|
|
170
170
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
@@ -182,23 +182,23 @@ const j = { save: function(e2) {
|
|
|
182
182
|
}(e2);
|
|
183
183
|
}, drawTask: function(e2) {
|
|
184
184
|
return function(e3) {
|
|
185
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 =
|
|
186
|
-
return
|
|
185
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = Z(e3);
|
|
186
|
+
return re(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
187
187
|
}(e2);
|
|
188
188
|
}, abandonReceive: function(e2) {
|
|
189
189
|
return function(e3) {
|
|
190
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 =
|
|
191
|
-
return
|
|
190
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = Z(e3);
|
|
191
|
+
return re(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
192
192
|
}(e2);
|
|
193
193
|
}, returnToPreviousTask: function(e2) {
|
|
194
194
|
return function(e3) {
|
|
195
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 =
|
|
196
|
-
return
|
|
195
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = Z(e3);
|
|
196
|
+
return re(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
197
197
|
}(e2);
|
|
198
198
|
}, endInstance: function(e2) {
|
|
199
199
|
return function(e3) {
|
|
200
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 =
|
|
201
|
-
return
|
|
200
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 = Z(e3);
|
|
201
|
+
return re(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
202
202
|
}(e2);
|
|
203
203
|
}, returnTaskTo: function(e2) {
|
|
204
204
|
return function(e3) {
|
|
@@ -212,8 +212,8 @@ const j = { save: function(e2) {
|
|
|
212
212
|
}(e2);
|
|
213
213
|
}, retrieveTask: function(e2) {
|
|
214
214
|
return function(e3) {
|
|
215
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 =
|
|
216
|
-
return
|
|
215
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 = Z(e3);
|
|
216
|
+
return re(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
217
217
|
}(e2);
|
|
218
218
|
}, viewDetail: function(e2) {
|
|
219
219
|
}, lineEditCreate: function(e2) {
|
|
@@ -289,7 +289,7 @@ function L(e2, s2, o2, i2) {
|
|
|
289
289
|
var _a;
|
|
290
290
|
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 };
|
|
291
291
|
u2 && (C2.logSettingText = u2.join(""));
|
|
292
|
-
const y2 =
|
|
292
|
+
const y2 = oe(e2);
|
|
293
293
|
let h2;
|
|
294
294
|
C2.additionalParamMap = y2, h2 = i2 ? function(e3, t2, s3, o3) {
|
|
295
295
|
return new Promise((i3, a3) => {
|
|
@@ -350,13 +350,13 @@ function V(e2, n2, o2, i2, a2, r2, c2) {
|
|
|
350
350
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
351
351
|
const g2 = n2.props.base.conversionCodes;
|
|
352
352
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
353
|
-
const b2 =
|
|
353
|
+
const b2 = be(n2);
|
|
354
354
|
b2 && (f2.autoSetValueData = b2);
|
|
355
355
|
const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
356
356
|
C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
357
357
|
const T2 = e2.beanName;
|
|
358
358
|
T2 && (f2.beanName = T2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
|
|
359
|
-
const y2 =
|
|
359
|
+
const y2 = oe(e2);
|
|
360
360
|
return f2.additionalParamMap = y2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
361
361
|
}
|
|
362
362
|
function F(e2, t2, s2, i2, a2, r2, u2, l2) {
|
|
@@ -376,7 +376,7 @@ function q(t2, s2, n2, o2, i2) {
|
|
|
376
376
|
if (a2 && "list" === a2) !function(t3, s3, n3, o3) {
|
|
377
377
|
let i3 = s3.props.base.successOperation;
|
|
378
378
|
const a3 = s3.props.base.isNeedValueMapping, r2 = h(t3, s3);
|
|
379
|
-
i3 ||
|
|
379
|
+
i3 || (i3 = "refresh");
|
|
380
380
|
if ("refresh" === i3) {
|
|
381
381
|
if (r2) {
|
|
382
382
|
b(t3, r2).refresh();
|
|
@@ -415,7 +415,7 @@ function G(e2, t2, s2) {
|
|
|
415
415
|
const n2 = t2.props.base.successOperation;
|
|
416
416
|
if (!n2 || null === n2) return;
|
|
417
417
|
const o2 = t2.props.base.isNeedValueMapping;
|
|
418
|
-
"noOperation" === n2 ? (s2 && (e2.entity.data = s2), e2.canClick = true) : "refresh" === n2 ? s2 && (s2.id || s2.ID) ?
|
|
418
|
+
"noOperation" === n2 ? (s2 && (e2.entity.data = s2), e2.canClick = true) : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? me(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (J(e2, t2, s2, o2), e2.canClick = true);
|
|
419
419
|
}
|
|
420
420
|
function J(e2, t2, s2, n2) {
|
|
421
421
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -441,8 +441,7 @@ function Y(e2, t2, s2, n2, o2) {
|
|
|
441
441
|
}
|
|
442
442
|
}(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: i2 });
|
|
443
443
|
}
|
|
444
|
-
|
|
445
|
-
function K(e2, t2, s2, n2) {
|
|
444
|
+
function z(e2, t2, s2, n2) {
|
|
446
445
|
var _a;
|
|
447
446
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
448
447
|
let o2 = n2;
|
|
@@ -456,11 +455,11 @@ function K(e2, t2, s2, n2) {
|
|
|
456
455
|
}
|
|
457
456
|
} else if (i2 && "form" === i2) {
|
|
458
457
|
const t3 = e2.entity.data;
|
|
459
|
-
|
|
458
|
+
me(e2, t3.ID ? t3.ID : t3.id);
|
|
460
459
|
}
|
|
461
460
|
}
|
|
462
461
|
}
|
|
463
|
-
function
|
|
462
|
+
function K(e2, t2, s2, i2) {
|
|
464
463
|
return new Promise((r2, l2) => {
|
|
465
464
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
466
465
|
let T2 = false;
|
|
@@ -494,7 +493,7 @@ function Q(e2, t2, s2, i2) {
|
|
|
494
493
|
}) : l2("request不存在");
|
|
495
494
|
});
|
|
496
495
|
}
|
|
497
|
-
function
|
|
496
|
+
function Q(e2, s2) {
|
|
498
497
|
var _a;
|
|
499
498
|
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = A(i2, d2), f2 = new FormData();
|
|
500
499
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
@@ -502,7 +501,7 @@ function X(e2, s2) {
|
|
|
502
501
|
g2 && f2.append("importDuplicateRule", g2);
|
|
503
502
|
const b2 = i2.judgeHeavyList;
|
|
504
503
|
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
505
|
-
const C2 =
|
|
504
|
+
const C2 = be(a2);
|
|
506
505
|
C2 && f2.append("autoSetValueData", C2);
|
|
507
506
|
const T2 = i2.formNoRuleCode;
|
|
508
507
|
T2 && f2.append("formNoRuleCode", T2);
|
|
@@ -514,7 +513,7 @@ function X(e2, s2) {
|
|
|
514
513
|
null != w2 && f2.append("isWorkflowEntity", w2 + "");
|
|
515
514
|
const R2 = k(a2, i2);
|
|
516
515
|
R2 && f2.append("functionCode", R2);
|
|
517
|
-
const N2 =
|
|
516
|
+
const N2 = oe(i2);
|
|
518
517
|
f2.append("additionalParamMapStr", JSON.stringify(N2));
|
|
519
518
|
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
520
519
|
f2.append("isPermission", M2 + "");
|
|
@@ -531,7 +530,7 @@ function X(e2, s2) {
|
|
|
531
530
|
}).catch((e3) => {
|
|
532
531
|
});
|
|
533
532
|
}
|
|
534
|
-
function
|
|
533
|
+
function X(e2, t2) {
|
|
535
534
|
const s2 = e2.props.base;
|
|
536
535
|
if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
|
|
537
536
|
if ("one" === s2.conditionsForExecution) {
|
|
@@ -540,7 +539,7 @@ function Z(e2, t2) {
|
|
|
540
539
|
}
|
|
541
540
|
return true;
|
|
542
541
|
}
|
|
543
|
-
function
|
|
542
|
+
function Z(e2) {
|
|
544
543
|
var _a;
|
|
545
544
|
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
|
|
546
545
|
let r2 = k(n2, t2);
|
|
@@ -549,21 +548,21 @@ function ee(e2) {
|
|
|
549
548
|
t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (s(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
|
|
550
549
|
const u2 = n2.props.base.conversionCodes;
|
|
551
550
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
552
|
-
const l2 =
|
|
551
|
+
const l2 = be(n2);
|
|
553
552
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
554
553
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
555
554
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
556
|
-
const d2 =
|
|
555
|
+
const d2 = oe(t2);
|
|
557
556
|
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
557
|
const m2 = n2.props.base.successOperation;
|
|
559
558
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
560
559
|
}
|
|
561
|
-
function
|
|
560
|
+
function ee(e2, t2, s2, n2, o2) {
|
|
562
561
|
const i2 = s2.code, a2 = s2.version;
|
|
563
562
|
let r2;
|
|
564
563
|
if (e2) {
|
|
565
564
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
566
|
-
const s3 =
|
|
565
|
+
const s3 = oe(t3);
|
|
567
566
|
e3 && s3 && g(s3._t_ + "_id", e3);
|
|
568
567
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
569
568
|
const o3 = e2.completeTaskResult;
|
|
@@ -582,7 +581,7 @@ function te(e2, t2, s2, n2, o2) {
|
|
|
582
581
|
}
|
|
583
582
|
return n2 && (n2.operationResult = o2), t2 || q(s2, n2.configureObj, e2, null, false), true;
|
|
584
583
|
}
|
|
585
|
-
async function
|
|
584
|
+
async function te(e2, t2) {
|
|
586
585
|
const s2 = await function(e3) {
|
|
587
586
|
return new Promise((t3, s3) => {
|
|
588
587
|
var _a, _b, _c, _d;
|
|
@@ -607,30 +606,30 @@ async function se(e2, t2) {
|
|
|
607
606
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
608
607
|
let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
609
608
|
if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
610
|
-
const g2 =
|
|
609
|
+
const g2 = Z(e2);
|
|
611
610
|
g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
612
611
|
c.post(f2, g2).then((s3) => {
|
|
613
612
|
let n2 = true;
|
|
614
|
-
s3 && (n2 =
|
|
613
|
+
s3 && (n2 = ee(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
|
|
615
614
|
}).catch((e3) => {
|
|
616
615
|
a2(e3);
|
|
617
616
|
});
|
|
618
617
|
} else i2(true);
|
|
619
618
|
});
|
|
620
619
|
}
|
|
621
|
-
function
|
|
620
|
+
function se(e2, t2) {
|
|
622
621
|
if (t2) {
|
|
623
|
-
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 =
|
|
624
|
-
c2.assigneeId = r2,
|
|
622
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = Z(e2);
|
|
623
|
+
c2.assigneeId = r2, re(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
625
624
|
P(s2, o2);
|
|
626
625
|
});
|
|
627
626
|
}
|
|
628
627
|
}
|
|
629
|
-
function
|
|
630
|
-
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 =
|
|
628
|
+
function ne(e2) {
|
|
629
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 = oe(t2), a2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: a2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
631
630
|
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
|
|
632
631
|
}
|
|
633
|
-
function
|
|
632
|
+
function oe(t2) {
|
|
634
633
|
if (t2.entity) {
|
|
635
634
|
let s2 = e(t2.entity.page);
|
|
636
635
|
s2 || (s2 = {});
|
|
@@ -638,12 +637,12 @@ function ie(t2) {
|
|
|
638
637
|
return n2 && Object.assign(s2, n2), s2;
|
|
639
638
|
}
|
|
640
639
|
}
|
|
641
|
-
function
|
|
640
|
+
function ie(e2, t2) {
|
|
642
641
|
if (t2) {
|
|
643
642
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
644
643
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
645
644
|
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
646
|
-
const d2 =
|
|
645
|
+
const d2 = ne(e2);
|
|
647
646
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
648
647
|
const m2 = c.post(p2, d2);
|
|
649
648
|
m2 && m2.then((e3) => {
|
|
@@ -651,7 +650,7 @@ function ae(e2, t2) {
|
|
|
651
650
|
});
|
|
652
651
|
}
|
|
653
652
|
}
|
|
654
|
-
async function
|
|
653
|
+
async function ae(e2, t2) {
|
|
655
654
|
if (t2) {
|
|
656
655
|
const s2 = await function(e3) {
|
|
657
656
|
return new Promise((t3, s3) => {
|
|
@@ -675,7 +674,7 @@ async function re(e2, t2) {
|
|
|
675
674
|
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
676
675
|
let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons/copies";
|
|
677
676
|
if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
678
|
-
const m2 =
|
|
677
|
+
const m2 = ne(e2);
|
|
679
678
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
680
679
|
const f2 = c.post(d2, m2);
|
|
681
680
|
f2 && f2.then((e3) => {
|
|
@@ -684,45 +683,45 @@ async function re(e2, t2) {
|
|
|
684
683
|
}
|
|
685
684
|
}
|
|
686
685
|
}
|
|
687
|
-
function
|
|
686
|
+
function re(e2, t2, s2, n2) {
|
|
688
687
|
return new Promise((i2, a2) => {
|
|
689
688
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
|
|
690
689
|
if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
691
690
|
const m2 = c.post(s2, t2);
|
|
692
691
|
m2 && m2.then((t3) => {
|
|
693
692
|
let s3 = true;
|
|
694
|
-
t3 && (s3 =
|
|
693
|
+
t3 && (s3 = ee(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
|
|
695
694
|
}).catch((e3) => {
|
|
696
695
|
a2(e3);
|
|
697
696
|
});
|
|
698
697
|
});
|
|
699
698
|
}
|
|
700
|
-
function
|
|
699
|
+
function ce(e2) {
|
|
701
700
|
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl, a2 = t2.completeTaskParam;
|
|
702
701
|
let r2 = n(i2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
|
|
703
702
|
if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
704
|
-
const p2 = t2.code, d2 =
|
|
703
|
+
const p2 = t2.code, d2 = oe(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
705
704
|
return c.post(r2, m2);
|
|
706
705
|
}
|
|
707
|
-
function
|
|
708
|
-
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 =
|
|
709
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId),
|
|
706
|
+
function ue(e2, t2) {
|
|
707
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = Z(e2);
|
|
708
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), re(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
710
709
|
P(s2, o2);
|
|
711
710
|
});
|
|
712
711
|
}
|
|
713
|
-
function
|
|
712
|
+
function le(e2) {
|
|
714
713
|
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl;
|
|
715
714
|
let a2 = n(i2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
716
|
-
const r2 =
|
|
715
|
+
const r2 = Z(e2);
|
|
717
716
|
if (a2 = o(a2, s2, i2, t2.isTest), a2) return c.post(a2, r2);
|
|
718
717
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
719
718
|
}
|
|
720
|
-
function
|
|
719
|
+
function pe(e2, t2) {
|
|
721
720
|
if (t2) {
|
|
722
721
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
723
722
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
724
723
|
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
725
|
-
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 =
|
|
724
|
+
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = Z(e2);
|
|
726
725
|
m2.ids = d2;
|
|
727
726
|
const f2 = c.post(p2, m2);
|
|
728
727
|
f2 && f2.then((e3) => {
|
|
@@ -730,7 +729,7 @@ function de(e2, t2) {
|
|
|
730
729
|
});
|
|
731
730
|
}
|
|
732
731
|
}
|
|
733
|
-
function
|
|
732
|
+
function de(e2, t2, s2) {
|
|
734
733
|
let n2 = false;
|
|
735
734
|
return e2 && t2 && ("workflowSave" === e2 ? n2 = function(e3) {
|
|
736
735
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
@@ -792,18 +791,18 @@ function me(e2, t2, s2) {
|
|
|
792
791
|
return false;
|
|
793
792
|
}(t2))), n2;
|
|
794
793
|
}
|
|
795
|
-
function
|
|
796
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
794
|
+
function me(e2, t2) {
|
|
795
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, fe(e2, t2).then((t3) => {
|
|
797
796
|
e2.isRefresh = true;
|
|
798
797
|
});
|
|
799
798
|
}
|
|
800
|
-
function
|
|
799
|
+
function fe(e2, s2, o2) {
|
|
801
800
|
const i2 = e2.pageType;
|
|
802
801
|
if (i2 && "form" === i2) {
|
|
803
802
|
e2.canClick = false;
|
|
804
803
|
return t(e2) ? function(e3, t2, s3) {
|
|
805
804
|
return new Promise((o3, i3) => {
|
|
806
|
-
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
805
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = oe(e3);
|
|
807
806
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
808
807
|
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
808
|
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 };
|
|
@@ -814,10 +813,10 @@ function ge(e2, s2, o2) {
|
|
|
814
813
|
t3[s4] = s4;
|
|
815
814
|
}), C2.listCodesMap = t3;
|
|
816
815
|
}
|
|
817
|
-
f2 && (C2.ids =
|
|
816
|
+
f2 && (C2.ids = ge(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
|
|
818
817
|
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = _();
|
|
819
818
|
h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
|
|
820
|
-
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap,
|
|
819
|
+
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, ee(t3, true, e3), e3.workflowRules = O(e3);
|
|
821
820
|
const s4 = e3.pageType;
|
|
822
821
|
s4 && "form" === s4 && function(e4) {
|
|
823
822
|
(function(e5) {
|
|
@@ -856,11 +855,11 @@ function ge(e2, s2, o2) {
|
|
|
856
855
|
});
|
|
857
856
|
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
858
857
|
return new Promise((o3, i3) => {
|
|
859
|
-
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
858
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = oe(e3);
|
|
860
859
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
861
860
|
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
861
|
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 =
|
|
862
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = ge(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
863
|
const t3 = {};
|
|
865
864
|
e3.tableUuids.forEach((e4) => {
|
|
866
865
|
const s4 = r(u2, l2, e4);
|
|
@@ -883,10 +882,10 @@ function ge(e2, s2, o2) {
|
|
|
883
882
|
e3(true);
|
|
884
883
|
});
|
|
885
884
|
}
|
|
886
|
-
function
|
|
885
|
+
function ge(e2) {
|
|
887
886
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
888
887
|
}
|
|
889
|
-
function
|
|
888
|
+
function be(e2) {
|
|
890
889
|
const t2 = e2.props.setValueList;
|
|
891
890
|
if (t2) {
|
|
892
891
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -894,41 +893,41 @@ function Ce(e2) {
|
|
|
894
893
|
}
|
|
895
894
|
return null;
|
|
896
895
|
}
|
|
897
|
-
function
|
|
896
|
+
function Ce(e2, t2) {
|
|
898
897
|
const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, i2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
899
898
|
return c.post(i2, o2);
|
|
900
899
|
}
|
|
901
|
-
function
|
|
900
|
+
function Te(e2) {
|
|
902
901
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
903
902
|
return c.get(s2);
|
|
904
903
|
}
|
|
905
|
-
function
|
|
904
|
+
function ye(e2) {
|
|
906
905
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
907
906
|
return c.delete(t2);
|
|
908
907
|
}
|
|
909
908
|
export {
|
|
910
909
|
q as dealAfterOperate,
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
910
|
+
ee as dealCompleteTaskParam,
|
|
911
|
+
ye as deleteChartCondition,
|
|
912
|
+
ie as doAddSigner,
|
|
913
|
+
se as doAssign,
|
|
914
|
+
ae as doCreateCopyTask,
|
|
915
|
+
Q as doImportFinally,
|
|
916
|
+
pe as doRemoveSigners,
|
|
917
|
+
ue as doReturnTaskTo,
|
|
919
918
|
L as exportFormReport,
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
919
|
+
oe as getAdditionalParamMap,
|
|
920
|
+
fe as getFormData,
|
|
921
|
+
le as getRemoveSigner,
|
|
923
922
|
$ as getSaveFormRequest,
|
|
924
923
|
F as getSaveFormRequestWithRow,
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
924
|
+
ce as getTaskInformitions,
|
|
925
|
+
de as isVisibleWorkflowButton,
|
|
926
|
+
X as judgeDataNumber,
|
|
927
|
+
Te as listChartConditions,
|
|
928
|
+
z as refreshFormOrListPage,
|
|
929
|
+
me as refreshPage,
|
|
930
|
+
Ce as saveChartConditionBase,
|
|
932
931
|
j as standardEvents,
|
|
933
932
|
Y as updateValuesWhenCloseDialog
|
|
934
933
|
};
|
|
@@ -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,
|
|
4
|
+
import { getFormPropName as i, getValueFromVariable 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";
|
|
@@ -84,11 +84,11 @@ function E(e2, t2) {
|
|
|
84
84
|
function w(e2, t2, s2) {
|
|
85
85
|
const i2 = E(t2, s2), r2 = e2.entity;
|
|
86
86
|
if (null == r2.data.ID && null == r2.data.id) {
|
|
87
|
-
let
|
|
88
|
-
t2 && (
|
|
89
|
-
const
|
|
90
|
-
if (null ==
|
|
91
|
-
const t3 = P(e2,
|
|
87
|
+
let l2, a2, p2 = false;
|
|
88
|
+
t2 && (l2 = t2.props.base ? t2.props.base : {}, a2 = t2.name, p2 = l2.multiple);
|
|
89
|
+
const u2 = n(r2, s2, null);
|
|
90
|
+
if (null == u2) {
|
|
91
|
+
const t3 = P(e2, l2 ? l2.defaultValue : null, a2, p2);
|
|
92
92
|
null != t3 && o(r2, i2, t3);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, resolveComponent as u, createBlock as i, openBlock as a, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as c, createElementBlock as g, Fragment as f, createTextVNode as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, resolveComponent as u, createBlock as i, openBlock as a, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as c, createElementBlock as g, Fragment as f, createTextVNode as m, toDisplayString as d, createVNode as v, renderList as y } from "vue";
|
|
2
2
|
import { ArrowDown as b } from "@element-plus/icons-vue";
|
|
3
3
|
import { formatVariableValue as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as k, handleEvent as x, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
|
|
@@ -33,7 +33,7 @@ const z = { key: 1 }, h = e({ __name: "dropdown-runtime", props: { pageContext:
|
|
|
33
33
|
});
|
|
34
34
|
}), (e3, t2) => {
|
|
35
35
|
const l2 = u("el-button"), n2 = u("el-icon"), o2 = u("el-text"), C2 = u("el-dropdown-item"), k2 = u("el-dropdown-menu"), _2 = u("el-dropdown");
|
|
36
|
-
return a(), i(_2, { ref_key: "componentRef", ref: V, class: p(s(A)), style: r(s(T)), placement: B.value.placement, "split-button": B.value.splitButton, disabled: "disabled" === B.value.state, type: B.value.buttonType, size: B.value.size, trigger: B.value.trigger, onVisibleChange: S }, { dropdown: c(() => [v(k2, null, { default: c(() => [(a(true), g(f, null, y(s(O), (t3, l3) => (a(), i(C2, { key: t3, onClick: (l4) => s(x)(l4, e3.pageContext, e3.configure, "
|
|
36
|
+
return a(), i(_2, { ref_key: "componentRef", ref: V, class: p(s(A)), style: r(s(T)), placement: B.value.placement, "split-button": B.value.splitButton, disabled: "disabled" === B.value.state, type: B.value.buttonType, size: B.value.size, trigger: B.value.trigger, onVisibleChange: S }, { dropdown: c(() => [v(k2, null, { default: c(() => [(a(true), g(f, null, y(s(O), (t3, l3) => (a(), i(C2, { key: t3, onClick: (l4) => s(x)(l4, e3.pageContext, e3.configure, "menuClick", { menuItem: t3 }) }, { default: c(() => [m(d(s(w)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: c(() => ["button" === B.value.triggerElement ? (a(), g(f, { key: 0 }, [B.value.splitButton ? (a(), g("span", z, d(B.value.title), 1)) : (a(), i(l2, { key: 0, size: B.value.size, type: B.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => s(x)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: c(() => [m(d(s(w)(B.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), i(o2, { key: 1 }, { default: c(() => [m(d(s(w)(B.value.title)) + " ", 1), v(n2, null, { default: c(() => [v(s(b))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
|
|
37
37
|
};
|
|
38
38
|
} });
|
|
39
39
|
export {
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -3,36 +3,36 @@ import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable
|
|
|
3
3
|
import { getChartDatasFromPage as x, updateChartDatasources as v, monitorFieldChange as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as I } from "../../../../utils/charts/chart-columnline-util.js";
|
|
5
5
|
import { doClickJumpPageEvent as k } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import
|
|
7
|
-
import { use as
|
|
8
|
-
import { CanvasRenderer as
|
|
6
|
+
import R from "../common/common-chart-header.vue.js";
|
|
7
|
+
import { use as j } from "echarts/core";
|
|
8
|
+
import { CanvasRenderer as y } from "echarts/renderers";
|
|
9
9
|
import { LineChart as D, BarChart as V } from "echarts/charts";
|
|
10
10
|
import { GridComponent as P, LegendComponent as b, TitleComponent as _, TooltipComponent as w, ToolboxComponent as T, DataZoomComponent as E } from "echarts/components";
|
|
11
11
|
import O from "vue-echarts";
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
const G =
|
|
12
|
+
const H = e({ __name: "column-line-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
13
|
+
j([y, D, P, b, _, w, V, T, E]);
|
|
14
|
+
const N = e2, S = r(null), U = r(), z = r(null), F = N.configure.props ? N.configure.props.enableDrill : null, q = N.configure.props ? N.configure.props.drillEndTrigger : null, A = N.configure.props ? N.configure.props.linkPage : null, B = {};
|
|
15
|
+
if (N.configure.items) for (const e3 of N.configure.items) e3.props && e3.props.linkPage && e3.props.linkPage.jumpPageUrl ? B[e3.uuid] = e3 : A && A.jumpPageUrl && (B[e3.uuid] = N.configure);
|
|
16
|
+
const G = N.configure.runtime ? N.configure.runtime : {}, J = G.style, K = G.class, L = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = G.chartOption, W = N.configure.props ? N.configure.props : {}, X = f(W.customTheme);
|
|
17
17
|
function Y(e3) {
|
|
18
|
-
"clearDrill" ==
|
|
18
|
+
"clearDrill" == q ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" === q && Z(e3);
|
|
19
19
|
}
|
|
20
20
|
function Z(e3) {
|
|
21
21
|
if (e3.seriesIndex >= Q.series.length) return;
|
|
22
22
|
const r2 = Q.series[e3.seriesIndex].uuid, o2 = B[r2];
|
|
23
23
|
if (!o2) return;
|
|
24
24
|
const t2 = { data: e3.data, dataIndex: e3.dataIndex, name: e3.name, seriesId: e3.seriesId, seriesIndex: e3.seriesIndex, seriesName: e3.seriesName, seriesType: e3.seriesType, value: e3.value };
|
|
25
|
-
k(
|
|
25
|
+
k(N.pageContext, o2, t2);
|
|
26
26
|
}
|
|
27
|
-
g(
|
|
28
|
-
const e3 = x(
|
|
29
|
-
e3 && oe(e3),
|
|
30
|
-
|
|
31
|
-
}), !
|
|
27
|
+
g(N.configure, Q), o(() => {
|
|
28
|
+
const e3 = x(N.pageContext, N.configure);
|
|
29
|
+
e3 && oe(e3), U.value && (F || Object.keys(B).length > 0) && U.value.chart.on("click", function(e4) {
|
|
30
|
+
F ? z.value && z.value.drill && z.value.drill(e4, N.configure.cacheDatas) : Z(e4);
|
|
31
|
+
}), !F && N.configure.clickSet && U.value && m(N.pageContext, N.configure, U.value.chart);
|
|
32
32
|
});
|
|
33
33
|
let $ = M.groupValue;
|
|
34
34
|
function ee(e3) {
|
|
35
|
-
L && (true !== e3 && (L.autoRefresh = true), v(
|
|
35
|
+
L && (true !== e3 && (L.autoRefresh = true), v(N.pageContext, [L], M.drillParams));
|
|
36
36
|
}
|
|
37
37
|
t(M, () => {
|
|
38
38
|
$ != M.groupValue && ($ = M.groupValue, L && (L.services[0].groupValue = M.groupValue), ee(false));
|
|
@@ -40,14 +40,14 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
40
40
|
const re = M.monitorFields;
|
|
41
41
|
function oe(e3) {
|
|
42
42
|
var _a;
|
|
43
|
-
e3 || (e3 = []),
|
|
43
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && F || h(N.pageContext, N.configure, (_a = U.value) == null ? void 0 : _a.chart), L.autoRefresh = false, I(N.pageContext, N.configure, Q, e3));
|
|
44
44
|
}
|
|
45
|
-
return C(
|
|
45
|
+
return C(N.pageContext, re, () => {
|
|
46
46
|
ee(true);
|
|
47
|
-
}),
|
|
48
|
-
return d(
|
|
49
|
-
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref:
|
|
47
|
+
}), H2({ updateChartDatas: oe, exportChart: function() {
|
|
48
|
+
return d(U.value);
|
|
49
|
+
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: S }, [l(c(R, { ref_key: "headerRef", ref: z, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(O), { ref_key: "chartRef", ref: U, theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
50
50
|
} });
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
H as default
|
|
53
53
|
};
|
|
@@ -2,33 +2,33 @@ import { defineComponent as e, ref as r, onMounted as t, watch as o, createEleme
|
|
|
2
2
|
import { getCustomTheme as m, initChartOption as g, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as l, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-gauge-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { use as
|
|
7
|
-
import { CanvasRenderer as
|
|
5
|
+
import v from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as R } from "echarts/core";
|
|
7
|
+
import { CanvasRenderer as y } from "echarts/renderers";
|
|
8
8
|
import { GaugeChart as V } from "echarts/charts";
|
|
9
9
|
import { GridComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I } from "echarts/components";
|
|
10
10
|
import k from "vue-echarts";
|
|
11
11
|
const b = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: b2 }) {
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
g(
|
|
15
|
-
const e3 = l(
|
|
12
|
+
R([y, V, _, j, w, I]);
|
|
13
|
+
const H = e2, z = r(null), D = r(null), F = r(null), O = H.configure.runtime ? H.configure.runtime : {}, P = O.style, S = O.class, T = O.dataConfig, q = O.headerInfo ? O.headerInfo : {}, A = O.chartOption, B = H.configure.props ? H.configure.props : {}, E = m(B.customTheme);
|
|
14
|
+
g(H.configure, A), t(() => {
|
|
15
|
+
const e3 = l(H.pageContext, H.configure);
|
|
16
16
|
e3 && L(e3);
|
|
17
17
|
});
|
|
18
|
-
let G =
|
|
18
|
+
let G = q.groupValue;
|
|
19
19
|
function J() {
|
|
20
|
-
|
|
20
|
+
T && d(H.pageContext, [T], q.drillParams);
|
|
21
21
|
}
|
|
22
|
-
o(
|
|
23
|
-
G !=
|
|
22
|
+
o(q, () => {
|
|
23
|
+
G != q.groupValue && (G = q.groupValue, T && (T.services[0].groupValue = q.groupValue), J());
|
|
24
24
|
});
|
|
25
|
-
const K =
|
|
25
|
+
const K = q.monitorFields;
|
|
26
26
|
function L(e3) {
|
|
27
|
-
e3 || (e3 = []),
|
|
27
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(H.pageContext, H.configure, A, e3));
|
|
28
28
|
}
|
|
29
|
-
return x(
|
|
30
|
-
return h(
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style: i(s(
|
|
29
|
+
return x(H.pageContext, K, J), b2({ updateChartDatas: L, exportChart: function() {
|
|
30
|
+
return h(D.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: i(s(P)), class: u([s(S), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: z }, [p(c(v, { ref_key: "headerRef", ref: F, headerInfo: s(q), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, s(q).showHeader || e3.pageContext.showHomepageSearch]]), c(s(k), { ref_key: "chartRef", ref: D, theme: s(E), option: s(A), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
34
|
b as default
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as u, normalizeStyle as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as u, normalizeStyle as l, unref as i, withDirectives as c, createVNode as p, vShow as s } from "vue";
|
|
2
2
|
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as h, clearChartSelected as m, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { updateChartOption as v } from "../../../../utils/charts/chart-pie-util.js";
|
|
4
4
|
import { doClickJumpPageEvent as x } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import { getChartDatasFromPage as C, updateChartDatasources as R, monitorFieldChange as j } from "../../../../utils/page-helper-util.js";
|
|
6
6
|
import k from "../common/common-chart-header.vue.js";
|
|
7
|
-
import { use as
|
|
8
|
-
import { CanvasRenderer as
|
|
9
|
-
import { PieChart as
|
|
7
|
+
import { use as D } from "echarts/core";
|
|
8
|
+
import { CanvasRenderer as V } from "echarts/renderers";
|
|
9
|
+
import { PieChart as y } from "echarts/charts";
|
|
10
10
|
import { GridComponent as _, LegendComponent as b, TitleComponent as w, TooltipComponent as I, ToolboxComponent as P } from "echarts/components";
|
|
11
11
|
import E from "vue-echarts";
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
12
|
+
const H = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
13
|
+
D([V, y, _, b, w, I, P]);
|
|
14
|
+
const S = e2, T = r(null), U = r(null), z = r(null), F = S.configure.props ? S.configure.props.enableDrill : null, O = S.configure.props ? S.configure.props.drillEndTrigger : null, q = S.configure.props ? S.configure.props.linkPage : null, A = S.configure.runtime ? S.configure.runtime : {}, B = A.style, G = A.class, J = A.dataConfig, K = A.headerInfo ? A.headerInfo : {}, L = A.chartOption, M = S.configure.props ? S.configure.props : {}, N = f(M.customTheme);
|
|
15
15
|
function Q(e3) {
|
|
16
|
-
"clearDrill" ==
|
|
16
|
+
"clearDrill" == O ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" == O && W();
|
|
17
17
|
}
|
|
18
18
|
function W() {
|
|
19
|
-
|
|
19
|
+
q && q.jumpPageUrl && x(S.pageContext, S.configure, void 0);
|
|
20
20
|
}
|
|
21
|
-
g(
|
|
22
|
-
const e3 = C(
|
|
23
|
-
e3 && $(e3),
|
|
24
|
-
|
|
25
|
-
}), !
|
|
21
|
+
g(S.configure, L), o(() => {
|
|
22
|
+
const e3 = C(S.pageContext, S.configure);
|
|
23
|
+
e3 && $(e3), U.value && (F || q && q.jumpPageUrl) && U.value.chart.on("click", function(e4) {
|
|
24
|
+
F ? z.value && z.value.drill && z.value.drill(e4, S.configure.cacheDatas) : W();
|
|
25
|
+
}), !F && S.configure.clickSet && U.value && h(S.pageContext, S.configure, U.value.chart);
|
|
26
26
|
});
|
|
27
27
|
let X = K.groupValue;
|
|
28
28
|
function Y(e3) {
|
|
29
|
-
J && (true !== e3 && (J.autoRefresh = true), R(
|
|
29
|
+
J && (true !== e3 && (J.autoRefresh = true), R(S.pageContext, [J], K.drillParams));
|
|
30
30
|
}
|
|
31
31
|
t(K, () => {
|
|
32
32
|
X != K.groupValue && (X = K.groupValue, J && (J.services[0].groupValue = K.groupValue), Y(false));
|
|
33
33
|
});
|
|
34
34
|
const Z = K.monitorFields;
|
|
35
35
|
function $(e3) {
|
|
36
|
-
e3 || (e3 = []),
|
|
36
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, J.autoRefresh || (X = e3.groupValue, X && "checkbox" !== K.groupComponent && (X = X.join(",")), K.groupValue = X), J.autoRefresh && F || m(S.pageContext, S.configure, U.value.chart), J.autoRefresh = false, v(S.pageContext, S.configure, L, e3));
|
|
37
37
|
}
|
|
38
|
-
return j(
|
|
38
|
+
return j(S.pageContext, Z, () => {
|
|
39
39
|
Y(true);
|
|
40
|
-
}),
|
|
41
|
-
return d(
|
|
42
|
-
} }), (e3, r2) => (a(), n("div", { style: i(
|
|
40
|
+
}), H2({ updateChartDatas: $, exportChart: function() {
|
|
41
|
+
return d(U.value);
|
|
42
|
+
} }), (e3, r2) => (a(), n("div", { style: l(i(B)), class: u([i(G), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: T }, [c(p(k, { ref_key: "headerRef", ref: z, headerInfo: i(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q }, null, 8, ["headerInfo", "configure", "pageContext"]), [[s, i(K).showHeader || e3.pageContext.showHomepageSearch]]), p(i(E), { ref_key: "chartRef", ref: U, theme: i(N), option: i(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
H as default
|
|
46
46
|
};
|
|
@@ -2,34 +2,34 @@ import { defineComponent as e, ref as r, onMounted as t, watch as o, createEleme
|
|
|
2
2
|
import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-radar-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { use as
|
|
7
|
-
import { CanvasRenderer as
|
|
5
|
+
import v from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as R } from "echarts/core";
|
|
7
|
+
import { CanvasRenderer as y } from "echarts/renderers";
|
|
8
8
|
import { RadarChart as V } from "echarts/charts";
|
|
9
9
|
import { GridComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I, LegendComponent as k } from "echarts/components";
|
|
10
10
|
import b from "vue-echarts";
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
h(
|
|
15
|
-
const e3 = g(
|
|
11
|
+
const H = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
12
|
+
R([y, V, _, j, w, I, k]);
|
|
13
|
+
const z = e2, D = r(null), F = r(null), O = r(null), P = z.configure.runtime ? z.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, A = P.headerInfo ? P.headerInfo : {}, B = P.chartOption, E = z.configure.props ? z.configure.props : {}, G = m(E.customTheme);
|
|
14
|
+
h(z.configure, B), t(() => {
|
|
15
|
+
const e3 = g(z.pageContext, z.configure);
|
|
16
16
|
e3 && M(e3);
|
|
17
17
|
});
|
|
18
|
-
let J =
|
|
18
|
+
let J = A.groupValue;
|
|
19
19
|
function K() {
|
|
20
|
-
|
|
20
|
+
q && d(z.pageContext, [q], A.drillParams);
|
|
21
21
|
}
|
|
22
|
-
o(
|
|
23
|
-
J !=
|
|
22
|
+
o(A, () => {
|
|
23
|
+
J != A.groupValue && (J = A.groupValue, q && (q.services[0].groupValue = A.groupValue), K());
|
|
24
24
|
});
|
|
25
|
-
const L =
|
|
25
|
+
const L = A.monitorFields;
|
|
26
26
|
function M(e3) {
|
|
27
|
-
e3 || (e3 = []),
|
|
27
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(z.pageContext, z.configure, B, e3));
|
|
28
28
|
}
|
|
29
|
-
return x(
|
|
30
|
-
return l(
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style: i(s(
|
|
29
|
+
return x(z.pageContext, L, K), H2({ updateChartDatas: M, exportChart: function() {
|
|
30
|
+
return l(F.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: i(s(S)), class: u([s(T), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: D }, [p(c(v, { ref_key: "headerRef", ref: O, headerInfo: s(A), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, s(A).showHeader || e3.pageContext.showHomepageSearch]]), c(s(b), { ref_key: "chartRef", ref: F, theme: s(G), option: s(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
H as default
|
|
35
35
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as s, unref as i, withDirectives as c, createVNode as p, vShow as f } from "vue";
|
|
2
2
|
import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-scatter-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { use as
|
|
7
|
-
import { CanvasRenderer as
|
|
5
|
+
import v from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as R } from "echarts/core";
|
|
7
|
+
import { CanvasRenderer as y } from "echarts/renderers";
|
|
8
8
|
import { ScatterChart as V } from "echarts/charts";
|
|
9
9
|
import { GridComponent as _, LegendComponent as j, TitleComponent as w, TooltipComponent as I, ToolboxComponent as k, DataZoomComponent as b } from "echarts/components";
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
h(
|
|
15
|
-
const e3 = g(
|
|
10
|
+
import H from "vue-echarts";
|
|
11
|
+
const z = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
|
|
12
|
+
R([y, V, _, j, w, I, k, b]);
|
|
13
|
+
const D = e2, F = r(null), O = r(null), P = r(null), S = D.configure.runtime ? D.configure.runtime : {}, T = S.style, q = S.class, A = S.dataConfig, B = S.headerInfo ? S.headerInfo : {}, E = S.chartOption, G = D.configure.props ? D.configure.props : {}, J = m(G.customTheme);
|
|
14
|
+
h(D.configure, E), t(() => {
|
|
15
|
+
const e3 = g(D.pageContext, D.configure);
|
|
16
16
|
e3 && N(e3);
|
|
17
17
|
});
|
|
18
18
|
let K = B.groupValue;
|
|
19
19
|
function L() {
|
|
20
|
-
|
|
20
|
+
A && d(D.pageContext, [A], B.drillParams);
|
|
21
21
|
}
|
|
22
22
|
o(B, () => {
|
|
23
|
-
K != B.groupValue && (K = B.groupValue,
|
|
23
|
+
K != B.groupValue && (K = B.groupValue, A && (A.services[0].groupValue = B.groupValue), L());
|
|
24
24
|
});
|
|
25
25
|
const M = B.monitorFields;
|
|
26
26
|
function N(e3) {
|
|
27
|
-
e3 || (e3 = []),
|
|
27
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(D.pageContext, D.configure, E, e3));
|
|
28
28
|
}
|
|
29
|
-
return x(
|
|
30
|
-
return l(
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style:
|
|
29
|
+
return x(D.pageContext, M, L), z2({ updateChartDatas: N, exportChart: function() {
|
|
30
|
+
return l(O.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: s(i(T)), class: u([i(q), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: F }, [c(p(v, { ref_key: "headerRef", ref: P, headerInfo: i(B), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(B).showHeader || e3.pageContext.showHomepageSearch]]), p(i(H), { ref_key: "chartRef", ref: O, theme: i(J), option: i(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
z as default
|
|
35
35
|
};
|
|
@@ -5,7 +5,7 @@ import { getCustomFunc as $ } from "../../../../utils/events/event-util.js";
|
|
|
5
5
|
import F from "./group-column.vue.js";
|
|
6
6
|
import k from "./normal-column.vue.js";
|
|
7
7
|
import I from "./table-pageination.vue.js";
|
|
8
|
-
import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as _, computeFormula as z, getNewColumnConfig as
|
|
8
|
+
import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as _, computeFormula as z, getNewColumnConfig as D, summaryStatistics as J, replacePlaceholders as P, getIndexColumn as U, getHeaderCellStyleUtil as V, getRowStyleUtil as G, getCellStyleUtil as K, formatColContent as A } from "./chart-table-util.js";
|
|
9
9
|
import { deepCopy as L } from "../../../../utils/common-util.js";
|
|
10
10
|
const q = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: q2 }) {
|
|
11
11
|
var _a;
|
|
@@ -19,7 +19,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
19
19
|
}), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), re.value = e3, function() {
|
|
20
20
|
if (B.configure.props.base.showIndex) {
|
|
21
21
|
re.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
|
|
22
|
-
const e4 =
|
|
22
|
+
const e4 = U();
|
|
23
23
|
e4 && (te.value.$index = e4);
|
|
24
24
|
}
|
|
25
25
|
}();
|
|
@@ -31,7 +31,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
31
31
|
ie.value = B.configure.props.base.showSummary, (ie.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ae.value = N(B.configure), ie.value && (ue.value = R(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = R(B.configure, "group")));
|
|
32
32
|
let de = 300, he = b(B.pageContext, B.configure);
|
|
33
33
|
function ve(e3) {
|
|
34
|
-
e3 || (e3 = []),
|
|
34
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
|
|
35
35
|
var _a2;
|
|
36
36
|
Ne(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? me = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (me = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
|
|
37
37
|
if (me) if (((_a2 = B.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && B.configure.props.dataOrigin.itemNumSource) {
|
|
@@ -78,9 +78,9 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
78
78
|
const r2 = B.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = B.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
|
|
79
79
|
if ((!i2 || 0 === i2.length) && n2.length > 0) {
|
|
80
80
|
const e5 = [];
|
|
81
|
-
return e5.push(
|
|
81
|
+
return e5.push(D("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
|
|
82
82
|
if ("$GroupColumn" === o5) return;
|
|
83
|
-
const r3 =
|
|
83
|
+
const r3 = D(o5, o5, n3 + 1, "string");
|
|
84
84
|
e5.push(r3);
|
|
85
85
|
}), e5;
|
|
86
86
|
}
|
|
@@ -96,7 +96,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
96
96
|
}), a2.forEach((o5) => {
|
|
97
97
|
t2.forEach((r3) => {
|
|
98
98
|
var _a3;
|
|
99
|
-
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 =
|
|
99
|
+
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = D(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
|
|
100
100
|
e5.push(i4);
|
|
101
101
|
});
|
|
102
102
|
}), e5;
|
|
@@ -128,11 +128,11 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
128
128
|
for (let e6 = 0; e6 < a2.length; e6++) {
|
|
129
129
|
const o4 = a2[e6], i3 = {};
|
|
130
130
|
t2 == null ? void 0 : t2.forEach((e7) => {
|
|
131
|
-
const n3 = e7.props.base.prop, r3 =
|
|
131
|
+
const n3 = e7.props.base.prop, r3 = J(pe.value[n3], o4, n3, B.pageContext);
|
|
132
132
|
i3[n3] = r3;
|
|
133
133
|
}), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
|
|
134
134
|
const n3 = e7.props.base.prop;
|
|
135
|
-
i3[n3] =
|
|
135
|
+
i3[n3] = P(e7.props.base.summaryTitle, o4[0]);
|
|
136
136
|
}), n2.push(i3), le.push(n2.length - 1);
|
|
137
137
|
}
|
|
138
138
|
return n2;
|
|
@@ -140,7 +140,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
140
140
|
}
|
|
141
141
|
!function(e4) {
|
|
142
142
|
if (B.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
|
|
143
|
-
const o3 =
|
|
143
|
+
const o3 = U();
|
|
144
144
|
o3 && e4.unshift(o3);
|
|
145
145
|
}
|
|
146
146
|
}(ne.value);
|
|
@@ -150,14 +150,14 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
150
150
|
}
|
|
151
151
|
function xe(e3) {
|
|
152
152
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].titleStyle : null, n2 = Q == null ? void 0 : Q.titleStyle;
|
|
153
|
-
return
|
|
153
|
+
return V(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
|
|
154
154
|
}
|
|
155
155
|
function Oe(e3) {
|
|
156
|
-
return
|
|
156
|
+
return G(e3, le, B);
|
|
157
157
|
}
|
|
158
158
|
function Se(e3) {
|
|
159
159
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
|
|
160
|
-
return
|
|
160
|
+
return K(e3, o2, B);
|
|
161
161
|
}
|
|
162
162
|
he && he.fixHeight && (de = he.fixHeight), he && he.maxHeight && (de = he.maxHeight), de && (de = Number(de + "")), n(() => {
|
|
163
163
|
const e3 = x(B.pageContext, B.configure);
|
|
@@ -178,10 +178,10 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
178
178
|
return o2.forEach((e4, o3) => {
|
|
179
179
|
if (ae.value[e4.property]) {
|
|
180
180
|
const t2 = ae.value[e4.property].label;
|
|
181
|
-
r2[o3] = y("div", {}, [
|
|
181
|
+
r2[o3] = y("div", {}, [P(t2, n2)]);
|
|
182
182
|
} else if (ue.value[e4.property]) {
|
|
183
183
|
const t2 = n2.filter((e5, o4) => !le.includes(o4));
|
|
184
|
-
r2[o3] =
|
|
184
|
+
r2[o3] = J(ue.value[e4.property], t2, e4.property, B.pageContext);
|
|
185
185
|
}
|
|
186
186
|
}), r2;
|
|
187
187
|
};
|
|
@@ -238,7 +238,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
238
238
|
let o3 = [];
|
|
239
239
|
oe.value && (o3 = L(oe.value), o3.forEach((o4) => {
|
|
240
240
|
e4.forEach((e5) => {
|
|
241
|
-
const n3 =
|
|
241
|
+
const n3 = A(o4, e5.props.format, e5, B.pageContext, B.configure);
|
|
242
242
|
o4[e5.props.base.prop] = n3;
|
|
243
243
|
});
|
|
244
244
|
}));
|
package/dist/es/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SuperPageNew, SuperPageDialogNew, HomeChart } from './components/runtime';
|
|
2
|
-
import { getComponentOptionConfigs
|
|
2
|
+
import { getComponentOptionConfigs } from './components/runtime/utils/page-helper-util';
|
|
3
3
|
import { getStandPermissionInfo, getFunctionInfo, FuncType } from './components/runtime/utils/page-permission-util';
|
|
4
4
|
import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from './components/runtime/utils/charts/chart-util';
|
|
5
5
|
import { default as cn } from './i18n/langs/cn.js';
|
|
@@ -8,7 +8,7 @@ import { getDateShortCuts } from './components/runtime/utils/form/date-shortcuts
|
|
|
8
8
|
import { getListCode } from './components/runtime/utils/common-util';
|
|
9
9
|
import { default as YxAffix } from './components/runtime/views/assemblys/container/fixed/YxAffix.vue';
|
|
10
10
|
|
|
11
|
-
export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs,
|
|
11
|
+
export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs, HomeChart, YxAffix };
|
|
12
12
|
export { getStandPermissionInfo, getFunctionInfo, FuncType };
|
|
13
13
|
export { getCustomTheme, getCustomThemeOptions, getNumFormatter as getNumFormatterForChart };
|
|
14
14
|
export { getDateShortCuts };
|
package/dist/es/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { default as default2 } from "./components/runtime/views/super-page.vue.j
|
|
|
2
2
|
import { default as default3 } from "./components/runtime/views/super-page-dialog.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { default as default4 } from "./components/runtime/views/home-chart.vue.js";
|
|
5
|
-
import { getComponentOptionConfigs
|
|
5
|
+
import { getComponentOptionConfigs } from "./components/runtime/utils/page-helper-util.js";
|
|
6
6
|
import { FuncType, getFunctionInfo, getStandPermissionInfo } from "./components/runtime/utils/page-permission-util.js";
|
|
7
7
|
import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from "./components/runtime/utils/charts/chart-util.js";
|
|
8
8
|
import { default as default5 } from "./i18n/langs/cn.js";
|
|
@@ -19,7 +19,6 @@ export {
|
|
|
19
19
|
default5 as cn,
|
|
20
20
|
default6 as en,
|
|
21
21
|
getComponentOptionConfigs,
|
|
22
|
-
getComponentOptionConfigsBase,
|
|
23
22
|
getCustomTheme,
|
|
24
23
|
getCustomThemeOptions,
|
|
25
24
|
getDateShortCuts,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.2.92-
|
|
3
|
+
"version": "2.2.92-sit4",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
49
49
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
50
50
|
"@vue/test-utils": "^2.4.4",
|
|
51
|
-
"agilebuilder-ui": "1.1.35-
|
|
51
|
+
"agilebuilder-ui": "1.1.35-sit2",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|