super-page-designer 2.3.9-design1 → 2.3.9-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 (42) hide show
  1. package/dist/es/components/design/utils/common-option.js +5 -0
  2. package/dist/es/components/design/utils/page-event-util.js +0 -1
  3. package/dist/es/components/design/utils/page-i18n-util.js +5 -6
  4. package/dist/es/components/design/utils/page-table-util.js +35 -31
  5. package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +16 -16
  6. package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +4 -5
  7. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +17 -17
  8. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +0 -3
  9. package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +2 -3
  10. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +13 -13
  11. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +4 -4
  12. package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +2 -3
  13. package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +22 -22
  14. package/dist/es/components/design/views/assemblys/data/bar-code/barcode-design.vue2.js +3 -3
  15. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +1 -1
  16. package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +10 -10
  17. package/dist/es/components/design/views/assemblys/data/component/import-header.vue.js +2 -2
  18. package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +2 -2
  19. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +3 -3
  20. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +75 -73
  21. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +4 -4
  22. package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -3
  23. package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -1
  24. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +42 -41
  25. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +1 -1
  26. package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +2 -2
  27. package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +11 -11
  28. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +13 -14
  29. package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
  30. package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +1 -1
  31. package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js +1 -1
  32. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +3 -3
  33. package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
  34. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +1 -1
  35. package/dist/es/components/design/views/design/page-event/config.vue3.js +17 -18
  36. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
  37. package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +0 -1
  38. package/dist/es/components/design/views/design/view/page-switch.vue2.js +2 -3
  39. package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
  40. package/dist/es/stores/undo-redo-store.js +1 -1
  41. package/dist/es/style.css +1 -1
  42. package/package.json +4 -4
@@ -0,0 +1,5 @@
1
+ const m = [{ label: "yyyy-m-d", value: "yyyy-m-d" }, { label: "yyyy-m-d hh:mm:ss", value: "yyyy-m-d hh:mm:ss" }, { label: "yyyy-m", value: "yyyy-m" }, { label: "m-d", value: "m-d" }, { label: "yyyy", value: "yyyy" }, { label: "yyyy年m月d日", value: "yyyy年m月d日" }, { label: "yyyy年m月d日hh时mm分ss秒", value: "yyyy年m月d日hh时mm分ss秒" }, { label: "yyyy年m月", value: "yyyy年m月" }, { label: "m月d日", value: "m月d日" }, { label: "ww", value: "ww" }], y = [{ label: "HH:mm", value: "HH:mm" }, { label: "HH:mm:ss", value: "HH:mm:ss" }, { label: "HH时mm分", value: "HH时mm分" }, { label: "HH时mm分ss秒", value: "HH时mm分ss秒" }, { label: "hh:mm", value: "hh:mm" }, { label: "hh:mm:ss", value: "hh:mm:ss" }, { label: "hh时mm分", value: "hh时mm分" }, { label: "hh时mm分ss秒", value: "hh时mm分ss秒" }];
2
+ export {
3
+ m as dateFormatOptions,
4
+ y as timeFormatOptions
5
+ };
@@ -6,7 +6,6 @@ function t() {
6
6
  try {
7
7
  for (let e2 of o) "customFunc" == e2.name && r.push({ value: e2.eventName, label: e2.eventName + (e2.remark ? "-" + e2.remark : "") });
8
8
  } catch (e2) {
9
- console.error("获取自定义方法失败", e2);
10
9
  }
11
10
  return r;
12
11
  }
@@ -1,20 +1,19 @@
1
1
  const e = ["tools", "form"];
