@ecan-bi/datav 1.1.85 → 1.1.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +836 -824
- package/dist/index.umd.js +6 -6
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/control/select/Select.vue.d.ts +9 -7
- package/types/control/select/index.d.ts +9 -7
- package/types/control/select/props.d.ts +5 -0
- package/types/control/tree-select/TreeSelect.vue.d.ts +4 -0
- package/types/control/tree-select/index.d.ts +4 -0
- package/types/control/tree-select/props.d.ts +5 -0
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.86 */
|
|
2
|
+
import { watch as Q, inject as B, computed as q, unref as k, watchEffect as uo, defineComponent as ee, shallowRef as vt, toRefs as Fn, onMounted as Ue, onUnmounted as ft, h as dt, nextTick as mt, createVNode as G, resolveComponent as V, openBlock as E, createElementBlock as O, createBlock as Fe, renderSlot as gt, withCtx as Y, ref as M, normalizeStyle as U, createCommentVNode as Ce, provide as $e, onBeforeUnmount as Tt, toDisplayString as ye, Fragment as Me, renderList as De, createElementVNode as X, normalizeClass as Lt, pushScopeId as fo, popScopeId as mo, createSlots as Rn, resolveDynamicComponent as $n, mergeProps as zn, withModifiers as go, reactive as Nn, createTextVNode as Ot, withDirectives as Pn, vShow as Bn } from "vue";
|
|
3
3
|
import { throttle as Un, init as Gn, use as qe, registerMap as qn } from "echarts/core";
|
|
4
4
|
import { addListener as jn, removeListener as Wn } from "resize-detector";
|
|
5
5
|
import { Spin as Vn, Skeleton as Hn, message as Be, Progress as Zn, Input as ho, DatePicker as Jn, RangePicker as Yn, Button as yo, CheckboxGroup as bo, Select as Qn, TreeSelect as Kn, Modal as _e, Table as Xn, TableSummary as ea, TableSummaryRow as ta, TableSummaryCell as oa } from "ant-design-vue";
|
|
6
6
|
import "ant-design-vue/es/spin/style";
|
|
7
7
|
import "ant-design-vue/es/skeleton/style";
|
|
8
|
-
import { without as na, pick as vo, debounce as
|
|
8
|
+
import { without as na, pick as vo, debounce as Ft, cloneDeep as pt } from "lodash-es";
|
|
9
9
|
import we from "dayjs";
|
|
10
10
|
import po from "axios";
|
|
11
11
|
import aa from "mitt";
|
|
@@ -19,7 +19,7 @@ import "ant-design-vue/es/select/style";
|
|
|
19
19
|
import "ant-design-vue/es/tree-select/style";
|
|
20
20
|
import { CanvasRenderer as je } from "echarts/renderers";
|
|
21
21
|
import { PieChart as la, LineChart as So, BarChart as wo, ScatterChart as xo, MapChart as ia } from "echarts/charts";
|
|
22
|
-
import { TitleComponent as Xe, ToolboxComponent as et, TooltipComponent as
|
|
22
|
+
import { TitleComponent as Xe, ToolboxComponent as et, TooltipComponent as Rt, LegendComponent as tt, DatasetComponent as ko, VisualMapComponent as ra, GraphicComponent as sa } from "echarts/components";
|
|
23
23
|
import * as ca from "echarts";
|
|
24
24
|
import "ant-design-vue/es/modal/style";
|
|
25
25
|
import "ant-design-vue/es/table/style";
|
|
@@ -60,7 +60,7 @@ function ma(e, o) {
|
|
|
60
60
|
}
|
|
61
61
|
function ga(e, o, t) {
|
|
62
62
|
let n = null;
|
|
63
|
-
|
|
63
|
+
Q([t, e, o], ([a, l, r], i, c) => {
|
|
64
64
|
a && l && r && (n = Un(() => {
|
|
65
65
|
l.resize();
|
|
66
66
|
}, 100), jn(a, n)), c(() => {
|
|
@@ -73,7 +73,7 @@ const ha = {
|
|
|
73
73
|
}, ya = "ecLoadingOptions";
|
|
74
74
|
function ba(e, o, t) {
|
|
75
75
|
const n = B(ya, {}), a = q(() => ({
|
|
76
|
-
...
|
|
76
|
+
...k(n),
|
|
77
77
|
...t == null ? void 0 : t.value
|
|
78
78
|
}));
|
|
79
79
|
uo(() => {
|
|
@@ -115,20 +115,20 @@ const wa = "x-vue-echarts", xa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
115
115
|
), c = B(
|
|
116
116
|
Aa,
|
|
117
117
|
null
|
|
118
|
-
), { autoresize:
|
|
118
|
+
), { autoresize: m, manualUpdate: p, loading: g, loadingOptions: w } = Fn(e), f = q(
|
|
119
119
|
() => l.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
120
|
-
), s = q(() => e.theme ||
|
|
121
|
-
() => e.initOptions ||
|
|
122
|
-
),
|
|
123
|
-
() => e.updateOptions ||
|
|
124
|
-
),
|
|
125
|
-
function
|
|
120
|
+
), s = q(() => e.theme || k(r) || {}), u = q(
|
|
121
|
+
() => e.initOptions || k(i) || {}
|
|
122
|
+
), S = q(
|
|
123
|
+
() => e.updateOptions || k(c) || {}
|
|
124
|
+
), y = q(() => Sa(o));
|
|
125
|
+
function v(C) {
|
|
126
126
|
if (a.value || !n.value)
|
|
127
127
|
return;
|
|
128
128
|
const d = a.value = Gn(
|
|
129
129
|
n.value,
|
|
130
130
|
s.value,
|
|
131
|
-
|
|
131
|
+
u.value
|
|
132
132
|
);
|
|
133
133
|
e.group && (d.group = e.group);
|
|
134
134
|
let h = t;
|
|
@@ -150,26 +150,26 @@ const wa = "x-vue-echarts", xa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
function $() {
|
|
153
|
-
d.setOption(C ||
|
|
153
|
+
d.setOption(C || f.value, S.value);
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
m.value ? mt(() => {
|
|
156
156
|
x(), $();
|
|
157
157
|
}) : $();
|
|
158
158
|
}
|
|
159
159
|
function T(C, d) {
|
|
160
|
-
e.manualUpdate && (l.value = C), a.value ? a.value.setOption(C, d || {}) :
|
|
160
|
+
e.manualUpdate && (l.value = C), a.value ? a.value.setOption(C, d || {}) : v(C);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function A() {
|
|
163
163
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
164
164
|
}
|
|
165
|
-
let
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
let F = null;
|
|
166
|
+
Q(
|
|
167
|
+
p,
|
|
168
168
|
(C) => {
|
|
169
|
-
typeof
|
|
169
|
+
typeof F == "function" && (F(), F = null), C || (F = Q(
|
|
170
170
|
() => e.option,
|
|
171
171
|
(d) => {
|
|
172
|
-
d && (a.value ? a.value.setOption(d,
|
|
172
|
+
d && (a.value ? a.value.setOption(d, S.value) : v());
|
|
173
173
|
},
|
|
174
174
|
{ deep: !0 }
|
|
175
175
|
));
|
|
@@ -177,10 +177,10 @@ const wa = "x-vue-echarts", xa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
177
177
|
{
|
|
178
178
|
immediate: !0
|
|
179
179
|
}
|
|
180
|
-
),
|
|
181
|
-
[s,
|
|
180
|
+
), Q(
|
|
181
|
+
[s, u],
|
|
182
182
|
() => {
|
|
183
|
-
|
|
183
|
+
A(), v();
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
deep: !0
|
|
@@ -188,15 +188,15 @@ const wa = "x-vue-echarts", xa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
188
188
|
), uo(() => {
|
|
189
189
|
e.group && a.value && (a.value.group = e.group);
|
|
190
190
|
});
|
|
191
|
-
const
|
|
192
|
-
return ba(a, g,
|
|
193
|
-
e.option &&
|
|
194
|
-
}), ft(
|
|
191
|
+
const b = ma(a, v);
|
|
192
|
+
return ba(a, g, w), ga(a, m, n), Ue(() => {
|
|
193
|
+
e.option && v();
|
|
194
|
+
}), ft(A), {
|
|
195
195
|
chart: a,
|
|
196
196
|
root: n,
|
|
197
197
|
setOption: T,
|
|
198
|
-
nonEventAttrs:
|
|
199
|
-
...
|
|
198
|
+
nonEventAttrs: y,
|
|
199
|
+
...b
|
|
200
200
|
};
|
|
201
201
|
},
|
|
202
202
|
render() {
|
|
@@ -267,8 +267,8 @@ function Ea(e, o, t) {
|
|
|
267
267
|
}
|
|
268
268
|
function Da(e, o, t) {
|
|
269
269
|
e = xe(e, 360) * 6, o = xe(o, 100), t = xe(t, 100);
|
|
270
|
-
var n = Math.floor(e), a = e - n, l = t * (1 - o), r = t * (1 - a * o), i = t * (1 - (1 - a) * o), c = n % 6,
|
|
271
|
-
return { r:
|
|
270
|
+
var n = Math.floor(e), a = e - n, l = t * (1 - o), r = t * (1 - a * o), i = t * (1 - (1 - a) * o), c = n % 6, m = [t, r, l, l, i, t][c], p = [i, t, t, r, l, l][c], g = [l, l, i, t, t, r][c];
|
|
271
|
+
return { r: m * 255, g: p * 255, b: g * 255 };
|
|
272
272
|
}
|
|
273
273
|
function Oa(e, o, t, n) {
|
|
274
274
|
var a = [
|
|
@@ -445,7 +445,7 @@ function Ze(e) {
|
|
|
445
445
|
a: t
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
var
|
|
448
|
+
var Fa = "[-\\+]?\\d+%?", Ra = "[-\\+]?\\d*\\.\\d+%?", Oe = "(?:".concat(Ra, ")|(?:").concat(Fa, ")"), wt = "[\\s|\\(]+(".concat(Oe, ")[,|\\s]+(").concat(Oe, ")[,|\\s]+(").concat(Oe, ")\\s*\\)?"), xt = "[\\s|\\(]+(".concat(Oe, ")[,|\\s]+(").concat(Oe, ")[,|\\s]+(").concat(Oe, ")[,|\\s]+(").concat(Oe, ")\\s*\\)?"), Ae = {
|
|
449
449
|
CSS_UNIT: new RegExp(Oe),
|
|
450
450
|
rgb: new RegExp("rgb" + wt),
|
|
451
451
|
rgba: new RegExp("rgba" + xt),
|
|
@@ -570,16 +570,16 @@ function It(e) {
|
|
|
570
570
|
}
|
|
571
571
|
t.push(st(n));
|
|
572
572
|
for (var i = 1; i <= _o; i += 1) {
|
|
573
|
-
var c = Wt(n),
|
|
573
|
+
var c = Wt(n), m = st(Ze({
|
|
574
574
|
h: Vt(c, i),
|
|
575
575
|
s: Ht(c, i),
|
|
576
576
|
v: Zt(c, i)
|
|
577
577
|
}));
|
|
578
|
-
t.push(
|
|
578
|
+
t.push(m);
|
|
579
579
|
}
|
|
580
|
-
return o.theme === "dark" ? Ba.map(function(
|
|
581
|
-
var g =
|
|
582
|
-
return
|
|
580
|
+
return o.theme === "dark" ? Ba.map(function(p) {
|
|
581
|
+
var g = p.index, w = p.opacity, f = st(Ua(Ze(o.backgroundColor || "#141414"), Ze(t[g]), w * 100));
|
|
582
|
+
return f;
|
|
583
583
|
}) : t;
|
|
584
584
|
}
|
|
585
585
|
var kt = {
|
|
@@ -770,11 +770,11 @@ var We = function(o, t) {
|
|
|
770
770
|
secondaryColor: r || To(l)
|
|
771
771
|
}), Ja(), Ha(Qt(a), "icon should be icon definiton, but got ".concat(a)), !Qt(a))
|
|
772
772
|
return null;
|
|
773
|
-
var
|
|
774
|
-
return
|
|
775
|
-
icon:
|
|
776
|
-
})), Mt(
|
|
777
|
-
"data-icon":
|
|
773
|
+
var m = a;
|
|
774
|
+
return m && typeof m.icon == "function" && (m = ct({}, m, {
|
|
775
|
+
icon: m.icon(c.primaryColor, c.secondaryColor)
|
|
776
|
+
})), Mt(m.icon, "svg-".concat(m.name), ct({}, i, {
|
|
777
|
+
"data-icon": m.name,
|
|
778
778
|
width: "1em",
|
|
779
779
|
height: "1em",
|
|
780
780
|
fill: "currentColor",
|
|
@@ -935,26 +935,26 @@ function hl(e, o) {
|
|
|
935
935
|
}
|
|
936
936
|
Io("#1890ff");
|
|
937
937
|
var Ve = function(o, t) {
|
|
938
|
-
var n, a = to({}, o, t.attrs), l = a.class, r = a.icon, i = a.spin, c = a.rotate,
|
|
938
|
+
var n, a = to({}, o, t.attrs), l = a.class, r = a.icon, i = a.spin, c = a.rotate, m = a.tabindex, p = a.twoToneColor, g = a.onClick, w = gl(a, sl), f = (n = {
|
|
939
939
|
anticon: !0
|
|
940
|
-
}, Et(n, "anticon-".concat(r.name), Boolean(r.name)), Et(n, l, l), n), s = i === "" || i || r.name === "loading" ? "anticon-spin" : "",
|
|
941
|
-
|
|
942
|
-
var
|
|
940
|
+
}, Et(n, "anticon-".concat(r.name), Boolean(r.name)), Et(n, l, l), n), s = i === "" || i || r.name === "loading" ? "anticon-spin" : "", u = m;
|
|
941
|
+
u === void 0 && g && (u = -1, w.tabindex = u);
|
|
942
|
+
var S = c ? {
|
|
943
943
|
msTransform: "rotate(".concat(c, "deg)"),
|
|
944
944
|
transform: "rotate(".concat(c, "deg)")
|
|
945
|
-
} : void 0,
|
|
945
|
+
} : void 0, y = Lo(p), v = cl(y, 2), T = v[0], A = v[1];
|
|
946
946
|
return G("span", to({
|
|
947
947
|
role: "img",
|
|
948
948
|
"aria-label": r.name
|
|
949
|
-
},
|
|
949
|
+
}, w, {
|
|
950
950
|
onClick: g,
|
|
951
|
-
class:
|
|
951
|
+
class: f
|
|
952
952
|
}), [G($t, {
|
|
953
953
|
class: s,
|
|
954
954
|
icon: r,
|
|
955
955
|
primaryColor: T,
|
|
956
|
-
secondaryColor:
|
|
957
|
-
style:
|
|
956
|
+
secondaryColor: A,
|
|
957
|
+
style: S
|
|
958
958
|
}, null)]);
|
|
959
959
|
};
|
|
960
960
|
Ve.props = {
|
|
@@ -1023,7 +1023,7 @@ const te = (e, o) => {
|
|
|
1023
1023
|
function xl(e, o, t, n, a, l) {
|
|
1024
1024
|
const r = V("a-spin");
|
|
1025
1025
|
return E(), O("div", wl, [
|
|
1026
|
-
e.spinning ? (E(),
|
|
1026
|
+
e.spinning ? (E(), Fe(r, {
|
|
1027
1027
|
key: 0,
|
|
1028
1028
|
class: "spin",
|
|
1029
1029
|
spinning: e.spinning,
|
|
@@ -1046,7 +1046,7 @@ const ot = /* @__PURE__ */ te(Sl, [["render", xl]]), kl = ee({
|
|
|
1046
1046
|
});
|
|
1047
1047
|
function Al(e, o, t, n, a, l) {
|
|
1048
1048
|
const r = V("a-skeleton");
|
|
1049
|
-
return E(),
|
|
1049
|
+
return E(), Fe(r, {
|
|
1050
1050
|
active: "",
|
|
1051
1051
|
loading: e.loading
|
|
1052
1052
|
}, {
|
|
@@ -1141,14 +1141,14 @@ const oe = (e, o) => {
|
|
|
1141
1141
|
return q(() => vo(e, t));
|
|
1142
1142
|
}, Nt = "EVENT_BUS", be = "GLOBAL_CONFIG", ge = "GLOBAL_MODEL", ve = "REQUEST_MODEL", Do = "GLOBAL_TOKEN", Ye = "REFRESH_PAGE", Oo = "MODAL_MODEL";
|
|
1143
1143
|
var io;
|
|
1144
|
-
const
|
|
1144
|
+
const Fo = (io = window == null ? void 0 : window.config) == null ? void 0 : io.indicatorURL;
|
|
1145
1145
|
var ro;
|
|
1146
1146
|
(ro = window == null ? void 0 : window.config) != null && ro.uploadPath;
|
|
1147
1147
|
var so;
|
|
1148
1148
|
const no = ((so = window == null ? void 0 : window.config) == null ? void 0 : so.routerBaseURL) || "./";
|
|
1149
1149
|
var co;
|
|
1150
1150
|
const Tl = ((co = window == null ? void 0 : window.config) == null ? void 0 : co.erdURL) || "", me = (e, o) => {
|
|
1151
|
-
|
|
1151
|
+
Q(() => e.id, (t) => {
|
|
1152
1152
|
const n = B(Nt, {
|
|
1153
1153
|
// @ts-ignore
|
|
1154
1154
|
// eslint-disable-next-line no-void
|
|
@@ -1176,8 +1176,8 @@ const Tl = ((co = window == null ? void 0 : window.config) == null ? void 0 : co
|
|
|
1176
1176
|
if (l === c.on)
|
|
1177
1177
|
try {
|
|
1178
1178
|
a.value = t, i(c.target, c.emit);
|
|
1179
|
-
} catch (
|
|
1180
|
-
console.error(
|
|
1179
|
+
} catch (m) {
|
|
1180
|
+
console.error(m);
|
|
1181
1181
|
}
|
|
1182
1182
|
});
|
|
1183
1183
|
};
|
|
@@ -1185,30 +1185,30 @@ const Tl = ((co = window == null ? void 0 : window.config) == null ? void 0 : co
|
|
|
1185
1185
|
let { name: t = "name", value: n = "value", type: a = "type" } = o || {};
|
|
1186
1186
|
t = t == null ? void 0 : t.trim(), n = n == null ? void 0 : n.trim(), a = a == null ? void 0 : a.trim();
|
|
1187
1187
|
const l = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = e.length;
|
|
1188
|
-
for (let
|
|
1189
|
-
const g = e[
|
|
1190
|
-
if (l.add(
|
|
1191
|
-
const
|
|
1192
|
-
|
|
1188
|
+
for (let p = 0; p < i; p++) {
|
|
1189
|
+
const g = e[p], w = g[t] || "", f = g[n] || "", s = g[a] || "";
|
|
1190
|
+
if (l.add(w), r.has(s)) {
|
|
1191
|
+
const u = r.get(s);
|
|
1192
|
+
u.push({ name: w, value: f, ...g }), r.set(s, u);
|
|
1193
1193
|
} else
|
|
1194
|
-
r.set(s, [{ name:
|
|
1194
|
+
r.set(s, [{ name: w, value: f, ...g }]);
|
|
1195
1195
|
}
|
|
1196
|
-
const c = Array.from(l),
|
|
1197
|
-
for (const [
|
|
1198
|
-
|
|
1199
|
-
name:
|
|
1196
|
+
const c = Array.from(l), m = [];
|
|
1197
|
+
for (const [p, g] of r)
|
|
1198
|
+
m.push({
|
|
1199
|
+
name: p,
|
|
1200
1200
|
data: g
|
|
1201
1201
|
});
|
|
1202
1202
|
return {
|
|
1203
1203
|
dimensions: c,
|
|
1204
|
-
dataset:
|
|
1204
|
+
dataset: m
|
|
1205
1205
|
};
|
|
1206
|
-
}, ao = window.config.requestErrorTip,
|
|
1206
|
+
}, ao = window.config.requestErrorTip, Re = po.create({
|
|
1207
1207
|
// timeout: 1000 * 15
|
|
1208
1208
|
timeout: 1e3 * 180
|
|
1209
1209
|
});
|
|
1210
|
-
|
|
1211
|
-
|
|
1210
|
+
Re.interceptors.request.use((e) => e, (e) => Promise.reject(e));
|
|
1211
|
+
Re.interceptors.response.use((e) => {
|
|
1212
1212
|
var o, t, n;
|
|
1213
1213
|
return ao && +((o = e == null ? void 0 : e.data) == null ? void 0 : o.code) == 500 && Be.error({
|
|
1214
1214
|
content: ((t = e == null ? void 0 : e.data) == null ? void 0 : t.msg) || ((n = e == null ? void 0 : e.data) == null ? void 0 : n.message) || "服务器异常",
|
|
@@ -1269,14 +1269,14 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1269
1269
|
if (i == null || i.length === 0)
|
|
1270
1270
|
return e;
|
|
1271
1271
|
for (let c = 0; c < i.length; c++) {
|
|
1272
|
-
const
|
|
1273
|
-
let
|
|
1274
|
-
const g = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,
|
|
1275
|
-
for (let
|
|
1276
|
-
const s =
|
|
1277
|
-
|
|
1272
|
+
const m = i[c];
|
|
1273
|
+
let p = m.slice(1, -1).trim();
|
|
1274
|
+
const g = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, w = p.match(g);
|
|
1275
|
+
for (let f = 0; f < w.length; f++) {
|
|
1276
|
+
const s = w[f], u = r[s];
|
|
1277
|
+
u != null && (p = p.replace(s, u));
|
|
1278
1278
|
}
|
|
1279
|
-
(/\(.*\)/g.test(
|
|
1279
|
+
(/\(.*\)/g.test(p) || /[+/\\*]/g.test(p)) && (p = yt(p, t)), e = e.replace(m, p);
|
|
1280
1280
|
}
|
|
1281
1281
|
return n && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), a && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, " ")), e;
|
|
1282
1282
|
}, ke = (e, o = () => {
|
|
@@ -1288,99 +1288,99 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1288
1288
|
requestParams: l,
|
|
1289
1289
|
requestInterval: r,
|
|
1290
1290
|
isOpenRequestTimer: i
|
|
1291
|
-
} = e, { contextRequestUrl: c, touchEventId:
|
|
1291
|
+
} = e, { contextRequestUrl: c, touchEventId: m } = B(be, {
|
|
1292
1292
|
contextRequestUrl: "",
|
|
1293
1293
|
touchEventId: ""
|
|
1294
|
-
}), { getGlobalModel:
|
|
1294
|
+
}), { getGlobalModel: p } = B(ge, {
|
|
1295
1295
|
// @ts-ignore
|
|
1296
1296
|
// eslint-disable-next-line no-void
|
|
1297
1297
|
getGlobalModel: (s) => {
|
|
1298
1298
|
}
|
|
1299
|
-
}), g = de(t),
|
|
1299
|
+
}), g = de(t), w = async (s = {}) => {
|
|
1300
1300
|
if (!g || !n || !a)
|
|
1301
1301
|
return;
|
|
1302
|
-
let
|
|
1303
|
-
l.forEach((
|
|
1304
|
-
const { key:
|
|
1305
|
-
if (typeof
|
|
1302
|
+
let u = {};
|
|
1303
|
+
l.forEach((A) => {
|
|
1304
|
+
const { key: F, value: b } = A;
|
|
1305
|
+
if (typeof b == "object" && b != null && b.id) {
|
|
1306
1306
|
let C = {};
|
|
1307
|
-
const { id: d, prop: h, propKey: x, operate: $ } =
|
|
1308
|
-
d === "THIS" ? C =
|
|
1309
|
-
const L =
|
|
1307
|
+
const { id: d, prop: h, propKey: x, operate: $ } = b;
|
|
1308
|
+
d === "THIS" ? C = p(k(m)) || {} : C = p(d) || {};
|
|
1309
|
+
const L = k(C[h]);
|
|
1310
1310
|
let _ = null;
|
|
1311
1311
|
if (["date", "range"].some((H) => Dt(C == null ? void 0 : C.type, H))) {
|
|
1312
1312
|
const { value: H, type: z, mode: N } = $ || {};
|
|
1313
1313
|
if (H && z && N)
|
|
1314
1314
|
switch (z) {
|
|
1315
1315
|
case "add":
|
|
1316
|
-
_ =
|
|
1316
|
+
_ = k(L).add(H, N);
|
|
1317
1317
|
break;
|
|
1318
1318
|
case "minus":
|
|
1319
|
-
_ =
|
|
1319
|
+
_ = k(L).subtract(H, N);
|
|
1320
1320
|
break;
|
|
1321
1321
|
}
|
|
1322
|
-
_ == null && (_ =
|
|
1322
|
+
_ == null && (_ = k(L)), _ = (_ == null ? void 0 : _.format((x == null ? void 0 : x.trim()) || C.format)) || "";
|
|
1323
1323
|
} else
|
|
1324
1324
|
Object.prototype.toString.call(L) === "[object Object]" ? _ = L[x || "value"] : _ = L;
|
|
1325
|
-
|
|
1325
|
+
u[F] = _;
|
|
1326
1326
|
} else
|
|
1327
|
-
typeof
|
|
1328
|
-
}),
|
|
1329
|
-
let
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1332
|
-
|
|
1327
|
+
typeof b == "string" && (u[F] = de(b));
|
|
1328
|
+
}), u = { ...window.config.requestParams, ...s, ...u };
|
|
1329
|
+
let S = "";
|
|
1330
|
+
const y = Object.keys(u), v = y.length - 1, T = y.length;
|
|
1331
|
+
y.forEach((A, F) => {
|
|
1332
|
+
F === 0 ? T !== 1 ? S += `?${A}=${u[A]}&` : S += `?${A}=${u[A]}` : F === v ? S += `${A}=${u[A]}` : S += `${A}=${u[A]}&`;
|
|
1333
1333
|
});
|
|
1334
1334
|
try {
|
|
1335
|
-
const
|
|
1336
|
-
baseURL:
|
|
1337
|
-
url:
|
|
1335
|
+
const A = ["get", "head"].includes(n), F = await Re({
|
|
1336
|
+
baseURL: k(c) || "",
|
|
1337
|
+
url: A ? g + S : g,
|
|
1338
1338
|
method: n,
|
|
1339
1339
|
headers: a,
|
|
1340
|
-
data:
|
|
1340
|
+
data: A ? {} : u
|
|
1341
1341
|
});
|
|
1342
|
-
return o(
|
|
1343
|
-
} catch (
|
|
1344
|
-
console.error(
|
|
1342
|
+
return o(F), F;
|
|
1343
|
+
} catch (A) {
|
|
1344
|
+
console.error(A);
|
|
1345
1345
|
}
|
|
1346
|
-
},
|
|
1346
|
+
}, f = i && setInterval(w, r * 1e3);
|
|
1347
1347
|
return ft(() => {
|
|
1348
|
-
clearInterval(
|
|
1349
|
-
}),
|
|
1348
|
+
clearInterval(f);
|
|
1349
|
+
}), w;
|
|
1350
1350
|
}, Ge = (e = [], o) => {
|
|
1351
1351
|
let { name: t = "name", types: n = [] } = o || {};
|
|
1352
1352
|
t = (t == null ? void 0 : t.trim()) || t;
|
|
1353
1353
|
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), r = e.length, i = n.length;
|
|
1354
1354
|
if (r === 1) {
|
|
1355
|
-
const
|
|
1356
|
-
for (let
|
|
1357
|
-
const
|
|
1358
|
-
a.add(s),
|
|
1355
|
+
const p = [];
|
|
1356
|
+
for (let w = 0; w < i; w++) {
|
|
1357
|
+
const f = n[w], { label: s, value: u } = f, S = { ...e[0], value: e[0][u] };
|
|
1358
|
+
a.add(s), p.push(S);
|
|
1359
1359
|
}
|
|
1360
1360
|
const g = e[0][t] || "";
|
|
1361
|
-
l.set(g,
|
|
1361
|
+
l.set(g, p);
|
|
1362
1362
|
} else
|
|
1363
|
-
for (let
|
|
1364
|
-
const g = e[
|
|
1365
|
-
a.add(
|
|
1366
|
-
for (let
|
|
1367
|
-
const s = n[
|
|
1368
|
-
if (l.has(
|
|
1369
|
-
const
|
|
1370
|
-
|
|
1363
|
+
for (let p = 0; p < r; p++) {
|
|
1364
|
+
const g = e[p], w = g[t];
|
|
1365
|
+
a.add(w);
|
|
1366
|
+
for (let f = 0; f < i; f++) {
|
|
1367
|
+
const s = n[f], { label: u, value: S } = s, y = { ...g, value: g[S] };
|
|
1368
|
+
if (l.has(u)) {
|
|
1369
|
+
const v = l.get(u);
|
|
1370
|
+
v.push(y), l.set(u, v);
|
|
1371
1371
|
} else
|
|
1372
|
-
l.set(
|
|
1372
|
+
l.set(u, [y]);
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
const c = Array.from(a),
|
|
1376
|
-
for (const [
|
|
1377
|
-
|
|
1378
|
-
name:
|
|
1375
|
+
const c = Array.from(a), m = [];
|
|
1376
|
+
for (const [p, g] of l)
|
|
1377
|
+
m.push({
|
|
1378
|
+
name: p,
|
|
1379
1379
|
data: g
|
|
1380
1380
|
});
|
|
1381
1381
|
return {
|
|
1382
1382
|
dimensions: c,
|
|
1383
|
-
dataset:
|
|
1383
|
+
dataset: m
|
|
1384
1384
|
};
|
|
1385
1385
|
}, ze = (e, o = !1) => {
|
|
1386
1386
|
var n;
|
|
@@ -1388,7 +1388,7 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1388
1388
|
return e;
|
|
1389
1389
|
let t = "";
|
|
1390
1390
|
return e != null && e.includes("://") ? t = e : t = ((n = window == null ? void 0 : window.config) == null ? void 0 : n.uploadPath) + e, o && (t = `url(${t})`), t;
|
|
1391
|
-
},
|
|
1391
|
+
}, Ro = (e, o) => {
|
|
1392
1392
|
const t = `${no}/preview?pageId=${o}`, n = `${no}/${o}`;
|
|
1393
1393
|
return e === "preview" ? t : n;
|
|
1394
1394
|
}, Ne = (e, o) => {
|
|
@@ -1422,12 +1422,12 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1422
1422
|
});
|
|
1423
1423
|
e.dataType === "indicator" && o();
|
|
1424
1424
|
const t = (r = {}) => {
|
|
1425
|
-
const { label: i, name: c, location:
|
|
1425
|
+
const { label: i, name: c, location: m, show: p, indexCode: g } = r;
|
|
1426
1426
|
return {
|
|
1427
1427
|
label: i,
|
|
1428
1428
|
columnName: c,
|
|
1429
|
-
location:
|
|
1430
|
-
show:
|
|
1429
|
+
location: m,
|
|
1430
|
+
show: p,
|
|
1431
1431
|
calcType: "COLUMN",
|
|
1432
1432
|
hrpIndexCode: g
|
|
1433
1433
|
};
|
|
@@ -1435,29 +1435,29 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1435
1435
|
const {
|
|
1436
1436
|
label: i,
|
|
1437
1437
|
name: c,
|
|
1438
|
-
location:
|
|
1439
|
-
show:
|
|
1438
|
+
location: m,
|
|
1439
|
+
show: p,
|
|
1440
1440
|
indexCode: g,
|
|
1441
|
-
calcType:
|
|
1442
|
-
builtInFormula:
|
|
1441
|
+
calcType: w = "COLUMN",
|
|
1442
|
+
builtInFormula: f,
|
|
1443
1443
|
builtInValueSource: s,
|
|
1444
|
-
builtInCalcWay:
|
|
1445
|
-
formula:
|
|
1446
|
-
conditions:
|
|
1444
|
+
builtInCalcWay: u,
|
|
1445
|
+
formula: S,
|
|
1446
|
+
conditions: y
|
|
1447
1447
|
} = r;
|
|
1448
1448
|
return {
|
|
1449
1449
|
label: i,
|
|
1450
1450
|
columnName: c,
|
|
1451
|
-
location:
|
|
1452
|
-
show:
|
|
1453
|
-
calcType:
|
|
1451
|
+
location: m,
|
|
1452
|
+
show: p,
|
|
1453
|
+
calcType: w,
|
|
1454
1454
|
hrpIndexCode: g,
|
|
1455
1455
|
aggregate: "SUM",
|
|
1456
|
-
builtInFormula:
|
|
1456
|
+
builtInFormula: f,
|
|
1457
1457
|
builtInValueSource: s,
|
|
1458
|
-
builtInCalcWay:
|
|
1459
|
-
formula:
|
|
1460
|
-
conditions:
|
|
1458
|
+
builtInCalcWay: u,
|
|
1459
|
+
formula: S,
|
|
1460
|
+
conditions: y
|
|
1461
1461
|
};
|
|
1462
1462
|
}, { getGlobalModel: a } = B(ge, {
|
|
1463
1463
|
// @ts-ignore
|
|
@@ -1465,27 +1465,27 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1465
1465
|
getGlobalModel: (r) => {
|
|
1466
1466
|
}
|
|
1467
1467
|
}), l = (r = []) => {
|
|
1468
|
-
var
|
|
1468
|
+
var m;
|
|
1469
1469
|
const i = r.length, c = [];
|
|
1470
|
-
for (let
|
|
1471
|
-
const g = r[
|
|
1472
|
-
id:
|
|
1473
|
-
conditionLabel:
|
|
1470
|
+
for (let p = 0; p < i; p++) {
|
|
1471
|
+
const g = r[p], {
|
|
1472
|
+
id: w,
|
|
1473
|
+
conditionLabel: f,
|
|
1474
1474
|
conditionKey: s,
|
|
1475
|
-
conditionValueType:
|
|
1476
|
-
} = g,
|
|
1475
|
+
conditionValueType: u
|
|
1476
|
+
} = g, S = {
|
|
1477
1477
|
rule: "NONE",
|
|
1478
|
-
label:
|
|
1478
|
+
label: f,
|
|
1479
1479
|
fieldName: s,
|
|
1480
1480
|
fieldValue: "",
|
|
1481
1481
|
// 在关联控件中取
|
|
1482
|
-
valueType:
|
|
1483
|
-
},
|
|
1484
|
-
if (Dt(
|
|
1485
|
-
const { value:
|
|
1486
|
-
|
|
1482
|
+
valueType: u
|
|
1483
|
+
}, y = a(w) || {};
|
|
1484
|
+
if (Dt(y.type, "date")) {
|
|
1485
|
+
const { value: v, format: T } = y || {};
|
|
1486
|
+
S.fieldValue = (m = k(v)) == null ? void 0 : m.format(T), S.dateFormat = T;
|
|
1487
1487
|
}
|
|
1488
|
-
c.push(
|
|
1488
|
+
c.push(S);
|
|
1489
1489
|
}
|
|
1490
1490
|
return c;
|
|
1491
1491
|
};
|
|
@@ -1494,40 +1494,40 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1494
1494
|
const { graphicConfig: r, type: i } = e;
|
|
1495
1495
|
let {
|
|
1496
1496
|
source: c,
|
|
1497
|
-
dataViewId:
|
|
1498
|
-
plugin:
|
|
1497
|
+
dataViewId: m,
|
|
1498
|
+
plugin: p = "1",
|
|
1499
1499
|
// 插件类型
|
|
1500
1500
|
layer: g,
|
|
1501
1501
|
// 后台图表类型,值分0,1
|
|
1502
|
-
chartType:
|
|
1502
|
+
chartType: w,
|
|
1503
1503
|
// 前端图表类型,实测没用
|
|
1504
|
-
classificationList:
|
|
1504
|
+
classificationList: f = [],
|
|
1505
1505
|
seriesList: s = [],
|
|
1506
|
-
leftAxisList:
|
|
1507
|
-
rightAxisList:
|
|
1508
|
-
queryColumnList:
|
|
1509
|
-
indicators:
|
|
1506
|
+
leftAxisList: u = [],
|
|
1507
|
+
rightAxisList: S = [],
|
|
1508
|
+
queryColumnList: y = [],
|
|
1509
|
+
indicators: v = [],
|
|
1510
1510
|
controlList: T = [],
|
|
1511
|
-
dataSourceId:
|
|
1511
|
+
dataSourceId: A,
|
|
1512
1512
|
// 所属数据源ID
|
|
1513
|
-
idxLibMode:
|
|
1513
|
+
idxLibMode: F,
|
|
1514
1514
|
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
1515
|
-
preview:
|
|
1515
|
+
preview: b = !1
|
|
1516
1516
|
// 预览开关
|
|
1517
1517
|
} = r || {};
|
|
1518
1518
|
g == null && (Dt(i, "table") ? g = "1" : g = "2");
|
|
1519
1519
|
let C;
|
|
1520
|
-
if (Array.isArray(
|
|
1521
|
-
const _ =
|
|
1520
|
+
if (Array.isArray(f) && f.length > 0) {
|
|
1521
|
+
const _ = f.length;
|
|
1522
1522
|
for (let J = 0; J < _; J++) {
|
|
1523
|
-
const H =
|
|
1524
|
-
if (
|
|
1523
|
+
const H = f[J] || {}, { label: z = "", name: N = "", show: R = !1, sort: W, customGroup: K, conditions: se } = H;
|
|
1524
|
+
if (R || _ === 1) {
|
|
1525
1525
|
C = {
|
|
1526
1526
|
label: z,
|
|
1527
1527
|
columnName: N,
|
|
1528
|
-
show:
|
|
1528
|
+
show: R,
|
|
1529
1529
|
sort: W,
|
|
1530
|
-
customGroup:
|
|
1530
|
+
customGroup: K,
|
|
1531
1531
|
conditions: se
|
|
1532
1532
|
};
|
|
1533
1533
|
break;
|
|
@@ -1538,14 +1538,14 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1538
1538
|
if (Array.isArray(s) && s.length > 0) {
|
|
1539
1539
|
const _ = s.length;
|
|
1540
1540
|
for (let J = 0; J < _; J++) {
|
|
1541
|
-
const H = s[J] || {}, { label: z = "", name: N = "", show:
|
|
1542
|
-
if (
|
|
1541
|
+
const H = s[J] || {}, { label: z = "", name: N = "", show: R = !1, sort: W, customGroup: K, conditions: se } = H;
|
|
1542
|
+
if (R || _ === 1) {
|
|
1543
1543
|
d = {
|
|
1544
1544
|
label: z,
|
|
1545
1545
|
columnName: N,
|
|
1546
|
-
show:
|
|
1546
|
+
show: R,
|
|
1547
1547
|
sort: W,
|
|
1548
|
-
customGroup:
|
|
1548
|
+
customGroup: K,
|
|
1549
1549
|
conditions: se
|
|
1550
1550
|
};
|
|
1551
1551
|
break;
|
|
@@ -1553,15 +1553,15 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
1555
|
const h = [];
|
|
1556
|
-
|
|
1556
|
+
y == null || y.forEach((_) => {
|
|
1557
1557
|
h.push(t(_));
|
|
1558
1558
|
});
|
|
1559
1559
|
const x = [];
|
|
1560
|
-
if (
|
|
1560
|
+
if (u == null || u.forEach((_) => {
|
|
1561
1561
|
_.location = "LEFT", x.push(n(_));
|
|
1562
|
-
}),
|
|
1562
|
+
}), S == null || S.forEach((_) => {
|
|
1563
1563
|
_.location = "RIGHT", x.push(n(_));
|
|
1564
|
-
}),
|
|
1564
|
+
}), v == null || v.forEach((_) => {
|
|
1565
1565
|
_.location = "LEFT", x.push(n(_));
|
|
1566
1566
|
}), g === "1" && h.length === 0)
|
|
1567
1567
|
return;
|
|
@@ -1570,14 +1570,14 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1570
1570
|
let $;
|
|
1571
1571
|
(r == null ? void 0 : r.pageMode) === "design" ? $ = r.sqlConditions ?? [] : $ = l(T);
|
|
1572
1572
|
try {
|
|
1573
|
-
return await
|
|
1574
|
-
`${
|
|
1573
|
+
return await Re.post(
|
|
1574
|
+
`${Fo}/diagram`,
|
|
1575
1575
|
{
|
|
1576
1576
|
source: c,
|
|
1577
|
-
dataViewId:
|
|
1578
|
-
plugin:
|
|
1577
|
+
dataViewId: m,
|
|
1578
|
+
plugin: p,
|
|
1579
1579
|
layer: g,
|
|
1580
|
-
chartType:
|
|
1580
|
+
chartType: w,
|
|
1581
1581
|
classification: C,
|
|
1582
1582
|
series: d,
|
|
1583
1583
|
indicatorList: x,
|
|
@@ -1585,9 +1585,9 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1585
1585
|
pageFlag: !0,
|
|
1586
1586
|
sqlConditions: $,
|
|
1587
1587
|
// fixedDimSql: '',
|
|
1588
|
-
dataSourceId:
|
|
1589
|
-
idxLibMode:
|
|
1590
|
-
preview:
|
|
1588
|
+
dataSourceId: A,
|
|
1589
|
+
idxLibMode: F,
|
|
1590
|
+
preview: b
|
|
1591
1591
|
},
|
|
1592
1592
|
{
|
|
1593
1593
|
headers: {
|
|
@@ -1637,20 +1637,20 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1637
1637
|
backgroundSize: e.backgroundSize
|
|
1638
1638
|
})), t = M(0), n = M(0), a = M(0), l = M(0), r = M(!1), i = M();
|
|
1639
1639
|
let c;
|
|
1640
|
-
const
|
|
1640
|
+
const m = () => new Promise((u) => {
|
|
1641
1641
|
mt(() => {
|
|
1642
|
-
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = i.value.clientWidth, n.value = i.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height),
|
|
1642
|
+
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = i.value.clientWidth, n.value = i.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height), u();
|
|
1643
1643
|
});
|
|
1644
|
-
}),
|
|
1644
|
+
}), p = () => {
|
|
1645
1645
|
t.value && n.value ? (i.value.style.width = `${t.value}px`, i.value.style.height = `${n.value}px`) : (i.value.style.width = `${a.value}px`, i.value.style.height = `${l.value}px`);
|
|
1646
1646
|
}, g = () => {
|
|
1647
|
-
const
|
|
1648
|
-
i.value && (i.value.style.transform = `scale(${T}, ${
|
|
1649
|
-
},
|
|
1650
|
-
await
|
|
1651
|
-
}, 100),
|
|
1652
|
-
const
|
|
1653
|
-
c = new
|
|
1647
|
+
const u = document.body.clientWidth, S = document.body.clientHeight, y = t.value || a.value, v = n.value || l.value, T = u / y, A = S / v;
|
|
1648
|
+
i.value && (i.value.style.transform = `scale(${T}, ${A})`);
|
|
1649
|
+
}, w = Ft(async () => {
|
|
1650
|
+
await m(), g();
|
|
1651
|
+
}, 100), f = () => {
|
|
1652
|
+
const u = window.MutationObserver;
|
|
1653
|
+
c = new u(w), c.observe(i.value, {
|
|
1654
1654
|
attributes: !0,
|
|
1655
1655
|
attributeFilter: ["style"],
|
|
1656
1656
|
attributeOldValue: !0
|
|
@@ -1659,9 +1659,9 @@ const Ll = (e) => e.replace(/\\n/g, `
|
|
|
1659
1659
|
c && (c.disconnect(), c.takeRecords(), c = null);
|
|
1660
1660
|
};
|
|
1661
1661
|
return Ue(async () => {
|
|
1662
|
-
r.value = !1, await
|
|
1662
|
+
r.value = !1, await m(), p(), g(), window.addEventListener("resize", w), f(), r.value = !0;
|
|
1663
1663
|
}), ft(() => {
|
|
1664
|
-
window.removeEventListener("resize",
|
|
1664
|
+
window.removeEventListener("resize", w), s();
|
|
1665
1665
|
}), {
|
|
1666
1666
|
style: o,
|
|
1667
1667
|
container: i,
|
|
@@ -1684,7 +1684,7 @@ function Ol(e, o, t, n, a, l) {
|
|
|
1684
1684
|
], 4)) : Ce("", !0)
|
|
1685
1685
|
], 512);
|
|
1686
1686
|
}
|
|
1687
|
-
const
|
|
1687
|
+
const Fl = /* @__PURE__ */ te(El, [["render", Ol], ["__scopeId", "data-v-242d350e"]]), Rl = oe(Fl), $o = {
|
|
1688
1688
|
contextRequestUrl: "",
|
|
1689
1689
|
pageMode: "normal",
|
|
1690
1690
|
theme: "light",
|
|
@@ -1700,7 +1700,7 @@ const Rl = /* @__PURE__ */ te(El, [["render", Ol], ["__scopeId", "data-v-242d350
|
|
|
1700
1700
|
const t = M(), n = () => {
|
|
1701
1701
|
t.value.setAttribute("datav-theme", e.theme);
|
|
1702
1702
|
};
|
|
1703
|
-
|
|
1703
|
+
Q(() => e.theme, () => {
|
|
1704
1704
|
n();
|
|
1705
1705
|
}), Ue(() => {
|
|
1706
1706
|
n();
|
|
@@ -1715,100 +1715,100 @@ const Rl = /* @__PURE__ */ te(El, [["render", Ol], ["__scopeId", "data-v-242d350
|
|
|
1715
1715
|
theme: r,
|
|
1716
1716
|
touchEventId: i
|
|
1717
1717
|
});
|
|
1718
|
-
const c = /* @__PURE__ */ new Map(),
|
|
1718
|
+
const c = /* @__PURE__ */ new Map(), m = (z) => c.get(z);
|
|
1719
1719
|
$e(ge, {
|
|
1720
|
-
getGlobalModel:
|
|
1720
|
+
getGlobalModel: m,
|
|
1721
1721
|
setGlobalModel: (z, N) => {
|
|
1722
1722
|
c.set(z, N);
|
|
1723
1723
|
}
|
|
1724
1724
|
});
|
|
1725
|
-
const g = [],
|
|
1725
|
+
const g = [], w = () => {
|
|
1726
1726
|
g.pop();
|
|
1727
|
-
},
|
|
1727
|
+
}, f = (z) => {
|
|
1728
1728
|
g.push(z);
|
|
1729
|
-
}, s = /* @__PURE__ */ new Map(),
|
|
1729
|
+
}, s = /* @__PURE__ */ new Map(), u = (z) => s.get(z);
|
|
1730
1730
|
$e(Oo, {
|
|
1731
|
-
popUseModalIds:
|
|
1732
|
-
pushUseModalIds:
|
|
1733
|
-
getModalModel:
|
|
1731
|
+
popUseModalIds: w,
|
|
1732
|
+
pushUseModalIds: f,
|
|
1733
|
+
getModalModel: u,
|
|
1734
1734
|
setModalModel: (z, N) => {
|
|
1735
1735
|
s.set(z, N);
|
|
1736
1736
|
}
|
|
1737
1737
|
});
|
|
1738
|
-
const
|
|
1739
|
-
|
|
1740
|
-
|
|
1738
|
+
const y = aa(), v = /* @__PURE__ */ new Set(), T = (z, N) => {
|
|
1739
|
+
v.add(z), y.on(z, (R) => typeof N[R] == "function" && N[R]()), Tt(() => {
|
|
1740
|
+
A(z);
|
|
1741
1741
|
});
|
|
1742
|
-
},
|
|
1743
|
-
|
|
1742
|
+
}, A = (z) => {
|
|
1743
|
+
v.delete(z), y.off(z);
|
|
1744
1744
|
};
|
|
1745
1745
|
$e(Nt, {
|
|
1746
1746
|
onEvent: T,
|
|
1747
|
-
offEvent:
|
|
1747
|
+
offEvent: A,
|
|
1748
1748
|
emitEvent: (z, N) => {
|
|
1749
1749
|
if (z === "PAGE") {
|
|
1750
|
-
const
|
|
1750
|
+
const R = g.length;
|
|
1751
1751
|
let W = [];
|
|
1752
|
-
if (
|
|
1753
|
-
W = [...
|
|
1752
|
+
if (R === 0)
|
|
1753
|
+
W = [...v];
|
|
1754
1754
|
else {
|
|
1755
|
-
const
|
|
1756
|
-
W = [...
|
|
1755
|
+
const K = g[R - 1];
|
|
1756
|
+
W = [...u(K)];
|
|
1757
1757
|
}
|
|
1758
|
-
W.forEach((
|
|
1759
|
-
|
|
1758
|
+
W.forEach((K) => {
|
|
1759
|
+
y.emit(K, N);
|
|
1760
1760
|
});
|
|
1761
1761
|
} else
|
|
1762
|
-
|
|
1762
|
+
y.emit(z, N);
|
|
1763
1763
|
}
|
|
1764
1764
|
});
|
|
1765
|
-
const
|
|
1765
|
+
const b = M(0);
|
|
1766
1766
|
$e(Do, {
|
|
1767
1767
|
requestToken: () => {
|
|
1768
|
-
|
|
1768
|
+
b.value = k(b) + 1;
|
|
1769
1769
|
}
|
|
1770
1770
|
});
|
|
1771
1771
|
const d = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), x = ({ requestFn: z = () => {
|
|
1772
|
-
}, sortNum: N = 0, id:
|
|
1772
|
+
}, sortNum: N = 0, id: R = "" }) => {
|
|
1773
1773
|
if (d.has(N)) {
|
|
1774
1774
|
const W = d.get(N);
|
|
1775
1775
|
W == null || W.push(z);
|
|
1776
1776
|
} else
|
|
1777
1777
|
d.set(N, [z]);
|
|
1778
|
-
h.set(
|
|
1779
|
-
}, $ = (z) => new Promise((N,
|
|
1780
|
-
const W = z.map((
|
|
1781
|
-
Promise.all(W).then((
|
|
1782
|
-
N(
|
|
1783
|
-
}).catch((
|
|
1784
|
-
|
|
1778
|
+
h.set(R, z);
|
|
1779
|
+
}, $ = (z) => new Promise((N, R) => {
|
|
1780
|
+
const W = z.map((K) => K());
|
|
1781
|
+
Promise.all(W).then((K) => {
|
|
1782
|
+
N(K);
|
|
1783
|
+
}).catch((K) => {
|
|
1784
|
+
R(K);
|
|
1785
1785
|
});
|
|
1786
1786
|
}), L = async () => {
|
|
1787
|
-
var
|
|
1788
|
-
const z = await po.get(`${
|
|
1787
|
+
var R;
|
|
1788
|
+
const z = await po.get(`${Fo}/user/anonymous?username=admin&businessOfficeId=350421`, {
|
|
1789
1789
|
headers: {
|
|
1790
1790
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1791
1791
|
current_context: "ygt",
|
|
1792
1792
|
Authentication: ""
|
|
1793
1793
|
}
|
|
1794
|
-
}), { token: N } = ((
|
|
1794
|
+
}), { token: N } = ((R = z.data) == null ? void 0 : R.data) || {};
|
|
1795
1795
|
window.config.indicatorToken = N;
|
|
1796
|
-
}, _ = (z) => new Promise(async (N,
|
|
1796
|
+
}, _ = (z) => new Promise(async (N, R) => {
|
|
1797
1797
|
if (z) {
|
|
1798
1798
|
if (typeof z == "string") {
|
|
1799
1799
|
const W = h.get(z);
|
|
1800
1800
|
if (typeof W == "function") {
|
|
1801
|
-
const
|
|
1802
|
-
W(),
|
|
1801
|
+
const K = Re.interceptors.response.use((se) => (N(se), se), (se) => (R(se), Promise.reject(se)));
|
|
1802
|
+
W(), Re.interceptors.response.eject(K);
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
1805
|
} else {
|
|
1806
1806
|
const W = Array.from(d);
|
|
1807
1807
|
W.sort((se, He) => He[0] - se[0]);
|
|
1808
|
-
const
|
|
1808
|
+
const K = W.length;
|
|
1809
1809
|
try {
|
|
1810
|
-
e.pageMode !== "design" &&
|
|
1811
|
-
for (let se = 0; se <
|
|
1810
|
+
e.pageMode !== "design" && k(b) > 0 && await L();
|
|
1811
|
+
for (let se = 0; se < K; se++) {
|
|
1812
1812
|
const He = W[se][1];
|
|
1813
1813
|
await $(He);
|
|
1814
1814
|
}
|
|
@@ -1824,19 +1824,19 @@ const Rl = /* @__PURE__ */ te(El, [["render", Ol], ["__scopeId", "data-v-242d350
|
|
|
1824
1824
|
touchRequest: _
|
|
1825
1825
|
}), $e(Ye, {
|
|
1826
1826
|
emitRefreshPage: () => {
|
|
1827
|
-
|
|
1827
|
+
y.emit(Ye);
|
|
1828
1828
|
}
|
|
1829
1829
|
});
|
|
1830
1830
|
const H = (z) => {
|
|
1831
|
-
|
|
1832
|
-
|
|
1831
|
+
y.on(Ye, () => z()), Ue(() => {
|
|
1832
|
+
y.off(Ye);
|
|
1833
1833
|
});
|
|
1834
1834
|
};
|
|
1835
1835
|
return Tt(() => {
|
|
1836
1836
|
d == null || d.clear(), h == null || h.clear();
|
|
1837
1837
|
}), o({
|
|
1838
1838
|
touchRequest: _,
|
|
1839
|
-
getGlobalModel:
|
|
1839
|
+
getGlobalModel: m,
|
|
1840
1840
|
onRefreshPage: H
|
|
1841
1841
|
}), {
|
|
1842
1842
|
providerConfig: t
|
|
@@ -1883,46 +1883,46 @@ const Pl = /* @__PURE__ */ te($l, [["render", Nl]]), Bl = oe(Pl), No = {
|
|
|
1883
1883
|
},
|
|
1884
1884
|
setup(e) {
|
|
1885
1885
|
const o = ie(e), t = M({});
|
|
1886
|
-
|
|
1887
|
-
s === "static" && (t.value =
|
|
1886
|
+
Q(() => [e.data, e.dataType], ([f, s]) => {
|
|
1887
|
+
s === "static" && (t.value = f);
|
|
1888
1888
|
}, {
|
|
1889
1889
|
immediate: !0
|
|
1890
1890
|
});
|
|
1891
1891
|
const n = q(() => {
|
|
1892
|
-
var
|
|
1893
|
-
const
|
|
1892
|
+
var S;
|
|
1893
|
+
const f = k(t);
|
|
1894
1894
|
let s = e.text;
|
|
1895
1895
|
s = s == null ? void 0 : s.replace(/\n|\\n/g, "<br/>"), s = s == null ? void 0 : s.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
1896
|
-
const
|
|
1897
|
-
if (
|
|
1896
|
+
const u = s.match(/\{(.+?)\}/g);
|
|
1897
|
+
if (u == null || u.length === 0)
|
|
1898
1898
|
return s;
|
|
1899
|
-
for (let
|
|
1900
|
-
const
|
|
1901
|
-
let
|
|
1902
|
-
const
|
|
1903
|
-
for (let C = 0; C <
|
|
1904
|
-
const d =
|
|
1905
|
-
h && (
|
|
1899
|
+
for (let y = 0; y < u.length; y++) {
|
|
1900
|
+
const v = u[y], T = (S = v == null ? void 0 : v.slice(1, v.length - 1)) == null ? void 0 : S.trim();
|
|
1901
|
+
let A = T;
|
|
1902
|
+
const F = T.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
1903
|
+
for (let C = 0; C < F.length; C++) {
|
|
1904
|
+
const d = F[C], h = f[d];
|
|
1905
|
+
h && (A = T.replace(d, h));
|
|
1906
1906
|
}
|
|
1907
|
-
if (/\(.*\)/g.test(
|
|
1908
|
-
const C = yt(
|
|
1909
|
-
C != null && (
|
|
1907
|
+
if (/\(.*\)/g.test(A)) {
|
|
1908
|
+
const C = yt(A);
|
|
1909
|
+
C != null && (A = C);
|
|
1910
1910
|
}
|
|
1911
|
-
let
|
|
1912
|
-
if (
|
|
1911
|
+
let b = A;
|
|
1912
|
+
if (b === T && (b = e.variableDefaultValue), b != null) {
|
|
1913
1913
|
const C = e.format;
|
|
1914
|
-
C === "percentage" ? (
|
|
1914
|
+
C === "percentage" ? (b = +b, isNaN(b) ? s = s.replace(v, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : b >= 0 ? (b = (b * 100).toFixed(2), s = s.replace(v, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Gl}"/>${b}%</span>`)) : (b = (b * 100).toFixed(2), s = s.replace(v, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${ql}"/>${Math.abs(+b)}%</span>`))) : e.format === "percent" ? (b = +b, isNaN(b) || (b = (b * 100).toFixed(2), s = s.replace(v, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}%</span>`))) : e.format === "money" ? (b = +b, isNaN(b) || (b = Pt(b), s = s.replace(v, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}</span>`))) : C === "thousands" ? (b = +b, isNaN(b) || (b = Il(b), s = s.replace(v, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}</span>`))) : s = s.replace(v, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}</span>`);
|
|
1915
1915
|
}
|
|
1916
1916
|
}
|
|
1917
1917
|
return `<span>${s}</span>`;
|
|
1918
1918
|
}), { pageMode: a } = B(be, {
|
|
1919
1919
|
pageMode: "normal"
|
|
1920
1920
|
}), l = ke(e), r = M(!1), i = async () => {
|
|
1921
|
-
var
|
|
1921
|
+
var f;
|
|
1922
1922
|
try {
|
|
1923
1923
|
r.value = !0;
|
|
1924
1924
|
const s = await l();
|
|
1925
|
-
t.value = ((
|
|
1925
|
+
t.value = ((f = s == null ? void 0 : s.data) == null ? void 0 : f.data) || {};
|
|
1926
1926
|
} catch (s) {
|
|
1927
1927
|
console.error(s);
|
|
1928
1928
|
} finally {
|
|
@@ -1934,34 +1934,34 @@ const Pl = /* @__PURE__ */ te($l, [["render", Nl]]), Bl = oe(Pl), No = {
|
|
|
1934
1934
|
me(e, {
|
|
1935
1935
|
refreshData: c
|
|
1936
1936
|
});
|
|
1937
|
-
const { setRequest:
|
|
1937
|
+
const { setRequest: m } = B(ve, {
|
|
1938
1938
|
// @ts-ignore
|
|
1939
1939
|
// eslint-disable-next-line no-void
|
|
1940
|
-
setRequest: ({ id:
|
|
1940
|
+
setRequest: ({ id: f, sortNum: s, requestFn: u }) => {
|
|
1941
1941
|
}
|
|
1942
1942
|
});
|
|
1943
|
-
|
|
1943
|
+
m({
|
|
1944
1944
|
id: e.id,
|
|
1945
1945
|
requestFn: c,
|
|
1946
1946
|
sortNum: e.requestSort
|
|
1947
1947
|
}), me(e, {
|
|
1948
1948
|
refreshData: c
|
|
1949
1949
|
});
|
|
1950
|
-
const
|
|
1950
|
+
const p = ue(e), g = p("click", () => {
|
|
1951
1951
|
if (!e.linkPage && !e.href)
|
|
1952
1952
|
return;
|
|
1953
|
-
const
|
|
1954
|
-
let
|
|
1955
|
-
|
|
1956
|
-
const
|
|
1957
|
-
|
|
1953
|
+
const f = e.linkPage || "", s = Ro(k(a), f), u = e.href;
|
|
1954
|
+
let S = u || s;
|
|
1955
|
+
S = de(S);
|
|
1956
|
+
const y = e.target;
|
|
1957
|
+
y && (y !== "event" ? window.open(S, "_" + y) : window.parent.postMessage({
|
|
1958
1958
|
type: "openPage",
|
|
1959
|
-
url:
|
|
1959
|
+
url: u
|
|
1960
1960
|
}, "*"));
|
|
1961
|
-
}),
|
|
1961
|
+
}), w = p("valueChange", () => {
|
|
1962
1962
|
});
|
|
1963
|
-
return
|
|
1964
|
-
|
|
1963
|
+
return Q(() => n.value, (f, s) => {
|
|
1964
|
+
f !== s && w();
|
|
1965
1965
|
}), {
|
|
1966
1966
|
style: o,
|
|
1967
1967
|
myText: n,
|
|
@@ -2023,26 +2023,26 @@ const Kl = /* @__PURE__ */ te(Jl, [["render", Ql], ["__scopeId", "data-v-4dd9c03
|
|
|
2023
2023
|
},
|
|
2024
2024
|
setup(e) {
|
|
2025
2025
|
const o = ie(e), t = () => {
|
|
2026
|
-
const { format:
|
|
2026
|
+
const { format: m, operate: p } = e;
|
|
2027
2027
|
let g = we();
|
|
2028
|
-
if (
|
|
2029
|
-
const { type:
|
|
2030
|
-
switch (
|
|
2028
|
+
if (p) {
|
|
2029
|
+
const { type: w, value: f, mode: s } = p;
|
|
2030
|
+
switch (w) {
|
|
2031
2031
|
case "add":
|
|
2032
|
-
g = g.add(
|
|
2032
|
+
g = g.add(f, s);
|
|
2033
2033
|
break;
|
|
2034
2034
|
case "minus":
|
|
2035
|
-
g = g.subtract(
|
|
2035
|
+
g = g.subtract(f, s);
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
|
-
return g.format(
|
|
2038
|
+
return g.format(m);
|
|
2039
2039
|
}, n = M();
|
|
2040
|
-
|
|
2040
|
+
Q(() => [e.operate, e.format], () => {
|
|
2041
2041
|
n.value = t();
|
|
2042
2042
|
}, {
|
|
2043
2043
|
immediate: !0,
|
|
2044
2044
|
deep: !0
|
|
2045
|
-
}),
|
|
2045
|
+
}), Q(() => e.updateInterval, () => {
|
|
2046
2046
|
c();
|
|
2047
2047
|
}, {
|
|
2048
2048
|
deep: !0
|
|
@@ -2053,18 +2053,18 @@ const Kl = /* @__PURE__ */ te(Jl, [["render", Ql], ["__scopeId", "data-v-4dd9c03
|
|
|
2053
2053
|
}, i = ue(e)("timeChange", () => {
|
|
2054
2054
|
}), c = () => {
|
|
2055
2055
|
a && l();
|
|
2056
|
-
let
|
|
2057
|
-
const { value:
|
|
2058
|
-
|
|
2059
|
-
const
|
|
2056
|
+
let m = 1e3;
|
|
2057
|
+
const { value: p, mode: g } = e.updateInterval || {};
|
|
2058
|
+
p && (m = m * p);
|
|
2059
|
+
const w = {
|
|
2060
2060
|
second: 1,
|
|
2061
2061
|
minute: 60,
|
|
2062
2062
|
hour: 60 * 60,
|
|
2063
2063
|
day: 24 * 60 * 60
|
|
2064
2064
|
};
|
|
2065
|
-
g && (
|
|
2065
|
+
g && (m = m * w[g]), a = setInterval(() => {
|
|
2066
2066
|
n.value = t(), i();
|
|
2067
|
-
},
|
|
2067
|
+
}, m);
|
|
2068
2068
|
};
|
|
2069
2069
|
return me(e, {
|
|
2070
2070
|
timeChange: i
|
|
@@ -2128,46 +2128,46 @@ const ni = /* @__PURE__ */ te(ti, [["render", oi], ["__scopeId", "data-v-b628fca
|
|
|
2128
2128
|
textAlign: "center"
|
|
2129
2129
|
} : {
|
|
2130
2130
|
textAlign: "left"
|
|
2131
|
-
}), a = (
|
|
2131
|
+
}), a = (f, s) => s == null || s === "" ? f : {
|
|
2132
2132
|
money: Pt,
|
|
2133
2133
|
percentage: ut,
|
|
2134
2134
|
contrast: ut
|
|
2135
|
-
}[s](
|
|
2136
|
-
const
|
|
2135
|
+
}[s](f) || "", l = (f, s) => {
|
|
2136
|
+
const u = parseFloat(f + "");
|
|
2137
2137
|
if (s !== "contrast")
|
|
2138
2138
|
return "";
|
|
2139
2139
|
switch (!0) {
|
|
2140
|
-
case
|
|
2140
|
+
case u >= 0:
|
|
2141
2141
|
return "goUp";
|
|
2142
|
-
case
|
|
2142
|
+
case u < 0:
|
|
2143
2143
|
return "goDown";
|
|
2144
2144
|
}
|
|
2145
2145
|
}, r = ke(e), i = M(!1), c = async () => {
|
|
2146
|
-
var
|
|
2146
|
+
var f;
|
|
2147
2147
|
if (e.dataType === "request")
|
|
2148
2148
|
try {
|
|
2149
2149
|
i.value = !0;
|
|
2150
2150
|
const s = await r();
|
|
2151
|
-
o.value = ((
|
|
2151
|
+
o.value = ((f = s == null ? void 0 : s.data) == null ? void 0 : f.data.rows) || [];
|
|
2152
2152
|
} catch (s) {
|
|
2153
2153
|
console.error(s);
|
|
2154
2154
|
} finally {
|
|
2155
2155
|
i.value = !1;
|
|
2156
2156
|
}
|
|
2157
|
-
},
|
|
2157
|
+
}, m = () => {
|
|
2158
2158
|
c();
|
|
2159
2159
|
}, g = ue(e)("click", () => {
|
|
2160
2160
|
});
|
|
2161
2161
|
me(e, {
|
|
2162
|
-
refreshData:
|
|
2162
|
+
refreshData: m
|
|
2163
2163
|
});
|
|
2164
|
-
const { setRequest:
|
|
2164
|
+
const { setRequest: w } = B(ve, {
|
|
2165
2165
|
// @ts-ignore
|
|
2166
2166
|
// eslint-disable-next-line no-void
|
|
2167
|
-
setRequest: ({ id:
|
|
2167
|
+
setRequest: ({ id: f, sortNum: s, requestFn: u }) => {
|
|
2168
2168
|
}
|
|
2169
2169
|
});
|
|
2170
|
-
return
|
|
2170
|
+
return w({
|
|
2171
2171
|
id: e.id,
|
|
2172
2172
|
requestFn: c,
|
|
2173
2173
|
sortNum: e.requestSort
|
|
@@ -2218,9 +2218,9 @@ function hi(e, o, t, n, a, l) {
|
|
|
2218
2218
|
key: i
|
|
2219
2219
|
}, [
|
|
2220
2220
|
e.useRanking ? (E(), O("div", ci)) : Ce("", !0),
|
|
2221
|
-
(E(!0), O(Me, null, De(e.columns, (c,
|
|
2221
|
+
(E(!0), O(Me, null, De(e.columns, (c, m) => (E(), O("div", {
|
|
2222
2222
|
class: "column",
|
|
2223
|
-
key: c.key ||
|
|
2223
|
+
key: c.key || m,
|
|
2224
2224
|
style: U({
|
|
2225
2225
|
color: c.titleColor,
|
|
2226
2226
|
...e.columnStyle
|
|
@@ -2246,22 +2246,22 @@ function hi(e, o, t, n, a, l) {
|
|
|
2246
2246
|
marginBottom: e.itemRowSpan
|
|
2247
2247
|
}),
|
|
2248
2248
|
key: i.id || c,
|
|
2249
|
-
onClick: o[0] || (o[0] = (...
|
|
2249
|
+
onClick: o[0] || (o[0] = (...m) => e.click && e.click(...m))
|
|
2250
2250
|
}, [
|
|
2251
2251
|
e.useRanking ? (E(), O("div", ui, [
|
|
2252
2252
|
fi,
|
|
2253
2253
|
X("div", mi, " Top " + ye(c + 1), 1)
|
|
2254
2254
|
])) : Ce("", !0),
|
|
2255
|
-
(E(!0), O(Me, null, De(e.columns, (
|
|
2256
|
-
class: Lt(["column", e.contrastClass(i[
|
|
2257
|
-
key:
|
|
2255
|
+
(E(!0), O(Me, null, De(e.columns, (m) => (E(), O("div", {
|
|
2256
|
+
class: Lt(["column", e.contrastClass(i[m.key], m.format)]),
|
|
2257
|
+
key: m.key,
|
|
2258
2258
|
style: U({
|
|
2259
|
-
fontSize:
|
|
2260
|
-
color: e.contrastClass(i[
|
|
2261
|
-
fontWeight:
|
|
2259
|
+
fontSize: m.fontSize,
|
|
2260
|
+
color: e.contrastClass(i[m.key], m.format) === "" ? m.color : "",
|
|
2261
|
+
fontWeight: m.fontWeight,
|
|
2262
2262
|
...e.columnStyle
|
|
2263
2263
|
})
|
|
2264
|
-
}, ye((
|
|
2264
|
+
}, ye((m.format != null || m.format !== "") && e.formatFn(i[m.key], m.format)), 7))), 128))
|
|
2265
2265
|
], 4))), 128))
|
|
2266
2266
|
])) : (E(), O("div", gi, " 暂无数据 "))
|
|
2267
2267
|
]),
|
|
@@ -2308,78 +2308,78 @@ const yi = /* @__PURE__ */ te(ii, [["render", hi], ["__scopeId", "data-v-7aa2767
|
|
|
2308
2308
|
const s = e.width;
|
|
2309
2309
|
return parseFloat(s);
|
|
2310
2310
|
}), a = M({});
|
|
2311
|
-
|
|
2312
|
-
(e.dataType === "static" ||
|
|
2311
|
+
Q(() => e.data, () => {
|
|
2312
|
+
(e.dataType === "static" || k(o) === "design") && (a.value = e.data);
|
|
2313
2313
|
}, {
|
|
2314
2314
|
immediate: !0,
|
|
2315
2315
|
deep: !0
|
|
2316
2316
|
});
|
|
2317
2317
|
const l = q(() => {
|
|
2318
|
-
const s =
|
|
2318
|
+
const s = k(a), u = +e.variableDefaultValue;
|
|
2319
2319
|
if (s == null)
|
|
2320
|
-
return isNaN(
|
|
2321
|
-
const
|
|
2322
|
-
let
|
|
2323
|
-
const
|
|
2324
|
-
for (let T = 0; T <
|
|
2325
|
-
const
|
|
2326
|
-
if (
|
|
2327
|
-
|
|
2320
|
+
return isNaN(u) ? 0 : u;
|
|
2321
|
+
const S = e.text.match(/\{.+\}/g) || [];
|
|
2322
|
+
let y;
|
|
2323
|
+
const v = new Set(Object.keys(s));
|
|
2324
|
+
for (let T = 0; T < S.length; T++) {
|
|
2325
|
+
const A = S[T], F = A.slice(1, A.length - 1);
|
|
2326
|
+
if (v.has(F)) {
|
|
2327
|
+
y = s[F];
|
|
2328
2328
|
break;
|
|
2329
2329
|
}
|
|
2330
2330
|
}
|
|
2331
|
-
return typeof
|
|
2331
|
+
return typeof y == "number" ? y = y * 100 : typeof y == "string" && !isNaN(+y) ? y = +y * 100 : isNaN(u) ? y = 0 : y = u * 100, e.decimalFormat && (y = +y.toFixed(2)), y;
|
|
2332
2332
|
}), r = q(() => {
|
|
2333
|
-
var
|
|
2333
|
+
var v;
|
|
2334
2334
|
let s = e.text;
|
|
2335
2335
|
if (s === "")
|
|
2336
|
-
return
|
|
2337
|
-
const
|
|
2338
|
-
for (let T = 0; T <
|
|
2339
|
-
const
|
|
2340
|
-
let
|
|
2341
|
-
const
|
|
2336
|
+
return k(l);
|
|
2337
|
+
const u = e.variableDefaultValue, S = k(a), y = s.match(/\{.+\}/g) || [];
|
|
2338
|
+
for (let T = 0; T < y.length; T++) {
|
|
2339
|
+
const A = y[T];
|
|
2340
|
+
let F = A.slice(1, A.length - 1);
|
|
2341
|
+
const b = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, C = A.match(b);
|
|
2342
2342
|
for (let h = 0; h < (C == null ? void 0 : C.length); h++) {
|
|
2343
|
-
const x = (
|
|
2344
|
-
|
|
2343
|
+
const x = (v = C[h]) == null ? void 0 : v.trim();
|
|
2344
|
+
S[x] != null && (F = F.replace(x, S[x]));
|
|
2345
2345
|
}
|
|
2346
|
-
let d =
|
|
2346
|
+
let d = F;
|
|
2347
2347
|
try {
|
|
2348
|
-
/\(.*\)/g.test(
|
|
2348
|
+
/\(.*\)/g.test(F) && (d = yt(F));
|
|
2349
2349
|
} catch (h) {
|
|
2350
2350
|
console.error(h);
|
|
2351
2351
|
}
|
|
2352
|
-
typeof +d == "number" && !isNaN(+d) ? (d = +d * 100, e.decimalFormat && (d = d.toFixed(2))) : d =
|
|
2352
|
+
typeof +d == "number" && !isNaN(+d) ? (d = +d * 100, e.decimalFormat && (d = d.toFixed(2))) : d = u, s = s.replace(A, d + "");
|
|
2353
2353
|
}
|
|
2354
2354
|
return s;
|
|
2355
|
-
}), i = ke(e), c = M(!1),
|
|
2355
|
+
}), i = ke(e), c = M(!1), m = async () => {
|
|
2356
2356
|
var s;
|
|
2357
2357
|
if (e.dataType === "request")
|
|
2358
2358
|
try {
|
|
2359
2359
|
c.value = !0;
|
|
2360
|
-
const
|
|
2361
|
-
a.value = ((s =
|
|
2362
|
-
} catch (
|
|
2363
|
-
console.error(
|
|
2360
|
+
const u = await i();
|
|
2361
|
+
a.value = ((s = u == null ? void 0 : u.data) == null ? void 0 : s.data) || {};
|
|
2362
|
+
} catch (u) {
|
|
2363
|
+
console.error(u);
|
|
2364
2364
|
} finally {
|
|
2365
2365
|
c.value = !1;
|
|
2366
2366
|
}
|
|
2367
2367
|
};
|
|
2368
2368
|
me(e, {
|
|
2369
2369
|
refreshData: () => {
|
|
2370
|
-
|
|
2370
|
+
m();
|
|
2371
2371
|
}
|
|
2372
2372
|
});
|
|
2373
|
-
const
|
|
2374
|
-
}), { setRequest:
|
|
2373
|
+
const w = ue(e)("click", () => {
|
|
2374
|
+
}), { setRequest: f } = B(ve, {
|
|
2375
2375
|
// @ts-ignore
|
|
2376
2376
|
// eslint-disable-next-line no-void
|
|
2377
|
-
setRequest: ({ id: s, sortNum:
|
|
2377
|
+
setRequest: ({ id: s, sortNum: u, requestFn: S }) => {
|
|
2378
2378
|
}
|
|
2379
2379
|
});
|
|
2380
|
-
return
|
|
2380
|
+
return f({
|
|
2381
2381
|
id: e.id,
|
|
2382
|
-
requestFn:
|
|
2382
|
+
requestFn: m,
|
|
2383
2383
|
sortNum: e.requestSort
|
|
2384
2384
|
}), {
|
|
2385
2385
|
style: t,
|
|
@@ -2387,7 +2387,7 @@ const yi = /* @__PURE__ */ te(ii, [["render", hi], ["__scopeId", "data-v-7aa2767
|
|
|
2387
2387
|
text: r,
|
|
2388
2388
|
myValue: l,
|
|
2389
2389
|
loading: c,
|
|
2390
|
-
click:
|
|
2390
|
+
click: w
|
|
2391
2391
|
};
|
|
2392
2392
|
}
|
|
2393
2393
|
});
|
|
@@ -2410,7 +2410,7 @@ function Ci(e, o, t, n, a, l) {
|
|
|
2410
2410
|
onClick: e.click
|
|
2411
2411
|
}, {
|
|
2412
2412
|
format: Y(() => [
|
|
2413
|
-
e.loading ? (E(),
|
|
2413
|
+
e.loading ? (E(), Fe(r, {
|
|
2414
2414
|
key: 0,
|
|
2415
2415
|
loading: e.loading
|
|
2416
2416
|
}, null, 8, ["loading"])) : (E(), O("div", {
|
|
@@ -2451,19 +2451,19 @@ const Si = /* @__PURE__ */ te(pi, [["render", Ci], ["__scopeId", "data-v-00244f8
|
|
|
2451
2451
|
},
|
|
2452
2452
|
setup(e) {
|
|
2453
2453
|
const o = ie(e), t = M("");
|
|
2454
|
-
|
|
2455
|
-
t.value =
|
|
2454
|
+
Q(() => e.value, (m) => {
|
|
2455
|
+
t.value = m;
|
|
2456
2456
|
}, {
|
|
2457
2457
|
immediate: !0
|
|
2458
2458
|
});
|
|
2459
2459
|
const { getGlobalModel: n, setGlobalModel: a } = B(ge, {
|
|
2460
2460
|
// @ts-ignore
|
|
2461
2461
|
// eslint-disable-next-line no-void
|
|
2462
|
-
getGlobalModel: (
|
|
2462
|
+
getGlobalModel: (m) => {
|
|
2463
2463
|
},
|
|
2464
2464
|
// @ts-ignore
|
|
2465
2465
|
// eslint-disable-next-line no-void
|
|
2466
|
-
setGlobalModel: (
|
|
2466
|
+
setGlobalModel: (m, p) => {
|
|
2467
2467
|
}
|
|
2468
2468
|
});
|
|
2469
2469
|
a(e.id, {
|
|
@@ -2471,9 +2471,9 @@ const Si = /* @__PURE__ */ te(pi, [["render", Ci], ["__scopeId", "data-v-00244f8
|
|
|
2471
2471
|
value: t
|
|
2472
2472
|
});
|
|
2473
2473
|
const l = () => {
|
|
2474
|
-
const
|
|
2475
|
-
a(e.id, { ...
|
|
2476
|
-
}, r = ue(e), i =
|
|
2474
|
+
const m = n(e.id);
|
|
2475
|
+
a(e.id, { ...m, RECORD: t });
|
|
2476
|
+
}, r = ue(e), i = Ft(r("inputChange", () => {
|
|
2477
2477
|
l();
|
|
2478
2478
|
}), 300), c = r("inputBlur", () => {
|
|
2479
2479
|
});
|
|
@@ -2528,16 +2528,16 @@ const _i = /* @__PURE__ */ te(ki, [["render", Ai]]), Ti = oe(_i), Zo = {
|
|
|
2528
2528
|
},
|
|
2529
2529
|
setup(e) {
|
|
2530
2530
|
const o = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M(null);
|
|
2531
|
-
|
|
2531
|
+
Q(() => [e.value, e.useCurrentTime, e.operate], ([c, m, p]) => {
|
|
2532
2532
|
let g = null;
|
|
2533
|
-
if (c ? g = we(de(c)) :
|
|
2534
|
-
const { type:
|
|
2535
|
-
switch (
|
|
2533
|
+
if (c ? g = we(de(c)) : m && (g = we()), p && g) {
|
|
2534
|
+
const { type: w, value: f, mode: s } = p;
|
|
2535
|
+
switch (w) {
|
|
2536
2536
|
case "add":
|
|
2537
|
-
g = g.add(
|
|
2537
|
+
g = g.add(f, s);
|
|
2538
2538
|
break;
|
|
2539
2539
|
case "minus":
|
|
2540
|
-
g = g.subtract(
|
|
2540
|
+
g = g.subtract(f, s);
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
2543
|
n.value = g;
|
|
@@ -2548,7 +2548,7 @@ const _i = /* @__PURE__ */ te(ki, [["render", Ai]]), Ti = oe(_i), Zo = {
|
|
|
2548
2548
|
const { setGlobalModel: a } = B(ge, {
|
|
2549
2549
|
// @ts-ignore
|
|
2550
2550
|
// eslint-disable-next-line no-void
|
|
2551
|
-
setGlobalModel: (c,
|
|
2551
|
+
setGlobalModel: (c, m) => {
|
|
2552
2552
|
}
|
|
2553
2553
|
});
|
|
2554
2554
|
a(e.id, {
|
|
@@ -2558,7 +2558,7 @@ const _i = /* @__PURE__ */ te(ki, [["render", Ai]]), Ti = oe(_i), Zo = {
|
|
|
2558
2558
|
});
|
|
2559
2559
|
const r = ue(e)("dateChange", () => {
|
|
2560
2560
|
}), i = () => {
|
|
2561
|
-
|
|
2561
|
+
k(n) && r();
|
|
2562
2562
|
};
|
|
2563
2563
|
return me(e, {
|
|
2564
2564
|
dateChange: r
|
|
@@ -2608,7 +2608,7 @@ const Ei = /* @__PURE__ */ te(Ii, [["render", Mi]]), Di = oe(Ei), Yo = {
|
|
|
2608
2608
|
operate: null,
|
|
2609
2609
|
limitStartTime: "",
|
|
2610
2610
|
limitEndTime: ""
|
|
2611
|
-
}, Qo = le(Yo), Oi = ["dateChange"],
|
|
2611
|
+
}, Qo = le(Yo), Oi = ["dateChange"], Fi = ee({
|
|
2612
2612
|
name: "EcanRangePicker",
|
|
2613
2613
|
components: {
|
|
2614
2614
|
ARangePicker: Yn
|
|
@@ -2618,69 +2618,69 @@ const Ei = /* @__PURE__ */ te(Ii, [["render", Mi]]), Di = oe(Ei), Yo = {
|
|
|
2618
2618
|
},
|
|
2619
2619
|
setup(e) {
|
|
2620
2620
|
const o = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M([null, null]);
|
|
2621
|
-
|
|
2622
|
-
let
|
|
2623
|
-
if (
|
|
2624
|
-
const { type: d, value: h, mode: x } =
|
|
2621
|
+
Q(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([S, y, v, T, A, F]) => {
|
|
2622
|
+
let b = null, C = null;
|
|
2623
|
+
if (v && (b = we().subtract(T, A), C = we()), S && (b = we(de(S))), y && (C = we(de(y))), F) {
|
|
2624
|
+
const { type: d, value: h, mode: x } = F;
|
|
2625
2625
|
switch (d) {
|
|
2626
2626
|
case "add":
|
|
2627
|
-
|
|
2627
|
+
b = b && b.add(h, x), C = C && C.add(h, x);
|
|
2628
2628
|
break;
|
|
2629
2629
|
case "minus":
|
|
2630
|
-
|
|
2630
|
+
b = b && b.subtract(h, x), C = C && C.subtract(h, x);
|
|
2631
2631
|
}
|
|
2632
2632
|
}
|
|
2633
|
-
n.value = [
|
|
2633
|
+
n.value = [b, C];
|
|
2634
2634
|
}, {
|
|
2635
2635
|
immediate: !0
|
|
2636
2636
|
});
|
|
2637
|
-
let a =
|
|
2638
|
-
const r = (
|
|
2639
|
-
Array.isArray(
|
|
2640
|
-
}, i = (
|
|
2641
|
-
let
|
|
2642
|
-
const
|
|
2637
|
+
let a = k(n)[0], l = k(n)[1];
|
|
2638
|
+
const r = (S) => {
|
|
2639
|
+
Array.isArray(S) ? (a = S[0], l = S[1]) : (a = null, l = null);
|
|
2640
|
+
}, i = (S) => {
|
|
2641
|
+
let y = !1, { limitStartTime: v, limitEndTime: T } = e;
|
|
2642
|
+
const A = {
|
|
2643
2643
|
startTime: `${a || ""}`,
|
|
2644
2644
|
endTime: `${l || ""}`
|
|
2645
2645
|
};
|
|
2646
|
-
return
|
|
2646
|
+
return v = de(v, { codeData: A }), T = de(T, { codeData: A }), v && T ? y = !(we(v) < S && S < we(T)) : v ? y = we(v) > S : T && (y = we(T) < S), y;
|
|
2647
2647
|
}, { setGlobalModel: c } = B(ge, {
|
|
2648
2648
|
// @ts-ignore
|
|
2649
2649
|
// eslint-disable-next-line no-void
|
|
2650
|
-
setGlobalModel: (
|
|
2650
|
+
setGlobalModel: (S, y) => {
|
|
2651
2651
|
}
|
|
2652
|
-
}),
|
|
2652
|
+
}), m = q(() => Array.isArray(k(n)) ? k(n)[0] : null), p = q(() => Array.isArray(k(n)) ? k(n)[1] : null);
|
|
2653
2653
|
c(e.id, {
|
|
2654
2654
|
type: e.type,
|
|
2655
2655
|
format: e.format,
|
|
2656
|
-
startTime:
|
|
2657
|
-
endTime:
|
|
2656
|
+
startTime: m,
|
|
2657
|
+
endTime: p
|
|
2658
2658
|
});
|
|
2659
2659
|
const g = ue(e);
|
|
2660
|
-
let
|
|
2661
|
-
const
|
|
2662
|
-
}), s = (
|
|
2663
|
-
const
|
|
2664
|
-
|
|
2665
|
-
},
|
|
2666
|
-
|
|
2660
|
+
let w = !1;
|
|
2661
|
+
const f = g("dateChange", () => {
|
|
2662
|
+
}), s = (S) => {
|
|
2663
|
+
const y = k(n), v = y && y[0] && y[1];
|
|
2664
|
+
S === !1 && w === !0 && v && (f(), w = !1);
|
|
2665
|
+
}, u = () => {
|
|
2666
|
+
w = !0;
|
|
2667
2667
|
};
|
|
2668
2668
|
return me(e, {
|
|
2669
|
-
dateChange:
|
|
2669
|
+
dateChange: f
|
|
2670
2670
|
}), {
|
|
2671
2671
|
style: o,
|
|
2672
2672
|
getPopupContainer: t,
|
|
2673
2673
|
locale: Co,
|
|
2674
|
-
dateChange:
|
|
2674
|
+
dateChange: f,
|
|
2675
2675
|
myValue: n,
|
|
2676
2676
|
disabledDate: i,
|
|
2677
2677
|
calendarChange: r,
|
|
2678
2678
|
openChange: s,
|
|
2679
|
-
change:
|
|
2679
|
+
change: u
|
|
2680
2680
|
};
|
|
2681
2681
|
}
|
|
2682
2682
|
});
|
|
2683
|
-
function
|
|
2683
|
+
function Ri(e, o, t, n, a, l) {
|
|
2684
2684
|
const r = V("a-range-picker");
|
|
2685
2685
|
return E(), O("div", {
|
|
2686
2686
|
class: "ecan-range-picker",
|
|
@@ -2702,7 +2702,7 @@ function Fi(e, o, t, n, a, l) {
|
|
|
2702
2702
|
}, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "disabled-date", "onChange", "onCalendarChange", "onOpenChange"])
|
|
2703
2703
|
], 4);
|
|
2704
2704
|
}
|
|
2705
|
-
const $i = /* @__PURE__ */ te(
|
|
2705
|
+
const $i = /* @__PURE__ */ te(Fi, [["render", Ri], ["__scopeId", "data-v-5a46a4a9"]]), zi = oe($i), Ko = {
|
|
2706
2706
|
...re,
|
|
2707
2707
|
width: "200px",
|
|
2708
2708
|
name: "按钮",
|
|
@@ -2726,14 +2726,14 @@ const $i = /* @__PURE__ */ te(Ri, [["render", Fi], ["__scopeId", "data-v-5a46a4a
|
|
|
2726
2726
|
},
|
|
2727
2727
|
setup(e) {
|
|
2728
2728
|
const o = ie(e), n = ue(e)("click", () => {
|
|
2729
|
-
const i =
|
|
2729
|
+
const i = k(l);
|
|
2730
2730
|
i && e.target === "event" && window.parent.postMessage({
|
|
2731
2731
|
type: "openPage",
|
|
2732
2732
|
url: i
|
|
2733
2733
|
}, "*");
|
|
2734
2734
|
}), a = q(() => de(e.text)), l = q(() => de(e.href) || null), r = q(() => {
|
|
2735
2735
|
const i = e.target;
|
|
2736
|
-
if (!(i === "event" ||
|
|
2736
|
+
if (!(i === "event" || k(l) == null))
|
|
2737
2737
|
return {
|
|
2738
2738
|
self: "_self",
|
|
2739
2739
|
blank: "_blank"
|
|
@@ -2800,46 +2800,46 @@ const Ui = /* @__PURE__ */ te(Pi, [["render", Bi]]), Gi = oe(Ui), en = {
|
|
|
2800
2800
|
...tn
|
|
2801
2801
|
},
|
|
2802
2802
|
setup(e) {
|
|
2803
|
-
const o = ie(e), t = M([]), n = M([]), a = (
|
|
2804
|
-
const
|
|
2803
|
+
const o = ie(e), t = M([]), n = M([]), a = (w) => {
|
|
2804
|
+
const f = e.value;
|
|
2805
2805
|
let s = [];
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
}), typeof
|
|
2806
|
+
w.forEach((u) => {
|
|
2807
|
+
u.checked && s.push(u.value);
|
|
2808
|
+
}), typeof f == "string" && f !== "" ? s = s.concat(f.split(",")) : Array.isArray(f) && (s = s.concat(f)), t.value = w, n.value = s;
|
|
2809
2809
|
};
|
|
2810
|
-
|
|
2811
|
-
a(
|
|
2810
|
+
Q(() => [e.data, e.value], ([w]) => {
|
|
2811
|
+
a(w);
|
|
2812
2812
|
}, {
|
|
2813
2813
|
immediate: !0,
|
|
2814
2814
|
deep: !0
|
|
2815
2815
|
});
|
|
2816
2816
|
const l = ke(e), r = async () => {
|
|
2817
|
-
var s,
|
|
2817
|
+
var s, u;
|
|
2818
2818
|
if (e.dataType !== "request")
|
|
2819
2819
|
return;
|
|
2820
|
-
const
|
|
2821
|
-
a(
|
|
2820
|
+
const w = await l(), f = ((u = (s = w == null ? void 0 : w.data) == null ? void 0 : s.data) == null ? void 0 : u.rows) || [];
|
|
2821
|
+
a(f);
|
|
2822
2822
|
}, { getGlobalModel: i, setGlobalModel: c } = B(ge, {
|
|
2823
2823
|
// @ts-ignore
|
|
2824
2824
|
// eslint-disable-next-line no-void
|
|
2825
|
-
getGlobalModel: (
|
|
2825
|
+
getGlobalModel: (w) => {
|
|
2826
2826
|
},
|
|
2827
2827
|
// @ts-ignore
|
|
2828
2828
|
// eslint-disable-next-line no-void
|
|
2829
|
-
setGlobalModel: (
|
|
2829
|
+
setGlobalModel: (w, f) => {
|
|
2830
2830
|
}
|
|
2831
2831
|
});
|
|
2832
2832
|
c(e.id, {
|
|
2833
2833
|
type: e.type,
|
|
2834
2834
|
value: n
|
|
2835
2835
|
});
|
|
2836
|
-
const
|
|
2837
|
-
const
|
|
2838
|
-
c(e.id, { ...
|
|
2836
|
+
const p = ue(e)("checkboxChange", () => {
|
|
2837
|
+
const w = i(e.id);
|
|
2838
|
+
c(e.id, { ...w, RECORD: n });
|
|
2839
2839
|
}), { setRequest: g } = B(ve, {
|
|
2840
2840
|
// @ts-ignore
|
|
2841
2841
|
// eslint-disable-next-line no-void
|
|
2842
|
-
setRequest: ({ id:
|
|
2842
|
+
setRequest: ({ id: w, sortNum: f, requestFn: s }) => {
|
|
2843
2843
|
}
|
|
2844
2844
|
});
|
|
2845
2845
|
return g({
|
|
@@ -2850,7 +2850,7 @@ const Ui = /* @__PURE__ */ te(Pi, [["render", Bi]]), Gi = oe(Ui), en = {
|
|
|
2850
2850
|
myOption: t,
|
|
2851
2851
|
style: o,
|
|
2852
2852
|
myValue: n,
|
|
2853
|
-
checkboxChange:
|
|
2853
|
+
checkboxChange: p
|
|
2854
2854
|
};
|
|
2855
2855
|
}
|
|
2856
2856
|
});
|
|
@@ -2883,9 +2883,10 @@ const Vi = /* @__PURE__ */ te(ji, [["render", Wi]]), Hi = oe(Vi), on = {
|
|
|
2883
2883
|
],
|
|
2884
2884
|
value: void 0,
|
|
2885
2885
|
dataFieldNames: { label: "label", value: "value" },
|
|
2886
|
-
maxTagCount:
|
|
2886
|
+
maxTagCount: 3,
|
|
2887
2887
|
autoClearSearchValue: !0,
|
|
2888
|
-
placeholder: ""
|
|
2888
|
+
placeholder: "请选择",
|
|
2889
|
+
selectFirstOption: !1
|
|
2889
2890
|
}, nn = le(on), Zi = ["selectChange", "refreshData"], Ji = ee({
|
|
2890
2891
|
name: "EcanSelect",
|
|
2891
2892
|
components: {
|
|
@@ -2895,63 +2896,70 @@ const Vi = /* @__PURE__ */ te(ji, [["render", Wi]]), Hi = oe(Vi), on = {
|
|
|
2895
2896
|
...nn
|
|
2896
2897
|
},
|
|
2897
2898
|
setup(e) {
|
|
2898
|
-
const o = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, n = ke(e), a = M(e.data
|
|
2899
|
-
|
|
2899
|
+
const o = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, n = ke(e), a = M(e.data || []), l = M();
|
|
2900
|
+
Q(() => [e.value, e.mode, e.selectFirstOption], () => {
|
|
2901
|
+
const { mode: u, selectFirstOption: S, value: y } = e;
|
|
2902
|
+
u === "multiple" || u === "tags" || u === "combobox" ? y ? l.value = y.split(",") : S && (l.value = [k(a)[0]]) : y ? l.value = y : S && (l.value = k(a)[0]);
|
|
2903
|
+
}, {
|
|
2904
|
+
immediate: !0
|
|
2905
|
+
});
|
|
2906
|
+
const r = e.dataFieldNames, i = (u, S) => {
|
|
2907
|
+
const y = r.label, v = r.value;
|
|
2900
2908
|
let T;
|
|
2901
|
-
const
|
|
2902
|
-
return
|
|
2903
|
-
}, c = M(!1),
|
|
2904
|
-
var
|
|
2909
|
+
const A = S[y], F = S[v];
|
|
2910
|
+
return A != null ? T = A : F != null && (T = F), (T == null ? void 0 : T.toLowerCase().indexOf(u == null ? void 0 : u.toLowerCase())) >= 0;
|
|
2911
|
+
}, c = M(!1), m = async () => {
|
|
2912
|
+
var u, S;
|
|
2905
2913
|
if (e.dataType === "request") {
|
|
2906
2914
|
c.value = !0;
|
|
2907
2915
|
try {
|
|
2908
|
-
const
|
|
2909
|
-
a.value = ((
|
|
2910
|
-
const
|
|
2911
|
-
e.value === "" &&
|
|
2912
|
-
} catch (
|
|
2913
|
-
console.error(
|
|
2916
|
+
const y = await n();
|
|
2917
|
+
a.value = ((S = (u = y == null ? void 0 : y.data) == null ? void 0 : u.data) == null ? void 0 : S.rows) || [];
|
|
2918
|
+
const v = k(a)[0];
|
|
2919
|
+
e.value === "" && v != null && (l.value = v[r.value]);
|
|
2920
|
+
} catch (y) {
|
|
2921
|
+
console.error(y);
|
|
2914
2922
|
} finally {
|
|
2915
2923
|
c.value = !1;
|
|
2916
2924
|
}
|
|
2917
2925
|
}
|
|
2918
|
-
}, { getGlobalModel:
|
|
2926
|
+
}, { getGlobalModel: p, setGlobalModel: g } = B(ge, {
|
|
2919
2927
|
// @ts-ignore
|
|
2920
2928
|
// eslint-disable-next-line no-void
|
|
2921
|
-
getGlobalModel: (
|
|
2929
|
+
getGlobalModel: (u) => {
|
|
2922
2930
|
},
|
|
2923
2931
|
// @ts-ignore
|
|
2924
2932
|
// eslint-disable-next-line no-void
|
|
2925
|
-
setGlobalModel: (
|
|
2933
|
+
setGlobalModel: (u, S) => {
|
|
2926
2934
|
}
|
|
2927
2935
|
});
|
|
2928
2936
|
g(e.id, {
|
|
2929
2937
|
type: e.type,
|
|
2930
2938
|
value: l
|
|
2931
2939
|
});
|
|
2932
|
-
const
|
|
2933
|
-
const
|
|
2934
|
-
g(
|
|
2940
|
+
const f = ue(e)("selectChange", () => {
|
|
2941
|
+
const u = e.id, S = p(u);
|
|
2942
|
+
g(u, { ...S, RECORD: l });
|
|
2935
2943
|
});
|
|
2936
2944
|
me(e, {
|
|
2937
|
-
selectChange:
|
|
2938
|
-
refreshData:
|
|
2945
|
+
selectChange: f,
|
|
2946
|
+
refreshData: m
|
|
2939
2947
|
});
|
|
2940
2948
|
const { setRequest: s } = B(ve, {
|
|
2941
2949
|
// @ts-ignore
|
|
2942
2950
|
// eslint-disable-next-line no-void
|
|
2943
|
-
setRequest: ({ id:
|
|
2951
|
+
setRequest: ({ id: u, sortNum: S, requestFn: y }) => {
|
|
2944
2952
|
}
|
|
2945
2953
|
});
|
|
2946
2954
|
return s({
|
|
2947
2955
|
id: e.id,
|
|
2948
|
-
requestFn:
|
|
2956
|
+
requestFn: m,
|
|
2949
2957
|
sortNum: e.requestSort
|
|
2950
2958
|
}), {
|
|
2951
2959
|
style: o,
|
|
2952
2960
|
getPopupContainer: t,
|
|
2953
2961
|
myValue: l,
|
|
2954
|
-
selectChange:
|
|
2962
|
+
selectChange: f,
|
|
2955
2963
|
options: a,
|
|
2956
2964
|
filterOption: i,
|
|
2957
2965
|
loading: c
|
|
@@ -2983,7 +2991,7 @@ function Yi(e, o, t, n, a, l) {
|
|
|
2983
2991
|
}, null, 8, ["value", "placeholder", "options", "mode", "getPopupContainer", "fieldNames", "maxTagCount", "filterOption", "loading", "autoClearSearchValue", "onChange"])
|
|
2984
2992
|
], 4);
|
|
2985
2993
|
}
|
|
2986
|
-
const Qi = /* @__PURE__ */ te(Ji, [["render", Yi], ["__scopeId", "data-v-
|
|
2994
|
+
const Qi = /* @__PURE__ */ te(Ji, [["render", Yi], ["__scopeId", "data-v-c0b8fe0f"]]), Ki = oe(Qi), an = {
|
|
2987
2995
|
...re,
|
|
2988
2996
|
name: "树形下拉框选择器",
|
|
2989
2997
|
keyName: "树形下拉框选择器",
|
|
@@ -3011,10 +3019,11 @@ const Qi = /* @__PURE__ */ te(Ji, [["render", Yi], ["__scopeId", "data-v-c945c19
|
|
|
3011
3019
|
],
|
|
3012
3020
|
value: "",
|
|
3013
3021
|
dataFieldNames: { label: "label", value: "value", children: "children" },
|
|
3014
|
-
maxTagCount:
|
|
3015
|
-
placeholder: "",
|
|
3022
|
+
maxTagCount: 3,
|
|
3023
|
+
placeholder: "请选择",
|
|
3016
3024
|
treeCheckable: !1,
|
|
3017
|
-
treeCheckStrictly: !1
|
|
3025
|
+
treeCheckStrictly: !1,
|
|
3026
|
+
selectFirstOption: !1
|
|
3018
3027
|
}, ln = le(an), Xi = ["selectChange", "refreshData"], er = {
|
|
3019
3028
|
name: "EcanTreeSelect",
|
|
3020
3029
|
components: {
|
|
@@ -3024,61 +3033,62 @@ const Qi = /* @__PURE__ */ te(Ji, [["render", Yi], ["__scopeId", "data-v-c945c19
|
|
|
3024
3033
|
...ln
|
|
3025
3034
|
},
|
|
3026
3035
|
setup(e) {
|
|
3027
|
-
const o = ie(e), t = M(e.data), n = (
|
|
3028
|
-
const
|
|
3029
|
-
let
|
|
3030
|
-
const T = s[
|
|
3031
|
-
return T != null ?
|
|
3036
|
+
const o = ie(e), t = M(e.data), n = (f, s) => {
|
|
3037
|
+
const u = e.dataFieldNames, S = u.label, y = u.value;
|
|
3038
|
+
let v;
|
|
3039
|
+
const T = s[S], A = s[y];
|
|
3040
|
+
return T != null ? v = T : A != null && (v = A), (v == null ? void 0 : v.toLowerCase().indexOf(f == null ? void 0 : f.toLowerCase())) >= 0;
|
|
3032
3041
|
}, a = M();
|
|
3033
|
-
|
|
3034
|
-
|
|
3042
|
+
Q(() => [e.multiple, e.value, e.treeCheckable, e.selectFirstOption], () => {
|
|
3043
|
+
const { multiple: f, value: s, selectFirstOption: u } = e;
|
|
3044
|
+
f ? s ? a.value = s.split(",") : u && (a.value = [k(t)[0]]) : s ? a.value = s : u && (a.value = k(t)[0]);
|
|
3035
3045
|
}, {
|
|
3036
3046
|
immediate: !0
|
|
3037
3047
|
});
|
|
3038
3048
|
const l = M(!1), r = ke(e), i = async () => {
|
|
3039
|
-
var
|
|
3049
|
+
var f, s;
|
|
3040
3050
|
if (e.dataType === "request") {
|
|
3041
3051
|
l.value = !0;
|
|
3042
3052
|
try {
|
|
3043
|
-
const
|
|
3044
|
-
t.value = ((s = (
|
|
3045
|
-
const
|
|
3046
|
-
e.value === "" &&
|
|
3047
|
-
} catch (
|
|
3048
|
-
console.error(
|
|
3053
|
+
const u = await r();
|
|
3054
|
+
t.value = ((s = (f = u == null ? void 0 : u.data) == null ? void 0 : f.data) == null ? void 0 : s.rows) || [];
|
|
3055
|
+
const S = k(t)[0];
|
|
3056
|
+
e.value === "" && S != null && (a.value = S[e.dataFieldNames.value]);
|
|
3057
|
+
} catch (u) {
|
|
3058
|
+
console.error(u);
|
|
3049
3059
|
} finally {
|
|
3050
3060
|
l.value = !1;
|
|
3051
3061
|
}
|
|
3052
3062
|
}
|
|
3053
|
-
}, { getGlobalModel: c, setGlobalModel:
|
|
3063
|
+
}, { getGlobalModel: c, setGlobalModel: m } = B(ge, {
|
|
3054
3064
|
// @ts-ignore
|
|
3055
3065
|
// eslint-disable-next-line no-void
|
|
3056
|
-
getGlobalModel: (
|
|
3066
|
+
getGlobalModel: (f) => {
|
|
3057
3067
|
},
|
|
3058
3068
|
// @ts-ignore
|
|
3059
3069
|
// eslint-disable-next-line no-void
|
|
3060
|
-
setGlobalModel: (
|
|
3070
|
+
setGlobalModel: (f, s) => {
|
|
3061
3071
|
}
|
|
3062
3072
|
});
|
|
3063
|
-
|
|
3073
|
+
m(e.id, {
|
|
3064
3074
|
type: e.type,
|
|
3065
3075
|
value: a
|
|
3066
3076
|
});
|
|
3067
3077
|
const g = ue(e)("selectChange", () => {
|
|
3068
|
-
const
|
|
3069
|
-
f
|
|
3078
|
+
const f = e.id, s = c(f);
|
|
3079
|
+
m(f, { ...s, RECORD: a });
|
|
3070
3080
|
});
|
|
3071
3081
|
me(e, {
|
|
3072
3082
|
selectChange: g,
|
|
3073
3083
|
refreshData: i
|
|
3074
3084
|
});
|
|
3075
|
-
const { setRequest:
|
|
3085
|
+
const { setRequest: w } = B(ve, {
|
|
3076
3086
|
// @ts-ignore
|
|
3077
3087
|
// eslint-disable-next-line no-void
|
|
3078
|
-
setRequest: ({ id:
|
|
3088
|
+
setRequest: ({ id: f, sortNum: s, requestFn: u }) => {
|
|
3079
3089
|
}
|
|
3080
3090
|
});
|
|
3081
|
-
return
|
|
3091
|
+
return w({
|
|
3082
3092
|
id: e.id,
|
|
3083
3093
|
requestFn: i,
|
|
3084
3094
|
sortNum: e.reque
|
|
@@ -3095,6 +3105,7 @@ const Qi = /* @__PURE__ */ te(Ji, [["render", Yi], ["__scopeId", "data-v-c945c19
|
|
|
3095
3105
|
function tr(e, o, t, n, a, l) {
|
|
3096
3106
|
const r = V("a-tree-select");
|
|
3097
3107
|
return E(), O("div", {
|
|
3108
|
+
class: "ecan-tree-select",
|
|
3098
3109
|
style: U(n.style)
|
|
3099
3110
|
}, [
|
|
3100
3111
|
G(r, {
|
|
@@ -3110,11 +3121,12 @@ function tr(e, o, t, n, a, l) {
|
|
|
3110
3121
|
multiple: e.multiple,
|
|
3111
3122
|
treeCheckable: e.treeCheckable,
|
|
3112
3123
|
filterTreeNode: n.filterTreeNode,
|
|
3124
|
+
placeholder: e.placeholder,
|
|
3113
3125
|
onChange: n.selectChange
|
|
3114
|
-
}, null, 8, ["value", "loading", "fieldNames", "treeData", "maxTagCount", "multiple", "treeCheckable", "filterTreeNode", "onChange"])
|
|
3126
|
+
}, null, 8, ["value", "loading", "fieldNames", "treeData", "maxTagCount", "multiple", "treeCheckable", "filterTreeNode", "placeholder", "onChange"])
|
|
3115
3127
|
], 4);
|
|
3116
3128
|
}
|
|
3117
|
-
const or = /* @__PURE__ */ te(er, [["render", tr], ["__scopeId", "data-v-
|
|
3129
|
+
const or = /* @__PURE__ */ te(er, [["render", tr], ["__scopeId", "data-v-37236421"]]), nr = oe(or), rn = {
|
|
3118
3130
|
...re,
|
|
3119
3131
|
id: "",
|
|
3120
3132
|
name: "饼图",
|
|
@@ -3181,7 +3193,7 @@ const or = /* @__PURE__ */ te(er, [["render", tr], ["__scopeId", "data-v-d53a600
|
|
|
3181
3193
|
toolboxInfoText: "当前无说明信息"
|
|
3182
3194
|
}, sn = le(rn), ar = ["click", "refreshData", "resetRecord"], at = async (e) => {
|
|
3183
3195
|
var c;
|
|
3184
|
-
const o = await
|
|
3196
|
+
const o = await Re.post(e, {}, {
|
|
3185
3197
|
responseType: "blob"
|
|
3186
3198
|
}), { data: t, headers: n } = o, a = n["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), l = new Blob([t]), r = document.createElement("a"), i = window.URL.createObjectURL(l);
|
|
3187
3199
|
r.href = i, r.download = decodeURI(a), r.style.display = "none", document.body.appendChild(r), r.click(), (c = r.parentNode) == null || c.removeChild(r), window.URL.revokeObjectURL(i);
|
|
@@ -3191,7 +3203,7 @@ qe([
|
|
|
3191
3203
|
la,
|
|
3192
3204
|
Xe,
|
|
3193
3205
|
et,
|
|
3194
|
-
|
|
3206
|
+
Rt,
|
|
3195
3207
|
tt
|
|
3196
3208
|
]);
|
|
3197
3209
|
const lr = ee({
|
|
@@ -3208,10 +3220,10 @@ const lr = ee({
|
|
|
3208
3220
|
const t = ie(e), n = M([]), a = M(!1), l = () => {
|
|
3209
3221
|
a.value = !1;
|
|
3210
3222
|
}, r = q(() => {
|
|
3211
|
-
let { data:
|
|
3223
|
+
let { data: b = [] } = k(n)[0] || {};
|
|
3212
3224
|
if (Array.isArray(e.colors)) {
|
|
3213
3225
|
const C = e.isUseLabelColors, d = e.colors;
|
|
3214
|
-
|
|
3226
|
+
b = b.map((h, x) => ({
|
|
3215
3227
|
label: C ? { color: d[x] } : {},
|
|
3216
3228
|
...h
|
|
3217
3229
|
}));
|
|
@@ -3309,7 +3321,7 @@ const lr = ee({
|
|
|
3309
3321
|
color: e.colors,
|
|
3310
3322
|
series: [
|
|
3311
3323
|
{
|
|
3312
|
-
data:
|
|
3324
|
+
data: b,
|
|
3313
3325
|
type: "pie",
|
|
3314
3326
|
radius: [e.innerRadius, e.outerRadius],
|
|
3315
3327
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3347,49 +3359,49 @@ const lr = ee({
|
|
|
3347
3359
|
}), { getGlobalModel: i, setGlobalModel: c } = B(ge, {
|
|
3348
3360
|
// @ts-ignore
|
|
3349
3361
|
// eslint-disable-next-line no-void
|
|
3350
|
-
getGlobalModel: (
|
|
3362
|
+
getGlobalModel: (b) => {
|
|
3351
3363
|
},
|
|
3352
3364
|
// @ts-ignore
|
|
3353
3365
|
// eslint-disable-next-line no-void
|
|
3354
|
-
setGlobalModel: (
|
|
3366
|
+
setGlobalModel: (b, C) => {
|
|
3355
3367
|
}
|
|
3356
|
-
}), { pageMode:
|
|
3368
|
+
}), { pageMode: m } = B(be, {
|
|
3357
3369
|
pageMode: "normal"
|
|
3358
|
-
}),
|
|
3359
|
-
const { dataset: d } = Ke(
|
|
3370
|
+
}), p = (b = [], C) => {
|
|
3371
|
+
const { dataset: d } = Ke(b, C);
|
|
3360
3372
|
n.value = d;
|
|
3361
|
-
}, g = (
|
|
3362
|
-
const d = Ke(
|
|
3373
|
+
}, g = (b = [], C) => {
|
|
3374
|
+
const d = Ke(b, C);
|
|
3363
3375
|
n.value = d.dataset;
|
|
3364
3376
|
};
|
|
3365
|
-
|
|
3366
|
-
(e.dataType === "static" ||
|
|
3377
|
+
Q(() => e.data, (b) => {
|
|
3378
|
+
(e.dataType === "static" || k(m) === "design") && p(b);
|
|
3367
3379
|
}, {
|
|
3368
3380
|
immediate: !0,
|
|
3369
3381
|
deep: !0
|
|
3370
3382
|
});
|
|
3371
|
-
const
|
|
3372
|
-
var
|
|
3383
|
+
const w = M(!1), f = ke(e), s = async () => {
|
|
3384
|
+
var b, C;
|
|
3373
3385
|
if (e.dataType === "request")
|
|
3374
3386
|
try {
|
|
3375
|
-
|
|
3376
|
-
const d = await
|
|
3377
|
-
|
|
3387
|
+
w.value = !0;
|
|
3388
|
+
const d = await f();
|
|
3389
|
+
p((C = (b = d == null ? void 0 : d.data) == null ? void 0 : b.data) == null ? void 0 : C.rows, e.valueTypeDataFieldNames);
|
|
3378
3390
|
} catch (d) {
|
|
3379
3391
|
console.error(d);
|
|
3380
3392
|
} finally {
|
|
3381
|
-
|
|
3393
|
+
w.value = !1;
|
|
3382
3394
|
}
|
|
3383
|
-
},
|
|
3395
|
+
}, S = ue(e)("click", (b) => {
|
|
3384
3396
|
const C = i(e.id);
|
|
3385
|
-
c(e.id, { ...C, RECORD:
|
|
3386
|
-
}),
|
|
3387
|
-
var
|
|
3397
|
+
c(e.id, { ...C, RECORD: b == null ? void 0 : b.data });
|
|
3398
|
+
}), y = nt(e), v = async () => {
|
|
3399
|
+
var b;
|
|
3388
3400
|
try {
|
|
3389
|
-
|
|
3390
|
-
const C = await
|
|
3401
|
+
w.value = !0;
|
|
3402
|
+
const C = await y(), { data: d } = C.data || {};
|
|
3391
3403
|
if (d) {
|
|
3392
|
-
const { columns: h = [], rows: x = [] } = ((
|
|
3404
|
+
const { columns: h = [], rows: x = [] } = ((b = C == null ? void 0 : C.data) == null ? void 0 : b.data) ?? {};
|
|
3393
3405
|
let $ = [];
|
|
3394
3406
|
if (h.length > 0) {
|
|
3395
3407
|
const L = h[0], _ = h[1];
|
|
@@ -3403,12 +3415,12 @@ const lr = ee({
|
|
|
3403
3415
|
} catch (C) {
|
|
3404
3416
|
console.error(C);
|
|
3405
3417
|
} finally {
|
|
3406
|
-
|
|
3418
|
+
w.value = !1;
|
|
3407
3419
|
}
|
|
3408
3420
|
}, T = () => {
|
|
3409
3421
|
switch (e.dataType) {
|
|
3410
3422
|
case "indicator":
|
|
3411
|
-
|
|
3423
|
+
v();
|
|
3412
3424
|
break;
|
|
3413
3425
|
case "request":
|
|
3414
3426
|
s();
|
|
@@ -3417,27 +3429,27 @@ const lr = ee({
|
|
|
3417
3429
|
};
|
|
3418
3430
|
me(e, {
|
|
3419
3431
|
resetRecord: () => {
|
|
3420
|
-
const
|
|
3421
|
-
c(
|
|
3432
|
+
const b = e.id, C = i(b);
|
|
3433
|
+
c(b, { ...C, RECORD: "" });
|
|
3422
3434
|
},
|
|
3423
3435
|
refreshData: T,
|
|
3424
|
-
click:
|
|
3436
|
+
click: S
|
|
3425
3437
|
}), o({
|
|
3426
3438
|
refreshData: T
|
|
3427
3439
|
});
|
|
3428
|
-
const { setRequest:
|
|
3429
|
-
setRequest: (
|
|
3440
|
+
const { setRequest: F } = B(ve, {
|
|
3441
|
+
setRequest: (b) => {
|
|
3430
3442
|
}
|
|
3431
3443
|
});
|
|
3432
|
-
return typeof
|
|
3444
|
+
return typeof F == "function" && F({
|
|
3433
3445
|
id: e.id,
|
|
3434
3446
|
requestFn: T,
|
|
3435
3447
|
sortNum: e.requestSort
|
|
3436
3448
|
}), {
|
|
3437
3449
|
option: r,
|
|
3438
3450
|
style: t,
|
|
3439
|
-
click:
|
|
3440
|
-
loading:
|
|
3451
|
+
click: S,
|
|
3452
|
+
loading: w,
|
|
3441
3453
|
visible: a,
|
|
3442
3454
|
hideModal: l
|
|
3443
3455
|
};
|
|
@@ -3632,7 +3644,7 @@ const dr = ee({
|
|
|
3632
3644
|
let $ = "", L = e.tooltipFormatter;
|
|
3633
3645
|
L === "" && (L = "{marker} {a} {c}");
|
|
3634
3646
|
for (let _ = 0; _ < x; _++) {
|
|
3635
|
-
const { marker: J, seriesName: H, name: z, value: N, data:
|
|
3647
|
+
const { marker: J, seriesName: H, name: z, value: N, data: R } = h[_] || {};
|
|
3636
3648
|
_ === 0 && ($ += `${z}<br/>`), $ += de(
|
|
3637
3649
|
L,
|
|
3638
3650
|
{
|
|
@@ -3643,7 +3655,7 @@ const dr = ee({
|
|
|
3643
3655
|
a: H,
|
|
3644
3656
|
b: z,
|
|
3645
3657
|
c: N,
|
|
3646
|
-
...
|
|
3658
|
+
...R
|
|
3647
3659
|
}
|
|
3648
3660
|
},
|
|
3649
3661
|
{
|
|
@@ -3657,7 +3669,7 @@ const dr = ee({
|
|
|
3657
3669
|
},
|
|
3658
3670
|
xAxis: {
|
|
3659
3671
|
type: "category",
|
|
3660
|
-
data:
|
|
3672
|
+
data: k(a),
|
|
3661
3673
|
minInterval: e.xAxisMinInterval,
|
|
3662
3674
|
splitLine: {
|
|
3663
3675
|
show: e.xAxisSplitLineShow,
|
|
@@ -3712,9 +3724,9 @@ const dr = ee({
|
|
|
3712
3724
|
top: e.legendTop,
|
|
3713
3725
|
left: e.legendLeft
|
|
3714
3726
|
},
|
|
3715
|
-
series:
|
|
3727
|
+
series: k(n)
|
|
3716
3728
|
};
|
|
3717
|
-
}), { getGlobalModel: c, setGlobalModel:
|
|
3729
|
+
}), { getGlobalModel: c, setGlobalModel: m } = B(ge, {
|
|
3718
3730
|
// @ts-ignore
|
|
3719
3731
|
// eslint-disable-next-line no-void
|
|
3720
3732
|
getGlobalModel: (C) => {
|
|
@@ -3723,7 +3735,7 @@ const dr = ee({
|
|
|
3723
3735
|
// eslint-disable-next-line no-void
|
|
3724
3736
|
setGlobalModel: (C, d) => {
|
|
3725
3737
|
}
|
|
3726
|
-
}), { pageMode:
|
|
3738
|
+
}), { pageMode: p } = B(be, {
|
|
3727
3739
|
pageMode: "normal"
|
|
3728
3740
|
}), g = (C = [], d = !1) => {
|
|
3729
3741
|
let h;
|
|
@@ -3763,7 +3775,7 @@ const dr = ee({
|
|
|
3763
3775
|
}
|
|
3764
3776
|
});
|
|
3765
3777
|
n.value = $;
|
|
3766
|
-
},
|
|
3778
|
+
}, w = (C = [], d, h = !1) => {
|
|
3767
3779
|
const $ = Ge(C, h ? d : null);
|
|
3768
3780
|
a.value = $.dimensions;
|
|
3769
3781
|
const L = $.dataset, _ = [], J = L.length;
|
|
@@ -3779,32 +3791,32 @@ const dr = ee({
|
|
|
3779
3791
|
});
|
|
3780
3792
|
n.value = _;
|
|
3781
3793
|
};
|
|
3782
|
-
|
|
3783
|
-
(e.dataType === "static" ||
|
|
3794
|
+
Q(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([C]) => {
|
|
3795
|
+
(e.dataType === "static" || k(p) === "design") && g(C);
|
|
3784
3796
|
}, {
|
|
3785
3797
|
immediate: !0,
|
|
3786
3798
|
deep: !0
|
|
3787
3799
|
});
|
|
3788
|
-
const
|
|
3800
|
+
const f = M(!1), s = ke(e), u = async () => {
|
|
3789
3801
|
var C, d;
|
|
3790
3802
|
if (e.dataType === "request")
|
|
3791
3803
|
try {
|
|
3792
|
-
|
|
3804
|
+
f.value = !0;
|
|
3793
3805
|
const h = await s();
|
|
3794
3806
|
g((d = (C = h == null ? void 0 : h.data) == null ? void 0 : C.data) == null ? void 0 : d.rows, !0);
|
|
3795
3807
|
} catch (h) {
|
|
3796
3808
|
console.error(h);
|
|
3797
3809
|
} finally {
|
|
3798
|
-
|
|
3810
|
+
f.value = !1;
|
|
3799
3811
|
}
|
|
3800
|
-
},
|
|
3812
|
+
}, y = ue(e)("click", (C) => {
|
|
3801
3813
|
const d = c(e.id);
|
|
3802
|
-
|
|
3803
|
-
}),
|
|
3814
|
+
m(e.id, { ...d, RECORD: C == null ? void 0 : C.data });
|
|
3815
|
+
}), v = nt(e), T = async () => {
|
|
3804
3816
|
var C;
|
|
3805
3817
|
try {
|
|
3806
|
-
|
|
3807
|
-
const d = await
|
|
3818
|
+
f.value = !0;
|
|
3819
|
+
const d = await v(), { columns: h = [], rows: x = [] } = ((C = d == null ? void 0 : d.data) == null ? void 0 : C.data) ?? {};
|
|
3808
3820
|
let $;
|
|
3809
3821
|
h.length > 0 && ($ = {
|
|
3810
3822
|
name: h[0],
|
|
@@ -3812,45 +3824,45 @@ const dr = ee({
|
|
|
3812
3824
|
label: L,
|
|
3813
3825
|
value: L
|
|
3814
3826
|
}))
|
|
3815
|
-
}),
|
|
3827
|
+
}), w(x, $, !0);
|
|
3816
3828
|
} catch (d) {
|
|
3817
3829
|
console.error(d);
|
|
3818
3830
|
} finally {
|
|
3819
|
-
|
|
3831
|
+
f.value = !1;
|
|
3820
3832
|
}
|
|
3821
|
-
},
|
|
3833
|
+
}, A = () => {
|
|
3822
3834
|
switch (e.dataType) {
|
|
3823
3835
|
case "indicator":
|
|
3824
3836
|
T();
|
|
3825
3837
|
break;
|
|
3826
3838
|
case "request":
|
|
3827
|
-
|
|
3839
|
+
u();
|
|
3828
3840
|
break;
|
|
3829
3841
|
}
|
|
3830
3842
|
};
|
|
3831
3843
|
me(e, {
|
|
3832
|
-
refreshData:
|
|
3844
|
+
refreshData: A,
|
|
3833
3845
|
resetRecord: () => {
|
|
3834
3846
|
const C = e.id, d = c(C);
|
|
3835
|
-
|
|
3847
|
+
m(C, { ...d, RECORD: "" });
|
|
3836
3848
|
},
|
|
3837
|
-
click:
|
|
3849
|
+
click: y
|
|
3838
3850
|
});
|
|
3839
|
-
const { setRequest:
|
|
3851
|
+
const { setRequest: b } = B(ve, {
|
|
3840
3852
|
setRequest: (C) => {
|
|
3841
3853
|
}
|
|
3842
3854
|
});
|
|
3843
|
-
return typeof
|
|
3855
|
+
return typeof b == "function" && b({
|
|
3844
3856
|
id: e.id,
|
|
3845
|
-
requestFn:
|
|
3857
|
+
requestFn: A,
|
|
3846
3858
|
sortNum: e.requestSort
|
|
3847
3859
|
}), o({
|
|
3848
|
-
refreshData:
|
|
3860
|
+
refreshData: A
|
|
3849
3861
|
}), {
|
|
3850
3862
|
option: i,
|
|
3851
3863
|
style: t,
|
|
3852
|
-
click:
|
|
3853
|
-
loading:
|
|
3864
|
+
click: y,
|
|
3865
|
+
loading: f,
|
|
3854
3866
|
visible: l,
|
|
3855
3867
|
hideModal: r
|
|
3856
3868
|
};
|
|
@@ -4007,7 +4019,7 @@ const hr = ee({
|
|
|
4007
4019
|
const t = ie(e), n = M([]), a = M(!1), l = () => {
|
|
4008
4020
|
a.value = !1;
|
|
4009
4021
|
}, r = q(() => {
|
|
4010
|
-
const d =
|
|
4022
|
+
const d = k(n), h = d.length, x = [];
|
|
4011
4023
|
for (let $ = 0; $ < h; $++) {
|
|
4012
4024
|
const L = {
|
|
4013
4025
|
...d[$],
|
|
@@ -4022,7 +4034,7 @@ const hr = ee({
|
|
|
4022
4034
|
}, x.push(L);
|
|
4023
4035
|
}
|
|
4024
4036
|
return x;
|
|
4025
|
-
}), i = M([]), c = M(!1),
|
|
4037
|
+
}), i = M([]), c = M(!1), m = q(() => {
|
|
4026
4038
|
const d = e.yAxisLabelFormatter, h = e.xAxisLabelFormatter;
|
|
4027
4039
|
return {
|
|
4028
4040
|
toolbox: {
|
|
@@ -4082,17 +4094,17 @@ const hr = ee({
|
|
|
4082
4094
|
let L = "", _ = e.tooltipFormatter;
|
|
4083
4095
|
_ === "" && (_ = "{marker} {a} {c}");
|
|
4084
4096
|
for (let J = 0; J < $; J++) {
|
|
4085
|
-
const { marker: H, seriesName: z, name: N, value:
|
|
4097
|
+
const { marker: H, seriesName: z, name: N, value: R, data: W } = x[J] || {};
|
|
4086
4098
|
J === 0 && (L += `${N}<br/>`), L += de(
|
|
4087
4099
|
_,
|
|
4088
4100
|
{
|
|
4089
4101
|
textData: {
|
|
4090
4102
|
marker: H,
|
|
4091
4103
|
name: N,
|
|
4092
|
-
value:
|
|
4104
|
+
value: R,
|
|
4093
4105
|
a: z,
|
|
4094
4106
|
b: N,
|
|
4095
|
-
c:
|
|
4107
|
+
c: R,
|
|
4096
4108
|
...W
|
|
4097
4109
|
}
|
|
4098
4110
|
},
|
|
@@ -4122,7 +4134,7 @@ const hr = ee({
|
|
|
4122
4134
|
},
|
|
4123
4135
|
xAxis: {
|
|
4124
4136
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
4125
|
-
data: e.isUseHorizontalAxis ? null :
|
|
4137
|
+
data: e.isUseHorizontalAxis ? null : k(i),
|
|
4126
4138
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
4127
4139
|
minInterval: e.xAxisMinInterval,
|
|
4128
4140
|
splitLine: {
|
|
@@ -4152,7 +4164,7 @@ const hr = ee({
|
|
|
4152
4164
|
},
|
|
4153
4165
|
yAxis: {
|
|
4154
4166
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
4155
|
-
data: e.isUseHorizontalAxis ?
|
|
4167
|
+
data: e.isUseHorizontalAxis ? k(i) : null,
|
|
4156
4168
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
4157
4169
|
minInterval: e.yAxisMinInterval,
|
|
4158
4170
|
splitLine: {
|
|
@@ -4176,9 +4188,9 @@ const hr = ee({
|
|
|
4176
4188
|
}
|
|
4177
4189
|
}
|
|
4178
4190
|
},
|
|
4179
|
-
series:
|
|
4191
|
+
series: k(r)
|
|
4180
4192
|
};
|
|
4181
|
-
}), { pageMode:
|
|
4193
|
+
}), { pageMode: p } = B(be, {
|
|
4182
4194
|
pageMode: "normal"
|
|
4183
4195
|
}), g = (d = [], h = !1) => {
|
|
4184
4196
|
let x = {};
|
|
@@ -4190,32 +4202,32 @@ const hr = ee({
|
|
|
4190
4202
|
x = Ke(d, $);
|
|
4191
4203
|
}
|
|
4192
4204
|
n.value = x.dataset, i.value = x.dimensions;
|
|
4193
|
-
},
|
|
4205
|
+
}, w = (d = [], h, x = !1) => {
|
|
4194
4206
|
const L = Ge(d, x ? h : null);
|
|
4195
4207
|
n.value = L.dataset, i.value = L.dimensions;
|
|
4196
4208
|
};
|
|
4197
|
-
|
|
4198
|
-
(e.dataType === "static" ||
|
|
4209
|
+
Q(() => e.data, (d) => {
|
|
4210
|
+
(e.dataType === "static" || k(p) === "design") && g(d);
|
|
4199
4211
|
}, {
|
|
4200
4212
|
immediate: !0,
|
|
4201
4213
|
deep: !0
|
|
4202
4214
|
});
|
|
4203
|
-
const
|
|
4215
|
+
const f = ke(e), s = async () => {
|
|
4204
4216
|
var d, h;
|
|
4205
4217
|
try {
|
|
4206
4218
|
c.value = !0;
|
|
4207
|
-
const x = await
|
|
4219
|
+
const x = await f();
|
|
4208
4220
|
g((h = (d = x == null ? void 0 : x.data) == null ? void 0 : d.data) == null ? void 0 : h.rows, !0);
|
|
4209
4221
|
} catch (x) {
|
|
4210
4222
|
console.error(x);
|
|
4211
4223
|
} finally {
|
|
4212
4224
|
c.value = !1;
|
|
4213
4225
|
}
|
|
4214
|
-
},
|
|
4226
|
+
}, u = nt(e), S = async () => {
|
|
4215
4227
|
var d;
|
|
4216
4228
|
try {
|
|
4217
4229
|
c.value = !0;
|
|
4218
|
-
const h = await
|
|
4230
|
+
const h = await u(), { columns: x = [], rows: $ = [] } = ((d = h == null ? void 0 : h.data) == null ? void 0 : d.data) ?? {};
|
|
4219
4231
|
let L;
|
|
4220
4232
|
x.length > 0 && (L = {
|
|
4221
4233
|
name: x[0],
|
|
@@ -4223,16 +4235,16 @@ const hr = ee({
|
|
|
4223
4235
|
label: _,
|
|
4224
4236
|
value: _
|
|
4225
4237
|
}))
|
|
4226
|
-
}),
|
|
4238
|
+
}), w($, L, !0);
|
|
4227
4239
|
} catch (h) {
|
|
4228
4240
|
console.error(h);
|
|
4229
4241
|
} finally {
|
|
4230
4242
|
c.value = !1;
|
|
4231
4243
|
}
|
|
4232
|
-
},
|
|
4244
|
+
}, y = () => {
|
|
4233
4245
|
switch (e.dataType) {
|
|
4234
4246
|
case "indicator":
|
|
4235
|
-
|
|
4247
|
+
S();
|
|
4236
4248
|
break;
|
|
4237
4249
|
case "request":
|
|
4238
4250
|
s();
|
|
@@ -4240,9 +4252,9 @@ const hr = ee({
|
|
|
4240
4252
|
}
|
|
4241
4253
|
};
|
|
4242
4254
|
o({
|
|
4243
|
-
refreshData:
|
|
4255
|
+
refreshData: y
|
|
4244
4256
|
});
|
|
4245
|
-
const
|
|
4257
|
+
const v = ue(e), { getGlobalModel: T, setGlobalModel: A } = B(ge, {
|
|
4246
4258
|
// @ts-ignore
|
|
4247
4259
|
// eslint-disable-next-line no-void
|
|
4248
4260
|
getGlobalModel: (d) => {
|
|
@@ -4251,29 +4263,29 @@ const hr = ee({
|
|
|
4251
4263
|
// eslint-disable-next-line no-void
|
|
4252
4264
|
setGlobalModel: (d, h) => {
|
|
4253
4265
|
}
|
|
4254
|
-
}),
|
|
4266
|
+
}), F = v("click", (d) => {
|
|
4255
4267
|
const h = T(e.id);
|
|
4256
|
-
|
|
4257
|
-
}), { setRequest:
|
|
4268
|
+
A(e.id, { ...h, RECORD: d.data });
|
|
4269
|
+
}), { setRequest: b } = B(ve, {
|
|
4258
4270
|
setRequest: (d) => {
|
|
4259
4271
|
}
|
|
4260
4272
|
});
|
|
4261
|
-
return typeof
|
|
4273
|
+
return typeof b == "function" && b({
|
|
4262
4274
|
id: e.id,
|
|
4263
|
-
requestFn:
|
|
4275
|
+
requestFn: y,
|
|
4264
4276
|
sortNum: e.requestSort
|
|
4265
4277
|
}), me(e, {
|
|
4266
|
-
refreshData:
|
|
4267
|
-
click:
|
|
4278
|
+
refreshData: y,
|
|
4279
|
+
click: F,
|
|
4268
4280
|
resetRecord: () => {
|
|
4269
4281
|
const d = e.id, h = T(d);
|
|
4270
|
-
|
|
4282
|
+
A(d, { ...h, RECORD: "" });
|
|
4271
4283
|
}
|
|
4272
4284
|
}), {
|
|
4273
|
-
option:
|
|
4285
|
+
option: m,
|
|
4274
4286
|
style: t,
|
|
4275
|
-
refreshData:
|
|
4276
|
-
click:
|
|
4287
|
+
refreshData: y,
|
|
4288
|
+
click: F,
|
|
4277
4289
|
loading: c,
|
|
4278
4290
|
visible: a,
|
|
4279
4291
|
hideModal: l
|
|
@@ -4387,7 +4399,7 @@ qe([
|
|
|
4387
4399
|
xo,
|
|
4388
4400
|
et,
|
|
4389
4401
|
Xe,
|
|
4390
|
-
|
|
4402
|
+
Rt,
|
|
4391
4403
|
tt
|
|
4392
4404
|
]);
|
|
4393
4405
|
const Cr = ee({
|
|
@@ -4404,7 +4416,7 @@ const Cr = ee({
|
|
|
4404
4416
|
const o = ie(e), t = M([]), n = M(!1), a = () => {
|
|
4405
4417
|
n.value = !1;
|
|
4406
4418
|
}, l = q(() => {
|
|
4407
|
-
const
|
|
4419
|
+
const v = e.xAxisLabelFormatter, T = e.yAxisLabelFormatter;
|
|
4408
4420
|
return {
|
|
4409
4421
|
toolbox: {
|
|
4410
4422
|
show: e.toolboxShow,
|
|
@@ -4469,8 +4481,8 @@ const Cr = ee({
|
|
|
4469
4481
|
rotate: e.xAxisLabelRotate,
|
|
4470
4482
|
width: e.xAxisLabelWidth,
|
|
4471
4483
|
overflow: e.xAxisLabelOverflow,
|
|
4472
|
-
formatter(
|
|
4473
|
-
return Ne(
|
|
4484
|
+
formatter(A) {
|
|
4485
|
+
return Ne(v, A);
|
|
4474
4486
|
}
|
|
4475
4487
|
},
|
|
4476
4488
|
axisLine: {
|
|
@@ -4491,8 +4503,8 @@ const Cr = ee({
|
|
|
4491
4503
|
},
|
|
4492
4504
|
axisLabel: {
|
|
4493
4505
|
color: e.yAxisLabelColor,
|
|
4494
|
-
formatter(
|
|
4495
|
-
return Ne(T,
|
|
4506
|
+
formatter(A) {
|
|
4507
|
+
return Ne(T, A);
|
|
4496
4508
|
}
|
|
4497
4509
|
},
|
|
4498
4510
|
axisLine: {
|
|
@@ -4505,14 +4517,14 @@ const Cr = ee({
|
|
|
4505
4517
|
tooltip: {
|
|
4506
4518
|
show: e.tooltipShow,
|
|
4507
4519
|
trigger: e.tooltipTrigger,
|
|
4508
|
-
formatter(
|
|
4520
|
+
formatter(A) {
|
|
4509
4521
|
var x;
|
|
4510
|
-
const { marker:
|
|
4522
|
+
const { marker: F, seriesName: b } = A, C = ((x = A == null ? void 0 : A.data) == null ? void 0 : x.record) ?? {}, { name: d, value: h } = C;
|
|
4511
4523
|
return de(e.tooltipFormatter, {
|
|
4512
4524
|
textData: {
|
|
4513
|
-
marker:
|
|
4514
|
-
seriesName:
|
|
4515
|
-
a:
|
|
4525
|
+
marker: F,
|
|
4526
|
+
seriesName: b,
|
|
4527
|
+
a: b,
|
|
4516
4528
|
b: d,
|
|
4517
4529
|
c: h,
|
|
4518
4530
|
...C
|
|
@@ -4532,7 +4544,7 @@ const Cr = ee({
|
|
|
4532
4544
|
},
|
|
4533
4545
|
series: [
|
|
4534
4546
|
{
|
|
4535
|
-
data:
|
|
4547
|
+
data: k(t),
|
|
4536
4548
|
type: "scatter",
|
|
4537
4549
|
symbolSize: e.symbolSize
|
|
4538
4550
|
}
|
|
@@ -4541,64 +4553,64 @@ const Cr = ee({
|
|
|
4541
4553
|
}), { getGlobalModel: r, setGlobalModel: i } = B(ge, {
|
|
4542
4554
|
// @ts-ignore
|
|
4543
4555
|
// eslint-disable-next-line no-void
|
|
4544
|
-
getGlobalModel: (
|
|
4556
|
+
getGlobalModel: (v) => {
|
|
4545
4557
|
},
|
|
4546
4558
|
// @ts-ignore
|
|
4547
4559
|
// eslint-disable-next-line no-void
|
|
4548
|
-
setGlobalModel: (
|
|
4560
|
+
setGlobalModel: (v, T) => {
|
|
4549
4561
|
}
|
|
4550
4562
|
}), { pageMode: c } = B(be, {
|
|
4551
4563
|
pageMode: "normal"
|
|
4552
|
-
}),
|
|
4553
|
-
const { name:
|
|
4554
|
-
t.value =
|
|
4564
|
+
}), m = (v = [], T) => {
|
|
4565
|
+
const { name: A = "name", value: F = "value" } = T || {};
|
|
4566
|
+
t.value = v.map((b) => ({ value: [b[A], b[F]], record: b }));
|
|
4555
4567
|
};
|
|
4556
|
-
|
|
4557
|
-
(e.dataType === "static" ||
|
|
4568
|
+
Q(() => e.data, (v) => {
|
|
4569
|
+
(e.dataType === "static" || k(c) === "design") && m(v);
|
|
4558
4570
|
}, {
|
|
4559
4571
|
immediate: !0,
|
|
4560
4572
|
deep: !0
|
|
4561
4573
|
});
|
|
4562
|
-
const
|
|
4563
|
-
var
|
|
4574
|
+
const p = M(!1), g = ke(e), w = async () => {
|
|
4575
|
+
var v, T;
|
|
4564
4576
|
if (e.dataType === "request") {
|
|
4565
|
-
|
|
4577
|
+
p.value = !0;
|
|
4566
4578
|
try {
|
|
4567
|
-
const
|
|
4568
|
-
|
|
4569
|
-
} catch (
|
|
4570
|
-
console.error(
|
|
4579
|
+
const A = await g();
|
|
4580
|
+
m((T = (v = A == null ? void 0 : A.data) == null ? void 0 : v.data) == null ? void 0 : T.rows, e.dataFieldNames);
|
|
4581
|
+
} catch (A) {
|
|
4582
|
+
console.error(A);
|
|
4571
4583
|
} finally {
|
|
4572
|
-
|
|
4584
|
+
p.value = !1;
|
|
4573
4585
|
}
|
|
4574
4586
|
}
|
|
4575
|
-
}, s = ue(e)("click", (
|
|
4576
|
-
const T = e.id,
|
|
4577
|
-
i(T, { ...
|
|
4587
|
+
}, s = ue(e)("click", (v) => {
|
|
4588
|
+
const T = e.id, A = r(T);
|
|
4589
|
+
i(T, { ...A, RECORD: v == null ? void 0 : v.data });
|
|
4578
4590
|
});
|
|
4579
4591
|
me(e, {
|
|
4580
4592
|
refreshData: () => {
|
|
4581
|
-
|
|
4593
|
+
w();
|
|
4582
4594
|
},
|
|
4583
4595
|
click: s,
|
|
4584
4596
|
resetRecord: () => {
|
|
4585
|
-
const
|
|
4586
|
-
i(
|
|
4597
|
+
const v = e.id, T = r(v);
|
|
4598
|
+
i(v, { ...T, RECORD: "" });
|
|
4587
4599
|
}
|
|
4588
4600
|
});
|
|
4589
|
-
const { setRequest:
|
|
4590
|
-
setRequest: (
|
|
4601
|
+
const { setRequest: y } = B(ve, {
|
|
4602
|
+
setRequest: (v) => {
|
|
4591
4603
|
}
|
|
4592
4604
|
});
|
|
4593
|
-
return typeof
|
|
4605
|
+
return typeof y == "function" && y({
|
|
4594
4606
|
id: e.id,
|
|
4595
|
-
requestFn:
|
|
4607
|
+
requestFn: w,
|
|
4596
4608
|
sortNum: e.requestSort
|
|
4597
4609
|
}), {
|
|
4598
4610
|
option: l,
|
|
4599
4611
|
style: o,
|
|
4600
4612
|
click: s,
|
|
4601
|
-
loading:
|
|
4613
|
+
loading: p,
|
|
4602
4614
|
visible: n,
|
|
4603
4615
|
hideModal: a
|
|
4604
4616
|
};
|
|
@@ -4662,7 +4674,7 @@ const wr = /* @__PURE__ */ te(Cr, [["render", Sr]]), xr = oe(wr), hn = {
|
|
|
4662
4674
|
},
|
|
4663
4675
|
setup(e) {
|
|
4664
4676
|
const o = ie(e), t = M();
|
|
4665
|
-
return
|
|
4677
|
+
return Q(() => e.optionCode, (n) => {
|
|
4666
4678
|
try {
|
|
4667
4679
|
const a = eval;
|
|
4668
4680
|
t.value = a(n);
|
|
@@ -4892,20 +4904,20 @@ const Ir = ee({
|
|
|
4892
4904
|
$ === "" && ($ = "{marker} {a} {c}");
|
|
4893
4905
|
const L = e.seriesTypes;
|
|
4894
4906
|
for (let _ = 0; _ < h; _++) {
|
|
4895
|
-
const J = L[_], { tooltipFormatter: H } = J || {}, { marker: z, seriesName: N, name:
|
|
4896
|
-
_ === 0 && (x += `${
|
|
4907
|
+
const J = L[_], { tooltipFormatter: H } = J || {}, { marker: z, seriesName: N, name: R, value: W, data: K } = d[_] || {};
|
|
4908
|
+
_ === 0 && (x += `${R}<br/>`), x += de(
|
|
4897
4909
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4898
4910
|
H || $,
|
|
4899
4911
|
{
|
|
4900
4912
|
textData: {
|
|
4901
4913
|
marker: z,
|
|
4902
|
-
name:
|
|
4914
|
+
name: R,
|
|
4903
4915
|
value: W,
|
|
4904
4916
|
seriesName: N,
|
|
4905
4917
|
a: N,
|
|
4906
|
-
b:
|
|
4918
|
+
b: R,
|
|
4907
4919
|
c: W,
|
|
4908
|
-
...
|
|
4920
|
+
...K
|
|
4909
4921
|
}
|
|
4910
4922
|
},
|
|
4911
4923
|
{
|
|
@@ -4923,7 +4935,7 @@ const Ir = ee({
|
|
|
4923
4935
|
xAxis: {
|
|
4924
4936
|
minInterval: e.xAxisMinInterval,
|
|
4925
4937
|
type: "category",
|
|
4926
|
-
data:
|
|
4938
|
+
data: k(a),
|
|
4927
4939
|
splitLine: {
|
|
4928
4940
|
show: e.xAxisSplitLineShow,
|
|
4929
4941
|
lineStyle: {
|
|
@@ -4946,11 +4958,11 @@ const Ir = ee({
|
|
|
4946
4958
|
show: e.xAxisTickShow
|
|
4947
4959
|
}
|
|
4948
4960
|
},
|
|
4949
|
-
yAxis:
|
|
4950
|
-
series:
|
|
4961
|
+
yAxis: k(g),
|
|
4962
|
+
series: k(n)
|
|
4951
4963
|
})), { pageMode: c } = B(be, {
|
|
4952
4964
|
pageMode: "normal"
|
|
4953
|
-
}),
|
|
4965
|
+
}), m = (d = [], h = !1) => {
|
|
4954
4966
|
let x;
|
|
4955
4967
|
if (e.dataFieldConfigType === "key") {
|
|
4956
4968
|
const H = h ? e.keyTypeDataFieldNames : null;
|
|
@@ -4962,10 +4974,10 @@ const Ir = ee({
|
|
|
4962
4974
|
a.value = x.dimensions;
|
|
4963
4975
|
const $ = x.dataset, L = [], _ = $.length, J = e.seriesTypes;
|
|
4964
4976
|
for (let H = 0; H < _; H++) {
|
|
4965
|
-
const z = J[H], { type: N, axisIndex:
|
|
4977
|
+
const z = J[H], { type: N, axisIndex: R } = z || {};
|
|
4966
4978
|
let W = {
|
|
4967
4979
|
type: N,
|
|
4968
|
-
yAxisIndex:
|
|
4980
|
+
yAxisIndex: R,
|
|
4969
4981
|
...$[H]
|
|
4970
4982
|
};
|
|
4971
4983
|
N === "line" && (W = {
|
|
@@ -4984,22 +4996,22 @@ const Ir = ee({
|
|
|
4984
4996
|
}), L.push(W);
|
|
4985
4997
|
}
|
|
4986
4998
|
n.value = L;
|
|
4987
|
-
},
|
|
4999
|
+
}, p = (d = [], h, x = !1) => {
|
|
4988
5000
|
const L = Ge(d, x ? h : null);
|
|
4989
5001
|
a.value = L.dimensions;
|
|
4990
5002
|
const _ = L.dataset, J = [], H = _.length, z = e.seriesTypes;
|
|
4991
5003
|
for (let N = 0; N < H; N++) {
|
|
4992
|
-
const
|
|
5004
|
+
const R = z[N];
|
|
4993
5005
|
J.push({
|
|
4994
|
-
type:
|
|
4995
|
-
yAxisIndex:
|
|
5006
|
+
type: R == null ? void 0 : R.type,
|
|
5007
|
+
yAxisIndex: R == null ? void 0 : R.axisIndex,
|
|
4996
5008
|
..._[N]
|
|
4997
5009
|
});
|
|
4998
5010
|
}
|
|
4999
5011
|
n.value = J;
|
|
5000
5012
|
};
|
|
5001
|
-
|
|
5002
|
-
(e.dataType === "static" ||
|
|
5013
|
+
Q(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([d]) => {
|
|
5014
|
+
(e.dataType === "static" || k(c) === "design") && m(d);
|
|
5003
5015
|
}, {
|
|
5004
5016
|
immediate: !0,
|
|
5005
5017
|
deep: !0
|
|
@@ -5027,23 +5039,23 @@ const Ir = ee({
|
|
|
5027
5039
|
}
|
|
5028
5040
|
}
|
|
5029
5041
|
}));
|
|
5030
|
-
}),
|
|
5042
|
+
}), w = M(!1), f = ke(e), s = async () => {
|
|
5031
5043
|
var d, h;
|
|
5032
5044
|
if (e.dataType === "request")
|
|
5033
5045
|
try {
|
|
5034
|
-
|
|
5035
|
-
const x = await
|
|
5036
|
-
|
|
5046
|
+
w.value = !0;
|
|
5047
|
+
const x = await f();
|
|
5048
|
+
m((h = (d = x == null ? void 0 : x.data) == null ? void 0 : d.data) == null ? void 0 : h.rows, !0);
|
|
5037
5049
|
} catch (x) {
|
|
5038
5050
|
console.error(x);
|
|
5039
5051
|
} finally {
|
|
5040
|
-
|
|
5052
|
+
w.value = !1;
|
|
5041
5053
|
}
|
|
5042
|
-
},
|
|
5054
|
+
}, u = nt(e), S = async () => {
|
|
5043
5055
|
var d;
|
|
5044
5056
|
try {
|
|
5045
|
-
|
|
5046
|
-
const h = await
|
|
5057
|
+
w.value = !0;
|
|
5058
|
+
const h = await u(), { columns: x = [], rows: $ = [] } = ((d = h == null ? void 0 : h.data) == null ? void 0 : d.data) ?? {};
|
|
5047
5059
|
let L;
|
|
5048
5060
|
x.length > 0 && (L = {
|
|
5049
5061
|
name: x[0],
|
|
@@ -5051,16 +5063,16 @@ const Ir = ee({
|
|
|
5051
5063
|
label: _,
|
|
5052
5064
|
value: _
|
|
5053
5065
|
}))
|
|
5054
|
-
}),
|
|
5066
|
+
}), p($, L, !0);
|
|
5055
5067
|
} catch (h) {
|
|
5056
5068
|
console.error(h);
|
|
5057
5069
|
} finally {
|
|
5058
|
-
|
|
5070
|
+
w.value = !1;
|
|
5059
5071
|
}
|
|
5060
|
-
},
|
|
5072
|
+
}, y = () => {
|
|
5061
5073
|
switch (e.dataType) {
|
|
5062
5074
|
case "indicator":
|
|
5063
|
-
|
|
5075
|
+
S();
|
|
5064
5076
|
break;
|
|
5065
5077
|
case "request":
|
|
5066
5078
|
s();
|
|
@@ -5068,9 +5080,9 @@ const Ir = ee({
|
|
|
5068
5080
|
}
|
|
5069
5081
|
};
|
|
5070
5082
|
o({
|
|
5071
|
-
refreshData:
|
|
5083
|
+
refreshData: y
|
|
5072
5084
|
});
|
|
5073
|
-
const
|
|
5085
|
+
const v = ue(e), { getGlobalModel: T, setGlobalModel: A } = B(ge, {
|
|
5074
5086
|
// @ts-ignore
|
|
5075
5087
|
// eslint-disable-next-line no-void
|
|
5076
5088
|
getGlobalModel: (d) => {
|
|
@@ -5079,29 +5091,29 @@ const Ir = ee({
|
|
|
5079
5091
|
// eslint-disable-next-line no-void
|
|
5080
5092
|
setGlobalModel: (d, h) => {
|
|
5081
5093
|
}
|
|
5082
|
-
}),
|
|
5094
|
+
}), F = v("click", (d) => {
|
|
5083
5095
|
const h = T(e.id);
|
|
5084
|
-
|
|
5085
|
-
}), { setRequest:
|
|
5096
|
+
A(e.id, { ...h, RECORD: d == null ? void 0 : d.data });
|
|
5097
|
+
}), { setRequest: b } = B(ve, {
|
|
5086
5098
|
setRequest: (d) => {
|
|
5087
5099
|
}
|
|
5088
5100
|
});
|
|
5089
|
-
return typeof
|
|
5101
|
+
return typeof b == "function" && b({
|
|
5090
5102
|
id: e.id,
|
|
5091
|
-
requestFn:
|
|
5103
|
+
requestFn: y,
|
|
5092
5104
|
sortNum: e.requestSort
|
|
5093
5105
|
}), me(e, {
|
|
5094
5106
|
resetRecord: () => {
|
|
5095
5107
|
const d = e.id, h = T(d);
|
|
5096
|
-
|
|
5108
|
+
A(d, { ...h, RECORD: "" });
|
|
5097
5109
|
},
|
|
5098
|
-
refreshData:
|
|
5099
|
-
click:
|
|
5110
|
+
refreshData: y,
|
|
5111
|
+
click: F
|
|
5100
5112
|
}), {
|
|
5101
5113
|
style: t,
|
|
5102
5114
|
option: i,
|
|
5103
|
-
click:
|
|
5104
|
-
loading:
|
|
5115
|
+
click: F,
|
|
5116
|
+
loading: w,
|
|
5105
5117
|
visible: l,
|
|
5106
5118
|
hideModal: r
|
|
5107
5119
|
};
|
|
@@ -5168,7 +5180,7 @@ const Er = /* @__PURE__ */ te(Ir, [["render", Mr]]), Dr = oe(Er), pn = {
|
|
|
5168
5180
|
useBorderModify: !1,
|
|
5169
5181
|
textShadow: "",
|
|
5170
5182
|
data: {}
|
|
5171
|
-
}, Cn = le(pn), Or = ["click"],
|
|
5183
|
+
}, Cn = le(pn), Or = ["click"], Fr = ee({
|
|
5172
5184
|
name: "EcanBorder",
|
|
5173
5185
|
props: {
|
|
5174
5186
|
...Cn
|
|
@@ -5186,7 +5198,7 @@ const Er = /* @__PURE__ */ te(Ir, [["render", Mr]]), Dr = oe(Er), pn = {
|
|
|
5186
5198
|
height: "100%"
|
|
5187
5199
|
})), l = ue(e)("click", () => {
|
|
5188
5200
|
}), r = M([]);
|
|
5189
|
-
|
|
5201
|
+
Q(() => e.data, (c) => {
|
|
5190
5202
|
r.value = c;
|
|
5191
5203
|
}, {
|
|
5192
5204
|
immediate: !0,
|
|
@@ -5197,7 +5209,7 @@ const Er = /* @__PURE__ */ te(Ir, [["render", Mr]]), Dr = oe(Er), pn = {
|
|
|
5197
5209
|
const { setGlobalModel: i } = B(ge, {
|
|
5198
5210
|
// @ts-ignore
|
|
5199
5211
|
// eslint-disable-next-line no-void
|
|
5200
|
-
setGlobalModel: (c,
|
|
5212
|
+
setGlobalModel: (c, m) => {
|
|
5201
5213
|
}
|
|
5202
5214
|
});
|
|
5203
5215
|
return i(e.id, {
|
|
@@ -5210,10 +5222,10 @@ const Er = /* @__PURE__ */ te(Ir, [["render", Mr]]), Dr = oe(Er), pn = {
|
|
|
5210
5222
|
theme: t
|
|
5211
5223
|
};
|
|
5212
5224
|
}
|
|
5213
|
-
}),
|
|
5225
|
+
}), Rr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=", $r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==";
|
|
5214
5226
|
const Te = (e) => (fo("data-v-1550b11b"), e = e(), mo(), e), zr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "top-left border-item" }, null, -1)), Nr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "top-right border-item" }, null, -1)), Pr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "bottom-left border-item" }, null, -1)), Br = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "bottom-right border-item" }, null, -1)), Ur = { class: "title-item-wrapper" }, Gr = { class: "title-item" }, qr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("img", {
|
|
5215
5227
|
class: "title-decoration-left",
|
|
5216
|
-
src:
|
|
5228
|
+
src: Rr
|
|
5217
5229
|
}, null, -1)), jr = { class: "title" }, Wr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("img", {
|
|
5218
5230
|
class: "title-decoration-right",
|
|
5219
5231
|
src: $r
|
|
@@ -5263,7 +5275,7 @@ function Kr(e, o, t, n, a, l) {
|
|
|
5263
5275
|
])) : Ce("", !0)
|
|
5264
5276
|
], 4);
|
|
5265
5277
|
}
|
|
5266
|
-
const Xr = /* @__PURE__ */ te(
|
|
5278
|
+
const Xr = /* @__PURE__ */ te(Fr, [["render", Kr], ["__scopeId", "data-v-1550b11b"]]), es = oe(Xr), Sn = {
|
|
5267
5279
|
id: "",
|
|
5268
5280
|
type: "ecanModal",
|
|
5269
5281
|
title: "",
|
|
@@ -5291,86 +5303,86 @@ const Xr = /* @__PURE__ */ te(Rr, [["render", Kr], ["__scopeId", "data-v-1550b11
|
|
|
5291
5303
|
},
|
|
5292
5304
|
setup(e) {
|
|
5293
5305
|
const o = () => document.getElementById("ProviderConfig") || document.body, t = q(() => {
|
|
5294
|
-
const
|
|
5306
|
+
const R = e.position;
|
|
5295
5307
|
return {
|
|
5296
5308
|
verticalAlign: {
|
|
5297
5309
|
default: "",
|
|
5298
5310
|
top: "top",
|
|
5299
5311
|
center: "middle",
|
|
5300
5312
|
bottom: "bottom"
|
|
5301
|
-
}[
|
|
5313
|
+
}[R]
|
|
5302
5314
|
};
|
|
5303
|
-
}), n = e.width, a = e.height, l = e.originalWidth, r = e.originalHeight, i = M("80%"), c = M(0),
|
|
5304
|
-
let
|
|
5305
|
-
const
|
|
5306
|
-
|
|
5307
|
-
const
|
|
5308
|
-
c.value = W *
|
|
5309
|
-
width: `${
|
|
5310
|
-
height: `${
|
|
5311
|
-
},
|
|
5312
|
-
...
|
|
5315
|
+
}), n = e.width, a = e.height, l = e.originalWidth, r = e.originalHeight, i = M("80%"), c = M(0), m = M(), p = M(0), g = M({}), w = ie(e), f = M({}), s = M(!1), u = M();
|
|
5316
|
+
let S;
|
|
5317
|
+
const y = () => {
|
|
5318
|
+
m.value = parseFloat(n) / parseFloat(l);
|
|
5319
|
+
const R = parseFloat(a) / parseFloat(r), W = document.body.offsetWidth, K = document.body.offsetHeight;
|
|
5320
|
+
c.value = W * k(m), p.value = K * R, i.value = `${k(m) * 100}%`, g.value = {
|
|
5321
|
+
width: `${k(c)}px`,
|
|
5322
|
+
height: `${k(p)}px`
|
|
5323
|
+
}, f.value = {
|
|
5324
|
+
...k(w),
|
|
5313
5325
|
backgroundImage: ze(e.backgroundImage, !0),
|
|
5314
|
-
transform: `scale(${
|
|
5326
|
+
transform: `scale(${k(c) / parseFloat(n)},${k(p) / parseFloat(a)})`
|
|
5315
5327
|
};
|
|
5316
|
-
},
|
|
5317
|
-
|
|
5328
|
+
}, v = Ft(() => {
|
|
5329
|
+
y();
|
|
5318
5330
|
}, 100), T = () => {
|
|
5319
|
-
const
|
|
5320
|
-
|
|
5331
|
+
const R = window.MutationObserver;
|
|
5332
|
+
S = new R(v), S.observe(document.body, {
|
|
5321
5333
|
attributes: !0,
|
|
5322
5334
|
attributeFilter: ["style"],
|
|
5323
5335
|
attributeOldValue: !0
|
|
5324
5336
|
});
|
|
5325
|
-
},
|
|
5326
|
-
|
|
5327
|
-
},
|
|
5337
|
+
}, A = () => {
|
|
5338
|
+
S && (S.disconnect(), S.takeRecords(), S = null);
|
|
5339
|
+
}, F = M(!1), { touchRequest: b } = B(ve, {
|
|
5328
5340
|
// @ts-ignore
|
|
5329
5341
|
// eslint-disable-next-line no-void
|
|
5330
5342
|
touchRequest: () => {
|
|
5331
5343
|
}
|
|
5332
5344
|
}), C = () => {
|
|
5333
|
-
|
|
5345
|
+
F.value = !0;
|
|
5334
5346
|
}, d = () => {
|
|
5335
|
-
|
|
5347
|
+
F.value = !1;
|
|
5336
5348
|
}, h = () => {
|
|
5337
5349
|
d();
|
|
5338
5350
|
}, x = () => {
|
|
5339
5351
|
d();
|
|
5340
5352
|
}, { setModalModel: $, pushUseModalIds: L, popUseModalIds: _ } = B(Oo, {
|
|
5341
|
-
pushUseModalIds: (
|
|
5353
|
+
pushUseModalIds: (R) => {
|
|
5342
5354
|
},
|
|
5343
5355
|
popUseModalIds: () => {
|
|
5344
5356
|
},
|
|
5345
|
-
setModalModel: (
|
|
5357
|
+
setModalModel: (R, W) => {
|
|
5346
5358
|
}
|
|
5347
5359
|
}), J = () => {
|
|
5348
|
-
const
|
|
5360
|
+
const R = e.id;
|
|
5349
5361
|
let W = [];
|
|
5350
|
-
const
|
|
5351
|
-
console.log("componentList",
|
|
5362
|
+
const K = e.componentList;
|
|
5363
|
+
console.log("componentList", K), Array.isArray(K) && (W = K.map((se) => se.id), $(R, [...new Set(W)]));
|
|
5352
5364
|
};
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
}),
|
|
5365
|
+
Q(() => F.value, async (R) => {
|
|
5366
|
+
R ? (s.value = !1, L(e.id), J(), await mt(() => {
|
|
5367
|
+
y(), window.addEventListener("resize", v), T(), s.value = !0;
|
|
5368
|
+
}), b()) : (_(), window.removeEventListener("resize", v), A());
|
|
5357
5369
|
});
|
|
5358
|
-
const H = q(() =>
|
|
5359
|
-
let
|
|
5360
|
-
return
|
|
5370
|
+
const H = q(() => k(m) >= 1), z = q(() => e.fullModal), N = q(() => {
|
|
5371
|
+
let R = "ecan-modal";
|
|
5372
|
+
return k(H) && (R += " ecan-full-width-modal"), k(z) && (R += " ecan-full-modal"), R;
|
|
5361
5373
|
});
|
|
5362
5374
|
return me(e, {
|
|
5363
5375
|
showModal: C
|
|
5364
5376
|
}), {
|
|
5365
|
-
modalRef:
|
|
5377
|
+
modalRef: u,
|
|
5366
5378
|
containStyle: g,
|
|
5367
|
-
contentStyle:
|
|
5379
|
+
contentStyle: f,
|
|
5368
5380
|
getContainer: o,
|
|
5369
5381
|
modalStyle: t,
|
|
5370
5382
|
modalWith: i,
|
|
5371
5383
|
isFullModal: z,
|
|
5372
|
-
style:
|
|
5373
|
-
visible:
|
|
5384
|
+
style: w,
|
|
5385
|
+
visible: F,
|
|
5374
5386
|
showModal: C,
|
|
5375
5387
|
onOk: h,
|
|
5376
5388
|
onCancel: x,
|
|
@@ -5382,7 +5394,7 @@ const Xr = /* @__PURE__ */ te(Rr, [["render", Kr], ["__scopeId", "data-v-1550b11
|
|
|
5382
5394
|
});
|
|
5383
5395
|
function ns(e, o, t, n, a, l) {
|
|
5384
5396
|
const r = V("a-modal");
|
|
5385
|
-
return E(),
|
|
5397
|
+
return E(), Fe(r, {
|
|
5386
5398
|
getContainer: e.getContainer,
|
|
5387
5399
|
wrapClassName: e.wrapClassName,
|
|
5388
5400
|
centered: "",
|
|
@@ -5394,7 +5406,7 @@ function ns(e, o, t, n, a, l) {
|
|
|
5394
5406
|
onOk: e.onOk,
|
|
5395
5407
|
onCancel: e.onCancel,
|
|
5396
5408
|
ref: "modalRef"
|
|
5397
|
-
},
|
|
5409
|
+
}, Rn({
|
|
5398
5410
|
default: Y(() => [
|
|
5399
5411
|
X("div", {
|
|
5400
5412
|
class: "contain",
|
|
@@ -5406,7 +5418,7 @@ function ns(e, o, t, n, a, l) {
|
|
|
5406
5418
|
class: "content",
|
|
5407
5419
|
style: U(e.contentStyle)
|
|
5408
5420
|
}, [
|
|
5409
|
-
(E(!0), O(Me, null, De(e.componentList, (i, c) => (E(),
|
|
5421
|
+
(E(!0), O(Me, null, De(e.componentList, (i, c) => (E(), Fe($n(i.type), zn({
|
|
5410
5422
|
key: i.id + c
|
|
5411
5423
|
}, i), null, 16))), 128))
|
|
5412
5424
|
], 4)) : Ce("", !0)
|
|
@@ -5471,8 +5483,8 @@ const as = /* @__PURE__ */ te(os, [["render", ns], ["__scopeId", "data-v-d94f0d6
|
|
|
5471
5483
|
},
|
|
5472
5484
|
setup(e) {
|
|
5473
5485
|
const o = ie(e), t = M(0);
|
|
5474
|
-
|
|
5475
|
-
t.value =
|
|
5486
|
+
Q(() => e.activeKey, (f) => {
|
|
5487
|
+
t.value = f;
|
|
5476
5488
|
}, {
|
|
5477
5489
|
immediate: !0
|
|
5478
5490
|
});
|
|
@@ -5481,31 +5493,31 @@ const as = /* @__PURE__ */ te(os, [["render", ns], ["__scopeId", "data-v-d94f0d6
|
|
|
5481
5493
|
});
|
|
5482
5494
|
let a = null;
|
|
5483
5495
|
const l = () => {
|
|
5484
|
-
const
|
|
5485
|
-
e.autoSwitch &&
|
|
5486
|
-
const s =
|
|
5487
|
-
s <=
|
|
5496
|
+
const f = Array.isArray(k(r)) ? k(r).length - 1 : 0;
|
|
5497
|
+
e.autoSwitch && f > 0 && (a = setInterval(() => {
|
|
5498
|
+
const s = k(t) + 1;
|
|
5499
|
+
s <= f ? t.value = s : t.value = 0, i.value = k(r)[k(t)], g();
|
|
5488
5500
|
}, e.autoSwitchInterval * 1e3));
|
|
5489
5501
|
};
|
|
5490
5502
|
Ue(() => {
|
|
5491
|
-
|
|
5503
|
+
k(n) !== "design" && l();
|
|
5492
5504
|
}), Tt(() => {
|
|
5493
5505
|
clearInterval(a);
|
|
5494
5506
|
});
|
|
5495
5507
|
const r = M([]), i = M({});
|
|
5496
|
-
|
|
5497
|
-
r.value =
|
|
5508
|
+
Q(() => e.data, (f) => {
|
|
5509
|
+
r.value = f, i.value = Array.isArray(f) && f.length > 0 ? f[0] : {};
|
|
5498
5510
|
}, {
|
|
5499
5511
|
immediate: !0,
|
|
5500
5512
|
deep: !0
|
|
5501
5513
|
});
|
|
5502
|
-
const c = (
|
|
5514
|
+
const c = (f) => t.value === f, m = ue(e), { setGlobalModel: p } = B(ge, {
|
|
5503
5515
|
// @ts-ignore
|
|
5504
5516
|
// eslint-disable-next-line no-void
|
|
5505
|
-
setGlobalModel: (
|
|
5517
|
+
setGlobalModel: (f, s) => {
|
|
5506
5518
|
}
|
|
5507
5519
|
});
|
|
5508
|
-
|
|
5520
|
+
p(e.id, {
|
|
5509
5521
|
value: i,
|
|
5510
5522
|
activeKey: t
|
|
5511
5523
|
});
|
|
@@ -5513,16 +5525,16 @@ const as = /* @__PURE__ */ te(os, [["render", ns], ["__scopeId", "data-v-d94f0d6
|
|
|
5513
5525
|
// eslint-disable-next-line no-void
|
|
5514
5526
|
emitRefreshPage: () => {
|
|
5515
5527
|
}
|
|
5516
|
-
}),
|
|
5517
|
-
s !==
|
|
5528
|
+
}), w = m("tabChange", (f, s) => {
|
|
5529
|
+
s !== k(t) && (i.value = f, t.value = s, g());
|
|
5518
5530
|
});
|
|
5519
5531
|
return me(e, {
|
|
5520
|
-
tabChange:
|
|
5532
|
+
tabChange: w
|
|
5521
5533
|
}), {
|
|
5522
5534
|
style: o,
|
|
5523
5535
|
activeKey: t,
|
|
5524
5536
|
isActive: c,
|
|
5525
|
-
tabChange:
|
|
5537
|
+
tabChange: w,
|
|
5526
5538
|
myData: r,
|
|
5527
5539
|
useImagePath: ze
|
|
5528
5540
|
};
|
|
@@ -5592,11 +5604,11 @@ const ds = /* @__PURE__ */ te(rs, [["render", cs], ["__scopeId", "data-v-a2045b9
|
|
|
5592
5604
|
onClick: () => {
|
|
5593
5605
|
if (!e.linkPage && !e.href)
|
|
5594
5606
|
return;
|
|
5595
|
-
const l = e.linkPage || "", r =
|
|
5607
|
+
const l = e.linkPage || "", r = Ro(k(n), l), i = e.href;
|
|
5596
5608
|
let c = i || r;
|
|
5597
5609
|
c = de(c);
|
|
5598
|
-
const
|
|
5599
|
-
|
|
5610
|
+
const m = e.target;
|
|
5611
|
+
m && (m !== "event" ? window.open(c, "_" + m) : window.parent.postMessage({
|
|
5600
5612
|
type: "openPage",
|
|
5601
5613
|
url: i
|
|
5602
5614
|
}, "*"));
|
|
@@ -5637,7 +5649,7 @@ const hs = /* @__PURE__ */ te(fs, [["render", gs], ["__scopeId", "data-v-ef7a7be
|
|
|
5637
5649
|
}), n = q(() => {
|
|
5638
5650
|
let a = de(e.link);
|
|
5639
5651
|
if (e.linkType === "erd" && a != null) {
|
|
5640
|
-
let l =
|
|
5652
|
+
let l = k(t);
|
|
5641
5653
|
l[l.length - 1] === "/" ? l += "erdReport" : l += "/erdReport", a = `${Tl || l}?_t=0&uid=${a}`;
|
|
5642
5654
|
}
|
|
5643
5655
|
return a;
|
|
@@ -5757,7 +5769,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5757
5769
|
default:
|
|
5758
5770
|
return 55;
|
|
5759
5771
|
}
|
|
5760
|
-
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) -
|
|
5772
|
+
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) - k(n)), r = M([]), i = M([]), c = M([]), m = M([]), p = M(0), g = M(1), w = q(() => e.paginationPageSize), f = Nn([]), s = (I = []) => {
|
|
5761
5773
|
if (Array.isArray(I) && I.length > 0) {
|
|
5762
5774
|
const D = I.length, j = e.columnsFixedNum;
|
|
5763
5775
|
for (let Z = 0; Z < D; Z++) {
|
|
@@ -5772,7 +5784,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5772
5784
|
headerCellAlign: Ee,
|
|
5773
5785
|
headerCellColor: Se
|
|
5774
5786
|
} = P;
|
|
5775
|
-
ce && (
|
|
5787
|
+
ce && (f.push(fe), P.filterOptionsInputValue = "", P.filterCheckboxGroupValue = [], P.customFilterDropdown = !0, P.onFilter = (Le, bt) => bt[fe].toString().toLowerCase().includes(Le.toLowerCase())), P.customHeaderCell = () => ({
|
|
5776
5788
|
style: {
|
|
5777
5789
|
display: "table-cell",
|
|
5778
5790
|
verticalAlign: "middle",
|
|
@@ -5790,7 +5802,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5790
5802
|
borderBottomColor: e.borderColor
|
|
5791
5803
|
},
|
|
5792
5804
|
class: {
|
|
5793
|
-
highlight:
|
|
5805
|
+
highlight: k(R) === bt && e.clickHighlight
|
|
5794
5806
|
},
|
|
5795
5807
|
onClick: L("click", () => {
|
|
5796
5808
|
const Ut = e.id, On = _(Ut);
|
|
@@ -5803,7 +5815,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5803
5815
|
}), Array.isArray(P.children) && s(P.children);
|
|
5804
5816
|
}
|
|
5805
5817
|
}
|
|
5806
|
-
},
|
|
5818
|
+
}, u = (I = []) => (e.isUseSeq && I.unshift({
|
|
5807
5819
|
title: "序号",
|
|
5808
5820
|
dataIndex: "SEQ",
|
|
5809
5821
|
align: "center"
|
|
@@ -5812,7 +5824,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5812
5824
|
dataIndex: "ACTION",
|
|
5813
5825
|
width: e.actionColumnWidth
|
|
5814
5826
|
}), s(I), I);
|
|
5815
|
-
|
|
5827
|
+
Q(() => [
|
|
5816
5828
|
e.columns,
|
|
5817
5829
|
e.isUseSeq,
|
|
5818
5830
|
e.isUseAction,
|
|
@@ -5821,18 +5833,18 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5821
5833
|
e.cellBackgroundColor,
|
|
5822
5834
|
e.borderColor
|
|
5823
5835
|
], () => {
|
|
5824
|
-
r.value =
|
|
5836
|
+
r.value = u(pt(e.columns));
|
|
5825
5837
|
}, {
|
|
5826
5838
|
immediate: !0,
|
|
5827
5839
|
deep: !0
|
|
5828
|
-
}),
|
|
5840
|
+
}), Q(() => [e.data, e.dataType], ([I, D]) => {
|
|
5829
5841
|
D === "static" && (i.value = I);
|
|
5830
5842
|
}, {
|
|
5831
5843
|
immediate: !0
|
|
5832
5844
|
});
|
|
5833
|
-
const
|
|
5845
|
+
const S = M({}), y = (I) => {
|
|
5834
5846
|
if (Array.isArray(I)) {
|
|
5835
|
-
const D = I.length, j =
|
|
5847
|
+
const D = I.length, j = f, Z = j.length, P = {};
|
|
5836
5848
|
for (let ae = 0; ae < D; ae++) {
|
|
5837
5849
|
const fe = I[ae];
|
|
5838
5850
|
for (let he = 0; he < Z; he++) {
|
|
@@ -5851,20 +5863,20 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5851
5863
|
const fe = P[ae], he = Array.from(fe);
|
|
5852
5864
|
ne[ae] = he.map((ce) => ({ label: ce, value: ce }));
|
|
5853
5865
|
}
|
|
5854
|
-
|
|
5866
|
+
S.value = ne;
|
|
5855
5867
|
}
|
|
5856
5868
|
};
|
|
5857
|
-
|
|
5858
|
-
const I =
|
|
5859
|
-
if (
|
|
5860
|
-
const { columns: j, dataSource: Z } =
|
|
5861
|
-
c.value = j,
|
|
5869
|
+
Q(() => [e.isReverse, r.value, i.value], () => {
|
|
5870
|
+
const I = k(r), D = k(i);
|
|
5871
|
+
if (y(D), e.isReverse) {
|
|
5872
|
+
const { columns: j, dataSource: Z } = v(pt(I), pt(D));
|
|
5873
|
+
c.value = j, m.value = Z;
|
|
5862
5874
|
} else
|
|
5863
|
-
c.value = I,
|
|
5875
|
+
c.value = I, m.value = D;
|
|
5864
5876
|
}, {
|
|
5865
5877
|
immediate: !0
|
|
5866
5878
|
});
|
|
5867
|
-
const
|
|
5879
|
+
const v = (I, D) => {
|
|
5868
5880
|
const j = I[0], Z = [{
|
|
5869
5881
|
title: j.title,
|
|
5870
5882
|
dataIndex: "col0",
|
|
@@ -5893,21 +5905,21 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5893
5905
|
columns: Z,
|
|
5894
5906
|
dataSource: P
|
|
5895
5907
|
};
|
|
5896
|
-
}, T = M(""),
|
|
5908
|
+
}, T = M(""), A = ke(e), F = M(!1), b = async (I = !0, D = {}) => {
|
|
5897
5909
|
var j;
|
|
5898
5910
|
try {
|
|
5899
|
-
I && (
|
|
5900
|
-
pageNum:
|
|
5901
|
-
pageSize:
|
|
5911
|
+
I && (F.value = !0), k(T) && (D.orderCondition = k(T)), e.paginationShow && (D = {
|
|
5912
|
+
pageNum: k(g),
|
|
5913
|
+
pageSize: k(w),
|
|
5902
5914
|
layer: "1",
|
|
5903
5915
|
...D
|
|
5904
5916
|
});
|
|
5905
|
-
const Z = await
|
|
5906
|
-
|
|
5917
|
+
const Z = await A(D), { rows: P = [], total: ne = 0 } = ((j = Z == null ? void 0 : Z.data) == null ? void 0 : j.data) || {};
|
|
5918
|
+
p.value = ne, Array.isArray(P) && (i.value = P);
|
|
5907
5919
|
} catch (Z) {
|
|
5908
5920
|
console.error(Z);
|
|
5909
5921
|
} finally {
|
|
5910
|
-
|
|
5922
|
+
F.value = !1;
|
|
5911
5923
|
}
|
|
5912
5924
|
}, C = ({ current: I }, D, j) => {
|
|
5913
5925
|
if (g.value = I, j && Object.keys(j).length > 0) {
|
|
@@ -5917,15 +5929,15 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5917
5929
|
}[P];
|
|
5918
5930
|
Z != null && ae != null && (T.value = Z + " " + ae, g.value = 1);
|
|
5919
5931
|
}
|
|
5920
|
-
|
|
5932
|
+
K(!1);
|
|
5921
5933
|
}, d = q(() => {
|
|
5922
5934
|
const I = e.simple, D = [e.paginationPosition];
|
|
5923
5935
|
return e.paginationShow && {
|
|
5924
5936
|
simple: I,
|
|
5925
5937
|
position: D,
|
|
5926
|
-
total:
|
|
5927
|
-
current:
|
|
5928
|
-
pageSize:
|
|
5938
|
+
total: k(p),
|
|
5939
|
+
current: k(g),
|
|
5940
|
+
pageSize: k(w),
|
|
5929
5941
|
showSizeChanger: !1
|
|
5930
5942
|
};
|
|
5931
5943
|
}), h = (I) => +I == 1 ? "是" : +I == 0 ? "否" : I, x = (I, D) => D == null || D === "" ? I : {
|
|
@@ -5954,27 +5966,27 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5954
5966
|
}
|
|
5955
5967
|
}), H = (I = [], D = []) => {
|
|
5956
5968
|
const j = I.map((Z) => ({ title: Z, dataIndex: Z, key: Z }));
|
|
5957
|
-
r.value =
|
|
5969
|
+
r.value = u(j), i.value = D;
|
|
5958
5970
|
}, z = nt(e), N = async () => {
|
|
5959
5971
|
var I, D, j, Z;
|
|
5960
5972
|
try {
|
|
5961
|
-
|
|
5973
|
+
F.value = !0;
|
|
5962
5974
|
const P = await z();
|
|
5963
5975
|
H((D = (I = P == null ? void 0 : P.data) == null ? void 0 : I.data) == null ? void 0 : D.columns, (Z = (j = P == null ? void 0 : P.data) == null ? void 0 : j.data) == null ? void 0 : Z.rows);
|
|
5964
5976
|
} catch (P) {
|
|
5965
5977
|
console.error(P);
|
|
5966
5978
|
} finally {
|
|
5967
|
-
|
|
5979
|
+
F.value = !1;
|
|
5968
5980
|
}
|
|
5969
|
-
},
|
|
5981
|
+
}, R = M(-1), W = (I, D) => ({
|
|
5970
5982
|
onClick: L("rowClick", () => {
|
|
5971
5983
|
const j = e.id, Z = _(j);
|
|
5972
|
-
J(j, { ...Z, RECORD: I }),
|
|
5984
|
+
J(j, { ...Z, RECORD: I }), R.value = D;
|
|
5973
5985
|
})
|
|
5974
|
-
}),
|
|
5986
|
+
}), K = (I = !0) => {
|
|
5975
5987
|
switch (e.dataType) {
|
|
5976
5988
|
case "request":
|
|
5977
|
-
|
|
5989
|
+
b(I);
|
|
5978
5990
|
break;
|
|
5979
5991
|
case "indicator":
|
|
5980
5992
|
N();
|
|
@@ -5986,10 +5998,10 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5986
5998
|
const I = e.id, D = _(I);
|
|
5987
5999
|
J(I, { ...D, RECORD: "" });
|
|
5988
6000
|
},
|
|
5989
|
-
refreshData:
|
|
6001
|
+
refreshData: K
|
|
5990
6002
|
});
|
|
5991
6003
|
const He = q(() => {
|
|
5992
|
-
const I =
|
|
6004
|
+
const I = k(c), D = [];
|
|
5993
6005
|
let j = 0;
|
|
5994
6006
|
for (let P = 0; P < I.length; P++) {
|
|
5995
6007
|
const ne = I[P], { isCalcTotal: ae } = ne;
|
|
@@ -6006,7 +6018,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
6006
6018
|
}
|
|
6007
6019
|
if (j === 0)
|
|
6008
6020
|
return [];
|
|
6009
|
-
const Z =
|
|
6021
|
+
const Z = k(m);
|
|
6010
6022
|
for (let P = 0; P < D.length; P++) {
|
|
6011
6023
|
const ne = D[P];
|
|
6012
6024
|
let ae = 0;
|
|
@@ -6026,10 +6038,10 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
6026
6038
|
});
|
|
6027
6039
|
return typeof Bt == "function" && Bt({
|
|
6028
6040
|
id: e.id,
|
|
6029
|
-
requestFn:
|
|
6041
|
+
requestFn: K,
|
|
6030
6042
|
sortNum: e.requestSort
|
|
6031
6043
|
}), o({
|
|
6032
|
-
refreshData:
|
|
6044
|
+
refreshData: K
|
|
6033
6045
|
}), {
|
|
6034
6046
|
x: a,
|
|
6035
6047
|
y: l,
|
|
@@ -6040,7 +6052,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
6040
6052
|
contrastClass: $,
|
|
6041
6053
|
tableChange: C,
|
|
6042
6054
|
summaryList: He,
|
|
6043
|
-
loading:
|
|
6055
|
+
loading: F,
|
|
6044
6056
|
onTouchHrefEvent: (I, D = "") => {
|
|
6045
6057
|
I === "event" && window.parent.postMessage({
|
|
6046
6058
|
type: "openPage",
|
|
@@ -6055,14 +6067,14 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
6055
6067
|
blank: "_blank"
|
|
6056
6068
|
}[I];
|
|
6057
6069
|
},
|
|
6058
|
-
useRowIndex:
|
|
6070
|
+
useRowIndex: R,
|
|
6059
6071
|
tableColumns: c,
|
|
6060
|
-
tableDataSource:
|
|
6072
|
+
tableDataSource: m,
|
|
6061
6073
|
useFilterOptions: (I) => {
|
|
6062
6074
|
const D = I.dataIndex;
|
|
6063
6075
|
if (typeof D == "string") {
|
|
6064
|
-
let j =
|
|
6065
|
-
const Z =
|
|
6076
|
+
let j = k(S)[D];
|
|
6077
|
+
const Z = k(I.filterOptionsInputValue).trim();
|
|
6066
6078
|
return Array.isArray(j) ? (j = j.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(Z.toLowerCase()) : !0), j) : [];
|
|
6067
6079
|
}
|
|
6068
6080
|
return [];
|
|
@@ -6088,11 +6100,11 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
6088
6100
|
D = e.data;
|
|
6089
6101
|
else if (e.dataType === "request") {
|
|
6090
6102
|
const Se = { layer: "1" };
|
|
6091
|
-
|
|
6092
|
-
const Le = await
|
|
6103
|
+
k(T) && (Se.orderCondition = k(T));
|
|
6104
|
+
const Le = await A(Se);
|
|
6093
6105
|
D = ((Ee = (ce = Le == null ? void 0 : Le.data) == null ? void 0 : ce.data) == null ? void 0 : Ee.rows) || {};
|
|
6094
6106
|
}
|
|
6095
|
-
const j =
|
|
6107
|
+
const j = k(c), Z = [], P = [];
|
|
6096
6108
|
j == null || j.forEach((Se) => {
|
|
6097
6109
|
Z.push(Se.dataIndex), P.push(Se.title);
|
|
6098
6110
|
});
|
|
@@ -6117,12 +6129,12 @@ const ks = {
|
|
|
6117
6129
|
class: "progress-cell"
|
|
6118
6130
|
};
|
|
6119
6131
|
function Ds(e, o, t, n, a, l) {
|
|
6120
|
-
const r = V("a-button"), i = V("a-input"), c = V("a-checkbox-group"),
|
|
6132
|
+
const r = V("a-button"), i = V("a-input"), c = V("a-checkbox-group"), m = V("a-table-summary-cell"), p = V("a-table-summary-row"), g = V("a-table-summary"), w = V("a-table"), f = V("skeleton");
|
|
6121
6133
|
return E(), O("div", {
|
|
6122
6134
|
class: "ecan-table",
|
|
6123
6135
|
style: U(e.style)
|
|
6124
6136
|
}, [
|
|
6125
|
-
G(
|
|
6137
|
+
G(f, { loading: e.loading }, {
|
|
6126
6138
|
default: Y(() => [
|
|
6127
6139
|
e.isUseExport ? (E(), O("div", ks, [
|
|
6128
6140
|
G(r, {
|
|
@@ -6135,7 +6147,7 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6135
6147
|
_: 1
|
|
6136
6148
|
}, 8, ["onClick"])
|
|
6137
6149
|
])) : Ce("", !0),
|
|
6138
|
-
G(
|
|
6150
|
+
G(w, {
|
|
6139
6151
|
class: "table",
|
|
6140
6152
|
style: {
|
|
6141
6153
|
height: "100%"
|
|
@@ -6149,7 +6161,7 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6149
6161
|
pagination: e.pagination,
|
|
6150
6162
|
onChange: e.tableChange
|
|
6151
6163
|
}, {
|
|
6152
|
-
customFilterDropdown: Y(({ column: s, selectedKeys:
|
|
6164
|
+
customFilterDropdown: Y(({ column: s, selectedKeys: u, setSelectedKeys: S, confirm: y, clearFilters: v }) => [
|
|
6153
6165
|
X("div", {
|
|
6154
6166
|
class: "ecan-table-filter",
|
|
6155
6167
|
style: U({
|
|
@@ -6168,14 +6180,14 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6168
6180
|
"onUpdate:value": (T) => s.filterCheckboxGroupValue = T,
|
|
6169
6181
|
class: "filter-checkbox",
|
|
6170
6182
|
options: e.useFilterOptions(s),
|
|
6171
|
-
onChange: (T) => e.useSetSelectedKeys(
|
|
6183
|
+
onChange: (T) => e.useSetSelectedKeys(S, s)
|
|
6172
6184
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6173
6185
|
X("div", null, [
|
|
6174
6186
|
G(r, {
|
|
6175
6187
|
type: "primary",
|
|
6176
6188
|
size: "small",
|
|
6177
6189
|
style: { width: "90px", "margin-right": "8px" },
|
|
6178
|
-
onClick: () =>
|
|
6190
|
+
onClick: () => y()
|
|
6179
6191
|
}, {
|
|
6180
6192
|
default: Y(() => [
|
|
6181
6193
|
_s
|
|
@@ -6185,7 +6197,7 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6185
6197
|
G(r, {
|
|
6186
6198
|
size: "small",
|
|
6187
6199
|
style: { width: "90px" },
|
|
6188
|
-
onClick: go((T) => e.onResetFilter(
|
|
6200
|
+
onClick: go((T) => e.onResetFilter(v, s), ["stop"])
|
|
6189
6201
|
}, {
|
|
6190
6202
|
default: Y(() => [
|
|
6191
6203
|
Ts
|
|
@@ -6195,22 +6207,22 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6195
6207
|
])
|
|
6196
6208
|
], 4)
|
|
6197
6209
|
]),
|
|
6198
|
-
bodyCell: Y(({ column: s, index:
|
|
6199
|
-
s.dataIndex === "SEQ" ? (E(), O("span", Ls, ye(
|
|
6200
|
-
(E(!0), O(Me, null, De(e.actionList, (
|
|
6210
|
+
bodyCell: Y(({ column: s, index: u, text: S, record: y }) => [
|
|
6211
|
+
s.dataIndex === "SEQ" ? (E(), O("span", Ls, ye(u + 1), 1)) : s.dataIndex === "ACTION" ? (E(), O("div", Is, [
|
|
6212
|
+
(E(!0), O(Me, null, De(e.actionList, (v, T) => (E(), O("div", {
|
|
6201
6213
|
class: "action",
|
|
6202
6214
|
key: T
|
|
6203
6215
|
}, [
|
|
6204
6216
|
X("a", {
|
|
6205
|
-
href: e.handleHref(
|
|
6206
|
-
target: e.handleHrefTarget(
|
|
6217
|
+
href: e.handleHref(v.href, y),
|
|
6218
|
+
target: e.handleHrefTarget(v.target),
|
|
6207
6219
|
style: U({
|
|
6208
|
-
color:
|
|
6220
|
+
color: v.color,
|
|
6209
6221
|
fontSize: e.fontSize,
|
|
6210
6222
|
fontWeight: e.fontWeight
|
|
6211
6223
|
}),
|
|
6212
|
-
onClick: (
|
|
6213
|
-
}, ye(
|
|
6224
|
+
onClick: (A) => e.onTouchHrefEvent(v.target, e.handleHref(v.href, y))
|
|
6225
|
+
}, ye(v.title), 13, Ms)
|
|
6214
6226
|
]))), 128))
|
|
6215
6227
|
])) : s.format === "progress" ? (E(), O("div", Es, [
|
|
6216
6228
|
X("div", {
|
|
@@ -6218,32 +6230,32 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6218
6230
|
style: U({
|
|
6219
6231
|
background: s.progressColor || "#1890ff",
|
|
6220
6232
|
height: s.progressWidth || "18px",
|
|
6221
|
-
width: `${e.handleProgressText(
|
|
6233
|
+
width: `${e.handleProgressText(S, s.progressTextDecimalPlaces)}%`
|
|
6222
6234
|
})
|
|
6223
6235
|
}, null, 4),
|
|
6224
6236
|
X("div", {
|
|
6225
6237
|
class: "progress-text",
|
|
6226
6238
|
style: U({
|
|
6227
|
-
color: e.handleProgressText(
|
|
6239
|
+
color: e.handleProgressText(S) < 100 ? s.progressTextColor || "#333" : s.progressFinishedTextColor || "#fff"
|
|
6228
6240
|
})
|
|
6229
|
-
}, ye(e.handleProgressText(
|
|
6241
|
+
}, ye(e.handleProgressText(S, s.progressTextDecimalPlaces)) + "% ", 5)
|
|
6230
6242
|
])) : (E(), O("div", {
|
|
6231
6243
|
key: 3,
|
|
6232
|
-
class: Lt([e.contrastClass(
|
|
6244
|
+
class: Lt([e.contrastClass(S, s.format)]),
|
|
6233
6245
|
style: U({
|
|
6234
6246
|
fontSize: e.fontSize,
|
|
6235
6247
|
fontWeight: e.fontWeight
|
|
6236
6248
|
})
|
|
6237
|
-
}, ye(s.format != null ? e.formatFn(
|
|
6249
|
+
}, ye(s.format != null ? e.formatFn(S, s.format) : S), 7))
|
|
6238
6250
|
]),
|
|
6239
6251
|
summary: Y(() => [
|
|
6240
|
-
e.summaryList.length > 0 ? (E(),
|
|
6252
|
+
e.summaryList.length > 0 ? (E(), Fe(g, { key: 0 }, {
|
|
6241
6253
|
default: Y(() => [
|
|
6242
|
-
G(
|
|
6254
|
+
G(p, null, {
|
|
6243
6255
|
default: Y(() => [
|
|
6244
|
-
(E(!0), O(Me, null, De(e.summaryList, (s,
|
|
6245
|
-
key:
|
|
6246
|
-
index:
|
|
6256
|
+
(E(!0), O(Me, null, De(e.summaryList, (s, u) => (E(), Fe(m, {
|
|
6257
|
+
key: u,
|
|
6258
|
+
index: u,
|
|
6247
6259
|
style: U({
|
|
6248
6260
|
backgroundColor: e.cellBackgroundColor,
|
|
6249
6261
|
textAlign: s.cellAlign || "center",
|
|
@@ -6276,7 +6288,7 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6276
6288
|
}, 8, ["loading"])
|
|
6277
6289
|
], 4);
|
|
6278
6290
|
}
|
|
6279
|
-
const Os = /* @__PURE__ */ te(xs, [["render", Ds], ["__scopeId", "data-v-a690fd8e"]]),
|
|
6291
|
+
const Os = /* @__PURE__ */ te(xs, [["render", Ds], ["__scopeId", "data-v-a690fd8e"]]), Fs = oe(Os), En = {
|
|
6280
6292
|
...re,
|
|
6281
6293
|
mapJson: null,
|
|
6282
6294
|
data: [],
|
|
@@ -6323,10 +6335,10 @@ qe([
|
|
|
6323
6335
|
ia,
|
|
6324
6336
|
xo,
|
|
6325
6337
|
ra,
|
|
6326
|
-
|
|
6338
|
+
Rt,
|
|
6327
6339
|
sa
|
|
6328
6340
|
]);
|
|
6329
|
-
const
|
|
6341
|
+
const Rs = ee({
|
|
6330
6342
|
name: "EcanMap",
|
|
6331
6343
|
components: {
|
|
6332
6344
|
Echarts: Pe
|
|
@@ -6336,15 +6348,15 @@ const Fs = ee({
|
|
|
6336
6348
|
},
|
|
6337
6349
|
setup(e) {
|
|
6338
6350
|
const o = ie(e, ["backgroundImage"]), t = M(), n = q(() => ze(e.geoBackgroundImage)), a = q(() => ze(e.backgroundImage)), l = q(() => e.geoBackgroundImage ? {
|
|
6339
|
-
image:
|
|
6351
|
+
image: k(t),
|
|
6340
6352
|
repeat: e.geoBackgroundImageRepeat
|
|
6341
6353
|
} : e.geoItemStyleAreaColor), r = q(() => {
|
|
6342
|
-
const
|
|
6343
|
-
return e.symbolImage ? "image://" + ze(
|
|
6354
|
+
const p = e.symbolImage;
|
|
6355
|
+
return e.symbolImage ? "image://" + ze(p) : "circle";
|
|
6344
6356
|
}), i = q(() => {
|
|
6345
|
-
const
|
|
6357
|
+
const p = e.geoCenter;
|
|
6346
6358
|
let g;
|
|
6347
|
-
return typeof
|
|
6359
|
+
return typeof p == "string" && p !== "" && (g = p.split(",")), {
|
|
6348
6360
|
// backgroundColor: unref(background),
|
|
6349
6361
|
tooltip: {
|
|
6350
6362
|
show: !0
|
|
@@ -6356,7 +6368,7 @@ const Fs = ee({
|
|
|
6356
6368
|
style: {
|
|
6357
6369
|
width: parseFloat(e.width),
|
|
6358
6370
|
height: parseFloat(e.height),
|
|
6359
|
-
image:
|
|
6371
|
+
image: k(a)
|
|
6360
6372
|
},
|
|
6361
6373
|
top: "center"
|
|
6362
6374
|
}
|
|
@@ -6377,7 +6389,7 @@ const Fs = ee({
|
|
|
6377
6389
|
},
|
|
6378
6390
|
itemStyle: {
|
|
6379
6391
|
// 地图上板块属性
|
|
6380
|
-
areaColor:
|
|
6392
|
+
areaColor: k(l),
|
|
6381
6393
|
borderColor: e.geoItemStyleBorderColor,
|
|
6382
6394
|
borderWidth: e.geoItemStyleBorderWidth,
|
|
6383
6395
|
shadowColor: e.geoItemStyleShadowColor,
|
|
@@ -6404,7 +6416,7 @@ const Fs = ee({
|
|
|
6404
6416
|
itemStyle: {
|
|
6405
6417
|
color: e.itemStyleColor
|
|
6406
6418
|
},
|
|
6407
|
-
symbol:
|
|
6419
|
+
symbol: k(r),
|
|
6408
6420
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6409
6421
|
label: {
|
|
6410
6422
|
show: e.labelShow,
|
|
@@ -6423,17 +6435,17 @@ const Fs = ee({
|
|
|
6423
6435
|
}
|
|
6424
6436
|
]
|
|
6425
6437
|
};
|
|
6426
|
-
}), c = M(!1),
|
|
6438
|
+
}), c = M(!1), m = async () => {
|
|
6427
6439
|
var g;
|
|
6428
|
-
const
|
|
6429
|
-
if (
|
|
6430
|
-
const
|
|
6431
|
-
qn("map", (
|
|
6440
|
+
const p = e.mapJson;
|
|
6441
|
+
if (p != null && p.path) {
|
|
6442
|
+
const w = await Re(((g = window == null ? void 0 : window.config) == null ? void 0 : g.uploadPath) + p.path);
|
|
6443
|
+
qn("map", (w == null ? void 0 : w.data) || {});
|
|
6432
6444
|
}
|
|
6433
6445
|
c.value = !0;
|
|
6434
6446
|
};
|
|
6435
|
-
return
|
|
6436
|
-
|
|
6447
|
+
return Q(() => e.mapJson, () => {
|
|
6448
|
+
m();
|
|
6437
6449
|
}, {
|
|
6438
6450
|
immediate: !0,
|
|
6439
6451
|
deep: !0
|
|
@@ -6453,7 +6465,7 @@ function zs(e, o, t, n, a, l) {
|
|
|
6453
6465
|
class: "ecan-map",
|
|
6454
6466
|
style: U(e.style)
|
|
6455
6467
|
}, [
|
|
6456
|
-
e.isLoadedData ? (E(),
|
|
6468
|
+
e.isLoadedData ? (E(), Fe(r, {
|
|
6457
6469
|
key: 0,
|
|
6458
6470
|
option: e.option,
|
|
6459
6471
|
"update-options": { notMerge: !0 },
|
|
@@ -6467,7 +6479,7 @@ function zs(e, o, t, n, a, l) {
|
|
|
6467
6479
|
])
|
|
6468
6480
|
], 4);
|
|
6469
6481
|
}
|
|
6470
|
-
const Ns = /* @__PURE__ */ te(
|
|
6482
|
+
const Ns = /* @__PURE__ */ te(Rs, [["render", zs], ["__scopeId", "data-v-1fb5cdee"]]), Ps = oe(Ns), lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6471
6483
|
__proto__: null,
|
|
6472
6484
|
EcanBar: vr,
|
|
6473
6485
|
EcanBorder: es,
|
|
@@ -6483,7 +6495,7 @@ const Ns = /* @__PURE__ */ te(Fs, [["render", zs], ["__scopeId", "data-v-1fb5cde
|
|
|
6483
6495
|
EcanList: bi,
|
|
6484
6496
|
EcanMap: Ps,
|
|
6485
6497
|
EcanModal: ls,
|
|
6486
|
-
EcanPageConfig:
|
|
6498
|
+
EcanPageConfig: Rl,
|
|
6487
6499
|
EcanPie: sr,
|
|
6488
6500
|
EcanProportion: wi,
|
|
6489
6501
|
EcanProviderConfig: Bl,
|
|
@@ -6491,7 +6503,7 @@ const Ns = /* @__PURE__ */ te(Fs, [["render", zs], ["__scopeId", "data-v-1fb5cde
|
|
|
6491
6503
|
EcanScatter: xr,
|
|
6492
6504
|
EcanScrollText: Xl,
|
|
6493
6505
|
EcanSelect: Ki,
|
|
6494
|
-
EcanTable:
|
|
6506
|
+
EcanTable: Fs,
|
|
6495
6507
|
EcanTabs: us,
|
|
6496
6508
|
EcanText: Zl,
|
|
6497
6509
|
EcanTimeDisplay: ai,
|
|
@@ -6591,7 +6603,7 @@ export {
|
|
|
6591
6603
|
bi as EcanList,
|
|
6592
6604
|
Ps as EcanMap,
|
|
6593
6605
|
ls as EcanModal,
|
|
6594
|
-
|
|
6606
|
+
Rl as EcanPageConfig,
|
|
6595
6607
|
sr as EcanPie,
|
|
6596
6608
|
wi as EcanProportion,
|
|
6597
6609
|
Bl as EcanProviderConfig,
|
|
@@ -6599,7 +6611,7 @@ export {
|
|
|
6599
6611
|
xr as EcanScatter,
|
|
6600
6612
|
Xl as EcanScrollText,
|
|
6601
6613
|
Ki as EcanSelect,
|
|
6602
|
-
|
|
6614
|
+
Fs as EcanTable,
|
|
6603
6615
|
us as EcanTabs,
|
|
6604
6616
|
Zl as EcanText,
|
|
6605
6617
|
ai as EcanTimeDisplay,
|