super-page-runtime 2.3.50-sit1 → 2.3.50
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/page-init-util.js +47 -45
- 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 +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/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 +104 -99
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- 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/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- 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.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- 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 +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/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 +8 -6
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
- 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 +45 -44
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +9 -8
- 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 +11 -9
- 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/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 +7 -6
- package/dist/es/components/runtime/views/super-page.vue2.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 b2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, C2 = !!o(r2) || !!r2.isWorkflowEntityOrg, k2 = S(l2, r2), h2 = { ids: a2, functionCode: k2, isPermission: b2 + "", systemCode: p2, isWorkflowEntity: C2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
@@ -255,7 +255,7 @@ const z = { save: function(e2) {
|
|
|
255
255
|
return Re(e3, i2, s2, "superPageRuntimeMessage.successfulRetrieve");
|
|
256
256
|
}(e2);
|
|
257
257
|
}, extractWorkflow: function(e2) {
|
|
258
|
-
return
|
|
258
|
+
return Ee(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);
|
|
@@ -484,11 +485,10 @@ function ae(t2, n2, o2, s2, i2) {
|
|
|
484
485
|
let i3 = n3.props.base.successOperation;
|
|
485
486
|
const a3 = n3.props.base.isNeedValueMapping, r2 = P(t3, n3);
|
|
486
487
|
i3 || pe.includes(n3.name) || (i3 = "refresh");
|
|
487
|
-
if ("refresh" === i3) {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
488
|
+
if ("refresh" === i3) if (r2) {
|
|
489
|
+
w(t3, r2).refresh();
|
|
490
|
+
} else console.error("tableUuid is empty");
|
|
491
|
+
else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
492
492
|
const s4 = e(t3.entity.page);
|
|
493
493
|
let i4 = o3;
|
|
494
494
|
i4 || (i4 = {}), Object.assign(s4, i4), le(t3, n3, s4, a3);
|
|
@@ -560,7 +560,7 @@ function de(e2, t2, n2, o2) {
|
|
|
560
560
|
const n3 = P(e2, t2);
|
|
561
561
|
if (n3) {
|
|
562
562
|
w(e2, n3).refresh();
|
|
563
|
-
}
|
|
563
|
+
} else console.error("tableUuid is empty");
|
|
564
564
|
} else if (i2 && "form" === i2) {
|
|
565
565
|
const t3 = e2.entity.data;
|
|
566
566
|
De(e2, t3.ID ? t3.ID : t3.id);
|
|
@@ -577,7 +577,7 @@ function me(e2, o2, s2, i2) {
|
|
|
577
577
|
let T2 = d2.tableName;
|
|
578
578
|
if (o2) {
|
|
579
579
|
const t2 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
580
|
-
T2 =
|
|
580
|
+
T2 = E(d2, t2);
|
|
581
581
|
} else q(d2.code, d2.entity.data);
|
|
582
582
|
const k2 = function(e3, o3, s3, i3, r3, u3, d3, m3, f3) {
|
|
583
583
|
return new Promise((g3, b3) => {
|
|
@@ -605,7 +605,7 @@ function me(e2, o2, s2, i2) {
|
|
|
605
605
|
}
|
|
606
606
|
function fe(e2, s2) {
|
|
607
607
|
var _a, _b, _c, _d, _e2;
|
|
608
|
-
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 =
|
|
608
|
+
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();
|
|
609
609
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
|
|
610
610
|
const g2 = (_b = (_a = a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
611
611
|
g2 && f2.append("currentOperation", g2), f2.append("isMobile", F()), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
@@ -667,7 +667,7 @@ function be(e2) {
|
|
|
667
667
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
668
668
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
669
669
|
const d2 = Pe(t2);
|
|
670
|
-
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
|
|
670
|
+
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参数类型错误"));
|
|
671
671
|
const m2 = n2.props.base.successOperation;
|
|
672
672
|
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
673
673
|
const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
@@ -897,7 +897,7 @@ function Ae(e2) {
|
|
|
897
897
|
if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
|
|
898
898
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function Ue(e2, o2) {
|
|
901
901
|
if (o2) {
|
|
902
902
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
903
903
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
@@ -910,7 +910,7 @@ function Ee(e2, o2) {
|
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Ee(e2) {
|
|
914
914
|
const o2 = e2.pageContext, s2 = o2.backendUrl;
|
|
915
915
|
let i2 = t(s2, o2.isTest) + "/dsc/workflow-commons/initiate-extract";
|
|
916
916
|
const a2 = be(e2);
|
|
@@ -1028,7 +1028,7 @@ function je(e2, t2, n2, o2, s2, i2) {
|
|
|
1028
1028
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
|
-
return a2;
|
|
1031
|
+
return e2.workflowOpinion, a2;
|
|
1032
1032
|
}
|
|
1033
1033
|
function _e(e2, t2, n2) {
|
|
1034
1034
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
@@ -1049,7 +1049,7 @@ function We(e2, n2, s2) {
|
|
|
1049
1049
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1050
1050
|
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);
|
|
1051
1051
|
const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1052
|
-
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1052
|
+
if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1053
1053
|
const t2 = {};
|
|
1054
1054
|
e3.tableUuids.forEach((e4) => {
|
|
1055
1055
|
const n4 = r(l2, u2, e4);
|
|
@@ -1106,7 +1106,7 @@ function We(e2, n2, s2) {
|
|
|
1106
1106
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1107
1107
|
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);
|
|
1108
1108
|
const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = t(e3.backendUrl, e3.isTest), w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1109
|
-
if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = Be(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) {
|
|
1109
|
+
if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = Be(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) {
|
|
1110
1110
|
const t2 = {};
|
|
1111
1111
|
e3.tableUuids.forEach((e4) => {
|
|
1112
1112
|
const n4 = r(l2, u2, e4);
|
|
@@ -1208,10 +1208,10 @@ export {
|
|
|
1208
1208
|
He as doFileTaskFunc,
|
|
1209
1209
|
fe as doImportFinally,
|
|
1210
1210
|
Oe as doRemoveSigners,
|
|
1211
|
-
|
|
1211
|
+
Ue as doRemoveTransactors,
|
|
1212
1212
|
xe as doReturnTaskTo,
|
|
1213
1213
|
X as exportFormReport,
|
|
1214
|
-
|
|
1214
|
+
Ee as extractWorkflowFunc,
|
|
1215
1215
|
Pe as getAdditionalParamMap,
|
|
1216
1216
|
We as getFormData,
|
|
1217
1217
|
Ne as getRemoveSigner,
|