super-page-designer 2.2.22 → 2.2.25
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.
- package/dist/es/components/design/utils/page-explore-util.js +10 -10
- package/dist/es/components/design/utils/page-permission-util.js +35 -33
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +24 -22
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +39 -36
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +43 -40
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +43 -40
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +14 -13
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +33 -30
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +25 -23
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +25 -23
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +33 -30
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +25 -23
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +38 -35
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +23 -21
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +60 -57
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +36 -33
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +44 -41
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +8 -8
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +25 -25
- package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +14 -12
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +78 -74
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +111 -107
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +41 -39
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +10 -8
- package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +26 -22
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +41 -37
- package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +30 -26
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +30 -26
- package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +30 -26
- package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +12 -10
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +29 -26
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +18 -15
- package/dist/es/components/design/views/assemblys/object-design.vue.js +28 -20
- package/dist/es/components/design/views/assemblys/page/page-attr-permissions.vue.js +38 -34
- package/dist/es/components/design/views/design/page-event/config.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +43 -40
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +48 -45
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +21 -21
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +67 -63
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +91 -88
- package/dist/es/stores/event-undo-redo-store.d.ts +4 -1
- package/dist/es/stores/event-undo-redo-store.js +5 -2
- package/dist/es/style.css +13 -13
- package/package.json +4 -4
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
2
|
-
import { Top as
|
|
3
|
-
import
|
|
4
|
-
import { getUuidv4 as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
function
|
|
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 =
|
|
10
|
-
for (let r2 = 0; r2 < o2; r2++) if (
|
|
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
|
|
16
|
+
function T(e3) {
|
|
17
17
|
let l2 = -1;
|
|
18
|
-
e3 && (l2 =
|
|
19
|
-
const o2 = { uuid:
|
|
20
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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 (
|
|
28
|
-
|
|
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 (
|
|
31
|
-
const l2 =
|
|
32
|
-
for (let o2 of
|
|
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
|
-
|
|
44
|
+
F.value = e3;
|
|
42
45
|
}();
|
|
43
46
|
}, { immediate: true }), (l2, o2) => {
|
|
44
|
-
const
|
|
45
|
-
return
|
|
46
|
-
let l4 =
|
|
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 =
|
|
51
|
+
const o3 = S2.configure.props.groups;
|
|
49
52
|
[o3[l4 - 1], o3[l4]] = [o3[l4], o3[l4 - 1]];
|
|
50
|
-
}(e3.row) }, { default:
|
|
51
|
-
let l4 =
|
|
52
|
-
if (-1 == l4 ||
|
|
53
|
-
const o3 =
|
|
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:
|
|
56
|
-
let l4 =
|
|
57
|
-
l4 > -1 && (
|
|
58
|
-
|
|
59
|
-
}, 10));
|
|
60
|
-
}(e3.row) }, { default:
|
|
61
|
-
return l3 = e3, void (
|
|
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), [[
|
|
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
|
-
|
|
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-
|
|
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
|
|
2
|
-
import { Top as h, Bottom as
|
|
3
|
-
import
|
|
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
|
-
}
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { usePageContextStore as
|
|
5
|
-
import { queryServiceReturnFields as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
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 =
|
|
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
|
-
})),
|
|
16
|
+
})), k = a(() => z.value.filter((e3) => {
|
|
17
17
|
if ("number" == e3.type || "any" == e3.type || !e3.type) {
|
|
18
|
-
const l2 =
|
|
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
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
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
|
|
31
|
-
const e3 =
|
|
30
|
+
function W() {
|
|
31
|
+
const e3 = T.service.id;
|
|
32
32
|
if (C != e3) {
|
|
33
|
-
if (C = e3, !e3) return
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if (!
|
|
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 (
|
|
39
|
-
for (let l2 of
|
|
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 || (
|
|
44
|
+
e5 || (j2.configure.serviceDataField = null);
|
|
45
45
|
}();
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
T
|
|
51
|
-
}, 10)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
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
|
|
9
|
-
import { CanvasRenderer as
|
|
10
|
-
import { GaugeChart as
|
|
11
|
-
import { GridComponent as
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
35
|
+
function P() {
|
|
26
36
|
if (B.configure.items) for (let e3 of B.configure.items) e3.selected = false;
|
|
27
37
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
38
|
+
function Q(e3) {
|
|
39
|
+
P();
|
|
30
40
|
}
|
|
31
|
-
|
|
32
|
-
|
|
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 &&
|
|
44
|
+
B.selectWidget && B.selectWidget.value != B.configure.componentIndex && P();
|
|
43
45
|
});
|
|
44
|
-
const
|
|
45
|
-
return (e3, t2) => (n(), r("div", { style: c(E.value), class: s([F.value, "amb-widget-chart"]), onClick: u(
|
|
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,
|
|
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
|
|
9
|
-
import { CanvasRenderer as
|
|
10
|
-
import { PieChart as
|
|
11
|
-
import { GridComponent as
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
35
|
+
function Q() {
|
|
26
36
|
if (E.configure.items) for (let e3 of E.configure.items) e3.selected = false;
|
|
27
37
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
38
|
+
function U(e3) {
|
|
39
|
+
Q();
|
|
30
40
|
}
|
|
31
|
-
|
|
32
|
-
|
|
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 &&
|
|
44
|
+
E.selectWidget && E.selectWidget.value != E.configure.componentIndex && Q();
|
|
43
45
|
});
|
|
44
|
-
const
|
|
45
|
-
return (e3, t2) => (n(), r("div", { style: c(F.value), class: u([G.value, "amb-widget-chart"]), onClick: s(
|
|
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,
|
|
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
|
} });
|