super-page-designer 2.2.20 → 2.2.24

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 (48) hide show
  1. package/dist/es/components/design/utils/page-explore-util.js +10 -10
  2. package/dist/es/components/design/utils/page-permission-util.js +35 -33
  3. package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +24 -22
  4. package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +39 -36
  5. package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +43 -40
  6. package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +43 -40
  7. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +14 -13
  9. package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +33 -30
  10. package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +25 -23
  11. package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +25 -23
  12. package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +33 -30
  13. package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +25 -23
  14. package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +38 -35
  15. package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +23 -21
  16. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +60 -57
  17. package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +36 -33
  18. package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +44 -41
  19. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
  20. package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +8 -8
  21. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +25 -25
  22. package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +14 -12
  23. package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +78 -74
  24. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
  25. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +111 -107
  26. package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +41 -39
  27. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +10 -8
  28. package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +26 -22
  29. package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +41 -37
  30. package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +30 -26
  31. package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +30 -26
  32. package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +1 -1
  33. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +30 -26
  34. package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +12 -10
  35. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +29 -26
  36. package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +18 -15
  37. package/dist/es/components/design/views/assemblys/object-design.vue.js +28 -20
  38. package/dist/es/components/design/views/assemblys/page/page-attr-permissions.vue.js +38 -34
  39. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +2 -2
  40. package/dist/es/components/design/views/design/page-event/config.vue3.js +43 -40
  41. package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +48 -45
  42. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +22 -22
  43. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +67 -63
  44. package/dist/es/components/design/views/design/view/view-design-display.vue.js +92 -89
  45. package/dist/es/stores/event-undo-redo-store.d.ts +4 -1
  46. package/dist/es/stores/event-undo-redo-store.js +5 -2
  47. package/dist/es/style.css +13 -13
  48. package/package.json +4 -4
