@ecan-bi/indicator-library 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/index.es.js +3131 -0
- package/dist/index.umd.js +58 -0
- package/dist/style.css +2 -0
- package/package.json +72 -0
- package/types/components.d.ts +1 -0
- package/types/env.d.ts +7 -0
- package/types/index.d.ts +6 -0
- package/types/indicator/data-config/DataConfig.vue.d.ts +9 -0
- package/types/indicator/data-config/data-config-group/DataConfigGroup.vue.d.ts +7 -0
- package/types/indicator/data-config/data-config-group/data-config-card/CustomGroupModal.vue.d.ts +56 -0
- package/types/indicator/data-config/data-config-group/data-config-card/CustomSortModal.vue.d.ts +38 -0
- package/types/indicator/data-config/data-config-group/data-config-card/DataConfigCard.vue.d.ts +78 -0
- package/types/indicator/data-config/data-config-group/data-config-card/calculation-modal/CalculationModal.vue.d.ts +63 -0
- package/types/indicator/data-config/data-config-group/data-config-card/calculation-modal/FormulaCalculation.vue.d.ts +23 -0
- package/types/indicator/data-config/data-config-group/data-config-card/calculation-modal/index.d.ts +2 -0
- package/types/indicator/data-config/data-config-group/data-config-card/filter-modal/Condition.vue.d.ts +68 -0
- package/types/indicator/data-config/data-config-group/data-config-card/filter-modal/ConditionList.vue.d.ts +32 -0
- package/types/indicator/data-config/data-config-group/data-config-card/filter-modal/FilterModal.vue.d.ts +41 -0
- package/types/indicator/data-config/data-config-group/data-config-card/filter-modal/constant.d.ts +1 -0
- package/types/indicator/data-config/data-config-group/data-config-card/filter-modal/index.d.ts +2 -0
- package/types/indicator/data-config/data-config-group/data-config-card/index.d.ts +2 -0
- package/types/indicator/data-config/data-config-group/data.d.ts +20 -0
- package/types/indicator/data-config/data-config-group/index.d.ts +2 -0
- package/types/indicator/data-config/index.d.ts +2 -0
- package/types/indicator/data-list/DataList.vue.d.ts +4 -0
- package/types/indicator/data-list/DataSourceList.vue.d.ts +20 -0
- package/types/indicator/data-list/DataViewList.vue.d.ts +30 -0
- package/types/indicator/data-list/index.d.ts +2 -0
- package/types/indicator/index.d.ts +1 -0
- package/types/indicator/indicator-library/IndicatorLibrary.vue.d.ts +10 -0
- package/types/indicator/indicator-library/index.d.ts +10 -0
- package/types/utils/constant.d.ts +12 -0
- package/types/utils/withInstall.d.ts +5 -0
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,3131 @@
|
|
|
1
|
+
/*! @ecan-bi/indicator-library@0.0.1 */
|
|
2
|
+
import { defineComponent as ee, inject as j, unref as s, computed as B, ref as P, reactive as He, onMounted as We, resolveComponent as v, openBlock as f, createElementBlock as k, createVNode as c, createElementVNode as R, Fragment as V, renderList as Z, createTextVNode as G, toDisplayString as z, h as tt, nextTick as Mt, createBlock as U, createCommentVNode as W, watch as pe, withCtx as h, withModifiers as se, provide as ge, pushScopeId as Ft, popScopeId as Nt, mergeProps as St, resolveDynamicComponent as Pt } from "vue";
|
|
3
|
+
import { debounce as Gt, cloneDeep as wt, pick as jt, without as Rt } from "lodash-es";
|
|
4
|
+
import Bt from "vuedraggable";
|
|
5
|
+
import { message as ye, Form as Ut } from "ant-design-vue";
|
|
6
|
+
const Vt = (e, t) => {
|
|
7
|
+
if (e.install = (n) => {
|
|
8
|
+
for (const a of [e, ...Object.values(t ?? {})])
|
|
9
|
+
n.component(a.name, a);
|
|
10
|
+
}, t)
|
|
11
|
+
for (const [n, a] of Object.entries(t))
|
|
12
|
+
e[n] = a;
|
|
13
|
+
return e;
|
|
14
|
+
}, ke = "$request", me = "/u-api", be = "INDICATOR_TOKEN", Qe = "DATA_LIST", De = "SELECTED_COMPONENT", ue = "GRAPHIC_CONFIG", he = "UPDATE_GRAPHIC_CONFIG", $t = "SOURCE_TYPE", qt = ee({
|
|
15
|
+
name: "DataViewList",
|
|
16
|
+
setup() {
|
|
17
|
+
const e = j(ke), t = s(j(be)), n = j(ue), a = j(he), o = B(() => {
|
|
18
|
+
var b;
|
|
19
|
+
return ((b = s(n)) == null ? void 0 : b.dataViewId) || null;
|
|
20
|
+
}), r = P([]), u = He({
|
|
21
|
+
title: "已选",
|
|
22
|
+
value: "YXJG",
|
|
23
|
+
id: "YXJG",
|
|
24
|
+
pId: "0",
|
|
25
|
+
disabled: !0,
|
|
26
|
+
selectable: !1,
|
|
27
|
+
isLeaf: !0
|
|
28
|
+
}), i = async () => {
|
|
29
|
+
var _, p;
|
|
30
|
+
const b = o.value, { data: O } = await e.post(`${me}/diagram/sourceList`, {
|
|
31
|
+
source: "SQL_VIEW",
|
|
32
|
+
dataViewId: b,
|
|
33
|
+
pageFlag: !0
|
|
34
|
+
}, {
|
|
35
|
+
headers: {
|
|
36
|
+
Authentication: t,
|
|
37
|
+
operateContext: "ygt"
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
O.success && ((_ = r.value) == null || _.push(u), r.value = (p = r.value) == null ? void 0 : p.concat(l([O.data.rows[0]], "YXJG")));
|
|
41
|
+
}, l = (b = [], O) => {
|
|
42
|
+
const _ = [];
|
|
43
|
+
return b.forEach((p) => {
|
|
44
|
+
_.push({
|
|
45
|
+
id: p.id,
|
|
46
|
+
pId: O ?? p.parentId,
|
|
47
|
+
value: p.id,
|
|
48
|
+
title: p.name,
|
|
49
|
+
isLeaf: p.leaf || !1,
|
|
50
|
+
nature: p.nature,
|
|
51
|
+
selectable: p.leaf || !1
|
|
52
|
+
});
|
|
53
|
+
}), _;
|
|
54
|
+
}, d = async (b, O) => {
|
|
55
|
+
var F;
|
|
56
|
+
let _ = 0;
|
|
57
|
+
if (b) {
|
|
58
|
+
const { value: C } = b.dataRef;
|
|
59
|
+
_ = C;
|
|
60
|
+
}
|
|
61
|
+
const { data: p } = await e.post(
|
|
62
|
+
`${me}/dataview/treetable`,
|
|
63
|
+
{
|
|
64
|
+
pageFlag: !0,
|
|
65
|
+
parentId: _
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
headers: {
|
|
69
|
+
Authentication: t,
|
|
70
|
+
operateContext: "ygt"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
p.success && (r.value = (F = s(r)) == null ? void 0 : F.concat(l(p.data)), O && s(o) && await i());
|
|
75
|
+
}, g = (b) => {
|
|
76
|
+
N(b), a({
|
|
77
|
+
dataViewId: b,
|
|
78
|
+
// 重制数据
|
|
79
|
+
classificationList: [],
|
|
80
|
+
seriesList: [],
|
|
81
|
+
leftAxisList: [],
|
|
82
|
+
rightAxisList: [],
|
|
83
|
+
indicators: [],
|
|
84
|
+
controlList: []
|
|
85
|
+
});
|
|
86
|
+
}, { setDataList: T } = j(Qe, {
|
|
87
|
+
// eslint-disable-next-line no-void
|
|
88
|
+
setDataList: (b) => {
|
|
89
|
+
}
|
|
90
|
+
}), E = P([]), N = async (b) => {
|
|
91
|
+
if (!b)
|
|
92
|
+
return;
|
|
93
|
+
E.value = [];
|
|
94
|
+
const O = await e.post(`${me}/diagram/sourceList`, {
|
|
95
|
+
source: "SQL_VIEW",
|
|
96
|
+
dataViewId: b,
|
|
97
|
+
pageFlag: !0
|
|
98
|
+
}, {
|
|
99
|
+
headers: {
|
|
100
|
+
Authentication: t,
|
|
101
|
+
operateContext: "ygt"
|
|
102
|
+
}
|
|
103
|
+
}), { success: _, data: p = {} } = O.data;
|
|
104
|
+
if (_) {
|
|
105
|
+
const { rows: F = [] } = p;
|
|
106
|
+
F == null || F.forEach((C) => {
|
|
107
|
+
var $;
|
|
108
|
+
const L = (($ = C == null ? void 0 : C.dataViewColumns) == null ? void 0 : $.map((K) => ({
|
|
109
|
+
...K,
|
|
110
|
+
// 复选框
|
|
111
|
+
show: !0
|
|
112
|
+
}))) || [];
|
|
113
|
+
E.value = [...s(E), ...L];
|
|
114
|
+
}), T(s(E));
|
|
115
|
+
}
|
|
116
|
+
}, y = (b) => ({
|
|
117
|
+
TEXT: "字符",
|
|
118
|
+
NUMBER: "数字",
|
|
119
|
+
DATE: "时间"
|
|
120
|
+
})[b], S = (b, O) => {
|
|
121
|
+
var _;
|
|
122
|
+
(_ = b.dataTransfer) == null || _.setData("list-item", JSON.stringify(O));
|
|
123
|
+
};
|
|
124
|
+
return We(async () => {
|
|
125
|
+
await d(void 0, !0), N(s(o));
|
|
126
|
+
}), {
|
|
127
|
+
dataViewId: o,
|
|
128
|
+
handleLoadData: d,
|
|
129
|
+
treeSelectData: r,
|
|
130
|
+
dataViewList: E,
|
|
131
|
+
onDataViewIdChange: g,
|
|
132
|
+
mapGenericType: y,
|
|
133
|
+
onDragstart: S
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
const te = (e, t) => {
|
|
138
|
+
const n = e.__vccOpts || e;
|
|
139
|
+
for (const [a, o] of t)
|
|
140
|
+
n[a] = o;
|
|
141
|
+
return n;
|
|
142
|
+
}, zt = { class: "data-view-list" }, Ht = { class: "columns" }, Wt = ["onDragstart"], Qt = { class: "column-item-name" };
|
|
143
|
+
function Xt(e, t, n, a, o, r) {
|
|
144
|
+
const u = v("a-tree-select");
|
|
145
|
+
return f(), k("div", zt, [
|
|
146
|
+
c(u, {
|
|
147
|
+
value: e.dataViewId,
|
|
148
|
+
style: { width: "100%" },
|
|
149
|
+
placeholder: "请选择视图",
|
|
150
|
+
"dropdown-style": { maxHeight: "400px", overflow: "auto" },
|
|
151
|
+
"tree-data": e.treeSelectData,
|
|
152
|
+
"load-data": e.handleLoadData,
|
|
153
|
+
"tree-data-simple-mode": "",
|
|
154
|
+
onChange: e.onDataViewIdChange
|
|
155
|
+
}, null, 8, ["value", "tree-data", "load-data", "onChange"]),
|
|
156
|
+
R("div", Ht, [
|
|
157
|
+
(f(!0), k(V, null, Z(e.dataViewList, (i) => (f(), k("div", {
|
|
158
|
+
key: i.id
|
|
159
|
+
}, [
|
|
160
|
+
R("div", {
|
|
161
|
+
class: "column-item",
|
|
162
|
+
draggable: !0,
|
|
163
|
+
onDragstart: (l) => e.onDragstart(l, i)
|
|
164
|
+
}, [
|
|
165
|
+
G(" 【" + z(e.mapGenericType(i.genericType)) + "】 ", 1),
|
|
166
|
+
R("span", Qt, z(i.name), 1)
|
|
167
|
+
], 40, Wt)
|
|
168
|
+
]))), 128))
|
|
169
|
+
])
|
|
170
|
+
]);
|
|
171
|
+
}
|
|
172
|
+
const Jt = /* @__PURE__ */ te(qt, [["render", Xt], ["__scopeId", "data-v-97e32d62"]]);
|
|
173
|
+
function le(e, t) {
|
|
174
|
+
Kt(e) && (e = "100%");
|
|
175
|
+
var n = Yt(e);
|
|
176
|
+
return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
|
|
177
|
+
}
|
|
178
|
+
function Kt(e) {
|
|
179
|
+
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
180
|
+
}
|
|
181
|
+
function Yt(e) {
|
|
182
|
+
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
183
|
+
}
|
|
184
|
+
function xt(e) {
|
|
185
|
+
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
186
|
+
}
|
|
187
|
+
function Le(e) {
|
|
188
|
+
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
189
|
+
}
|
|
190
|
+
function Ne(e) {
|
|
191
|
+
return e.length === 1 ? "0" + e : String(e);
|
|
192
|
+
}
|
|
193
|
+
function Zt(e, t, n) {
|
|
194
|
+
return {
|
|
195
|
+
r: le(e, 255) * 255,
|
|
196
|
+
g: le(t, 255) * 255,
|
|
197
|
+
b: le(n, 255) * 255
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function Pe(e, t, n) {
|
|
201
|
+
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
202
|
+
}
|
|
203
|
+
function en(e, t, n) {
|
|
204
|
+
var a, o, r;
|
|
205
|
+
if (e = le(e, 360), t = le(t, 100), n = le(n, 100), t === 0)
|
|
206
|
+
o = n, r = n, a = n;
|
|
207
|
+
else {
|
|
208
|
+
var u = n < 0.5 ? n * (1 + t) : n + t - n * t, i = 2 * n - u;
|
|
209
|
+
a = Pe(i, u, e + 1 / 3), o = Pe(i, u, e), r = Pe(i, u, e - 1 / 3);
|
|
210
|
+
}
|
|
211
|
+
return { r: a * 255, g: o * 255, b: r * 255 };
|
|
212
|
+
}
|
|
213
|
+
function tn(e, t, n) {
|
|
214
|
+
e = le(e, 255), t = le(t, 255), n = le(n, 255);
|
|
215
|
+
var a = Math.max(e, t, n), o = Math.min(e, t, n), r = 0, u = a, i = a - o, l = a === 0 ? 0 : i / a;
|
|
216
|
+
if (a === o)
|
|
217
|
+
r = 0;
|
|
218
|
+
else {
|
|
219
|
+
switch (a) {
|
|
220
|
+
case e:
|
|
221
|
+
r = (t - n) / i + (t < n ? 6 : 0);
|
|
222
|
+
break;
|
|
223
|
+
case t:
|
|
224
|
+
r = (n - e) / i + 2;
|
|
225
|
+
break;
|
|
226
|
+
case n:
|
|
227
|
+
r = (e - t) / i + 4;
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
r /= 6;
|
|
231
|
+
}
|
|
232
|
+
return { h: r, s: l, v: u };
|
|
233
|
+
}
|
|
234
|
+
function nn(e, t, n) {
|
|
235
|
+
e = le(e, 360) * 6, t = le(t, 100), n = le(n, 100);
|
|
236
|
+
var a = Math.floor(e), o = e - a, r = n * (1 - t), u = n * (1 - o * t), i = n * (1 - (1 - o) * t), l = a % 6, d = [n, u, r, r, i, n][l], g = [i, n, n, u, r, r][l], T = [r, r, i, n, n, u][l];
|
|
237
|
+
return { r: d * 255, g: g * 255, b: T * 255 };
|
|
238
|
+
}
|
|
239
|
+
function an(e, t, n, a) {
|
|
240
|
+
var o = [
|
|
241
|
+
Ne(Math.round(e).toString(16)),
|
|
242
|
+
Ne(Math.round(t).toString(16)),
|
|
243
|
+
Ne(Math.round(n).toString(16))
|
|
244
|
+
];
|
|
245
|
+
return a && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
|
|
246
|
+
}
|
|
247
|
+
function nt(e) {
|
|
248
|
+
return ae(e) / 255;
|
|
249
|
+
}
|
|
250
|
+
function ae(e) {
|
|
251
|
+
return parseInt(e, 16);
|
|
252
|
+
}
|
|
253
|
+
var at = {
|
|
254
|
+
aliceblue: "#f0f8ff",
|
|
255
|
+
antiquewhite: "#faebd7",
|
|
256
|
+
aqua: "#00ffff",
|
|
257
|
+
aquamarine: "#7fffd4",
|
|
258
|
+
azure: "#f0ffff",
|
|
259
|
+
beige: "#f5f5dc",
|
|
260
|
+
bisque: "#ffe4c4",
|
|
261
|
+
black: "#000000",
|
|
262
|
+
blanchedalmond: "#ffebcd",
|
|
263
|
+
blue: "#0000ff",
|
|
264
|
+
blueviolet: "#8a2be2",
|
|
265
|
+
brown: "#a52a2a",
|
|
266
|
+
burlywood: "#deb887",
|
|
267
|
+
cadetblue: "#5f9ea0",
|
|
268
|
+
chartreuse: "#7fff00",
|
|
269
|
+
chocolate: "#d2691e",
|
|
270
|
+
coral: "#ff7f50",
|
|
271
|
+
cornflowerblue: "#6495ed",
|
|
272
|
+
cornsilk: "#fff8dc",
|
|
273
|
+
crimson: "#dc143c",
|
|
274
|
+
cyan: "#00ffff",
|
|
275
|
+
darkblue: "#00008b",
|
|
276
|
+
darkcyan: "#008b8b",
|
|
277
|
+
darkgoldenrod: "#b8860b",
|
|
278
|
+
darkgray: "#a9a9a9",
|
|
279
|
+
darkgreen: "#006400",
|
|
280
|
+
darkgrey: "#a9a9a9",
|
|
281
|
+
darkkhaki: "#bdb76b",
|
|
282
|
+
darkmagenta: "#8b008b",
|
|
283
|
+
darkolivegreen: "#556b2f",
|
|
284
|
+
darkorange: "#ff8c00",
|
|
285
|
+
darkorchid: "#9932cc",
|
|
286
|
+
darkred: "#8b0000",
|
|
287
|
+
darksalmon: "#e9967a",
|
|
288
|
+
darkseagreen: "#8fbc8f",
|
|
289
|
+
darkslateblue: "#483d8b",
|
|
290
|
+
darkslategray: "#2f4f4f",
|
|
291
|
+
darkslategrey: "#2f4f4f",
|
|
292
|
+
darkturquoise: "#00ced1",
|
|
293
|
+
darkviolet: "#9400d3",
|
|
294
|
+
deeppink: "#ff1493",
|
|
295
|
+
deepskyblue: "#00bfff",
|
|
296
|
+
dimgray: "#696969",
|
|
297
|
+
dimgrey: "#696969",
|
|
298
|
+
dodgerblue: "#1e90ff",
|
|
299
|
+
firebrick: "#b22222",
|
|
300
|
+
floralwhite: "#fffaf0",
|
|
301
|
+
forestgreen: "#228b22",
|
|
302
|
+
fuchsia: "#ff00ff",
|
|
303
|
+
gainsboro: "#dcdcdc",
|
|
304
|
+
ghostwhite: "#f8f8ff",
|
|
305
|
+
goldenrod: "#daa520",
|
|
306
|
+
gold: "#ffd700",
|
|
307
|
+
gray: "#808080",
|
|
308
|
+
green: "#008000",
|
|
309
|
+
greenyellow: "#adff2f",
|
|
310
|
+
grey: "#808080",
|
|
311
|
+
honeydew: "#f0fff0",
|
|
312
|
+
hotpink: "#ff69b4",
|
|
313
|
+
indianred: "#cd5c5c",
|
|
314
|
+
indigo: "#4b0082",
|
|
315
|
+
ivory: "#fffff0",
|
|
316
|
+
khaki: "#f0e68c",
|
|
317
|
+
lavenderblush: "#fff0f5",
|
|
318
|
+
lavender: "#e6e6fa",
|
|
319
|
+
lawngreen: "#7cfc00",
|
|
320
|
+
lemonchiffon: "#fffacd",
|
|
321
|
+
lightblue: "#add8e6",
|
|
322
|
+
lightcoral: "#f08080",
|
|
323
|
+
lightcyan: "#e0ffff",
|
|
324
|
+
lightgoldenrodyellow: "#fafad2",
|
|
325
|
+
lightgray: "#d3d3d3",
|
|
326
|
+
lightgreen: "#90ee90",
|
|
327
|
+
lightgrey: "#d3d3d3",
|
|
328
|
+
lightpink: "#ffb6c1",
|
|
329
|
+
lightsalmon: "#ffa07a",
|
|
330
|
+
lightseagreen: "#20b2aa",
|
|
331
|
+
lightskyblue: "#87cefa",
|
|
332
|
+
lightslategray: "#778899",
|
|
333
|
+
lightslategrey: "#778899",
|
|
334
|
+
lightsteelblue: "#b0c4de",
|
|
335
|
+
lightyellow: "#ffffe0",
|
|
336
|
+
lime: "#00ff00",
|
|
337
|
+
limegreen: "#32cd32",
|
|
338
|
+
linen: "#faf0e6",
|
|
339
|
+
magenta: "#ff00ff",
|
|
340
|
+
maroon: "#800000",
|
|
341
|
+
mediumaquamarine: "#66cdaa",
|
|
342
|
+
mediumblue: "#0000cd",
|
|
343
|
+
mediumorchid: "#ba55d3",
|
|
344
|
+
mediumpurple: "#9370db",
|
|
345
|
+
mediumseagreen: "#3cb371",
|
|
346
|
+
mediumslateblue: "#7b68ee",
|
|
347
|
+
mediumspringgreen: "#00fa9a",
|
|
348
|
+
mediumturquoise: "#48d1cc",
|
|
349
|
+
mediumvioletred: "#c71585",
|
|
350
|
+
midnightblue: "#191970",
|
|
351
|
+
mintcream: "#f5fffa",
|
|
352
|
+
mistyrose: "#ffe4e1",
|
|
353
|
+
moccasin: "#ffe4b5",
|
|
354
|
+
navajowhite: "#ffdead",
|
|
355
|
+
navy: "#000080",
|
|
356
|
+
oldlace: "#fdf5e6",
|
|
357
|
+
olive: "#808000",
|
|
358
|
+
olivedrab: "#6b8e23",
|
|
359
|
+
orange: "#ffa500",
|
|
360
|
+
orangered: "#ff4500",
|
|
361
|
+
orchid: "#da70d6",
|
|
362
|
+
palegoldenrod: "#eee8aa",
|
|
363
|
+
palegreen: "#98fb98",
|
|
364
|
+
paleturquoise: "#afeeee",
|
|
365
|
+
palevioletred: "#db7093",
|
|
366
|
+
papayawhip: "#ffefd5",
|
|
367
|
+
peachpuff: "#ffdab9",
|
|
368
|
+
peru: "#cd853f",
|
|
369
|
+
pink: "#ffc0cb",
|
|
370
|
+
plum: "#dda0dd",
|
|
371
|
+
powderblue: "#b0e0e6",
|
|
372
|
+
purple: "#800080",
|
|
373
|
+
rebeccapurple: "#663399",
|
|
374
|
+
red: "#ff0000",
|
|
375
|
+
rosybrown: "#bc8f8f",
|
|
376
|
+
royalblue: "#4169e1",
|
|
377
|
+
saddlebrown: "#8b4513",
|
|
378
|
+
salmon: "#fa8072",
|
|
379
|
+
sandybrown: "#f4a460",
|
|
380
|
+
seagreen: "#2e8b57",
|
|
381
|
+
seashell: "#fff5ee",
|
|
382
|
+
sienna: "#a0522d",
|
|
383
|
+
silver: "#c0c0c0",
|
|
384
|
+
skyblue: "#87ceeb",
|
|
385
|
+
slateblue: "#6a5acd",
|
|
386
|
+
slategray: "#708090",
|
|
387
|
+
slategrey: "#708090",
|
|
388
|
+
snow: "#fffafa",
|
|
389
|
+
springgreen: "#00ff7f",
|
|
390
|
+
steelblue: "#4682b4",
|
|
391
|
+
tan: "#d2b48c",
|
|
392
|
+
teal: "#008080",
|
|
393
|
+
thistle: "#d8bfd8",
|
|
394
|
+
tomato: "#ff6347",
|
|
395
|
+
turquoise: "#40e0d0",
|
|
396
|
+
violet: "#ee82ee",
|
|
397
|
+
wheat: "#f5deb3",
|
|
398
|
+
white: "#ffffff",
|
|
399
|
+
whitesmoke: "#f5f5f5",
|
|
400
|
+
yellow: "#ffff00",
|
|
401
|
+
yellowgreen: "#9acd32"
|
|
402
|
+
};
|
|
403
|
+
function Se(e) {
|
|
404
|
+
var t = { r: 0, g: 0, b: 0 }, n = 1, a = null, o = null, r = null, u = !1, i = !1;
|
|
405
|
+
return typeof e == "string" && (e = ln(e)), typeof e == "object" && (ce(e.r) && ce(e.g) && ce(e.b) ? (t = Zt(e.r, e.g, e.b), u = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : ce(e.h) && ce(e.s) && ce(e.v) ? (a = Le(e.s), o = Le(e.v), t = nn(e.h, a, o), u = !0, i = "hsv") : ce(e.h) && ce(e.s) && ce(e.l) && (a = Le(e.s), r = Le(e.l), t = en(e.h, a, r), u = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = xt(n), {
|
|
406
|
+
ok: u,
|
|
407
|
+
format: e.format || i,
|
|
408
|
+
r: Math.min(255, Math.max(t.r, 0)),
|
|
409
|
+
g: Math.min(255, Math.max(t.g, 0)),
|
|
410
|
+
b: Math.min(255, Math.max(t.b, 0)),
|
|
411
|
+
a: n
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
var on = "[-\\+]?\\d+%?", rn = "[-\\+]?\\d*\\.\\d+%?", fe = "(?:".concat(rn, ")|(?:").concat(on, ")"), Ge = "[\\s|\\(]+(".concat(fe, ")[,|\\s]+(").concat(fe, ")[,|\\s]+(").concat(fe, ")\\s*\\)?"), je = "[\\s|\\(]+(".concat(fe, ")[,|\\s]+(").concat(fe, ")[,|\\s]+(").concat(fe, ")[,|\\s]+(").concat(fe, ")\\s*\\)?"), ie = {
|
|
415
|
+
CSS_UNIT: new RegExp(fe),
|
|
416
|
+
rgb: new RegExp("rgb" + Ge),
|
|
417
|
+
rgba: new RegExp("rgba" + je),
|
|
418
|
+
hsl: new RegExp("hsl" + Ge),
|
|
419
|
+
hsla: new RegExp("hsla" + je),
|
|
420
|
+
hsv: new RegExp("hsv" + Ge),
|
|
421
|
+
hsva: new RegExp("hsva" + je),
|
|
422
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
423
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
424
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
425
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
426
|
+
};
|
|
427
|
+
function ln(e) {
|
|
428
|
+
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
429
|
+
return !1;
|
|
430
|
+
var t = !1;
|
|
431
|
+
if (at[e])
|
|
432
|
+
e = at[e], t = !0;
|
|
433
|
+
else if (e === "transparent")
|
|
434
|
+
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
435
|
+
var n = ie.rgb.exec(e);
|
|
436
|
+
return n ? { r: n[1], g: n[2], b: n[3] } : (n = ie.rgba.exec(e), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = ie.hsl.exec(e), n ? { h: n[1], s: n[2], l: n[3] } : (n = ie.hsla.exec(e), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = ie.hsv.exec(e), n ? { h: n[1], s: n[2], v: n[3] } : (n = ie.hsva.exec(e), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = ie.hex8.exec(e), n ? {
|
|
437
|
+
r: ae(n[1]),
|
|
438
|
+
g: ae(n[2]),
|
|
439
|
+
b: ae(n[3]),
|
|
440
|
+
a: nt(n[4]),
|
|
441
|
+
format: t ? "name" : "hex8"
|
|
442
|
+
} : (n = ie.hex6.exec(e), n ? {
|
|
443
|
+
r: ae(n[1]),
|
|
444
|
+
g: ae(n[2]),
|
|
445
|
+
b: ae(n[3]),
|
|
446
|
+
format: t ? "name" : "hex"
|
|
447
|
+
} : (n = ie.hex4.exec(e), n ? {
|
|
448
|
+
r: ae(n[1] + n[1]),
|
|
449
|
+
g: ae(n[2] + n[2]),
|
|
450
|
+
b: ae(n[3] + n[3]),
|
|
451
|
+
a: nt(n[4] + n[4]),
|
|
452
|
+
format: t ? "name" : "hex8"
|
|
453
|
+
} : (n = ie.hex3.exec(e), n ? {
|
|
454
|
+
r: ae(n[1] + n[1]),
|
|
455
|
+
g: ae(n[2] + n[2]),
|
|
456
|
+
b: ae(n[3] + n[3]),
|
|
457
|
+
format: t ? "name" : "hex"
|
|
458
|
+
} : !1)))))))));
|
|
459
|
+
}
|
|
460
|
+
function ce(e) {
|
|
461
|
+
return !!ie.CSS_UNIT.exec(String(e));
|
|
462
|
+
}
|
|
463
|
+
var Ae = 2, ot = 0.16, sn = 0.05, un = 0.05, cn = 0.15, kt = 5, Tt = 4, dn = [{
|
|
464
|
+
index: 7,
|
|
465
|
+
opacity: 0.15
|
|
466
|
+
}, {
|
|
467
|
+
index: 6,
|
|
468
|
+
opacity: 0.25
|
|
469
|
+
}, {
|
|
470
|
+
index: 5,
|
|
471
|
+
opacity: 0.3
|
|
472
|
+
}, {
|
|
473
|
+
index: 5,
|
|
474
|
+
opacity: 0.45
|
|
475
|
+
}, {
|
|
476
|
+
index: 5,
|
|
477
|
+
opacity: 0.65
|
|
478
|
+
}, {
|
|
479
|
+
index: 5,
|
|
480
|
+
opacity: 0.85
|
|
481
|
+
}, {
|
|
482
|
+
index: 4,
|
|
483
|
+
opacity: 0.9
|
|
484
|
+
}, {
|
|
485
|
+
index: 3,
|
|
486
|
+
opacity: 0.95
|
|
487
|
+
}, {
|
|
488
|
+
index: 2,
|
|
489
|
+
opacity: 0.97
|
|
490
|
+
}, {
|
|
491
|
+
index: 1,
|
|
492
|
+
opacity: 0.98
|
|
493
|
+
}];
|
|
494
|
+
function rt(e) {
|
|
495
|
+
var t = e.r, n = e.g, a = e.b, o = tn(t, n, a);
|
|
496
|
+
return {
|
|
497
|
+
h: o.h * 360,
|
|
498
|
+
s: o.s,
|
|
499
|
+
v: o.v
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
function Ee(e) {
|
|
503
|
+
var t = e.r, n = e.g, a = e.b;
|
|
504
|
+
return "#".concat(an(t, n, a, !1));
|
|
505
|
+
}
|
|
506
|
+
function fn(e, t, n) {
|
|
507
|
+
var a = n / 100, o = {
|
|
508
|
+
r: (t.r - e.r) * a + e.r,
|
|
509
|
+
g: (t.g - e.g) * a + e.g,
|
|
510
|
+
b: (t.b - e.b) * a + e.b
|
|
511
|
+
};
|
|
512
|
+
return o;
|
|
513
|
+
}
|
|
514
|
+
function lt(e, t, n) {
|
|
515
|
+
var a;
|
|
516
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? a = n ? Math.round(e.h) - Ae * t : Math.round(e.h) + Ae * t : a = n ? Math.round(e.h) + Ae * t : Math.round(e.h) - Ae * t, a < 0 ? a += 360 : a >= 360 && (a -= 360), a;
|
|
517
|
+
}
|
|
518
|
+
function it(e, t, n) {
|
|
519
|
+
if (e.h === 0 && e.s === 0)
|
|
520
|
+
return e.s;
|
|
521
|
+
var a;
|
|
522
|
+
return n ? a = e.s - ot * t : t === Tt ? a = e.s + ot : a = e.s + sn * t, a > 1 && (a = 1), n && t === kt && a > 0.1 && (a = 0.1), a < 0.06 && (a = 0.06), Number(a.toFixed(2));
|
|
523
|
+
}
|
|
524
|
+
function st(e, t, n) {
|
|
525
|
+
var a;
|
|
526
|
+
return n ? a = e.v + un * t : a = e.v - cn * t, a > 1 && (a = 1), Number(a.toFixed(2));
|
|
527
|
+
}
|
|
528
|
+
function Ve(e) {
|
|
529
|
+
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], a = Se(e), o = kt; o > 0; o -= 1) {
|
|
530
|
+
var r = rt(a), u = Ee(Se({
|
|
531
|
+
h: lt(r, o, !0),
|
|
532
|
+
s: it(r, o, !0),
|
|
533
|
+
v: st(r, o, !0)
|
|
534
|
+
}));
|
|
535
|
+
n.push(u);
|
|
536
|
+
}
|
|
537
|
+
n.push(Ee(a));
|
|
538
|
+
for (var i = 1; i <= Tt; i += 1) {
|
|
539
|
+
var l = rt(a), d = Ee(Se({
|
|
540
|
+
h: lt(l, i),
|
|
541
|
+
s: it(l, i),
|
|
542
|
+
v: st(l, i)
|
|
543
|
+
}));
|
|
544
|
+
n.push(d);
|
|
545
|
+
}
|
|
546
|
+
return t.theme === "dark" ? dn.map(function(g) {
|
|
547
|
+
var T = g.index, E = g.opacity, N = Ee(fn(Se(t.backgroundColor || "#141414"), Se(n[T]), E * 100));
|
|
548
|
+
return N;
|
|
549
|
+
}) : n;
|
|
550
|
+
}
|
|
551
|
+
var Re = {
|
|
552
|
+
red: "#F5222D",
|
|
553
|
+
volcano: "#FA541C",
|
|
554
|
+
orange: "#FA8C16",
|
|
555
|
+
gold: "#FAAD14",
|
|
556
|
+
yellow: "#FADB14",
|
|
557
|
+
lime: "#A0D911",
|
|
558
|
+
green: "#52C41A",
|
|
559
|
+
cyan: "#13C2C2",
|
|
560
|
+
blue: "#1890FF",
|
|
561
|
+
geekblue: "#2F54EB",
|
|
562
|
+
purple: "#722ED1",
|
|
563
|
+
magenta: "#EB2F96",
|
|
564
|
+
grey: "#666666"
|
|
565
|
+
}, Be = {}, Ue = {};
|
|
566
|
+
Object.keys(Re).forEach(function(e) {
|
|
567
|
+
Be[e] = Ve(Re[e]), Be[e].primary = Be[e][5], Ue[e] = Ve(Re[e], {
|
|
568
|
+
theme: "dark",
|
|
569
|
+
backgroundColor: "#141414"
|
|
570
|
+
}), Ue[e].primary = Ue[e][5];
|
|
571
|
+
});
|
|
572
|
+
var ut = [], we = [], pn = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
|
|
573
|
+
function gn() {
|
|
574
|
+
var e = document.createElement("style");
|
|
575
|
+
return e.setAttribute("type", "text/css"), e;
|
|
576
|
+
}
|
|
577
|
+
function mn(e, t) {
|
|
578
|
+
if (t = t || {}, e === void 0)
|
|
579
|
+
throw new Error(pn);
|
|
580
|
+
var n = t.prepend === !0 ? "prepend" : "append", a = t.container !== void 0 ? t.container : document.querySelector("head"), o = ut.indexOf(a);
|
|
581
|
+
o === -1 && (o = ut.push(a) - 1, we[o] = {});
|
|
582
|
+
var r;
|
|
583
|
+
return we[o] !== void 0 && we[o][n] !== void 0 ? r = we[o][n] : (r = we[o][n] = gn(), n === "prepend" ? a.insertBefore(r, a.childNodes[0]) : a.appendChild(r)), e.charCodeAt(0) === 65279 && (e = e.substr(1, e.length)), r.styleSheet ? r.styleSheet.cssText += e : r.textContent += e, r;
|
|
584
|
+
}
|
|
585
|
+
function ct(e) {
|
|
586
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
587
|
+
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
588
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(o) {
|
|
589
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
590
|
+
}))), a.forEach(function(o) {
|
|
591
|
+
hn(e, o, n[o]);
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
return e;
|
|
595
|
+
}
|
|
596
|
+
function hn(e, t, n) {
|
|
597
|
+
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
598
|
+
}
|
|
599
|
+
function vn(e, t) {
|
|
600
|
+
process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error("Warning: ".concat(t));
|
|
601
|
+
}
|
|
602
|
+
function yn(e, t) {
|
|
603
|
+
vn(e, "[@ant-design/icons-vue] ".concat(t));
|
|
604
|
+
}
|
|
605
|
+
function dt(e) {
|
|
606
|
+
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
607
|
+
}
|
|
608
|
+
function qe(e, t, n) {
|
|
609
|
+
return n ? tt(e.tag, ct({
|
|
610
|
+
key: t
|
|
611
|
+
}, n, e.attrs), (e.children || []).map(function(a, o) {
|
|
612
|
+
return qe(a, "".concat(t, "-").concat(e.tag, "-").concat(o));
|
|
613
|
+
})) : tt(e.tag, ct({
|
|
614
|
+
key: t
|
|
615
|
+
}, e.attrs), (e.children || []).map(function(a, o) {
|
|
616
|
+
return qe(a, "".concat(t, "-").concat(e.tag, "-").concat(o));
|
|
617
|
+
}));
|
|
618
|
+
}
|
|
619
|
+
function Lt(e) {
|
|
620
|
+
return Ve(e)[0];
|
|
621
|
+
}
|
|
622
|
+
function At(e) {
|
|
623
|
+
return e ? Array.isArray(e) ? e : [e] : [];
|
|
624
|
+
}
|
|
625
|
+
var bn = `
|
|
626
|
+
.anticon {
|
|
627
|
+
display: inline-block;
|
|
628
|
+
color: inherit;
|
|
629
|
+
font-style: normal;
|
|
630
|
+
line-height: 0;
|
|
631
|
+
text-align: center;
|
|
632
|
+
text-transform: none;
|
|
633
|
+
vertical-align: -0.125em;
|
|
634
|
+
text-rendering: optimizeLegibility;
|
|
635
|
+
-webkit-font-smoothing: antialiased;
|
|
636
|
+
-moz-osx-font-smoothing: grayscale;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.anticon > * {
|
|
640
|
+
line-height: 1;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.anticon svg {
|
|
644
|
+
display: inline-block;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.anticon::before {
|
|
648
|
+
display: none;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.anticon .anticon-icon {
|
|
652
|
+
display: block;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.anticon[tabindex] {
|
|
656
|
+
cursor: pointer;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.anticon-spin::before,
|
|
660
|
+
.anticon-spin {
|
|
661
|
+
display: inline-block;
|
|
662
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
663
|
+
animation: loadingCircle 1s infinite linear;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
@-webkit-keyframes loadingCircle {
|
|
667
|
+
100% {
|
|
668
|
+
-webkit-transform: rotate(360deg);
|
|
669
|
+
transform: rotate(360deg);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
@keyframes loadingCircle {
|
|
674
|
+
100% {
|
|
675
|
+
-webkit-transform: rotate(360deg);
|
|
676
|
+
transform: rotate(360deg);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
`, ft = !1, _n = function() {
|
|
680
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : bn;
|
|
681
|
+
Mt(function() {
|
|
682
|
+
ft || (typeof window < "u" && window.document && window.document.documentElement && mn(t, {
|
|
683
|
+
prepend: !0
|
|
684
|
+
}), ft = !0);
|
|
685
|
+
});
|
|
686
|
+
}, Cn = ["icon", "primaryColor", "secondaryColor"];
|
|
687
|
+
function On(e, t) {
|
|
688
|
+
if (e == null)
|
|
689
|
+
return {};
|
|
690
|
+
var n = Sn(e, t), a, o;
|
|
691
|
+
if (Object.getOwnPropertySymbols) {
|
|
692
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
693
|
+
for (o = 0; o < r.length; o++)
|
|
694
|
+
a = r[o], !(t.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (n[a] = e[a]);
|
|
695
|
+
}
|
|
696
|
+
return n;
|
|
697
|
+
}
|
|
698
|
+
function Sn(e, t) {
|
|
699
|
+
if (e == null)
|
|
700
|
+
return {};
|
|
701
|
+
var n = {}, a = Object.keys(e), o, r;
|
|
702
|
+
for (r = 0; r < a.length; r++)
|
|
703
|
+
o = a[r], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
704
|
+
return n;
|
|
705
|
+
}
|
|
706
|
+
function Ie(e) {
|
|
707
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
708
|
+
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
709
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(o) {
|
|
710
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
711
|
+
}))), a.forEach(function(o) {
|
|
712
|
+
wn(e, o, n[o]);
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
return e;
|
|
716
|
+
}
|
|
717
|
+
function wn(e, t, n) {
|
|
718
|
+
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
719
|
+
}
|
|
720
|
+
var $e = {
|
|
721
|
+
primaryColor: "#333",
|
|
722
|
+
secondaryColor: "#E6E6E6",
|
|
723
|
+
calculated: !1
|
|
724
|
+
};
|
|
725
|
+
function $n(e) {
|
|
726
|
+
var t = e.primaryColor, n = e.secondaryColor;
|
|
727
|
+
$e.primaryColor = t, $e.secondaryColor = n || Lt(t), $e.calculated = !!n;
|
|
728
|
+
}
|
|
729
|
+
function kn() {
|
|
730
|
+
return Ie({}, $e);
|
|
731
|
+
}
|
|
732
|
+
var _e = function(t, n) {
|
|
733
|
+
var a = Ie({}, t, n.attrs), o = a.icon, r = a.primaryColor, u = a.secondaryColor, i = On(a, Cn), l = $e;
|
|
734
|
+
if (r && (l = {
|
|
735
|
+
primaryColor: r,
|
|
736
|
+
secondaryColor: u || Lt(r)
|
|
737
|
+
}), _n(), yn(dt(o), "icon should be icon definiton, but got ".concat(o)), !dt(o))
|
|
738
|
+
return null;
|
|
739
|
+
var d = o;
|
|
740
|
+
return d && typeof d.icon == "function" && (d = Ie({}, d, {
|
|
741
|
+
icon: d.icon(l.primaryColor, l.secondaryColor)
|
|
742
|
+
})), qe(d.icon, "svg-".concat(d.name), Ie({}, i, {
|
|
743
|
+
"data-icon": d.name,
|
|
744
|
+
width: "1em",
|
|
745
|
+
height: "1em",
|
|
746
|
+
fill: "currentColor",
|
|
747
|
+
"aria-hidden": "true"
|
|
748
|
+
}));
|
|
749
|
+
};
|
|
750
|
+
_e.props = {
|
|
751
|
+
icon: Object,
|
|
752
|
+
primaryColor: String,
|
|
753
|
+
secondaryColor: String,
|
|
754
|
+
focusable: String
|
|
755
|
+
};
|
|
756
|
+
_e.inheritAttrs = !1;
|
|
757
|
+
_e.displayName = "IconBase";
|
|
758
|
+
_e.getTwoToneColors = kn;
|
|
759
|
+
_e.setTwoToneColors = $n;
|
|
760
|
+
const Xe = _e;
|
|
761
|
+
function Tn(e, t) {
|
|
762
|
+
return In(e) || En(e, t) || An(e, t) || Ln();
|
|
763
|
+
}
|
|
764
|
+
function Ln() {
|
|
765
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
766
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
767
|
+
}
|
|
768
|
+
function An(e, t) {
|
|
769
|
+
if (e) {
|
|
770
|
+
if (typeof e == "string")
|
|
771
|
+
return pt(e, t);
|
|
772
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
773
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set")
|
|
774
|
+
return Array.from(e);
|
|
775
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
776
|
+
return pt(e, t);
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
function pt(e, t) {
|
|
780
|
+
(t == null || t > e.length) && (t = e.length);
|
|
781
|
+
for (var n = 0, a = new Array(t); n < t; n++)
|
|
782
|
+
a[n] = e[n];
|
|
783
|
+
return a;
|
|
784
|
+
}
|
|
785
|
+
function En(e, t) {
|
|
786
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
787
|
+
if (n != null) {
|
|
788
|
+
var a = [], o = !0, r = !1, u, i;
|
|
789
|
+
try {
|
|
790
|
+
for (n = n.call(e); !(o = (u = n.next()).done) && (a.push(u.value), !(t && a.length === t)); o = !0)
|
|
791
|
+
;
|
|
792
|
+
} catch (l) {
|
|
793
|
+
r = !0, i = l;
|
|
794
|
+
} finally {
|
|
795
|
+
try {
|
|
796
|
+
!o && n.return != null && n.return();
|
|
797
|
+
} finally {
|
|
798
|
+
if (r)
|
|
799
|
+
throw i;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
return a;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
function In(e) {
|
|
806
|
+
if (Array.isArray(e))
|
|
807
|
+
return e;
|
|
808
|
+
}
|
|
809
|
+
function Et(e) {
|
|
810
|
+
var t = At(e), n = Tn(t, 2), a = n[0], o = n[1];
|
|
811
|
+
return Xe.setTwoToneColors({
|
|
812
|
+
primaryColor: a,
|
|
813
|
+
secondaryColor: o
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
function Dn() {
|
|
817
|
+
var e = Xe.getTwoToneColors();
|
|
818
|
+
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
819
|
+
}
|
|
820
|
+
var Mn = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
|
|
821
|
+
function Fn(e, t) {
|
|
822
|
+
return jn(e) || Gn(e, t) || Pn(e, t) || Nn();
|
|
823
|
+
}
|
|
824
|
+
function Nn() {
|
|
825
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
826
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
827
|
+
}
|
|
828
|
+
function Pn(e, t) {
|
|
829
|
+
if (e) {
|
|
830
|
+
if (typeof e == "string")
|
|
831
|
+
return gt(e, t);
|
|
832
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
833
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set")
|
|
834
|
+
return Array.from(e);
|
|
835
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
836
|
+
return gt(e, t);
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
function gt(e, t) {
|
|
840
|
+
(t == null || t > e.length) && (t = e.length);
|
|
841
|
+
for (var n = 0, a = new Array(t); n < t; n++)
|
|
842
|
+
a[n] = e[n];
|
|
843
|
+
return a;
|
|
844
|
+
}
|
|
845
|
+
function Gn(e, t) {
|
|
846
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
847
|
+
if (n != null) {
|
|
848
|
+
var a = [], o = !0, r = !1, u, i;
|
|
849
|
+
try {
|
|
850
|
+
for (n = n.call(e); !(o = (u = n.next()).done) && (a.push(u.value), !(t && a.length === t)); o = !0)
|
|
851
|
+
;
|
|
852
|
+
} catch (l) {
|
|
853
|
+
r = !0, i = l;
|
|
854
|
+
} finally {
|
|
855
|
+
try {
|
|
856
|
+
!o && n.return != null && n.return();
|
|
857
|
+
} finally {
|
|
858
|
+
if (r)
|
|
859
|
+
throw i;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
return a;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
function jn(e) {
|
|
866
|
+
if (Array.isArray(e))
|
|
867
|
+
return e;
|
|
868
|
+
}
|
|
869
|
+
function mt(e) {
|
|
870
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
871
|
+
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
872
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(o) {
|
|
873
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
874
|
+
}))), a.forEach(function(o) {
|
|
875
|
+
ze(e, o, n[o]);
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
return e;
|
|
879
|
+
}
|
|
880
|
+
function ze(e, t, n) {
|
|
881
|
+
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
882
|
+
}
|
|
883
|
+
function Rn(e, t) {
|
|
884
|
+
if (e == null)
|
|
885
|
+
return {};
|
|
886
|
+
var n = Bn(e, t), a, o;
|
|
887
|
+
if (Object.getOwnPropertySymbols) {
|
|
888
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
889
|
+
for (o = 0; o < r.length; o++)
|
|
890
|
+
a = r[o], !(t.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (n[a] = e[a]);
|
|
891
|
+
}
|
|
892
|
+
return n;
|
|
893
|
+
}
|
|
894
|
+
function Bn(e, t) {
|
|
895
|
+
if (e == null)
|
|
896
|
+
return {};
|
|
897
|
+
var n = {}, a = Object.keys(e), o, r;
|
|
898
|
+
for (r = 0; r < a.length; r++)
|
|
899
|
+
o = a[r], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
900
|
+
return n;
|
|
901
|
+
}
|
|
902
|
+
Et("#1890ff");
|
|
903
|
+
var Ce = function(t, n) {
|
|
904
|
+
var a, o = mt({}, t, n.attrs), r = o.class, u = o.icon, i = o.spin, l = o.rotate, d = o.tabindex, g = o.twoToneColor, T = o.onClick, E = Rn(o, Mn), N = (a = {
|
|
905
|
+
anticon: !0
|
|
906
|
+
}, ze(a, "anticon-".concat(u.name), !!u.name), ze(a, r, r), a), y = i === "" || i || u.name === "loading" ? "anticon-spin" : "", S = d;
|
|
907
|
+
S === void 0 && T && (S = -1, E.tabindex = S);
|
|
908
|
+
var b = l ? {
|
|
909
|
+
msTransform: "rotate(".concat(l, "deg)"),
|
|
910
|
+
transform: "rotate(".concat(l, "deg)")
|
|
911
|
+
} : void 0, O = At(g), _ = Fn(O, 2), p = _[0], F = _[1];
|
|
912
|
+
return c("span", mt({
|
|
913
|
+
role: "img",
|
|
914
|
+
"aria-label": u.name
|
|
915
|
+
}, E, {
|
|
916
|
+
onClick: T,
|
|
917
|
+
class: N
|
|
918
|
+
}), [c(Xe, {
|
|
919
|
+
class: y,
|
|
920
|
+
icon: u,
|
|
921
|
+
primaryColor: p,
|
|
922
|
+
secondaryColor: F,
|
|
923
|
+
style: b
|
|
924
|
+
}, null)]);
|
|
925
|
+
};
|
|
926
|
+
Ce.props = {
|
|
927
|
+
spin: Boolean,
|
|
928
|
+
rotate: Number,
|
|
929
|
+
icon: Object,
|
|
930
|
+
twoToneColor: String
|
|
931
|
+
};
|
|
932
|
+
Ce.displayName = "AntdIcon";
|
|
933
|
+
Ce.inheritAttrs = !1;
|
|
934
|
+
Ce.getTwoToneColor = Dn;
|
|
935
|
+
Ce.setTwoToneColor = Et;
|
|
936
|
+
const Oe = Ce;
|
|
937
|
+
var Un = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "outlined" };
|
|
938
|
+
const Vn = Un;
|
|
939
|
+
function ht(e) {
|
|
940
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
941
|
+
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
942
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(o) {
|
|
943
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
944
|
+
}))), a.forEach(function(o) {
|
|
945
|
+
qn(e, o, n[o]);
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
return e;
|
|
949
|
+
}
|
|
950
|
+
function qn(e, t, n) {
|
|
951
|
+
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
952
|
+
}
|
|
953
|
+
var Je = function(t, n) {
|
|
954
|
+
var a = ht({}, t, n.attrs);
|
|
955
|
+
return c(Oe, ht({}, a, {
|
|
956
|
+
icon: Vn
|
|
957
|
+
}), null);
|
|
958
|
+
};
|
|
959
|
+
Je.displayName = "CaretDownOutlined";
|
|
960
|
+
Je.inheritAttrs = !1;
|
|
961
|
+
const zn = Je;
|
|
962
|
+
var Hn = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z" } }] }, name: "caret-right", theme: "outlined" };
|
|
963
|
+
const Wn = Hn;
|
|
964
|
+
function vt(e) {
|
|
965
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
966
|
+
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
967
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(o) {
|
|
968
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
969
|
+
}))), a.forEach(function(o) {
|
|
970
|
+
Qn(e, o, n[o]);
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
return e;
|
|
974
|
+
}
|
|
975
|
+
function Qn(e, t, n) {
|
|
976
|
+
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
977
|
+
}
|
|
978
|
+
var Ke = function(t, n) {
|
|
979
|
+
var a = vt({}, t, n.attrs);
|
|
980
|
+
return c(Oe, vt({}, a, {
|
|
981
|
+
icon: Wn
|
|
982
|
+
}), null);
|
|
983
|
+
};
|
|
984
|
+
Ke.displayName = "CaretRightOutlined";
|
|
985
|
+
Ke.inheritAttrs = !1;
|
|
986
|
+
const Xn = Ke;
|
|
987
|
+
var Jn = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" };
|
|
988
|
+
const Kn = Jn;
|
|
989
|
+
function yt(e) {
|
|
990
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
991
|
+
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
992
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(o) {
|
|
993
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
994
|
+
}))), a.forEach(function(o) {
|
|
995
|
+
Yn(e, o, n[o]);
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
return e;
|
|
999
|
+
}
|
|
1000
|
+
function Yn(e, t, n) {
|
|
1001
|
+
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1002
|
+
}
|
|
1003
|
+
var Ye = function(t, n) {
|
|
1004
|
+
var a = yt({}, t, n.attrs);
|
|
1005
|
+
return c(Oe, yt({}, a, {
|
|
1006
|
+
icon: Kn
|
|
1007
|
+
}), null);
|
|
1008
|
+
};
|
|
1009
|
+
Ye.displayName = "CloseOutlined";
|
|
1010
|
+
Ye.inheritAttrs = !1;
|
|
1011
|
+
const It = Ye;
|
|
1012
|
+
var xn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" };
|
|
1013
|
+
const Zn = xn;
|
|
1014
|
+
function bt(e) {
|
|
1015
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1016
|
+
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
1017
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(o) {
|
|
1018
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
1019
|
+
}))), a.forEach(function(o) {
|
|
1020
|
+
ea(e, o, n[o]);
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1023
|
+
return e;
|
|
1024
|
+
}
|
|
1025
|
+
function ea(e, t, n) {
|
|
1026
|
+
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1027
|
+
}
|
|
1028
|
+
var xe = function(t, n) {
|
|
1029
|
+
var a = bt({}, t, n.attrs);
|
|
1030
|
+
return c(Oe, bt({}, a, {
|
|
1031
|
+
icon: Zn
|
|
1032
|
+
}), null);
|
|
1033
|
+
};
|
|
1034
|
+
xe.displayName = "DeleteOutlined";
|
|
1035
|
+
xe.inheritAttrs = !1;
|
|
1036
|
+
const ta = xe;
|
|
1037
|
+
var na = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
|
|
1038
|
+
const aa = na;
|
|
1039
|
+
function _t(e) {
|
|
1040
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1041
|
+
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
1042
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(o) {
|
|
1043
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
1044
|
+
}))), a.forEach(function(o) {
|
|
1045
|
+
oa(e, o, n[o]);
|
|
1046
|
+
});
|
|
1047
|
+
}
|
|
1048
|
+
return e;
|
|
1049
|
+
}
|
|
1050
|
+
function oa(e, t, n) {
|
|
1051
|
+
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1052
|
+
}
|
|
1053
|
+
var Ze = function(t, n) {
|
|
1054
|
+
var a = _t({}, t, n.attrs);
|
|
1055
|
+
return c(Oe, _t({}, a, {
|
|
1056
|
+
icon: aa
|
|
1057
|
+
}), null);
|
|
1058
|
+
};
|
|
1059
|
+
Ze.displayName = "PlusOutlined";
|
|
1060
|
+
Ze.inheritAttrs = !1;
|
|
1061
|
+
const ra = Ze;
|
|
1062
|
+
var la = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" } }] }, name: "setting", theme: "outlined" };
|
|
1063
|
+
const ia = la;
|
|
1064
|
+
function Ct(e) {
|
|
1065
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1066
|
+
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
1067
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(o) {
|
|
1068
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
1069
|
+
}))), a.forEach(function(o) {
|
|
1070
|
+
sa(e, o, n[o]);
|
|
1071
|
+
});
|
|
1072
|
+
}
|
|
1073
|
+
return e;
|
|
1074
|
+
}
|
|
1075
|
+
function sa(e, t, n) {
|
|
1076
|
+
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1077
|
+
}
|
|
1078
|
+
var et = function(t, n) {
|
|
1079
|
+
var a = Ct({}, t, n.attrs);
|
|
1080
|
+
return c(Oe, Ct({}, a, {
|
|
1081
|
+
icon: ia
|
|
1082
|
+
}), null);
|
|
1083
|
+
};
|
|
1084
|
+
et.displayName = "SettingOutlined";
|
|
1085
|
+
et.inheritAttrs = !1;
|
|
1086
|
+
const ua = et, ca = ee({
|
|
1087
|
+
name: "DataSourceList",
|
|
1088
|
+
components: {
|
|
1089
|
+
CaretRightOutlined: Xn,
|
|
1090
|
+
CaretDownOutlined: zn
|
|
1091
|
+
},
|
|
1092
|
+
setup() {
|
|
1093
|
+
const e = j(ke), t = s(j(be)), n = j(De), a = B(() => {
|
|
1094
|
+
var S;
|
|
1095
|
+
return (S = s(n)) == null ? void 0 : S.graphicConfig;
|
|
1096
|
+
}), o = B(() => {
|
|
1097
|
+
var S;
|
|
1098
|
+
return (S = s(a)) == null ? void 0 : S.dataSourceId;
|
|
1099
|
+
}), r = P([]), u = He({
|
|
1100
|
+
pageSize: 20,
|
|
1101
|
+
currentPage: 1,
|
|
1102
|
+
totalResult: 0
|
|
1103
|
+
}), i = P(""), l = async () => {
|
|
1104
|
+
const S = {
|
|
1105
|
+
source: "INDICATOR_LIB",
|
|
1106
|
+
queryRequest: {
|
|
1107
|
+
pageSize: u.pageSize,
|
|
1108
|
+
pageNum: u.currentPage
|
|
1109
|
+
},
|
|
1110
|
+
indexName: s(i),
|
|
1111
|
+
dataSourceId: s(o)
|
|
1112
|
+
}, b = await e.post(`${me}/diagram/sourceList`, S, {
|
|
1113
|
+
headers: {
|
|
1114
|
+
Authentication: t,
|
|
1115
|
+
operateContext: "ygt"
|
|
1116
|
+
}
|
|
1117
|
+
}), { success: O, data: _ = {} } = b.data;
|
|
1118
|
+
if (O) {
|
|
1119
|
+
const { rows: p = [], total: F = 0 } = _;
|
|
1120
|
+
p == null || p.forEach((C) => {
|
|
1121
|
+
var L;
|
|
1122
|
+
C.show = !1, (L = C.dataViewColumns) == null || L.forEach(($) => {
|
|
1123
|
+
$.show = !0, $.edit = !1;
|
|
1124
|
+
});
|
|
1125
|
+
}), r.value = p, u.totalResult = +F;
|
|
1126
|
+
}
|
|
1127
|
+
}, d = (S) => ({
|
|
1128
|
+
DIM: "维度",
|
|
1129
|
+
IDX: "指标"
|
|
1130
|
+
})[S], g = (S) => {
|
|
1131
|
+
r.value[S].show = !r.value[S].show;
|
|
1132
|
+
}, T = (S, b) => {
|
|
1133
|
+
var O;
|
|
1134
|
+
(O = S.dataTransfer) == null || O.setData("list-item", JSON.stringify(b));
|
|
1135
|
+
}, E = () => {
|
|
1136
|
+
l();
|
|
1137
|
+
}, N = Gt(() => {
|
|
1138
|
+
l();
|
|
1139
|
+
}, 200), y = (S, b) => {
|
|
1140
|
+
u.pageSize = b, u.currentPage = S, l();
|
|
1141
|
+
};
|
|
1142
|
+
return We(() => {
|
|
1143
|
+
l();
|
|
1144
|
+
}), {
|
|
1145
|
+
dataSourceList: r,
|
|
1146
|
+
pagination: u,
|
|
1147
|
+
onDragstart: T,
|
|
1148
|
+
onToggleGroup: g,
|
|
1149
|
+
mapScope: d,
|
|
1150
|
+
onSearch: E,
|
|
1151
|
+
onChange: N,
|
|
1152
|
+
onPaginationChange: y,
|
|
1153
|
+
searchText: i
|
|
1154
|
+
};
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1157
|
+
const da = { class: "data-source-list" }, fa = { class: "columns" }, pa = { class: "column-item" }, ga = ["onClick"], ma = { key: 0 }, ha = ["onDragstart"], va = { class: "column-child-item-name" };
|
|
1158
|
+
function ya(e, t, n, a, o, r) {
|
|
1159
|
+
const u = v("a-input-search"), i = v("caret-down-outlined"), l = v("caret-right-outlined"), d = v("a-pagination");
|
|
1160
|
+
return f(), k("div", da, [
|
|
1161
|
+
c(u, {
|
|
1162
|
+
value: e.searchText,
|
|
1163
|
+
"onUpdate:value": t[0] || (t[0] = (g) => e.searchText = g),
|
|
1164
|
+
placeholder: "请输入关键字",
|
|
1165
|
+
style: { width: "100%" },
|
|
1166
|
+
onChange: e.onChange,
|
|
1167
|
+
onSearch: e.onSearch
|
|
1168
|
+
}, null, 8, ["value", "onChange", "onSearch"]),
|
|
1169
|
+
R("div", fa, [
|
|
1170
|
+
(f(!0), k(V, null, Z(e.dataSourceList, (g, T) => (f(), k("div", {
|
|
1171
|
+
key: g.id
|
|
1172
|
+
}, [
|
|
1173
|
+
R("div", pa, [
|
|
1174
|
+
R("span", {
|
|
1175
|
+
style: { cursor: "pointer" },
|
|
1176
|
+
onClick: (E) => e.onToggleGroup(T)
|
|
1177
|
+
}, [
|
|
1178
|
+
g.show ? (f(), U(i, { key: 0 })) : (f(), U(l, { key: 1 })),
|
|
1179
|
+
G(" " + z(g.name), 1)
|
|
1180
|
+
], 8, ga)
|
|
1181
|
+
]),
|
|
1182
|
+
g.show ? (f(), k("div", ma, [
|
|
1183
|
+
(f(!0), k(V, null, Z(g.dataViewColumns, (E) => (f(), k("div", {
|
|
1184
|
+
class: "column-child-item",
|
|
1185
|
+
key: E.id,
|
|
1186
|
+
draggable: !0,
|
|
1187
|
+
onDragstart: (N) => e.onDragstart(N, E)
|
|
1188
|
+
}, [
|
|
1189
|
+
G(" 【" + z(e.mapScope(E.scope)) + "】 ", 1),
|
|
1190
|
+
R("span", va, z(E.name), 1)
|
|
1191
|
+
], 40, ha))), 128))
|
|
1192
|
+
])) : W("", !0)
|
|
1193
|
+
]))), 128))
|
|
1194
|
+
]),
|
|
1195
|
+
c(d, {
|
|
1196
|
+
size: "small",
|
|
1197
|
+
"show-quick-jumper": "",
|
|
1198
|
+
pageSize: e.pagination.pageSize,
|
|
1199
|
+
"onUpdate:pageSize": t[1] || (t[1] = (g) => e.pagination.pageSize = g),
|
|
1200
|
+
total: e.pagination.totalResult,
|
|
1201
|
+
"show-total": (g) => `共 ${g} 条`,
|
|
1202
|
+
current: e.pagination.currentPage,
|
|
1203
|
+
"onUpdate:current": t[2] || (t[2] = (g) => e.pagination.currentPage = g),
|
|
1204
|
+
onChange: e.onPaginationChange
|
|
1205
|
+
}, null, 8, ["pageSize", "total", "show-total", "current", "onChange"])
|
|
1206
|
+
]);
|
|
1207
|
+
}
|
|
1208
|
+
const ba = /* @__PURE__ */ te(ca, [["render", ya], ["__scopeId", "data-v-874ad438"]]), _a = ee({
|
|
1209
|
+
name: "DataList",
|
|
1210
|
+
components: {
|
|
1211
|
+
DataSourceList: ba,
|
|
1212
|
+
DataViewList: Jt
|
|
1213
|
+
},
|
|
1214
|
+
setup() {
|
|
1215
|
+
return {
|
|
1216
|
+
source: j($t)
|
|
1217
|
+
};
|
|
1218
|
+
}
|
|
1219
|
+
});
|
|
1220
|
+
function Ca(e, t, n, a, o, r) {
|
|
1221
|
+
const u = v("data-view-list"), i = v("data-source-list");
|
|
1222
|
+
return f(), k(V, null, [
|
|
1223
|
+
e.source === "SQL_VIEW" ? (f(), U(u, { key: 0 })) : W("", !0),
|
|
1224
|
+
e.source === "INDICATOR_LIB" ? (f(), U(i, { key: 1 })) : W("", !0)
|
|
1225
|
+
], 64);
|
|
1226
|
+
}
|
|
1227
|
+
const Oa = /* @__PURE__ */ te(_a, [["render", Ca]]), Sa = ee({
|
|
1228
|
+
name: "CustomSortModal",
|
|
1229
|
+
props: {
|
|
1230
|
+
item: {
|
|
1231
|
+
type: Object,
|
|
1232
|
+
default: () => ({})
|
|
1233
|
+
},
|
|
1234
|
+
index: {
|
|
1235
|
+
type: Number,
|
|
1236
|
+
default: 0
|
|
1237
|
+
},
|
|
1238
|
+
// 卡片类型
|
|
1239
|
+
type: {
|
|
1240
|
+
type: String,
|
|
1241
|
+
default: ""
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
components: {
|
|
1245
|
+
Draggable: Bt
|
|
1246
|
+
},
|
|
1247
|
+
setup(e, { expose: t }) {
|
|
1248
|
+
const n = j(ke), a = s(j(be)), o = j(ue), r = j(he), u = B(() => s(o).source), i = B(() => s(o).dataViewId), l = P([]), d = async () => {
|
|
1249
|
+
try {
|
|
1250
|
+
const _ = await n.post(`${me}/diagram/groupvalue`, {
|
|
1251
|
+
source: s(u),
|
|
1252
|
+
dataViewId: s(i),
|
|
1253
|
+
groupColumn: e.item.name,
|
|
1254
|
+
hrpIndexTypeGuid: e.item.id,
|
|
1255
|
+
pageFlag: !0
|
|
1256
|
+
}, {
|
|
1257
|
+
headers: {
|
|
1258
|
+
Authentication: a,
|
|
1259
|
+
operateContext: "ygt"
|
|
1260
|
+
}
|
|
1261
|
+
}), { success: p, data: F = [] } = _.data;
|
|
1262
|
+
p && (l.value = F == null ? void 0 : F.slice(0, 200));
|
|
1263
|
+
} catch (_) {
|
|
1264
|
+
console.error(_);
|
|
1265
|
+
}
|
|
1266
|
+
}, g = () => {
|
|
1267
|
+
var L;
|
|
1268
|
+
const _ = ((L = s(o)[e.type]) == null ? void 0 : L.slice()) || [], p = _[e.index], { label: F, name: C } = e.item;
|
|
1269
|
+
p.sort = {
|
|
1270
|
+
label: F,
|
|
1271
|
+
columnName: C,
|
|
1272
|
+
type: "CUSTOM",
|
|
1273
|
+
customOrderColumns: s(l)
|
|
1274
|
+
}, r({
|
|
1275
|
+
[e.type]: _
|
|
1276
|
+
});
|
|
1277
|
+
};
|
|
1278
|
+
let T = !1;
|
|
1279
|
+
const E = () => {
|
|
1280
|
+
T = !0;
|
|
1281
|
+
}, N = P(!1), y = () => {
|
|
1282
|
+
N.value = !0;
|
|
1283
|
+
}, S = () => {
|
|
1284
|
+
N.value = !1;
|
|
1285
|
+
}, b = () => {
|
|
1286
|
+
T && g(), T = !1, S();
|
|
1287
|
+
};
|
|
1288
|
+
return t({
|
|
1289
|
+
showModal: y
|
|
1290
|
+
}), pe(N, (_) => {
|
|
1291
|
+
var p, F;
|
|
1292
|
+
if (_) {
|
|
1293
|
+
const C = (F = (p = e.item) == null ? void 0 : p.sort) == null ? void 0 : F.customOrderColumns;
|
|
1294
|
+
C == null ? d() : l.value = C;
|
|
1295
|
+
} else
|
|
1296
|
+
l.value = [];
|
|
1297
|
+
}, {
|
|
1298
|
+
flush: "post"
|
|
1299
|
+
}), {
|
|
1300
|
+
visible: N,
|
|
1301
|
+
onCancel: b,
|
|
1302
|
+
customSortList: l,
|
|
1303
|
+
onChange: E,
|
|
1304
|
+
onDeleteConfig: () => {
|
|
1305
|
+
var L;
|
|
1306
|
+
const _ = ((L = s(o)[e.type]) == null ? void 0 : L.slice()) || [], p = _[e.index], { label: F, name: C } = e.item;
|
|
1307
|
+
p.sort = {
|
|
1308
|
+
label: F,
|
|
1309
|
+
columnName: C
|
|
1310
|
+
}, r({
|
|
1311
|
+
[e.type]: _
|
|
1312
|
+
}), S();
|
|
1313
|
+
}
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1316
|
+
});
|
|
1317
|
+
const wa = { class: "button-wrapper" }, $a = { class: "sort-item" };
|
|
1318
|
+
function ka(e, t, n, a, o, r) {
|
|
1319
|
+
const u = v("a-button"), i = v("draggable"), l = v("a-modal");
|
|
1320
|
+
return f(), U(l, {
|
|
1321
|
+
title: "进行拖拽排序",
|
|
1322
|
+
visible: e.visible,
|
|
1323
|
+
"destroy-on-close": "",
|
|
1324
|
+
width: "50%",
|
|
1325
|
+
onCancel: e.onCancel,
|
|
1326
|
+
bodyStyle: {
|
|
1327
|
+
height: "70vh",
|
|
1328
|
+
overflow: "auto",
|
|
1329
|
+
padding: "10px 24px"
|
|
1330
|
+
},
|
|
1331
|
+
footer: null
|
|
1332
|
+
}, {
|
|
1333
|
+
default: h(() => [
|
|
1334
|
+
R("div", wa, [
|
|
1335
|
+
c(u, {
|
|
1336
|
+
type: "danger",
|
|
1337
|
+
onClick: e.onDeleteConfig
|
|
1338
|
+
}, {
|
|
1339
|
+
default: h(() => [
|
|
1340
|
+
G(" 删除配置 ")
|
|
1341
|
+
]),
|
|
1342
|
+
_: 1
|
|
1343
|
+
}, 8, ["onClick"])
|
|
1344
|
+
]),
|
|
1345
|
+
c(i, {
|
|
1346
|
+
modelValue: e.customSortList,
|
|
1347
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => e.customSortList = d),
|
|
1348
|
+
class: "custom-sort-list",
|
|
1349
|
+
"item-key": "id",
|
|
1350
|
+
put: !1,
|
|
1351
|
+
onChange: e.onChange
|
|
1352
|
+
}, {
|
|
1353
|
+
item: h(({ element: d }) => [
|
|
1354
|
+
R("div", $a, z(d), 1)
|
|
1355
|
+
]),
|
|
1356
|
+
_: 1
|
|
1357
|
+
}, 8, ["modelValue", "onChange"])
|
|
1358
|
+
]),
|
|
1359
|
+
_: 1
|
|
1360
|
+
}, 8, ["visible", "onCancel"]);
|
|
1361
|
+
}
|
|
1362
|
+
const Ta = /* @__PURE__ */ te(Sa, [["render", ka], ["__scopeId", "data-v-edda5b08"]]), La = ee({
|
|
1363
|
+
name: "CustomGroupModal",
|
|
1364
|
+
components: {
|
|
1365
|
+
CloseOutlined: It
|
|
1366
|
+
},
|
|
1367
|
+
props: {
|
|
1368
|
+
item: {
|
|
1369
|
+
type: Object,
|
|
1370
|
+
default: () => ({})
|
|
1371
|
+
},
|
|
1372
|
+
index: {
|
|
1373
|
+
type: Number,
|
|
1374
|
+
default: 0
|
|
1375
|
+
},
|
|
1376
|
+
// 卡片类型
|
|
1377
|
+
type: {
|
|
1378
|
+
type: String,
|
|
1379
|
+
default: ""
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
setup(e, { expose: t }) {
|
|
1383
|
+
const n = j(ke), a = s(j(be));
|
|
1384
|
+
let o = !1;
|
|
1385
|
+
const r = B(() => `自定义分组-${e.item.label}`), u = P(null), i = P([]), l = P([]), d = B(() => {
|
|
1386
|
+
const I = s(l).map((q) => q.title);
|
|
1387
|
+
return new Set(I);
|
|
1388
|
+
}), g = P([]);
|
|
1389
|
+
pe(() => s(l).length, (I) => {
|
|
1390
|
+
g.value = new Array(I).fill(!1);
|
|
1391
|
+
});
|
|
1392
|
+
const T = B(() => {
|
|
1393
|
+
let I = 0;
|
|
1394
|
+
return s(l).forEach((q) => {
|
|
1395
|
+
var Q;
|
|
1396
|
+
(Q = q.data) == null || Q.forEach((H) => {
|
|
1397
|
+
H.checked && I++;
|
|
1398
|
+
});
|
|
1399
|
+
}), I;
|
|
1400
|
+
}), E = () => {
|
|
1401
|
+
const I = s(u);
|
|
1402
|
+
if (!I) {
|
|
1403
|
+
ye.error("创建分组名不能空");
|
|
1404
|
+
return;
|
|
1405
|
+
}
|
|
1406
|
+
s(d).has(I) ? ye.error("分组名已存在,请重新命名") : (s(l).push({
|
|
1407
|
+
title: I,
|
|
1408
|
+
data: []
|
|
1409
|
+
}), o = !0);
|
|
1410
|
+
}, N = (I) => {
|
|
1411
|
+
s(l).splice(I, 1), o = !0;
|
|
1412
|
+
}, y = P(null), S = () => {
|
|
1413
|
+
if (s(T) === 0) {
|
|
1414
|
+
ye.error("当前移入分组已选个数为0");
|
|
1415
|
+
return;
|
|
1416
|
+
}
|
|
1417
|
+
const I = s(y);
|
|
1418
|
+
if (I == null) {
|
|
1419
|
+
ye.error("请选择移入分组");
|
|
1420
|
+
return;
|
|
1421
|
+
}
|
|
1422
|
+
if (!s(l)[I]) {
|
|
1423
|
+
ye.error("移入分组不存在,请重新选择");
|
|
1424
|
+
return;
|
|
1425
|
+
}
|
|
1426
|
+
const q = [], Q = s(l).length;
|
|
1427
|
+
for (let H = 0; H < Q; H++) {
|
|
1428
|
+
const re = s(l)[H];
|
|
1429
|
+
s(l)[H].data = re.data.filter((m) => (m.checked && q.push({
|
|
1430
|
+
...m,
|
|
1431
|
+
checked: !1
|
|
1432
|
+
}), !m.checked));
|
|
1433
|
+
}
|
|
1434
|
+
s(l)[I].data = [...q, ...s(l)[I].data], o = !0;
|
|
1435
|
+
}, b = (I) => {
|
|
1436
|
+
s(g)[I] = !0;
|
|
1437
|
+
}, O = (I) => {
|
|
1438
|
+
s(g)[I] = !1;
|
|
1439
|
+
}, _ = (I, q) => {
|
|
1440
|
+
const Q = I.target.value;
|
|
1441
|
+
s(d).has(Q) && ye.error("组名不能相同,请修改"), s(l)[q].title = Q, o = !0;
|
|
1442
|
+
}, p = j(ue), F = j(he), C = B(() => s(p).source), L = B(() => s(p).dataViewId), $ = P(!1), K = () => {
|
|
1443
|
+
var w, A;
|
|
1444
|
+
const I = s(l);
|
|
1445
|
+
let q = "";
|
|
1446
|
+
s($) && (q = (w = I[0]) == null ? void 0 : w.title);
|
|
1447
|
+
const Q = I == null ? void 0 : I.length, H = {};
|
|
1448
|
+
for (let M = 1; M < Q; M++) {
|
|
1449
|
+
const J = I[M] || {}, { title: Y, data: x } = J;
|
|
1450
|
+
H[Y] = (x == null ? void 0 : x.map((Te) => Te.label)) || [];
|
|
1451
|
+
}
|
|
1452
|
+
const re = ((A = s(p)[e.type]) == null ? void 0 : A.slice()) || [], m = re[e.index];
|
|
1453
|
+
m.customGroup = {
|
|
1454
|
+
groupInfoMap: H,
|
|
1455
|
+
otherGroupName: q
|
|
1456
|
+
}, F({
|
|
1457
|
+
[e.type]: re
|
|
1458
|
+
});
|
|
1459
|
+
}, D = P(!1), X = () => {
|
|
1460
|
+
D.value = !0;
|
|
1461
|
+
}, ne = () => {
|
|
1462
|
+
D.value = !1;
|
|
1463
|
+
}, oe = () => {
|
|
1464
|
+
ne(), o && K(), o = !1;
|
|
1465
|
+
}, de = () => {
|
|
1466
|
+
o = !0;
|
|
1467
|
+
}, ve = /* @__PURE__ */ new Set(), Me = async () => {
|
|
1468
|
+
const I = e.item.customGroup || {}, q = I.otherGroupName, Q = I.groupInfoMap;
|
|
1469
|
+
(q === "" || q == null) && ($.value = !1), s(l)[0] = {
|
|
1470
|
+
title: q || "未分组",
|
|
1471
|
+
data: []
|
|
1472
|
+
};
|
|
1473
|
+
let H = 1;
|
|
1474
|
+
for (const re in Q)
|
|
1475
|
+
if (Object.prototype.hasOwnProperty.call(Q, re)) {
|
|
1476
|
+
const w = Q[re].map((A) => (ve.add(A), {
|
|
1477
|
+
label: A,
|
|
1478
|
+
checked: !1
|
|
1479
|
+
}));
|
|
1480
|
+
s(l)[H] = {
|
|
1481
|
+
title: re,
|
|
1482
|
+
data: w
|
|
1483
|
+
}, H++;
|
|
1484
|
+
}
|
|
1485
|
+
await Fe();
|
|
1486
|
+
}, Fe = async () => {
|
|
1487
|
+
var I;
|
|
1488
|
+
try {
|
|
1489
|
+
const q = await n.post(`${me}/diagram/groupvalue`, {
|
|
1490
|
+
source: s(C),
|
|
1491
|
+
dataViewId: s(L),
|
|
1492
|
+
groupColumn: e.item.name,
|
|
1493
|
+
hrpIndexTypeGuid: e.item.id,
|
|
1494
|
+
pageFlag: !0
|
|
1495
|
+
}, {
|
|
1496
|
+
headers: {
|
|
1497
|
+
Authentication: a,
|
|
1498
|
+
operateContext: "ygt"
|
|
1499
|
+
}
|
|
1500
|
+
}), { success: Q, data: H = [] } = q.data;
|
|
1501
|
+
if (Q) {
|
|
1502
|
+
const re = [];
|
|
1503
|
+
(I = H == null ? void 0 : H.slice(0, 200)) == null || I.forEach((m) => {
|
|
1504
|
+
ve.has(m) || re.push({
|
|
1505
|
+
label: m,
|
|
1506
|
+
checked: !1
|
|
1507
|
+
});
|
|
1508
|
+
}), s(l)[0].data = re;
|
|
1509
|
+
}
|
|
1510
|
+
} catch (q) {
|
|
1511
|
+
console.error(q);
|
|
1512
|
+
}
|
|
1513
|
+
};
|
|
1514
|
+
return pe(D, (I) => {
|
|
1515
|
+
I && Me();
|
|
1516
|
+
}, {
|
|
1517
|
+
flush: "post"
|
|
1518
|
+
}), t({
|
|
1519
|
+
showModal: X
|
|
1520
|
+
}), {
|
|
1521
|
+
visible: D,
|
|
1522
|
+
title: r,
|
|
1523
|
+
activeKey: i,
|
|
1524
|
+
customGroupList: l,
|
|
1525
|
+
onCancel: oe,
|
|
1526
|
+
useOtherGroup: $,
|
|
1527
|
+
selectCount: T,
|
|
1528
|
+
createGroupTitle: u,
|
|
1529
|
+
onAddGroup: E,
|
|
1530
|
+
onDeleteGroup: N,
|
|
1531
|
+
onMoveInGroup: S,
|
|
1532
|
+
selectGroupIndex: y,
|
|
1533
|
+
onEditTitle: b,
|
|
1534
|
+
onTitleChange: _,
|
|
1535
|
+
onFinishEditTitle: O,
|
|
1536
|
+
onUseOtherGroup: de,
|
|
1537
|
+
customGroupEditTitleList: g
|
|
1538
|
+
};
|
|
1539
|
+
}
|
|
1540
|
+
});
|
|
1541
|
+
const Aa = { class: "custom-group-header" }, Ea = { class: "move-and-create" }, Ia = { class: "select-tip" }, Da = { class: "select-count" }, Ma = { class: "create-group" }, Fa = { class: "custom-group-content" }, Na = ["onClick"], Pa = { class: "extra" }, Ga = { class: "custom-group-list" }, ja = { class: "text" };
|
|
1542
|
+
function Ra(e, t, n, a, o, r) {
|
|
1543
|
+
const u = v("a-select-option"), i = v("a-select"), l = v("a-button"), d = v("a-input"), g = v("a-checkbox"), T = v("a-tag"), E = v("close-outlined"), N = v("a-checkable-tag"), y = v("a-collapse-panel"), S = v("a-collapse"), b = v("a-modal");
|
|
1544
|
+
return f(), U(b, {
|
|
1545
|
+
title: e.title,
|
|
1546
|
+
visible: e.visible,
|
|
1547
|
+
"destroy-on-close": "",
|
|
1548
|
+
width: "50%",
|
|
1549
|
+
bodyStyle: {
|
|
1550
|
+
height: "70vh",
|
|
1551
|
+
overflow: "auto",
|
|
1552
|
+
display: "flex",
|
|
1553
|
+
flexDirection: "column"
|
|
1554
|
+
},
|
|
1555
|
+
footer: null,
|
|
1556
|
+
onCancel: e.onCancel
|
|
1557
|
+
}, {
|
|
1558
|
+
default: h(() => [
|
|
1559
|
+
R("div", Aa, [
|
|
1560
|
+
R("div", Ea, [
|
|
1561
|
+
R("div", null, [
|
|
1562
|
+
R("span", Ia, [
|
|
1563
|
+
G(" 已选"),
|
|
1564
|
+
R("span", Da, z(e.selectCount), 1),
|
|
1565
|
+
G("个 ")
|
|
1566
|
+
]),
|
|
1567
|
+
c(i, {
|
|
1568
|
+
value: e.selectGroupIndex,
|
|
1569
|
+
"onUpdate:value": t[0] || (t[0] = (O) => e.selectGroupIndex = O),
|
|
1570
|
+
class: "select-group",
|
|
1571
|
+
placeholder: "请选择移入分组"
|
|
1572
|
+
}, {
|
|
1573
|
+
default: h(() => [
|
|
1574
|
+
(f(!0), k(V, null, Z(e.customGroupList, (O, _) => (f(), U(u, { key: _ }, {
|
|
1575
|
+
default: h(() => [
|
|
1576
|
+
G(z(O.title), 1)
|
|
1577
|
+
]),
|
|
1578
|
+
_: 2
|
|
1579
|
+
}, 1024))), 128))
|
|
1580
|
+
]),
|
|
1581
|
+
_: 1
|
|
1582
|
+
}, 8, ["value"]),
|
|
1583
|
+
c(l, { onClick: e.onMoveInGroup }, {
|
|
1584
|
+
default: h(() => [
|
|
1585
|
+
G("移入分组")
|
|
1586
|
+
]),
|
|
1587
|
+
_: 1
|
|
1588
|
+
}, 8, ["onClick"])
|
|
1589
|
+
]),
|
|
1590
|
+
R("div", Ma, [
|
|
1591
|
+
G(" 创建分组: "),
|
|
1592
|
+
c(d, {
|
|
1593
|
+
class: "create-group-name",
|
|
1594
|
+
value: e.createGroupTitle,
|
|
1595
|
+
"onUpdate:value": t[1] || (t[1] = (O) => e.createGroupTitle = O),
|
|
1596
|
+
placeholder: "请输入创建分组名",
|
|
1597
|
+
onPressEnter: e.onAddGroup
|
|
1598
|
+
}, null, 8, ["value", "onPressEnter"])
|
|
1599
|
+
])
|
|
1600
|
+
]),
|
|
1601
|
+
R("div", null, [
|
|
1602
|
+
c(g, {
|
|
1603
|
+
checked: e.useOtherGroup,
|
|
1604
|
+
"onUpdate:checked": t[2] || (t[2] = (O) => e.useOtherGroup = O),
|
|
1605
|
+
onChange: e.onUseOtherGroup
|
|
1606
|
+
}, {
|
|
1607
|
+
default: h(() => [
|
|
1608
|
+
G(" 将未分组设为其他分组 ")
|
|
1609
|
+
]),
|
|
1610
|
+
_: 1
|
|
1611
|
+
}, 8, ["checked", "onChange"])
|
|
1612
|
+
])
|
|
1613
|
+
]),
|
|
1614
|
+
R("div", Fa, [
|
|
1615
|
+
c(S, {
|
|
1616
|
+
activeKey: e.activeKey,
|
|
1617
|
+
"onUpdate:activeKey": t[3] || (t[3] = (O) => e.activeKey = O),
|
|
1618
|
+
ghost: ""
|
|
1619
|
+
}, {
|
|
1620
|
+
default: h(() => [
|
|
1621
|
+
(f(!0), k(V, null, Z(e.customGroupList, (O, _) => (f(), U(y, { key: _ }, {
|
|
1622
|
+
header: h(() => [
|
|
1623
|
+
e.customGroupEditTitleList[_] ? (f(), U(d, {
|
|
1624
|
+
key: 1,
|
|
1625
|
+
class: "edit-title-input",
|
|
1626
|
+
value: O.title,
|
|
1627
|
+
size: "small",
|
|
1628
|
+
onChange: (p) => e.onTitleChange(p, _),
|
|
1629
|
+
onBlur: (p) => e.onFinishEditTitle(_),
|
|
1630
|
+
onPressEnter: (p) => e.onFinishEditTitle(_)
|
|
1631
|
+
}, null, 8, ["value", "onChange", "onBlur", "onPressEnter"])) : (f(), k("div", {
|
|
1632
|
+
key: 0,
|
|
1633
|
+
onClick: se((p) => e.onEditTitle(_), ["prevent", "stop"])
|
|
1634
|
+
}, z(O.title), 9, Na))
|
|
1635
|
+
]),
|
|
1636
|
+
extra: h(() => [
|
|
1637
|
+
R("div", Pa, [
|
|
1638
|
+
_ === 0 && e.useOtherGroup ? (f(), U(T, {
|
|
1639
|
+
key: 0,
|
|
1640
|
+
class: "tag",
|
|
1641
|
+
color: "blue"
|
|
1642
|
+
}, {
|
|
1643
|
+
default: h(() => [
|
|
1644
|
+
G(" 其他组 ")
|
|
1645
|
+
]),
|
|
1646
|
+
_: 1
|
|
1647
|
+
})) : W("", !0),
|
|
1648
|
+
_ !== 0 ? (f(), k(V, { key: 1 }, [
|
|
1649
|
+
c(T, {
|
|
1650
|
+
class: "tag",
|
|
1651
|
+
color: "green"
|
|
1652
|
+
}, {
|
|
1653
|
+
default: h(() => [
|
|
1654
|
+
G(" 自定义组 ")
|
|
1655
|
+
]),
|
|
1656
|
+
_: 1
|
|
1657
|
+
}),
|
|
1658
|
+
c(E, {
|
|
1659
|
+
onClick: se((p) => e.onDeleteGroup(_), ["prevent", "stop"])
|
|
1660
|
+
}, null, 8, ["onClick"])
|
|
1661
|
+
], 64)) : W("", !0)
|
|
1662
|
+
])
|
|
1663
|
+
]),
|
|
1664
|
+
default: h(() => [
|
|
1665
|
+
R("div", Ga, [
|
|
1666
|
+
(f(!0), k(V, null, Z(O.data, (p, F) => (f(), U(N, {
|
|
1667
|
+
color: "red",
|
|
1668
|
+
checked: p.checked,
|
|
1669
|
+
"onUpdate:checked": (C) => p.checked = C,
|
|
1670
|
+
class: "custom-group",
|
|
1671
|
+
key: F
|
|
1672
|
+
}, {
|
|
1673
|
+
default: h(() => [
|
|
1674
|
+
R("span", ja, z(p.label), 1)
|
|
1675
|
+
]),
|
|
1676
|
+
_: 2
|
|
1677
|
+
}, 1032, ["checked", "onUpdate:checked"]))), 128))
|
|
1678
|
+
])
|
|
1679
|
+
]),
|
|
1680
|
+
_: 2
|
|
1681
|
+
}, 1024))), 128))
|
|
1682
|
+
]),
|
|
1683
|
+
_: 1
|
|
1684
|
+
}, 8, ["activeKey"])
|
|
1685
|
+
])
|
|
1686
|
+
]),
|
|
1687
|
+
_: 1
|
|
1688
|
+
}, 8, ["title", "visible", "onCancel"]);
|
|
1689
|
+
}
|
|
1690
|
+
const Ba = /* @__PURE__ */ te(La, [["render", Ra], ["__scopeId", "data-v-ca389e04"]]), Dt = "CHANGE_CONDITION", Ua = ee({
|
|
1691
|
+
name: "Condition",
|
|
1692
|
+
components: {
|
|
1693
|
+
CloseOutlined: It
|
|
1694
|
+
},
|
|
1695
|
+
props: {
|
|
1696
|
+
data: {
|
|
1697
|
+
type: Object,
|
|
1698
|
+
default: () => ({})
|
|
1699
|
+
},
|
|
1700
|
+
level: {
|
|
1701
|
+
type: Number,
|
|
1702
|
+
default: 0
|
|
1703
|
+
},
|
|
1704
|
+
index: {
|
|
1705
|
+
type: Number,
|
|
1706
|
+
default: 0
|
|
1707
|
+
},
|
|
1708
|
+
type: {
|
|
1709
|
+
type: String,
|
|
1710
|
+
default: ""
|
|
1711
|
+
}
|
|
1712
|
+
},
|
|
1713
|
+
setup(e) {
|
|
1714
|
+
var p, F, C, L, $, K;
|
|
1715
|
+
const t = j(ue), n = j(ke), a = s(j(be)), o = B(() => {
|
|
1716
|
+
var D;
|
|
1717
|
+
return (D = s(t)) == null ? void 0 : D.dataViewId;
|
|
1718
|
+
}), r = B(() => {
|
|
1719
|
+
var D;
|
|
1720
|
+
return (D = s(t)) == null ? void 0 : D.source;
|
|
1721
|
+
}), { getDataList: u } = j(Qe, {
|
|
1722
|
+
getDataList: () => []
|
|
1723
|
+
}), i = P({
|
|
1724
|
+
fieldName: (p = e.data) == null ? void 0 : p.fieldName,
|
|
1725
|
+
fieldType: (F = e.data) == null ? void 0 : F.fieldType,
|
|
1726
|
+
rule: (C = e.data) == null ? void 0 : C.rule,
|
|
1727
|
+
id: (L = e.data) == null ? void 0 : L.id,
|
|
1728
|
+
fieldValue: ($ = e.data) == null ? void 0 : $.fieldValue,
|
|
1729
|
+
label: (K = e.data) == null ? void 0 : K.label,
|
|
1730
|
+
// 暂时传空
|
|
1731
|
+
targetSource: ""
|
|
1732
|
+
}), l = B(() => {
|
|
1733
|
+
const D = e.type;
|
|
1734
|
+
if (D === "classificationList" || D === "seriesList") {
|
|
1735
|
+
let X = [];
|
|
1736
|
+
for (const ne in s(t))
|
|
1737
|
+
if (Object.prototype.hasOwnProperty.call(s(t), ne)) {
|
|
1738
|
+
const oe = s(t)[ne];
|
|
1739
|
+
Array.isArray(oe) && (X = X.concat(oe));
|
|
1740
|
+
}
|
|
1741
|
+
return X;
|
|
1742
|
+
} else if (D === "leftAxisList" || D === "rightAxisList")
|
|
1743
|
+
return s(u());
|
|
1744
|
+
return [];
|
|
1745
|
+
}), { updateCondition: d, deleteCondition: g } = j(Dt, {
|
|
1746
|
+
// eslint-disable-next-line no-void
|
|
1747
|
+
updateCondition: (D, X, ne) => {
|
|
1748
|
+
},
|
|
1749
|
+
// eslint-disable-next-line no-void
|
|
1750
|
+
deleteCondition: (D, X) => {
|
|
1751
|
+
}
|
|
1752
|
+
}), T = () => {
|
|
1753
|
+
g(e.level, e.index);
|
|
1754
|
+
};
|
|
1755
|
+
pe(i, (D) => {
|
|
1756
|
+
d(D, e.level, e.index);
|
|
1757
|
+
}, {
|
|
1758
|
+
deep: !0
|
|
1759
|
+
});
|
|
1760
|
+
const E = (D, X) => {
|
|
1761
|
+
const { name: ne, genericType: oe, id: de, label: ve } = X;
|
|
1762
|
+
i.value = {
|
|
1763
|
+
id: de,
|
|
1764
|
+
fieldName: ne,
|
|
1765
|
+
fieldType: oe,
|
|
1766
|
+
label: ve,
|
|
1767
|
+
// 重置规则
|
|
1768
|
+
rule: void 0,
|
|
1769
|
+
fieldValue: void 0,
|
|
1770
|
+
targetSource: ""
|
|
1771
|
+
};
|
|
1772
|
+
}, N = B(() => {
|
|
1773
|
+
const D = s(i).fieldType;
|
|
1774
|
+
return D === "TEXT" ? [
|
|
1775
|
+
{ label: "属于", value: "IN" },
|
|
1776
|
+
{ label: "不属于", value: "NOT_IN" },
|
|
1777
|
+
{ label: "包含", value: "LIKE" },
|
|
1778
|
+
{ label: "不包含", value: "NOT_LIKE" },
|
|
1779
|
+
{ label: "开头是", value: "LIKE%" },
|
|
1780
|
+
{ label: "结尾是", value: "%LIKE" },
|
|
1781
|
+
{ label: "前N个", value: "TOP" },
|
|
1782
|
+
{ label: "后N个", value: "BOTTOM" }
|
|
1783
|
+
] : D === "NUMBER" ? [
|
|
1784
|
+
{ label: "小于", value: "LESS" },
|
|
1785
|
+
{ label: "小于等于", value: "LESS_EQUAL" },
|
|
1786
|
+
{ label: "大于", value: "GREATER" },
|
|
1787
|
+
{ label: "大于等于", value: "GREATER_EQUAL" },
|
|
1788
|
+
{ label: "等于", value: "EQUAL" },
|
|
1789
|
+
{ label: "不等于", value: "NOT_EQUAL" },
|
|
1790
|
+
{ label: "前N个", value: "TOP" },
|
|
1791
|
+
{ label: "后N个", value: "BOTTOM" }
|
|
1792
|
+
] : D === "DATE" ? [
|
|
1793
|
+
{ label: "属于", value: "IN" },
|
|
1794
|
+
{ label: "不属于", value: "NOT_IN" },
|
|
1795
|
+
{ label: "小于", value: "LESS" },
|
|
1796
|
+
{ label: "小于等于", value: "LESS_EQUAL" },
|
|
1797
|
+
{ label: "大于", value: "GREATER" },
|
|
1798
|
+
{ label: "大于等于", value: "GREATER_EQUAL" },
|
|
1799
|
+
{ label: "等于", value: "EQUAL" },
|
|
1800
|
+
{ label: "不等于", value: "NOT_EQUAL" }
|
|
1801
|
+
] : [];
|
|
1802
|
+
}), y = P([]), S = async () => {
|
|
1803
|
+
var D;
|
|
1804
|
+
if (!(s(y).length > 0))
|
|
1805
|
+
try {
|
|
1806
|
+
const X = await n.post(`${me}/diagram/groupvalue`, {
|
|
1807
|
+
source: s(r),
|
|
1808
|
+
dataViewId: s(o),
|
|
1809
|
+
groupColumn: s(i).fieldName,
|
|
1810
|
+
hrpIndexTypeGuid: s(i).id,
|
|
1811
|
+
pageFlag: !0
|
|
1812
|
+
}, {
|
|
1813
|
+
headers: {
|
|
1814
|
+
Authentication: a,
|
|
1815
|
+
operateContext: "ygt"
|
|
1816
|
+
}
|
|
1817
|
+
}), { success: ne, data: oe = [] } = X.data;
|
|
1818
|
+
ne && (y.value = (D = oe == null ? void 0 : oe.slice(0, 200)) == null ? void 0 : D.map((de) => ({ label: de, value: de })));
|
|
1819
|
+
} catch (X) {
|
|
1820
|
+
console.error(X);
|
|
1821
|
+
}
|
|
1822
|
+
}, b = (D) => {
|
|
1823
|
+
s(i).rule = D, s(i).fieldValue = void 0, ["IN", "NOT_IN"].includes(D) && S();
|
|
1824
|
+
}, O = P([]);
|
|
1825
|
+
return {
|
|
1826
|
+
fieldOptions: l,
|
|
1827
|
+
ruleOptions: N,
|
|
1828
|
+
onFieldChange: E,
|
|
1829
|
+
condition: i,
|
|
1830
|
+
valueOptions: y,
|
|
1831
|
+
onRuleChange: b,
|
|
1832
|
+
onFieldValueSelectChange: (D) => {
|
|
1833
|
+
O.value = D, s(i).fieldValue = (D == null ? void 0 : D.join(",")) || "";
|
|
1834
|
+
},
|
|
1835
|
+
fieldValues: O,
|
|
1836
|
+
onDelete: T
|
|
1837
|
+
};
|
|
1838
|
+
}
|
|
1839
|
+
});
|
|
1840
|
+
const Va = { class: "condition" };
|
|
1841
|
+
function qa(e, t, n, a, o, r) {
|
|
1842
|
+
const u = v("a-select"), i = v("a-input"), l = v("close-outlined");
|
|
1843
|
+
return f(), k("div", Va, [
|
|
1844
|
+
c(u, {
|
|
1845
|
+
class: "field-name",
|
|
1846
|
+
value: e.condition.fieldName,
|
|
1847
|
+
options: e.fieldOptions,
|
|
1848
|
+
"field-names": { value: "name" },
|
|
1849
|
+
onChange: e.onFieldChange
|
|
1850
|
+
}, null, 8, ["value", "options", "onChange"]),
|
|
1851
|
+
c(u, {
|
|
1852
|
+
class: "rule",
|
|
1853
|
+
value: e.condition.rule,
|
|
1854
|
+
options: e.ruleOptions,
|
|
1855
|
+
onChange: e.onRuleChange
|
|
1856
|
+
}, null, 8, ["value", "options", "onChange"]),
|
|
1857
|
+
["IN", "NOT_IN"].includes(e.condition.rule || "") ? (f(), U(u, {
|
|
1858
|
+
key: 0,
|
|
1859
|
+
class: "field-value",
|
|
1860
|
+
value: e.fieldValues,
|
|
1861
|
+
mode: "multiple",
|
|
1862
|
+
options: e.valueOptions,
|
|
1863
|
+
onChange: e.onFieldValueSelectChange
|
|
1864
|
+
}, null, 8, ["value", "options", "onChange"])) : (f(), U(i, {
|
|
1865
|
+
key: 1,
|
|
1866
|
+
class: "field-value",
|
|
1867
|
+
value: e.condition.fieldValue,
|
|
1868
|
+
"onUpdate:value": t[0] || (t[0] = (d) => e.condition.fieldValue = d)
|
|
1869
|
+
}, null, 8, ["value"])),
|
|
1870
|
+
c(l, {
|
|
1871
|
+
class: "delete-icon",
|
|
1872
|
+
onClick: e.onDelete
|
|
1873
|
+
}, null, 8, ["onClick"])
|
|
1874
|
+
]);
|
|
1875
|
+
}
|
|
1876
|
+
const za = /* @__PURE__ */ te(Ua, [["render", qa], ["__scopeId", "data-v-4bbb62dd"]]), Ha = ee({
|
|
1877
|
+
name: "ConditionList",
|
|
1878
|
+
props: {
|
|
1879
|
+
list: {
|
|
1880
|
+
type: Array,
|
|
1881
|
+
default: () => []
|
|
1882
|
+
},
|
|
1883
|
+
level: {
|
|
1884
|
+
type: Number,
|
|
1885
|
+
default: 0
|
|
1886
|
+
},
|
|
1887
|
+
type: {
|
|
1888
|
+
type: String,
|
|
1889
|
+
default: ""
|
|
1890
|
+
}
|
|
1891
|
+
},
|
|
1892
|
+
components: {
|
|
1893
|
+
Condition: za
|
|
1894
|
+
}
|
|
1895
|
+
});
|
|
1896
|
+
const Wa = {
|
|
1897
|
+
key: 0,
|
|
1898
|
+
class: "condition-list"
|
|
1899
|
+
}, Qa = {
|
|
1900
|
+
key: 0,
|
|
1901
|
+
class: "condition-container"
|
|
1902
|
+
}, Xa = {
|
|
1903
|
+
key: 0,
|
|
1904
|
+
class: "condition-text"
|
|
1905
|
+
}, Ja = {
|
|
1906
|
+
key: 1,
|
|
1907
|
+
class: "condition-text"
|
|
1908
|
+
}, Ka = { class: "conditions" };
|
|
1909
|
+
function Ya(e, t, n, a, o, r) {
|
|
1910
|
+
const u = v("condition-list", !0), i = v("condition");
|
|
1911
|
+
return Array.isArray(e.list) ? (f(), k("div", Wa, [
|
|
1912
|
+
(f(!0), k(V, null, Z(e.list, (l, d) => (f(), k(V, { key: d }, [
|
|
1913
|
+
l.join && l.conditions && Array.isArray(l.conditions) ? (f(), k("div", Qa, [
|
|
1914
|
+
l.conditions.length > 1 ? (f(), k(V, { key: 0 }, [
|
|
1915
|
+
l.join === "||" ? (f(), k("div", Xa, "或")) : W("", !0),
|
|
1916
|
+
l.join === "&&" ? (f(), k("div", Ja, "且")) : W("", !0)
|
|
1917
|
+
], 64)) : W("", !0),
|
|
1918
|
+
R("div", Ka, [
|
|
1919
|
+
l.conditions.length > 0 ? (f(), U(u, {
|
|
1920
|
+
key: 0,
|
|
1921
|
+
level: e.level + 1,
|
|
1922
|
+
list: l.conditions
|
|
1923
|
+
}, null, 8, ["level", "list"])) : W("", !0)
|
|
1924
|
+
])
|
|
1925
|
+
])) : (f(), U(i, {
|
|
1926
|
+
key: 1,
|
|
1927
|
+
class: "condition",
|
|
1928
|
+
data: l,
|
|
1929
|
+
level: e.level,
|
|
1930
|
+
index: d,
|
|
1931
|
+
type: e.type
|
|
1932
|
+
}, null, 8, ["data", "level", "index", "type"]))
|
|
1933
|
+
], 64))), 128))
|
|
1934
|
+
])) : W("", !0);
|
|
1935
|
+
}
|
|
1936
|
+
const xa = /* @__PURE__ */ te(Ha, [["render", Ya], ["__scopeId", "data-v-4eb6cab5"]]), Za = ee({
|
|
1937
|
+
name: "FilterModal",
|
|
1938
|
+
props: {
|
|
1939
|
+
item: {
|
|
1940
|
+
type: Object,
|
|
1941
|
+
default: () => ({})
|
|
1942
|
+
},
|
|
1943
|
+
index: {
|
|
1944
|
+
type: Number,
|
|
1945
|
+
default: 0
|
|
1946
|
+
},
|
|
1947
|
+
// 卡片类型
|
|
1948
|
+
type: {
|
|
1949
|
+
type: String,
|
|
1950
|
+
default: ""
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
components: {
|
|
1954
|
+
ConditionList: xa
|
|
1955
|
+
},
|
|
1956
|
+
setup(e, { expose: t }) {
|
|
1957
|
+
const n = () => {
|
|
1958
|
+
var y;
|
|
1959
|
+
return `添加过滤条件-${((y = e.item) == null ? void 0 : y.label) || ""}`;
|
|
1960
|
+
}, a = j(ue), o = j(he), r = P([]), u = P(!1);
|
|
1961
|
+
pe(u, (y) => {
|
|
1962
|
+
var S, b;
|
|
1963
|
+
y && Array.isArray((S = e.item) == null ? void 0 : S.conditions) && (r.value = (b = e.item) == null ? void 0 : b.conditions);
|
|
1964
|
+
}, {
|
|
1965
|
+
flush: "post"
|
|
1966
|
+
});
|
|
1967
|
+
let i = !1;
|
|
1968
|
+
const l = (y) => {
|
|
1969
|
+
var S;
|
|
1970
|
+
i = !0, s(r) == null || ((S = s(r)) == null ? void 0 : S.length) === 0 ? r.value = [{}] : s(r)[0] != null && (s(r)[0].conditions == null || s(r)[0].join !== y ? r.value = [{
|
|
1971
|
+
join: y,
|
|
1972
|
+
conditions: [
|
|
1973
|
+
s(r)[0],
|
|
1974
|
+
{}
|
|
1975
|
+
]
|
|
1976
|
+
}] : s(r)[0].conditions.length > 1 && s(r)[0].join === y && r.value[0].conditions.push({}));
|
|
1977
|
+
};
|
|
1978
|
+
ge(Dt, {
|
|
1979
|
+
updateCondition(y, S, b) {
|
|
1980
|
+
var _;
|
|
1981
|
+
i = !0;
|
|
1982
|
+
let O = s(r);
|
|
1983
|
+
for (let p = 0; p < S && O[0]; p++)
|
|
1984
|
+
O = (_ = O[0]) == null ? void 0 : _.conditions;
|
|
1985
|
+
Array.isArray(O) && O[b] && (O[b] = y);
|
|
1986
|
+
},
|
|
1987
|
+
deleteCondition(y, S) {
|
|
1988
|
+
var O, _;
|
|
1989
|
+
i = !0;
|
|
1990
|
+
let b = s(r);
|
|
1991
|
+
for (let p = 0; p < y && b[0]; p++)
|
|
1992
|
+
b = (O = b[0]) == null ? void 0 : O.conditions;
|
|
1993
|
+
if (Array.isArray(b) && b[S] && (b.splice(S, 1), b.length === 1)) {
|
|
1994
|
+
let p = s(r);
|
|
1995
|
+
const F = y - 2 > 0 ? y - 2 : 0;
|
|
1996
|
+
for (let C = 0; C < F && p[0]; C++)
|
|
1997
|
+
p = (_ = p[0]) == null ? void 0 : _.conditions;
|
|
1998
|
+
p[0].join === b[0].join ? p[0].conditions = [
|
|
1999
|
+
...b[0].conditions,
|
|
2000
|
+
...p[0].conditions.slice(1)
|
|
2001
|
+
] : p[0] = b[0];
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
});
|
|
2005
|
+
const d = () => {
|
|
2006
|
+
var S;
|
|
2007
|
+
const y = ((S = s(a)[e.type]) == null ? void 0 : S.slice()) || [];
|
|
2008
|
+
y[e.index].conditions = s(r), o({
|
|
2009
|
+
[e.type]: y
|
|
2010
|
+
});
|
|
2011
|
+
}, g = () => {
|
|
2012
|
+
u.value = !0;
|
|
2013
|
+
}, T = () => {
|
|
2014
|
+
u.value = !1;
|
|
2015
|
+
}, E = () => {
|
|
2016
|
+
i && d(), i = !1, T();
|
|
2017
|
+
}, N = () => {
|
|
2018
|
+
T();
|
|
2019
|
+
};
|
|
2020
|
+
return t({
|
|
2021
|
+
showModal: g
|
|
2022
|
+
}), {
|
|
2023
|
+
visible: u,
|
|
2024
|
+
onOk: E,
|
|
2025
|
+
onCancel: N,
|
|
2026
|
+
handleTitle: n,
|
|
2027
|
+
conditionList: r,
|
|
2028
|
+
addCondition: l
|
|
2029
|
+
};
|
|
2030
|
+
}
|
|
2031
|
+
});
|
|
2032
|
+
const eo = { class: "header" };
|
|
2033
|
+
function to(e, t, n, a, o, r) {
|
|
2034
|
+
const u = v("a-button"), i = v("condition-list"), l = v("a-modal");
|
|
2035
|
+
return f(), U(l, {
|
|
2036
|
+
title: e.handleTitle(),
|
|
2037
|
+
visible: e.visible,
|
|
2038
|
+
"destroy-on-close": "",
|
|
2039
|
+
width: "50%",
|
|
2040
|
+
bodyStyle: {
|
|
2041
|
+
height: "70vh",
|
|
2042
|
+
overflow: "auto",
|
|
2043
|
+
display: "flex",
|
|
2044
|
+
flexDirection: "column"
|
|
2045
|
+
},
|
|
2046
|
+
closable: !1,
|
|
2047
|
+
onOk: e.onOk,
|
|
2048
|
+
onCancel: e.onCancel
|
|
2049
|
+
}, {
|
|
2050
|
+
default: h(() => [
|
|
2051
|
+
R("div", eo, [
|
|
2052
|
+
Array.isArray(e.conditionList) && e.conditionList.length > 0 ? (f(), k(V, { key: 0 }, [
|
|
2053
|
+
c(u, {
|
|
2054
|
+
class: "add-and-condition",
|
|
2055
|
+
onClick: t[0] || (t[0] = (d) => e.addCondition("&&"))
|
|
2056
|
+
}, {
|
|
2057
|
+
default: h(() => [
|
|
2058
|
+
G(" 添加且条件 ")
|
|
2059
|
+
]),
|
|
2060
|
+
_: 1
|
|
2061
|
+
}),
|
|
2062
|
+
c(u, {
|
|
2063
|
+
class: "add-or-condition",
|
|
2064
|
+
onClick: t[1] || (t[1] = (d) => e.addCondition("||"))
|
|
2065
|
+
}, {
|
|
2066
|
+
default: h(() => [
|
|
2067
|
+
G(" 添加或条件 ")
|
|
2068
|
+
]),
|
|
2069
|
+
_: 1
|
|
2070
|
+
})
|
|
2071
|
+
], 64)) : (f(), U(u, {
|
|
2072
|
+
key: 1,
|
|
2073
|
+
onClick: e.addCondition
|
|
2074
|
+
}, {
|
|
2075
|
+
default: h(() => [
|
|
2076
|
+
G(" 添加条件 ")
|
|
2077
|
+
]),
|
|
2078
|
+
_: 1
|
|
2079
|
+
}, 8, ["onClick"]))
|
|
2080
|
+
]),
|
|
2081
|
+
c(i, {
|
|
2082
|
+
class: "condition-list",
|
|
2083
|
+
list: e.conditionList,
|
|
2084
|
+
level: 0,
|
|
2085
|
+
type: e.type
|
|
2086
|
+
}, null, 8, ["list", "type"])
|
|
2087
|
+
]),
|
|
2088
|
+
_: 1
|
|
2089
|
+
}, 8, ["title", "visible", "onOk", "onCancel"]);
|
|
2090
|
+
}
|
|
2091
|
+
const no = /* @__PURE__ */ te(Za, [["render", to], ["__scopeId", "data-v-7e6cbd68"]]);
|
|
2092
|
+
let ao = (e = 21) => {
|
|
2093
|
+
let t = "", n = crypto.getRandomValues(new Uint8Array(e));
|
|
2094
|
+
for (; e--; ) {
|
|
2095
|
+
let a = n[e] & 63;
|
|
2096
|
+
a < 36 ? t += a.toString(36) : a < 62 ? t += (a - 26).toString(36).toUpperCase() : a < 63 ? t += "_" : t += "-";
|
|
2097
|
+
}
|
|
2098
|
+
return t;
|
|
2099
|
+
};
|
|
2100
|
+
const oo = ee({
|
|
2101
|
+
name: "FormulaCalculation",
|
|
2102
|
+
props: {
|
|
2103
|
+
value: {
|
|
2104
|
+
type: String,
|
|
2105
|
+
default: ""
|
|
2106
|
+
}
|
|
2107
|
+
},
|
|
2108
|
+
emits: ["update:value", "change"],
|
|
2109
|
+
setup(e, { emit: t }) {
|
|
2110
|
+
const n = j(ue), a = B(() => s(n).leftAxisList || []), o = B(() => s(n).rightAxisList || []), r = B(() => s(n).indicators || []), u = B(() => s(n).queryColumnList || []), i = B(() => {
|
|
2111
|
+
const g = s(a).concat(s(o)).concat(s(r)).concat(s(u));
|
|
2112
|
+
return (g == null ? void 0 : g.filter((T) => T.genericType === "NUMBER")) || [];
|
|
2113
|
+
}), l = B({
|
|
2114
|
+
get: () => e.value || "",
|
|
2115
|
+
set: (g) => {
|
|
2116
|
+
t("update:value", g), t("change", g);
|
|
2117
|
+
}
|
|
2118
|
+
});
|
|
2119
|
+
return {
|
|
2120
|
+
fieldList: i,
|
|
2121
|
+
myValue: l,
|
|
2122
|
+
insertText: (g) => {
|
|
2123
|
+
l.value = s(l) + "${" + g + "}";
|
|
2124
|
+
}
|
|
2125
|
+
};
|
|
2126
|
+
}
|
|
2127
|
+
});
|
|
2128
|
+
const ro = { class: "formula-calculation" }, lo = { class: "field-area" }, io = ["onClick"];
|
|
2129
|
+
function so(e, t, n, a, o, r) {
|
|
2130
|
+
const u = v("a-col"), i = v("a-textarea"), l = v("a-row");
|
|
2131
|
+
return f(), k("div", ro, [
|
|
2132
|
+
c(l, { style: { height: "100%" } }, {
|
|
2133
|
+
default: h(() => [
|
|
2134
|
+
c(u, { span: 6 }, {
|
|
2135
|
+
default: h(() => [
|
|
2136
|
+
R("div", lo, [
|
|
2137
|
+
R("div", null, " 数值字段(" + z(e.fieldList.length) + ") ", 1),
|
|
2138
|
+
(f(!0), k(V, null, Z(e.fieldList, (d, g) => (f(), k("div", {
|
|
2139
|
+
class: "field",
|
|
2140
|
+
key: g,
|
|
2141
|
+
onClick: (T) => e.insertText(d.label)
|
|
2142
|
+
}, z(d.label), 9, io))), 128))
|
|
2143
|
+
])
|
|
2144
|
+
]),
|
|
2145
|
+
_: 1
|
|
2146
|
+
}),
|
|
2147
|
+
c(u, { span: 18 }, {
|
|
2148
|
+
default: h(() => [
|
|
2149
|
+
c(i, {
|
|
2150
|
+
class: "textarea",
|
|
2151
|
+
value: e.myValue,
|
|
2152
|
+
"onUpdate:value": t[0] || (t[0] = (d) => e.myValue = d),
|
|
2153
|
+
autoSize: {
|
|
2154
|
+
minRows: 13,
|
|
2155
|
+
maxRows: 13
|
|
2156
|
+
},
|
|
2157
|
+
placeholder: "示例: ${指标} * 3"
|
|
2158
|
+
}, null, 8, ["value"])
|
|
2159
|
+
]),
|
|
2160
|
+
_: 1
|
|
2161
|
+
})
|
|
2162
|
+
]),
|
|
2163
|
+
_: 1
|
|
2164
|
+
})
|
|
2165
|
+
]);
|
|
2166
|
+
}
|
|
2167
|
+
const uo = /* @__PURE__ */ te(oo, [["render", so], ["__scopeId", "data-v-bb877ad3"]]), co = ee({
|
|
2168
|
+
name: "CalculationModal",
|
|
2169
|
+
components: { FormulaCalculation: uo },
|
|
2170
|
+
props: {
|
|
2171
|
+
item: {
|
|
2172
|
+
type: Object,
|
|
2173
|
+
default: () => ({})
|
|
2174
|
+
},
|
|
2175
|
+
index: {
|
|
2176
|
+
type: Number,
|
|
2177
|
+
default: 0
|
|
2178
|
+
},
|
|
2179
|
+
// 卡片类型
|
|
2180
|
+
type: {
|
|
2181
|
+
type: String,
|
|
2182
|
+
default: ""
|
|
2183
|
+
},
|
|
2184
|
+
// 模式
|
|
2185
|
+
mode: {
|
|
2186
|
+
type: String,
|
|
2187
|
+
default: "add"
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2190
|
+
setup(e, { expose: t }) {
|
|
2191
|
+
const n = j(ue), a = j(he), o = B(() => s(n)[e.type] || []), r = { span: 4 }, u = { span: 18 }, i = {
|
|
2192
|
+
label: void 0,
|
|
2193
|
+
calcType: "FORMULA",
|
|
2194
|
+
formula: void 0,
|
|
2195
|
+
builtInValueSource: void 0,
|
|
2196
|
+
builtInFormula: void 0,
|
|
2197
|
+
builtInCalcWay: void 0
|
|
2198
|
+
}, l = P(i);
|
|
2199
|
+
pe(() => e.item, (C) => {
|
|
2200
|
+
if (e.mode === "edit") {
|
|
2201
|
+
const {
|
|
2202
|
+
label: L,
|
|
2203
|
+
calcType: $,
|
|
2204
|
+
formula: K,
|
|
2205
|
+
builtInValueSource: D,
|
|
2206
|
+
builtInFormula: X,
|
|
2207
|
+
builtInCalcWay: ne
|
|
2208
|
+
} = C;
|
|
2209
|
+
l.value = {
|
|
2210
|
+
label: L,
|
|
2211
|
+
calcType: $,
|
|
2212
|
+
formula: K,
|
|
2213
|
+
builtInValueSource: D,
|
|
2214
|
+
builtInFormula: X,
|
|
2215
|
+
builtInCalcWay: ne
|
|
2216
|
+
};
|
|
2217
|
+
}
|
|
2218
|
+
}, {
|
|
2219
|
+
immediate: !0,
|
|
2220
|
+
deep: !0
|
|
2221
|
+
});
|
|
2222
|
+
let d = !1;
|
|
2223
|
+
const g = () => {
|
|
2224
|
+
d = !0;
|
|
2225
|
+
}, T = () => {
|
|
2226
|
+
var $;
|
|
2227
|
+
const C = (($ = s(n)[e.type]) == null ? void 0 : $.slice()) || [], { label: L } = s(l) || {};
|
|
2228
|
+
if (e.mode === "add") {
|
|
2229
|
+
const K = ao();
|
|
2230
|
+
C.push({
|
|
2231
|
+
...s(l),
|
|
2232
|
+
id: K,
|
|
2233
|
+
show: !0,
|
|
2234
|
+
name: L
|
|
2235
|
+
});
|
|
2236
|
+
} else
|
|
2237
|
+
e.mode === "edit" && (C[e.index] = {
|
|
2238
|
+
...C[e.index],
|
|
2239
|
+
...s(l),
|
|
2240
|
+
name: L
|
|
2241
|
+
});
|
|
2242
|
+
a({
|
|
2243
|
+
[e.type]: C
|
|
2244
|
+
});
|
|
2245
|
+
}, E = P(!1), N = () => {
|
|
2246
|
+
E.value = !0;
|
|
2247
|
+
}, y = () => {
|
|
2248
|
+
E.value = !1;
|
|
2249
|
+
}, S = P({
|
|
2250
|
+
label: [{
|
|
2251
|
+
required: !0,
|
|
2252
|
+
message: "请输入指标名"
|
|
2253
|
+
}],
|
|
2254
|
+
calcType: [{
|
|
2255
|
+
required: !0,
|
|
2256
|
+
message: "请选择计算方式"
|
|
2257
|
+
}],
|
|
2258
|
+
formula: [{
|
|
2259
|
+
required: !0,
|
|
2260
|
+
message: "请选择计算公式"
|
|
2261
|
+
}]
|
|
2262
|
+
}), { validate: b, validateInfos: O, clearValidate: _ } = Ut.useForm(l, S), p = () => {
|
|
2263
|
+
b().then(() => {
|
|
2264
|
+
d && T(), d = !1, l.value = i, y();
|
|
2265
|
+
});
|
|
2266
|
+
}, F = () => {
|
|
2267
|
+
l.value = i, _(), y();
|
|
2268
|
+
};
|
|
2269
|
+
return t({
|
|
2270
|
+
showModal: N
|
|
2271
|
+
}), {
|
|
2272
|
+
visible: E,
|
|
2273
|
+
onCancel: F,
|
|
2274
|
+
labelCol: r,
|
|
2275
|
+
wrapperCol: u,
|
|
2276
|
+
formState: l,
|
|
2277
|
+
builtInValueSourceList: o,
|
|
2278
|
+
onOK: p,
|
|
2279
|
+
onChange: g,
|
|
2280
|
+
validateInfos: O
|
|
2281
|
+
};
|
|
2282
|
+
}
|
|
2283
|
+
});
|
|
2284
|
+
function fo(e, t, n, a, o, r) {
|
|
2285
|
+
const u = v("a-input"), i = v("a-form-item"), l = v("a-select-option"), d = v("a-select"), g = v("formula-calculation"), T = v("a-textarea"), E = v("a-form"), N = v("a-modal");
|
|
2286
|
+
return f(), U(N, {
|
|
2287
|
+
title: `${e.mode === "add" ? "新增" : "编辑"}计算指标`,
|
|
2288
|
+
visible: e.visible,
|
|
2289
|
+
width: "50%",
|
|
2290
|
+
bodyStyle: {
|
|
2291
|
+
height: "50vh",
|
|
2292
|
+
overflow: "auto",
|
|
2293
|
+
display: "flex",
|
|
2294
|
+
flexDirection: "column"
|
|
2295
|
+
},
|
|
2296
|
+
closable: !1,
|
|
2297
|
+
onOk: e.onOK,
|
|
2298
|
+
onCancel: e.onCancel
|
|
2299
|
+
}, {
|
|
2300
|
+
default: h(() => [
|
|
2301
|
+
c(E, { model: e.formState }, {
|
|
2302
|
+
default: h(() => [
|
|
2303
|
+
c(i, {
|
|
2304
|
+
label: "指标名",
|
|
2305
|
+
"label-col": e.labelCol,
|
|
2306
|
+
"wrapper-col": e.wrapperCol
|
|
2307
|
+
}, {
|
|
2308
|
+
default: h(() => [
|
|
2309
|
+
c(u, {
|
|
2310
|
+
value: e.formState.label,
|
|
2311
|
+
"onUpdate:value": t[0] || (t[0] = (y) => e.formState.label = y),
|
|
2312
|
+
onChange: e.onChange
|
|
2313
|
+
}, null, 8, ["value", "onChange"])
|
|
2314
|
+
]),
|
|
2315
|
+
_: 1
|
|
2316
|
+
}, 8, ["label-col", "wrapper-col"]),
|
|
2317
|
+
c(i, {
|
|
2318
|
+
label: "计算方式",
|
|
2319
|
+
"label-col": e.labelCol,
|
|
2320
|
+
"wrapper-col": e.wrapperCol
|
|
2321
|
+
}, {
|
|
2322
|
+
default: h(() => [
|
|
2323
|
+
c(d, {
|
|
2324
|
+
value: e.formState.calcType,
|
|
2325
|
+
"onUpdate:value": t[1] || (t[1] = (y) => e.formState.calcType = y),
|
|
2326
|
+
onChange: e.onChange
|
|
2327
|
+
}, {
|
|
2328
|
+
default: h(() => [
|
|
2329
|
+
c(l, { value: "FORMULA" }, {
|
|
2330
|
+
default: h(() => [
|
|
2331
|
+
G("公式")
|
|
2332
|
+
]),
|
|
2333
|
+
_: 1
|
|
2334
|
+
}),
|
|
2335
|
+
c(l, { value: "BUILT_IN" }, {
|
|
2336
|
+
default: h(() => [
|
|
2337
|
+
G("内置公式")
|
|
2338
|
+
]),
|
|
2339
|
+
_: 1
|
|
2340
|
+
})
|
|
2341
|
+
]),
|
|
2342
|
+
_: 1
|
|
2343
|
+
}, 8, ["value", "onChange"])
|
|
2344
|
+
]),
|
|
2345
|
+
_: 1
|
|
2346
|
+
}, 8, ["label-col", "wrapper-col"]),
|
|
2347
|
+
e.formState.calcType === "FORMULA" ? (f(), U(g, {
|
|
2348
|
+
key: 0,
|
|
2349
|
+
value: e.formState.formula,
|
|
2350
|
+
"onUpdate:value": t[2] || (t[2] = (y) => e.formState.formula = y),
|
|
2351
|
+
onChange: e.onChange
|
|
2352
|
+
}, null, 8, ["value", "onChange"])) : W("", !0),
|
|
2353
|
+
e.formState.calcType === "BUILT_IN" ? (f(), k(V, { key: 1 }, [
|
|
2354
|
+
c(i, {
|
|
2355
|
+
label: "内置公式",
|
|
2356
|
+
"label-col": e.labelCol,
|
|
2357
|
+
"wrapper-col": e.wrapperCol
|
|
2358
|
+
}, {
|
|
2359
|
+
default: h(() => [
|
|
2360
|
+
c(d, {
|
|
2361
|
+
value: e.formState.builtInFormula,
|
|
2362
|
+
"onUpdate:value": t[3] || (t[3] = (y) => e.formState.builtInFormula = y),
|
|
2363
|
+
onChange: e.onChange
|
|
2364
|
+
}, {
|
|
2365
|
+
default: h(() => [
|
|
2366
|
+
c(l, { value: "BUILT_IN_ALL_VALUE" }, {
|
|
2367
|
+
default: h(() => [
|
|
2368
|
+
G("所有值")
|
|
2369
|
+
]),
|
|
2370
|
+
_: 1
|
|
2371
|
+
}),
|
|
2372
|
+
c(l, { value: "BUILT_IN_ALL_VALUE_IN_GROUPO" }, {
|
|
2373
|
+
default: h(() => [
|
|
2374
|
+
G("组内所有值")
|
|
2375
|
+
]),
|
|
2376
|
+
_: 1
|
|
2377
|
+
}),
|
|
2378
|
+
c(l, { value: "BUILT_IN_RANK" }, {
|
|
2379
|
+
default: h(() => [
|
|
2380
|
+
G("排名")
|
|
2381
|
+
]),
|
|
2382
|
+
_: 1
|
|
2383
|
+
}),
|
|
2384
|
+
c(l, { value: "BUILT_IN_RANK_IN_GROUPO" }, {
|
|
2385
|
+
default: h(() => [
|
|
2386
|
+
G("组内排名")
|
|
2387
|
+
]),
|
|
2388
|
+
_: 1
|
|
2389
|
+
})
|
|
2390
|
+
]),
|
|
2391
|
+
_: 1
|
|
2392
|
+
}, 8, ["value", "onChange"])
|
|
2393
|
+
]),
|
|
2394
|
+
_: 1
|
|
2395
|
+
}, 8, ["label-col", "wrapper-col"]),
|
|
2396
|
+
c(i, {
|
|
2397
|
+
label: "取值来源",
|
|
2398
|
+
"label-col": e.labelCol,
|
|
2399
|
+
"wrapper-col": e.wrapperCol
|
|
2400
|
+
}, {
|
|
2401
|
+
default: h(() => [
|
|
2402
|
+
c(d, {
|
|
2403
|
+
value: e.formState.builtInValueSource,
|
|
2404
|
+
"onUpdate:value": t[4] || (t[4] = (y) => e.formState.builtInValueSource = y),
|
|
2405
|
+
onChange: e.onChange
|
|
2406
|
+
}, {
|
|
2407
|
+
default: h(() => [
|
|
2408
|
+
(f(!0), k(V, null, Z(e.builtInValueSourceList, (y, S) => (f(), U(l, {
|
|
2409
|
+
key: S,
|
|
2410
|
+
value: y.name
|
|
2411
|
+
}, {
|
|
2412
|
+
default: h(() => [
|
|
2413
|
+
G(z(y.label), 1)
|
|
2414
|
+
]),
|
|
2415
|
+
_: 2
|
|
2416
|
+
}, 1032, ["value"]))), 128))
|
|
2417
|
+
]),
|
|
2418
|
+
_: 1
|
|
2419
|
+
}, 8, ["value", "onChange"])
|
|
2420
|
+
]),
|
|
2421
|
+
_: 1
|
|
2422
|
+
}, 8, ["label-col", "wrapper-col"]),
|
|
2423
|
+
c(i, {
|
|
2424
|
+
label: "取值原则",
|
|
2425
|
+
"label-col": e.labelCol,
|
|
2426
|
+
"wrapper-col": e.wrapperCol
|
|
2427
|
+
}, {
|
|
2428
|
+
default: h(() => [
|
|
2429
|
+
c(d, {
|
|
2430
|
+
value: e.formState.builtInCalcWay,
|
|
2431
|
+
"onUpdate:value": t[5] || (t[5] = (y) => e.formState.builtInCalcWay = y),
|
|
2432
|
+
onChange: e.onChange
|
|
2433
|
+
}, {
|
|
2434
|
+
default: h(() => [
|
|
2435
|
+
["BUILT_IN_RANK", "BUILT_IN_RANK_IN_GROUPO"].includes(e.formState.builtInValueSource || "") ? (f(), k(V, { key: 0 }, [
|
|
2436
|
+
c(l, { value: "SUM" }, {
|
|
2437
|
+
default: h(() => [
|
|
2438
|
+
G("求和")
|
|
2439
|
+
]),
|
|
2440
|
+
_: 1
|
|
2441
|
+
}),
|
|
2442
|
+
c(l, { value: "AVG" }, {
|
|
2443
|
+
default: h(() => [
|
|
2444
|
+
G("求平均")
|
|
2445
|
+
]),
|
|
2446
|
+
_: 1
|
|
2447
|
+
}),
|
|
2448
|
+
c(l, { value: "MAX" }, {
|
|
2449
|
+
default: h(() => [
|
|
2450
|
+
G("求最大值")
|
|
2451
|
+
]),
|
|
2452
|
+
_: 1
|
|
2453
|
+
}),
|
|
2454
|
+
c(l, { value: "MIN" }, {
|
|
2455
|
+
default: h(() => [
|
|
2456
|
+
G("求最小值")
|
|
2457
|
+
]),
|
|
2458
|
+
_: 1
|
|
2459
|
+
})
|
|
2460
|
+
], 64)) : (f(), k(V, { key: 1 }, [
|
|
2461
|
+
c(l, { value: "ASC" }, {
|
|
2462
|
+
default: h(() => [
|
|
2463
|
+
G("升序")
|
|
2464
|
+
]),
|
|
2465
|
+
_: 1
|
|
2466
|
+
}),
|
|
2467
|
+
c(l, { value: "DESC" }, {
|
|
2468
|
+
default: h(() => [
|
|
2469
|
+
G("降序")
|
|
2470
|
+
]),
|
|
2471
|
+
_: 1
|
|
2472
|
+
})
|
|
2473
|
+
], 64))
|
|
2474
|
+
]),
|
|
2475
|
+
_: 1
|
|
2476
|
+
}, 8, ["value", "onChange"])
|
|
2477
|
+
]),
|
|
2478
|
+
_: 1
|
|
2479
|
+
}, 8, ["label-col", "wrapper-col"]),
|
|
2480
|
+
c(i, {
|
|
2481
|
+
label: "取数逻辑",
|
|
2482
|
+
"label-col": e.labelCol,
|
|
2483
|
+
"wrapper-col": e.wrapperCol
|
|
2484
|
+
}, {
|
|
2485
|
+
default: h(() => [
|
|
2486
|
+
c(T, {
|
|
2487
|
+
rows: 6,
|
|
2488
|
+
disabled: ""
|
|
2489
|
+
})
|
|
2490
|
+
]),
|
|
2491
|
+
_: 1
|
|
2492
|
+
}, 8, ["label-col", "wrapper-col"])
|
|
2493
|
+
], 64)) : W("", !0)
|
|
2494
|
+
]),
|
|
2495
|
+
_: 1
|
|
2496
|
+
}, 8, ["model"])
|
|
2497
|
+
]),
|
|
2498
|
+
_: 1
|
|
2499
|
+
}, 8, ["title", "visible", "onOk", "onCancel"]);
|
|
2500
|
+
}
|
|
2501
|
+
const po = /* @__PURE__ */ te(co, [["render", fo]]), go = ee({
|
|
2502
|
+
name: "DataConfigCard",
|
|
2503
|
+
components: {
|
|
2504
|
+
CalculationModal: po,
|
|
2505
|
+
FilterModal: no,
|
|
2506
|
+
CustomGroupModal: Ba,
|
|
2507
|
+
SettingOutlined: ua,
|
|
2508
|
+
DeleteOutlined: ta,
|
|
2509
|
+
CustomSortModal: Ta,
|
|
2510
|
+
PlusOutlined: ra
|
|
2511
|
+
},
|
|
2512
|
+
props: {
|
|
2513
|
+
title: {
|
|
2514
|
+
type: String,
|
|
2515
|
+
default: ""
|
|
2516
|
+
},
|
|
2517
|
+
// 卡片类型
|
|
2518
|
+
type: {
|
|
2519
|
+
type: String,
|
|
2520
|
+
default: ""
|
|
2521
|
+
}
|
|
2522
|
+
},
|
|
2523
|
+
setup(e) {
|
|
2524
|
+
const t = j(ue), n = j(he), a = (m = "{}") => {
|
|
2525
|
+
var w;
|
|
2526
|
+
try {
|
|
2527
|
+
const A = JSON.parse(m), M = ((w = s(t)[e.type]) == null ? void 0 : w.slice()) || [];
|
|
2528
|
+
["classificationList", "seriesList"].includes(e.type) && M.forEach((J) => {
|
|
2529
|
+
J.show = !1;
|
|
2530
|
+
}), M.push(A), n({
|
|
2531
|
+
[e.type]: M
|
|
2532
|
+
});
|
|
2533
|
+
} catch (A) {
|
|
2534
|
+
console.error(A);
|
|
2535
|
+
}
|
|
2536
|
+
}, o = (m = "{}") => {
|
|
2537
|
+
var w;
|
|
2538
|
+
try {
|
|
2539
|
+
const { cardItem: A, type: M, index: J } = JSON.parse(m);
|
|
2540
|
+
if (M === e.type)
|
|
2541
|
+
return;
|
|
2542
|
+
const Y = ((w = s(t)[e.type]) == null ? void 0 : w.slice()) || [];
|
|
2543
|
+
Y.push(A);
|
|
2544
|
+
const x = s(t)[M].slice() || [];
|
|
2545
|
+
x.splice(J, 1), n({
|
|
2546
|
+
[e.type]: Y,
|
|
2547
|
+
[M]: x
|
|
2548
|
+
});
|
|
2549
|
+
} catch (A) {
|
|
2550
|
+
console.error(A);
|
|
2551
|
+
}
|
|
2552
|
+
}, r = (m, w) => {
|
|
2553
|
+
var J, Y;
|
|
2554
|
+
const A = (J = m.target) == null ? void 0 : J.checked, M = ((Y = s(t)[e.type]) == null ? void 0 : Y.slice()) || [];
|
|
2555
|
+
["classificationList", "seriesList"].includes(e.type) && M.forEach((x) => {
|
|
2556
|
+
x.show = !1;
|
|
2557
|
+
}), M[w].show = A, n({
|
|
2558
|
+
[e.type]: M
|
|
2559
|
+
});
|
|
2560
|
+
}, u = (m, w, A) => {
|
|
2561
|
+
var M;
|
|
2562
|
+
(M = m.dataTransfer) == null || M.setData("card-item", JSON.stringify({
|
|
2563
|
+
cardItem: w,
|
|
2564
|
+
type: e.type,
|
|
2565
|
+
index: A
|
|
2566
|
+
}));
|
|
2567
|
+
}, i = (m) => {
|
|
2568
|
+
var A;
|
|
2569
|
+
const w = ((A = s(t)[e.type]) == null ? void 0 : A.slice()) || [];
|
|
2570
|
+
w.splice(m, 1), n({
|
|
2571
|
+
[e.type]: w
|
|
2572
|
+
});
|
|
2573
|
+
}, l = (m) => {
|
|
2574
|
+
var M, J;
|
|
2575
|
+
const w = (M = m.dataTransfer) == null ? void 0 : M.getData("list-item"), A = (J = m.dataTransfer) == null ? void 0 : J.getData("card-item");
|
|
2576
|
+
w ? a(w) : A && o(A);
|
|
2577
|
+
}, d = () => {
|
|
2578
|
+
}, g = B(() => s(t)[e.type] || []), T = P([]);
|
|
2579
|
+
let E = !1;
|
|
2580
|
+
pe(() => s(g).length, (m) => {
|
|
2581
|
+
T.value = new Array(m).fill(!1);
|
|
2582
|
+
}, {
|
|
2583
|
+
flush: "post",
|
|
2584
|
+
immediate: !0
|
|
2585
|
+
});
|
|
2586
|
+
const N = (m) => {
|
|
2587
|
+
var A;
|
|
2588
|
+
const w = ((A = s(t)[e.type]) == null ? void 0 : A.slice()) || [];
|
|
2589
|
+
w.splice(m, 1), n({
|
|
2590
|
+
[e.type]: w
|
|
2591
|
+
});
|
|
2592
|
+
}, y = (m) => {
|
|
2593
|
+
T.value[m] = !0;
|
|
2594
|
+
}, S = () => {
|
|
2595
|
+
E = !0;
|
|
2596
|
+
}, b = (m, w) => {
|
|
2597
|
+
var A, M;
|
|
2598
|
+
if (T.value[w] = !1, E) {
|
|
2599
|
+
const J = (A = m.target) == null ? void 0 : A.value, Y = ((M = s(t)[e.type]) == null ? void 0 : M.slice()) || [];
|
|
2600
|
+
Y[w].label = J, n({
|
|
2601
|
+
[e.type]: Y
|
|
2602
|
+
});
|
|
2603
|
+
}
|
|
2604
|
+
E = !1;
|
|
2605
|
+
}, O = "DEFAULT", _ = B(() => {
|
|
2606
|
+
const m = s(t)[e.type] || [], {
|
|
2607
|
+
leftAxisList: w = [],
|
|
2608
|
+
rightAxisList: A = [],
|
|
2609
|
+
indicators: M = []
|
|
2610
|
+
} = s(t) || {};
|
|
2611
|
+
return [
|
|
2612
|
+
{
|
|
2613
|
+
id: O,
|
|
2614
|
+
label: "默认",
|
|
2615
|
+
name: "默认"
|
|
2616
|
+
},
|
|
2617
|
+
...m,
|
|
2618
|
+
...w,
|
|
2619
|
+
...A,
|
|
2620
|
+
...M
|
|
2621
|
+
];
|
|
2622
|
+
}), p = (m = {}, w, A = "ASC") => {
|
|
2623
|
+
var Te;
|
|
2624
|
+
const { label: M, name: J, id: Y } = m, x = ((Te = s(t)[e.type]) == null ? void 0 : Te.slice()) || [];
|
|
2625
|
+
Y === O ? delete x[w].sort : x[w].sort = {
|
|
2626
|
+
label: M,
|
|
2627
|
+
columnName: J,
|
|
2628
|
+
type: "NORMAL",
|
|
2629
|
+
order: A
|
|
2630
|
+
}, n({
|
|
2631
|
+
[e.type]: x
|
|
2632
|
+
});
|
|
2633
|
+
}, F = (m = {}, w = "ASC") => {
|
|
2634
|
+
const M = {
|
|
2635
|
+
ASC: "升序",
|
|
2636
|
+
DESC: "降序"
|
|
2637
|
+
}[w], { sort: J } = m, { label: Y, order: x } = J || {};
|
|
2638
|
+
return Y && x === w ? `${M}(${Y})` : M;
|
|
2639
|
+
}, C = P(), L = P(), $ = P(), K = P(), D = (m = {}, w) => {
|
|
2640
|
+
var A;
|
|
2641
|
+
C.value = m, L.value = w, (A = s($)) == null || A.showModal();
|
|
2642
|
+
}, X = (m) => {
|
|
2643
|
+
var w;
|
|
2644
|
+
return "自定义排序" + (((w = m == null ? void 0 : m.sort) == null ? void 0 : w.type) === "CUSTOM" ? "(已配置)" : "");
|
|
2645
|
+
}, ne = (m = {}, w) => {
|
|
2646
|
+
var A;
|
|
2647
|
+
C.value = m, L.value = w, (A = s(K)) == null || A.showModal();
|
|
2648
|
+
}, oe = (m) => "自定义分组" + ((m == null ? void 0 : m.customGroup) != null ? "(已配置)" : ""), de = [
|
|
2649
|
+
{
|
|
2650
|
+
name: "总和",
|
|
2651
|
+
value: "SUM"
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
name: "平均数",
|
|
2655
|
+
value: "AVG"
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
name: "最小值",
|
|
2659
|
+
value: "MIN"
|
|
2660
|
+
},
|
|
2661
|
+
{
|
|
2662
|
+
name: "最大值",
|
|
2663
|
+
value: "MAX"
|
|
2664
|
+
},
|
|
2665
|
+
{
|
|
2666
|
+
name: "计数",
|
|
2667
|
+
value: "COUNT"
|
|
2668
|
+
}
|
|
2669
|
+
], ve = (m, w) => {
|
|
2670
|
+
var M;
|
|
2671
|
+
const A = ((M = s(t)[e.type]) == null ? void 0 : M.slice()) || [];
|
|
2672
|
+
A[w].aggregate = m, n({
|
|
2673
|
+
[e.type]: A
|
|
2674
|
+
});
|
|
2675
|
+
}, Me = (m = "SUM") => `汇总方式(${{
|
|
2676
|
+
SUM: "总和",
|
|
2677
|
+
AVG: "平均数",
|
|
2678
|
+
MIN: "最小值",
|
|
2679
|
+
MAX: "最大值",
|
|
2680
|
+
COUNT: "计数"
|
|
2681
|
+
}[m]})`, Fe = (m = {}) => {
|
|
2682
|
+
var w;
|
|
2683
|
+
return "过滤" + (m != null && m.conditions && ((w = m == null ? void 0 : m.conditions) == null ? void 0 : w.length) > 0 ? "(已配置)" : "");
|
|
2684
|
+
}, I = P(), q = (m = {}, w) => {
|
|
2685
|
+
C.value = m, L.value = w, s(I).showModal();
|
|
2686
|
+
}, Q = P(), H = P("add");
|
|
2687
|
+
return {
|
|
2688
|
+
onCheckboxChange: r,
|
|
2689
|
+
onDrop: l,
|
|
2690
|
+
onDropStart: u,
|
|
2691
|
+
onDropEnd: i,
|
|
2692
|
+
onDragover: d,
|
|
2693
|
+
cardItemList: g,
|
|
2694
|
+
onDelete: N,
|
|
2695
|
+
onEdit: y,
|
|
2696
|
+
onCommitLabelChange: b,
|
|
2697
|
+
sortList: _,
|
|
2698
|
+
onSort: p,
|
|
2699
|
+
handleSortTitle: F,
|
|
2700
|
+
showCustomSortModal: D,
|
|
2701
|
+
customSortModalRef: $,
|
|
2702
|
+
currentItem: C,
|
|
2703
|
+
currentIndex: L,
|
|
2704
|
+
handleCustomSortTitle: X,
|
|
2705
|
+
handleCustomGroupTitle: oe,
|
|
2706
|
+
customGroupModalRef: K,
|
|
2707
|
+
showCustomGroupModal: ne,
|
|
2708
|
+
editLabelList: T,
|
|
2709
|
+
onLabelChange: S,
|
|
2710
|
+
aggregateList: de,
|
|
2711
|
+
onAggregateChange: ve,
|
|
2712
|
+
handleAggregateTitle: Me,
|
|
2713
|
+
onShowCalculationModal: (m, w, A) => {
|
|
2714
|
+
var M;
|
|
2715
|
+
H.value = m, m === "edit" && (C.value = w, L.value = A), (M = s(Q)) == null || M.showModal();
|
|
2716
|
+
},
|
|
2717
|
+
handleFilterTitle: Fe,
|
|
2718
|
+
filterModalRef: I,
|
|
2719
|
+
showFilterModal: q,
|
|
2720
|
+
calculationModalRef: Q,
|
|
2721
|
+
calculationModalMode: H
|
|
2722
|
+
};
|
|
2723
|
+
}
|
|
2724
|
+
});
|
|
2725
|
+
const mo = (e) => (Ft("data-v-62aff348"), e = e(), Nt(), e), ho = { class: "title" }, vo = { class: "title-text" }, yo = /* @__PURE__ */ mo(() => /* @__PURE__ */ R("span", null, "添加计算指标", -1)), bo = ["onDragstart"], _o = { class: "card-item-inner" }, Co = ["onClick"], Oo = ["onClick"], So = ["onClick"];
|
|
2726
|
+
function wo(e, t, n, a, o, r) {
|
|
2727
|
+
const u = v("plus-outlined"), i = v("a-input"), l = v("setting-outlined"), d = v("a-menu-item"), g = v("a-sub-menu"), T = v("a-menu-divider"), E = v("a-menu"), N = v("a-dropdown"), y = v("delete-outlined"), S = v("a-checkbox"), b = v("custom-sort-modal"), O = v("custom-group-modal"), _ = v("filter-modal"), p = v("calculation-modal"), F = v("a-card");
|
|
2728
|
+
return f(), U(F, {
|
|
2729
|
+
class: "data-config-card",
|
|
2730
|
+
"head-style": {
|
|
2731
|
+
backgroundColor: "rgba(161,212,230,0.3)",
|
|
2732
|
+
minHeight: "38px",
|
|
2733
|
+
padding: "0 10px"
|
|
2734
|
+
},
|
|
2735
|
+
onDragover: t[2] || (t[2] = se(() => {
|
|
2736
|
+
}, ["prevent", "stop"])),
|
|
2737
|
+
onDrop: se(e.onDrop, ["prevent", "stop"])
|
|
2738
|
+
}, {
|
|
2739
|
+
title: h(() => [
|
|
2740
|
+
R("div", ho, [
|
|
2741
|
+
R("div", vo, z(e.title), 1),
|
|
2742
|
+
["classificationList", "seriesList"].includes(e.type) ? W("", !0) : (f(), k("div", {
|
|
2743
|
+
key: 0,
|
|
2744
|
+
class: "add-calculation",
|
|
2745
|
+
onClick: t[0] || (t[0] = se((C) => e.onShowCalculationModal("add"), ["prevent", "stop"]))
|
|
2746
|
+
}, [
|
|
2747
|
+
c(u, { class: "add-calculation-icon" }),
|
|
2748
|
+
yo
|
|
2749
|
+
]))
|
|
2750
|
+
])
|
|
2751
|
+
]),
|
|
2752
|
+
default: h(() => [
|
|
2753
|
+
(f(!0), k(V, null, Z(e.cardItemList, (C, L) => (f(), k("div", {
|
|
2754
|
+
key: L,
|
|
2755
|
+
draggable: !0,
|
|
2756
|
+
onDragstart: se(($) => e.onDropStart($, C, L), ["stop"]),
|
|
2757
|
+
onDragover: t[1] || (t[1] = se(() => {
|
|
2758
|
+
}, ["prevent", "stop"]))
|
|
2759
|
+
}, [
|
|
2760
|
+
c(S, {
|
|
2761
|
+
class: "card-item",
|
|
2762
|
+
checked: C.show,
|
|
2763
|
+
onChange: ($) => e.onCheckboxChange($, L)
|
|
2764
|
+
}, {
|
|
2765
|
+
default: h(() => [
|
|
2766
|
+
R("div", _o, [
|
|
2767
|
+
!e.editLabelList[L] && C.label ? (f(), k("div", {
|
|
2768
|
+
key: 0,
|
|
2769
|
+
class: "name",
|
|
2770
|
+
onClick: se(($) => e.onEdit(L), ["prevent", "stop"])
|
|
2771
|
+
}, z(C.label), 9, Co)) : W("", !0),
|
|
2772
|
+
!e.editLabelList[L] && !C.label ? (f(), k("div", {
|
|
2773
|
+
key: 1,
|
|
2774
|
+
class: "name placeholder",
|
|
2775
|
+
onClick: se(($) => e.onEdit(L), ["prevent", "stop"])
|
|
2776
|
+
}, " 请点击填入名字 ", 8, Oo)) : W("", !0),
|
|
2777
|
+
e.editLabelList[L] ? (f(), U(i, {
|
|
2778
|
+
key: 2,
|
|
2779
|
+
"default-value": C.label,
|
|
2780
|
+
size: "small",
|
|
2781
|
+
onBlur: ($) => e.onCommitLabelChange($, L),
|
|
2782
|
+
onPressEnter: ($) => e.onCommitLabelChange($, L),
|
|
2783
|
+
onChange: e.onLabelChange
|
|
2784
|
+
}, null, 8, ["default-value", "onBlur", "onPressEnter", "onChange"])) : W("", !0),
|
|
2785
|
+
["FORMULA", "BUILT_IN"].includes(C.calcType) ? (f(), k("span", {
|
|
2786
|
+
key: 3,
|
|
2787
|
+
class: "calculation-icon",
|
|
2788
|
+
onClick: se(($) => e.onShowCalculationModal("edit", C, L), ["prevent", "stop"])
|
|
2789
|
+
}, " fx ", 8, So)) : W("", !0),
|
|
2790
|
+
c(N, { trigger: ["click"] }, {
|
|
2791
|
+
overlay: h(() => [
|
|
2792
|
+
c(E, null, {
|
|
2793
|
+
default: h(() => [
|
|
2794
|
+
["classificationList", "seriesList"].includes(e.type) ? (f(), k(V, { key: 0 }, [
|
|
2795
|
+
c(g, {
|
|
2796
|
+
title: e.handleSortTitle(C, "ASC"),
|
|
2797
|
+
key: "0"
|
|
2798
|
+
}, {
|
|
2799
|
+
default: h(() => [
|
|
2800
|
+
(f(!0), k(V, null, Z(e.sortList, ($) => (f(), U(d, {
|
|
2801
|
+
style: { "white-space": "nowrap" },
|
|
2802
|
+
key: $.id,
|
|
2803
|
+
onClick: (K) => e.onSort($, L, "ASC")
|
|
2804
|
+
}, {
|
|
2805
|
+
default: h(() => [
|
|
2806
|
+
G(z($.label), 1)
|
|
2807
|
+
]),
|
|
2808
|
+
_: 2
|
|
2809
|
+
}, 1032, ["onClick"]))), 128))
|
|
2810
|
+
]),
|
|
2811
|
+
_: 2
|
|
2812
|
+
}, 1032, ["title"]),
|
|
2813
|
+
c(g, {
|
|
2814
|
+
title: e.handleSortTitle(C, "DESC"),
|
|
2815
|
+
key: "1"
|
|
2816
|
+
}, {
|
|
2817
|
+
default: h(() => [
|
|
2818
|
+
(f(!0), k(V, null, Z(e.sortList, ($) => (f(), U(d, {
|
|
2819
|
+
class: "menu-item",
|
|
2820
|
+
style: { "white-space": "nowrap" },
|
|
2821
|
+
key: $.id,
|
|
2822
|
+
onClick: (K) => e.onSort($, L, "DESC")
|
|
2823
|
+
}, {
|
|
2824
|
+
default: h(() => [
|
|
2825
|
+
G(z($.label), 1)
|
|
2826
|
+
]),
|
|
2827
|
+
_: 2
|
|
2828
|
+
}, 1032, ["onClick"]))), 128))
|
|
2829
|
+
]),
|
|
2830
|
+
_: 2
|
|
2831
|
+
}, 1032, ["title"]),
|
|
2832
|
+
c(d, {
|
|
2833
|
+
onClick: ($) => e.showCustomSortModal(C, L)
|
|
2834
|
+
}, {
|
|
2835
|
+
default: h(() => [
|
|
2836
|
+
G(z(e.handleCustomSortTitle(C)), 1)
|
|
2837
|
+
]),
|
|
2838
|
+
_: 2
|
|
2839
|
+
}, 1032, ["onClick"]),
|
|
2840
|
+
c(T),
|
|
2841
|
+
c(d, {
|
|
2842
|
+
onClick: ($) => e.showCustomGroupModal(C, L)
|
|
2843
|
+
}, {
|
|
2844
|
+
default: h(() => [
|
|
2845
|
+
G(z(e.handleCustomGroupTitle(C)), 1)
|
|
2846
|
+
]),
|
|
2847
|
+
_: 2
|
|
2848
|
+
}, 1032, ["onClick"]),
|
|
2849
|
+
c(T)
|
|
2850
|
+
], 64)) : W("", !0),
|
|
2851
|
+
c(d, {
|
|
2852
|
+
onClick: ($) => e.showFilterModal(C, L)
|
|
2853
|
+
}, {
|
|
2854
|
+
default: h(() => [
|
|
2855
|
+
G(z(e.handleFilterTitle(C)), 1)
|
|
2856
|
+
]),
|
|
2857
|
+
_: 2
|
|
2858
|
+
}, 1032, ["onClick"]),
|
|
2859
|
+
["classificationList", "seriesList"].includes(e.type) ? W("", !0) : (f(), k(V, { key: 1 }, [
|
|
2860
|
+
c(g, {
|
|
2861
|
+
title: e.handleAggregateTitle(C.aggregate)
|
|
2862
|
+
}, {
|
|
2863
|
+
default: h(() => [
|
|
2864
|
+
(f(!0), k(V, null, Z(e.aggregateList, ($) => (f(), U(d, {
|
|
2865
|
+
style: { "white-space": "nowrap" },
|
|
2866
|
+
key: $.value,
|
|
2867
|
+
onClick: (K) => e.onAggregateChange($.value, L)
|
|
2868
|
+
}, {
|
|
2869
|
+
default: h(() => [
|
|
2870
|
+
G(z($.name), 1)
|
|
2871
|
+
]),
|
|
2872
|
+
_: 2
|
|
2873
|
+
}, 1032, ["onClick"]))), 128))
|
|
2874
|
+
]),
|
|
2875
|
+
_: 2
|
|
2876
|
+
}, 1032, ["title"]),
|
|
2877
|
+
c(T)
|
|
2878
|
+
], 64))
|
|
2879
|
+
]),
|
|
2880
|
+
_: 2
|
|
2881
|
+
}, 1024)
|
|
2882
|
+
]),
|
|
2883
|
+
default: h(() => [
|
|
2884
|
+
c(l, { class: "setting-icon" })
|
|
2885
|
+
]),
|
|
2886
|
+
_: 2
|
|
2887
|
+
}, 1024),
|
|
2888
|
+
c(y, {
|
|
2889
|
+
class: "delete-icon",
|
|
2890
|
+
onClick: se(($) => e.onDelete(L), ["prevent"])
|
|
2891
|
+
}, null, 8, ["onClick"])
|
|
2892
|
+
])
|
|
2893
|
+
]),
|
|
2894
|
+
_: 2
|
|
2895
|
+
}, 1032, ["checked", "onChange"])
|
|
2896
|
+
], 40, bo))), 128)),
|
|
2897
|
+
c(b, {
|
|
2898
|
+
item: e.currentItem,
|
|
2899
|
+
index: e.currentIndex,
|
|
2900
|
+
type: e.type,
|
|
2901
|
+
ref: "customSortModalRef"
|
|
2902
|
+
}, null, 8, ["item", "index", "type"]),
|
|
2903
|
+
c(O, {
|
|
2904
|
+
item: e.currentItem,
|
|
2905
|
+
index: e.currentIndex,
|
|
2906
|
+
type: e.type,
|
|
2907
|
+
ref: "customGroupModalRef"
|
|
2908
|
+
}, null, 8, ["item", "index", "type"]),
|
|
2909
|
+
c(_, {
|
|
2910
|
+
item: e.currentItem,
|
|
2911
|
+
index: e.currentIndex,
|
|
2912
|
+
type: e.type,
|
|
2913
|
+
ref: "filterModalRef"
|
|
2914
|
+
}, null, 8, ["item", "index", "type"]),
|
|
2915
|
+
c(p, {
|
|
2916
|
+
type: e.type,
|
|
2917
|
+
item: e.currentItem,
|
|
2918
|
+
index: e.currentIndex,
|
|
2919
|
+
mode: e.calculationModalMode,
|
|
2920
|
+
ref: "calculationModalRef"
|
|
2921
|
+
}, null, 8, ["type", "item", "index", "mode"])
|
|
2922
|
+
]),
|
|
2923
|
+
_: 1
|
|
2924
|
+
}, 8, ["head-style", "onDrop"]);
|
|
2925
|
+
}
|
|
2926
|
+
const $o = /* @__PURE__ */ te(go, [["render", wo], ["__scopeId", "data-v-62aff348"]]), ko = {
|
|
2927
|
+
classificationList: {
|
|
2928
|
+
title: "分类"
|
|
2929
|
+
},
|
|
2930
|
+
seriesList: {
|
|
2931
|
+
title: "系列"
|
|
2932
|
+
},
|
|
2933
|
+
leftAxisList: {
|
|
2934
|
+
title: "左值轴"
|
|
2935
|
+
},
|
|
2936
|
+
rightAxisList: {
|
|
2937
|
+
title: "右值轴"
|
|
2938
|
+
},
|
|
2939
|
+
indicators: {
|
|
2940
|
+
title: "数值"
|
|
2941
|
+
},
|
|
2942
|
+
queryColumnList: {
|
|
2943
|
+
title: "数据"
|
|
2944
|
+
}
|
|
2945
|
+
}, To = ee({
|
|
2946
|
+
name: "DataConfigGroup",
|
|
2947
|
+
components: {
|
|
2948
|
+
DataConfigCard: $o
|
|
2949
|
+
},
|
|
2950
|
+
setup() {
|
|
2951
|
+
const e = j(De), t = B(() => {
|
|
2952
|
+
var r;
|
|
2953
|
+
return (r = s(e)) == null ? void 0 : r.type;
|
|
2954
|
+
}), n = P({}), a = He([]);
|
|
2955
|
+
return (() => {
|
|
2956
|
+
var E;
|
|
2957
|
+
const r = {
|
|
2958
|
+
// leftAxisList + rightAxisList = indicatorList,只是 location 是 LEFT,RIGHT
|
|
2959
|
+
pie: ["classificationList", "indicators"],
|
|
2960
|
+
bar: ["classificationList", "seriesList", "leftAxisList", "rightAxisList"],
|
|
2961
|
+
line: ["classificationList", "seriesList", "leftAxisList", "rightAxisList"],
|
|
2962
|
+
comboGraph: ["classificationList", "seriesList", "leftAxisList", "rightAxisList"],
|
|
2963
|
+
table: ["queryColumnList"]
|
|
2964
|
+
}, u = "ecan";
|
|
2965
|
+
let i = s(t);
|
|
2966
|
+
const l = u.length;
|
|
2967
|
+
i = ((E = i.slice(l, l + 1)) == null ? void 0 : E.toLowerCase()) + i.slice(l + 1);
|
|
2968
|
+
const d = r[i], g = ko, T = (d == null ? void 0 : d.length) || 0;
|
|
2969
|
+
for (let N = 0; N < T; N++) {
|
|
2970
|
+
const y = d[N];
|
|
2971
|
+
if (!y)
|
|
2972
|
+
break;
|
|
2973
|
+
a.push({
|
|
2974
|
+
...g[y],
|
|
2975
|
+
type: y
|
|
2976
|
+
});
|
|
2977
|
+
}
|
|
2978
|
+
})(), {
|
|
2979
|
+
cardsMap: n,
|
|
2980
|
+
cards: a
|
|
2981
|
+
};
|
|
2982
|
+
}
|
|
2983
|
+
});
|
|
2984
|
+
const Lo = { class: "data-group" };
|
|
2985
|
+
function Ao(e, t, n, a, o, r) {
|
|
2986
|
+
const u = v("data-config-card");
|
|
2987
|
+
return f(), k("div", Lo, [
|
|
2988
|
+
(f(!0), k(V, null, Z(e.cards, (i) => (f(), U(u, St({
|
|
2989
|
+
key: i.type,
|
|
2990
|
+
class: "data-config-card",
|
|
2991
|
+
type: i.type
|
|
2992
|
+
}, i), null, 16, ["type"]))), 128))
|
|
2993
|
+
]);
|
|
2994
|
+
}
|
|
2995
|
+
const Eo = /* @__PURE__ */ te(To, [["render", Ao], ["__scopeId", "data-v-af3bb33a"]]), Io = ee({
|
|
2996
|
+
name: "DataConfig",
|
|
2997
|
+
components: {
|
|
2998
|
+
DataGroup: Eo
|
|
2999
|
+
},
|
|
3000
|
+
setup() {
|
|
3001
|
+
const e = P("1"), t = P(), n = j(De), a = B(() => {
|
|
3002
|
+
const i = wt(
|
|
3003
|
+
jt(
|
|
3004
|
+
n,
|
|
3005
|
+
Rt(
|
|
3006
|
+
Object.keys(n),
|
|
3007
|
+
"position",
|
|
3008
|
+
"top",
|
|
3009
|
+
"left",
|
|
3010
|
+
"width",
|
|
3011
|
+
"height"
|
|
3012
|
+
)
|
|
3013
|
+
)
|
|
3014
|
+
);
|
|
3015
|
+
i.height = "345px";
|
|
3016
|
+
const l = j(ue);
|
|
3017
|
+
return l.pageMode = "design", l.preview = !0, {
|
|
3018
|
+
...i,
|
|
3019
|
+
// 隐藏工具栏
|
|
3020
|
+
toolboxShow: !1
|
|
3021
|
+
};
|
|
3022
|
+
}), o = B(() => {
|
|
3023
|
+
var i;
|
|
3024
|
+
return (i = s(a)) == null ? void 0 : i.type;
|
|
3025
|
+
}), r = () => {
|
|
3026
|
+
var l;
|
|
3027
|
+
const i = (l = s(t)) == null ? void 0 : l.refreshData;
|
|
3028
|
+
typeof i == "function" && i();
|
|
3029
|
+
}, u = B(() => n == null ? void 0 : n.graphic);
|
|
3030
|
+
return pe(
|
|
3031
|
+
u,
|
|
3032
|
+
() => {
|
|
3033
|
+
r();
|
|
3034
|
+
},
|
|
3035
|
+
{
|
|
3036
|
+
deep: !0,
|
|
3037
|
+
flush: "post"
|
|
3038
|
+
}
|
|
3039
|
+
), We(() => {
|
|
3040
|
+
r();
|
|
3041
|
+
}), {
|
|
3042
|
+
activeKey: e,
|
|
3043
|
+
componentRef: t,
|
|
3044
|
+
type: o,
|
|
3045
|
+
component: a
|
|
3046
|
+
};
|
|
3047
|
+
}
|
|
3048
|
+
});
|
|
3049
|
+
const Do = { class: "data-config" };
|
|
3050
|
+
function Mo(e, t, n, a, o, r) {
|
|
3051
|
+
const u = v("data-group"), i = v("a-tab-pane"), l = v("a-tabs");
|
|
3052
|
+
return f(), k("div", Do, [
|
|
3053
|
+
c(l, {
|
|
3054
|
+
activeKey: e.activeKey,
|
|
3055
|
+
"onUpdate:activeKey": t[0] || (t[0] = (d) => e.activeKey = d)
|
|
3056
|
+
}, {
|
|
3057
|
+
default: h(() => [
|
|
3058
|
+
c(i, {
|
|
3059
|
+
key: "1",
|
|
3060
|
+
tab: "数据配置"
|
|
3061
|
+
}, {
|
|
3062
|
+
default: h(() => [
|
|
3063
|
+
c(u)
|
|
3064
|
+
]),
|
|
3065
|
+
_: 1
|
|
3066
|
+
})
|
|
3067
|
+
]),
|
|
3068
|
+
_: 1
|
|
3069
|
+
}, 8, ["activeKey"]),
|
|
3070
|
+
(f(), U(Pt(e.type), St({ class: "component" }, e.component, { ref: "componentRef" }), null, 16))
|
|
3071
|
+
]);
|
|
3072
|
+
}
|
|
3073
|
+
const Fo = /* @__PURE__ */ te(Io, [["render", Mo], ["__scopeId", "data-v-2ae24dac"]]), No = ee({
|
|
3074
|
+
name: "IndicatorLibrary",
|
|
3075
|
+
components: {
|
|
3076
|
+
DataList: Oa,
|
|
3077
|
+
DataConfig: Fo
|
|
3078
|
+
},
|
|
3079
|
+
props: {
|
|
3080
|
+
source: String,
|
|
3081
|
+
indicatorToken: String,
|
|
3082
|
+
selectedComponent: Object
|
|
3083
|
+
},
|
|
3084
|
+
setup(e, { expose: t }) {
|
|
3085
|
+
const n = B(() => e.source), a = B(() => e.indicatorToken), o = B(() => e.selectedComponent);
|
|
3086
|
+
let r = s(o).graphicConfig ? wt(s(o).graphicConfig) : P({});
|
|
3087
|
+
r = P(r);
|
|
3088
|
+
const u = P([]), i = (g) => {
|
|
3089
|
+
u.value = g;
|
|
3090
|
+
}, l = (g) => {
|
|
3091
|
+
r.value = {
|
|
3092
|
+
...s(r),
|
|
3093
|
+
...s(g)
|
|
3094
|
+
};
|
|
3095
|
+
};
|
|
3096
|
+
ge(Qe, {
|
|
3097
|
+
setDataList: i,
|
|
3098
|
+
getDataList: () => u
|
|
3099
|
+
}), ge(De, o), ge(ue, r), ge($t, n), ge(be, a), ge(he, l), t({
|
|
3100
|
+
graphicConfig: r
|
|
3101
|
+
});
|
|
3102
|
+
}
|
|
3103
|
+
});
|
|
3104
|
+
const Po = { class: "config-modal" }, Go = { class: "config-modal-left" }, jo = { class: "config-modal-right" };
|
|
3105
|
+
function Ro(e, t, n, a, o, r) {
|
|
3106
|
+
const u = v("data-list"), i = v("data-config");
|
|
3107
|
+
return f(), k("div", Po, [
|
|
3108
|
+
R("div", Go, [
|
|
3109
|
+
c(u)
|
|
3110
|
+
]),
|
|
3111
|
+
R("div", jo, [
|
|
3112
|
+
c(i)
|
|
3113
|
+
])
|
|
3114
|
+
]);
|
|
3115
|
+
}
|
|
3116
|
+
const Bo = /* @__PURE__ */ te(No, [["render", Ro], ["__scopeId", "data-v-e0b37acc"]]), Uo = Vt(Bo), Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3117
|
+
__proto__: null,
|
|
3118
|
+
EcanIndicatorLibrary: Uo
|
|
3119
|
+
}, Symbol.toStringTag, { value: "Module" })), Vo = (e, t) => {
|
|
3120
|
+
const { request: n } = t;
|
|
3121
|
+
e.provide("$request", n), Object.keys(Ot).forEach((a) => {
|
|
3122
|
+
const o = Ot[a];
|
|
3123
|
+
o.install && e.use(o);
|
|
3124
|
+
});
|
|
3125
|
+
}, Qo = {
|
|
3126
|
+
install: Vo
|
|
3127
|
+
};
|
|
3128
|
+
export {
|
|
3129
|
+
Uo as EcanIndicatorLibrary,
|
|
3130
|
+
Qo as default
|
|
3131
|
+
};
|