super-page-runtime 2.3.33-sit2 → 2.3.33

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 (76) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +47 -46
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +3 -1
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +46 -44
  6. package/dist/es/components/runtime/utils/events/event-util.js +116 -116
  7. package/dist/es/components/runtime/utils/events/print-label.js +27 -25
  8. package/dist/es/components/runtime/utils/events/standard-event.js +738 -726
  9. package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
  10. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  11. package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
  12. package/dist/es/components/runtime/utils/page-init-util.js +130 -125
  13. package/dist/es/components/runtime/utils/page-store.js +21 -21
  14. package/dist/es/components/runtime/utils/table-utils.js +4 -4
  15. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  16. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  18. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  20. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +14 -10
  21. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
  23. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  25. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -14
  26. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  27. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
  28. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
  29. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
  30. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  31. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +27 -23
  32. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  33. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +3 -1
  37. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  38. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  39. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  40. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  41. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  42. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +22 -20
  43. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +119 -116
  44. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  45. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +46 -45
  46. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -3
  47. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  48. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +28 -28
  49. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
  50. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  51. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  52. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +9 -9
  53. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -56
  55. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +12 -10
  56. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +12 -11
  57. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +4 -3
  58. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -15
  59. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +19 -18
  60. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  61. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  62. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  63. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  65. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +18 -16
  66. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
  67. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
  68. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  70. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  71. package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
  72. package/dist/es/components/runtime/views/super-page-dialog.vue.js +5 -4
  73. package/dist/es/components/runtime/views/super-page.vue2.js +183 -182
  74. package/dist/es/i18n/langs/cn.js +1 -1
  75. package/dist/es/i18n/langs/en.js +1 -1
  76. package/package.json +2 -2
@@ -3,26 +3,28 @@ 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), i2 = [];
6
+ const a3 = JSON.parse(e2[0].template), r2 = [];
7
7
  a3.panels.forEach((e3) => {
8
8
  e3.printElements.forEach((e4) => {
9
- "barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || i2.push(e4.options);
9
+ "barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || r2.push(e4.options);
10
10
  });
11
11
  });
12
- const l = new t.PrintTemplate({ template: a3 }), r = { callback: () => {
12
+ const i = new t.PrintTemplate({ template: a3 }), l = { callback: () => {
13
+ console.log("浏览器打印窗口已打开");
13
14
  }, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, f = {};
14
15
  a3.panels[0].printElements.forEach((e3) => {
15
16
  if ("datetime" === e3.options.dataType && e3.options.field) {
16
17
  const t2 = e3.options.field.substring(6);
17
18
  f[t2] = e3.options.dateFormat;
18
19
  }
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) => {
20
+ }), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, r3) {
21
+ const i2 = JSON.parse(JSON.stringify(e3.selections));
22
+ if (i2.forEach((e4) => {
22
23
  Object.keys(t2).forEach((t3) => {
23
24
  if (e4[t3] && "number" == typeof e4[t3] && !isNaN(e4[t3])) try {
24
25
  e4[t3] = new Date(e4[t3]);
25
26
  } catch (e5) {
27
+ console.error(`日期格式化失败: ${e5}`);
26
28
  }
27
29
  });
28
30
  }), n3.length > 0) {
@@ -30,51 +32,51 @@ function a(n2, a2) {
30
32
  n3.forEach((t3) => {
31
33
  e4.push(function(e5, t4) {
32
34
  return new Promise((n4, a5) => {
33
- const s3 = e5.field.split("."), i4 = [];
35
+ const s3 = e5.field.split("."), r4 = [];
34
36
  s3.length < 2 && n4([]);
35
37
  try {
36
38
  p(s3[1]).then((e6) => {
37
39
  t4.forEach((t5, n5) => {
38
40
  const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
39
- a6.value = o(JSON.parse(e6.barcodeModelItems), t5), i4.push(a6);
40
- }), n4(i4);
41
+ a6.value = o(JSON.parse(e6.barcodeModelItems), t5), r4.push(a6);
42
+ }), n4(r4);
41
43
  });
42
44
  } catch (e6) {
43
- n4([]);
45
+ console.error("获取条码规则失败:", e6), n4([]);
44
46
  }
45
47
  });
46
- }(t3, l2));
48
+ }(t3, i2));
47
49
  }), Promise.all(e4).then((e5) => {
48
50
  e5.forEach((e6) => {
49
51
  e6.forEach((e7) => {
50
- const t3 = e7.index, n4 = l2[t3];
52
+ const t3 = e7.index, n4 = i2[t3];
51
53
  n4[e7.type] || (n4[e7.type] = {}), n4[e7.type][e7.name] = e7.value;
52
54
  });
53
- }), a4.print(l2, s2, i3);
55
+ }), a4.print(i2, s2, r3);
54
56
  });
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);
57
+ } else a4.print(i2, s2, r3);
58
+ }(n2, f, r2, i, c, l) : "form" === n2.pageContext.pageType && s(n2, r2, i, c, l) : s(n2, r2, i, c, l);
57
59
  });
58
60
  }
59
61
  function s(e2, t2, n2, a2, s2) {
60
62
  if (t2.length > 0) {
61
- const i2 = [];
63
+ const r2 = [];
62
64
  t2.forEach((t3) => {
63
- i2.push(function(e3, t4) {
65
+ r2.push(function(e3, t4) {
64
66
  return new Promise((n3, a3) => {
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];
67
+ const s3 = t4.field.split("."), r3 = { type: null, name: null, value: null };
68
+ s3.length < 2 && n3(r3), r3.type = s3[0], r3.name = s3[1];
67
69
  try {
68
- p(i3.name).then((t5) => {
70
+ p(r3.name).then((t5) => {
69
71
  const a4 = JSON.parse(t5.barcodeModelItems);
70
- i3.value = o(a4, e3.entity.data), n3(i3);
72
+ r3.value = o(a4, e3.entity.data), n3(r3);
71
73
  });
72
74
  } catch (e4) {
73
- n3(i3);
75
+ console.error("获取条码规则失败:", e4), n3(r3);
74
76
  }
75
77
  });
76
78
  }(e2.pageContext, t3));
77
- }), Promise.all(i2).then((t3) => {
79
+ }), Promise.all(r2).then((t3) => {
78
80
  const o2 = {};
79
81
  t3.forEach((e3) => {
80
82
  e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
@@ -92,8 +94,8 @@ function p(t2) {
92
94
  return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
93
95
  }
94
96
  n();
95
- const i = { printLabel: a };
97
+ const r = { printLabel: a };
96
98
  export {
97
- i as default,
99
+ r as default,
98
100
  a as printLabel
99
101
  };