@ecan-bi/datav 1.1.69 → 1.1.70

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 CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.1.69 */
1
+ /*! @ecan-bi/datav@1.1.70 */
2
2
  import { watch as ne, inject as N, computed as q, unref as v, watchEffect as uo, defineComponent as Q, shallowRef as vt, toRefs as On, onMounted as Ue, onUnmounted as ft, h as dt, nextTick as mt, createVNode as G, resolveComponent as H, openBlock as D, createElementBlock as $, createBlock as Re, renderSlot as gt, withCtx as Y, ref as M, normalizeStyle as U, createCommentVNode as ve, provide as ze, onBeforeUnmount as Tt, toDisplayString as be, Fragment as Me, renderList as De, createElementVNode as ee, normalizeClass as Lt, pushScopeId as fo, popScopeId as mo, createSlots as Rn, resolveDynamicComponent as Fn, mergeProps as zn, withModifiers as go, reactive as $n, createTextVNode as Ot, withDirectives as Nn, vShow as Pn } from "vue";
3
3
  import { throttle as Bn, init as Un, use as qe, registerMap as Gn } from "echarts/core";
4
4
  import { addListener as qn, removeListener as jn } from "resize-detector";
@@ -59,8 +59,8 @@ function ua(e, o) {
59
59
  }
