super-page-runtime 2.3.18 → 2.3.19-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.
Files changed (92) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -70
  2. package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
  3. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +67 -66
  4. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +31 -30
  5. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +66 -65
  6. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +47 -46
  7. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +33 -32
  8. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  9. package/dist/es/components/runtime/utils/charts/chart-util.js +73 -64
  10. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  11. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  12. package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
  13. package/dist/es/components/runtime/utils/events/standard-event.js +591 -554
  14. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  15. package/dist/es/components/runtime/utils/page-init-util.js +5 -7
  16. package/dist/es/components/runtime/utils/page-store.js +10 -10
  17. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  19. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  20. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  21. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  23. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  25. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  26. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  27. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  29. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  30. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  31. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  32. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +148 -145
  33. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +5 -0
  34. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
  35. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.js +4 -0
  36. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  37. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  38. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  39. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  40. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  42. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  43. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  44. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
  45. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  47. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +36 -24
  48. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  49. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +194 -194
  50. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  51. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  52. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  53. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  55. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +37 -37
  56. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  57. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  58. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
  59. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
  61. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
  62. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
  63. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -5
  66. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  67. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  68. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  69. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  70. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  71. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -13
  72. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.d.ts +14 -0
  73. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -0
  74. package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.js +4 -0
  75. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +14 -0
  76. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
  77. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +26 -0
  78. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
  79. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +28 -0
  80. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
  81. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  82. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  83. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +9 -9
  84. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +22 -13
  85. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  86. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  87. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  88. package/dist/es/components/runtime/views/super-page.vue2.js +165 -161
  89. package/dist/es/i18n/langs/cn.js +1 -1
  90. package/dist/es/i18n/langs/en.js +1 -1
  91. package/dist/es/style.css +134 -86
  92. package/package.json +2 -2
@@ -146,10 +146,10 @@ function T(e2, t2, i2) {
146
146
  r3 ? n(r3) ? r3.then((n2) => {
147
147
  n2 ? A(e2, t2, c2, i2) : e2.canClick = true;
148
148
  }).catch((n2) => {
149
- console.error(n2), e2.canClick = true;
149
+ e2.canClick = true;
150
150
  }) : A(e2, t2, c2, i2) : e2.canClick = true;
151
151
  }).catch((n2) => {
152
- console.error(n2), e2.canClick = true;
152
+ e2.canClick = true;
153
153
  });
154
154
  }
155
155
  function F(e2, n2, t2, i2, o2) {
@@ -214,7 +214,7 @@ function A(e2, t2, i2, o2) {
214
214
  n(a2) ? a2.then((n2) => {
215
215
  n2 ? q(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
216
216
  }).catch((n2) => {
217
- console.error(n2), e3.canClick = true;
217
+ e3.canClick = true;
218
218
  }) : q(e3, t3, o3, c2, a2, u3);
219
219
  } else q(e3, t3, o3, false, null, u3);
220
220
  }(e2, t2, i2, o2);
@@ -3,27 +3,26 @@ import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
3
3
  import { generateCodeByRule as o } from "../barcode-util.js";
4
4
  function a(n2, a2) {
5
5
  e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [a2]).then((e2) => {
6
- const a3 = JSON.parse(e2[0].template), r2 = [];
6
+ const a3 = JSON.parse(e2[0].template), i2 = [];
7
7
  a3.panels.forEach((e3) => {
8
8
  e3.printElements.forEach((e4) => {
9
- "barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || r2.push(e4.options);
9
+ "barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || i2.push(e4.options);
10
10
  });
11
11
  });
12
- const i = new t.PrintTemplate({ template: a3 }), l = { callback: () => {
12
+ const l = new t.PrintTemplate({ template: a3 }), r = { callback: () => {
13
13
  }, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, f = {};
14
14
  a3.panels[0].printElements.forEach((e3) => {
15
15
  if ("datetime" === e3.options.dataType && e3.options.field) {
16
16
  const t2 = e3.options.field.substring(6);
17
17
  f[t2] = e3.options.dateFormat;
18
18
  }
19
- }), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, r3) {
20
- const i2 = JSON.parse(JSON.stringify(e3.selections));
21
- if (i2.forEach((e4) => {
19
+ }), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, i3) {
20
+ const l2 = JSON.parse(JSON.stringify(e3.selections));
21
+ if (l2.forEach((e4) => {
22
22
  Object.keys(t2).forEach((t3) => {
23
23
  if (e4[t3] && "number" == typeof e4[t3] && !isNaN(e4[t3])) try {
24
24
  e4[t3] = new Date(e4[t3]);
25
25
  } catch (e5) {
26
- console.error(`日期格式化失败: ${e5}`);
27
26
  }
28
27
  });
29
28
  }), n3.length > 0) {
@@ -31,51 +30,51 @@ function a(n2, a2) {
31
30
  n3.forEach((t3) => {
32
31
  e4.push(function(e5, t4) {
33
32
  return new Promise((n4, a5) => {
34
- const s3 = e5.field.split("."), r4 = [];
33
+ const s3 = e5.field.split("."), i4 = [];
35
34
  s3.length < 2 && n4([]);
36
35
  try {
37
36
  p(s3[1]).then((e6) => {
38
37
  t4.forEach((t5, n5) => {
39
38
  const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
40
- a6.value = o(JSON.parse(e6.barcodeModelItems), t5), r4.push(a6);
41
- }), n4(r4);
39
+ a6.value = o(JSON.parse(e6.barcodeModelItems), t5), i4.push(a6);
40
+ }), n4(i4);
42
41
  });
43
42
  } catch (e6) {
44
- console.error("获取条码规则失败:", e6), n4([]);
43
+ n4([]);
45
44
  }
46
45
  });
47
- }(t3, i2));
46
+ }(t3, l2));
48
47
  }), Promise.all(e4).then((e5) => {
49
48
  e5.forEach((e6) => {
50
49
  e6.forEach((e7) => {
51
- const t3 = e7.index, n4 = i2[t3];
50
+ const t3 = e7.index, n4 = l2[t3];
52
51
  n4[e7.type] || (n4[e7.type] = {}), n4[e7.type][e7.name] = e7.value;
53
52
  });
54
- }), a4.print(i2, s2, r3);
53
+ }), a4.print(l2, s2, i3);
55
54
  });
56
- } else a4.print(i2, s2, r3);
57
- }(n2, f, r2, i, c, l) : "form" === n2.pageContext.pageType && s(n2, r2, i, c, l) : s(n2, r2, i, c, l);
55
+ } else a4.print(l2, s2, i3);
56
+ }(n2, f, i2, l, c, r) : "form" === n2.pageContext.pageType && s(n2, i2, l, c, r) : s(n2, i2, l, c, r);
58
57
  });
