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