@ecan-bi/datav 1.1.84 → 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 -825
- 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,62 +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
|
-
const { value: s } = e;
|
|
3035
|
-
|
|
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]);
|
|
3036
3045
|
}, {
|
|
3037
3046
|
immediate: !0
|
|
3038
3047
|
});
|
|
3039
3048
|
const l = M(!1), r = ke(e), i = async () => {
|
|
3040
|
-
var
|
|
3049
|
+
var f, s;
|
|
3041
3050
|
if (e.dataType === "request") {
|
|
3042
3051
|
l.value = !0;
|
|
3043
3052
|
try {
|
|
3044
|
-
const
|
|
3045
|
-
t.value = ((s = (
|
|
3046
|
-
const
|
|
3047
|
-
e.value === "" &&
|
|
3048
|
-
} catch (
|
|
3049
|
-
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);
|
|
3050
3059
|
} finally {
|
|
3051
3060
|
l.value = !1;
|
|
3052
3061
|
}
|
|
3053
3062
|
}
|
|
3054
|
-
}, { getGlobalModel: c, setGlobalModel:
|
|
3063
|
+
}, { getGlobalModel: c, setGlobalModel: m } = B(ge, {
|
|
3055
3064
|
// @ts-ignore
|
|
3056
3065
|
// eslint-disable-next-line no-void
|
|
3057
|
-
getGlobalModel: (
|
|
3066
|
+
getGlobalModel: (f) => {
|
|
3058
3067
|
},
|
|
3059
3068
|
// @ts-ignore
|
|
3060
3069
|
// eslint-disable-next-line no-void
|
|
3061
|
-
setGlobalModel: (
|
|
3070
|
+
setGlobalModel: (f, s) => {
|
|
3062
3071
|
}
|
|
3063
3072
|
});
|
|
3064
|
-
|
|
3073
|
+
m(e.id, {
|
|
3065
3074
|
type: e.type,
|
|
3066
3075
|
value: a
|
|
3067
3076
|
});
|
|
3068
3077
|
const g = ue(e)("selectChange", () => {
|
|
3069
|
-
const
|
|
3070
|
-
f
|
|
3078
|
+
const f = e.id, s = c(f);
|
|
3079
|
+
m(f, { ...s, RECORD: a });
|
|
3071
3080
|
});
|
|
3072
3081
|
me(e, {
|
|
3073
3082
|
selectChange: g,
|
|
3074
3083
|
refreshData: i
|
|
3075
3084
|
});
|
|
3076
|
-
const { setRequest:
|
|
3085
|
+
const { setRequest: w } = B(ve, {
|
|
3077
3086
|
// @ts-ignore
|
|
3078
3087
|
// eslint-disable-next-line no-void
|
|
3079
|
-
setRequest: ({ id:
|
|
3088
|
+
setRequest: ({ id: f, sortNum: s, requestFn: u }) => {
|
|
3080
3089
|
}
|
|
3081
3090
|
});
|
|
3082
|
-
return
|
|
3091
|
+
return w({
|
|
3083
3092
|
id: e.id,
|
|
3084
3093
|
requestFn: i,
|
|
3085
3094
|
sortNum: e.reque
|
|
@@ -3096,6 +3105,7 @@ const Qi = /* @__PURE__ */ te(Ji, [["render", Yi], ["__scopeId", "data-v-c945c19
|
|
|
3096
3105
|
function tr(e, o, t, n, a, l) {
|
|
3097
3106
|
const r = V("a-tree-select");
|
|
3098
3107
|
return E(), O("div", {
|
|
3108
|
+
class: "ecan-tree-select",
|
|
3099
3109
|
style: U(n.style)
|
|
3100
3110
|
}, [
|
|
3101
3111
|
G(r, {
|
|
@@ -3111,11 +3121,12 @@ function tr(e, o, t, n, a, l) {
|
|
|
3111
3121
|
multiple: e.multiple,
|
|
3112
3122
|
treeCheckable: e.treeCheckable,
|
|
3113
3123
|
filterTreeNode: n.filterTreeNode,
|
|
3124
|
+
placeholder: e.placeholder,
|
|
3114
3125
|
onChange: n.selectChange
|
|
3115
|
-
}, null, 8, ["value", "loading", "fieldNames", "treeData", "maxTagCount", "multiple", "treeCheckable", "filterTreeNode", "onChange"])
|
|
3126
|
+
}, null, 8, ["value", "loading", "fieldNames", "treeData", "maxTagCount", "multiple", "treeCheckable", "filterTreeNode", "placeholder", "onChange"])
|
|
3116
3127
|
], 4);
|
|
3117
3128
|
}
|
|
3118
|
-
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 = {
|
|
3119
3130
|
...re,
|
|
3120
3131
|
id: "",
|
|
3121
3132
|
name: "饼图",
|
|
@@ -3182,7 +3193,7 @@ const or = /* @__PURE__ */ te(er, [["render", tr], ["__scopeId", "data-v-bdd8936
|
|
|
3182
3193
|
toolboxInfoText: "当前无说明信息"
|
|
3183
3194
|
}, sn = le(rn), ar = ["click", "refreshData", "resetRecord"], at = async (e) => {
|
|
3184
3195
|
var c;
|
|
3185
|
-
const o = await
|
|
3196
|
+
const o = await Re.post(e, {}, {
|
|
3186
3197
|
responseType: "blob"
|
|
3187
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);
|
|
3188
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);
|
|
@@ -3192,7 +3203,7 @@ qe([
|
|
|
3192
3203
|
la,
|
|
3193
3204
|
Xe,
|
|
3194
3205
|
et,
|
|
3195
|
-
|
|
3206
|
+
Rt,
|
|
3196
3207
|
tt
|
|
3197
3208
|
]);
|
|
3198
3209
|
const lr = ee({
|
|
@@ -3209,10 +3220,10 @@ const lr = ee({
|
|
|
3209
3220
|
const t = ie(e), n = M([]), a = M(!1), l = () => {
|
|
3210
3221
|
a.value = !1;
|
|
3211
3222
|
}, r = q(() => {
|
|
3212
|
-
let { data:
|
|
3223
|
+
let { data: b = [] } = k(n)[0] || {};
|
|
3213
3224
|
if (Array.isArray(e.colors)) {
|
|
3214
3225
|
const C = e.isUseLabelColors, d = e.colors;
|
|
3215
|
-
|
|
3226
|
+
b = b.map((h, x) => ({
|
|
3216
3227
|
label: C ? { color: d[x] } : {},
|
|
3217
3228
|
...h
|
|
3218
3229
|
}));
|
|
@@ -3310,7 +3321,7 @@ const lr = ee({
|
|
|
3310
3321
|
color: e.colors,
|
|
3311
3322
|
series: [
|
|
3312
3323
|
{
|
|
3313
|
-
data:
|
|
3324
|
+
data: b,
|
|
3314
3325
|
type: "pie",
|
|
3315
3326
|
radius: [e.innerRadius, e.outerRadius],
|
|
3316
3327
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3348,49 +3359,49 @@ const lr = ee({
|
|
|
3348
3359
|
}), { getGlobalModel: i, setGlobalModel: c } = B(ge, {
|
|
3349
3360
|
// @ts-ignore
|
|
3350
3361
|
// eslint-disable-next-line no-void
|
|
3351
|
-
getGlobalModel: (
|
|
3362
|
+
getGlobalModel: (b) => {
|
|
3352
3363
|
},
|
|
3353
3364
|
// @ts-ignore
|
|
3354
3365
|
// eslint-disable-next-line no-void
|
|
3355
|
-
setGlobalModel: (
|
|
3366
|
+
setGlobalModel: (b, C) => {
|
|
3356
3367
|
}
|
|
3357
|
-
}), { pageMode:
|
|
3368
|
+
}), { pageMode: m } = B(be, {
|
|
3358
3369
|
pageMode: "normal"
|
|
3359
|
-
}),
|
|
3360
|
-
const { dataset: d } = Ke(
|
|
3370
|
+
}), p = (b = [], C) => {
|
|
3371
|
+
const { dataset: d } = Ke(b, C);
|
|
3361
3372
|
n.value = d;
|
|
3362
|
-
}, g = (
|
|
3363
|
-
const d = Ke(
|
|
3373
|
+
}, g = (b = [], C) => {
|
|
3374
|
+
const d = Ke(b, C);
|
|
3364
3375
|
n.value = d.dataset;
|
|
3365
3376
|
};
|
|
3366
|
-
|
|
3367
|
-
(e.dataType === "static" ||
|
|
3377
|
+
Q(() => e.data, (b) => {
|
|
3378
|
+
(e.dataType === "static" || k(m) === "design") && p(b);
|
|
3368
3379
|
}, {
|
|
3369
3380
|
immediate: !0,
|
|
3370
3381
|
deep: !0
|
|
3371
3382
|
});
|
|
3372
|
-
const
|
|
3373
|
-
var
|
|
3383
|
+
const w = M(!1), f = ke(e), s = async () => {
|
|
3384
|
+
var b, C;
|
|
3374
3385
|
if (e.dataType === "request")
|
|
3375
3386
|
try {
|
|
3376
|
-
|
|
3377
|
-
const d = await
|
|
3378
|
-
|
|
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);
|
|
3379
3390
|
} catch (d) {
|
|
3380
3391
|
console.error(d);
|
|
3381
3392
|
} finally {
|
|
3382
|
-
|
|
3393
|
+
w.value = !1;
|
|
3383
3394
|
}
|
|
3384
|
-
},
|
|
3395
|
+
}, S = ue(e)("click", (b) => {
|
|
3385
3396
|
const C = i(e.id);
|
|
3386
|
-
c(e.id, { ...C, RECORD:
|
|
3387
|
-
}),
|
|
3388
|
-
var
|
|
3397
|
+
c(e.id, { ...C, RECORD: b == null ? void 0 : b.data });
|
|
3398
|
+
}), y = nt(e), v = async () => {
|
|
3399
|
+
var b;
|
|
3389
3400
|
try {
|
|
3390
|
-
|
|
3391
|
-
const C = await
|
|
3401
|
+
w.value = !0;
|
|
3402
|
+
const C = await y(), { data: d } = C.data || {};
|
|
3392
3403
|
if (d) {
|
|
3393
|
-
const { columns: h = [], rows: x = [] } = ((
|
|
3404
|
+
const { columns: h = [], rows: x = [] } = ((b = C == null ? void 0 : C.data) == null ? void 0 : b.data) ?? {};
|
|
3394
3405
|
let $ = [];
|
|
3395
3406
|
if (h.length > 0) {
|
|
3396
3407
|
const L = h[0], _ = h[1];
|
|
@@ -3404,12 +3415,12 @@ const lr = ee({
|
|
|
3404
3415
|
} catch (C) {
|
|
3405
3416
|
console.error(C);
|
|
3406
3417
|
} finally {
|
|
3407
|
-
|
|
3418
|
+
w.value = !1;
|
|
3408
3419
|
}
|
|
3409
3420
|
}, T = () => {
|
|
3410
3421
|
switch (e.dataType) {
|
|
3411
3422
|
case "indicator":
|
|
3412
|
-
|
|
3423
|
+
v();
|
|
3413
3424
|
break;
|
|
3414
3425
|
case "request":
|
|
3415
3426
|
s();
|
|
@@ -3418,27 +3429,27 @@ const lr = ee({
|
|
|
3418
3429
|
};
|
|
3419
3430
|
me(e, {
|
|
3420
3431
|
resetRecord: () => {
|
|
3421
|
-
const
|
|
3422
|
-
c(
|
|
3432
|
+
const b = e.id, C = i(b);
|
|
3433
|
+
c(b, { ...C, RECORD: "" });
|
|
3423
3434
|
},
|
|
3424
3435
|
refreshData: T,
|
|
3425
|
-
click:
|
|
3436
|
+
click: S
|
|
3426
3437
|
}), o({
|
|
3427
3438
|
refreshData: T
|
|
3428
3439
|
});
|
|
3429
|
-
const { setRequest:
|
|
3430
|
-
setRequest: (
|
|
3440
|
+
const { setRequest: F } = B(ve, {
|
|
3441
|
+
setRequest: (b) => {
|
|
3431
3442
|
}
|
|
3432
3443
|
});
|
|
3433
|
-
return typeof
|
|
3444
|
+
return typeof F == "function" && F({
|
|
3434
3445
|
id: e.id,
|
|
3435
3446
|
requestFn: T,
|
|
3436
3447
|
sortNum: e.requestSort
|
|
3437
3448
|
}), {
|
|
3438
3449
|
option: r,
|
|
3439
3450
|
style: t,
|
|
3440
|
-
click:
|
|
3441
|
-
loading:
|
|
3451
|
+
click: S,
|
|
3452
|
+
loading: w,
|
|
3442
3453
|
visible: a,
|
|
3443
3454
|
hideModal: l
|
|
3444
3455
|
};
|
|
@@ -3633,7 +3644,7 @@ const dr = ee({
|
|
|
3633
3644
|
let $ = "", L = e.tooltipFormatter;
|
|
3634
3645
|
L === "" && (L = "{marker} {a} {c}");
|
|
3635
3646
|
for (let _ = 0; _ < x; _++) {
|
|
3636
|
-
const { marker: J, seriesName: H, name: z, value: N, data:
|
|
3647
|
+
const { marker: J, seriesName: H, name: z, value: N, data: R } = h[_] || {};
|
|
3637
3648
|
_ === 0 && ($ += `${z}<br/>`), $ += de(
|
|
3638
3649
|
L,
|
|
3639
3650
|
{
|
|
@@ -3644,7 +3655,7 @@ const dr = ee({
|
|
|
3644
3655
|
a: H,
|
|
3645
3656
|
b: z,
|
|
3646
3657
|
c: N,
|
|
3647
|
-
...
|
|
3658
|
+
...R
|
|
3648
3659
|
}
|
|
3649
3660
|
},
|
|
3650
3661
|
{
|
|
@@ -3658,7 +3669,7 @@ const dr = ee({
|
|
|
3658
3669
|
},
|
|
3659
3670
|
xAxis: {
|
|
3660
3671
|
type: "category",
|
|
3661
|
-
data:
|
|
3672
|
+
data: k(a),
|
|
3662
3673
|
minInterval: e.xAxisMinInterval,
|
|
3663
3674
|
splitLine: {
|
|
3664
3675
|
show: e.xAxisSplitLineShow,
|
|
@@ -3713,9 +3724,9 @@ const dr = ee({
|
|
|
3713
3724
|
top: e.legendTop,
|
|
3714
3725
|
left: e.legendLeft
|
|
3715
3726
|
},
|
|
3716
|
-
series:
|
|
3727
|
+
series: k(n)
|
|
3717
3728
|
};
|
|
3718
|
-
}), { getGlobalModel: c, setGlobalModel:
|
|
3729
|
+
}), { getGlobalModel: c, setGlobalModel: m } = B(ge, {
|
|
3719
3730
|
// @ts-ignore
|
|
3720
3731
|
// eslint-disable-next-line no-void
|
|
3721
3732
|
getGlobalModel: (C) => {
|
|
@@ -3724,7 +3735,7 @@ const dr = ee({
|
|
|
3724
3735
|
// eslint-disable-next-line no-void
|
|
3725
3736
|
setGlobalModel: (C, d) => {
|
|
3726
3737
|
}
|
|
3727
|
-
}), { pageMode:
|
|
3738
|
+
}), { pageMode: p } = B(be, {
|
|
3728
3739
|
pageMode: "normal"
|
|
3729
3740
|
}), g = (C = [], d = !1) => {
|
|
3730
3741
|
let h;
|
|
@@ -3764,7 +3775,7 @@ const dr = ee({
|
|
|
3764
3775
|
}
|
|
3765
3776
|
});
|
|
3766
3777
|
n.value = $;
|
|
3767
|
-
},
|
|
3778
|
+
}, w = (C = [], d, h = !1) => {
|
|
3768
3779
|
const $ = Ge(C, h ? d : null);
|
|
3769
3780
|
a.value = $.dimensions;
|
|
3770
3781
|
const L = $.dataset, _ = [], J = L.length;
|
|
@@ -3780,32 +3791,32 @@ const dr = ee({
|
|
|
3780
3791
|
});
|
|
3781
3792
|
n.value = _;
|
|
3782
3793
|
};
|
|
3783
|
-
|
|
3784
|
-
(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);
|
|
3785
3796
|
}, {
|
|
3786
3797
|
immediate: !0,
|
|
3787
3798
|
deep: !0
|
|
3788
3799
|
});
|
|
3789
|
-
const
|
|
3800
|
+
const f = M(!1), s = ke(e), u = async () => {
|
|
3790
3801
|
var C, d;
|
|
3791
3802
|
if (e.dataType === "request")
|
|
3792
3803
|
try {
|
|
3793
|
-
|
|
3804
|
+
f.value = !0;
|
|
3794
3805
|
const h = await s();
|
|
3795
3806
|
g((d = (C = h == null ? void 0 : h.data) == null ? void 0 : C.data) == null ? void 0 : d.rows, !0);
|
|
3796
3807
|
} catch (h) {
|
|
3797
3808
|
console.error(h);
|
|
3798
3809
|
} finally {
|
|
3799
|
-
|
|
3810
|
+
f.value = !1;
|
|
3800
3811
|
}
|
|
3801
|
-
},
|
|
3812
|
+
}, y = ue(e)("click", (C) => {
|
|
3802
3813
|
const d = c(e.id);
|
|
3803
|
-
|
|
3804
|
-
}),
|
|
3814
|
+
m(e.id, { ...d, RECORD: C == null ? void 0 : C.data });
|
|
3815
|
+
}), v = nt(e), T = async () => {
|
|
3805
3816
|
var C;
|
|
3806
3817
|
try {
|
|
3807
|
-
|
|
3808
|
-
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) ?? {};
|
|
3809
3820
|
let $;
|
|
3810
3821
|
h.length > 0 && ($ = {
|
|
3811
3822
|
name: h[0],
|
|
@@ -3813,45 +3824,45 @@ const dr = ee({
|
|
|
3813
3824
|
label: L,
|
|
3814
3825
|
value: L
|
|
3815
3826
|
}))
|
|
3816
|
-
}),
|
|
3827
|
+
}), w(x, $, !0);
|
|
3817
3828
|
} catch (d) {
|
|
3818
3829
|
console.error(d);
|
|
3819
3830
|
} finally {
|
|
3820
|
-
|
|
3831
|
+
f.value = !1;
|
|
3821
3832
|
}
|
|
3822
|
-
},
|
|
3833
|
+
}, A = () => {
|
|
3823
3834
|
switch (e.dataType) {
|
|
3824
3835
|
case "indicator":
|
|
3825
3836
|
T();
|
|
3826
3837
|
break;
|
|
3827
3838
|
case "request":
|
|
3828
|
-
|
|
3839
|
+
u();
|
|
3829
3840
|
break;
|
|
3830
3841
|
}
|
|
3831
3842
|
};
|
|
3832
3843
|
me(e, {
|
|
3833
|
-
refreshData:
|
|
3844
|
+
refreshData: A,
|
|
3834
3845
|
resetRecord: () => {
|
|
3835
3846
|
const C = e.id, d = c(C);
|
|
3836
|
-
|
|
3847
|
+
m(C, { ...d, RECORD: "" });
|
|
3837
3848
|
},
|
|
3838
|
-
click:
|
|
3849
|
+
click: y
|
|
3839
3850
|
});
|
|
3840
|
-
const { setRequest:
|
|
3851
|
+
const { setRequest: b } = B(ve, {
|
|
3841
3852
|
setRequest: (C) => {
|
|
3842
3853
|
}
|
|
3843
3854
|
});
|
|
3844
|
-
return typeof
|
|
3855
|
+
return typeof b == "function" && b({
|
|
3845
3856
|
id: e.id,
|
|
3846
|
-
requestFn:
|
|
3857
|
+
requestFn: A,
|
|
3847
3858
|
sortNum: e.requestSort
|
|
3848
3859
|
}), o({
|
|
3849
|
-
refreshData:
|
|
3860
|
+
refreshData: A
|
|
3850
3861
|
}), {
|
|
3851
3862
|
option: i,
|
|
3852
3863
|
style: t,
|
|
3853
|
-
click:
|
|
3854
|
-
loading:
|
|
3864
|
+
click: y,
|
|
3865
|
+
loading: f,
|
|
3855
3866
|
visible: l,
|
|
3856
3867
|
hideModal: r
|
|
3857
3868
|
};
|
|
@@ -4008,7 +4019,7 @@ const hr = ee({
|
|
|
4008
4019
|
const t = ie(e), n = M([]), a = M(!1), l = () => {
|
|
4009
4020
|
a.value = !1;
|
|
4010
4021
|
}, r = q(() => {
|
|
4011
|
-
const d =
|
|
4022
|
+
const d = k(n), h = d.length, x = [];
|
|
4012
4023
|
for (let $ = 0; $ < h; $++) {
|
|
4013
4024
|
const L = {
|
|
4014
4025
|
...d[$],
|
|
@@ -4023,7 +4034,7 @@ const hr = ee({
|
|
|
4023
4034
|
}, x.push(L);
|
|
4024
4035
|
}
|
|
4025
4036
|
return x;
|
|
4026
|
-
}), i = M([]), c = M(!1),
|
|
4037
|
+
}), i = M([]), c = M(!1), m = q(() => {
|
|
4027
4038
|
const d = e.yAxisLabelFormatter, h = e.xAxisLabelFormatter;
|
|
4028
4039
|
return {
|
|
4029
4040
|
toolbox: {
|
|
@@ -4083,17 +4094,17 @@ const hr = ee({
|
|
|
4083
4094
|
let L = "", _ = e.tooltipFormatter;
|
|
4084
4095
|
_ === "" && (_ = "{marker} {a} {c}");
|
|
4085
4096
|
for (let J = 0; J < $; J++) {
|
|
4086
|
-
const { marker: H, seriesName: z, name: N, value:
|
|
4097
|
+
const { marker: H, seriesName: z, name: N, value: R, data: W } = x[J] || {};
|
|
4087
4098
|
J === 0 && (L += `${N}<br/>`), L += de(
|
|
4088
4099
|
_,
|
|
4089
4100
|
{
|
|
4090
4101
|
textData: {
|
|
4091
4102
|
marker: H,
|
|
4092
4103
|
name: N,
|
|
4093
|
-
value:
|
|
4104
|
+
value: R,
|
|
4094
4105
|
a: z,
|
|
4095
4106
|
b: N,
|
|
4096
|
-
c:
|
|
4107
|
+
c: R,
|
|
4097
4108
|
...W
|
|
4098
4109
|
}
|
|
4099
4110
|
},
|
|
@@ -4123,7 +4134,7 @@ const hr = ee({
|
|
|
4123
4134
|
},
|
|
4124
4135
|
xAxis: {
|
|
4125
4136
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
4126
|
-
data: e.isUseHorizontalAxis ? null :
|
|
4137
|
+
data: e.isUseHorizontalAxis ? null : k(i),
|
|
4127
4138
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
4128
4139
|
minInterval: e.xAxisMinInterval,
|
|
4129
4140
|
splitLine: {
|
|
@@ -4153,7 +4164,7 @@ const hr = ee({
|
|
|
4153
4164
|
},
|
|
4154
4165
|
yAxis: {
|
|
4155
4166
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
4156
|
-
data: e.isUseHorizontalAxis ?
|
|
4167
|
+
data: e.isUseHorizontalAxis ? k(i) : null,
|
|
4157
4168
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
4158
4169
|
minInterval: e.yAxisMinInterval,
|
|
4159
4170
|
splitLine: {
|
|
@@ -4177,9 +4188,9 @@ const hr = ee({
|
|
|
4177
4188
|
}
|
|
4178
4189
|
}
|
|
4179
4190
|
},
|
|
4180
|
-
series:
|
|
4191
|
+
series: k(r)
|
|
4181
4192
|
};
|
|
4182
|
-
}), { pageMode:
|
|
4193
|
+
}), { pageMode: p } = B(be, {
|
|
4183
4194
|
pageMode: "normal"
|
|
4184
4195
|
}), g = (d = [], h = !1) => {
|
|
4185
4196
|
let x = {};
|
|
@@ -4191,32 +4202,32 @@ const hr = ee({
|
|
|
4191
4202
|
x = Ke(d, $);
|
|
4192
4203
|
}
|
|
4193
4204
|
n.value = x.dataset, i.value = x.dimensions;
|
|
4194
|
-
},
|
|
4205
|
+
}, w = (d = [], h, x = !1) => {
|
|
4195
4206
|
const L = Ge(d, x ? h : null);
|
|
4196
4207
|
n.value = L.dataset, i.value = L.dimensions;
|
|
4197
4208
|
};
|
|
4198
|
-
|
|
4199
|
-
(e.dataType === "static" ||
|
|
4209
|
+
Q(() => e.data, (d) => {
|
|
4210
|
+
(e.dataType === "static" || k(p) === "design") && g(d);
|
|
4200
4211
|
}, {
|
|
4201
4212
|
immediate: !0,
|
|
4202
4213
|
deep: !0
|
|
4203
4214
|
});
|
|
4204
|
-
const
|
|
4215
|
+
const f = ke(e), s = async () => {
|
|
4205
4216
|
var d, h;
|
|
4206
4217
|
try {
|
|
4207
4218
|
c.value = !0;
|
|
4208
|
-
const x = await
|
|
4219
|
+
const x = await f();
|
|
4209
4220
|
g((h = (d = x == null ? void 0 : x.data) == null ? void 0 : d.data) == null ? void 0 : h.rows, !0);
|
|
4210
4221
|
} catch (x) {
|
|
4211
4222
|
console.error(x);
|
|
4212
4223
|
} finally {
|
|
4213
4224
|
c.value = !1;
|
|
4214
4225
|
}
|
|
4215
|
-
},
|
|
4226
|
+
}, u = nt(e), S = async () => {
|
|
4216
4227
|
var d;
|
|
4217
4228
|
try {
|
|
4218
4229
|
c.value = !0;
|
|
4219
|
-
const h = await
|
|
4230
|
+
const h = await u(), { columns: x = [], rows: $ = [] } = ((d = h == null ? void 0 : h.data) == null ? void 0 : d.data) ?? {};
|
|
4220
4231
|
let L;
|
|
4221
4232
|
x.length > 0 && (L = {
|
|
4222
4233
|
name: x[0],
|
|
@@ -4224,16 +4235,16 @@ const hr = ee({
|
|
|
4224
4235
|
label: _,
|
|
4225
4236
|
value: _
|
|
4226
4237
|
}))
|
|
4227
|
-
}),
|
|
4238
|
+
}), w($, L, !0);
|
|
4228
4239
|
} catch (h) {
|
|
4229
4240
|
console.error(h);
|
|
4230
4241
|
} finally {
|
|
4231
4242
|
c.value = !1;
|
|
4232
4243
|
}
|
|
4233
|
-
},
|
|
4244
|
+
}, y = () => {
|
|
4234
4245
|
switch (e.dataType) {
|
|
4235
4246
|
case "indicator":
|
|
4236
|
-
|
|
4247
|
+
S();
|
|
4237
4248
|
break;
|
|
4238
4249
|
case "request":
|
|
4239
4250
|
s();
|
|
@@ -4241,9 +4252,9 @@ const hr = ee({
|
|
|
4241
4252
|
}
|
|
4242
4253
|
};
|
|
4243
4254
|
o({
|
|
4244
|
-
refreshData:
|
|
4255
|
+
refreshData: y
|
|
4245
4256
|
});
|
|
4246
|
-
const
|
|
4257
|
+
const v = ue(e), { getGlobalModel: T, setGlobalModel: A } = B(ge, {
|
|
4247
4258
|
// @ts-ignore
|
|
4248
4259
|
// eslint-disable-next-line no-void
|
|
4249
4260
|
getGlobalModel: (d) => {
|
|
@@ -4252,29 +4263,29 @@ const hr = ee({
|
|
|
4252
4263
|
// eslint-disable-next-line no-void
|
|
4253
4264
|
setGlobalModel: (d, h) => {
|
|
4254
4265
|
}
|
|
4255
|
-
}),
|
|
4266
|
+
}), F = v("click", (d) => {
|
|
4256
4267
|
const h = T(e.id);
|
|
4257
|
-
|
|
4258
|
-
}), { setRequest:
|
|
4268
|
+
A(e.id, { ...h, RECORD: d.data });
|
|
4269
|
+
}), { setRequest: b } = B(ve, {
|
|
4259
4270
|
setRequest: (d) => {
|
|
4260
4271
|
}
|
|
4261
4272
|
});
|
|
4262
|
-
return typeof
|
|
4273
|
+
return typeof b == "function" && b({
|
|
4263
4274
|
id: e.id,
|
|
4264
|
-
requestFn:
|
|
4275
|
+
requestFn: y,
|
|
4265
4276
|
sortNum: e.requestSort
|
|
4266
4277
|
}), me(e, {
|
|
4267
|
-
refreshData:
|
|
4268
|
-
click:
|
|
4278
|
+
refreshData: y,
|
|
4279
|
+
click: F,
|
|
4269
4280
|
resetRecord: () => {
|
|
4270
4281
|
const d = e.id, h = T(d);
|
|
4271
|
-
|
|
4282
|
+
A(d, { ...h, RECORD: "" });
|
|
4272
4283
|
}
|
|
4273
4284
|
}), {
|
|
4274
|
-
option:
|
|
4285
|
+
option: m,
|
|
4275
4286
|
style: t,
|
|
4276
|
-
refreshData:
|
|
4277
|
-
click:
|
|
4287
|
+
refreshData: y,
|
|
4288
|
+
click: F,
|
|
4278
4289
|
loading: c,
|
|
4279
4290
|
visible: a,
|
|
4280
4291
|
hideModal: l
|
|
@@ -4388,7 +4399,7 @@ qe([
|
|
|
4388
4399
|
xo,
|
|
4389
4400
|
et,
|
|
4390
4401
|
Xe,
|
|
4391
|
-
|
|
4402
|
+
Rt,
|
|
4392
4403
|
tt
|
|
4393
4404
|
]);
|
|
4394
4405
|
const Cr = ee({
|
|
@@ -4405,7 +4416,7 @@ const Cr = ee({
|
|
|
4405
4416
|
const o = ie(e), t = M([]), n = M(!1), a = () => {
|
|
4406
4417
|
n.value = !1;
|
|
4407
4418
|
}, l = q(() => {
|
|
4408
|
-
const
|
|
4419
|
+
const v = e.xAxisLabelFormatter, T = e.yAxisLabelFormatter;
|
|
4409
4420
|
return {
|
|
4410
4421
|
toolbox: {
|
|
4411
4422
|
show: e.toolboxShow,
|
|
@@ -4470,8 +4481,8 @@ const Cr = ee({
|
|
|
4470
4481
|
rotate: e.xAxisLabelRotate,
|
|
4471
4482
|
width: e.xAxisLabelWidth,
|
|
4472
4483
|
overflow: e.xAxisLabelOverflow,
|
|
4473
|
-
formatter(
|
|
4474
|
-
return Ne(
|
|
4484
|
+
formatter(A) {
|
|
4485
|
+
return Ne(v, A);
|
|
4475
4486
|
}
|
|
4476
4487
|
},
|
|
4477
4488
|
axisLine: {
|
|
@@ -4492,8 +4503,8 @@ const Cr = ee({
|
|
|
4492
4503
|
},
|
|
4493
4504
|
axisLabel: {
|
|
4494
4505
|
color: e.yAxisLabelColor,
|
|
4495
|
-
formatter(
|
|
4496
|
-
return Ne(T,
|
|
4506
|
+
formatter(A) {
|
|
4507
|
+
return Ne(T, A);
|
|
4497
4508
|
}
|
|
4498
4509
|
},
|
|
4499
4510
|
axisLine: {
|
|
@@ -4506,14 +4517,14 @@ const Cr = ee({
|
|
|
4506
4517
|
tooltip: {
|
|
4507
4518
|
show: e.tooltipShow,
|
|
4508
4519
|
trigger: e.tooltipTrigger,
|
|
4509
|
-
formatter(
|
|
4520
|
+
formatter(A) {
|
|
4510
4521
|
var x;
|
|
4511
|
-
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;
|
|
4512
4523
|
return de(e.tooltipFormatter, {
|
|
4513
4524
|
textData: {
|
|
4514
|
-
marker:
|
|
4515
|
-
seriesName:
|
|
4516
|
-
a:
|
|
4525
|
+
marker: F,
|
|
4526
|
+
seriesName: b,
|
|
4527
|
+
a: b,
|
|
4517
4528
|
b: d,
|
|
4518
4529
|
c: h,
|
|
4519
4530
|
...C
|
|
@@ -4533,7 +4544,7 @@ const Cr = ee({
|
|
|
4533
4544
|
},
|
|
4534
4545
|
series: [
|
|
4535
4546
|
{
|
|
4536
|
-
data:
|
|
4547
|
+
data: k(t),
|
|
4537
4548
|
type: "scatter",
|
|
4538
4549
|
symbolSize: e.symbolSize
|
|
4539
4550
|
}
|
|
@@ -4542,64 +4553,64 @@ const Cr = ee({
|
|
|
4542
4553
|
}), { getGlobalModel: r, setGlobalModel: i } = B(ge, {
|
|
4543
4554
|
// @ts-ignore
|
|
4544
4555
|
// eslint-disable-next-line no-void
|
|
4545
|
-
getGlobalModel: (
|
|
4556
|
+
getGlobalModel: (v) => {
|
|
4546
4557
|
},
|
|
4547
4558
|
// @ts-ignore
|
|
4548
4559
|
// eslint-disable-next-line no-void
|
|
4549
|
-
setGlobalModel: (
|
|
4560
|
+
setGlobalModel: (v, T) => {
|
|
4550
4561
|
}
|
|
4551
4562
|
}), { pageMode: c } = B(be, {
|
|
4552
4563
|
pageMode: "normal"
|
|
4553
|
-
}),
|
|
4554
|
-
const { name:
|
|
4555
|
-
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 }));
|
|
4556
4567
|
};
|
|
4557
|
-
|
|
4558
|
-
(e.dataType === "static" ||
|
|
4568
|
+
Q(() => e.data, (v) => {
|
|
4569
|
+
(e.dataType === "static" || k(c) === "design") && m(v);
|
|
4559
4570
|
}, {
|
|
4560
4571
|
immediate: !0,
|
|
4561
4572
|
deep: !0
|
|
4562
4573
|
});
|
|
4563
|
-
const
|
|
4564
|
-
var
|
|
4574
|
+
const p = M(!1), g = ke(e), w = async () => {
|
|
4575
|
+
var v, T;
|
|
4565
4576
|
if (e.dataType === "request") {
|
|
4566
|
-
|
|
4577
|
+
p.value = !0;
|
|
4567
4578
|
try {
|
|
4568
|
-
const
|
|
4569
|
-
|
|
4570
|
-
} catch (
|
|
4571
|
-
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);
|
|
4572
4583
|
} finally {
|
|
4573
|
-
|
|
4584
|
+
p.value = !1;
|
|
4574
4585
|
}
|
|
4575
4586
|
}
|
|
4576
|
-
}, s = ue(e)("click", (
|
|
4577
|
-
const T = e.id,
|
|
4578
|
-
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 });
|
|
4579
4590
|
});
|
|
4580
4591
|
me(e, {
|
|
4581
4592
|
refreshData: () => {
|
|
4582
|
-
|
|
4593
|
+
w();
|
|
4583
4594
|
},
|
|
4584
4595
|
click: s,
|
|
4585
4596
|
resetRecord: () => {
|
|
4586
|
-
const
|
|
4587
|
-
i(
|
|
4597
|
+
const v = e.id, T = r(v);
|
|
4598
|
+
i(v, { ...T, RECORD: "" });
|
|
4588
4599
|
}
|
|
4589
4600
|
});
|
|
4590
|
-
const { setRequest:
|
|
4591
|
-
setRequest: (
|
|
4601
|
+
const { setRequest: y } = B(ve, {
|
|
4602
|
+
setRequest: (v) => {
|
|
4592
4603
|
}
|
|
4593
4604
|
});
|
|
4594
|
-
return typeof
|
|
4605
|
+
return typeof y == "function" && y({
|
|
4595
4606
|
id: e.id,
|
|
4596
|
-
requestFn:
|
|
4607
|
+
requestFn: w,
|
|
4597
4608
|
sortNum: e.requestSort
|
|
4598
4609
|
}), {
|
|
4599
4610
|
option: l,
|
|
4600
4611
|
style: o,
|
|
4601
4612
|
click: s,
|
|
4602
|
-
loading:
|
|
4613
|
+
loading: p,
|
|
4603
4614
|
visible: n,
|
|
4604
4615
|
hideModal: a
|
|
4605
4616
|
};
|
|
@@ -4663,7 +4674,7 @@ const wr = /* @__PURE__ */ te(Cr, [["render", Sr]]), xr = oe(wr), hn = {
|
|
|
4663
4674
|
},
|
|
4664
4675
|
setup(e) {
|
|
4665
4676
|
const o = ie(e), t = M();
|
|
4666
|
-
return
|
|
4677
|
+
return Q(() => e.optionCode, (n) => {
|
|
4667
4678
|
try {
|
|
4668
4679
|
const a = eval;
|
|
4669
4680
|
t.value = a(n);
|
|
@@ -4893,20 +4904,20 @@ const Ir = ee({
|
|
|
4893
4904
|
$ === "" && ($ = "{marker} {a} {c}");
|
|
4894
4905
|
const L = e.seriesTypes;
|
|
4895
4906
|
for (let _ = 0; _ < h; _++) {
|
|
4896
|
-
const J = L[_], { tooltipFormatter: H } = J || {}, { marker: z, seriesName: N, name:
|
|
4897
|
-
_ === 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(
|
|
4898
4909
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4899
4910
|
H || $,
|
|
4900
4911
|
{
|
|
4901
4912
|
textData: {
|
|
4902
4913
|
marker: z,
|
|
4903
|
-
name:
|
|
4914
|
+
name: R,
|
|
4904
4915
|
value: W,
|
|
4905
4916
|
seriesName: N,
|
|
4906
4917
|
a: N,
|
|
4907
|
-
b:
|
|
4918
|
+
b: R,
|
|
4908
4919
|
c: W,
|
|
4909
|
-
...
|
|
4920
|
+
...K
|
|
4910
4921
|
}
|
|
4911
4922
|
},
|
|
4912
4923
|
{
|
|
@@ -4924,7 +4935,7 @@ const Ir = ee({
|
|
|
4924
4935
|
xAxis: {
|
|
4925
4936
|
minInterval: e.xAxisMinInterval,
|
|
4926
4937
|
type: "category",
|
|
4927
|
-
data:
|
|
4938
|
+
data: k(a),
|
|
4928
4939
|
splitLine: {
|
|
4929
4940
|
show: e.xAxisSplitLineShow,
|
|
4930
4941
|
lineStyle: {
|
|
@@ -4947,11 +4958,11 @@ const Ir = ee({
|
|
|
4947
4958
|
show: e.xAxisTickShow
|
|
4948
4959
|
}
|
|
4949
4960
|
},
|
|
4950
|
-
yAxis:
|
|
4951
|
-
series:
|
|
4961
|
+
yAxis: k(g),
|
|
4962
|
+
series: k(n)
|
|
4952
4963
|
})), { pageMode: c } = B(be, {
|
|
4953
4964
|
pageMode: "normal"
|
|
4954
|
-
}),
|
|
4965
|
+
}), m = (d = [], h = !1) => {
|
|
4955
4966
|
let x;
|
|
4956
4967
|
if (e.dataFieldConfigType === "key") {
|
|
4957
4968
|
const H = h ? e.keyTypeDataFieldNames : null;
|
|
@@ -4963,10 +4974,10 @@ const Ir = ee({
|
|
|
4963
4974
|
a.value = x.dimensions;
|
|
4964
4975
|
const $ = x.dataset, L = [], _ = $.length, J = e.seriesTypes;
|
|
4965
4976
|
for (let H = 0; H < _; H++) {
|
|
4966
|
-
const z = J[H], { type: N, axisIndex:
|
|
4977
|
+
const z = J[H], { type: N, axisIndex: R } = z || {};
|
|
4967
4978
|
let W = {
|
|
4968
4979
|
type: N,
|
|
4969
|
-
yAxisIndex:
|
|
4980
|
+
yAxisIndex: R,
|
|
4970
4981
|
...$[H]
|
|
4971
4982
|
};
|
|
4972
4983
|
N === "line" && (W = {
|
|
@@ -4985,22 +4996,22 @@ const Ir = ee({
|
|
|
4985
4996
|
}), L.push(W);
|
|
4986
4997
|
}
|
|
4987
4998
|
n.value = L;
|
|
4988
|
-
},
|
|
4999
|
+
}, p = (d = [], h, x = !1) => {
|
|
4989
5000
|
const L = Ge(d, x ? h : null);
|
|
4990
5001
|
a.value = L.dimensions;
|
|
4991
5002
|
const _ = L.dataset, J = [], H = _.length, z = e.seriesTypes;
|
|
4992
5003
|
for (let N = 0; N < H; N++) {
|
|
4993
|
-
const
|
|
5004
|
+
const R = z[N];
|
|
4994
5005
|
J.push({
|
|
4995
|
-
type:
|
|
4996
|
-
yAxisIndex:
|
|
5006
|
+
type: R == null ? void 0 : R.type,
|
|
5007
|
+
yAxisIndex: R == null ? void 0 : R.axisIndex,
|
|
4997
5008
|
..._[N]
|
|
4998
5009
|
});
|
|
4999
5010
|
}
|
|
5000
5011
|
n.value = J;
|
|
5001
5012
|
};
|
|
5002
|
-
|
|
5003
|
-
(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);
|
|
5004
5015
|
}, {
|
|
5005
5016
|
immediate: !0,
|
|
5006
5017
|
deep: !0
|
|
@@ -5028,23 +5039,23 @@ const Ir = ee({
|
|
|
5028
5039
|
}
|
|
5029
5040
|
}
|
|
5030
5041
|
}));
|
|
5031
|
-
}),
|
|
5042
|
+
}), w = M(!1), f = ke(e), s = async () => {
|
|
5032
5043
|
var d, h;
|
|
5033
5044
|
if (e.dataType === "request")
|
|
5034
5045
|
try {
|
|
5035
|
-
|
|
5036
|
-
const x = await
|
|
5037
|
-
|
|
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);
|
|
5038
5049
|
} catch (x) {
|
|
5039
5050
|
console.error(x);
|
|
5040
5051
|
} finally {
|
|
5041
|
-
|
|
5052
|
+
w.value = !1;
|
|
5042
5053
|
}
|
|
5043
|
-
},
|
|
5054
|
+
}, u = nt(e), S = async () => {
|
|
5044
5055
|
var d;
|
|
5045
5056
|
try {
|
|
5046
|
-
|
|
5047
|
-
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) ?? {};
|
|
5048
5059
|
let L;
|
|
5049
5060
|
x.length > 0 && (L = {
|
|
5050
5061
|
name: x[0],
|
|
@@ -5052,16 +5063,16 @@ const Ir = ee({
|
|
|
5052
5063
|
label: _,
|
|
5053
5064
|
value: _
|
|
5054
5065
|
}))
|
|
5055
|
-
}),
|
|
5066
|
+
}), p($, L, !0);
|
|
5056
5067
|
} catch (h) {
|
|
5057
5068
|
console.error(h);
|
|
5058
5069
|
} finally {
|
|
5059
|
-
|
|
5070
|
+
w.value = !1;
|
|
5060
5071
|
}
|
|
5061
|
-
},
|
|
5072
|
+
}, y = () => {
|
|
5062
5073
|
switch (e.dataType) {
|
|
5063
5074
|
case "indicator":
|
|
5064
|
-
|
|
5075
|
+
S();
|
|
5065
5076
|
break;
|
|
5066
5077
|
case "request":
|
|
5067
5078
|
s();
|
|
@@ -5069,9 +5080,9 @@ const Ir = ee({
|
|
|
5069
5080
|
}
|
|
5070
5081
|
};
|
|
5071
5082
|
o({
|
|
5072
|
-
refreshData:
|
|
5083
|
+
refreshData: y
|
|
5073
5084
|
});
|
|
5074
|
-
const
|
|
5085
|
+
const v = ue(e), { getGlobalModel: T, setGlobalModel: A } = B(ge, {
|
|
5075
5086
|
// @ts-ignore
|
|
5076
5087
|
// eslint-disable-next-line no-void
|
|
5077
5088
|
getGlobalModel: (d) => {
|
|
@@ -5080,29 +5091,29 @@ const Ir = ee({
|
|
|
5080
5091
|
// eslint-disable-next-line no-void
|
|
5081
5092
|
setGlobalModel: (d, h) => {
|
|
5082
5093
|
}
|
|
5083
|
-
}),
|
|
5094
|
+
}), F = v("click", (d) => {
|
|
5084
5095
|
const h = T(e.id);
|
|
5085
|
-
|
|
5086
|
-
}), { setRequest:
|
|
5096
|
+
A(e.id, { ...h, RECORD: d == null ? void 0 : d.data });
|
|
5097
|
+
}), { setRequest: b } = B(ve, {
|
|
5087
5098
|
setRequest: (d) => {
|
|
5088
5099
|
}
|
|
5089
5100
|
});
|
|
5090
|
-
return typeof
|
|
5101
|
+
return typeof b == "function" && b({
|
|
5091
5102
|
id: e.id,
|
|
5092
|
-
requestFn:
|
|
5103
|
+
requestFn: y,
|
|
5093
5104
|
sortNum: e.requestSort
|
|
5094
5105
|
}), me(e, {
|
|
5095
5106
|
resetRecord: () => {
|
|
5096
5107
|
const d = e.id, h = T(d);
|
|
5097
|
-
|
|
5108
|
+
A(d, { ...h, RECORD: "" });
|
|
5098
5109
|
},
|
|
5099
|
-
refreshData:
|
|
5100
|
-
click:
|
|
5110
|
+
refreshData: y,
|
|
5111
|
+
click: F
|
|
5101
5112
|
}), {
|
|
5102
5113
|
style: t,
|
|
5103
5114
|
option: i,
|
|
5104
|
-
click:
|
|
5105
|
-
loading:
|
|
5115
|
+
click: F,
|
|
5116
|
+
loading: w,
|
|
5106
5117
|
visible: l,
|
|
5107
5118
|
hideModal: r
|
|
5108
5119
|
};
|
|
@@ -5169,7 +5180,7 @@ const Er = /* @__PURE__ */ te(Ir, [["render", Mr]]), Dr = oe(Er), pn = {
|
|
|
5169
5180
|
useBorderModify: !1,
|
|
5170
5181
|
textShadow: "",
|
|
5171
5182
|
data: {}
|
|
5172
|
-
}, Cn = le(pn), Or = ["click"],
|
|
5183
|
+
}, Cn = le(pn), Or = ["click"], Fr = ee({
|
|
5173
5184
|
name: "EcanBorder",
|
|
5174
5185
|
props: {
|
|
5175
5186
|
...Cn
|
|
@@ -5187,7 +5198,7 @@ const Er = /* @__PURE__ */ te(Ir, [["render", Mr]]), Dr = oe(Er), pn = {
|
|
|
5187
5198
|
height: "100%"
|
|
5188
5199
|
})), l = ue(e)("click", () => {
|
|
5189
5200
|
}), r = M([]);
|
|
5190
|
-
|
|
5201
|
+
Q(() => e.data, (c) => {
|
|
5191
5202
|
r.value = c;
|
|
5192
5203
|
}, {
|
|
5193
5204
|
immediate: !0,
|
|
@@ -5198,7 +5209,7 @@ const Er = /* @__PURE__ */ te(Ir, [["render", Mr]]), Dr = oe(Er), pn = {
|
|
|
5198
5209
|
const { setGlobalModel: i } = B(ge, {
|
|
5199
5210
|
// @ts-ignore
|
|
5200
5211
|
// eslint-disable-next-line no-void
|
|
5201
|
-
setGlobalModel: (c,
|
|
5212
|
+
setGlobalModel: (c, m) => {
|
|
5202
5213
|
}
|
|
5203
5214
|
});
|
|
5204
5215
|
return i(e.id, {
|
|
@@ -5211,10 +5222,10 @@ const Er = /* @__PURE__ */ te(Ir, [["render", Mr]]), Dr = oe(Er), pn = {
|
|
|
5211
5222
|
theme: t
|
|
5212
5223
|
};
|
|
5213
5224
|
}
|
|
5214
|
-
}),
|
|
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==";
|
|
5215
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", {
|
|
5216
5227
|
class: "title-decoration-left",
|
|
5217
|
-
src:
|
|
5228
|
+
src: Rr
|
|
5218
5229
|
}, null, -1)), jr = { class: "title" }, Wr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("img", {
|
|
5219
5230
|
class: "title-decoration-right",
|
|
5220
5231
|
src: $r
|
|
@@ -5264,7 +5275,7 @@ function Kr(e, o, t, n, a, l) {
|
|
|
5264
5275
|
])) : Ce("", !0)
|
|
5265
5276
|
], 4);
|
|
5266
5277
|
}
|
|
5267
|
-
const Xr = /* @__PURE__ */ te(
|
|
5278
|
+
const Xr = /* @__PURE__ */ te(Fr, [["render", Kr], ["__scopeId", "data-v-1550b11b"]]), es = oe(Xr), Sn = {
|
|
5268
5279
|
id: "",
|
|
5269
5280
|
type: "ecanModal",
|
|
5270
5281
|
title: "",
|
|
@@ -5292,86 +5303,86 @@ const Xr = /* @__PURE__ */ te(Rr, [["render", Kr], ["__scopeId", "data-v-1550b11
|
|
|
5292
5303
|
},
|
|
5293
5304
|
setup(e) {
|
|
5294
5305
|
const o = () => document.getElementById("ProviderConfig") || document.body, t = q(() => {
|
|
5295
|
-
const
|
|
5306
|
+
const R = e.position;
|
|
5296
5307
|
return {
|
|
5297
5308
|
verticalAlign: {
|
|
5298
5309
|
default: "",
|
|
5299
5310
|
top: "top",
|
|
5300
5311
|
center: "middle",
|
|
5301
5312
|
bottom: "bottom"
|
|
5302
|
-
}[
|
|
5313
|
+
}[R]
|
|
5303
5314
|
};
|
|
5304
|
-
}), n = e.width, a = e.height, l = e.originalWidth, r = e.originalHeight, i = M("80%"), c = M(0),
|
|
5305
|
-
let
|
|
5306
|
-
const
|
|
5307
|
-
|
|
5308
|
-
const
|
|
5309
|
-
c.value = W *
|
|
5310
|
-
width: `${
|
|
5311
|
-
height: `${
|
|
5312
|
-
},
|
|
5313
|
-
...
|
|
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),
|
|
5314
5325
|
backgroundImage: ze(e.backgroundImage, !0),
|
|
5315
|
-
transform: `scale(${
|
|
5326
|
+
transform: `scale(${k(c) / parseFloat(n)},${k(p) / parseFloat(a)})`
|
|
5316
5327
|
};
|
|
5317
|
-
},
|
|
5318
|
-
|
|
5328
|
+
}, v = Ft(() => {
|
|
5329
|
+
y();
|
|
5319
5330
|
}, 100), T = () => {
|
|
5320
|
-
const
|
|
5321
|
-
|
|
5331
|
+
const R = window.MutationObserver;
|
|
5332
|
+
S = new R(v), S.observe(document.body, {
|
|
5322
5333
|
attributes: !0,
|
|
5323
5334
|
attributeFilter: ["style"],
|
|
5324
5335
|
attributeOldValue: !0
|
|
5325
5336
|
});
|
|
5326
|
-
},
|
|
5327
|
-
|
|
5328
|
-
},
|
|
5337
|
+
}, A = () => {
|
|
5338
|
+
S && (S.disconnect(), S.takeRecords(), S = null);
|
|
5339
|
+
}, F = M(!1), { touchRequest: b } = B(ve, {
|
|
5329
5340
|
// @ts-ignore
|
|
5330
5341
|
// eslint-disable-next-line no-void
|
|
5331
5342
|
touchRequest: () => {
|
|
5332
5343
|
}
|
|
5333
5344
|
}), C = () => {
|
|
5334
|
-
|
|
5345
|
+
F.value = !0;
|
|
5335
5346
|
}, d = () => {
|
|
5336
|
-
|
|
5347
|
+
F.value = !1;
|
|
5337
5348
|
}, h = () => {
|
|
5338
5349
|
d();
|
|
5339
5350
|
}, x = () => {
|
|
5340
5351
|
d();
|
|
5341
5352
|
}, { setModalModel: $, pushUseModalIds: L, popUseModalIds: _ } = B(Oo, {
|
|
5342
|
-
pushUseModalIds: (
|
|
5353
|
+
pushUseModalIds: (R) => {
|
|
5343
5354
|
},
|
|
5344
5355
|
popUseModalIds: () => {
|
|
5345
5356
|
},
|
|
5346
|
-
setModalModel: (
|
|
5357
|
+
setModalModel: (R, W) => {
|
|
5347
5358
|
}
|
|
5348
5359
|
}), J = () => {
|
|
5349
|
-
const
|
|
5360
|
+
const R = e.id;
|
|
5350
5361
|
let W = [];
|
|
5351
|
-
const
|
|
5352
|
-
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)]));
|
|
5353
5364
|
};
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
}),
|
|
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());
|
|
5358
5369
|
});
|
|
5359
|
-
const H = q(() =>
|
|
5360
|
-
let
|
|
5361
|
-
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;
|
|
5362
5373
|
});
|
|
5363
5374
|
return me(e, {
|
|
5364
5375
|
showModal: C
|
|
5365
5376
|
}), {
|
|
5366
|
-
modalRef:
|
|
5377
|
+
modalRef: u,
|
|
5367
5378
|
containStyle: g,
|
|
5368
|
-
contentStyle:
|
|
5379
|
+
contentStyle: f,
|
|
5369
5380
|
getContainer: o,
|
|
5370
5381
|
modalStyle: t,
|
|
5371
5382
|
modalWith: i,
|
|
5372
5383
|
isFullModal: z,
|
|
5373
|
-
style:
|
|
5374
|
-
visible:
|
|
5384
|
+
style: w,
|
|
5385
|
+
visible: F,
|
|
5375
5386
|
showModal: C,
|
|
5376
5387
|
onOk: h,
|
|
5377
5388
|
onCancel: x,
|
|
@@ -5383,7 +5394,7 @@ const Xr = /* @__PURE__ */ te(Rr, [["render", Kr], ["__scopeId", "data-v-1550b11
|
|
|
5383
5394
|
});
|
|
5384
5395
|
function ns(e, o, t, n, a, l) {
|
|
5385
5396
|
const r = V("a-modal");
|
|
5386
|
-
return E(),
|
|
5397
|
+
return E(), Fe(r, {
|
|
5387
5398
|
getContainer: e.getContainer,
|
|
5388
5399
|
wrapClassName: e.wrapClassName,
|
|
5389
5400
|
centered: "",
|
|
@@ -5395,7 +5406,7 @@ function ns(e, o, t, n, a, l) {
|
|
|
5395
5406
|
onOk: e.onOk,
|
|
5396
5407
|
onCancel: e.onCancel,
|
|
5397
5408
|
ref: "modalRef"
|
|
5398
|
-
},
|
|
5409
|
+
}, Rn({
|
|
5399
5410
|
default: Y(() => [
|
|
5400
5411
|
X("div", {
|
|
5401
5412
|
class: "contain",
|
|
@@ -5407,7 +5418,7 @@ function ns(e, o, t, n, a, l) {
|
|
|
5407
5418
|
class: "content",
|
|
5408
5419
|
style: U(e.contentStyle)
|
|
5409
5420
|
}, [
|
|
5410
|
-
(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({
|
|
5411
5422
|
key: i.id + c
|
|
5412
5423
|
}, i), null, 16))), 128))
|
|
5413
5424
|
], 4)) : Ce("", !0)
|
|
@@ -5472,8 +5483,8 @@ const as = /* @__PURE__ */ te(os, [["render", ns], ["__scopeId", "data-v-d94f0d6
|
|
|
5472
5483
|
},
|
|
5473
5484
|
setup(e) {
|
|
5474
5485
|
const o = ie(e), t = M(0);
|
|
5475
|
-
|
|
5476
|
-
t.value =
|
|
5486
|
+
Q(() => e.activeKey, (f) => {
|
|
5487
|
+
t.value = f;
|
|
5477
5488
|
}, {
|
|
5478
5489
|
immediate: !0
|
|
5479
5490
|
});
|
|
@@ -5482,31 +5493,31 @@ const as = /* @__PURE__ */ te(os, [["render", ns], ["__scopeId", "data-v-d94f0d6
|
|
|
5482
5493
|
});
|
|
5483
5494
|
let a = null;
|
|
5484
5495
|
const l = () => {
|
|
5485
|
-
const
|
|
5486
|
-
e.autoSwitch &&
|
|
5487
|
-
const s =
|
|
5488
|
-
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();
|
|
5489
5500
|
}, e.autoSwitchInterval * 1e3));
|
|
5490
5501
|
};
|
|
5491
5502
|
Ue(() => {
|
|
5492
|
-
|
|
5503
|
+
k(n) !== "design" && l();
|
|
5493
5504
|
}), Tt(() => {
|
|
5494
5505
|
clearInterval(a);
|
|
5495
5506
|
});
|
|
5496
5507
|
const r = M([]), i = M({});
|
|
5497
|
-
|
|
5498
|
-
r.value =
|
|
5508
|
+
Q(() => e.data, (f) => {
|
|
5509
|
+
r.value = f, i.value = Array.isArray(f) && f.length > 0 ? f[0] : {};
|
|
5499
5510
|
}, {
|
|
5500
5511
|
immediate: !0,
|
|
5501
5512
|
deep: !0
|
|
5502
5513
|
});
|
|
5503
|
-
const c = (
|
|
5514
|
+
const c = (f) => t.value === f, m = ue(e), { setGlobalModel: p } = B(ge, {
|
|
5504
5515
|
// @ts-ignore
|
|
5505
5516
|
// eslint-disable-next-line no-void
|
|
5506
|
-
setGlobalModel: (
|
|
5517
|
+
setGlobalModel: (f, s) => {
|
|
5507
5518
|
}
|
|
5508
5519
|
});
|
|
5509
|
-
|
|
5520
|
+
p(e.id, {
|
|
5510
5521
|
value: i,
|
|
5511
5522
|
activeKey: t
|
|
5512
5523
|
});
|
|
@@ -5514,16 +5525,16 @@ const as = /* @__PURE__ */ te(os, [["render", ns], ["__scopeId", "data-v-d94f0d6
|
|
|
5514
5525
|
// eslint-disable-next-line no-void
|
|
5515
5526
|
emitRefreshPage: () => {
|
|
5516
5527
|
}
|
|
5517
|
-
}),
|
|
5518
|
-
s !==
|
|
5528
|
+
}), w = m("tabChange", (f, s) => {
|
|
5529
|
+
s !== k(t) && (i.value = f, t.value = s, g());
|
|
5519
5530
|
});
|
|
5520
5531
|
return me(e, {
|
|
5521
|
-
tabChange:
|
|
5532
|
+
tabChange: w
|
|
5522
5533
|
}), {
|
|
5523
5534
|
style: o,
|
|
5524
5535
|
activeKey: t,
|
|
5525
5536
|
isActive: c,
|
|
5526
|
-
tabChange:
|
|
5537
|
+
tabChange: w,
|
|
5527
5538
|
myData: r,
|
|
5528
5539
|
useImagePath: ze
|
|
5529
5540
|
};
|
|
@@ -5593,11 +5604,11 @@ const ds = /* @__PURE__ */ te(rs, [["render", cs], ["__scopeId", "data-v-a2045b9
|
|
|
5593
5604
|
onClick: () => {
|
|
5594
5605
|
if (!e.linkPage && !e.href)
|
|
5595
5606
|
return;
|
|
5596
|
-
const l = e.linkPage || "", r =
|
|
5607
|
+
const l = e.linkPage || "", r = Ro(k(n), l), i = e.href;
|
|
5597
5608
|
let c = i || r;
|
|
5598
5609
|
c = de(c);
|
|
5599
|
-
const
|
|
5600
|
-
|
|
5610
|
+
const m = e.target;
|
|
5611
|
+
m && (m !== "event" ? window.open(c, "_" + m) : window.parent.postMessage({
|
|
5601
5612
|
type: "openPage",
|
|
5602
5613
|
url: i
|
|
5603
5614
|
}, "*"));
|
|
@@ -5638,7 +5649,7 @@ const hs = /* @__PURE__ */ te(fs, [["render", gs], ["__scopeId", "data-v-ef7a7be
|
|
|
5638
5649
|
}), n = q(() => {
|
|
5639
5650
|
let a = de(e.link);
|
|
5640
5651
|
if (e.linkType === "erd" && a != null) {
|
|
5641
|
-
let l =
|
|
5652
|
+
let l = k(t);
|
|
5642
5653
|
l[l.length - 1] === "/" ? l += "erdReport" : l += "/erdReport", a = `${Tl || l}?_t=0&uid=${a}`;
|
|
5643
5654
|
}
|
|
5644
5655
|
return a;
|
|
@@ -5758,7 +5769,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5758
5769
|
default:
|
|
5759
5770
|
return 55;
|
|
5760
5771
|
}
|
|
5761
|
-
}), 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 = []) => {
|
|
5762
5773
|
if (Array.isArray(I) && I.length > 0) {
|
|
5763
5774
|
const D = I.length, j = e.columnsFixedNum;
|
|
5764
5775
|
for (let Z = 0; Z < D; Z++) {
|
|
@@ -5773,7 +5784,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5773
5784
|
headerCellAlign: Ee,
|
|
5774
5785
|
headerCellColor: Se
|
|
5775
5786
|
} = P;
|
|
5776
|
-
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 = () => ({
|
|
5777
5788
|
style: {
|
|
5778
5789
|
display: "table-cell",
|
|
5779
5790
|
verticalAlign: "middle",
|
|
@@ -5791,7 +5802,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5791
5802
|
borderBottomColor: e.borderColor
|
|
5792
5803
|
},
|
|
5793
5804
|
class: {
|
|
5794
|
-
highlight:
|
|
5805
|
+
highlight: k(R) === bt && e.clickHighlight
|
|
5795
5806
|
},
|
|
5796
5807
|
onClick: L("click", () => {
|
|
5797
5808
|
const Ut = e.id, On = _(Ut);
|
|
@@ -5804,7 +5815,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5804
5815
|
}), Array.isArray(P.children) && s(P.children);
|
|
5805
5816
|
}
|
|
5806
5817
|
}
|
|
5807
|
-
},
|
|
5818
|
+
}, u = (I = []) => (e.isUseSeq && I.unshift({
|
|
5808
5819
|
title: "序号",
|
|
5809
5820
|
dataIndex: "SEQ",
|
|
5810
5821
|
align: "center"
|
|
@@ -5813,7 +5824,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5813
5824
|
dataIndex: "ACTION",
|
|
5814
5825
|
width: e.actionColumnWidth
|
|
5815
5826
|
}), s(I), I);
|
|
5816
|
-
|
|
5827
|
+
Q(() => [
|
|
5817
5828
|
e.columns,
|
|
5818
5829
|
e.isUseSeq,
|
|
5819
5830
|
e.isUseAction,
|
|
@@ -5822,18 +5833,18 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5822
5833
|
e.cellBackgroundColor,
|
|
5823
5834
|
e.borderColor
|
|
5824
5835
|
], () => {
|
|
5825
|
-
r.value =
|
|
5836
|
+
r.value = u(pt(e.columns));
|
|
5826
5837
|
}, {
|
|
5827
5838
|
immediate: !0,
|
|
5828
5839
|
deep: !0
|
|
5829
|
-
}),
|
|
5840
|
+
}), Q(() => [e.data, e.dataType], ([I, D]) => {
|
|
5830
5841
|
D === "static" && (i.value = I);
|
|
5831
5842
|
}, {
|
|
5832
5843
|
immediate: !0
|
|
5833
5844
|
});
|
|
5834
|
-
const
|
|
5845
|
+
const S = M({}), y = (I) => {
|
|
5835
5846
|
if (Array.isArray(I)) {
|
|
5836
|
-
const D = I.length, j =
|
|
5847
|
+
const D = I.length, j = f, Z = j.length, P = {};
|
|
5837
5848
|
for (let ae = 0; ae < D; ae++) {
|
|
5838
5849
|
const fe = I[ae];
|
|
5839
5850
|
for (let he = 0; he < Z; he++) {
|
|
@@ -5852,20 +5863,20 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5852
5863
|
const fe = P[ae], he = Array.from(fe);
|
|
5853
5864
|
ne[ae] = he.map((ce) => ({ label: ce, value: ce }));
|
|
5854
5865
|
}
|
|
5855
|
-
|
|
5866
|
+
S.value = ne;
|
|
5856
5867
|
}
|
|
5857
5868
|
};
|
|
5858
|
-
|
|
5859
|
-
const I =
|
|
5860
|
-
if (
|
|
5861
|
-
const { columns: j, dataSource: Z } =
|
|
5862
|
-
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;
|
|
5863
5874
|
} else
|
|
5864
|
-
c.value = I,
|
|
5875
|
+
c.value = I, m.value = D;
|
|
5865
5876
|
}, {
|
|
5866
5877
|
immediate: !0
|
|
5867
5878
|
});
|
|
5868
|
-
const
|
|
5879
|
+
const v = (I, D) => {
|
|
5869
5880
|
const j = I[0], Z = [{
|
|
5870
5881
|
title: j.title,
|
|
5871
5882
|
dataIndex: "col0",
|
|
@@ -5894,21 +5905,21 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5894
5905
|
columns: Z,
|
|
5895
5906
|
dataSource: P
|
|
5896
5907
|
};
|
|
5897
|
-
}, T = M(""),
|
|
5908
|
+
}, T = M(""), A = ke(e), F = M(!1), b = async (I = !0, D = {}) => {
|
|
5898
5909
|
var j;
|
|
5899
5910
|
try {
|
|
5900
|
-
I && (
|
|
5901
|
-
pageNum:
|
|
5902
|
-
pageSize:
|
|
5911
|
+
I && (F.value = !0), k(T) && (D.orderCondition = k(T)), e.paginationShow && (D = {
|
|
5912
|
+
pageNum: k(g),
|
|
5913
|
+
pageSize: k(w),
|
|
5903
5914
|
layer: "1",
|
|
5904
5915
|
...D
|
|
5905
5916
|
});
|
|
5906
|
-
const Z = await
|
|
5907
|
-
|
|
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);
|
|
5908
5919
|
} catch (Z) {
|
|
5909
5920
|
console.error(Z);
|
|
5910
5921
|
} finally {
|
|
5911
|
-
|
|
5922
|
+
F.value = !1;
|
|
5912
5923
|
}
|
|
5913
5924
|
}, C = ({ current: I }, D, j) => {
|
|
5914
5925
|
if (g.value = I, j && Object.keys(j).length > 0) {
|
|
@@ -5918,15 +5929,15 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5918
5929
|
}[P];
|
|
5919
5930
|
Z != null && ae != null && (T.value = Z + " " + ae, g.value = 1);
|
|
5920
5931
|
}
|
|
5921
|
-
|
|
5932
|
+
K(!1);
|
|
5922
5933
|
}, d = q(() => {
|
|
5923
5934
|
const I = e.simple, D = [e.paginationPosition];
|
|
5924
5935
|
return e.paginationShow && {
|
|
5925
5936
|
simple: I,
|
|
5926
5937
|
position: D,
|
|
5927
|
-
total:
|
|
5928
|
-
current:
|
|
5929
|
-
pageSize:
|
|
5938
|
+
total: k(p),
|
|
5939
|
+
current: k(g),
|
|
5940
|
+
pageSize: k(w),
|
|
5930
5941
|
showSizeChanger: !1
|
|
5931
5942
|
};
|
|
5932
5943
|
}), h = (I) => +I == 1 ? "是" : +I == 0 ? "否" : I, x = (I, D) => D == null || D === "" ? I : {
|
|
@@ -5955,27 +5966,27 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5955
5966
|
}
|
|
5956
5967
|
}), H = (I = [], D = []) => {
|
|
5957
5968
|
const j = I.map((Z) => ({ title: Z, dataIndex: Z, key: Z }));
|
|
5958
|
-
r.value =
|
|
5969
|
+
r.value = u(j), i.value = D;
|
|
5959
5970
|
}, z = nt(e), N = async () => {
|
|
5960
5971
|
var I, D, j, Z;
|
|
5961
5972
|
try {
|
|
5962
|
-
|
|
5973
|
+
F.value = !0;
|
|
5963
5974
|
const P = await z();
|
|
5964
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);
|
|
5965
5976
|
} catch (P) {
|
|
5966
5977
|
console.error(P);
|
|
5967
5978
|
} finally {
|
|
5968
|
-
|
|
5979
|
+
F.value = !1;
|
|
5969
5980
|
}
|
|
5970
|
-
},
|
|
5981
|
+
}, R = M(-1), W = (I, D) => ({
|
|
5971
5982
|
onClick: L("rowClick", () => {
|
|
5972
5983
|
const j = e.id, Z = _(j);
|
|
5973
|
-
J(j, { ...Z, RECORD: I }),
|
|
5984
|
+
J(j, { ...Z, RECORD: I }), R.value = D;
|
|
5974
5985
|
})
|
|
5975
|
-
}),
|
|
5986
|
+
}), K = (I = !0) => {
|
|
5976
5987
|
switch (e.dataType) {
|
|
5977
5988
|
case "request":
|
|
5978
|
-
|
|
5989
|
+
b(I);
|
|
5979
5990
|
break;
|
|
5980
5991
|
case "indicator":
|
|
5981
5992
|
N();
|
|
@@ -5987,10 +5998,10 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
5987
5998
|
const I = e.id, D = _(I);
|
|
5988
5999
|
J(I, { ...D, RECORD: "" });
|
|
5989
6000
|
},
|
|
5990
|
-
refreshData:
|
|
6001
|
+
refreshData: K
|
|
5991
6002
|
});
|
|
5992
6003
|
const He = q(() => {
|
|
5993
|
-
const I =
|
|
6004
|
+
const I = k(c), D = [];
|
|
5994
6005
|
let j = 0;
|
|
5995
6006
|
for (let P = 0; P < I.length; P++) {
|
|
5996
6007
|
const ne = I[P], { isCalcTotal: ae } = ne;
|
|
@@ -6007,7 +6018,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
6007
6018
|
}
|
|
6008
6019
|
if (j === 0)
|
|
6009
6020
|
return [];
|
|
6010
|
-
const Z =
|
|
6021
|
+
const Z = k(m);
|
|
6011
6022
|
for (let P = 0; P < D.length; P++) {
|
|
6012
6023
|
const ne = D[P];
|
|
6013
6024
|
let ae = 0;
|
|
@@ -6027,10 +6038,10 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
6027
6038
|
});
|
|
6028
6039
|
return typeof Bt == "function" && Bt({
|
|
6029
6040
|
id: e.id,
|
|
6030
|
-
requestFn:
|
|
6041
|
+
requestFn: K,
|
|
6031
6042
|
sortNum: e.requestSort
|
|
6032
6043
|
}), o({
|
|
6033
|
-
refreshData:
|
|
6044
|
+
refreshData: K
|
|
6034
6045
|
}), {
|
|
6035
6046
|
x: a,
|
|
6036
6047
|
y: l,
|
|
@@ -6041,7 +6052,7 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
6041
6052
|
contrastClass: $,
|
|
6042
6053
|
tableChange: C,
|
|
6043
6054
|
summaryList: He,
|
|
6044
|
-
loading:
|
|
6055
|
+
loading: F,
|
|
6045
6056
|
onTouchHrefEvent: (I, D = "") => {
|
|
6046
6057
|
I === "event" && window.parent.postMessage({
|
|
6047
6058
|
type: "openPage",
|
|
@@ -6056,14 +6067,14 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
6056
6067
|
blank: "_blank"
|
|
6057
6068
|
}[I];
|
|
6058
6069
|
},
|
|
6059
|
-
useRowIndex:
|
|
6070
|
+
useRowIndex: R,
|
|
6060
6071
|
tableColumns: c,
|
|
6061
|
-
tableDataSource:
|
|
6072
|
+
tableDataSource: m,
|
|
6062
6073
|
useFilterOptions: (I) => {
|
|
6063
6074
|
const D = I.dataIndex;
|
|
6064
6075
|
if (typeof D == "string") {
|
|
6065
|
-
let j =
|
|
6066
|
-
const Z =
|
|
6076
|
+
let j = k(S)[D];
|
|
6077
|
+
const Z = k(I.filterOptionsInputValue).trim();
|
|
6067
6078
|
return Array.isArray(j) ? (j = j.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(Z.toLowerCase()) : !0), j) : [];
|
|
6068
6079
|
}
|
|
6069
6080
|
return [];
|
|
@@ -6089,11 +6100,11 @@ const Cs = /* @__PURE__ */ te(bs, [["render", ps], ["__scopeId", "data-v-19bc100
|
|
|
6089
6100
|
D = e.data;
|
|
6090
6101
|
else if (e.dataType === "request") {
|
|
6091
6102
|
const Se = { layer: "1" };
|
|
6092
|
-
|
|
6093
|
-
const Le = await
|
|
6103
|
+
k(T) && (Se.orderCondition = k(T));
|
|
6104
|
+
const Le = await A(Se);
|
|
6094
6105
|
D = ((Ee = (ce = Le == null ? void 0 : Le.data) == null ? void 0 : ce.data) == null ? void 0 : Ee.rows) || {};
|
|
6095
6106
|
}
|
|
6096
|
-
const j =
|
|
6107
|
+
const j = k(c), Z = [], P = [];
|
|
6097
6108
|
j == null || j.forEach((Se) => {
|
|
6098
6109
|
Z.push(Se.dataIndex), P.push(Se.title);
|
|
6099
6110
|
});
|
|
@@ -6118,12 +6129,12 @@ const ks = {
|
|
|
6118
6129
|
class: "progress-cell"
|
|
6119
6130
|
};
|
|
6120
6131
|
function Ds(e, o, t, n, a, l) {
|
|
6121
|
-
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");
|
|
6122
6133
|
return E(), O("div", {
|
|
6123
6134
|
class: "ecan-table",
|
|
6124
6135
|
style: U(e.style)
|
|
6125
6136
|
}, [
|
|
6126
|
-
G(
|
|
6137
|
+
G(f, { loading: e.loading }, {
|
|
6127
6138
|
default: Y(() => [
|
|
6128
6139
|
e.isUseExport ? (E(), O("div", ks, [
|
|
6129
6140
|
G(r, {
|
|
@@ -6136,7 +6147,7 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6136
6147
|
_: 1
|
|
6137
6148
|
}, 8, ["onClick"])
|
|
6138
6149
|
])) : Ce("", !0),
|
|
6139
|
-
G(
|
|
6150
|
+
G(w, {
|
|
6140
6151
|
class: "table",
|
|
6141
6152
|
style: {
|
|
6142
6153
|
height: "100%"
|
|
@@ -6150,7 +6161,7 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6150
6161
|
pagination: e.pagination,
|
|
6151
6162
|
onChange: e.tableChange
|
|
6152
6163
|
}, {
|
|
6153
|
-
customFilterDropdown: Y(({ column: s, selectedKeys:
|
|
6164
|
+
customFilterDropdown: Y(({ column: s, selectedKeys: u, setSelectedKeys: S, confirm: y, clearFilters: v }) => [
|
|
6154
6165
|
X("div", {
|
|
6155
6166
|
class: "ecan-table-filter",
|
|
6156
6167
|
style: U({
|
|
@@ -6169,14 +6180,14 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6169
6180
|
"onUpdate:value": (T) => s.filterCheckboxGroupValue = T,
|
|
6170
6181
|
class: "filter-checkbox",
|
|
6171
6182
|
options: e.useFilterOptions(s),
|
|
6172
|
-
onChange: (T) => e.useSetSelectedKeys(
|
|
6183
|
+
onChange: (T) => e.useSetSelectedKeys(S, s)
|
|
6173
6184
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6174
6185
|
X("div", null, [
|
|
6175
6186
|
G(r, {
|
|
6176
6187
|
type: "primary",
|
|
6177
6188
|
size: "small",
|
|
6178
6189
|
style: { width: "90px", "margin-right": "8px" },
|
|
6179
|
-
onClick: () =>
|
|
6190
|
+
onClick: () => y()
|
|
6180
6191
|
}, {
|
|
6181
6192
|
default: Y(() => [
|
|
6182
6193
|
_s
|
|
@@ -6186,7 +6197,7 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6186
6197
|
G(r, {
|
|
6187
6198
|
size: "small",
|
|
6188
6199
|
style: { width: "90px" },
|
|
6189
|
-
onClick: go((T) => e.onResetFilter(
|
|
6200
|
+
onClick: go((T) => e.onResetFilter(v, s), ["stop"])
|
|
6190
6201
|
}, {
|
|
6191
6202
|
default: Y(() => [
|
|
6192
6203
|
Ts
|
|
@@ -6196,22 +6207,22 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6196
6207
|
])
|
|
6197
6208
|
], 4)
|
|
6198
6209
|
]),
|
|
6199
|
-
bodyCell: Y(({ column: s, index:
|
|
6200
|
-
s.dataIndex === "SEQ" ? (E(), O("span", Ls, ye(
|
|
6201
|
-
(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", {
|
|
6202
6213
|
class: "action",
|
|
6203
6214
|
key: T
|
|
6204
6215
|
}, [
|
|
6205
6216
|
X("a", {
|
|
6206
|
-
href: e.handleHref(
|
|
6207
|
-
target: e.handleHrefTarget(
|
|
6217
|
+
href: e.handleHref(v.href, y),
|
|
6218
|
+
target: e.handleHrefTarget(v.target),
|
|
6208
6219
|
style: U({
|
|
6209
|
-
color:
|
|
6220
|
+
color: v.color,
|
|
6210
6221
|
fontSize: e.fontSize,
|
|
6211
6222
|
fontWeight: e.fontWeight
|
|
6212
6223
|
}),
|
|
6213
|
-
onClick: (
|
|
6214
|
-
}, ye(
|
|
6224
|
+
onClick: (A) => e.onTouchHrefEvent(v.target, e.handleHref(v.href, y))
|
|
6225
|
+
}, ye(v.title), 13, Ms)
|
|
6215
6226
|
]))), 128))
|
|
6216
6227
|
])) : s.format === "progress" ? (E(), O("div", Es, [
|
|
6217
6228
|
X("div", {
|
|
@@ -6219,32 +6230,32 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6219
6230
|
style: U({
|
|
6220
6231
|
background: s.progressColor || "#1890ff",
|
|
6221
6232
|
height: s.progressWidth || "18px",
|
|
6222
|
-
width: `${e.handleProgressText(
|
|
6233
|
+
width: `${e.handleProgressText(S, s.progressTextDecimalPlaces)}%`
|
|
6223
6234
|
})
|
|
6224
6235
|
}, null, 4),
|
|
6225
6236
|
X("div", {
|
|
6226
6237
|
class: "progress-text",
|
|
6227
6238
|
style: U({
|
|
6228
|
-
color: e.handleProgressText(
|
|
6239
|
+
color: e.handleProgressText(S) < 100 ? s.progressTextColor || "#333" : s.progressFinishedTextColor || "#fff"
|
|
6229
6240
|
})
|
|
6230
|
-
}, ye(e.handleProgressText(
|
|
6241
|
+
}, ye(e.handleProgressText(S, s.progressTextDecimalPlaces)) + "% ", 5)
|
|
6231
6242
|
])) : (E(), O("div", {
|
|
6232
6243
|
key: 3,
|
|
6233
|
-
class: Lt([e.contrastClass(
|
|
6244
|
+
class: Lt([e.contrastClass(S, s.format)]),
|
|
6234
6245
|
style: U({
|
|
6235
6246
|
fontSize: e.fontSize,
|
|
6236
6247
|
fontWeight: e.fontWeight
|
|
6237
6248
|
})
|
|
6238
|
-
}, ye(s.format != null ? e.formatFn(
|
|
6249
|
+
}, ye(s.format != null ? e.formatFn(S, s.format) : S), 7))
|
|
6239
6250
|
]),
|
|
6240
6251
|
summary: Y(() => [
|
|
6241
|
-
e.summaryList.length > 0 ? (E(),
|
|
6252
|
+
e.summaryList.length > 0 ? (E(), Fe(g, { key: 0 }, {
|
|
6242
6253
|
default: Y(() => [
|
|
6243
|
-
G(
|
|
6254
|
+
G(p, null, {
|
|
6244
6255
|
default: Y(() => [
|
|
6245
|
-
(E(!0), O(Me, null, De(e.summaryList, (s,
|
|
6246
|
-
key:
|
|
6247
|
-
index:
|
|
6256
|
+
(E(!0), O(Me, null, De(e.summaryList, (s, u) => (E(), Fe(m, {
|
|
6257
|
+
key: u,
|
|
6258
|
+
index: u,
|
|
6248
6259
|
style: U({
|
|
6249
6260
|
backgroundColor: e.cellBackgroundColor,
|
|
6250
6261
|
textAlign: s.cellAlign || "center",
|
|
@@ -6277,7 +6288,7 @@ function Ds(e, o, t, n, a, l) {
|
|
|
6277
6288
|
}, 8, ["loading"])
|
|
6278
6289
|
], 4);
|
|
6279
6290
|
}
|
|
6280
|
-
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 = {
|
|
6281
6292
|
...re,
|
|
6282
6293
|
mapJson: null,
|
|
6283
6294
|
data: [],
|
|
@@ -6324,10 +6335,10 @@ qe([
|
|
|
6324
6335
|
ia,
|
|
6325
6336
|
xo,
|
|
6326
6337
|
ra,
|
|
6327
|
-
|
|
6338
|
+
Rt,
|
|
6328
6339
|
sa
|
|
6329
6340
|
]);
|
|
6330
|
-
const
|
|
6341
|
+
const Rs = ee({
|
|
6331
6342
|
name: "EcanMap",
|
|
6332
6343
|
components: {
|
|
6333
6344
|
Echarts: Pe
|
|
@@ -6337,15 +6348,15 @@ const Fs = ee({
|
|
|
6337
6348
|
},
|
|
6338
6349
|
setup(e) {
|
|
6339
6350
|
const o = ie(e, ["backgroundImage"]), t = M(), n = q(() => ze(e.geoBackgroundImage)), a = q(() => ze(e.backgroundImage)), l = q(() => e.geoBackgroundImage ? {
|
|
6340
|
-
image:
|
|
6351
|
+
image: k(t),
|
|
6341
6352
|
repeat: e.geoBackgroundImageRepeat
|
|
6342
6353
|
} : e.geoItemStyleAreaColor), r = q(() => {
|
|
6343
|
-
const
|
|
6344
|
-
return e.symbolImage ? "image://" + ze(
|
|
6354
|
+
const p = e.symbolImage;
|
|
6355
|
+
return e.symbolImage ? "image://" + ze(p) : "circle";
|
|
6345
6356
|
}), i = q(() => {
|
|
6346
|
-
const
|
|
6357
|
+
const p = e.geoCenter;
|
|
6347
6358
|
let g;
|
|
6348
|
-
return typeof
|
|
6359
|
+
return typeof p == "string" && p !== "" && (g = p.split(",")), {
|
|
6349
6360
|
// backgroundColor: unref(background),
|
|
6350
6361
|
tooltip: {
|
|
6351
6362
|
show: !0
|
|
@@ -6357,7 +6368,7 @@ const Fs = ee({
|
|
|
6357
6368
|
style: {
|
|
6358
6369
|
width: parseFloat(e.width),
|
|
6359
6370
|
height: parseFloat(e.height),
|
|
6360
|
-
image:
|
|
6371
|
+
image: k(a)
|
|
6361
6372
|
},
|
|
6362
6373
|
top: "center"
|
|
6363
6374
|
}
|
|
@@ -6378,7 +6389,7 @@ const Fs = ee({
|
|
|
6378
6389
|
},
|
|
6379
6390
|
itemStyle: {
|
|
6380
6391
|
// 地图上板块属性
|
|
6381
|
-
areaColor:
|
|
6392
|
+
areaColor: k(l),
|
|
6382
6393
|
borderColor: e.geoItemStyleBorderColor,
|
|
6383
6394
|
borderWidth: e.geoItemStyleBorderWidth,
|
|
6384
6395
|
shadowColor: e.geoItemStyleShadowColor,
|
|
@@ -6405,7 +6416,7 @@ const Fs = ee({
|
|
|
6405
6416
|
itemStyle: {
|
|
6406
6417
|
color: e.itemStyleColor
|
|
6407
6418
|
},
|
|
6408
|
-
symbol:
|
|
6419
|
+
symbol: k(r),
|
|
6409
6420
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6410
6421
|
label: {
|
|
6411
6422
|
show: e.labelShow,
|
|
@@ -6424,17 +6435,17 @@ const Fs = ee({
|
|
|
6424
6435
|
}
|
|
6425
6436
|
]
|
|
6426
6437
|
};
|
|
6427
|
-
}), c = M(!1),
|
|
6438
|
+
}), c = M(!1), m = async () => {
|
|
6428
6439
|
var g;
|
|
6429
|
-
const
|
|
6430
|
-
if (
|
|
6431
|
-
const
|
|
6432
|
-
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) || {});
|
|
6433
6444
|
}
|
|
6434
6445
|
c.value = !0;
|
|
6435
6446
|
};
|
|
6436
|
-
return
|
|
6437
|
-
|
|
6447
|
+
return Q(() => e.mapJson, () => {
|
|
6448
|
+
m();
|
|
6438
6449
|
}, {
|
|
6439
6450
|
immediate: !0,
|
|
6440
6451
|
deep: !0
|
|
@@ -6454,7 +6465,7 @@ function zs(e, o, t, n, a, l) {
|
|
|
6454
6465
|
class: "ecan-map",
|
|
6455
6466
|
style: U(e.style)
|
|
6456
6467
|
}, [
|
|
6457
|
-
e.isLoadedData ? (E(),
|
|
6468
|
+
e.isLoadedData ? (E(), Fe(r, {
|
|
6458
6469
|
key: 0,
|
|
6459
6470
|
option: e.option,
|
|
6460
6471
|
"update-options": { notMerge: !0 },
|
|
@@ -6468,7 +6479,7 @@ function zs(e, o, t, n, a, l) {
|
|
|
6468
6479
|
])
|
|
6469
6480
|
], 4);
|
|
6470
6481
|
}
|
|
6471
|
-
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({
|
|
6472
6483
|
__proto__: null,
|
|
6473
6484
|
EcanBar: vr,
|
|
6474
6485
|
EcanBorder: es,
|
|
@@ -6484,7 +6495,7 @@ const Ns = /* @__PURE__ */ te(Fs, [["render", zs], ["__scopeId", "data-v-1fb5cde
|
|
|
6484
6495
|
EcanList: bi,
|
|
6485
6496
|
EcanMap: Ps,
|
|
6486
6497
|
EcanModal: ls,
|
|
6487
|
-
EcanPageConfig:
|
|
6498
|
+
EcanPageConfig: Rl,
|
|
6488
6499
|
EcanPie: sr,
|
|
6489
6500
|
EcanProportion: wi,
|
|
6490
6501
|
EcanProviderConfig: Bl,
|
|
@@ -6492,7 +6503,7 @@ const Ns = /* @__PURE__ */ te(Fs, [["render", zs], ["__scopeId", "data-v-1fb5cde
|
|
|
6492
6503
|
EcanScatter: xr,
|
|
6493
6504
|
EcanScrollText: Xl,
|
|
6494
6505
|
EcanSelect: Ki,
|
|
6495
|
-
EcanTable:
|
|
6506
|
+
EcanTable: Fs,
|
|
6496
6507
|
EcanTabs: us,
|
|
6497
6508
|
EcanText: Zl,
|
|
6498
6509
|
EcanTimeDisplay: ai,
|
|
@@ -6592,7 +6603,7 @@ export {
|
|
|
6592
6603
|
bi as EcanList,
|
|
6593
6604
|
Ps as EcanMap,
|
|
6594
6605
|
ls as EcanModal,
|
|
6595
|
-
|
|
6606
|
+
Rl as EcanPageConfig,
|
|
6596
6607
|
sr as EcanPie,
|
|
6597
6608
|
wi as EcanProportion,
|
|
6598
6609
|
Bl as EcanProviderConfig,
|
|
@@ -6600,7 +6611,7 @@ export {
|
|
|
6600
6611
|
xr as EcanScatter,
|
|
6601
6612
|
Xl as EcanScrollText,
|
|
6602
6613
|
Ki as EcanSelect,
|
|
6603
|
-
|
|
6614
|
+
Fs as EcanTable,
|
|
6604
6615
|
us as EcanTabs,
|
|
6605
6616
|
Zl as EcanText,
|
|
6606
6617
|
ai as EcanTimeDisplay,
|