super-page-runtime 2.3.39-sit2 → 2.3.40-sit1

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.
@@ -5,10 +5,10 @@ import { ElMessage as u, ElMessageBox as p, ElNotification as d } from "element-
5
5
  import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCache as b, getRunCurrentRole as C } from "agilebuilder-ui/src/utils/auth";
6
6
  import { getComponentRef as w } from "../global-refs.js";
7
7
  import T from "../eventBus.js";
8
- import k from "axios";
9
- import { handleEvent as h, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
8
+ import h from "axios";
9
+ import { handleEvent as k, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
10
10
  import { setStoreInfo as I } from "../store-util.js";
11
- import { getPermissionCodes as v, getDefaultValue as x, getModelFields as R } from "../page-init-util.js";
11
+ import { getPermissionCodes as v, getDefaultValue as R, getModelFields as x } from "../page-init-util.js";
12
12
  import { caculateShowCondition as S, updateChartDatasources as M, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
13
13
  import U from "./print-label.js";
14
14
  import { getTableNameByTableUuid as A, getCurrentUserFileTasks as E, setFileTaskRead as _ } from "../table-utils.js";
@@ -54,16 +54,16 @@ const Y = { save: function(e2) {
54
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 = A(r2, m2);
55
55
  let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
56
56
  g2 = n(g2, p2, d2, r2.isTest);
57
- const b2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, C2 = o(r2), T2 = v(l2, r2), k2 = { ids: i2, functionCode: T2, isPermission: b2 + "", systemCode: p2, isWorkflowEntity: C2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
58
- r2.beanName && (k2.beanName = r2.beanName);
59
- const h2 = l2.props.deleteLogicSetting;
60
- h2 && ("object" == typeof h2 ? k2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (k2.deleteLogicSetting = h2));
57
+ const b2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, C2 = o(r2), T2 = v(l2, r2), h2 = { ids: i2, functionCode: T2, isPermission: b2 + "", systemCode: p2, isWorkflowEntity: C2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
58
+ r2.beanName && (h2.beanName = r2.beanName);
59
+ const k2 = l2.props.deleteLogicSetting;
60
+ k2 && ("object" == typeof k2 ? h2.deleteLogicSetting = JSON.stringify(k2) : "string" == typeof k2 && (h2.deleteLogicSetting = k2));
61
61
  const y2 = (_a = l2.props.base) == null ? void 0 : _a.logSetting;
62
- y2 && (k2.logSettingText = y2.join(""));
62
+ y2 && (h2.logSettingText = y2.join(""));
63
63
  const P2 = l2.props.base.isSafeDelete;
64
- P2 && (k2.isSafeDelete = P2);
64
+ P2 && (h2.isSafeDelete = P2);
65
65
  const I2 = (_c = (_b = l2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
66
- I2 && (k2.currentOperation = I2), k2.isMobile = B(), c.delete(g2, { data: k2 }).then((e4) => {
66
+ I2 && (h2.currentOperation = I2), h2.isMobile = B(), c.delete(g2, { data: h2 }).then((e4) => {
67
67
  const t2 = w(r2, m2);
68
68
  t2 && (t2.isDeleteChange(true), t2.clearSelections()), ne(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
69
69
  }).catch((e4) => {
@@ -78,37 +78,36 @@ const Y = { save: function(e2) {
78
78
  !function(e3) {
79
79
  var _a, _b, _c;
80
80
  const n2 = e3.pageContext, o2 = e3.configureObj, s2 = o2.props.base, i2 = a(s2.templateFiles, n2, o2);
81
- let r2, l2;
82
- i2 && i2.length > 0 && (r2 = i2[0].templateUuid, l2 = i2[0].templateName);
83
- const u2 = n2.systemCode, p2 = n2.backendUrl;
84
- let d2 = l2, m2 = "?1=1";
85
- r2 && d2 && "undefined" !== r2 && "undefined" !== d2 && "null" !== r2 && "null" !== d2 ? m2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(d2) : d2 ? m2 += "&showName=" + encodeURI(d2) : n2.label && (m2 += "&showName=" + encodeURI(n2.label) + ".xlsx", d2 = n2.label + ".xlsx");
86
- const b2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
87
- b2 && (m2 += "&logSettingText=" + b2.join(""));
88
- u2 && (m2 += "&systemCode=" + u2);
89
- const C2 = e3.listCode;
90
- C2 && (m2 += "&listCode=" + C2);
91
- n2.beanName && (m2 += "&beanName=" + n2.beanName);
92
- const w2 = v(o2, n2);
93
- w2 && (m2 += "&functionCode=" + w2);
94
- n2.tableName && (m2 += "&tableName=" + n2.tableName);
95
- n2.code && (m2 += "&pageCode=" + n2.code);
96
- n2.version && (m2 += "&pageVersion=" + n2.version);
97
- const T2 = f();
98
- T2 && (m2 += "&JWT=" + T2);
99
- const k2 = (_c = (_b = o2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
100
- k2 && (m2 += "&currentOperation=" + encodeURI(k2));
101
- m2 += "&isMobile=" + B();
102
- const h2 = "_RUN_CURRENT_ROLE", y2 = g(h2);
103
- y2 && (m2 += "&" + h2 + "=" + y2);
81
+ let r2, c2;
82
+ i2 && i2.length > 0 && (r2 = i2[0].templateUuid, c2 = i2[0].templateName);
83
+ const l2 = n2.systemCode, u2 = n2.backendUrl;
84
+ let p2 = c2, d2 = "?1=1";
85
+ r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? d2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? d2 += "&showName=" + encodeURI(p2) : n2.label && (d2 += "&showName=" + encodeURI(n2.label) + ".xlsx", p2 = n2.label + ".xlsx");
86
+ const m2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
87
+ m2 && (d2 += "&logSettingText=" + m2.join(""));
88
+ l2 && (d2 += "&systemCode=" + l2);
89
+ const b2 = e3.listCode;
90
+ b2 && (d2 += "&listCode=" + b2);
91
+ n2.beanName && (d2 += "&beanName=" + n2.beanName);
92
+ const C2 = v(o2, n2);
93
+ C2 && (d2 += "&functionCode=" + C2);
94
+ n2.tableName && (d2 += "&tableName=" + n2.tableName);
95
+ n2.code && (d2 += "&pageCode=" + n2.code);
96
+ n2.version && (d2 += "&pageVersion=" + n2.version);
97
+ const w2 = f();
98
+ w2 && (d2 += "&JWT=" + w2);
99
+ const T2 = (_c = (_b = o2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
100
+ T2 && (d2 += "&currentOperation=" + encodeURI(T2));
101
+ d2 += "&isMobile=" + B();
102
+ const h2 = "_RUN_CURRENT_ROLE", k2 = g(h2);
103
+ k2 && (d2 += "&" + h2 + "=" + k2);
104
104
  if (s2) {
105
- m2 += "&isPermission=" + (void 0 === s2.isPermission || "true" === s2.isPermission || s2.isPermission);
105
+ d2 += "&isPermission=" + (void 0 === s2.isPermission || "true" === s2.isPermission || s2.isPermission);
106
106
  }
107
- const P2 = t(p2, n2.isTest);
108
- c.get(P2 + "/dsc/commons/download-files" + m2, { responseType: "blob" }).then((e4) => {
109
- var _a2;
110
- const t2 = d2 || "template.xlsx", n3 = { xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", xls: "application/vnd.ms-excel", docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", doc: "application/msword", pdf: "application/pdf", csv: "text/csv" }[((_a2 = t2.split(".").pop()) == null ? void 0 : _a2.toLowerCase()) ?? "xlsx"] ?? "application/octet-stream", o3 = new Blob([e4], { type: n3 }), s3 = URL.createObjectURL(o3), a2 = document.createElement("a");
111
- a2.style.display = "none", a2.href = s3, a2.setAttribute("download", t2), document.body.appendChild(a2), a2.click(), document.body.removeChild(a2), URL.revokeObjectURL(s3);
107
+ const y2 = t(u2, n2.isTest);
108
+ window.$http({ url: encodeURI(y2 + "/dsc/commons/download-files" + d2), method: "get", responseType: "blob" }).then((e4) => {
109
+ const t2 = document.createElement("a"), n3 = new Blob([e4], { type: "application/vnd.ms-excel;charset=UTF-8" });
110
+ t2.style.display = "none", t2.remove("download"), t2.href = URL.createObjectURL(n3), t2.setAttribute("download", p2 || "template.xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
112
111
  });
113
112
  }(e2);
114
113
  }, import: function(e2) {
@@ -139,7 +138,16 @@ const Y = { save: function(e2) {
139
138
  }, workflowSave: function(e2) {
140
139
  return T.$emit("clearTableAllStartEditing"), async function(e3) {
141
140
  return new Promise((o2, s2) => {
142
- const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
141
+ const a2 = e3.pageContext;
142
+ if (function(e4) {
143
+ if (e4.fileuploadInfo && e4.fileuploadInfo.length > 0) {
144
+ const t2 = e4.fileuploadInfo[0];
145
+ let n2;
146
+ return n2 = t2.isTable && t2.tableTitle && void 0 !== t2.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: t2.label, tableTitle: t2.tableTitle, rowIndex: t2.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: t2.label }), u({ message: n2, type: "warning", showClose: true }), true;
147
+ }
148
+ return false;
149
+ }(a2)) return void o2(false);
150
+ const i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
143
151
  let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons";
144
152
  if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
145
153
  const m2 = de(e3);
@@ -288,7 +296,7 @@ const Y = { save: function(e2) {
288
296
  }, lineEditCreate: function(e2) {
289
297
  return function(e3) {
290
298
  const t2 = e3.pageContext, n2 = e3.tableUuid, o2 = w(t2, n2);
291
- o2 && (e3.getDefaultValueFunc = x, o2.createRow(e3.listCode, {}, e3));
299
+ o2 && (e3.getDefaultValueFunc = R, o2.createRow(e3.listCode, {}, e3));
292
300
  }(e2);
293
301
  }, printLabel: function(e2) {
294
302
  return function(e3) {
@@ -334,7 +342,7 @@ const Y = { save: function(e2) {
334
342
  u2.isMobile = B(), u2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", u2.watermark = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "";
335
343
  const m2 = n2.backendUrl, f2 = t(m2, n2.isTest) + "/dsc/commons/exportChart";
336
344
  X();
337
- k.post(f2, u2, { responseType: "blob" }).then((e4) => {
345
+ h.post(f2, u2, { responseType: "blob" }).then((e4) => {
338
346
  const t2 = document.createElement("a");
339
347
  t2.style.display = "none", t2.href = URL.createObjectURL(e4.data), t2.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
340
348
  }).finally(() => {
@@ -387,13 +395,13 @@ function K(e2, n2, s2, a2) {
387
395
  l2 && (C2.logSettingText = l2.join(""));
388
396
  const T2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
389
397
  T2 && (C2.currentOperation = T2), C2.isMobile = B();
390
- const h2 = Te(e2);
398
+ const k2 = Te(e2);
391
399
  let y2;
392
- C2.additionalParamMap = h2, C2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", C2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", y2 = a2 ? function(e3, n3, o2, s3) {
400
+ C2.additionalParamMap = k2, C2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", C2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", y2 = a2 ? function(e3, n3, o2, s3) {
393
401
  return new Promise((a3, i3) => {
394
402
  const r3 = t(n3, s3) + "/dsc/commons/export-pdf";
395
403
  X();
396
- const c3 = k.post(r3, o2, { headers: { "content-type": "application/json" }, responseType: "blob" });
404
+ const c3 = h.post(r3, o2, { headers: { "content-type": "application/json" }, responseType: "blob" });
397
405
  window.$message.info("正在导出中..."), c3.then((t2) => {
398
406
  const n4 = new Blob([t2.data]), o3 = document.createElement("a");
399
407
  o3.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", o3.style.display = "none", o3.target = "_blank", o3.href = URL.createObjectURL(n4), document.body.appendChild(o3), o3.click(), URL.revokeObjectURL(o3.href), document.body.removeChild(o3), a3(true);
@@ -405,7 +413,7 @@ function K(e2, n2, s2, a2) {
405
413
  return new Promise((a3, i3) => {
406
414
  const r3 = t(n3, s3) + "/dsc/commons/export-reports";
407
415
  X();
408
- k.post(r3, o2, { responseType: "blob" }).then((t2) => {
416
+ h.post(r3, o2, { responseType: "blob" }).then((t2) => {
409
417
  const n4 = new Blob([t2.data]);
410
418
  let o3 = "报告.xlsx";
411
419
  e3 && (o3 = e3);
@@ -422,11 +430,11 @@ function K(e2, n2, s2, a2) {
422
430
  });
423
431
  }
424
432
  function X() {
425
- k.defaults.headers.common.Authorization = f();
433
+ h.defaults.headers.common.Authorization = f();
426
434
  const e2 = C();
427
435
  if (e2) {
428
436
  const t2 = "_RUN_CURRENT_ROLE";
429
- k.defaults.headers.common[t2] = e2;
437
+ h.defaults.headers.common[t2] = e2;
430
438
  }
431
439
  }
432
440
  function Q(e2, t2) {
@@ -465,8 +473,8 @@ function Z(e2, t2, n2, a2, i2, r2, c2) {
465
473
  w2 && (f2.beanName = w2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
466
474
  const T2 = Te(e2);
467
475
  f2.additionalParamMap = T2, void 0 !== n2 && (f2.unControlVersion = n2);
468
- const k2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
469
- return k2 && (f2.currentOperation = k2), f2.isMobile = B(), f2;
476
+ const h2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
477
+ return h2 && (f2.currentOperation = h2), f2.isMobile = B(), f2;
470
478
  }
471
479
  function ee(e2, o2, s2, a2, i2, r2, l2, u2, p2) {
472
480
  const d2 = e2.systemCode, m2 = e2.backendUrl, f2 = Z(e2, o2, a2, i2, r2, null, l2);
@@ -544,11 +552,11 @@ function ie(e2, t2, n2, o2, s2) {
544
552
  Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
545
553
  const t4 = e4.source;
546
554
  if (!t4) return;
547
- const s3 = t4.split("."), a3 = N(o3, s3), i2 = e4.target, r2 = R(null, i2);
555
+ const s3 = t4.split("."), a3 = N(o3, s3), i2 = e4.target, r2 = x(null, i2);
548
556
  O(n3.entity, r2, a3);
549
557
  });
550
558
  }
551
- }(n2, s2, e2), h(null, e2, t2, "setValue", { sourceModel: n2, sourceTableName: o2, entity: e2.entity.data, targetTableName: a2 });
559
+ }(n2, s2, e2), k(null, e2, t2, "setValue", { sourceModel: n2, sourceTableName: o2, entity: e2.entity.data, targetTableName: a2 });
552
560
  }
553
561
  const re = ["dropdown"];
554
562
  function ce(e2, t2, n2, o2) {
@@ -585,7 +593,7 @@ function le(e2, o2, s2, a2) {
585
593
  const t2 = f2.props.base.tableUuid ? f2.props.base.tableUuid : e2.tableUuid;
586
594
  T2 = A(m2, t2);
587
595
  } else $(m2.code, m2.entity.data);
588
- const k2 = function(e3, o3, s3, a3, r3, u3, d3, m3, f3) {
596
+ const h2 = function(e3, o3, s3, a3, r3, u3, d3, m3, f3) {
589
597
  return new Promise((g3, b3) => {
590
598
  const C3 = o3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
591
599
  p.confirm(l().t(w3, { name: C3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
@@ -602,7 +610,7 @@ function le(e2, o2, s2, a2) {
602
610
  });
603
611
  });
604
612
  }(m2, f2, a2, w2, u2, g2, s2, b2, T2);
605
- k2 ? k2.then((e3) => {
613
+ h2 ? h2.then((e3) => {
606
614
  !o2 && e3 && q(m2.code, m2.entity.data), ne(m2, f2, e3, "superPageRuntimeMessage.successfulSave", o2), r2(e3);
607
615
  }).catch((e3) => {
608
616
  d2(e3);
@@ -624,24 +632,24 @@ function ue(e2, s2) {
624
632
  w2 && f2.append("autoSetValueData", w2);
625
633
  const T2 = a2.formNoRuleCode;
626
634
  T2 && f2.append("formNoRuleCode", T2);
627
- const k2 = e2.listCode;
628
- k2 && f2.append("listCode", k2);
629
- let h2 = false;
630
- h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", a2.code);
635
+ const h2 = e2.listCode;
636
+ h2 && f2.append("listCode", h2);
637
+ let k2 = false;
638
+ k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
631
639
  const y2 = o(a2);
632
640
  null != y2 && f2.append("isWorkflowEntity", y2 + "");
633
641
  const I2 = v(i2, a2);
634
642
  I2 && f2.append("functionCode", I2);
635
- const x2 = Te(a2);
636
- f2.append("additionalParamMapStr", JSON.stringify(x2));
637
- const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
638
- f2.append("isPermission", R2 + "");
643
+ const R2 = Te(a2);
644
+ f2.append("additionalParamMapStr", JSON.stringify(R2));
645
+ const x2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
646
+ f2.append("isPermission", x2 + "");
639
647
  const S2 = a2.systemCode;
640
648
  S2 && f2.append("systemCode", S2);
641
649
  const M2 = a2.backendUrl;
642
650
  let N2 = t(M2, a2.isTest) + "/dsc/commons/import-data";
643
651
  N2 = n(N2, S2, M2, a2.isTest), c.post(N2, f2).then((e3) => {
644
- if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(a2);
652
+ if (k2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(a2);
645
653
  else {
646
654
  let t2 = false;
647
655
  e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), ne(a2, i2, e3, null, true), a2.result = t2, P(a2, i2);
@@ -783,7 +791,7 @@ function Te(t2) {
783
791
  return o2 && Object.assign(n2, o2), n2;
784
792
  }
785
793
  }
786
- function ke(e2, o2) {
794
+ function he(e2, o2) {
787
795
  if (o2) {
788
796
  const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
789
797
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
@@ -796,7 +804,7 @@ function ke(e2, o2) {
796
804
  });
797
805
  }
798
806
  }
799
- function he(e2, o2) {
807
+ function ke(e2, o2) {
800
808
  if (o2) {
801
809
  const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
802
810
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
@@ -878,14 +886,14 @@ function ve(e2, n2) {
878
886
  P(o2, s2);
879
887
  });
880
888
  }
881
- function xe(e2) {
889
+ function Re(e2) {
882
890
  const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
883
891
  let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-signers";
884
892
  const r2 = de(e2);
885
893
  if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
886
894
  u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
887
895
  }
888
- function Re(e2, o2) {
896
+ function xe(e2, o2) {
889
897
  if (o2) {
890
898
  const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
891
899
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
@@ -1066,10 +1074,10 @@ function Ee(e2, n2, s2) {
1066
1074
  }
1067
1075
  m2 && (C2.ids = je(m2)), f2 ? C2.taskId = f2 : d2 ? C2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (C2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (C2.withDataPermission = true), C2.isMobile = B();
1068
1076
  const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = L();
1069
- T2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
1070
- const k2 = H(e3.code, C2.id);
1077
+ T2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData");
1078
+ const h2 = H(e3.code, C2.id);
1071
1079
  c.post(w2, C2).then(async (t2) => {
1072
- k2 && await _e(e3, C2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, me(t2, true, e3), e3.workflowRules = j(e3);
1080
+ h2 && await _e(e3, C2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, me(t2, true, e3), e3.workflowRules = j(e3);
1073
1081
  const n4 = e3.pageType;
1074
1082
  n4 && "form" === n4 && function(e4) {
1075
1083
  (function(e5) {
@@ -1102,7 +1110,7 @@ function Ee(e2, n2, s2) {
1102
1110
  }
1103
1111
  e5.actionPermissionMap = n5;
1104
1112
  }(e4);
1105
- }(e3), e3.canClick = true, h(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), s3(t2);
1113
+ }(e3), e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), s3(t2);
1106
1114
  }).catch((t2) => {
1107
1115
  e3.canClick = true, a3(t2);
1108
1116
  });
@@ -1122,13 +1130,13 @@ function Ee(e2, n2, s2) {
1122
1130
  }), w2.listCodesMap = t2;
1123
1131
  }
1124
1132
  e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), w2.isMobile = B();
1125
- const T2 = C2 + "/dsc/commons/gets", k2 = L();
1126
- k2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
1133
+ const T2 = C2 + "/dsc/commons/gets", h2 = L();
1134
+ h2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData");
1127
1135
  const y2 = H(e3.code, w2.id);
1128
1136
  c.post(T2, w2).then(async (t2) => {
1129
1137
  t2 && (y2 && await _e(e3, w2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
1130
1138
  const n4 = e3.customRules, o3 = e3.rules, a4 = D(e3, n4, o3);
1131
- e3.rules = a4, e3.canClick = true, h(null, e3, e3, "afterFormLoadData"), k2.setFormPageDataLoadState(true), s3(t2);
1139
+ e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), s3(t2);
1132
1140
  }).catch((t2) => {
1133
1141
  e3.canClick = true, a3(t2);
1134
1142
  });
@@ -1208,20 +1216,20 @@ export {
1208
1216
  ne as dealAfterOperate,
1209
1217
  me as dealCompleteTaskParam,
1210
1218
  Be as deleteChartCondition,
1211
- ke as doAddSigner,
1212
- he as doAddTransactor,
1219
+ he as doAddSigner,
1220
+ ke as doAddTransactor,
1213
1221
  be as doAssign,
1214
1222
  ye as doCreateCopyTask,
1215
1223
  Fe as doFileTaskFunc,
1216
1224
  ue as doImportFinally,
1217
- Re as doRemoveSigners,
1225
+ xe as doRemoveSigners,
1218
1226
  Me as doRemoveTransactors,
1219
1227
  ve as doReturnTaskTo,
1220
1228
  K as exportFormReport,
1221
1229
  Ne as extractWorkflowFunc,
1222
1230
  Te as getAdditionalParamMap,
1223
1231
  Ee as getFormData,
1224
- xe as getRemoveSigner,
1232
+ Re as getRemoveSigner,
1225
1233
  Se as getRemoveTransactor,
1226
1234
  te as getSaveFormRequest,
1227
1235
  ee as getSaveFormRequestWithRow,
@@ -1,7 +1,7 @@
1
- import e from "./card-runtime.vue2.js";
1
+ import r from "./card-runtime.vue2.js";
2
2
  /* empty css */
3
- import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-3cee8aad"]]);
3
+ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = e(r, [["__scopeId", "data-v-8157d835"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,29 +1,36 @@
1
- import { defineComponent as e, computed as o, ref as t, onMounted as i, nextTick as n, resolveComponent as r, createBlock as l, openBlock as s, unref as u, normalizeClass as a, normalizeStyle as p, createSlots as c, withCtx as f, createElementVNode as g, createElementBlock as m, Fragment as y, renderList as d, createCommentVNode as v, createTextVNode as x, toDisplayString as C } from "vue";
1
+ import { defineComponent as e, ref as o, computed as t, onMounted as i, nextTick as n, resolveComponent as r, createBlock as l, openBlock as s, unref as a, normalizeClass as u, normalizeStyle as p, createSlots as c, withCtx as f, createElementVNode as g, createElementBlock as m, Fragment as y, renderList as d, createCommentVNode as x, createTextVNode as v, toDisplayString as C } from "vue";
2
2
  import { ElCard as b } from "element-plus";
3
3
  import { SuperIcon as h } from "agilebuilder-ui";
4
- import { ArrowUp as k, ArrowDown as w } from "@element-plus/icons-vue";
5
- import S from "../../object-render.vue.js";
4
+ import { ArrowUp as k, ArrowDown as T } from "@element-plus/icons-vue";
5
+ import w from "../../object-render.vue.js";
6
6
  import { $t as j } from "../../../../utils/i18n-util.js";
7
- import { handleAfterInitEvent as T } from "../../../../utils/events/event-util.js";
8
- const V = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
7
+ import { handleAfterInitEvent as S } from "../../../../utils/events/event-util.js";
8
+ import { getValueFromVariable as V } from "../../../../utils/page-helper-util.js";
9
+ const _ = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
9
10
  var _a, _b;
10
- const _ = e2;
11
- _.configure.items || (_.configure.items = []);
12
- const R = o(() => {
11
+ const R = e2, z = o("");
12
+ if (R.configure.props.base.dynamicTexts && R.configure.props.base.dynamicTexts.length > 0) {
13
+ let e3 = "";
14
+ R.configure.props.base.dynamicTexts.forEach((o2) => {
15
+ e3 += V(R.pageContext.entity, o2);
16
+ }), z.value = e3;
17
+ } else z.value = j(R.configure.props.base.title);
18
+ R.configure.items || (R.configure.items = []);
19
+ const D = t(() => {
13
20
  var _a2;
14
- return [true, void 0].includes((_a2 = _.configure.props) == null ? void 0 : _a2.isCollapse);
15
- }), z = t(null), D = t(!((_a = _.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = _.configure.props) == null ? void 0 : _b.isCollapseShow)), q = _.configure.runtime ? _.configure.runtime : {}, A = q.style, B = q.class, E = q.headerStyle, F = q.contentStyle, G = () => R.value && (D.value = !D.value);
21
+ return [true, void 0].includes((_a2 = R.configure.props) == null ? void 0 : _a2.isCollapse);
22
+ }), E = o(null), q = o(!((_a = R.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = R.configure.props) == null ? void 0 : _b.isCollapseShow)), A = R.configure.runtime ? R.configure.runtime : {}, B = A.style, F = A.class, G = A.headerStyle, H = A.contentStyle, I = () => D.value && (q.value = !q.value);
16
23
  return i(() => {
17
24
  n(() => {
18
- T(null, _.pageContext, _.configure, { componentRef: z.value, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
25
+ S(null, R.pageContext, R.configure, { componentRef: E.value, entity: R.pageContext.entity.data, pageData: R.pageContext.entity.page });
19
26
  });
20
- }), V2({ test: function() {
21
- _.configure.props.title = "teee";
27
+ }), _2({ test: function() {
28
+ R.configure.props.title = "teee";
22
29
  } }), (e3, o2) => {
23
30
  const t2 = r("el-link");
24
- return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p(u(A)), "data-collapse": String(D.value), class: a(["yx-card-box-view-main", u(B)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(u(F)) }, [(s(true), m(y, null, d(e3.configure.items, (o3, t3) => (s(), l(S, { key: o3.uuid, pageContext: e3.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: G }, [g("div", { class: "yx-card-box-view-title", style: p(u(E)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (s(), l(u(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : v("", true), x(" " + C(u(j)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(t2, { key: 0, underline: false, icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : v("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
31
+ return s(), l(a(b), { ref_key: "thisRef", ref: E, style: p(a(B)), "data-collapse": String(q.value), class: u(["yx-card-box-view-main", a(F)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(a(H)) }, [(s(true), m(y, null, d(e3.configure.items, (o3, t3) => (s(), l(w, { key: o3.uuid, pageContext: e3.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: I }, [g("div", { class: "yx-card-box-view-title", style: p(a(G)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (s(), l(a(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : x("", true), v(" " + C(z.value), 1)], 4), D.value ? (s(), l(t2, { key: 0, underline: false, icon: q.value ? a(k) : a(T), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
25
32
  };
26
33
  } });
27
34
  export {
28
- V as default
35
+ _ as default
29
36
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./super-page.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = p(e, [["__scopeId", "data-v-07f0e7b6"]]);
4
+ const r = p(e, [["__scopeId", "data-v-f7e29bdb"]]);
5
5
  export {
6
6
  r as default
7
7
  };