@@ -1,35 +1,38 @@
1
- import { defineComponent as e, ref as l, watch as o, resolveComponent as r, createBlock as a, openBlock as u, withCtx as t, createElementVNode as p, createVNode as i, withDirectives as n, unref as s, createElementBlock as c, Fragment as g, renderList as d, toDisplayString as f, vShow as m, createTextVNode as b } from "vue";
2
- import { Top as v, Bottom as x, Plus as V, Delete as _ } from "@element-plus/icons-vue";
3
- import h from "../../common/common-variable-bind.vue.js";
4
- import { getUuidv4 as y } from "../../../../utils/common-util.js";
5
- const w = { style: { padding: "8px 0px 0px 0px" } }, k = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, C = { style: { float: "left" } }, D = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, U = e({ __name: "common-attr-groupby", props: { configure: { type: Object, required: true } }, setup(e2) {
6
- const U2 = e2;
7
- function S(e3) {
1
+ import { defineComponent as e, onUnmounted as l, ref as o, watch as r, resolveComponent as a, createBlock as u, openBlock as t, withCtx as p, createElementVNode as i, createVNode as n, withDirectives as s, unref as c, createElementBlock as g, Fragment as d, renderList as f, toDisplayString as m, vShow as b, createTextVNode as v } from "vue";
2
+ import { Top as x, Bottom as V, Plus as _, Delete as h } from "@element-plus/icons-vue";
3
+ import y from "../../common/common-variable-bind.vue.js";
4
+ import { getUuidv4 as w } from "../../../../utils/common-util.js";
5
+ const k = { style: { padding: "8px 0px 0px 0px" } }, C = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, D = { style: { float: "left" } }, U = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, S = e({ __name: "common-attr-groupby", props: { configure: { type: Object, required: true } }, setup(e2) {
6
+ const S2 = e2;
7
+ function z(e3) {
8
8
  let l2 = -1;
9
- const o2 = U2.configure.props.groups.length;
10
- for (let r2 = 0; r2 < o2; r2++) if (U2.configure.props.groups[r2].uuid == e3.uuid) {
9
+ const o2 = S2.configure.props.groups.length;
10
+ for (let r2 = 0; r2 < o2; r2++) if (S2.configure.props.groups[r2].uuid == e3.uuid) {
11
11
  l2 = r2;
12
12
  break;
13
13
  }
14
14
  return l2;
15
15
  }
16
- function z(e3) {
16
+ function T(e3) {
17
17
  let l2 = -1;
18
- e3 && (l2 = S(e3));
19
- const o2 = { uuid: y(), group: "", target: "" };
20
- U2.configure.props.groups.splice(l2 + 1, 0, o2);
18
+ e3 && (l2 = z(e3));
19
+ const o2 = { uuid: w(), group: "", target: "" };
20
+ S2.configure.props.groups.splice(l2 + 1, 0, o2);
21
21
  }
22
- U2.configure.props || (U2.configure.props = {}), U2.configure.props.groups || (U2.configure.props.groups = []), 0 == U2.configure.props.groups.length && z(null);
23
- const j = l([]);
24
- let F = null, T = null;
25
- return o(U2.configure, () => {
22
+ let j;
23
+ S2.configure.props || (S2.configure.props = {}), S2.configure.props.groups || (S2.configure.props.groups = []), 0 == S2.configure.props.groups.length && T(null), l(() => {
24
+ j && clearTimeout(j);
25
+ });
26
+ const F = o([]);
27
+ let E = null, G = null;
28
+ return r(S2.configure, () => {
26
29
  !function() {
27
- if (U2.configure.serviceFields == F && U2.configure.serviceDataField == T) return;
28
- F = U2.configure.serviceFields, T = U2.configure.serviceDataField;
30
+ if (S2.configure.serviceFields == E && S2.configure.serviceDataField == G) return;
31
+ E = S2.configure.serviceFields, G = S2.configure.serviceDataField;
29
32
  const e3 = [];
30
- if (F) {
31
- const l2 = T || "";
32
- for (let o2 of F) if ((!o2.type || "string" == o2.type || "any" == o2.type) && (!l2 || o2.value.startsWith(l2 + "."))) {
33
+ if (E) {
34
+ const l2 = G || "";
35
+ for (let o2 of E) if ((!o2.type || "string" == o2.type || "any" == o2.type) && (!l2 || o2.value.startsWith(l2 + "."))) {
33
36
  const r2 = {};
34
37
  if (Object.assign(r2, o2), l2) {
35
38
  const e4 = o2.value.substring(l2.length + 1);
@@ -38,31 +41,31 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, k = { style: { "text-align"
38
41
  e3.push(r2);
39
42
  }
40
43
  }
41
- j.value = e3;
44
+ F.value = e3;
42
45
  }();
43
46
  }, { immediate: true }), (l2, o2) => {
44
- const y2 = r("el-icon"), F2 = r("el-table-column"), T2 = r("el-input"), E = r("el-option"), G = r("el-select"), P = r("el-table"), O = r("el-switch"), q = r("el-form-item"), W = r("el-radio-button"), A = r("el-radio-group"), B = r("el-collapse-item");
45
- return u(), a(B, { title: "统计纬度", name: "propsGroup", class: "amb-design-attr-group-header" }, { default: t(() => [p("div", w, [i(P, { data: e2.configure.props.groups }, { default: t(() => [i(F2, { label: "", width: "32" }, { default: t((e3) => [p("div", k, [i(y2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
46
- let l4 = S(e4);
47
+ const r2 = a("el-icon"), w2 = a("el-table-column"), E2 = a("el-input"), G2 = a("el-option"), P = a("el-select"), O = a("el-table"), q = a("el-switch"), W = a("el-form-item"), A = a("el-radio-button"), B = a("el-radio-group"), H = a("el-collapse-item");
48
+ return t(), u(H, { title: "统计纬度", name: "propsGroup", class: "amb-design-attr-group-header" }, { default: p(() => [i("div", k, [n(O, { data: e2.configure.props.groups }, { default: p(() => [n(w2, { label: "", width: "32" }, { default: p((e3) => [i("div", C, [n(r2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
49
+ let l4 = z(e4);
47
50
  if (l4 < 1) return;
48
- const o3 = U2.configure.props.groups;
51
+ const o3 = S2.configure.props.groups;
49
52
  [o3[l4 - 1], o3[l4]] = [o3[l4], o3[l4 - 1]];
50
- }(e3.row) }, { default: t(() => [i(s(v))]), _: 2 }, 1032, ["onClick"]), i(y2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
51
- let l4 = S(e4);
52
- if (-1 == l4 || U2.configure.props.groups.length == l4 + 1) return;
53
- const o3 = U2.configure.props.groups;
53
+ }(e3.row) }, { default: p(() => [n(c(x))]), _: 2 }, 1032, ["onClick"]), n(r2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
54
+ let l4 = z(e4);
55
+ if (-1 == l4 || S2.configure.props.groups.length == l4 + 1) return;
56
+ const o3 = S2.configure.props.groups;
54
57
  [o3[l4], o3[l4 + 1]] = [o3[l4 + 1], o3[l4]];
55
- }(e3.row) }, { default: t(() => [i(s(x))]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), i(F2, { prop: "label", label: "维度字段", width: "90" }, { default: t((e3) => [i(T2, { modelValue: e3.row.group, "onUpdate:modelValue": (l3) => e3.row.group = l3, placeholder: "请输入" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), i(F2, { prop: "value", label: "绑定字段", width: "90" }, { default: t((e3) => [i(G, { size: "small", modelValue: e3.row.target, "onUpdate:modelValue": (l3) => e3.row.target = l3, title: e3.row.target, filterable: "", "allow-create": "", clearable: "", placeholder: "请选择" }, { default: t(() => [(u(true), c(g, null, d(j.value, (e4) => (u(), a(E, { key: e4.value, label: e4.label, value: e4.value }, { default: t(() => [p("span", C, f(e4.label), 1), p("span", D, f(e4.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), i(F2, { label: "操作", width: "60" }, { default: t((e3) => [i(y2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => z(e3.row) }, { default: t(() => [i(s(V))]), _: 2 }, 1032, ["onClick"]), i(y2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
56
- let l4 = S(e4);
57
- l4 > -1 && (U2.configure.props.groups.splice(l4, 1), 0 == U2.configure.props.groups.length && setTimeout(function() {
58
- z(null);
59
- }, 10));
60
- }(e3.row) }, { default: t(() => [i(s(_))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), i(q, { label: "数据钻取", style: { "margin-top": "10px", "margin-bottom": "-15px" } }, { default: t(() => [i(O, { modelValue: e2.configure.props.enableDrill, "onUpdate:modelValue": o2[0] || (o2[0] = (l3) => e2.configure.props.enableDrill = l3) }, null, 8, ["modelValue"])]), _: 1 }), n(i(q, { label: "维度来源", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: t(() => [i(G, { modelValue: e2.configure.props.groupSource, "onUpdate:modelValue": o2[1] || (o2[1] = (l3) => e2.configure.props.groupSource = l3), placeholder: "默认", clearable: "" }, { default: t(() => [i(E, { label: "固定值", value: "fix" }), i(E, { label: "变量", value: "variable" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, !e2.configure.props.enableDrill]]), n(i(q, { label: "显示位置", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: t(() => [i(G, { modelValue: e2.configure.props.groupPosition, "onUpdate:modelValue": o2[2] || (o2[2] = (l3) => e2.configure.props.groupPosition = l3), placeholder: "不显示", clearable: "" }, { default: t(() => [i(E, { label: "居左", value: "left" }), i(E, { label: "居中", value: "center" }), i(E, { label: "居右", value: "right" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, !e2.configure.props.groupSource || "fix" == e2.configure.props.groupSource || e2.configure.props.enableDrill]]), n(i(q, { label: "显示组件", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: t(() => [i(A, { modelValue: e2.configure.props.groupComponent, "onUpdate:modelValue": o2[3] || (o2[3] = (l3) => e2.configure.props.groupComponent = l3) }, { default: t(() => [i(W, { value: "group" }, { default: t(() => o2[7] || (o2[7] = [b("选项组")])), _: 1 }), i(W, { value: "radio" }, { default: t(() => o2[8] || (o2[8] = [b("单选")])), _: 1 }), i(W, { value: "checkbox" }, { default: t(() => o2[9] || (o2[9] = [b("多选")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, "variable" != e2.configure.props.groupSource && e2.configure.props.groupPosition && !e2.configure.props.enableDrill]]), n(i(q, { label: "维度变量", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: t(() => [i(h, { modelValue: e2.configure.props.groupVariable, paramTypes: ["data", "page"], "onUpdate:modelValue": o2[4] || (o2[4] = (e3) => {
61
- return l3 = e3, void (U2.configure.props.groupVariable = l3);
58
+ }(e3.row) }, { default: p(() => [n(c(V))]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), n(w2, { prop: "label", label: "维度字段", width: "90" }, { default: p((e3) => [n(E2, { modelValue: e3.row.group, "onUpdate:modelValue": (l3) => e3.row.group = l3, placeholder: "请输入" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(w2, { prop: "value", label: "绑定字段", width: "90" }, { default: p((e3) => [n(P, { size: "small", modelValue: e3.row.target, "onUpdate:modelValue": (l3) => e3.row.target = l3, title: e3.row.target, filterable: "", "allow-create": "", clearable: "", placeholder: "请选择" }, { default: p(() => [(t(true), g(d, null, f(F.value, (e4) => (t(), u(G2, { key: e4.value, label: e4.label, value: e4.value }, { default: p(() => [i("span", D, m(e4.label), 1), i("span", U, m(e4.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), n(w2, { label: "操作", width: "60" }, { default: p((e3) => [n(r2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => T(e3.row) }, { default: p(() => [n(c(_))]), _: 2 }, 1032, ["onClick"]), n(r2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
59
+ let l4 = z(e4);
60
+ l4 > -1 && (S2.configure.props.groups.splice(l4, 1), 0 == S2.configure.props.groups.length && (j = setTimeout(function() {
61
+ T(null);
62
+ }, 10)));
63
+ }(e3.row) }, { default: p(() => [n(c(h))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), n(W, { label: "数据钻取", style: { "margin-top": "10px", "margin-bottom": "-15px" } }, { default: p(() => [n(q, { modelValue: e2.configure.props.enableDrill, "onUpdate:modelValue": o2[0] || (o2[0] = (l3) => e2.configure.props.enableDrill = l3) }, null, 8, ["modelValue"])]), _: 1 }), s(n(W, { label: "维度来源", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: p(() => [n(P, { modelValue: e2.configure.props.groupSource, "onUpdate:modelValue": o2[1] || (o2[1] = (l3) => e2.configure.props.groupSource = l3), placeholder: "默认", clearable: "" }, { default: p(() => [n(G2, { label: "固定值", value: "fix" }), n(G2, { label: "变量", value: "variable" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, !e2.configure.props.enableDrill]]), s(n(W, { label: "显示位置", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: p(() => [n(P, { modelValue: e2.configure.props.groupPosition, "onUpdate:modelValue": o2[2] || (o2[2] = (l3) => e2.configure.props.groupPosition = l3), placeholder: "不显示", clearable: "" }, { default: p(() => [n(G2, { label: "居左", value: "left" }), n(G2, { label: "居中", value: "center" }), n(G2, { label: "居右", value: "right" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, !e2.configure.props.groupSource || "fix" == e2.configure.props.groupSource || e2.configure.props.enableDrill]]), s(n(W, { label: "显示组件", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: p(() => [n(B, { modelValue: e2.configure.props.groupComponent, "onUpdate:modelValue": o2[3] || (o2[3] = (l3) => e2.configure.props.groupComponent = l3) }, { default: p(() => [n(A, { value: "group" }, { default: p(() => o2[7] || (o2[7] = [v("选项组")])), _: 1 }), n(A, { value: "radio" }, { default: p(() => o2[8] || (o2[8] = [v("单选")])), _: 1 }), n(A, { value: "checkbox" }, { default: p(() => o2[9] || (o2[9] = [v("多选")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, "variable" != e2.configure.props.groupSource && e2.configure.props.groupPosition && !e2.configure.props.enableDrill]]), s(n(W, { label: "维度变量", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: p(() => [n(y, { modelValue: e2.configure.props.groupVariable, paramTypes: ["data", "page"], "onUpdate:modelValue": o2[4] || (o2[4] = (e3) => {
64
+ return l3 = e3, void (S2.configure.props.groupVariable = l3);
62
65
  var l3;
63
- }) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[m, "variable" == e2.configure.props.groupSource && !e2.configure.props.enableDrill]]), n(i(q, { label: "多维度显示", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: t(() => [i(A, { modelValue: e2.configure.props.mulGroupShow, "onUpdate:modelValue": o2[5] || (o2[5] = (l3) => e2.configure.props.mulGroupShow = l3) }, { default: t(() => [i(W, { value: "space" }, { default: t(() => o2[10] || (o2[10] = [b("空格")])), _: 1 }), i(W, { value: "break" }, { default: t(() => o2[11] || (o2[11] = [b("换行")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, !e2.configure.props.enableDrill]]), n(i(q, { label: "最后层级时", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: t(() => [i(G, { modelValue: e2.configure.props.drillEndTrigger, "onUpdate:modelValue": o2[6] || (o2[6] = (l3) => e2.configure.props.drillEndTrigger = l3), clearable: "", placeholder: "无动作" }, { default: t(() => [i(E, { value: "clearDrill", label: "清除钻取层级" }), i(E, { value: "clickEvent", label: "触发Click跳转" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, e2.configure.props.enableDrill]])])]), _: 1 });
66
+ }) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, "variable" == e2.configure.props.groupSource && !e2.configure.props.enableDrill]]), s(n(W, { label: "多维度显示", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: p(() => [n(B, { modelValue: e2.configure.props.mulGroupShow, "onUpdate:modelValue": o2[5] || (o2[5] = (l3) => e2.configure.props.mulGroupShow = l3) }, { default: p(() => [n(A, { value: "space" }, { default: p(() => o2[10] || (o2[10] = [v("空格")])), _: 1 }), n(A, { value: "break" }, { default: p(() => o2[11] || (o2[11] = [v("换行")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, !e2.configure.props.enableDrill]]), s(n(W, { label: "最后层级时", style: { "margin-top": "20px", "margin-bottom": "-15px" } }, { default: p(() => [n(P, { modelValue: e2.configure.props.drillEndTrigger, "onUpdate:modelValue": o2[6] || (o2[6] = (l3) => e2.configure.props.drillEndTrigger = l3), clearable: "", placeholder: "无动作" }, { default: p(() => [n(G2, { value: "clearDrill", label: "清除钻取层级" }), n(G2, { value: "clickEvent", label: "触发Click跳转" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.enableDrill]])])]), _: 1 });
64
67
  };
65
68
  } });
66
69
  export {
67
- U as default
70
+ S as default
68
71
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./common-home-chart.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = e(o, [["__scopeId", "data-v-606a3fe0"]]);
4
+ const m = e(o, [["__scopeId", "data-v-513f0eca"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,21 +1,22 @@
1
- import { defineComponent as e, ref as a, reactive as o, resolveComponent as l, createBlock as i, openBlock as n, withCtx as p, createElementVNode as t, createCommentVNode as u, createVNode as r, createTextVNode as s, unref as d, createElementBlock as g, Fragment as m, renderList as c, resolveDynamicComponent as f } from "vue";
2
- import { Top as h, Bottom as y } from "@element-plus/icons-vue";
3
- import v from "../../common/common-variable-bind.vue.js";
1
+ import { defineComponent as e, ref as a, reactive as o, resolveComponent as l, createBlock as i, openBlock as n, withCtx as u, createElementVNode as p, createCommentVNode as t, createVNode as r, createTextVNode as s, unref as d, createElementBlock as g, Fragment as m, renderList as c, resolveDynamicComponent as f } from "vue";
2
+ import { Top as h, Bottom as v } from "@element-plus/icons-vue";
3
+ import y from "../../common/common-variable-bind.vue.js";
4
4
  import { getAttrComponentByName as b } from "../../../../utils/assemblys-config.js";
5
5
  import { getDefaultComponent as C, updateConfEvents as x } from "../../../../utils/home-chart-util.js";
6
6
  import H from "../../object-design.vue.js";
7
7
  import { getUuidv4 as _ } from "../../../../utils/common-util.js";
8
+ import "@vueuse/core";
8
9
  const V = { style: { padding: "8px 0px 0px 0px" } }, k = { class: "dialog-footer" }, w = e({ __name: "common-home-chart", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
9
10
  } } }, setup(e2) {
10
- const w2 = e2, U = a(false), D = a(false), j = a({}), $ = a({}), O = o({ index: 0 });
11
- w2.configure.pushHomepage || (w2.configure.pushHomepage = { enable: false, initConfig: [], searchConditions: [] });
12
- const z = (e3) => {
11
+ const w2 = e2, U = a(false), D = a(false), j = a({}), $ = a({}), O = o({ index: 0 }), z = (e3) => {
13
12
  if (w2.pageDesign.homepageChartUuids || (w2.pageDesign.homepageChartUuids = []), e3) w2.pageDesign.homepageChartUuids.push(w2.configure.uuid);
14
13
  else {
15
14
  const e4 = w2.pageDesign.homepageChartUuids.indexOf(w2.configure.uuid);
16
15
  e4 > -1 && w2.pageDesign.homepageChartUuids.splice(e4, 1);
17
16
  }
18
- }, T = () => {
17
+ };
18
+ w2.configure.pushHomepage || (w2.configure.pushHomepage = { enable: true, initConfig: [], searchConditions: [] }, z(true));
19
+ const T = () => {
19
20
  U.value = true;
20
21
  }, q = () => {
21
22
  w2.configure.pushHomepage.initConfig.unshift({ prop: "", value: "", uuid: _() });
@@ -30,21 +31,21 @@ const V = { style: { padding: "8px 0px 0px 0px" } }, k = { class: "dialog-footer
30
31
  }
31
32
  return (a2, o2) => {
32
33
  const C2 = l("el-switch"), x2 = l("el-button"), _2 = l("el-form-item"), E = l("el-alert"), F = l("el-table-column"), G = l("el-table"), I = l("el-input"), J = l("el-button-group"), K = l("el-drawer"), L = l("el-dialog"), M = l("el-collapse-item");
33
- return n(), i(M, { title: "推送首页", name: "pushHomepage", class: "amb-design-attr-group-header" }, { default: p(() => [t("div", V, [r(_2, { label: "是否推送", class: "amb-design-attr-item" }, { default: p(() => [r(C2, { modelValue: e2.configure.pushHomepage.enable, "onUpdate:modelValue": o2[0] || (o2[0] = (a3) => e2.configure.pushHomepage.enable = a3), "inline-prompt": "", "active-text": "是", "inactive-text": "否", onChange: z }, null, 8, ["modelValue"]), e2.configure.pushHomepage.enable ? (n(), i(x2, { key: 0, type: "primary", onClick: T }, { default: p(() => o2[4] || (o2[4] = [s(" 编辑 ")])), _: 1 })) : u("", true)]), _: 1 })]), e2.configure.pushHomepage && e2.configure.pushHomepage.enable ? (n(), i(L, { key: 0, id: "pushHomepageDialog", "append-to-body": false, modelValue: U.value, "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => U.value = e3), title: "首页图表查询设置", top: "2vh" }, { footer: p(() => [t("div", k, [r(x2, { type: "primary", onClick: o2[1] || (o2[1] = (e3) => U.value = false) }, { default: p(() => o2[10] || (o2[10] = [s(" 关闭 ")])), _: 1 })])]), default: p(() => [r(E, { title: "初始化设置", type: "info", closable: false }), r(G, { data: e2.configure.pushHomepage.initConfig, style: { width: "100%" }, "max-height": "250", "row-key": "uuid", "empty-text": "请添加初始化设置" }, { default: p(() => [r(F, { align: "center", label: "字段名", prop: "prop" }, { default: p((e3) => [(n(), i(v, { key: e3.row.prop, modelValue: e3.row.prop, paramTypes: ["page"], "onUpdate:modelValue": (a3) => {
34
+ return n(), i(M, { title: "推送首页", name: "pushHomepage", class: "amb-design-attr-group-header" }, { default: u(() => [p("div", V, [r(_2, { label: "是否推送", class: "amb-design-attr-item" }, { default: u(() => [r(C2, { modelValue: e2.configure.pushHomepage.enable, "onUpdate:modelValue": o2[0] || (o2[0] = (a3) => e2.configure.pushHomepage.enable = a3), "inline-prompt": "", "active-text": "是", "inactive-text": "否", onChange: z }, null, 8, ["modelValue"]), e2.configure.pushHomepage.enable ? (n(), i(x2, { key: 0, type: "primary", onClick: T }, { default: u(() => o2[4] || (o2[4] = [s(" 编辑 ")])), _: 1 })) : t("", true)]), _: 1 })]), e2.configure.pushHomepage && e2.configure.pushHomepage.enable ? (n(), i(L, { key: 0, id: "pushHomepageDialog", "append-to-body": false, modelValue: U.value, "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => U.value = e3), title: "首页图表查询设置", top: "2vh" }, { footer: u(() => [p("div", k, [r(x2, { type: "primary", onClick: o2[1] || (o2[1] = (e3) => U.value = false) }, { default: u(() => o2[10] || (o2[10] = [s(" 关闭 ")])), _: 1 })])]), default: u(() => [r(E, { title: "初始化设置", type: "info", closable: false }), r(G, { data: e2.configure.pushHomepage.initConfig, style: { width: "100%" }, "max-height": "250", "row-key": "uuid", "empty-text": "请添加初始化设置" }, { default: u(() => [r(F, { align: "center", label: "字段名", prop: "prop" }, { default: u((e3) => [(n(), i(y, { key: e3.row.prop, modelValue: e3.row.prop, paramTypes: ["page"], "onUpdate:modelValue": (a3) => {
34
35
  return o3 = a3, void ((l2 = e3.row) && (l2.prop = o3));
35
36
  var o3, l2;
36
- } }, null, 8, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), r(F, { align: "center", label: "值", prop: "value" }, { default: p((e3) => [r(v, { paramTypes: ["context", "system", "fixed"], modelValue: e3.row.value, isRange: true, "onUpdate:modelValue": (a3) => ((e4, a4) => {
37
+ } }, null, 8, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), r(F, { align: "center", label: "值", prop: "value" }, { default: u((e3) => [r(y, { paramTypes: ["context", "system", "fixed"], modelValue: e3.row.value, isRange: true, "onUpdate:modelValue": (a3) => ((e4, a4) => {
37
38
  a4 && (a4.value = e4);
38
- })(a3, e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(F, { align: "center" }, { header: p(() => [r(x2, { type: "primary", onClick: q }, { default: p(() => o2[5] || (o2[5] = [s(" 添加 ")])), _: 1 })]), default: p((e3) => [r(x2, { size: "small", type: "danger", onClick: (a3) => {
39
+ })(a3, e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(F, { align: "center" }, { header: u(() => [r(x2, { type: "primary", onClick: q }, { default: u(() => o2[5] || (o2[5] = [s(" 添加 ")])), _: 1 })]), default: u((e3) => [r(x2, { size: "small", type: "danger", onClick: (a3) => {
39
40
  return o3 = e3.$index, e3.row, void w2.configure.pushHomepage.initConfig.splice(o3, 1);
40
41
  var o3;
41
- } }, { default: p(() => o2[6] || (o2[6] = [s(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), r(E, { title: "查询条件设置", type: "info", closable: false }), r(G, { data: e2.configure.pushHomepage.searchConditions, style: { width: "100%" }, height: "400", "default-expand-all": true, "empty-text": "请添加查询条件设置" }, { default: p(() => [r(F, { align: "center", label: "标签名", prop: "prop" }, { default: p((e3) => [r(I, { modelValue: e3.row.props.base.title, "onUpdate:modelValue": (a3) => e3.row.props.base.title = a3, class: "table-input-width", placeholder: "请输入标签名" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(F, { align: "center", label: "字段", prop: "value" }, { default: p((e3) => [(n(), i(v, { key: e3.row.props.base.prop, paramTypes: ["data", "page"], "model-value": e3.row.props.base.prop, "onUpdate:modelValue": (a3) => e3.row.props.base.prop = a3 }, null, 8, ["model-value", "onUpdate:modelValue"]))]), _: 1 }), r(F, { align: "center", label: "组件配置" }, { default: p((e3) => [r(x2, { size: "small", type: "primary", onClick: (a3) => {
42
+ } }, { default: u(() => o2[6] || (o2[6] = [s(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), r(E, { title: "查询条件设置", type: "info", closable: false }), r(G, { data: e2.configure.pushHomepage.searchConditions, style: { width: "100%" }, height: "400", "default-expand-all": true, "empty-text": "请添加查询条件设置" }, { default: u(() => [r(F, { align: "center", label: "标签名", prop: "prop" }, { default: u((e3) => [r(I, { modelValue: e3.row.props.base.title, "onUpdate:modelValue": (a3) => e3.row.props.base.title = a3, class: "table-input-width", placeholder: "请输入标签名" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(F, { align: "center", label: "字段", prop: "value" }, { default: u((e3) => [(n(), i(y, { key: e3.row.props.base.prop, paramTypes: ["data", "page"], "model-value": e3.row.props.base.prop, "onUpdate:modelValue": (a3) => e3.row.props.base.prop = a3 }, null, 8, ["model-value", "onUpdate:modelValue"]))]), _: 1 }), r(F, { align: "center", label: "组件配置" }, { default: u((e3) => [r(x2, { size: "small", type: "primary", onClick: (a3) => {
42
43
  return e3.$index, o3 = e3.row, D.value = true, j.value = o3, void ($.value = b(o3.name));
43
44
  var o3;
44
- } }, { default: p(() => o2[7] || (o2[7] = [s(" 设置 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), r(F, { align: "center" }, { header: p(() => [r(x2, { type: "primary", onClick: A }, { default: p(() => o2[8] || (o2[8] = [s(" 添加 ")])), _: 1 })]), default: p((a3) => [r(J, { class: "ml-4" }, { default: p(() => [r(x2, { type: "primary", disabled: 0 === a3.$index, icon: d(h), onClick: (e3) => R(a3.$index, "up") }, null, 8, ["disabled", "icon", "onClick"]), r(x2, { type: "primary", disabled: a3.$index === e2.configure.pushHomepage.searchConditions.length - 1, icon: d(y), onClick: (e3) => R(a3.$index, "down") }, null, 8, ["disabled", "icon", "onClick"])]), _: 2 }, 1024), r(x2, { size: "small", type: "danger", onClick: (e3) => {
45
+ } }, { default: u(() => o2[7] || (o2[7] = [s(" 设置 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), r(F, { align: "center" }, { header: u(() => [r(x2, { type: "primary", onClick: A }, { default: u(() => o2[8] || (o2[8] = [s(" 添加 ")])), _: 1 })]), default: u((a3) => [r(J, { class: "ml-4" }, { default: u(() => [r(x2, { type: "primary", disabled: 0 === a3.$index, icon: d(h), onClick: (e3) => R(a3.$index, "up") }, null, 8, ["disabled", "icon", "onClick"]), r(x2, { type: "primary", disabled: a3.$index === e2.configure.pushHomepage.searchConditions.length - 1, icon: d(v), onClick: (e3) => R(a3.$index, "down") }, null, 8, ["disabled", "icon", "onClick"])]), _: 2 }, 1024), r(x2, { size: "small", type: "danger", onClick: (e3) => {
45
46
  return o3 = a3.$index, a3.row, void w2.configure.pushHomepage.searchConditions.splice(o3, 1);
46
47
  var o3;
47
- } }, { default: p(() => o2[9] || (o2[9] = [s(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), r(K, { modelValue: D.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => D.value = e3), "with-header": false }, { default: p(() => [(n(true), g(m, null, c(e2.configure.pushHomepage.searchConditions, (a3, o3) => (n(), g("div", { key: a3.uuid, style: { display: "none" } }, [r(H, { indexObj: O, configure: a3, pageDesign: e2.pageDesign }, null, 8, ["indexObj", "configure", "pageDesign"])]))), 128)), (n(), i(f($.value), { key: "attr_" + j.value.uuid, pageDesign: e2.pageDesign, configure: j.value, onChangeAssembly: B }, null, 40, ["pageDesign", "configure"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])) : u("", true)]), _: 1 });
48
+ } }, { default: u(() => o2[9] || (o2[9] = [s(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), r(K, { modelValue: D.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => D.value = e3), "with-header": false }, { default: u(() => [(n(true), g(m, null, c(e2.configure.pushHomepage.searchConditions, (a3, o3) => (n(), g("div", { key: a3.uuid, style: { display: "none" } }, [r(H, { indexObj: O, configure: a3, pageDesign: e2.pageDesign }, null, 8, ["indexObj", "configure", "pageDesign"])]))), 128)), (n(), i(f($.value), { key: "attr_" + j.value.uuid, pageDesign: e2.pageDesign, configure: j.value, onChangeAssembly: B }, null, 40, ["pageDesign", "configure"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])) : t("", true)]), _: 1 });
48
49
  };
49
50
  } });
50
51
  export {
@@ -1,21 +1,21 @@
1
- import { defineComponent as e, ref as l, computed as a, resolveComponent as t, createBlock as r, openBlock as i, withCtx as o, createElementVNode as n, createVNode as u, unref as s, createElementBlock as p, Fragment as d, renderList as c, toDisplayString as f, createTextVNode as m } from "vue";
2
- import g from "../../common/page-permission-select.vue.js";
3
- import v from "../../form/common/data-origin-service-in.vue.js";
4
- import { usePageContextStore as y } from "../../../../../../stores/page-store.js";
5
- import { queryServiceReturnFields as b } from "../../../../utils/page-service-util.js";
6
- const x = { style: { padding: "8px 0px 0px 0px" } }, V = { style: { float: "left" } }, F = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, _ = { style: { float: "left" } }, h = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, D = { style: { float: "left" } }, S = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, O = e({ __name: "gauge-attr-data", props: { configure: { type: Object, required: true }, defaultType: { type: String, default: "" }, chartType: { type: String, default: "" } }, setup(e2) {
7
- const O2 = e2, j = y().pageContext, w = l([]), z = a(() => w.value.filter((e3) => "array" == e3.type || "any" == e3.type || !e3.type)), L = a(() => w.value.filter((e3) => {
1
+ import { defineComponent as e, ref as l, computed as a, onUnmounted as t, resolveComponent as r, createBlock as i, openBlock as o, withCtx as n, createElementVNode as u, createVNode as s, unref as p, createElementBlock as d, Fragment as c, renderList as f, toDisplayString as m, createTextVNode as g } from "vue";
2
+ import v from "../../common/page-permission-select.vue.js";
3
+ import y from "../../form/common/data-origin-service-in.vue.js";
4
+ import { usePageContextStore as b } from "../../../../../../stores/page-store.js";
5
+ import { queryServiceReturnFields as x } from "../../../../utils/page-service-util.js";
6
+ const V = { style: { padding: "8px 0px 0px 0px" } }, F = { style: { float: "left" } }, _ = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, h = { style: { float: "left" } }, D = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, S = { style: { float: "left" } }, O = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, j = e({ __name: "gauge-attr-data", props: { configure: { type: Object, required: true }, defaultType: { type: String, default: "" }, chartType: { type: String, default: "" } }, setup(e2) {
7
+ const j2 = e2, w = b().pageContext, z = l([]), L = a(() => z.value.filter((e3) => "array" == e3.type || "any" == e3.type || !e3.type)), U = a(() => z.value.filter((e3) => {
8
8
  if ("string" == e3.type || "any" == e3.type || !e3.type) {
9
- const l2 = O2.configure.serviceDataField;
9
+ const l2 = j2.configure.serviceDataField;
10
10
  if (!l2 || e3.value.startsWith(l2 + ".")) {
11
11
  let a2 = e3.value, t2 = e3.label;
12
12
  return l2 && (a2 = a2.substring(l2.length + 1), t2 && (t2 = t2.replace(l2 + ".", ""))), e3.nameValue = a2, e3.nameLabel = t2, true;
13
13
  }
14
14
  }
15
15
  return false;
16
- })), U = a(() => w.value.filter((e3) => {
16
+ })), k = a(() => z.value.filter((e3) => {
17
17
  if ("number" == e3.type || "any" == e3.type || !e3.type) {
18
- const l2 = O2.configure.serviceDataField;
18
+ const l2 = j2.configure.serviceDataField;
19
19
  if (!l2 || e3.value.startsWith(l2 + ".")) {
20
20
  let a2 = e3.value, t2 = e3.label;
21
21
  return l2 && (a2 = a2.substring(l2.length + 1), t2 && (t2 = t2.replace(l2 + ".", ""))), e3.numValue = a2, e3.numLabel = t2, true;
@@ -23,38 +23,41 @@ const x = { style: { padding: "8px 0px 0px 0px" } }, V = { style: { float: "left
23
23
  }
24
24
  return false;
25
25
  }));
26
- O2.configure.props.dataOrigin || (O2.configure.props.dataOrigin = {});
27
- const k = O2.configure.props.dataOrigin;
28
- k.service || (k.service = {});
26
+ j2.configure.props.dataOrigin || (j2.configure.props.dataOrigin = {});
27
+ const T = j2.configure.props.dataOrigin;
28
+ T.service || (T.service = {});
29
29
  let C = null;
30
- function T() {
31
- const e3 = k.service.id;
30
+ function W() {
31
+ const e3 = T.service.id;
32
32
  if (C != e3) {
33
- if (C = e3, !e3) return O2.configure.serviceFields = [], w.value = [], void (O2.configure.serviceDataField = null);
34
- b(k.service.simpleCode).then((e4) => {
35
- O2.configure.serviceFields = e4, w.value = e4, function() {
36
- if (!O2.configure.serviceDataField) return;
33
+ if (C = e3, !e3) return j2.configure.serviceFields = [], z.value = [], void (j2.configure.serviceDataField = null);
34
+ x(T.service.simpleCode).then((e4) => {
35
+ j2.configure.serviceFields = e4, z.value = e4, function() {
36
+ if (!j2.configure.serviceDataField) return;
37
37
  let e5 = false;
38
- if (w.value) {
39
- for (let l2 of w.value) if (l2.value == O2.configure.serviceDataField) {
38
+ if (z.value) {
39
+ for (let l2 of z.value) if (l2.value == j2.configure.serviceDataField) {
40
40
  e5 = true;
41
41
  break;
42
42
  }
43
43
  }
44
- e5 || (O2.configure.serviceDataField = null);
44
+ e5 || (j2.configure.serviceDataField = null);
45
45
  }();
46
46
  });
47
47
  }
48
48
  }
49
- return setTimeout(() => {
50
- T(k.service.id);
51
- }, 10), (l2, a2) => {
52
- const y2 = t("el-form-item"), b2 = t("el-option"), O3 = t("el-select"), w2 = t("el-text"), C2 = t("el-radio"), W = t("el-input"), q = t("el-radio-group"), I = t("el-collapse-item");
53
- return i(), r(I, { title: "数据设置", name: "dataSet", class: "amb-design-attr-group-header" }, { default: o(() => [n("div", x, [u(y2, { label: "选择服务", style: { "margin-top": "4px" } }, { default: o(() => [u(g, { pageDesign: s(j), rowObj: s(k).service, onlyService: "", "onUpdate:modelValue": a2[0] || (a2[0] = (e3, l3, a3, t2) => function(e4, l4, a4, t3) {
54
- k.service.id, k.service.simpleCode = l4, k.service.id = t3, k.service.name = a4, T();
55
- }(0, l3, a3, t2)) }, null, 8, ["pageDesign", "rowObj"])]), _: 1 }), u(y2, { label: "数据集", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: o(() => [u(O3, { modelValue: e2.configure.serviceDataField, "onUpdate:modelValue": a2[1] || (a2[1] = (l3) => e2.configure.serviceDataField = l3), filterable: "", clearable: "", placeholder: "请选择" }, { default: o(() => [(i(true), p(d, null, c(z.value, (e3, l3) => (i(), r(b2, { key: l3, label: e3.label, value: e3.value }, { default: o(() => [n("span", V, f(e3.label), 1), n("span", F, f(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), u(w2, { type: "success", size: "small" }, { default: o(() => a2[6] || (a2[6] = [m("如设置将以多值形式展示")])), _: 1 })]), _: 1 }), u(q, { modelValue: e2.configure.props.nameSource, "onUpdate:modelValue": a2[4] || (a2[4] = (l3) => e2.configure.props.nameSource = l3) }, { default: o(() => [u(y2, { style: { "margin-top": "15px", "margin-bottom": "-15px" } }, { label: o(() => [u(C2, { value: "variable" }, { default: o(() => a2[7] || (a2[7] = [m("名称字段")])), _: 1 })]), default: o(() => [u(O3, { size: "small", disabled: "fixed" == e2.configure.props.nameSource, modelValue: e2.configure.props.nameField, "onUpdate:modelValue": a2[2] || (a2[2] = (l3) => e2.configure.props.nameField = l3), title: e2.configure.props.nameField, style: { width: "160px" }, filterable: "", "allow-create": "", clearable: "", placeholder: "请选择" }, { default: o(() => [(i(true), p(d, null, c(L.value, (e3) => (i(), r(b2, { key: e3.nameValue, label: e3.nameLabel, value: e3.nameValue }, { default: o(() => [n("span", _, f(e3.nameLabel), 1), n("span", h, f(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["disabled", "modelValue", "title"])]), _: 1 }), u(y2, { style: { "margin-top": "25px", "margin-bottom": "-15px" } }, { label: o(() => [u(C2, { value: "fixed" }, { default: o(() => a2[8] || (a2[8] = [m("固定名称")])), _: 1 })]), default: o(() => [u(W, { disabled: !e2.configure.props.nameSource || "fixed" != e2.configure.props.nameSource, modelValue: e2.configure.props.nameFixed, "onUpdate:modelValue": a2[3] || (a2[3] = (l3) => e2.configure.props.nameFixed = l3), placeholder: "请输入" }, null, 8, ["disabled", "modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), u(y2, { label: "数据字段", style: { "margin-top": "25px", "margin-bottom": "-15px" } }, { default: o(() => [u(O3, { size: "small", modelValue: e2.configure.props.yaxisField, "onUpdate:modelValue": a2[5] || (a2[5] = (l3) => e2.configure.props.yaxisField = l3), title: e2.configure.props.yaxisField, style: { width: "160px" }, filterable: "", "allow-create": "", clearable: "", placeholder: "请选择" }, { default: o(() => [(i(true), p(d, null, c(U.value, (e3) => (i(), r(b2, { key: e3.numValue, label: e3.numLabel, value: e3.numValue }, { default: o(() => [n("span", D, f(e3.numLabel), 1), n("span", S, f(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }), u(v, { ref: "dataOriginServiceInRef", dataOrigin: s(k) }, null, 8, ["dataOrigin"])])]), _: 1 });
49
+ let q = setTimeout(() => {
50
+ W(T.service.id);
51
+ }, 10);
52
+ return t(() => {
53
+ q && clearTimeout(q);
54
+ }), (l2, a2) => {
55
+ const t2 = r("el-form-item"), b2 = r("el-option"), x2 = r("el-select"), j3 = r("el-text"), z2 = r("el-radio"), C2 = r("el-input"), q2 = r("el-radio-group"), I = r("el-collapse-item");
56
+ return o(), i(I, { title: "数据设置", name: "dataSet", class: "amb-design-attr-group-header" }, { default: n(() => [u("div", V, [s(t2, { label: "选择服务", style: { "margin-top": "4px" } }, { default: n(() => [s(v, { pageDesign: p(w), rowObj: p(T).service, onlyService: "", "onUpdate:modelValue": a2[0] || (a2[0] = (e3, l3, a3, t3) => function(e4, l4, a4, t4) {
57
+ T.service.id, T.service.simpleCode = l4, T.service.id = t4, T.service.name = a4, W();
58
+ }(0, l3, a3, t3)) }, null, 8, ["pageDesign", "rowObj"])]), _: 1 }), s(t2, { label: "数据集", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: n(() => [s(x2, { modelValue: e2.configure.serviceDataField, "onUpdate:modelValue": a2[1] || (a2[1] = (l3) => e2.configure.serviceDataField = l3), filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(o(true), d(c, null, f(L.value, (e3, l3) => (o(), i(b2, { key: l3, label: e3.label, value: e3.value }, { default: n(() => [u("span", F, m(e3.label), 1), u("span", _, m(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), s(j3, { type: "success", size: "small" }, { default: n(() => a2[6] || (a2[6] = [g("如设置将以多值形式展示")])), _: 1 })]), _: 1 }), s(q2, { modelValue: e2.configure.props.nameSource, "onUpdate:modelValue": a2[4] || (a2[4] = (l3) => e2.configure.props.nameSource = l3) }, { default: n(() => [s(t2, { style: { "margin-top": "15px", "margin-bottom": "-15px" } }, { label: n(() => [s(z2, { value: "variable" }, { default: n(() => a2[7] || (a2[7] = [g("名称字段")])), _: 1 })]), default: n(() => [s(x2, { size: "small", disabled: "fixed" == e2.configure.props.nameSource, modelValue: e2.configure.props.nameField, "onUpdate:modelValue": a2[2] || (a2[2] = (l3) => e2.configure.props.nameField = l3), title: e2.configure.props.nameField, style: { width: "160px" }, filterable: "", "allow-create": "", clearable: "", placeholder: "请选择" }, { default: n(() => [(o(true), d(c, null, f(U.value, (e3) => (o(), i(b2, { key: e3.nameValue, label: e3.nameLabel, value: e3.nameValue }, { default: n(() => [u("span", h, m(e3.nameLabel), 1), u("span", D, m(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["disabled", "modelValue", "title"])]), _: 1 }), s(t2, { style: { "margin-top": "25px", "margin-bottom": "-15px" } }, { label: n(() => [s(z2, { value: "fixed" }, { default: n(() => a2[8] || (a2[8] = [g("固定名称")])), _: 1 })]), default: n(() => [s(C2, { disabled: !e2.configure.props.nameSource || "fixed" != e2.configure.props.nameSource, modelValue: e2.configure.props.nameFixed, "onUpdate:modelValue": a2[3] || (a2[3] = (l3) => e2.configure.props.nameFixed = l3), placeholder: "请输入" }, null, 8, ["disabled", "modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), s(t2, { label: "数据字段", style: { "margin-top": "25px", "margin-bottom": "-15px" } }, { default: n(() => [s(x2, { size: "small", modelValue: e2.configure.props.yaxisField, "onUpdate:modelValue": a2[5] || (a2[5] = (l3) => e2.configure.props.yaxisField = l3), title: e2.configure.props.yaxisField, style: { width: "160px" }, filterable: "", "allow-create": "", clearable: "", placeholder: "请选择" }, { default: n(() => [(o(true), d(c, null, f(k.value, (e3) => (o(), i(b2, { key: e3.numValue, label: e3.numLabel, value: e3.numValue }, { default: n(() => [u("span", S, m(e3.numLabel), 1), u("span", O, m(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }), s(y, { ref: "dataOriginServiceInRef", dataOrigin: p(T) }, null, 8, ["dataOrigin"])])]), _: 1 });
56
59
  };
57
60
  } });
58
61
  export {
59
- O as default
62
+ j as default
60
63
  };
@@ -5,13 +5,13 @@ import { getUuidv4 as y } from "../../../../utils/common-util.js";
5
5
  import { getCustomTheme as C } from "super-page-runtime";
6
6
  import I from "./series/gauge-series-attr.vue.js";
7
7
  import k from "../common/common-chart-header.vue.js";
8
- import { use as w } from "echarts/core";
9
- import { CanvasRenderer as A } from "echarts/renderers";
10
- import { GaugeChart as D } from "echarts/charts";
11
- import { GridComponent as O, TitleComponent as R, TooltipComponent as T, ToolboxComponent as _ } from "echarts/components";
8
+ import { use as T } from "echarts/core";
9
+ import { CanvasRenderer as w } from "echarts/renderers";
10
+ import { GaugeChart as A } from "echarts/charts";
11
+ import { GridComponent as D, TitleComponent as O, TooltipComponent as R, ToolboxComponent as _ } from "echarts/components";
12
12
  import z from "vue-echarts";
13
13
  const H = { style: { position: "absolute", top: "0px", right: "60px", "text-align": "center" } }, S = ["onClick"], q = e({ __name: "gauge-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: q2 }) {
14
- w([A, D, O, R, T, _]);
14
+ T([w, A, D, O, R, _]);
15
15
  const B = e2;
16
16
  B.configure.props || (B.configure.props = {}), B.configure.items || (B.configure.items = []), 0 == B.configure.items.length && B.configure.items.push({ uuid: y(), name: "", index: 1, type: "gauge", label: "系列", props: { title: "系列1" }, style: {} }), B.configure.runtime || (B.configure.runtime = {});
17
17
  const E = t({}), F = t(""), G = t(null), J = t({}), K = t({});
@@ -19,30 +19,32 @@ const H = { style: { position: "absolute", top: "0px", right: "60px", "text-alig
19
19
  const e3 = j(B.configure, K.value);
20
20
  B.configure.runtime.dataConfig = e3;
21
21
  }
22
- function M() {
22
+ i(B.configure.style, () => {
23
+ v(B.configure, E, F, null), B.configure.runtime.style = E.value, B.configure.runtime.class = F.value, K.value = b(B.configure), B.configure.runtime.headerInfo = K.value, N();
24
+ }, { immediate: true }), i(B.configure.props, () => {
25
+ N(), L();
26
+ }), i(B.configure.items, () => {
27
+ N();
28
+ });
29
+ let M = setTimeout(() => {
30
+ L();
31
+ }, 100);
32
+ function N() {
23
33
  x(B.configure, J), K.value = b(B.configure), G.value = C(B.configure.props.customTheme), B.configure.runtime.chartOption = J.value, B.configure.runtime.headerInfo = K.value;
24
34
  }
25
- function N() {
35
+ function P() {
26
36
  if (B.configure.items) for (let e3 of B.configure.items) e3.selected = false;
27
37
  }
28
- function P(e3) {
29
- N();
38
+ function Q(e3) {
39
+ P();
30
40
  }
31
- i(B.configure.style, () => {
32
- v(B.configure, E, F, null), B.configure.runtime.style = E.value, B.configure.runtime.class = F.value, K.value = b(B.configure), B.configure.runtime.headerInfo = K.value, M();
33
- }, { immediate: true }), i(B.configure.props, () => {
34
- M(), L();
35
- }), i(B.configure.items, () => {
36
- M();
37
- }), setTimeout(() => {
38
- L();
39
- }, 100), o(() => {
40
- W(B.configure);
41
+ o(() => {
42
+ W(B.configure), M && clearTimeout(M);
41
43
  }), B.selectWidget && i(B.selectWidget, () => {
42
- B.selectWidget && B.selectWidget.value != B.configure.componentIndex && N();
44
+ B.selectWidget && B.selectWidget.value != B.configure.componentIndex && P();
43
45
  });
44
- const Q = q2;
45
- return (e3, t2) => (n(), r("div", { style: c(E.value), class: s([F.value, "amb-widget-chart"]), onClick: u(P, ["stop"]), ref: "thisRef" }, [l(m(k, { headerInfo: K.value }, null, 8, ["headerInfo"]), [[f, K.value.showHeader]]), m(a(z), { ref: "chartRef", theme: G.value, option: J.value, autoresize: "" }, null, 8, ["theme", "option"]), l(g("div", H, [(n(true), r(p, null, d(e3.configure.items, (e4, t3) => (n(), r("label", { class: s([[e4.selected ? "amb-design-chart-series-selected" : ""], "amb-design-chart-series"]), onClick: u((e5) => function(e6, t4) {
46
+ const U = q2;
47
+ return (e3, t2) => (n(), r("div", { style: c(E.value), class: s([F.value, "amb-widget-chart"]), onClick: u(Q, ["stop"]), ref: "thisRef" }, [l(m(k, { headerInfo: K.value }, null, 8, ["headerInfo"]), [[f, K.value.showHeader]]), m(a(z), { ref: "chartRef", theme: G.value, option: J.value, autoresize: "" }, null, 8, ["theme", "option"]), l(g("div", H, [(n(true), r(p, null, d(e3.configure.items, (e4, t3) => (n(), r("label", { class: s([[e4.selected ? "amb-design-chart-series-selected" : ""], "amb-design-chart-series"]), onClick: u((e5) => function(e6, t4) {
46
48
  e6 && e6.preventDefault();
47
49
  const i2 = B.configure.items[t4];
48
50
  if (!i2.selected) {
@@ -50,7 +52,7 @@ const H = { style: { position: "absolute", top: "0px", right: "60px", "text-alig
50
52
  e7.selected = false;
51
53
  break;
52
54
  }
53
- i2.selected = true, Q("onCustomAttrWidget", i2, I);
55
+ i2.selected = true, U("onCustomAttrWidget", i2, I);
54
56
  }
55
57
  }(e5, t3), ["stop"]) }, h(e4.props.title), 11, S))), 256))], 512), [[f, e3.configure.componentIndex == e3.selectWidget.value]])], 6));
56
58
  } });
@@ -5,13 +5,13 @@ import { removComponentDataConfig as b, generateChartHeader as x, generateChartO
5
5
  import { getCustomTheme as C } from "super-page-runtime";
6
6
  import I from "./series/pie-series-attr.vue.js";
7
7
  import k from "../common/common-chart-header.vue.js";
8
- import { use as w } from "echarts/core";
9
- import { CanvasRenderer as A } from "echarts/renderers";
10
- import { PieChart as D } from "echarts/charts";
11
- import { GridComponent as O, LegendComponent as R, TitleComponent as T, TooltipComponent as _, ToolboxComponent as z } from "echarts/components";
8
+ import { use as T } from "echarts/core";
9
+ import { CanvasRenderer as w } from "echarts/renderers";
10
+ import { PieChart as A } from "echarts/charts";
11
+ import { GridComponent as D, LegendComponent as O, TitleComponent as R, TooltipComponent as _, ToolboxComponent as z } from "echarts/components";
12
12
  import H from "vue-echarts";
13
13
  const S = { style: { position: "absolute", top: "0px", right: "60px", "text-align": "center" } }, q = ["onClick"], B = e({ __name: "pie-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: B2 }) {
14
- w([A, D, O, R, T, _, z]);
14
+ T([w, A, D, O, R, _, z]);
15
15
  const E = e2;
16
16
  E.configure.props || (E.configure.props = {}), E.configure.items || (E.configure.items = []), 0 == E.configure.items.length && E.configure.items.push({ uuid: W(), name: "", index: 1, type: "pie", label: "系列", props: { title: "系列1" }, style: {} }), E.configure.runtime || (E.configure.runtime = {});
17
17
  const F = t({}), G = t(""), J = t(null), K = t({}), L = t({});
@@ -19,30 +19,32 @@ const S = { style: { position: "absolute", top: "0px", right: "60px", "text-alig
19
19
  const e3 = y(E.configure, L.value);
20
20
  E.configure.runtime.dataConfig = e3;
21
21
  }
22
- function N() {
22
+ i(E.configure.style, () => {
23
+ v(E.configure, F, G, null), E.configure.runtime.style = F.value, E.configure.runtime.class = G.value, L.value = x(E.configure), E.configure.runtime.headerInfo = L.value, P();
24
+ }, { immediate: true }), i(E.configure.props, () => {
25
+ P(), M();
26
+ }), i(E.configure.items, () => {
27
+ P();
28
+ });
29
+ let N = setTimeout(() => {
30
+ M();
31
+ }, 100);
32
+ function P() {
23
33
  j(E.configure, K), L.value = x(E.configure), J.value = C(E.configure.props.customTheme), E.configure.runtime.chartOption = K.value, E.configure.runtime.headerInfo = L.value;
24
34
  }
25
- function P() {
35
+ function Q() {
26
36
  if (E.configure.items) for (let e3 of E.configure.items) e3.selected = false;
27
37
  }
28
- function Q(e3) {
29
- P();
38
+ function U(e3) {
39
+ Q();
30
40
  }
31
- i(E.configure.style, () => {
32
- v(E.configure, F, G, null), E.configure.runtime.style = F.value, E.configure.runtime.class = G.value, L.value = x(E.configure), E.configure.runtime.headerInfo = L.value, N();
33
- }, { immediate: true }), i(E.configure.props, () => {
34
- N(), M();
35
- }), i(E.configure.items, () => {
36
- N();
37
- }), setTimeout(() => {
38
- M();
39
- }, 100), o(() => {
40
- b(E.configure);
41
+ o(() => {
42
+ b(E.configure), N && clearTimeout(N);
41
43
  }), E.selectWidget && i(E.selectWidget, () => {
42
- E.selectWidget && E.selectWidget.value != E.configure.componentIndex && P();
44
+ E.selectWidget && E.selectWidget.value != E.configure.componentIndex && Q();
43
45
  });
44
- const U = B2;
45
- return (e3, t2) => (n(), r("div", { style: c(F.value), class: u([G.value, "amb-widget-chart"]), onClick: s(Q, ["stop"]), ref: "thisRef" }, [l(m(k, { headerInfo: L.value }, null, 8, ["headerInfo"]), [[f, L.value.showHeader]]), m(a(H), { ref: "chartRef", theme: J.value, option: K.value, autoresize: "" }, null, 8, ["theme", "option"]), l(g("div", S, [(n(true), r(p, null, d(e3.configure.items, (e4, t3) => (n(), r("label", { class: u([[e4.selected ? "amb-design-chart-series-selected" : ""], "amb-design-chart-series"]), onClick: s((e5) => function(e6, t4) {
46
+ const V = B2;
47
+ return (e3, t2) => (n(), r("div", { style: c(F.value), class: u([G.value, "amb-widget-chart"]), onClick: s(U, ["stop"]), ref: "thisRef" }, [l(m(k, { headerInfo: L.value }, null, 8, ["headerInfo"]), [[f, L.value.showHeader]]), m(a(H), { ref: "chartRef", theme: J.value, option: K.value, autoresize: "" }, null, 8, ["theme", "option"]), l(g("div", S, [(n(true), r(p, null, d(e3.configure.items, (e4, t3) => (n(), r("label", { class: u([[e4.selected ? "amb-design-chart-series-selected" : ""], "amb-design-chart-series"]), onClick: s((e5) => function(e6, t4) {
46
48
  e6 && e6.preventDefault();
47
49
  const i2 = E.configure.items[t4];
48
50
  if (!i2.selected) {
@@ -50,7 +52,7 @@ const S = { style: { position: "absolute", top: "0px", right: "60px", "text-alig
50
52
  e7.selected = false;
51
53
  break;
52
54
  }
53
- i2.selected = true, U("onCustomAttrWidget", i2, I);
55
+ i2.selected = true, V("onCustomAttrWidget", i2, I);
54
56
  }
55
57
  }(e5, t3), ["stop"]) }, h(e4.props.title), 11, q))), 256))], 512), [[f, e3.configure.componentIndex == e3.selectWidget.value]])], 6));
56
58
  } });