super-page-runtime 2.2.55 → 2.2.59

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.
Files changed (26) hide show
  1. package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
  2. package/dist/es/components/runtime/utils/events/standard-event.js +78 -82
  3. package/dist/es/components/runtime/utils/page-helper-util.d.ts +0 -2
  4. package/dist/es/components/runtime/utils/page-helper-util.js +0 -14
  5. package/dist/es/components/runtime/utils/page-init-util.js +10 -21
  6. package/dist/es/components/runtime/utils/tree-utils.js +15 -49
  7. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +1 -1
  9. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +1 -1
  10. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +71 -5
  11. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -72
  12. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -4
  13. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  14. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  15. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +19 -22
  16. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -4
  17. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +45 -113
  18. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +54 -59
  19. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  20. package/dist/es/index.d.ts +1 -2
  21. package/dist/es/index.js +0 -2
  22. package/dist/es/style.css +26 -370
  23. package/package.json +2 -2
  24. package/dist/es/assets/file.png.js +0 -4
  25. package/dist/es/assets/folder.png.js +0 -4
  26. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +0 -94
@@ -64,7 +64,7 @@ export declare function dealCompleteTaskParam(commonEntity: any, isInit: any, pa
64
64
  export declare function doAssign(params: any, selectNodeInfo: any): void;
65
65
  export declare function getAdditionalParamMap(pageContext: any): any;
66
66
  export declare function doAddSigner(params: any, selectNodeInfo: any): void;
67
- export declare function doCreateCopyTask(params: any, selectNodeInfo: any): Promise<void>;
67
+ export declare function doCreateCopyTask(params: any, selectNodeInfo: any): void;
68
68
  export declare function getTaskInformitions(params: any): any;
69
69
  export declare function doReturnTaskTo(params: any, selectTaskNode: any): void;
70
70
  export declare function getRemoveSigner(params: any): any;
@@ -183,22 +183,22 @@ const _ = { save: function(e2) {
183
183
  }, drawTask: function(e2) {
184
184
  return function(e3) {
185
185
  const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = K(e3);
186
- return ie(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
186
+ return oe(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
187
187
  }(e2);
188
188
  }, abandonReceive: function(e2) {
189
189
  return function(e3) {
190
190
  const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = K(e3);
191
- return ie(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
191
+ return oe(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
192
192
  }(e2);
193
193
  }, returnToPreviousTask: function(e2) {
194
194
  return function(e3) {
195
195
  const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = K(e3);
196
- return ie(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
196
+ return oe(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
197
197
  }(e2);
198
198
  }, endInstance: function(e2) {
199
199
  return function(e3) {
200
200
  const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 = K(e3);
201
- return ie(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
201
+ return oe(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
202
202
  }(e2);
203
203
  }, returnTaskTo: function(e2) {
204
204
  return function(e3) {
@@ -213,7 +213,7 @@ const _ = { save: function(e2) {
213
213
  }, retrieveTask: function(e2) {
214
214
  return function(e3) {
215
215
  const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 = K(e3);
216
- return ie(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
216
+ return oe(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
217
217
  }(e2);
218
218
  }, viewDetail: function(e2) {
219
219
  }, lineEditCreate: function(e2) {
@@ -285,7 +285,7 @@ function D(e2, s2, o2, i2) {
285
285
  var _a;
286
286
  const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = O.getFormViewData(e2), T2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, y2 = { entity: b2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: w(s2, e2), tableName: f2, isPermission: T2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
287
287
  u2 && (y2.logSettingText = u2.join(""));
288
- const P2 = se(e2);
288
+ const P2 = te(e2);
289
289
  let k2;
290
290
  y2.additionalParamMap = P2, k2 = i2 ? function(e3, t2, s3, o3) {
291
291
  return new Promise((i3, a3) => {
@@ -338,13 +338,13 @@ function B(e2, n2, o2, i2, a2, r2, c2) {
338
338
  r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
339
339
  const g2 = n2.props.base.conversionCodes;
340
340
  g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
341
- const b2 = fe(n2);
341
+ const b2 = me(n2);
342
342
  b2 && (f2.autoSetValueData = b2);
343
343
  const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
344
344
  C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
345
345
  const T2 = e2.beanName;
346
346
  T2 && (f2.beanName = T2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
347
- const y2 = se(e2);
347
+ const y2 = te(e2);
348
348
  return f2.additionalParamMap = y2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
349
349
  }
350
350
  function W(e2, t2, s2, i2, a2, r2, u2, l2) {
@@ -384,7 +384,7 @@ function F(t2, s2, n2, o2, i2) {
384
384
  const n5 = t4.props.base.successOperation;
385
385
  if (!n5 || null === n5) return;
386
386
  const o4 = t4.props.base.isNeedValueMapping;
387
- "noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? pe(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (H(e3, s4, o4), e3.canClick = true);
387
+ "noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? le(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (H(e3, s4, o4), e3.canClick = true);
388
388
  }(e2, t3, { ...o3, ...e2.entity.page });
389
389
  } else e2.canClick = true;
390
390
  n3 && l({ message: u().t(n3), type: "success", showClose: true });
@@ -432,7 +432,7 @@ function $(e2, t2, s2, n2) {
432
432
  }
433
433
  } else if (i2 && "form" === i2) {
434
434
  const t3 = e2.entity.data;
435
- pe(e2, t3.ID ? t3.ID : t3.id);
435
+ le(e2, t3.ID ? t3.ID : t3.id);
436
436
  }
437
437
  }
438
438
  }
@@ -478,7 +478,7 @@ function z(e2, s2) {
478
478
  g2 && f2.append("importDuplicateRule", g2);
479
479
  const b2 = i2.judgeHeavyList;
480
480
  b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
481
- const C2 = fe(a2);
481
+ const C2 = me(a2);
482
482
  C2 && f2.append("autoSetValueData", C2);
483
483
  const T2 = i2.formNoRuleCode;
484
484
  T2 && f2.append("formNoRuleCode", T2);
@@ -490,7 +490,7 @@ function z(e2, s2) {
490
490
  null != k2 && f2.append("isWorkflowEntity", k2 + "");
491
491
  const N2 = w(a2, i2);
492
492
  N2 && f2.append("functionCode", N2);
493
- const M2 = se(i2);
493
+ const M2 = te(i2);
494
494
  f2.append("additionalParamMapStr", JSON.stringify(M2));
495
495
  const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
496
496
  f2.append("isPermission", R2 + "");
@@ -525,11 +525,11 @@ function K(e2) {
525
525
  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);
526
526
  const u2 = n2.props.base.conversionCodes;
527
527
  u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
528
- const l2 = fe(n2);
528
+ const l2 = me(n2);
529
529
  l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
530
530
  const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
531
531
  p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
532
- const d2 = se(t2);
532
+ const d2 = te(t2);
533
533
  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]));
534
534
  const m2 = n2.props.base.successOperation;
535
535
  return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
@@ -539,7 +539,7 @@ function Q(e2, t2, s2, n2, o2) {
539
539
  let r2;
540
540
  if (e2) {
541
541
  t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
542
- const s3 = se(t3);
542
+ const s3 = te(t3);
543
543
  e3 && s3 && f(s3._t_ + "_id", e3);
544
544
  }(e2.entity.id || e2.entity.ID, s2));
545
545
  const o3 = e2.completeTaskResult;
@@ -559,7 +559,24 @@ function Q(e2, t2, s2, n2, o2) {
559
559
  return n2 && (n2.operationResult = o2), t2 || F(s2, n2.configureObj, e2, null, false), true;
560
560
  }
561
561
  async function X(e2, t2) {
562
- const s2 = await Z(e2);
562
+ const s2 = await function(e3) {
563
+ return new Promise((t3, s3) => {
564
+ var _a, _b, _c, _d;
565
+ const n2 = e3.configureObj;
566
+ if (n2) {
567
+ let s4 = false;
568
+ if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
569
+ const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
570
+ s4 = R(t4, n2, o2);
571
+ }
572
+ true === s4 ? 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: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e4 }) => {
573
+ t3(e4);
574
+ }).catch(() => {
575
+ t3(false);
576
+ }) : t3(true);
577
+ } else t3(true);
578
+ });
579
+ }(e2);
563
580
  return new Promise((i2, a2) => {
564
581
  var _a;
565
582
  if (s2) {
@@ -577,37 +594,19 @@ async function X(e2, t2) {
577
594
  } else i2(true);
578
595
  });
579
596
  }
580
- function Z(e2) {
581
- return new Promise((t2, s2) => {
582
- var _a, _b, _c, _d;
583
- const n2 = e2.configureObj;
584
- if (n2) {
585
- let s3 = false;
586
- if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
587
- const t3 = e2.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
588
- s3 = R(t3, n2, o2);
589
- }
590
- 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 }) => {
591
- t2(e3);
592
- }).catch(() => {
593
- t2(false);
594
- }) : t2(true);
595
- } else t2(true);
596
- });
597
- }
598
- function ee(e2, t2) {
597
+ function Z(e2, t2) {
599
598
  if (t2) {
600
599
  const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = K(e2);
601
- c2.assigneeId = r2, ie(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
600
+ c2.assigneeId = r2, oe(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
602
601
  h(s2, o2);
603
602
  });
604
603
  }
605
604
  }
606
- function te(e2) {
607
- const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 = se(t2), a2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: a2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
605
+ function ee(e2) {
606
+ const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 = te(t2), a2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: a2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
608
607
  return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
609
608
  }
610
- function se(t2) {
609
+ function te(t2) {
611
610
  if (t2.entity) {
612
611
  let s2 = e(t2.entity.page);
613
612
  s2 || (s2 = {});
@@ -615,12 +614,12 @@ function se(t2) {
615
614
  return n2 && Object.assign(s2, n2), s2;
616
615
  }
617
616
  }
618
- function ne(e2, t2) {
617
+ function se(e2, t2) {
619
618
  if (t2) {
620
619
  const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
621
620
  let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
622
621
  if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
623
- const d2 = te(e2);
622
+ const d2 = ee(e2);
624
623
  d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
625
624
  const m2 = c.post(p2, d2);
626
625
  m2 && m2.then((e3) => {
@@ -628,23 +627,20 @@ function ne(e2, t2) {
628
627
  });
629
628
  }
630
629
  }
631
- async function oe(e2, t2) {
630
+ function ne(e2, t2) {
632
631
  if (t2) {
633
- const s2 = await Z(e2);
634
- if (s2) {
635
- const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, p2 = i2.backendUrl;
636
- let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons/copies";
637
- if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
638
- const m2 = te(e2);
639
- m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.opinion = s2);
640
- const f2 = c.post(d2, m2);
641
- f2 && f2.then((e3) => {
642
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), h(i2, a2);
643
- });
644
- }
632
+ const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
633
+ let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
634
+ if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
635
+ const d2 = ee(e2);
636
+ d2.completeTaskParam.transactors = t2.userIds.join(",").split(",");
637
+ const m2 = c.post(p2, d2);
638
+ m2 && m2.then((e3) => {
639
+ l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), h(s2, i2);
640
+ });
645
641
  }
646
642
  }
647
- function ie(e2, t2, s2, n2) {
643
+ function oe(e2, t2, s2, n2) {
648
644
  return new Promise((i2, a2) => {
649
645
  const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
650
646
  if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
@@ -657,27 +653,27 @@ function ie(e2, t2, s2, n2) {
657
653
  });
658
654
  });
659
655
  }
660
- function ae(e2) {
656
+ function ie(e2) {
661
657
  const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl, a2 = t2.completeTaskParam;
662
658
  let r2 = n(i2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
663
659
  if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
664
- const p2 = t2.code, d2 = se(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
660
+ const p2 = t2.code, d2 = te(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
665
661
  return c.post(r2, m2);
666
662
  }
667
- function re(e2, t2) {
663
+ function ae(e2, t2) {
668
664
  const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = K(e2);
669
- t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ie(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
665
+ t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), oe(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
670
666
  h(s2, o2);
671
667
  });
672
668
  }
673
- function ce(e2) {
669
+ function re(e2) {
674
670
  const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl;
675
671
  let a2 = n(i2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
676
672
  const r2 = K(e2);
677
673
  if (a2 = o(a2, s2, i2, t2.isTest), a2) return c.post(a2, r2);
678
674
  l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
679
675
  }
680
- function ue(e2, t2) {
676
+ function ce(e2, t2) {
681
677
  if (t2) {
682
678
  const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
683
679
  let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
@@ -690,7 +686,7 @@ function ue(e2, t2) {
690
686
  });
691
687
  }
692
688
  }
693
- function le(e2, t2, s2) {
689
+ function ue(e2, t2, s2) {
694
690
  let n2 = false;
695
691
  return e2 && t2 && ("workflowSave" === e2 ? n2 = function(e3) {
696
692
  if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
@@ -752,18 +748,18 @@ function le(e2, t2, s2) {
752
748
  return false;
753
749
  }(t2))), n2;
754
750
  }
755
- function pe(e2, t2) {
756
- e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, de(e2, t2).then((t3) => {
751
+ function le(e2, t2) {
752
+ e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, pe(e2, t2).then((t3) => {
757
753
  e2.isRefresh = true;
758
754
  });
759
755
  }
760
- function de(e2, s2, o2) {
756
+ function pe(e2, s2, o2) {
761
757
  const i2 = e2.pageType;
762
758
  if (i2 && "form" === i2) {
763
759
  e2.canClick = false;
764
760
  return t(e2) ? function(e3, t2, s3) {
765
761
  return new Promise((o3, i3) => {
766
- const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = se(e3);
762
+ const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = te(e3);
767
763
  let d2 = t2 || null, f2 = t2 ? [t2] : null;
768
764
  void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
769
765
  const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
@@ -774,7 +770,7 @@ function de(e2, s2, o2) {
774
770
  t3[s4] = s4;
775
771
  }), C2.listCodesMap = t3;
776
772
  }
777
- f2 && (C2.ids = me(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(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);
773
+ f2 && (C2.ids = de(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(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);
778
774
  const y2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = E();
779
775
  h2.restorePageLoadState(), T(null, e3, e3, "beforeFormLoadData"), c.post(y2, C2).then((t3) => {
780
776
  e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Q(t3, true, e3), e3.workflowRules = A(e3);
@@ -816,11 +812,11 @@ function de(e2, s2, o2) {
816
812
  });
817
813
  }(e2, s2, o2) : function(e3, t2, s3) {
818
814
  return new Promise((o3, i3) => {
819
- const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = se(e3);
815
+ const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = te(e3);
820
816
  let d2 = t2 || null, f2 = t2 ? [t2] : null;
821
817
  void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
822
818
  const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), y2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
823
- if (!y2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (y2.id = m(p2._t_ + "_id")), f2 && (y2.ids = me(f2)), e3.notIdInitializationList && (y2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (y2.additionalParamMap = p2), e3.beanName && (y2.beanName = e3.beanName), g2 && (y2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
819
+ if (!y2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (y2.id = m(p2._t_ + "_id")), f2 && (y2.ids = de(f2)), e3.notIdInitializationList && (y2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (y2.additionalParamMap = p2), e3.beanName && (y2.beanName = e3.beanName), g2 && (y2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
824
820
  const t3 = {};
825
821
  e3.tableUuids.forEach((e4) => {
826
822
  const s4 = r(u2, l2, e4);
@@ -843,10 +839,10 @@ function de(e2, s2, o2) {
843
839
  e3(true);
844
840
  });
845
841
  }
846
- function me(e2) {
842
+ function de(e2) {
847
843
  return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
848
844
  }
849
- function fe(e2) {
845
+ function me(e2) {
850
846
  const t2 = e2.props.setValueList;
851
847
  if (t2) {
852
848
  if (s(t2) && t2.length > 0) return JSON.stringify(t2);
@@ -857,23 +853,23 @@ function fe(e2) {
857
853
  export {
858
854
  F as dealAfterOperate,
859
855
  Q as dealCompleteTaskParam,
860
- ne as doAddSigner,
861
- ee as doAssign,
862
- oe as doCreateCopyTask,
856
+ se as doAddSigner,
857
+ Z as doAssign,
858
+ ne as doCreateCopyTask,
863
859
  z as doImportFinally,
864
- ue as doRemoveSigners,
865
- re as doReturnTaskTo,
860
+ ce as doRemoveSigners,
861
+ ae as doReturnTaskTo,
866
862
  D as exportFormReport,
867
- se as getAdditionalParamMap,
868
- de as getFormData,
869
- ce as getRemoveSigner,
863
+ te as getAdditionalParamMap,
864
+ pe as getFormData,
865
+ re as getRemoveSigner,
870
866
  V as getSaveFormRequest,
871
867
  W as getSaveFormRequestWithRow,
872
- ae as getTaskInformitions,
873
- le as isVisibleWorkflowButton,
868
+ ie as getTaskInformitions,
869
+ ue as isVisibleWorkflowButton,
874
870
  Y as judgeDataNumber,
875
871
  $ as refreshFormOrListPage,
876
- pe as refreshPage,
872
+ le as refreshPage,
877
873
  _ as standardEvents,
878
874
  G as updateValuesWhenCloseDialog
879
875
  };
@@ -159,5 +159,3 @@ export declare function getFormPropName(prop: any): any;
159
159
  export declare function getSizeConfig(pageContext: PageContext, configure: Component): any;
160
160
  export declare function isPromise(p: any): boolean;
161
161
  export declare function decomposeVariable(variable: string): string[];
162
- export declare function getModelFieldFromPageContext(fields: string[], pageContext: PageContext): any;
163
- export declare function isNumberDataType(dataType: string): boolean;
@@ -336,18 +336,6 @@ function decomposeVariable(t) {
336
336
  const e = t.match(/\${(.*?)}/);
337
337
  return e ? e[1].split(".") : [];
338
338
  }
339
- function getModelFieldFromPageContext(t, e) {
340
- if (!e.modelFieldsMap) return;
341
- let o = null;
342
- for (let n = 0; n < t.length; n++) {
343
- const r = t[n];
344
- n + 1 === t.length && (o = e.modelFieldsMap[r]);
345
- }
346
- return o;
347
- }
348
- function isNumberDataType(t) {
349
- return "INTEGER" === t || "LONG" === t || "DOUBLE" === t || "FLOAT_COM" === t;
350
- }
351
339
  export {
352
340
  autoSetAfterSelect,
353
341
  caculateShowCondition,
@@ -358,7 +346,6 @@ export {
358
346
  getComponentOptionConfigs,
359
347
  getComponentOptionDatasFromPage,
360
348
  getFormPropName,
361
- getModelFieldFromPageContext,
362
349
  getOptionDatasFromPage,
363
350
  getOptionDatasSourceMap,
364
351
  getParamNames,
@@ -366,7 +353,6 @@ export {
366
353
  getValueFromSource,
367
354
  getValueFromVariable,
368
355
  getVariableValue,
369
- isNumberDataType,
370
356
  isPromise,
371
357
  monitorFieldChange,
372
358
  queryOptionDatasources,
@@ -103,37 +103,26 @@ function P(e2, t2, s2, i2) {
103
103
  return n2;
104
104
  }
105
105
  function M(e2, t2) {
106
+ if (!t2 || !e2 || t2.isTest) return "true";
106
107
  const s2 = [];
107
108
  if (e2.autoPermissions) for (const i2 of e2.autoPermissions) s2.push(t2.code + "." + i2.simpleCode);
108
109
  if (e2.functionCodes) {
109
110
  const i2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
110
111
  for (let e3 = 0; e3 < n2.length; e3++) {
111
- const o2 = n2[e3], r2 = e3 < i2.length ? i2[e3] : "";
112
- let l2 = "";
113
- if ("service" == r2) l2 = o2;
114
- else if ("standard" === r2) l2 = t2.code + "." + o2;
115
- else {
116
- l2 = "custom" === j(o2, t2).type ? o2 : t2.code + "." + o2;
117
- }
118
- s2.includes(l2) || s2.push(l2);
112
+ const o2 = n2[e3];
113
+ let r2 = "";
114
+ r2 = "service" == (e3 < i2.length ? i2[e3] : "") ? o2 : t2.code + "." + o2, s2.includes(r2) || s2.push(r2);
119
115
  }
120
116
  }
121
117
  return s2.join(",");
122
118
  }
123
- function j(e2, t2) {
124
- const s2 = t2.pagePermissions;
125
- if (s2 && s2.length > 0) {
126
- for (let t3 = 0; t3 < s2.length; t3++) if (s2[t3].simpleCode === e2) return s2[t3];
127
- }
128
- return null;
129
- }
130
- function C(s2, i2, n2) {
119
+ function j(s2, i2, n2) {
131
120
  const o2 = s2.tableRuntimes, r2 = t(i2);
132
121
  let l2;
133
122
  const a2 = i2.code;
134
123
  return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: l2, pageCode: a2, publishVersion: n2, pageType: s2.pageType });
135
124
  }
136
- function I(e2, t2) {
125
+ function C(e2, t2) {
137
126
  var _a, _b;
138
127
  const s2 = t2.props && t2.props.base ? t2.props.base.prop : null;
139
128
  let n2 = false;
@@ -152,7 +141,7 @@ function I(e2, t2) {
152
141
  ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: o2, events: t2.props.customRuleEvents }));
153
142
  }
154
143
  }
155
- function O(e2, t2) {
144
+ function I(e2, t2) {
156
145
  if (e2.initInfo) {
157
146
  ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((s2) => {
158
147
  const i2 = e2.initInfo[s2];
@@ -168,7 +157,7 @@ function O(e2, t2) {
168
157
  }
169
158
  }
170
159
  export {
171
- O as controlObjectRenderState,
160
+ I as controlObjectRenderState,
172
161
  c as convertToPageContext,
173
162
  P as getDefaultValue,
174
163
  w as getFormModelFields,
@@ -177,7 +166,7 @@ export {
177
166
  b as packageAdditionalMapWithLocationSearch,
178
167
  y as packageAdditionalMapWithPageRequest,
179
168
  h as packageAdditionalMapWithRoute,
180
- I as packageFormRules,
169
+ C as packageFormRules,
181
170
  f as queryPageDesignByCode,
182
- C as queryPageSuperGrids
171
+ j as queryPageSuperGrids
183
172
  };
@@ -1,5 +1,5 @@
1
- import { getBaseUrl as e, getRealRestApiPath as t } from "./common-util.js";
2
- import a from "agilebuilder-ui/src/utils/request";
1
+ import { getBaseUrl as i, getRealRestApiPath as e } from "./common-util.js";
2
+ import t from "agilebuilder-ui/src/utils/request";
3
3
  import "./eventBus.js";
4
4
  import { getPermissionCodes as o } from "./page-init-util.js";
5
5
  import "agilebuilder-ui/src/utils/common-util";
@@ -16,58 +16,24 @@ import "./page-store.js";
16
16
  import "agilebuilder-ui/src/utils/i18n-util";
17
17
  import "vue-i18n";
18
18
  import "async-validator";
19
- function i(i2, r2, s2, n2, p2) {
20
- return new Promise((s3, n3) => {
19
+ function r(r2, s, a, l, u) {
20
+ return new Promise((a2, l2) => {
21
21
  var _a, _b;
22
- if (r2 && ((_a = r2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) if ("beanName" === ((_b = r2.props.dataOrigin) == null ? void 0 : _b.optionValueSetType)) {
23
- const n4 = i2.backendUrl, m = i2.systemCode, l = o(r2, i2);
24
- let d = e(n4, i2.isTest) + "/dsc/commons/load-tree-node";
25
- d = t(d, m, n4, i2.isTest);
26
- const u = { pageCode: i2.code, pageVersion: i2.version, tableName: i2.tableName, systemCode: m, functionCode: l, beanName: i2.beanName };
27
- r2.props.dataOrigin.beanName && (u.beanName = r2.props.dataOrigin.beanName), p2 && Object.assign(u, p2), a.post(d, u).then((e2) => {
28
- s3(e2);
22
+ if (s && ((_a = s.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) if ("beanName" === ((_b = s.props.dataOrigin) == null ? void 0 : _b.optionValueSetType)) {
23
+ const l3 = r2.backendUrl, m = r2.systemCode, p = o(s, r2);
24
+ let n = i(l3, r2.isTest) + "/dsc/commons/load-tree-node";
25
+ n = e(n, m, l3, r2.isTest);
26
+ const c = { pageCode: r2.code, pageVersion: r2.version, tableName: r2.tableName, systemCode: m, functionCode: p, beanName: r2.beanName };
27
+ u && Object.assign(c, u), t.post(n, c).then((i2) => {
28
+ a2(i2);
29
29
  });
30
30
  } else {
31
- const e2 = (r2.runtime ? r2.runtime : {}).props;
32
- e2 && e2.staticData ? s3(e2.staticData) : s3([]);
31
+ const i2 = (s.runtime ? s.runtime : {}).props;
32
+ i2 && i2.staticData ? a2(i2.staticData) : a2([]);
33
33
  }
34
- else s3([]);
34
+ else a2([]);
35
35
  });
36
36
  }
37
- const r = (t2, o2, i2) => new Promise((r2, s2) => {
38
- var _a;
39
- if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
40
- const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node", m = p(false, t2, o2, i2);
41
- a.delete(n2, { data: m }).then((e2) => {
42
- r2(e2);
43
- });
44
- }
45
- }), s = (t2, o2, i2) => new Promise((r2, s2) => {
46
- var _a;
47
- if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
48
- const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node", m = p(true, t2, o2, i2);
49
- a.post(n2, m).then((e2) => {
50
- r2(e2);
51
- });
52
- }
53
- }), n = (t2, o2, i2) => new Promise((r2, s2) => {
54
- var _a;
55
- if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
56
- const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node";
57
- a.put(n2, p(false, t2, o2, i2)).then((e2) => {
58
- r2(e2);
59
- });
60
- }
61
- });
62
- function p(e2, t2, a2, o2) {
63
- const i2 = JSON.parse(JSON.stringify(t2.data));
64
- e2 && (i2.nodeId = null);
65
- const r2 = { pageCode: o2.code, pageVersion: o2.version, systemCode: o2.systemCode, beanName: o2.beanName, tableName: a2.props.base.treeTableName, treeLabelProp: a2.props.base.treeLabelProp, treeParentIdProp: a2.props.base.treeParentIdProp, currentNode: i2, parentNode: null };
66
- return a2.props.dataOrigin.beanName && (r2.beanName = a2.props.dataOrigin.beanName), t2.parent && t2.parent.level > 0 && (r2.parentNode = t2.parent.data), r2;
67
- }
68
37
  export {
69
- s as createTreeNode,
70
- r as deleteNode,
71
- i as getMenuTreeData,
72
- n as updateTreeNode
38
+ r as getMenuTreeData
73
39
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./card-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = e(r, [["__scopeId", "data-v-fc66efb1"]]);
4
+ const t = e(r, [["__scopeId", "data-v-799b1858"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -21,7 +21,7 @@ const V = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} },
21
21
  _.configure.props.title = "teee";
22
22
  } }), (e3, t2) => {
23
23
  const o2 = r("el-button");
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, (t3, o3) => (s(), l(S, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, 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"])) : x("", true), v(" " + C(u(j)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(o2, { key: 0, type: "text", icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
24
+ return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p([u(A), { "margin-top": "20px" }]), "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, (t3, o3) => (s(), l(S, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, 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"])) : x("", true), v(" " + C(u(j)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(o2, { key: 0, type: "text", icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
25
25
  };
26
26
  } });
27
27
  export {
@@ -1,7 +1,7 @@
1
1
  import e from "./FixedBox.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = o(e, [["__scopeId", "data-v-9b488f43"]]);
4
+ const r = o(e, [["__scopeId", "data-v-1cc14e88"]]);
5
5
  export {
6
6
  r as default
7
7
  };