super-page-designer 2.3.7-design2 → 2.3.7-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 (45) hide show
  1. package/dist/es/components/design/utils/page-event-util.js +0 -1
  2. package/dist/es/components/design/utils/page-i18n-util.js +5 -6
  3. package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +16 -16
  4. package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +4 -5
  5. package/dist/es/components/design/views/assemblys/chart/common/common-style-grid.vue.js +3 -3
  6. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +8 -8
  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.vue3.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/attr-style.vue.js +1 -1
  16. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +1 -1
  17. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  18. package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +10 -10
  19. package/dist/es/components/design/views/assemblys/data/component/import-header.vue.js +2 -2
  20. package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +2 -2
  21. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +8 -8
  22. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +4 -4
  23. package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -3
  24. package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +78 -46
  25. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
  26. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +2 -26
  27. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +26 -2
  28. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +13 -16
  29. package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -1
  30. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +1 -1
  31. package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +11 -11
  32. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +13 -14
  33. package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
  34. package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +1 -1
  35. package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js +1 -1
  36. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +3 -3
  37. package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
  38. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +1 -1
  39. package/dist/es/components/design/views/design/page-event/config.vue3.js +17 -18
  40. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
  41. package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +0 -1
  42. package/dist/es/components/design/views/design/view/page-switch.vue2.js +2 -3
  43. package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
  44. package/dist/es/stores/undo-redo-store.js +1 -1
  45. package/package.json +4 -4
@@ -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
  };
