super-page-runtime 2.2.23 → 2.2.29-tmp1

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 (44) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +56 -56
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -45
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +16 -14
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +4 -2
  6. package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
  7. package/dist/es/components/runtime/utils/events/event-util.js +194 -182
  8. package/dist/es/components/runtime/utils/events/print-label.js +38 -37
  9. package/dist/es/components/runtime/utils/events/standard-event.js +452 -440
  10. package/dist/es/components/runtime/utils/events/validator-util.js +30 -30
  11. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  12. package/dist/es/components/runtime/utils/page-helper-util.js +215 -214
  13. package/dist/es/components/runtime/utils/page-init-util.js +72 -61
  14. package/dist/es/components/runtime/utils/page-store.js +1 -1
  15. package/dist/es/components/runtime/utils/table-utils.js +23 -23
  16. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
  17. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  18. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
  19. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  20. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -13
  21. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  22. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -16
  23. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +12 -7
  24. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +16 -15
  25. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -22
  26. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +3 -3
  27. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  28. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +114 -111
  29. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +139 -136
  30. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
  31. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
  32. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +40 -38
  33. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +43 -41
  34. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +39 -38
  35. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +8 -6
  36. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -9
  37. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
  38. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -0
  39. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  40. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +72 -71
  41. package/dist/es/components/runtime/views/home-chart.vue.js +10 -9
  42. package/dist/es/components/runtime/views/super-page-dialog.vue.js +14 -13
  43. package/dist/es/components/runtime/views/super-page.vue.js +134 -132
  44. package/package.json +2 -2
@@ -1,77 +1,78 @@
1
1
  import e from "agilebuilder-ui/src/utils/request";
2
2
  import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
3
3
  import { generateCodeByRule as o } from "../barcode-util.js";
4
- function a(n2, a2) {
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 = [];
7
- a3.panels.forEach((e3) => {
4
+ function s(n2, s2) {
5
+ e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [s2]).then((e2) => {
6
+ const s3 = JSON.parse(e2[0].template), r2 = [];
7
+ s3.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 l = new t.PrintTemplate({ template: s3 }), i = { callback: () => {
13
+ console.log("浏览器打印窗口已打开");
13
14
  }, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 };
14
- n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2) {
15
+ n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, s4, a2) {
15
16
  if (t2.length > 0) {
16
- const i3 = [], l2 = JSON.parse(JSON.stringify(e3.selections));
17
+ const r3 = [], l2 = JSON.parse(JSON.stringify(e3.selections));
17
18
  t2.forEach((e4) => {
18
- i3.push(function(e5, t3) {
19
- return new Promise((n4, a5) => {
20
- const s3 = e5.field.split("."), i4 = [];
21
- s3.length < 2 && n4([]);
19
+ r3.push(function(e5, t3) {
20
+ return new Promise((n4, s5) => {
21
+ const a3 = e5.field.split("."), r4 = [];
22
+ a3.length < 2 && n4([]);
22
23
  try {
23
- p(s3[1]).then((e6) => {
24
+ p(a3[1]).then((e6) => {
24
25
  t3.forEach((t4, n5) => {
25
- const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
26
- a6.value = o(JSON.parse(e6.barcodeModelItems), t4), i4.push(a6);
27
- }), n4(i4);
26
+ const s6 = { type: a3[0], name: a3[1], value: null, index: n5 };
27
+ s6.value = o(JSON.parse(e6.barcodeModelItems), t4), r4.push(s6);
28
+ }), n4(r4);
28
29
  });
29
30
  } catch (e6) {
30
- n4([]);
31
+ console.error("获取条码规则失败:", e6), n4([]);
31
32
  }
32
33
  });
33
34
  }(e4, l2));
34
- }), Promise.all(i3).then((e4) => {
35
+ }), Promise.all(r3).then((e4) => {
35
36
  e4.forEach((e5) => {
36
37
  e5.forEach((e6) => {
37
38
  const t3 = e6.index, n4 = l2[t3];
38
39
  n4[e6.type] || (n4[e6.type] = {}), n4[e6.type][e6.name] = e6.value;
39
40
  });
40
- }), n3.print(l2, a4, s2);
41
+ }), n3.print(l2, s4, a2);
41
42
  });
42
- } else n3.print(e3.selections, a4, s2);
43
- }(n2, i2, l, c, r) : "form" === n2.pageContext.pageType && s(n2, i2, l, c, r) : s(n2, i2, l, c, r);
43
+ } else n3.print(e3.selections, s4, a2);
44
+ }(n2, r2, l, c, i) : "form" === n2.pageContext.pageType && a(n2, r2, l, c, i) : a(n2, r2, l, c, i);
44
45
  });
45
46
  }
46
- function s(e2, t2, n2, a2, s2) {
47
+ function a(e2, t2, n2, s2, a2) {
47
48
  if (t2.length > 0) {
48
- const i2 = [];
49
+ const r2 = [];
49
50
  t2.forEach((t3) => {
50
- i2.push(function(e3, t4) {
51
- return new Promise((n3, a3) => {
52
- const s3 = t4.field.split("."), i3 = { type: null, name: null, value: null };
53
- s3.length < 2 && n3(i3), i3.type = s3[0], i3.name = s3[1];
51
+ r2.push(function(e3, t4) {
52
+ return new Promise((n3, s3) => {
53
+ const a3 = t4.field.split("."), r3 = { type: null, name: null, value: null };
54
+ a3.length < 2 && n3(r3), r3.type = a3[0], r3.name = a3[1];
54
55
  try {
55
- p(i3.name).then((t5) => {
56
- const a4 = JSON.parse(t5.barcodeModelItems);
57
- i3.value = o(a4, e3.entity.data), n3(i3);
56
+ p(r3.name).then((t5) => {
57
+ const s4 = JSON.parse(t5.barcodeModelItems);
58
+ r3.value = o(s4, e3.entity.data), n3(r3);
58
59
  });
59
60
  } catch (e4) {
60
- n3(i3);
61
+ console.error("获取条码规则失败:", e4), n3(r3);
61
62
  }
62
63
  });
63
64
  }(e2.pageContext, t3));
64
- }), Promise.all(i2).then((t3) => {
65
+ }), Promise.all(r2).then((t3) => {
65
66
  const o2 = {};
66
67
  t3.forEach((e3) => {
67
68
  e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
68
69
  });
69
70
  const p2 = {};
70
- Object.assign(p2, e2.pageContext.entity, o2), n2.print(p2, a2, s2);
71
+ Object.assign(p2, e2.pageContext.entity, o2), n2.print(p2, s2, a2);
71
72
  });
72
73
  } else {
73
74
  const t3 = {};
74
- Object.assign(t3, e2.pageContext.entity), n2.print(t3, a2, s2);
75
+ Object.assign(t3, e2.pageContext.entity), n2.print(t3, s2, a2);
75
76
  }
76
77
  }
77
78
  function p(t2) {
@@ -79,8 +80,8 @@ function p(t2) {
79
80
  return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
80
81
  }
81
82
  n();
82
- const i = { printLabel: a };
83
+ const r = { printLabel: s };
83
84
  export {
84
- i as default,
85
- a as printLabel
85
+ r as default,
86
+ s as printLabel
86
87
  };