super-page-runtime 2.2.0 → 2.2.1
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/_virtual/_plugin-vue_export-helper.js +1 -2
- package/dist/es/components/runtime/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
- package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
- package/dist/es/components/runtime/utils/barcode-util.js +1 -2
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
- package/dist/es/components/runtime/utils/common-util.js +7 -14
- package/dist/es/components/runtime/utils/events/event-util.js +97 -115
- package/dist/es/components/runtime/utils/events/print-label.js +20 -21
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
- package/dist/es/components/runtime/utils/events/standard-event.js +295 -337
- package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
- package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
- package/dist/es/components/runtime/utils/global-refs.js +7 -14
- package/dist/es/components/runtime/utils/i18n-util.js +1 -2
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +66 -116
- package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
- package/dist/es/components/runtime/utils/page-init-util.js +65 -69
- package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
- package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +4 -8
- package/dist/es/components/runtime/utils/tree-utils.js +13 -15
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +205 -170
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +151 -120
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +60 -72
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +91 -95
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +33 -43
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +15 -13
- package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
- package/dist/es/components/runtime/views/super-page.vue.js +171 -182
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +6 -4
- package/package.json +74 -74
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
|
@@ -12,8 +12,7 @@ function r(e2) {
|
|
|
12
12
|
}
|
|
13
13
|
function u(t2, e2) {
|
|
14
14
|
const i2 = t2.tableName;
|
|
15
|
-
if (!e2 && i2)
|
|
16
|
-
return i2;
|
|
15
|
+
if (!e2 && i2) return i2;
|
|
17
16
|
let o2;
|
|
18
17
|
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (o2 = JSON.parse(t2.tableRuntimes[e2].configure)), o2 && o2.props && o2.props.dataOrigin ? o2.props.dataOrigin.tableName : null;
|
|
19
18
|
}
|
|
@@ -25,8 +24,7 @@ function l(t2, o2, n2, r2) {
|
|
|
25
24
|
const i2 = e(o3, t2);
|
|
26
25
|
i2 && (l3.permission = i2);
|
|
27
26
|
}
|
|
28
|
-
if (l3.label = s(l3.title), l3.sourceButton = { uuid: o3.uuid }, u3.props = l3, void 0 !== r2)
|
|
29
|
-
u3.onClick = r2(o3);
|
|
27
|
+
if (l3.label = s(l3.title), l3.sourceButton = { uuid: o3.uuid }, u3.props = l3, void 0 !== r2) u3.onClick = r2(o3);
|
|
30
28
|
else {
|
|
31
29
|
const e2 = i(t2, o3.events, "click");
|
|
32
30
|
u3.onClick = e2;
|
|
@@ -45,10 +43,8 @@ function p(t2, e2, i2, s2) {
|
|
|
45
43
|
}
|
|
46
44
|
} else if (i3.showCondition && i3.showCondition.length > 0) {
|
|
47
45
|
n.evaluate(t2, i3.showCondition, s2) && (u3 = true);
|
|
48
|
-
} else
|
|
49
|
-
|
|
50
|
-
if (u3)
|
|
51
|
-
return r2 = i3, true;
|
|
46
|
+
} else u3 = true;
|
|
47
|
+
if (u3) return r2 = i3, true;
|
|
52
48
|
});
|
|
53
49
|
return { show: u2, toPage: r2 };
|
|
54
50
|
}
|
|
@@ -19,21 +19,19 @@ import "async-validator";
|
|
|
19
19
|
function r(r2, s, a, l, u) {
|
|
20
20
|
return new Promise((a2, l2) => {
|
|
21
21
|
var _a, _b;
|
|
22
|
-
if (s && ((_a = s.props.dataOrigin) == null ? void 0 : _a.optionValueSetType))
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
else
|
|
36
|
-
a2([]);
|
|
22
|
+
if (s && ((_a = s.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) if ("beanName" === ((_b = s.props.dataOrigin) == null ? void 0 : _b.optionValueSetType)) {
|
|
23
|
+
const l3 = r2.backendUrl, m = r2.systemCode, p = o(s, r2);
|
|
24
|
+
let n = i(l3, r2.isTest) + "/dsc/commons/load-tree-node";
|
|
25
|
+
n = e(n, m, l3, r2.isTest);
|
|
26
|
+
const c = { pageCode: r2.code, pageVersion: r2.version, tableName: r2.tableName, systemCode: m, functionCode: p, beanName: r2.beanName };
|
|
27
|
+
u && Object.assign(c, u), t.post(n, c).then((i2) => {
|
|
28
|
+
a2(i2);
|
|
29
|
+
});
|
|
30
|
+
} else {
|
|
31
|
+
const i2 = (s.runtime ? s.runtime : {}).props;
|
|
32
|
+
i2 && i2.staticData ? a2(i2.staticData) : a2([]);
|
|
33
|
+
}
|
|
34
|
+
else a2([]);
|
|
37
35
|
});
|
|
38
36
|
}
|
|
39
37
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as i, resolveComponent as l,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as i, resolveComponent as l, createElementBlock as a, openBlock as o, createVNode as u, unref as c, normalizeStyle as p, normalizeClass as r, withCtx as s, createCommentVNode as v, createBlock as g, Fragment as d, createTextVNode as y, toDisplayString as f } from "vue";
|
|
2
2
|
import { SuperIcon as m } from "agilebuilder-ui";
|
|
3
3
|
import { handleAfterInitEvent as x, handleEvent as k } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
@@ -14,7 +14,7 @@ const b = { class: "page-runtime-header-btn" }, V = e({ __name: "button-runtime"
|
|
|
14
14
|
});
|
|
15
15
|
}), (e3, t2) => {
|
|
16
16
|
const n2 = l("el-button");
|
|
17
|
-
return
|
|
17
|
+
return o(), a("span", b, [u(n2, { ref_key: "componentRef", ref: P, disabled: "disabled" === _.value.state || j(), class: r(c(z)), style: p(c(h)), type: _.value.type, size: _.value.size, text: _.value.text, round: _.value.round, plain: _.value.plain, loading: j(), onClick: t2[0] || (t2[0] = (t3) => c(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: s(() => [_.value.title && "right" == _.value.iconPosition ? (o(), a(d, { key: 0 }, [y(f(c(C)(_.value.title)) + " ", 1), _.value.iconValue ? (o(), a(d, { key: 0 }, [y(" ")], 64)) : v("", true)], 64)) : v("", true), _.value.iconType && _.value.iconValue ? (o(), g(c(m), { key: 1, iconType: _.value.iconType, iconValue: _.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), _.value.title && "right" != _.value.iconPosition ? (o(), a(d, { key: 2 }, [_.value.iconValue ? (o(), a(d, { key: 0 }, [y(" ")], 64)) : v("", true), y(" " + f(c(C)(_.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain", "loading"])]);
|
|
18
18
|
};
|
|
19
19
|
} });
|
|
20
20
|
export {
|
package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as u,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as u, createBlock as r, openBlock as a, normalizeStyle as i, normalizeClass as l, unref as p, withCtx as s, createElementBlock as g, Fragment as c, renderList as f } from "vue";
|
|
2
2
|
import m from "../../object-render.vue.js";
|
|
3
3
|
import { handleAfterInitEvent as x } from "../../../../utils/events/event-util.js";
|
|
4
4
|
const y = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
@@ -9,7 +9,7 @@ const y = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure
|
|
|
9
9
|
});
|
|
10
10
|
}), (e3, t2) => {
|
|
11
11
|
const n2 = u("el-button-group");
|
|
12
|
-
return
|
|
12
|
+
return a(), r(n2, { ref_key: "componentRef", ref: _, class: l(p(v)), style: i(p(d)) }, { default: s(() => [(a(true), g(c, null, f(e3.configure.items, (t3, n3) => (a(), r(m, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
|
|
13
13
|
};
|
|
14
14
|
} });
|
|
15
15
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, resolveComponent as u,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, resolveComponent as u, createBlock as i, openBlock as a, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as c, createElementBlock as g, Fragment as f, createTextVNode as m, toDisplayString as d, createVNode as v, renderList as y } from "vue";
|
|
2
2
|
import { ArrowDown as b } from "@element-plus/icons-vue";
|
|
3
3
|
import { formatVariableValue as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as k, handleEvent as x, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
|
|
@@ -22,8 +22,7 @@ const z = { key: 1 }, h = e({ __name: "dropdown-runtime", props: { pageContext:
|
|
|
22
22
|
} else {
|
|
23
23
|
const l2 = (t2 ? t2 + "" : "").trim().split(",");
|
|
24
24
|
e3 = [];
|
|
25
|
-
for (let t3 of l2)
|
|
26
|
-
e3.push({ value: t3, label: t3 });
|
|
25
|
+
for (let t3 of l2) e3.push({ value: t3, label: t3 });
|
|
27
26
|
}
|
|
28
27
|
return e3;
|
|
29
28
|
}) : t(B.value.options ? B.value.options : []);
|
|
@@ -34,7 +33,7 @@ const z = { key: 1 }, h = e({ __name: "dropdown-runtime", props: { pageContext:
|
|
|
34
33
|
});
|
|
35
34
|
}), (e3, t2) => {
|
|
36
35
|
const l2 = u("el-button"), n2 = u("el-icon"), o2 = u("el-text"), C2 = u("el-dropdown-item"), k2 = u("el-dropdown-menu"), _2 = u("el-dropdown");
|
|
37
|
-
return
|
|
36
|
+
return a(), i(_2, { ref_key: "componentRef", ref: V, class: p(s(A)), style: r(s(T)), placement: B.value.placement, "split-button": B.value.splitButton, disabled: "disabled" === B.value.state, type: B.value.buttonType, size: B.value.size, trigger: B.value.trigger, onVisibleChange: S }, { dropdown: c(() => [v(k2, null, { default: c(() => [(a(true), g(f, null, y(s(O), (t3, l3) => (a(), i(C2, { key: t3, onClick: (l4) => s(x)(l4, e3.pageContext, e3.configure, "menuClick", { menuItem: t3 }) }, { default: c(() => [m(d(s(w)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: c(() => ["button" === B.value.triggerElement ? (a(), g(f, { key: 0 }, [B.value.splitButton ? (a(), g("span", z, d(B.value.title), 1)) : (a(), i(l2, { key: 0, size: B.value.size, type: B.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => s(x)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: c(() => [m(d(s(w)(B.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), i(o2, { key: 1 }, { default: c(() => [m(d(s(w)(B.value.title)) + " ", 1), v(n2, null, { default: c(() => [v(s(b))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
|
|
38
37
|
};
|
|
39
38
|
} });
|
|
40
39
|
export {
|
package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
1
|
+
import { defineComponent as e, createBlock as t, openBlock as o } from "vue";
|
|
2
2
|
import n from "../button/button-runtime.vue2.js";
|
|
3
|
-
const r = e({ __name: "exportpdf-runtime", props: { pageContext: {}, configure: {} }, setup: (e2) => (e3, r2) => (
|
|
3
|
+
const r = e({ __name: "exportpdf-runtime", props: { pageContext: {}, configure: {} }, setup: (e2) => (e3, r2) => (o(), t(n, { configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"])) });
|
|
4
4
|
export {
|
|
5
5
|
r as default
|
|
6
6
|
};
|
package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as l, nextTick as n, resolveComponent as u,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as n, resolveComponent as u, createBlock as o, openBlock as a, normalizeStyle as i, normalizeClass as p, unref as r, withCtx as s, createElementBlock as g, Fragment as c, createTextVNode as m, toDisplayString as f, createVNode as v, renderList as d } from "vue";
|
|
2
2
|
import "agilebuilder-ui";
|
|
3
3
|
import { handleAfterInitEvent as y, handleEvent as b } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import k from "../button/button-runtime.vue2.js";
|
|
@@ -13,7 +13,7 @@ const x = { key: 1 }, _ = e({ __name: "printlabel-runtime", props: { pageContext
|
|
|
13
13
|
});
|
|
14
14
|
}), (e3, t2) => {
|
|
15
15
|
const l2 = u("el-button"), n2 = u("ArrowDown"), y2 = u("el-icon"), _3 = u("el-text"), w2 = u("el-dropdown-item"), T = u("el-dropdown-menu"), h = u("el-dropdown");
|
|
16
|
-
return j.value ? (
|
|
16
|
+
return j.value ? (a(), o(h, { key: 1, ref_key: "componentRef", ref: R, class: p(r(D)), style: i(r(B)), placement: z.value.placement, "split-button": z.value.splitButton, disabled: "disabled" === z.value.state, type: z.value.buttonType, size: z.value.size, trigger: z.value.trigger }, { dropdown: s(() => [v(T, null, { default: s(() => [(a(true), g(c, null, d(z.value.template, (t3, l3) => (a(), o(w2, { key: t3, onClick: (l4) => r(b)(l4, e3.pageContext, e3.configure, "click", { menuItem: t3 }) }, { default: s(() => [m(f(r(C)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: s(() => ["button" === z.value.triggerElement ? (a(), g(c, { key: 0 }, [z.value.splitButton ? (a(), g("span", x, f(r(C)(z.value.title)), 1)) : (a(), o(l2, { key: 0, size: z.value.size, type: z.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => r(b)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: s(() => [m(f(r(C)(z.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), o(_3, { key: 1 }, { default: s(() => [m(f(r(C)(z.value.title)) + " ", 1), v(y2, null, { default: s(() => [v(n2)]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"])) : (a(), o(k, { key: 0, configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]));
|
|
17
17
|
};
|
|
18
18
|
} });
|
|
19
19
|
export {
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as o, watch as t,
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as i, normalizeStyle as u, unref as s, withDirectives as l, createVNode as c, vShow as p } from "vue";
|
|
2
2
|
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as m, clearChartSelected as h, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as v, updateChartDatasources as x, monitorFieldChange as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as I } from "../../../../utils/charts/chart-columnline-util.js";
|
|
@@ -7,36 +7,32 @@ import R from "../common/common-chart-header.vue.js";
|
|
|
7
7
|
import { use as j } from "echarts/core";
|
|
8
8
|
import { CanvasRenderer as y } from "echarts/renderers";
|
|
9
9
|
import { LineChart as D, BarChart as V } from "echarts/charts";
|
|
10
|
-
import { GridComponent as P, LegendComponent as _, TitleComponent as b, TooltipComponent as T, ToolboxComponent as
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
j([y, D, P, _, b, T, V,
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
e3.props && e3.props.linkPage && e3.props.linkPage.jumpPageUrl ? B[e3.uuid] = e3 : A && A.jumpPageUrl && (B[e3.uuid] = U.configure);
|
|
18
|
-
const G = U.configure.runtime ? U.configure.runtime : {}, J = G.style, K = G.class, L = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = G.chartOption, W = U.configure.props ? U.configure.props : {}, X = f(W.customTheme);
|
|
10
|
+
import { GridComponent as P, LegendComponent as _, TitleComponent as b, TooltipComponent as T, ToolboxComponent as w, DataZoomComponent as E } from "echarts/components";
|
|
11
|
+
import O from "vue-echarts";
|
|
12
|
+
const H = e({ __name: "column-line-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
13
|
+
j([y, D, P, _, b, T, V, w, E]);
|
|
14
|
+
const N = e2, S = r(null), U = r(), z = r(null), F = N.configure.props ? N.configure.props.enableDrill : null, q = N.configure.props ? N.configure.props.drillEndTrigger : null, A = N.configure.props ? N.configure.props.linkPage : null, B = {};
|
|
15
|
+
if (N.configure.items) for (const e3 of N.configure.items) e3.props && e3.props.linkPage && e3.props.linkPage.jumpPageUrl ? B[e3.uuid] = e3 : A && A.jumpPageUrl && (B[e3.uuid] = N.configure);
|
|
16
|
+
const G = N.configure.runtime ? N.configure.runtime : {}, J = G.style, K = G.class, L = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = G.chartOption, W = N.configure.props ? N.configure.props : {}, X = f(W.customTheme);
|
|
19
17
|
function Y(e3) {
|
|
20
|
-
"clearDrill" == q ?
|
|
18
|
+
"clearDrill" == q ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" === q && Z(e3);
|
|
21
19
|
}
|
|
22
20
|
function Z(e3) {
|
|
23
|
-
if (e3.seriesIndex >= Q.series.length)
|
|
24
|
-
return;
|
|
21
|
+
if (e3.seriesIndex >= Q.series.length) return;
|
|
25
22
|
const r2 = Q.series[e3.seriesIndex].uuid, o2 = B[r2];
|
|
26
|
-
if (!o2)
|
|
27
|
-
return;
|
|
23
|
+
if (!o2) return;
|
|
28
24
|
const t2 = { data: e3.data, dataIndex: e3.dataIndex, name: e3.name, seriesId: e3.seriesId, seriesIndex: e3.seriesIndex, seriesName: e3.seriesName, seriesType: e3.seriesType, value: e3.value };
|
|
29
|
-
k(
|
|
25
|
+
k(N.pageContext, o2, t2);
|
|
30
26
|
}
|
|
31
|
-
g(
|
|
32
|
-
const e3 = v(
|
|
33
|
-
e3 && oe(e3),
|
|
34
|
-
|
|
35
|
-
}), !
|
|
27
|
+
g(N.configure, Q), o(() => {
|
|
28
|
+
const e3 = v(N.pageContext, N.configure);
|
|
29
|
+
e3 && oe(e3), U.value && (F || Object.keys(B).length > 0) && U.value.chart.on("click", function(e4) {
|
|
30
|
+
F ? z.value && z.value.drill && z.value.drill(e4, N.configure.cacheDatas) : Z(e4);
|
|
31
|
+
}), !F && N.configure.clickSet && U.value && m(N.pageContext, N.configure, U.value.chart);
|
|
36
32
|
});
|
|
37
33
|
let $ = M.groupValue;
|
|
38
34
|
function ee(e3) {
|
|
39
|
-
L && (true !== e3 && (L.autoRefresh = true), x(
|
|
35
|
+
L && (true !== e3 && (L.autoRefresh = true), x(N.pageContext, [L], M.drillParams));
|
|
40
36
|
}
|
|
41
37
|
t(M, () => {
|
|
42
38
|
$ != M.groupValue && ($ = M.groupValue, L && (L.services[0].groupValue = M.groupValue), ee(false));
|
|
@@ -44,14 +40,14 @@ const N = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
44
40
|
const re = M.monitorFields;
|
|
45
41
|
function oe(e3) {
|
|
46
42
|
var _a;
|
|
47
|
-
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh &&
|
|
43
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && F || h(N.pageContext, N.configure, (_a = U.value) == null ? void 0 : _a.chart), L.autoRefresh = false, I(N.pageContext, N.configure, Q, e3));
|
|
48
44
|
}
|
|
49
|
-
return C(
|
|
45
|
+
return C(N.pageContext, re, () => {
|
|
50
46
|
ee(true);
|
|
51
|
-
}),
|
|
52
|
-
d(
|
|
53
|
-
}, chartOption: Q }), (e3, r2) => (
|
|
47
|
+
}), H2({ updateChartDatas: oe, exportChart: function() {
|
|
48
|
+
return d(U.value);
|
|
49
|
+
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart"]), ref_key: "thisRef", ref: S }, [l(c(R, { ref_key: "headerRef", ref: z, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(O), { ref_key: "chartRef", ref: U, theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
54
50
|
} });
|
|
55
51
|
export {
|
|
56
|
-
|
|
52
|
+
H as default
|
|
57
53
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as e, resolveComponent as r,
|
|
1
|
+
import { defineComponent as e, resolveComponent as r, createBlock as o, openBlock as l, unref as t, withCtx as s, createElementBlock as a, Fragment as n, renderList as c, createTextVNode as m, toDisplayString as u } from "vue";
|
|
2
2
|
import { ArrowRight as i } from "@element-plus/icons-vue";
|
|
3
3
|
const p = e({ __name: "common-chart-header-breadcrumb", props: { headerInfo: { type: Object, required: true } }, emits: ["close-drill"], setup(e2, { emit: p2 }) {
|
|
4
4
|
const d = p2;
|
|
5
5
|
return (p3, f) => {
|
|
6
6
|
const b = r("el-tag"), h = r("el-breadcrumb");
|
|
7
|
-
return
|
|
7
|
+
return l(), o(h, { "separator-icon": t(i) }, { default: s(() => [(l(true), a(n, null, c(e2.headerInfo.drillOptions, (e3, r2) => (l(), o(b, { key: e3.name, closable: "", type: "success", style: { "margin-left": "4px" }, onClose: (e4) => {
|
|
8
8
|
d("close-drill", r2);
|
|
9
9
|
} }, { default: s(() => [m(u(e3.label), 1)]), _: 2 }, 1032, ["onClose"]))), 128))]), _: 1 }, 8, ["separator-icon"]);
|
|
10
10
|
};
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, watch as l, resolveComponent as o,
|
|
1
|
+
import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as d, Fragment as n, renderList as p } from "vue";
|
|
2
2
|
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup: (e2) => (l(e2.headerInfo, () => {
|
|
3
3
|
}), (l2, t2) => {
|
|
4
4
|
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
|
|
5
|
-
return "checkbox" == e2.headerInfo.groupComponent ? (
|
|
5
|
+
return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[0] || (t2[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(n, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[1] || (t2[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[2] || (t2[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
|
|
6
6
|
}) });
|
|
7
7
|
export {
|
|
8
8
|
t as default
|
|
@@ -1,54 +1,58 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { defineComponent as e, ref as o, resolveComponent as r, createElementBlock as n, openBlock as t, createElementVNode as a, createCommentVNode as l, withDirectives as i, createBlock as d, normalizeStyle as f, toDisplayString as h, vShow as s, createVNode as c, withCtx as I, unref as u } from "vue";
|
|
2
|
+
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
+
import g from "./common-chart-header-group.vue.js";
|
|
4
|
+
import m from "./common-chart-header-breadcrumb.vue.js";
|
|
5
|
+
import b from "./common-homepage-search.vue.js";
|
|
6
|
+
import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as w } from "../../../../utils/page-helper-util.js";
|
|
7
|
+
const x = { class: "amb-widget-chart-header" }, O = { class: "amb-widget-chart-header-item" }, k = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, j = { class: "amb-widget-chart-header-item" }, C = { key: 0, class: "amb-widget-chart-header-item" }, P = e({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(e2, { expose: P2, emit: _ }) {
|
|
8
|
+
const N = e2, D = o(null), A = o(), R = _;
|
|
9
|
+
function S(e3) {
|
|
10
|
+
const o2 = N.headerInfo.drillOptions.length;
|
|
11
|
+
if (!(e3 >= o2)) {
|
|
12
|
+
for (let r2 = o2 - 1; r2 >= e3; r2--) N.headerInfo.drillOptions.splice(r2, 1);
|
|
13
|
+
q(e3);
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
const r2 = {};
|
|
17
|
-
for (let e4 of w.headerInfo.drillOptions)
|
|
18
|
-
e4.fieldName && (r2[e4.fieldName] = e4.value);
|
|
19
|
-
w.headerInfo.drillParams = r2, w.headerInfo.groupValue = w.headerInfo.options[e3].value, N();
|
|
20
|
-
}
|
|
21
|
-
function N(e3) {
|
|
22
|
-
const r2 = w.configure.clickSet;
|
|
23
|
-
if (!r2 || !r2.variables || 0 === r2.variables.length)
|
|
24
|
-
return;
|
|
16
|
+
function q(e3) {
|
|
25
17
|
const o2 = {};
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
for (let e4 of N.headerInfo.drillOptions) e4.fieldName && (o2[e4.fieldName] = e4.value);
|
|
19
|
+
N.headerInfo.drillParams = o2, N.headerInfo.groupValue = N.headerInfo.options[e3].value, F();
|
|
20
|
+
}
|
|
21
|
+
function F(e3) {
|
|
22
|
+
const o2 = N.configure.clickSet;
|
|
23
|
+
if (!o2 || !o2.variables || 0 === o2.variables.length) return;
|
|
24
|
+
const r2 = {};
|
|
25
|
+
e3 && Object.assign(r2, e3);
|
|
26
|
+
const n2 = N.headerInfo.drillOptions;
|
|
28
27
|
if (n2.length > 0) {
|
|
29
28
|
if (!e3) {
|
|
30
29
|
const e4 = n2[n2.length - 1];
|
|
31
|
-
e4.data && Object.assign(
|
|
30
|
+
e4.data && Object.assign(r2, e4.data);
|
|
32
31
|
}
|
|
33
|
-
for (let e4 of n2)
|
|
34
|
-
e4.rawFieldName && c(o2, e4.rawFieldName, e4.value);
|
|
32
|
+
for (let e4 of n2) e4.rawFieldName && v(r2, e4.rawFieldName, e4.value);
|
|
35
33
|
}
|
|
36
|
-
for (let e4 of
|
|
37
|
-
if (!e4.fieldName || !e4.variable)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
p(w.pageContext.entity, e4.variable, r3);
|
|
34
|
+
for (let e4 of o2.variables) {
|
|
35
|
+
if (!e4.fieldName || !e4.variable) continue;
|
|
36
|
+
const o3 = y(r2, e4.fieldName, void 0);
|
|
37
|
+
w(N.pageContext.entity, e4.variable, o3);
|
|
41
38
|
}
|
|
42
39
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
N.headerInfo.drillOptions || (N.headerInfo.drillOptions = []);
|
|
41
|
+
const G = () => {
|
|
42
|
+
A.value.openSearch();
|
|
43
|
+
};
|
|
44
|
+
return P2({ drill: function(e3, o2) {
|
|
45
|
+
const r2 = N.headerInfo.drillOptions.length;
|
|
46
|
+
if (r2 + 1 >= N.headerInfo.options.length) {
|
|
47
|
+
return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), void R("drill-end", e3);
|
|
47
48
|
}
|
|
48
|
-
const n2 =
|
|
49
|
-
|
|
50
|
-
}, closeDrill:
|
|
49
|
+
const n2 = N.headerInfo.options[r2], t2 = o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : null, a2 = { fieldName: n2.target ? n2.target.replace(".", "_") : "", rawFieldName: n2.target ? n2.target : "", label: e3.name, value: e3.name, data: t2 };
|
|
50
|
+
N.headerInfo.drillOptions.push(a2), q(r2 + 1);
|
|
51
|
+
}, closeDrill: S }), (o2, v2) => {
|
|
52
|
+
const y2 = r("el-icon"), w2 = r("el-tooltip");
|
|
53
|
+
return t(), n("div", x, [a("div", O, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(m, { key: 0, ref_key: "drillObjRef", ref: D, headerInfo: e2.headerInfo, onCloseDrill: S }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", k, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), a("div", j, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), e2.pageContext.showHomepageSearch ? (t(), n("div", C, [c(w2, { content: "打开查询弹窗", effect: "light" }, { default: I(() => [c(y2, { onClick: G }, { default: I(() => [c(u(p))]), _: 1 })]), _: 1 }), c(b, { ref_key: "commonHomepageSearchRef", ref: A, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])])) : l("", true)]);
|
|
54
|
+
};
|
|
51
55
|
} });
|
|
52
56
|
export {
|
|
53
|
-
|
|
57
|
+
P as default
|
|
54
58
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, resolveComponent as o, createBlock as n, openBlock as a, withCtx as i, createCommentVNode as r, createElementBlock as l, Fragment as u, renderList as s, createVNode as c, createElementVNode as p, createTextVNode as g } from "vue";
|
|
2
|
+
import m from "../../object-render.vue.js";
|
|
3
|
+
import { updateChartDatasources as f, getValueFromVariable as d } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { ElLoading as h, ElMessage as C } from "element-plus";
|
|
5
|
+
import v from "agilebuilder-ui/src/utils/request";
|
|
6
|
+
import { setHomeChartInitConfigValue as S } from "../../../../utils/charts/chart-util.js";
|
|
7
|
+
const y = { class: "dialog-footer" }, _ = e({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
|
|
8
|
+
} } }, setup(e2, { expose: _2 }) {
|
|
9
|
+
const x = e2, O = t(false), b = t([]), I = () => {
|
|
10
|
+
O.value = false;
|
|
11
|
+
}, k = () => {
|
|
12
|
+
const e3 = h.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
|
|
13
|
+
f(x.pageContext, x.pageContext.initChartServiceConfigs, null, false).then(() => {
|
|
14
|
+
O.value = false;
|
|
15
|
+
}).finally(() => {
|
|
16
|
+
O.value = false, e3.close();
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
function w() {
|
|
20
|
+
S(x.configure.pushHomepage.initConfig, x.pageContext, x.configure.homeChartSettingUserId);
|
|
21
|
+
}
|
|
22
|
+
function N() {
|
|
23
|
+
const e3 = {};
|
|
24
|
+
x.pageContext.variables.forEach((t3) => {
|
|
25
|
+
const o3 = "${page." + t3.name + "}";
|
|
26
|
+
e3[o3] = d(x.pageContext.entity, o3, null);
|
|
27
|
+
});
|
|
28
|
+
let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), o2 = {};
|
|
29
|
+
t2 && (o2 = JSON.parse(t2)), o2[x.configure.homeChartSettingUserId] = e3;
|
|
30
|
+
const n2 = JSON.stringify(o2);
|
|
31
|
+
window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(o2)), v.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: x.configure.homeChartSettingUserId, searchConditionsJson: n2 }).then((e4) => {
|
|
32
|
+
C.success("保存成功");
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return _2({ openSearch: () => {
|
|
36
|
+
O.value = true, b.value = x.configure.pushHomepage.searchConditions;
|
|
37
|
+
} }), (t2, f2) => {
|
|
38
|
+
const d2 = o("el-empty"), h2 = o("el-form"), C2 = o("el-button"), v2 = o("el-dialog");
|
|
39
|
+
return a(), n(v2, { modelValue: O.value, "onUpdate:modelValue": f2[0] || (f2[0] = (e3) => O.value = e3), title: "筛选", width: "500", close: I }, { footer: i(() => [p("div", y, [c(C2, { type: "primary", onClick: k }, { default: i(() => f2[1] || (f2[1] = [g(" 确定 ")])), _: 1 }), c(C2, { onClick: w }, { default: i(() => f2[2] || (f2[2] = [g("重置")])), _: 1 }), c(C2, { type: "primary", onClick: N }, { default: i(() => f2[3] || (f2[3] = [g(" 保存为默认条件 ")])), _: 1 })])]), default: i(() => [b.value && 0 !== b.value.length ? r("", true) : (a(), n(d2, { key: 0, description: "未设置筛选条件" })), (a(true), l(u, null, s(b.value, (t3) => (a(), n(h2, { key: t3.uuid }, { default: i(() => [c(m, { configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])]), _: 2 }, 1024))), 128))]), _: 1 }, 8, ["modelValue"]);
|
|
40
|
+
};
|
|
41
|
+
} });
|
|
42
|
+
export {
|
|
43
|
+
_ as default
|
|
44
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as t, watch as o,
|
|
2
|
-
import { getCustomTheme as m, initChartOption as
|
|
3
|
-
import { getChartDatasFromPage as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as s, unref as i, withDirectives as p, createVNode as c, vShow as f } from "vue";
|
|
2
|
+
import { getCustomTheme as m, initChartOption as g, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { getChartDatasFromPage as l, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-gauge-util.js";
|
|
5
5
|
import v from "../common/common-chart-header.vue.js";
|
|
6
6
|
import { use as R } from "echarts/core";
|
|
@@ -8,28 +8,28 @@ import { CanvasRenderer as y } from "echarts/renderers";
|
|
|
8
8
|
import { GaugeChart as V } from "echarts/charts";
|
|
9
9
|
import { GridComponent as _, TitleComponent as j, TooltipComponent as I, ToolboxComponent as k } from "echarts/components";
|
|
10
10
|
import w from "vue-echarts";
|
|
11
|
-
const
|
|
11
|
+
const H = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
12
12
|
R([y, V, _, j, I, k]);
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const e3 =
|
|
16
|
-
e3 &&
|
|
13
|
+
const b = e2, z = r(null), D = r(null), F = r(null), O = b.configure.runtime ? b.configure.runtime : {}, P = O.style, S = O.class, T = O.dataConfig, q = O.headerInfo ? O.headerInfo : {}, A = O.chartOption, B = b.configure.props ? b.configure.props : {}, E = m(B.customTheme);
|
|
14
|
+
g(b.configure, A), t(() => {
|
|
15
|
+
const e3 = l(b.pageContext, b.configure);
|
|
16
|
+
e3 && L(e3);
|
|
17
17
|
});
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
|
|
18
|
+
let G = q.groupValue;
|
|
19
|
+
function J() {
|
|
20
|
+
T && d(b.pageContext, [T], q.drillParams);
|
|
21
21
|
}
|
|
22
|
-
o(
|
|
23
|
-
|
|
22
|
+
o(q, () => {
|
|
23
|
+
G != q.groupValue && (G = q.groupValue, T && (T.services[0].groupValue = q.groupValue), J());
|
|
24
24
|
});
|
|
25
|
-
const
|
|
26
|
-
function
|
|
27
|
-
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(
|
|
25
|
+
const K = q.monitorFields;
|
|
26
|
+
function L(e3) {
|
|
27
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(b.pageContext, b.configure, A, e3));
|
|
28
28
|
}
|
|
29
|
-
return x(
|
|
30
|
-
h(
|
|
31
|
-
} }), (e3, r2) => (
|
|
29
|
+
return x(b.pageContext, K, J), H2({ updateChartDatas: L, exportChart: function() {
|
|
30
|
+
return h(D.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: s(i(P)), class: u([i(S), "amb-widget-chart"]), ref_key: "thisRef", ref: z }, [p(c(v, { ref_key: "headerRef", ref: F, headerInfo: i(q), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(q).showHeader || e3.pageContext.showHomepageSearch]]), c(i(w), { ref_key: "chartRef", ref: D, theme: i(E), option: i(A), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
H as default
|
|
35
35
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as o, watch as t,
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as u, normalizeClass as a, normalizeStyle as l, unref as i, withDirectives as c, createVNode as p, vShow as s } from "vue";
|
|
2
2
|
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as h, clearChartSelected as m, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { updateChartOption as v } from "../../../../utils/charts/chart-pie-util.js";
|
|
4
4
|
import { doClickJumpPageEvent as x } from "../../../../utils/events/event-util.js";
|
|
@@ -7,40 +7,40 @@ import k from "../common/common-chart-header.vue.js";
|
|
|
7
7
|
import { use as D } from "echarts/core";
|
|
8
8
|
import { CanvasRenderer as V } from "echarts/renderers";
|
|
9
9
|
import { PieChart as y } from "echarts/charts";
|
|
10
|
-
import { GridComponent as _, LegendComponent as I, TitleComponent as P, TooltipComponent as b, ToolboxComponent as
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
D([V, y, _, I, P, b,
|
|
14
|
-
const
|
|
10
|
+
import { GridComponent as _, LegendComponent as I, TitleComponent as P, TooltipComponent as b, ToolboxComponent as w } from "echarts/components";
|
|
11
|
+
import E from "vue-echarts";
|
|
12
|
+
const H = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
13
|
+
D([V, y, _, I, P, b, w]);
|
|
14
|
+
const S = e2, T = r(null), U = r(null), z = r(null), F = S.configure.props ? S.configure.props.enableDrill : null, O = S.configure.props ? S.configure.props.drillEndTrigger : null, q = S.configure.props ? S.configure.props.linkPage : null, A = S.configure.runtime ? S.configure.runtime : {}, B = A.style, G = A.class, J = A.dataConfig, K = A.headerInfo ? A.headerInfo : {}, L = A.chartOption, M = S.configure.props ? S.configure.props : {}, N = f(M.customTheme);
|
|
15
15
|
function Q(e3) {
|
|
16
|
-
"clearDrill" ==
|
|
16
|
+
"clearDrill" == O ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" == O && W();
|
|
17
17
|
}
|
|
18
18
|
function W() {
|
|
19
|
-
q && q.jumpPageUrl && x(
|
|
19
|
+
q && q.jumpPageUrl && x(S.pageContext, S.configure, void 0);
|
|
20
20
|
}
|
|
21
|
-
g(
|
|
22
|
-
const e3 = C(
|
|
23
|
-
e3 && $(e3),
|
|
24
|
-
|
|
25
|
-
}), !
|
|
21
|
+
g(S.configure, L), o(() => {
|
|
22
|
+
const e3 = C(S.pageContext, S.configure);
|
|
23
|
+
e3 && $(e3), U.value && (F || q && q.jumpPageUrl) && U.value.chart.on("click", function(e4) {
|
|
24
|
+
F ? z.value && z.value.drill && z.value.drill(e4, S.configure.cacheDatas) : W();
|
|
25
|
+
}), !F && S.configure.clickSet && U.value && h(S.pageContext, S.configure, U.value.chart);
|
|
26
26
|
});
|
|
27
27
|
let X = K.groupValue;
|
|
28
28
|
function Y(e3) {
|
|
29
|
-
J && (true !== e3 && (J.autoRefresh = true), R(
|
|
29
|
+
J && (true !== e3 && (J.autoRefresh = true), R(S.pageContext, [J], K.drillParams));
|
|
30
30
|
}
|
|
31
31
|
t(K, () => {
|
|
32
32
|
X != K.groupValue && (X = K.groupValue, J && (J.services[0].groupValue = K.groupValue), Y(false));
|
|
33
33
|
});
|
|
34
34
|
const Z = K.monitorFields;
|
|
35
35
|
function $(e3) {
|
|
36
|
-
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, J.autoRefresh || (X = e3.groupValue, X && "checkbox" !== K.groupComponent && (X = X.join(",")), K.groupValue = X), J.autoRefresh &&
|
|
36
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, J.autoRefresh || (X = e3.groupValue, X && "checkbox" !== K.groupComponent && (X = X.join(",")), K.groupValue = X), J.autoRefresh && F || m(S.pageContext, S.configure, U.value.chart), J.autoRefresh = false, v(S.pageContext, S.configure, L, e3));
|
|
37
37
|
}
|
|
38
|
-
return j(
|
|
38
|
+
return j(S.pageContext, Z, () => {
|
|
39
39
|
Y(true);
|
|
40
|
-
}),
|
|
41
|
-
d(
|
|
42
|
-
} }), (e3, r2) => (
|
|
40
|
+
}), H2({ updateChartDatas: $, exportChart: function() {
|
|
41
|
+
return d(U.value);
|
|
42
|
+
} }), (e3, r2) => (u(), n("div", { style: l(i(B)), class: a([i(G), "amb-widget-chart"]), ref_key: "thisRef", ref: T }, [c(p(k, { ref_key: "headerRef", ref: z, headerInfo: i(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q }, null, 8, ["headerInfo", "configure", "pageContext"]), [[s, i(K).showHeader || e3.pageContext.showHomepageSearch]]), p(i(E), { ref_key: "chartRef", ref: U, theme: i(N), option: i(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
H as default
|
|
46
46
|
};
|