super-page-designer 2.3.12-sit1-design1 → 2.3.13-sit1-design1

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 (28) hide show
  1. package/dist/es/components/design/utils/chart-design-util.js +27 -27
  2. package/dist/es/components/design/utils/page-table-util.d.ts +1 -9
  3. package/dist/es/components/design/utils/page-table-util.js +21 -26
  4. package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +18 -18
  5. package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-design.vue2.js +2 -2
  6. package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +18 -18
  7. package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +18 -18
  8. package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +35 -33
  9. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +7 -6
  10. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  11. package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +55 -56
  12. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +10 -10
  13. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
  14. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -1
  15. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +2 -2
  16. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +12 -12
  17. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +2 -2
  18. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +4 -4
  19. package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +18 -18
  20. package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +6 -6
  21. package/dist/es/components/design/views/assemblys/form/link/link-design.vue2.js +12 -12
  22. package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +2 -2
  23. package/dist/es/components/design/views/assemblys/form/textarea/textarea-design.vue2.js +5 -5
  24. package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +52 -52
  25. package/dist/es/components/design/views/design/page-event/config.vue.js +1 -1
  26. package/dist/es/style.css +2 -2
  27. package/package.json +5 -5
  28. /package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue3.js} +0 -0
@@ -13,17 +13,17 @@ function i(e2) {
13
13
  return "variable" == l2.groupSource && !l2.enableDrill && l2.groupVariable && (r2.includes(l2.groupVariable) || r2.push(l2.groupVariable)), t2.monitorFields = r2, t2;
14
14
  }
