super-page-runtime 2.3.47-sit2 → 2.3.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
- package/dist/es/components/runtime/utils/events/validator-util.js +209 -206
- package/dist/es/components/runtime/utils/i18n-util.js +12 -9
- package/dist/es/components/runtime/utils/page-init-util.js +47 -45
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +104 -99
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.js +2 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.js +5 -5
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +21 -21
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.js +5 -3
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.js +3 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +42 -41
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.js +3 -1
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.js +8 -7
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -9
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +7 -6
- package/dist/es/components/runtime/views/super-page2.vue.js +99 -98
- package/package.json +2 -2
|
@@ -10,8 +10,8 @@ import { handleEvent as y, getTableUuid as P, doAfterClickEvent as v } from "./e
|
|
|
10
10
|
import { setStoreInfo as I } from "../store-util.js";
|
|
11
11
|
import { getPermissionCodes as S, getDefaultValue as R, getModelFields as M } from "../page-init-util.js";
|
|
12
12
|
import { caculateShowCondition as x, updateChartDatasources as N, getVariableValue as O, setVariableValue as A } from "../page-helper-util.js";
|
|
13
|
-
import
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
13
|
+
import U from "./print-label.js";
|
|
14
|
+
import { getTableNameByTableUuid as E, getCurrentUserFileTasks as j, setFileTaskRead as _ } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as D, packageCustomRules as W } from "./validator-util.js";
|
|
16
16
|
import { functions as L } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as B } from "../page-store.js";
|
|
@@ -51,7 +51,7 @@ const z = { save: function(e2) {
|
|
|
51
51
|
if (!a2 || 0 === a2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
52
52
|
p.confirm(l().t("superPageRuntimeMessage.whetherToConfirmDeletion"), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
53
53
|
var _a, _b, _c, _d, _e2, _f;
|
|
54
|
-
const r2 = e3.pageContext, l2 = e3.configureObj, u2 = l2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = l2.props.base.tableUuid ? l2.props.base.tableUuid : e3.tableUuid, f2 =
|
|
54
|
+
const r2 = e3.pageContext, l2 = e3.configureObj, u2 = l2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = l2.props.base.tableUuid ? l2.props.base.tableUuid : e3.tableUuid, f2 = E(r2, m2);
|
|
55
55
|
let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
56
56
|
g2 = n(g2, p2, d2, r2.isTest);
|
|
57
57
|
const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, b2 = !!o(r2) || !!r2.isWorkflowEntityOrg, k2 = S(l2, r2), h2 = { ids: a2, functionCode: k2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: b2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
@@ -255,7 +255,7 @@ const z = { save: function(e2) {
|
|
|
255
255
|
return Se(e3, i2, s2, "superPageRuntimeMessage.successfulRetrieve");
|
|
256
256
|
}(e2);
|
|
257
257
|
}, extractWorkflow: function(e2) {
|
|
258
|
-
return
|
|
258
|
+
return Ue(e2);
|
|
259
259
|
}, extractWorkflowEvent: function(e2) {
|
|
260
260
|
return function(e3) {
|
|
261
261
|
const t2 = e3.pageContext;
|
|
@@ -287,9 +287,10 @@ const z = { save: function(e2) {
|
|
|
287
287
|
let t2 = null;
|
|
288
288
|
try {
|
|
289
289
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
290
|
-
} catch (
|
|
290
|
+
} catch (t3) {
|
|
291
|
+
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
291
292
|
}
|
|
292
|
-
|
|
293
|
+
U.printLabel(e3, t2);
|
|
293
294
|
}(e2);
|
|
294
295
|
}, queryCharts: function(e2) {
|
|
295
296
|
K(e2);
|
|
@@ -480,11 +481,10 @@ function ie(t2, n2, o2, s2, i2) {
|
|
|
480
481
|
let i3 = n3.props.base.successOperation;
|
|
481
482
|
const a3 = n3.props.base.isNeedValueMapping, r2 = P(t3, n3);
|
|
482
483
|
i3 || ue.includes(n3.name) || (i3 = "refresh");
|
|
483
|
-
if ("refresh" === i3) {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
484
|
+
if ("refresh" === i3) if (r2) {
|
|
485
|
+
w(t3, r2).refresh();
|
|
486
|
+
} else console.error("tableUuid is empty");
|
|
487
|
+
else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
488
488
|
const s4 = e(t3.entity.page);
|
|
489
489
|
let i4 = o3;
|
|
490
490
|
i4 || (i4 = {}), Object.assign(s4, i4), ce(t3, n3, s4, a3);
|
|
@@ -556,7 +556,7 @@ function pe(e2, t2, n2, o2) {
|
|
|
556
556
|
const n3 = P(e2, t2);
|
|
557
557
|
if (n3) {
|
|
558
558
|
w(e2, n3).refresh();
|
|
559
|
-
}
|
|
559
|
+
} else console.error("tableUuid is empty");
|
|
560
560
|
} else if (i2 && "form" === i2) {
|
|
561
561
|
const t3 = e2.entity.data;
|
|
562
562
|
_e(e2, t3.ID ? t3.ID : t3.id);
|
|
@@ -573,7 +573,7 @@ function de(e2, o2, s2, i2) {
|
|
|
573
573
|
let T2 = d2.tableName;
|
|
574
574
|
if (o2) {
|
|
575
575
|
const t2 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
576
|
-
T2 =
|
|
576
|
+
T2 = E(d2, t2);
|
|
577
577
|
} else q(d2.code, d2.entity.data);
|
|
578
578
|
const k2 = function(e3, o3, s3, i3, r3, u3, d3, m3, f3) {
|
|
579
579
|
return new Promise((g3, C3) => {
|
|
@@ -601,7 +601,7 @@ function de(e2, o2, s2, i2) {
|
|
|
601
601
|
}
|
|
602
602
|
function me(e2, s2) {
|
|
603
603
|
var _a, _b, _c, _d, _e2;
|
|
604
|
-
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 =
|
|
604
|
+
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 = E(i2, d2), f2 = new FormData();
|
|
605
605
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
|
|
606
606
|
const g2 = (_b = (_a = a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
607
607
|
g2 && f2.append("currentOperation", g2), f2.append("isMobile", F()), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
@@ -663,7 +663,7 @@ function ge(e2) {
|
|
|
663
663
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
664
664
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
665
665
|
const d2 = ye(t2);
|
|
666
|
-
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
|
|
666
|
+
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] : console.error("ids参数类型错误"));
|
|
667
667
|
const m2 = n2.props.base.successOperation;
|
|
668
668
|
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
669
669
|
const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
@@ -906,7 +906,7 @@ function Ae(e2, o2) {
|
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function Ue(e2) {
|
|
910
910
|
const o2 = e2.pageContext, s2 = o2.backendUrl;
|
|
911
911
|
let i2 = t(s2, o2.isTest) + "/dsc/workflow-commons/initiate-extract";
|
|
912
912
|
const a2 = ge(e2);
|
|
@@ -926,7 +926,7 @@ function Ee(e2) {
|
|
|
926
926
|
});
|
|
927
927
|
});
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function Ee(e2, t2, n2, o2, s2, i2) {
|
|
930
930
|
var _a, _b, _c, _d, _e2, _f, _g, _h;
|
|
931
931
|
let a2 = false;
|
|
932
932
|
if (o2 && o2.archival) return a2;
|
|
@@ -1024,7 +1024,7 @@ function Ue(e2, t2, n2, o2, s2, i2) {
|
|
|
1024
1024
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
return a2;
|
|
1027
|
+
return e2.workflowOpinion, a2;
|
|
1028
1028
|
}
|
|
1029
1029
|
function je(e2, t2, n2) {
|
|
1030
1030
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
@@ -1045,7 +1045,7 @@ function De(e2, n2, s2) {
|
|
|
1045
1045
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1046
1046
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1047
1047
|
const f2 = p2 ? p2.taskId : null, C2 = l2, b2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1048
|
-
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1048
|
+
if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1049
1049
|
const t2 = {};
|
|
1050
1050
|
e3.tableUuids.forEach((e4) => {
|
|
1051
1051
|
const n4 = r(l2, u2, e4);
|
|
@@ -1102,7 +1102,7 @@ function De(e2, n2, s2) {
|
|
|
1102
1102
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1103
1103
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1104
1104
|
const f2 = p2 ? p2.taskId : null, C2 = l2, b2 = t(e3.backendUrl, e3.isTest), w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1105
|
-
if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = Le(m2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), f2 && (w2.taskId = f2), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (w2.withDataPermission = true), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1105
|
+
if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = Le(m2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), f2 && (w2.taskId = f2), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (w2.withDataPermission = true), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1106
1106
|
const t2 = {};
|
|
1107
1107
|
e3.tableUuids.forEach((e4) => {
|
|
1108
1108
|
const n4 = r(l2, u2, e4);
|
|
@@ -1207,7 +1207,7 @@ export {
|
|
|
1207
1207
|
Ae as doRemoveTransactors,
|
|
1208
1208
|
Me as doReturnTaskTo,
|
|
1209
1209
|
X as exportFormReport,
|
|
1210
|
-
|
|
1210
|
+
Ue as extractWorkflowFunc,
|
|
1211
1211
|
ye as getAdditionalParamMap,
|
|
1212
1212
|
De as getFormData,
|
|
1213
1213
|
xe as getRemoveSigner,
|
|
@@ -1215,7 +1215,7 @@ export {
|
|
|
1215
1215
|
oe as getSaveFormRequest,
|
|
1216
1216
|
ne as getSaveFormRequestWithRow,
|
|
1217
1217
|
Re as getTaskInformitions,
|
|
1218
|
-
|
|
1218
|
+
Ee as isVisibleWorkflowButton,
|
|
1219
1219
|
fe as judgeDataNumber,
|
|
1220
1220
|
Ve as listChartConditions,
|
|
1221
1221
|
pe as refreshFormOrListPage,
|