super-page-runtime 2.3.14-sit1 → 2.3.14-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.
@@ -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 S, getDefaultValue as R, getModelFields as I } from "../page-init-util.js";
12
- import { updateChartDatasources as M, caculateShowCondition as N, getVariableValue as v, setVariableValue as x } from "../page-helper-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";
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 = S(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 = 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
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 = S(s2, t2);
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);
@@ -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 = S(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
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);
@@ -234,9 +234,24 @@ const D = { save: function(e2) {
234
234
  }(e2);
235
235
  }, extractWorkflow: function(e2) {
236
236
  return function(e3) {
237
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/initiate-extract", a2 = te(e3);
238
- t2.completeTaskParam && (a2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: e3._value.opinion, transactors: [e3._value.loginName] });
239
- return le(e3, a2, o2, "superPageRuntimeMessage.successfulInitiateExtract");
237
+ const t2 = e3.pageContext, s2 = t2.backendUrl;
238
+ let a2 = n(s2, t2.isTest) + "/dsc/workflow-commons/initiate-extract";
239
+ const i2 = te(e3);
240
+ if (t2.completeTaskParam) {
241
+ const s3 = [];
242
+ e3._value.loginName && s3.push(e3._value.loginName), i2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: e3._value.opinion, transactors: s3 };
243
+ }
244
+ return new Promise((t3, s3) => {
245
+ const n2 = e3.pageContext, r2 = n2.systemCode, p2 = n2.backendUrl;
246
+ if (a2 = o(a2, r2, p2, n2.isTest), !a2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
247
+ const d2 = c.post(a2, i2);
248
+ d2 && d2.then((s4) => {
249
+ let o2 = true;
250
+ s4 && (o2 = se(s4, false, n2, e3, null)), true === o2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulInitiateExtract") }), t3(true);
251
+ }).catch((e4) => {
252
+ s3(e4);
253
+ });
254
+ });
240
255
  }(e2);
241
256
  }, cancelExtractWorkflow: function(e2) {
242
257
  return function(e3) {
@@ -257,7 +272,7 @@ const D = { save: function(e2) {
257
272
  }, lineEditCreate: function(e2) {
258
273
  return function(e3) {
259
274
  const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = b(t2, s2);
260
- n2 && (e3.getDefaultValueFunc = R, n2.createRow(e3.listCode, {}, e3));
275
+ n2 && (e3.getDefaultValueFunc = S, n2.createRow(e3.listCode, {}, e3));
261
276
  }(e2);
262
277
  }, printLabel: function(e2) {
263
278
  return function(e3) {
@@ -320,7 +335,7 @@ function W(e2) {
320
335
  let o2 = null;
321
336
  n2 && n2.runtime && (o2 = n2.runtime.props);
322
337
  const a2 = o2 ? o2.state : void 0;
323
- o2 && (o2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
338
+ o2 && (o2.state = "disabled"), I(t2, s2, void 0, e2.isInitChart).then(() => {
324
339
  o2 && (o2.state = a2);
325
340
  }).catch(() => {
326
341
  o2 && (o2.state = a2);
@@ -329,7 +344,7 @@ function W(e2) {
329
344
  function L(e2, s2, o2, a2) {
330
345
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
331
346
  e2.clickUuid = s2.uuid;
332
- 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 };
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 };
333
348
  u2 && (b2.logSettingText = u2.join(""));
334
349
  const T2 = re(e2);
335
350
  let k2;
@@ -386,7 +401,7 @@ function F(e2, t2) {
386
401
  }
387
402
  function V(e2, n2, o2, a2, i2, r2, c2) {
388
403
  var _a;
389
- 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);
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);
390
405
  let m2 = c2;
391
406
  m2 || (m2 = e2.entity.data);
392
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 };
@@ -478,7 +493,7 @@ function z(e2, t2, s2, n2, o2) {
478
493
  Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
479
494
  const t4 = e4.source;
480
495
  if (!t4) return;
481
- const o3 = t4.split("."), a3 = v(n3, o3), i2 = e4.target, r2 = I(null, i2);
496
+ const o3 = t4.split("."), a3 = v(n3, o3), i2 = e4.target, r2 = M(null, i2);
482
497
  x(s3.entity, r2, a3);
483
498
  });
484
499
  }
@@ -555,17 +570,17 @@ function Z(e2, s2) {
555
570
  k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
556
571
  const y2 = t(a2);
557
572
  null != y2 && f2.append("isWorkflowEntity", y2 + "");
558
- const P2 = S(i2, a2);
573
+ const P2 = R(i2, a2);
559
574
  P2 && f2.append("functionCode", P2);
560
- const R2 = re(a2);
561
- f2.append("additionalParamMapStr", JSON.stringify(R2));
562
- const I2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
563
- f2.append("isPermission", I2 + "");
564
- const M2 = a2.systemCode;
565
- M2 && f2.append("systemCode", M2);
575
+ const S2 = re(a2);
576
+ f2.append("additionalParamMapStr", JSON.stringify(S2));
577
+ const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
578
+ f2.append("isPermission", M2 + "");
579
+ const I2 = a2.systemCode;
580
+ I2 && f2.append("systemCode", I2);
566
581
  const N2 = a2.backendUrl;
567
582
  let v2 = n(N2, a2.isTest) + "/dsc/commons/import-data";
568
- v2 = o(v2, M2, N2, a2.isTest), c.post(v2, f2).then((e3) => {
583
+ v2 = o(v2, I2, N2, a2.isTest), c.post(v2, f2).then((e3) => {
569
584
  if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
570
585
  else {
571
586
  let t2 = false;
@@ -586,7 +601,7 @@ function ee(e2, t2) {
586
601
  function te(e2) {
587
602
  var _a;
588
603
  const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
589
- let r2 = S(n2, t2);
604
+ let r2 = R(n2, t2);
590
605
  r2 || (r2 = i2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
591
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 };
592
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);
@@ -1,7 +1,7 @@
1
1
  import r from "./extract-workflow-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = t(r, [["__scopeId", "data-v-074ae461"]]);
4
+ const e = t(r, [["__scopeId", "data-v-51207a9f"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -18,7 +18,10 @@ const N = { class: "page-runtime-header-btn" }, h = { class: "dialog-footer" },
18
18
  }
19
19
  function B() {
20
20
  U.value.validate((e3, l2) => {
21
- e3 && C({ loginName: R.value.loginName, opinion: R.value.opinion }, V.pageContext, V.configure, "click");
21
+ if (e3) {
22
+ const e4 = { loginName: R.value.loginName, opinion: R.value.opinion };
23
+ C(e4, V.pageContext, V.configure, "click");
24
+ }
22
25
  });
23
26
  }
24
27
  return a(() => {
package/dist/es/style.css CHANGED
@@ -548,7 +548,7 @@
548
548
  }
549
549
  .amb-workflowbutton-runtime-view > div[data-v-3078f246] {
550
550
  width: auto;
551
- }.dialog-footer[data-v-074ae461] {
551
+ }.dialog-footer[data-v-51207a9f] {
552
552
  display: inline-flex;
553
553
  gap: 8px;
554
554
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.14-sit1",
3
+ "version": "2.3.14-sit2",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -48,7 +48,7 @@
48
48
  "@vitejs/plugin-vue-jsx": "^3.1.0",
49
49
  "@vue/eslint-config-prettier": "^8.0.0",
50
50
  "@vue/test-utils": "^2.4.4",
51
- "agilebuilder-ui": "1.1.54-sit1",
51
+ "agilebuilder-ui": "1.1.54-sit2",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",