15
15
  function a(e2, l2) {
16
- const i2 = e2.props ? e2.props : {}, a2 = e2.style ? e2.style : {}, b2 = { title: [{ textStyle: {}, subtextStyle: {} }], toolbox: { show: false, feature: { saveAsImage: { show: false }, restore: { show: false }, dataView: { show: false }, dataZoom: { show: false }, magicType: { show: false }, brush: { show: false } } }, grid: {}, xAxis: [{ axisLabel: {}, nameTruncate: {} }], yAxis: [{ show: false, position: "left", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }, { show: false, position: "right", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }], tooltip: { textStyle: {} }, dataZoom: [], series: [] }, u2 = "chart-column-line" == e2.name, h2 = "chart-pie" == e2.name, c2 = "chart-gauge" == e2.name, g = "chart-radar" == e2.name, m = "chart-scatter" == e2.name;
16
+ const i2 = e2.props ? e2.props : {}, a2 = e2.style ? e2.style : {}, u2 = { title: [{ textStyle: {}, subtextStyle: {} }], toolbox: { show: false, feature: { saveAsImage: { show: false }, restore: { show: false }, dataView: { show: false }, dataZoom: { show: false }, magicType: { show: false }, brush: { show: false } } }, grid: {}, xAxis: [{ axisLabel: {}, nameTruncate: {} }], yAxis: [{ show: false, position: "left", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }, { show: false, position: "right", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }], tooltip: { textStyle: {} }, dataZoom: [], series: [] }, b2 = "chart-column-line" == e2.name, h2 = "chart-pie" == e2.name, c2 = "chart-gauge" == e2.name, g = "chart-radar" == e2.name, m = "chart-scatter" == e2.name;
17
17
  if (i2.title, i2.subTitle) {
18
- b2.title[0].subtext = i2.subTitle, a2.subtitleTextAlign && (b2.title[0].left = a2.subtitleTextAlign);
18
+ u2.title[0].subtext = i2.subTitle, a2.subtitleTextAlign && (u2.title[0].left = a2.subtitleTextAlign);
19
19
  const e3 = o(a2);
20
- Object.assign(b2.title[0], e3);
20
+ Object.assign(u2.title[0], e3);
21
21
  }
22
- if ((i2.enableDownloadBtn || i2.enableDataBtn) && (b2.toolbox.show = true), null != i2.enableDownloadBtn && (b2.toolbox.feature.saveAsImage.show = i2.enableDownloadBtn), null != i2.enableDataBtn && (b2.toolbox.feature.dataView.show = i2.enableDataBtn), (u2 || h2 || g || m) && null != a2.enableLegend && (null == b2.legend && (b2.legend = {}), b2.legend.show = a2.enableLegend, a2.enableLegend && (a2.legendLayout && (b2.legend.orient = a2.legendLayout), a2.legendAlign && (b2.legend.left = a2.legendAlign), a2.legendVerticalAlign && (b2.legend.top = a2.legendVerticalAlign), a2.legendPadding && (b2.legend.padding = a2.legendPadding), a2.customLegend && (b2.legend.formatter = a2.customLegend))), a2.gridBackgroundColor && (b2.grid.show = true, b2.grid.backgroundColor = a2.gridBackgroundColor), a2.gridPaddingTop && (b2.grid.top = a2.gridPaddingTop), a2.gridPaddingRight && (b2.grid.right = a2.gridPaddingRight), a2.gridPaddingBottom && (b2.grid.bottom = a2.gridPaddingBottom), a2.gridPaddingLeft && (b2.grid.left = a2.gridPaddingLeft), a2.enableGridLine ? (b2.grid.show = true, a2.gridLineWidth && (b2.grid.borderWidth = a2.gridLineWidth), a2.gridLineColor && (b2.grid.show = true, b2.grid.borderColor = a2.gridLineColor)) : a2.gridShadowColor || (b2.grid.borderWidth = 0), a2.gridShadowColor && (b2.grid.show = true, b2.grid.shadowColor = a2.gridShadowColor, a2.gridShadowX && (b2.grid.shadowOffsetX = a2.gridShadowX), a2.gridShadowY && (b2.grid.shadowOffsetY = a2.gridShadowY), a2.gridShadowBlur && (b2.grid.shadowBlur = a2.gridShadowBlur)), u2 || m) {
23
- u2 && (a2.xaxisTestdatas || (a2.xaxisTestdatas = "项1,项2,项3,项4,项5,项6,项7,项8"), b2.xAxis[0].data = a2.xaxisTestdatas.split(",")), null != a2.enableXaxis && (b2.xAxis[0].show = a2.enableXaxis, a2.enableXaxis && (null == b2.xAxis[0].axisLabel && (b2.xAxis[0].axisLabel = {}), a2.xaxisAngle && (b2.xAxis[0].axisLabel.rotate = a2.xaxisAngle), a2.xaxisOffset && (b2.xAxis[0].offset = a2.xaxisOffset), a2.xaxisWidth && (b2.xAxis[0].axisLabel.overflow = "truncate", b2.xAxis[0].axisLabel.width = a2.xaxisWidth), a2.xaxisEllipsis && (b2.xAxis[0].axisLabel.overflow = "truncate", b2.xAxis[0].axisLabel.ellipsis = a2.xaxisEllipsis), a2.xaxisFormatter && (b2.xAxis[0].axisLabel.formatter = a2.xaxisFormatter)), u2 && 0 != b2.xAxis[0].show && (b2.xAxis[0].data = a2.xaxisTestdatas.split(","))), a2.xaxisMin && (b2.xAxis[0].min = a2.xaxisMin), a2.xaxisMax && (b2.xAxis[0].max = a2.xaxisMax);
22
+ if ((i2.enableDownloadBtn || i2.enableDataBtn) && (u2.toolbox.show = true), null != i2.enableDownloadBtn && (u2.toolbox.feature.saveAsImage.show = i2.enableDownloadBtn), null != i2.enableDataBtn && (u2.toolbox.feature.dataView.show = i2.enableDataBtn), (b2 || h2 || g || m) && null != a2.enableLegend && (null == u2.legend && (u2.legend = {}), u2.legend.show = a2.enableLegend, a2.enableLegend && (a2.legendLayout && (u2.legend.orient = a2.legendLayout), a2.legendAlign && (u2.legend.left = a2.legendAlign), a2.legendVerticalAlign && (u2.legend.top = a2.legendVerticalAlign), a2.legendPadding && (u2.legend.padding = a2.legendPadding), a2.customLegend && (u2.legend.formatter = a2.customLegend))), a2.gridBackgroundColor && (u2.grid.show = true, u2.grid.backgroundColor = a2.gridBackgroundColor), a2.gridPaddingTop && (u2.grid.top = a2.gridPaddingTop), a2.gridPaddingRight && (u2.grid.right = a2.gridPaddingRight), a2.gridPaddingBottom && (u2.grid.bottom = a2.gridPaddingBottom), a2.gridPaddingLeft && (u2.grid.left = a2.gridPaddingLeft), a2.enableGridLine ? (u2.grid.show = true, a2.gridLineWidth && (u2.grid.borderWidth = a2.gridLineWidth), a2.gridLineColor && (u2.grid.show = true, u2.grid.borderColor = a2.gridLineColor)) : a2.gridShadowColor || (u2.grid.borderWidth = 0), a2.gridShadowColor && (u2.grid.show = true, u2.grid.shadowColor = a2.gridShadowColor, a2.gridShadowX && (u2.grid.shadowOffsetX = a2.gridShadowX), a2.gridShadowY && (u2.grid.shadowOffsetY = a2.gridShadowY), a2.gridShadowBlur && (u2.grid.shadowBlur = a2.gridShadowBlur)), b2 || m) {
23
+ b2 && (a2.xaxisTestdatas || (a2.xaxisTestdatas = "项1,项2,项3,项4,项5,项6,项7,项8"), u2.xAxis[0].data = a2.xaxisTestdatas.split(",")), null != a2.enableXaxis && (u2.xAxis[0].show = a2.enableXaxis, a2.enableXaxis && (null == u2.xAxis[0].axisLabel && (u2.xAxis[0].axisLabel = {}), a2.xaxisAngle && (u2.xAxis[0].axisLabel.rotate = a2.xaxisAngle), a2.xaxisOffset && (u2.xAxis[0].offset = a2.xaxisOffset), a2.xaxisWidth && (u2.xAxis[0].axisLabel.overflow = "truncate", u2.xAxis[0].axisLabel.width = a2.xaxisWidth), a2.xaxisEllipsis && (u2.xAxis[0].axisLabel.overflow = "truncate", u2.xAxis[0].axisLabel.ellipsis = a2.xaxisEllipsis), a2.xaxisFormatter && (u2.xAxis[0].axisLabel.formatter = a2.xaxisFormatter)), b2 && 0 != u2.xAxis[0].show && (u2.xAxis[0].data = a2.xaxisTestdatas.split(","))), a2.xaxisMin && (u2.xAxis[0].min = a2.xaxisMin), a2.xaxisMax && (u2.xAxis[0].max = a2.xaxisMax);
24
24
  const e3 = [a2.yaxisLeft, a2.yaxisRight];
25
25
  for (let t2 = 0; t2 < e3.length; t2++) {
26
- r(e3[t2], b2.yAxis[t2]);
26
+ r(e3[t2], u2.yAxis[t2]);
27
27
  }
28
28
  }
29
29
  if (g && function(e3, t2) {
@@ -52,9 +52,9 @@ function a(e2, l2) {
52
52
  a3.indicator = s2, t2.radar || (t2.radar = []);
53
53
  0 == t2.radar.length && t2.radar.push({});
54
54
  Object.assign(t2.radar[0], a3);
55
- }(e2, b2), (u2 || m) && a2.enableDatazoom) {
55
+ }(e2, u2), (b2 || m) && a2.enableDatazoom) {
56
56
  const e3 = { type: "slider" };
57
- a2.dataZoomType && (e3.type = a2.dataZoomType), a2.dataZoomStart && (e3.start = a2.dataZoomStart), a2.dataZoomEnd && (e3.end = a2.dataZoomEnd), b2.dataZoom.push(e3);
57
+ a2.dataZoomType && (e3.type = a2.dataZoomType), a2.dataZoomStart && (e3.start = a2.dataZoomStart), a2.dataZoomEnd && (e3.end = a2.dataZoomEnd), u2.dataZoom.push(e3);
58
58
  }
59
59
  null != a2.enableTooltip && function(e3, l3) {
60
60
  l3.tooltip.show = e3.enableTooltip, e3.tooltipTrigger && (l3.tooltip.trigger = e3.tooltipTrigger);
@@ -68,30 +68,30 @@ function a(e2, l2) {
68
68
  e3.tooltipColor && (l3.tooltip.textStyle.color = e3.tooltipColor);
69
69
  e3.tooltipWeight && (l3.tooltip.textStyle.fontWeight = e3.tooltipWeight);
70
70
  e3.tooltipFormatter && (l3.tooltip.formatter = e3.tooltipFormatter);
71
- }(a2, b2);
71
+ }(a2, u2);
72
72
  const f = e2.items ? e2.items : [];
73
73
  if (g) {
74
- b2.series || (b2.series = []), 0 == b2.series.length && b2.series.push({});
75
- let e3 = b2.series[0];
74
+ u2.series || (u2.series = []), 0 == u2.series.length && u2.series.push({});
75
+ let e3 = u2.series[0];
76
76
  e3.type = "radar", e3.data = [];
77
77
  for (let t2 of f) if ("radar" == t2.type) {
78
- const l3 = n(t2, b2);
78
+ const l3 = n(t2, u2);
79
79
  l3.uuid = t2.uuid, e3.data.push(l3);
80
80
  }
81
81
  } else for (let e3 of f) {
82
82
  let t2 = null;
83
- if (t2 = "scatter" == e3.type ? d(e3) : s(e3), t2.uuid = e3.uuid, (u2 || m) && ("1" == e3.props.yAxisIndex ? (t2.yAxisIndex = 1, b2.yAxis[1].show = true) : b2.yAxis[0].show = true, "bar" == t2.type && (null != a2.barGap && null != a2.barGap && "" != a2.barGap && (t2.barGap = a2.barGap + "%"), null != a2.barCategoryGap && null != a2.barCategoryGap && "" != a2.barCategoryGap && (t2.barCategoryGap = a2.barCategoryGap + "%"))), (h2 || c2) && e3.props.subTitle) {
83
+ if (t2 = "scatter" == e3.type ? d(e3) : s(e3), t2.uuid = e3.uuid, (b2 || m) && ("1" == e3.props.yAxisIndex ? (t2.yAxisIndex = 1, u2.yAxis[1].show = true) : u2.yAxis[0].show = true, "bar" == t2.type && (null != a2.barGap && null != a2.barGap && "" != a2.barGap && (t2.barGap = a2.barGap + "%"), null != a2.barCategoryGap && null != a2.barCategoryGap && "" != a2.barCategoryGap && (t2.barCategoryGap = a2.barCategoryGap + "%"))), (h2 || c2) && e3.props.subTitle) {
84
84
  const t3 = o(e3.style);
85
- t3.subtext = e3.props.subTitle, b2.title.push(t3);
85
+ t3.subtext = e3.props.subTitle, u2.title.push(t3);
86
86
  }
87
- b2.series.push(t2);
87
+ u2.series.push(t2);
88
88
  }
89
- if (h2 && (0 == a2.enableLegend && (b2.legend = void 0), b2.xAxis[0].show = false), (c2 || g) && (b2.xAxis[0].show = false), i2.isBar) {
90
- for (let e3 of b2.yAxis) e3.show && (e3.type = "category", e3.data = b2.xAxis[0].data);
91
- b2.xAxis[0].data = void 0, b2.isBar = i2.isBar;
89
+ if (h2 && (0 == a2.enableLegend && (u2.legend = void 0), u2.xAxis[0].show = false), (c2 || g) && (u2.xAxis[0].show = false), i2.isBar) {
90
+ for (let e3 of u2.yAxis) e3.show && (e3.type = "category", e3.data = u2.xAxis[0].data);
91
+ u2.xAxis[0].data = void 0, u2.isBar = i2.isBar;
92
92
  }
93
93
  const x = p(a2.customAttr);
94
- x && Object.assign(b2, x), l2.value = b2;
94
+ x && Object.assign(u2, x), l2.value = u2;
95
95
  }
96
96
  function o(e2) {
97
97
  const t2 = { subtextStyle: {} };
@@ -257,12 +257,12 @@ function n(e2, l2) {
257
257
  }
258
258
  i2.testdatas = l3.join(",");
259
259
  }
260
- const s2 = l2.radar && l2.radar.length > 0 ? l2.radar[0].indicator : [], n2 = i2.testdatas ? i2.testdatas.split(",") : [], d2 = [], b2 = n2.length;
261
- for (let e3 = 0; e3 < 8 || e3 < b2; e3++) {
260
+ const s2 = l2.radar && l2.radar.length > 0 ? l2.radar[0].indicator : [], n2 = i2.testdatas ? i2.testdatas.split(",") : [], d2 = [], u2 = n2.length;
261
+ for (let e3 = 0; e3 < 8 || e3 < u2; e3++) {
262
262
  let t2 = e3 < s2.length ? s2[e3].max : null;
263
263
  t2 || (t2 = 100), t2 = parseFloat(t2);
264
264
  let l3 = false;
265
- if (e3 < b2) {
265
+ if (e3 < u2) {
266
266
  parseFloat(n2[e3]) < t2 && (l3 = true);
267
267
  }
268
268
  if (l3) d2.push(n2[e3]);
@@ -327,7 +327,7 @@ function p(e2) {
327
327
  }
328
328
  return null;
329
329
  }
330
- function b(t2) {
330
+ function u(t2) {
331
331
  const l2 = e().pageContext;
332
332
  if (l2) {
333
333
  l2.initChartServiceConfigs || (l2.initChartServiceConfigs = []);
@@ -341,7 +341,7 @@ function b(t2) {
341
341
  e2 > -1 && l2.initChartServiceConfigs.shift(e2, 1);
342
342
  }
343
343
  }
344
- function u(t2, i2) {
344
+ function b(t2, i2) {
345
345
  var _a;
346
346
  const a2 = e().pageContext;
347
347
  if (a2) {
@@ -361,7 +361,7 @@ function u(t2, i2) {
361
361
  const s2 = { uuid: t2.uuid }, n2 = { serivceCode: r2.simpleCode, uuid: t2.uuid };
362
362
  i2 && (n2.groupValue = i2.groupValue, i2.dynamicSeriesFields && i2.dynamicSeriesFields.length > 0 && (n2.dynamicSeriesFields = i2.dynamicSeriesFields));
363
363
  const d2 = (_a = t2 == null ? void 0 : t2.props.dataOrigin) == null ? void 0 : _a.serviceInputs;
364
- return d2 && (n2.serviceInputs = l(d2)), s2.services = [n2], e2 > -1 ? a2.initChartServiceConfigs[e2] = s2 : a2.initChartServiceConfigs.push(s2), s2.resultSet = o2.resultSet ? o2.resultSet : null, s2;
364
+ return d2 && (n2.serviceInputs = l(d2)), s2.services = [n2], s2 && (s2.initializationQuery = t2.initializationQuery), e2 > -1 ? a2.initChartServiceConfigs[e2] = s2 : a2.initChartServiceConfigs.push(s2), s2.resultSet = o2.resultSet ? o2.resultSet : null, s2;
365
365
  }
366
366
  e2 > -1 && a2.initChartServiceConfigs.shift(e2, 1);
367
367
  }
@@ -385,8 +385,8 @@ function c(e2, t2) {
385
385
  export {
386
386
  i as generateChartHeader,
387
387
  a as generateChartOption,
388
- u as initComponentDataConfig,
389
- b as removComponentDataConfig,
388
+ b as initComponentDataConfig,
389
+ u as removComponentDataConfig,
390
390
  c as updateDynamicSeriesField,
391
391
  h as updateServiceInputs
392
392
  };
@@ -8,14 +8,6 @@ import { Component, PageDesign } from './interfaces/page-design-types';
8
8
  * @returns
9
9
  */
10
10
  export declare function queryTableFields(systemCode: string, systemVersion: number, tableName: string): Promise<any>;
11
- /**
12
- * 查询表字的字段和字段map
13
- * @param systemCode
14
- * @param systemVersion
15
- * @param tableName
16
- * @returns
17
- */
18
- export declare function queryTableFieldsOrMap(systemVersion: number, tableName: string): Promise<any>;
19
11
  /**
20
12
  * 查询子表
21
13
  * @param systemCode
@@ -23,7 +15,7 @@ export declare function queryTableFieldsOrMap(systemVersion: number, tableName:
23
15
  * @param publishVersion 页面版本
24
16
  * @returns
25
17
  */
26
- export declare function querySublist(systemCode: string, systemVersion: number, publishVersion: string): Promise<any>;
18
+ export declare function querySublist(tableName: string): Promise<any>;
27
19
  /**
28
20
  * 设置tableRuntimes
29
21
  */
@@ -6,11 +6,10 @@ import { findDesignItemByUuid as o } from "./common-util.js";
6
6
  import { getComponentOptionConfigsBase as i } from "super-page-runtime";
7
7
  function n(t2, r2, a2) {
8
8
  let o2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/table-columns";
9
- return o2 += "?systemCode=" + (t2 || ""), o2 += "&publishVersion=" + (r2 || ""), o2 += "&tableName=" + (a2 || ""), e.get(o2);
9
+ return o2 += "?tableName=" + (a2 || ""), e.get(o2);
10
10
  }
11
- function s(t2, r2, a2) {
12
- const o2 = { systemCode: t2, formVersion: r2, publishVersion: a2 };
13
- return e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/list-view-children/forms", o2);
11
+ function s(t2) {
12
+ if (t2) return e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/sub-data-tables/tables/" + t2);
14
13
  }
15
14
  function p(e2, r2) {
16
15
  const o2 = JSON.stringify(e2), i2 = JSON.parse(o2);
@@ -21,7 +20,7 @@ function p(e2, r2) {
21
20
  var _a2;
22
21
  const o4 = [];
23
22
  return (_a2 = e4.items) == null ? void 0 : _a2.forEach((e5) => {
24
- const i4 = { controlName: m(e5) };
23
+ const i4 = { controlName: c(e5) };
25
24
  let n4 = { headerName: e5.props.base.name, prop: t(e5.props.base.prop), width: e5.props.base.columnWidth, listColumnSort: e5.props.base.sortable, filterable: e5.props.base.filterable, visible: e5.props.base.visible, exportable: e5.props.base.exportable, total: e5.props.base.total, listColumnFixed: e5.props.base.listColumnFixed, format: b(e5), valueSet: l(e5), querySettingName: e5.props.base.querySettingName ? e5.props.base.querySettingName : "no", queryMatching: e5.props.base.queryMatching, querySetting: e5.props.querySetting ? JSON.stringify(e5.props.querySetting) : null, editable: e5.props.editLine.editable, defaultValue: e5.props.base.defaultValue, controlName: i4.controlName, controlConfig: g(e5), eventType: S(e5), displayOrder: e5.props.base.displayOrder, fileSet: d(e5), orgTreeSet: f(e5), dynamicColumnJson: C(e5), valueSetOptions: u(e5, r4.systemCode, r4.systemVersion), required: e5.props.verification.required, pattern: e5.props.verification.verifyRegex, checkType: T(e5.props.verification.type), contAlign: e5.props.base ? e5.props.base.alignContent : null, titleAlign: e5.props.base ? e5.props.base.alignTitle : null, i18nKey: e5.props.base.name };
26
25
  r4.i18nKeys && a(e5.props.base.name, r4), e5.functionCodes && e5.functionCodes.length > 0 && (n4.functionCode = e5.functionCodes.join(",")), o4.push(n4);
27
26
  }), o4;
@@ -57,31 +56,28 @@ function l(e2) {
57
56
  function u(e2, t2, r2) {
58
57
  if (!e2) return;
59
58
  const a2 = e2.props;
60
- let o2 = function(e3) {
61
- const t3 = e3.props;
62
- if ("inputNumber" === e3.name) {
63
- const e4 = { step: t3.base.step, precision: t3.base.precision };
64
- return e4.min = t3.base.min || 0 === t3.base.min ? t3.base.min : null, e4.max = t3.base.max || 0 === t3.base.max ? t3.base.max : null, JSON.stringify(e4);
65
- }
66
- if ("switch" === e3.name) return JSON.stringify({ activeText: t3.base.activeText, activeValue: t3.base.activeValue, inactiveText: t3.base.inactiveText, inactiveValue: t3.base.inactiveValue, offColor: t3.base.offColor, onColor: t3.base.onColor });
67
- }(e2);
68
- if (!o2 && a2.dataOrigin && a2.dataOrigin.optionValueSetType) {
69
- const o3 = a2.dataOrigin.optionValueSetType, n2 = a2.dataOrigin;
70
- if ("dynamicData" === o3) return JSON.stringify({ type: "dynamicData", dynamicDataSourceCode: n2.dynamicDataSourceCode, filterType: n2.filterType, valueSetOptions: c(n2), valueLabelSwitch: !!n2.valueLabelSwitch });
59
+ if ("inputNumber" === e2.name) {
60
+ const e3 = { step: a2.base.step, precision: a2.base.precision };
61
+ return e3.min = a2.base.min || 0 === a2.base.min ? a2.base.min : null, e3.max = a2.base.max || 0 === a2.base.max ? a2.base.max : null, JSON.stringify(e3);
62
+ }
63
+ if ("switch" === e2.name) return JSON.stringify({ activeText: a2.base.activeText, activeValue: a2.base.activeValue, inactiveText: a2.base.inactiveText, inactiveValue: a2.base.inactiveValue, offColor: a2.base.offColor, onColor: a2.base.onColor });
64
+ if (a2.dataOrigin && a2.dataOrigin.optionValueSetType) {
65
+ const o2 = a2.dataOrigin.optionValueSetType, n2 = a2.dataOrigin;
66
+ if ("dynamicData" === o2) return JSON.stringify({ type: "dynamicData", dynamicDataSourceCode: n2.dynamicDataSourceCode, filterType: n2.filterType, valueSetOptions: m(n2), valueLabelSwitch: !!n2.valueLabelSwitch });
71
67
  {
72
68
  const a3 = i(e2, t2, r2);
73
- return a3 ? (a3.valueSetOptions = c(n2), JSON.stringify(a3)) : null;
69
+ return a3 ? (a3.valueSetOptions = m(n2), JSON.stringify(a3)) : null;
74
70
  }
75
71
  }
76
72
  }
77
- function c(e2) {
73
+ function m(e2) {
78
74
  const t2 = [];
79
75
  return e2.autoSets.forEach((e3) => {
80
76
  const r2 = y(e3.target);
81
77
  t2.push({ columnName: y(e3.source), valueField: r2, valueColumn: { name: r2, dbColumnName: r2.toUpperCase() } });
82
78
  }), t2;
83
79
  }
84
- function m(e2) {
80
+ function c(e2) {
85
81
  if (!e2.name) return null;
86
82
  switch (e2.name) {
87
83
  case "input-text":
@@ -158,10 +154,11 @@ function f(e2) {
158
154
  return null;
159
155
  }
160
156
  function d(e2) {
157
+ var _a, _b;
161
158
  if ("file-upload" === e2.name) {
162
159
  const t2 = y(e2.props.base.prop), r2 = y(e2.props.format ? e2.props.format.fileUuid : null);
163
160
  let a2 = {};
164
- return t2 && (a2.showNameData = { name: t2, dbName: t2.toUpperCase() }), r2 && (a2.serverNameData = { name: r2, dbName: r2.toUpperCase() }), e2.props.uploadConfig && (e2.props.uploadConfig.multiple ? a2.multiple = true : a2.multiple = false, e2.props.uploadConfig.accept ? a2.accept = e2.props.uploadConfig.accept : a2.accept = null, e2.props.uploadConfig.limitFileSize ? a2.limitFileSize = e2.props.uploadConfig.limitFileSize : a2.limitFileSize = null, e2.props.uploadConfig.openCameraOrChoosePhoto ? a2.openCameraOrChoosePhoto = e2.props.uploadConfig.openCameraOrChoosePhoto : a2.openCameraOrChoosePhoto = null), JSON.stringify(a2);
161
+ return t2 && (a2.showNameData = { name: t2, dbName: t2.toUpperCase() }), r2 && (a2.serverNameData = { name: r2, dbName: r2.toUpperCase() }), e2.props.uploadConfig && (e2.props.uploadConfig.multiple ? a2.multiple = true : a2.multiple = false, e2.props.uploadConfig.accept ? a2.accept = e2.props.uploadConfig.accept : a2.accept = null, e2.props.uploadConfig.limitFileSize ? a2.limitFileSize = e2.props.uploadConfig.limitFileSize : a2.limitFileSize = null, e2.props.uploadConfig.openCameraOrChoosePhoto ? a2.openCameraOrChoosePhoto = e2.props.uploadConfig.openCameraOrChoosePhoto : a2.openCameraOrChoosePhoto = null, e2.props.watermark && (a2.watermark = {}), ((_a = e2.props.watermark) == null ? void 0 : _a.isShowWatermark) ? a2.watermark.isShowWatermark = true : a2.watermark.isShowWatermark = false, ((_b = e2.props.watermark) == null ? void 0 : _b.content) ? a2.watermark.content = e2.props.watermark.content : a2.watermark.content = null), JSON.stringify(a2);
165
162
  }
166
163
  return null;
167
164
  }
@@ -225,11 +222,9 @@ function C(e2, t2) {
225
222
  var _a, _b, _c, _d, _e, _f;
226
223
  const t4 = e4.componentConfig;
227
224
  if (t4) {
228
- e4.format = b(t4), e4.defaultValue = (_b = (_a = t4.props) == null ? void 0 : _a.base) == null ? void 0 : _b.defaultValue, e4.controlName = m(t4), e4.controlConfig = g(t4), e4.eventType = S(t4), e4.fileSet = d(t4), e4.orgTreeSet = f(t4), e4.required = (_d = (_c = t4.props) == null ? void 0 : _c.verification) == null ? void 0 : _d.required, e4.pattern = (_f = (_e = t4.props) == null ? void 0 : _e.verification) == null ? void 0 : _f.verifyRegex, e4.checkType = T(t4.props.verification.type);
225
+ e4.format = b(t4), e4.defaultValue = (_b = (_a = t4.props) == null ? void 0 : _a.base) == null ? void 0 : _b.defaultValue, e4.controlName = c(t4), e4.controlConfig = g(t4), e4.eventType = S(t4), e4.fileSet = d(t4), e4.orgTreeSet = f(t4), e4.required = (_d = (_c = t4.props) == null ? void 0 : _c.verification) == null ? void 0 : _d.required, e4.pattern = (_f = (_e = t4.props) == null ? void 0 : _e.verification) == null ? void 0 : _f.verifyRegex, e4.checkType = T(t4.props.verification.type);
229
226
  const r3 = l(t4);
230
- e4.valueSet = r3;
231
- let a3 = u(t4, null, null);
232
- a3 || (a3 = e4.valueSetOptions), e4.valueSetOptions = a3, e4.functionCodes && e4.functionCodes.length > 0 ? e4.functionCode = e4.functionCodes.join(",") : e4.functionCode = "";
227
+ e4.valueSet = r3, e4.functionCodes && e4.functionCodes.length > 0 ? e4.functionCode = e4.functionCodes.join(",") : e4.functionCode = "";
233
228
  } else e4.format = null, e4.defaultValue = null, e4.controlName = null, e4.controlConfig = null, e4.eventType = null, e4.fileSet = null, e4.orgTreeSet = null, e4.required = null, e4.pattern = null, e4.checkType = null, e4.valueSet = null;
234
229
  let r2 = u(t4, null, null);
235
230
  r2 || (r2 = e4.valueSetOptions), e4.valueSetOptions = r2;
@@ -278,7 +273,7 @@ function N(e2) {
278
273
  t2.push({ value: e3.dbColumnName, label: e3.alias, alias: e3.alias, dataType: e3.dataType });
279
274
  }), t2;
280
275
  }
281
- function V(e2, t2, r2) {
276
+ function w(e2, t2, r2) {
282
277
  var _a;
283
278
  const a2 = e2 ? e2.pageType : null;
284
279
  let i2, n2;
@@ -287,7 +282,7 @@ function V(e2, t2, r2) {
287
282
  export {
288
283
  h as changeFeieldToMap,
289
284
  N as getModelOptionsByFields,
290
- V as getTableConfigByTableUuid,
285
+ w as getTableConfigByTableUuid,
291
286
  v as getTableNameByTableUuid,
292
287
  s as querySublist,
293
288
  n as queryTableFields,
@@ -1,27 +1,27 @@
1
- import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as t, openBlock as n, normalizeStyle as o, normalizeClass as a, withCtx as s, createElementBlock as c, createCommentVNode as r, Fragment as p, createTextVNode as v, toDisplayString as y, unref as g } from "vue";
2
- import { SuperIcon as d } from "agilebuilder-ui";
3
- import { caculateDetailComponentStyle as f, caculateComponentProps as m } from "../../../../utils/form-design-util.js";
4
- import { batchUpdatePermissions as T } from "../../../../utils/page-permission-util.js";
5
- const V = e({ __name: "button-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
- const V2 = e2;
7
- V2.configure.runtime || (V2.configure.runtime = {});
8
- const b = i({}), k = i(""), x = i({}), z = i({});
9
- l(V2.configure.style, () => {
10
- f(V2.configure, b, k, x), V2.configure.runtime.style = b.value, V2.configure.runtime.class = k.value, V2.configure.runtime.headerStyle = x.value;
1
+ import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as n, openBlock as o, normalizeStyle as t, normalizeClass as a, withCtx as c, createElementBlock as s, createCommentVNode as r, Fragment as p, createTextVNode as v, toDisplayString as y, unref as g } from "vue";
2
+ import { SuperIcon as f } from "agilebuilder-ui";
3
+ import { caculateDetailComponentStyle as m, caculateComponentProps as T } from "../../../../utils/form-design-util.js";
4
+ import { batchUpdatePermissions as V } from "../../../../utils/page-permission-util.js";
5
+ const d = e({ __name: "button-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
+ const d2 = e2;
7
+ d2.configure.runtime || (d2.configure.runtime = {});
8
+ const k = i({}), b = i(""), x = i({}), z = i({});
9
+ l(d2.configure.style, () => {
10
+ m(d2.configure, k, b, x), d2.configure.runtime.style = k.value, d2.configure.runtime.class = b.value, d2.configure.runtime.headerStyle = x.value;
11
11
  }, { immediate: true });
12
- const P = V2.configure.props && V2.configure.props.base ? V2.configure.props.base : {};
12
+ const P = d2.configure.props && d2.configure.props.base ? d2.configure.props.base : {};
13
13
  let h = P.title;
14
- return l(V2.configure.props, (e3, i2) => {
15
- m(V2.configure, z), function() {
16
- let e4 = V2.configure.props ? V2.configure.props : {};
14
+ return l(d2.configure.props, (e3, i2) => {
15
+ T(d2.configure, z), function() {
16
+ let e4 = d2.configure.props ? d2.configure.props : {};
17
17
  const i3 = e4.base ? e4.base : {}, l2 = {};
18
18
  i3.type && (l2.type = i3.type), i3.text && (l2.text = true), i3.plain && (l2.plain = true), i3.round && (l2.round = true), l2.isTextIcon = i3.isTextIcon, i3.iconType && i3.iconValue && (l2.iconType = i3.iconType, l2.iconValue = i3.iconValue, l2.iconPosition = i3.iconPosition), Object.assign(z.value, l2);
19
- }(), P.title !== h && V2.pageDesign && (T(V2.configure, V2.pageDesign), h = P.title), V2.configure.runtime.props = z.value;
19
+ }(), P.title !== h && d2.pageDesign && (V(d2.configure, d2.pageDesign), h = P.title), d2.configure.runtime.props = z.value;
20
20
  }, { immediate: true }), (e3, i2) => {
21
- const l2 = u("el-link"), f2 = u("el-button");
22
- return z.value.text ? (n(), t(l2, { key: 0, disabled: "disabled" === z.value.state, class: a(k.value), style: o(b.value), type: z.value.type, size: z.value.size }, { default: s(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (n(), c(p, { key: 0 }, [v(y(z.value.title) + " ", 1), z.value.iconValue ? (n(), c(p, { key: 0 }, [v("   ")], 64)) : r("", true)], 64)) : r("", true), z.value.iconType && z.value.iconValue ? (n(), t(g(d), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : r("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (n(), c(p, { key: 2 }, [z.value.iconValue ? (n(), c(p, { key: 0 }, [v("   ")], 64)) : r("", true), v(" " + y(z.value.title), 1)], 64)) : r("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size"])) : (n(), t(f2, { key: 1, disabled: "disabled" === z.value.state, class: a(k.value), style: o(b.value), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain }, { default: s(() => [z.value.title && "right" == z.value.iconPosition ? (n(), c(p, { key: 0 }, [v(y(z.value.title) + " ", 1), z.value.iconValue ? (n(), c(p, { key: 0 }, [v("   ")], 64)) : r("", true)], 64)) : r("", true), z.value.iconType && z.value.iconValue ? (n(), t(g(d), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : r("", true), z.value.title && "right" != z.value.iconPosition ? (n(), c(p, { key: 2 }, [z.value.iconValue ? (n(), c(p, { key: 0 }, [v("   ")], 64)) : r("", true), v(" " + y(z.value.title), 1)], 64)) : r("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain"]));
21
+ const l2 = u("el-link"), m2 = u("el-button");
22
+ return z.value.text ? (o(), n(l2, { key: 0, class: a(b.value), style: t(k.value), type: z.value.type, size: z.value.size }, { default: c(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (o(), s(p, { key: 0 }, [v(y(z.value.title) + " ", 1), z.value.iconValue ? (o(), s(p, { key: 0 }, [v("   ")], 64)) : r("", true)], 64)) : r("", true), z.value.iconType && z.value.iconValue ? (o(), n(g(f), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : r("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (o(), s(p, { key: 2 }, [z.value.iconValue ? (o(), s(p, { key: 0 }, [v("   ")], 64)) : r("", true), v(" " + y(z.value.title), 1)], 64)) : r("", true)]), _: 1 }, 8, ["class", "style", "type", "size"])) : (o(), n(m2, { key: 1, class: a(b.value), style: t(k.value), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain }, { default: c(() => [z.value.title && "right" == z.value.iconPosition ? (o(), s(p, { key: 0 }, [v(y(z.value.title) + " ", 1), z.value.iconValue ? (o(), s(p, { key: 0 }, [v("   ")], 64)) : r("", true)], 64)) : r("", true), z.value.iconType && z.value.iconValue ? (o(), n(g(f), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : r("", true), z.value.title && "right" != z.value.iconPosition ? (o(), s(p, { key: 2 }, [z.value.iconValue ? (o(), s(p, { key: 0 }, [v("   ")], 64)) : r("", true), v(" " + y(z.value.title), 1)], 64)) : r("", true)]), _: 1 }, 8, ["class", "style", "type", "size", "round", "plain"]));
23
23
  };
24
24
  } });
25
25
  export {
26
- V as default
26
+ d as default
27
27
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, watch as l, resolveComponent as u, createElementBlock as i, openBlock as n, normalizeStyle as r, normalizeClass as o, createVNode as a, withCtx as s, createBlock as p, Fragment as g, createTextVNode as d, toDisplayString as m, unref as c, renderList as v } from "vue";
1
+ import { defineComponent as e, ref as t, watch as l, resolveComponent as u, createElementBlock as n, openBlock as i, normalizeStyle as r, normalizeClass as o, createVNode as s, withCtx as a, createBlock as p, Fragment as g, createTextVNode as m, toDisplayString as c, unref as d, renderList as v } from "vue";
2
2
  import { ArrowDown as f } from "@element-plus/icons-vue";
3
3
  import { caculateDetailComponentStyle as y, caculateComponentProps as b } from "../../../../utils/form-design-util.js";
4
4
  import z from "../../../design/page-design.vue.js";
@@ -13,7 +13,7 @@ const _ = { key: 1 }, k = e({ __name: "dropdown-design", props: { configure: { t
13
13
  }(), z2.configure.runtime.props = j.value;
14
14
  }, { immediate: true }), (e3, t2) => {
15
15
  const l2 = u("el-button"), y2 = u("el-icon"), b2 = u("el-text"), z3 = u("el-dropdown-item"), E2 = u("el-dropdown-menu"), B = u("el-dropdown");
16
- return n(), i("div", { class: o(w.value), style: r(k2.value) }, [a(B, { placement: j.value.placement, "split-button": j.value.splitButton, disabled: "disabled" === j.value.state, type: j.value.buttonType, size: j.value.size, trigger: j.value.trigger }, { dropdown: s(() => [a(E2, null, { default: s(() => [(n(true), i(g, null, v(j.value.options, (e4, t3) => (n(), p(z3, { key: e4 }, { default: s(() => [d(m(e4.label), 1)]), _: 2 }, 1024))), 128))]), _: 1 })]), default: s(() => ["button" === j.value.triggerElement ? (n(), i(g, { key: 0 }, [j.value.splitButton ? (n(), i("span", _, m(j.value.title), 1)) : (n(), p(l2, { key: 0, size: j.value.size, type: j.value.buttonType }, { default: s(() => [d(m(j.value.title), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (n(), p(b2, { key: 1 }, { default: s(() => [d(m(j.value.title) + " ", 1), a(y2, null, { default: s(() => [a(c(f))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["placement", "split-button", "disabled", "type", "size", "trigger"])], 6);
16
+ return i(), n("div", { class: o(w.value), style: r(k2.value) }, [s(B, { placement: j.value.placement, "split-button": j.value.splitButton, type: j.value.buttonType, size: j.value.size, trigger: j.value.trigger }, { dropdown: a(() => [s(E2, null, { default: a(() => [(i(true), n(g, null, v(j.value.options, (e4, t3) => (i(), p(z3, { key: e4 }, { default: a(() => [m(c(e4.label), 1)]), _: 2 }, 1024))), 128))]), _: 1 })]), default: a(() => ["button" === j.value.triggerElement ? (i(), n(g, { key: 0 }, [j.value.splitButton ? (i(), n("span", _, c(j.value.title), 1)) : (i(), p(l2, { key: 0, size: j.value.size, type: j.value.buttonType }, { default: a(() => [m(c(j.value.title), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (i(), p(b2, { key: 1 }, { default: a(() => [m(c(j.value.title) + " ", 1), s(y2, null, { default: a(() => [s(d(f))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["placement", "split-button", "type", "size", "trigger"])], 6);
17
17
  };
18
18
  } });
19
19
  export {
@@ -1,27 +1,27 @@
1
- import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as a, openBlock as t, normalizeStyle as o, normalizeClass as n, withCtx as s, createElementBlock as r, createCommentVNode as c, Fragment as p, createTextVNode as v, toDisplayString as g, unref as y } from "vue";
2
- import { SuperIcon as d } from "agilebuilder-ui";
3
- import { caculateDetailComponentStyle as f, caculateComponentProps as m } from "../../../../utils/form-design-util.js";
4
- import { batchUpdatePermissions as b } from "../../../../utils/page-permission-util.js";
5
- const k = e({ __name: "exportpdf-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
- const k2 = e2;
7
- k2.configure.runtime || (k2.configure.runtime = {});
8
- const V = i({}), T = i(""), z = i({}), h = i({});
9
- l(k2.configure.style, () => {
10
- f(k2.configure, V, T, z), k2.configure.runtime.style = V.value, k2.configure.runtime.class = T.value, k2.configure.runtime.headerStyle = z.value;
1
+ import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as o, openBlock as n, normalizeStyle as t, normalizeClass as a, withCtx as s, createElementBlock as r, createCommentVNode as c, Fragment as p, createTextVNode as v, toDisplayString as g, unref as y } from "vue";
2
+ import { SuperIcon as f } from "agilebuilder-ui";
3
+ import { caculateDetailComponentStyle as m, caculateComponentProps as d } from "../../../../utils/form-design-util.js";
4
+ import { batchUpdatePermissions as k } from "../../../../utils/page-permission-util.js";
5
+ const V = e({ __name: "exportpdf-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
+ const V2 = e2;
7
+ V2.configure.runtime || (V2.configure.runtime = {});
8
+ const T = i({}), b = i(""), z = i({}), h = i({});
9
+ l(V2.configure.style, () => {
10
+ m(V2.configure, T, b, z), V2.configure.runtime.style = T.value, V2.configure.runtime.class = b.value, V2.configure.runtime.headerStyle = z.value;
11
11
  }, { immediate: true });
12
- const x = k2.configure.props && k2.configure.props.base ? k2.configure.props.base : {};
12
+ const x = V2.configure.props && V2.configure.props.base ? V2.configure.props.base : {};
13
13
  let j = x.title;
14
- return l(k2.configure.props, (e3, i2) => {
15
- m(k2.configure, h), function() {
16
- let e4 = k2.configure.props ? k2.configure.props : {};
14
+ return l(V2.configure.props, (e3, i2) => {
15
+ d(V2.configure, h), function() {
16
+ let e4 = V2.configure.props ? V2.configure.props : {};
17
17
  const i3 = e4.base ? e4.base : {}, l2 = e4.dropdown ? e4.dropdown : {};
18
18
  Object.assign(h.value, l2), Object.assign(h.value, i3);
19
- }(), x.title !== j && k2.pageDesign && (b(k2.configure, k2.pageDesign), j = x.title), k2.configure.runtime.props = h.value;
19
+ }(), x.title !== j && V2.pageDesign && (k(V2.configure, V2.pageDesign), j = x.title), V2.configure.runtime.props = h.value;
20
20
  }, { immediate: true }), (e3, i2) => {
21
- const l2 = u("el-link"), f2 = u("el-button");
22
- return h.value.text ? (t(), a(l2, { key: 0, disabled: "disabled" === h.value.state, class: n(T.value), style: o(V.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size"])) : (t(), a(f2, { key: 1, disabled: "disabled" === h.value.state, class: n(T.value), style: o(V.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain"]));
21
+ const l2 = u("el-link"), m2 = u("el-button");
22
+ return h.value.text ? (n(), o(l2, { key: 0, class: a(b.value), style: t(T.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition && !h.value.isTextIcon ? (n(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (n(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (n(), o(y(f), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition && !h.value.isTextIcon ? (n(), r(p, { key: 2 }, [h.value.iconValue ? (n(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["class", "style", "type", "size"])) : (n(), o(m2, { key: 1, class: a(b.value), style: t(T.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (n(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (n(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (n(), o(y(f), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (n(), r(p, { key: 2 }, [h.value.iconValue ? (n(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["class", "style", "type", "size", "round", "plain"]));
23
23
  };
24
24
  } });
25
25
  export {
26
- k as default
26
+ V as default
27
27
  };
@@ -1,27 +1,27 @@
1
- import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as a, openBlock as t, normalizeStyle as n, normalizeClass as o, withCtx as s, createElementBlock as r, createCommentVNode as c, Fragment as p, createTextVNode as v, toDisplayString as g, unref as y } from "vue";
2
- import { SuperIcon as d } from "agilebuilder-ui";
3
- import { caculateDetailComponentStyle as f, caculateComponentProps as m } from "../../../../utils/form-design-util.js";
4
- import { batchUpdatePermissions as b } from "../../../../utils/page-permission-util.js";
5
- const k = e({ __name: "printlabel-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
- const k2 = e2;
7
- k2.configure.runtime || (k2.configure.runtime = {});
8
- const V = i({}), T = i(""), z = i({}), h = i({});
9
- l(k2.configure.style, () => {
10
- f(k2.configure, V, T, z), k2.configure.runtime.style = V.value, k2.configure.runtime.class = T.value, k2.configure.runtime.headerStyle = z.value;
1
+ import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as n, openBlock as o, normalizeStyle as t, normalizeClass as a, withCtx as s, createElementBlock as r, createCommentVNode as c, Fragment as p, createTextVNode as v, toDisplayString as g, unref as y } from "vue";
2
+ import { SuperIcon as f } from "agilebuilder-ui";
3
+ import { caculateDetailComponentStyle as m, caculateComponentProps as d } from "../../../../utils/form-design-util.js";
4
+ import { batchUpdatePermissions as k } from "../../../../utils/page-permission-util.js";
5
+ const V = e({ __name: "printlabel-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
+ const V2 = e2;
7
+ V2.configure.runtime || (V2.configure.runtime = {});
8
+ const T = i({}), b = i(""), z = i({}), h = i({});
9
+ l(V2.configure.style, () => {
10
+ m(V2.configure, T, b, z), V2.configure.runtime.style = T.value, V2.configure.runtime.class = b.value, V2.configure.runtime.headerStyle = z.value;
11
11
  }, { immediate: true });
12
- const j = k2.configure.props && k2.configure.props.base ? k2.configure.props.base : {};
12
+ const j = V2.configure.props && V2.configure.props.base ? V2.configure.props.base : {};
13
13
  let x = j.title;
14
- return l(k2.configure.props, (e3, i2) => {
15
- m(k2.configure, h), function() {
16
- let e4 = k2.configure.props ? k2.configure.props : {};
14
+ return l(V2.configure.props, (e3, i2) => {
15
+ d(V2.configure, h), function() {
16
+ let e4 = V2.configure.props ? V2.configure.props : {};
17
17
  const i3 = e4.base ? e4.base : {}, l2 = e4.dropdown ? e4.dropdown : {};
18
18
  Object.assign(h.value, l2), Object.assign(h.value, i3);
19
- }(), j.title !== x && k2.pageDesign && (b(k2.configure, k2.pageDesign), x = j.title), k2.configure.runtime.props = h.value;
19
+ }(), j.title !== x && V2.pageDesign && (k(V2.configure, V2.pageDesign), x = j.title), V2.configure.runtime.props = h.value;
20
20
  }, { immediate: true }), (e3, i2) => {
21
- const l2 = u("el-link"), f2 = u("el-button");
22
- return h.value.text ? (t(), a(l2, { key: 0, disabled: "disabled" === h.value.state, class: o(T.value), style: n(V.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size"])) : (t(), a(f2, { key: 1, disabled: "disabled" === h.value.state, class: o(T.value), style: n(V.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain"]));
21
+ const l2 = u("el-link"), m2 = u("el-button");
22
+ return h.value.text ? (o(), n(l2, { key: 0, class: a(b.value), style: t(T.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition && !h.value.isTextIcon ? (o(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (o(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (o(), n(y(f), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition && !h.value.isTextIcon ? (o(), r(p, { key: 2 }, [h.value.iconValue ? (o(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["class", "style", "type", "size"])) : (o(), n(m2, { key: 1, class: a(b.value), style: t(T.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (o(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (o(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (o(), n(y(f), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (o(), r(p, { key: 2 }, [h.value.iconValue ? (o(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["class", "style", "type", "size", "round", "plain"]));
23
23
  };
24
24
  } });
25
25
  export {
26
- k as default
26
+ V as default
27
27
  };
@@ -1,64 +1,66 @@
1
- import { defineComponent as e, ref as t, watch as i, onUnmounted as r, createElementBlock as o, openBlock as n, withModifiers as s, normalizeClass as u, normalizeStyle as c, withDirectives as l, createVNode as m, vShow as f, unref as a, createElementVNode as g, Fragment as p, renderList as d, toDisplayString as v } from "vue";
1
+ import { defineComponent as e, ref as i, watch as t, onUnmounted as r, createElementBlock as o, openBlock as n, withModifiers as u, normalizeClass as s, normalizeStyle as c, withDirectives as l, createVNode as m, vShow as a, unref as f, createElementVNode as g, Fragment as p, renderList as d, toDisplayString as v } from "vue";
2
2
  import { getUuidv4 as h } from "../../../../utils/common-util.js";
3
3
  import { caculateComponentStyle as b } from "../../../../utils/container-design-util.js";
4
- import { removComponentDataConfig as W, generateChartHeader as j, generateChartOption as C, updateDynamicSeriesField as I, initComponentDataConfig as x } from "../../../../utils/chart-design-util.js";
5
- import { getCustomTheme as y } from "super-page-runtime";
4
+ import { removComponentDataConfig as W, generateChartHeader as j, generateChartOption as y, updateDynamicSeriesField as C, initComponentDataConfig as I } from "../../../../utils/chart-design-util.js";
5
+ import { getCustomTheme as x } from "super-page-runtime";
6
6
  import k from "./series/column-line-series-attr.vue.js";
7
7
  import D from "../common/common-chart-header.vue.js";
8
8
  import { use as F } from "echarts/core";
9
9
  import { CanvasRenderer as T } from "echarts/renderers";
10
- import { LineChart as w, BarChart as A } from "echarts/charts";
11
- import { GridComponent as O, LegendComponent as R, TitleComponent as _, TooltipComponent as q, ToolboxComponent as z, DataZoomComponent as B } from "echarts/components";
10
+ import { LineChart as w, BarChart as z } from "echarts/charts";
11
+ import { GridComponent as A, LegendComponent as O, TitleComponent as R, TooltipComponent as _, ToolboxComponent as q, DataZoomComponent as B } from "echarts/components";
12
12
  import H from "vue-echarts";
13
13
  import "element-plus";
14
14
  import "agilebuilder-ui/src/utils/request";
15
15
  import "../../../../utils/eventBus.js";
16
- const S = { class: "amb-design-item-title" }, E = ["onClick"], G = e({ __name: "column-line-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: G2 }) {
17
- F([T, w, O, R, _, q, A, z, B]);
18
- const J = e2;
19
- J.configure.props || (J.configure.props = {}), J.configure.items || (J.configure.items = []), 0 == J.configure.items.length && J.configure.items.push({ uuid: h(), index: 1, name: "", type: "bar", label: "柱状图", props: { title: "系列1" }, style: {} }), J.configure.runtime || (J.configure.runtime = {});
20
- const K = t({}), L = t(""), M = t({}), N = t({}), P = t(null);
21
- function Q() {
22
- const e3 = x(J.configure, N.value);
23
- J.configure.runtime.dataConfig = e3;
16
+ const Q = { class: "amb-design-item-title" }, S = ["onClick"], E = e({ __name: "column-line-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: E2 }) {
17
+ F([T, w, A, O, R, _, z, q, B]);
18
+ const G = e2;
19
+ G.configure.props || (G.configure.props = {}), G.configure.items || (G.configure.items = []), 0 == G.configure.items.length && G.configure.items.push({ uuid: h(), index: 1, name: "", type: "bar", label: "柱状图", props: { title: "系列1" }, style: {} }), G.configure.runtime || (G.configure.runtime = {});
20
+ const J = i({}), K = i(""), L = i({}), M = i({}), N = i(null);
21
+ function P() {
22
+ const e3 = I(G.configure, M.value);
23
+ G.configure.runtime.dataConfig = e3;
24
24
  }
25
- i(J.configure.style, () => {
26
- b(J.configure, K, L, null), J.configure.runtime.style = K.value, J.configure.runtime.class = L.value, N.value = j(J.configure), J.configure.runtime.headerInfo = N.value, V();
27
- }, { immediate: true }), i(J.configure.props, () => {
28
- V(), Q();
29
- }), i(J.configure.items, () => {
25
+ t(G.configure.style, () => {
26
+ b(G.configure, J, K, null), G.configure.runtime.style = J.value, G.configure.runtime.class = K.value, M.value = j(G.configure), G.configure.runtime.headerInfo = M.value, V();
27
+ }, { immediate: true }), t(G.configure.props, () => {
28
+ V(), P();
29
+ }), t(() => G.configure.initializationQuery, () => {
30
+ P();
31
+ }), t(G.configure.items, () => {
30
32
  V();
31
33
  });
32
34
  const U = setTimeout(() => {
33
- Q();
35
+ P();
34
36
  }, 100);
35
37
  function V() {
36
- C(J.configure, M), N.value = j(J.configure), P.value = y(J.configure.props.customTheme), J.configure.runtime.chartOption = M.value, J.configure.runtime.headerInfo = N.value, I(J.configure, N.value);
38
+ y(G.configure, L), M.value = j(G.configure), N.value = x(G.configure.props.customTheme), G.configure.runtime.chartOption = L.value, G.configure.runtime.headerInfo = M.value, C(G.configure, M.value);
37
39
  }
38
40
  function X() {
39
- if (J.configure.items) for (let e3 of J.configure.items) e3.selected = false;
41
+ if (G.configure.items) for (let e3 of G.configure.items) e3.selected = false;
40
42
  }
41
43
  function Y(e3) {
42
44
  X();
43
45
  }
44
46
  r(() => {
45
- W(J.configure), U && clearTimeout(U);
46
- }), J.selectWidget && i(J.selectWidget, () => {
47
- null != J.selectWidget && J.selectWidget.value != J.configure.componentIndex && X();
48
- }), t(null);
49
- const Z = G2;
50
- return (e3, t2) => (n(), o("div", { style: c([K.value, { position: "relative" }]), class: u([L.value, "amb-widget-chart"]), onClick: s(Y, ["stop"]), ref: "thisRef" }, [l(m(D, { headerInfo: N.value }, null, 8, ["headerInfo"]), [[f, N.value.showHeader]]), m(a(H), { ref: "chartRef", theme: P.value, option: M.value, autoresize: "" }, null, 8, ["theme", "option"]), l(g("div", S, [(n(true), o(p, null, d(e3.configure.items, (e4, t3) => (n(), o("label", { class: u([[e4.selected ? "amb-design-chart-series-selected" : ""], "amb-design-chart-series"]), onClick: s((e5) => function(e6, t4) {
47
+ W(G.configure), U && clearTimeout(U);
48
+ }), G.selectWidget && t(G.selectWidget, () => {
49
+ null != G.selectWidget && G.selectWidget.value != G.configure.componentIndex && X();
50
+ }), i(null);
51
+ const Z = E2;
52
+ return (e3, i2) => (n(), o("div", { style: c([J.value, { position: "relative" }]), class: s([K.value, "amb-widget-chart"]), onClick: u(Y, ["stop"]), ref: "thisRef" }, [l(m(D, { headerInfo: M.value }, null, 8, ["headerInfo"]), [[a, M.value.showHeader]]), m(f(H), { ref: "chartRef", theme: N.value, option: L.value, autoresize: "" }, null, 8, ["theme", "option"]), l(g("div", Q, [(n(true), o(p, null, d(e3.configure.items, (e4, i3) => (n(), o("label", { class: s([[e4.selected ? "amb-design-chart-series-selected" : ""], "amb-design-chart-series"]), onClick: u((e5) => function(e6, i4) {
51
53
  e6 && e6.preventDefault();
52
- const i2 = J.configure.items[t4];
53
- if (!i2.selected) {
54
- for (let e7 of J.configure.items) if (e7.selected) {
54
+ const t2 = G.configure.items[i4];
55
+ if (!t2.selected) {
56
+ for (let e7 of G.configure.items) if (e7.selected) {
55
57
  e7.selected = false;
56
58
  break;
57
59
  }
58
- i2.serviceFields = J.configure.serviceFields, i2.serviceDataField = J.configure.serviceDataField, i2.selected = true, Z("onCustomAttrWidget", i2, k);
60
+ t2.serviceFields = G.configure.serviceFields, t2.serviceDataField = G.configure.serviceDataField, t2.selected = true, Z("onCustomAttrWidget", t2, k);
59
61
  }
60
- }(e5, t3), ["stop"]) }, v(e4.props.title), 11, E))), 256))], 512), [[f, e3.configure.componentIndex == e3.selectWidget.value]])], 6));
62
+ }(e5, i3), ["stop"]) }, v(e4.props.title), 11, S))), 256))], 512), [[a, e3.configure.componentIndex == e3.selectWidget.value]])], 6));
61
63
  } });
62
64
  export {
63
- G as default
65
+ E as default
64
66
  };