@ecan-bi/indicator-library 1.1.32 → 1.1.33
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/AntdIcon-7ebd41b4.mjs +1 -1
- package/dist/DrillModal-3f5a0070-e4053b53.mjs +1 -1
- package/dist/assets/editor.worker-02df2e61.js +1 -1
- package/dist/assets/json.worker-867823a6.js +1 -1
- package/dist/assets/ts.worker-7254b425.js +1 -1
- package/dist/{index-980c7b5b.mjs → index-0c539231.mjs} +3 -3
- package/dist/{index-980c7b5b.mjs.map → index-0c539231.mjs.map} +1 -1
- package/dist/{index-05616d18.mjs → index-7adb97fb.mjs} +12004 -11829
- package/dist/index-7adb97fb.mjs.map +1 -0
- package/dist/index-7df05e51.mjs +3762 -0
- package/dist/index-7df05e51.mjs.map +1 -0
- package/dist/index.es-7e69466e.mjs +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +66 -65
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +2 -2
- package/types/indicator/indicator-library/data-config/data-config-group/data-config-card/DataConfigCard.vue.d.ts +8 -0
- package/types/indicator/indicator-library/data-config/variable-group/VariableGroup.vue.d.ts +32 -2
- package/types/indicator/indicator-library/data-config/variable-group/VariableItem.vue.d.ts +18 -2
- package/types/indicator/indicator-library/data-config/variable-group/VariableModal.vue.d.ts +26 -0
- package/types/indicator/indicator-library/data-config/variable-group/variable-utils.d.ts +22 -0
- package/dist/index-05616d18.mjs.map +0 -1
- package/dist/index-8d692872.mjs +0 -3146
- package/dist/index-8d692872.mjs.map +0 -1
package/dist/index-8d692872.mjs
DELETED
|
@@ -1,3146 +0,0 @@
|
|
|
1
|
-
/*! @ecan-bi/indicator-library@1.1.32 */
|
|
2
|
-
import { defineAsyncComponent as Ln, unref as P, defineComponent as Go, ref as le, computed as fe, provide as ne, nextTick as Nn, resolveComponent as kt, openBlock as Dt, createElementBlock as Et, createVNode as Ft, createCommentVNode as Xt, createElementVNode as Uo, normalizeClass as jn, inject as dt, watch as Jt, onMounted as In, onBeforeUnmount as kn, withCtx as Dn } from "vue";
|
|
3
|
-
import { cloneDeep as je } from "lodash-es";
|
|
4
|
-
import we from "dayjs";
|
|
5
|
-
import * as En from "echarts";
|
|
6
|
-
import { Spin as Fn } from "ant-design-vue";
|
|
7
|
-
const Bo = (e) => (e.install = (t) => {
|
|
8
|
-
t.component(e.name, e);
|
|
9
|
-
}, e), Wo = "$request";
|
|
10
|
-
var zo;
|
|
11
|
-
const Mn = ((zo = window == null ? void 0 : window.config) == null ? void 0 : zo.indicatorURL) || "", Ho = "INDICATOR_TOKEN", $n = "DATA_LIST", Vn = "SELECTED_COMPONENT", Yo = "GRAPHIC_CONFIG", Pn = "UPDATE_GRAPHIC_CONFIG", Rn = "SHOW_STYLE_CONFIG", Ra = "REFRESH_DATA", qo = "CHARTS_OPTIONS", zn = "TABLE_OPTIONS", Gn = 18, Un = "UPDATE_CHARTS_OPTIONS", Bn = "UPDATE_TABLE_OPTIONS", Wn = "SOURCE_TYPE", za = "CHANGE_CONDITION", Ga = "DATA_VIEW_COLUMNS", Hn = "RENDER_USED_COMPONENTS", Yn = "UPDATE_USED_COMPONENT", qn = "UPDATE_COMPONENTS_CONFIG", Kn = "MAP_ATTRIBUTE_PROPS", Qn = "PAGE_CONFIG", Zn = "IS_PIVOT_TABLE", Xn = "IS_IFRAME_MODE", Jn = {
|
|
12
|
-
name: "柱状图",
|
|
13
|
-
type: "bar",
|
|
14
|
-
width: "400px",
|
|
15
|
-
height: "400px",
|
|
16
|
-
xAxisLabelFormatter: "{value}",
|
|
17
|
-
yAxisLabelFormatter: "{value}",
|
|
18
|
-
yAxisLineAlwaysDisplay: !1,
|
|
19
|
-
titleText: "",
|
|
20
|
-
titleSubtext: "",
|
|
21
|
-
titleFontSize: "12px",
|
|
22
|
-
titleColor: "#333",
|
|
23
|
-
fontWeight: 400,
|
|
24
|
-
textAlign: "left",
|
|
25
|
-
colors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
|
|
26
|
-
legendShow: !0,
|
|
27
|
-
legendTextStyleColor: "#333",
|
|
28
|
-
legendOrient: "horizontal",
|
|
29
|
-
legendTop: "top",
|
|
30
|
-
legendLeft: "center",
|
|
31
|
-
tooltipShow: !0,
|
|
32
|
-
tooltipTextStyleColor: "",
|
|
33
|
-
tooltipFormatter: "{marker} {a} {c}",
|
|
34
|
-
xAxisSplitLineShow: !0,
|
|
35
|
-
xAxisSplitLineInterval: 0,
|
|
36
|
-
xAxisSplitAreaShow: !1,
|
|
37
|
-
xAxisSplitLineStyleColor: "#333",
|
|
38
|
-
xAxisLabelInterval: 0,
|
|
39
|
-
xAxisLabelColor: "#333",
|
|
40
|
-
xAxisLabelWidth: void 0,
|
|
41
|
-
xAxisLabelRotate: 0,
|
|
42
|
-
xAxisLabelOverflow: "none",
|
|
43
|
-
xAxisLineShow: !0,
|
|
44
|
-
xAxisLineStyleColor: "#333",
|
|
45
|
-
xAxisTickShow: !0,
|
|
46
|
-
xAxisMinInterval: 0,
|
|
47
|
-
yAxisMinInterval: 0,
|
|
48
|
-
yAxisLabelWidth: void 0,
|
|
49
|
-
yAxisLabelRotate: 0,
|
|
50
|
-
yAxisLabelOverflow: "none",
|
|
51
|
-
yAxisSplitLineShow: !0,
|
|
52
|
-
yAxisSplitAreaShow: !1,
|
|
53
|
-
yAxisSplitLineStyleColor: "#333",
|
|
54
|
-
yAxisLabelColor: "#333",
|
|
55
|
-
yAxisLineStyleColor: "#333",
|
|
56
|
-
valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
|
|
57
|
-
keyTypeDataFieldNames: { name: "name", types: [] },
|
|
58
|
-
dataFieldConfigType: "value",
|
|
59
|
-
barWidth: "40%",
|
|
60
|
-
gridContainLabel: !0,
|
|
61
|
-
gridTop: "10%",
|
|
62
|
-
gridBottom: "10%",
|
|
63
|
-
gridLeft: "5%",
|
|
64
|
-
gridRight: "5%",
|
|
65
|
-
graphicConfig: {},
|
|
66
|
-
toolboxShow: !1,
|
|
67
|
-
toolboxOrient: "horizontal",
|
|
68
|
-
toolboxItemSize: 16,
|
|
69
|
-
toolboxItemGap: 8,
|
|
70
|
-
toolboxLeft: "right",
|
|
71
|
-
toolboxTop: "top",
|
|
72
|
-
toolboxIconStyleBorderColor: "#666",
|
|
73
|
-
toolboxDownloadUrl: "",
|
|
74
|
-
toolboxInfoText: "当前无说明信息",
|
|
75
|
-
isUseHorizontalAxis: !1,
|
|
76
|
-
axisInverse: !1,
|
|
77
|
-
xAxisInverse: !1,
|
|
78
|
-
yAxisInverse: !1,
|
|
79
|
-
isStack: !1,
|
|
80
|
-
stackColumns: [],
|
|
81
|
-
labelShow: !1,
|
|
82
|
-
labelFontSize: "12px",
|
|
83
|
-
labelPosition: "inside",
|
|
84
|
-
labelColor: "",
|
|
85
|
-
labelWidth: 100,
|
|
86
|
-
labelOverflow: "none",
|
|
87
|
-
labelFormatter: "{c}",
|
|
88
|
-
toolboxLocation: !1,
|
|
89
|
-
toolboxDownloadShow: !0,
|
|
90
|
-
toolboxDataZoomShow: !0,
|
|
91
|
-
toolboxInfoShow: !0,
|
|
92
|
-
gradientShow: !1,
|
|
93
|
-
gradientColors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
|
|
94
|
-
gradientOffset: 1,
|
|
95
|
-
barBorderRadius: "",
|
|
96
|
-
yAxisLabelShow: !0,
|
|
97
|
-
yAxisSplitLineType: "solid",
|
|
98
|
-
xAxisSplitLineType: "solid",
|
|
99
|
-
legendItemGap: 10,
|
|
100
|
-
legendItemWidth: 25,
|
|
101
|
-
legendItemHeight: 14,
|
|
102
|
-
showBarBackground: !1,
|
|
103
|
-
legendType: "",
|
|
104
|
-
legendFontSize: "12px",
|
|
105
|
-
xAxisLabelFontSize: "12px",
|
|
106
|
-
yAxisLabelFontSize: "12px",
|
|
107
|
-
graphicType: "ecanBar",
|
|
108
|
-
tooltipPosition: "",
|
|
109
|
-
isShowMarkLine: !1,
|
|
110
|
-
markLineType: "average",
|
|
111
|
-
legendFormatter: "{name}",
|
|
112
|
-
legendWidth: null,
|
|
113
|
-
legendHeight: null,
|
|
114
|
-
legendTextWidth: null,
|
|
115
|
-
legendScroll: !1,
|
|
116
|
-
yAxisName: "",
|
|
117
|
-
xAxisName: "",
|
|
118
|
-
defaultRangeValue: !1,
|
|
119
|
-
startValue: "",
|
|
120
|
-
endValue: "",
|
|
121
|
-
xAxisMaxValue: null,
|
|
122
|
-
yAxisMaxValue: null,
|
|
123
|
-
colorsType: "默认"
|
|
124
|
-
}, ei = {
|
|
125
|
-
name: "折线图",
|
|
126
|
-
type: "line",
|
|
127
|
-
width: "400px",
|
|
128
|
-
height: "400px",
|
|
129
|
-
colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
|
|
130
|
-
colorsType: "默认",
|
|
131
|
-
legendShow: !0,
|
|
132
|
-
legendOrient: "horizontal",
|
|
133
|
-
legendTop: "top",
|
|
134
|
-
legendLeft: "center",
|
|
135
|
-
legendCustomPosition: !1,
|
|
136
|
-
legendTextStyleColor: "#333",
|
|
137
|
-
legendTextStyleFontSize: "12px",
|
|
138
|
-
legendTextItemGap: 10,
|
|
139
|
-
legendTopPadding: 10,
|
|
140
|
-
legendBottomPadding: 10,
|
|
141
|
-
legendLeftPadding: 10,
|
|
142
|
-
legendRightPadding: 10,
|
|
143
|
-
titleText: "",
|
|
144
|
-
titleSubtext: "",
|
|
145
|
-
symbolSize: 4,
|
|
146
|
-
lineStyleWidth: 2,
|
|
147
|
-
smooth: !1,
|
|
148
|
-
xAxisName: "",
|
|
149
|
-
xAxisType: "category",
|
|
150
|
-
xAxisShow: !0,
|
|
151
|
-
xAxisLabelWidth: void 0,
|
|
152
|
-
xAxisLabelRotate: 0,
|
|
153
|
-
xAxisLabelOverflow: "none",
|
|
154
|
-
xAxisLabelInterval: 0,
|
|
155
|
-
xAxisSplitLineShow: !0,
|
|
156
|
-
xAxisSplitLineStyleColor: "#333",
|
|
157
|
-
xAxisLabelColor: "#333",
|
|
158
|
-
xAxisLineStyleColor: "#333",
|
|
159
|
-
xAxisTickShow: !0,
|
|
160
|
-
xAxisLabelFormatter: "{value}",
|
|
161
|
-
// 格式化
|
|
162
|
-
xAxisMinInterval: 0,
|
|
163
|
-
yAxisName: "",
|
|
164
|
-
yAxisMinInterval: 0,
|
|
165
|
-
yAxisSplitLineShow: !0,
|
|
166
|
-
yAxisSplitLineStyleColor: "#333",
|
|
167
|
-
yAxisLabelColor: "#333",
|
|
168
|
-
yAxisLineStyleColor: "#333",
|
|
169
|
-
yAxisLineAlwaysDisplay: !1,
|
|
170
|
-
yAxisLabelShow: !0,
|
|
171
|
-
yAxisLabelFormatter: "{value}",
|
|
172
|
-
yAxisSplitLineType: "solid",
|
|
173
|
-
xAxisSplitLineType: "solid",
|
|
174
|
-
gridContainLabel: !0,
|
|
175
|
-
gridTop: "10%",
|
|
176
|
-
gridBottom: "10%",
|
|
177
|
-
gridLeft: "5%",
|
|
178
|
-
gridRight: "5%",
|
|
179
|
-
tooltipShow: !0,
|
|
180
|
-
tooltipTextStyleColor: "",
|
|
181
|
-
tooltipFormatter: "{marker} {a} {c}",
|
|
182
|
-
tooltipBorderColor: "#333",
|
|
183
|
-
tooltipBackgroundColor: "#fff",
|
|
184
|
-
toolboxShow: !1,
|
|
185
|
-
toolboxDownloadShow: !0,
|
|
186
|
-
toolboxDataZoomShow: !0,
|
|
187
|
-
toolboxInfoShow: !0,
|
|
188
|
-
toolboxOrient: "horizontal",
|
|
189
|
-
toolboxItemSize: 16,
|
|
190
|
-
toolboxItemGap: 8,
|
|
191
|
-
toolboxLeft: "right",
|
|
192
|
-
toolboxTop: "top",
|
|
193
|
-
toolboxIconStyleBorderColor: "#666",
|
|
194
|
-
toolboxDownloadUrl: "",
|
|
195
|
-
toolboxInfoText: "当前无说明信息",
|
|
196
|
-
areaStyleOpacity: 0,
|
|
197
|
-
// 新加属性
|
|
198
|
-
titleFontSize: "12px",
|
|
199
|
-
titleColor: "#333",
|
|
200
|
-
fontWeight: 400,
|
|
201
|
-
textAlign: "left",
|
|
202
|
-
titleLeft: "",
|
|
203
|
-
xAxisSplitAreaShow: !1,
|
|
204
|
-
xAxisSplitLineInterval: 0,
|
|
205
|
-
xAxisLineShow: !0,
|
|
206
|
-
yAxisSplitAreaShow: !1,
|
|
207
|
-
valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
|
|
208
|
-
keyTypeDataFieldNames: { name: "name", types: [] },
|
|
209
|
-
dataFieldConfigType: "value",
|
|
210
|
-
graphicConfig: {},
|
|
211
|
-
areaGradientShow: !1,
|
|
212
|
-
areaGradientColor: "",
|
|
213
|
-
isBoundaryGap: !0,
|
|
214
|
-
legendItemGap: 10,
|
|
215
|
-
legendItemWidth: 25,
|
|
216
|
-
legendItemHeight: 14,
|
|
217
|
-
legendType: "",
|
|
218
|
-
shadowColor: "",
|
|
219
|
-
shadowBlur: 0,
|
|
220
|
-
shadowOffsetY: 0,
|
|
221
|
-
shadowOffsetX: 0,
|
|
222
|
-
legendFontSize: "12px",
|
|
223
|
-
xAxisLabelFontSize: "12px",
|
|
224
|
-
yAxisLabelFontSize: "12px",
|
|
225
|
-
graphicType: "ecanLine",
|
|
226
|
-
tooltipPosition: "",
|
|
227
|
-
isShowMarkLine: !1,
|
|
228
|
-
markLineType: "average",
|
|
229
|
-
legendFormatter: "{name}",
|
|
230
|
-
legendWidth: null,
|
|
231
|
-
legendHeight: null,
|
|
232
|
-
legendTextWidth: null,
|
|
233
|
-
legendScroll: !1,
|
|
234
|
-
xAxisMaxValue: null,
|
|
235
|
-
yAxisMaxValue: null
|
|
236
|
-
}, ti = {
|
|
237
|
-
name: "饼图",
|
|
238
|
-
type: "pie",
|
|
239
|
-
width: "400px",
|
|
240
|
-
height: "400px",
|
|
241
|
-
titleText: "",
|
|
242
|
-
titleSubtext: "",
|
|
243
|
-
colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
|
|
244
|
-
colorsType: "默认",
|
|
245
|
-
backgroundColor: "",
|
|
246
|
-
toolboxDownloadShow: !0,
|
|
247
|
-
toolboxDataZoomShow: !0,
|
|
248
|
-
toolboxInfoShow: !0,
|
|
249
|
-
tooltipShow: !0,
|
|
250
|
-
tooltipTextStyleColor: "",
|
|
251
|
-
tooltipTrigger: "item",
|
|
252
|
-
tooltipFormatter: "{marker} {b} {c} ({d}%)",
|
|
253
|
-
tooltipBorderColor: "#333",
|
|
254
|
-
tooltipBackgroundColor: "#fff",
|
|
255
|
-
legendShow: !0,
|
|
256
|
-
legendTextStyleColor: "#333",
|
|
257
|
-
legendOrient: "vertical",
|
|
258
|
-
legendTop: "top",
|
|
259
|
-
legendLeft: "left",
|
|
260
|
-
innerRadius: "0%",
|
|
261
|
-
outerRadius: "60%",
|
|
262
|
-
centerLeft: "50%",
|
|
263
|
-
centerTop: "50%",
|
|
264
|
-
minAngle: 0,
|
|
265
|
-
labelShow: !0,
|
|
266
|
-
labelColor: "#333",
|
|
267
|
-
isUseLabelColors: !1,
|
|
268
|
-
labelFontSize: 12,
|
|
269
|
-
labelPosition: "outside",
|
|
270
|
-
labelFormatter: "{b}\\n{d}%",
|
|
271
|
-
labelLineShow: !0,
|
|
272
|
-
labelLineLength: 10,
|
|
273
|
-
labelLineLength2: 15,
|
|
274
|
-
roseType: "",
|
|
275
|
-
gridContainLabel: !0,
|
|
276
|
-
gridTop: "10%",
|
|
277
|
-
gridBottom: "10%",
|
|
278
|
-
gridLeft: "5%",
|
|
279
|
-
gridRight: "5%",
|
|
280
|
-
toolboxShow: !1,
|
|
281
|
-
toolboxOrient: "horizontal",
|
|
282
|
-
toolboxItemSize: 16,
|
|
283
|
-
toolboxItemGap: 8,
|
|
284
|
-
toolboxLeft: "right",
|
|
285
|
-
toolboxTop: "top",
|
|
286
|
-
toolboxIconStyleBorderColor: "#666",
|
|
287
|
-
toolboxDownloadUrl: "",
|
|
288
|
-
toolboxInfoText: "当前无说明信息",
|
|
289
|
-
titleFontSize: "12px",
|
|
290
|
-
titleColor: "#333",
|
|
291
|
-
fontWeight: 400,
|
|
292
|
-
textAlign: "left",
|
|
293
|
-
titleLeft: "",
|
|
294
|
-
labelWidth: 100,
|
|
295
|
-
labelOverflow: "none",
|
|
296
|
-
valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
|
|
297
|
-
dataFieldConfigType: "value",
|
|
298
|
-
graphicConfig: {},
|
|
299
|
-
legendItemGap: 10,
|
|
300
|
-
legendItemWidth: 25,
|
|
301
|
-
legendItemHeight: 14,
|
|
302
|
-
legendFormatter: "{name}",
|
|
303
|
-
legendFontSize: "12px",
|
|
304
|
-
graphicType: "ecanPie",
|
|
305
|
-
legendWidth: null,
|
|
306
|
-
legendHeight: null,
|
|
307
|
-
legendTextWidth: null,
|
|
308
|
-
legendScroll: !1
|
|
309
|
-
}, oi = {
|
|
310
|
-
name: "自定义图表",
|
|
311
|
-
type: "customGraph",
|
|
312
|
-
width: "400px",
|
|
313
|
-
height: "400px",
|
|
314
|
-
option: {},
|
|
315
|
-
optionCode: ""
|
|
316
|
-
}, ni = {
|
|
317
|
-
name: "组合图表",
|
|
318
|
-
type: "comboGraph",
|
|
319
|
-
width: "400px",
|
|
320
|
-
height: "400px",
|
|
321
|
-
titleText: "",
|
|
322
|
-
titleSubtext: "",
|
|
323
|
-
colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
|
|
324
|
-
colorsType: "默认",
|
|
325
|
-
legendShow: !0,
|
|
326
|
-
legendTextStyleColor: "#333",
|
|
327
|
-
legendOrient: "horizontal",
|
|
328
|
-
legendTop: "top",
|
|
329
|
-
legendLeft: "center",
|
|
330
|
-
tooltipShow: !0,
|
|
331
|
-
tooltipTextStyleColor: "",
|
|
332
|
-
tooltipTrigger: "item",
|
|
333
|
-
tooltipFormatter: "{marker} {a} {c}",
|
|
334
|
-
tooltipBorderColor: "#333",
|
|
335
|
-
tooltipBackgroundColor: "#fff",
|
|
336
|
-
xAxisLabelInterval: 0,
|
|
337
|
-
xAxisSplitLineShow: !0,
|
|
338
|
-
xAxisLabelRotate: 0,
|
|
339
|
-
xAxisLabelOverflow: "none",
|
|
340
|
-
xAxisLabelWidth: void 0,
|
|
341
|
-
xAxisSplitLineStyleColor: "#333",
|
|
342
|
-
xAxisLabelColor: "#333",
|
|
343
|
-
xAxisLineStyleColor: "#333",
|
|
344
|
-
xAxisTickShow: !0,
|
|
345
|
-
xAxisMinInterval: 0,
|
|
346
|
-
yAxisMinInterval: 0,
|
|
347
|
-
yAxisSplitLineShow: !0,
|
|
348
|
-
yAxisSplitLineStyleColor: "#333",
|
|
349
|
-
yAxisLabelColor: "#333",
|
|
350
|
-
yAxisLineStyleColor: "#333",
|
|
351
|
-
yAxisLineAlwaysDisplay: !1,
|
|
352
|
-
yAxisLabelShow: !0,
|
|
353
|
-
seriesTypes: [
|
|
354
|
-
{
|
|
355
|
-
type: "bar",
|
|
356
|
-
axisIndex: 0
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
type: "line",
|
|
360
|
-
axisIndex: 0
|
|
361
|
-
}
|
|
362
|
-
],
|
|
363
|
-
yAxis: [
|
|
364
|
-
{
|
|
365
|
-
axisLabelFormatter: "{value}"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
axisLabelFormatter: "{value}"
|
|
369
|
-
}
|
|
370
|
-
],
|
|
371
|
-
gridContainLabel: !0,
|
|
372
|
-
gridTop: "10%",
|
|
373
|
-
gridBottom: "10%",
|
|
374
|
-
gridLeft: "5%",
|
|
375
|
-
gridRight: "5%",
|
|
376
|
-
toolboxShow: !1,
|
|
377
|
-
toolboxLocation: !1,
|
|
378
|
-
toolboxDownloadShow: !0,
|
|
379
|
-
toolboxDataZoomShow: !0,
|
|
380
|
-
toolboxInfoShow: !0,
|
|
381
|
-
toolboxOrient: "horizontal",
|
|
382
|
-
toolboxItemSize: 16,
|
|
383
|
-
toolboxItemGap: 8,
|
|
384
|
-
toolboxLeft: "right",
|
|
385
|
-
toolboxTop: "top",
|
|
386
|
-
toolboxIconStyleBorderColor: "#666",
|
|
387
|
-
toolboxDownloadUrl: "",
|
|
388
|
-
toolboxInfoText: "当前无说明信息",
|
|
389
|
-
areaStyleOpacity: 0,
|
|
390
|
-
symbolSize: 4,
|
|
391
|
-
lineStyleWidth: 2,
|
|
392
|
-
smooth: !1,
|
|
393
|
-
barWidth: "40%"
|
|
394
|
-
}, eo = {
|
|
395
|
-
bar: Jn,
|
|
396
|
-
line: ei,
|
|
397
|
-
pie: ti,
|
|
398
|
-
customGraph: oi,
|
|
399
|
-
comboGraph: ni
|
|
400
|
-
}, ii = {
|
|
401
|
-
name: "表格",
|
|
402
|
-
type: "table",
|
|
403
|
-
size: "medium",
|
|
404
|
-
allOverflow: "title",
|
|
405
|
-
hoverRow: !0,
|
|
406
|
-
hoverColor: "#f5f7fa",
|
|
407
|
-
headerCellStyleMethod: "",
|
|
408
|
-
rowStyleMethod: "",
|
|
409
|
-
boderList: [],
|
|
410
|
-
columnDropEnable: !0,
|
|
411
|
-
showTotalBool: !1,
|
|
412
|
-
totalName: "",
|
|
413
|
-
expandAll: !1
|
|
414
|
-
}, to = (e) => Ln({
|
|
415
|
-
loader: e,
|
|
416
|
-
delay: 200
|
|
417
|
-
});
|
|
418
|
-
function oo(e, t) {
|
|
419
|
-
var o = {};
|
|
420
|
-
for (var n in e)
|
|
421
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
422
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
423
|
-
var a = 0;
|
|
424
|
-
for (n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
425
|
-
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (o[n[a]] = e[n[a]]);
|
|
426
|
-
}
|
|
427
|
-
return o;
|
|
428
|
-
}
|
|
429
|
-
const Ko = () => {
|
|
430
|
-
}, Ut = Object.assign, Qo = Array.isArray, St = (e) => typeof e == "function", ai = (e) => typeof e == "symbol";
|
|
431
|
-
let no;
|
|
432
|
-
const Mt = () => no || (no = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), io = (e) => {
|
|
433
|
-
const t = new Set(e);
|
|
434
|
-
return t.w = 0, t.n = 0, t;
|
|
435
|
-
}, Zo = (e) => (e.w & ke) > 0, Xo = (e) => (e.n & ke) > 0;
|
|
436
|
-
let nt = 0, ke = 1, ce;
|
|
437
|
-
class ri {
|
|
438
|
-
constructor(t, o = null, n) {
|
|
439
|
-
this.fn = t, this.scheduler = o, this.active = !0, this.deps = [], this.parent = void 0, function(a, i) {
|
|
440
|
-
i && i.active && i.effects.push(a);
|
|
441
|
-
}(this, n);
|
|
442
|
-
}
|
|
443
|
-
run() {
|
|
444
|
-
if (!this.active)
|
|
445
|
-
return this.fn();
|
|
446
|
-
let t = ce, o = Ve;
|
|
447
|
-
for (; t; ) {
|
|
448
|
-
if (t === this)
|
|
449
|
-
return;
|
|
450
|
-
t = t.parent;
|
|
451
|
-
}
|
|
452
|
-
try {
|
|
453
|
-
return this.parent = ce, ce = this, Ve = !0, ke = 1 << ++nt, nt <= 30 ? (({ deps: n }) => {
|
|
454
|
-
if (n.length)
|
|
455
|
-
for (let a = 0; a < n.length; a++)
|
|
456
|
-
n[a].w |= ke;
|
|
457
|
-
})(this) : ao(this), this.fn();
|
|
458
|
-
} finally {
|
|
459
|
-
nt <= 30 && ((n) => {
|
|
460
|
-
const { deps: a } = n;
|
|
461
|
-
if (a.length) {
|
|
462
|
-
let i = 0;
|
|
463
|
-
for (let r = 0; r < a.length; r++) {
|
|
464
|
-
const l = a[r];
|
|
465
|
-
Zo(l) && !Xo(l) ? l.delete(n) : a[i++] = l, l.w &= ~ke, l.n &= ~ke;
|
|
466
|
-
}
|
|
467
|
-
a.length = i;
|
|
468
|
-
}
|
|
469
|
-
})(this), ke = 1 << --nt, ce = this.parent, Ve = o, this.parent = void 0, this.deferStop && this.stop();
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
stop() {
|
|
473
|
-
ce === this ? this.deferStop = !0 : this.active && (ao(this), this.onStop && this.onStop(), this.active = !1);
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
function ao(e) {
|
|
477
|
-
const { deps: t } = e;
|
|
478
|
-
if (t.length) {
|
|
479
|
-
for (let o = 0; o < t.length; o++)
|
|
480
|
-
t[o].delete(e);
|
|
481
|
-
t.length = 0;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
let Ve = !0;
|
|
485
|
-
const ro = [];
|
|
486
|
-
function lo(e, t) {
|
|
487
|
-
let o = !1;
|
|
488
|
-
nt <= 30 ? Xo(e) || (e.n |= ke, o = !Zo(e)) : o = !e.has(ce), o && (e.add(ce), ce.deps.push(e), process.env.NODE_ENV !== "production" && ce.onTrack && ce.onTrack(Ut({ effect: ce }, t)));
|
|
489
|
-
}
|
|
490
|
-
function so(e, t) {
|
|
491
|
-
const o = Qo(e) ? e : [...e];
|
|
492
|
-
for (const n of o)
|
|
493
|
-
n.computed && co(n, t);
|
|
494
|
-
for (const n of o)
|
|
495
|
-
n.computed || co(n, t);
|
|
496
|
-
}
|
|
497
|
-
function co(e, t) {
|
|
498
|
-
(e !== ce || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger(Ut({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
|
|
499
|
-
}
|
|
500
|
-
function He(e) {
|
|
501
|
-
const t = e && e.__v_raw;
|
|
502
|
-
return t ? He(t) : e;
|
|
503
|
-
}
|
|
504
|
-
function Jo(e) {
|
|
505
|
-
return !(!e || e.__v_isRef !== !0);
|
|
506
|
-
}
|
|
507
|
-
function Q(e) {
|
|
508
|
-
return Jo(e) ? e.value : e;
|
|
509
|
-
}
|
|
510
|
-
new Set(Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ai));
|
|
511
|
-
class li {
|
|
512
|
-
constructor(t, o, n, a) {
|
|
513
|
-
this._setter = o, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this._dirty = !0, this.effect = new ri(t, () => {
|
|
514
|
-
this._dirty || (this._dirty = !0, function(i, r) {
|
|
515
|
-
const l = (i = He(i)).dep;
|
|
516
|
-
l && (process.env.NODE_ENV !== "production" ? so(l, { target: i, type: "set", key: "value", newValue: r }) : so(l));
|
|
517
|
-
}(this));
|
|
518
|
-
}), this.effect.computed = this, this.effect.active = this._cacheable = !a, this.__v_isReadonly = n;
|
|
519
|
-
}
|
|
520
|
-
get value() {
|
|
521
|
-
const t = He(this);
|
|
522
|
-
var o;
|
|
523
|
-
return o = t, Ve && ce && (o = He(o), process.env.NODE_ENV !== "production" ? lo(o.dep || (o.dep = io()), { target: o, type: "get", key: "value" }) : lo(o.dep || (o.dep = io()))), !t._dirty && t._cacheable || (t._dirty = !1, t._value = t.effect.run()), t._value;
|
|
524
|
-
}
|
|
525
|
-
set value(t) {
|
|
526
|
-
this._setter(t);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
const Fe = [];
|
|
530
|
-
function Bt(e, ...t) {
|
|
531
|
-
if (process.env.NODE_ENV === "production")
|
|
532
|
-
return;
|
|
533
|
-
ro.push(Ve), Ve = !1;
|
|
534
|
-
const o = Fe.length ? Fe[Fe.length - 1].component : null, n = o && o.appContext.config.warnHandler, a = function() {
|
|
535
|
-
let i = Fe[Fe.length - 1];
|
|
536
|
-
if (!i)
|
|
537
|
-
return [];
|
|
538
|
-
const r = [];
|
|
539
|
-
for (; i; ) {
|
|
540
|
-
const l = r[0];
|
|
541
|
-
l && l.vnode === i ? l.recurseCount++ : r.push({ vnode: i, recurseCount: 0 });
|
|
542
|
-
const p = i.component && i.component.parent;
|
|
543
|
-
i = p && p.vnode;
|
|
544
|
-
}
|
|
545
|
-
return r;
|
|
546
|
-
}();
|
|
547
|
-
if (n)
|
|
548
|
-
Wt(n, o, 11, [e + t.join(""), o && o.proxy, a.map(({ vnode: i }) => `at <${yo(o, i.type)}>`).join(`
|
|
549
|
-
`), a]);
|
|
550
|
-
else {
|
|
551
|
-
const i = [`[Vue warn]: ${e}`, ...t];
|
|
552
|
-
a.length && i.push(`
|
|
553
|
-
`, ...function(r) {
|
|
554
|
-
const l = [];
|
|
555
|
-
return r.forEach((p, c) => {
|
|
556
|
-
l.push(...c === 0 ? [] : [`
|
|
557
|
-
`], ...function({ vnode: u, recurseCount: s }) {
|
|
558
|
-
const d = s > 0 ? `... (${s} recursive calls)` : "", y = !!u.component && u.component.parent == null, x = ` at <${yo(u.component, u.type, y)}`, b = ">" + d;
|
|
559
|
-
return u.props ? [x, ...si(u.props), b] : [x + b];
|
|
560
|
-
}(p));
|
|
561
|
-
}), l;
|
|
562
|
-
}(a)), console.warn(...i);
|
|
563
|
-
}
|
|
564
|
-
(function() {
|
|
565
|
-
const i = ro.pop();
|
|
566
|
-
Ve = i === void 0 || i;
|
|
567
|
-
})();
|
|
568
|
-
}
|
|
569
|
-
function si(e) {
|
|
570
|
-
const t = [], o = Object.keys(e);
|
|
571
|
-
return o.slice(0, 3).forEach((n) => {
|
|
572
|
-
t.push(...en(n, e[n]));
|
|
573
|
-
}), o.length > 3 && t.push(" ..."), t;
|
|
574
|
-
}
|
|
575
|
-
function en(e, t, o) {
|
|
576
|
-
return typeof t == "string" ? (t = JSON.stringify(t), o ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? o ? t : [`${e}=${t}`] : Jo(t) ? (t = en(e, He(t.value), !0), o ? t : [`${e}=Ref<`, t, ">"]) : St(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = He(t), o ? t : [`${e}=`, t]);
|
|
577
|
-
}
|
|
578
|
-
const uo = { sp: "serverPrefetch hook", bc: "beforeCreate hook", c: "created hook", bm: "beforeMount hook", m: "mounted hook", bu: "beforeUpdate hook", u: "updated", bum: "beforeUnmount hook", um: "unmounted hook", a: "activated hook", da: "deactivated hook", ec: "errorCaptured hook", rtc: "renderTracked hook", rtg: "renderTriggered hook", 0: "setup function", 1: "render function", 2: "watcher getter", 3: "watcher callback", 4: "watcher cleanup function", 5: "native event handler", 6: "component event handler", 7: "vnode hook", 8: "directive hook", 9: "transition hook", 10: "app errorHandler", 11: "app warnHandler", 12: "ref function", 13: "async component loader", 14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core" };
|
|
579
|
-
function Wt(e, t, o, n) {
|
|
580
|
-
let a;
|
|
581
|
-
try {
|
|
582
|
-
a = n ? e(...n) : e();
|
|
583
|
-
} catch (i) {
|
|
584
|
-
(function(r, l, p, c = !0) {
|
|
585
|
-
const u = l ? l.vnode : null;
|
|
586
|
-
if (l) {
|
|
587
|
-
let s = l.parent;
|
|
588
|
-
const d = l.proxy, y = process.env.NODE_ENV !== "production" ? uo[p] : p;
|
|
589
|
-
for (; s; ) {
|
|
590
|
-
const b = s.ec;
|
|
591
|
-
if (b) {
|
|
592
|
-
for (let h = 0; h < b.length; h++)
|
|
593
|
-
if (b[h](r, d, y) === !1)
|
|
594
|
-
return;
|
|
595
|
-
}
|
|
596
|
-
s = s.parent;
|
|
597
|
-
}
|
|
598
|
-
const x = l.appContext.config.errorHandler;
|
|
599
|
-
if (x)
|
|
600
|
-
return void Wt(x, null, 10, [r, d, y]);
|
|
601
|
-
}
|
|
602
|
-
(function(s, d, y, x = !0) {
|
|
603
|
-
if (process.env.NODE_ENV !== "production") {
|
|
604
|
-
const h = uo[d];
|
|
605
|
-
if (y && (b = y, Fe.push(b)), Bt("Unhandled error" + (h ? ` during execution of ${h}` : "")), y && Fe.pop(), x)
|
|
606
|
-
throw s;
|
|
607
|
-
console.error(s);
|
|
608
|
-
} else
|
|
609
|
-
console.error(s);
|
|
610
|
-
var b;
|
|
611
|
-
})(r, p, u, c);
|
|
612
|
-
})(i, t, o);
|
|
613
|
-
}
|
|
614
|
-
return a;
|
|
615
|
-
}
|
|
616
|
-
let gt = !1, $t = !1;
|
|
617
|
-
const me = [];
|
|
618
|
-
let De = 0;
|
|
619
|
-
const We = [];
|
|
620
|
-
let ge = null, Ie = 0;
|
|
621
|
-
const ci = Promise.resolve();
|
|
622
|
-
function ui(e) {
|
|
623
|
-
me.length && me.includes(e, gt && e.allowRecurse ? De + 1 : De) || (e.id == null ? me.push(e) : me.splice(function(t) {
|
|
624
|
-
let o = De + 1, n = me.length;
|
|
625
|
-
for (; o < n; ) {
|
|
626
|
-
const a = o + n >>> 1, i = me[a], r = at(i);
|
|
627
|
-
r < t || r === t && i.pre ? o = a + 1 : n = a;
|
|
628
|
-
}
|
|
629
|
-
return o;
|
|
630
|
-
}(e.id), 0, e), tn());
|
|
631
|
-
}
|
|
632
|
-
function tn() {
|
|
633
|
-
gt || $t || ($t = !0, ci.then(on));
|
|
634
|
-
}
|
|
635
|
-
const at = (e) => e.id == null ? 1 / 0 : e.id, di = (e, t) => {
|
|
636
|
-
const o = at(e) - at(t);
|
|
637
|
-
if (o === 0) {
|
|
638
|
-
if (e.pre && !t.pre)
|
|
639
|
-
return -1;
|
|
640
|
-
if (t.pre && !e.pre)
|
|
641
|
-
return 1;
|
|
642
|
-
}
|
|
643
|
-
return o;
|
|
644
|
-
};
|
|
645
|
-
function on(e) {
|
|
646
|
-
$t = !1, gt = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), me.sort(di);
|
|
647
|
-
const t = process.env.NODE_ENV !== "production" ? (o) => fo(e, o) : Ko;
|
|
648
|
-
try {
|
|
649
|
-
for (De = 0; De < me.length; De++) {
|
|
650
|
-
const o = me[De];
|
|
651
|
-
if (o && o.active !== !1) {
|
|
652
|
-
if (process.env.NODE_ENV !== "production" && t(o))
|
|
653
|
-
continue;
|
|
654
|
-
Wt(o, null, 14);
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
} finally {
|
|
658
|
-
De = 0, me.length = 0, function(o) {
|
|
659
|
-
if (We.length) {
|
|
660
|
-
const n = [...new Set(We)];
|
|
661
|
-
if (We.length = 0, ge)
|
|
662
|
-
return void ge.push(...n);
|
|
663
|
-
for (ge = n, process.env.NODE_ENV !== "production" && (o = o || /* @__PURE__ */ new Map()), ge.sort((a, i) => at(a) - at(i)), Ie = 0; Ie < ge.length; Ie++)
|
|
664
|
-
process.env.NODE_ENV !== "production" && fo(o, ge[Ie]) || ge[Ie]();
|
|
665
|
-
ge = null, Ie = 0;
|
|
666
|
-
}
|
|
667
|
-
}(e), gt = !1, (me.length || We.length) && on(e);
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
function fo(e, t) {
|
|
671
|
-
if (e.has(t)) {
|
|
672
|
-
const o = e.get(t);
|
|
673
|
-
if (o > 100) {
|
|
674
|
-
const n = t.ownerInstance, a = n && nn(n.type);
|
|
675
|
-
return Bt(`Maximum recursive updates exceeded${a ? ` in component <${a}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`), !0;
|
|
676
|
-
}
|
|
677
|
-
e.set(t, o + 1);
|
|
678
|
-
} else
|
|
679
|
-
e.set(t, 1);
|
|
680
|
-
}
|
|
681
|
-
const Je = /* @__PURE__ */ new Set();
|
|
682
|
-
process.env.NODE_ENV !== "production" && (Mt().__VUE_HMR_RUNTIME__ = { createRecord: Ot(function(e, t) {
|
|
683
|
-
return ft.has(e) ? !1 : (ft.set(e, { initialDef: et(t), instances: /* @__PURE__ */ new Set() }), !0);
|
|
684
|
-
}), rerender: Ot(function(e, t) {
|
|
685
|
-
const o = ft.get(e);
|
|
686
|
-
o && (o.initialDef.render = t, [...o.instances].forEach((n) => {
|
|
687
|
-
t && (n.render = t, et(n.type).render = t), n.renderCache = [], n.update();
|
|
688
|
-
}));
|
|
689
|
-
}), reload: Ot(function(e, t) {
|
|
690
|
-
const o = ft.get(e);
|
|
691
|
-
if (!o)
|
|
692
|
-
return;
|
|
693
|
-
t = et(t), po(o.initialDef, t);
|
|
694
|
-
const n = [...o.instances];
|
|
695
|
-
for (const i of n) {
|
|
696
|
-
const r = et(i.type);
|
|
697
|
-
Je.has(r) || (r !== o.initialDef && po(r, t), Je.add(r)), i.appContext.propsCache.delete(i.type), i.appContext.emitsCache.delete(i.type), i.appContext.optionsCache.delete(i.type), i.ceReload ? (Je.add(r), i.ceReload(t.styles), Je.delete(r)) : i.parent ? ui(i.parent.update) : i.appContext.reload ? i.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
|
|
698
|
-
}
|
|
699
|
-
a = () => {
|
|
700
|
-
for (const i of n)
|
|
701
|
-
Je.delete(et(i.type));
|
|
702
|
-
}, Qo(a) ? We.push(...a) : ge && ge.includes(a, a.allowRecurse ? Ie + 1 : Ie) || We.push(a), tn();
|
|
703
|
-
var a;
|
|
704
|
-
}) });
|
|
705
|
-
const ft = /* @__PURE__ */ new Map();
|
|
706
|
-
function et(e) {
|
|
707
|
-
return St(t = e) && "__vccOpts" in t ? e.__vccOpts : e;
|
|
708
|
-
var t;
|
|
709
|
-
}
|
|
710
|
-
function po(e, t) {
|
|
711
|
-
Ut(e, t);
|
|
712
|
-
for (const o in e)
|
|
713
|
-
o === "__file" || o in t || delete e[o];
|
|
714
|
-
}
|
|
715
|
-
function Ot(e) {
|
|
716
|
-
return (t, o) => {
|
|
717
|
-
try {
|
|
718
|
-
return e(t, o);
|
|
719
|
-
} catch (n) {
|
|
720
|
-
console.error(n), console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.");
|
|
721
|
-
}
|
|
722
|
-
};
|
|
723
|
-
}
|
|
724
|
-
let Lt;
|
|
725
|
-
process.env.NODE_ENV;
|
|
726
|
-
let ho = "__VUE_INSTANCE_SETTERS__";
|
|
727
|
-
(Lt = Mt()[ho]) || (Lt = Mt()[ho] = []), Lt.push((e) => e);
|
|
728
|
-
const fi = /(?:^|[-_])(\w)/g, pi = (e) => e.replace(fi, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
729
|
-
function nn(e, t = !0) {
|
|
730
|
-
return St(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
731
|
-
}
|
|
732
|
-
function yo(e, t, o = !1) {
|
|
733
|
-
let n = nn(t);
|
|
734
|
-
if (!n && t.__file) {
|
|
735
|
-
const a = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
736
|
-
a && (n = a[1]);
|
|
737
|
-
}
|
|
738
|
-
if (!n && e && e.parent) {
|
|
739
|
-
const a = (i) => {
|
|
740
|
-
for (const r in i)
|
|
741
|
-
if (i[r] === t)
|
|
742
|
-
return r;
|
|
743
|
-
};
|
|
744
|
-
n = a(e.components || e.parent.type.components) || a(e.appContext.components);
|
|
745
|
-
}
|
|
746
|
-
return n ? pi(n) : o ? "App" : "Anonymous";
|
|
747
|
-
}
|
|
748
|
-
const Pe = (e, t) => function(o, n, a = !1) {
|
|
749
|
-
let i, r;
|
|
750
|
-
const l = St(o);
|
|
751
|
-
return l ? (i = o, r = process.env.NODE_ENV !== "production" ? () => {
|
|
752
|
-
console.warn("Write operation failed: computed value is readonly");
|
|
753
|
-
} : Ko) : (i = o.get, r = o.set), new li(i, r, l || !r, a);
|
|
754
|
-
}(e, 0, !1);
|
|
755
|
-
function hi(e) {
|
|
756
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
757
|
-
}
|
|
758
|
-
var mo, bo = { exports: {} };
|
|
759
|
-
function yi() {
|
|
760
|
-
return mo || (mo = 1, bo.exports = function() {
|
|
761
|
-
var e = 1e3, t = 6e4, o = 36e5, n = "millisecond", a = "second", i = "minute", r = "hour", l = "day", p = "week", c = "month", u = "quarter", s = "year", d = "date", y = "Invalid Date", x = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, h = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(O) {
|
|
762
|
-
var T = ["th", "st", "nd", "rd"], m = O % 100;
|
|
763
|
-
return "[" + O + (T[(m - 20) % 10] || T[m] || T[0]) + "]";
|
|
764
|
-
} }, g = function(O, T, m) {
|
|
765
|
-
var _ = String(O);
|
|
766
|
-
return !_ || _.length >= T ? O : "" + Array(T + 1 - _.length).join(m) + O;
|
|
767
|
-
}, S = { s: g, z: function(O) {
|
|
768
|
-
var T = -O.utcOffset(), m = Math.abs(T), _ = Math.floor(m / 60), C = m % 60;
|
|
769
|
-
return (T <= 0 ? "+" : "-") + g(_, 2, "0") + ":" + g(C, 2, "0");
|
|
770
|
-
}, m: function O(T, m) {
|
|
771
|
-
if (T.date() < m.date())
|
|
772
|
-
return -O(m, T);
|
|
773
|
-
var _ = 12 * (m.year() - T.year()) + (m.month() - T.month()), C = T.clone().add(_, c), j = m - C < 0, k = T.clone().add(_ + (j ? -1 : 1), c);
|
|
774
|
-
return +(-(_ + (m - C) / (j ? C - k : k - C)) || 0);
|
|
775
|
-
}, a: function(O) {
|
|
776
|
-
return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
|
|
777
|
-
}, p: function(O) {
|
|
778
|
-
return { M: c, y: s, w: p, d: l, D: d, h: r, m: i, s: a, ms: n, Q: u }[O] || String(O || "").toLowerCase().replace(/s$/, "");
|
|
779
|
-
}, u: function(O) {
|
|
780
|
-
return O === void 0;
|
|
781
|
-
} }, f = "en", v = {};
|
|
782
|
-
v[f] = h;
|
|
783
|
-
var L = "$isDayjsObject", N = function(O) {
|
|
784
|
-
return O instanceof M || !(!O || !O[L]);
|
|
785
|
-
}, E = function O(T, m, _) {
|
|
786
|
-
var C;
|
|
787
|
-
if (!T)
|
|
788
|
-
return f;
|
|
789
|
-
if (typeof T == "string") {
|
|
790
|
-
var j = T.toLowerCase();
|
|
791
|
-
v[j] && (C = j), m && (v[j] = m, C = j);
|
|
792
|
-
var k = T.split("-");
|
|
793
|
-
if (!C && k.length > 1)
|
|
794
|
-
return O(k[0]);
|
|
795
|
-
} else {
|
|
796
|
-
var F = T.name;
|
|
797
|
-
v[F] = T, C = F;
|
|
798
|
-
}
|
|
799
|
-
return !_ && C && (f = C), C || !_ && f;
|
|
800
|
-
}, A = function(O, T) {
|
|
801
|
-
if (N(O))
|
|
802
|
-
return O.clone();
|
|
803
|
-
var m = typeof T == "object" ? T : {};
|
|
804
|
-
return m.date = O, m.args = arguments, new M(m);
|
|
805
|
-
}, w = S;
|
|
806
|
-
w.l = E, w.i = N, w.w = function(O, T) {
|
|
807
|
-
return A(O, { locale: T.$L, utc: T.$u, x: T.$x, $offset: T.$offset });
|
|
808
|
-
};
|
|
809
|
-
var M = function() {
|
|
810
|
-
function O(m) {
|
|
811
|
-
this.$L = E(m.locale, null, !0), this.parse(m), this.$x = this.$x || m.x || {}, this[L] = !0;
|
|
812
|
-
}
|
|
813
|
-
var T = O.prototype;
|
|
814
|
-
return T.parse = function(m) {
|
|
815
|
-
this.$d = function(_) {
|
|
816
|
-
var C = _.date, j = _.utc;
|
|
817
|
-
if (C === null)
|
|
818
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
819
|
-
if (w.u(C))
|
|
820
|
-
return /* @__PURE__ */ new Date();
|
|
821
|
-
if (C instanceof Date)
|
|
822
|
-
return new Date(C);
|
|
823
|
-
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
824
|
-
var k = C.match(x);
|
|
825
|
-
if (k) {
|
|
826
|
-
var F = k[2] - 1 || 0, R = (k[7] || "0").substring(0, 3);
|
|
827
|
-
return j ? new Date(Date.UTC(k[1], F, k[3] || 1, k[4] || 0, k[5] || 0, k[6] || 0, R)) : new Date(k[1], F, k[3] || 1, k[4] || 0, k[5] || 0, k[6] || 0, R);
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
return new Date(C);
|
|
831
|
-
}(m), this.init();
|
|
832
|
-
}, T.init = function() {
|
|
833
|
-
var m = this.$d;
|
|
834
|
-
this.$y = m.getFullYear(), this.$M = m.getMonth(), this.$D = m.getDate(), this.$W = m.getDay(), this.$H = m.getHours(), this.$m = m.getMinutes(), this.$s = m.getSeconds(), this.$ms = m.getMilliseconds();
|
|
835
|
-
}, T.$utils = function() {
|
|
836
|
-
return w;
|
|
837
|
-
}, T.isValid = function() {
|
|
838
|
-
return this.$d.toString() !== y;
|
|
839
|
-
}, T.isSame = function(m, _) {
|
|
840
|
-
var C = A(m);
|
|
841
|
-
return this.startOf(_) <= C && C <= this.endOf(_);
|
|
842
|
-
}, T.isAfter = function(m, _) {
|
|
843
|
-
return A(m) < this.startOf(_);
|
|
844
|
-
}, T.isBefore = function(m, _) {
|
|
845
|
-
return this.endOf(_) < A(m);
|
|
846
|
-
}, T.$g = function(m, _, C) {
|
|
847
|
-
return w.u(m) ? this[_] : this.set(C, m);
|
|
848
|
-
}, T.unix = function() {
|
|
849
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
850
|
-
}, T.valueOf = function() {
|
|
851
|
-
return this.$d.getTime();
|
|
852
|
-
}, T.startOf = function(m, _) {
|
|
853
|
-
var C = this, j = !!w.u(_) || _, k = w.p(m), F = function(ue, ie) {
|
|
854
|
-
var ee = w.w(C.$u ? Date.UTC(C.$y, ie, ue) : new Date(C.$y, ie, ue), C);
|
|
855
|
-
return j ? ee : ee.endOf(l);
|
|
856
|
-
}, R = function(ue, ie) {
|
|
857
|
-
return w.w(C.toDate()[ue].apply(C.toDate("s"), (j ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), C);
|
|
858
|
-
}, W = this.$W, Z = this.$M, oe = this.$D, Oe = "set" + (this.$u ? "UTC" : "");
|
|
859
|
-
switch (k) {
|
|
860
|
-
case s:
|
|
861
|
-
return j ? F(1, 0) : F(31, 11);
|
|
862
|
-
case c:
|
|
863
|
-
return j ? F(1, Z) : F(0, Z + 1);
|
|
864
|
-
case p:
|
|
865
|
-
var q = this.$locale().weekStart || 0, Le = (W < q ? W + 7 : W) - q;
|
|
866
|
-
return F(j ? oe - Le : oe + (6 - Le), Z);
|
|
867
|
-
case l:
|
|
868
|
-
case d:
|
|
869
|
-
return R(Oe + "Hours", 0);
|
|
870
|
-
case r:
|
|
871
|
-
return R(Oe + "Minutes", 1);
|
|
872
|
-
case i:
|
|
873
|
-
return R(Oe + "Seconds", 2);
|
|
874
|
-
case a:
|
|
875
|
-
return R(Oe + "Milliseconds", 3);
|
|
876
|
-
default:
|
|
877
|
-
return this.clone();
|
|
878
|
-
}
|
|
879
|
-
}, T.endOf = function(m) {
|
|
880
|
-
return this.startOf(m, !1);
|
|
881
|
-
}, T.$set = function(m, _) {
|
|
882
|
-
var C, j = w.p(m), k = "set" + (this.$u ? "UTC" : ""), F = (C = {}, C[l] = k + "Date", C[d] = k + "Date", C[c] = k + "Month", C[s] = k + "FullYear", C[r] = k + "Hours", C[i] = k + "Minutes", C[a] = k + "Seconds", C[n] = k + "Milliseconds", C)[j], R = j === l ? this.$D + (_ - this.$W) : _;
|
|
883
|
-
if (j === c || j === s) {
|
|
884
|
-
var W = this.clone().set(d, 1);
|
|
885
|
-
W.$d[F](R), W.init(), this.$d = W.set(d, Math.min(this.$D, W.daysInMonth())).$d;
|
|
886
|
-
} else
|
|
887
|
-
F && this.$d[F](R);
|
|
888
|
-
return this.init(), this;
|
|
889
|
-
}, T.set = function(m, _) {
|
|
890
|
-
return this.clone().$set(m, _);
|
|
891
|
-
}, T.get = function(m) {
|
|
892
|
-
return this[w.p(m)]();
|
|
893
|
-
}, T.add = function(m, _) {
|
|
894
|
-
var C, j = this;
|
|
895
|
-
m = Number(m);
|
|
896
|
-
var k = w.p(_), F = function(Z) {
|
|
897
|
-
var oe = A(j);
|
|
898
|
-
return w.w(oe.date(oe.date() + Math.round(Z * m)), j);
|
|
899
|
-
};
|
|
900
|
-
if (k === c)
|
|
901
|
-
return this.set(c, this.$M + m);
|
|
902
|
-
if (k === s)
|
|
903
|
-
return this.set(s, this.$y + m);
|
|
904
|
-
if (k === l)
|
|
905
|
-
return F(1);
|
|
906
|
-
if (k === p)
|
|
907
|
-
return F(7);
|
|
908
|
-
var R = (C = {}, C[i] = t, C[r] = o, C[a] = e, C)[k] || 1, W = this.$d.getTime() + m * R;
|
|
909
|
-
return w.w(W, this);
|
|
910
|
-
}, T.subtract = function(m, _) {
|
|
911
|
-
return this.add(-1 * m, _);
|
|
912
|
-
}, T.format = function(m) {
|
|
913
|
-
var _ = this, C = this.$locale();
|
|
914
|
-
if (!this.isValid())
|
|
915
|
-
return C.invalidDate || y;
|
|
916
|
-
var j = m || "YYYY-MM-DDTHH:mm:ssZ", k = w.z(this), F = this.$H, R = this.$m, W = this.$M, Z = C.weekdays, oe = C.months, Oe = C.meridiem, q = function(ie, ee, xe, ve) {
|
|
917
|
-
return ie && (ie[ee] || ie(_, j)) || xe[ee].slice(0, ve);
|
|
918
|
-
}, Le = function(ie) {
|
|
919
|
-
return w.s(F % 12 || 12, ie, "0");
|
|
920
|
-
}, ue = Oe || function(ie, ee, xe) {
|
|
921
|
-
var ve = ie < 12 ? "AM" : "PM";
|
|
922
|
-
return xe ? ve.toLowerCase() : ve;
|
|
923
|
-
};
|
|
924
|
-
return j.replace(b, function(ie, ee) {
|
|
925
|
-
return ee || function(xe) {
|
|
926
|
-
switch (xe) {
|
|
927
|
-
case "YY":
|
|
928
|
-
return String(_.$y).slice(-2);
|
|
929
|
-
case "YYYY":
|
|
930
|
-
return w.s(_.$y, 4, "0");
|
|
931
|
-
case "M":
|
|
932
|
-
return W + 1;
|
|
933
|
-
case "MM":
|
|
934
|
-
return w.s(W + 1, 2, "0");
|
|
935
|
-
case "MMM":
|
|
936
|
-
return q(C.monthsShort, W, oe, 3);
|
|
937
|
-
case "MMMM":
|
|
938
|
-
return q(oe, W);
|
|
939
|
-
case "D":
|
|
940
|
-
return _.$D;
|
|
941
|
-
case "DD":
|
|
942
|
-
return w.s(_.$D, 2, "0");
|
|
943
|
-
case "d":
|
|
944
|
-
return String(_.$W);
|
|
945
|
-
case "dd":
|
|
946
|
-
return q(C.weekdaysMin, _.$W, Z, 2);
|
|
947
|
-
case "ddd":
|
|
948
|
-
return q(C.weekdaysShort, _.$W, Z, 3);
|
|
949
|
-
case "dddd":
|
|
950
|
-
return Z[_.$W];
|
|
951
|
-
case "H":
|
|
952
|
-
return String(F);
|
|
953
|
-
case "HH":
|
|
954
|
-
return w.s(F, 2, "0");
|
|
955
|
-
case "h":
|
|
956
|
-
return Le(1);
|
|
957
|
-
case "hh":
|
|
958
|
-
return Le(2);
|
|
959
|
-
case "a":
|
|
960
|
-
return ue(F, R, !0);
|
|
961
|
-
case "A":
|
|
962
|
-
return ue(F, R, !1);
|
|
963
|
-
case "m":
|
|
964
|
-
return String(R);
|
|
965
|
-
case "mm":
|
|
966
|
-
return w.s(R, 2, "0");
|
|
967
|
-
case "s":
|
|
968
|
-
return String(_.$s);
|
|
969
|
-
case "ss":
|
|
970
|
-
return w.s(_.$s, 2, "0");
|
|
971
|
-
case "SSS":
|
|
972
|
-
return w.s(_.$ms, 3, "0");
|
|
973
|
-
case "Z":
|
|
974
|
-
return k;
|
|
975
|
-
}
|
|
976
|
-
return null;
|
|
977
|
-
}(ie) || k.replace(":", "");
|
|
978
|
-
});
|
|
979
|
-
}, T.utcOffset = function() {
|
|
980
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
981
|
-
}, T.diff = function(m, _, C) {
|
|
982
|
-
var j, k = this, F = w.p(_), R = A(m), W = (R.utcOffset() - this.utcOffset()) * t, Z = this - R, oe = function() {
|
|
983
|
-
return w.m(k, R);
|
|
984
|
-
};
|
|
985
|
-
switch (F) {
|
|
986
|
-
case s:
|
|
987
|
-
j = oe() / 12;
|
|
988
|
-
break;
|
|
989
|
-
case c:
|
|
990
|
-
j = oe();
|
|
991
|
-
break;
|
|
992
|
-
case u:
|
|
993
|
-
j = oe() / 3;
|
|
994
|
-
break;
|
|
995
|
-
case p:
|
|
996
|
-
j = (Z - W) / 6048e5;
|
|
997
|
-
break;
|
|
998
|
-
case l:
|
|
999
|
-
j = (Z - W) / 864e5;
|
|
1000
|
-
break;
|
|
1001
|
-
case r:
|
|
1002
|
-
j = Z / o;
|
|
1003
|
-
break;
|
|
1004
|
-
case i:
|
|
1005
|
-
j = Z / t;
|
|
1006
|
-
break;
|
|
1007
|
-
case a:
|
|
1008
|
-
j = Z / e;
|
|
1009
|
-
break;
|
|
1010
|
-
default:
|
|
1011
|
-
j = Z;
|
|
1012
|
-
}
|
|
1013
|
-
return C ? j : w.a(j);
|
|
1014
|
-
}, T.daysInMonth = function() {
|
|
1015
|
-
return this.endOf(c).$D;
|
|
1016
|
-
}, T.$locale = function() {
|
|
1017
|
-
return v[this.$L];
|
|
1018
|
-
}, T.locale = function(m, _) {
|
|
1019
|
-
if (!m)
|
|
1020
|
-
return this.$L;
|
|
1021
|
-
var C = this.clone(), j = E(m, _, !0);
|
|
1022
|
-
return j && (C.$L = j), C;
|
|
1023
|
-
}, T.clone = function() {
|
|
1024
|
-
return w.w(this.$d, this);
|
|
1025
|
-
}, T.toDate = function() {
|
|
1026
|
-
return new Date(this.valueOf());
|
|
1027
|
-
}, T.toJSON = function() {
|
|
1028
|
-
return this.isValid() ? this.toISOString() : null;
|
|
1029
|
-
}, T.toISOString = function() {
|
|
1030
|
-
return this.$d.toISOString();
|
|
1031
|
-
}, T.toString = function() {
|
|
1032
|
-
return this.$d.toUTCString();
|
|
1033
|
-
}, O;
|
|
1034
|
-
}(), $ = M.prototype;
|
|
1035
|
-
return A.prototype = $, [["$ms", n], ["$s", a], ["$m", i], ["$H", r], ["$W", l], ["$M", c], ["$y", s], ["$D", d]].forEach(function(O) {
|
|
1036
|
-
$[O[1]] = function(T) {
|
|
1037
|
-
return this.$g(T, O[0], O[1]);
|
|
1038
|
-
};
|
|
1039
|
-
}), A.extend = function(O, T) {
|
|
1040
|
-
return O.$i || (O(T, M, A), O.$i = !0), A;
|
|
1041
|
-
}, A.locale = E, A.isDayjs = N, A.unix = function(O) {
|
|
1042
|
-
return A(1e3 * O);
|
|
1043
|
-
}, A.en = v[f], A.Ls = v, A.p = {}, A;
|
|
1044
|
-
}()), bo.exports;
|
|
1045
|
-
}
|
|
1046
|
-
var pe = hi(yi()), an = typeof global == "object" && global && global.Object === Object && global, mi = typeof self == "object" && self && self.Object === Object && self, _e = an || mi || Function("return this")(), Ke = _e.Symbol, rn = Object.prototype, bi = rn.hasOwnProperty, gi = rn.toString, tt = Ke ? Ke.toStringTag : void 0, xi = Object.prototype.toString, go = Ke ? Ke.toStringTag : void 0;
|
|
1047
|
-
function lt(e) {
|
|
1048
|
-
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : go && go in Object(e) ? function(t) {
|
|
1049
|
-
var o = bi.call(t, tt), n = t[tt];
|
|
1050
|
-
try {
|
|
1051
|
-
t[tt] = void 0;
|
|
1052
|
-
var a = !0;
|
|
1053
|
-
} catch {
|
|
1054
|
-
}
|
|
1055
|
-
var i = gi.call(t);
|
|
1056
|
-
return a && (o ? t[tt] = n : delete t[tt]), i;
|
|
1057
|
-
}(e) : function(t) {
|
|
1058
|
-
return xi.call(t);
|
|
1059
|
-
}(e);
|
|
1060
|
-
}
|
|
1061
|
-
function st(e) {
|
|
1062
|
-
return e != null && typeof e == "object";
|
|
1063
|
-
}
|
|
1064
|
-
var Ht = Array.isArray;
|
|
1065
|
-
function Ct(e) {
|
|
1066
|
-
var t = typeof e;
|
|
1067
|
-
return e != null && (t == "object" || t == "function");
|
|
1068
|
-
}
|
|
1069
|
-
function ln(e) {
|
|
1070
|
-
if (!Ct(e))
|
|
1071
|
-
return !1;
|
|
1072
|
-
var t = lt(e);
|
|
1073
|
-
return t == "[object Function]" || t == "[object GeneratorFunction]" || t == "[object AsyncFunction]" || t == "[object Proxy]";
|
|
1074
|
-
}
|
|
1075
|
-
var xo, Nt = _e["__core-js_shared__"], vo = (xo = /[^.]+$/.exec(Nt && Nt.keys && Nt.keys.IE_PROTO || "")) ? "Symbol(src)_1." + xo : "", vi = Function.prototype.toString;
|
|
1076
|
-
function Re(e) {
|
|
1077
|
-
if (e != null) {
|
|
1078
|
-
try {
|
|
1079
|
-
return vi.call(e);
|
|
1080
|
-
} catch {
|
|
1081
|
-
}
|
|
1082
|
-
try {
|
|
1083
|
-
return e + "";
|
|
1084
|
-
} catch {
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
return "";
|
|
1088
|
-
}
|
|
1089
|
-
var Si = /^\[object .+?Constructor\]$/, Ci = Function.prototype, wi = Object.prototype, Ai = Ci.toString, Ti = wi.hasOwnProperty, _i = RegExp("^" + Ai.call(Ti).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
1090
|
-
function Oi(e) {
|
|
1091
|
-
return !(!Ct(e) || (t = e, vo && vo in t)) && (ln(e) ? _i : Si).test(Re(e));
|
|
1092
|
-
var t;
|
|
1093
|
-
}
|
|
1094
|
-
function ze(e, t) {
|
|
1095
|
-
var o = function(n, a) {
|
|
1096
|
-
return n == null ? void 0 : n[a];
|
|
1097
|
-
}(e, t);
|
|
1098
|
-
return Oi(o) ? o : void 0;
|
|
1099
|
-
}
|
|
1100
|
-
var Vt = ze(_e, "WeakMap"), So = Object.create, Li = function() {
|
|
1101
|
-
function e() {
|
|
1102
|
-
}
|
|
1103
|
-
return function(t) {
|
|
1104
|
-
if (!Ct(t))
|
|
1105
|
-
return {};
|
|
1106
|
-
if (So)
|
|
1107
|
-
return So(t);
|
|
1108
|
-
e.prototype = t;
|
|
1109
|
-
var o = new e();
|
|
1110
|
-
return e.prototype = void 0, o;
|
|
1111
|
-
};
|
|
1112
|
-
}(), Co = function() {
|
|
1113
|
-
try {
|
|
1114
|
-
var e = ze(Object, "defineProperty");
|
|
1115
|
-
return e({}, "", {}), e;
|
|
1116
|
-
} catch {
|
|
1117
|
-
}
|
|
1118
|
-
}(), Ni = /^(?:0|[1-9]\d*)$/;
|
|
1119
|
-
function ji(e, t) {
|
|
1120
|
-
var o = typeof e;
|
|
1121
|
-
return !!(t = t ?? 9007199254740991) && (o == "number" || o != "symbol" && Ni.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
1122
|
-
}
|
|
1123
|
-
function sn(e, t) {
|
|
1124
|
-
return e === t || e != e && t != t;
|
|
1125
|
-
}
|
|
1126
|
-
var Ii = Object.prototype.hasOwnProperty;
|
|
1127
|
-
function ki(e, t, o) {
|
|
1128
|
-
var n = e[t];
|
|
1129
|
-
Ii.call(e, t) && sn(n, o) && (o !== void 0 || t in e) || function(a, i, r) {
|
|
1130
|
-
i == "__proto__" && Co ? Co(a, i, { configurable: !0, enumerable: !0, value: r, writable: !0 }) : a[i] = r;
|
|
1131
|
-
}(e, t, o);
|
|
1132
|
-
}
|
|
1133
|
-
function cn(e) {
|
|
1134
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= 9007199254740991;
|
|
1135
|
-
}
|
|
1136
|
-
var Di = Object.prototype;
|
|
1137
|
-
function un(e) {
|
|
1138
|
-
var t = e && e.constructor;
|
|
1139
|
-
return e === (typeof t == "function" && t.prototype || Di);
|
|
1140
|
-
}
|
|
1141
|
-
function wo(e) {
|
|
1142
|
-
return st(e) && lt(e) == "[object Arguments]";
|
|
1143
|
-
}
|
|
1144
|
-
var dn = Object.prototype, Ei = dn.hasOwnProperty, Fi = dn.propertyIsEnumerable, Mi = wo(function() {
|
|
1145
|
-
return arguments;
|
|
1146
|
-
}()) ? wo : function(e) {
|
|
1147
|
-
return st(e) && Ei.call(e, "callee") && !Fi.call(e, "callee");
|
|
1148
|
-
}, fn = typeof exports == "object" && exports && !exports.nodeType && exports, Ao = fn && typeof module == "object" && module && !module.nodeType && module, To = Ao && Ao.exports === fn ? _e.Buffer : void 0, pn = (To ? To.isBuffer : void 0) || function() {
|
|
1149
|
-
return !1;
|
|
1150
|
-
}, K = {};
|
|
1151
|
-
function Yt(e) {
|
|
1152
|
-
return function(t) {
|
|
1153
|
-
return e(t);
|
|
1154
|
-
};
|
|
1155
|
-
}
|
|
1156
|
-
K["[object Float32Array]"] = K["[object Float64Array]"] = K["[object Int8Array]"] = K["[object Int16Array]"] = K["[object Int32Array]"] = K["[object Uint8Array]"] = K["[object Uint8ClampedArray]"] = K["[object Uint16Array]"] = K["[object Uint32Array]"] = !0, K["[object Arguments]"] = K["[object Array]"] = K["[object ArrayBuffer]"] = K["[object Boolean]"] = K["[object DataView]"] = K["[object Date]"] = K["[object Error]"] = K["[object Function]"] = K["[object Map]"] = K["[object Number]"] = K["[object Object]"] = K["[object RegExp]"] = K["[object Set]"] = K["[object String]"] = K["[object WeakMap]"] = !1;
|
|
1157
|
-
var hn = typeof exports == "object" && exports && !exports.nodeType && exports, it = hn && typeof module == "object" && module && !module.nodeType && module, jt = it && it.exports === hn && an.process, Qe = function() {
|
|
1158
|
-
try {
|
|
1159
|
-
var e = it && it.require && it.require("util").types;
|
|
1160
|
-
return e || jt && jt.binding && jt.binding("util");
|
|
1161
|
-
} catch {
|
|
1162
|
-
}
|
|
1163
|
-
}(), _o = Qe && Qe.isTypedArray, $i = _o ? Yt(_o) : function(e) {
|
|
1164
|
-
return st(e) && cn(e.length) && !!K[lt(e)];
|
|
1165
|
-
}, Vi = Object.prototype.hasOwnProperty;
|
|
1166
|
-
function Pi(e, t) {
|
|
1167
|
-
var o = Ht(e), n = !o && Mi(e), a = !o && !n && pn(e), i = !o && !n && !a && $i(e), r = o || n || a || i, l = r ? function(u, s) {
|
|
1168
|
-
for (var d = -1, y = Array(u); ++d < u; )
|
|
1169
|
-
y[d] = s(d);
|
|
1170
|
-
return y;
|
|
1171
|
-
}(e.length, String) : [], p = l.length;
|
|
1172
|
-
for (var c in e)
|
|
1173
|
-
!Vi.call(e, c) || r && (c == "length" || a && (c == "offset" || c == "parent") || i && (c == "buffer" || c == "byteLength" || c == "byteOffset") || ji(c, p)) || l.push(c);
|
|
1174
|
-
return l;
|
|
1175
|
-
}
|
|
1176
|
-
function yn(e, t) {
|
|
1177
|
-
return function(o) {
|
|
1178
|
-
return e(t(o));
|
|
1179
|
-
};
|
|
1180
|
-
}
|
|
1181
|
-
var Ri = yn(Object.keys, Object), zi = Object.prototype.hasOwnProperty;
|
|
1182
|
-
function Gi(e) {
|
|
1183
|
-
return (t = e) != null && cn(t.length) && !ln(t) ? Pi(e) : function(o) {
|
|
1184
|
-
if (!un(o))
|
|
1185
|
-
return Ri(o);
|
|
1186
|
-
var n = [];
|
|
1187
|
-
for (var a in Object(o))
|
|
1188
|
-
zi.call(o, a) && a != "constructor" && n.push(a);
|
|
1189
|
-
return n;
|
|
1190
|
-
}(e);
|
|
1191
|
-
var t;
|
|
1192
|
-
}
|
|
1193
|
-
var ot = ze(Object, "create"), Ui = Object.prototype.hasOwnProperty, Bi = Object.prototype.hasOwnProperty;
|
|
1194
|
-
function Me(e) {
|
|
1195
|
-
var t = -1, o = e == null ? 0 : e.length;
|
|
1196
|
-
for (this.clear(); ++t < o; ) {
|
|
1197
|
-
var n = e[t];
|
|
1198
|
-
this.set(n[0], n[1]);
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
function pt(e, t) {
|
|
1202
|
-
for (var o = e.length; o--; )
|
|
1203
|
-
if (sn(e[o][0], t))
|
|
1204
|
-
return o;
|
|
1205
|
-
return -1;
|
|
1206
|
-
}
|
|
1207
|
-
Me.prototype.clear = function() {
|
|
1208
|
-
this.__data__ = ot ? ot(null) : {}, this.size = 0;
|
|
1209
|
-
}, Me.prototype.delete = function(e) {
|
|
1210
|
-
var t = this.has(e) && delete this.__data__[e];
|
|
1211
|
-
return this.size -= t ? 1 : 0, t;
|
|
1212
|
-
}, Me.prototype.get = function(e) {
|
|
1213
|
-
var t = this.__data__;
|
|
1214
|
-
if (ot) {
|
|
1215
|
-
var o = t[e];
|
|
1216
|
-
return o === "__lodash_hash_undefined__" ? void 0 : o;
|
|
1217
|
-
}
|
|
1218
|
-
return Ui.call(t, e) ? t[e] : void 0;
|
|
1219
|
-
}, Me.prototype.has = function(e) {
|
|
1220
|
-
var t = this.__data__;
|
|
1221
|
-
return ot ? t[e] !== void 0 : Bi.call(t, e);
|
|
1222
|
-
}, Me.prototype.set = function(e, t) {
|
|
1223
|
-
var o = this.__data__;
|
|
1224
|
-
return this.size += this.has(e) ? 0 : 1, o[e] = ot && t === void 0 ? "__lodash_hash_undefined__" : t, this;
|
|
1225
|
-
};
|
|
1226
|
-
var Wi = Array.prototype.splice;
|
|
1227
|
-
function Te(e) {
|
|
1228
|
-
var t = -1, o = e == null ? 0 : e.length;
|
|
1229
|
-
for (this.clear(); ++t < o; ) {
|
|
1230
|
-
var n = e[t];
|
|
1231
|
-
this.set(n[0], n[1]);
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
Te.prototype.clear = function() {
|
|
1235
|
-
this.__data__ = [], this.size = 0;
|
|
1236
|
-
}, Te.prototype.delete = function(e) {
|
|
1237
|
-
var t = this.__data__, o = pt(t, e);
|
|
1238
|
-
return !(o < 0) && (o == t.length - 1 ? t.pop() : Wi.call(t, o, 1), --this.size, !0);
|
|
1239
|
-
}, Te.prototype.get = function(e) {
|
|
1240
|
-
var t = this.__data__, o = pt(t, e);
|
|
1241
|
-
return o < 0 ? void 0 : t[o][1];
|
|
1242
|
-
}, Te.prototype.has = function(e) {
|
|
1243
|
-
return pt(this.__data__, e) > -1;
|
|
1244
|
-
}, Te.prototype.set = function(e, t) {
|
|
1245
|
-
var o = this.__data__, n = pt(o, e);
|
|
1246
|
-
return n < 0 ? (++this.size, o.push([e, t])) : o[n][1] = t, this;
|
|
1247
|
-
};
|
|
1248
|
-
var rt = ze(_e, "Map");
|
|
1249
|
-
function ht(e, t) {
|
|
1250
|
-
var o, n, a = e.__data__;
|
|
1251
|
-
return ((n = typeof (o = t)) == "string" || n == "number" || n == "symbol" || n == "boolean" ? o !== "__proto__" : o === null) ? a[typeof t == "string" ? "string" : "hash"] : a.map;
|
|
1252
|
-
}
|
|
1253
|
-
function Ue(e) {
|
|
1254
|
-
var t = -1, o = e == null ? 0 : e.length;
|
|
1255
|
-
for (this.clear(); ++t < o; ) {
|
|
1256
|
-
var n = e[t];
|
|
1257
|
-
this.set(n[0], n[1]);
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
Ue.prototype.clear = function() {
|
|
1261
|
-
this.size = 0, this.__data__ = { hash: new Me(), map: new (rt || Te)(), string: new Me() };
|
|
1262
|
-
}, Ue.prototype.delete = function(e) {
|
|
1263
|
-
var t = ht(this, e).delete(e);
|
|
1264
|
-
return this.size -= t ? 1 : 0, t;
|
|
1265
|
-
}, Ue.prototype.get = function(e) {
|
|
1266
|
-
return ht(this, e).get(e);
|
|
1267
|
-
}, Ue.prototype.has = function(e) {
|
|
1268
|
-
return ht(this, e).has(e);
|
|
1269
|
-
}, Ue.prototype.set = function(e, t) {
|
|
1270
|
-
var o = ht(this, e), n = o.size;
|
|
1271
|
-
return o.set(e, t), this.size += o.size == n ? 0 : 1, this;
|
|
1272
|
-
};
|
|
1273
|
-
var Hi = yn(Object.getPrototypeOf, Object);
|
|
1274
|
-
function Be(e) {
|
|
1275
|
-
var t = this.__data__ = new Te(e);
|
|
1276
|
-
this.size = t.size;
|
|
1277
|
-
}
|
|
1278
|
-
Be.prototype.clear = function() {
|
|
1279
|
-
this.__data__ = new Te(), this.size = 0;
|
|
1280
|
-
}, Be.prototype.delete = function(e) {
|
|
1281
|
-
var t = this.__data__, o = t.delete(e);
|
|
1282
|
-
return this.size = t.size, o;
|
|
1283
|
-
}, Be.prototype.get = function(e) {
|
|
1284
|
-
return this.__data__.get(e);
|
|
1285
|
-
}, Be.prototype.has = function(e) {
|
|
1286
|
-
return this.__data__.has(e);
|
|
1287
|
-
}, Be.prototype.set = function(e, t) {
|
|
1288
|
-
var o = this.__data__;
|
|
1289
|
-
if (o instanceof Te) {
|
|
1290
|
-
var n = o.__data__;
|
|
1291
|
-
if (!rt || n.length < 199)
|
|
1292
|
-
return n.push([e, t]), this.size = ++o.size, this;
|
|
1293
|
-
o = this.__data__ = new Ue(n);
|
|
1294
|
-
}
|
|
1295
|
-
return o.set(e, t), this.size = o.size, this;
|
|
1296
|
-
};
|
|
1297
|
-
var Yi = Object.prototype.propertyIsEnumerable, Oo = Object.getOwnPropertySymbols, qi = Oo ? function(e) {
|
|
1298
|
-
return e == null ? [] : (e = Object(e), function(t, o) {
|
|
1299
|
-
for (var n = -1, a = t == null ? 0 : t.length, i = 0, r = []; ++n < a; ) {
|
|
1300
|
-
var l = t[n];
|
|
1301
|
-
o(l, n, t) && (r[i++] = l);
|
|
1302
|
-
}
|
|
1303
|
-
return r;
|
|
1304
|
-
}(Oo(e), function(t) {
|
|
1305
|
-
return Yi.call(e, t);
|
|
1306
|
-
}));
|
|
1307
|
-
} : function() {
|
|
1308
|
-
return [];
|
|
1309
|
-
};
|
|
1310
|
-
function Ki(e) {
|
|
1311
|
-
return function(t, o, n) {
|
|
1312
|
-
var a = o(t);
|
|
1313
|
-
return Ht(t) ? a : function(i, r) {
|
|
1314
|
-
for (var l = -1, p = r.length, c = i.length; ++l < p; )
|
|
1315
|
-
i[c + l] = r[l];
|
|
1316
|
-
return i;
|
|
1317
|
-
}(a, n(t));
|
|
1318
|
-
}(e, Gi, qi);
|
|
1319
|
-
}
|
|
1320
|
-
var Pt = ze(_e, "DataView"), Rt = ze(_e, "Promise"), zt = ze(_e, "Set"), Lo = "[object Map]", No = "[object Promise]", jo = "[object Set]", Io = "[object WeakMap]", ko = "[object DataView]", Qi = Re(Pt), Zi = Re(rt), Xi = Re(Rt), Ji = Re(zt), ea = Re(Vt), Ae = lt;
|
|
1321
|
-
(Pt && Ae(new Pt(new ArrayBuffer(1))) != ko || rt && Ae(new rt()) != Lo || Rt && Ae(Rt.resolve()) != No || zt && Ae(new zt()) != jo || Vt && Ae(new Vt()) != Io) && (Ae = function(e) {
|
|
1322
|
-
var t = lt(e), o = t == "[object Object]" ? e.constructor : void 0, n = o ? Re(o) : "";
|
|
1323
|
-
if (n)
|
|
1324
|
-
switch (n) {
|
|
1325
|
-
case Qi:
|
|
1326
|
-
return ko;
|
|
1327
|
-
case Zi:
|
|
1328
|
-
return Lo;
|
|
1329
|
-
case Xi:
|
|
1330
|
-
return No;
|
|
1331
|
-
case Ji:
|
|
1332
|
-
return jo;
|
|
1333
|
-
case ea:
|
|
1334
|
-
return Io;
|
|
1335
|
-
}
|
|
1336
|
-
return t;
|
|
1337
|
-
});
|
|
1338
|
-
var ta = Object.prototype.hasOwnProperty, Do = _e.Uint8Array;
|
|
1339
|
-
function It(e) {
|
|
1340
|
-
var t = new e.constructor(e.byteLength);
|
|
1341
|
-
return new Do(t).set(new Do(e)), t;
|
|
1342
|
-
}
|
|
1343
|
-
var oa = /\w*$/, Eo = Ke ? Ke.prototype : void 0, Fo = Eo ? Eo.valueOf : void 0;
|
|
1344
|
-
function na(e, t, o) {
|
|
1345
|
-
var n, a, i, r, l, p = e.constructor;
|
|
1346
|
-
switch (t) {
|
|
1347
|
-
case "[object ArrayBuffer]":
|
|
1348
|
-
return It(e);
|
|
1349
|
-
case "[object Boolean]":
|
|
1350
|
-
case "[object Date]":
|
|
1351
|
-
return new p(+e);
|
|
1352
|
-
case "[object DataView]":
|
|
1353
|
-
return l = It((r = e).buffer), new r.constructor(l, r.byteOffset, r.byteLength);
|
|
1354
|
-
case "[object Float32Array]":
|
|
1355
|
-
case "[object Float64Array]":
|
|
1356
|
-
case "[object Int8Array]":
|
|
1357
|
-
case "[object Int16Array]":
|
|
1358
|
-
case "[object Int32Array]":
|
|
1359
|
-
case "[object Uint8Array]":
|
|
1360
|
-
case "[object Uint8ClampedArray]":
|
|
1361
|
-
case "[object Uint16Array]":
|
|
1362
|
-
case "[object Uint32Array]":
|
|
1363
|
-
return function(c) {
|
|
1364
|
-
var u = It(c.buffer);
|
|
1365
|
-
return new c.constructor(u, c.byteOffset, c.length);
|
|
1366
|
-
}(e);
|
|
1367
|
-
case "[object Map]":
|
|
1368
|
-
case "[object Set]":
|
|
1369
|
-
return new p();
|
|
1370
|
-
case "[object Number]":
|
|
1371
|
-
case "[object String]":
|
|
1372
|
-
return new p(e);
|
|
1373
|
-
case "[object RegExp]":
|
|
1374
|
-
return (i = new (a = e).constructor(a.source, oa.exec(a))).lastIndex = a.lastIndex, i;
|
|
1375
|
-
case "[object Symbol]":
|
|
1376
|
-
return n = e, Fo ? Object(Fo.call(n)) : {};
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
var Mo = Qe && Qe.isMap, ia = Mo ? Yt(Mo) : function(e) {
|
|
1380
|
-
return st(e) && Ae(e) == "[object Map]";
|
|
1381
|
-
}, $o = Qe && Qe.isSet, aa = $o ? Yt($o) : function(e) {
|
|
1382
|
-
return st(e) && Ae(e) == "[object Set]";
|
|
1383
|
-
}, mn = "[object Arguments]", bn = "[object Function]", gn = "[object Object]", Y = {};
|
|
1384
|
-
function bt(e, t, o, n, a, i) {
|
|
1385
|
-
var r;
|
|
1386
|
-
if (r !== void 0)
|
|
1387
|
-
return r;
|
|
1388
|
-
if (!Ct(e))
|
|
1389
|
-
return e;
|
|
1390
|
-
var l = Ht(e);
|
|
1391
|
-
if (l)
|
|
1392
|
-
r = function(d) {
|
|
1393
|
-
var y = d.length, x = new d.constructor(y);
|
|
1394
|
-
return y && typeof d[0] == "string" && ta.call(d, "index") && (x.index = d.index, x.input = d.input), x;
|
|
1395
|
-
}(e);
|
|
1396
|
-
else {
|
|
1397
|
-
var p = Ae(e), c = p == bn || p == "[object GeneratorFunction]";
|
|
1398
|
-
if (pn(e))
|
|
1399
|
-
return e.slice();
|
|
1400
|
-
if (p == gn || p == mn || c && !a)
|
|
1401
|
-
r = c ? {} : function(d) {
|
|
1402
|
-
return typeof d.constructor != "function" || un(d) ? {} : Li(Hi(d));
|
|
1403
|
-
}(e);
|
|
1404
|
-
else {
|
|
1405
|
-
if (!Y[p])
|
|
1406
|
-
return a ? e : {};
|
|
1407
|
-
r = na(e, p);
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
i || (i = new Be());
|
|
1411
|
-
var u = i.get(e);
|
|
1412
|
-
if (u)
|
|
1413
|
-
return u;
|
|
1414
|
-
i.set(e, r), aa(e) ? e.forEach(function(d) {
|
|
1415
|
-
r.add(bt(d, t, o, d, e, i));
|
|
1416
|
-
}) : ia(e) && e.forEach(function(d, y) {
|
|
1417
|
-
r.set(y, bt(d, t, o, y, e, i));
|
|
1418
|
-
});
|
|
1419
|
-
var s = l ? void 0 : Ki(e);
|
|
1420
|
-
return function(d, y) {
|
|
1421
|
-
for (var x = -1, b = d == null ? 0 : d.length; ++x < b && y(d[x], x, d) !== !1; )
|
|
1422
|
-
;
|
|
1423
|
-
}(s || e, function(d, y) {
|
|
1424
|
-
s && (d = e[y = d]), ki(r, y, bt(d, t, o, y, e, i));
|
|
1425
|
-
}), r;
|
|
1426
|
-
}
|
|
1427
|
-
Y[mn] = Y["[object Array]"] = Y["[object ArrayBuffer]"] = Y["[object DataView]"] = Y["[object Boolean]"] = Y["[object Date]"] = Y["[object Float32Array]"] = Y["[object Float64Array]"] = Y["[object Int8Array]"] = Y["[object Int16Array]"] = Y["[object Int32Array]"] = Y["[object Map]"] = Y["[object Number]"] = Y[gn] = Y["[object RegExp]"] = Y["[object Set]"] = Y["[object String]"] = Y["[object Symbol]"] = Y["[object Uint8Array]"] = Y["[object Uint8ClampedArray]"] = Y["[object Uint16Array]"] = Y["[object Uint32Array]"] = !0, Y["[object Error]"] = Y[bn] = Y["[object WeakMap]"] = !1;
|
|
1428
|
-
function xt(e) {
|
|
1429
|
-
return bt(e, 5);
|
|
1430
|
-
}
|
|
1431
|
-
const xn = (e, t) => {
|
|
1432
|
-
const o = Object.assign({ dayjs: pe }, t);
|
|
1433
|
-
let n = "";
|
|
1434
|
-
const a = [];
|
|
1435
|
-
for (const l in o)
|
|
1436
|
-
n += `${l},`, a.push(o[l]);
|
|
1437
|
-
n = n.replace(/,$/, "");
|
|
1438
|
-
const i = `function (${n}){return ${e}}`;
|
|
1439
|
-
let r;
|
|
1440
|
-
try {
|
|
1441
|
-
r = Function(`"use strict";return (${i})`)()(...a);
|
|
1442
|
-
} catch {
|
|
1443
|
-
return e;
|
|
1444
|
-
}
|
|
1445
|
-
return r;
|
|
1446
|
-
}, Ye = (e = "", { textData: t, codeData: o } = {}, { useNewline: n = !1, useSpace: a = !1 } = {}) => {
|
|
1447
|
-
const i = window.config || {}, r = Object.assign(Object.assign({}, i), t), l = String(e || "").match(/\{(.+?)\}/g);
|
|
1448
|
-
if (l == null || l.length === 0)
|
|
1449
|
-
return e;
|
|
1450
|
-
for (let p = 0; p < l.length; p++) {
|
|
1451
|
-
const c = l[p];
|
|
1452
|
-
let u = c.slice(1, -1).trim();
|
|
1453
|
-
const s = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, d = u.match(s);
|
|
1454
|
-
for (let y = 0; y < d.length; y++) {
|
|
1455
|
-
const x = d[y], b = r[x];
|
|
1456
|
-
b != null && typeof b != "function" && (u = u.replace(x, b));
|
|
1457
|
-
}
|
|
1458
|
-
(/\(.*\)/g.test(u) || /[+/\\*]/g.test(u)) && (u = xn(u, o)), e = e.replace(c, u);
|
|
1459
|
-
}
|
|
1460
|
-
return n && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), a && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, " ")), e = e.replace(/Qfw\((.*?)\)/, (p, c) => t != null && t.Qfw ? t == null ? void 0 : t.Qfw(c) : c);
|
|
1461
|
-
}, J = (e, t) => {
|
|
1462
|
-
if (typeof e == "string" && typeof t == "string")
|
|
1463
|
-
return e.toLocaleLowerCase().includes(t.toLocaleLowerCase());
|
|
1464
|
-
if (typeof e == "string" && Array.isArray(t)) {
|
|
1465
|
-
const o = t.length;
|
|
1466
|
-
for (let n = 0; n < o; n++) {
|
|
1467
|
-
const a = t[n];
|
|
1468
|
-
if (typeof a == "string" && e.toLocaleLowerCase().includes(a.toLocaleLowerCase()))
|
|
1469
|
-
return !0;
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
return !1;
|
|
1473
|
-
}, se = (e, t) => Object.prototype.hasOwnProperty.call(e, t), vt = (e) => {
|
|
1474
|
-
const t = [];
|
|
1475
|
-
for (const o of e)
|
|
1476
|
-
o.conditions ? t.push(...vt(o.conditions)) : (o == null ? void 0 : o.dataType) === "component" && t.push(o);
|
|
1477
|
-
return t;
|
|
1478
|
-
};
|
|
1479
|
-
function ra(e) {
|
|
1480
|
-
let t = "", o = "", n = "", a = "";
|
|
1481
|
-
e.indexOf(".") > -1 ? (o = e.split(".")[0], n = e.split(".")[1]) : o = e;
|
|
1482
|
-
let i = 0, r = 0;
|
|
1483
|
-
for (r = o.length - 1; r >= 0; )
|
|
1484
|
-
i % 3 == 0 && i !== 0 ? o[r] === "-" ? t += o[r] : t += "," + o[r] : t += o[r], r--, i++;
|
|
1485
|
-
return t = t.split("").reverse().join(""), a = e.indexOf(".") > -1 ? t + "." + n : t, a;
|
|
1486
|
-
}
|
|
1487
|
-
const la = ["table", "bar", "combograph", "line", "pie", "radar", "scatter", "list", "circulate"];
|
|
1488
|
-
let vn = /* @__PURE__ */ new Map(), Sn = [];
|
|
1489
|
-
const sa = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "conditionValueType", "customValue", "id", "keyName"], wt = (e) => vn.get(e), Vo = (e, t) => {
|
|
1490
|
-
if (t)
|
|
1491
|
-
se(e, "indexCode") && (e.hrpIndexCode = e.indexCode, delete e.indexCode), se(e, "indexCodeNum") && (e.hrpIndexCodeNum = e.indexCodeNum, delete e.indexCodeNum), se(e, "dataType") && delete e.dataType, e.fieldValue || delete e.fieldValue;
|
|
1492
|
-
else {
|
|
1493
|
-
const { calcWays: o = [], dateCalcTypes: n = [], activeKey: a, componentId: i = "" } = e;
|
|
1494
|
-
if (a === 5 && (o != null && o.length) && (n != null && n.length) && i) {
|
|
1495
|
-
const r = o[0].split("-");
|
|
1496
|
-
(r == null ? void 0 : r.length) > 1 && r[0] === "rangeValue" && (e.calcWays = ((l, p = {}) => {
|
|
1497
|
-
const { around: c, unit: u, id: s } = l;
|
|
1498
|
-
let d = "";
|
|
1499
|
-
const { pageMode: y = "", componentList: x = [] } = (p == null ? void 0 : p.graphicConfig) || {};
|
|
1500
|
-
let b = null, h = null;
|
|
1501
|
-
if (y === "design") {
|
|
1502
|
-
const g = x == null ? void 0 : x.find((A) => A.id === s);
|
|
1503
|
-
if (!g)
|
|
1504
|
-
return [];
|
|
1505
|
-
const { interval: S, intervalUnit: f, startTime: v, endTime: L, operate: N, useCurrentTime: E } = g || {};
|
|
1506
|
-
if (E && (b = pe().subtract(S, f), h = pe()), v && (b = pe(v)), L && (h = pe(L)), N) {
|
|
1507
|
-
const { type: A, value: w, mode: M } = N;
|
|
1508
|
-
switch (A) {
|
|
1509
|
-
case "add":
|
|
1510
|
-
b = b && b.add(w, M), h = h && h.add(w, M);
|
|
1511
|
-
break;
|
|
1512
|
-
case "minus":
|
|
1513
|
-
b = b && b.subtract(w, M), h = h && h.subtract(w, M);
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
} else {
|
|
1517
|
-
const g = wt(s) || {};
|
|
1518
|
-
Q(g.startTime) && (b = pe(Q(g.startTime))), Q(g.endTime) && (h = pe(Q(g.endTime)));
|
|
1519
|
-
}
|
|
1520
|
-
return b && h && (d = `${c === "before" ? "-" : ""}${h.diff(b, u.toLowerCase()) + 1}`), d ? [d] : [];
|
|
1521
|
-
})({ around: r[1], unit: n[0], id: i })), delete e.radioValue;
|
|
1522
|
-
}
|
|
1523
|
-
if (se(e, "dataType")) {
|
|
1524
|
-
if (e.fieldType === "DATE" && (e.label = e.fieldName), e.dataType === "component")
|
|
1525
|
-
if (e.fieldValue === "PARENT") {
|
|
1526
|
-
let r = e.modelKey;
|
|
1527
|
-
r && e.prop && (r += `-${e.prop}`), e.fieldValue = "${" + r + "}";
|
|
1528
|
-
} else
|
|
1529
|
-
e.fieldValue = "${" + ct(e.componentId, e.fieldValue) + "}";
|
|
1530
|
-
delete e.dataType;
|
|
1531
|
-
}
|
|
1532
|
-
se(e, "activeKey") && delete e.activeKey, se(e, "radioValue") && delete e.radioValue, se(e, "indexCode") && (e.hrpIndexCode = e.indexCode, delete e.indexCode), se(e, "indexCodeNum") && (e.hrpIndexCodeNum = e.indexCodeNum, delete e.indexCodeNum), e.dataType !== "component" && e.useCurrentTime && (e.fieldValue = pe().format(e.dateFormat)), se(e, "modelKey") && delete e.modelKey, se(e, "prop") && delete e.prop, delete e.useCurrentTime;
|
|
1533
|
-
}
|
|
1534
|
-
}, $e = (e, t) => {
|
|
1535
|
-
const o = [];
|
|
1536
|
-
return e != null && e.length && xt(e).forEach((n) => {
|
|
1537
|
-
if (n.join && n.conditions) {
|
|
1538
|
-
const a = !n.conditions.some((i) => i.join && i.conditions);
|
|
1539
|
-
n.conditions.forEach((i, r) => {
|
|
1540
|
-
Vo(i, t);
|
|
1541
|
-
const l = {};
|
|
1542
|
-
if (r < n.conditions.length - 1 && (l.join = n.join), a)
|
|
1543
|
-
o.push(Object.assign(Object.assign({}, l), i));
|
|
1544
|
-
else if (i.join && i.conditions) {
|
|
1545
|
-
const p = t ? "sqlConditions" : "conditions";
|
|
1546
|
-
o.push(Object.assign({ [p]: $e([i], t) }, l));
|
|
1547
|
-
} else
|
|
1548
|
-
o.push(Object.assign(Object.assign({}, l), i));
|
|
1549
|
-
});
|
|
1550
|
-
} else
|
|
1551
|
-
Vo(n, t), o.push(n);
|
|
1552
|
-
}), o;
|
|
1553
|
-
}, yt = (e = {}, t) => {
|
|
1554
|
-
if (e != null && e.sortCpnts && t) {
|
|
1555
|
-
const L = An(e);
|
|
1556
|
-
L && (t.sort = L);
|
|
1557
|
-
}
|
|
1558
|
-
const { label: o, name: n, location: a, show: i, indexCode: r, indexCodeNum: l, calcType: p = "COLUMN", builtInFormula: c, builtInValueSource: u, builtInCalcWay: s, formula: d, conditions: y, aggregate: x, distinct: b, dimByCount: h, dataTo: g, sort: S } = e;
|
|
1559
|
-
let f;
|
|
1560
|
-
if (y && (f = $e(y)), p === "COMPONENT") {
|
|
1561
|
-
const L = {};
|
|
1562
|
-
return At(L, u), { label: o.trim(), columnName: n, show: i, calcType: p, componentAlias: s, componentValue: L.fieldValue || null };
|
|
1563
|
-
}
|
|
1564
|
-
const v = { label: o.trim(), columnName: n, location: a, show: i, calcType: g === "1" ? "VIEW" : p, hrpIndexCode: r, hrpIndexCodeNum: l, aggregate: x, builtInFormula: c, builtInValueSource: u, formula: d, conditions: f };
|
|
1565
|
-
if (S && (v.sort = { columnName: n, label: v.label, order: S, type: "NORMAL" }), c !== "DATE_OFFSET")
|
|
1566
|
-
return n === "the_count" && (v.calcType = "AGGREGATE", v.distinct = !!b, v.typeGuid = h), Object.assign(Object.assign({}, v), { builtInCalcWay: s });
|
|
1567
|
-
{
|
|
1568
|
-
const L = s.split("-");
|
|
1569
|
-
if ((L == null ? void 0 : L.length) === 3) {
|
|
1570
|
-
let N = L[0];
|
|
1571
|
-
return L[2] === "before" && L[0] !== "0" && (N = `-${L[0]}`), Object.assign(Object.assign({}, v), { calcWays: [N], dateCalcTypes: [L[1]] });
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
}, ct = (e, t) => {
|
|
1575
|
-
const o = Sn.find((a) => a.id === e), { keyName: n } = o || {};
|
|
1576
|
-
if (n) {
|
|
1577
|
-
const a = /-(startTime|endTime)/g, i = t.match(a);
|
|
1578
|
-
return i != null && i.length ? `${n}${i[0]}` : n;
|
|
1579
|
-
}
|
|
1580
|
-
return t || "";
|
|
1581
|
-
}, ca = (e) => {
|
|
1582
|
-
if (!e)
|
|
1583
|
-
return [];
|
|
1584
|
-
const t = xt((e == null ? void 0 : e.controlList) || []).filter((h) => h.conditionKey !== "parentCode"), { classificationList: o = [], rowHeaderList: n = [], dimensionList: a = [], seriesList: i = [], leftAxisList: r = [], rightAxisList: l = [], queryColumnList: p = [], indexLibColumns: c = [], indicators: u = [], specialIndicators: s = [] } = e;
|
|
1585
|
-
wn(t);
|
|
1586
|
-
const d = [...o, ...n, ...a, ...i, ...r, ...l, ...p, ...c, ...u, ...s], y = [];
|
|
1587
|
-
for (const h of d) {
|
|
1588
|
-
const g = vt((h == null ? void 0 : h.conditions) || []);
|
|
1589
|
-
if (g != null && g.length) {
|
|
1590
|
-
const S = g.filter((f) => (f == null ? void 0 : f.dataType) === "component").map((f) => {
|
|
1591
|
-
const v = {};
|
|
1592
|
-
return f != null && f.dateFormat && (v.format = f.dateFormat), f.fieldValue === "PARENT" && (v.id = "PARENT", v.keyName = f.modelKey, v.modelKey = f.modelKey, v.prop = f.prop), Object.assign({ conditionKey: f.fieldName, conditionLabel: f.fieldName, conditionName: f.fieldName, conditionValueType: f.fieldType, id: f.componentId, keyName: f.fieldValue, rule: f.rule, notGlobal: !0, indexCode: f.indexCode, typeGuid: f.typeGuid, indexCodeNum: f.indexCodeNum }, v);
|
|
1593
|
-
});
|
|
1594
|
-
if (S != null && S.length)
|
|
1595
|
-
for (const f of S)
|
|
1596
|
-
y.find((v) => v.keyName === f.keyName) || y.push(f);
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
1599
|
-
const x = y.length, b = t;
|
|
1600
|
-
for (let h = 0; h < x; h++) {
|
|
1601
|
-
const g = y[h];
|
|
1602
|
-
if ((g == null ? void 0 : g.conditionKey) === "parentCode")
|
|
1603
|
-
continue;
|
|
1604
|
-
const { id: S, keyName: f, prop: v, format: L, modelKey: N, dataType: E = "component", customValue: A } = g, w = ct(S, f), M = Cn(g);
|
|
1605
|
-
At(M, S, { prop: v, dateFormat: L, modelKey: N, keyName: w }), E === "" && (M.fieldValue = A || ""), b.push(M);
|
|
1606
|
-
}
|
|
1607
|
-
for (let h = b.length - 1; h >= 0; h--) {
|
|
1608
|
-
const g = b[h];
|
|
1609
|
-
g.globalCondition || vt(b).find((S) => S.alias === g.alias && S.globalCondition) && b.splice(h, 1);
|
|
1610
|
-
}
|
|
1611
|
-
return b;
|
|
1612
|
-
};
|
|
1613
|
-
function Cn(e) {
|
|
1614
|
-
const { id: t, keyName: o, conditionLabel: n, conditionKey: a, conditionValueType: i, prop: r, rule: l = "NONE", notGlobal: p = !1, indexCode: c, typeGuid: u, indexCodeNum: s, dataType: d = "component" } = e, y = ct(t, o);
|
|
1615
|
-
let x = y || t;
|
|
1616
|
-
x && r && (x += `-${r}`);
|
|
1617
|
-
let b = l;
|
|
1618
|
-
return b === "NONE" && (b = ["startTime", "endTime"].includes(r) ? r === "startTime" ? "GREATER_EQUAL" : "LESS_EQUAL" : y != null && y.includes("startTime") ? r === "GREATER_EQUAL" : y != null && y.includes("endTime") ? r === "LESS_EQUAL" : "EQUAL"), t === "PARENT" && (x = e.modelKey, x && r && (x += `-${r}`), b = l), { rule: b, label: n, fieldName: a, fieldValue: "", valueType: i, alias: x, globalCondition: !p, indexCode: c, typeGuid: u, indexCodeNum: s, dataType: d };
|
|
1619
|
-
}
|
|
1620
|
-
function wn(e) {
|
|
1621
|
-
if (e != null && e.length)
|
|
1622
|
-
for (const t of e)
|
|
1623
|
-
if (t != null && t.conditions)
|
|
1624
|
-
wn(t.conditions);
|
|
1625
|
-
else {
|
|
1626
|
-
const { id: o, keyName: n, prop: a, modelKey: i, format: r, dataType: l = "component", customValue: p } = t, c = ct(o, n), u = Cn(t);
|
|
1627
|
-
At(u, o, { prop: a, dateFormat: r, modelKey: i, keyName: c }), l === "" && (u.fieldValue = p || "");
|
|
1628
|
-
for (const s in u)
|
|
1629
|
-
t[s] = u[s];
|
|
1630
|
-
for (const s of sa)
|
|
1631
|
-
delete t[s];
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
function At(e, t, o) {
|
|
1635
|
-
const { prop: n = "", dateFormat: a = "", modelKey: i = "", keyName: r = "", operateValue: l, operateMode: p, operateType: c } = o || {}, u = i || r;
|
|
1636
|
-
if (t === "PARENT" && u && n) {
|
|
1637
|
-
const S = window.config.record;
|
|
1638
|
-
let f = n, v = a;
|
|
1639
|
-
const L = n.match(/\{(.+?)\}/g);
|
|
1640
|
-
if (L != null && L.length) {
|
|
1641
|
-
const N = L[0].slice(1, -1).trim();
|
|
1642
|
-
f = n.replace(L[0], ""), v = N, e.dateFormat = v;
|
|
1643
|
-
}
|
|
1644
|
-
if (S && S[u]) {
|
|
1645
|
-
const N = Q(S[u][f]);
|
|
1646
|
-
pe.isDayjs(N) ? e.fieldValue = N.format(v || "YYYY-MM-DD") : e.fieldValue = N;
|
|
1647
|
-
}
|
|
1648
|
-
return;
|
|
1649
|
-
}
|
|
1650
|
-
const s = wt(t) || {}, { value: d, format: y = "YYYY-MM-DD", type: x = "", useCurrentTime: b, RECORD: h } = s || {}, g = a || y;
|
|
1651
|
-
if (J(x, "date")) {
|
|
1652
|
-
let S;
|
|
1653
|
-
if (S = b ? d ? Q(d) : pe() : Q(d), typeof S == "string" && (S = pe(S)), l && p && c)
|
|
1654
|
-
switch (c) {
|
|
1655
|
-
case "add":
|
|
1656
|
-
S = S.add(l, p);
|
|
1657
|
-
break;
|
|
1658
|
-
case "minus":
|
|
1659
|
-
S = S.subtract(l, p);
|
|
1660
|
-
}
|
|
1661
|
-
e.fieldValue = S == null ? void 0 : S.format(g), e.dateFormat = g;
|
|
1662
|
-
} else if (J(x, "rangepicker")) {
|
|
1663
|
-
let S = n;
|
|
1664
|
-
if (!n) {
|
|
1665
|
-
const v = r && r.split("-");
|
|
1666
|
-
v != null && v.length && (S = v[v.length - 1]);
|
|
1667
|
-
}
|
|
1668
|
-
if (!S)
|
|
1669
|
-
return;
|
|
1670
|
-
let f = null;
|
|
1671
|
-
if (Q(s[S]) && (f = pe(Q(s[S]))), l && p && c) {
|
|
1672
|
-
if (l === "rangeValue") {
|
|
1673
|
-
if (s.startTime && s.endTime) {
|
|
1674
|
-
const v = Q(s.endTime).diff(Q(s.startTime), p) + 1;
|
|
1675
|
-
switch (c) {
|
|
1676
|
-
case "add":
|
|
1677
|
-
f = f && f.add(v, p);
|
|
1678
|
-
break;
|
|
1679
|
-
case "minus":
|
|
1680
|
-
f = f && f.subtract(v, p);
|
|
1681
|
-
}
|
|
1682
|
-
}
|
|
1683
|
-
} else if (!isNaN(+l))
|
|
1684
|
-
switch (c) {
|
|
1685
|
-
case "add":
|
|
1686
|
-
f = f && f.add(l, p);
|
|
1687
|
-
break;
|
|
1688
|
-
case "minus":
|
|
1689
|
-
f = f && f.subtract(l, p);
|
|
1690
|
-
}
|
|
1691
|
-
}
|
|
1692
|
-
if (f && (e.fieldValue = f == null ? void 0 : f.format(g)), S === "rangeValue" && s.startTime && s.endTime) {
|
|
1693
|
-
const v = function(L) {
|
|
1694
|
-
const N = L.split("-");
|
|
1695
|
-
let E = "";
|
|
1696
|
-
if (N != null && N.length)
|
|
1697
|
-
switch (N[N.length - 1]) {
|
|
1698
|
-
case "YYYY":
|
|
1699
|
-
E = "year";
|
|
1700
|
-
break;
|
|
1701
|
-
case "MM":
|
|
1702
|
-
E = "month";
|
|
1703
|
-
break;
|
|
1704
|
-
case "DD":
|
|
1705
|
-
E = "day";
|
|
1706
|
-
}
|
|
1707
|
-
return E;
|
|
1708
|
-
}(g);
|
|
1709
|
-
v && (e.fieldValue = Q(s.endTime).diff(Q(s.startTime), v) + 1);
|
|
1710
|
-
}
|
|
1711
|
-
e.dateFormat = g;
|
|
1712
|
-
} else
|
|
1713
|
-
J(x, la) ? e.fieldValue = i && h ? h[i] : !i && h ? h.value : Q(d) : J(x, "select") && Array.isArray(Q(d)) ? e.fieldValue = Q(d).join(",") : e.fieldValue = Q(d);
|
|
1714
|
-
}
|
|
1715
|
-
const mt = (e) => {
|
|
1716
|
-
var t;
|
|
1717
|
-
if (e) {
|
|
1718
|
-
const o = Array.isArray(e) ? xt(e) : [xt(e)];
|
|
1719
|
-
let n = "", a = [];
|
|
1720
|
-
const i = [], r = [], l = [];
|
|
1721
|
-
for (const p of o) {
|
|
1722
|
-
if (p.defaultCode && (p.label = p.columnName, delete p.defaultCode), p.type === "CUSTOM" && (a = p.customOrderColumns), n = p.type, i.push(p.label), (t = p.columnName) === null || t === void 0 ? void 0 : t.includes("_ecanrepeat_")) {
|
|
1723
|
-
const c = p.columnName.split("_ecanrepeat_");
|
|
1724
|
-
r.push(c[0]);
|
|
1725
|
-
} else
|
|
1726
|
-
r.push(p.columnName);
|
|
1727
|
-
l.push(p.order);
|
|
1728
|
-
}
|
|
1729
|
-
return n !== "CUSTOM" && (i == null ? void 0 : i.length) > 1 && (n = "COMBINATION"), n === "CUSTOM" ? { label: i.join(","), columnName: r.join(","), type: n, customOrderColumns: a } : { label: i.join(","), columnName: r.join(","), order: l.join(","), type: n };
|
|
1730
|
-
}
|
|
1731
|
-
return e;
|
|
1732
|
-
}, An = (e) => {
|
|
1733
|
-
const { sortCpnts: t = [] } = e;
|
|
1734
|
-
let o, n = "";
|
|
1735
|
-
for (const a of t) {
|
|
1736
|
-
const i = wt(a) || {}, { type: r, RECORD: l } = i;
|
|
1737
|
-
if (J(r, "image") && J(l == null ? void 0 : l.value, ["asc", "desc"])) {
|
|
1738
|
-
n = l.value.toUpperCase();
|
|
1739
|
-
break;
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
return n && (o = { label: e.label, columnName: e.name, order: n, type: "NORMAL" }), o;
|
|
1743
|
-
}, Ua = (e, t = {}) => {
|
|
1744
|
-
var o, n, a, i, r, l, p, c;
|
|
1745
|
-
const { graphicConfig: u, type: s, globalModel: d, isGroupTable: y = !1, allComponentList: x } = e;
|
|
1746
|
-
d && (vn = d), x != null && x.length && (Sn = x);
|
|
1747
|
-
const b = J(s, "pivottable");
|
|
1748
|
-
let h, { source: g, dataViewId: S, plugin: f = "1", layer: v, chartType: L, classificationList: N = [], rowHeaderList: E = [], dimensionList: A = [], seriesList: w = [], leftAxisList: M = [], rightAxisList: $ = [], queryColumnList: O = [], indexLibColumns: T = [], indicators: m = [], specialIndicators: _ = [], controlList: C = [], formFields: j = {}, variableList: k = [], variableConditions: F = [], dataSourceId: R = "", idxLibMode: W, preview: Z = !1, edvDataSetId: oe, compositeIndicator: Oe } = u || {}, q = [];
|
|
1749
|
-
if ((u == null ? void 0 : u.pageMode) === "design" ? (q = ((o = u.sqlConditions) !== null && o !== void 0 ? o : []).map((I) => {
|
|
1750
|
-
const V = {};
|
|
1751
|
-
if (se(I, "globalCondition") || I.join || (V.globalCondition = !0), !I.join) {
|
|
1752
|
-
const D = I.rule || "EQUAL";
|
|
1753
|
-
V.rule = D === "NONE" ? "EQUAL" : D;
|
|
1754
|
-
}
|
|
1755
|
-
return Object.assign(Object.assign({}, I), V);
|
|
1756
|
-
}), F != null && F.length && (q = q.concat(F))) : (q = ca(u), k != null && k.length && (q = q.concat(function(I) {
|
|
1757
|
-
const V = [];
|
|
1758
|
-
if (I != null && I.length) {
|
|
1759
|
-
for (const D of I)
|
|
1760
|
-
if (D.variableName) {
|
|
1761
|
-
const G = ct(D.id, D.keyName), z = { variateName: D.variableName, globalCondition: !1, valueType: D.variableType, alias: G || "" };
|
|
1762
|
-
At(z, D.id, { dateFormat: D.format, prop: D.dateTypeValue, keyName: G, operateType: D.operateType, operateMode: D.operateMode, operateValue: D.operateValue }), D.dataType === "" && (z.fieldValue = D.variableValue), D.format && (z.dateFormat = D.format), D.label && (z.label = D.label), V.push(z);
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
return V;
|
|
1766
|
-
}(k)))), q == null ? void 0 : q.length) {
|
|
1767
|
-
const I = q.filter((D) => D.globalCondition), V = q.filter((D) => !D.globalCondition);
|
|
1768
|
-
(I == null ? void 0 : I.length) > 1 && (q = [{ join: "&&", conditions: I }, ...V]);
|
|
1769
|
-
}
|
|
1770
|
-
q != null && q.length && (q = $e(q, "1")), v == null && (v = J(s, ["table", "card"]) || J(s, ["list", "circulate"]) && (N == null ? void 0 : N.length) > 1 ? "1" : J(s, ["select", "checkbox", "radio", "treeSelect"]) ? "3" : J(s, ["indexPanel"]) ? "4" : "2"), J(s, ["indexPanel"]) && (f = "3");
|
|
1771
|
-
const Le = [];
|
|
1772
|
-
let ue, ie = "";
|
|
1773
|
-
if (Array.isArray(N) && N.length > 0 && (!["ecanList", "ecanCirculate"].includes(s) || (N == null ? void 0 : N.length) === 1)) {
|
|
1774
|
-
const I = N.length;
|
|
1775
|
-
for (let V = 0; V < I; V++) {
|
|
1776
|
-
const D = N[V] || {}, { label: G = "", name: z = "", show: re = !1, sort: de, customGroup: Se, conditions: H, dateFormat: U, typeGuid: te = "", truncations: X = [] } = D;
|
|
1777
|
-
if (re || I === 1) {
|
|
1778
|
-
ie = te, h = { label: G.trim(), columnName: z, show: re, sort: An(D) || mt(de) || de, customGroup: Se, conditions: $e(H), typeGuid: te }, U && (h.dateFormat = U), z !== "the_date" || h.dateFormat || (h.dateFormat = "YYYY-MM-DD");
|
|
1779
|
-
const B = {};
|
|
1780
|
-
if (Array.isArray(X) && X.length > 0) {
|
|
1781
|
-
const ae = X.length;
|
|
1782
|
-
for (let he = 0; he < ae; he++) {
|
|
1783
|
-
const ye = X[he] || {}, { rule: be = "", num: Ce = 0, name: Ee = "" } = ye;
|
|
1784
|
-
be && Ce && (B.num = Ce, B.rule = be, Ee && (B.otherGroupName = Ee));
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
if (!((n = Object.keys(B)) === null || n === void 0) && n.length && (h.truncation = B), !J(s, ["scatter", "valueline"]))
|
|
1788
|
-
break;
|
|
1789
|
-
Le.push(h);
|
|
1790
|
-
}
|
|
1791
|
-
}
|
|
1792
|
-
}
|
|
1793
|
-
if (Array.isArray(w) && w.length > 0) {
|
|
1794
|
-
const I = w.length;
|
|
1795
|
-
for (let V = 0; V < I; V++) {
|
|
1796
|
-
const D = w[V] || {}, { label: G = "", name: z = "", show: re = !1, sort: de, customGroup: Se, conditions: H, typeGuid: U, dateFormat: te = "" } = D;
|
|
1797
|
-
if (re || I === 1) {
|
|
1798
|
-
ue = { label: G.trim(), columnName: z, show: re, sort: mt(de), customGroup: Se, conditions: $e(H), typeGuid: U }, te ? ue.dateFormat = te : z === "the_date" && (ue.dateFormat = "YYYY-MM-DD");
|
|
1799
|
-
break;
|
|
1800
|
-
}
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
const ee = [];
|
|
1804
|
-
M == null || M.forEach((I) => {
|
|
1805
|
-
I.location = "LEFT", ee.push(yt(I, h));
|
|
1806
|
-
}), $ == null || $.forEach((I) => {
|
|
1807
|
-
I.location = "RIGHT", ee.push(yt(I, h));
|
|
1808
|
-
});
|
|
1809
|
-
let xe = m;
|
|
1810
|
-
t != null && t.pivotTableCal && (xe = ((a = t.pivotTableCal) === null || a === void 0 ? void 0 : a.indicators) || []), xe == null || xe.forEach((I) => {
|
|
1811
|
-
I.location = "LEFT", ee.push(yt(I, h));
|
|
1812
|
-
});
|
|
1813
|
-
const ve = [];
|
|
1814
|
-
_ == null || _.forEach((I) => {
|
|
1815
|
-
I.location = "LEFT", ve.push(yt(I, h));
|
|
1816
|
-
});
|
|
1817
|
-
const Ne = [];
|
|
1818
|
-
["ecanList", "ecanCirculate"].includes(s) && (N == null ? void 0 : N.length) > 1 && (O = N), t != null && t.pivotTableCal && (O = ((i = t.pivotTableCal) === null || i === void 0 ? void 0 : i.dimensions) || []), O == null || O.forEach((I) => {
|
|
1819
|
-
const { label: V, name: D, location: G, show: z, indexCode: re, sort: de, typeGuid: Se, indexCodeNum: H, dateFormat: U, conditions: te } = I;
|
|
1820
|
-
let X = mt(de);
|
|
1821
|
-
if (t.sort) {
|
|
1822
|
-
const { field: ae, order: he } = t.sort;
|
|
1823
|
-
let ye = ee.find((be) => be.label === ae);
|
|
1824
|
-
ye || V !== ae || (ye = I), ye && (X = { columnName: ye.columnName, label: t.sort.field, order: he.toUpperCase(), type: "NORMAL" });
|
|
1825
|
-
}
|
|
1826
|
-
const B = { label: V, columnName: D, location: G, show: z, sort: X, calcType: "COLUMN", hrpIndexCode: re, hrpIndexCodeNum: H, conditions: $e(te), typeGuid: Se };
|
|
1827
|
-
U && (B.dateFormat = U), D !== "the_date" || B.dateFormat || (B.dateFormat = "YYYY-MM-DD"), Ne.push(B);
|
|
1828
|
-
});
|
|
1829
|
-
const Ze = [];
|
|
1830
|
-
["ecanTable"].includes(s) && u.isIndexSet && T.forEach((I) => {
|
|
1831
|
-
const V = { label: I.label, calcType: I.calcType, show: I.show };
|
|
1832
|
-
I.formula && (V.formula = I.formula), Ze.push(V);
|
|
1833
|
-
});
|
|
1834
|
-
let Xe = [], Ge = [];
|
|
1835
|
-
if (Array.isArray(E) && E.length > 0 ? Ge = E : Array.isArray(A) && A.length > 0 && (Ge = A), Ge == null ? void 0 : Ge.length) {
|
|
1836
|
-
const I = Ge.length;
|
|
1837
|
-
for (let V = 0; V < I; V++) {
|
|
1838
|
-
const D = Ge[V] || {}, { label: G = "", name: z = "", show: re = !1, sort: de, customGroup: Se, conditions: H, truncations: U, typeGuid: te = "", dateFormat: X } = D;
|
|
1839
|
-
let B = mt(de);
|
|
1840
|
-
if (t.sort) {
|
|
1841
|
-
const { field: ye, order: be } = t.sort;
|
|
1842
|
-
let Ce = ee.find((Ee) => Ee.label === ye);
|
|
1843
|
-
Ce || D.label !== ye || (Ce = D), Ce && (B = { columnName: Ce.columnName, label: t.sort.field, order: be.toUpperCase(), type: "NORMAL" });
|
|
1844
|
-
}
|
|
1845
|
-
const ae = { label: G.trim(), columnName: z, show: re, sort: B, customGroup: Se, conditions: $e(H), typeGuid: te };
|
|
1846
|
-
X && (ae.dateFormat = X), z !== "the_date" || ae.dateFormat || (ae.dateFormat = "YYYY-MM-DD");
|
|
1847
|
-
const he = {};
|
|
1848
|
-
if (Array.isArray(U) && U.length > 0) {
|
|
1849
|
-
const ye = U.length;
|
|
1850
|
-
for (let be = 0; be < ye; be++) {
|
|
1851
|
-
const Ce = U[be] || {}, { rule: Ee = "", num: Qt = 0, name: Zt = "" } = Ce;
|
|
1852
|
-
Ee && Qt && (he.num = Qt, he.rule = Ee, Zt && (he.otherGroupName = Zt));
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
!((r = Object.keys(he)) === null || r === void 0) && r.length && (ae.truncation = he), Xe.push(ae);
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
let Kt, Tt = [];
|
|
1859
|
-
const ut = [];
|
|
1860
|
-
if (t != null && t.pivotTableCal) {
|
|
1861
|
-
let I = [];
|
|
1862
|
-
const { calc: V = [], filter: D = [], truncations: G = [], sorts: z = [], aggregateMethod: re = [], rowDimensionKeys: de = [], colDimensionKeys: Se = [] } = t.pivotTableCal;
|
|
1863
|
-
if (ee.push(...V), D == null ? void 0 : D.length) {
|
|
1864
|
-
const H = function U(te) {
|
|
1865
|
-
const X = [];
|
|
1866
|
-
for (const B of te)
|
|
1867
|
-
B.conditions ? X.push(...U(B.conditions)) : B.conditionKey === "the_date" && X.push(B);
|
|
1868
|
-
return X;
|
|
1869
|
-
}(C);
|
|
1870
|
-
for (const U of D) {
|
|
1871
|
-
const { type: te } = U, X = oo(U, ["type"]);
|
|
1872
|
-
te === "indicators" ? I = ee : te === "dimension" && (I = Ne);
|
|
1873
|
-
const B = I.find((ae) => ae.columnName === U.fieldName && ae.label === U.label);
|
|
1874
|
-
if (B) {
|
|
1875
|
-
if (te === "indicators")
|
|
1876
|
-
B.filter = { rule: X.rule, fieldValue: X.fieldValue };
|
|
1877
|
-
else if (te === "dimension") {
|
|
1878
|
-
let ae = !0;
|
|
1879
|
-
X.fieldName === "the_date" && (H == null ? void 0 : H.length) === 2 && (ae = !1, ut.push(X)), ae && (B.conditions || (B.conditions = []), B.conditions.push(X));
|
|
1880
|
-
}
|
|
1881
|
-
}
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
if (G != null && G.length)
|
|
1885
|
-
for (const H of G) {
|
|
1886
|
-
const U = Ne.find((te) => te.label === H.key);
|
|
1887
|
-
U && (U.truncation = { num: H.num, rule: H.rule });
|
|
1888
|
-
}
|
|
1889
|
-
if (z != null && z.length)
|
|
1890
|
-
for (const H of z) {
|
|
1891
|
-
const { fieldType: U, columnData: te } = H, X = oo(H, ["fieldType", "columnData"]);
|
|
1892
|
-
U === "indicators" ? (I = ee, Kt = te) : U === "dimension" && (I = Ne);
|
|
1893
|
-
const B = I.find((ae) => ae.label === X.label);
|
|
1894
|
-
B && (B.sort = Object.assign(Object.assign({}, X), { columnName: B.columnName }));
|
|
1895
|
-
}
|
|
1896
|
-
if (!((l = Object.keys(re)) === null || l === void 0) && l.length)
|
|
1897
|
-
for (const H in re) {
|
|
1898
|
-
const U = Ne.find((te) => te.label === H);
|
|
1899
|
-
U && (!((p = re[H]) === null || p === void 0) && p.length) && (U.aggregateMethod = re[H]);
|
|
1900
|
-
}
|
|
1901
|
-
Xe = [], Tt = [];
|
|
1902
|
-
for (const H of Ne)
|
|
1903
|
-
de.includes(H.columnName) ? Xe.push(H) : Se.includes(H.columnName) && Tt.push(H);
|
|
1904
|
-
}
|
|
1905
|
-
if (J(s, ["text", "proportion", "counter", "gauge"]) ? L = "zb" : J(s, ["valueline"]) ? L = "valueline" : J(s, ["indexPanel"]) ? L = "indexPanel" : J(s, ["boxplot"]) ? L = "boxplot" : J(s, ["budget"]) && (L = "budget"), y || s === "card") {
|
|
1906
|
-
if (Xe.length === 0 || ee.length === 0)
|
|
1907
|
-
return;
|
|
1908
|
-
L = "grouptable";
|
|
1909
|
-
} else if (v === "1" && !Ne.length && !Ze.length || ["2", "4"].includes(v) && ee.length === 0 || !(v !== "3" || (ie || g === "EDV_DATA_SET") && j.labelField && j.valueField) || v === "3" && s === "ecanDataSelect" && ee.length === 0)
|
|
1910
|
-
return;
|
|
1911
|
-
let _t;
|
|
1912
|
-
if (A != null && A.length && (v = "1", L = "grouptable"), b || J(s, ["scatter", "valueline"]) || !(!((c = Object.keys(j)) === null || c === void 0) && c.length)) {
|
|
1913
|
-
let I = {};
|
|
1914
|
-
I = J(s, ["scatter", "valueline"]) ? { classifications: Le } : { classification: h }, Ze != null && Ze.length && (I.indexLibColumns = Ze, I.isIndexSet = !0), ve != null && ve.length && (I.specialIndicatorList = ve), J(s, "table") && u.isIndexSet && (I.compositeIndicator = Oe);
|
|
1915
|
-
const V = q.map((D) => {
|
|
1916
|
-
const { fieldValue: G } = D, z = {};
|
|
1917
|
-
return G && Array.isArray(G) && (z.fieldValue = JSON.stringify(G)), Object.assign(Object.assign({}, D), z);
|
|
1918
|
-
});
|
|
1919
|
-
ut != null && ut.length && function D(G) {
|
|
1920
|
-
for (const z of G)
|
|
1921
|
-
if (z.sqlConditions)
|
|
1922
|
-
D(z.sqlConditions);
|
|
1923
|
-
else if (z.fieldName === "the_date") {
|
|
1924
|
-
const re = ut.find((de) => de.prop === z.prop);
|
|
1925
|
-
re && (z.fieldValue = re.fieldValue);
|
|
1926
|
-
}
|
|
1927
|
-
}(V), _t = Object.assign({ url: "/diagram", source: g, dataViewId: S, plugin: b ? "5" : f, layer: v, chartType: b ? "pivot-table" : L, series: ue, indicatorList: ee, queryColumns: y ? [] : Ne, pageFlag: !0, edvDataSetId: oe || "", sqlConditions: V, idxLibMode: W, dataSourceId: R, preview: Z, rowHeaders: Xe, keyName: e.keyName, columnData: Kt, columnHeaders: Tt }, I);
|
|
1928
|
-
} else {
|
|
1929
|
-
const I = vt(C).find((G) => G.conditionKey === "parentCode"), V = {};
|
|
1930
|
-
if (I) {
|
|
1931
|
-
const G = wt(I.id) || {};
|
|
1932
|
-
if (!(G != null && G.itemCodes))
|
|
1933
|
-
return;
|
|
1934
|
-
V.parentItemCodes = G.itemCodes;
|
|
1935
|
-
}
|
|
1936
|
-
s === "ecanDataSelect" && (V.indicatorList = ee.filter((G) => G.show)), g === "EDV_DATA_SET" && (V.edvDataSetId = oe), h != null && h.sort && (V.sort = h.sort);
|
|
1937
|
-
let D = "normalSelect";
|
|
1938
|
-
s === "ecanDataSelect" ? D = "normalSelectData" : s === "ecanTreeSelect" && (D = "treeSelect"), _t = Object.assign({ url: "/diagram/formData", source: g, dataViewId: S, plugin: "4", layer: v, chartType: s === "ecanTreeSelect" ? "treeSelect" : "normalSelect", rangeIndexTypeGuid: ie, type: D, labelField: j.labelField, valueField: j.valueField, parentField: j.parentField, sqlConditions: q, idxLibMode: "WITH_DATE_DIM_TABLE", dataSourceId: R, keyName: e.keyName }, V);
|
|
1939
|
-
}
|
|
1940
|
-
return _t;
|
|
1941
|
-
}, ua = (e = [], t, o = !1) => {
|
|
1942
|
-
let { name: n = "name", types: a = [] } = t || {};
|
|
1943
|
-
n = (n == null ? void 0 : n.trim()) || n;
|
|
1944
|
-
const i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), l = e.length, p = a.length;
|
|
1945
|
-
if (l !== 1 || o)
|
|
1946
|
-
for (let s = 0; s < l; s++) {
|
|
1947
|
-
const d = e[s], y = d[n];
|
|
1948
|
-
i.add(y);
|
|
1949
|
-
for (let x = 0; x < p; x++) {
|
|
1950
|
-
const b = a[x], { label: h, value: g } = b, S = Object.assign(Object.assign({}, d), { value: d[g] });
|
|
1951
|
-
if (r.has(h)) {
|
|
1952
|
-
const f = r.get(h);
|
|
1953
|
-
f.push(S), r.set(h, f);
|
|
1954
|
-
} else
|
|
1955
|
-
r.set(h, [S]);
|
|
1956
|
-
}
|
|
1957
|
-
}
|
|
1958
|
-
else {
|
|
1959
|
-
const s = [];
|
|
1960
|
-
for (let y = 0; y < p; y++) {
|
|
1961
|
-
const x = a[y], { label: b, value: h } = x, g = Object.assign(Object.assign({}, e[0]), { value: e[0][h] });
|
|
1962
|
-
i.add(b), s.push(g);
|
|
1963
|
-
}
|
|
1964
|
-
const d = e[0][n] || "";
|
|
1965
|
-
r.set(d, s);
|
|
1966
|
-
}
|
|
1967
|
-
const c = Array.from(i), u = [];
|
|
1968
|
-
for (const [s, d] of r)
|
|
1969
|
-
u.push({ name: s, data: d });
|
|
1970
|
-
return { dimensions: c, dataset: u };
|
|
1971
|
-
}, da = (e, t) => {
|
|
1972
|
-
let { name: o = "name", value: n = "value", type: a = "type" } = t || {};
|
|
1973
|
-
o = o == null ? void 0 : o.trim(), n = n == null ? void 0 : n.trim(), a = a == null ? void 0 : a.trim();
|
|
1974
|
-
const i = /* @__PURE__ */ new Map(), r = e.length;
|
|
1975
|
-
for (let c = 0; c < r; c++) {
|
|
1976
|
-
const u = e[c], s = u[o] || "", d = u[n] || "", y = u[a] || "";
|
|
1977
|
-
if (i.has(y)) {
|
|
1978
|
-
const x = i.get(y);
|
|
1979
|
-
x.push(Object.assign({ name: s, value: d }, u)), i.set(y, x);
|
|
1980
|
-
} else
|
|
1981
|
-
i.set(y, [Object.assign({ name: s, value: d }, u)]);
|
|
1982
|
-
}
|
|
1983
|
-
const l = [], p = [];
|
|
1984
|
-
for (const [c, u] of i)
|
|
1985
|
-
if (p.push({ name: c, data: u }), u == null ? void 0 : u.length)
|
|
1986
|
-
if (l.length)
|
|
1987
|
-
for (const s of u)
|
|
1988
|
-
l.includes(s.name) || l.push(s.name);
|
|
1989
|
-
else
|
|
1990
|
-
l.push(...u.map((s) => s.name));
|
|
1991
|
-
return { dimensions: l, dataset: p };
|
|
1992
|
-
}, qe = (e, t) => {
|
|
1993
|
-
var o;
|
|
1994
|
-
if (e == null)
|
|
1995
|
-
return t;
|
|
1996
|
-
const n = e.match(/\{.*\}/g);
|
|
1997
|
-
if (n == null || n.length === 0)
|
|
1998
|
-
return t;
|
|
1999
|
-
const a = n.length;
|
|
2000
|
-
for (let i = 0; i < a; i++) {
|
|
2001
|
-
const r = n[i];
|
|
2002
|
-
if (r == null || r === "")
|
|
2003
|
-
break;
|
|
2004
|
-
let l = (o = r.slice(1, -1)) === null || o === void 0 ? void 0 : o.trim();
|
|
2005
|
-
l = l == null ? void 0 : l.replace(/value/g, t);
|
|
2006
|
-
try {
|
|
2007
|
-
let p = l;
|
|
2008
|
-
(/\(.*\)/g.test(l) || /[+/\\*]/g.test(l)) && (p = xn(l)), e = e.replace(r, p);
|
|
2009
|
-
} catch {
|
|
2010
|
-
e = e.replace(r, l);
|
|
2011
|
-
}
|
|
2012
|
-
}
|
|
2013
|
-
return e;
|
|
2014
|
-
};
|
|
2015
|
-
function fa(e) {
|
|
2016
|
-
return e.isShowMarkLine ? { markLine: { data: [{ type: e.markLineType }] } } : {};
|
|
2017
|
-
}
|
|
2018
|
-
const pa = (e, t, o) => {
|
|
2019
|
-
const n = e.yAxisLabelFormatter, a = e.xAxisLabelFormatter, { dimensions: i = [], dataset: r = [] } = t, l = Pe(() => {
|
|
2020
|
-
const { gradientShow: c, gradientColors: u, gradientOffset: s, barBorderRadius: d } = e, y = r, x = y.length, b = [];
|
|
2021
|
-
for (let h = 0; h < x; h++) {
|
|
2022
|
-
const g = Object.assign(Object.assign({}, y[h]), { type: "bar", barWidth: e.barWidth, showBackground: e.showBarBackground }), { isStack: S, stackColumns: f } = e;
|
|
2023
|
-
if (S && f.includes(y[h].name || !f) && (g.stack = "stack"), g.label = { show: e.labelShow, fontSize: e.labelFontSize, position: e.labelPosition, color: e.labelColor, width: e.labelWidth, overflow: e.labelOverflow, formatter: (v) => {
|
|
2024
|
-
let L = "", N = e.labelFormatter;
|
|
2025
|
-
N === "" && (N = "{c}");
|
|
2026
|
-
const { seriesName: E, name: A, value: w, data: M } = v || {};
|
|
2027
|
-
return L += Ye(N, { textData: Object.assign({ name: A, value: w, a: E, b: A, c: w || 0 }, M) }, { useNewline: !0, useSpace: !0 }), L;
|
|
2028
|
-
} }, g.itemStyle = {}, c && (g.itemStyle = { color: { x: e.isUseHorizontalAxis ? 1 : 0, y: 0, x2: 0, y2: e.isUseHorizontalAxis ? 0 : 1, colorStops: [{ offset: 0, color: e.colors[h] }, { offset: s, color: u[h] }, { offset: 1, color: u[h] }] } }), d) {
|
|
2029
|
-
const v = d.split(",");
|
|
2030
|
-
if (v != null && v.length) {
|
|
2031
|
-
const L = [];
|
|
2032
|
-
for (const N of v) {
|
|
2033
|
-
const E = parseFloat(N);
|
|
2034
|
-
isNaN(E) || L.push(E);
|
|
2035
|
-
}
|
|
2036
|
-
g.itemStyle.barBorderRadius = L;
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
e.isShowMarkLine && (g.markLine = { data: [{ type: e.markLineType }] }), b.push(g);
|
|
2040
|
-
}
|
|
2041
|
-
return b;
|
|
2042
|
-
}), p = Pe(() => i.map((c) => {
|
|
2043
|
-
let u = {};
|
|
2044
|
-
return u = c && typeof c == "object" ? Object.assign(Object.assign({}, c), { textStyle: { fontSize: o } }) : { value: c, textStyle: { fontSize: o } }, u;
|
|
2045
|
-
}));
|
|
2046
|
-
return { tooltip: { trigger: "axis", show: e.tooltipShow, formatter: (c) => {
|
|
2047
|
-
const u = c.length;
|
|
2048
|
-
let s = "", d = e.tooltipFormatter;
|
|
2049
|
-
d === "" && (d = "{marker} {a} {c}");
|
|
2050
|
-
for (let y = 0; y < u; y++) {
|
|
2051
|
-
const { marker: x, seriesName: b, name: h, value: g, data: S } = c[y] || {};
|
|
2052
|
-
if (y === 0) {
|
|
2053
|
-
let f = h;
|
|
2054
|
-
typeof h != "string" || h[0] !== "0" || isNaN(+h) || (f = (+h).toString()), s += `${qe(a, f)}<br/>`;
|
|
2055
|
-
}
|
|
2056
|
-
s += Ye(d, { textData: Object.assign({ marker: x, name: h, value: g, Qfw: ra, a: b, b: h, c: g || 0 }, S) }, { useNewline: !0, useSpace: !0 }), s += "<br/>";
|
|
2057
|
-
}
|
|
2058
|
-
return s;
|
|
2059
|
-
}, textStyle: { color: e.tooltipTextStyleColor, fontSize: o }, position: e.tooltipPosition || void 0, backgroundColor: e.tooltipBackgroundColor || "#fff" }, legend: { type: e.legendScroll ? "scroll" : "plain", width: e.legendWidth, height: e.legendHeight, show: e.legendShow, orient: e.legendOrient, top: e.legendTop, left: e.legendLeft, textStyle: { rich: { text: { width: e.legendTextWidth, color: e.legendTextStyleColor, fontSize: e.legendFontSize } } }, itemHeight: e.legendItemHeight, itemWidth: e.legendItemWidth, itemGap: e.legendItemGap, data: r.map((c, u) => ({ name: c.name, itemStyle: { color: e.colors[u] }, icon: e.legendType })), formatter: (c) => ((u = "", s) => {
|
|
2060
|
-
var d;
|
|
2061
|
-
const y = u.match(/\{(.+?)\}/g), x = ((d = u.split(`
|
|
2062
|
-
`)) === null || d === void 0 ? void 0 : d.length) - 1;
|
|
2063
|
-
let b = "";
|
|
2064
|
-
if (x)
|
|
2065
|
-
for (let g = 0; g < x; g++)
|
|
2066
|
-
b += `
|
|
2067
|
-
`;
|
|
2068
|
-
let h = u;
|
|
2069
|
-
if (y != null && y.length) {
|
|
2070
|
-
for (const g of y) {
|
|
2071
|
-
const S = Ye(g, { textData: s }, { useNewline: !1, useSpace: !1 });
|
|
2072
|
-
S && (h = h.replace(g, S));
|
|
2073
|
-
}
|
|
2074
|
-
return `${b}{text|${h}}`;
|
|
2075
|
-
}
|
|
2076
|
-
return u;
|
|
2077
|
-
})(e.legendFormatter, { name: c }) }, xAxis: { type: e.isUseHorizontalAxis ? "value" : "category", data: e.isUseHorizontalAxis ? null : Q(p), inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse, minInterval: e.xAxisMinInterval, splitLine: { show: e.xAxisSplitLineShow, lineStyle: { color: e.xAxisSplitLineStyleColor, type: e.xAxisSplitLineType }, interval: e.xAxisSplitLineInterval }, splitArea: { show: e.xAxisSplitAreaShow }, axisLabel: { color: e.xAxisLabelColor, interval: e.xAxisLabelInterval || 0, rotate: e.xAxisLabelRotate, width: e.xAxisLabelWidth, overflow: e.xAxisLabelOverflow, fontSize: e.xAxisLabelFontSize, formatter: (c) => (typeof c != "string" || c[0] !== "0" || isNaN(+c) || (c = (+c).toString()), qe(a, c)) }, axisLine: { show: e.xAxisLineShow, lineStyle: { color: e.xAxisLineStyleColor } }, axisTick: { show: e.xAxisTickShow }, name: e.xAxisName, nameTextStyle: { fontSize: e.xAxisLabelFontSize, color: e.xAxisLabelColor, align: "left" }, max: e.xAxisMaxValue || null }, yAxis: { type: e.isUseHorizontalAxis ? "category" : "value", data: e.isUseHorizontalAxis ? Q(i) : null, inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse, minInterval: e.yAxisMinInterval, splitLine: { show: e.yAxisSplitLineShow, lineStyle: { color: e.yAxisSplitLineStyleColor, type: e.yAxisSplitLineType } }, splitArea: { show: e.yAxisSplitAreaShow }, axisLabel: { show: e.yAxisLabelShow, fontSize: e.yAxisLabelFontSize, color: e.yAxisLabelColor, rotate: e.yAxisLabelRotate, width: e.yAxisLabelWidth, overflow: e.yAxisLabelOverflow, formatter: (c) => qe(n, c) }, axisLine: { show: e.yAxisLineAlwaysDisplay, lineStyle: { color: e.yAxisLineStyleColor } }, name: e.yAxisName, nameTextStyle: { fontSize: e.yAxisLabelFontSize, color: e.yAxisLabelColor, align: "right" }, max: e.yAxisMaxValue || null }, series: Q(l) };
|
|
2078
|
-
}, ha = (e, t, o) => {
|
|
2079
|
-
const n = e.yAxisLabelFormatter, a = e.xAxisLabelFormatter, { dimensions: i = [], dataset: r = [] } = t, l = Pe(() => i.map((c) => {
|
|
2080
|
-
let u = {};
|
|
2081
|
-
return u = c && typeof c == "object" ? Object.assign(Object.assign({}, c), { textStyle: { fontSize: o } }) : { value: c, textStyle: { fontSize: o } }, u;
|
|
2082
|
-
})), p = Pe(() => {
|
|
2083
|
-
const c = [], u = r.length;
|
|
2084
|
-
for (let s = 0; s < u; s++) {
|
|
2085
|
-
const d = {};
|
|
2086
|
-
e.shadowColor && (d.shadowColor = e.shadowColor, d.shadowBlur = e.shadowBlur, d.shadowOffsetY = e.shadowOffsetY, d.shadowOffsetX = e.shadowOffsetX), c.push(Object.assign(Object.assign(Object.assign({ type: "line" }, r[s]), { symbolSize: e.symbolSize, smooth: e.smooth, areaStyle: { color: e.areaGradientShow ? { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: e.colors[s] }, { offset: 1, color: e.areaGradientColor || "transparent" }], global: !1 } : e.colors[s], opacity: e.areaStyleOpacity }, lineStyle: Object.assign({ width: e.lineStyleWidth }, d) }), fa(e)));
|
|
2087
|
-
}
|
|
2088
|
-
return c;
|
|
2089
|
-
});
|
|
2090
|
-
return { tooltip: { trigger: "axis", show: e.tooltipShow, formatter: (c) => {
|
|
2091
|
-
const u = c.length;
|
|
2092
|
-
let s = "", d = e.tooltipFormatter;
|
|
2093
|
-
d === "" && (d = "{marker} {a} {c}");
|
|
2094
|
-
for (let y = 0; y < u; y++) {
|
|
2095
|
-
const { marker: x, seriesName: b, name: h, value: g, data: S } = c[y] || {};
|
|
2096
|
-
y === 0 && (s += `${h}<br/>`), s += Ye(d, { textData: Object.assign({ marker: x, name: h, value: g, a: b, b: h, c: g }, S) }, { useNewline: !0, useSpace: !0 }), s += "<br/>";
|
|
2097
|
-
}
|
|
2098
|
-
return s;
|
|
2099
|
-
}, textStyle: { color: e.tooltipTextStyleColor, fontSize: o.value }, position: e.tooltipPosition || void 0, backgroundColor: e.tooltipBackgroundColor || "#fff" }, xAxis: { name: e.xAxisName, type: "category", data: Q(l), minInterval: e.xAxisMinInterval, splitLine: { show: e.xAxisSplitLineShow, lineStyle: { color: e.xAxisSplitLineStyleColor } }, axisLabel: { color: e.xAxisLabelColor, interval: e.xAxisLabelInterval || 0, rotate: e.xAxisLabelRotate, width: e.xAxisLabelWidth, overflow: e.xAxisLabelOverflow, formatter: (c) => qe(a, c) }, axisLine: { lineStyle: { color: e.xAxisLineStyleColor } }, axisTick: { show: e.xAxisTickShow } }, yAxis: { type: "value", name: e.yAxisName, minInterval: e.yAxisMinInterval, splitLine: { show: e.yAxisSplitLineShow, lineStyle: { color: e.yAxisSplitLineStyleColor } }, axisLabel: { fontSize: o, color: e.yAxisLabelColor, formatter: (c) => qe(n, c) }, axisLine: { show: e.yAxisLineAlwaysDisplay, lineStyle: { color: e.yAxisLineStyleColor } } }, legend: { show: e.legendShow, orient: e.legendOrient, top: e.legendTop, left: e.legendLeft, textStyle: { fontSize: o } }, series: Q(p) };
|
|
2100
|
-
}, ya = (e, t, o) => {
|
|
2101
|
-
const { dataset: n = [] } = t;
|
|
2102
|
-
let { data: a = [] } = n[0] || {};
|
|
2103
|
-
if (Array.isArray(e.colors)) {
|
|
2104
|
-
const r = e.isUseLabelColors, l = e.colors;
|
|
2105
|
-
a = a.map((p, c) => Object.assign({ label: r ? { color: l[c] } : {} }, p));
|
|
2106
|
-
}
|
|
2107
|
-
return { title: { text: e.titleText, subtext: e.titleSubtext, textStyle: { fontSize: e.titleFontSize, fontWeight: e.fontWeight, color: e.titleColor }, left: e.textAlign || "center" }, tooltip: { show: e.tooltipShow, trigger: e.tooltipTrigger, formatter: (r) => {
|
|
2108
|
-
const { marker: l, seriesName: p, name: c, value: u, percent: s, data: d } = r || {};
|
|
2109
|
-
return Ye(e.tooltipFormatter, { textData: Object.assign({ marker: l, name: c, value: u, percent: s, a: p, b: c, c: u, d: s }, d) }, { useNewline: !0, useSpace: !0 });
|
|
2110
|
-
}, textStyle: { color: e.tooltipTextStyleColor || "#333" }, backgroundColor: e.tooltipBackgroundColor || "#fff", borderColor: e.tooltipBorderColor || "#eee" }, legend: { show: e.legendShow, orient: e.legendOrient, top: e.legendTop, left: e.legendLeft, textStyle: { color: e.legendTextStyleColor, fontSize: o === 18 ? o : e.labelFontSize } }, series: [{ data: a, type: "pie", radius: [e.innerRadius, e.outerRadius], center: [e.centerLeft, e.centerTop], roseType: e.roseType, avoidLabelOverlap: !1, minAngle: e.minAngle, label: { show: e.labelPosition !== "center" && e.labelShow, color: e.labelColor, fontSize: o === 18 ? o : e.labelFontSize, position: e.labelPosition, formatter: (i = e.labelFormatter, i.replace(/\\n/g, `
|
|
2111
|
-
`)) }, labelLine: { show: e.labelLineShow, length: e.labelLineLength, length2: e.labelLineLength2 }, emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0, 0, 0, 0.5)" }, label: {} } }] };
|
|
2112
|
-
var i;
|
|
2113
|
-
}, ma = (e, t, o) => {
|
|
2114
|
-
const { dimensions: n = [], dataset: a = [] } = t, i = Pe(() => n.map((p) => {
|
|
2115
|
-
let c = {};
|
|
2116
|
-
return c = p && typeof p == "object" ? Object.assign(Object.assign({}, p), { textStyle: { fontSize: o } }) : { value: p, textStyle: { fontSize: o } }, c;
|
|
2117
|
-
})), r = Pe(() => {
|
|
2118
|
-
const p = [], c = a.length, u = e.seriesTypes;
|
|
2119
|
-
for (let s = 0; s < c; s++) {
|
|
2120
|
-
const d = u[s], { type: y, axisIndex: x } = d || {};
|
|
2121
|
-
let b = Object.assign({ type: y, yAxisIndex: x }, a[s]);
|
|
2122
|
-
if (y === "line") {
|
|
2123
|
-
const h = {};
|
|
2124
|
-
e.shadowColor && (h.shadowColor = e.shadowColor, h.shadowBlur = e.shadowBlur, h.shadowOffsetY = e.shadowOffsetY, h.shadowOffsetX = e.shadowOffsetX), b = Object.assign(Object.assign({}, b), { symbolSize: e.symbolSize, smooth: e.smooth, itemStyle: { color: e.colors[s] }, areaStyle: { color: e.areaGradientShow ? { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: e.colors[s] }, { offset: 1, color: e.areaGradientColor || "transparent" }], global: !1 } : e.colors[s], opacity: e.areaStyleOpacity }, lineStyle: Object.assign({ width: e.lineStyleWidth }, h) });
|
|
2125
|
-
}
|
|
2126
|
-
if (y === "bar") {
|
|
2127
|
-
const { gradientShow: h, gradientColors: g, gradientOffset: S } = e, f = {};
|
|
2128
|
-
if (e.barBorderRadius) {
|
|
2129
|
-
const v = e.barBorderRadius.split(",");
|
|
2130
|
-
if (v != null && v.length) {
|
|
2131
|
-
const L = [];
|
|
2132
|
-
for (const N of v) {
|
|
2133
|
-
const E = parseFloat(N);
|
|
2134
|
-
isNaN(E) || L.push(E);
|
|
2135
|
-
}
|
|
2136
|
-
f.borderRadius = L;
|
|
2137
|
-
}
|
|
2138
|
-
}
|
|
2139
|
-
h && (f.color = { x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: e.colors[s] }, { offset: S, color: g[s] }, { offset: 1, color: g[s] }] }), b = Object.assign(Object.assign({}, b), { barWidth: e.barWidth, itemStyle: f });
|
|
2140
|
-
}
|
|
2141
|
-
e.isShowMarkLine && (b.markLine = { data: [{ type: e.markLineType }] }), p.push(b);
|
|
2142
|
-
}
|
|
2143
|
-
return p;
|
|
2144
|
-
}), l = Pe(() => {
|
|
2145
|
-
const p = e.yAxis;
|
|
2146
|
-
return p == null ? void 0 : p.map((c, u) => ({ type: "value", minInterval: e.yAxisMinInterval, splitLine: { show: u === 0 ? e.yAxisLeftSplitLineShow : e.yAxisRightSplitLineShow, lineStyle: { color: e.yAxisSplitLineStyleColor, type: u === 0 ? e.yAxisLeftSplitLineType : e.yAxisRightSplitLineType } }, splitArea: { show: e.yAxisSplitAreaShow }, axisLabel: { fontSize: o, show: e.yAxisLabelShow, color: e.yAxisLabelColor, formatter: (s) => qe(c.axisLabelFormatter, s) }, axisLine: { show: e.yAxisLineAlwaysDisplay, lineStyle: { color: e.yAxisLineStyleColor } }, name: u === 0 ? e.yAxisLeftName : e.yAxisRightName, nameTextStyle: { fontSize: e.yAxisLabelFontSize, color: e.yAxisLabelColor, align: u === 0 ? "right" : "left" }, max: e.yAxisMaxValue || null }));
|
|
2147
|
-
});
|
|
2148
|
-
return { legend: { show: e.legendShow, orient: e.legendOrient, top: e.legendTop, left: e.legendLeft, textStyle: { color: e.legendTextStyleColor, fontSize: o } }, tooltip: { trigger: "axis", show: e.tooltipShow, formatter: (p) => {
|
|
2149
|
-
const c = p.length;
|
|
2150
|
-
let u = "", s = e.tooltipFormatter;
|
|
2151
|
-
s === "" && (s = "{marker} {a} {c}");
|
|
2152
|
-
const d = e.seriesTypes;
|
|
2153
|
-
for (let y = 0; y < c; y++) {
|
|
2154
|
-
const x = d[y], { tooltipFormatter: b } = x || {}, { marker: h, seriesName: g, name: S, value: f, data: v } = p[y] || {};
|
|
2155
|
-
y === 0 && (u += `${S}<br/>`), u += Ye(b || s, { textData: Object.assign({ marker: h, name: S, value: f, seriesName: g, a: g, b: S, c: f }, v) }, { useNewline: !0, useSpace: !0 }), u += "<br/>";
|
|
2156
|
-
}
|
|
2157
|
-
return u;
|
|
2158
|
-
}, textStyle: { color: e.tooltipTextStyleColor || "#333", fontSize: o }, backgroundColor: e.tooltipBackgroundColor || "#fff", borderColor: e.tooltipBorderColor || "#eee" }, xAxis: { name: e.xAxisName, minInterval: e.xAxisMinInterval, type: "category", data: Q(i), splitLine: { show: e.xAxisSplitLineShow, lineStyle: { color: e.xAxisSplitLineStyleColor } }, axisLabel: { color: e.xAxisLabelColor, interval: e.xAxisLabelInterval || 0, rotate: e.xAxisLabelRotate, width: e.xAxisLabelWidth, overflow: e.xAxisLabelOverflow }, axisLine: { lineStyle: { color: e.xAxisLineStyleColor } }, axisTick: { show: e.xAxisTickShow } }, yAxis: Q(l), series: Q(r) };
|
|
2159
|
-
}, ba = (e, t, o = 12) => Object.assign(Object.assign({}, ((n) => ({ title: { text: n.titleText, subtext: n.titleSubtext, textStyle: { fontSize: n.titleFontSize, fontWeight: n.fontWeight, color: n.titleColor }, left: n.textAlign || "center" }, grid: { top: n.gridTop, bottom: n.gridBottom, left: n.gridLeft, right: n.gridRight, containLabel: n.gridContainLabel }, color: n.colors }))(e)), ((n, a, i) => {
|
|
2160
|
-
switch (n.type) {
|
|
2161
|
-
case "bar":
|
|
2162
|
-
return pa(n, a, i);
|
|
2163
|
-
case "line":
|
|
2164
|
-
return ha(n, a, i);
|
|
2165
|
-
case "pie":
|
|
2166
|
-
return ya(n, a, i);
|
|
2167
|
-
case "comboGraph":
|
|
2168
|
-
return ma(n, a, i);
|
|
2169
|
-
default:
|
|
2170
|
-
return {};
|
|
2171
|
-
}
|
|
2172
|
-
})(e, t, o)), Gt = (e) => {
|
|
2173
|
-
const t = [];
|
|
2174
|
-
if (e != null && e.length)
|
|
2175
|
-
for (const o of e)
|
|
2176
|
-
o.conditions ? t.push(...Gt(o.conditions)) : (o == null ? void 0 : o.dataType) === "component" && t.push(o);
|
|
2177
|
-
return t;
|
|
2178
|
-
}, ga = (e, t) => {
|
|
2179
|
-
var b;
|
|
2180
|
-
const o = je((e == null ? void 0 : e.controlList) || []), {
|
|
2181
|
-
classificationList: n = [],
|
|
2182
|
-
rowHeaderList: a = [],
|
|
2183
|
-
dimensionList: i = [],
|
|
2184
|
-
seriesList: r = [],
|
|
2185
|
-
leftAxisList: l = [],
|
|
2186
|
-
rightAxisList: p = [],
|
|
2187
|
-
queryColumnList: c = [],
|
|
2188
|
-
indicators: u = []
|
|
2189
|
-
} = e;
|
|
2190
|
-
_n(o, t);
|
|
2191
|
-
const s = o, d = [
|
|
2192
|
-
...n,
|
|
2193
|
-
...a,
|
|
2194
|
-
...i,
|
|
2195
|
-
...r,
|
|
2196
|
-
...l,
|
|
2197
|
-
...p,
|
|
2198
|
-
...c,
|
|
2199
|
-
...u
|
|
2200
|
-
], y = [];
|
|
2201
|
-
for (const h of d) {
|
|
2202
|
-
const g = Gt((h == null ? void 0 : h.conditions) || []);
|
|
2203
|
-
if (g != null && g.length) {
|
|
2204
|
-
const S = g.filter((f) => Po(f, t) ? (f == null ? void 0 : f.dataType) === "component" : !1).map((f) => {
|
|
2205
|
-
const v = Po(f, t), L = {};
|
|
2206
|
-
return f != null && f.dateFormat && (L.format = f.dateFormat), {
|
|
2207
|
-
conditionKey: f.fieldName,
|
|
2208
|
-
conditionLabel: f.fieldName,
|
|
2209
|
-
conditionName: f.fieldName,
|
|
2210
|
-
conditionValueType: f.fieldType,
|
|
2211
|
-
id: v.id,
|
|
2212
|
-
keyName: f.fieldValue,
|
|
2213
|
-
rule: f.rule,
|
|
2214
|
-
notGlobal: !0,
|
|
2215
|
-
indexCode: f.indexCode,
|
|
2216
|
-
typeGuid: f.typeGuid,
|
|
2217
|
-
indexCodeNum: f.indexCodeNum,
|
|
2218
|
-
...L
|
|
2219
|
-
};
|
|
2220
|
-
});
|
|
2221
|
-
if (S != null && S.length)
|
|
2222
|
-
for (const f of S)
|
|
2223
|
-
y.find((v) => v.keyName === f.keyName) || y.push(f);
|
|
2224
|
-
}
|
|
2225
|
-
}
|
|
2226
|
-
const x = y.length;
|
|
2227
|
-
for (let h = 0; h < x; h++) {
|
|
2228
|
-
const g = y[h];
|
|
2229
|
-
if (g && !((b = Object.keys(g)) != null && b.length) || (g == null ? void 0 : g.conditionKey) === "parentCode")
|
|
2230
|
-
continue;
|
|
2231
|
-
const {
|
|
2232
|
-
id: S,
|
|
2233
|
-
keyName: f,
|
|
2234
|
-
prop: v,
|
|
2235
|
-
format: L,
|
|
2236
|
-
dataType: N = "component",
|
|
2237
|
-
customValue: E
|
|
2238
|
-
} = g, A = Tn(g);
|
|
2239
|
-
qt({
|
|
2240
|
-
sqlCondition: A,
|
|
2241
|
-
renderUsedComponents: t,
|
|
2242
|
-
id: S,
|
|
2243
|
-
dateFormat: L,
|
|
2244
|
-
prop: v,
|
|
2245
|
-
keyName: f,
|
|
2246
|
-
dataType: N,
|
|
2247
|
-
customValue: E
|
|
2248
|
-
}), s.push(A);
|
|
2249
|
-
}
|
|
2250
|
-
for (let h = s.length - 1; h >= 0; h--) {
|
|
2251
|
-
const g = s[h];
|
|
2252
|
-
g.globalCondition || Gt(s).find((f) => f.alias === g.alias && f.globalCondition) && s.splice(h, 1);
|
|
2253
|
-
}
|
|
2254
|
-
return s;
|
|
2255
|
-
}, Ba = (e, t) => {
|
|
2256
|
-
const o = [];
|
|
2257
|
-
if (e != null && e.length) {
|
|
2258
|
-
for (const n of e)
|
|
2259
|
-
if (n.variableName) {
|
|
2260
|
-
const a = {
|
|
2261
|
-
variateName: n.variableName,
|
|
2262
|
-
globalCondition: !1,
|
|
2263
|
-
valueType: n.variableType,
|
|
2264
|
-
alias: n.keyName || ""
|
|
2265
|
-
};
|
|
2266
|
-
qt({
|
|
2267
|
-
sqlCondition: a,
|
|
2268
|
-
renderUsedComponents: t,
|
|
2269
|
-
id: n.id,
|
|
2270
|
-
dateFormat: n.format,
|
|
2271
|
-
prop: n.dateTypeValue,
|
|
2272
|
-
keyName: n.keyName,
|
|
2273
|
-
dataType: n.dataType,
|
|
2274
|
-
customValue: n.variableValue,
|
|
2275
|
-
operateType: n.operateType,
|
|
2276
|
-
operateMode: n.operateMode,
|
|
2277
|
-
operateValue: n.operateValue
|
|
2278
|
-
}), n.format && (a.dateFormat = n.format), n.label && (a.label = n.label), o.push(a);
|
|
2279
|
-
}
|
|
2280
|
-
}
|
|
2281
|
-
return o;
|
|
2282
|
-
};
|
|
2283
|
-
function Tn(e) {
|
|
2284
|
-
const {
|
|
2285
|
-
id: t,
|
|
2286
|
-
keyName: o,
|
|
2287
|
-
conditionLabel: n,
|
|
2288
|
-
conditionKey: a,
|
|
2289
|
-
conditionValueType: i,
|
|
2290
|
-
prop: r,
|
|
2291
|
-
rule: l = "NONE",
|
|
2292
|
-
notGlobal: p = !1,
|
|
2293
|
-
indexCode: c,
|
|
2294
|
-
indexCodeNum: u,
|
|
2295
|
-
typeGuid: s,
|
|
2296
|
-
dataType: d = "component"
|
|
2297
|
-
} = e;
|
|
2298
|
-
let y = o || t;
|
|
2299
|
-
return y && r && (y += `-${r}`), {
|
|
2300
|
-
rule: l,
|
|
2301
|
-
label: n,
|
|
2302
|
-
fieldName: a,
|
|
2303
|
-
fieldValue: "",
|
|
2304
|
-
// 在关联控件中取
|
|
2305
|
-
valueType: i,
|
|
2306
|
-
alias: y,
|
|
2307
|
-
globalCondition: !p,
|
|
2308
|
-
indexCode: c,
|
|
2309
|
-
indexCodeNum: u,
|
|
2310
|
-
typeGuid: s,
|
|
2311
|
-
dataType: d
|
|
2312
|
-
};
|
|
2313
|
-
}
|
|
2314
|
-
const xa = [
|
|
2315
|
-
"keyValue",
|
|
2316
|
-
"conditionKey",
|
|
2317
|
-
"conditionLabel",
|
|
2318
|
-
"conditionName",
|
|
2319
|
-
"conditionValueType",
|
|
2320
|
-
"customValue",
|
|
2321
|
-
"id",
|
|
2322
|
-
"keyName"
|
|
2323
|
-
];
|
|
2324
|
-
function _n(e, t) {
|
|
2325
|
-
if (e != null && e.length)
|
|
2326
|
-
for (const o of e)
|
|
2327
|
-
if (o != null && o.conditions)
|
|
2328
|
-
_n(o.conditions, t);
|
|
2329
|
-
else {
|
|
2330
|
-
const {
|
|
2331
|
-
id: n,
|
|
2332
|
-
keyName: a,
|
|
2333
|
-
prop: i,
|
|
2334
|
-
format: r,
|
|
2335
|
-
dataType: l = "component",
|
|
2336
|
-
customValue: p
|
|
2337
|
-
} = o, c = Tn(o);
|
|
2338
|
-
qt({
|
|
2339
|
-
sqlCondition: c,
|
|
2340
|
-
renderUsedComponents: t,
|
|
2341
|
-
id: n,
|
|
2342
|
-
dateFormat: r,
|
|
2343
|
-
prop: i,
|
|
2344
|
-
keyName: a,
|
|
2345
|
-
dataType: l,
|
|
2346
|
-
customValue: p
|
|
2347
|
-
});
|
|
2348
|
-
for (const u in c)
|
|
2349
|
-
o[u] = c[u];
|
|
2350
|
-
for (const u of xa)
|
|
2351
|
-
delete o[u];
|
|
2352
|
-
}
|
|
2353
|
-
}
|
|
2354
|
-
function qt(e) {
|
|
2355
|
-
const {
|
|
2356
|
-
sqlCondition: t,
|
|
2357
|
-
renderUsedComponents: o,
|
|
2358
|
-
id: n,
|
|
2359
|
-
dateFormat: a,
|
|
2360
|
-
prop: i,
|
|
2361
|
-
keyName: r,
|
|
2362
|
-
dataType: l,
|
|
2363
|
-
customValue: p,
|
|
2364
|
-
operateValue: c,
|
|
2365
|
-
operateMode: u,
|
|
2366
|
-
operateType: s
|
|
2367
|
-
} = e, d = P(o).find((f) => f.id === n), { value: y, format: x = "YYYY-MM-DD", operate: b, type: h = "", useCurrentTime: g } = d || {}, S = a || x;
|
|
2368
|
-
if (J(h, "date")) {
|
|
2369
|
-
let f;
|
|
2370
|
-
if (g ? f = we() : f = we(y), b && y) {
|
|
2371
|
-
const { mode: v, type: L, value: N } = b;
|
|
2372
|
-
if (N)
|
|
2373
|
-
switch (L) {
|
|
2374
|
-
case "add":
|
|
2375
|
-
f = f.add(N, v);
|
|
2376
|
-
break;
|
|
2377
|
-
case "minus":
|
|
2378
|
-
f = f.subtract(N, v);
|
|
2379
|
-
break;
|
|
2380
|
-
}
|
|
2381
|
-
}
|
|
2382
|
-
if (c && u && s)
|
|
2383
|
-
switch (s) {
|
|
2384
|
-
case "add":
|
|
2385
|
-
f = f.add(c, u);
|
|
2386
|
-
break;
|
|
2387
|
-
case "minus":
|
|
2388
|
-
f = f.subtract(c, u);
|
|
2389
|
-
break;
|
|
2390
|
-
}
|
|
2391
|
-
t.fieldValue = (f == null ? void 0 : f.format(S)) || "", t.dateFormat = S;
|
|
2392
|
-
} else if (h === "ecanRangePicker") {
|
|
2393
|
-
const { interval: f, intervalUnit: v, startTime: L, endTime: N } = d || {};
|
|
2394
|
-
let E = i;
|
|
2395
|
-
if (!i) {
|
|
2396
|
-
const w = r == null ? void 0 : r.split("-");
|
|
2397
|
-
w != null && w.length && (E = w[w.length - 1]);
|
|
2398
|
-
}
|
|
2399
|
-
if (!E)
|
|
2400
|
-
return;
|
|
2401
|
-
let A = null;
|
|
2402
|
-
if (g && (E === "startTime" ? A = we().subtract(f, v) : E === "endTime" && (A = we())), d[E] && (A = we(d[E])), b) {
|
|
2403
|
-
const { type: w, value: M, mode: $ } = b;
|
|
2404
|
-
switch (w) {
|
|
2405
|
-
case "add":
|
|
2406
|
-
A = A && A.add(M, $);
|
|
2407
|
-
break;
|
|
2408
|
-
case "minus":
|
|
2409
|
-
A = A && A.subtract(M, $);
|
|
2410
|
-
}
|
|
2411
|
-
}
|
|
2412
|
-
if (c && u && s) {
|
|
2413
|
-
if (c === "rangeValue") {
|
|
2414
|
-
if (L && N) {
|
|
2415
|
-
const w = we(N).diff(we(L), u) + 1;
|
|
2416
|
-
switch (s) {
|
|
2417
|
-
case "add":
|
|
2418
|
-
A = A && A.add(w, u);
|
|
2419
|
-
break;
|
|
2420
|
-
case "minus":
|
|
2421
|
-
A = A && A.subtract(w, u);
|
|
2422
|
-
}
|
|
2423
|
-
}
|
|
2424
|
-
} else if (!isNaN(+c))
|
|
2425
|
-
switch (s) {
|
|
2426
|
-
case "add":
|
|
2427
|
-
A = A && A.add(c, u);
|
|
2428
|
-
break;
|
|
2429
|
-
case "minus":
|
|
2430
|
-
A = A && A.subtract(c, u);
|
|
2431
|
-
}
|
|
2432
|
-
}
|
|
2433
|
-
if (A && (t.fieldValue = A == null ? void 0 : A.format(S)), E === "rangeValue" && L && N) {
|
|
2434
|
-
const w = va(S);
|
|
2435
|
-
w && (t.fieldValue = we(N).diff(we(L), w) + 1);
|
|
2436
|
-
}
|
|
2437
|
-
t.dateFormat = S;
|
|
2438
|
-
} else {
|
|
2439
|
-
const f = y && y.match(/\{(.+?)\}/g);
|
|
2440
|
-
f != null && f.length ? t.fieldValue = "" : t.fieldValue = y;
|
|
2441
|
-
}
|
|
2442
|
-
l === "" && (t.fieldValue = p || "");
|
|
2443
|
-
}
|
|
2444
|
-
const Wa = (e) => {
|
|
2445
|
-
let t = "";
|
|
2446
|
-
switch (e) {
|
|
2447
|
-
case "ecanDatePicker":
|
|
2448
|
-
case "ecanRangePicker":
|
|
2449
|
-
t = "dateChange";
|
|
2450
|
-
break;
|
|
2451
|
-
case "ecanTimeDisplay":
|
|
2452
|
-
t = "timeChange";
|
|
2453
|
-
break;
|
|
2454
|
-
case "ecanSelect":
|
|
2455
|
-
case "ecanTreeSelect":
|
|
2456
|
-
t = "selectChange";
|
|
2457
|
-
break;
|
|
2458
|
-
case "ecanTabs":
|
|
2459
|
-
t = "tabChange";
|
|
2460
|
-
break;
|
|
2461
|
-
case "ecanInput":
|
|
2462
|
-
t = "inputChange";
|
|
2463
|
-
break;
|
|
2464
|
-
case "ecanCheckbox":
|
|
2465
|
-
case "ecanRadio":
|
|
2466
|
-
t = "checkboxChange";
|
|
2467
|
-
break;
|
|
2468
|
-
case "ecanText":
|
|
2469
|
-
t = "valueChange";
|
|
2470
|
-
break;
|
|
2471
|
-
case "ecanImage":
|
|
2472
|
-
t = "click";
|
|
2473
|
-
break;
|
|
2474
|
-
}
|
|
2475
|
-
return t;
|
|
2476
|
-
};
|
|
2477
|
-
function Po(e, t) {
|
|
2478
|
-
var o;
|
|
2479
|
-
if (e.componentId)
|
|
2480
|
-
return t.find((n) => n.id === e.componentId);
|
|
2481
|
-
if (e.dataType === "component")
|
|
2482
|
-
if (e.fieldType === "DATE") {
|
|
2483
|
-
const n = (o = e.fieldValue) == null ? void 0 : o.split("-");
|
|
2484
|
-
return n != null && n.length ? n[0] : null;
|
|
2485
|
-
} else
|
|
2486
|
-
return t.find((n) => n.keyName === e.fieldValue);
|
|
2487
|
-
else
|
|
2488
|
-
return null;
|
|
2489
|
-
}
|
|
2490
|
-
function va(e) {
|
|
2491
|
-
const t = e.split("-");
|
|
2492
|
-
let o = "";
|
|
2493
|
-
if (t != null && t.length)
|
|
2494
|
-
switch (t[t.length - 1]) {
|
|
2495
|
-
case "YYYY":
|
|
2496
|
-
o = "year";
|
|
2497
|
-
break;
|
|
2498
|
-
case "MM":
|
|
2499
|
-
o = "month";
|
|
2500
|
-
break;
|
|
2501
|
-
case "DD":
|
|
2502
|
-
o = "day";
|
|
2503
|
-
break;
|
|
2504
|
-
}
|
|
2505
|
-
return o;
|
|
2506
|
-
}
|
|
2507
|
-
function Ha(e, t) {
|
|
2508
|
-
let o = e[t.label];
|
|
2509
|
-
if ((o || o === 0) && o !== "" && t.dataFormat && t.dataFormat.length !== 0) {
|
|
2510
|
-
if (t.dataFormat.includes("#.00") && (typeof o != "number" && (o = o.replace(/,/g, "")), Number(o) || Number(o) === 0)) {
|
|
2511
|
-
const n = t.retentiondigit ? t.retentiondigit - 0 : t.retentiondigit;
|
|
2512
|
-
o = Number(o).toFixed(n);
|
|
2513
|
-
}
|
|
2514
|
-
if (t.dataFormat.includes("#,000")) {
|
|
2515
|
-
const n = o.toString();
|
|
2516
|
-
n.includes(",") || (o = Sa(n));
|
|
2517
|
-
}
|
|
2518
|
-
}
|
|
2519
|
-
return o;
|
|
2520
|
-
}
|
|
2521
|
-
function Sa(e) {
|
|
2522
|
-
let t = "", o = "", n = "", a = "";
|
|
2523
|
-
e.indexOf(".") > -1 ? (o = e.split(".")[0], n = e.split(".")[1]) : o = e;
|
|
2524
|
-
let i = 0, r = 0;
|
|
2525
|
-
for (r = o.length - 1; r >= 0; )
|
|
2526
|
-
i % 3 === 0 && i !== 0 ? o[r] === "-" ? t += o[r] : t += "," + o[r] : t += o[r], r--, i++;
|
|
2527
|
-
return t = t.split("").reverse().join(""), e.indexOf(".") > -1 ? a = t + "." + n : a = t, a;
|
|
2528
|
-
}
|
|
2529
|
-
const Ya = (e) => ({
|
|
2530
|
-
DIM: "维度",
|
|
2531
|
-
BUILT_IN_DIM: "维度",
|
|
2532
|
-
IDX: "指标",
|
|
2533
|
-
BUILT_IN_IDX: "指标",
|
|
2534
|
-
FIELD: "数据集"
|
|
2535
|
-
})[e], qa = (e) => ({
|
|
2536
|
-
0: "文本",
|
|
2537
|
-
1: "数值",
|
|
2538
|
-
2: "日期"
|
|
2539
|
-
})[e], Ka = (e) => {
|
|
2540
|
-
if (!e)
|
|
2541
|
-
return "";
|
|
2542
|
-
const t = e.split(","), o = [];
|
|
2543
|
-
for (const n of t)
|
|
2544
|
-
n === "0" ? o.push("手工录入") : n === "1" ? o.push("系统取数") : n === "2" && o.push("运算加工");
|
|
2545
|
-
return o.join("、");
|
|
2546
|
-
}, Qa = (e) => {
|
|
2547
|
-
if (!e)
|
|
2548
|
-
return "";
|
|
2549
|
-
const t = e.split(","), o = [];
|
|
2550
|
-
for (const n of t)
|
|
2551
|
-
switch (n) {
|
|
2552
|
-
case "1":
|
|
2553
|
-
o.push("人力系统");
|
|
2554
|
-
break;
|
|
2555
|
-
case "2":
|
|
2556
|
-
o.push("绩效系统");
|
|
2557
|
-
break;
|
|
2558
|
-
case "3":
|
|
2559
|
-
o.push("预算系统");
|
|
2560
|
-
break;
|
|
2561
|
-
case "4":
|
|
2562
|
-
o.push("财务系统");
|
|
2563
|
-
break;
|
|
2564
|
-
case "5":
|
|
2565
|
-
o.push("成本系统");
|
|
2566
|
-
break;
|
|
2567
|
-
case "6":
|
|
2568
|
-
o.push("物流系统");
|
|
2569
|
-
break;
|
|
2570
|
-
case "7":
|
|
2571
|
-
o.push("固定资产系统");
|
|
2572
|
-
break;
|
|
2573
|
-
case "8":
|
|
2574
|
-
o.push("OA办公系统");
|
|
2575
|
-
break;
|
|
2576
|
-
case "9":
|
|
2577
|
-
o.push("电子档案系统");
|
|
2578
|
-
break;
|
|
2579
|
-
case "10":
|
|
2580
|
-
o.push("个人收入系统");
|
|
2581
|
-
break;
|
|
2582
|
-
case "11":
|
|
2583
|
-
o.push("奖金二次分配系统");
|
|
2584
|
-
break;
|
|
2585
|
-
case "12":
|
|
2586
|
-
o.push("财务管理系统");
|
|
2587
|
-
break;
|
|
2588
|
-
case "13":
|
|
2589
|
-
o.push("报销系统");
|
|
2590
|
-
break;
|
|
2591
|
-
case "14":
|
|
2592
|
-
o.push("科研管理系统");
|
|
2593
|
-
break;
|
|
2594
|
-
case "15":
|
|
2595
|
-
o.push("审计系统");
|
|
2596
|
-
break;
|
|
2597
|
-
case "16":
|
|
2598
|
-
o.push("分组器系统");
|
|
2599
|
-
break;
|
|
2600
|
-
case "17":
|
|
2601
|
-
o.push("消毒供应系统");
|
|
2602
|
-
break;
|
|
2603
|
-
}
|
|
2604
|
-
return o.join("、");
|
|
2605
|
-
}, Za = (e) => e === "0" ? "指标库" : e === "1" ? "视图" : e === "2" ? "数据集" : "其他", Ca = Go({
|
|
2606
|
-
name: "IndicatorLibrary",
|
|
2607
|
-
components: {
|
|
2608
|
-
DataList: to(() => import("./index-980c7b5b.mjs")),
|
|
2609
|
-
DataConfig: to(() => import("./index-05616d18.mjs"))
|
|
2610
|
-
},
|
|
2611
|
-
props: {
|
|
2612
|
-
isShowStyleConfig: {
|
|
2613
|
-
// 是否显示样式配置
|
|
2614
|
-
type: Boolean,
|
|
2615
|
-
default: !1
|
|
2616
|
-
},
|
|
2617
|
-
sourceType: {
|
|
2618
|
-
// 数据源类型
|
|
2619
|
-
type: String,
|
|
2620
|
-
default: ""
|
|
2621
|
-
},
|
|
2622
|
-
indicatorToken: {
|
|
2623
|
-
// 指标库token
|
|
2624
|
-
type: String,
|
|
2625
|
-
default: ""
|
|
2626
|
-
},
|
|
2627
|
-
selectedComponent: {
|
|
2628
|
-
// 当前组件
|
|
2629
|
-
type: Object,
|
|
2630
|
-
default: () => {
|
|
2631
|
-
}
|
|
2632
|
-
},
|
|
2633
|
-
request: {
|
|
2634
|
-
// 外部请求方法
|
|
2635
|
-
default: null
|
|
2636
|
-
},
|
|
2637
|
-
renderUsedComponentList: {
|
|
2638
|
-
// 当前画布上渲染的组件
|
|
2639
|
-
type: Array,
|
|
2640
|
-
default: () => []
|
|
2641
|
-
},
|
|
2642
|
-
mapAttributeProps: {
|
|
2643
|
-
type: Object,
|
|
2644
|
-
default: () => ({
|
|
2645
|
-
startTime: {
|
|
2646
|
-
label: "开始时间值",
|
|
2647
|
-
component: "time-pick"
|
|
2648
|
-
},
|
|
2649
|
-
endTime: {
|
|
2650
|
-
label: "结束时间值",
|
|
2651
|
-
component: "time-pick"
|
|
2652
|
-
}
|
|
2653
|
-
})
|
|
2654
|
-
},
|
|
2655
|
-
pageConfig: {
|
|
2656
|
-
type: Object,
|
|
2657
|
-
default: () => {
|
|
2658
|
-
}
|
|
2659
|
-
},
|
|
2660
|
-
isIframeMode: {
|
|
2661
|
-
type: Boolean,
|
|
2662
|
-
default: !1
|
|
2663
|
-
}
|
|
2664
|
-
},
|
|
2665
|
-
setup(e, { expose: t, emit: o }) {
|
|
2666
|
-
const n = le(), a = le(!1), i = fe(() => e.sourceType), r = fe(() => e.indicatorToken || ""), l = fe(() => e.selectedComponent), p = fe(() => e.renderUsedComponentList), c = fe(
|
|
2667
|
-
() => {
|
|
2668
|
-
var $;
|
|
2669
|
-
return (($ = P(l)) == null ? void 0 : $.tableColumns) || [];
|
|
2670
|
-
}
|
|
2671
|
-
), u = fe(() => e.isShowStyleConfig), s = fe(() => {
|
|
2672
|
-
var $, O;
|
|
2673
|
-
return (O = ($ = P(l)) == null ? void 0 : $.type) == null ? void 0 : O.includes("PivotTable");
|
|
2674
|
-
});
|
|
2675
|
-
let d = P(l).graphicConfig ? je(P(l).graphicConfig) : le({});
|
|
2676
|
-
d = le(d);
|
|
2677
|
-
let y = P(l).chartsOptions ? je(P(l).chartsOptions) : le(je(eo.line));
|
|
2678
|
-
y = le(y);
|
|
2679
|
-
let x = P(l).tableOptions ? je(P(l).tableOptions) : le(je(ii));
|
|
2680
|
-
x = le(x);
|
|
2681
|
-
const b = le([]), h = ($) => {
|
|
2682
|
-
b.value = $;
|
|
2683
|
-
}, g = ($) => {
|
|
2684
|
-
d.value = {
|
|
2685
|
-
...P(d),
|
|
2686
|
-
...P($)
|
|
2687
|
-
};
|
|
2688
|
-
}, S = ($, O = !0) => {
|
|
2689
|
-
O ? y.value = {
|
|
2690
|
-
...P(y),
|
|
2691
|
-
...P($)
|
|
2692
|
-
} : y.value = {
|
|
2693
|
-
...P($)
|
|
2694
|
-
};
|
|
2695
|
-
}, f = ($) => {
|
|
2696
|
-
x.value = {
|
|
2697
|
-
...P(x),
|
|
2698
|
-
...P($)
|
|
2699
|
-
};
|
|
2700
|
-
}, v = () => b, L = () => {
|
|
2701
|
-
a.value = !0, P(l).graphicConfig && (d.value = je(P(l).graphicConfig)), P(l).chartsOptions && (y.value = je(P(l).chartsOptions || eo.line)), Nn(() => {
|
|
2702
|
-
a.value = !1;
|
|
2703
|
-
});
|
|
2704
|
-
}, N = () => ({
|
|
2705
|
-
graphicConfig: P(d),
|
|
2706
|
-
chartsOptions: P(y),
|
|
2707
|
-
tableOptions: P(x),
|
|
2708
|
-
tableColumns: P(c),
|
|
2709
|
-
columnsConfigMap: P(l).columnsConfigMap
|
|
2710
|
-
}), E = () => ({
|
|
2711
|
-
...P(n).getSaveData(),
|
|
2712
|
-
graphicConfig: P(d)
|
|
2713
|
-
});
|
|
2714
|
-
window.getIndicatorData = N, window.getPivotGraphicData = E, e.request && ne(Wo, e.request), ne($n, {
|
|
2715
|
-
setDataList: h,
|
|
2716
|
-
getDataList: v
|
|
2717
|
-
});
|
|
2718
|
-
const A = ($) => {
|
|
2719
|
-
o("updateUsedComponent", $);
|
|
2720
|
-
}, w = ($, O) => {
|
|
2721
|
-
o("updateComponentsConfig", $, { controlList: O });
|
|
2722
|
-
}, M = fe(() => ga(d.value, p.value));
|
|
2723
|
-
return ne(Zn, s), ne(Xn, e.isIframeMode), ne(Vn, l), ne(Yo, d), ne(qo, y), ne(zn, x), ne(Wn, i), ne(Rn, u), ne(Ho, r), ne(Pn, g), ne(Un, S), ne(Bn, f), ne(Hn, p), ne(Yn, A), ne(qn, w), ne(Kn, e.mapAttributeProps), ne(Qn, e.pageConfig), t({
|
|
2724
|
-
graphicConfig: d,
|
|
2725
|
-
chartsOptions: y,
|
|
2726
|
-
updateIndicatorData: L
|
|
2727
|
-
}), {
|
|
2728
|
-
sqlConditions: M,
|
|
2729
|
-
isUpdate: a,
|
|
2730
|
-
isPivotTable: s,
|
|
2731
|
-
dataConfigRef: n
|
|
2732
|
-
};
|
|
2733
|
-
}
|
|
2734
|
-
});
|
|
2735
|
-
const On = (e, t) => {
|
|
2736
|
-
const o = e.__vccOpts || e;
|
|
2737
|
-
for (const [n, a] of t)
|
|
2738
|
-
o[n] = a;
|
|
2739
|
-
return o;
|
|
2740
|
-
}, wa = {
|
|
2741
|
-
key: 0,
|
|
2742
|
-
class: "config-modal"
|
|
2743
|
-
}, Aa = {
|
|
2744
|
-
key: 0,
|
|
2745
|
-
class: "config-modal-left"
|
|
2746
|
-
};
|
|
2747
|
-
function Ta(e, t, o, n, a, i) {
|
|
2748
|
-
const r = kt("data-list"), l = kt("data-config");
|
|
2749
|
-
return e.isUpdate ? Xt("", !0) : (Dt(), Et("div", wa, [
|
|
2750
|
-
e.isPivotTable ? Xt("", !0) : (Dt(), Et("div", Aa, [
|
|
2751
|
-
Ft(r)
|
|
2752
|
-
])),
|
|
2753
|
-
Uo("div", {
|
|
2754
|
-
class: jn(["config-modal-right", e.isPivotTable ? "full" : ""])
|
|
2755
|
-
}, [
|
|
2756
|
-
Ft(l, {
|
|
2757
|
-
ref: "dataConfigRef",
|
|
2758
|
-
sqlConditions: e.sqlConditions
|
|
2759
|
-
}, null, 8, ["sqlConditions"])
|
|
2760
|
-
], 2)
|
|
2761
|
-
]));
|
|
2762
|
-
}
|
|
2763
|
-
const _a = /* @__PURE__ */ On(Ca, [["render", Ta], ["__scopeId", "data-v-8e51e65f"]]), Oa = Bo(_a), La = (e = {}) => {
|
|
2764
|
-
const t = (i = {}) => {
|
|
2765
|
-
const { label: r, name: l, location: p, show: c, indexCode: u, typeGuid: s } = i;
|
|
2766
|
-
return {
|
|
2767
|
-
label: r,
|
|
2768
|
-
columnName: l,
|
|
2769
|
-
location: p,
|
|
2770
|
-
show: c,
|
|
2771
|
-
calcType: "COLUMN",
|
|
2772
|
-
hrpIndexCode: u,
|
|
2773
|
-
typeGuid: s
|
|
2774
|
-
};
|
|
2775
|
-
}, o = (i) => {
|
|
2776
|
-
se(i, "dataType") && (i.fieldType === "DATE" && (i.label = i.fieldName, i.dataType === "component" && (i.fieldValue = "${" + i.fieldValue + "}")), delete i.dataType), se(i, "activeKey") && delete i.activeKey, se(i, "radioValue") && delete i.radioValue;
|
|
2777
|
-
}, n = (i) => {
|
|
2778
|
-
const r = [];
|
|
2779
|
-
return i != null && i.length && i.forEach((l) => {
|
|
2780
|
-
if (l.join && l.conditions) {
|
|
2781
|
-
const p = !l.conditions.some((c) => c.join && c.conditions);
|
|
2782
|
-
l.conditions.forEach((c, u) => {
|
|
2783
|
-
o(c), p ? u < l.conditions.length - 1 ? r.push({
|
|
2784
|
-
join: l.join,
|
|
2785
|
-
...c
|
|
2786
|
-
}) : r.push(c) : c.join && c.conditions ? r.push({
|
|
2787
|
-
conditions: n([c]),
|
|
2788
|
-
join: l.join
|
|
2789
|
-
}) : r.push(c);
|
|
2790
|
-
});
|
|
2791
|
-
} else
|
|
2792
|
-
o(l), r.push(l);
|
|
2793
|
-
}), r;
|
|
2794
|
-
}, a = (i = {}) => {
|
|
2795
|
-
const {
|
|
2796
|
-
label: r,
|
|
2797
|
-
name: l,
|
|
2798
|
-
location: p,
|
|
2799
|
-
show: c,
|
|
2800
|
-
indexCode: u,
|
|
2801
|
-
calcType: s = "COLUMN",
|
|
2802
|
-
builtInFormula: d,
|
|
2803
|
-
builtInValueSource: y,
|
|
2804
|
-
builtInCalcWay: x,
|
|
2805
|
-
formula: b,
|
|
2806
|
-
conditions: h,
|
|
2807
|
-
aggregate: g
|
|
2808
|
-
} = i;
|
|
2809
|
-
let S;
|
|
2810
|
-
return h && (S = n(h)), {
|
|
2811
|
-
label: r.trim(),
|
|
2812
|
-
columnName: l,
|
|
2813
|
-
location: p,
|
|
2814
|
-
show: c,
|
|
2815
|
-
calcType: s,
|
|
2816
|
-
hrpIndexCode: u,
|
|
2817
|
-
aggregate: g,
|
|
2818
|
-
builtInFormula: d,
|
|
2819
|
-
builtInValueSource: y,
|
|
2820
|
-
builtInCalcWay: x,
|
|
2821
|
-
formula: b,
|
|
2822
|
-
conditions: S
|
|
2823
|
-
};
|
|
2824
|
-
};
|
|
2825
|
-
return async () => {
|
|
2826
|
-
const { graphicConfig: i, type: r, request: l, isGroupTable: p } = e;
|
|
2827
|
-
let {
|
|
2828
|
-
source: c,
|
|
2829
|
-
dataViewId: u,
|
|
2830
|
-
plugin: s = "1",
|
|
2831
|
-
// 插件类型
|
|
2832
|
-
layer: d,
|
|
2833
|
-
// 后台图表类型,值分0,1
|
|
2834
|
-
chartType: y,
|
|
2835
|
-
// 前端图表类型,实测没用
|
|
2836
|
-
classificationList: x = [],
|
|
2837
|
-
seriesList: b = [],
|
|
2838
|
-
leftAxisList: h = [],
|
|
2839
|
-
rightAxisList: g = [],
|
|
2840
|
-
queryColumnList: S = [],
|
|
2841
|
-
indicators: f = [],
|
|
2842
|
-
// controlList = [],
|
|
2843
|
-
dataSourceId: v,
|
|
2844
|
-
// 所属数据源ID
|
|
2845
|
-
idxLibMode: L,
|
|
2846
|
-
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
2847
|
-
preview: N = !1,
|
|
2848
|
-
// 预览开关
|
|
2849
|
-
sqlConditions: E = [],
|
|
2850
|
-
rowHeaderList: A = []
|
|
2851
|
-
} = i || {};
|
|
2852
|
-
d == null && (J(r, ["table", "card"]) ? d = "1" : d = "2");
|
|
2853
|
-
let w;
|
|
2854
|
-
if (Array.isArray(x) && x.length > 0) {
|
|
2855
|
-
const m = x.length;
|
|
2856
|
-
for (let _ = 0; _ < m; _++) {
|
|
2857
|
-
const C = x[_] || {}, { label: j = "", name: k = "", show: F = !1, sort: R, customGroup: W, conditions: Z, typeGuid: oe } = C;
|
|
2858
|
-
if (F || m === 1) {
|
|
2859
|
-
w = {
|
|
2860
|
-
label: j.trim(),
|
|
2861
|
-
columnName: k,
|
|
2862
|
-
show: F,
|
|
2863
|
-
sort: R,
|
|
2864
|
-
customGroup: W,
|
|
2865
|
-
typeGuid: oe,
|
|
2866
|
-
conditions: n(Z)
|
|
2867
|
-
};
|
|
2868
|
-
break;
|
|
2869
|
-
}
|
|
2870
|
-
}
|
|
2871
|
-
}
|
|
2872
|
-
let M;
|
|
2873
|
-
if (Array.isArray(b) && b.length > 0) {
|
|
2874
|
-
const m = b.length;
|
|
2875
|
-
for (let _ = 0; _ < m; _++) {
|
|
2876
|
-
const C = b[_] || {}, { label: j = "", name: k = "", show: F = !1, sort: R, customGroup: W, conditions: Z, typeGuid: oe } = C;
|
|
2877
|
-
if (F || m === 1) {
|
|
2878
|
-
M = {
|
|
2879
|
-
label: j.trim(),
|
|
2880
|
-
columnName: k,
|
|
2881
|
-
show: F,
|
|
2882
|
-
sort: R,
|
|
2883
|
-
customGroup: W,
|
|
2884
|
-
conditions: n(Z),
|
|
2885
|
-
typeGuid: oe
|
|
2886
|
-
};
|
|
2887
|
-
break;
|
|
2888
|
-
}
|
|
2889
|
-
}
|
|
2890
|
-
}
|
|
2891
|
-
const $ = [];
|
|
2892
|
-
if (Array.isArray(A) && A.length > 0) {
|
|
2893
|
-
const m = A.length;
|
|
2894
|
-
for (let _ = 0; _ < m; _++) {
|
|
2895
|
-
const C = A[_] || {}, { label: j = "", name: k = "", show: F = !1, sort: R, customGroup: W, conditions: Z, typeGuid: oe } = C;
|
|
2896
|
-
$.push({
|
|
2897
|
-
typeGuid: oe,
|
|
2898
|
-
label: j.trim(),
|
|
2899
|
-
columnName: k,
|
|
2900
|
-
show: F,
|
|
2901
|
-
sort: R,
|
|
2902
|
-
customGroup: W,
|
|
2903
|
-
conditions: n(Z)
|
|
2904
|
-
});
|
|
2905
|
-
}
|
|
2906
|
-
}
|
|
2907
|
-
const O = [];
|
|
2908
|
-
S == null || S.forEach((m) => {
|
|
2909
|
-
O.push(t(m));
|
|
2910
|
-
});
|
|
2911
|
-
const T = [];
|
|
2912
|
-
if (h == null || h.forEach((m) => {
|
|
2913
|
-
m.location = "LEFT", T.push(a(m));
|
|
2914
|
-
}), g == null || g.forEach((m) => {
|
|
2915
|
-
m.location = "RIGHT", T.push(a(m));
|
|
2916
|
-
}), f == null || f.forEach((m) => {
|
|
2917
|
-
m.location = "LEFT", T.push(a(m));
|
|
2918
|
-
}), p || r === "card") {
|
|
2919
|
-
if (y = "grouptable", T.length === 0 || $.length === 0)
|
|
2920
|
-
return;
|
|
2921
|
-
} else {
|
|
2922
|
-
if (d === "1" && O.length === 0)
|
|
2923
|
-
return;
|
|
2924
|
-
if (d === "2" && T.length === 0)
|
|
2925
|
-
return;
|
|
2926
|
-
}
|
|
2927
|
-
try {
|
|
2928
|
-
return await l.post(`${Mn}/diagram`, {
|
|
2929
|
-
source: c,
|
|
2930
|
-
dataViewId: u,
|
|
2931
|
-
plugin: s,
|
|
2932
|
-
layer: d,
|
|
2933
|
-
chartType: y,
|
|
2934
|
-
classification: w,
|
|
2935
|
-
series: M,
|
|
2936
|
-
indicatorList: T,
|
|
2937
|
-
queryColumns: O,
|
|
2938
|
-
pageFlag: !0,
|
|
2939
|
-
sqlConditions: E,
|
|
2940
|
-
rowHeaders: $,
|
|
2941
|
-
dataSourceId: v,
|
|
2942
|
-
idxLibMode: L,
|
|
2943
|
-
preview: N
|
|
2944
|
-
});
|
|
2945
|
-
} catch (m) {
|
|
2946
|
-
console.error(m);
|
|
2947
|
-
}
|
|
2948
|
-
};
|
|
2949
|
-
}, Na = Go({
|
|
2950
|
-
name: "ChartGraph",
|
|
2951
|
-
components: {
|
|
2952
|
-
ASpin: Fn
|
|
2953
|
-
},
|
|
2954
|
-
props: {
|
|
2955
|
-
graphicConfig: {
|
|
2956
|
-
// 指标库配置
|
|
2957
|
-
type: Object,
|
|
2958
|
-
default: () => {
|
|
2959
|
-
}
|
|
2960
|
-
},
|
|
2961
|
-
chartsOptions: {
|
|
2962
|
-
// 图表配置
|
|
2963
|
-
type: Object,
|
|
2964
|
-
default: () => {
|
|
2965
|
-
}
|
|
2966
|
-
}
|
|
2967
|
-
},
|
|
2968
|
-
setup(e, { expose: t }) {
|
|
2969
|
-
const o = fe(() => e.chartsOptions ? P(e.chartsOptions) : p), n = fe(() => e.graphicConfig ? P(e.graphicConfig) : l), a = dt(Wo);
|
|
2970
|
-
let i = null;
|
|
2971
|
-
const r = dt(Ho) || "", l = dt(Yo) || {}, p = dt(qo) || {}, c = le(null), u = le(null), s = le(), d = le(!1), y = le(!1), x = fe(() => y.value ? Gn : 12), b = le({}), h = le(), g = fe(() => {
|
|
2972
|
-
const w = P(o.value);
|
|
2973
|
-
return (w == null ? void 0 : w.type) === "customGraph" ? h.value : ba(w, P(b), x.value);
|
|
2974
|
-
}), S = (w = [], M, $ = !1) => {
|
|
2975
|
-
const O = $ ? M : null;
|
|
2976
|
-
b.value = ua(w, O);
|
|
2977
|
-
}, f = (w = [], M) => {
|
|
2978
|
-
b.value = da(w, M);
|
|
2979
|
-
}, v = async () => {
|
|
2980
|
-
var w, M, $;
|
|
2981
|
-
try {
|
|
2982
|
-
const O = La({
|
|
2983
|
-
graphicConfig: P(n.value),
|
|
2984
|
-
type: (w = P(o.value)) == null ? void 0 : w.type,
|
|
2985
|
-
request: a,
|
|
2986
|
-
indicatorToken: r
|
|
2987
|
-
});
|
|
2988
|
-
d.value = !0;
|
|
2989
|
-
const T = await O(), { columns: m = [], rows: _ = [] } = ((M = T == null ? void 0 : T.data) == null ? void 0 : M.data) ?? {};
|
|
2990
|
-
if ((($ = P(o.value)) == null ? void 0 : $.type) === "pie") {
|
|
2991
|
-
let C = [];
|
|
2992
|
-
if (m.length > 0) {
|
|
2993
|
-
const j = m[0], k = m[1];
|
|
2994
|
-
C = _.map((F) => ({
|
|
2995
|
-
name: F[j],
|
|
2996
|
-
value: F[k]
|
|
2997
|
-
}));
|
|
2998
|
-
}
|
|
2999
|
-
f(C);
|
|
3000
|
-
} else {
|
|
3001
|
-
let C;
|
|
3002
|
-
m.length > 0 && (C = {
|
|
3003
|
-
name: m[0],
|
|
3004
|
-
types: m.slice(1).map((j) => ({
|
|
3005
|
-
label: j,
|
|
3006
|
-
value: j
|
|
3007
|
-
}))
|
|
3008
|
-
}), S(_, C, !0);
|
|
3009
|
-
}
|
|
3010
|
-
} catch (O) {
|
|
3011
|
-
console.error(O);
|
|
3012
|
-
} finally {
|
|
3013
|
-
d.value = !1;
|
|
3014
|
-
}
|
|
3015
|
-
}, L = {
|
|
3016
|
-
title: {
|
|
3017
|
-
text: "暂无数据",
|
|
3018
|
-
x: "center",
|
|
3019
|
-
y: "center",
|
|
3020
|
-
textStyle: {
|
|
3021
|
-
fontSize: 14,
|
|
3022
|
-
fontWeight: "normal"
|
|
3023
|
-
}
|
|
3024
|
-
}
|
|
3025
|
-
}, N = () => {
|
|
3026
|
-
P(b).dataset.length === 0 ? s.value.setOption(L, !0) : s.value.setOption(g.value, !0);
|
|
3027
|
-
}, E = () => {
|
|
3028
|
-
P(o.value).type !== "customGraph" && v();
|
|
3029
|
-
}, A = () => {
|
|
3030
|
-
var w;
|
|
3031
|
-
(w = s.value) == null || w.resize();
|
|
3032
|
-
};
|
|
3033
|
-
return Jt(
|
|
3034
|
-
g,
|
|
3035
|
-
() => {
|
|
3036
|
-
N();
|
|
3037
|
-
},
|
|
3038
|
-
{
|
|
3039
|
-
deep: !0
|
|
3040
|
-
}
|
|
3041
|
-
), Jt(
|
|
3042
|
-
() => P(o.value).optionCode,
|
|
3043
|
-
(w) => {
|
|
3044
|
-
try {
|
|
3045
|
-
const M = eval;
|
|
3046
|
-
h.value = M(w);
|
|
3047
|
-
} catch (M) {
|
|
3048
|
-
console.error(M);
|
|
3049
|
-
}
|
|
3050
|
-
},
|
|
3051
|
-
{
|
|
3052
|
-
immediate: !0
|
|
3053
|
-
}
|
|
3054
|
-
), In(() => {
|
|
3055
|
-
u.value && (i = new ResizeObserver(A), i.observe(u.value)), s.value = En.init(c.value);
|
|
3056
|
-
}), kn(() => {
|
|
3057
|
-
s.value.dispose(), i && (i.disconnect(), i = null);
|
|
3058
|
-
}), t({
|
|
3059
|
-
refreshData: E
|
|
3060
|
-
}), {
|
|
3061
|
-
echartRef: c,
|
|
3062
|
-
loading: d
|
|
3063
|
-
};
|
|
3064
|
-
}
|
|
3065
|
-
});
|
|
3066
|
-
const ja = {
|
|
3067
|
-
class: "ecan-chart-graph",
|
|
3068
|
-
ref: "chartWrapRef"
|
|
3069
|
-
}, Ia = {
|
|
3070
|
-
style: { width: "100%", height: "100%" },
|
|
3071
|
-
ref: "echartRef"
|
|
3072
|
-
};
|
|
3073
|
-
function ka(e, t, o, n, a, i) {
|
|
3074
|
-
const r = kt("a-spin");
|
|
3075
|
-
return Dt(), Et("div", ja, [
|
|
3076
|
-
Ft(r, {
|
|
3077
|
-
spinning: e.loading,
|
|
3078
|
-
wrapperClassName: "chart-spin",
|
|
3079
|
-
tip: "数据加载中..."
|
|
3080
|
-
}, {
|
|
3081
|
-
default: Dn(() => [
|
|
3082
|
-
Uo("div", Ia, null, 512)
|
|
3083
|
-
]),
|
|
3084
|
-
_: 1
|
|
3085
|
-
}, 8, ["spinning"])
|
|
3086
|
-
], 512);
|
|
3087
|
-
}
|
|
3088
|
-
const Da = /* @__PURE__ */ On(Na, [["render", ka], ["__scopeId", "data-v-845f7ab1"]]), Ea = Bo(Da), Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3089
|
-
__proto__: null,
|
|
3090
|
-
EcanChartGraph: Ea,
|
|
3091
|
-
EcanIndicatorLibrary: Oa
|
|
3092
|
-
}, Symbol.toStringTag, { value: "Module" })), Fa = (e, t) => {
|
|
3093
|
-
const { request: o } = t;
|
|
3094
|
-
e.provide("$request", o), Object.keys(Ro).forEach((n) => {
|
|
3095
|
-
const a = Ro[n];
|
|
3096
|
-
a.install && e.use(a);
|
|
3097
|
-
});
|
|
3098
|
-
}, Xa = {
|
|
3099
|
-
install: Fa
|
|
3100
|
-
};
|
|
3101
|
-
export {
|
|
3102
|
-
Rn as A,
|
|
3103
|
-
Xn as B,
|
|
3104
|
-
za as C,
|
|
3105
|
-
$n as D,
|
|
3106
|
-
Ua as E,
|
|
3107
|
-
Xa as F,
|
|
3108
|
-
Yo as G,
|
|
3109
|
-
Oa as H,
|
|
3110
|
-
Ho as I,
|
|
3111
|
-
Ea as J,
|
|
3112
|
-
Kn as M,
|
|
3113
|
-
Qn as P,
|
|
3114
|
-
Wo as R,
|
|
3115
|
-
Vn as S,
|
|
3116
|
-
zn as T,
|
|
3117
|
-
Pn as U,
|
|
3118
|
-
On as _,
|
|
3119
|
-
Mn as a,
|
|
3120
|
-
Ya as b,
|
|
3121
|
-
Qa as c,
|
|
3122
|
-
Za as d,
|
|
3123
|
-
Wn as e,
|
|
3124
|
-
Hn as f,
|
|
3125
|
-
Ka as g,
|
|
3126
|
-
Ga as h,
|
|
3127
|
-
Yn as i,
|
|
3128
|
-
Gt as j,
|
|
3129
|
-
ga as k,
|
|
3130
|
-
Wa as l,
|
|
3131
|
-
qa as m,
|
|
3132
|
-
Ba as n,
|
|
3133
|
-
se as o,
|
|
3134
|
-
qo as p,
|
|
3135
|
-
Un as q,
|
|
3136
|
-
Bn as r,
|
|
3137
|
-
Ra as s,
|
|
3138
|
-
eo as t,
|
|
3139
|
-
Zn as u,
|
|
3140
|
-
qn as v,
|
|
3141
|
-
Ha as w,
|
|
3142
|
-
La as x,
|
|
3143
|
-
J as y,
|
|
3144
|
-
Da as z
|
|
3145
|
-
};
|
|
3146
|
-
//# sourceMappingURL=index-8d692872.mjs.map
|