2
- function s(r, a) {
2
+ function s(l, o) {
3
3
  var _a;
4
4
  try {
5
- r.name || r.label && o(r.label, a), ((_a = r.props) == null ? void 0 : _a.base) && !e.includes(r.name) && (r.props.base.title && o(r.props.base.title, a), r.props.base.placeholder && o(r.props.base.placeholder, a), r.props.base.label && o(r.props.base.label, a)), r.items && r.items.length > 0 && r.items.forEach((e2) => {
6
- s(e2, a);
5
+ l.name || l.label && a(l.label, o), ((_a = l.props) == null ? void 0 : _a.base) && !e.includes(l.name) && (l.props.base.title && a(l.props.base.title, o), l.props.base.placeholder && a(l.props.base.placeholder, o), l.props.base.label && a(l.props.base.label, o)), l.items && l.items.length > 0 && l.items.forEach((e2) => {
6
+ s(e2, o);
7
7
  });
8
8
  } catch (e2) {
9
- console.error(e2);
10
9
  }
11
10
  }
12
- function o(e2, s2) {
11
+ function a(e2, s2) {
13
12
  Array.isArray(e2) || (e2 = [e2]), e2.forEach((e3) => {
14
13
  s2.i18nKeys.includes(e3) || s2.i18nKeys.push(e3);
15
14
  });
16
15
  }
17
16
  export {
18
- o as addI18nKey,
17
+ a as addI18nKey,
19
18
  s as setPagetemI18nKey
20
19
  };
@@ -2,41 +2,41 @@ import e from "agilebuilder-ui/src/utils/request";
2
2
  import { getFormPropName as t } from "./page-helper-util.js";
3
3
  import { getDesignEvents as r } from "./assemblys-config.js";
4
4
  import { addI18nKey as a } from "./page-i18n-util.js";
5
- import { findDesignItemByUuid as i } from "./common-util.js";
5
+ import { findDesignItemByUuid as o } from "./common-util.js";
6
6
  import { getComponentOptionConfigsBase as s } from "super-page-runtime";
7
- function o(t2, r2, a2) {
8
- let i2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/table-columns";
9
- return i2 += "?systemCode=" + (t2 || ""), i2 += "&publishVersion=" + (r2 || ""), i2 += "&tableName=" + (a2 || ""), e.get(i2);
7
+ function i(t2, r2, a2) {
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);
10
10
  }
11
11
  function n(t2, r2, a2) {
12
- const i2 = { systemCode: t2, formVersion: r2, publishVersion: a2 };
13
- return e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/list-view-children/forms", i2);
12
+ const o2 = { systemCode: t2, formVersion: r2, publishVersion: a2 };
13
+ return e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/list-view-children/forms", o2);
14
14
  }
15
15
  function p(e2, r2) {
16
- const i2 = JSON.stringify(e2), s2 = JSON.parse(i2);
17
- r2.tableRuntimes || (r2.tableRuntimes = {}), r2.tableRuntimes[s2.uuid] = function(e3, r3, i3) {
16
+ const o2 = JSON.stringify(e2), s2 = JSON.parse(o2);
17
+ r2.tableRuntimes || (r2.tableRuntimes = {}), r2.tableRuntimes[s2.uuid] = function(e3, r3, o3) {
18
18
  var _a;
19
- const s3 = "V" + r3.version + "__" + r3.code + "__" + e3.uuid, o3 = { configure: i3, code: s3, name: e3.title, totalType: e3.props.base ? e3.props.base.totalType : null, remark: e3.props.base ? e3.props.base.remark : null, pagination: e3.props.base ? e3.props.base.subPaging : null, rowNum: e3.props.base ? e3.props.base.pageSize : null, optionalRows: e3.props.base ? e3.props.base.pageSizes : null, layout: e3.props.base ? JSON.stringify(e3.props.base.layout) : null, startQuery: e3.props.base ? e3.props.base.startQuery : null, popUp: e3.props.base ? e3.props.base.popUp : null, isInitializationQuery: e3.props.dataOrigin.initializationQuery, defaultQueryCriteria: e3.props.dataOrigin.defaultQueryCriteria, queryLabelPosition: e3.props.base ? e3.props.base.queryLabelPosition : null, editable: e3.props.base ? e3.props.base.editable : null, urlToListData: e3.props.base ? e3.props.base.urlToListData : null, isSql: true, customConfig: e3.props.base ? e3.props.base.customConfig : null, tableName: e3.props.dataOrigin.tableName, totalable: e3.props.title.totalable, defaultSortField: JSON.stringify(e3.props.dataOrigin.sortField), titleAlign: e3.props.base ? e3.props.base.alignTitle : null, contAlign: e3.props.base ? e3.props.base.alignContent : null, displayEffect: e3.props.base ? e3.props.base.displayEffect : null, textOverflow: (_a = e3.props.base) == null ? void 0 : _a.textOverflow, isDragColumn: e3.props.base ? e3.props.base.isDragColumn : null, border: e3.props.base ? e3.props.base.border : null, customImportColumns: e3.props.importSetting.importFields };
20
- return o3.items = function(e4, r4) {
19
+ const s3 = "V" + r3.version + "__" + r3.code + "__" + e3.uuid, i3 = { configure: o3, code: s3, name: e3.title, totalType: e3.props.base ? e3.props.base.totalType : null, remark: e3.props.base ? e3.props.base.remark : null, pagination: e3.props.base ? e3.props.base.subPaging : null, rowNum: e3.props.base ? e3.props.base.pageSize : null, optionalRows: e3.props.base ? e3.props.base.pageSizes : null, layout: e3.props.base ? JSON.stringify(e3.props.base.layout) : null, startQuery: e3.props.base ? e3.props.base.startQuery : null, popUp: e3.props.base ? e3.props.base.popUp : null, isInitializationQuery: e3.props.dataOrigin.initializationQuery, defaultQueryCriteria: e3.props.dataOrigin.defaultQueryCriteria, queryLabelPosition: e3.props.base ? e3.props.base.queryLabelPosition : null, editable: e3.props.base ? e3.props.base.editable : null, urlToListData: e3.props.base ? e3.props.base.urlToListData : null, isSql: true, customConfig: e3.props.base ? e3.props.base.customConfig : null, tableName: e3.props.dataOrigin.tableName, totalable: e3.props.title.totalable, defaultSortField: JSON.stringify(e3.props.dataOrigin.sortField), titleAlign: e3.props.base ? e3.props.base.alignTitle : null, contAlign: e3.props.base ? e3.props.base.alignContent : null, displayEffect: e3.props.base ? e3.props.base.displayEffect : null, textOverflow: (_a = e3.props.base) == null ? void 0 : _a.textOverflow, isDragColumn: e3.props.base ? e3.props.base.isDragColumn : null, border: e3.props.base ? e3.props.base.border : null, customImportColumns: e3.props.importSetting.importFields };
20
+ return i3.items = function(e4, r4) {
21
21
  var _a2;
22
- const i4 = [];
22
+ const o4 = [];
23
23
  return (_a2 = e4.items) == null ? void 0 : _a2.forEach((e5) => {
24
24
  const s4 = { controlName: c(e5) };
25
- let o4 = { 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: g(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: s4.controlName, controlConfig: b(e5), eventType: S(e5), displayOrder: e5.props.base.displayOrder, fileSet: f(e5), orgTreeSet: d(e5), dynamicColumnJson: C(e5), valueSetOptions: u(e5, r4.systemCode, r4.systemVersion), required: e5.props.verification.required, pattern: e5.props.verification.verifyRegex, checkType: h(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
- r4.i18nKeys && a(e5.props.base.name, r4), e5.functionCodes && e5.functionCodes.length > 0 && (o4.functionCode = e5.functionCodes.join(",")), i4.push(o4);
27
- }), i4;
28
- }(e3, r3), o3.groupHeaders = function(e4) {
25
+ let i4 = { 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: g(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: s4.controlName, controlConfig: b(e5), eventType: S(e5), displayOrder: e5.props.base.displayOrder, fileSet: f(e5), orgTreeSet: d(e5), dynamicColumnJson: C(e5), valueSetOptions: u(e5, r4.systemCode, r4.systemVersion), required: e5.props.verification.required, pattern: e5.props.verification.verifyRegex, checkType: O(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
+ r4.i18nKeys && a(e5.props.base.name, r4), e5.functionCodes && e5.functionCodes.length > 0 && (i4.functionCode = e5.functionCodes.join(",")), o4.push(i4);
27
+ }), o4;
28
+ }(e3, r3), i3.groupHeaders = function(e4) {
29
29
  const t2 = [];
30
30
  e4.props.base.isEnableGroupHeader && e4.props.groupHeaders && e4.props.groupHeaders.forEach((e5) => {
31
31
  const r4 = { titleText: e5.titleText, parentCode: e5.parentUuid, displayOrder: e5.displayOrder, prop: e5.prop, uuid: e5.uuid };
32
32
  t2.push(r4);
33
33
  });
34
34
  return t2.sort((e5, t3) => e5.displayOrder - t3.displayOrder), t2;
35
- }(e3), o3;
36
- }(s2, r2, i2), delete e2.btnList, delete e2.items, delete e2.modelFields;
37
- const o2 = s2.runtime;
38
- if (o2 && (o2.events || o2.common)) {
39
- const { events: t2, common: r3 } = o2;
35
+ }(e3), i3;
36
+ }(s2, r2, o2), delete e2.btnList, delete e2.items, delete e2.modelFields;
37
+ const i2 = s2.runtime;
38
+ if (i2 && (i2.events || i2.common)) {
39
+ const { events: t2, common: r3 } = i2;
40
40
  e2.runtime = { events: t2, common: r3 };
41
41
  } else delete e2.runtime;
42
42
  }
@@ -62,11 +62,11 @@ function u(e2, t2, r2) {
62
62
  }
63
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
64
  if (a2.dataOrigin && a2.dataOrigin.optionValueSetType) {
65
- const i2 = a2.dataOrigin.optionValueSetType, o2 = a2.dataOrigin;
66
- if ("dynamicData" === i2) return JSON.stringify({ type: "dynamicData", dynamicDataSourceCode: o2.dynamicDataSourceCode, filterType: o2.filterType, valueSetOptions: m(o2), valueLabelSwitch: !!o2.valueLabelSwitch });
65
+ const o2 = a2.dataOrigin.optionValueSetType, i2 = a2.dataOrigin;
66
+ if ("dynamicData" === o2) return JSON.stringify({ type: "dynamicData", dynamicDataSourceCode: i2.dynamicDataSourceCode, filterType: i2.filterType, valueSetOptions: m(i2), valueLabelSwitch: !!i2.valueLabelSwitch });
67
67
  {
68
68
  const a3 = s(e2, t2, r2);
69
- return a3 ? (a3.valueSetOptions = m(o2), JSON.stringify(a3)) : null;
69
+ return a3 ? (a3.valueSetOptions = m(i2), JSON.stringify(a3)) : null;
70
70
  }
71
71
  }
72
72
  }
@@ -165,9 +165,9 @@ function b(e2) {
165
165
  var _a, _b, _c, _d, _e, _f;
166
166
  let t2 = {};
167
167
  if ("select" === e2.name) {
168
- const r2 = e2.props.base, a2 = r2.allowCreate, i2 = r2.clearable;
168
+ const r2 = e2.props.base, a2 = r2.allowCreate, o2 = r2.clearable;
169
169
  let s2 = false;
170
- ("normal" === e2.props.dataOrigin.filterType || a2) && (s2 = true), t2.automaticDropdown = false, t2.clearable = i2, t2.filterable = s2, t2.allowCreate = a2;
170
+ ("normal" === e2.props.dataOrigin.filterType || a2) && (s2 = true), t2.automaticDropdown = false, t2.clearable = o2, t2.filterable = s2, t2.allowCreate = a2;
171
171
  } else if ("input-text" === e2.name) {
172
172
  const r2 = !!((_a = e2.props.scan) == null ? void 0 : _a.enable), a2 = (_b = e2.props.scan) == null ? void 0 : _b.ruleList;
173
173
  t2.scanEnable = r2, t2.scanRuleList = a2;
@@ -193,6 +193,10 @@ function g(e2) {
193
193
  const t2 = { type: e2.props.format.type }, r2 = {};
194
194
  return r2.showNameData = { name: e2.props.format.showName, dbName: (_b = e2.props.format.showName) == null ? void 0 : _b.toUpperCase() }, r2.serverNameData = { name: e2.props.format.serverName, dbName: (_c = e2.props.format.serverName) == null ? void 0 : _c.toUpperCase() }, t2.fileSet = r2, JSON.stringify(t2);
195
195
  }
196
+ if ("customControl" === e2.props.format.type) {
197
+ const t2 = {};
198
+ return Object.assign(t2, e2.props.format), delete t2.parameter, t2.controlConfig = { customParams: e2.props.format.parameter }, JSON.stringify(t2);
199
+ }
196
200
  return JSON.stringify(e2.props.format);
197
201
  }
198
202
  return null;
@@ -213,7 +217,7 @@ function S(e2, t2) {
213
217
  function C(e2) {
214
218
  return e2.props.base.prop && "dynamicColumnSelect" === e2.props.base.prop ? JSON.stringify(e2.props.dynamicColumnData) : null;
215
219
  }
216
- function h(e2) {
220
+ function O(e2) {
217
221
  if (Array.isArray(e2) && e2.length > 0) {
218
222
  const t2 = [];
219
223
  return e2.forEach((e3) => {
@@ -222,7 +226,7 @@ function h(e2) {
222
226
  }
223
227
  return Array.isArray(e2) && 0 === e2.length ? null : e2;
224
228
  }
225
- function O(e2, t2) {
229
+ function h(e2, t2) {
226
230
  let a2 = { uuid: e2.uuid, base: e2.props.base, dataOrigin: e2.props.dataOrigin, dynamicColumnData: e2.props.dynamicColumnData, editLine: e2.props.editLine, format: e2.props.format, verification: e2.props.verification, definition: e2.props.definition, size: e2.props.size };
227
231
  e2.props = {}, e2.uuid = a2.uuid, e2.props.base = a2.base, e2.props.dataOrigin = a2.dataOrigin, e2.props.dynamicColumnData = a2.dynamicColumnData, e2.props.editLine = a2.editLine, e2.props.format = a2.format, e2.props.verification = a2.verification, e2.props.definition = a2.definition, e2.props.size = a2.size, e2.events = r(t2), e2.name = t2;
228
232
  }
@@ -244,8 +248,8 @@ function v(e2) {
244
248
  function D(e2, t2, r2) {
245
249
  var _a;
246
250
  const a2 = e2 ? e2.pageType : null;
247
- let s2, o2;
248
- return r2 ? s2 = r2 : (t2 == null ? void 0 : t2.props.base.tableUuid) ? (o2 = t2.props.base.tableUuid, s2 = i(e2, o2)) : a2 && "list" === a2 && ((_a = e2 == null ? void 0 : e2.tableUuids) == null ? void 0 : _a.length) > 0 ? (o2 = e2 == null ? void 0 : e2.tableUuids[0], s2 = i(e2, o2)) : (e2 == null ? void 0 : e2.currentTableConfig) && (s2 = e2.currentTableConfig), s2;
251
+ let s2, i2;
252
+ return r2 ? s2 = r2 : (t2 == null ? void 0 : t2.props.base.tableUuid) ? (i2 = t2.props.base.tableUuid, s2 = o(e2, i2)) : a2 && "list" === a2 && ((_a = e2 == null ? void 0 : e2.tableUuids) == null ? void 0 : _a.length) > 0 ? (i2 = e2 == null ? void 0 : e2.tableUuids[0], s2 = o(e2, i2)) : (e2 == null ? void 0 : e2.currentTableConfig) && (s2 = e2.currentTableConfig), s2;
249
253
  }
250
254
  export {
251
255
  T as changeFeieldToMap,
@@ -253,7 +257,7 @@ export {
253
257
  D as getTableConfigByTableUuid,
254
258
  N as getTableNameByTableUuid,
255
259
  n as querySublist,
256
- o as queryTableFields,
260
+ i as queryTableFields,
257
261
  p as setTableRuntimesFromConfigure,
258
- O as tableResetConfigIndo
262
+ h as tableResetConfigIndo
259
263
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as o, watch as l, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as s, createCommentVNode as u, createElementVNode as r, createElementBlock as p, Fragment as f, renderList as c, createTextVNode as g, withDirectives as d, vShow as m } from "vue";
1
+ import { defineComponent as e, ref as l, watch as o, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as s, createCommentVNode as u, createElementVNode as r, createElementBlock as p, Fragment as f, renderList as c, createTextVNode as g, withDirectives as d, vShow as m } from "vue";
2
2
  import b from "../component/condition-dialog.vue.js";
3
3
  import v from "../component/set-dialog.vue.js";
4
4
  import y from "../component/combination.vue.js";
@@ -11,7 +11,7 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, D = e({ __name: "button-att
11
11
  } }, pageDesign: { type: Object, default: () => {
12
12
  } } }, setup(e2) {
13
13
  var _a;
14
- const D2 = e2, O = o(["base"]), j = o(false), M = o([]), x = (_a = D2.pageDesign) == null ? void 0 : _a.systemVersion, L = o(h(D2.pageDesign, D2.configure));
14
+ const D2 = e2, O = l(["base"]), j = l(false), M = l([]), x = (_a = D2.pageDesign) == null ? void 0 : _a.systemVersion, L = l(h(D2.pageDesign, D2.configure));
15
15
  function R() {
16
16
  j.value = false;
17
17
  }
@@ -21,39 +21,39 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, D = e({ __name: "button-att
21
21
  V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${D2.pageDesign.systemCode}/${x}`).then((e3) => {
22
22
  M.value = e3;
23
23
  });
24
- const N = o(false);
24
+ const N = l(false);
25
25
  function U() {
26
26
  N.value = false;
27
27
  }
28
- const z = o(false);
28
+ const z = l(false);
29
29
  function A() {
30
30
  z.value = false;
31
31
  }
32
32
  function $(e3) {
33
- D2.configure.props.setValueList = e3, D2.configure.props.setValueList;
33
+ D2.configure.props.setValueList = e3;
34
34
  }
35
- const F = o(false);
35
+ const F = l(false);
36
36
  function P() {
37
37
  F.value = false;
38
38
  }
39
39
  function W(e3) {
40
40
  D2.configure.props.base.showConditions = JSON.stringify(e3);
41
41
  }
42
- const q = o(J("opinion")), I = o(J("wfRemark"));
42
+ const q = l(J("opinion")), I = l(J("wfRemark"));
43
43
  function J(e3) {
44
- let o2 = false;
45
- const l2 = D2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
46
- if (l2 && l2.length > 0) {
47
- const a2 = l2[0].eventName;
48
- o2 = k(a2, e3);
44
+ let l2 = false;
45
+ const o2 = D2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
46
+ if (o2 && o2.length > 0) {
47
+ const a2 = o2[0].eventName;
48
+ l2 = k(a2, e3);
49
49
  }
50
- return o2;
50
+ return l2;
51
51
  }
52
- return l(D2.configure.events, (e3) => {
52
+ return o(D2.configure.events, (e3) => {
53
53
  q.value = J("opinion"), I.value = J("wfRemark"), q.value || (D2.configure.props.base.isMustOpinion = false);
54
- }, { immediate: true }), (o2, l2) => {
54
+ }, { immediate: true }), (l2, o2) => {
55
55
  const k2 = a("el-option"), V2 = a("el-select"), h2 = a("el-form-item"), D3 = a("el-button"), x2 = a("el-text"), J2 = a("el-switch"), B = a("el-collapse-item"), E = a("el-collapse"), G = a("el-form");
56
- return n(), i(G, { "label-width": "80px", size: "small" }, { default: t(() => [s(E, { modelValue: O.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => O.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [s(B, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", w, [s(h2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": l2[0] || (l2[0] = (o3) => e2.configure.props.base.successOperation = o3), class: "ml-4" }, { default: t(() => [s(k2, { label: "无操作", value: "noOperation" }), s(k2, { label: "刷新", value: "refresh" }), s(k2, { label: "关闭窗口", value: "closeWindow" }), s(k2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": l2[1] || (l2[1] = (o3) => e2.configure.props.base.conversionCodes = o3), multiple: "", class: "ml-4" }, { default: t(() => [(n(true), p(f, null, c(M.value, (e3) => (n(), i(k2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: l2[2] || (l2[2] = (e3) => N.value = true) }, { default: t(() => l2[8] || (l2[8] = [g("编辑")])), _: 1 })]), _: 1 }), s(h2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: L.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: l2[3] || (l2[3] = (e3) => z.value = true) }, { default: t(() => l2[9] || (l2[9] = [g("编辑")])), _: 1 }), d(s(x2, { type: "success" }, { default: t(() => l2[10] || (l2[10] = [g("  已设置条件. ")])), _: 1 }, 512), [[m, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), s(h2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: L.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: l2[4] || (l2[4] = (e3) => j.value = true) }, { default: t(() => l2[11] || (l2[11] = [g("编辑")])), _: 1 })]), _: 1 }), q.value ? (n(), i(h2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [s(J2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": l2[5] || (l2[5] = (o3) => e2.configure.props.base.isMustOpinion = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustOpinion ? (n(), i(h2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: L.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true), I.value ? (n(), i(h2, { key: 2, label: "备注必填", class: "amb-design-attr-item" }, { default: t(() => [s(J2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": l2[6] || (l2[6] = (o3) => e2.configure.props.base.isMustRemark = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustRemark ? (n(), i(h2, { key: 3, label: "备注必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: L.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true)])]), _: 1 }), N.value ? (n(), i(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onClose: U }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), z.value ? (n(), i(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onSave: $, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), F.value ? (n(), i(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: L.value, onSave: W, onClose: P }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : u("", true), j.value ? (n(), i(C, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: R, onSave: S }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
56
+ return n(), i(G, { "label-width": "80px", size: "small" }, { default: t(() => [s(E, { modelValue: O.value, "onUpdate:modelValue": o2[7] || (o2[7] = (e3) => O.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [s(B, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", w, [s(h2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": o2[0] || (o2[0] = (l3) => e2.configure.props.base.successOperation = l3), class: "ml-4" }, { default: t(() => [s(k2, { label: "无操作", value: "noOperation" }), s(k2, { label: "刷新", value: "refresh" }), s(k2, { label: "关闭窗口", value: "closeWindow" }), s(k2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": o2[1] || (o2[1] = (l3) => e2.configure.props.base.conversionCodes = l3), multiple: "", class: "ml-4" }, { default: t(() => [(n(true), p(f, null, c(M.value, (e3) => (n(), i(k2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: o2[2] || (o2[2] = (e3) => N.value = true) }, { default: t(() => o2[8] || (o2[8] = [g("编辑")])), _: 1 })]), _: 1 }), s(h2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: L.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: o2[3] || (o2[3] = (e3) => z.value = true) }, { default: t(() => o2[9] || (o2[9] = [g("编辑")])), _: 1 }), d(s(x2, { type: "success" }, { default: t(() => o2[10] || (o2[10] = [g("  已设置条件. ")])), _: 1 }, 512), [[m, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), s(h2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: L.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: o2[4] || (o2[4] = (e3) => j.value = true) }, { default: t(() => o2[11] || (o2[11] = [g("编辑")])), _: 1 })]), _: 1 }), q.value ? (n(), i(h2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [s(J2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": o2[5] || (o2[5] = (l3) => e2.configure.props.base.isMustOpinion = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustOpinion ? (n(), i(h2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: L.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true), I.value ? (n(), i(h2, { key: 2, label: "备注必填", class: "amb-design-attr-item" }, { default: t(() => [s(J2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": o2[6] || (o2[6] = (l3) => e2.configure.props.base.isMustRemark = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustRemark ? (n(), i(h2, { key: 3, label: "备注必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: L.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true)])]), _: 1 }), N.value ? (n(), i(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onClose: U }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), z.value ? (n(), i(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onSave: $, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), F.value ? (n(), i(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: L.value, onSave: W, onClose: P }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : u("", true), j.value ? (n(), i(C, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: R, onSave: S }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
57
57
  };
58
58
  } });
59
59
  export {
@@ -2,13 +2,12 @@ import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a
2
2
  import m from "../../common-series/common-attr-dataset-columnline.vue.js";
3
3
  import d from "../../common-series/common-attr-dynamic.vue.js";
4
4
  import c from "../../common-series/common-attr-testdatas.vue.js";
5
- import g from "../../../form/common/suffixmodule.vue.js";
6
- const f = { style: { padding: "8px 0px 0px 0px" } }, x = { style: { padding: "8px 0px 0px 0px" } }, y = e({ __name: "column-line-series-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
7
- e2.pageDesign;
5
+ import f from "../../../form/common/suffixmodule.vue.js";
6
+ const g = { style: { padding: "8px 0px 0px 0px" } }, x = { style: { padding: "8px 0px 0px 0px" } }, y = e({ __name: "column-line-series-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
8
7
  const y2 = l(["1", "dataList", "propsDynamic", "clicklinkage", "propsTestDatas"]);
9
8
  return (l2, b) => {
10
- const V = o("el-option"), v = o("el-select"), _ = o("el-form-item"), h = o("el-switch"), D = o("el-input"), j = o("el-radio-button"), k = o("el-radio-group"), U = o("el-collapse-item"), S = o("el-collapse"), w = o("el-form");
11
- return t(), a(w, { "label-width": "80px", size: "small" }, { default: u(() => [i(S, { modelValue: y2.value, "onUpdate:modelValue": b[4] || (b[4] = (e3) => y2.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(U, { title: "基本", name: "1", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", f, [i(_, { label: "系列类型", style: { "margin-top": "4px" } }, { default: u(() => [i(v, { modelValue: e2.configure.type, "onUpdate:modelValue": b[0] || (b[0] = (l3) => e2.configure.type = l3) }, { default: u(() => [i(V, { label: "柱状图", value: "bar" }), i(V, { label: "折线图", value: "line" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(i(_, { label: "曲线", style: { "margin-top": "-10px" } }, { default: u(() => [i(h, { modelValue: e2.configure.style.isSmooth, "onUpdate:modelValue": b[1] || (b[1] = (l3) => e2.configure.style.isSmooth = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[p, "line" == e2.configure.type]]), i(_, { label: "系列名称", style: { "margin-top": "-10px" } }, { default: u(() => [i(D, { modelValue: e2.configure.props.title, "onUpdate:modelValue": b[2] || (b[2] = (l3) => e2.configure.props.title = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(_, { label: "Y坐标参照", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: u(() => [i(k, { modelValue: e2.configure.props.yAxisIndex, "onUpdate:modelValue": b[3] || (b[3] = (l3) => e2.configure.props.yAxisIndex = l3) }, { default: u(() => [i(j, { value: "0" }, { default: u(() => b[5] || (b[5] = [s("左坐标")])), _: 1 }), i(j, { value: "1" }, { default: u(() => b[6] || (b[6] = [s("右坐标")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(m, { configure: e2.configure }, null, 8, ["configure"]), r(i(d, { configure: e2.configure }, null, 8, ["configure"]), [[p, !e2.configure.props.yaxisSource || "variable" === e2.configure.props.yaxisSource]]), i(U, { title: "Click跳转配置", name: "clicklinkage", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", x, [(t(), a(g, { key: e2.configure.uuid, configure: e2.configure, pageDesign: e2.pageDesign, isButton: false }, null, 8, ["configure", "pageDesign"]))])]), _: 1 }), i(c, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
9
+ const V = o("el-option"), v = o("el-select"), _ = o("el-form-item"), h = o("el-switch"), j = o("el-input"), k = o("el-radio-button"), D = o("el-radio-group"), U = o("el-collapse-item"), S = o("el-collapse"), w = o("el-form");
10
+ return t(), a(w, { "label-width": "80px", size: "small" }, { default: u(() => [i(S, { modelValue: y2.value, "onUpdate:modelValue": b[4] || (b[4] = (e3) => y2.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(U, { title: "基本", name: "1", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", g, [i(_, { label: "系列类型", style: { "margin-top": "4px" } }, { default: u(() => [i(v, { modelValue: e2.configure.type, "onUpdate:modelValue": b[0] || (b[0] = (l3) => e2.configure.type = l3) }, { default: u(() => [i(V, { label: "柱状图", value: "bar" }), i(V, { label: "折线图", value: "line" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(i(_, { label: "曲线", style: { "margin-top": "-10px" } }, { default: u(() => [i(h, { modelValue: e2.configure.style.isSmooth, "onUpdate:modelValue": b[1] || (b[1] = (l3) => e2.configure.style.isSmooth = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[p, "line" == e2.configure.type]]), i(_, { label: "系列名称", style: { "margin-top": "-10px" } }, { default: u(() => [i(j, { modelValue: e2.configure.props.title, "onUpdate:modelValue": b[2] || (b[2] = (l3) => e2.configure.props.title = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(_, { label: "Y坐标参照", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: u(() => [i(D, { modelValue: e2.configure.props.yAxisIndex, "onUpdate:modelValue": b[3] || (b[3] = (l3) => e2.configure.props.yAxisIndex = l3) }, { default: u(() => [i(k, { value: "0" }, { default: u(() => b[5] || (b[5] = [s("左坐标")])), _: 1 }), i(k, { value: "1" }, { default: u(() => b[6] || (b[6] = [s("右坐标")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(m, { configure: e2.configure }, null, 8, ["configure"]), r(i(d, { configure: e2.configure }, null, 8, ["configure"]), [[p, !e2.configure.props.yaxisSource || "variable" === e2.configure.props.yaxisSource]]), i(U, { title: "Click跳转配置", name: "clicklinkage", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", x, [(t(), a(f, { key: e2.configure.uuid, configure: e2.configure, pageDesign: e2.pageDesign, isButton: false }, null, 8, ["configure", "pageDesign"]))])]), _: 1 }), i(c, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
12
11
  };
13
12
  } });
14
13
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as o, onMounted as n, onUnmounted as i, watch as l, resolveComponent as t, createElementBlock as r, openBlock as u, createVNode as s, createElementVNode as a, withDirectives as c, normalizeStyle as d, normalizeClass as p, withCtx as g, Fragment as m, renderList as f, createBlock as b, createCommentVNode as v, createTextVNode as y, unref as h, vShow as C } from "vue";
1
+ import { defineComponent as e, ref as o, onMounted as n, onUnmounted as i, watch as t, resolveComponent as l, createElementBlock as r, openBlock as u, createVNode as s, createElementVNode as a, withDirectives as c, normalizeStyle as d, normalizeClass as p, withCtx as g, Fragment as m, renderList as f, createBlock as b, createCommentVNode as v, createTextVNode as y, unref as h, vShow as C } from "vue";
2
2
  import j from "../../../../utils/eventBus.js";
3
3
  import { useDraggable as x } from "vue-draggable-plus";
4
4
  import { caculateComponentProps as D } from "../../../../utils/form-design-util.js";
@@ -37,9 +37,9 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
37
37
  M(G.configure);
38
38
  }), j.$on("setHiddenColumsUuid", (e3) => {
39
39
  e3.value ? U.value = U.value.filter((o2) => o2 != e3.uuid) : U.value.push(e3.uuid);
40
- }), l(G.configure.style, () => {
40
+ }), t(G.configure.style, () => {
41
41
  G.configure.runtime.style = G.configure.style;
42
- }, { immediate: true }), l(G.configure.props, () => {
42
+ }, { immediate: true }), t(G.configure.props, () => {
43
43
  D(G.configure, P), function() {
44
44
  let e3 = G.configure.props;
45
45
  if (!e3.base) return;
@@ -49,13 +49,13 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
49
49
  const e3 = W(G.configure, null);
50
50
  G.configure.runtime.dataConfig = e3;
51
51
  }();
52
- }, { immediate: true }), l(G.configure.items, (e3) => {
52
+ }, { immediate: true }), t(G.configure.items, (e3) => {
53
53
  X.addFieldList(e3), G.configure.runtime.items = G.configure.items;
54
- }, { immediate: true }), l(() => G.configure.props.isChangeGroupHeader, () => {
54
+ }, { immediate: true }), t(() => G.configure.props.isChangeGroupHeader, () => {
55
55
  G.configure.props.isChangeGroupHeader && (q.value = E(G.configure), K.value && K.value.doLayout());
56
56
  }), j.$on("reloadTable-" + G.configure.uuid, (e3) => {
57
57
  e3 && (G.configure.items = e3, q.value = E(G.configure)), K.value && K.value.doLayout();
58
- }), l(() => q.value, (e3) => {
58
+ }), t(() => q.value, (e3) => {
59
59
  e3.forEach((e4) => {
60
60
  e4.props && e4.props.base && !e4.props.base.visible && U.value.push(e4.uuid);
61
61
  });
@@ -70,8 +70,8 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
70
70
  (o2 || window.event).preventDefault(), n2 = e3, G.configure.items.forEach((e4, o3) => {
71
71
  e4.props.base.name == n2.label && (oe.value = e4, ne.value = o3);
72
72
  }), R.value = true;
73
- const i2 = document.querySelector("#tableDesignMenu"), l2 = document.documentElement.scrollTop || document.body.scrollTop;
74
- i2.style.display = "block", i2.style.left = o2.clientX + 30 + "px", i2.style.top = o2.clientY + l2 - 22 + "px";
73
+ const i2 = document.querySelector("#tableDesignMenu"), t2 = document.documentElement.scrollTop || document.body.scrollTop;
74
+ i2.style.display = "block", i2.style.left = o2.clientX + 30 + "px", i2.style.top = o2.clientY + t2 - 22 + "px";
75
75
  }
76
76
  function Z() {
77
77
  R.value = false;
@@ -85,7 +85,7 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
85
85
  e5.props.base.displayOrder && e5.props.base.displayOrder == o3 || (e5.props.base.displayOrder = o3);
86
86
  }), G.configure.props.base.isEnableGroupHeader && (w(G.configure.items[ne.value + 1], null, G.configure.props.groupHeaders), q.value = E(G.configure), j.$emit("synchroGroupHeadersData"));
87
87
  } else "deleteNode" === e3 && S.confirm("当前操作会删除当前列", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
88
- G.configure.props, oe.value, G.configure.items.splice(ne.value, 1);
88
+ G.configure.items.splice(ne.value, 1);
89
89
  }).catch(() => {
90
90
  });
91
91
  }
@@ -93,19 +93,19 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
93
93
  function ie(e3) {
94
94
  oe.value = e3;
95
95
  }
96
- function le(e3, o2, n2, i2) {
97
- te(q.value, n2.columnKey).props.base.columnWidth = e3;
96
+ function te(e3, o2, n2, i2) {
97
+ le(q.value, n2.columnKey).props.base.columnWidth = e3;
98
98
  }
99
- function te(e3, o2) {
99
+ function le(e3, o2) {
100
100
  let n2 = {};
101
101
  return e3.forEach((e4) => {
102
102
  if (e4.uuid && e4.uuid === o2) return n2 = e4;
103
- e4.children && e4.children.length > 0 && (n2 = te(e4.children, o2));
103
+ e4.children && e4.children.length > 0 && (n2 = le(e4.children, o2));
104
104
  }), n2;
105
105
  }
106
106
  function re({ row: e3, column: o2, rowIndex: n2, columnIndex: i2 }) {
107
- let l2 = "";
108
- return U.value.includes(o2.label) && (l2 = "hiddenBorder"), o2.label === z.value && (l2 = "addBorder"), l2;
107
+ let t2 = "";
108
+ return U.value.includes(o2.label) && (t2 = "hiddenBorder"), o2.label === z.value && (t2 = "addBorder"), t2;
109
109
  }
110
110
  function ue(e3) {
111
111
  z.value = e3.uuid;
@@ -118,8 +118,8 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
118
118
  }
119
119
  return x(".el-table__header-wrapper tr", G.configure.items, { animation: 150, ghostClass: "ghost", onStart(e3) {
120
120
  } }), (e3, o2) => {
121
- const n2 = t("el-table"), i2 = t("el-icon");
122
- return u(), r("div", null, [s(n2, { ref_key: "tableRef", ref: K, "cell-class-name": re, "header-cell-class-name": re, border: "", class: p(I.value), data: A.value, onHeaderDragend: le, onHeaderContextmenu: Q, onRowClick: J, onCellMouseEnter: se, onCellMouseLeave: ae, style: d(V.value) }, { default: g(() => [(u(true), r(m, null, f(q.value, (o3) => (u(), b(_, { key: o3, listColumns: o3, designProperty: P.value, configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, onSetClickColumn: ue, onOnSelectWidget: Y, onSetColumnData: ie, onCloseMenuVisible: Z, selectWidget: e3.selectWidget }, null, 8, ["listColumns", "designProperty", "configure", "pageDesign", "indexObj", "selectWidget"]))), 128))]), _: 1 }, 8, ["class", "data", "style"]), a("div", { onClick: J, style: { width: "100%", height: "30px" } }), c(a("div", null, [a("ul", N, [a("li", { tabindex: "-1", onClick: o2[0] || (o2[0] = () => ee("createCombinedHeader")) }, [s(i2, null, { default: g(() => [s(h(k))]), _: 1 }), o2[2] || (o2[2] = y(" 创建 "))]), oe.value.props && oe.value.props.base && "$selection" !== oe.value.props.base.prop && "$index" !== oe.value.props.base.prop ? (u(), r("li", { key: 0, tabindex: "-1", onClick: o2[1] || (o2[1] = () => ee("deleteNode")) }, [s(i2, null, { default: g(() => [s(h(H))]), _: 1 }), o2[3] || (o2[3] = y(" 删除 "))])) : v("", true)], 512)], 512), [[C, R.value]])]);
121
+ const n2 = l("el-table"), i2 = l("el-icon");
122
+ return u(), r("div", null, [s(n2, { ref_key: "tableRef", ref: K, "cell-class-name": re, "header-cell-class-name": re, border: "", class: p(I.value), data: A.value, onHeaderDragend: te, onHeaderContextmenu: Q, onRowClick: J, onCellMouseEnter: se, onCellMouseLeave: ae, style: d(V.value) }, { default: g(() => [(u(true), r(m, null, f(q.value, (o3) => (u(), b(_, { key: o3, listColumns: o3, designProperty: P.value, configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, onSetClickColumn: ue, onOnSelectWidget: Y, onSetColumnData: ie, onCloseMenuVisible: Z, selectWidget: e3.selectWidget }, null, 8, ["listColumns", "designProperty", "configure", "pageDesign", "indexObj", "selectWidget"]))), 128))]), _: 1 }, 8, ["class", "data", "style"]), a("div", { onClick: J, style: { width: "100%", height: "30px" } }), c(a("div", null, [a("ul", N, [a("li", { tabindex: "-1", onClick: o2[0] || (o2[0] = () => ee("createCombinedHeader")) }, [s(i2, null, { default: g(() => [s(h(k))]), _: 1 }), o2[2] || (o2[2] = y(" 创建 "))]), oe.value.props && oe.value.props.base && "$selection" !== oe.value.props.base.prop && "$index" !== oe.value.props.base.prop ? (u(), r("li", { key: 0, tabindex: "-1", onClick: o2[1] || (o2[1] = () => ee("deleteNode")) }, [s(i2, null, { default: g(() => [s(h(H))]), _: 1 }), o2[3] || (o2[3] = y(" 删除 "))])) : v("", true)], 512)], 512), [[C, R.value]])]);
123
123
  };
124
124
  } });
125
125
  export {
@@ -26,7 +26,6 @@ const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j =
26
26
  for (let e4 of l2) o2.push({ value: e4.iconName, label: e4.iconName });
27
27
  X.value.customOptions = o2, H.value = o2;
28
28
  } catch (e3) {
29
- console.error(e3);
30
29
  }
31
30
  le.value = false;
32
31
  }
@@ -43,7 +42,6 @@ const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j =
43
42
  const l3 = await fetch(e4, { mode: "cors" }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
44
43
  G.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
45
44
  } catch (e4) {
46
- console.error(e4);
47
45
  }
48
46
  le.value = false;
49
47
  }
@@ -57,7 +55,6 @@ const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j =
57
55
  const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
58
56
  W.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
59
57
  } catch (e4) {
60
- console.error(e4);
61
58
  }
62
59
  le.value = false;
63
60
  }
@@ -2,20 +2,19 @@ import { defineComponent as e, ref as o, resolveComponent as a, createBlock as t
2
2
  import { Plus as g } from "@element-plus/icons-vue";
3
3
  import { getToken as d } from "agilebuilder-ui/src/utils/auth";
4
4
  const m = { style: { padding: "8px 0px 0px 0px" } }, f = ["src"], b = e({ __name: "common-style-background", props: { configure: { type: Object, required: true } }, setup(e2) {
5
- const b2 = e2, v = o(window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), h = d(), y = o(window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/show-image?jwt=" + h + "&serverPath=");
5
+ const b2 = e2, h = o(window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), v = d(), y = o(window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/show-image?jwt=" + v + "&serverPath=");
6
6
  function k() {
7
7
  b2.configure.style.backgroundImageServerPath = void 0;
8
8
  }
9
9
  function x(e3) {
10
10
  if (e3.size > 3145728) return this.$message({ type: "warning", message: this.$t("imatrixUIMessage.exceedFileSize", { fileSize: 3 }), showClose: true }), false;
11
11
  }
12
- v.value;
13
12
  const w = (e3, o2) => {
14
13
  b2.configure.style.backgroundImageServerPath = e3.serverPath;
15
14
  };
16
15
  return (o2, d2) => {
17
16
  const b3 = a("el-color-picker"), P = a("el-form-item"), _ = a("CloseBold"), I = a("el-icon"), S = a("el-upload"), z = a("el-collapse-item");
18
- return r(), t(z, { title: "背景", name: "styleBackground", class: "amb-design-attr-group-header" }, { default: l(() => [s("div", m, [i(P, { label: "颜色", style: { "margin-top": "4px" } }, { default: l(() => [i(b3, { modelValue: e2.configure.style.backgroundColor, "onUpdate:modelValue": d2[0] || (d2[0] = (o3) => e2.configure.style.backgroundColor = o3) }, null, 8, ["modelValue"])]), _: 1 }), i(P, { label: "图片", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: l(() => [i(S, { class: "avatar-uploader", accept: "image/png, image/jpeg", "with-credentials": true, headers: { Authorization: n(h) }, action: v.value, "show-file-list": false, "on-success": w, "before-upload": x, style: { position: "relative" }, name: "file" }, { default: l(() => [e2.configure.style.backgroundImageServerPath ? (r(), u("img", { key: 0, src: y.value + e2.configure.style.backgroundImageServerPath + "&_tt=" + (/* @__PURE__ */ new Date()).getTime(), class: "avatar" }, null, 8, f)) : c("", true), e2.configure.style.backgroundImageServerPath ? (r(), t(I, { key: 1, style: { position: "absolute", top: "4px", right: "4px", "font-size": "15px", "background-color": "red" }, onClick: p(k, ["stop"]) }, { default: l(() => [i(_)]), _: 1 })) : (r(), t(I, { key: 2, class: "avatar-uploader-icon" }, { default: l(() => [i(n(g))]), _: 1 }))]), _: 1 }, 8, ["headers", "action"])]), _: 1 })])]), _: 1 });
17
+ return r(), t(z, { title: "背景", name: "styleBackground", class: "amb-design-attr-group-header" }, { default: l(() => [s("div", m, [i(P, { label: "颜色", style: { "margin-top": "4px" } }, { default: l(() => [i(b3, { modelValue: e2.configure.style.backgroundColor, "onUpdate:modelValue": d2[0] || (d2[0] = (o3) => e2.configure.style.backgroundColor = o3) }, null, 8, ["modelValue"])]), _: 1 }), i(P, { label: "图片", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: l(() => [i(S, { class: "avatar-uploader", accept: "image/png, image/jpeg", "with-credentials": true, headers: { Authorization: n(v) }, action: h.value, "show-file-list": false, "on-success": w, "before-upload": x, style: { position: "relative" }, name: "file" }, { default: l(() => [e2.configure.style.backgroundImageServerPath ? (r(), u("img", { key: 0, src: y.value + e2.configure.style.backgroundImageServerPath + "&_tt=" + (/* @__PURE__ */ new Date()).getTime(), class: "avatar" }, null, 8, f)) : c("", true), e2.configure.style.backgroundImageServerPath ? (r(), t(I, { key: 1, style: { position: "absolute", top: "4px", right: "4px", "font-size": "15px", "background-color": "red" }, onClick: p(k, ["stop"]) }, { default: l(() => [i(_)]), _: 1 })) : (r(), t(I, { key: 2, class: "avatar-uploader-icon" }, { default: l(() => [i(n(g))]), _: 1 }))]), _: 1 }, 8, ["headers", "action"])]), _: 1 })])]), _: 1 });
19
18
  };
20
19
  } });
21
20
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as l, onMounted as a, onUnmounted as t, computed as u, watch as o, resolveComponent as n, createElementBlock as s, createBlock as i, openBlock as r, toDisplayString as p, withCtx as v, createVNode as d, createElementVNode as m, withDirectives as f, unref as c, createTextVNode as y, vShow as g, normalizeStyle as b, createCommentVNode as h, withModifiers as w, nextTick as V } from "vue";
1
+ import { defineComponent as e, ref as l, onMounted as a, onUnmounted as t, computed as u, watch as o, resolveComponent as n, createElementBlock as s, createBlock as i, openBlock as r, toDisplayString as p, withCtx as d, createVNode as v, createElementVNode as m, withDirectives as f, unref as c, createTextVNode as y, vShow as g, normalizeStyle as b, createCommentVNode as h, withModifiers as w, nextTick as V } from "vue";
2
2
  import { Plus as x, InfoFilled as O, Search as k, CircleClose as C } from "@element-plus/icons-vue";
3
3
  import M from "agilebuilder-ui/src/utils/request";
4
4
  import { deepCopy as _, getUuidv4 as z } from "../../../utils/common-util.js";
@@ -6,7 +6,7 @@ import { getTypeOptions as j, contextVarOptions as U, taskVarOptions as L } from
6
6
  import { usePageContextStore as N } from "../../../../../stores/page-store.js";
7
7
  import { tableField as A } from "../../../../../stores/table-store.js";
8
8
  import { statisticsTable as E } from "../../../../../stores/statistics-table-store.js";
9
- const R = { key: 0 }, T = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, $ = { style: { "font-size": "10px", "line-height": "40px" } }, q = { style: { "margin-top": "4px", "margin-bottom": "8px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, D = { key: 0, style: { display: "flex" } }, P = ["title"], B = ["title"], S = { class: "totalStyle" }, I = e({ name: "ValueSetInput", inheritAttrs: false, __name: "common-variable-bind", props: { modelValue: { type: [String], default: null }, paramTypes: { type: Array, default: () => [] }, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false }, needParams: { type: Boolean, default: false }, isRange: { type: Boolean, default: false }, isTable: { type: Boolean, default: false }, dataModelOptions: { type: Array, default: null }, objModelOptions: { type: Array, default: null }, needData: { type: Boolean, default: false }, placeholder: { type: String, default: "请选择" } }, emits: ["update:modelValue"], setup(e2, { emit: I2 }) {
9
+ const R = { key: 0 }, T = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, q = { style: { "font-size": "10px", "line-height": "40px" } }, D = { style: { "margin-top": "4px", "margin-bottom": "8px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, P = { key: 0, style: { display: "flex" } }, $ = ["title"], B = ["title"], S = { class: "totalStyle" }, I = e({ name: "ValueSetInput", inheritAttrs: false, __name: "common-variable-bind", props: { modelValue: { type: [String], default: null }, paramTypes: { type: Array, default: () => [] }, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false }, needParams: { type: Boolean, default: false }, isRange: { type: Boolean, default: false }, isTable: { type: Boolean, default: false }, dataModelOptions: { type: Array, default: null }, objModelOptions: { type: Array, default: null }, needData: { type: Boolean, default: false }, placeholder: { type: String, default: "请选择" } }, emits: ["update:modelValue"], setup(e2, { emit: I2 }) {
10
10
  const K = N(), W = I2, F = e2, G = l(false), H = l(""), J = l(null), Q = l(null), X = l([]), Y = l(false), Z = l(""), ee = l(""), le = l(""), ae = l([]), te = l({}), ue = l(""), oe = l(null), ne = ["context", "system", "task", "data", "page", "row"], se = A(), ie = E();
11
11
  a(() => {
12
12
  window.addEventListener("click", pe);
@@ -18,7 +18,7 @@ const R = { key: 0 }, T = { style: { "margin-top": "10px", "font-size": "10px",
18
18
  const [e4, l3] = F.modelValue.slice(0, F.modelValue.length - 1).slice(2).split(".");
19
19
  ee.value = e4, le.value = l3, ne.includes(e4) && (Y.value = false), xe(ee.value), Z.value = he(), H.value = F.modelValue;
20
20
  }
21
- ee.value || (ee.value = t2.length > 0 ? t2[0].value : "", xe(ee.value)), oe.value;
21
+ ee.value || (ee.value = t2.length > 0 ? t2[0].value : "", xe(ee.value));
22
22
  }), t(() => {
23
23
  window.removeEventListener("click", pe);
24
24
  });
@@ -30,10 +30,10 @@ const R = { key: 0 }, T = { style: { "margin-top": "10px", "font-size": "10px",
30
30
  if (Q.value && (l2 = Q.value.$el.parentNode), !e3.target || !l2) return;
31
31
  if (e3.target === re) return;
32
32
  const a2 = J.value ? J.value.input : null;
33
- a2 && (e3.target === a2 || a2.contains(e3.target)) || (e3.target === l2 || l2.contains(e3.target) ? re = e3.target : (Q.value.$el && Q.value.$el.contains(e3.target), G.value && de()));
33
+ a2 && (e3.target === a2 || a2.contains(e3.target)) || (e3.target === l2 || l2.contains(e3.target) ? re = e3.target : (Q.value.$el, G.value && ve()));
34
34
  }
35
- const ve = l([{ label: "天", value: "d" }, { label: "周", value: "w" }, { label: "月", value: "m" }, { label: "年", value: "y" }]);
36
- function de(e3) {
35
+ const de = l([{ label: "天", value: "d" }, { label: "周", value: "w" }, { label: "月", value: "m" }, { label: "年", value: "y" }]);
36
+ function ve(e3) {
37
37
  G.value = false;
38
38
  }
39
39
  const me = u(() => ae.value.filter((e3) => !ue.value || "system" == ee.value || e3.label.toLowerCase().includes(ue.value.toLowerCase()) || e3.value.toLowerCase().includes(ue.value.toLowerCase())));
@@ -66,7 +66,7 @@ const R = { key: 0 }, T = { style: { "margin-top": "10px", "font-size": "10px",
66
66
  if ("context" === e3 && l2 && l2.startsWith("currentDate") && l2.length > 11) {
67
67
  const e4 = l2.substring(11), a3 = e4.substring(0, 1);
68
68
  return e4.substring(1, e4.length - 1) + ((e5) => {
69
- const l3 = ve.value.filter((l4) => l4.value == e5);
69
+ const l3 = de.value.filter((l4) => l4.value == e5);
70
70
  return l3.length > 0 ? l3[0].label : "";
71
71
  })(e4.substring(e4.length - 1)) + ("+" === a3 ? "后" : "前");
72
72
  }
@@ -99,14 +99,14 @@ const R = { key: 0 }, T = { style: { "margin-top": "10px", "font-size": "10px",
99
99
  H.value = "", W("update:modelValue", H.value), oe.value.hide();
100
100
  }
101
101
  function ke() {
102
- le.value ? (H.value = "${" + ee.value + "." + le.value + "}", W("update:modelValue", H.value), de()) : ElMessage.warning("请输入参数名");
102
+ le.value ? (H.value = "${" + ee.value + "." + le.value + "}", W("update:modelValue", H.value), ve()) : ElMessage.warning("请输入参数名");
103
103
  }
104
104
  function Ce() {
105
105
  if (ue.value = ue.value.trim(), !ue.value) return void ElMessage.warning("请输入参数名");
106
106
  const e3 = te.value.pageVarOptions || [];
107
107
  for (let l3 of e3) if (l3.value === ue.value) return void ElMessage.warning("该变量已存在!");
108
108
  const l2 = { code: z(), name: ue.value, alias: ue.value, type: "string", defaultValue: "" };
109
- K.pageContext.variables || (K.pageContext.variables = []), K.pageContext.variables.push(l2), K.setPageContext(K.pageContext), te.value.pageVarOptions = K.pageContextVarOptions.pageVarOptions, ae.value = te.value.pageVarOptions || [], le.value = ue.value, H.value = "${" + ee.value + "." + ue.value + "}", ue.value = "", W("update:modelValue", H.value), de();
109
+ K.pageContext.variables || (K.pageContext.variables = []), K.pageContext.variables.push(l2), K.setPageContext(K.pageContext), te.value.pageVarOptions = K.pageContextVarOptions.pageVarOptions, ae.value = te.value.pageVarOptions || [], le.value = ue.value, H.value = "${" + ee.value + "." + ue.value + "}", ue.value = "", W("update:modelValue", H.value), ve();
110
110
  }
111
111
  const Me = l();
112
112
  function _e() {
@@ -121,17 +121,17 @@ const R = { key: 0 }, T = { style: { "margin-top": "10px", "font-size": "10px",
121
121
  }
122
122
  return (l2, a2) => {
123
123
  const t2 = n("el-icon"), u2 = n("el-input"), o2 = n("el-cascader-panel"), V2 = n("el-col"), M2 = n("el-empty"), _2 = n("el-button"), z2 = n("el-table-column"), j2 = n("el-option"), U2 = n("el-select"), L2 = n("el-table"), N2 = n("el-row"), A2 = n("el-popover");
124
- return e2.showLabel ? (r(), s("span", R, p(H.value), 1)) : (r(), i(A2, { key: 1, ref_key: "popoverRef", ref: oe, visible: G.value, width: 400 }, { reference: v(() => [d(u2, { readonly: "", size: e2.size, title: H.value, ref_key: "inputRef", ref: J, onClick: _e, formatter: he, modelValue: H.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => H.value = e3), placeholder: e2.placeholder }, { suffix: v(() => [f(d(t2, { style: { cursor: "pointer" }, onClick: w(Oe, ["stop"]) }, { default: v(() => [d(c(C))]), _: 1 }, 512), [[g, H.value]])]), _: 1 }, 8, ["size", "title", "modelValue", "placeholder"])]), default: v(() => [d(N2, { ref_key: "contentRef", ref: Q }, { default: v(() => [d(V2, { span: 8 }, { default: v(() => [d(o2, { modelValue: ee.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ee.value = e3), onChange: Ve, props: { emitPath: true }, size: "small", options: X.value, style: { height: "240px", width: "100%" } }, null, 8, ["modelValue", "options"])]), _: 1 }), ee.value ? Y.value ? (r(), i(V2, { key: 1, span: 16, style: { "padding-left": "10px" } }, { default: v(() => [d(u2, { style: { width: "210px" }, size: "small", modelValue: le.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => le.value = e3), placeholder: "请手动输入" }, null, 8, ["modelValue"]), d(_2, { style: { float: "right" }, onClick: ke, size: "small", type: "primary", icon: c(x), circle: "" }, null, 8, ["icon"]), m("div", T, [d(t2, null, { default: v(() => [d(c(O))]), _: 1 }), a2[5] || (a2[5] = m("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), f(m("div", $, [a2[7] || (a2[7] = y(" 常用参数: ")), d(_2, { type: "primary", size: "small", onClick: a2[3] || (a2[3] = (e3) => {
124
+ return e2.showLabel ? (r(), s("span", R, p(H.value), 1)) : (r(), i(A2, { key: 1, ref_key: "popoverRef", ref: oe, visible: G.value, width: 400 }, { reference: d(() => [v(u2, { readonly: "", size: e2.size, title: H.value, ref_key: "inputRef", ref: J, onClick: _e, formatter: he, modelValue: H.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => H.value = e3), placeholder: e2.placeholder }, { suffix: d(() => [f(v(t2, { style: { cursor: "pointer" }, onClick: w(Oe, ["stop"]) }, { default: d(() => [v(c(C))]), _: 1 }, 512), [[g, H.value]])]), _: 1 }, 8, ["size", "title", "modelValue", "placeholder"])]), default: d(() => [v(N2, { ref_key: "contentRef", ref: Q }, { default: d(() => [v(V2, { span: 8 }, { default: d(() => [v(o2, { modelValue: ee.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ee.value = e3), onChange: Ve, props: { emitPath: true }, size: "small", options: X.value, style: { height: "240px", width: "100%" } }, null, 8, ["modelValue", "options"])]), _: 1 }), ee.value ? Y.value ? (r(), i(V2, { key: 1, span: 16, style: { "padding-left": "10px" } }, { default: d(() => [v(u2, { style: { width: "210px" }, size: "small", modelValue: le.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => le.value = e3), placeholder: "请手动输入" }, null, 8, ["modelValue"]), v(_2, { style: { float: "right" }, onClick: ke, size: "small", type: "primary", icon: c(x), circle: "" }, null, 8, ["icon"]), m("div", T, [v(t2, null, { default: d(() => [v(c(O))]), _: 1 }), a2[5] || (a2[5] = m("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), f(m("div", q, [a2[7] || (a2[7] = y(" 常用参数: ")), v(_2, { type: "primary", size: "small", onClick: a2[3] || (a2[3] = (e3) => {
125
125
  return l3 = "query", le.value = l3, void ke();
126
126
  var l3;
127
- }) }, { default: v(() => a2[6] || (a2[6] = [y("query")])), _: 1 })], 512), [[g, "request" == ee.value]])]), _: 1 })) : (r(), i(V2, { key: 2, span: 16, style: { "padding-left": "10px" } }, { default: v(() => [d(u2, { size: "small", modelValue: ue.value, "onUpdate:modelValue": a2[4] || (a2[4] = (e3) => ue.value = e3), placeholder: "搜索", "suffix-icon": c(k), style: b([{ "margin-bottom": "5px", height: "25px" }, ge.value]) }, null, 8, ["modelValue", "suffix-icon", "style"]), f(d(_2, { style: { float: "right" }, onClick: Ce, size: "small", type: "primary", icon: c(x), circle: "" }, null, 8, ["icon"]), [[g, "page" == ee.value]]), f(m("div", q, [d(t2, null, { default: v(() => [d(c(O))]), _: 1 }), a2[8] || (a2[8] = m("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))], 512), [[g, "page" == ee.value]]), d(L2, { ref_key: "tableRef", ref: Me, height: ye.value, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: me.value }, { default: v(() => [d(z2, { width: "65" }, { default: v((e3) => [d(_2, { type: "default", size: "small", onClick: (l3) => function(e4) {
127
+ }) }, { default: d(() => a2[6] || (a2[6] = [y("query")])), _: 1 })], 512), [[g, "request" == ee.value]])]), _: 1 })) : (r(), i(V2, { key: 2, span: 16, style: { "padding-left": "10px" } }, { default: d(() => [v(u2, { size: "small", modelValue: ue.value, "onUpdate:modelValue": a2[4] || (a2[4] = (e3) => ue.value = e3), placeholder: "搜索", "suffix-icon": c(k), style: b([{ "margin-bottom": "5px", height: "25px" }, ge.value]) }, null, 8, ["modelValue", "suffix-icon", "style"]), f(v(_2, { style: { float: "right" }, onClick: Ce, size: "small", type: "primary", icon: c(x), circle: "" }, null, 8, ["icon"]), [[g, "page" == ee.value]]), f(m("div", D, [v(t2, null, { default: d(() => [v(c(O))]), _: 1 }), a2[8] || (a2[8] = m("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))], 512), [[g, "page" == ee.value]]), v(L2, { ref_key: "tableRef", ref: Me, height: ye.value, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: me.value }, { default: d(() => [v(z2, { width: "65" }, { default: d((e3) => [v(_2, { type: "default", size: "small", onClick: (l3) => function(e4) {
128
128
  if ("range" == e4.type) {
129
129
  if ("" === e4.symbolNum) return void ElMessage.warning("周期不能为空!");
130
130
  if (isNaN(e4.symbolNum)) return void ElMessage.warning("周期为无效的数字!");
131
131
  "0" != e4.symbolNum ? le.value = e4.value + e4.symbol + e4.symbolNum + e4.symbolUnit : le.value = e4.value;
132
132
  } else le.value = e4.value;
133
- H.value = "${" + ee.value + "." + le.value + "}", W("update:modelValue", H.value, e4.alias), de();
134
- }(e3.row) }, { default: v(() => a2[9] || (a2[9] = [y(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), d(z2, { label: "Date", prop: "label" }, { default: v((e3) => ["context" == ee.value && "range" == e3.row.type ? (r(), s("div", D, [d(u2, { size: "small", modelValue: e3.row.symbolNum, "onUpdate:modelValue": (l3) => e3.row.symbolNum = l3, placeholder: "", style: { width: "35px", "margin-left": "4px" } }, null, 8, ["modelValue", "onUpdate:modelValue"]), d(U2, { size: "small", style: { "margin-left": "4px", width: "50px" }, modelValue: e3.row.symbolUnit, "onUpdate:modelValue": (l3) => e3.row.symbolUnit = l3, placeholder: "" }, { default: v(() => [d(j2, { label: "天", value: "d" }), d(j2, { label: "周", value: "w" }), d(j2, { label: "月", value: "m" }), d(j2, { label: "年", value: "y" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), d(U2, { size: "small", style: { "margin-left": "4px", width: "50px" }, modelValue: e3.row.symbol, "onUpdate:modelValue": (l3) => e3.row.symbol = l3, placeholder: "" }, { default: v(() => [d(j2, { label: "前", value: "-" }), d(j2, { label: "后", value: "+" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])])) : h("", true), "data" == ee.value || "obj" == ee.value || "row" == ee.value ? (r(), s("span", { key: 1, title: e3.row.label + " " + e3.row.value }, p(e3.row.label + " " + e3.row.value), 9, P)) : (r(), s("span", { key: 2, title: e3.row.label }, p(e3.row.label), 9, B))]), _: 1 })]), _: 1 }, 8, ["height", "data"]), m("div", S, "总计:" + p(me.value.length), 1)]), _: 1 })) : (r(), i(V2, { key: 0, span: 16 }, { default: v(() => [d(M2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 }, 512)]), _: 1 }, 8, ["visible"]));
133
+ H.value = "${" + ee.value + "." + le.value + "}", W("update:modelValue", H.value, e4.alias), ve();
134
+ }(e3.row) }, { default: d(() => a2[9] || (a2[9] = [y(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), v(z2, { label: "Date", prop: "label" }, { default: d((e3) => ["context" == ee.value && "range" == e3.row.type ? (r(), s("div", P, [v(u2, { size: "small", modelValue: e3.row.symbolNum, "onUpdate:modelValue": (l3) => e3.row.symbolNum = l3, placeholder: "", style: { width: "35px", "margin-left": "4px" } }, null, 8, ["modelValue", "onUpdate:modelValue"]), v(U2, { size: "small", style: { "margin-left": "4px", width: "50px" }, modelValue: e3.row.symbolUnit, "onUpdate:modelValue": (l3) => e3.row.symbolUnit = l3, placeholder: "" }, { default: d(() => [v(j2, { label: "天", value: "d" }), v(j2, { label: "周", value: "w" }), v(j2, { label: "月", value: "m" }), v(j2, { label: "年", value: "y" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), v(U2, { size: "small", style: { "margin-left": "4px", width: "50px" }, modelValue: e3.row.symbol, "onUpdate:modelValue": (l3) => e3.row.symbol = l3, placeholder: "" }, { default: d(() => [v(j2, { label: "前", value: "-" }), v(j2, { label: "后", value: "+" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])])) : h("", true), "data" == ee.value || "obj" == ee.value || "row" == ee.value ? (r(), s("span", { key: 1, title: e3.row.label + " " + e3.row.value }, p(e3.row.label + " " + e3.row.value), 9, $)) : (r(), s("span", { key: 2, title: e3.row.label }, p(e3.row.label), 9, B))]), _: 1 })]), _: 1 }, 8, ["height", "data"]), m("div", S, "总计:" + p(me.value.length), 1)]), _: 1 })) : (r(), i(V2, { key: 0, span: 16 }, { default: d(() => [v(M2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 }, 512)]), _: 1 }, 8, ["visible"]));
135
135
  };
136
136
  } });
137
137
  export {