59
58
  }
60
59
  function s(e2, t2, n2, a2, s2) {
61
60
  if (t2.length > 0) {
62
- const r2 = [];
61
+ const i2 = [];
63
62
  t2.forEach((t3) => {
64
- r2.push(function(e3, t4) {
63
+ i2.push(function(e3, t4) {
65
64
  return new Promise((n3, a3) => {
66
- const s3 = t4.field.split("."), r3 = { type: null, name: null, value: null };
67
- s3.length < 2 && n3(r3), r3.type = s3[0], r3.name = s3[1];
65
+ const s3 = t4.field.split("."), i3 = { type: null, name: null, value: null };
66
+ s3.length < 2 && n3(i3), i3.type = s3[0], i3.name = s3[1];
68
67
  try {
69
- p(r3.name).then((t5) => {
68
+ p(i3.name).then((t5) => {
70
69
  const a4 = JSON.parse(t5.barcodeModelItems);
71
- r3.value = o(a4, e3.entity.data), n3(r3);
70
+ i3.value = o(a4, e3.entity.data), n3(i3);
72
71
  });
73
72
  } catch (e4) {
74
- console.error("获取条码规则失败:", e4), n3(r3);
73
+ n3(i3);
75
74
  }
76
75
  });
77
76
  }(e2.pageContext, t3));
78
- }), Promise.all(r2).then((t3) => {
77
+ }), Promise.all(i2).then((t3) => {
79
78
  const o2 = {};
80
79
  t3.forEach((e3) => {
81
80
  e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
@@ -93,8 +92,8 @@ function p(t2) {
93
92
  return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
94
93
  }
95
94
  n();
96
- const r = { printLabel: a };
95
+ const i = { printLabel: a };
97
96
  export {
98
- r as default,
97
+ i as default,
99
98
  a as printLabel
100
99
  };
@@ -39,6 +39,7 @@ export declare const standardEvents: {
39
39
  removeSigner: (params: any) => void;
40
40
  retrieveTask: (params: any) => Promise<unknown>;
41
41
  extractWorkflow: (params: any) => Promise<unknown>;
42
+ extractWorkflowEvent: (params: any) => void;
42
43
  cancelExtractWorkflow: (params: any) => Promise<unknown>;
43
44
  approveExtractWorkflow: (params: any) => Promise<unknown>;
44
45
  refuseExtractWorkflow: (params: any) => Promise<unknown>;
@@ -80,7 +81,8 @@ export declare function getRemoveSigner(params: any): any;
80
81
  export declare function doRemoveSigners(params: any, selectRemoveTasks: any): void;
81
82
  export declare function getRemoveTransactor(params: any): any;
82
83
  export declare function doRemoveTransactors(params: any, selectRemoveTasks: any): void;
83
- export declare function isVisibleWorkflowButton(standardEventName: any, buttonInfo: any, completeTaskParam: any, btnConfigure: any, data: any): boolean;
84
+ export declare function extractWorkflowFunc(params: any): Promise<unknown>;
85
+ export declare function isVisibleWorkflowButton(pageContext: any, standardEventName: any, buttonInfo: any, completeTaskParam: any, btnConfigure: any, data: any): boolean;
84
86
  /**
85
87
  * 刷新页面
86
88
  * @param pageContext