super-page-runtime 2.0.10 → 3.0.2
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/AttributeMap.js +4 -0
- package/dist/es/_virtual/Delta.js +4 -0
- package/dist/es/_virtual/Op.js +4 -0
- package/dist/es/_virtual/OpIterator.js +4 -0
- package/dist/es/_virtual/__vite-browser-external.js +4 -0
- package/dist/es/_virtual/_commonjsHelpers.js +8 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/es/_virtual/dayjs.min.js +4 -0
- package/dist/es/_virtual/index.js +4 -0
- package/dist/es/_virtual/index2.js +4 -0
- package/dist/es/_virtual/index3.js +4 -0
- package/dist/es/components/runtime/index.d.ts +3 -3
- package/dist/es/components/runtime/utils/api/api-util.js +3 -3
- package/dist/es/components/runtime/utils/charts/chart-util.js +1 -14
- package/dist/es/components/runtime/utils/common-util.d.ts +0 -5
- package/dist/es/components/runtime/utils/common-util.js +2 -15
- package/dist/es/components/runtime/utils/eventBus.js +1 -1
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +7 -6
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -4
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +0 -19
- package/dist/es/components/runtime/utils/page-helper-util.js +3 -122
- package/dist/es/components/runtime/utils/page-init-util.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +25 -392
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -12
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +17 -13
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -13
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +19 -14
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
- 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 +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -4
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -5
- package/dist/es/components/runtime/views/super-page.vue.js +7 -20
- package/dist/es/index.d.ts +2 -7
- package/dist/es/index.js +2 -11
- package/dist/lib/components/runtime/index.d.ts +3 -3
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -13
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -5
- package/dist/lib/components/runtime/utils/common-util.js +0 -13
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -19
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -119
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +3 -376
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +4 -4
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -14
- package/dist/lib/index.d.ts +2 -7
- package/dist/lib/index.js +2 -11
- package/package.json +69 -70
- package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/es/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -44
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -62
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -127
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -1,401 +1,43 @@
|
|
|
1
|
-
import { defineComponent, ref,
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createVNode } from "vue";
|
|
2
2
|
import { getCustomTheme } from "../../../../utils/charts/chart-util.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
3
|
+
import B from "../../../../../../node_modules/.pnpm/vue-echarts@6.6.9_echarts@5.5.0_vue@3.4.21/node_modules/vue-echarts/dist/index.esm.min.js";
|
|
4
|
+
import { use } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/extension.js";
|
|
5
|
+
import { install } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/renderer/installCanvasRenderer.js";
|
|
6
|
+
import { install as install$1 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/chart/line/install.js";
|
|
7
|
+
import { install as install$2 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/grid/install.js";
|
|
8
|
+
import { install as install$3 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/legend/install.js";
|
|
9
|
+
import { install as install$4 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/title/install.js";
|
|
10
|
+
import { install as install$5 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/tooltip/install.js";
|
|
11
|
+
import { install as install$6 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/chart/bar/install.js";
|
|
12
|
+
import { install as install$7 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/toolbox/install.js";
|
|
13
|
+
import { install as install$8 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/dataZoom/install.js";
|
|
11
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
15
|
__name: "column-line-runtime",
|
|
13
16
|
props: {
|
|
14
17
|
pageContext: {},
|
|
15
18
|
configure: {}
|
|
16
19
|
},
|
|
17
|
-
setup(__props
|
|
20
|
+
setup(__props) {
|
|
18
21
|
use([
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
install,
|
|
23
|
+
install$1,
|
|
24
|
+
install$2,
|
|
25
|
+
install$3,
|
|
26
|
+
install$4,
|
|
27
|
+
install$5,
|
|
28
|
+
install$6,
|
|
29
|
+
install$7,
|
|
30
|
+
install$8
|
|
28
31
|
]);
|
|
29
32
|
const props = __props;
|
|
30
33
|
const thisRef = ref(null);
|
|
31
|
-
const chartRef = ref(null);
|
|
32
|
-
const headerRef = ref(null);
|
|
33
|
-
const enableDrill = props.configure.props ? props.configure.props.enableDrill : null;
|
|
34
34
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
35
35
|
const runtimeStyle = runtimeInfo.style;
|
|
36
36
|
const runtimeClass = runtimeInfo.class;
|
|
37
|
-
const dataConfig = runtimeInfo.dataConfig;
|
|
38
|
-
const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
|
|
39
|
-
let cacheDatas = null;
|
|
40
37
|
const chartOption = runtimeInfo.chartOption;
|
|
41
|
-
|
|
42
|
-
if (defaultSeries && defaultSeries.length > 0) {
|
|
43
|
-
for (let s of defaultSeries) {
|
|
44
|
-
s.data = [];
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const defaultXaxis = chartOption.xAxis;
|
|
48
|
-
if (defaultXaxis && defaultXaxis.length > 0 && defaultXaxis[0].data) {
|
|
49
|
-
defaultXaxis[0].data = [];
|
|
50
|
-
}
|
|
51
|
-
const defaultYaxis = chartOption.yAxis;
|
|
52
|
-
if (defaultYaxis) {
|
|
53
|
-
for (let yAxis of defaultYaxis) {
|
|
54
|
-
if (yAxis.data) {
|
|
55
|
-
yAxis.data = [];
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
console.log("chartOption", chartOption);
|
|
38
|
+
console.log("chartOption-runtime", chartOption);
|
|
60
39
|
const configureProps = props.configure.props ? props.configure.props : {};
|
|
61
40
|
const customTheme = getCustomTheme(configureProps.customTheme);
|
|
62
|
-
function updateChartDatas(resultData) {
|
|
63
|
-
if (!resultData) {
|
|
64
|
-
resultData = [];
|
|
65
|
-
}
|
|
66
|
-
resultData = resultData.length > 0 ? resultData[0] : {};
|
|
67
|
-
if (!resultData) {
|
|
68
|
-
resultData = {};
|
|
69
|
-
}
|
|
70
|
-
if (resultData.hasRender) {
|
|
71
|
-
resultData.hasRender = true;
|
|
72
|
-
console.log("重复更新!", resultData);
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
resultData.hasRender = true;
|
|
76
|
-
updateChartOption(resultData);
|
|
77
|
-
}
|
|
78
|
-
onMounted(() => {
|
|
79
|
-
const resultData = getChartDatasFromPage(props.pageContext, props.configure);
|
|
80
|
-
if (resultData) {
|
|
81
|
-
updateChartDatas(resultData);
|
|
82
|
-
}
|
|
83
|
-
if (enableDrill && chartRef.value) {
|
|
84
|
-
chartRef.value.chart.on("click", function(params) {
|
|
85
|
-
if (headerRef.value && headerRef.value.drill) {
|
|
86
|
-
headerRef.value.drill(params, cacheDatas);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
function onDrillEnd(params) {
|
|
92
|
-
}
|
|
93
|
-
let hisGroupValue = headerInfo.groupValue;
|
|
94
|
-
watch(headerInfo, () => {
|
|
95
|
-
if (hisGroupValue == headerInfo.groupValue) {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
hisGroupValue = headerInfo.groupValue;
|
|
99
|
-
refresh();
|
|
100
|
-
});
|
|
101
|
-
function refresh() {
|
|
102
|
-
if (!dataConfig) {
|
|
103
|
-
console.log("无数据源配置,不需要查询!");
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
dataConfig.services[0].groupValue = headerInfo.groupValue;
|
|
107
|
-
updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
|
|
108
|
-
}
|
|
109
|
-
function updateChartOption(resultData) {
|
|
110
|
-
if (!resultData || !resultData.result) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
const result = resultData && resultData.result ? resultData.result : {};
|
|
114
|
-
const groupValue = resultData && resultData.groupValue ? resultData.groupValue : [];
|
|
115
|
-
const dataSetField = props.configure.serviceDataField;
|
|
116
|
-
let datas = null;
|
|
117
|
-
if (dataSetField) {
|
|
118
|
-
datas = result[dataSetField];
|
|
119
|
-
} else {
|
|
120
|
-
if (result) {
|
|
121
|
-
if (Array.isArray(result)) {
|
|
122
|
-
datas = result;
|
|
123
|
-
} else {
|
|
124
|
-
datas = [result];
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
if (!datas) {
|
|
129
|
-
datas = [];
|
|
130
|
-
}
|
|
131
|
-
let confGroups = props.configure.props ? props.configure.props.groups : null;
|
|
132
|
-
if (!confGroups) {
|
|
133
|
-
confGroups = [];
|
|
134
|
-
}
|
|
135
|
-
const groupMap = {};
|
|
136
|
-
const groupFields = [];
|
|
137
|
-
for (let g of confGroups) {
|
|
138
|
-
groupMap[g.group] = g.target;
|
|
139
|
-
if (g.target && !groupFields.includes(g.target)) {
|
|
140
|
-
groupFields.push(g.target);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
let mulGroupShow = props.configure.props ? props.configure.props.mulGroupShow : "";
|
|
144
|
-
mulGroupShow = mulGroupShow == "break" ? "<br/>" : " ";
|
|
145
|
-
const xFieldName = "__x";
|
|
146
|
-
for (let d of datas) {
|
|
147
|
-
if (!d) {
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
const xValues2 = [];
|
|
151
|
-
for (let g of groupValue) {
|
|
152
|
-
const fieldName = groupMap[g];
|
|
153
|
-
const value = getValueFromSource(d, fieldName, void 0);
|
|
154
|
-
if (value) {
|
|
155
|
-
xValues2.push(value);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
const xValue = xValues2.join(mulGroupShow);
|
|
159
|
-
d[xFieldName] = xValue;
|
|
160
|
-
}
|
|
161
|
-
const itemConfs = props.configure.items ? props.configure.items : [];
|
|
162
|
-
const serieValues = [];
|
|
163
|
-
const serieValueMap = {};
|
|
164
|
-
const dynamicFileds = [];
|
|
165
|
-
const dynamicValueField = {};
|
|
166
|
-
const allValueFields = [];
|
|
167
|
-
for (let item of itemConfs) {
|
|
168
|
-
const itemProps = item.props ? item.props : {};
|
|
169
|
-
const sourceType = itemProps.yaxisSource;
|
|
170
|
-
const yaxisField = itemProps.yaxisField;
|
|
171
|
-
let serieValue = null;
|
|
172
|
-
if (yaxisField && (!sourceType || sourceType == "variable")) {
|
|
173
|
-
serieValue = {
|
|
174
|
-
uuid: item.uuid,
|
|
175
|
-
type: "variable",
|
|
176
|
-
field: yaxisField,
|
|
177
|
-
data: [],
|
|
178
|
-
dynamicDatas: []
|
|
179
|
-
//动态系列数据
|
|
180
|
-
};
|
|
181
|
-
if (yaxisField && !allValueFields.includes(yaxisField)) {
|
|
182
|
-
allValueFields.push(yaxisField);
|
|
183
|
-
}
|
|
184
|
-
} else {
|
|
185
|
-
serieValue = {
|
|
186
|
-
uuid: item.uuid,
|
|
187
|
-
type: "fixed",
|
|
188
|
-
field: itemProps.yaxisFix,
|
|
189
|
-
data: [],
|
|
190
|
-
dynamicDatas: []
|
|
191
|
-
//动态系列数据
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
if (serieValue != null) {
|
|
195
|
-
serieValues.push(serieValue);
|
|
196
|
-
serieValueMap[item.uuid] = serieValue;
|
|
197
|
-
}
|
|
198
|
-
if (itemProps.dynamicSeriesField && // !groupFields.includes(itemProps.dynamicSeriesField) &&
|
|
199
|
-
!dynamicFileds.includes(itemProps.dynamicSeriesField) && serieValue && yaxisField) {
|
|
200
|
-
serieValue.dynamicField = itemProps.dynamicSeriesField;
|
|
201
|
-
serieValue.dynamicSeriesTitle = itemProps.dynamicSeriesTitle;
|
|
202
|
-
serieValue.dynamicShowStack = itemProps.dynamicShowStack;
|
|
203
|
-
dynamicFileds.push(itemProps.dynamicSeriesField);
|
|
204
|
-
dynamicValueField[itemProps.dynamicSeriesField] = yaxisField;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
const dynamicLabelMap = {};
|
|
208
|
-
if (dynamicFileds.length > 0) {
|
|
209
|
-
const newDatas = [];
|
|
210
|
-
const dataMap = {};
|
|
211
|
-
for (let d of datas) {
|
|
212
|
-
if (!d) {
|
|
213
|
-
continue;
|
|
214
|
-
}
|
|
215
|
-
for (let valueField of allValueFields) {
|
|
216
|
-
const groupValue2 = d[xFieldName];
|
|
217
|
-
let newData = dataMap[groupValue2];
|
|
218
|
-
if (!newData) {
|
|
219
|
-
newData = {};
|
|
220
|
-
for (let gField of groupFields) {
|
|
221
|
-
newData[gField] = d[gField];
|
|
222
|
-
}
|
|
223
|
-
newData[xFieldName] = d[xFieldName];
|
|
224
|
-
dataMap[groupValue2] = newData;
|
|
225
|
-
newDatas.push(newData);
|
|
226
|
-
}
|
|
227
|
-
let newValue = getValueFromSource(d, valueField, void 0);
|
|
228
|
-
if (!isNaN(newValue)) {
|
|
229
|
-
const hisValue = newData[valueField];
|
|
230
|
-
if (!isNaN) {
|
|
231
|
-
newValue += hisValue;
|
|
232
|
-
}
|
|
233
|
-
newData[valueField] = newValue;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
for (let dynamicField of dynamicFileds) {
|
|
238
|
-
const dynamicLabels = [];
|
|
239
|
-
for (let d of datas) {
|
|
240
|
-
if (!d) {
|
|
241
|
-
continue;
|
|
242
|
-
}
|
|
243
|
-
const groupValue2 = d[xFieldName];
|
|
244
|
-
let newData = dataMap[groupValue2];
|
|
245
|
-
if (!newData) {
|
|
246
|
-
continue;
|
|
247
|
-
}
|
|
248
|
-
let dynamicLabel = getValueFromSource(d, dynamicField, void 0);
|
|
249
|
-
dynamicLabel = dynamicLabel == null || dynamicLabel == void 0 ? "" : dynamicLabel;
|
|
250
|
-
if (!dynamicLabels.includes(dynamicLabel)) {
|
|
251
|
-
dynamicLabels.push(dynamicLabel);
|
|
252
|
-
}
|
|
253
|
-
const valueField = dynamicValueField[dynamicField];
|
|
254
|
-
let newValue = getValueFromSource(d, valueField, void 0);
|
|
255
|
-
if (!isNaN(newValue)) {
|
|
256
|
-
const hisValue = newData[dynamicLabel];
|
|
257
|
-
if (!isNaN) {
|
|
258
|
-
newValue += hisValue;
|
|
259
|
-
}
|
|
260
|
-
newData[dynamicLabel] = newValue;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
dynamicLabelMap[dynamicField] = dynamicLabels;
|
|
264
|
-
}
|
|
265
|
-
datas = newDatas;
|
|
266
|
-
}
|
|
267
|
-
sortDatas(datas);
|
|
268
|
-
const xValues = [];
|
|
269
|
-
for (let data of datas) {
|
|
270
|
-
if (!data) {
|
|
271
|
-
continue;
|
|
272
|
-
}
|
|
273
|
-
xValues.push(data[xFieldName]);
|
|
274
|
-
for (let item of serieValues) {
|
|
275
|
-
let serieData = item.data;
|
|
276
|
-
const dynamicDatas = item.dynamicDatas;
|
|
277
|
-
if (item.dynamicField) {
|
|
278
|
-
let dynamicLabels = dynamicLabelMap[item.dynamicField];
|
|
279
|
-
dynamicLabels = dynamicLabels ? dynamicLabels : [];
|
|
280
|
-
for (let i = 0; i < dynamicLabels.length; i++) {
|
|
281
|
-
if (i >= dynamicDatas.length) {
|
|
282
|
-
dynamicDatas.push([]);
|
|
283
|
-
}
|
|
284
|
-
serieData = dynamicDatas[i];
|
|
285
|
-
const fieldName = dynamicLabels[i];
|
|
286
|
-
const value = getValueFromSource(data, fieldName, void 0);
|
|
287
|
-
serieData.push(value);
|
|
288
|
-
}
|
|
289
|
-
} else if (item.type == "fixed") {
|
|
290
|
-
serieData.push(item.field);
|
|
291
|
-
} else if (item.type == "variable") {
|
|
292
|
-
const value = getValueFromSource(data, item.field, void 0);
|
|
293
|
-
serieData.push(value);
|
|
294
|
-
} else {
|
|
295
|
-
serieData.push(void 0);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
const tempSeries = deepCopy(defaultSeries == null ? [] : defaultSeries);
|
|
300
|
-
const newSeries = [];
|
|
301
|
-
for (let serie of tempSeries) {
|
|
302
|
-
const serieValue = serieValueMap[serie.uuid];
|
|
303
|
-
if (serieValue.dynamicField) {
|
|
304
|
-
let dynamicLabels = dynamicLabelMap[serieValue.dynamicField];
|
|
305
|
-
dynamicLabels = dynamicLabels ? dynamicLabels : [];
|
|
306
|
-
const dynamicDatas = serieValue.dynamicDatas ? serieValue.dynamicDatas : [];
|
|
307
|
-
for (let i = 0; i < dynamicLabels.length; i++) {
|
|
308
|
-
let label = dynamicLabels[i];
|
|
309
|
-
const newSerie = deepCopy(serie);
|
|
310
|
-
if (serieValue.dynamicSeriesTitle) {
|
|
311
|
-
const dynamicSeriesTitle = serieValue.dynamicSeriesTitle.replace("${name}", label);
|
|
312
|
-
newSerie.name = formatVariableValue(props.pageContext, dynamicSeriesTitle);
|
|
313
|
-
} else {
|
|
314
|
-
newSerie.name = label;
|
|
315
|
-
}
|
|
316
|
-
newSerie.data = i < dynamicDatas.length ? dynamicDatas[i] : [];
|
|
317
|
-
if (serie.type == "bar" && serieValue.dynamicShowStack) {
|
|
318
|
-
newSerie.stack = serie.uuid;
|
|
319
|
-
}
|
|
320
|
-
newSeries.push(newSerie);
|
|
321
|
-
}
|
|
322
|
-
} else {
|
|
323
|
-
serie.data = serieValue ? serieValue.data : [];
|
|
324
|
-
newSeries.push(serie);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
chartOption.series = newSeries;
|
|
328
|
-
if (chartOption.isBar) {
|
|
329
|
-
if (defaultYaxis) {
|
|
330
|
-
for (let tempYaxis of defaultYaxis) {
|
|
331
|
-
tempYaxis.data = xValues;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
chartOption.xAxis = defaultXaxis;
|
|
335
|
-
chartOption.yAxis = defaultYaxis;
|
|
336
|
-
} else {
|
|
337
|
-
if (defaultXaxis && defaultXaxis.length > 0) {
|
|
338
|
-
defaultXaxis[0].data = xValues;
|
|
339
|
-
}
|
|
340
|
-
chartOption.xAxis = defaultXaxis;
|
|
341
|
-
chartOption.yAxis = defaultYaxis;
|
|
342
|
-
}
|
|
343
|
-
cacheDatas = datas;
|
|
344
|
-
console.log("chartOption", chartOption);
|
|
345
|
-
}
|
|
346
|
-
function sortDatas(datas) {
|
|
347
|
-
const itemConfs = props.configure.items ? props.configure.items : [];
|
|
348
|
-
let orderByTarget = props.configure.props ? props.configure.props.orderByTarget : "";
|
|
349
|
-
let orderField = null;
|
|
350
|
-
if (orderByTarget == "x" || orderByTarget == "X") {
|
|
351
|
-
orderField = "__x";
|
|
352
|
-
} else if (orderByTarget) {
|
|
353
|
-
for (let item of itemConfs) {
|
|
354
|
-
if (item.uuid == orderByTarget) {
|
|
355
|
-
const itemProps = item.props ? item.props : {};
|
|
356
|
-
const sourceType = itemProps.yaxisSource;
|
|
357
|
-
const yaxisField = itemProps.yaxisField;
|
|
358
|
-
if (yaxisField && (!sourceType || sourceType == "variable")) {
|
|
359
|
-
orderField = yaxisField;
|
|
360
|
-
break;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
if (!orderField) {
|
|
366
|
-
return;
|
|
367
|
-
}
|
|
368
|
-
let orderSource = props.configure.props ? props.configure.props.orderSource : "";
|
|
369
|
-
let orderValue = props.configure.props ? props.configure.props.orderFix : "";
|
|
370
|
-
if (orderSource == "variable") {
|
|
371
|
-
let orderVariable = props.configure.props ? props.configure.props.orderVariable : "";
|
|
372
|
-
orderValue = formatVariableValue(props.pageContext, orderVariable);
|
|
373
|
-
}
|
|
374
|
-
orderValue = orderValue == "desc" || orderValue == "DESC" ? "desc" : "asc";
|
|
375
|
-
let maxLen = datas.length;
|
|
376
|
-
for (let i = 0; i < maxLen - 1; i++) {
|
|
377
|
-
let vali = getValueFromSource(datas[i], orderField, void 0);
|
|
378
|
-
for (let j = i + 1; j < maxLen; j++) {
|
|
379
|
-
let valj = getValueFromSource(datas[j], orderField, void 0);
|
|
380
|
-
let isSwap = false;
|
|
381
|
-
if ("desc" == orderValue) {
|
|
382
|
-
if (vali < valj) {
|
|
383
|
-
isSwap = true;
|
|
384
|
-
}
|
|
385
|
-
} else {
|
|
386
|
-
if (vali > valj) {
|
|
387
|
-
isSwap = true;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
if (isSwap) {
|
|
391
|
-
[datas[i], datas[j]] = [datas[j], datas[i]];
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
__expose({
|
|
397
|
-
updateChartDatas
|
|
398
|
-
});
|
|
399
41
|
return (_ctx, _cache) => {
|
|
400
42
|
return openBlock(), createElementBlock("div", {
|
|
401
43
|
style: normalizeStyle(unref(runtimeStyle)),
|
|
@@ -403,17 +45,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
403
45
|
ref_key: "thisRef",
|
|
404
46
|
ref: thisRef
|
|
405
47
|
}, [
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
ref: headerRef,
|
|
409
|
-
headerInfo: unref(headerInfo),
|
|
410
|
-
onDrillEnd
|
|
411
|
-
}, null, 8, ["headerInfo"]), [
|
|
412
|
-
[vShow, unref(headerInfo).showHeader]
|
|
413
|
-
]),
|
|
414
|
-
createVNode(unref(VChart), {
|
|
415
|
-
ref_key: "chartRef",
|
|
416
|
-
ref: chartRef,
|
|
48
|
+
createVNode(unref(B), {
|
|
49
|
+
ref: "chartRef",
|
|
417
50
|
theme: unref(customTheme),
|
|
418
51
|
option: unref(chartOption),
|
|
419
52
|
autoresize: ""
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createVNode } from "vue";
|
|
2
2
|
import { getCustomTheme } from "../../../../utils/charts/chart-util.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
3
|
+
import B from "../../../../../../node_modules/.pnpm/vue-echarts@6.6.9_echarts@5.5.0_vue@3.4.21/node_modules/vue-echarts/dist/index.esm.min.js";
|
|
4
|
+
import { install as install$1 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/chart/gauge/install.js";
|
|
5
|
+
import { use } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/extension.js";
|
|
6
|
+
import { install } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/renderer/installCanvasRenderer.js";
|
|
7
|
+
import { install as install$2 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/grid/install.js";
|
|
8
|
+
import { install as install$3 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/title/install.js";
|
|
9
|
+
import { install as install$4 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/tooltip/install.js";
|
|
10
|
+
import { install as install$5 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/toolbox/install.js";
|
|
8
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
12
|
__name: "gauge-runtime",
|
|
10
13
|
props: {
|
|
@@ -13,12 +16,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
16
|
},
|
|
14
17
|
setup(__props) {
|
|
15
18
|
use([
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
install,
|
|
20
|
+
install$1,
|
|
21
|
+
install$2,
|
|
22
|
+
install$3,
|
|
23
|
+
install$4,
|
|
24
|
+
install$5
|
|
22
25
|
]);
|
|
23
26
|
const props = __props;
|
|
24
27
|
const thisRef = ref(null);
|
|
@@ -35,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
38
|
ref_key: "thisRef",
|
|
36
39
|
ref: thisRef
|
|
37
40
|
}, [
|
|
38
|
-
createVNode(unref(
|
|
41
|
+
createVNode(unref(B), {
|
|
39
42
|
ref: "chartRef",
|
|
40
43
|
theme: unref(customTheme),
|
|
41
44
|
option: unref(chartOption),
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createVNode } from "vue";
|
|
2
2
|
import { getCustomTheme } from "../../../../utils/charts/chart-util.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
3
|
+
import B from "../../../../../../node_modules/.pnpm/vue-echarts@6.6.9_echarts@5.5.0_vue@3.4.21/node_modules/vue-echarts/dist/index.esm.min.js";
|
|
4
|
+
import { install as install$1 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/chart/pie/install.js";
|
|
5
|
+
import { use } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/extension.js";
|
|
6
|
+
import { install } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/renderer/installCanvasRenderer.js";
|
|
7
|
+
import { install as install$2 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/grid/install.js";
|
|
8
|
+
import { install as install$3 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/legend/install.js";
|
|
9
|
+
import { install as install$4 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/title/install.js";
|
|
10
|
+
import { install as install$5 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/tooltip/install.js";
|
|
11
|
+
import { install as install$6 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/toolbox/install.js";
|
|
8
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
13
|
__name: "pie-runtime",
|
|
10
14
|
props: {
|
|
@@ -13,13 +17,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
17
|
},
|
|
14
18
|
setup(__props) {
|
|
15
19
|
use([
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
install,
|
|
21
|
+
install$1,
|
|
22
|
+
install$2,
|
|
23
|
+
install$3,
|
|
24
|
+
install$4,
|
|
25
|
+
install$5,
|
|
26
|
+
install$6
|
|
23
27
|
]);
|
|
24
28
|
const props = __props;
|
|
25
29
|
const thisRef = ref(null);
|
|
@@ -36,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
40
|
ref_key: "thisRef",
|
|
37
41
|
ref: thisRef
|
|
38
42
|
}, [
|
|
39
|
-
createVNode(unref(
|
|
43
|
+
createVNode(unref(B), {
|
|
40
44
|
ref: "chartRef",
|
|
41
45
|
theme: unref(customTheme),
|
|
42
46
|
option: unref(chartOption),
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createVNode } from "vue";
|
|
2
2
|
import { getCustomTheme } from "../../../../utils/charts/chart-util.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
3
|
+
import B from "../../../../../../node_modules/.pnpm/vue-echarts@6.6.9_echarts@5.5.0_vue@3.4.21/node_modules/vue-echarts/dist/index.esm.min.js";
|
|
4
|
+
import { install as install$1 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/chart/radar/install.js";
|
|
5
|
+
import { use } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/extension.js";
|
|
6
|
+
import { install } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/renderer/installCanvasRenderer.js";
|
|
7
|
+
import { install as install$2 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/grid/install.js";
|
|
8
|
+
import { install as install$3 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/title/install.js";
|
|
9
|
+
import { install as install$4 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/tooltip/install.js";
|
|
10
|
+
import { install as install$5 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/toolbox/install.js";
|
|
11
|
+
import { install as install$6 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/legend/install.js";
|
|
8
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
13
|
__name: "radar-runtime",
|
|
10
14
|
props: {
|
|
@@ -13,13 +17,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
17
|
},
|
|
14
18
|
setup(__props) {
|
|
15
19
|
use([
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
install,
|
|
21
|
+
install$1,
|
|
22
|
+
install$2,
|
|
23
|
+
install$3,
|
|
24
|
+
install$4,
|
|
25
|
+
install$5,
|
|
26
|
+
install$6
|
|
23
27
|
]);
|
|
24
28
|
const props = __props;
|
|
25
29
|
const thisRef = ref(null);
|
|
@@ -36,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
40
|
ref_key: "thisRef",
|
|
37
41
|
ref: thisRef
|
|
38
42
|
}, [
|
|
39
|
-
createVNode(unref(
|
|
43
|
+
createVNode(unref(B), {
|
|
40
44
|
ref: "chartRef",
|
|
41
45
|
theme: unref(customTheme),
|
|
42
46
|
option: unref(chartOption),
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createVNode } from "vue";
|
|
2
2
|
import { getCustomTheme } from "../../../../utils/charts/chart-util.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
3
|
+
import B from "../../../../../../node_modules/.pnpm/vue-echarts@6.6.9_echarts@5.5.0_vue@3.4.21/node_modules/vue-echarts/dist/index.esm.min.js";
|
|
4
|
+
import { install as install$1 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/chart/scatter/install.js";
|
|
5
|
+
import { use } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/extension.js";
|
|
6
|
+
import { install } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/renderer/installCanvasRenderer.js";
|
|
7
|
+
import { install as install$2 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/grid/install.js";
|
|
8
|
+
import { install as install$3 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/legend/install.js";
|
|
9
|
+
import { install as install$4 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/title/install.js";
|
|
10
|
+
import { install as install$5 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/tooltip/install.js";
|
|
11
|
+
import { install as install$6 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/toolbox/install.js";
|
|
12
|
+
import { install as install$7 } from "../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/dataZoom/install.js";
|
|
8
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
14
|
__name: "scatter-runtime",
|
|
10
15
|
props: {
|
|
@@ -13,14 +18,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
18
|
},
|
|
14
19
|
setup(__props) {
|
|
15
20
|
use([
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
install,
|
|
22
|
+
install$1,
|
|
23
|
+
install$2,
|
|
24
|
+
install$3,
|
|
25
|
+
install$4,
|
|
26
|
+
install$5,
|
|
27
|
+
install$6,
|
|
28
|
+
install$7
|
|
24
29
|
]);
|
|
25
30
|
const props = __props;
|
|
26
31
|
const thisRef = ref(null);
|
|
@@ -37,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
42
|
ref_key: "thisRef",
|
|
38
43
|
ref: thisRef
|
|
39
44
|
}, [
|
|
40
|
-
createVNode(unref(
|
|
45
|
+
createVNode(unref(B), {
|
|
41
46
|
ref: "chartRef",
|
|
42
47
|
theme: unref(customTheme),
|
|
43
48
|
option: unref(chartOption),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useI18n } from "../../../../../node_modules/.pnpm/vue-i18n@9.10.2_vue@3.4.21/node_modules/vue-i18n/dist/vue-i18n.js";
|
|
3
|
+
import { ElMessage } from "../../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/message/index.js";
|
|
4
4
|
const _hoisted_1 = { class: "dialog-footer" };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "remove-signer-dialog",
|