super-page-runtime 2.3.14-sit2 → 2.3.14-sit3

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.
@@ -8,8 +8,8 @@ import T from "../eventBus.js";
8
8
  import w from "axios";
9
9
  import { handleEvent as k, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
10
10
  import { setStoreInfo as P } from "../store-util.js";
11
- import { getPermissionCodes as R, getDefaultValue as S, getModelFields as M } from "../page-init-util.js";
12
- import { updateChartDatasources as I, caculateShowCondition as N, getVariableValue as v, setVariableValue as x } from "../page-helper-util.js";
11
+ import { getPermissionCodes as S, getDefaultValue as R, getModelFields as M } from "../page-init-util.js";
12
+ import { updateChartDatasources as N, caculateShowCondition as I, getVariableValue as v, 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";
15
15
  import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
@@ -50,7 +50,7 @@ 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 = R(u2, r2), k2 = { ids: i2, functionCode: w2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
53
+ const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), w2 = S(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
55
  const y2 = u2.props.deleteLogicSetting;
56
56
  y2 && ("object" == typeof y2 ? k2.deleteLogicSetting = JSON.stringify(y2) : "string" == typeof y2 && (k2.deleteLogicSetting = y2));
@@ -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 = R(s2, t2);
86
+ const b2 = S(s2, t2);
87
87
  b2 && (d2 += "&functionCode=" + b2);
88
88
  t2.tableName && (d2 += "&tableName=" + t2.tableName);
89
89
  t2.code && (d2 += "&pageCode=" + t2.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 = R(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
114
+ const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = S(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 = S, n2.createRow(e3.listCode, {}, e3));
275
+ n2 && (e3.getDefaultValueFunc = R, n2.createRow(e3.listCode, {}, e3));
276
276
  }(e2);
277
277
  }, printLabel: function(e2) {
278
278
  return function(e3) {
@@ -335,7 +335,7 @@ function W(e2) {
335
335
  let o2 = null;
336
336
  n2 && n2.runtime && (o2 = n2.runtime.props);
337
337
  const a2 = o2 ? o2.state : void 0;
338
- o2 && (o2.state = "disabled"), I(t2, s2, void 0, e2.isInitChart).then(() => {
338
+ o2 && (o2.state = "disabled"), N(t2, s2, void 0, e2.isInitChart).then(() => {
339
339
  o2 && (o2.state = a2);
340
340
  }).catch(() => {
341
341
  o2 && (o2.state = a2);
@@ -344,7 +344,7 @@ function W(e2) {
344
344
  function L(e2, s2, o2, a2) {
345
345
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
346
346
  e2.clickUuid = s2.uuid;
347
- 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 };
347
+ 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: S(s2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
348
348
  u2 && (b2.logSettingText = u2.join(""));
349
349
  const T2 = re(e2);
350
350
  let k2;
@@ -401,7 +401,7 @@ function F(e2, t2) {
401
401
  }
402
402
  function V(e2, n2, o2, a2, i2, r2, c2) {
403
403
  var _a;
404
- 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);
404
+ const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = S(n2, e2);
405
405
  let m2 = c2;
406
406
  m2 || (m2 = e2.entity.data);
407
407
  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 };
@@ -570,17 +570,17 @@ function Z(e2, s2) {
570
570
  k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
571
571
  const y2 = t(a2);
572
572
  null != y2 && f2.append("isWorkflowEntity", y2 + "");
573
- const P2 = R(i2, a2);
573
+ const P2 = S(i2, a2);
574
574
  P2 && f2.append("functionCode", P2);
575
- const S2 = re(a2);
576
- f2.append("additionalParamMapStr", JSON.stringify(S2));
575
+ const R2 = re(a2);
576
+ f2.append("additionalParamMapStr", JSON.stringify(R2));
577
577
  const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
578
578
  f2.append("isPermission", M2 + "");
579
- const I2 = a2.systemCode;
580
- I2 && f2.append("systemCode", I2);
581
- const N2 = a2.backendUrl;
582
- let v2 = n(N2, a2.isTest) + "/dsc/commons/import-data";
583
- v2 = o(v2, I2, N2, a2.isTest), c.post(v2, f2).then((e3) => {
579
+ const N2 = a2.systemCode;
580
+ N2 && f2.append("systemCode", N2);
581
+ const I2 = a2.backendUrl;
582
+ let v2 = n(I2, a2.isTest) + "/dsc/commons/import-data";
583
+ v2 = o(v2, N2, I2, a2.isTest), c.post(v2, f2).then((e3) => {
584
584
  if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
585
585
  else {
586
586
  let t2 = false;
@@ -601,7 +601,7 @@ function ee(e2, t2) {
601
601
  function te(e2) {
602
602
  var _a;
603
603
  const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
604
- let r2 = R(n2, t2);
604
+ let r2 = S(n2, t2);
605
605
  r2 || (r2 = i2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
606
606
  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 };
607
607
  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);
@@ -667,7 +667,7 @@ function oe(e2) {
667
667
  let s3 = false;
668
668
  if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
669
669
  const t3 = e2.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
670
- s3 = N(t3, o2);
670
+ s3 = I(t3, o2);
671
671
  }
672
672
  true === s3 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e3) => !(!e3 || !e3.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e3 }) => {
673
673
  t2(e3);
@@ -721,7 +721,7 @@ async function ue(e2, t2) {
721
721
  if (void 0 === s4 || true === s4) {
722
722
  s4 = true;
723
723
  const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
724
- s4 = N(t4, o2);
724
+ s4 = I(t4, o2);
725
725
  }
726
726
  true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputRemark"), u().t("superPageRuntimeMessage.remark"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
727
727
  t3(e4);
@@ -855,10 +855,11 @@ function ge(e2, t2, s2, n2, o2) {
855
855
  return false;
856
856
  }(t2) : "extractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
857
857
  var _a;
858
- const n3 = d(), o3 = n3 ? n3.loginName : null;
858
+ const n3 = d();
859
+ const o3 = n3 ? n3.loginName : null;
859
860
  if (e3 == null ? void 0 : e3.processState) {
860
861
  if (((_a = t3 == null ? void 0 : t3.firstNodeInfo) == null ? void 0 : _a.nodeId) === (s3 == null ? void 0 : s3.CURRENT_ACTIVITY_ID)) return false;
861
- if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
862
+ if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && "MANUAL_END" !== (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
862
863
  }
863
864
  return false;
864
865
  }(t2, s2, o2) : "cancelExtractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.14-sit2",
3
+ "version": "2.3.14-sit3",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",