@@ -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,7 +1,7 @@
1
- import { defineComponent as e, resolveComponent as l, createBlock as o, openBlock as a, withCtx as d, createElementVNode as i, createVNode as t, withDirectives as n, vShow as r } from "vue";
1
+ import { defineComponent as e, resolveComponent as l, createBlock as o, openBlock as a, withCtx as d, createElementVNode as t, createVNode as i, withDirectives as r, vShow as n } from "vue";
2
2
  const u = { style: { padding: "8px 0px 0px 0px" } }, g = e({ __name: "common-style-grid", props: { configure: { type: Object, required: true } }, setup: (e2) => (g2, m) => {
3
- const p = l("el-color-picker"), s = l("el-form-item"), f = l("el-input-number"), y = l("el-switch"), c = l("el-collapse-item");
4
- return a(), o(c, { title: "网格", name: "styleGrid", class: "amb-design-attr-group-header" }, { default: d(() => [i("div", u, [t(s, { label: "背景颜色", style: { "margin-top": "4px" } }, { default: d(() => [t(p, { modelValue: e2.configure.style.gridBackgroundColor, "onUpdate:modelValue": m[0] || (m[0] = (l2) => e2.configure.style.gridBackgroundColor = l2) }, null, 8, ["modelValue"])]), _: 1 }), t(s, { label: "上边距", style: { "margin-top": "-10px" } }, { default: d(() => [t(f, { modelValue: e2.configure.style.gridPaddingTop, "onUpdate:modelValue": m[1] || (m[1] = (l2) => e2.configure.style.gridPaddingTop = l2), min: 0, max: 100 }, null, 8, ["modelValue"])]), _: 1 }), t(s, { label: "右边距", style: { "margin-top": "-10px" } }, { default: d(() => [t(f, { modelValue: e2.configure.style.gridPaddingRight, "onUpdate:modelValue": m[2] || (m[2] = (l2) => e2.configure.style.gridPaddingRight = l2), min: 0, max: 100 }, null, 8, ["modelValue"])]), _: 1 }), t(s, { label: "下边距", style: { "margin-top": "-10px" } }, { default: d(() => [t(f, { modelValue: e2.configure.style.gridPaddingBottom, "onUpdate:modelValue": m[3] || (m[3] = (l2) => e2.configure.style.gridPaddingBottom = l2), min: 0, max: 100 }, null, 8, ["modelValue"])]), _: 1 }), t(s, { label: "左边距", style: { "margin-top": "-10px" } }, { default: d(() => [t(f, { modelValue: e2.configure.style.gridPaddingLeft, "onUpdate:modelValue": m[4] || (m[4] = (l2) => e2.configure.style.gridPaddingLeft = l2), min: 0, max: 100 }, null, 8, ["modelValue"])]), _: 1 }), t(s, { label: "显示边框", style: { "margin-top": "-10px" } }, { default: d(() => [t(y, { modelValue: e2.configure.style.enableGridLine, "onUpdate:modelValue": m[5] || (m[5] = (l2) => e2.configure.style.enableGridLine = l2) }, null, 8, ["modelValue"])]), _: 1 }), n(t(s, { label: "边框颜色", style: { "margin-top": "-10px" } }, { default: d(() => [t(p, { modelValue: e2.configure.style.gridLineColor, "onUpdate:modelValue": m[6] || (m[6] = (l2) => e2.configure.style.gridLineColor = l2) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r, e2.configure.style.enableGridLine]]), n(t(s, { label: "边框线宽", style: { "margin-top": "-10px" } }, { default: d(() => [t(f, { modelValue: e2.configure.style.gridLineWidth, "onUpdate:modelValue": m[7] || (m[7] = (l2) => e2.configure.style.gridLineWidth = l2), min: 0, max: 40 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r, e2.configure.style.enableGridLine]]), t(s, { label: "阴影", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: d(() => [t(p, { modelValue: e2.configure.style.gridShadowColor, "onUpdate:modelValue": m[8] || (m[8] = (l2) => e2.configure.style.gridShadowColor = l2) }, null, 8, ["modelValue"])]), _: 1 }), n(t(s, { label: "阴影模糊", style: { "margin-top": "15px" } }, { default: d(() => [t(f, { modelValue: e2.configure.style.gridShadowBlur, "onUpdate:modelValue": m[9] || (m[9] = (l2) => e2.configure.style.gridShadowBlur = l2), min: 0, max: 20 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r, e2.configure.style.gridShadowColor]]), n(t(s, { label: "水平偏移", style: { "margin-top": "-10px" } }, { default: d(() => [t(f, { modelValue: e2.configure.style.gridShadowX, "onUpdate:modelValue": m[10] || (m[10] = (l2) => e2.configure.style.gridShadowX = l2), min: 0, max: 40 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r, e2.configure.style.gridShadowColor]]), n(t(s, { label: "垂直偏移", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: d(() => [t(f, { modelValue: e2.configure.style.gridShadowY, "onUpdate:modelValue": m[11] || (m[11] = (l2) => e2.configure.style.gridShadowY = l2), min: 0, max: 40 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r, e2.configure.style.gridShadowColor]])])]), _: 1 });
3
+ const p = l("el-color-picker"), s = l("el-form-item"), f = l("el-input"), c = l("el-switch"), y = l("el-input-number"), V = l("el-collapse-item");
4
+ return a(), o(V, { title: "网格", name: "styleGrid", class: "amb-design-attr-group-header" }, { default: d(() => [t("div", u, [i(s, { label: "背景颜色", style: { "margin-top": "4px" } }, { default: d(() => [i(p, { modelValue: e2.configure.style.gridBackgroundColor, "onUpdate:modelValue": m[0] || (m[0] = (l2) => e2.configure.style.gridBackgroundColor = l2) }, null, 8, ["modelValue"])]), _: 1 }), i(s, { label: "上边距", style: { "margin-top": "-10px" } }, { default: d(() => [i(f, { modelValue: e2.configure.style.gridPaddingTop, "onUpdate:modelValue": m[1] || (m[1] = (l2) => e2.configure.style.gridPaddingTop = l2), clearable: "" }, null, 8, ["modelValue"])]), _: 1 }), i(s, { label: "右边距", style: { "margin-top": "-10px" } }, { default: d(() => [i(f, { modelValue: e2.configure.style.gridPaddingRight, "onUpdate:modelValue": m[2] || (m[2] = (l2) => e2.configure.style.gridPaddingRight = l2), clearable: "" }, null, 8, ["modelValue"])]), _: 1 }), i(s, { label: "下边距", style: { "margin-top": "-10px" } }, { default: d(() => [i(f, { modelValue: e2.configure.style.gridPaddingBottom, "onUpdate:modelValue": m[3] || (m[3] = (l2) => e2.configure.style.gridPaddingBottom = l2), clearable: "" }, null, 8, ["modelValue"])]), _: 1 }), i(s, { label: "左边距", style: { "margin-top": "-10px" } }, { default: d(() => [i(f, { modelValue: e2.configure.style.gridPaddingLeft, "onUpdate:modelValue": m[4] || (m[4] = (l2) => e2.configure.style.gridPaddingLeft = l2), clearable: "" }, null, 8, ["modelValue"])]), _: 1 }), i(s, { label: "显示边框", style: { "margin-top": "-10px" } }, { default: d(() => [i(c, { modelValue: e2.configure.style.enableGridLine, "onUpdate:modelValue": m[5] || (m[5] = (l2) => e2.configure.style.enableGridLine = l2) }, null, 8, ["modelValue"])]), _: 1 }), r(i(s, { label: "边框颜色", style: { "margin-top": "-10px" } }, { default: d(() => [i(p, { modelValue: e2.configure.style.gridLineColor, "onUpdate:modelValue": m[6] || (m[6] = (l2) => e2.configure.style.gridLineColor = l2) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableGridLine]]), r(i(s, { label: "边框线宽", style: { "margin-top": "-10px" } }, { default: d(() => [i(y, { modelValue: e2.configure.style.gridLineWidth, "onUpdate:modelValue": m[7] || (m[7] = (l2) => e2.configure.style.gridLineWidth = l2), min: 0, max: 40 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableGridLine]]), i(s, { label: "阴影", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: d(() => [i(p, { modelValue: e2.configure.style.gridShadowColor, "onUpdate:modelValue": m[8] || (m[8] = (l2) => e2.configure.style.gridShadowColor = l2) }, null, 8, ["modelValue"])]), _: 1 }), r(i(s, { label: "阴影模糊", style: { "margin-top": "15px" } }, { default: d(() => [i(y, { modelValue: e2.configure.style.gridShadowBlur, "onUpdate:modelValue": m[9] || (m[9] = (l2) => e2.configure.style.gridShadowBlur = l2), min: 0, max: 20 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.gridShadowColor]]), r(i(s, { label: "水平偏移", style: { "margin-top": "-10px" } }, { default: d(() => [i(y, { modelValue: e2.configure.style.gridShadowX, "onUpdate:modelValue": m[10] || (m[10] = (l2) => e2.configure.style.gridShadowX = l2), min: 0, max: 40 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.gridShadowColor]]), r(i(s, { label: "垂直偏移", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: d(() => [i(y, { modelValue: e2.configure.style.gridShadowY, "onUpdate:modelValue": m[11] || (m[11] = (l2) => e2.configure.style.gridShadowY = l2), min: 0, max: 40 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.gridShadowColor]])])]), _: 1 });
5
5
  } });
6
6
  export {
7
7
  g as default
@@ -1,7 +1,7 @@
1
- import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as u, Fragment as r, createElementVNode as d, createVNode as p, withCtx as n, createTextVNode as i, unref as s, createBlock as m, createCommentVNode as c } from "vue";
1
+ import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as u, Fragment as r, createElementVNode as d, createVNode as n, withCtx as p, createTextVNode as i, unref as s, createBlock as c, createCommentVNode as m } from "vue";
2
2
  import { Plus as b, Delete as f } from "@element-plus/icons";
3
3
  import v from "../../../common/common-variable-bind.vue.js";
4
- import { isNumberType as g, isDateOrTimeType as y, getUuidv4 as w } from "../../../../../utils/common-util.js";
4
+ import { isNumberType as g, isDateOrTimeType as w, getUuidv4 as y } from "../../../../../utils/common-util.js";
5
5
  import { usePageContextStore as h } from "../../../../../../../stores/page-store.js";
6
6
  import { statisticsTable as V } from "../../../../../../../stores/statistics-table-store.js";
7
7
  import { getModelOptionsByFields as T, getTableConfigByTableUuid as k } from "../../../../../utils/page-table-util.js";
@@ -39,7 +39,7 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
39
39
  function G(e3) {
40
40
  let l2 = -1;
41
41
  e3 && (l2 = A(e3));
42
- const a2 = { uuid: w(), leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "", dataType: "" };
42
+ const a2 = { uuid: y(), leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "", dataType: "" };
43
43
  B.value.splice(l2 + 1, 0, a2);
44
44
  }
45
45
  D(j.tableConfigure), a(() => B.value, (e3) => {
@@ -63,21 +63,21 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
63
63
  }
64
64
  }
65
65
  return (l2, a2) => {
66
- const w2 = t("el-button"), h2 = t("el-row"), V2 = t("Top"), T2 = t("el-icon"), k2 = t("Bottom"), N3 = t("el-table-column"), C2 = t("el-option"), O2 = t("el-select"), j2 = t("el-table"), U2 = t("el-dialog");
67
- return u(), o(r, null, [d("div", null, [p(w2, { type: "primary", onClick: z }, { default: n(() => a2[1] || (a2[1] = [i("编辑")])), _: 1 })]), p(U2, { modelValue: L.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => L.value = e3), title: e2.title, width: "900", "append-to-body": "" }, { default: n(() => [p(h2, { style: { "padding-bottom": "8px" } }, { default: n(() => [p(w2, { icon: s(b), plain: "", type: "primary", onClick: G }, { default: n(() => a2[2] || (a2[2] = [i(" 添加 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), p(j2, { "row-key": "uuid", border: "", "highlight-current-row": "", onCurrentChange: q, data: B.value, style: { width: "100%" } }, { default: n(() => [p(N3, { label: "", width: "50" }, { default: n((e3) => [d("div", _, [p(T2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
66
+ const y2 = t("el-button"), h2 = t("el-row"), V2 = t("Top"), T2 = t("el-icon"), k2 = t("Bottom"), N3 = t("el-table-column"), C2 = t("el-option"), O2 = t("el-select"), j2 = t("el-table"), U2 = t("el-dialog");
67
+ return u(), o(r, null, [d("div", null, [n(y2, { type: "primary", onClick: z }, { default: p(() => a2[1] || (a2[1] = [i("编辑")])), _: 1 })]), n(U2, { modelValue: L.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => L.value = e3), title: e2.title, width: "900", "append-to-body": "" }, { default: p(() => [n(h2, { style: { "padding-bottom": "8px" } }, { default: p(() => [n(y2, { icon: s(b), plain: "", type: "primary", onClick: G }, { default: p(() => a2[2] || (a2[2] = [i(" 添加 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), n(j2, { "row-key": "uuid", border: "", "highlight-current-row": "", onCurrentChange: q, data: B.value, style: { width: "100%" } }, { default: p(() => [n(N3, { label: "", width: "50" }, { default: p((e3) => [d("div", _, [n(T2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
68
68
  let l4 = A(e4);
69
69
  if (l4 < 1) return;
70
70
  const a3 = B.value;
71
71
  [a3[l4 - 1], a3[l4]] = [a3[l4], a3[l4 - 1]];
72
- }(e3.row) }, { default: n(() => [p(V2)]), _: 2 }, 1032, ["onClick"]), p(T2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
72
+ }(e3.row) }, { default: p(() => [n(V2)]), _: 2 }, 1032, ["onClick"]), n(T2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
73
73
  let l4 = A(e4);
74
74
  if (-1 == l4 || B.value.length == l4 + 1) return;
75
75
  const a3 = B.value;
76
76
  [a3[l4], a3[l4 + 1]] = [a3[l4 + 1], a3[l4]];
77
- }(e3.row) }, { default: n(() => [p(k2)]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), p(N3, { prop: "leftBracket", label: "(", width: "80" }, { default: n((e3) => [p(O2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [p(C2, { label: "", value: "" }), p(C2, { label: "(", value: "(" }), p(C2, { label: "((", value: "((" }), p(C2, { label: "(((", value: "(((" }), p(C2, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "propName", label: "字段名(*)", width: "150" }, { default: n((l3) => [p(v, { modelValue: l3.row.propName, dataModelOptions: S.value, objModelOptions: E.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => F(e3, l3.row, "propName") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "operator", label: "操作符", width: "90" }, { default: n((e3) => [p(O2, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [p(C2, { label: "等于", value: "EQ" }), p(C2, { label: "不等于", value: "NET" }), s(g)(e3.row.dataType) ? (u(), m(C2, { key: 0, label: "大于", value: "GT" })) : c("", true), s(g)(e3.row.dataType) ? (u(), m(C2, { key: 1, label: "小于", value: "LT" })) : c("", true), s(y)(e3.row.dataType) ? (u(), m(C2, { key: 2, label: "晚于", value: "GT" })) : c("", true), s(y)(e3.row.dataType) ? (u(), m(C2, { key: 3, label: "早于", value: "LT" })) : c("", true), s(y)(e3.row.dataType) ? (u(), m(C2, { key: 4, label: "不晚于", value: "LET" })) : c("", true), s(y)(e3.row.dataType) ? (u(), m(C2, { key: 5, label: "不早于", value: "GET" })) : c("", true), s(g)(e3.row.dataType) ? (u(), m(C2, { key: 6, label: "小于等于", value: "LET" })) : c("", true), s(g)(e3.row.dataType) ? (u(), m(C2, { key: 7, label: "大于等于", value: "GET" })) : c("", true), p(C2, { label: "包含", value: "CONTAIN" }), p(C2, { label: "不包含", value: "NOT_CONTAIN" }), p(C2, { label: "等于Null", value: "IS_NULL" }), p(C2, { label: "不等于Null", value: "IS_NOT_NULL" }), p(C2, { label: "in", value: "IN" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "propValue", label: "值(*)", width: "150" }, { default: n((l3) => [p(v, { modelValue: l3.row.propValue, dataModelOptions: S.value, objModelOptions: E.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => F(e3, l3.row, "propValue") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "rightBracket", label: ")", width: "80" }, { default: n((e3) => [p(O2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, placeholder: "请选择", clearable: "" }, { default: n(() => [p(C2, { label: "", value: "" }), p(C2, { label: ")", value: ")" }), p(C2, { label: "))", value: "))" }), p(C2, { label: ")))", value: ")))" }), p(C2, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "joinSign", label: "并且/或者", width: "80" }, { default: n((e3) => [p(O2, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [p(C2, { label: "或者", value: "or" }), p(C2, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "variableIsNull", label: "变量为空时", width: "120" }, { default: n((e3) => [p(O2, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [p(C2, { label: "Null", value: "null" }), p(C2, { label: "忽略(1=1)", value: "ignore" }), p(C2, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { label: "操作", width: "60" }, { default: n((e3) => [p(T2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px", "margin-left": "6px" }, onClick: (l3) => G(e3.row) }, { default: n(() => [p(s(b))]), _: 2 }, 1032, ["onClick"]), p(T2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
77
+ }(e3.row) }, { default: p(() => [n(k2)]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), n(N3, { prop: "leftBracket", label: "(", width: "80" }, { default: p((e3) => [n(O2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [n(C2, { label: "", value: "" }), n(C2, { label: "(", value: "(" }), n(C2, { label: "((", value: "((" }), n(C2, { label: "(((", value: "(((" }), n(C2, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(N3, { prop: "propName", label: "字段名(*)", width: "150" }, { default: p((e3) => [n(v, { modelValue: e3.row.propName, dataModelOptions: S.value, objModelOptions: E.value, "onUpdate:modelValue": (l3) => F(l3, e3.row, "propName") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "onUpdate:modelValue"])]), _: 1 }), n(N3, { prop: "operator", label: "操作符", width: "90" }, { default: p((e3) => [n(O2, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [n(C2, { label: "等于", value: "EQ" }), n(C2, { label: "不等于", value: "NET" }), s(g)(e3.row.dataType) ? (u(), c(C2, { key: 0, label: "大于", value: "GT" })) : m("", true), s(g)(e3.row.dataType) ? (u(), c(C2, { key: 1, label: "小于", value: "LT" })) : m("", true), s(w)(e3.row.dataType) ? (u(), c(C2, { key: 2, label: "晚于", value: "GT" })) : m("", true), s(w)(e3.row.dataType) ? (u(), c(C2, { key: 3, label: "早于", value: "LT" })) : m("", true), s(w)(e3.row.dataType) ? (u(), c(C2, { key: 4, label: "不晚于", value: "LET" })) : m("", true), s(w)(e3.row.dataType) ? (u(), c(C2, { key: 5, label: "不早于", value: "GET" })) : m("", true), s(g)(e3.row.dataType) ? (u(), c(C2, { key: 6, label: "小于等于", value: "LET" })) : m("", true), s(g)(e3.row.dataType) ? (u(), c(C2, { key: 7, label: "大于等于", value: "GET" })) : m("", true), n(C2, { label: "包含", value: "CONTAIN" }), n(C2, { label: "不包含", value: "NOT_CONTAIN" }), n(C2, { label: "等于Null", value: "IS_NULL" }), n(C2, { label: "不等于Null", value: "IS_NOT_NULL" }), n(C2, { label: "in", value: "IN" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(N3, { prop: "propValue", label: "值(*)", width: "150" }, { default: p((l3) => [n(v, { modelValue: l3.row.propValue, dataModelOptions: S.value, objModelOptions: E.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => F(e3, l3.row, "propValue") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), n(N3, { prop: "rightBracket", label: ")", width: "80" }, { default: p((e3) => [n(O2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, placeholder: "请选择", clearable: "" }, { default: p(() => [n(C2, { label: "", value: "" }), n(C2, { label: ")", value: ")" }), n(C2, { label: "))", value: "))" }), n(C2, { label: ")))", value: ")))" }), n(C2, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(N3, { prop: "joinSign", label: "并且/或者", width: "80" }, { default: p((e3) => [n(O2, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [n(C2, { label: "或者", value: "or" }), n(C2, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(N3, { prop: "variableIsNull", label: "变量为空时", width: "120" }, { default: p((e3) => [n(O2, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [n(C2, { label: "Null", value: "null" }), n(C2, { label: "忽略(1=1)", value: "ignore" }), n(C2, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(N3, { label: "操作", width: "60" }, { default: p((e3) => [n(T2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px", "margin-left": "6px" }, onClick: (l3) => G(e3.row) }, { default: p(() => [n(s(b))]), _: 2 }, 1032, ["onClick"]), n(T2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
78
78
  let l4 = A(e4);
79
79
  l4 > -1 && B.value.splice(l4, 1);
80
- }(e3.row) }, { default: n(() => [p(s(f))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64);
80
+ }(e3.row) }, { default: p(() => [n(s(f))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64);
81
81
  };
82
82
  } });
83
83
  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 {