super-page-runtime 2.3.15-sit1 → 2.3.15-sit2
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 +52 -52
- package/dist/es/components/runtime/utils/page-init-util.js +56 -44
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +60 -60
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +73 -59
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/package.json +2 -2
|
@@ -6,9 +6,9 @@ import { getCurrentUser as d, getToken as m, getSessionCache as f, getRunCurrent
|
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
7
|
import T from "../eventBus.js";
|
|
8
8
|
import w from "axios";
|
|
9
|
-
import { handleEvent as k, getTableUuid as
|
|
9
|
+
import { handleEvent as k, getTableUuid as h, doAfterClickEvent as y } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as P } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as
|
|
11
|
+
import { getPermissionCodes as R, getDefaultValue as S, getModelFields as v } from "../page-init-util.js";
|
|
12
12
|
import { updateChartDatasources as M, caculateShowCondition as I, getVariableValue as N, setVariableValue as x } from "../page-helper-util.js";
|
|
13
13
|
import A from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as E } from "../table-utils.js";
|
|
@@ -50,12 +50,12 @@ const D = { save: function(e2) {
|
|
|
50
50
|
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = E(r2, m2);
|
|
51
51
|
let g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
52
52
|
g2 = o(g2, p2, d2, r2.isTest);
|
|
53
|
-
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), w2 =
|
|
53
|
+
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), w2 = R(u2, r2), k2 = { ids: i2, functionCode: w2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
54
|
r2.beanName && (k2.beanName = r2.beanName);
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
55
|
+
const h2 = u2.props.deleteLogicSetting;
|
|
56
|
+
h2 && ("object" == typeof h2 ? k2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (k2.deleteLogicSetting = h2));
|
|
57
|
+
const y2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
|
|
58
|
+
y2 && (k2.logSettingText = y2.join(""));
|
|
59
59
|
const P2 = u2.props.base.isSafeDelete;
|
|
60
60
|
P2 && (k2.isSafeDelete = P2), c.delete(g2, { data: k2 }).then((e4) => {
|
|
61
61
|
const t2 = b(r2, m2);
|
|
@@ -83,7 +83,7 @@ const D = { save: function(e2) {
|
|
|
83
83
|
const C2 = e3.listCode;
|
|
84
84
|
C2 && (d2 += "&listCode=" + C2);
|
|
85
85
|
t2.beanName && (d2 += "&beanName=" + t2.beanName);
|
|
86
|
-
const b2 =
|
|
86
|
+
const b2 = R(s2, t2);
|
|
87
87
|
b2 && (d2 += "&functionCode=" + b2);
|
|
88
88
|
t2.tableName && (d2 += "&tableName=" + t2.tableName);
|
|
89
89
|
t2.code && (d2 += "&pageCode=" + t2.code);
|
|
@@ -95,8 +95,8 @@ const D = { save: function(e2) {
|
|
|
95
95
|
if (o2) {
|
|
96
96
|
d2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
97
|
}
|
|
98
|
-
const
|
|
99
|
-
window.open(
|
|
98
|
+
const h2 = n(l2, t2.isTest);
|
|
99
|
+
window.open(h2 + "/dsc/commons/download-files" + d2);
|
|
100
100
|
}(e2);
|
|
101
101
|
}, import: function(e2) {
|
|
102
102
|
const t2 = e2.pageContext.code + "_";
|
|
@@ -111,7 +111,7 @@ const D = { save: function(e2) {
|
|
|
111
111
|
u2 || (u2 = n2.code);
|
|
112
112
|
let l2 = false;
|
|
113
113
|
l2 = void 0 !== a2.isAsync && null !== a2.isAsync && a2.isAsync;
|
|
114
|
-
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 =
|
|
114
|
+
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = R(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
|
|
115
115
|
f2.isShowWatermark = void 0 === ((_b = (_a = o2.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) + "", f2.watermarkContent = ((_f = (_e = o2.props) == null ? void 0 : _e.watermark) == null ? void 0 : _f.content) && ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content.length) > 0 ? (_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, i2, d2, null, f2, l2, n2.code, p2);
|
|
116
116
|
});
|
|
117
117
|
}(e2);
|
|
@@ -272,7 +272,7 @@ const D = { save: function(e2) {
|
|
|
272
272
|
}, lineEditCreate: function(e2) {
|
|
273
273
|
return function(e3) {
|
|
274
274
|
const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = b(t2, s2);
|
|
275
|
-
n2 && (e3.getDefaultValueFunc =
|
|
275
|
+
n2 && (e3.getDefaultValueFunc = S, n2.createRow(e3.listCode, {}, e3));
|
|
276
276
|
}(e2);
|
|
277
277
|
}, printLabel: function(e2) {
|
|
278
278
|
return function(e3) {
|
|
@@ -354,7 +354,7 @@ function W(e2) {
|
|
|
354
354
|
function L(e2, s2, o2, a2) {
|
|
355
355
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
356
356
|
e2.clickUuid = s2.uuid;
|
|
357
|
-
const i2 = 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 = _.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode:
|
|
357
|
+
const i2 = 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 = _.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: R(s2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
358
358
|
u2 && (b2.logSettingText = u2.join(""));
|
|
359
359
|
const T2 = ce(e2);
|
|
360
360
|
let k2;
|
|
@@ -384,7 +384,7 @@ function L(e2, s2, o2, a2) {
|
|
|
384
384
|
});
|
|
385
385
|
});
|
|
386
386
|
}(r2, f2, b2, e2.isTest), k2 && k2.then(() => {
|
|
387
|
-
|
|
387
|
+
y(e2, s2);
|
|
388
388
|
}).catch((e3) => {
|
|
389
389
|
});
|
|
390
390
|
}
|
|
@@ -411,14 +411,14 @@ function F(e2, t2) {
|
|
|
411
411
|
}
|
|
412
412
|
function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
413
413
|
var _a;
|
|
414
|
-
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 =
|
|
414
|
+
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = R(n2, e2);
|
|
415
415
|
let m2 = c2;
|
|
416
416
|
m2 || (m2 = e2.entity.data);
|
|
417
417
|
const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: u2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
418
418
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
419
419
|
const g2 = n2.props.base.conversionCodes;
|
|
420
420
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
421
|
-
const C2 =
|
|
421
|
+
const C2 = Re(n2);
|
|
422
422
|
C2 && (f2.autoSetValueData = C2);
|
|
423
423
|
const b2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
424
424
|
b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
@@ -443,7 +443,7 @@ function H(t2, s2, n2, o2, a2) {
|
|
|
443
443
|
const i2 = J(t2, s2, a2);
|
|
444
444
|
if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
|
|
445
445
|
let a3 = s3.props.base.successOperation;
|
|
446
|
-
const i3 = s3.props.base.isNeedValueMapping, r2 =
|
|
446
|
+
const i3 = s3.props.base.isNeedValueMapping, r2 = h(t3, s3);
|
|
447
447
|
a3 || K.includes(s3.name) || (a3 = "refresh");
|
|
448
448
|
if ("refresh" === a3) {
|
|
449
449
|
if (r2) {
|
|
@@ -483,7 +483,7 @@ function G(e2, t2, s2) {
|
|
|
483
483
|
const n2 = t2.props.base.successOperation;
|
|
484
484
|
if (!n2 || null === n2) return;
|
|
485
485
|
const o2 = t2.props.base.isNeedValueMapping;
|
|
486
|
-
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ?
|
|
486
|
+
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? he(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (Y(e2, t2, s2, o2), e2.canClick = true);
|
|
487
487
|
}
|
|
488
488
|
function Y(e2, t2, s2, n2) {
|
|
489
489
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -518,13 +518,13 @@ function X(e2, t2, s2, n2) {
|
|
|
518
518
|
const a2 = J(e2, t2);
|
|
519
519
|
if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
520
520
|
if (a2 && "list" === a2) {
|
|
521
|
-
const s3 =
|
|
521
|
+
const s3 = h(e2, t2);
|
|
522
522
|
if (s3) {
|
|
523
523
|
b(e2, s3).refresh();
|
|
524
524
|
}
|
|
525
525
|
} else if (a2 && "form" === a2) {
|
|
526
526
|
const t3 = e2.entity.data;
|
|
527
|
-
|
|
527
|
+
he(e2, t3.ID ? t3.ID : t3.id);
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
}
|
|
@@ -570,7 +570,7 @@ function Z(e2, s2) {
|
|
|
570
570
|
g2 && f2.append("importDuplicateRule", g2);
|
|
571
571
|
const C2 = a2.judgeHeavyList;
|
|
572
572
|
C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
|
|
573
|
-
const b2 =
|
|
573
|
+
const b2 = Re(i2);
|
|
574
574
|
b2 && f2.append("autoSetValueData", b2);
|
|
575
575
|
const T2 = a2.formNoRuleCode;
|
|
576
576
|
T2 && f2.append("formNoRuleCode", T2);
|
|
@@ -578,12 +578,12 @@ function Z(e2, s2) {
|
|
|
578
578
|
w2 && f2.append("listCode", w2);
|
|
579
579
|
let k2 = false;
|
|
580
580
|
k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
|
|
581
|
-
const
|
|
582
|
-
null !=
|
|
583
|
-
const P2 =
|
|
581
|
+
const h2 = t(a2);
|
|
582
|
+
null != h2 && f2.append("isWorkflowEntity", h2 + "");
|
|
583
|
+
const P2 = R(i2, a2);
|
|
584
584
|
P2 && f2.append("functionCode", P2);
|
|
585
|
-
const
|
|
586
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
585
|
+
const S2 = ce(a2);
|
|
586
|
+
f2.append("additionalParamMapStr", JSON.stringify(S2));
|
|
587
587
|
const v2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
588
588
|
f2.append("isPermission", v2 + "");
|
|
589
589
|
const M2 = a2.systemCode;
|
|
@@ -594,7 +594,7 @@ function Z(e2, s2) {
|
|
|
594
594
|
if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
595
595
|
else {
|
|
596
596
|
let t2 = false;
|
|
597
|
-
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), H(a2, i2, e3, null, true), a2.result = t2,
|
|
597
|
+
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), H(a2, i2, e3, null, true), a2.result = t2, y(a2, i2);
|
|
598
598
|
}
|
|
599
599
|
}).catch((e3) => {
|
|
600
600
|
});
|
|
@@ -611,13 +611,13 @@ function ee(e2, t2) {
|
|
|
611
611
|
function te(e2) {
|
|
612
612
|
var _a;
|
|
613
613
|
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
|
|
614
|
-
let r2 =
|
|
614
|
+
let r2 = R(n2, t2);
|
|
615
615
|
r2 || (r2 = i2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
616
616
|
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: a2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
617
617
|
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);
|
|
618
618
|
const u2 = n2.props.base.conversionCodes;
|
|
619
619
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
620
|
-
const l2 =
|
|
620
|
+
const l2 = Re(n2);
|
|
621
621
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
622
622
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
623
623
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
@@ -691,7 +691,7 @@ function ae(e2, t2) {
|
|
|
691
691
|
if (t2) {
|
|
692
692
|
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = te(e2);
|
|
693
693
|
c2.assigneeId = r2, de(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
694
|
-
|
|
694
|
+
y(s2, o2);
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
697
|
}
|
|
@@ -734,7 +734,7 @@ function ue(e2, t2) {
|
|
|
734
734
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
735
735
|
const m2 = c.post(p2, d2);
|
|
736
736
|
m2 && m2.then((e3) => {
|
|
737
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false),
|
|
737
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false), y(s2, a2);
|
|
738
738
|
});
|
|
739
739
|
}
|
|
740
740
|
}
|
|
@@ -747,7 +747,7 @@ function le(e2, t2) {
|
|
|
747
747
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
748
748
|
const m2 = c.post(p2, d2);
|
|
749
749
|
m2 && m2.then((e3) => {
|
|
750
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false),
|
|
750
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false), y(s2, a2);
|
|
751
751
|
});
|
|
752
752
|
}
|
|
753
753
|
}
|
|
@@ -780,7 +780,7 @@ async function pe(e2, t2) {
|
|
|
780
780
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
781
781
|
const f2 = c.post(d2, m2);
|
|
782
782
|
f2 && f2.then((e3) => {
|
|
783
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }),
|
|
783
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), y(a2, i2);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -816,7 +816,7 @@ function me(e2) {
|
|
|
816
816
|
function fe(e2, t2) {
|
|
817
817
|
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = te(e2);
|
|
818
818
|
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), de(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
819
|
-
|
|
819
|
+
y(s2, o2);
|
|
820
820
|
});
|
|
821
821
|
}
|
|
822
822
|
function ge(e2) {
|
|
@@ -835,7 +835,7 @@ function Ce(e2, t2) {
|
|
|
835
835
|
m2.ids = d2;
|
|
836
836
|
const f2 = c.post(p2, m2);
|
|
837
837
|
f2 && f2.then((e3) => {
|
|
838
|
-
H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false),
|
|
838
|
+
H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), y(s2, a2);
|
|
839
839
|
});
|
|
840
840
|
}
|
|
841
841
|
}
|
|
@@ -855,24 +855,24 @@ function Te(e2, t2) {
|
|
|
855
855
|
m2.ids = d2;
|
|
856
856
|
const f2 = c.post(p2, m2);
|
|
857
857
|
f2 && f2.then((e3) => {
|
|
858
|
-
H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false),
|
|
858
|
+
H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), y(s2, a2);
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
function we(e2, t2, s2, n2, o2) {
|
|
863
863
|
let a2 = false;
|
|
864
864
|
return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
|
|
865
|
-
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
866
|
-
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
865
|
+
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && true === e3.theTransactor) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
866
|
+
if (e3.processState && "SUBMIT" === e3.processState && true === e3.theTransactor && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
867
867
|
return false;
|
|
868
868
|
}(t2) : "workflowStart" === e2 ? a2 = function(e3, t3) {
|
|
869
869
|
if (void 0 === e3.processState || null === e3.processState || t3 && !t3.workflow_id && !t3.WORKFLOW_ID) return true;
|
|
870
870
|
return false;
|
|
871
871
|
}(t2, o2) : "submitProcess" === e2 ? a2 = function(e3) {
|
|
872
|
-
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
872
|
+
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && true === e3.theTransactor) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
873
873
|
return false;
|
|
874
874
|
}(t2) : "submitTask" === e2 ? a2 = function(e3) {
|
|
875
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
|
|
875
|
+
if (e3.processState && "SUBMIT" === e3.processState && true === e3.theTransactor && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
|
|
876
876
|
return false;
|
|
877
877
|
}(t2) : "drawTask" === e2 ? a2 = function(e3) {
|
|
878
878
|
if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
|
|
@@ -927,7 +927,7 @@ function we(e2, t2, s2, n2, o2) {
|
|
|
927
927
|
if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
928
928
|
return false;
|
|
929
929
|
}(t2, 0, o2) : "approveExtractWorkflow" === e2 || "refuseExtractWorkflow" === e2 ? a2 = ke(t2) : "addTransactor" === e2 || "removeTransactor" === e2 ? a2 = function(e3) {
|
|
930
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" !== e3.processingMode) return true;
|
|
930
|
+
if (e3.processState && "SUBMIT" === e3.processState && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active) && "COUNTERSIGN" !== e3.processingMode) return true;
|
|
931
931
|
return false;
|
|
932
932
|
}(t2) : function(e3, t3) {
|
|
933
933
|
return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
|
|
@@ -944,12 +944,12 @@ function we(e2, t2, s2, n2, o2) {
|
|
|
944
944
|
function ke(e2, t2, s2) {
|
|
945
945
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
947
|
+
function he(e2, t2) {
|
|
948
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, ye(e2, t2).then((t3) => {
|
|
949
949
|
e2.isRefresh = true;
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function ye(e2, s2, o2) {
|
|
953
953
|
const a2 = e2.pageType;
|
|
954
954
|
if (a2 && "form" === a2) {
|
|
955
955
|
e2.canClick = false;
|
|
@@ -1021,11 +1021,11 @@ function he(e2, s2, o2) {
|
|
|
1021
1021
|
}), T2.listCodesMap = t3;
|
|
1022
1022
|
}
|
|
1023
1023
|
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
1024
|
-
const w2 = b2 + "/dsc/commons/gets",
|
|
1025
|
-
|
|
1024
|
+
const w2 = b2 + "/dsc/commons/gets", h2 = j();
|
|
1025
|
+
h2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(w2, T2).then((t3) => {
|
|
1026
1026
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
1027
1027
|
const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
|
|
1028
|
-
e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"),
|
|
1028
|
+
e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
|
|
1029
1029
|
}).catch((t3) => {
|
|
1030
1030
|
e3.canClick = true, a3(t3);
|
|
1031
1031
|
});
|
|
@@ -1039,7 +1039,7 @@ function he(e2, s2, o2) {
|
|
|
1039
1039
|
function Pe(e2) {
|
|
1040
1040
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function Re(e2) {
|
|
1043
1043
|
const t2 = e2.props.setValueList;
|
|
1044
1044
|
if (t2) {
|
|
1045
1045
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -1047,7 +1047,7 @@ function Se(e2) {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
return null;
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Se(e2, t2) {
|
|
1051
1051
|
const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
1052
1052
|
return c.post(a2, o2);
|
|
1053
1053
|
}
|
|
@@ -1073,7 +1073,7 @@ export {
|
|
|
1073
1073
|
fe as doReturnTaskTo,
|
|
1074
1074
|
L as exportFormReport,
|
|
1075
1075
|
ce as getAdditionalParamMap,
|
|
1076
|
-
|
|
1076
|
+
ye as getFormData,
|
|
1077
1077
|
ge as getRemoveSigner,
|
|
1078
1078
|
be as getRemoveTransactor,
|
|
1079
1079
|
$ as getSaveFormRequest,
|
|
@@ -1083,8 +1083,8 @@ export {
|
|
|
1083
1083
|
ee as judgeDataNumber,
|
|
1084
1084
|
ve as listChartConditions,
|
|
1085
1085
|
X as refreshFormOrListPage,
|
|
1086
|
-
|
|
1087
|
-
|
|
1086
|
+
he as refreshPage,
|
|
1087
|
+
Se as saveChartConditionBase,
|
|
1088
1088
|
D as standardEvents,
|
|
1089
1089
|
z as updateValuesWhenCloseDialog
|
|
1090
1090
|
};
|
|
@@ -1,19 +1,31 @@
|
|
|
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 i } from "./interfaces/page-design-types.js";
|
|
4
|
-
import { getFormPropName as s, getVariableValue as
|
|
4
|
+
import { getFormPropName as s, getVariableValue as n, setVariableValue as o, formatVariableValue as r } from "./page-helper-util.js";
|
|
5
5
|
import { getSessionCache as l } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { functions as a } from "./api/page-expose-util.js";
|
|
7
7
|
import { isWorkflowPage as p, deepCopy as u } from "./common-util.js";
|
|
8
8
|
import { packageCustomValidator as d } from "./events/validator-util.js";
|
|
9
9
|
import { isMobileBrowser as f } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function m(t2) {
|
|
11
|
+
return new Promise((i2, s2) => {
|
|
12
|
+
(function(t3) {
|
|
13
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
|
|
14
|
+
})(t2).then((t3) => {
|
|
15
|
+
t3 ? function(t4, i3) {
|
|
16
|
+
let s3 = "";
|
|
17
|
+
t4 && i3 && (s3 = "?listViewTableName=" + t4 + "&listViewTablePublishVersion=" + i3);
|
|
18
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + s3);
|
|
19
|
+
}(t3.listViewTableName, t3.listViewTablePublishVersion).then((e2) => {
|
|
20
|
+
e2 ? (t3.contextParam = e2.contextParam, t3.branchFieldAuth = e2.branchFieldAuth, t3.systemParam = e2.systemParam, t3.isWorkflowEntity = e2.isWorkflowEntity, t3.dataTypeMaps = e2.dataTypeMaps, i2(t3)) : i2(null);
|
|
21
|
+
}) : i2(null);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
12
24
|
}
|
|
13
|
-
function
|
|
25
|
+
function c(e2) {
|
|
14
26
|
var _a, _b, _c;
|
|
15
27
|
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, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList:
|
|
28
|
+
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, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: b(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 }, propTitleMap: {} };
|
|
17
29
|
if (e2.props && e2.props.notIdInitializationList) {
|
|
18
30
|
let i2 = e2.props.notIdInitializationList;
|
|
19
31
|
"string" == typeof i2 && (i2 = JSON.parse(i2)), i2.length > 0 && (t2.notIdInitializationList = i2);
|
|
@@ -34,7 +46,7 @@ function m(e2) {
|
|
|
34
46
|
return e3 > 768 ? i.PC : e3 > 414 ? i.IPAD : i.PHONE;
|
|
35
47
|
}(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
|
|
36
48
|
}
|
|
37
|
-
function
|
|
49
|
+
function b(e2) {
|
|
38
50
|
try {
|
|
39
51
|
return e2.props && e2.props.judgeHeavyList.length > 0 ? (e2.props.judgeHeavyList.forEach((e3) => {
|
|
40
52
|
e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
|
|
@@ -42,7 +54,7 @@ function g(e2) {
|
|
|
42
54
|
} catch (e3) {
|
|
43
55
|
}
|
|
44
56
|
}
|
|
45
|
-
function
|
|
57
|
+
function g(e2) {
|
|
46
58
|
let t2 = decodeURI(window.location.href);
|
|
47
59
|
try {
|
|
48
60
|
window.top && !Array.isArray(window.top) && (t2 = decodeURI(window.top.location.href));
|
|
@@ -86,27 +98,27 @@ function w(e2, t2) {
|
|
|
86
98
|
function E(e2, t2) {
|
|
87
99
|
let i2, s2 = t2;
|
|
88
100
|
t2 || (i2 = e2.props.base ? e2.props.base : {}, s2 = i2.prop);
|
|
89
|
-
let
|
|
90
|
-
return t2 && !t2.startsWith("${") ?
|
|
101
|
+
let n2 = null;
|
|
102
|
+
return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || s2 && s2.startsWith("${") ? s2.startsWith("${") ? (s2 = s2.substring(2, s2.length - 1), n2 = s2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
|
|
91
103
|
}
|
|
92
|
-
function
|
|
104
|
+
function P(e2, t2, i2) {
|
|
93
105
|
var _a;
|
|
94
106
|
const s2 = E(t2, i2), r2 = e2.entity;
|
|
95
107
|
if (null == r2.data.ID && null == r2.data.id) {
|
|
96
108
|
let i3, l2, a2 = false;
|
|
97
109
|
t2 && (i3 = t2.props.base ? t2.props.base : {}, l2 = t2.name, a2 = i3.multiple);
|
|
98
|
-
const p2 =
|
|
110
|
+
const p2 = n(r2, s2);
|
|
99
111
|
if (null == p2) {
|
|
100
112
|
const t3 = i3 ? i3.defaultValue : null;
|
|
101
113
|
if (t3) try {
|
|
102
|
-
const
|
|
103
|
-
if (null !=
|
|
114
|
+
const n2 = v(e2, t3, l2, a2);
|
|
115
|
+
if (null != n2 && "" !== n2) o(r2, s2, n2);
|
|
104
116
|
else if (((_a = i3.moreDefaultValue) == null ? void 0 : _a.length) > 0) {
|
|
105
117
|
const t4 = i3.moreDefaultValue;
|
|
106
118
|
for (let i4 = 0; i4 < t4.length; i4++) {
|
|
107
|
-
const
|
|
108
|
-
if (null !=
|
|
109
|
-
|
|
119
|
+
const n3 = v(e2, t4[i4], l2, a2);
|
|
120
|
+
if (null != n3 && "" !== n3) {
|
|
121
|
+
o(r2, s2, n3);
|
|
110
122
|
break;
|
|
111
123
|
}
|
|
112
124
|
}
|
|
@@ -117,13 +129,13 @@ function v(e2, t2, i2) {
|
|
|
117
129
|
}
|
|
118
130
|
return s2;
|
|
119
131
|
}
|
|
120
|
-
function
|
|
121
|
-
let
|
|
122
|
-
if (t2 && (
|
|
132
|
+
function v(e2, t2, i2, s2) {
|
|
133
|
+
let n2;
|
|
134
|
+
if (t2 && (n2 = r(e2, t2), null != n2 && null != n2 && i2)) {
|
|
123
135
|
let e3 = false;
|
|
124
|
-
"checkbox" == i2 ? e3 = true : "select" == i2 && (e3 = s2), e3 && (
|
|
136
|
+
"checkbox" == i2 ? e3 = true : "select" == i2 && (e3 = s2), e3 && (n2 = (n2 + "").split(","));
|
|
125
137
|
}
|
|
126
|
-
return
|
|
138
|
+
return n2;
|
|
127
139
|
}
|
|
128
140
|
function M(e2, t2) {
|
|
129
141
|
var _a, _b;
|
|
@@ -131,14 +143,14 @@ function M(e2, t2) {
|
|
|
131
143
|
const i2 = [];
|
|
132
144
|
if (e2.autoPermissions) for (const s2 of e2.autoPermissions) i2.push(t2.code + "." + s2.simpleCode);
|
|
133
145
|
if (e2.functionCodes) {
|
|
134
|
-
const s2 = e2.sourceTypes ? e2.sourceTypes : [],
|
|
135
|
-
for (let e3 = 0; e3 <
|
|
136
|
-
const
|
|
146
|
+
const s2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
|
|
147
|
+
for (let e3 = 0; e3 < n2.length; e3++) {
|
|
148
|
+
const o2 = n2[e3], r2 = e3 < s2.length ? s2[e3] : "";
|
|
137
149
|
let l2 = "";
|
|
138
|
-
if ("service" == r2) l2 =
|
|
139
|
-
else if ("standard" === r2) l2 = t2.code + "." +
|
|
150
|
+
if ("service" == r2) l2 = o2;
|
|
151
|
+
else if ("standard" === r2) l2 = t2.code + "." + o2;
|
|
140
152
|
else {
|
|
141
|
-
l2 = "custom" === k(
|
|
153
|
+
l2 = "custom" === k(o2, t2).type ? o2 : t2.code + "." + o2;
|
|
142
154
|
}
|
|
143
155
|
i2.includes(l2) || i2.push(l2);
|
|
144
156
|
}
|
|
@@ -152,26 +164,26 @@ function k(e2, t2) {
|
|
|
152
164
|
}
|
|
153
165
|
return null;
|
|
154
166
|
}
|
|
155
|
-
function
|
|
156
|
-
const
|
|
167
|
+
function I(i2, s2, n2) {
|
|
168
|
+
const o2 = i2.tableRuntimes, r2 = t(s2);
|
|
157
169
|
let l2;
|
|
158
170
|
const a2 = s2.code;
|
|
159
|
-
return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes:
|
|
171
|
+
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: i2.pageType });
|
|
160
172
|
}
|
|
161
|
-
const
|
|
173
|
+
const C = ["button-detail", "print-label"];
|
|
162
174
|
function j(e2, t2, i2) {
|
|
163
175
|
var _a, _b;
|
|
164
|
-
const
|
|
176
|
+
const n2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
|
|
165
177
|
let r2 = false;
|
|
166
|
-
if (
|
|
178
|
+
if (o2 && C.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
167
179
|
const i3 = e2.fieldPermissionMap.get("all_fields");
|
|
168
180
|
false === (i3 == null ? void 0 : i3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
|
|
169
181
|
}
|
|
170
|
-
if (
|
|
171
|
-
const l2 = s(
|
|
182
|
+
if (n2) {
|
|
183
|
+
const l2 = s(n2);
|
|
172
184
|
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[l2] || (e2.rules[l2] = []), t2.props.rules.forEach((e3) => {
|
|
173
185
|
d(e3), !i2 && e3 && e3.required && (e3.required = false);
|
|
174
|
-
}), e2.rules[l2] = t2.props.rules),
|
|
186
|
+
}), e2.rules[l2] = t2.props.rules), o2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
175
187
|
const s2 = e2.fieldPermissionMap.get(l2);
|
|
176
188
|
if (!i2 && e2.workflowRules && (e2.workflowRules[l2] || e2.workflowRules.rules && e2.workflowRules.rules[l2])) {
|
|
177
189
|
let t3 = e2.workflowRules[l2];
|
|
@@ -189,7 +201,7 @@ function j(e2, t2, i2) {
|
|
|
189
201
|
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: l2, events: t2.props.customRuleEvents }));
|
|
190
202
|
}
|
|
191
203
|
}
|
|
192
|
-
function
|
|
204
|
+
function A(e2, t2) {
|
|
193
205
|
if (e2.initInfo) {
|
|
194
206
|
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((i2) => {
|
|
195
207
|
const s2 = e2.initInfo[i2];
|
|
@@ -205,16 +217,16 @@ function O(e2, t2) {
|
|
|
205
217
|
}
|
|
206
218
|
}
|
|
207
219
|
export {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
220
|
+
A as controlObjectRenderState,
|
|
221
|
+
c as convertToPageContext,
|
|
222
|
+
v as getDefaultValue,
|
|
223
|
+
P as getFormModelFields,
|
|
212
224
|
E as getModelFields,
|
|
213
225
|
M as getPermissionCodes,
|
|
214
|
-
|
|
226
|
+
g as packageAdditionalMapWithLocationSearch,
|
|
215
227
|
h as packageAdditionalMapWithPageRequest,
|
|
216
228
|
y as packageAdditionalMapWithRoute,
|
|
217
229
|
j as packageFormRules,
|
|
218
|
-
|
|
219
|
-
|
|
230
|
+
m as queryPageDesignByCode,
|
|
231
|
+
I as queryPageSuperGrids
|
|
220
232
|
};
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as
|
|
2
|
-
import { getFormModelFields as
|
|
3
|
-
import { formatVariableValue as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as i, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createVNode as c, createBlock as p, createCommentVNode as d, normalizeStyle as g, normalizeClass as m, unref as f, withCtx as v, createElementVNode as h, toDisplayString as x } from "vue";
|
|
2
|
+
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getSizeConfig as C, formatVariableValue as b, setVariableValue as w, getVariableValue as k } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import q from "quill";
|
|
5
5
|
import "quill/dist/quill.snow.css";
|
|
6
|
-
import { handleAfterInitEvent as
|
|
7
|
-
import
|
|
8
|
-
import { $t as
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
let
|
|
6
|
+
import { handleAfterInitEvent as T, handleFormEvent as E } from "../../../../utils/events/event-util.js";
|
|
7
|
+
import L from "agilebuilder-ui/src/utils/request";
|
|
8
|
+
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
9
|
+
import { getBaseUrl as j, addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
|
|
10
|
+
const B = { style: { width: "100%", height: "100%" } }, H = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
11
|
+
const M = e2, N = t(null), S = M.pageContext.entity ? M.pageContext.entity : {}, A = y(M.pageContext, M.configure), D = M.configure.runtime ? M.configure.runtime : {}, F = D.style, U = D.class, W = D.headerStyle, z = D.titleExceedStyle, I = t(D.props ? D.props : {});
|
|
12
|
+
C(M.pageContext, M.configure);
|
|
13
|
+
let O = I.value.value;
|
|
14
|
+
const G = b(M.pageContext, O), J = t(null);
|
|
15
|
+
let K = null;
|
|
16
16
|
t(null);
|
|
17
|
-
let
|
|
18
|
-
function
|
|
17
|
+
let P = I.value.state;
|
|
18
|
+
function Q(e3) {
|
|
19
19
|
return "readonly" == e3 || "disabled" == e3;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
l(
|
|
23
|
-
const e3 =
|
|
24
|
-
if (null != e3 && e3 !==
|
|
25
|
-
|
|
26
|
-
const t2 = P
|
|
27
|
-
|
|
21
|
+
const V = Q(P), X = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["12px", "13px", "14px", "15px", "16px", "18px", "20px", "24px", "28px", "32px", "36px"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: V ? "" : I.value.placeholder, readOnly: V });
|
|
22
|
+
l(I.value, () => {
|
|
23
|
+
const e3 = I.value.state;
|
|
24
|
+
if (null != e3 && e3 !== P) {
|
|
25
|
+
P = e3;
|
|
26
|
+
const t2 = Q(P);
|
|
27
|
+
K && (K.enable(!t2), K.root.dataset.placeholder = t2 ? "" : I.value.placeholder);
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
const
|
|
31
|
-
let
|
|
32
|
-
function
|
|
30
|
+
const Y = t([]), Z = t(false), $ = t(null), ee = t(null), te = t(null);
|
|
31
|
+
let le;
|
|
32
|
+
function ne(e3) {
|
|
33
33
|
var _a;
|
|
34
|
-
null !== e3.relatedTarget && ((_a =
|
|
34
|
+
null !== e3.relatedTarget && ((_a = J.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || E(K.root.innerHTML, M.pageContext, M.configure, "change", { entity: S });
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function oe(e3) {
|
|
37
37
|
if ("img" === e3.target.localName) {
|
|
38
|
-
|
|
38
|
+
Y.value = [];
|
|
39
39
|
let t2 = e3.target.src;
|
|
40
|
-
|
|
40
|
+
Y.value.push(t2), Z.value = true;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
function ie(e3) {
|
|
44
44
|
const t2 = new FormData();
|
|
45
45
|
t2.append("file", e3);
|
|
46
|
-
const l2 =
|
|
47
|
-
return
|
|
46
|
+
const l2 = M.pageContext.backendUrl, n2 = j(l2, M.pageContext.isTest);
|
|
47
|
+
return L.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1],
|
|
51
|
-
for (;
|
|
49
|
+
function ae(e3, t2) {
|
|
50
|
+
let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1], o2 = atob(l2[1]), i2 = o2.length, a2 = new Uint8Array(i2);
|
|
51
|
+
for (; i2--; ) a2[i2] = o2.charCodeAt(i2);
|
|
52
52
|
return new File([a2], t2, { type: n2 });
|
|
53
53
|
}
|
|
54
54
|
return n(() => {
|
|
55
55
|
var _a;
|
|
56
|
-
|
|
57
|
-
const e3 =
|
|
58
|
-
|
|
56
|
+
K = new q(J.value, X.value);
|
|
57
|
+
const e3 = K.clipboard.convertHTML(G);
|
|
58
|
+
K.setContents(e3.ops), (_a = J.value) == null ? void 0 : _a.addEventListener("focusout", ne), K.on("text-change", async function(e4, t2, l2) {
|
|
59
59
|
if (e4.ops && e4.ops.length > 0) for (let t3 = 0; t3 < e4.ops.length; t3++) {
|
|
60
60
|
const l3 = e4.ops[t3];
|
|
61
61
|
if (l3.insert && l3.insert.image) {
|
|
62
62
|
const e5 = l3.insert.image;
|
|
63
63
|
if (!e5.startsWith("data:image")) return;
|
|
64
|
-
const t4 =
|
|
64
|
+
const t4 = ae(e5, "image.png");
|
|
65
65
|
await ie(t4).then((t5) => {
|
|
66
|
-
if (!
|
|
67
|
-
const l4 =
|
|
66
|
+
if (!K) return;
|
|
67
|
+
const l4 = K.root.getElementsByTagName("img");
|
|
68
68
|
if (l4 && l4.length > 0) for (let n3 = 0; n3 < l4.length; n3++) {
|
|
69
|
-
const
|
|
70
|
-
|
|
69
|
+
const o2 = l4[n3];
|
|
70
|
+
o2.src === e5 && (o2.src = t5.url);
|
|
71
71
|
}
|
|
72
72
|
}).catch((e6) => {
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
const n2 =
|
|
77
|
-
|
|
78
|
-
}),
|
|
79
|
-
if (
|
|
80
|
-
const e4 =
|
|
76
|
+
const n2 = K.root.innerHTML;
|
|
77
|
+
w(S, A, n2), null != n2 && "" !== n2 && (N.value = "");
|
|
78
|
+
}), le = K.container, le.addEventListener("click", oe), function() {
|
|
79
|
+
if (K && K.container) {
|
|
80
|
+
const e4 = K.container.parentNode.getBoundingClientRect(), t2 = K.container.getBoundingClientRect();
|
|
81
81
|
let l2 = e4.height - (t2.top - e4.top);
|
|
82
|
-
l2 < 100 && (l2 = 100),
|
|
82
|
+
l2 < 100 && (l2 = 100), K.container.style.height = l2 + "px";
|
|
83
83
|
}
|
|
84
|
-
}(),
|
|
85
|
-
const e4 =
|
|
86
|
-
|
|
84
|
+
}(), o(() => {
|
|
85
|
+
const e4 = k(S, A);
|
|
86
|
+
T(e4, M.pageContext, M.configure, { formItemRef: $.value, componentRef: ee.value, titleRef: te.value, value: e4, entity: M.pageContext.entity.data, pageData: M.pageContext.entity.page });
|
|
87
87
|
});
|
|
88
|
-
}),
|
|
89
|
-
|
|
90
|
-
}),
|
|
91
|
-
|
|
88
|
+
}), i(() => {
|
|
89
|
+
J.value && J.value.removeEventListener("focusout", ne), le && le.removeEventListener("click", oe);
|
|
90
|
+
}), H2({ addRequiredClass: function() {
|
|
91
|
+
N.value = _();
|
|
92
92
|
} }), (e3, t2) => {
|
|
93
93
|
const l2 = a("el-form-item"), n2 = a("el-image-viewer");
|
|
94
|
-
return u(), r(s, null, [
|
|
95
|
-
|
|
96
|
-
}), "url-list":
|
|
94
|
+
return u(), r(s, null, [c(l2, { required: I.value.required, class: m(f(U) + (N.value ? " " + N.value : "")), "label-width": I.value.labelWidth, style: g(f(F)) }, { label: v(() => [I.value.tittleShow ? (u(), r("div", { key: 0, style: g({ ...f(W), ...f(z) }) }, x(f(R)(I.value.title)), 5)) : d("", true)]), default: v(() => [h("div", B, [h("div", { ref_key: "quillEditorRef", ref: J, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"]), Z.value ? (u(), p(n2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
95
|
+
Z.value = false;
|
|
96
|
+
}), "url-list": Y.value }, null, 8, ["url-list"])) : d("", true)], 64);
|
|
97
97
|
};
|
|
98
98
|
} });
|
|
99
99
|
export {
|
|
100
|
-
|
|
100
|
+
H as default
|
|
101
101
|
};
|
|
@@ -3,104 +3,118 @@ import { setVariableValue as _, getOptionDatasFromPage as w, queryOptionDatasour
|
|
|
3
3
|
import { getFormModelFields as A } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as j, handleAfterInitEvent as R } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import V from "../common/title-suffix-element.vue.js";
|
|
6
|
-
import { $t as
|
|
7
|
-
import { addRequiredClassUtil as
|
|
8
|
-
import { CopyDocument as
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
import { $t as M } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { addRequiredClassUtil as q } from "../../../../utils/common-util.js";
|
|
8
|
+
import { CopyDocument as z } from "@element-plus/icons-vue";
|
|
9
|
+
import E from "clipboard";
|
|
10
|
+
import { ElMessage as I } from "element-plus";
|
|
11
|
+
import { useI18n as P } from "vue-i18n";
|
|
12
|
+
const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }, W = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, B = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
|
|
13
|
+
const { t: F } = P(), U = e2, $ = t(null), G = U.pageContext.entity ? U.pageContext.entity : {};
|
|
14
|
+
let H = A(U.pageContext, U.configure);
|
|
15
|
+
const J = U.configure.runtime ? U.configure.runtime : {}, K = J.style, L = J.class, N = J.headerStyle, Q = J.titleExceedStyle, X = t(J.props ? J.props : {});
|
|
16
|
+
let Y = [];
|
|
17
|
+
const Z = "copyBtn_" + U.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
|
+
function ee() {
|
|
19
|
+
let e3 = T(G, H);
|
|
20
|
+
return null != e3 && (e3 = String(e3)), X.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
19
21
|
}
|
|
20
|
-
const
|
|
21
|
-
const t2 =
|
|
22
|
-
|
|
22
|
+
const te = l({ get: () => ee(), set(e3) {
|
|
23
|
+
const t2 = ee();
|
|
24
|
+
Y = Array.isArray(t2) ? [...t2] : t2;
|
|
23
25
|
let l2 = e3;
|
|
24
|
-
if (
|
|
25
|
-
l2 = !!
|
|
26
|
+
if (X.value.multiple) {
|
|
27
|
+
l2 = !!X.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
|
|
26
28
|
}
|
|
27
|
-
_(
|
|
28
|
-
} }),
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
let
|
|
32
|
-
const
|
|
33
|
-
if ("dynamicData" ==
|
|
34
|
-
if ("remote" ==
|
|
29
|
+
_(G, H, l2), null != l2 && ($.value = "");
|
|
30
|
+
} }), le = t(X.value.options ? X.value.options : []), oe = w(U.pageContext, U.configure);
|
|
31
|
+
oe.length > 0 && (le.value = oe);
|
|
32
|
+
const ae = t(false), ue = U.configure.props && U.configure.props.dataOrigin ? U.configure.props.dataOrigin : {}, ne = ue.optionValueSetType;
|
|
33
|
+
let re = [];
|
|
34
|
+
const ie = X.value.optionconfigInfo ? X.value.optionconfigInfo : {};
|
|
35
|
+
if ("dynamicData" == ne || "dataTable" == ne || "service" == ne) {
|
|
36
|
+
if ("remote" == ue.filterType) {
|
|
35
37
|
let e3;
|
|
36
|
-
|
|
37
|
-
e3 !== t2 && (e3 = t2,
|
|
38
|
-
|
|
38
|
+
X.value.filterable = true, X.value.remote = true, X.value.remoteShowSuffix = true, X.value.remoteMethod = function(t2) {
|
|
39
|
+
e3 !== t2 && (e3 = t2, ae.value = true, S(U.pageContext, ie, t2).then((e4) => {
|
|
40
|
+
ae.value = false;
|
|
39
41
|
}).then((e4) => {
|
|
40
|
-
|
|
42
|
+
ae.value = false;
|
|
41
43
|
}));
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
|
-
if (
|
|
46
|
+
if (ue.autoSets) for (let e3 of ue.autoSets) e3.source && re.push(e3);
|
|
45
47
|
}
|
|
46
|
-
|
|
48
|
+
U.configure && U.configure.props && U.configure.props.base && U.configure.props.base.optionProp && re.push({ source: "label", target: U.configure.props.base.optionProp }), X.value.changeMethod = function(e3) {
|
|
47
49
|
let t2, l2 = null;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
le.value && null != e3 && null != e3 && (l2 = le.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
|
|
51
|
+
re.length > 0 && k(U.configure, U.pageContext, re, l2, [X.value.prop]);
|
|
50
52
|
l2 && l2.length > 0 && (t2 = l2[0]);
|
|
51
53
|
let o2 = {};
|
|
52
54
|
t2 && (o2.extendParams = t2);
|
|
53
|
-
o2.options =
|
|
55
|
+
o2.options = le.value, o2.oldValue = Y, j(e3, U.pageContext, U.configure, "change", o2);
|
|
54
56
|
};
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
57
|
+
const se = X.value.monitorFields, pe = [];
|
|
58
|
+
if (se) {
|
|
57
59
|
const e3 = [];
|
|
58
|
-
for (let t2 of
|
|
60
|
+
for (let t2 of se) if (t2.startsWith("${")) {
|
|
59
61
|
t2 = t2.substring(2, t2.length - 1);
|
|
60
62
|
const l2 = t2.split(".");
|
|
61
|
-
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (
|
|
63
|
+
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (pe.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
|
|
62
64
|
}
|
|
63
|
-
for (let t2 of e3) o(
|
|
64
|
-
|
|
65
|
+
for (let t2 of e3) o(G[t2], () => {
|
|
66
|
+
ve();
|
|
65
67
|
});
|
|
66
68
|
}
|
|
67
|
-
let
|
|
68
|
-
function
|
|
69
|
-
|
|
69
|
+
let ce = "", fe = false;
|
|
70
|
+
function ve() {
|
|
71
|
+
fe && clearTimeout(fe), fe = setTimeout(function() {
|
|
70
72
|
const e3 = function() {
|
|
71
73
|
let e4 = [];
|
|
72
|
-
for (let t2 of
|
|
74
|
+
for (let t2 of pe) e4.push(T(G, t2));
|
|
73
75
|
return e4.join(",");
|
|
74
76
|
}();
|
|
75
|
-
e3 !=
|
|
76
|
-
|
|
77
|
+
e3 != ce && (ce = e3, ie.watchAttrValue = e3, S(U.pageContext, ie, void 0).then((e4) => {
|
|
78
|
+
ae.value = false;
|
|
77
79
|
}));
|
|
78
80
|
}, 200);
|
|
79
81
|
}
|
|
80
82
|
a(() => {
|
|
81
|
-
|
|
83
|
+
fe && clearTimeout(fe);
|
|
82
84
|
});
|
|
83
|
-
const
|
|
85
|
+
const ge = t(null), me = t(null), de = t(null);
|
|
84
86
|
return u(() => {
|
|
85
|
-
const e3 = new
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
const e3 = new E("#" + Z, { text: function() {
|
|
88
|
+
return function() {
|
|
89
|
+
const e4 = ee();
|
|
90
|
+
if (null != e4 && "" !== e4 && e4.length > 0) {
|
|
91
|
+
let t2 = "";
|
|
92
|
+
return "string" == typeof e4 ? le.value.forEach((l2) => {
|
|
93
|
+
l2.value === e4 && (t2 = l2.label);
|
|
94
|
+
}) : (le.value.forEach((l2) => {
|
|
95
|
+
e4.forEach((e5) => {
|
|
96
|
+
l2.value === e5 && (t2 = t2 + l2.label + ",");
|
|
97
|
+
});
|
|
98
|
+
}), t2 = t2.slice(0, t2.length - 1)), t2;
|
|
99
|
+
}
|
|
100
|
+
}();
|
|
88
101
|
} });
|
|
89
102
|
e3.on("success", () => {
|
|
103
|
+
I({ showClose: true, type: "success", message: F("superPageRuntimeMessage.copySuccess") });
|
|
90
104
|
}), e3.on("error", (e4) => {
|
|
91
105
|
}), n(() => {
|
|
92
|
-
const e4 =
|
|
93
|
-
R(e4,
|
|
106
|
+
const e4 = te.value;
|
|
107
|
+
R(e4, U.pageContext, U.configure, { formItemRef: ge.value, componentRef: me.value, titleRef: de.value, value: e4, entity: U.pageContext.entity.data, pageData: U.pageContext.entity.page });
|
|
94
108
|
});
|
|
95
|
-
}),
|
|
96
|
-
|
|
109
|
+
}), B2({ updateOptions: function(e3) {
|
|
110
|
+
le.value = e3 || [];
|
|
97
111
|
}, addRequiredClass: function() {
|
|
98
|
-
|
|
112
|
+
$.value = q();
|
|
99
113
|
} }), (e3, t2) => {
|
|
100
114
|
const l2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-popover"), n2 = r("el-form-item");
|
|
101
|
-
return s(), i(n2, { ref_key: "formItemRef", ref:
|
|
115
|
+
return s(), i(n2, { ref_key: "formItemRef", ref: ge, required: !!X.value.required, class: c(f(L) + ($.value ? " " + $.value : "")), "label-width": X.value.labelWidth, style: p(f(K)) }, { label: v(() => [X.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: de, style: p({ ...f(N), ...f(Q) }) }, [X.value.prefixType ? (s(), i(V, { key: 0, pageContext: e3.pageContext, property: X.value }, null, 8, ["pageContext", "property"])) : (s(), d(h, { key: 1 }, [C(b(f(M)(X.value.title)), 1)], 64))], 4)) : x("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [g(a2, { ref_key: "componentRef", ref: me, style: { width: "100%" }, disabled: "disabled" === X.value.state, size: X.value.size, clearable: X.value.clearable, multiple: X.value.multiple, "collapse-tags": X.value.collapseTags, "collapse-tags-tooltip": X.value.collapseTagsTooltip, filterable: X.value.filterable, "allow-create": X.value.allowCreate, placeholder: X.value.placeholder, "remote-show-suffix": X.value.remoteShowSuffix, remote: X.value.remote, "remote-method": X.value.remoteMethod, loading: ae.value, onChange: X.value.changeMethod, modelValue: te.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => te.value = e4) }, { default: v(() => [(s(true), d(h, null, y(le.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(j)(t3.value, e3.pageContext, e3.configure, "click", { values: te.value }) }, { default: v(() => [t3._description_ ? (s(), d(h, { key: 0 }, [m("span", O, b(t3.label), 1), m("span", W, b(t3._description_), 1)], 64)) : x("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), default: v(() => [m("span", D, [g(l2, { id: Z }, { default: v(() => [g(f(z))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
102
116
|
};
|
|
103
117
|
} });
|
|
104
118
|
export {
|
|
105
|
-
|
|
119
|
+
B as default
|
|
106
120
|
};
|
package/dist/es/i18n/langs/cn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { superPageRuntimeMessage: { successfulSave: "保存成功", recordLine: "第 {row} 行记录", tableListSubTableDataVerificationFailed: "表单子表数据校验失败", formDataVerificationFailed: "表单数据校验失败", successfulOperation: "操作成功", selectTemplate: "选择模板", temlpate: "模板", operating: "操作", export: "导出", tips: "提示", sure: "确定", cancel: "取消", whetherToConfirmSubmit: "确定{name}吗?", whetherToConfirmAgree: "确定{name}吗?", whetherToConfirmDisagree: "确定{name}吗?", pleaseSelectRecord: "请选择记录", whetherToConfirmDeletion: "确定删除吗?", successfulDelete: "删除成功", noFileSelected: "请选择一个文件", asyncImport: "正在异步导入,请等待消息通知!", successfulImport: "导入成功", thePreconditionOfTheButtonTo: "该按钮前置条件为[{message}]", onlyOneRecordCanBeselected: "只能选择一条记录", selectAtLeastOneRecord: "请至少选择一条记录", requestPathEmpty: "后台请求路径为空", successfulSubmit: "提交成功", successfulCompleteTask: "任务办理成功", successfulAssign: "指派任务成功", successfulRetrieve: "取回任务成功", successfulDrawTask: "领取任务成功", successfulAbandonReceive: "放弃任务成功", successfulReturnToPreviousTask: "退回上一环节成功", successfulEndInstance: "强制结束流程成功", selectNode: "选择环节", nodeName: "环节名称", nodeId: "环节编码", pleaseSelectNode: "请选择环节", successfulReturnTaskTo: "退回成功", selectRemoveUsers: "选择减签任务", transactorName: "办理人姓名", transactor: "办理人登录名", trustorName: "委托人姓名", pleaseSelectRemoverUsers: "请选择减签用户", required: "{label}必填", formatMismatch: "{label}格式不匹配", overMaxLength: "{label}最多只能输入{value}字符", limitMinLength: "{label}至少输入{value}字符", flowNotStart: "流程未提交", pleaseInputOpinion: "请输入意见", opinion: "意见", pleaseInputRemark: "请输入备注", remark: "备注", pleaseSelectCondition: "请选择条件", pleaseInputConditionName: "请输入条件名称", conditionName: "名称", save: "保存", saveCondition: "保存条件", popMsg: "弹框参数缺少customSystem参数", noChartSetting: "未查询到图表定义", xxxNotEmpty: "{label}不能为空", successfulStart: "起草成功", successfulInitiateExtract: "发起成功", successfulCancelExtract: "取消成功", taskMeaage1: "当前任务为子流程,不能进行减少办理人操作", taskMeaage2: "当前流程已结束或已取消或当前任务为并发环节,不能进行减少办理人操作", taskMeaage3: "当前任务只有一个办理人,不能再减少", taskMeaage4: "流程已结束或有并发环节,无法跳转环节", taskMeaage5: "以下任务请使用修改办理人", delTransactor: "减少办理人", handledBy: "办理人为", pleaseSelectRemoverTransactors: "请选择要减少的办理人" } };
|
|
1
|
+
const e = { superPageRuntimeMessage: { successfulSave: "保存成功", recordLine: "第 {row} 行记录", tableListSubTableDataVerificationFailed: "表单子表数据校验失败", formDataVerificationFailed: "表单数据校验失败", successfulOperation: "操作成功", selectTemplate: "选择模板", temlpate: "模板", operating: "操作", export: "导出", tips: "提示", sure: "确定", cancel: "取消", whetherToConfirmSubmit: "确定{name}吗?", whetherToConfirmAgree: "确定{name}吗?", whetherToConfirmDisagree: "确定{name}吗?", pleaseSelectRecord: "请选择记录", whetherToConfirmDeletion: "确定删除吗?", successfulDelete: "删除成功", noFileSelected: "请选择一个文件", asyncImport: "正在异步导入,请等待消息通知!", successfulImport: "导入成功", thePreconditionOfTheButtonTo: "该按钮前置条件为[{message}]", onlyOneRecordCanBeselected: "只能选择一条记录", selectAtLeastOneRecord: "请至少选择一条记录", requestPathEmpty: "后台请求路径为空", successfulSubmit: "提交成功", successfulCompleteTask: "任务办理成功", successfulAssign: "指派任务成功", successfulRetrieve: "取回任务成功", successfulDrawTask: "领取任务成功", successfulAbandonReceive: "放弃任务成功", successfulReturnToPreviousTask: "退回上一环节成功", successfulEndInstance: "强制结束流程成功", selectNode: "选择环节", nodeName: "环节名称", nodeId: "环节编码", pleaseSelectNode: "请选择环节", successfulReturnTaskTo: "退回成功", selectRemoveUsers: "选择减签任务", transactorName: "办理人姓名", transactor: "办理人登录名", trustorName: "委托人姓名", pleaseSelectRemoverUsers: "请选择减签用户", required: "{label}必填", formatMismatch: "{label}格式不匹配", overMaxLength: "{label}最多只能输入{value}字符", limitMinLength: "{label}至少输入{value}字符", flowNotStart: "流程未提交", pleaseInputOpinion: "请输入意见", opinion: "意见", pleaseInputRemark: "请输入备注", remark: "备注", pleaseSelectCondition: "请选择条件", pleaseInputConditionName: "请输入条件名称", conditionName: "名称", save: "保存", saveCondition: "保存条件", popMsg: "弹框参数缺少customSystem参数", noChartSetting: "未查询到图表定义", xxxNotEmpty: "{label}不能为空", successfulStart: "起草成功", successfulInitiateExtract: "发起成功", successfulCancelExtract: "取消成功", taskMeaage1: "当前任务为子流程,不能进行减少办理人操作", taskMeaage2: "当前流程已结束或已取消或当前任务为并发环节,不能进行减少办理人操作", taskMeaage3: "当前任务只有一个办理人,不能再减少", taskMeaage4: "流程已结束或有并发环节,无法跳转环节", taskMeaage5: "以下任务请使用修改办理人", delTransactor: "减少办理人", handledBy: "办理人为", pleaseSelectRemoverTransactors: "请选择要减少的办理人", copySuccess: "复制成功" } };
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/es/i18n/langs/en.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { superPageRuntimeMessage: { successfulSave: "Save succeeded", recordLine: "Record line {row}", tableListSubTableDataVerificationFailed: "Table List Sub Table Data Verification Failed", formDataVerificationFailed: "Form Data Verification Failed", successfulOperation: "Operation successful", selectTemplate: "Select Template", temlpate: "Template", operating: "Operate", export: "Export", tips: "Tip", sure: "Sure", cancel: "Cancel", whetherToConfirmSubmit: "Are you sure to {name}?", whetherToConfirmAgree: "Are you sure to {name}?", whetherToConfirmDisagree: "Are you sure to {name}?", pleaseSelectRecord: "Please select the record", whetherToConfirmDeletion: "Are you sure to delete?", successfulDelete: "Delete succeeded", noFileSelected: "Please select a file", asyncImport: "Asynchronous import, please wait for message notification!", successfulImport: "Import succeeded", thePreconditionOfTheButtonTo: "The Precondition Of The Button To [{message}]", onlyOneRecordCanBeselected: "Only One Record Can Be Selected", selectAtLeastOneRecord: "Please Select At Least One Record", requestPathEmpty: "Backend request path is empty", successfulSubmit: "Submit succeeded", successfulCompleteTask: "Task handled successfully", successfulAssign: "Task assigned successfully", successfulRetrieve: "Retrieve task succeeded", successfulDrawTask: "Task received successfully", successfulAbandonReceive: "The task was abandoned successfully", successfulReturnToPreviousTask: "Successfully returned to the previous phase", successfulEndInstance: "Forced to end the process successfully", selectNode: "Select Node", nodeName: "Node Name", nodeId: "Node Code", pleaseSelectNode: "Please Select Node", successfulReturnTaskTo: "Returned successfully", selectRemoveUsers: "Select Remove Task", transactorName: "Transactor Name", transactor: "Transactor Loginname", trustorName: "Trustor Name", pleaseSelectRemoverUsers: "Please select remove task", required: "{label} is required", formatMismatch: "{label} Format mismatch", overMaxLength: "{label} can only input a maximum of {value} characters", limitMinLength: "Enter at least {value} characters for {label}", flowNotStart: "Workflow Not Started", pleaseInputOpinion: "Please input opinion", opinion: "Opinion", pleaseInputRemark: "Please input remark", remark: "Remark", pleaseSelectCondition: "Please select condition", pleaseInputConditionName: "Please input condition name", conditionName: "Name", save: "Save", saveCondition: "Save Condition", popMsg: "Pop dialog lost the parameter of customSystem", noChartSetting: "No chart setting found", xxxNotEmpty: "{label}Not Empty", successfulStart: "Start succeeded", successfulInitiateExtract: "Initiate succeeded", successfulCancelExtract: "Cancel succeeded", taskMeaage1: "The Current Task Is A Subprocess And Cannot Reduce The Handler", taskMeaage2: "The Current Process Has Been Completed Or Cancelled, Or The Current Task Is A Concurrent Phase, So It Is Not Allowed To Reduce The Handler", taskMeaage3: "The Current Task Has Only One Handler And Cannot Be Reduced Any More", taskMeaage4: "The Process Has Been Completed Or There Are Concurrent Phases, Unable To Jump", taskMeaage5: "Please Modify The Handler For The Following Tasks", delTransactor: "Remove Transactor", handledBy: "Handled By", pleaseSelectRemoverTransactors: "Please select the remove transactor" } };
|
|
1
|
+
const e = { superPageRuntimeMessage: { successfulSave: "Save succeeded", recordLine: "Record line {row}", tableListSubTableDataVerificationFailed: "Table List Sub Table Data Verification Failed", formDataVerificationFailed: "Form Data Verification Failed", successfulOperation: "Operation successful", selectTemplate: "Select Template", temlpate: "Template", operating: "Operate", export: "Export", tips: "Tip", sure: "Sure", cancel: "Cancel", whetherToConfirmSubmit: "Are you sure to {name}?", whetherToConfirmAgree: "Are you sure to {name}?", whetherToConfirmDisagree: "Are you sure to {name}?", pleaseSelectRecord: "Please select the record", whetherToConfirmDeletion: "Are you sure to delete?", successfulDelete: "Delete succeeded", noFileSelected: "Please select a file", asyncImport: "Asynchronous import, please wait for message notification!", successfulImport: "Import succeeded", thePreconditionOfTheButtonTo: "The Precondition Of The Button To [{message}]", onlyOneRecordCanBeselected: "Only One Record Can Be Selected", selectAtLeastOneRecord: "Please Select At Least One Record", requestPathEmpty: "Backend request path is empty", successfulSubmit: "Submit succeeded", successfulCompleteTask: "Task handled successfully", successfulAssign: "Task assigned successfully", successfulRetrieve: "Retrieve task succeeded", successfulDrawTask: "Task received successfully", successfulAbandonReceive: "The task was abandoned successfully", successfulReturnToPreviousTask: "Successfully returned to the previous phase", successfulEndInstance: "Forced to end the process successfully", selectNode: "Select Node", nodeName: "Node Name", nodeId: "Node Code", pleaseSelectNode: "Please Select Node", successfulReturnTaskTo: "Returned successfully", selectRemoveUsers: "Select Remove Task", transactorName: "Transactor Name", transactor: "Transactor Loginname", trustorName: "Trustor Name", pleaseSelectRemoverUsers: "Please select remove task", required: "{label} is required", formatMismatch: "{label} Format mismatch", overMaxLength: "{label} can only input a maximum of {value} characters", limitMinLength: "Enter at least {value} characters for {label}", flowNotStart: "Workflow Not Started", pleaseInputOpinion: "Please input opinion", opinion: "Opinion", pleaseInputRemark: "Please input remark", remark: "Remark", pleaseSelectCondition: "Please select condition", pleaseInputConditionName: "Please input condition name", conditionName: "Name", save: "Save", saveCondition: "Save Condition", popMsg: "Pop dialog lost the parameter of customSystem", noChartSetting: "No chart setting found", xxxNotEmpty: "{label}Not Empty", successfulStart: "Start succeeded", successfulInitiateExtract: "Initiate succeeded", successfulCancelExtract: "Cancel succeeded", taskMeaage1: "The Current Task Is A Subprocess And Cannot Reduce The Handler", taskMeaage2: "The Current Process Has Been Completed Or Cancelled, Or The Current Task Is A Concurrent Phase, So It Is Not Allowed To Reduce The Handler", taskMeaage3: "The Current Task Has Only One Handler And Cannot Be Reduced Any More", taskMeaage4: "The Process Has Been Completed Or There Are Concurrent Phases, Unable To Jump", taskMeaage5: "Please Modify The Handler For The Following Tasks", delTransactor: "Remove Transactor", handledBy: "Handled By", pleaseSelectRemoverTransactors: "Please select the remove transactor", copySuccess: "Copy successful" } };
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.3.15-
|
|
3
|
+
"version": "2.3.15-sit2",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
50
50
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
51
51
|
"@vue/test-utils": "^2.4.4",
|
|
52
|
-
"agilebuilder-ui": "1.1.57-
|
|
52
|
+
"agilebuilder-ui": "1.1.57-sit2",
|
|
53
53
|
"axios": "^1.6.8",
|
|
54
54
|
"cypress": "^13.6.6",
|
|
55
55
|
"element-plus": "^2.6.1",
|