super-page-runtime 2.1.933 → 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 +5 -7
- package/dist/es/assets/chart-themes/theme1.js +2 -6
- package/dist/es/assets/chart-themes/theme2.js +2 -6
- package/dist/es/assets/chart-themes/theme3.js +2 -6
- package/dist/es/components/runtime/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/api/api-util.js +4 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -435
- package/dist/es/components/runtime/utils/assemblys-config.js +11 -367
- package/dist/es/components/runtime/utils/barcode-util.js +9 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +122 -306
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -68
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +68 -152
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +46 -124
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +36 -99
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +226 -485
- package/dist/es/components/runtime/utils/common-util.js +76 -153
- package/dist/es/components/runtime/utils/eventBus.js +3 -9
- package/dist/es/components/runtime/utils/events/event-util.js +343 -727
- package/dist/es/components/runtime/utils/events/print-label.js +72 -140
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
- package/dist/es/components/runtime/utils/events/standard-event.js +810 -2299
- package/dist/es/components/runtime/utils/events/validator-util.js +222 -552
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +28 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +61 -162
- package/dist/es/components/runtime/utils/global-refs.js +53 -84
- package/dist/es/components/runtime/utils/i18n-util.js +11 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +278 -658
- package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
- package/dist/es/components/runtime/utils/page-init-util.js +132 -370
- package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
- package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
- package/dist/es/components/runtime/utils/page-store.js +8 -12
- package/dist/es/components/runtime/utils/store-util.js +9 -13
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +45 -84
- package/dist/es/components/runtime/utils/tree-utils.js +17 -37
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +36 -132
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +50 -198
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +52 -169
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- 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.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
- 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 +253 -449
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +37 -231
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +197 -510
- 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 +29 -139
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.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 +21 -125
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- 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 +16 -102
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +302 -803
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +249 -594
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +40 -115
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
- 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 +3 -21
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +42 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +34 -98
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +52 -200
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +66 -239
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +31 -104
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -59
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +51 -173
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -249
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -174
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +61 -189
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +87 -244
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +77 -261
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +40 -129
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
- 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 +125 -254
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +18 -46
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +21 -49
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +20 -58
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
- 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 +20 -134
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
- package/dist/es/components/runtime/views/super-page.vue.js +222 -708
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +2 -55
- package/dist/es/i18n/langs/en.js +2 -55
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +6 -4
- package/package.json +3 -2
|
@@ -1,167 +1,46 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, watch, openBlock,
|
|
2
|
-
import { getCustomTheme, initChartOption, monitorChartClickToVariable, clearChartSelected, exportCommonChart } from "../../../../utils/charts/chart-util.js";
|
|
3
|
-
import { updateChartOption } from "../../../../utils/charts/chart-pie-util.js";
|
|
4
|
-
import { doClickJumpPageEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import { getChartDatasFromPage, updateChartDatasources, monitorFieldChange } from "../../../../utils/page-helper-util.js";
|
|
6
|
-
import
|
|
7
|
-
import { use } from "echarts/core";
|
|
8
|
-
import { CanvasRenderer } from "echarts/renderers";
|
|
9
|
-
import { PieChart } from "echarts/charts";
|
|
10
|
-
import { GridComponent, LegendComponent, TitleComponent, TooltipComponent, ToolboxComponent } from "echarts/components";
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
props: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
setup(__props, { expose: __expose }) {
|
|
19
|
-
use([
|
|
20
|
-
CanvasRenderer,
|
|
21
|
-
PieChart,
|
|
22
|
-
GridComponent,
|
|
23
|
-
LegendComponent,
|
|
24
|
-
TitleComponent,
|
|
25
|
-
TooltipComponent,
|
|
26
|
-
ToolboxComponent
|
|
27
|
-
]);
|
|
28
|
-
const props = __props;
|
|
29
|
-
const thisRef = ref(null);
|
|
30
|
-
const chartRef = ref(null);
|
|
31
|
-
const headerRef = ref(null);
|
|
32
|
-
const enableDrill = props.configure.props ? props.configure.props.enableDrill : null;
|
|
33
|
-
const drillEndTrigger = props.configure.props ? props.configure.props.drillEndTrigger : null;
|
|
34
|
-
const linkPage = props.configure.props ? props.configure.props.linkPage : null;
|
|
35
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
36
|
-
const runtimeStyle = runtimeInfo.style;
|
|
37
|
-
const runtimeClass = runtimeInfo.class;
|
|
38
|
-
const dataConfig = runtimeInfo.dataConfig;
|
|
39
|
-
const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
|
|
40
|
-
const chartOption = runtimeInfo.chartOption;
|
|
41
|
-
const configureProps = props.configure.props ? props.configure.props : {};
|
|
42
|
-
const customTheme = getCustomTheme(configureProps.customTheme);
|
|
43
|
-
initChartOption(props.configure, chartOption);
|
|
44
|
-
onMounted(() => {
|
|
45
|
-
const resultData = getChartDatasFromPage(props.pageContext, props.configure);
|
|
46
|
-
if (resultData) {
|
|
47
|
-
updateChartDatas(resultData);
|
|
48
|
-
}
|
|
49
|
-
if (chartRef.value && (enableDrill || linkPage && linkPage.jumpPageUrl)) {
|
|
50
|
-
chartRef.value.chart.on("click", function(params) {
|
|
51
|
-
if (enableDrill) {
|
|
52
|
-
if (headerRef.value && headerRef.value.drill) {
|
|
53
|
-
headerRef.value.drill(params, props.configure.cacheDatas);
|
|
54
|
-
}
|
|
55
|
-
} else {
|
|
56
|
-
clickToLink();
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
if (!enableDrill && props.configure.clickSet && chartRef.value) {
|
|
61
|
-
monitorChartClickToVariable(props.pageContext, props.configure, chartRef.value.chart);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
function onDrillEnd(params) {
|
|
65
|
-
if (drillEndTrigger == "clearDrill") {
|
|
66
|
-
if (headerRef.value && headerRef.value.closeDrill) {
|
|
67
|
-
headerRef.value.closeDrill(0);
|
|
68
|
-
}
|
|
69
|
-
} else if (drillEndTrigger == "clickEvent") {
|
|
70
|
-
clickToLink();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function clickToLink() {
|
|
74
|
-
if (!linkPage || !linkPage.jumpPageUrl) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
doClickJumpPageEvent(props.pageContext, props.configure, void 0);
|
|
78
|
-
}
|
|
79
|
-
let hisGroupValue = headerInfo.groupValue;
|
|
80
|
-
watch(headerInfo, () => {
|
|
81
|
-
if (hisGroupValue == headerInfo.groupValue) {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
hisGroupValue = headerInfo.groupValue;
|
|
85
|
-
if (dataConfig) {
|
|
86
|
-
dataConfig.services[0].groupValue = headerInfo.groupValue;
|
|
87
|
-
}
|
|
88
|
-
refresh(false);
|
|
89
|
-
});
|
|
90
|
-
function refresh(isHandle) {
|
|
91
|
-
if (!dataConfig) {
|
|
92
|
-
console.log("无数据源配置,不需要查询!");
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
if (isHandle !== true) {
|
|
96
|
-
dataConfig.autoRefresh = true;
|
|
97
|
-
}
|
|
98
|
-
updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
|
|
99
|
-
}
|
|
100
|
-
const monitorFields = headerInfo.monitorFields;
|
|
101
|
-
monitorFieldChange(props.pageContext, monitorFields, () => {
|
|
102
|
-
refresh(true);
|
|
103
|
-
});
|
|
104
|
-
function updateChartDatas(resultData) {
|
|
105
|
-
if (!resultData) {
|
|
106
|
-
resultData = [];
|
|
107
|
-
}
|
|
108
|
-
resultData = resultData.length > 0 ? resultData[0] : {};
|
|
109
|
-
if (!resultData) {
|
|
110
|
-
resultData = {};
|
|
111
|
-
}
|
|
112
|
-
if (resultData.hasRender) {
|
|
113
|
-
resultData.hasRender = true;
|
|
114
|
-
console.log("重复更新!", resultData);
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
resultData.hasRender = true;
|
|
118
|
-
if (!dataConfig.autoRefresh) {
|
|
119
|
-
hisGroupValue = resultData.groupValue;
|
|
120
|
-
if (hisGroupValue && headerInfo.groupComponent !== "checkbox") {
|
|
121
|
-
hisGroupValue = hisGroupValue.join(",");
|
|
122
|
-
}
|
|
123
|
-
headerInfo.groupValue = hisGroupValue;
|
|
124
|
-
}
|
|
125
|
-
if (!dataConfig.autoRefresh || !enableDrill) {
|
|
126
|
-
clearChartSelected(props.pageContext, props.configure, chartRef.value.chart);
|
|
127
|
-
}
|
|
128
|
-
dataConfig.autoRefresh = false;
|
|
129
|
-
updateChartOption(props.pageContext, props.configure, chartOption, resultData);
|
|
130
|
-
console.log("chartOption--pie", chartOption);
|
|
131
|
-
}
|
|
132
|
-
function exportChart() {
|
|
133
|
-
exportCommonChart(chartRef.value);
|
|
134
|
-
}
|
|
135
|
-
__expose({
|
|
136
|
-
updateChartDatas,
|
|
137
|
-
exportChart
|
|
138
|
-
});
|
|
139
|
-
return (_ctx, _cache) => {
|
|
140
|
-
return openBlock(), createElementBlock("div", {
|
|
141
|
-
style: normalizeStyle(unref(runtimeStyle)),
|
|
142
|
-
class: normalizeClass([unref(runtimeClass), "amb-widget-chart"]),
|
|
143
|
-
ref_key: "thisRef",
|
|
144
|
-
ref: thisRef
|
|
145
|
-
}, [
|
|
146
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
147
|
-
ref_key: "headerRef",
|
|
148
|
-
ref: headerRef,
|
|
149
|
-
headerInfo: unref(headerInfo),
|
|
150
|
-
onDrillEnd
|
|
151
|
-
}, null, 8, ["headerInfo"]), [
|
|
152
|
-
[vShow, unref(headerInfo).showHeader]
|
|
153
|
-
]),
|
|
154
|
-
createVNode(unref(VChart), {
|
|
155
|
-
ref_key: "chartRef",
|
|
156
|
-
ref: chartRef,
|
|
157
|
-
theme: unref(customTheme),
|
|
158
|
-
option: unref(chartOption),
|
|
159
|
-
autoresize: ""
|
|
160
|
-
}, null, 8, ["theme", "option"])
|
|
161
|
-
], 6);
|
|
162
|
-
};
|
|
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
|
+
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as h, clearChartSelected as m, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { updateChartOption as v } from "../../../../utils/charts/chart-pie-util.js";
|
|
4
|
+
import { doClickJumpPageEvent as x } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { getChartDatasFromPage as C, updateChartDatasources as R, monitorFieldChange as j } from "../../../../utils/page-helper-util.js";
|
|
6
|
+
import k from "../common/common-chart-header.vue.js";
|
|
7
|
+
import { use as D } from "echarts/core";
|
|
8
|
+
import { CanvasRenderer as V } from "echarts/renderers";
|
|
9
|
+
import { PieChart as y } from "echarts/charts";
|
|
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
|
+
function Q(e3) {
|
|
16
|
+
"clearDrill" == O ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" == O && W();
|
|
163
17
|
}
|
|
164
|
-
|
|
18
|
+
function W() {
|
|
19
|
+
q && q.jumpPageUrl && x(S.pageContext, S.configure, void 0);
|
|
20
|
+
}
|
|
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
|
+
});
|
|
27
|
+
let X = K.groupValue;
|
|
28
|
+
function Y(e3) {
|
|
29
|
+
J && (true !== e3 && (J.autoRefresh = true), R(S.pageContext, [J], K.drillParams));
|
|
30
|
+
}
|
|
31
|
+
t(K, () => {
|
|
32
|
+
X != K.groupValue && (X = K.groupValue, J && (J.services[0].groupValue = K.groupValue), Y(false));
|
|
33
|
+
});
|
|
34
|
+
const Z = K.monitorFields;
|
|
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 && F || m(S.pageContext, S.configure, U.value.chart), J.autoRefresh = false, v(S.pageContext, S.configure, L, e3));
|
|
37
|
+
}
|
|
38
|
+
return j(S.pageContext, Z, () => {
|
|
39
|
+
Y(true);
|
|
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
|
+
} });
|
|
165
44
|
export {
|
|
166
|
-
|
|
45
|
+
H as default
|
|
167
46
|
};
|
|
@@ -1,118 +1,35 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, watch, openBlock,
|
|
2
|
-
import { getCustomTheme, initChartOption, exportCommonChart } from "../../../../utils/charts/chart-util.js";
|
|
3
|
-
import { getChartDatasFromPage, updateChartDatasources, monitorFieldChange } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { updateChartOption } from "../../../../utils/charts/chart-radar-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { use } from "echarts/core";
|
|
7
|
-
import { CanvasRenderer } from "echarts/renderers";
|
|
8
|
-
import { RadarChart } from "echarts/charts";
|
|
9
|
-
import { GridComponent, TitleComponent, TooltipComponent, ToolboxComponent, LegendComponent } from "echarts/components";
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
props: {
|
|
14
|
-
|
|
15
|
-
configure
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
GridComponent,
|
|
22
|
-
TitleComponent,
|
|
23
|
-
TooltipComponent,
|
|
24
|
-
ToolboxComponent,
|
|
25
|
-
LegendComponent
|
|
26
|
-
]);
|
|
27
|
-
const props = __props;
|
|
28
|
-
const thisRef = ref(null);
|
|
29
|
-
const chartRef = ref(null);
|
|
30
|
-
const headerRef = ref(null);
|
|
31
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
32
|
-
const runtimeStyle = runtimeInfo.style;
|
|
33
|
-
const runtimeClass = runtimeInfo.class;
|
|
34
|
-
const dataConfig = runtimeInfo.dataConfig;
|
|
35
|
-
const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
|
|
36
|
-
const chartOption = runtimeInfo.chartOption;
|
|
37
|
-
const configureProps = props.configure.props ? props.configure.props : {};
|
|
38
|
-
const customTheme = getCustomTheme(configureProps.customTheme);
|
|
39
|
-
initChartOption(props.configure, chartOption);
|
|
40
|
-
console.log("chartOption", chartOption);
|
|
41
|
-
onMounted(() => {
|
|
42
|
-
const resultData = getChartDatasFromPage(props.pageContext, props.configure);
|
|
43
|
-
if (resultData) {
|
|
44
|
-
updateChartDatas(resultData);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
let hisGroupValue = headerInfo.groupValue;
|
|
48
|
-
watch(headerInfo, () => {
|
|
49
|
-
if (hisGroupValue == headerInfo.groupValue) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
hisGroupValue = headerInfo.groupValue;
|
|
53
|
-
if (dataConfig) {
|
|
54
|
-
dataConfig.services[0].groupValue = headerInfo.groupValue;
|
|
55
|
-
}
|
|
56
|
-
refresh();
|
|
57
|
-
});
|
|
58
|
-
function refresh() {
|
|
59
|
-
if (!dataConfig) {
|
|
60
|
-
console.log("无数据源配置,不需要查询!");
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
|
|
64
|
-
}
|
|
65
|
-
const monitorFields = headerInfo.monitorFields;
|
|
66
|
-
monitorFieldChange(props.pageContext, monitorFields, refresh);
|
|
67
|
-
function updateChartDatas(resultData) {
|
|
68
|
-
if (!resultData) {
|
|
69
|
-
resultData = [];
|
|
70
|
-
}
|
|
71
|
-
resultData = resultData.length > 0 ? resultData[0] : {};
|
|
72
|
-
if (!resultData) {
|
|
73
|
-
resultData = {};
|
|
74
|
-
}
|
|
75
|
-
if (resultData.hasRender) {
|
|
76
|
-
resultData.hasRender = true;
|
|
77
|
-
console.log("重复更新!", resultData);
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
resultData.hasRender = true;
|
|
81
|
-
updateChartOption(props.pageContext, props.configure, chartOption, resultData);
|
|
82
|
-
console.log("chartOption", chartOption);
|
|
83
|
-
}
|
|
84
|
-
function exportChart() {
|
|
85
|
-
exportCommonChart(chartRef.value);
|
|
86
|
-
}
|
|
87
|
-
__expose({
|
|
88
|
-
updateChartDatas,
|
|
89
|
-
exportChart
|
|
90
|
-
});
|
|
91
|
-
return (_ctx, _cache) => {
|
|
92
|
-
return openBlock(), createElementBlock("div", {
|
|
93
|
-
style: normalizeStyle(unref(runtimeStyle)),
|
|
94
|
-
class: normalizeClass([unref(runtimeClass), "amb-widget-chart"]),
|
|
95
|
-
ref_key: "thisRef",
|
|
96
|
-
ref: thisRef
|
|
97
|
-
}, [
|
|
98
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
99
|
-
ref_key: "headerRef",
|
|
100
|
-
ref: headerRef,
|
|
101
|
-
headerInfo: unref(headerInfo)
|
|
102
|
-
}, null, 8, ["headerInfo"]), [
|
|
103
|
-
[vShow, unref(headerInfo).showHeader]
|
|
104
|
-
]),
|
|
105
|
-
createVNode(unref(VChart), {
|
|
106
|
-
ref_key: "chartRef",
|
|
107
|
-
ref: chartRef,
|
|
108
|
-
theme: unref(customTheme),
|
|
109
|
-
option: unref(chartOption),
|
|
110
|
-
autoresize: ""
|
|
111
|
-
}, null, 8, ["theme", "option"])
|
|
112
|
-
], 6);
|
|
113
|
-
};
|
|
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 h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { updateChartOption as C } from "../../../../utils/charts/chart-radar-util.js";
|
|
5
|
+
import v from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as R } from "echarts/core";
|
|
7
|
+
import { CanvasRenderer as y } from "echarts/renderers";
|
|
8
|
+
import { RadarChart as V } from "echarts/charts";
|
|
9
|
+
import { GridComponent as _, TitleComponent as j, TooltipComponent as I, ToolboxComponent as k, LegendComponent as w } from "echarts/components";
|
|
10
|
+
import H from "vue-echarts";
|
|
11
|
+
const b = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: b2 }) {
|
|
12
|
+
R([y, V, _, j, I, k, w]);
|
|
13
|
+
const z = e2, D = r(null), F = r(null), O = r(null), P = z.configure.runtime ? z.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, A = P.headerInfo ? P.headerInfo : {}, B = P.chartOption, E = z.configure.props ? z.configure.props : {}, G = m(E.customTheme);
|
|
14
|
+
h(z.configure, B), t(() => {
|
|
15
|
+
const e3 = g(z.pageContext, z.configure);
|
|
16
|
+
e3 && M(e3);
|
|
17
|
+
});
|
|
18
|
+
let J = A.groupValue;
|
|
19
|
+
function K() {
|
|
20
|
+
q && d(z.pageContext, [q], A.drillParams);
|
|
114
21
|
}
|
|
115
|
-
|
|
22
|
+
o(A, () => {
|
|
23
|
+
J != A.groupValue && (J = A.groupValue, q && (q.services[0].groupValue = A.groupValue), K());
|
|
24
|
+
});
|
|
25
|
+
const L = A.monitorFields;
|
|
26
|
+
function M(e3) {
|
|
27
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(z.pageContext, z.configure, B, e3));
|
|
28
|
+
}
|
|
29
|
+
return x(z.pageContext, L, K), b2({ updateChartDatas: M, exportChart: function() {
|
|
30
|
+
return l(F.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: s(i(S)), class: u([i(T), "amb-widget-chart"]), ref_key: "thisRef", ref: D }, [p(c(v, { ref_key: "headerRef", ref: O, headerInfo: i(A), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(A).showHeader || e3.pageContext.showHomepageSearch]]), c(i(H), { ref_key: "chartRef", ref: F, theme: i(G), option: i(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
|
+
} });
|
|
116
33
|
export {
|
|
117
|
-
|
|
34
|
+
b as default
|
|
118
35
|
};
|
|
@@ -1,119 +1,35 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, watch, openBlock,
|
|
2
|
-
import { getCustomTheme, initChartOption, exportCommonChart } from "../../../../utils/charts/chart-util.js";
|
|
3
|
-
import { getChartDatasFromPage, updateChartDatasources, monitorFieldChange } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { updateChartOption } from "../../../../utils/charts/chart-scatter-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { use } from "echarts/core";
|
|
7
|
-
import { CanvasRenderer } from "echarts/renderers";
|
|
8
|
-
import { ScatterChart } from "echarts/charts";
|
|
9
|
-
import { GridComponent, LegendComponent, TitleComponent, TooltipComponent, ToolboxComponent, DataZoomComponent } from "echarts/components";
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
props: {
|
|
14
|
-
|
|
15
|
-
configure
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
GridComponent,
|
|
22
|
-
LegendComponent,
|
|
23
|
-
TitleComponent,
|
|
24
|
-
TooltipComponent,
|
|
25
|
-
ToolboxComponent,
|
|
26
|
-
DataZoomComponent
|
|
27
|
-
]);
|
|
28
|
-
const props = __props;
|
|
29
|
-
const thisRef = ref(null);
|
|
30
|
-
const chartRef = ref(null);
|
|
31
|
-
const headerRef = ref(null);
|
|
32
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
33
|
-
const runtimeStyle = runtimeInfo.style;
|
|
34
|
-
const runtimeClass = runtimeInfo.class;
|
|
35
|
-
const dataConfig = runtimeInfo.dataConfig;
|
|
36
|
-
const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
|
|
37
|
-
const chartOption = runtimeInfo.chartOption;
|
|
38
|
-
const configureProps = props.configure.props ? props.configure.props : {};
|
|
39
|
-
const customTheme = getCustomTheme(configureProps.customTheme);
|
|
40
|
-
initChartOption(props.configure, chartOption);
|
|
41
|
-
console.log("chartOption", chartOption);
|
|
42
|
-
onMounted(() => {
|
|
43
|
-
const resultData = getChartDatasFromPage(props.pageContext, props.configure);
|
|
44
|
-
if (resultData) {
|
|
45
|
-
updateChartDatas(resultData);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
let hisGroupValue = headerInfo.groupValue;
|
|
49
|
-
watch(headerInfo, () => {
|
|
50
|
-
if (hisGroupValue == headerInfo.groupValue) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
hisGroupValue = headerInfo.groupValue;
|
|
54
|
-
if (dataConfig) {
|
|
55
|
-
dataConfig.services[0].groupValue = headerInfo.groupValue;
|
|
56
|
-
}
|
|
57
|
-
refresh();
|
|
58
|
-
});
|
|
59
|
-
function refresh() {
|
|
60
|
-
if (!dataConfig) {
|
|
61
|
-
console.log("无数据源配置,不需要查询!");
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
|
|
65
|
-
}
|
|
66
|
-
const monitorFields = headerInfo.monitorFields;
|
|
67
|
-
monitorFieldChange(props.pageContext, monitorFields, refresh);
|
|
68
|
-
function updateChartDatas(resultData) {
|
|
69
|
-
if (!resultData) {
|
|
70
|
-
resultData = [];
|
|
71
|
-
}
|
|
72
|
-
resultData = resultData.length > 0 ? resultData[0] : {};
|
|
73
|
-
if (!resultData) {
|
|
74
|
-
resultData = {};
|
|
75
|
-
}
|
|
76
|
-
if (resultData.hasRender) {
|
|
77
|
-
resultData.hasRender = true;
|
|
78
|
-
console.log("重复更新!", resultData);
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
resultData.hasRender = true;
|
|
82
|
-
updateChartOption(props.pageContext, props.configure, chartOption, resultData);
|
|
83
|
-
console.log("chartOption scatter", chartOption);
|
|
84
|
-
}
|
|
85
|
-
function exportChart() {
|
|
86
|
-
exportCommonChart(chartRef.value);
|
|
87
|
-
}
|
|
88
|
-
__expose({
|
|
89
|
-
updateChartDatas,
|
|
90
|
-
exportChart
|
|
91
|
-
});
|
|
92
|
-
return (_ctx, _cache) => {
|
|
93
|
-
return openBlock(), createElementBlock("div", {
|
|
94
|
-
style: normalizeStyle(unref(runtimeStyle)),
|
|
95
|
-
class: normalizeClass([unref(runtimeClass), "amb-widget-chart"]),
|
|
96
|
-
ref_key: "thisRef",
|
|
97
|
-
ref: thisRef
|
|
98
|
-
}, [
|
|
99
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
100
|
-
ref_key: "headerRef",
|
|
101
|
-
ref: headerRef,
|
|
102
|
-
headerInfo: unref(headerInfo)
|
|
103
|
-
}, null, 8, ["headerInfo"]), [
|
|
104
|
-
[vShow, unref(headerInfo).showHeader]
|
|
105
|
-
]),
|
|
106
|
-
createVNode(unref(VChart), {
|
|
107
|
-
ref_key: "chartRef",
|
|
108
|
-
ref: chartRef,
|
|
109
|
-
theme: unref(customTheme),
|
|
110
|
-
option: unref(chartOption),
|
|
111
|
-
autoresize: ""
|
|
112
|
-
}, null, 8, ["theme", "option"])
|
|
113
|
-
], 6);
|
|
114
|
-
};
|
|
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 c, createVNode as p, vShow as f } from "vue";
|
|
2
|
+
import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { updateChartOption as C } from "../../../../utils/charts/chart-scatter-util.js";
|
|
5
|
+
import v from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as R } from "echarts/core";
|
|
7
|
+
import { CanvasRenderer as y } from "echarts/renderers";
|
|
8
|
+
import { ScatterChart as V } from "echarts/charts";
|
|
9
|
+
import { GridComponent as _, LegendComponent as j, TitleComponent as I, TooltipComponent as k, ToolboxComponent as w, DataZoomComponent as H } from "echarts/components";
|
|
10
|
+
import b from "vue-echarts";
|
|
11
|
+
const z = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
|
|
12
|
+
R([y, V, _, j, I, k, w, H]);
|
|
13
|
+
const D = e2, F = r(null), O = r(null), P = r(null), S = D.configure.runtime ? D.configure.runtime : {}, T = S.style, q = S.class, A = S.dataConfig, B = S.headerInfo ? S.headerInfo : {}, E = S.chartOption, G = D.configure.props ? D.configure.props : {}, J = m(G.customTheme);
|
|
14
|
+
h(D.configure, E), t(() => {
|
|
15
|
+
const e3 = g(D.pageContext, D.configure);
|
|
16
|
+
e3 && N(e3);
|
|
17
|
+
});
|
|
18
|
+
let K = B.groupValue;
|
|
19
|
+
function L() {
|
|
20
|
+
A && d(D.pageContext, [A], B.drillParams);
|
|
115
21
|
}
|
|
116
|
-
|
|
22
|
+
o(B, () => {
|
|
23
|
+
K != B.groupValue && (K = B.groupValue, A && (A.services[0].groupValue = B.groupValue), L());
|
|
24
|
+
});
|
|
25
|
+
const M = B.monitorFields;
|
|
26
|
+
function N(e3) {
|
|
27
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(D.pageContext, D.configure, E, e3));
|
|
28
|
+
}
|
|
29
|
+
return x(D.pageContext, M, L), z2({ updateChartDatas: N, exportChart: function() {
|
|
30
|
+
return l(O.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: s(i(T)), class: u([i(q), "amb-widget-chart"]), ref_key: "thisRef", ref: F }, [c(p(v, { ref_key: "headerRef", ref: P, headerInfo: i(B), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(B).showHeader || e3.pageContext.showHomepageSearch]]), p(i(b), { ref_key: "chartRef", ref: O, theme: i(J), option: i(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
|
+
} });
|
|
117
33
|
export {
|
|
118
|
-
|
|
34
|
+
z as default
|
|
119
35
|
};
|
|
@@ -36,7 +36,7 @@ export declare function replacePlaceholders(template: string, data: {
|
|
|
36
36
|
export declare function getHeaderCellStyleUtil(data: any, runtimeStyle: any, props: any): any;
|
|
37
37
|
export declare function getRowStyleUtil(data: any, groupSummaryDataRowIndex: number[], props: any): any;
|
|
38
38
|
export declare function getCellStyleUtil(data: any, cellStyles: any, props: any): {};
|
|
39
|
-
export declare function rowDataToColumn(data: any, configure: Component): any;
|
|
39
|
+
export declare function rowDataToColumn(data: any, configure: Component, sourceTableColumnsConfig: any): any;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @param data 数据
|
|
@@ -75,5 +75,38 @@ export declare function getIndexColumn(): {
|
|
|
75
75
|
tittleClass: string;
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
|
+
export declare function getNewColumnConfig(prop: string, name: string, displayOrder: number, dataType: string): {
|
|
79
|
+
uuid: number;
|
|
80
|
+
name: string;
|
|
81
|
+
props: {
|
|
82
|
+
base: {
|
|
83
|
+
prop: string;
|
|
84
|
+
name: string;
|
|
85
|
+
displayOrder: number;
|
|
86
|
+
sortable: boolean;
|
|
87
|
+
headerAlign: string;
|
|
88
|
+
align: string;
|
|
89
|
+
fixed: boolean;
|
|
90
|
+
visible: boolean;
|
|
91
|
+
dataType: string;
|
|
92
|
+
};
|
|
93
|
+
format: {};
|
|
94
|
+
size: {
|
|
95
|
+
pc: {};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
style: {};
|
|
99
|
+
componentIndex: number;
|
|
100
|
+
runtime: {
|
|
101
|
+
common: {
|
|
102
|
+
class: string;
|
|
103
|
+
style: {
|
|
104
|
+
pc_style: {};
|
|
105
|
+
pc_class: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
78
110
|
export declare function computeFormula(itemConfs: any, datas: any, entity: any): void;
|
|
111
|
+
export declare function formatColContent(row: any, format: any, column: any, pageContext: any, configure: any): any;
|
|
79
112
|
export {};
|