60
60
  function fa(e, o, t) {
61
61
  let n = null;
62
- ne([t, e, o], ([a, l, i], r, s) => {
63
- a && l && i && (n = Bn(() => {
62
+ ne([t, e, o], ([a, l, r], i, s) => {
63
+ a && l && r && (n = Bn(() => {
64
64
  l.resize();
65
65
  }, 100), qn(a, n)), s(() => {
66
66
  n && a && jn(a, n);
@@ -108,34 +108,34 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
108
108
  inheritAttrs: !1,
109
109
  // @ts-expect-error listeners for Vue 2 compatibility
110
110
  setup(e, { attrs: o, listeners: t }) {
111
- const n = vt(), a = vt(), l = vt(), i = N(Sa, null), r = N(
111
+ const n = vt(), a = vt(), l = vt(), r = N(Sa, null), i = N(
112
112
  wa,
113
113
  null
114
114
  ), s = N(
115
115
  xa,
116
116
  null
117
- ), { autoresize: f, manualUpdate: y, loading: S, loadingOptions: C } = On(e), d = q(
117
+ ), { autoresize: f, manualUpdate: b, loading: x, loadingOptions: w } = On(e), d = q(
118
118
  () => l.value || e.option || /* @__PURE__ */ Object.create(null)
119
- ), u = q(() => e.theme || v(i) || {}), m = q(
120
- () => e.initOptions || v(r) || {}
121
- ), h = q(
119
+ ), u = q(() => e.theme || v(r) || {}), h = q(
120
+ () => e.initOptions || v(i) || {}
121
+ ), g = q(
122
122
  () => e.updateOptions || v(s) || {}
123
- ), b = q(() => pa(o));
124
- function w(x) {
123
+ ), y = q(() => pa(o));
124
+ function p(S) {
125
125
  if (a.value || !n.value)
126
126
  return;
127
127
  const c = a.value = Un(
128
128
  n.value,
129
129
  u.value,
130
- m.value
130
+ h.value
131
131
  );
132
132
  e.group && (c.group = e.group);
133
- let g = t;
134
- g || (g = {}, Object.keys(o).filter((E) => E.indexOf("on") === 0 && E.length > 2).forEach((E) => {
133
+ let m = t;
134
+ m || (m = {}, Object.keys(o).filter((E) => E.indexOf("on") === 0 && E.length > 2).forEach((E) => {
135
135
  const T = E.charAt(2).toLowerCase() + E.slice(3);
136
- g[T] = o[E];
137
- })), Object.keys(g).forEach((E) => {
138
- const T = g[E];
136
+ m[T] = o[E];
137
+ })), Object.keys(m).forEach((E) => {
138
+ const T = m[E];
139
139
  T && (E.indexOf("zr:") === 0 ? c.getZr().on(E.slice(3).toLowerCase(), T) : c.on(E.toLowerCase(), T));
140
140
  });
141
141
  function k() {
@@ -149,26 +149,26 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
149
149
  }
150
150
  }
151
151
  function R() {
152
- c.setOption(x || d.value, h.value);
152
+ c.setOption(S || d.value, g.value);
153
153
  }
154
154
  f.value ? mt(() => {
155
155
  k(), R();
156
156
  }) : R();
157
157
  }
158
- function A(x, c) {
159
- e.manualUpdate && (l.value = x), a.value ? a.value.setOption(x, c || {}) : w(x);
158
+ function _(S, c) {
159
+ e.manualUpdate && (l.value = S), a.value ? a.value.setOption(S, c || {}) : p(S);
160
160
  }
161
- function L() {
161
+ function I() {
162
162
  a.value && (a.value.dispose(), a.value = void 0);
163
163
  }
164
- let p = null;
164
+ let C = null;
165
165
  ne(
166
- y,
167
- (x) => {
168
- typeof p == "function" && (p(), p = null), x || (p = ne(
166
+ b,
167
+ (S) => {
168
+ typeof C == "function" && (C(), C = null), S || (C = ne(
169
169
  () => e.option,
170
170
  (c) => {
171
- c && (a.value ? a.value.setOption(c, h.value) : w());
171
+ c && (a.value ? a.value.setOption(c, g.value) : p());
172
172
  },
173
173
  { deep: !0 }
174
174
  ));
@@ -177,9 +177,9 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
177
177
  immediate: !0
178
178
  }
179
179
  ), ne(
180
- [u, m],
180
+ [u, h],
181
181
  () => {
182
- L(), w();
182
+ I(), p();
183
183
  },
184
184
  {
185
185
  deep: !0
@@ -187,15 +187,15 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
187
187
  ), uo(() => {
188
188
  e.group && a.value && (a.value.group = e.group);
189
189
  });
190
- const _ = ua(a, w);
191
- return ha(a, S, C), fa(a, f, n), Ue(() => {
192
- e.option && w();
193
- }), ft(L), {
190
+ const A = ua(a, p);
191
+ return ha(a, x, w), fa(a, f, n), Ue(() => {
192
+ e.option && p();
193
+ }), ft(I), {
194
194
  chart: a,
195
195
  root: n,
196
- setOption: A,
197
- nonEventAttrs: b,
198
- ..._
196
+ setOption: _,
197
+ nonEventAttrs: y,
198
+ ...A
199
199
  };
200
200
  },
201
201
  render() {
@@ -238,36 +238,36 @@ function La(e, o, t) {
238
238
  if (e = xe(e, 360), o = xe(o, 100), t = xe(t, 100), o === 0)
239
239
  a = t, l = t, n = t;
240
240
  else {
241
- var i = t < 0.5 ? t * (1 + o) : t + o - t * o, r = 2 * t - i;
242
- n = St(r, i, e + 1 / 3), a = St(r, i, e), l = St(r, i, e - 1 / 3);
241
+ var r = t < 0.5 ? t * (1 + o) : t + o - t * o, i = 2 * t - r;
242
+ n = St(i, r, e + 1 / 3), a = St(i, r, e), l = St(i, r, e - 1 / 3);
243
243
  }
244
244
  return { r: n * 255, g: a * 255, b: l * 255 };
245
245
  }
246
246
  function Ia(e, o, t) {
247
247
  e = xe(e, 255), o = xe(o, 255), t = xe(t, 255);
248
- var n = Math.max(e, o, t), a = Math.min(e, o, t), l = 0, i = n, r = n - a, s = n === 0 ? 0 : r / n;
248
+ var n = Math.max(e, o, t), a = Math.min(e, o, t), l = 0, r = n, i = n - a, s = n === 0 ? 0 : i / n;
249
249
  if (n === a)
250
250
  l = 0;
251
251
  else {
252
252
  switch (n) {
253
253
  case e:
254
- l = (o - t) / r + (o < t ? 6 : 0);
254
+ l = (o - t) / i + (o < t ? 6 : 0);
255
255
  break;
256
256
  case o:
257
- l = (t - e) / r + 2;
257
+ l = (t - e) / i + 2;
258
258
  break;
259
259
  case t:
260
- l = (e - o) / r + 4;
260
+ l = (e - o) / i + 4;
261
261
  break;
262
262
  }
263
263
  l /= 6;
264
264
  }
265
- return { h: l, s, v: i };
265
+ return { h: l, s, v: r };
266
266
  }
267
267
  function Ma(e, o, t) {
268
268
  e = xe(e, 360) * 6, o = xe(o, 100), t = xe(t, 100);
269
- var n = Math.floor(e), a = e - n, l = t * (1 - o), i = t * (1 - a * o), r = t * (1 - (1 - a) * o), s = n % 6, f = [t, i, l, l, r, t][s], y = [r, t, t, i, l, l][s], S = [l, l, r, t, t, i][s];
270
- return { r: f * 255, g: y * 255, b: S * 255 };
269
+ var n = Math.floor(e), a = e - n, l = t * (1 - o), r = t * (1 - a * o), i = t * (1 - (1 - a) * o), s = n % 6, f = [t, r, l, l, i, t][s], b = [i, t, t, r, l, l][s], x = [l, l, i, t, t, r][s];
270
+ return { r: f * 255, g: b * 255, b: x * 255 };
271
271
  }
272
272
  function Ea(e, o, t, n) {
273
273
  var a = [
@@ -434,10 +434,10 @@ var qt = {
434
434
  yellowgreen: "#9acd32"
435
435
  };
436
436
  function He(e) {
437
- var o = { r: 0, g: 0, b: 0 }, t = 1, n = null, a = null, l = null, i = !1, r = !1;
438
- return typeof e == "string" && (e = Ra(e)), typeof e == "object" && (Ie(e.r) && Ie(e.g) && Ie(e.b) ? (o = Ta(e.r, e.g, e.b), i = !0, r = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ie(e.h) && Ie(e.s) && Ie(e.v) ? (n = it(e.s), a = it(e.v), o = Ma(e.h, n, a), i = !0, r = "hsv") : Ie(e.h) && Ie(e.s) && Ie(e.l) && (n = it(e.s), l = it(e.l), o = La(e.h, n, l), i = !0, r = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = _a(t), {
439
- ok: i,
440
- format: e.format || r,
437
+ var o = { r: 0, g: 0, b: 0 }, t = 1, n = null, a = null, l = null, r = !1, i = !1;
438
+ return typeof e == "string" && (e = Ra(e)), typeof e == "object" && (Ie(e.r) && Ie(e.g) && Ie(e.b) ? (o = Ta(e.r, e.g, e.b), r = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ie(e.h) && Ie(e.s) && Ie(e.v) ? (n = it(e.s), a = it(e.v), o = Ma(e.h, n, a), r = !0, i = "hsv") : Ie(e.h) && Ie(e.s) && Ie(e.l) && (n = it(e.s), l = it(e.l), o = La(e.h, n, l), r = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = _a(t), {
439
+ ok: r,
440
+ format: e.format || i,
441
441
  r: Math.min(255, Math.max(o.r, 0)),
442
442
  g: Math.min(255, Math.max(o.g, 0)),
443
443
  b: Math.min(255, Math.max(o.b, 0)),
@@ -560,24 +560,24 @@ function Zt(e, o, t) {
560
560
  }
561
561
  function It(e) {
562
562
  for (var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = He(e), a = Ao; a > 0; a -= 1) {
563
- var l = Wt(n), i = st(He({
563
+ var l = Wt(n), r = st(He({
564
564
  h: Vt(l, a, !0),
565
565
  s: Ht(l, a, !0),
566
566
  v: Zt(l, a, !0)
567
567
  }));
568
- t.push(i);
568
+ t.push(r);
569
569
  }
570
570
  t.push(st(n));
571
- for (var r = 1; r <= _o; r += 1) {
571
+ for (var i = 1; i <= _o; i += 1) {
572
572
  var s = Wt(n), f = st(He({
573
- h: Vt(s, r),
574
- s: Ht(s, r),
575
- v: Zt(s, r)
573
+ h: Vt(s, i),
574
+ s: Ht(s, i),
575
+ v: Zt(s, i)
576
576
  }));
577
577
  t.push(f);
578
578
  }
579
- return o.theme === "dark" ? Na.map(function(y) {
580
- var S = y.index, C = y.opacity, d = st(Pa(He(o.backgroundColor || "#141414"), He(t[S]), C * 100));
579
+ return o.theme === "dark" ? Na.map(function(b) {
580
+ var x = b.index, w = b.opacity, d = st(Pa(He(o.backgroundColor || "#141414"), He(t[x]), w * 100));
581
581
  return d;
582
582
  }) : t;
583
583
  }
@@ -763,16 +763,16 @@ function Xa() {
763
763
  return ct({}, Ye);
764
764
  }
765
765
  var We = function(o, t) {
766
- var n = ct({}, o, t.attrs), a = n.icon, l = n.primaryColor, i = n.secondaryColor, r = Ja(n, Za), s = Ye;
766
+ var n = ct({}, o, t.attrs), a = n.icon, l = n.primaryColor, r = n.secondaryColor, i = Ja(n, Za), s = Ye;
767
767
  if (l && (s = {
768
768
  primaryColor: l,
769
- secondaryColor: i || To(l)
769
+ secondaryColor: r || To(l)
770
770
  }), Ha(), Wa(Qt(a), "icon should be icon definiton, but got ".concat(a)), !Qt(a))
771
771
  return null;
772
772
  var f = a;
773
773
  return f && typeof f.icon == "function" && (f = ct({}, f, {
774
774
  icon: f.icon(s.primaryColor, s.secondaryColor)
775
- })), Mt(f.icon, "svg-".concat(f.name), ct({}, r, {
775
+ })), Mt(f.icon, "svg-".concat(f.name), ct({}, i, {
776
776
  "data-icon": f.name,
777
777
  width: "1em",
778
778
  height: "1em",
@@ -818,18 +818,18 @@ function Xt(e, o) {
818
818
  function nl(e, o) {
819
819
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
820
820
  if (t != null) {
821
- var n = [], a = !0, l = !1, i, r;
821
+ var n = [], a = !0, l = !1, r, i;
822
822
  try {
823
- for (t = t.call(e); !(a = (i = t.next()).done) && (n.push(i.value), !(o && n.length === o)); a = !0)
823
+ for (t = t.call(e); !(a = (r = t.next()).done) && (n.push(r.value), !(o && n.length === o)); a = !0)
824
824
  ;
825
825
  } catch (s) {
826
- l = !0, r = s;
826
+ l = !0, i = s;
827
827
  } finally {
828
828
  try {
829
829
  !a && t.return != null && t.return();
830
830
  } finally {
831
831
  if (l)
832
- throw r;
832
+ throw i;
833
833
  }
834
834
  }
835
835
  return n;
@@ -878,18 +878,18 @@ function eo(e, o) {
878
878
  function dl(e, o) {
879
879
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
880
880
  if (t != null) {
881
- var n = [], a = !0, l = !1, i, r;
881
+ var n = [], a = !0, l = !1, r, i;
882
882
  try {
883
- for (t = t.call(e); !(a = (i = t.next()).done) && (n.push(i.value), !(o && n.length === o)); a = !0)
883
+ for (t = t.call(e); !(a = (r = t.next()).done) && (n.push(r.value), !(o && n.length === o)); a = !0)
884
884
  ;
885
885
  } catch (s) {
886
- l = !0, r = s;
886
+ l = !0, i = s;
887
887
  } finally {
888
888
  try {
889
889
  !a && t.return != null && t.return();
890
890
  } finally {
891
891
  if (l)
892
- throw r;
892
+ throw i;
893
893
  }
894
894
  }
895
895
  return n;
@@ -934,26 +934,26 @@ function ml(e, o) {
934
934
  }
935
935
  Io("#1890ff");
936
936
  var Ve = function(o, t) {
937
- var n, a = to({}, o, t.attrs), l = a.class, i = a.icon, r = a.spin, s = a.rotate, f = a.tabindex, y = a.twoToneColor, S = a.onClick, C = fl(a, il), d = (n = {
937
+ var n, a = to({}, o, t.attrs), l = a.class, r = a.icon, i = a.spin, s = a.rotate, f = a.tabindex, b = a.twoToneColor, x = a.onClick, w = fl(a, il), d = (n = {
938
938
  anticon: !0
939
- }, Et(n, "anticon-".concat(i.name), Boolean(i.name)), Et(n, l, l), n), u = r === "" || r || i.name === "loading" ? "anticon-spin" : "", m = f;
940
- m === void 0 && S && (m = -1, C.tabindex = m);
941
- var h = s ? {
939
+ }, Et(n, "anticon-".concat(r.name), Boolean(r.name)), Et(n, l, l), n), u = i === "" || i || r.name === "loading" ? "anticon-spin" : "", h = f;
940
+ h === void 0 && x && (h = -1, w.tabindex = h);
941
+ var g = s ? {
942
942
  msTransform: "rotate(".concat(s, "deg)"),
943
943
  transform: "rotate(".concat(s, "deg)")
944
- } : void 0, b = Lo(y), w = rl(b, 2), A = w[0], L = w[1];
944
+ } : void 0, y = Lo(b), p = rl(y, 2), _ = p[0], I = p[1];
945
945
  return G("span", to({
946
946
  role: "img",
947
- "aria-label": i.name
948
- }, C, {
949
- onClick: S,
947
+ "aria-label": r.name
948
+ }, w, {
949
+ onClick: x,
950
950
  class: d
951
951
  }), [G(zt, {
952
952
  class: u,
953
- icon: i,
954
- primaryColor: A,
955
- secondaryColor: L,
956
- style: h
953
+ icon: r,
954
+ primaryColor: _,
955
+ secondaryColor: I,
956
+ style: g
957
957
  }, null)]);
958
958
  };
959
959
  Ve.props = {
@@ -1020,9 +1020,9 @@ const K = (e, o) => {
1020
1020
  return t;
1021
1021
  }, Cl = { class: "spin-wrapper" };
1022
1022
  function Sl(e, o, t, n, a, l) {
1023
- const i = H("a-spin");
1023
+ const r = H("a-spin");
1024
1024
  return D(), $("div", Cl, [
1025
- e.spinning ? (D(), Re(i, {
1025
+ e.spinning ? (D(), Re(r, {
1026
1026
  key: 0,
1027
1027
  class: "spin",
1028
1028
  spinning: e.spinning,
@@ -1044,8 +1044,8 @@ const tt = /* @__PURE__ */ K(pl, [["render", Sl]]), wl = Q({
1044
1044
  }
1045
1045
  });
1046
1046
  function xl(e, o, t, n, a, l) {
1047
- const i = H("a-skeleton");
1048
- return D(), Re(i, {
1047
+ const r = H("a-skeleton");
1048
+ return D(), Re(r, {
1049
1049
  active: "",
1050
1050
  loading: e.loading
1051
1051
  }, {
@@ -1162,19 +1162,19 @@ const Al = ((co = window == null ? void 0 : window.config) == null ? void 0 : co
1162
1162
  const o = e.events, t = e.id, n = N(Nt, {
1163
1163
  // @ts-ignore
1164
1164
  // eslint-disable-next-line no-void
1165
- emitEvent: (l, i) => {
1165
+ emitEvent: (l, r) => {
1166
1166
  }
1167
1167
  }), { touchEventId: a } = N(fe, {
1168
1168
  touchEventId: M("")
1169
1169
  });
1170
- return (l, i = () => {
1170
+ return (l, r = () => {
1171
1171
  }) => function() {
1172
- i.call(this, ...arguments);
1173
- const { emitEvent: r } = n;
1172
+ r.call(this, ...arguments);
1173
+ const { emitEvent: i } = n;
1174
1174
  o.forEach((s) => {
1175
1175
  if (l === s.on)
1176
1176
  try {
1177
- a.value = t, r(s.target, s.emit);
1177
+ a.value = t, i(s.target, s.emit);
1178
1178
  } catch (f) {
1179
1179
  console.error(f);
1180
1180
  }
@@ -1183,20 +1183,20 @@ const Al = ((co = window == null ? void 0 : window.config) == null ? void 0 : co
1183
1183
  }, Qe = (e, o) => {
1184
1184
  let { name: t = "name", value: n = "value", type: a = "type" } = o || {};
1185
1185
  t = t == null ? void 0 : t.trim(), n = n == null ? void 0 : n.trim(), a = a == null ? void 0 : a.trim();
1186
- const l = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), r = e.length;
1187
- for (let y = 0; y < r; y++) {
1188
- const S = e[y], C = S[t] || "", d = S[n] || "", u = S[a] || "";
1189
- if (l.add(C), i.has(u)) {
1190
- const m = i.get(u);
1191
- m.push({ name: C, value: d, ...S }), i.set(u, m);
1186
+ const l = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = e.length;
1187
+ for (let b = 0; b < i; b++) {
1188
+ const x = e[b], w = x[t] || "", d = x[n] || "", u = x[a] || "";
1189
+ if (l.add(w), r.has(u)) {
1190
+ const h = r.get(u);
1191
+ h.push({ name: w, value: d, ...x }), r.set(u, h);
1192
1192
  } else
1193
- i.set(u, [{ name: C, value: d, ...S }]);
1193
+ r.set(u, [{ name: w, value: d, ...x }]);
1194
1194
  }
1195
1195
  const s = Array.from(l), f = [];
1196
- for (const [y, S] of i)
1196
+ for (const [b, x] of r)
1197
1197
  f.push({
1198
- name: y,
1199
- data: S
1198
+ name: b,
1199
+ data: x
1200
1200
  });
1201
1201
  return {
1202
1202
  dimensions: s,
@@ -1252,30 +1252,30 @@ const _l = (e) => e.replace(/\\n/g, `
1252
1252
  };
1253
1253
  let n = "";
1254
1254
  const a = [];
1255
- for (const r in t)
1256
- n += `${r},`, a.push(t[r]);
1255
+ for (const i in t)
1256
+ n += `${i},`, a.push(t[i]);
1257
1257
  n = n.replace(/,$/, "");
1258
1258
  const l = `function (${n}){return ${e}}`;
1259
- let i;
1259
+ let r;
1260
1260
  try {
1261
- i = Function(`"use strict";return (${l})`)()(...a);
1261
+ r = Function(`"use strict";return (${l})`)()(...a);
1262
1262
  } catch {
1263
1263
  return e;
1264
1264
  }
1265
- return i;
1265
+ return r;
1266
1266
  }, de = (e = "", { textData: o, codeData: t } = {}, { useNewline: n = !1, useSpace: a = !1 } = {}) => {
1267
- const i = { ...window.config || {}, ...o }, r = e.match(/\{(.+?)\}/g);
1268
- if (r == null || r.length === 0)
1267
+ const r = { ...window.config || {}, ...o }, i = e.match(/\{(.+?)\}/g);
1268
+ if (i == null || i.length === 0)
1269
1269
  return e;
1270
- for (let s = 0; s < r.length; s++) {
1271
- const f = r[s];
1272
- let y = f.slice(1, -1).trim();
1273
- const S = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, C = y.match(S);
1274
- for (let d = 0; d < C.length; d++) {
1275
- const u = C[d], m = i[u];
1276
- m != null && (y = y.replace(u, m));
1270
+ for (let s = 0; s < i.length; s++) {
1271
+ const f = i[s];
1272
+ let b = f.slice(1, -1).trim();
1273
+ const x = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, w = b.match(x);
1274
+ for (let d = 0; d < w.length; d++) {
1275
+ const u = w[d], h = r[u];
1276
+ h != null && (b = b.replace(u, h));
1277
1277
  }
1278
- /\(.*\)/g.test(y) && (y = yt(y, t)), e = e.replace(f, y);
1278
+ /\(.*\)/g.test(b) && (b = yt(b, t)), e = e.replace(f, b);
1279
1279
  }
1280
1280
  return n && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), a && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, "&nbsp;&nbsp;")), e;
1281
1281
  }, _e = (e, o = () => {
@@ -1285,27 +1285,27 @@ const _l = (e) => e.replace(/\\n/g, `
1285
1285
  requestMethod: n,
1286
1286
  requestHeaders: a,
1287
1287
  requestParams: l,
1288
- requestInterval: i,
1289
- isOpenRequestTimer: r
1290
- } = e, { contextRequestUrl: s, pageMode: f, touchEventId: y } = N(fe, {
1288
+ requestInterval: r,
1289
+ isOpenRequestTimer: i
1290
+ } = e, { contextRequestUrl: s, pageMode: f, touchEventId: b } = N(fe, {
1291
1291
  contextRequestUrl: "",
1292
1292
  pageMode: "normal",
1293
1293
  touchEventId: ""
1294
- }), { getGlobalModel: S } = N(ye, {
1294
+ }), { getGlobalModel: x } = N(ye, {
1295
1295
  // @ts-ignore
1296
1296
  // eslint-disable-next-line no-void
1297
- getGlobalModel: (m) => {
1297
+ getGlobalModel: (h) => {
1298
1298
  }
1299
- }), C = de(t), d = async (m = {}) => {
1300
- if (!C || !n || !a || v(f) === "design")
1299
+ }), w = de(t), d = async (h = {}) => {
1300
+ if (!w || !n || !a || v(f) === "design")
1301
1301
  return;
1302
- let h = {};
1303
- l.forEach((p) => {
1304
- const { key: _, value: x } = p;
1305
- if (typeof x == "object" && x != null && x.id) {
1302
+ let g = {};
1303
+ l.forEach((C) => {
1304
+ const { key: A, value: S } = C;
1305
+ if (typeof S == "object" && S != null && S.id) {
1306
1306
  let c = {};
1307
- const { id: g, prop: k, propKey: R, operate: E } = x;
1308
- g === "THIS" ? c = S(v(y)) || {} : c = S(g) || {};
1307
+ const { id: m, prop: k, propKey: R, operate: E } = S;
1308
+ m === "THIS" ? c = x(v(b)) || {} : c = x(m) || {};
1309
1309
  const T = v(c[k]);
1310
1310
  let j = null;
1311
1311
  if (["date", "range"].some((F) => Dt(c == null ? void 0 : c.type, F))) {
@@ -1322,61 +1322,61 @@ const _l = (e) => e.replace(/\\n/g, `
1322
1322
  j == null && (j = v(T)), j = (j == null ? void 0 : j.format((R == null ? void 0 : R.trim()) || c.format)) || "";
1323
1323
  } else
1324
1324
  Object.prototype.toString.call(T) === "[object Object]" ? j = T[R || "value"] : j = T;
1325
- h[_] = j;
1325
+ g[A] = j;
1326
1326
  } else
1327
- typeof x == "string" && (h[_] = de(x));
1328
- }), h = { ...window.config.requestParams, ...m, ...h };
1329
- let b = "";
1330
- const w = Object.keys(h), A = w.length - 1, L = w.length;
1331
- w.forEach((p, _) => {
1332
- _ === 0 ? L !== 1 ? b += `?${p}=${h[p]}&` : b += `?${p}=${h[p]}` : _ === A ? b += `${p}=${h[p]}` : b += `${p}=${h[p]}&`;
1327
+ typeof S == "string" && (g[A] = de(S));
1328
+ }), g = { ...window.config.requestParams, ...h, ...g };
1329
+ let y = "";
1330
+ const p = Object.keys(g), _ = p.length - 1, I = p.length;
1331
+ p.forEach((C, A) => {
1332
+ A === 0 ? I !== 1 ? y += `?${C}=${g[C]}&` : y += `?${C}=${g[C]}` : A === _ ? y += `${C}=${g[C]}` : y += `${C}=${g[C]}&`;
1333
1333
  });
1334
1334
  try {
1335
- const p = ["get", "head"].includes(n), _ = await Fe({
1335
+ const C = ["get", "head"].includes(n), A = await Fe({
1336
1336
  baseURL: v(s) || "",
1337
- url: p ? C + b : C,
1337
+ url: C ? w + y : w,
1338
1338
  method: n,
1339
1339
  headers: a,
1340
- data: p ? {} : h
1340
+ data: C ? {} : g
1341
1341
  });
1342
- return o(_), _;
1343
- } catch (p) {
1344
- console.error(p);
1342
+ return o(A), A;
1343
+ } catch (C) {
1344
+ console.error(C);
1345
1345
  }
1346
- }, u = r && setInterval(d, i * 1e3);
1346
+ }, u = i && setInterval(d, r * 1e3);
1347
1347
  return ft(() => {
1348
1348
  clearInterval(u);
1349
1349
  }), d;
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
- const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), i = e.length, r = n.length;
1354
- if (i === 1) {
1355
- const y = [];
1356
- for (let C = 0; C < r; C++) {
1357
- const d = n[C], { label: u, value: m } = d, h = { ...e[0], value: e[0][m] };
1358
- a.add(u), y.push(h);
1353
+ const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), r = e.length, i = n.length;
1354
+ if (r === 1) {
1355
+ const b = [];
1356
+ for (let w = 0; w < i; w++) {
1357
+ const d = n[w], { label: u, value: h } = d, g = { ...e[0], value: e[0][h] };
1358
+ a.add(u), b.push(g);
1359
1359
  }
1360
- const S = e[0][t] || "";
1361
- l.set(S, y);
1360
+ const x = e[0][t] || "";
1361
+ l.set(x, b);
1362
1362
  } else
1363
- for (let y = 0; y < i; y++) {
1364
- const S = e[y], C = S[t];
1365
- a.add(C);
1366
- for (let d = 0; d < r; d++) {
1367
- const u = n[d], { label: m, value: h } = u, b = { ...S, value: S[h] };
1368
- if (l.has(m)) {
1369
- const w = l.get(m);
1370
- w.push(b), l.set(m, w);
1363
+ for (let b = 0; b < r; b++) {
1364
+ const x = e[b], w = x[t];
1365
+ a.add(w);
1366
+ for (let d = 0; d < i; d++) {
1367
+ const u = n[d], { label: h, value: g } = u, y = { ...x, value: x[g] };
1368
+ if (l.has(h)) {
1369
+ const p = l.get(h);
1370
+ p.push(y), l.set(h, p);
1371
1371
  } else
1372
- l.set(m, [b]);
1372
+ l.set(h, [y]);
1373
1373
  }
1374
1374
  }
1375
1375
  const s = Array.from(a), f = [];
1376
- for (const [y, S] of l)
1376
+ for (const [b, x] of l)
1377
1377
  f.push({
1378
- name: y,
1379
- data: S
1378
+ name: b,
1379
+ data: x
1380
1380
  });
1381
1381
  return {
1382
1382
  dimensions: s,
@@ -1400,16 +1400,16 @@ const _l = (e) => e.replace(/\\n/g, `
1400
1400
  return o;
1401
1401
  const n = t.length;
1402
1402
  for (let l = 0; l < n; l++) {
1403
- const i = t[l];
1404
- if (i == null || i === "")
1403
+ const r = t[l];
1404
+ if (r == null || r === "")
1405
1405
  break;
1406
- let r = (a = i.slice(1, -1)) == null ? void 0 : a.trim();
1407
- r = r == null ? void 0 : r.replace(/value/g, o);
1406
+ let i = (a = r.slice(1, -1)) == null ? void 0 : a.trim();
1407
+ i = i == null ? void 0 : i.replace(/value/g, o);
1408
1408
  try {
1409
- let s = r;
1410
- /\(.*\)/g.test(r) && (s = yt(r)), e = e.replace(i, s);
1409
+ let s = i;
1410
+ (/\(.*\)/g.test(i) || /[+/\\*]/g.test(i)) && (s = yt(i)), e = e.replace(r, s);
1411
1411
  } catch {
1412
- e = e.replace(i, r);
1412
+ e = e.replace(r, i);
1413
1413
  }
1414
1414
  }
1415
1415
  return e;
@@ -1421,108 +1421,108 @@ const _l = (e) => e.replace(/\\n/g, `
1421
1421
  }
1422
1422
  });
1423
1423
  e.dataType === "indicator" && o();
1424
- const t = (i = {}) => {
1425
- const { label: r, name: s, location: f, show: y, indexCode: S } = i;
1424
+ const t = (r = {}) => {
1425
+ const { label: i, name: s, location: f, show: b, indexCode: x } = r;
1426
1426
  return {
1427
- label: r,
1427
+ label: i,
1428
1428
  columnName: s,
1429
1429
  location: f,
1430
- show: y,
1430
+ show: b,
1431
1431
  calcType: "COLUMN",
1432
- hrpIndexCode: S
1432
+ hrpIndexCode: x
1433
1433
  };
1434
- }, n = (i = {}) => {
1434
+ }, n = (r = {}) => {
1435
1435
  const {
1436
- label: r,
1436
+ label: i,
1437
1437
  name: s,
1438
1438
  location: f,
1439
- show: y,
1440
- indexCode: S,
1441
- calcType: C = "COLUMN",
1439
+ show: b,
1440
+ indexCode: x,
1441
+ calcType: w = "COLUMN",
1442
1442
  builtInFormula: d,
1443
1443
  builtInValueSource: u,
1444
- builtInCalcWay: m,
1445
- formula: h,
1446
- conditions: b
1447
- } = i;
1444
+ builtInCalcWay: h,
1445
+ formula: g,
1446
+ conditions: y
1447
+ } = r;
1448
1448
  return {
1449
- label: r,
1449
+ label: i,
1450
1450
  columnName: s,
1451
1451
  location: f,
1452
- show: y,
1453
- calcType: C,
1454
- hrpIndexCode: S,
1452
+ show: b,
1453
+ calcType: w,
1454
+ hrpIndexCode: x,
1455
1455
  aggregate: "SUM",
1456
1456
  builtInFormula: d,
1457
1457
  builtInValueSource: u,
1458
- builtInCalcWay: m,
1459
- formula: h,
1460
- conditions: b
1458
+ builtInCalcWay: h,
1459
+ formula: g,
1460
+ conditions: y
1461
1461
  };
1462
1462
  }, { getGlobalModel: a } = N(ye, {
1463
1463
  // @ts-ignore
1464
1464
  // eslint-disable-next-line no-void
1465
- getGlobalModel: (i) => {
1465
+ getGlobalModel: (r) => {
1466
1466
  }
1467
- }), l = (i = []) => {
1467
+ }), l = (r = []) => {
1468
1468
  var f;
1469
- const r = i.length, s = [];
1470
- for (let y = 0; y < r; y++) {
1471
- const S = i[y], {
1472
- id: C,
1469
+ const i = r.length, s = [];
1470
+ for (let b = 0; b < i; b++) {
1471
+ const x = r[b], {
1472
+ id: w,
1473
1473
  conditionLabel: d,
1474
1474
  conditionKey: u,
1475
- conditionValueType: m
1476
- } = S, h = {
1475
+ conditionValueType: h
1476
+ } = x, g = {
1477
1477
  rule: "NONE",
1478
1478
  label: d,
1479
1479
  fieldName: u,
1480
1480
  fieldValue: "",
1481
1481
  // 在关联控件中取
1482
- valueType: m
1483
- }, b = a(C) || {};
1484
- if (Dt(b.type, "date")) {
1485
- const { value: w, format: A } = b || {};
1486
- h.fieldValue = (f = v(w)) == null ? void 0 : f.format(A), h.dateFormat = A;
1482
+ valueType: h
1483
+ }, y = a(w) || {};
1484
+ if (Dt(y.type, "date")) {
1485
+ const { value: p, format: _ } = y || {};
1486
+ g.fieldValue = (f = v(p)) == null ? void 0 : f.format(_), g.dateFormat = _;
1487
1487
  }
1488
- s.push(h);
1488
+ s.push(g);
1489
1489
  }
1490
1490
  return s;
1491
1491
  };
1492
1492
  return async () => {
1493
1493
  var E;
1494
- const { graphicConfig: i, type: r } = e;
1494
+ const { graphicConfig: r, type: i } = e;
1495
1495
  let {
1496
1496
  source: s,
1497
1497
  dataViewId: f,
1498
- plugin: y = "1",
1498
+ plugin: b = "1",
1499
1499
  // 插件类型
1500
- layer: S,
1500
+ layer: x,
1501
1501
  // 后台图表类型,值分0,1
1502
- chartType: C,
1502
+ chartType: w,
1503
1503
  // 前端图表类型,实测没用
1504
1504
  classificationList: d = [],
1505
1505
  seriesList: u = [],
1506
- leftAxisList: m = [],
1507
- rightAxisList: h = [],
1508
- queryColumnList: b = [],
1509
- indicators: w = [],
1510
- controlList: A = [],
1511
- dataSourceId: L,
1506
+ leftAxisList: h = [],
1507
+ rightAxisList: g = [],
1508
+ queryColumnList: y = [],
1509
+ indicators: p = [],
1510
+ controlList: _ = [],
1511
+ dataSourceId: I,
1512
1512
  // 所属数据源ID
1513
- idxLibMode: p,
1513
+ idxLibMode: C,
1514
1514
  // 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
1515
- preview: _ = !1
1515
+ preview: A = !1
1516
1516
  // 预览开关
1517
- } = i || {};
1518
- S == null && (Dt(r, "table") ? S = "1" : S = "2");
1519
- let x;
1517
+ } = r || {};
1518
+ x == null && (Dt(i, "table") ? x = "1" : x = "2");
1519
+ let S;
1520
1520
  if (Array.isArray(d) && d.length > 0) {
1521
1521
  const T = d.length;
1522
1522
  for (let j = 0; j < T; j++) {
1523
1523
  const J = d[j] || {}, { label: F = "", name: B = "", show: z = !1, sort: W, customGroup: X, conditions: ie } = J;
1524
1524
  if (z || T === 1) {
1525
- x = {
1525
+ S = {
1526
1526
  label: F,
1527
1527
  columnName: B,
1528
1528
  show: z,
@@ -1552,42 +1552,42 @@ const _l = (e) => e.replace(/\\n/g, `
1552
1552
  }
1553
1553
  }
1554
1554
  }
1555
- const g = [];
1556
- b == null || b.forEach((T) => {
1557
- g.push(t(T));
1555
+ const m = [];
1556
+ y == null || y.forEach((T) => {
1557
+ m.push(t(T));
1558
1558
  });
1559
1559
  const k = [];
1560
- if (m == null || m.forEach((T) => {
1560
+ if (h == null || h.forEach((T) => {
1561
1561
  T.location = "LEFT", k.push(n(T));
1562
- }), h == null || h.forEach((T) => {
1562
+ }), g == null || g.forEach((T) => {
1563
1563
  T.location = "RIGHT", k.push(n(T));
1564
- }), w == null || w.forEach((T) => {
1564
+ }), p == null || p.forEach((T) => {
1565
1565
  T.location = "LEFT", k.push(n(T));
1566
- }), S === "1" && g.length === 0)
1566
+ }), x === "1" && m.length === 0)
1567
1567
  return;
1568
- if (S === "2" && k.length === 0)
1568
+ if (x === "2" && k.length === 0)
1569
1569
  return;
1570
1570
  let R;
1571
- (i == null ? void 0 : i.pageMode) === "design" ? R = i.sqlConditions ?? [] : R = l(A);
1571
+ (r == null ? void 0 : r.pageMode) === "design" ? R = r.sqlConditions ?? [] : R = l(_);
1572
1572
  try {
1573
1573
  return await Fe.post(
1574
1574
  `${Ro}/diagram`,
1575
1575
  {
1576
1576
  source: s,
1577
1577
  dataViewId: f,
1578
- plugin: y,
1579
- layer: S,
1580
- chartType: C,
1581
- classification: x,
1578
+ plugin: b,
1579
+ layer: x,
1580
+ chartType: w,
1581
+ classification: S,
1582
1582
  series: c,
1583
1583
  indicatorList: k,
1584
- queryColumns: g,
1584
+ queryColumns: m,
1585
1585
  pageFlag: !0,
1586
1586
  sqlConditions: R,
1587
1587
  // fixedDimSql: '',
1588
- dataSourceId: L,
1589
- idxLibMode: p,
1590
- preview: _
1588
+ dataSourceId: I,
1589
+ idxLibMode: C,
1590
+ preview: A
1591
1591
  },
1592
1592
  {
1593
1593
  headers: {
@@ -1609,8 +1609,8 @@ const _l = (e) => e.replace(/\\n/g, `
1609
1609
  continue;
1610
1610
  const l = a.split("=");
1611
1611
  if (Array.isArray(l)) {
1612
- const i = l[0], r = l[1];
1613
- window.config[i] = r;
1612
+ const r = l[0], i = l[1];
1613
+ window.config[r] = i;
1614
1614
  }
1615
1615
  }
1616
1616
  }, Il = Q({
@@ -1626,22 +1626,22 @@ const _l = (e) => e.replace(/\\n/g, `
1626
1626
  backgroundColor: e.backgroundColor,
1627
1627
  backgroundImage: $e(e.backgroundImage, !0),
1628
1628
  backgroundSize: e.backgroundSize
1629
- })), t = M(0), n = M(0), a = M(0), l = M(0), i = M(!1), r = M();
1629
+ })), t = M(0), n = M(0), a = M(0), l = M(0), r = M(!1), i = M();
1630
1630
  let s;
1631
- const f = () => new Promise((m) => {
1631
+ const f = () => new Promise((h) => {
1632
1632
  mt(() => {
1633
- e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = r.value.clientWidth, n.value = r.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height), m();
1633
+ 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), h();
1634
1634
  });
1635
- }), y = () => {
1636
- t.value && n.value ? (r.value.style.width = `${t.value}px`, r.value.style.height = `${n.value}px`) : (r.value.style.width = `${a.value}px`, r.value.style.height = `${l.value}px`);
1637
- }, S = () => {
1638
- const m = document.body.clientWidth, h = document.body.clientHeight, b = t.value || a.value, w = n.value || l.value, A = m / b, L = h / w;
1639
- r.value && (r.value.style.transform = `scale(${A}, ${L})`);
1640
- }, C = Rt(async () => {
1641
- await f(), S();
1635
+ }), b = () => {
1636
+ 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`);
1637
+ }, x = () => {
1638
+ const h = document.body.clientWidth, g = document.body.clientHeight, y = t.value || a.value, p = n.value || l.value, _ = h / y, I = g / p;
1639
+ i.value && (i.value.style.transform = `scale(${_}, ${I})`);
1640
+ }, w = Rt(async () => {
1641
+ await f(), x();
1642
1642
  }, 100), d = () => {
1643
- const m = window.MutationObserver;
1644
- s = new m(C), s.observe(r.value, {
1643
+ const h = window.MutationObserver;
1644
+ s = new h(w), s.observe(i.value, {
1645
1645
  attributes: !0,
1646
1646
  attributeFilter: ["style"],
1647
1647
  attributeOldValue: !0
@@ -1650,13 +1650,13 @@ const _l = (e) => e.replace(/\\n/g, `
1650
1650
  s && (s.disconnect(), s.takeRecords(), s = null);
1651
1651
  };
1652
1652
  return Ue(async () => {
1653
- i.value = !1, await f(), y(), S(), window.addEventListener("resize", C), d(), i.value = !0;
1653
+ r.value = !1, await f(), b(), x(), window.addEventListener("resize", w), d(), r.value = !0;
1654
1654
  }), ft(() => {
1655
- window.removeEventListener("resize", C), u();
1655
+ window.removeEventListener("resize", w), u();
1656
1656
  }), {
1657
1657
  style: o,
1658
- container: r,
1659
- ready: i
1658
+ container: i,
1659
+ ready: r
1660
1660
  };
1661
1661
  }
1662
1662
  });
@@ -1696,15 +1696,15 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
1696
1696
  }), Ue(() => {
1697
1697
  n();
1698
1698
  });
1699
- const a = q(() => de(e.contextRequestUrl)), l = q(() => e.pageMode), i = q(() => e.theme), r = M("");
1699
+ const a = q(() => de(e.contextRequestUrl)), l = q(() => e.pageMode), r = q(() => e.theme), i = M("");
1700
1700
  ze(fe, {
1701
1701
  // 请求地址
1702
1702
  contextRequestUrl: a,
1703
1703
  // 模式(设计、预览、正常):目前主要配置初始化是否发起请求
1704
1704
  pageMode: l,
1705
1705
  // 主题
1706
- theme: i,
1707
- touchEventId: r
1706
+ theme: r,
1707
+ touchEventId: i
1708
1708
  });
1709
1709
  const s = /* @__PURE__ */ new Map(), f = (F) => s.get(F);
1710
1710
  ze(ye, {
@@ -1713,60 +1713,60 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
1713
1713
  s.set(F, B);
1714
1714
  }
1715
1715
  });
1716
- const S = [], C = () => {
1717
- S.pop();
1716
+ const x = [], w = () => {
1717
+ x.pop();
1718
1718
  }, d = (F) => {
1719
- S.push(F);
1720
- }, u = /* @__PURE__ */ new Map(), m = (F) => u.get(F);
1719
+ x.push(F);
1720
+ }, u = /* @__PURE__ */ new Map(), h = (F) => u.get(F);
1721
1721
  ze(Oo, {
1722
- popUseModalIds: C,
1722
+ popUseModalIds: w,
1723
1723
  pushUseModalIds: d,
1724
- getModalModel: m,
1724
+ getModalModel: h,
1725
1725
  setModalModel: (F, B) => {
1726
1726
  u.set(F, B);
1727
1727
  }
1728
1728
  });
1729
- const b = oa(), w = /* @__PURE__ */ new Set(), A = (F, B) => {
1730
- w.add(F), b.on(F, (z) => typeof B[z] == "function" && B[z]()), Tt(() => {
1731
- L(F);
1729
+ const y = oa(), p = /* @__PURE__ */ new Set(), _ = (F, B) => {
1730
+ p.add(F), y.on(F, (z) => typeof B[z] == "function" && B[z]()), Tt(() => {
1731
+ I(F);
1732
1732
  });
1733
- }, L = (F) => {
1734
- w.delete(F), b.off(F);
1733
+ }, I = (F) => {
1734
+ p.delete(F), y.off(F);
1735
1735
  };
1736
1736
  ze(Nt, {
1737
- onEvent: A,
1738
- offEvent: L,
1737
+ onEvent: _,
1738
+ offEvent: I,
1739
1739
  emitEvent: (F, B) => {
1740
1740
  if (F === "PAGE") {
1741
- const z = S.length;
1741
+ const z = x.length;
1742
1742
  let W = [];
1743
1743
  if (z === 0)
1744
- W = [...w];
1744
+ W = [...p];
1745
1745
  else {
1746
- const X = S[z - 1];
1747
- W = [...m(X)];
1746
+ const X = x[z - 1];
1747
+ W = [...h(X)];
1748
1748
  }
1749
1749
  W.forEach((X) => {
1750
- b.emit(X, B);
1750
+ y.emit(X, B);
1751
1751
  });
1752
1752
  } else
1753
- b.emit(F, B);
1753
+ y.emit(F, B);
1754
1754
  }
1755
1755
  });
1756
- const _ = M(0);
1756
+ const A = M(0);
1757
1757
  ze(Do, {
1758
1758
  requestToken: () => {
1759
- _.value = v(_) + 1;
1759
+ A.value = v(A) + 1;
1760
1760
  }
1761
1761
  });
1762
- const c = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), k = ({ requestFn: F = () => {
1762
+ const c = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), k = ({ requestFn: F = () => {
1763
1763
  }, sortNum: B = 0, id: z = "" }) => {
1764
1764
  if (c.has(B)) {
1765
1765
  const W = c.get(B);
1766
1766
  W == null || W.push(F);
1767
1767
  } else
1768
1768
  c.set(B, [F]);
1769
- g.set(z, F);
1769
+ m.set(z, F);
1770
1770
  }, R = (F) => new Promise((B, z) => {
1771
1771
  const W = F.map((X) => X());
1772
1772
  Promise.all(W).then((X) => {
@@ -1787,7 +1787,7 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
1787
1787
  }, T = (F) => new Promise(async (B, z) => {
1788
1788
  if (F) {
1789
1789
  if (typeof F == "string") {
1790
- const W = g.get(F);
1790
+ const W = m.get(F);
1791
1791
  if (typeof W == "function") {
1792
1792
  const X = Fe.interceptors.response.use((ie) => (B(ie), ie), (ie) => (z(ie), Promise.reject(ie)));
1793
1793
  W(), Fe.interceptors.response.eject(X);
@@ -1798,7 +1798,7 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
1798
1798
  W.sort((ie, at) => at[0] - ie[0]);
1799
1799
  const X = W.length;
1800
1800
  try {
1801
- e.pageMode !== "design" && v(_) > 0 && await E();
1801
+ e.pageMode !== "design" && v(A) > 0 && await E();
1802
1802
  for (let ie = 0; ie < X; ie++) {
1803
1803
  const at = W[ie][1];
1804
1804
  await R(at);
@@ -1815,16 +1815,16 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
1815
1815
  touchRequest: T
1816
1816
  }), ze(Je, {
1817
1817
  emitRefreshPage: () => {
1818
- b.emit(Je);
1818
+ y.emit(Je);
1819
1819
  }
1820
1820
  });
1821
1821
  const J = (F) => {
1822
- b.on(Je, () => F()), Ue(() => {
1823
- b.off(Je);
1822
+ y.on(Je, () => F()), Ue(() => {
1823
+ y.off(Je);
1824
1824
  });
1825
1825
  };
1826
1826
  return Tt(() => {
1827
- c == null || c.clear(), g == null || g.clear();
1827
+ c == null || c.clear(), m == null || m.clear();
1828
1828
  }), o({
1829
1829
  touchRequest: T,
1830
1830
  getGlobalModel: f,
@@ -1874,54 +1874,54 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
1874
1874
  },
1875
1875
  setup(e) {
1876
1876
  const o = re(e), t = M({});
1877
- ne(() => [e.data, e.dataType], ([C, d]) => {
1878
- d === "static" && (t.value = C);
1877
+ ne(() => [e.data, e.dataType], ([w, d]) => {
1878
+ d === "static" && (t.value = w);
1879
1879
  }, {
1880
1880
  immediate: !0
1881
1881
  });
1882
1882
  const n = q(() => {
1883
- var m;
1884
- const C = v(t);
1883
+ var h;
1884
+ const w = v(t);
1885
1885
  let d = e.text;
1886
1886
  d = d == null ? void 0 : d.replace(/\n|\\n/g, "<br/>"), d = d == null ? void 0 : d.replace(/\s(?!\{) | (?!\})\s/g, "&nbsp;");
1887
1887
  const u = d.match(/\{(.+?)\}/g);
1888
1888
  if (u == null || u.length === 0)
1889
1889
  return d;
1890
- for (let h = 0; h < u.length; h++) {
1891
- const b = u[h], w = (m = b == null ? void 0 : b.slice(1, b.length - 1)) == null ? void 0 : m.trim();
1892
- let A = w;
1893
- const L = w.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
1894
- for (let _ = 0; _ < L.length; _++) {
1895
- const x = L[_], c = C[x];
1896
- c && (A = w.replace(x, c));
1890
+ for (let g = 0; g < u.length; g++) {
1891
+ const y = u[g], p = (h = y == null ? void 0 : y.slice(1, y.length - 1)) == null ? void 0 : h.trim();
1892
+ let _ = p;
1893
+ const I = p.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
1894
+ for (let A = 0; A < I.length; A++) {
1895
+ const S = I[A], c = w[S];
1896
+ c && (_ = p.replace(S, c));
1897
1897
  }
1898
- if (/\(.*\)/g.test(A)) {
1899
- const _ = yt(A);
1900
- _ != null && (A = _);
1898
+ if (/\(.*\)/g.test(_)) {
1899
+ const A = yt(_);
1900
+ A != null && (_ = A);
1901
1901
  }
1902
- let p = A;
1903
- if (p === w && (p = e.variableDefaultValue), p != null) {
1904
- const _ = e.format;
1905
- _ === "percentage" ? (p = +p, isNaN(p) ? d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : p >= 0 ? (p = (p * 100).toFixed(2), d = d.replace(b, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${p}%</span>`)) : (p = (p * 100).toFixed(2), d = d.replace(b, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Ul}"/>${Math.abs(+p)}%</span>`))) : e.format === "percent" ? (p = +p, isNaN(p) || (p = (p * 100).toFixed(2), d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}%</span>`))) : e.format === "money" ? (p = +p, isNaN(p) || (p = Pt(p), d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}</span>`))) : _ === "thousands" ? (p = +p, isNaN(p) || (p = Tl(p), d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}</span>`))) : d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}</span>`);
1902
+ let C = _;
1903
+ if (C === p && (C = e.variableDefaultValue), C != null) {
1904
+ const A = e.format;
1905
+ A === "percentage" ? (C = +C, isNaN(C) ? d = d.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : C >= 0 ? (C = (C * 100).toFixed(2), d = d.replace(y, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${C}%</span>`)) : (C = (C * 100).toFixed(2), d = d.replace(y, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Ul}"/>${Math.abs(+C)}%</span>`))) : e.format === "percent" ? (C = +C, isNaN(C) || (C = (C * 100).toFixed(2), d = d.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${C}%</span>`))) : e.format === "money" ? (C = +C, isNaN(C) || (C = Pt(C), d = d.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${C}</span>`))) : A === "thousands" ? (C = +C, isNaN(C) || (C = Tl(C), d = d.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${C}</span>`))) : d = d.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${C}</span>`);
1906
1906
  }
1907
1907
  }
1908
1908
  return `<span>${d}</span>`;
1909
1909
  }), { pageMode: a } = N(fe, {
1910
1910
  pageMode: "normal"
1911
- }), l = _e(e), i = M(!1), r = async () => {
1912
- var C;
1911
+ }), l = _e(e), r = M(!1), i = async () => {
1912
+ var w;
1913
1913
  if (v(a) !== "design")
1914
1914
  try {
1915
- i.value = !0;
1915
+ r.value = !0;
1916
1916
  const d = await l();
1917
- t.value = ((C = d == null ? void 0 : d.data) == null ? void 0 : C.data) || {};
1917
+ t.value = ((w = d == null ? void 0 : d.data) == null ? void 0 : w.data) || {};
1918
1918
  } catch (d) {
1919
1919
  console.error(d);
1920
1920
  } finally {
1921
- i.value = !1;
1921
+ r.value = !1;
1922
1922
  }
1923
1923
  }, s = () => {
1924
- e.dataType !== "static" && r();
1924
+ e.dataType !== "static" && i();
1925
1925
  };
1926
1926
  he(e, {
1927
1927
  refreshData: s
@@ -1929,7 +1929,7 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
1929
1929
  const { setRequest: f } = N(Se, {
1930
1930
  // @ts-ignore
1931
1931
  // eslint-disable-next-line no-void
1932
- setRequest: ({ id: C, sortNum: d, requestFn: u }) => {
1932
+ setRequest: ({ id: w, sortNum: d, requestFn: u }) => {
1933
1933
  }
1934
1934
  });
1935
1935
  f({
@@ -1939,14 +1939,14 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
1939
1939
  }), he(e, {
1940
1940
  refreshData: s
1941
1941
  });
1942
- const S = me(e)("click", () => {
1942
+ const x = me(e)("click", () => {
1943
1943
  if (!e.linkPage && !e.href)
1944
1944
  return;
1945
- const C = e.linkPage || "", d = Fo(v(a), C), u = e.href;
1946
- let m = u || d;
1947
- m = de(m);
1948
- const h = e.target;
1949
- h && (h !== "event" ? window.open(m, "_" + h) : window.parent.postMessage({
1945
+ const w = e.linkPage || "", d = Fo(v(a), w), u = e.href;
1946
+ let h = u || d;
1947
+ h = de(h);
1948
+ const g = e.target;
1949
+ g && (g !== "event" ? window.open(h, "_" + g) : window.parent.postMessage({
1950
1950
  type: "openPage",
1951
1951
  url: u
1952
1952
  }, "*"));
@@ -1954,26 +1954,26 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
1954
1954
  return {
1955
1955
  style: o,
1956
1956
  myText: n,
1957
- loading: i,
1958
- click: S
1957
+ loading: r,
1958
+ click: x
1959
1959
  };
1960
1960
  }
1961
1961
  });
1962
1962
  const ql = ["innerHTML"];
1963
1963
  function jl(e, o, t, n, a, l) {
1964
- const i = H("skeleton");
1964
+ const r = H("skeleton");
1965
1965
  return e.loading ? (D(), $("div", {
1966
1966
  key: 0,
1967
1967
  class: "skeleton-wrapper",
1968
1968
  style: U(e.style)
1969
1969
  }, [
1970
- G(i, { loading: e.loading }, null, 8, ["loading"])
1970
+ G(r, { loading: e.loading }, null, 8, ["loading"])
1971
1971
  ], 4)) : (D(), $("div", {
1972
1972
  key: 1,
1973
1973
  class: "ecan-text",
1974
1974
  style: U(e.style),
1975
1975
  innerHTML: e.myText,
1976
- onClick: o[0] || (o[0] = (...r) => e.click && e.click(...r))
1976
+ onClick: o[0] || (o[0] = (...i) => e.click && e.click(...i))
1977
1977
  }, null, 12, ql));
1978
1978
  }
1979
1979
  const Wl = /* @__PURE__ */ K(Gl, [["render", jl], ["__scopeId", "data-v-f9ba6c3f"]]), Vl = ae(Wl), Hl = Q({
@@ -2078,45 +2078,45 @@ const ei = /* @__PURE__ */ K(Kl, [["render", Xl], ["__scopeId", "data-v-47d57d2d
2078
2078
  textAlign: "center"
2079
2079
  } : {
2080
2080
  textAlign: "left"
2081
- }), a = (u, m) => m == null || m === "" ? u : {
2081
+ }), a = (u, h) => h == null || h === "" ? u : {
2082
2082
  money: Pt,
2083
2083
  percentage: ut,
2084
2084
  contrast: ut
2085
- }[m](u) || "", l = (u, m) => {
2086
- const h = parseFloat(u + "");
2087
- if (m !== "contrast")
2085
+ }[h](u) || "", l = (u, h) => {
2086
+ const g = parseFloat(u + "");
2087
+ if (h !== "contrast")
2088
2088
  return "";
2089
2089
  switch (!0) {
2090
- case h >= 0:
2090
+ case g >= 0:
2091
2091
  return "goUp";
2092
- case h < 0:
2092
+ case g < 0:
2093
2093
  return "goDown";
2094
2094
  }
2095
- }, i = _e(e), { pageMode: r } = N(fe, {
2095
+ }, r = _e(e), { pageMode: i } = N(fe, {
2096
2096
  pageMode: "normal"
2097
2097
  }), s = M(!1), f = async () => {
2098
2098
  var u;
2099
- if (!(e.dataType !== "request" || v(r) === "design"))
2099
+ if (!(e.dataType !== "request" || v(i) === "design"))
2100
2100
  try {
2101
2101
  s.value = !0;
2102
- const m = await i();
2103
- o.value = ((u = m == null ? void 0 : m.data) == null ? void 0 : u.data.rows) || [];
2104
- } catch (m) {
2105
- console.error(m);
2102
+ const h = await r();
2103
+ o.value = ((u = h == null ? void 0 : h.data) == null ? void 0 : u.data.rows) || [];
2104
+ } catch (h) {
2105
+ console.error(h);
2106
2106
  } finally {
2107
2107
  s.value = !1;
2108
2108
  }
2109
- }, y = () => {
2109
+ }, b = () => {
2110
2110
  f();
2111
- }, C = me(e)("click", () => {
2111
+ }, w = me(e)("click", () => {
2112
2112
  });
2113
2113
  he(e, {
2114
- refreshData: y
2114
+ refreshData: b
2115
2115
  });
2116
2116
  const { setRequest: d } = N(Se, {
2117
2117
  // @ts-ignore
2118
2118
  // eslint-disable-next-line no-void
2119
- setRequest: ({ id: u, sortNum: m, requestFn: h }) => {
2119
+ setRequest: ({ id: u, sortNum: h, requestFn: g }) => {
2120
2120
  }
2121
2121
  });
2122
2122
  return d({
@@ -2130,7 +2130,7 @@ const ei = /* @__PURE__ */ K(Kl, [["render", Xl], ["__scopeId", "data-v-47d57d2d
2130
2130
  contrastClass: l,
2131
2131
  dataSource: o,
2132
2132
  loading: s,
2133
- click: C
2133
+ click: w
2134
2134
  };
2135
2135
  }
2136
2136
  });
@@ -2151,23 +2151,23 @@ const ai = (e) => (fo("data-v-211785ca"), e = e(), mo(), e), li = {
2151
2151
  class: "empty"
2152
2152
  };
2153
2153
  function fi(e, o, t, n, a, l) {
2154
- const i = H("skeleton");
2154
+ const r = H("skeleton");
2155
2155
  return D(), $("div", {
2156
2156
  class: "ecan-list",
2157
2157
  style: U(e.style)
2158
2158
  }, [
2159
- G(i, { loading: e.loading }, {
2159
+ G(r, { loading: e.loading }, {
2160
2160
  default: Y(() => [
2161
2161
  e.useTitle ? (D(), $("div", li, [
2162
- (D(!0), $(Me, null, De(e.columnCount, (r) => (D(), $("div", {
2162
+ (D(!0), $(Me, null, De(e.columnCount, (i) => (D(), $("div", {
2163
2163
  class: "title-inner",
2164
2164
  style: U({
2165
2165
  backgroundColor: e.backgroundColor,
2166
2166
  height: e.itemHeight,
2167
2167
  width: `calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount - 1}/ ${e.columnCount})`,
2168
- marginRight: r % e.columnCount !== 0 ? e.itemColSpan : ""
2168
+ marginRight: i % e.columnCount !== 0 ? e.itemColSpan : ""
2169
2169
  }),
2170
- key: r
2170
+ key: i
2171
2171
  }, [
2172
2172
  e.useRanking ? (D(), $("div", ii)) : ve("", !0),
2173
2173
  (D(!0), $(Me, null, De(e.columns, (s, f) => (D(), $("div", {
@@ -2188,7 +2188,7 @@ function fi(e, o, t, n, a, l) {
2188
2188
  marginBottom: e.itemRowSpan
2189
2189
  })
2190
2190
  }, null, 4)) : ve("", !0),
2191
- (D(!0), $(Me, null, De(e.dataSource.slice(0, e.sliceCount), (r, s) => (D(), $("div", {
2191
+ (D(!0), $(Me, null, De(e.dataSource.slice(0, e.sliceCount), (i, s) => (D(), $("div", {
2192
2192
  class: "item",
2193
2193
  style: U({
2194
2194
  backgroundColor: e.backgroundColor,
@@ -2197,7 +2197,7 @@ function fi(e, o, t, n, a, l) {
2197
2197
  marginRight: (s + 1) % e.columnCount !== 0 ? e.itemColSpan : "",
2198
2198
  marginBottom: e.itemRowSpan
2199
2199
  }),
2200
- key: r.id || s,
2200
+ key: i.id || s,
2201
2201
  onClick: o[0] || (o[0] = (...f) => e.click && e.click(...f))
2202
2202
  }, [
2203
2203
  e.useRanking ? (D(), $("div", si, [
@@ -2205,15 +2205,15 @@ function fi(e, o, t, n, a, l) {
2205
2205
  ee("div", di, " Top " + be(s + 1), 1)
2206
2206
  ])) : ve("", !0),
2207
2207
  (D(!0), $(Me, null, De(e.columns, (f) => (D(), $("div", {
2208
- class: Lt(["column", e.contrastClass(r[f.key], f.format)]),
2208
+ class: Lt(["column", e.contrastClass(i[f.key], f.format)]),
2209
2209
  key: f.key,
2210
2210
  style: U({
2211
2211
  fontSize: f.fontSize,
2212
- color: e.contrastClass(r[f.key], f.format) === "" ? f.color : "",
2212
+ color: e.contrastClass(i[f.key], f.format) === "" ? f.color : "",
2213
2213
  fontWeight: f.fontWeight,
2214
2214
  ...e.columnStyle
2215
2215
  })
2216
- }, be((f.format != null || f.format !== "") && e.formatFn(r[f.key], f.format)), 7))), 128))
2216
+ }, be((f.format != null || f.format !== "") && e.formatFn(i[f.key], f.format)), 7))), 128))
2217
2217
  ], 4))), 128))
2218
2218
  ])) : (D(), $("div", ui, " 暂无数据 "))
2219
2219
  ]),
@@ -2267,52 +2267,52 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
2267
2267
  deep: !0
2268
2268
  });
2269
2269
  const l = q(() => {
2270
- const u = v(a), m = +e.variableDefaultValue;
2270
+ const u = v(a), h = +e.variableDefaultValue;
2271
2271
  if (u == null)
2272
- return isNaN(m) ? 0 : m;
2273
- const h = e.text.match(/\{.+\}/g) || [];
2274
- let b;
2275
- const w = new Set(Object.keys(u));
2276
- for (let A = 0; A < h.length; A++) {
2277
- const L = h[A], p = L.slice(1, L.length - 1);
2278
- if (w.has(p)) {
2279
- b = u[p];
2272
+ return isNaN(h) ? 0 : h;
2273
+ const g = e.text.match(/\{.+\}/g) || [];
2274
+ let y;
2275
+ const p = new Set(Object.keys(u));
2276
+ for (let _ = 0; _ < g.length; _++) {
2277
+ const I = g[_], C = I.slice(1, I.length - 1);
2278
+ if (p.has(C)) {
2279
+ y = u[C];
2280
2280
  break;
2281
2281
  }
2282
2282
  }
2283
- return typeof b == "number" ? b = b * 100 : typeof b == "string" && !isNaN(+b) ? b = +b * 100 : isNaN(m) ? b = 0 : b = m * 100, e.decimalFormat && (b = +b.toFixed(2)), b;
2284
- }), i = q(() => {
2285
- var w;
2283
+ return typeof y == "number" ? y = y * 100 : typeof y == "string" && !isNaN(+y) ? y = +y * 100 : isNaN(h) ? y = 0 : y = h * 100, e.decimalFormat && (y = +y.toFixed(2)), y;
2284
+ }), r = q(() => {
2285
+ var p;
2286
2286
  let u = e.text;
2287
2287
  if (u === "")
2288
2288
  return v(l);
2289
- const m = e.variableDefaultValue, h = v(a), b = u.match(/\{.+\}/g) || [];
2290
- for (let A = 0; A < b.length; A++) {
2291
- const L = b[A];
2292
- let p = L.slice(1, L.length - 1);
2293
- const _ = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, x = L.match(_);
2294
- for (let g = 0; g < (x == null ? void 0 : x.length); g++) {
2295
- const k = (w = x[g]) == null ? void 0 : w.trim();
2296
- h[k] != null && (p = p.replace(k, h[k]));
2289
+ const h = e.variableDefaultValue, g = v(a), y = u.match(/\{.+\}/g) || [];
2290
+ for (let _ = 0; _ < y.length; _++) {
2291
+ const I = y[_];
2292
+ let C = I.slice(1, I.length - 1);
2293
+ const A = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, S = I.match(A);
2294
+ for (let m = 0; m < (S == null ? void 0 : S.length); m++) {
2295
+ const k = (p = S[m]) == null ? void 0 : p.trim();
2296
+ g[k] != null && (C = C.replace(k, g[k]));
2297
2297
  }
2298
- let c = p;
2298
+ let c = C;
2299
2299
  try {
2300
- /\(.*\)/g.test(p) && (c = yt(p));
2301
- } catch (g) {
2302
- console.error(g);
2300
+ /\(.*\)/g.test(C) && (c = yt(C));
2301
+ } catch (m) {
2302
+ console.error(m);
2303
2303
  }
2304
- typeof +c == "number" && !isNaN(+c) ? (c = +c * 100, e.decimalFormat && (c = c.toFixed(2))) : c = m, u = u.replace(L, c + "");
2304
+ typeof +c == "number" && !isNaN(+c) ? (c = +c * 100, e.decimalFormat && (c = c.toFixed(2))) : c = h, u = u.replace(I, c + "");
2305
2305
  }
2306
2306
  return u;
2307
- }), r = _e(e), s = M(!1), f = async () => {
2307
+ }), i = _e(e), s = M(!1), f = async () => {
2308
2308
  var u;
2309
2309
  if (!(e.dataType !== "request" || v(o) === "design"))
2310
2310
  try {
2311
2311
  s.value = !0;
2312
- const m = await r();
2313
- a.value = ((u = m == null ? void 0 : m.data) == null ? void 0 : u.data) || {};
2314
- } catch (m) {
2315
- console.error(m);
2312
+ const h = await i();
2313
+ a.value = ((u = h == null ? void 0 : h.data) == null ? void 0 : u.data) || {};
2314
+ } catch (h) {
2315
+ console.error(h);
2316
2316
  } finally {
2317
2317
  s.value = !1;
2318
2318
  }
@@ -2322,11 +2322,11 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
2322
2322
  f();
2323
2323
  }
2324
2324
  });
2325
- const C = me(e)("click", () => {
2325
+ const w = me(e)("click", () => {
2326
2326
  }), { setRequest: d } = N(Se, {
2327
2327
  // @ts-ignore
2328
2328
  // eslint-disable-next-line no-void
2329
- setRequest: ({ id: u, sortNum: m, requestFn: h }) => {
2329
+ setRequest: ({ id: u, sortNum: h, requestFn: g }) => {
2330
2330
  }
2331
2331
  });
2332
2332
  return d({
@@ -2336,20 +2336,20 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
2336
2336
  }), {
2337
2337
  style: t,
2338
2338
  myWidth: n,
2339
- text: i,
2339
+ text: r,
2340
2340
  myValue: l,
2341
2341
  loading: s,
2342
- click: C
2342
+ click: w
2343
2343
  };
2344
2344
  }
2345
2345
  });
2346
2346
  function bi(e, o, t, n, a, l) {
2347
- const i = H("skeleton"), r = H("a-progress");
2347
+ const r = H("skeleton"), i = H("a-progress");
2348
2348
  return D(), $("div", {
2349
2349
  class: "ecan-proportion",
2350
2350
  style: U(e.style)
2351
2351
  }, [
2352
- G(r, {
2352
+ G(i, {
2353
2353
  class: "progress",
2354
2354
  percent: e.myValue,
2355
2355
  width: e.myWidth,
@@ -2362,7 +2362,7 @@ function bi(e, o, t, n, a, l) {
2362
2362
  onClick: e.click
2363
2363
  }, {
2364
2364
  format: Y(() => [
2365
- e.loading ? (D(), Re(i, {
2365
+ e.loading ? (D(), Re(r, {
2366
2366
  key: 0,
2367
2367
  loading: e.loading
2368
2368
  }, null, 8, ["loading"])) : (D(), $("div", {
@@ -2415,7 +2415,7 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
2415
2415
  },
2416
2416
  // @ts-ignore
2417
2417
  // eslint-disable-next-line no-void
2418
- setGlobalModel: (f, y) => {
2418
+ setGlobalModel: (f, b) => {
2419
2419
  }
2420
2420
  });
2421
2421
  a(e.id, {
@@ -2425,28 +2425,28 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
2425
2425
  const l = () => {
2426
2426
  const f = n(e.id);
2427
2427
  a(e.id, { ...f, RECORD: t });
2428
- }, i = me(e), r = Rt(i("inputChange", () => {
2428
+ }, r = me(e), i = Rt(r("inputChange", () => {
2429
2429
  l();
2430
- }), 300), s = i("inputBlur", () => {
2430
+ }), 300), s = r("inputBlur", () => {
2431
2431
  });
2432
2432
  return {
2433
2433
  style: o,
2434
2434
  myValue: t,
2435
2435
  inputBlur: s,
2436
- inputChange: r
2436
+ inputChange: i
2437
2437
  };
2438
2438
  }
2439
2439
  });
2440
2440
  function wi(e, o, t, n, a, l) {
2441
- const i = H("a-input");
2441
+ const r = H("a-input");
2442
2442
  return D(), $("div", {
2443
2443
  class: "ecan-input",
2444
2444
  style: U(e.style)
2445
2445
  }, [
2446
- G(i, {
2446
+ G(r, {
2447
2447
  class: "input",
2448
2448
  value: e.myValue,
2449
- "onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
2449
+ "onUpdate:value": o[0] || (o[0] = (i) => e.myValue = i),
2450
2450
  placeholder: e.placeholder,
2451
2451
  onChange: e.inputChange,
2452
2452
  onBlur: e.inputBlur
@@ -2480,19 +2480,19 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
2480
2480
  },
2481
2481
  setup(e) {
2482
2482
  const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M(null);
2483
- ne(() => [e.value, e.useCurrentTime, e.operate], ([r, s, f]) => {
2484
- let y = null;
2485
- if (r ? y = Ce(de(r)) : s && (y = Ce()), f && y) {
2486
- const { type: S, value: C, mode: d } = f;
2487
- switch (S) {
2483
+ ne(() => [e.value, e.useCurrentTime, e.operate], ([i, s, f]) => {
2484
+ let b = null;
2485
+ if (i ? b = Ce(de(i)) : s && (b = Ce()), f && b) {
2486
+ const { type: x, value: w, mode: d } = f;
2487
+ switch (x) {
2488
2488
  case "add":
2489
- y = y.add(C, d);
2489
+ b = b.add(w, d);
2490
2490
  break;
2491
2491
  case "minus":
2492
- y = y.subtract(C, d);
2492
+ b = b.subtract(w, d);
2493
2493
  }
2494
2494
  }
2495
- n.value = y;
2495
+ n.value = b;
2496
2496
  }, {
2497
2497
  deep: !0,
2498
2498
  immediate: !0
@@ -2500,7 +2500,7 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
2500
2500
  const { setGlobalModel: a } = N(ye, {
2501
2501
  // @ts-ignore
2502
2502
  // eslint-disable-next-line no-void
2503
- setGlobalModel: (r, s) => {
2503
+ setGlobalModel: (i, s) => {
2504
2504
  }
2505
2505
  });
2506
2506
  a(e.id, {
@@ -2508,30 +2508,30 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
2508
2508
  format: e.format,
2509
2509
  value: n
2510
2510
  });
2511
- const i = me(e)("dateChange", () => {
2511
+ const r = me(e)("dateChange", () => {
2512
2512
  });
2513
2513
  return he(e, {
2514
- dateChange: i
2514
+ dateChange: r
2515
2515
  }), {
2516
2516
  style: o,
2517
2517
  getPopupContainer: t,
2518
2518
  myValue: n,
2519
2519
  locale: Co,
2520
- dateChange: i
2520
+ dateChange: r
2521
2521
  };
2522
2522
  }
2523
2523
  });
2524
2524
  function Ti(e, o, t, n, a, l) {
2525
- const i = H("a-date-picker");
2525
+ const r = H("a-date-picker");
2526
2526
  return D(), $("div", {
2527
2527
  class: "ecan-date-picker",
2528
2528
  style: U(e.style)
2529
2529
  }, [
2530
- G(i, {
2530
+ G(r, {
2531
2531
  class: "date-picker",
2532
2532
  dropdownClassName: "ecan-date-picker-dropdown",
2533
2533
  value: e.myValue,
2534
- "onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
2534
+ "onUpdate:value": o[0] || (o[0] = (i) => e.myValue = i),
2535
2535
  format: e.format,
2536
2536
  picker: e.picker,
2537
2537
  showTime: e.showTime,
@@ -2569,62 +2569,62 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
2569
2569
  setup(e) {
2570
2570
  const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = _e(e), { pageMode: a } = N(fe, {
2571
2571
  pageMode: "normal"
2572
- }), l = M(e.data), i = M(e.value || e.data[0]), r = e.dataFieldNames, s = (h, b) => {
2573
- const w = r.label, A = r.value;
2574
- let L;
2575
- const p = b[w], _ = b[A];
2576
- return p != null ? L = p : _ != null && (L = _), (L == null ? void 0 : L.toLowerCase().indexOf(h == null ? void 0 : h.toLowerCase())) >= 0;
2577
- }, f = M(!1), y = async () => {
2578
- var h, b;
2572
+ }), l = M(e.data), r = M(e.value || e.data[0]), i = e.dataFieldNames, s = (g, y) => {
2573
+ const p = i.label, _ = i.value;
2574
+ let I;
2575
+ const C = y[p], A = y[_];
2576
+ return C != null ? I = C : A != null && (I = A), (I == null ? void 0 : I.toLowerCase().indexOf(g == null ? void 0 : g.toLowerCase())) >= 0;
2577
+ }, f = M(!1), b = async () => {
2578
+ var g, y;
2579
2579
  if (!(e.dataType !== "request" || v(a) === "design")) {
2580
2580
  f.value = !0;
2581
2581
  try {
2582
- const w = await n();
2583
- l.value = ((b = (h = w == null ? void 0 : w.data) == null ? void 0 : h.data) == null ? void 0 : b.rows) || [];
2584
- const A = v(l)[0];
2585
- e.value === "" && A != null && (i.value = A[r.value]);
2586
- } catch (w) {
2587
- console.error(w);
2582
+ const p = await n();
2583
+ l.value = ((y = (g = p == null ? void 0 : p.data) == null ? void 0 : g.data) == null ? void 0 : y.rows) || [];
2584
+ const _ = v(l)[0];
2585
+ e.value === "" && _ != null && (r.value = _[i.value]);
2586
+ } catch (p) {
2587
+ console.error(p);
2588
2588
  } finally {
2589
2589
  f.value = !1;
2590
2590
  }
2591
2591
  }
2592
- }, { getGlobalModel: S, setGlobalModel: C } = N(ye, {
2592
+ }, { getGlobalModel: x, setGlobalModel: w } = N(ye, {
2593
2593
  // @ts-ignore
2594
2594
  // eslint-disable-next-line no-void
2595
- getGlobalModel: (h) => {
2595
+ getGlobalModel: (g) => {
2596
2596
  },
2597
2597
  // @ts-ignore
2598
2598
  // eslint-disable-next-line no-void
2599
- setGlobalModel: (h, b) => {
2599
+ setGlobalModel: (g, y) => {
2600
2600
  }
2601
2601
  });
2602
- C(e.id, {
2602
+ w(e.id, {
2603
2603
  type: e.type,
2604
- value: i
2604
+ value: r
2605
2605
  });
2606
2606
  const u = me(e)("selectChange", () => {
2607
- const h = e.id, b = S(h);
2608
- C(h, { ...b, RECORD: i });
2607
+ const g = e.id, y = x(g);
2608
+ w(g, { ...y, RECORD: r });
2609
2609
  });
2610
2610
  he(e, {
2611
2611
  selectChange: u,
2612
- refreshData: y
2612
+ refreshData: b
2613
2613
  });
2614
- const { setRequest: m } = N(Se, {
2614
+ const { setRequest: h } = N(Se, {
2615
2615
  // @ts-ignore
2616
2616
  // eslint-disable-next-line no-void
2617
- setRequest: ({ id: h, sortNum: b, requestFn: w }) => {
2617
+ setRequest: ({ id: g, sortNum: y, requestFn: p }) => {
2618
2618
  }
2619
2619
  });
2620
- return m({
2620
+ return h({
2621
2621
  id: e.id,
2622
- requestFn: y,
2622
+ requestFn: b,
2623
2623
  sortNum: e.requestSort
2624
2624
  }), {
2625
2625
  style: o,
2626
2626
  getPopupContainer: t,
2627
- myValue: i,
2627
+ myValue: r,
2628
2628
  selectChange: u,
2629
2629
  options: l,
2630
2630
  filterOption: s,
@@ -2633,15 +2633,15 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
2633
2633
  }
2634
2634
  });
2635
2635
  function Di(e, o, t, n, a, l) {
2636
- const i = H("a-select");
2636
+ const r = H("a-select");
2637
2637
  return D(), $("div", {
2638
2638
  class: "ecan-select",
2639
2639
  style: U(e.style)
2640
2640
  }, [
2641
- G(i, {
2641
+ G(r, {
2642
2642
  class: "select",
2643
2643
  value: e.myValue,
2644
- "onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
2644
+ "onUpdate:value": o[0] || (o[0] = (i) => e.myValue = i),
2645
2645
  options: e.options,
2646
2646
  mode: e.mode,
2647
2647
  getPopupContainer: e.getPopupContainer,
@@ -2682,82 +2682,90 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
2682
2682
  },
2683
2683
  setup(e) {
2684
2684
  const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M([null, null]);
2685
- ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, u, m, h, b, w]) => {
2686
- let A = null, L = null;
2687
- if (m && (A = Ce().subtract(h, b), L = Ce()), d && (A = Ce(de(d))), u && (L = Ce(de(u))), w) {
2688
- const { type: p, value: _, mode: x } = w;
2689
- switch (p) {
2685
+ ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([g, y, p, _, I, C]) => {
2686
+ let A = null, S = null;
2687
+ if (p && (A = Ce().subtract(_, I), S = Ce()), g && (A = Ce(de(g))), y && (S = Ce(de(y))), C) {
2688
+ const { type: c, value: m, mode: k } = C;
2689
+ switch (c) {
2690
2690
  case "add":
2691
- A = A && A.add(_, x), L = L && L.add(_, x);
2691
+ A = A && A.add(m, k), S = S && S.add(m, k);
2692
2692
  break;
2693
2693
  case "minus":
2694
- A = A && A.subtract(_, x), L = L && L.subtract(_, x);
2694
+ A = A && A.subtract(m, k), S = S && S.subtract(m, k);
2695
2695
  }
2696
2696
  }
2697
- n.value = [A, L];
2697
+ n.value = [A, S];
2698
2698
  }, {
2699
2699
  immediate: !0
2700
2700
  });
2701
2701
  let a = v(n)[0], l = v(n)[1];
2702
- const i = (d) => {
2703
- Array.isArray(d) ? (a = d[0], l = d[1]) : (a = null, l = null);
2704
- }, r = (d) => {
2705
- let u = !1, { limitStartTime: m, limitEndTime: h } = e;
2706
- const b = {
2702
+ const r = (g) => {
2703
+ Array.isArray(g) ? (a = g[0], l = g[1]) : (a = null, l = null);
2704
+ }, i = (g) => {
2705
+ let y = !1, { limitStartTime: p, limitEndTime: _ } = e;
2706
+ const I = {
2707
2707
  startTime: `${a || ""}`,
2708
2708
  endTime: `${l || ""}`
2709
2709
  };
2710
- return m = de(m, { codeData: b }), h = de(h, { codeData: b }), m && h ? u = !(Ce(m) < d && d < Ce(h)) : m ? u = Ce(m) > d : h && (u = Ce(h) < d), u;
2710
+ return p = de(p, { codeData: I }), _ = de(_, { codeData: I }), p && _ ? y = !(Ce(p) < g && g < Ce(_)) : p ? y = Ce(p) > g : _ && (y = Ce(_) < g), y;
2711
2711
  }, { setGlobalModel: s } = N(ye, {
2712
2712
  // @ts-ignore
2713
2713
  // eslint-disable-next-line no-void
2714
- setGlobalModel: (d, u) => {
2714
+ setGlobalModel: (g, y) => {
2715
2715
  }
2716
- }), f = q(() => Array.isArray(v(n)) ? v(n)[0] : null), y = q(() => Array.isArray(v(n)) ? v(n)[1] : null);
2716
+ }), f = q(() => Array.isArray(v(n)) ? v(n)[0] : null), b = q(() => Array.isArray(v(n)) ? v(n)[1] : null);
2717
2717
  s(e.id, {
2718
2718
  type: e.type,
2719
2719
  format: e.format,
2720
2720
  startTime: f,
2721
- endTime: y
2722
- });
2723
- const C = me(e)("dateChange", () => {
2724
- console.log("dateChange");
2721
+ endTime: b
2725
2722
  });
2723
+ const x = me(e);
2724
+ let w = !1;
2725
+ const d = x("dateChange", () => {
2726
+ }), u = (g) => {
2727
+ g === !1 && w === !0 && (d(), w = !1);
2728
+ }, h = () => {
2729
+ w = !0;
2730
+ };
2726
2731
  return he(e, {
2727
- dateChange: C
2732
+ dateChange: d
2728
2733
  }), {
2729
2734
  style: o,
2730
2735
  getPopupContainer: t,
2731
2736
  locale: Co,
2732
- dateChange: C,
2737
+ dateChange: d,
2733
2738
  myValue: n,
2734
- disabledDate: r,
2735
- calendarChange: i
2739
+ disabledDate: i,
2740
+ calendarChange: r,
2741
+ openChange: u,
2742
+ change: h
2736
2743
  };
2737
2744
  }
2738
2745
  });
2739
2746
  function $i(e, o, t, n, a, l) {
2740
- const i = H("a-range-picker");
2747
+ const r = H("a-range-picker");
2741
2748
  return D(), $("div", {
2742
2749
  class: "ecan-range-picker",
2743
2750
  style: U(e.style)
2744
2751
  }, [
2745
- G(i, {
2752
+ G(r, {
2746
2753
  class: "range-picker",
2747
2754
  dropdownClassName: "ecan-range-picker-dropdown",
2748
2755
  value: e.myValue,
2749
- "onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
2756
+ "onUpdate:value": o[0] || (o[0] = (i) => e.myValue = i),
2750
2757
  format: e.format,
2751
2758
  picker: e.picker,
2752
2759
  locale: e.locale,
2753
2760
  getPopupContainer: e.getPopupContainer,
2754
2761
  "disabled-date": e.disabledDate,
2755
- onChange: e.dateChange,
2756
- onCalendarChange: e.calendarChange
2757
- }, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "disabled-date", "onChange", "onCalendarChange"])
2762
+ onChange: e.change,
2763
+ onCalendarChange: e.calendarChange,
2764
+ onOpenChange: e.openChange
2765
+ }, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "disabled-date", "onChange", "onCalendarChange", "onOpenChange"])
2758
2766
  ], 4);
2759
2767
  }
2760
- const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-24f19e2d"]]), Pi = ae(Ni), en = {
2768
+ const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-a3f2ce0b"]]), Pi = ae(Ni), en = {
2761
2769
  ...se,
2762
2770
  width: "200px",
2763
2771
  name: "按钮",
@@ -2781,35 +2789,35 @@ const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-24f19e2d
2781
2789
  },
2782
2790
  setup(e) {
2783
2791
  const o = re(e), n = me(e)("click", () => {
2784
- const r = v(l);
2785
- r && e.target === "event" && window.parent.postMessage({
2792
+ const i = v(l);
2793
+ i && e.target === "event" && window.parent.postMessage({
2786
2794
  type: "openPage",
2787
- url: r
2795
+ url: i
2788
2796
  }, "*");
2789
- }), a = q(() => de(e.text)), l = q(() => de(e.href) || null), i = q(() => {
2790
- const r = e.target;
2791
- if (!(r === "event" || v(l) == null))
2797
+ }), a = q(() => de(e.text)), l = q(() => de(e.href) || null), r = q(() => {
2798
+ const i = e.target;
2799
+ if (!(i === "event" || v(l) == null))
2792
2800
  return {
2793
2801
  self: "_self",
2794
2802
  blank: "_blank"
2795
- }[r];
2803
+ }[i];
2796
2804
  });
2797
2805
  return {
2798
2806
  style: o,
2799
2807
  click: n,
2800
2808
  myText: a,
2801
2809
  myHref: l,
2802
- myTarget: i
2810
+ myTarget: r
2803
2811
  };
2804
2812
  }
2805
2813
  });
2806
2814
  function Gi(e, o, t, n, a, l) {
2807
- const i = H("a-button");
2815
+ const r = H("a-button");
2808
2816
  return D(), $("div", {
2809
2817
  class: "ecan-button",
2810
2818
  style: U(e.style)
2811
2819
  }, [
2812
- G(i, {
2820
+ G(r, {
2813
2821
  block: "",
2814
2822
  onClick: e.click,
2815
2823
  type: e.mode,
@@ -2857,10 +2865,10 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
2857
2865
  setup(e) {
2858
2866
  const o = re(e), t = M([]), n = M([]), a = (d) => {
2859
2867
  const u = e.value;
2860
- let m = [];
2861
- d.forEach((h) => {
2862
- h.checked && m.push(h.value);
2863
- }), typeof u == "string" && u !== "" ? m = m.concat(u.split(",")) : Array.isArray(u) && (m = m.concat(u)), t.value = d, n.value = m;
2868
+ let h = [];
2869
+ d.forEach((g) => {
2870
+ g.checked && h.push(g.value);
2871
+ }), typeof u == "string" && u !== "" ? h = h.concat(u.split(",")) : Array.isArray(u) && (h = h.concat(u)), t.value = d, n.value = h;
2864
2872
  };
2865
2873
  ne(() => [e.data, e.value], ([d]) => {
2866
2874
  a(d);
@@ -2868,13 +2876,13 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
2868
2876
  immediate: !0,
2869
2877
  deep: !0
2870
2878
  });
2871
- const l = _e(e), { pageMode: i } = N(fe, {
2879
+ const l = _e(e), { pageMode: r } = N(fe, {
2872
2880
  pageMode: "normal"
2873
- }), r = async () => {
2874
- var m, h;
2875
- if (e.dataType !== "request" || v(i) === "design")
2881
+ }), i = async () => {
2882
+ var h, g;
2883
+ if (e.dataType !== "request" || v(r) === "design")
2876
2884
  return;
2877
- const d = await l(), u = ((h = (m = d == null ? void 0 : d.data) == null ? void 0 : m.data) == null ? void 0 : h.rows) || [];
2885
+ const d = await l(), u = ((g = (h = d == null ? void 0 : d.data) == null ? void 0 : h.data) == null ? void 0 : g.rows) || [];
2878
2886
  a(u);
2879
2887
  }, { getGlobalModel: s, setGlobalModel: f } = N(ye, {
2880
2888
  // @ts-ignore
@@ -2890,37 +2898,37 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
2890
2898
  type: e.type,
2891
2899
  value: n
2892
2900
  });
2893
- const S = me(e)("checkboxChange", () => {
2901
+ const x = me(e)("checkboxChange", () => {
2894
2902
  const d = s(e.id);
2895
2903
  f(e.id, { ...d, RECORD: n });
2896
- }), { setRequest: C } = N(Se, {
2904
+ }), { setRequest: w } = N(Se, {
2897
2905
  // @ts-ignore
2898
2906
  // eslint-disable-next-line no-void
2899
- setRequest: ({ id: d, sortNum: u, requestFn: m }) => {
2907
+ setRequest: ({ id: d, sortNum: u, requestFn: h }) => {
2900
2908
  }
2901
2909
  });
2902
- return C({
2910
+ return w({
2903
2911
  id: e.id,
2904
- requestFn: r,
2912
+ requestFn: i,
2905
2913
  sortNum: e.requestSort
2906
2914
  }), {
2907
2915
  myOption: t,
2908
2916
  style: o,
2909
2917
  myValue: n,
2910
- checkboxChange: S
2918
+ checkboxChange: x
2911
2919
  };
2912
2920
  }
2913
2921
  });
2914
2922
  function Hi(e, o, t, n, a, l) {
2915
- const i = H("a-checkbox-group");
2923
+ const r = H("a-checkbox-group");
2916
2924
  return D(), $("div", {
2917
2925
  class: "ecan-checkbox",
2918
2926
  style: U(e.style)
2919
2927
  }, [
2920
- G(i, {
2928
+ G(r, {
2921
2929
  options: e.myOption,
2922
2930
  value: e.myValue,
2923
- "onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
2931
+ "onUpdate:value": o[0] || (o[0] = (i) => e.myValue = i),
2924
2932
  onChange: e.checkboxChange
2925
2933
  }, null, 8, ["options", "value", "onChange"])
2926
2934
  ], 4);
@@ -2994,8 +3002,8 @@ const Zi = /* @__PURE__ */ K(Vi, [["render", Hi]]), Ji = ae(Zi), an = {
2994
3002
  var s;
2995
3003
  const o = await Fe.post(e, {}, {
2996
3004
  responseType: "blob"
2997
- }), { data: t, headers: n } = o, a = n["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), l = new Blob([t]), i = document.createElement("a"), r = window.URL.createObjectURL(l);
2998
- i.href = r, i.download = decodeURI(a), i.style.display = "none", document.body.appendChild(i), i.click(), (s = i.parentNode) == null || s.removeChild(i), window.URL.revokeObjectURL(r);
3005
+ }), { 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);
3006
+ r.href = i, r.download = decodeURI(a), r.style.display = "none", document.body.appendChild(r), r.click(), (s = r.parentNode) == null || s.removeChild(r), window.URL.revokeObjectURL(i);
2999
3007
  };
3000
3008
  qe([
3001
3009
  je,
@@ -3018,13 +3026,13 @@ const Qi = Q({
3018
3026
  setup(e, { expose: o }) {
3019
3027
  const t = re(e), n = M([]), a = M(!1), l = () => {
3020
3028
  a.value = !1;
3021
- }, i = q(() => {
3022
- let { data: _ = [] } = v(n)[0] || {};
3029
+ }, r = q(() => {
3030
+ let { data: A = [] } = v(n)[0] || {};
3023
3031
  if (Array.isArray(e.colors)) {
3024
- const x = e.isUseLabelColors, c = e.colors;
3025
- _ = _.map((g, k) => ({
3026
- label: x ? { color: c[k] } : {},
3027
- ...g
3032
+ const S = e.isUseLabelColors, c = e.colors;
3033
+ A = A.map((m, k) => ({
3034
+ label: S ? { color: c[k] } : {},
3035
+ ...m
3028
3036
  }));
3029
3037
  }
3030
3038
  return {
@@ -3080,8 +3088,8 @@ const Qi = Q({
3080
3088
  tooltip: {
3081
3089
  show: e.tooltipShow,
3082
3090
  trigger: e.tooltipTrigger,
3083
- formatter: (x) => {
3084
- const { marker: c, seriesName: g, name: k, value: R, percent: E, data: T } = x || {};
3091
+ formatter: (S) => {
3092
+ const { marker: c, seriesName: m, name: k, value: R, percent: E, data: T } = S || {};
3085
3093
  return de(
3086
3094
  e.tooltipFormatter,
3087
3095
  {
@@ -3090,7 +3098,7 @@ const Qi = Q({
3090
3098
  name: k,
3091
3099
  value: R,
3092
3100
  percent: E,
3093
- a: g,
3101
+ a: m,
3094
3102
  b: k,
3095
3103
  c: R,
3096
3104
  d: E,
@@ -3120,7 +3128,7 @@ const Qi = Q({
3120
3128
  color: e.colors,
3121
3129
  series: [
3122
3130
  {
3123
- data: _,
3131
+ data: A,
3124
3132
  type: "pie",
3125
3133
  radius: [e.innerRadius, e.outerRadius],
3126
3134
  center: [e.centerLeft, e.centerTop],
@@ -3155,72 +3163,72 @@ const Qi = Q({
3155
3163
  }
3156
3164
  ]
3157
3165
  };
3158
- }), { getGlobalModel: r, setGlobalModel: s } = N(ye, {
3166
+ }), { getGlobalModel: i, setGlobalModel: s } = N(ye, {
3159
3167
  // @ts-ignore
3160
3168
  // eslint-disable-next-line no-void
3161
- getGlobalModel: (_) => {
3169
+ getGlobalModel: (A) => {
3162
3170
  },
3163
3171
  // @ts-ignore
3164
3172
  // eslint-disable-next-line no-void
3165
- setGlobalModel: (_, x) => {
3173
+ setGlobalModel: (A, S) => {
3166
3174
  }
3167
3175
  }), { pageMode: f } = N(fe, {
3168
3176
  pageMode: "normal"
3169
- }), y = (_ = [], x) => {
3170
- const { dataset: c } = Qe(_, x);
3177
+ }), b = (A = [], S) => {
3178
+ const { dataset: c } = Qe(A, S);
3171
3179
  n.value = c;
3172
- }, S = (_ = [], x) => {
3173
- const c = Qe(_, x);
3180
+ }, x = (A = [], S) => {
3181
+ const c = Qe(A, S);
3174
3182
  n.value = c.dataset;
3175
3183
  };
3176
- ne(() => e.data, (_) => {
3177
- (e.dataType === "static" || v(f) === "design") && y(_);
3184
+ ne(() => e.data, (A) => {
3185
+ (e.dataType === "static" || v(f) === "design") && b(A);
3178
3186
  }, {
3179
3187
  immediate: !0,
3180
3188
  deep: !0
3181
3189
  });
3182
- const C = M(!1), d = _e(e), u = async () => {
3183
- var _, x;
3190
+ const w = M(!1), d = _e(e), u = async () => {
3191
+ var A, S;
3184
3192
  if (!(e.dataType !== "request" || v(f) === "design"))
3185
3193
  try {
3186
- C.value = !0;
3194
+ w.value = !0;
3187
3195
  const c = await d();
3188
- y((x = (_ = c == null ? void 0 : c.data) == null ? void 0 : _.data) == null ? void 0 : x.rows, e.valueTypeDataFieldNames);
3196
+ b((S = (A = c == null ? void 0 : c.data) == null ? void 0 : A.data) == null ? void 0 : S.rows, e.valueTypeDataFieldNames);
3189
3197
  } catch (c) {
3190
3198
  console.error(c);
3191
3199
  } finally {
3192
- C.value = !1;
3200
+ w.value = !1;
3193
3201
  }
3194
- }, h = me(e)("click", (_) => {
3195
- const x = r(e.id);
3196
- s(e.id, { ...x, RECORD: _ == null ? void 0 : _.data });
3197
- }), b = ot(e), w = async () => {
3198
- var _;
3202
+ }, g = me(e)("click", (A) => {
3203
+ const S = i(e.id);
3204
+ s(e.id, { ...S, RECORD: A == null ? void 0 : A.data });
3205
+ }), y = ot(e), p = async () => {
3206
+ var A;
3199
3207
  try {
3200
- C.value = !0;
3201
- const x = await b(), { data: c } = x.data || {};
3208
+ w.value = !0;
3209
+ const S = await y(), { data: c } = S.data || {};
3202
3210
  if (c) {
3203
- const { columns: g = [], rows: k = [] } = ((_ = x == null ? void 0 : x.data) == null ? void 0 : _.data) ?? {};
3211
+ const { columns: m = [], rows: k = [] } = ((A = S == null ? void 0 : S.data) == null ? void 0 : A.data) ?? {};
3204
3212
  let R = [];
3205
- if (g.length > 0) {
3206
- const E = g[0], T = g[1];
3213
+ if (m.length > 0) {
3214
+ const E = m[0], T = m[1];
3207
3215
  R = k.map((j) => ({
3208
3216
  name: j[E],
3209
3217
  value: j[T]
3210
3218
  }));
3211
3219
  }
3212
- S(R);
3220
+ x(R);
3213
3221
  }
3214
- } catch (x) {
3215
- console.error(x);
3222
+ } catch (S) {
3223
+ console.error(S);
3216
3224
  } finally {
3217
- C.value = !1;
3225
+ w.value = !1;
3218
3226
  }
3219
- }, A = () => {
3227
+ }, _ = () => {
3220
3228
  if (v(f) !== "design")
3221
3229
  switch (e.dataType) {
3222
3230
  case "indicator":
3223
- w();
3231
+ p();
3224
3232
  break;
3225
3233
  case "request":
3226
3234
  u();
@@ -3229,40 +3237,40 @@ const Qi = Q({
3229
3237
  };
3230
3238
  he(e, {
3231
3239
  resetRecord: () => {
3232
- const _ = e.id, x = r(_);
3233
- s(_, { ...x, RECORD: "" });
3240
+ const A = e.id, S = i(A);
3241
+ s(A, { ...S, RECORD: "" });
3234
3242
  },
3235
- refreshData: A,
3236
- click: h
3243
+ refreshData: _,
3244
+ click: g
3237
3245
  }), o({
3238
- refreshData: A
3246
+ refreshData: _
3239
3247
  });
3240
- const { setRequest: p } = N(Se, {
3241
- setRequest: (_) => {
3248
+ const { setRequest: C } = N(Se, {
3249
+ setRequest: (A) => {
3242
3250
  }
3243
3251
  });
3244
- return typeof p == "function" && p({
3252
+ return typeof C == "function" && C({
3245
3253
  id: e.id,
3246
- requestFn: A,
3254
+ requestFn: _,
3247
3255
  sortNum: e.requestSort
3248
3256
  }), {
3249
- option: i,
3257
+ option: r,
3250
3258
  style: t,
3251
- click: h,
3252
- loading: C,
3259
+ click: g,
3260
+ loading: w,
3253
3261
  visible: a,
3254
3262
  hideModal: l
3255
3263
  };
3256
3264
  }
3257
3265
  });
3258
3266
  function Ki(e, o, t, n, a, l) {
3259
- const i = H("echarts"), r = H("spin"), s = H("a-modal");
3267
+ const r = H("echarts"), i = H("spin"), s = H("a-modal");
3260
3268
  return D(), $("div", {
3261
3269
  style: U(e.style)
3262
3270
  }, [
3263
- G(r, { spinning: e.loading }, {
3271
+ G(i, { spinning: e.loading }, {
3264
3272
  default: Y(() => [
3265
- G(i, {
3273
+ G(r, {
3266
3274
  option: e.option,
3267
3275
  autoresize: "",
3268
3276
  onClick: e.click
@@ -3278,9 +3286,9 @@ function Ki(e, o, t, n, a, l) {
3278
3286
  onCancel: e.hideModal
3279
3287
  }, {
3280
3288
  default: Y(() => [
3281
- G(r, { spinning: e.loading }, {
3289
+ G(i, { spinning: e.loading }, {
3282
3290
  default: Y(() => [
3283
- G(i, {
3291
+ G(r, {
3284
3292
  option: e.option,
3285
3293
  "update-options": { notMerge: !0 },
3286
3294
  autoresize: ""
@@ -3382,10 +3390,10 @@ const or = Q({
3382
3390
  AModal: Ae
3383
3391
  },
3384
3392
  setup(e, { expose: o }) {
3385
- const t = re(e), n = M([]), a = M([]), l = M(!1), i = () => {
3393
+ const t = re(e), n = M([]), a = M([]), l = M(!1), r = () => {
3386
3394
  l.value = !1;
3387
- }, r = q(() => {
3388
- const x = e.xAxisLabelFormatter, c = e.yAxisLabelFormatter;
3395
+ }, i = q(() => {
3396
+ const S = e.xAxisLabelFormatter, c = e.yAxisLabelFormatter;
3389
3397
  return {
3390
3398
  toolbox: {
3391
3399
  show: e.toolboxShow,
@@ -3439,12 +3447,12 @@ const or = Q({
3439
3447
  tooltip: {
3440
3448
  trigger: "axis",
3441
3449
  show: e.tooltipShow,
3442
- formatter: (g) => {
3443
- const k = g.length;
3450
+ formatter: (m) => {
3451
+ const k = m.length;
3444
3452
  let R = "", E = e.tooltipFormatter;
3445
3453
  E === "" && (E = "{marker} {a} {c}");
3446
3454
  for (let T = 0; T < k; T++) {
3447
- const { marker: j, seriesName: J, name: F, value: B, data: z } = g[T] || {};
3455
+ const { marker: j, seriesName: J, name: F, value: B, data: z } = m[T] || {};
3448
3456
  T === 0 && (R += `${F}<br/>`), R += de(
3449
3457
  E,
3450
3458
  {
@@ -3483,8 +3491,8 @@ const or = Q({
3483
3491
  rotate: e.xAxisLabelRotate,
3484
3492
  width: e.xAxisLabelWidth,
3485
3493
  overflow: e.xAxisLabelOverflow,
3486
- formatter(g) {
3487
- return Ne(x, g);
3494
+ formatter(m) {
3495
+ return Ne(S, m);
3488
3496
  }
3489
3497
  },
3490
3498
  axisLine: {
@@ -3507,8 +3515,8 @@ const or = Q({
3507
3515
  },
3508
3516
  axisLabel: {
3509
3517
  color: e.yAxisLabelColor,
3510
- formatter(g) {
3511
- return Ne(c, g);
3518
+ formatter(m) {
3519
+ return Ne(c, m);
3512
3520
  }
3513
3521
  },
3514
3522
  axisLine: {
@@ -3529,25 +3537,25 @@ const or = Q({
3529
3537
  }), { getGlobalModel: s, setGlobalModel: f } = N(ye, {
3530
3538
  // @ts-ignore
3531
3539
  // eslint-disable-next-line no-void
3532
- getGlobalModel: (x) => {
3540
+ getGlobalModel: (S) => {
3533
3541
  },
3534
3542
  // @ts-ignore
3535
3543
  // eslint-disable-next-line no-void
3536
- setGlobalModel: (x, c) => {
3544
+ setGlobalModel: (S, c) => {
3537
3545
  }
3538
- }), { pageMode: y } = N(fe, {
3546
+ }), { pageMode: b } = N(fe, {
3539
3547
  pageMode: "normal"
3540
- }), S = (x = [], c = !1) => {
3541
- let g;
3548
+ }), x = (S = [], c = !1) => {
3549
+ let m;
3542
3550
  if (e.dataFieldConfigType === "key") {
3543
3551
  const T = c ? e.keyTypeDataFieldNames : null;
3544
- g = Ge(x, T);
3552
+ m = Ge(S, T);
3545
3553
  } else if (e.dataFieldConfigType === "value") {
3546
3554
  const T = c ? e.valueTypeDataFieldNames : null;
3547
- g = Qe(x, T);
3555
+ m = Qe(S, T);
3548
3556
  }
3549
- a.value = g.dimensions;
3550
- const k = g.dataset, R = [], E = k.length;
3557
+ a.value = m.dimensions;
3558
+ const k = m.dataset, R = [], E = k.length;
3551
3559
  for (let T = 0; T < E; T++)
3552
3560
  R.push({
3553
3561
  type: "line",
@@ -3575,8 +3583,8 @@ const or = Q({
3575
3583
  }
3576
3584
  });
3577
3585
  n.value = R;
3578
- }, C = (x = [], c, g = !1) => {
3579
- const R = Ge(x, g ? c : null);
3586
+ }, w = (S = [], c, m = !1) => {
3587
+ const R = Ge(S, m ? c : null);
3580
3588
  a.value = R.dimensions;
3581
3589
  const E = R.dataset, T = [], j = E.length;
3582
3590
  for (let J = 0; J < j; J++)
@@ -3591,92 +3599,92 @@ const or = Q({
3591
3599
  });
3592
3600
  n.value = T;
3593
3601
  };
3594
- ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([x]) => {
3595
- (e.dataType === "static" || v(y) === "design") && S(x);
3602
+ ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([S]) => {
3603
+ (e.dataType === "static" || v(b) === "design") && x(S);
3596
3604
  }, {
3597
3605
  immediate: !0,
3598
3606
  deep: !0
3599
3607
  });
3600
- const d = M(!1), u = _e(e), m = async () => {
3601
- var x, c;
3602
- if (!(e.dataType !== "request" || v(y) === "design"))
3608
+ const d = M(!1), u = _e(e), h = async () => {
3609
+ var S, c;
3610
+ if (!(e.dataType !== "request" || v(b) === "design"))
3603
3611
  try {
3604
3612
  d.value = !0;
3605
- const g = await u();
3606
- S((c = (x = g == null ? void 0 : g.data) == null ? void 0 : x.data) == null ? void 0 : c.rows, !0);
3607
- } catch (g) {
3608
- console.error(g);
3613
+ const m = await u();
3614
+ x((c = (S = m == null ? void 0 : m.data) == null ? void 0 : S.data) == null ? void 0 : c.rows, !0);
3615
+ } catch (m) {
3616
+ console.error(m);
3609
3617
  } finally {
3610
3618
  d.value = !1;
3611
3619
  }
3612
- }, b = me(e)("click", (x) => {
3620
+ }, y = me(e)("click", (S) => {
3613
3621
  const c = s(e.id);
3614
- f(e.id, { ...c, RECORD: x == null ? void 0 : x.data });
3615
- }), w = ot(e), A = async () => {
3616
- var x;
3622
+ f(e.id, { ...c, RECORD: S == null ? void 0 : S.data });
3623
+ }), p = ot(e), _ = async () => {
3624
+ var S;
3617
3625
  try {
3618
3626
  d.value = !0;
3619
- const c = await w(), { columns: g = [], rows: k = [] } = ((x = c == null ? void 0 : c.data) == null ? void 0 : x.data) ?? {};
3627
+ const c = await p(), { columns: m = [], rows: k = [] } = ((S = c == null ? void 0 : c.data) == null ? void 0 : S.data) ?? {};
3620
3628
  let R;
3621
- g.length > 0 && (R = {
3622
- name: g[0],
3623
- types: g.slice(1).map((E) => ({
3629
+ m.length > 0 && (R = {
3630
+ name: m[0],
3631
+ types: m.slice(1).map((E) => ({
3624
3632
  label: E,
3625
3633
  value: E
3626
3634
  }))
3627
- }), C(k, R, !0);
3635
+ }), w(k, R, !0);
3628
3636
  } catch (c) {
3629
3637
  console.error(c);
3630
3638
  } finally {
3631
3639
  d.value = !1;
3632
3640
  }
3633
- }, L = () => {
3634
- if (v(y) !== "design")
3641
+ }, I = () => {
3642
+ if (v(b) !== "design")
3635
3643
  switch (e.dataType) {
3636
3644
  case "indicator":
3637
- A();
3645
+ _();
3638
3646
  break;
3639
3647
  case "request":
3640
- m();
3648
+ h();
3641
3649
  break;
3642
3650
  }
3643
3651
  };
3644
3652
  he(e, {
3645
- refreshData: L,
3653
+ refreshData: I,
3646
3654
  resetRecord: () => {
3647
- const x = e.id, c = s(x);
3648
- f(x, { ...c, RECORD: "" });
3655
+ const S = e.id, c = s(S);
3656
+ f(S, { ...c, RECORD: "" });
3649
3657
  },
3650
- click: b
3658
+ click: y
3651
3659
  });
3652
- const { setRequest: _ } = N(Se, {
3653
- setRequest: (x) => {
3660
+ const { setRequest: A } = N(Se, {
3661
+ setRequest: (S) => {
3654
3662
  }
3655
3663
  });
3656
- return typeof _ == "function" && _({
3664
+ return typeof A == "function" && A({
3657
3665
  id: e.id,
3658
- requestFn: L,
3666
+ requestFn: I,
3659
3667
  sortNum: e.requestSort
3660
3668
  }), o({
3661
- refreshData: L
3669
+ refreshData: I
3662
3670
  }), {
3663
- option: r,
3671
+ option: i,
3664
3672
  style: t,
3665
- click: b,
3673
+ click: y,
3666
3674
  loading: d,
3667
3675
  visible: l,
3668
- hideModal: i
3676
+ hideModal: r
3669
3677
  };
3670
3678
  }
3671
3679
  });
3672
3680
  function nr(e, o, t, n, a, l) {
3673
- const i = H("echarts"), r = H("spin"), s = H("a-modal");
3681
+ const r = H("echarts"), i = H("spin"), s = H("a-modal");
3674
3682
  return D(), $("div", {
3675
3683
  style: U(e.style)
3676
3684
  }, [
3677
- G(r, { spinning: e.loading }, {
3685
+ G(i, { spinning: e.loading }, {
3678
3686
  default: Y(() => [
3679
- G(i, {
3687
+ G(r, {
3680
3688
  option: e.option,
3681
3689
  autoresize: "",
3682
3690
  onClick: e.click
@@ -3692,9 +3700,9 @@ function nr(e, o, t, n, a, l) {
3692
3700
  onCancel: e.hideModal
3693
3701
  }, {
3694
3702
  default: Y(() => [
3695
- G(r, { spinning: e.loading }, {
3703
+ G(i, { spinning: e.loading }, {
3696
3704
  default: Y(() => [
3697
- G(i, {
3705
+ G(r, {
3698
3706
  option: e.option,
3699
3707
  "update-options": { notMerge: !0 },
3700
3708
  autoresize: ""
@@ -3819,9 +3827,9 @@ const rr = Q({
3819
3827
  setup(e, { expose: o }) {
3820
3828
  const t = re(e), n = M([]), a = M(!1), l = () => {
3821
3829
  a.value = !1;
3822
- }, i = q(() => {
3823
- const c = v(n), g = c.length, k = [];
3824
- for (let R = 0; R < g; R++) {
3830
+ }, r = q(() => {
3831
+ const c = v(n), m = c.length, k = [];
3832
+ for (let R = 0; R < m; R++) {
3825
3833
  const E = {
3826
3834
  ...c[R],
3827
3835
  type: "bar",
@@ -3835,8 +3843,8 @@ const rr = Q({
3835
3843
  }, k.push(E);
3836
3844
  }
3837
3845
  return k;
3838
- }), r = M([]), s = M(!1), f = q(() => {
3839
- const c = e.yAxisLabelFormatter, g = e.xAxisLabelFormatter;
3846
+ }), i = M([]), s = M(!1), f = q(() => {
3847
+ const c = e.yAxisLabelFormatter, m = e.xAxisLabelFormatter;
3840
3848
  return {
3841
3849
  toolbox: {
3842
3850
  show: e.toolboxShow,
@@ -3935,7 +3943,7 @@ const rr = Q({
3935
3943
  },
3936
3944
  xAxis: {
3937
3945
  type: e.isUseHorizontalAxis ? "value" : "category",
3938
- data: e.isUseHorizontalAxis ? null : v(r),
3946
+ data: e.isUseHorizontalAxis ? null : v(i),
3939
3947
  inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
3940
3948
  minInterval: e.xAxisMinInterval,
3941
3949
  splitLine: {
@@ -3951,7 +3959,7 @@ const rr = Q({
3951
3959
  width: e.xAxisLabelWidth,
3952
3960
  overflow: e.xAxisLabelOverflow,
3953
3961
  formatter(k) {
3954
- return Ne(g, k);
3962
+ return Ne(m, k);
3955
3963
  }
3956
3964
  },
3957
3965
  axisLine: {
@@ -3965,7 +3973,7 @@ const rr = Q({
3965
3973
  },
3966
3974
  yAxis: {
3967
3975
  type: e.isUseHorizontalAxis ? "category" : "value",
3968
- data: e.isUseHorizontalAxis ? v(r) : null,
3976
+ data: e.isUseHorizontalAxis ? v(i) : null,
3969
3977
  inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
3970
3978
  minInterval: e.yAxisMinInterval,
3971
3979
  splitLine: {
@@ -3989,46 +3997,46 @@ const rr = Q({
3989
3997
  }
3990
3998
  }
3991
3999
  },
3992
- series: v(i)
4000
+ series: v(r)
3993
4001
  };
3994
- }), { pageMode: y } = N(fe, {
4002
+ }), { pageMode: b } = N(fe, {
3995
4003
  pageMode: "normal"
3996
- }), S = (c = [], g = !1) => {
4004
+ }), x = (c = [], m = !1) => {
3997
4005
  let k = {};
3998
4006
  if (e.dataFieldConfigType === "key") {
3999
- const R = g ? e.keyTypeDataFieldNames : null;
4007
+ const R = m ? e.keyTypeDataFieldNames : null;
4000
4008
  k = Ge(c, R);
4001
4009
  } else if (e.dataFieldConfigType === "value") {
4002
- const R = g ? e.valueTypeDataFieldNames : null;
4010
+ const R = m ? e.valueTypeDataFieldNames : null;
4003
4011
  k = Qe(c, R);
4004
4012
  }
4005
- n.value = k.dataset, r.value = k.dimensions;
4006
- }, C = (c = [], g, k = !1) => {
4007
- const E = Ge(c, k ? g : null);
4008
- n.value = E.dataset, r.value = E.dimensions;
4013
+ n.value = k.dataset, i.value = k.dimensions;
4014
+ }, w = (c = [], m, k = !1) => {
4015
+ const E = Ge(c, k ? m : null);
4016
+ n.value = E.dataset, i.value = E.dimensions;
4009
4017
  };
4010
4018
  ne(() => e.data, (c) => {
4011
- (e.dataType === "static" || v(y) === "design") && S(c);
4019
+ (e.dataType === "static" || v(b) === "design") && x(c);
4012
4020
  }, {
4013
4021
  immediate: !0,
4014
4022
  deep: !0
4015
4023
  });
4016
4024
  const d = _e(e), u = async () => {
4017
- var c, g;
4025
+ var c, m;
4018
4026
  try {
4019
4027
  s.value = !0;
4020
4028
  const k = await d();
4021
- S((g = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : g.rows, !0);
4029
+ x((m = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : m.rows, !0);
4022
4030
  } catch (k) {
4023
4031
  console.error(k);
4024
4032
  } finally {
4025
4033
  s.value = !1;
4026
4034
  }
4027
- }, m = ot(e), h = async () => {
4035
+ }, h = ot(e), g = async () => {
4028
4036
  var c;
4029
4037
  try {
4030
4038
  s.value = !0;
4031
- const g = await m(), { columns: k = [], rows: R = [] } = ((c = g == null ? void 0 : g.data) == null ? void 0 : c.data) ?? {};
4039
+ const m = await h(), { columns: k = [], rows: R = [] } = ((c = m == null ? void 0 : m.data) == null ? void 0 : c.data) ?? {};
4032
4040
  let E;
4033
4041
  k.length > 0 && (E = {
4034
4042
  name: k[0],
@@ -4036,17 +4044,17 @@ const rr = Q({
4036
4044
  label: T,
4037
4045
  value: T
4038
4046
  }))
4039
- }), C(R, E, !0);
4040
- } catch (g) {
4041
- console.error(g);
4047
+ }), w(R, E, !0);
4048
+ } catch (m) {
4049
+ console.error(m);
4042
4050
  } finally {
4043
4051
  s.value = !1;
4044
4052
  }
4045
- }, b = () => {
4046
- if (v(y) !== "design")
4053
+ }, y = () => {
4054
+ if (v(b) !== "design")
4047
4055
  switch (e.dataType) {
4048
4056
  case "indicator":
4049
- h();
4057
+ g();
4050
4058
  break;
4051
4059
  case "request":
4052
4060
  u();
@@ -4054,40 +4062,40 @@ const rr = Q({
4054
4062
  }
4055
4063
  };
4056
4064
  o({
4057
- refreshData: b
4065
+ refreshData: y
4058
4066
  });
4059
- const w = me(e), { getGlobalModel: A, setGlobalModel: L } = N(ye, {
4067
+ const p = me(e), { getGlobalModel: _, setGlobalModel: I } = N(ye, {
4060
4068
  // @ts-ignore
4061
4069
  // eslint-disable-next-line no-void
4062
4070
  getGlobalModel: (c) => {
4063
4071
  },
4064
4072
  // @ts-ignore
4065
4073
  // eslint-disable-next-line no-void
4066
- setGlobalModel: (c, g) => {
4074
+ setGlobalModel: (c, m) => {
4067
4075
  }
4068
- }), p = w("click", (c) => {
4069
- const g = A(e.id);
4070
- L(e.id, { ...g, RECORD: c.data });
4071
- }), { setRequest: _ } = N(Se, {
4076
+ }), C = p("click", (c) => {
4077
+ const m = _(e.id);
4078
+ I(e.id, { ...m, RECORD: c.data });
4079
+ }), { setRequest: A } = N(Se, {
4072
4080
  setRequest: (c) => {
4073
4081
  }
4074
4082
  });
4075
- return typeof _ == "function" && _({
4083
+ return typeof A == "function" && A({
4076
4084
  id: e.id,
4077
- requestFn: b,
4085
+ requestFn: y,
4078
4086
  sortNum: e.requestSort
4079
4087
  }), he(e, {
4080
- refreshData: b,
4081
- click: p,
4088
+ refreshData: y,
4089
+ click: C,
4082
4090
  resetRecord: () => {
4083
- const c = e.id, g = A(c);
4084
- L(c, { ...g, RECORD: "" });
4091
+ const c = e.id, m = _(c);
4092
+ I(c, { ...m, RECORD: "" });
4085
4093
  }
4086
4094
  }), {
4087
4095
  option: f,
4088
4096
  style: t,
4089
- refreshData: b,
4090
- click: p,
4097
+ refreshData: y,
4098
+ click: C,
4091
4099
  loading: s,
4092
4100
  visible: a,
4093
4101
  hideModal: l
@@ -4095,14 +4103,14 @@ const rr = Q({
4095
4103
  }
4096
4104
  });
4097
4105
  function sr(e, o, t, n, a, l) {
4098
- const i = H("echarts"), r = H("spin"), s = H("a-modal");
4106
+ const r = H("echarts"), i = H("spin"), s = H("a-modal");
4099
4107
  return D(), $("div", {
4100
4108
  class: "ecan-bar",
4101
4109
  style: U(e.style)
4102
4110
  }, [
4103
- G(r, { spinning: e.loading }, {
4111
+ G(i, { spinning: e.loading }, {
4104
4112
  default: Y(() => [
4105
- G(i, {
4113
+ G(r, {
4106
4114
  option: e.option,
4107
4115
  "update-options": { notMerge: !0 },
4108
4116
  autoresize: "",
@@ -4119,9 +4127,9 @@ function sr(e, o, t, n, a, l) {
4119
4127
  onCancel: e.hideModal
4120
4128
  }, {
4121
4129
  default: Y(() => [
4122
- G(r, { spinning: e.loading }, {
4130
+ G(i, { spinning: e.loading }, {
4123
4131
  default: Y(() => [
4124
- G(i, {
4132
+ G(r, {
4125
4133
  option: e.option,
4126
4134
  "update-options": { notMerge: !0 },
4127
4135
  autoresize: ""
@@ -4218,7 +4226,7 @@ const fr = Q({
4218
4226
  const o = re(e), t = M([]), n = M(!1), a = () => {
4219
4227
  n.value = !1;
4220
4228
  }, l = q(() => {
4221
- const w = e.xAxisLabelFormatter, A = e.yAxisLabelFormatter;
4229
+ const p = e.xAxisLabelFormatter, _ = e.yAxisLabelFormatter;
4222
4230
  return {
4223
4231
  toolbox: {
4224
4232
  show: e.toolboxShow,
@@ -4283,8 +4291,8 @@ const fr = Q({
4283
4291
  rotate: e.xAxisLabelRotate,
4284
4292
  width: e.xAxisLabelWidth,
4285
4293
  overflow: e.xAxisLabelOverflow,
4286
- formatter(L) {
4287
- return Ne(w, L);
4294
+ formatter(I) {
4295
+ return Ne(p, I);
4288
4296
  }
4289
4297
  },
4290
4298
  axisLine: {
@@ -4305,8 +4313,8 @@ const fr = Q({
4305
4313
  },
4306
4314
  axisLabel: {
4307
4315
  color: e.yAxisLabelColor,
4308
- formatter(L) {
4309
- return Ne(A, L);
4316
+ formatter(I) {
4317
+ return Ne(_, I);
4310
4318
  }
4311
4319
  },
4312
4320
  axisLine: {
@@ -4319,17 +4327,17 @@ const fr = Q({
4319
4327
  tooltip: {
4320
4328
  show: e.tooltipShow,
4321
4329
  trigger: e.tooltipTrigger,
4322
- formatter: function(L) {
4330
+ formatter: function(I) {
4323
4331
  var k;
4324
- const { marker: p, seriesName: _ } = L, x = ((k = L == null ? void 0 : L.data) == null ? void 0 : k.record) ?? {}, { name: c, value: g } = x;
4332
+ const { marker: C, seriesName: A } = I, S = ((k = I == null ? void 0 : I.data) == null ? void 0 : k.record) ?? {}, { name: c, value: m } = S;
4325
4333
  return de(e.tooltipFormatter, {
4326
4334
  textData: {
4327
- marker: p,
4328
- seriesName: _,
4329
- a: _,
4335
+ marker: C,
4336
+ seriesName: A,
4337
+ a: A,
4330
4338
  b: c,
4331
- c: g,
4332
- ...x
4339
+ c: m,
4340
+ ...S
4333
4341
  }
4334
4342
  });
4335
4343
  },
@@ -4352,80 +4360,80 @@ const fr = Q({
4352
4360
  }
4353
4361
  ]
4354
4362
  };
4355
- }), { getGlobalModel: i, setGlobalModel: r } = N(ye, {
4363
+ }), { getGlobalModel: r, setGlobalModel: i } = N(ye, {
4356
4364
  // @ts-ignore
4357
4365
  // eslint-disable-next-line no-void
4358
- getGlobalModel: (w) => {
4366
+ getGlobalModel: (p) => {
4359
4367
  },
4360
4368
  // @ts-ignore
4361
4369
  // eslint-disable-next-line no-void
4362
- setGlobalModel: (w, A) => {
4370
+ setGlobalModel: (p, _) => {
4363
4371
  }
4364
4372
  }), { pageMode: s } = N(fe, {
4365
4373
  pageMode: "normal"
4366
- }), f = (w = [], A) => {
4367
- const { name: L = "name", value: p = "value" } = A || {};
4368
- t.value = w.map((_) => ({ value: [_[L], _[p]], record: _ }));
4374
+ }), f = (p = [], _) => {
4375
+ const { name: I = "name", value: C = "value" } = _ || {};
4376
+ t.value = p.map((A) => ({ value: [A[I], A[C]], record: A }));
4369
4377
  };
4370
- ne(() => e.data, (w) => {
4371
- (e.dataType === "static" || v(s) === "design") && f(w);
4378
+ ne(() => e.data, (p) => {
4379
+ (e.dataType === "static" || v(s) === "design") && f(p);
4372
4380
  }, {
4373
4381
  immediate: !0,
4374
4382
  deep: !0
4375
4383
  });
4376
- const y = M(!1), S = _e(e), C = async () => {
4377
- var w, A;
4384
+ const b = M(!1), x = _e(e), w = async () => {
4385
+ var p, _;
4378
4386
  if (!(e.dataType !== "request" || v(s) === "design")) {
4379
- y.value = !0;
4387
+ b.value = !0;
4380
4388
  try {
4381
- const L = await S();
4382
- f((A = (w = L == null ? void 0 : L.data) == null ? void 0 : w.data) == null ? void 0 : A.rows, e.dataFieldNames);
4383
- } catch (L) {
4384
- console.error(L);
4389
+ const I = await x();
4390
+ f((_ = (p = I == null ? void 0 : I.data) == null ? void 0 : p.data) == null ? void 0 : _.rows, e.dataFieldNames);
4391
+ } catch (I) {
4392
+ console.error(I);
4385
4393
  } finally {
4386
- y.value = !1;
4394
+ b.value = !1;
4387
4395
  }
4388
4396
  }
4389
- }, u = me(e)("click", (w) => {
4390
- const A = e.id, L = i(A);
4391
- r(A, { ...L, RECORD: w == null ? void 0 : w.data });
4397
+ }, u = me(e)("click", (p) => {
4398
+ const _ = e.id, I = r(_);
4399
+ i(_, { ...I, RECORD: p == null ? void 0 : p.data });
4392
4400
  });
4393
4401
  he(e, {
4394
4402
  refreshData: () => {
4395
- C();
4403
+ w();
4396
4404
  },
4397
4405
  click: u,
4398
4406
  resetRecord: () => {
4399
- const w = e.id, A = i(w);
4400
- r(w, { ...A, RECORD: "" });
4407
+ const p = e.id, _ = r(p);
4408
+ i(p, { ..._, RECORD: "" });
4401
4409
  }
4402
4410
  });
4403
- const { setRequest: b } = N(Se, {
4404
- setRequest: (w) => {
4411
+ const { setRequest: y } = N(Se, {
4412
+ setRequest: (p) => {
4405
4413
  }
4406
4414
  });
4407
- return typeof b == "function" && b({
4415
+ return typeof y == "function" && y({
4408
4416
  id: e.id,
4409
- requestFn: C,
4417
+ requestFn: w,
4410
4418
  sortNum: e.requestSort
4411
4419
  }), {
4412
4420
  option: l,
4413
4421
  style: o,
4414
4422
  click: u,
4415
- loading: y,
4423
+ loading: b,
4416
4424
  visible: n,
4417
4425
  hideModal: a
4418
4426
  };
4419
4427
  }
4420
4428
  });
4421
4429
  function mr(e, o, t, n, a, l) {
4422
- const i = H("echarts"), r = H("spin"), s = H("a-modal");
4430
+ const r = H("echarts"), i = H("spin"), s = H("a-modal");
4423
4431
  return D(), $("div", {
4424
4432
  style: U(e.style)
4425
4433
  }, [
4426
- G(r, { spinning: e.loading }, {
4434
+ G(i, { spinning: e.loading }, {
4427
4435
  default: Y(() => [
4428
- G(i, {
4436
+ G(r, {
4429
4437
  option: e.option,
4430
4438
  autoresize: "",
4431
4439
  onClick: e.click
@@ -4441,9 +4449,9 @@ function mr(e, o, t, n, a, l) {
4441
4449
  onCancel: e.hideModal
4442
4450
  }, {
4443
4451
  default: Y(() => [
4444
- G(r, { spinning: e.loading }, {
4452
+ G(i, { spinning: e.loading }, {
4445
4453
  default: Y(() => [
4446
- G(i, {
4454
+ G(r, {
4447
4455
  option: e.option,
4448
4456
  "update-options": { notMerge: !0 },
4449
4457
  autoresize: ""
@@ -4493,11 +4501,11 @@ const gr = /* @__PURE__ */ K(fr, [["render", mr]]), hr = ae(gr), mn = {
4493
4501
  }
4494
4502
  });
4495
4503
  function br(e, o, t, n, a, l) {
4496
- const i = H("echarts");
4504
+ const r = H("echarts");
4497
4505
  return D(), $("div", {
4498
4506
  style: U(e.style)
4499
4507
  }, [
4500
- G(i, {
4508
+ G(r, {
4501
4509
  option: e.myOption,
4502
4510
  "update-options": { notMerge: !0 },
4503
4511
  autoresize: ""
@@ -4636,9 +4644,9 @@ const Sr = Q({
4636
4644
  AModal: Ae
4637
4645
  },
4638
4646
  setup(e, { expose: o }) {
4639
- const t = re(e), n = M([]), a = M([]), l = M(!1), i = () => {
4647
+ const t = re(e), n = M([]), a = M([]), l = M(!1), r = () => {
4640
4648
  l.value = !1;
4641
- }, r = q(() => ({
4649
+ }, i = q(() => ({
4642
4650
  title: {
4643
4651
  text: e.titleText,
4644
4652
  subtext: e.titleSubtext,
@@ -4701,11 +4709,11 @@ const Sr = Q({
4701
4709
  trigger: "axis",
4702
4710
  show: e.tooltipShow,
4703
4711
  formatter: (c) => {
4704
- const g = c.length;
4712
+ const m = c.length;
4705
4713
  let k = "", R = e.tooltipFormatter;
4706
4714
  R === "" && (R = "{marker} {a} {c}");
4707
4715
  const E = e.seriesTypes;
4708
- for (let T = 0; T < g; T++) {
4716
+ for (let T = 0; T < m; T++) {
4709
4717
  const j = E[T], { tooltipFormatter: J } = j || {}, { marker: F, seriesName: B, name: z, value: W, data: X } = c[T] || {};
4710
4718
  T === 0 && (k += `${z}<br/>`), k += de(
4711
4719
  // 如果系列有提示框组件就使用自定义,没有就用默认的
@@ -4760,17 +4768,17 @@ const Sr = Q({
4760
4768
  show: e.xAxisTickShow
4761
4769
  }
4762
4770
  },
4763
- yAxis: v(S),
4771
+ yAxis: v(x),
4764
4772
  series: v(n)
4765
4773
  })), { pageMode: s } = N(fe, {
4766
4774
  pageMode: "normal"
4767
- }), f = (c = [], g = !1) => {
4775
+ }), f = (c = [], m = !1) => {
4768
4776
  let k;
4769
4777
  if (e.dataFieldConfigType === "key") {
4770
- const J = g ? e.keyTypeDataFieldNames : null;
4778
+ const J = m ? e.keyTypeDataFieldNames : null;
4771
4779
  k = Ge(c, J);
4772
4780
  } else if (e.dataFieldConfigType === "value") {
4773
- const J = g ? e.valueTypeDataFieldNames : null;
4781
+ const J = m ? e.valueTypeDataFieldNames : null;
4774
4782
  k = Qe(c, J);
4775
4783
  }
4776
4784
  a.value = k.dimensions;
@@ -4798,8 +4806,8 @@ const Sr = Q({
4798
4806
  }), E.push(W);
4799
4807
  }
4800
4808
  n.value = E;
4801
- }, y = (c = [], g, k = !1) => {
4802
- const E = Ge(c, k ? g : null);
4809
+ }, b = (c = [], m, k = !1) => {
4810
+ const E = Ge(c, k ? m : null);
4803
4811
  a.value = E.dimensions;
4804
4812
  const T = E.dataset, j = [], J = T.length, F = e.seriesTypes;
4805
4813
  for (let B = 0; B < J; B++) {
@@ -4818,9 +4826,9 @@ const Sr = Q({
4818
4826
  immediate: !0,
4819
4827
  deep: !0
4820
4828
  });
4821
- const S = q(() => {
4829
+ const x = q(() => {
4822
4830
  const c = e.yAxis;
4823
- return c == null ? void 0 : c.map((g) => ({
4831
+ return c == null ? void 0 : c.map((m) => ({
4824
4832
  type: "value",
4825
4833
  minInterval: e.yAxisMinInterval,
4826
4834
  splitLine: {
@@ -4832,7 +4840,7 @@ const Sr = Q({
4832
4840
  axisLabel: {
4833
4841
  color: e.yAxisLabelColor,
4834
4842
  formatter(k) {
4835
- return Ne(g.axisLabelFormatter, k);
4843
+ return Ne(m.axisLabelFormatter, k);
4836
4844
  }
4837
4845
  },
4838
4846
  axisLine: {
@@ -4841,23 +4849,23 @@ const Sr = Q({
4841
4849
  }
4842
4850
  }
4843
4851
  }));
4844
- }), C = M(!1), d = _e(e), u = async () => {
4845
- var c, g;
4852
+ }), w = M(!1), d = _e(e), u = async () => {
4853
+ var c, m;
4846
4854
  if (!(e.dataType !== "request" || v(s) === "design"))
4847
4855
  try {
4848
- C.value = !0;
4856
+ w.value = !0;
4849
4857
  const k = await d();
4850
- f((g = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : g.rows, !0);
4858
+ f((m = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : m.rows, !0);
4851
4859
  } catch (k) {
4852
4860
  console.error(k);
4853
4861
  } finally {
4854
- C.value = !1;
4862
+ w.value = !1;
4855
4863
  }
4856
- }, m = ot(e), h = async () => {
4864
+ }, h = ot(e), g = async () => {
4857
4865
  var c;
4858
4866
  try {
4859
- C.value = !0;
4860
- const g = await m(), { columns: k = [], rows: R = [] } = ((c = g == null ? void 0 : g.data) == null ? void 0 : c.data) ?? {};
4867
+ w.value = !0;
4868
+ const m = await h(), { columns: k = [], rows: R = [] } = ((c = m == null ? void 0 : m.data) == null ? void 0 : c.data) ?? {};
4861
4869
  let E;
4862
4870
  k.length > 0 && (E = {
4863
4871
  name: k[0],
@@ -4865,17 +4873,17 @@ const Sr = Q({
4865
4873
  label: T,
4866
4874
  value: T
4867
4875
  }))
4868
- }), y(R, E, !0);
4869
- } catch (g) {
4870
- console.error(g);
4876
+ }), b(R, E, !0);
4877
+ } catch (m) {
4878
+ console.error(m);
4871
4879
  } finally {
4872
- C.value = !1;
4880
+ w.value = !1;
4873
4881
  }
4874
- }, b = () => {
4882
+ }, y = () => {
4875
4883
  if (v(s) !== "design")
4876
4884
  switch (e.dataType) {
4877
4885
  case "indicator":
4878
- h();
4886
+ g();
4879
4887
  break;
4880
4888
  case "request":
4881
4889
  u();
@@ -4883,53 +4891,53 @@ const Sr = Q({
4883
4891
  }
4884
4892
  };
4885
4893
  o({
4886
- refreshData: b
4894
+ refreshData: y
4887
4895
  });
4888
- const w = me(e), { getGlobalModel: A, setGlobalModel: L } = N(ye, {
4896
+ const p = me(e), { getGlobalModel: _, setGlobalModel: I } = N(ye, {
4889
4897
  // @ts-ignore
4890
4898
  // eslint-disable-next-line no-void
4891
4899
  getGlobalModel: (c) => {
4892
4900
  },
4893
4901
  // @ts-ignore
4894
4902
  // eslint-disable-next-line no-void
4895
- setGlobalModel: (c, g) => {
4903
+ setGlobalModel: (c, m) => {
4896
4904
  }
4897
- }), p = w("click", (c) => {
4898
- const g = A(e.id);
4899
- L(e.id, { ...g, RECORD: c == null ? void 0 : c.data });
4900
- }), { setRequest: _ } = N(Se, {
4905
+ }), C = p("click", (c) => {
4906
+ const m = _(e.id);
4907
+ I(e.id, { ...m, RECORD: c == null ? void 0 : c.data });
4908
+ }), { setRequest: A } = N(Se, {
4901
4909
  setRequest: (c) => {
4902
4910
  }
4903
4911
  });
4904
- return typeof _ == "function" && _({
4912
+ return typeof A == "function" && A({
4905
4913
  id: e.id,
4906
- requestFn: b,
4914
+ requestFn: y,
4907
4915
  sortNum: e.requestSort
4908
4916
  }), he(e, {
4909
4917
  resetRecord: () => {
4910
- const c = e.id, g = A(c);
4911
- L(c, { ...g, RECORD: "" });
4918
+ const c = e.id, m = _(c);
4919
+ I(c, { ...m, RECORD: "" });
4912
4920
  },
4913
- refreshData: b,
4914
- click: p
4921
+ refreshData: y,
4922
+ click: C
4915
4923
  }), {
4916
4924
  style: t,
4917
- option: r,
4918
- click: p,
4919
- loading: C,
4925
+ option: i,
4926
+ click: C,
4927
+ loading: w,
4920
4928
  visible: l,
4921
- hideModal: i
4929
+ hideModal: r
4922
4930
  };
4923
4931
  }
4924
4932
  });
4925
4933
  function wr(e, o, t, n, a, l) {
4926
- const i = H("echarts"), r = H("spin"), s = H("a-modal");
4934
+ const r = H("echarts"), i = H("spin"), s = H("a-modal");
4927
4935
  return D(), $("div", {
4928
4936
  style: U(e.style)
4929
4937
  }, [
4930
- G(r, { spinning: e.loading }, {
4938
+ G(i, { spinning: e.loading }, {
4931
4939
  default: Y(() => [
4932
- G(i, {
4940
+ G(r, {
4933
4941
  option: e.option,
4934
4942
  "update-options": { notMerge: !0 },
4935
4943
  autoresize: "",
@@ -4946,9 +4954,9 @@ function wr(e, o, t, n, a, l) {
4946
4954
  onCancel: e.hideModal
4947
4955
  }, {
4948
4956
  default: Y(() => [
4949
- G(r, { spinning: e.loading }, {
4957
+ G(i, { spinning: e.loading }, {
4950
4958
  default: Y(() => [
4951
- G(i, {
4959
+ G(r, {
4952
4960
  option: e.option,
4953
4961
  "update-options": { notMerge: !0 },
4954
4962
  autoresize: "",
@@ -5000,24 +5008,24 @@ const xr = /* @__PURE__ */ K(Sr, [["render", wr]]), kr = ae(xr), bn = {
5000
5008
  width: "100%",
5001
5009
  height: "100%"
5002
5010
  })), l = me(e)("click", () => {
5003
- }), i = M([]);
5011
+ }), r = M([]);
5004
5012
  ne(() => e.data, (s) => {
5005
- i.value = s;
5013
+ r.value = s;
5006
5014
  }, {
5007
5015
  immediate: !0,
5008
5016
  deep: !0
5009
5017
  }), he(e, {
5010
5018
  click: l
5011
5019
  });
5012
- const { setGlobalModel: r } = N(ye, {
5020
+ const { setGlobalModel: i } = N(ye, {
5013
5021
  // @ts-ignore
5014
5022
  // eslint-disable-next-line no-void
5015
5023
  setGlobalModel: (s, f) => {
5016
5024
  }
5017
5025
  });
5018
- return r(e.id, {
5026
+ return i(e.id, {
5019
5027
  type: e.type,
5020
- value: i
5028
+ value: r
5021
5029
  }), {
5022
5030
  style: o,
5023
5031
  click: l,
@@ -5040,7 +5048,7 @@ function jr(e, o, t, n, a, l) {
5040
5048
  return D(), $("div", {
5041
5049
  class: "ecan-border",
5042
5050
  style: U(e.style),
5043
- onClick: o[0] || (o[0] = (...i) => e.click && e.click(...i))
5051
+ onClick: o[0] || (o[0] = (...r) => e.click && e.click(...r))
5044
5052
  }, [
5045
5053
  e.mode === "no-title" ? (D(), $("div", {
5046
5054
  key: 0,
@@ -5115,40 +5123,40 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
5115
5123
  bottom: "bottom"
5116
5124
  }[z]
5117
5125
  };
5118
- }), n = e.width, a = e.height, l = e.originalWidth, i = e.originalHeight, r = M("80%"), s = M(0), f = M(), y = M(0), S = M({}), C = re(e), d = M({}), u = M(!1), m = M();
5119
- let h;
5120
- const b = () => {
5126
+ }), n = e.width, a = e.height, l = e.originalWidth, r = e.originalHeight, i = M("80%"), s = M(0), f = M(), b = M(0), x = M({}), w = re(e), d = M({}), u = M(!1), h = M();
5127
+ let g;
5128
+ const y = () => {
5121
5129
  f.value = parseFloat(n) / parseFloat(l);
5122
- const z = parseFloat(a) / parseFloat(i), W = document.body.offsetWidth, X = document.body.offsetHeight;
5123
- s.value = W * v(f), y.value = X * z, r.value = `${v(f) * 100}%`, S.value = {
5130
+ const z = parseFloat(a) / parseFloat(r), W = document.body.offsetWidth, X = document.body.offsetHeight;
5131
+ s.value = W * v(f), b.value = X * z, i.value = `${v(f) * 100}%`, x.value = {
5124
5132
  width: `${v(s)}px`,
5125
- height: `${v(y)}px`
5133
+ height: `${v(b)}px`
5126
5134
  }, d.value = {
5127
- ...v(C),
5135
+ ...v(w),
5128
5136
  backgroundImage: $e(e.backgroundImage, !0),
5129
- transform: `scale(${v(s) / parseFloat(n)},${v(y) / parseFloat(a)})`
5137
+ transform: `scale(${v(s) / parseFloat(n)},${v(b) / parseFloat(a)})`
5130
5138
  };
5131
- }, w = Rt(() => {
5132
- b();
5133
- }, 100), A = () => {
5139
+ }, p = Rt(() => {
5140
+ y();
5141
+ }, 100), _ = () => {
5134
5142
  const z = window.MutationObserver;
5135
- h = new z(w), h.observe(document.body, {
5143
+ g = new z(p), g.observe(document.body, {
5136
5144
  attributes: !0,
5137
5145
  attributeFilter: ["style"],
5138
5146
  attributeOldValue: !0
5139
5147
  });
5140
- }, L = () => {
5141
- h && (h.disconnect(), h.takeRecords(), h = null);
5142
- }, p = M(!1), { touchRequest: _ } = N(Se, {
5148
+ }, I = () => {
5149
+ g && (g.disconnect(), g.takeRecords(), g = null);
5150
+ }, C = M(!1), { touchRequest: A } = N(Se, {
5143
5151
  // @ts-ignore
5144
5152
  // eslint-disable-next-line no-void
5145
5153
  touchRequest: () => {
5146
5154
  }
5147
- }), x = () => {
5148
- p.value = !0;
5155
+ }), S = () => {
5156
+ C.value = !0;
5149
5157
  }, c = () => {
5150
- p.value = !1;
5151
- }, g = () => {
5158
+ C.value = !1;
5159
+ }, m = () => {
5152
5160
  c();
5153
5161
  }, k = () => {
5154
5162
  c();
@@ -5165,29 +5173,29 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
5165
5173
  const X = e.componentList;
5166
5174
  console.log("componentList", X), Array.isArray(X) && (W = X.map((ie) => ie.id), R(z, [...new Set(W)]));
5167
5175
  };
5168
- ne(() => p.value, async (z) => {
5176
+ ne(() => C.value, async (z) => {
5169
5177
  z ? (u.value = !1, E(e.id), j(), await mt(() => {
5170
- b(), window.addEventListener("resize", w), A(), u.value = !0;
5171
- }), _()) : (T(), window.removeEventListener("resize", w), L());
5178
+ y(), window.addEventListener("resize", p), _(), u.value = !0;
5179
+ }), A()) : (T(), window.removeEventListener("resize", p), I());
5172
5180
  });
5173
5181
  const J = q(() => v(f) >= 1), F = q(() => e.fullModal), B = q(() => {
5174
5182
  let z = "ecan-modal";
5175
5183
  return v(J) && (z += " ecan-full-width-modal"), v(F) && (z += " ecan-full-modal"), z;
5176
5184
  });
5177
5185
  return he(e, {
5178
- showModal: x
5186
+ showModal: S
5179
5187
  }), {
5180
- modalRef: m,
5181
- containStyle: S,
5188
+ modalRef: h,
5189
+ containStyle: x,
5182
5190
  contentStyle: d,
5183
5191
  getContainer: o,
5184
5192
  modalStyle: t,
5185
- modalWith: r,
5193
+ modalWith: i,
5186
5194
  isFullModal: F,
5187
- style: C,
5188
- visible: p,
5189
- showModal: x,
5190
- onOk: g,
5195
+ style: w,
5196
+ visible: C,
5197
+ showModal: S,
5198
+ onOk: m,
5191
5199
  onCancel: k,
5192
5200
  isFullWidth: J,
5193
5201
  wrapClassName: B,
@@ -5196,8 +5204,8 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
5196
5204
  }
5197
5205
  });
5198
5206
  function Jr(e, o, t, n, a, l) {
5199
- const i = H("a-modal");
5200
- return D(), Re(i, {
5207
+ const r = H("a-modal");
5208
+ return D(), Re(r, {
5201
5209
  getContainer: e.getContainer,
5202
5210
  wrapClassName: e.wrapClassName,
5203
5211
  centered: "",
@@ -5221,9 +5229,9 @@ function Jr(e, o, t, n, a, l) {
5221
5229
  class: "content",
5222
5230
  style: U(e.contentStyle)
5223
5231
  }, [
5224
- (D(!0), $(Me, null, De(e.componentList, (r, s) => (D(), Re(Fn(r.type), zn({
5225
- key: r.id + s
5226
- }, r), null, 16))), 128))
5232
+ (D(!0), $(Me, null, De(e.componentList, (i, s) => (D(), Re(Fn(i.type), zn({
5233
+ key: i.id + s
5234
+ }, i), null, 16))), 128))
5227
5235
  ], 4)) : ve("", !0)
5228
5236
  ], 4)
5229
5237
  ]),
@@ -5296,10 +5304,10 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
5296
5304
  });
5297
5305
  let a = null;
5298
5306
  const l = () => {
5299
- const d = Array.isArray(v(i)) ? v(i).length - 1 : 0;
5307
+ const d = Array.isArray(v(r)) ? v(r).length - 1 : 0;
5300
5308
  e.autoSwitch && d > 0 && (a = setInterval(() => {
5301
5309
  const u = v(t) + 1;
5302
- u <= d ? t.value = u : t.value = 0, r.value = v(i)[v(t)], S();
5310
+ u <= d ? t.value = u : t.value = 0, i.value = v(r)[v(t)], x();
5303
5311
  }, e.autoSwitchInterval * 1e3));
5304
5312
  };
5305
5313
  Ue(() => {
@@ -5307,38 +5315,38 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
5307
5315
  }), Tt(() => {
5308
5316
  clearInterval(a);
5309
5317
  });
5310
- const i = M([]), r = M({});
5318
+ const r = M([]), i = M({});
5311
5319
  ne(() => e.data, (d) => {
5312
- i.value = d, r.value = Array.isArray(d) && d.length > 0 ? d[0] : {};
5320
+ r.value = d, i.value = Array.isArray(d) && d.length > 0 ? d[0] : {};
5313
5321
  }, {
5314
5322
  immediate: !0,
5315
5323
  deep: !0
5316
5324
  });
5317
- const s = (d) => t.value === d, f = me(e), { setGlobalModel: y } = N(ye, {
5325
+ const s = (d) => t.value === d, f = me(e), { setGlobalModel: b } = N(ye, {
5318
5326
  // @ts-ignore
5319
5327
  // eslint-disable-next-line no-void
5320
5328
  setGlobalModel: (d, u) => {
5321
5329
  }
5322
5330
  });
5323
- y(e.id, {
5324
- value: r,
5331
+ b(e.id, {
5332
+ value: i,
5325
5333
  activeKey: t
5326
5334
  });
5327
- const { emitRefreshPage: S } = N(Je, {
5335
+ const { emitRefreshPage: x } = N(Je, {
5328
5336
  // eslint-disable-next-line no-void
5329
5337
  emitRefreshPage: () => {
5330
5338
  }
5331
- }), C = f("tabChange", (d, u) => {
5332
- u !== v(t) && (r.value = d, t.value = u, S());
5339
+ }), w = f("tabChange", (d, u) => {
5340
+ u !== v(t) && (i.value = d, t.value = u, x());
5333
5341
  });
5334
5342
  return he(e, {
5335
- tabChange: C
5343
+ tabChange: w
5336
5344
  }), {
5337
5345
  style: o,
5338
5346
  activeKey: t,
5339
5347
  isActive: s,
5340
- tabChange: C,
5341
- myData: i,
5348
+ tabChange: w,
5349
+ myData: r,
5342
5350
  useImagePath: $e
5343
5351
  };
5344
5352
  }
@@ -5358,25 +5366,25 @@ function ts(e, o, t, n, a, l) {
5358
5366
  flexDirection: e.tabFlexDirection
5359
5367
  })
5360
5368
  }, [
5361
- (D(!0), $(Me, null, De(e.myData, (i, r) => (D(), $("div", {
5369
+ (D(!0), $(Me, null, De(e.myData, (r, i) => (D(), $("div", {
5362
5370
  class: "tab",
5363
5371
  style: U({
5364
5372
  padding: `5px ${e.tabHorizontalPadding}`,
5365
- color: e.isActive(r) ? e.activeTabColor : e.tabColor,
5366
- backgroundImage: e.isActive(r) ? e.useImagePath(e.activeTabBackgroundImage, !0) : e.useImagePath(e.tabBackgroundImage, !0),
5373
+ color: e.isActive(i) ? e.activeTabColor : e.tabColor,
5374
+ backgroundImage: e.isActive(i) ? e.useImagePath(e.activeTabBackgroundImage, !0) : e.useImagePath(e.tabBackgroundImage, !0),
5367
5375
  marginRight: e.tabFlexDirection === "row" ? e.tabBarGutter : null,
5368
5376
  marginBottom: e.tabFlexDirection === "column" ? e.tabBarGutter : null,
5369
5377
  fontWeight: e.tabFontWeight
5370
5378
  }),
5371
- key: r,
5372
- onClick: go((s) => e.tabChange(i, r), ["prevent", "stop"])
5379
+ key: i,
5380
+ onClick: go((s) => e.tabChange(r, i), ["prevent", "stop"])
5373
5381
  }, [
5374
5382
  ee("div", {
5375
5383
  class: "tab-inner",
5376
5384
  style: U({
5377
- borderBottom: !e.activeTabBackgroundImage && !e.tabBackgroundImage ? `1px solid ${e.isActive(r) ? e.activeTabColor : "transparent"}` : ""
5385
+ borderBottom: !e.activeTabBackgroundImage && !e.tabBackgroundImage ? `1px solid ${e.isActive(i) ? e.activeTabColor : "transparent"}` : ""
5378
5386
  })
5379
- }, be(i.title), 5)
5387
+ }, be(r.title), 5)
5380
5388
  ], 12, es))), 128))
5381
5389
  ], 4)
5382
5390
  ], 4);
@@ -5407,13 +5415,13 @@ const os = /* @__PURE__ */ K(Xr, [["render", ts], ["__scopeId", "data-v-a2045b93
5407
5415
  onClick: () => {
5408
5416
  if (!e.linkPage && !e.href)
5409
5417
  return;
5410
- const l = e.linkPage || "", i = Fo(v(n), l), r = e.href;
5411
- let s = r || i;
5418
+ const l = e.linkPage || "", r = Fo(v(n), l), i = e.href;
5419
+ let s = i || r;
5412
5420
  s = de(s);
5413
5421
  const f = e.target;
5414
5422
  f && (f !== "event" ? window.open(s, "_" + f) : window.parent.postMessage({
5415
5423
  type: "openPage",
5416
- url: r
5424
+ url: i
5417
5425
  }, "*"));
5418
5426
  }
5419
5427
  };
@@ -5425,7 +5433,7 @@ function is(e, o, t, n, a, l) {
5425
5433
  key: 0,
5426
5434
  style: U(e.style),
5427
5435
  src: e.myImgUrl,
5428
- onClick: o[0] || (o[0] = (...i) => e.onClick && e.onClick(...i))
5436
+ onClick: o[0] || (o[0] = (...r) => e.onClick && e.onClick(...r))
5429
5437
  }, null, 12, ls)) : (D(), $("div", {
5430
5438
  key: 1,
5431
5439
  class: "image-placeholder",
@@ -5572,11 +5580,11 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5572
5580
  default:
5573
5581
  return 55;
5574
5582
  }
5575
- }), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) - v(n)), i = M([]), r = M([]), s = M([]), f = M([]), y = M(0), S = M(1), C = q(() => e.paginationPageSize), d = $n([]), u = (I = []) => {
5576
- if (Array.isArray(I) && I.length > 0) {
5577
- const O = I.length, V = e.columnsFixedNum;
5583
+ }), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) - v(n)), r = M([]), i = M([]), s = M([]), f = M([]), b = M(0), x = M(1), w = q(() => e.paginationPageSize), d = $n([]), u = (L = []) => {
5584
+ if (Array.isArray(L) && L.length > 0) {
5585
+ const O = L.length, V = e.columnsFixedNum;
5578
5586
  for (let Z = 0; Z < O; Z++) {
5579
- const P = I[Z];
5587
+ const P = L[Z];
5580
5588
  Z < V ? P.fixed = "left" : P.fixed = !1;
5581
5589
  const {
5582
5590
  cellAlign: te = "center",
@@ -5618,15 +5626,15 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5618
5626
  }), Array.isArray(P.children) && u(P.children);
5619
5627
  }
5620
5628
  }
5621
- }, m = (I = []) => (e.isUseSeq && I.unshift({
5629
+ }, h = (L = []) => (e.isUseSeq && L.unshift({
5622
5630
  title: "序号",
5623
5631
  dataIndex: "SEQ",
5624
5632
  align: "center"
5625
- }), e.isUseAction && I.push({
5633
+ }), e.isUseAction && L.push({
5626
5634
  title: "操作",
5627
5635
  dataIndex: "ACTION",
5628
5636
  width: e.actionColumnWidth
5629
- }), u(I), I);
5637
+ }), u(L), L);
5630
5638
  ne(() => [
5631
5639
  e.columns,
5632
5640
  e.isUseSeq,
@@ -5636,20 +5644,20 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5636
5644
  e.cellBackgroundColor,
5637
5645
  e.borderColor
5638
5646
  ], () => {
5639
- i.value = m(pt(e.columns));
5647
+ r.value = h(pt(e.columns));
5640
5648
  }, {
5641
5649
  immediate: !0,
5642
5650
  deep: !0
5643
- }), ne(() => [e.data, e.dataType], ([I, O]) => {
5644
- O === "static" && (r.value = I);
5651
+ }), ne(() => [e.data, e.dataType], ([L, O]) => {
5652
+ O === "static" && (i.value = L);
5645
5653
  }, {
5646
5654
  immediate: !0
5647
5655
  });
5648
- const h = M({}), b = (I) => {
5649
- if (Array.isArray(I)) {
5650
- const O = I.length, V = d, Z = V.length, P = {};
5656
+ const g = M({}), y = (L) => {
5657
+ if (Array.isArray(L)) {
5658
+ const O = L.length, V = d, Z = V.length, P = {};
5651
5659
  for (let oe = 0; oe < O; oe++) {
5652
- const ue = I[oe];
5660
+ const ue = L[oe];
5653
5661
  for (let ge = 0; ge < Z; ge++) {
5654
5662
  const ce = V[ge];
5655
5663
  if (P[ce])
@@ -5666,21 +5674,21 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5666
5674
  const ue = P[oe], ge = Array.from(ue);
5667
5675
  te[oe] = ge.map((ce) => ({ label: ce, value: ce }));
5668
5676
  }
5669
- h.value = te;
5677
+ g.value = te;
5670
5678
  }
5671
5679
  };
5672
- ne(() => [e.isReverse, i.value, r.value], () => {
5673
- const I = v(i), O = v(r);
5674
- if (b(O), e.isReverse) {
5675
- const { columns: V, dataSource: Z } = w(pt(I), pt(O));
5680
+ ne(() => [e.isReverse, r.value, i.value], () => {
5681
+ const L = v(r), O = v(i);
5682
+ if (y(O), e.isReverse) {
5683
+ const { columns: V, dataSource: Z } = p(pt(L), pt(O));
5676
5684
  s.value = V, f.value = Z;
5677
5685
  } else
5678
- s.value = I, f.value = O;
5686
+ s.value = L, f.value = O;
5679
5687
  }, {
5680
5688
  immediate: !0
5681
5689
  });
5682
- const w = (I, O) => {
5683
- const V = I[0], Z = [{
5690
+ const p = (L, O) => {
5691
+ const V = L[0], Z = [{
5684
5692
  title: V.title,
5685
5693
  dataIndex: "col0",
5686
5694
  key: "col0",
@@ -5696,8 +5704,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5696
5704
  });
5697
5705
  }
5698
5706
  const P = [];
5699
- for (let te = 1; te < I.length; te++) {
5700
- const oe = I[te], ue = { col0: oe.title };
5707
+ for (let te = 1; te < L.length; te++) {
5708
+ const oe = L[te], ue = { col0: oe.title };
5701
5709
  for (let ge = 0; ge < O.length; ge++) {
5702
5710
  const ce = O[ge];
5703
5711
  ue[`col${ge + 1}`] = ce[oe.dataIndex];
@@ -5708,48 +5716,48 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5708
5716
  columns: Z,
5709
5717
  dataSource: P
5710
5718
  };
5711
- }, A = M(""), L = _e(e), p = M(!1), _ = async (I = !0, O = {}) => {
5719
+ }, _ = M(""), I = _e(e), C = M(!1), A = async (L = !0, O = {}) => {
5712
5720
  var V;
5713
5721
  try {
5714
- I && (p.value = !0), v(A) && (O.orderCondition = v(A)), e.paginationShow && (O = {
5715
- pageNum: v(S),
5716
- pageSize: v(C),
5722
+ L && (C.value = !0), v(_) && (O.orderCondition = v(_)), e.paginationShow && (O = {
5723
+ pageNum: v(x),
5724
+ pageSize: v(w),
5717
5725
  layer: "1",
5718
5726
  ...O
5719
5727
  });
5720
- const Z = await L(O), { rows: P = [], total: te = 0 } = ((V = Z == null ? void 0 : Z.data) == null ? void 0 : V.data) || {};
5721
- y.value = te, Array.isArray(P) && (r.value = P);
5728
+ const Z = await I(O), { rows: P = [], total: te = 0 } = ((V = Z == null ? void 0 : Z.data) == null ? void 0 : V.data) || {};
5729
+ b.value = te, Array.isArray(P) && (i.value = P);
5722
5730
  } catch (Z) {
5723
5731
  console.error(Z);
5724
5732
  } finally {
5725
- p.value = !1;
5733
+ C.value = !1;
5726
5734
  }
5727
- }, x = ({ current: I }, O, V) => {
5728
- if (S.value = I, V && Object.keys(V).length > 0) {
5735
+ }, S = ({ current: L }, O, V) => {
5736
+ if (x.value = L, V && Object.keys(V).length > 0) {
5729
5737
  const { field: Z, order: P } = V, oe = {
5730
5738
  ascend: "asc",
5731
5739
  descend: "desc"
5732
5740
  }[P];
5733
- Z != null && oe != null && (A.value = Z + " " + oe, S.value = 1);
5741
+ Z != null && oe != null && (_.value = Z + " " + oe, x.value = 1);
5734
5742
  }
5735
5743
  ie(!1);
5736
5744
  }, c = q(() => {
5737
- const I = e.simple, O = [e.paginationPosition];
5745
+ const L = e.simple, O = [e.paginationPosition];
5738
5746
  return e.paginationShow && {
5739
- simple: I,
5747
+ simple: L,
5740
5748
  position: O,
5741
- total: v(y),
5742
- current: v(S),
5743
- pageSize: v(C),
5749
+ total: v(b),
5750
+ current: v(x),
5751
+ pageSize: v(w),
5744
5752
  showSizeChanger: !1
5745
5753
  };
5746
- }), g = (I) => +I == 1 ? "是" : +I == 0 ? "否" : I, k = (I, O) => O == null || O === "" ? I : {
5754
+ }), m = (L) => +L == 1 ? "是" : +L == 0 ? "否" : L, k = (L, O) => O == null || O === "" ? L : {
5747
5755
  money: Pt,
5748
5756
  percentage: ut,
5749
5757
  contrast: ut,
5750
- boolean: g
5751
- }[O](I) || "", R = (I, O) => {
5752
- const V = parseFloat(I + "");
5758
+ boolean: m
5759
+ }[O](L) || "", R = (L, O) => {
5760
+ const V = parseFloat(L + "");
5753
5761
  if (O !== "contrast")
5754
5762
  return "";
5755
5763
  switch (!0) {
@@ -5763,36 +5771,36 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5763
5771
  }), { getGlobalModel: j, setGlobalModel: J } = N(ye, {
5764
5772
  // @ts-ignore
5765
5773
  // eslint-disable-next-line no-void
5766
- getGlobalModel: (I) => {
5774
+ getGlobalModel: (L) => {
5767
5775
  },
5768
5776
  // @ts-ignore
5769
5777
  // eslint-disable-next-line no-void
5770
- setGlobalModel: (I, O) => {
5778
+ setGlobalModel: (L, O) => {
5771
5779
  }
5772
- }), F = (I = [], O = []) => {
5773
- const V = I.map((Z) => ({ title: Z, dataIndex: Z, key: Z }));
5774
- i.value = m(V), r.value = O;
5780
+ }), F = (L = [], O = []) => {
5781
+ const V = L.map((Z) => ({ title: Z, dataIndex: Z, key: Z }));
5782
+ r.value = h(V), i.value = O;
5775
5783
  }, B = ot(e), z = async () => {
5776
- var I, O, V, Z;
5784
+ var L, O, V, Z;
5777
5785
  try {
5778
- p.value = !0;
5786
+ C.value = !0;
5779
5787
  const P = await B();
5780
- F((O = (I = P == null ? void 0 : P.data) == null ? void 0 : I.data) == null ? void 0 : O.columns, (Z = (V = P == null ? void 0 : P.data) == null ? void 0 : V.data) == null ? void 0 : Z.rows);
5788
+ F((O = (L = P == null ? void 0 : P.data) == null ? void 0 : L.data) == null ? void 0 : O.columns, (Z = (V = P == null ? void 0 : P.data) == null ? void 0 : V.data) == null ? void 0 : Z.rows);
5781
5789
  } catch (P) {
5782
5790
  console.error(P);
5783
5791
  } finally {
5784
- p.value = !1;
5792
+ C.value = !1;
5785
5793
  }
5786
- }, W = M(-1), X = (I, O) => ({
5794
+ }, W = M(-1), X = (L, O) => ({
5787
5795
  onClick: E("rowClick", () => {
5788
5796
  const V = e.id, Z = j(V);
5789
- J(V, { ...Z, RECORD: I }), W.value = O;
5797
+ J(V, { ...Z, RECORD: L }), W.value = O;
5790
5798
  })
5791
- }), ie = (I = !0) => {
5799
+ }), ie = (L = !0) => {
5792
5800
  if (v(T) !== "design")
5793
5801
  switch (e.dataType) {
5794
5802
  case "request":
5795
- _(I);
5803
+ A(L);
5796
5804
  break;
5797
5805
  case "indicator":
5798
5806
  z();
@@ -5801,16 +5809,16 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5801
5809
  };
5802
5810
  he(e, {
5803
5811
  resetRecord: () => {
5804
- const I = e.id, O = j(I);
5805
- J(I, { ...O, RECORD: "" });
5812
+ const L = e.id, O = j(L);
5813
+ J(L, { ...O, RECORD: "" });
5806
5814
  },
5807
5815
  refreshData: ie
5808
5816
  });
5809
5817
  const En = q(() => {
5810
- const I = v(s), O = [];
5818
+ const L = v(s), O = [];
5811
5819
  let V = 0;
5812
- for (let P = 0; P < I.length; P++) {
5813
- const te = I[P], { isCalcTotal: oe } = te;
5820
+ for (let P = 0; P < L.length; P++) {
5821
+ const te = L[P], { isCalcTotal: oe } = te;
5814
5822
  e.isUseSeq && P === 0 ? O.push({
5815
5823
  ...te,
5816
5824
  total: "小计"
@@ -5839,7 +5847,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5839
5847
  }
5840
5848
  return O;
5841
5849
  }), { setRequest: Bt } = N(Se, {
5842
- setRequest: (I) => {
5850
+ setRequest: (L) => {
5843
5851
  }
5844
5852
  });
5845
5853
  return typeof Bt == "function" && Bt({
@@ -5856,48 +5864,48 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5856
5864
  pagination: c,
5857
5865
  formatFn: k,
5858
5866
  contrastClass: R,
5859
- tableChange: x,
5867
+ tableChange: S,
5860
5868
  summaryList: En,
5861
- loading: p,
5862
- onTouchHrefEvent: (I, O = "") => {
5863
- I === "event" && window.parent.postMessage({
5869
+ loading: C,
5870
+ onTouchHrefEvent: (L, O = "") => {
5871
+ L === "event" && window.parent.postMessage({
5864
5872
  type: "openPage",
5865
5873
  url: O
5866
5874
  }, "*");
5867
5875
  },
5868
- handleHref: (I = "", O) => de(I, O),
5869
- handleHrefTarget: (I) => {
5870
- if (I !== "event")
5876
+ handleHref: (L = "", O) => de(L, O),
5877
+ handleHrefTarget: (L) => {
5878
+ if (L !== "event")
5871
5879
  return {
5872
5880
  self: "_self",
5873
5881
  blank: "_blank"
5874
- }[I];
5882
+ }[L];
5875
5883
  },
5876
5884
  useRowIndex: W,
5877
5885
  tableColumns: s,
5878
5886
  tableDataSource: f,
5879
- useFilterOptions: (I) => {
5880
- const O = I.dataIndex;
5887
+ useFilterOptions: (L) => {
5888
+ const O = L.dataIndex;
5881
5889
  if (typeof O == "string") {
5882
- let V = v(h)[O];
5883
- const Z = v(I.filterOptionsInputValue).trim();
5890
+ let V = v(g)[O];
5891
+ const Z = v(L.filterOptionsInputValue).trim();
5884
5892
  return Array.isArray(V) ? (V = V.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(Z.toLowerCase()) : !0), V) : [];
5885
5893
  }
5886
5894
  return [];
5887
5895
  },
5888
- useSetSelectedKeys: (I, O) => {
5889
- I(O.filterCheckboxGroupValue);
5896
+ useSetSelectedKeys: (L, O) => {
5897
+ L(O.filterCheckboxGroupValue);
5890
5898
  },
5891
- onResetFilter: (I, O) => {
5892
- I({ confirm: !0 }), O.filterOptionsInputValue = "", O.filterCheckboxGroupValue = [];
5899
+ onResetFilter: (L, O) => {
5900
+ L({ confirm: !0 }), O.filterOptionsInputValue = "", O.filterCheckboxGroupValue = [];
5893
5901
  },
5894
5902
  onSearchFilterOptions: () => {
5895
5903
  },
5896
5904
  exportTable: async () => {
5897
5905
  var ce, Ee;
5898
- const I = "EXPORT_KEY";
5906
+ const L = "EXPORT_KEY";
5899
5907
  Be.loading({
5900
- key: I,
5908
+ key: L,
5901
5909
  content: "正在导出...",
5902
5910
  duration: 0
5903
5911
  });
@@ -5906,8 +5914,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5906
5914
  O = e.data;
5907
5915
  else if (e.dataType === "request") {
5908
5916
  const we = { layer: "1" };
5909
- v(A) && (we.orderCondition = v(A));
5910
- const Le = await L(we);
5917
+ v(_) && (we.orderCondition = v(_));
5918
+ const Le = await I(we);
5911
5919
  O = ((Ee = (ce = Le == null ? void 0 : Le.data) == null ? void 0 : ce.data) == null ? void 0 : Ee.rows) || {};
5912
5920
  }
5913
5921
  const V = v(s), Z = [], P = [];
@@ -5915,7 +5923,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
5915
5923
  Z.push(we.dataIndex), P.push(we.title);
5916
5924
  });
5917
5925
  const te = O.map((we) => vo(we, Z)), oe = lt.book_new(), ue = lt.aoa_to_sheet([P]), ge = lt.sheet_add_json(ue, te, { skipHeader: !0, origin: "A2" });
5918
- lt.book_append_sheet(oe, ge, "sheet"), sa(oe, "表格数据.xlsx"), Be.success({ key: I, content: "导出成功" });
5926
+ lt.book_append_sheet(oe, ge, "sheet"), sa(oe, "表格数据.xlsx"), Be.success({ key: L, content: "导出成功" });
5919
5927
  }
5920
5928
  };
5921
5929
  }
@@ -5928,7 +5936,7 @@ const ys = {
5928
5936
  class: "action-list"
5929
5937
  }, ws = ["href", "target", "onClick"];
5930
5938
  function xs(e, o, t, n, a, l) {
5931
- const i = H("a-button"), r = H("a-input"), s = H("a-checkbox-group"), f = H("a-table-summary-cell"), y = H("a-table-summary-row"), S = H("a-table-summary"), C = H("a-table"), d = H("skeleton");
5939
+ const r = H("a-button"), i = H("a-input"), s = H("a-checkbox-group"), f = H("a-table-summary-cell"), b = H("a-table-summary-row"), x = H("a-table-summary"), w = H("a-table"), d = H("skeleton");
5932
5940
  return D(), $("div", {
5933
5941
  class: "ecan-table",
5934
5942
  style: U(e.style)
@@ -5936,7 +5944,7 @@ function xs(e, o, t, n, a, l) {
5936
5944
  G(d, { loading: e.loading }, {
5937
5945
  default: Y(() => [
5938
5946
  e.isUseExport ? (D(), $("div", ys, [
5939
- G(i, {
5947
+ G(r, {
5940
5948
  class: "export-button",
5941
5949
  onClick: e.exportTable
5942
5950
  }, {
@@ -5946,7 +5954,7 @@ function xs(e, o, t, n, a, l) {
5946
5954
  _: 1
5947
5955
  }, 8, ["onClick"])
5948
5956
  ])) : ve("", !0),
5949
- G(C, {
5957
+ G(w, {
5950
5958
  class: "table",
5951
5959
  style: {
5952
5960
  height: "100%"
@@ -5960,43 +5968,43 @@ function xs(e, o, t, n, a, l) {
5960
5968
  pagination: e.pagination,
5961
5969
  onChange: e.tableChange
5962
5970
  }, {
5963
- customFilterDropdown: Y(({ column: u, selectedKeys: m, setSelectedKeys: h, confirm: b, clearFilters: w }) => [
5971
+ customFilterDropdown: Y(({ column: u, selectedKeys: h, setSelectedKeys: g, confirm: y, clearFilters: p }) => [
5964
5972
  ee("div", {
5965
5973
  class: "ecan-table-filter",
5966
5974
  style: U({
5967
5975
  height: e.filterDropdownHeight
5968
5976
  })
5969
5977
  }, [
5970
- G(r, {
5978
+ G(i, {
5971
5979
  value: u.filterOptionsInputValue,
5972
- "onUpdate:value": (A) => u.filterOptionsInputValue = A,
5980
+ "onUpdate:value": (_) => u.filterOptionsInputValue = _,
5973
5981
  placeholder: "请输入关键字",
5974
5982
  class: "filter-input",
5975
5983
  onChange: e.onSearchFilterOptions
5976
5984
  }, null, 8, ["value", "onUpdate:value", "onChange"]),
5977
5985
  G(s, {
5978
5986
  value: u.filterCheckboxGroupValue,
5979
- "onUpdate:value": (A) => u.filterCheckboxGroupValue = A,
5987
+ "onUpdate:value": (_) => u.filterCheckboxGroupValue = _,
5980
5988
  class: "filter-checkbox",
5981
5989
  options: e.useFilterOptions(u),
5982
- onChange: (A) => e.useSetSelectedKeys(h, u)
5990
+ onChange: (_) => e.useSetSelectedKeys(g, u)
5983
5991
  }, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
5984
5992
  ee("div", null, [
5985
- G(i, {
5993
+ G(r, {
5986
5994
  type: "primary",
5987
5995
  size: "small",
5988
5996
  style: { width: "90px", "margin-right": "8px" },
5989
- onClick: () => b()
5997
+ onClick: () => y()
5990
5998
  }, {
5991
5999
  default: Y(() => [
5992
6000
  vs
5993
6001
  ]),
5994
6002
  _: 2
5995
6003
  }, 1032, ["onClick"]),
5996
- G(i, {
6004
+ G(r, {
5997
6005
  size: "small",
5998
6006
  style: { width: "90px" },
5999
- onClick: go((A) => e.onResetFilter(w, u), ["stop"])
6007
+ onClick: go((_) => e.onResetFilter(p, u), ["stop"])
6000
6008
  }, {
6001
6009
  default: Y(() => [
6002
6010
  ps
@@ -6006,41 +6014,41 @@ function xs(e, o, t, n, a, l) {
6006
6014
  ])
6007
6015
  ], 4)
6008
6016
  ]),
6009
- bodyCell: Y(({ column: u, index: m, text: h, record: b }) => [
6010
- u.dataIndex === "SEQ" ? (D(), $("span", Cs, be(m + 1), 1)) : ve("", !0),
6017
+ bodyCell: Y(({ column: u, index: h, text: g, record: y }) => [
6018
+ u.dataIndex === "SEQ" ? (D(), $("span", Cs, be(h + 1), 1)) : ve("", !0),
6011
6019
  u.dataIndex === "ACTION" ? (D(), $("div", Ss, [
6012
- (D(!0), $(Me, null, De(e.actionList, (w, A) => (D(), $("div", {
6020
+ (D(!0), $(Me, null, De(e.actionList, (p, _) => (D(), $("div", {
6013
6021
  class: "action",
6014
- key: A
6022
+ key: _
6015
6023
  }, [
6016
6024
  ee("a", {
6017
- href: e.handleHref(w.href, b),
6018
- target: e.handleHrefTarget(w.target),
6025
+ href: e.handleHref(p.href, y),
6026
+ target: e.handleHrefTarget(p.target),
6019
6027
  style: U({
6020
- color: w.color,
6028
+ color: p.color,
6021
6029
  fontSize: e.fontSize,
6022
6030
  fontWeight: e.fontWeight
6023
6031
  }),
6024
- onClick: (L) => e.onTouchHrefEvent(w.target, e.handleHref(w.href, b))
6025
- }, be(w.title), 13, ws)
6032
+ onClick: (I) => e.onTouchHrefEvent(p.target, e.handleHref(p.href, y))
6033
+ }, be(p.title), 13, ws)
6026
6034
  ]))), 128))
6027
6035
  ])) : (D(), $("div", {
6028
6036
  key: 2,
6029
- class: Lt([e.contrastClass(h, u.format)]),
6037
+ class: Lt([e.contrastClass(g, u.format)]),
6030
6038
  style: U({
6031
6039
  fontSize: e.fontSize,
6032
6040
  fontWeight: e.fontWeight
6033
6041
  })
6034
- }, be(u.format != null ? e.formatFn(h, u.format) : h), 7))
6042
+ }, be(u.format != null ? e.formatFn(g, u.format) : g), 7))
6035
6043
  ]),
6036
6044
  summary: Y(() => [
6037
- e.summaryList.length > 0 ? (D(), Re(S, { key: 0 }, {
6045
+ e.summaryList.length > 0 ? (D(), Re(x, { key: 0 }, {
6038
6046
  default: Y(() => [
6039
- G(y, null, {
6047
+ G(b, null, {
6040
6048
  default: Y(() => [
6041
- (D(!0), $(Me, null, De(e.summaryList, (u, m) => (D(), Re(f, {
6042
- key: m,
6043
- index: m,
6049
+ (D(!0), $(Me, null, De(e.summaryList, (u, h) => (D(), Re(f, {
6050
+ key: h,
6051
+ index: h,
6044
6052
  style: U({
6045
6053
  backgroundColor: e.cellBackgroundColor,
6046
6054
  textAlign: u.cellAlign || "center",
@@ -6135,13 +6143,13 @@ const _s = Q({
6135
6143
  const o = re(e, ["backgroundImage"]), t = M(), n = q(() => $e(e.geoBackgroundImage)), a = q(() => $e(e.backgroundImage)), l = q(() => e.geoBackgroundImage ? {
6136
6144
  image: v(t),
6137
6145
  repeat: e.geoBackgroundImageRepeat
6138
- } : e.geoItemStyleAreaColor), i = q(() => {
6139
- const y = e.symbolImage;
6140
- return e.symbolImage ? "image://" + $e(y) : "circle";
6141
- }), r = q(() => {
6142
- const y = e.geoCenter;
6143
- let S;
6144
- return typeof y == "string" && y !== "" && (S = y.split(",")), {
6146
+ } : e.geoItemStyleAreaColor), r = q(() => {
6147
+ const b = e.symbolImage;
6148
+ return e.symbolImage ? "image://" + $e(b) : "circle";
6149
+ }), i = q(() => {
6150
+ const b = e.geoCenter;
6151
+ let x;
6152
+ return typeof b == "string" && b !== "" && (x = b.split(",")), {
6145
6153
  // backgroundColor: unref(background),
6146
6154
  tooltip: {
6147
6155
  show: !0
@@ -6161,7 +6169,7 @@ const _s = Q({
6161
6169
  geo: {
6162
6170
  zoom: e.geoZoom,
6163
6171
  roam: e.geoRoam,
6164
- center: S,
6172
+ center: x,
6165
6173
  map: "map",
6166
6174
  tooltip: {
6167
6175
  show: !1
@@ -6201,7 +6209,7 @@ const _s = Q({
6201
6209
  itemStyle: {
6202
6210
  color: e.itemStyleColor
6203
6211
  },
6204
- symbol: v(i),
6212
+ symbol: v(r),
6205
6213
  symbolSize: [e.symbolWidth, e.symbolHeight],
6206
6214
  label: {
6207
6215
  show: e.labelShow,
@@ -6221,11 +6229,11 @@ const _s = Q({
6221
6229
  ]
6222
6230
  };
6223
6231
  }), s = M(!1), f = async () => {
6224
- var S;
6225
- const y = e.mapJson;
6226
- if (y != null && y.path) {
6227
- const C = await Fe(((S = window == null ? void 0 : window.config) == null ? void 0 : S.uploadPath) + y.path);
6228
- Gn("map", (C == null ? void 0 : C.data) || {});
6232
+ var x;
6233
+ const b = e.mapJson;
6234
+ if (b != null && b.path) {
6235
+ const w = await Fe(((x = window == null ? void 0 : window.config) == null ? void 0 : x.uploadPath) + b.path);
6236
+ Gn("map", (w == null ? void 0 : w.data) || {});
6229
6237
  }
6230
6238
  s.value = !0;
6231
6239
  };
@@ -6235,7 +6243,7 @@ const _s = Q({
6235
6243
  immediate: !0,
6236
6244
  deep: !0
6237
6245
  }), {
6238
- option: r,
6246
+ option: i,
6239
6247
  style: o,
6240
6248
  isLoadedData: s,
6241
6249
  geoBackgroundImageRef: t,
@@ -6245,12 +6253,12 @@ const _s = Q({
6245
6253
  });
6246
6254
  const Ts = ["src"];
6247
6255
  function Ls(e, o, t, n, a, l) {
6248
- const i = H("echarts");
6256
+ const r = H("echarts");
6249
6257
  return D(), $("div", {
6250
6258
  class: "ecan-map",
6251
6259
  style: U(e.style)
6252
6260
  }, [
6253
- e.isLoadedData ? (D(), Re(i, {
6261
+ e.isLoadedData ? (D(), Re(r, {
6254
6262
  key: 0,
6255
6263
  option: e.option,
6256
6264
  "update-options": { notMerge: !0 },