super-page-runtime 2.3.42 → 2.3.43-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/api/page-expose-util.js +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +122 -122
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
- package/dist/es/components/runtime/utils/events/validator-util.js +204 -164
- package/dist/es/components/runtime/utils/page-init-util.js +38 -41
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- 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/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +95 -100
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- 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 +9 -11
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -25
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +20 -11
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +52 -52
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +6 -7
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +5 -6
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +47 -48
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +7 -9
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -9
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +10 -13
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +3 -4
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +34 -15
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ import { setStoreInfo as v } from "../store-util.js";
|
|
|
11
11
|
import { getPermissionCodes as I, getDefaultValue as S, getModelFields as R } from "../page-init-util.js";
|
|
12
12
|
import { caculateShowCondition as M, updateChartDatasources as x, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
|
|
13
13
|
import A from "./print-label.js";
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
14
|
+
import { getTableNameByTableUuid as E, getCurrentUserFileTasks as U, setFileTaskRead as _ } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as j, packageCustomRules as D } from "./validator-util.js";
|
|
16
16
|
import { functions as W } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as L } from "../page-store.js";
|
|
@@ -51,7 +51,7 @@ const Y = { 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;
|
|
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), T2 = I(l2, r2), k2 = { ids: a2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: b2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
@@ -286,8 +286,7 @@ const Y = { save: function(e2) {
|
|
|
286
286
|
let t2 = null;
|
|
287
287
|
try {
|
|
288
288
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
289
|
-
} catch (
|
|
290
|
-
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
289
|
+
} catch (e4) {
|
|
291
290
|
}
|
|
292
291
|
A.printLabel(e3, t2);
|
|
293
292
|
}(e2);
|
|
@@ -481,10 +480,11 @@ function oe(t2, n2, o2, s2, i2) {
|
|
|
481
480
|
let i3 = n3.props.base.successOperation;
|
|
482
481
|
const a3 = n3.props.base.isNeedValueMapping, r2 = y(t3, n3);
|
|
483
482
|
i3 || ce.includes(n3.name) || (i3 = "refresh");
|
|
484
|
-
if ("refresh" === i3)
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
483
|
+
if ("refresh" === i3) {
|
|
484
|
+
if (r2) {
|
|
485
|
+
w(t3, r2).refresh();
|
|
486
|
+
}
|
|
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), ae(t3, n3, s4, a3);
|
|
@@ -518,7 +518,7 @@ function ie(e2, t2, n2) {
|
|
|
518
518
|
const o2 = t2.props.base.successOperation;
|
|
519
519
|
if (!o2 || null === o2) return;
|
|
520
520
|
const s2 = t2.props.base.isNeedValueMapping;
|
|
521
|
-
"noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ?
|
|
521
|
+
"noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ? Ue(e2, n2.ID ? n2.ID : n2.id) : e2.canClick = true : "closeWindow" !== o2 && "closeWindowAndRefresh" !== o2 || (ae(e2, t2, n2, s2), e2.canClick = true);
|
|
522
522
|
}
|
|
523
523
|
function ae(e2, t2, n2, o2) {
|
|
524
524
|
const s2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -556,10 +556,10 @@ function le(e2, t2, n2, o2) {
|
|
|
556
556
|
const n3 = y(e2, t2);
|
|
557
557
|
if (n3) {
|
|
558
558
|
w(e2, n3).refresh();
|
|
559
|
-
}
|
|
559
|
+
}
|
|
560
560
|
} else if (i2 && "form" === i2) {
|
|
561
561
|
const t3 = e2.entity.data;
|
|
562
|
-
|
|
562
|
+
Ue(e2, t3.ID ? t3.ID : t3.id);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
}
|
|
@@ -573,7 +573,7 @@ function ue(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 $(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 ue(e2, o2, s2, i2) {
|
|
|
601
601
|
}
|
|
602
602
|
function pe(e2, s2) {
|
|
603
603
|
var _a, _b, _c;
|
|
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", B()), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
@@ -661,7 +661,7 @@ function me(e2) {
|
|
|
661
661
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
662
662
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
663
663
|
const d2 = ke(t2);
|
|
664
|
-
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
|
|
664
|
+
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]));
|
|
665
665
|
const m2 = n2.props.base.successOperation;
|
|
666
666
|
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
667
667
|
const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
@@ -993,7 +993,7 @@ function Ae(e2, t2, n2, o2, s2, i2) {
|
|
|
993
993
|
const o3 = m(), s3 = o3 ? o3.loginName : null;
|
|
994
994
|
if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && n3 && (n3.creator === s3 || n3.CREATOR === s3)) return true;
|
|
995
995
|
return false;
|
|
996
|
-
}(n2, 0, i2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? a2 =
|
|
996
|
+
}(n2, 0, i2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? a2 = Ee(n2) : "addTransactor" === t2 || "removeTransactor" === t2 ? a2 = function(e3) {
|
|
997
997
|
if (e3.processState && "SUBMIT" === e3.processState && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active) && "COUNTERSIGN" !== e3.processingMode) return true;
|
|
998
998
|
return false;
|
|
999
999
|
}(n2) : function(e3, t3) {
|
|
@@ -1022,12 +1022,12 @@ function Ae(e2, t2, n2, o2, s2, i2) {
|
|
|
1022
1022
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
return
|
|
1025
|
+
return a2;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function Ee(e2, t2, n2) {
|
|
1028
1028
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Ue(e2, t2) {
|
|
1031
1031
|
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, _e(e2, t2).then((t3) => {
|
|
1032
1032
|
e2.isRefresh = true;
|
|
1033
1033
|
});
|
|
@@ -1043,7 +1043,7 @@ function _e(e2, n2, s2) {
|
|
|
1043
1043
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1044
1044
|
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);
|
|
1045
1045
|
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 };
|
|
1046
|
-
if (
|
|
1046
|
+
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1047
1047
|
const t2 = {};
|
|
1048
1048
|
e3.tableUuids.forEach((e4) => {
|
|
1049
1049
|
const n4 = r(l2, u2, e4);
|
|
@@ -1100,7 +1100,7 @@ function _e(e2, n2, s2) {
|
|
|
1100
1100
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1101
1101
|
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);
|
|
1102
1102
|
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 };
|
|
1103
|
-
if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = De(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),
|
|
1103
|
+
if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = De(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) {
|
|
1104
1104
|
const t2 = {};
|
|
1105
1105
|
e3.tableUuids.forEach((e4) => {
|
|
1106
1106
|
const n4 = r(l2, u2, e4);
|
|
@@ -1179,7 +1179,7 @@ function qe(e2, t2, n2) {
|
|
|
1179
1179
|
}, 3e3));
|
|
1180
1180
|
}
|
|
1181
1181
|
function He(e2, t2) {
|
|
1182
|
-
return
|
|
1182
|
+
return U(e2, t2);
|
|
1183
1183
|
}
|
|
1184
1184
|
function Ge(e2, t2, n2, o2) {
|
|
1185
1185
|
_(e2, n2).then(() => {
|
|
@@ -1217,7 +1217,7 @@ export {
|
|
|
1217
1217
|
de as judgeDataNumber,
|
|
1218
1218
|
Be as listChartConditions,
|
|
1219
1219
|
le as refreshFormOrListPage,
|
|
1220
|
-
|
|
1220
|
+
Ue as refreshPage,
|
|
1221
1221
|
Le as saveChartConditionBase,
|
|
1222
1222
|
Y as standardEvents,
|
|
1223
1223
|
re as updateValuesWhenCloseDialog
|