@ecan-bi/datav 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- /*! @ecan-bi/datav@1.2.0 */
2
- import { watch as ee, inject as V, computed as j, unref as C, watchEffect as ko, defineComponent as te, shallowRef as Ot, toRefs as Jn, onMounted as Je, onUnmounted as kt, h as St, nextTick as At, createVNode as U, resolveComponent as Z, openBlock as M, createElementBlock as F, createBlock as ze, renderSlot as rt, withCtx as K, ref as _, normalizeStyle as q, createCommentVNode as ke, provide as je, onBeforeUnmount as Bt, toDisplayString as Ce, Fragment as De, renderList as Fe, createElementVNode as X, normalizeClass as Ut, pushScopeId as _t, popScopeId as Tt, resolveDynamicComponent as Yn, mergeProps as Ao, toHandlers as Qn, createTextVNode as ct, withModifiers as _o, reactive as Kn, withDirectives as Xn, vShow as ea } from "vue";
1
+ /*! @ecan-bi/datav@1.2.1 */
2
+ import { watch as ee, inject as V, computed as j, unref as w, watchEffect as ko, defineComponent as te, shallowRef as Ot, toRefs as Jn, onMounted as Je, onUnmounted as kt, h as St, nextTick as At, createVNode as U, resolveComponent as Z, openBlock as O, createElementBlock as z, createBlock as ze, renderSlot as rt, withCtx as K, ref as T, normalizeStyle as q, createCommentVNode as ke, provide as je, onBeforeUnmount as Bt, toDisplayString as Ce, Fragment as De, renderList as Fe, createElementVNode as X, normalizeClass as Ut, pushScopeId as _t, popScopeId as Tt, resolveDynamicComponent as Yn, mergeProps as Ao, toHandlers as Qn, createTextVNode as ct, withModifiers as _o, reactive as Kn, withDirectives as Xn, vShow as ea } from "vue";
3
3
  import { throttle as ta, init as oa, use as Ke, registerMap as na } from "echarts/core";
4
4
  import { addListener as aa, removeListener as la } from "resize-detector";
5
5
  import { Spin as ia, Skeleton as sa, message as Ze, Progress as ra, Input as To, DatePicker as ca, RangePicker as da, Button as Lo, CheckboxGroup as Io, Select as ua, TreeSelect as fa, Modal as Ge, Table as ma, TableSummary as ha, TableSummaryRow as ga, TableSummaryCell as ya } from "ant-design-vue";
@@ -73,7 +73,7 @@ const Ia = {
73
73
  }, Ma = "ecLoadingOptions";
74
74
  function Oa(e, o, t) {
75
75
  const n = V(Ma, {}), a = j(() => ({
76
- ...C(n),
76
+ ...w(n),
77
77
  ...t == null ? void 0 : t.value
78
78
  }));
79
79
  ko(() => {
@@ -117,32 +117,32 @@ const Ra = "x-vue-echarts", $a = "ecTheme", Na = "ecInitOptions", Pa = "ecUpdate
117
117
  null
118
118
  ), { autoresize: u, manualUpdate: g, loading: m, loadingOptions: p } = Jn(e), d = j(
119
119
  () => l.value || e.option || /* @__PURE__ */ Object.create(null)
120
- ), r = j(() => e.theme || C(i) || {}), f = j(
121
- () => e.initOptions || C(s) || {}
122
- ), S = j(
123
- () => e.updateOptions || C(c) || {}
120
+ ), r = j(() => e.theme || w(i) || {}), h = j(
121
+ () => e.initOptions || w(s) || {}
122
+ ), C = j(
123
+ () => e.updateOptions || w(c) || {}
124
124
  ), v = j(() => za(o));
125
- function w(k) {
125
+ function S(A) {
126
126
  if (a.value || !n.value)
127
127
  return;
128
- const A = a.value = oa(
128
+ const _ = a.value = oa(
129
129
  n.value,
130
130
  r.value,
131
- f.value
131
+ h.value
132
132
  );
133
- e.group && (A.group = e.group);
134
- let D = t;
135
- D || (D = {}, Object.keys(o).filter((B) => B.indexOf("on") === 0 && B.length > 2).forEach((B) => {
136
- const T = B.charAt(2).toLowerCase() + B.slice(3);
137
- D[T] = o[B];
138
- })), Object.keys(D).forEach((B) => {
139
- const T = D[B];
140
- T && (B.indexOf("zr:") === 0 ? A.getZr().on(B.slice(3).toLowerCase(), T) : A.on(B.toLowerCase(), T));
133
+ e.group && (_.group = e.group);
134
+ let F = t;
135
+ F || (F = {}, Object.keys(o).filter((B) => B.indexOf("on") === 0 && B.length > 2).forEach((B) => {
136
+ const L = B.charAt(2).toLowerCase() + B.slice(3);
137
+ F[L] = o[B];
138
+ })), Object.keys(F).forEach((B) => {
139
+ const L = F[B];
140
+ L && (B.indexOf("zr:") === 0 ? _.getZr().on(B.slice(3).toLowerCase(), L) : _.on(B.toLowerCase(), L));
141
141
  });
142
142
  function W() {
143
- if (A && !A.isDisposed())
143
+ if (_ && !_.isDisposed())
144
144
  try {
145
- A.resize();
145
+ _.resize();
146
146
  } catch (B) {
147
147
  if (B.message === "Cannot read property 'get' of undefined")
148
148
  return;
@@ -150,26 +150,26 @@ const Ra = "x-vue-echarts", $a = "ecTheme", Na = "ecInitOptions", Pa = "ecUpdate
150
150
  }
151
151
  }
152
152
  function le() {
153
- A.setOption(k || d.value, S.value);
153
+ _.setOption(A || d.value, C.value);
154
154
  }
155
155
  u.value ? At(() => {
156
156
  W(), le();
157
157
  }) : le();
158
158
  }
159
- function O(k, A) {
160
- e.manualUpdate && (l.value = k), a.value ? a.value.setOption(k, A || {}) : w(k);
159
+ function M(A, _) {
160
+ e.manualUpdate && (l.value = A), a.value ? a.value.setOption(A, _ || {}) : S(A);
161
161
  }
162
- function L() {
162
+ function x() {
163
163
  a.value && (a.value.dispose(), a.value = void 0);
164
164
  }
165
- let $ = null;
165
+ let D = null;
166
166
  ee(
167
167
  g,
168
- (k) => {
169
- typeof $ == "function" && ($(), $ = null), k || ($ = ee(
168
+ (A) => {
169
+ typeof D == "function" && (D(), D = null), A || (D = ee(
170
170
  () => e.option,
171
- (A) => {
172
- A && (a.value ? a.value.setOption(A, S.value) : w());
171
+ (_) => {
172
+ _ && (a.value ? a.value.setOption(_, C.value) : S());
173
173
  },
174
174
  { deep: !0 }
175
175
  ));
@@ -178,9 +178,9 @@ const Ra = "x-vue-echarts", $a = "ecTheme", Na = "ecInitOptions", Pa = "ecUpdate
178
178
  immediate: !0
179
179
  }
180
180
  ), ee(
181
- [r, f],
181
+ [r, h],
182
182
  () => {
183
- L(), w();
183
+ x(), S();
184
184
  },
185
185
  {
186
186
  deep: !0
@@ -188,15 +188,15 @@ const Ra = "x-vue-echarts", $a = "ecTheme", Na = "ecInitOptions", Pa = "ecUpdate
188
188
  ), ko(() => {
189
189
  e.group && a.value && (a.value.group = e.group);
190
190
  });
191
- const b = Ta(a, w);
191
+ const f = Ta(a, S);
192
192
  return Oa(a, m, p), La(a, u, n), Je(() => {
193
- e.option && w();
194
- }), kt(L), {
193
+ e.option && S();
194
+ }), kt(x), {
195
195
  chart: a,
196
196
  root: n,
197
- setOption: O,
197
+ setOption: M,
198
198
  nonEventAttrs: v,
199
- ...b
199
+ ...f
200
200
  };
201
201
  },
202
202
  render() {
@@ -937,12 +937,12 @@ Uo("#1890ff");
937
937
  var tt = function(o, t) {
938
938
  var n, a = ho({}, o, t.attrs), l = a.class, i = a.icon, s = a.spin, c = a.rotate, u = a.tabindex, g = a.twoToneColor, m = a.onClick, p = Ll(a, wl), d = (n = {
939
939
  anticon: !0
940
- }, jt(n, "anticon-".concat(i.name), !!i.name), jt(n, l, l), n), r = s === "" || s || i.name === "loading" ? "anticon-spin" : "", f = u;
941
- f === void 0 && m && (f = -1, p.tabindex = f);
942
- var S = c ? {
940
+ }, jt(n, "anticon-".concat(i.name), !!i.name), jt(n, l, l), n), r = s === "" || s || i.name === "loading" ? "anticon-spin" : "", h = u;
941
+ h === void 0 && m && (h = -1, p.tabindex = h);
942
+ var C = c ? {
943
943
  msTransform: "rotate(".concat(c, "deg)"),
944
944
  transform: "rotate(".concat(c, "deg)")
945
- } : void 0, v = Bo(g), w = xl(v, 2), O = w[0], L = w[1];
945
+ } : void 0, v = Bo(g), S = xl(v, 2), M = S[0], x = S[1];
946
946
  return U("span", ho({
947
947
  role: "img",
948
948
  "aria-label": i.name
@@ -952,9 +952,9 @@ var tt = function(o, t) {
952
952
  }), [U(Ht, {
953
953
  class: r,
954
954
  icon: i,
955
- primaryColor: O,
956
- secondaryColor: L,
957
- style: S
955
+ primaryColor: M,
956
+ secondaryColor: x,
957
+ style: C
958
958
  }, null)]);
959
959
  };
960
960
  tt.props = {
@@ -1047,8 +1047,8 @@ const oe = (e, o) => {
1047
1047
  }, Pl = { class: "spin-wrapper" };
1048
1048
  function Bl(e, o, t, n, a, l) {
1049
1049
  const i = Z("a-spin");
1050
- return M(), F("div", Pl, [
1051
- e.spinning ? (M(), ze(i, {
1050
+ return O(), z("div", Pl, [
1051
+ e.spinning ? (O(), ze(i, {
1052
1052
  key: 0,
1053
1053
  class: "spin",
1054
1054
  spinning: e.spinning,
@@ -1071,7 +1071,7 @@ const mt = /* @__PURE__ */ oe(Nl, [["render", Bl]]), Ul = te({
1071
1071
  });
1072
1072
  function Gl(e, o, t, n, a, l) {
1073
1073
  const i = Z("a-skeleton");
1074
- return M(), ze(i, {
1074
+ return O(), ze(i, {
1075
1075
  active: "",
1076
1076
  loading: e.loading
1077
1077
  }, {
@@ -1191,7 +1191,7 @@ const jl = ((xo = window == null ? void 0 : window.config) == null ? void 0 : xo
1191
1191
  emitEvent: (l, i) => {
1192
1192
  }
1193
1193
  }), { touchEventId: a } = V(Ae, {
1194
- touchEventId: _("")
1194
+ touchEventId: T("")
1195
1195
  });
1196
1196
  return (l, i = () => {
1197
1197
  }) => function() {
@@ -1213,8 +1213,8 @@ const jl = ((xo = window == null ? void 0 : window.config) == null ? void 0 : xo
1213
1213
  for (let g = 0; g < s; g++) {
1214
1214
  const m = e[g], p = m[t] || "", d = m[n] || "", r = m[a] || "";
1215
1215
  if (l.add(p), i.has(r)) {
1216
- const f = i.get(r);
1217
- f.push({ name: p, value: d, ...m }), i.set(r, f);
1216
+ const h = i.get(r);
1217
+ h.push({ name: p, value: d, ...m }), i.set(r, h);
1218
1218
  } else
1219
1219
  i.set(r, [{ name: p, value: d, ...m }]);
1220
1220
  }
@@ -1298,8 +1298,8 @@ const Vl = (e) => e.replace(/\\n/g, `
1298
1298
  let g = u.slice(1, -1).trim();
1299
1299
  const m = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, p = g.match(m);
1300
1300
  for (let d = 0; d < p.length; d++) {
1301
- const r = p[d], f = i[r];
1302
- f != null && (g = g.replace(r, f));
1301
+ const r = p[d], h = i[r];
1302
+ h != null && (g = g.replace(r, h));
1303
1303
  }
1304
1304
  (/\(.*\)/g.test(g) || /[+/\\*]/g.test(g)) && (g = It(g, t)), e = e.replace(u, g);
1305
1305
  }
@@ -1322,53 +1322,53 @@ const Vl = (e) => e.replace(/\\n/g, `
1322
1322
  }), m = ye(t), p = async (r = {}) => {
1323
1323
  if (!m || !n || !a)
1324
1324
  return;
1325
- let f = {};
1326
- l.forEach((L) => {
1327
- const { key: $, value: b } = L;
1328
- if (typeof b == "object" && b != null && b.id) {
1329
- let k = {};
1330
- const { id: A, prop: D, propKey: W, operate: le } = b;
1331
- A === "THIS" ? k = g(C(u)) || {} : k = g(A) || {};
1332
- const B = C(k[D]);
1333
- let T = null;
1334
- if (["date", "range"].some((N) => xt(k == null ? void 0 : k.type, N))) {
1335
- const { value: N, type: P, mode: x } = le || {};
1336
- if (N && P && x)
1325
+ let h = {};
1326
+ l.forEach((x) => {
1327
+ const { key: D, value: f } = x;
1328
+ if (typeof f == "object" && f != null && f.id) {
1329
+ let A = {};
1330
+ const { id: _, prop: F, propKey: W, operate: le } = f;
1331
+ _ === "THIS" ? A = g(w(u)) || {} : A = g(_) || {};
1332
+ const B = w(A[F]);
1333
+ let L = null;
1334
+ if (["date", "range"].some((N) => xt(A == null ? void 0 : A.type, N))) {
1335
+ const { value: N, type: P, mode: k } = le || {};
1336
+ if (N && P && k)
1337
1337
  switch (P) {
1338
1338
  case "add":
1339
- T = C(B).add(N, x);
1339
+ L = w(B).add(N, k);
1340
1340
  break;
1341
1341
  case "minus":
1342
- T = C(B).subtract(N, x);
1342
+ L = w(B).subtract(N, k);
1343
1343
  break;
1344
1344
  }
1345
- T == null && (T = C(B)), T = (T == null ? void 0 : T.format((W == null ? void 0 : W.trim()) || k.format)) || "";
1345
+ L == null && (L = w(B)), L = (L == null ? void 0 : L.format((W == null ? void 0 : W.trim()) || A.format)) || "";
1346
1346
  } else
1347
- Object.prototype.toString.call(B) === "[object Object]" ? W ? T = B[W] : T = D ? B[D] : B : xt(k == null ? void 0 : k.type, "select") && C(B) && D && Array.isArray(C(B)) ? T = C(B).map((N) => Object.prototype.hasOwnProperty.call(N, D) ? N[D] : N) : T = B;
1348
- f[$] = T;
1347
+ Object.prototype.toString.call(B) === "[object Object]" ? W ? L = B[W] : L = F ? B[F] : B : xt(A == null ? void 0 : A.type, "select") && w(B) && F && Array.isArray(w(B)) ? L = w(B).map((N) => Object.prototype.hasOwnProperty.call(N, F) ? N[F] : N) : L = B;
1348
+ h[D] = L;
1349
1349
  } else
1350
- typeof b == "string" && (f[$] = ye(b));
1351
- }), f = { ...window.config.requestParams, ...r, ...f };
1352
- let S = "";
1353
- const v = Object.keys(f), w = v.length - 1, O = v.length;
1354
- v.forEach((L, $) => {
1355
- let b = f[L];
1356
- Object.prototype.toString.call(b) === "[object Object]" && (b = JSON.stringify(b)), $ === 0 ? O !== 1 ? S += `?${L}=${b}&` : S += `?${L}=${b}` : $ === w ? S += `${L}=${b}` : S += `${L}=${b}&`;
1350
+ typeof f == "string" && (h[D] = ye(f));
1351
+ }), h = { ...window.config.requestParams, ...r, ...h };
1352
+ let C = "";
1353
+ const v = Object.keys(h), S = v.length - 1, M = v.length;
1354
+ v.forEach((x, D) => {
1355
+ let f = h[x];
1356
+ Object.prototype.toString.call(f) === "[object Object]" && (f = JSON.stringify(f)), D === 0 ? M !== 1 ? C += `?${x}=${f}&` : C += `?${x}=${f}` : D === S ? C += `${x}=${f}` : C += `${x}=${f}&`;
1357
1357
  });
1358
1358
  try {
1359
- const L = ["get", "head"].includes(n);
1360
- let $ = L ? m + S : m;
1361
- f.dataSqlId && !$.includes("dataSqlId") && ($ += `${$.includes("?") ? "&" : "?"}dataSqlId=${f.dataSqlId}`);
1362
- const b = await qe({
1363
- baseURL: C(c) || "",
1364
- url: $,
1359
+ const x = ["get", "head"].includes(n);
1360
+ let D = x ? m + C : m;
1361
+ h.dataSqlId && !D.includes("dataSqlId") && (D += `${D.includes("?") ? "&" : "?"}dataSqlId=${h.dataSqlId}`);
1362
+ const f = await qe({
1363
+ baseURL: w(c) || "",
1364
+ url: D,
1365
1365
  method: n,
1366
1366
  headers: a,
1367
- data: L ? {} : f
1367
+ data: x ? {} : h
1368
1368
  });
1369
- return o(b), b;
1370
- } catch (L) {
1371
- console.error(L);
1369
+ return o(f), f;
1370
+ } catch (x) {
1371
+ console.error(x);
1372
1372
  }
1373
1373
  }, d = s && setInterval(p, i * 1e3);
1374
1374
  return kt(() => {
@@ -1381,8 +1381,8 @@ const Vl = (e) => e.replace(/\\n/g, `
1381
1381
  if (i === 1) {
1382
1382
  const g = [];
1383
1383
  for (let p = 0; p < s; p++) {
1384
- const d = n[p], { label: r, value: f } = d, S = { ...e[0], value: e[0][f] };
1385
- a.add(r), g.push(S);
1384
+ const d = n[p], { label: r, value: h } = d, C = { ...e[0], value: e[0][h] };
1385
+ a.add(r), g.push(C);
1386
1386
  }
1387
1387
  const m = e[0][t] || "";
1388
1388
  l.set(m, g);
@@ -1391,12 +1391,12 @@ const Vl = (e) => e.replace(/\\n/g, `
1391
1391
  const m = e[g], p = m[t];
1392
1392
  a.add(p);
1393
1393
  for (let d = 0; d < s; d++) {
1394
- const r = n[d], { label: f, value: S } = r, v = { ...m, value: m[S] };
1395
- if (l.has(f)) {
1396
- const w = l.get(f);
1397
- w.push(v), l.set(f, w);
1394
+ const r = n[d], { label: h, value: C } = r, v = { ...m, value: m[C] };
1395
+ if (l.has(h)) {
1396
+ const S = l.get(h);
1397
+ S.push(v), l.set(h, S);
1398
1398
  } else
1399
- l.set(f, [v]);
1399
+ l.set(h, [v]);
1400
1400
  }
1401
1401
  }
1402
1402
  const c = Array.from(a), u = [];
@@ -1468,8 +1468,8 @@ const Vl = (e) => e.replace(/\\n/g, `
1468
1468
  calcType: p = "COLUMN",
1469
1469
  builtInFormula: d,
1470
1470
  builtInValueSource: r,
1471
- builtInCalcWay: f,
1472
- formula: S,
1471
+ builtInCalcWay: h,
1472
+ formula: C,
1473
1473
  conditions: v
1474
1474
  } = i;
1475
1475
  return {
@@ -1482,8 +1482,8 @@ const Vl = (e) => e.replace(/\\n/g, `
1482
1482
  aggregate: "SUM",
1483
1483
  builtInFormula: d,
1484
1484
  builtInValueSource: r,
1485
- builtInCalcWay: f,
1486
- formula: S,
1485
+ builtInCalcWay: h,
1486
+ formula: C,
1487
1487
  conditions: v
1488
1488
  };
1489
1489
  }, { getGlobalModel: a } = V(we, {
@@ -1501,21 +1501,21 @@ const Vl = (e) => e.replace(/\\n/g, `
1501
1501
  id: p,
1502
1502
  conditionLabel: d,
1503
1503
  conditionKey: r,
1504
- conditionValueType: f
1505
- } = m, S = {
1504
+ conditionValueType: h
1505
+ } = m, C = {
1506
1506
  rule: "NONE",
1507
1507
  label: d,
1508
1508
  fieldName: r,
1509
1509
  fieldValue: "2020-02",
1510
1510
  // 在关联控件中取
1511
1511
  dateFormat: "YYYY-MM",
1512
- valueType: f
1512
+ valueType: h
1513
1513
  }, v = a(p) || {};
1514
1514
  if (console.log("model", v), xt(v.type, "date")) {
1515
- const { value: w, format: O } = v || {};
1516
- S.fieldValue = (u = C(w)) == null ? void 0 : u.format(O), S.dateFormat = O;
1515
+ const { value: S, format: M } = v || {};
1516
+ C.fieldValue = (u = w(S)) == null ? void 0 : u.format(M), C.dateFormat = M;
1517
1517
  }
1518
- c.push(S);
1518
+ c.push(C);
1519
1519
  }
1520
1520
  return c;
1521
1521
  };
@@ -1533,71 +1533,71 @@ const Vl = (e) => e.replace(/\\n/g, `
1533
1533
  // 前端图表类型,实测没用
1534
1534
  classificationList: d = [],
1535
1535
  seriesList: r = [],
1536
- leftAxisList: f = [],
1537
- rightAxisList: S = [],
1536
+ leftAxisList: h = [],
1537
+ rightAxisList: C = [],
1538
1538
  queryColumnList: v = [],
1539
- indicators: w = [],
1540
- controlList: O = [],
1541
- dataSourceId: L,
1539
+ indicators: S = [],
1540
+ controlList: M = [],
1541
+ dataSourceId: x,
1542
1542
  // 所属数据源ID
1543
- idxLibMode: $,
1543
+ idxLibMode: D,
1544
1544
  // 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
1545
- preview: b = !1
1545
+ preview: f = !1
1546
1546
  // 预览开关
1547
1547
  } = i || {};
1548
1548
  m == null && (xt(s, "table") ? m = "1" : m = "2");
1549
- let k;
1549
+ let A;
1550
1550
  if (Array.isArray(d) && d.length > 0) {
1551
- const T = d.length;
1552
- for (let H = 0; H < T; H++) {
1553
- const N = d[H] || {}, { label: P = "", name: x = "", show: h = !1, sort: y, customGroup: I, conditions: z } = N;
1554
- if (h || T === 1) {
1555
- k = {
1551
+ const L = d.length;
1552
+ for (let H = 0; H < L; H++) {
1553
+ const N = d[H] || {}, { label: P = "", name: k = "", show: y = !1, sort: b, customGroup: I, conditions: R } = N;
1554
+ if (y || L === 1) {
1555
+ A = {
1556
1556
  label: P,
1557
- columnName: x,
1558
- show: h,
1559
- sort: y,
1557
+ columnName: k,
1558
+ show: y,
1559
+ sort: b,
1560
1560
  customGroup: I,
1561
- conditions: z
1561
+ conditions: R
1562
1562
  };
1563
1563
  break;
1564
1564
  }
1565
1565
  }
1566
1566
  }
1567
- let A;
1567
+ let _;
1568
1568
  if (Array.isArray(r) && r.length > 0) {
1569
- const T = r.length;
1570
- for (let H = 0; H < T; H++) {
1571
- const N = r[H] || {}, { label: P = "", name: x = "", show: h = !1, sort: y, customGroup: I, conditions: z } = N;
1572
- if (h || T === 1) {
1573
- A = {
1569
+ const L = r.length;
1570
+ for (let H = 0; H < L; H++) {
1571
+ const N = r[H] || {}, { label: P = "", name: k = "", show: y = !1, sort: b, customGroup: I, conditions: R } = N;
1572
+ if (y || L === 1) {
1573
+ _ = {
1574
1574
  label: P,
1575
- columnName: x,
1576
- show: h,
1577
- sort: y,
1575
+ columnName: k,
1576
+ show: y,
1577
+ sort: b,
1578
1578
  customGroup: I,
1579
- conditions: z
1579
+ conditions: R
1580
1580
  };
1581
1581
  break;
1582
1582
  }
1583
1583
  }
1584
1584
  }
1585
- const D = [];
1586
- v == null || v.forEach((T) => {
1587
- D.push(t(T));
1585
+ const F = [];
1586
+ v == null || v.forEach((L) => {
1587
+ F.push(t(L));
1588
1588
  });
1589
1589
  const W = [];
1590
- if (f == null || f.forEach((T) => {
1591
- T.location = "LEFT", W.push(n(T));
1592
- }), S == null || S.forEach((T) => {
1593
- T.location = "RIGHT", W.push(n(T));
1594
- }), w == null || w.forEach((T) => {
1595
- T.location = "LEFT", W.push(n(T));
1596
- }), m === "1" && D.length === 0)
1590
+ if (h == null || h.forEach((L) => {
1591
+ L.location = "LEFT", W.push(n(L));
1592
+ }), C == null || C.forEach((L) => {
1593
+ L.location = "RIGHT", W.push(n(L));
1594
+ }), S == null || S.forEach((L) => {
1595
+ L.location = "LEFT", W.push(n(L));
1596
+ }), m === "1" && F.length === 0)
1597
1597
  return;
1598
1598
  if (m === "2" && W.length === 0)
1599
1599
  return;
1600
- const le = l(O);
1600
+ const le = l(M);
1601
1601
  try {
1602
1602
  return await qe.post(
1603
1603
  `${Ho}/diagram`,
@@ -1607,16 +1607,16 @@ const Vl = (e) => e.replace(/\\n/g, `
1607
1607
  plugin: g,
1608
1608
  layer: m,
1609
1609
  chartType: p,
1610
- classification: k,
1611
- series: A,
1610
+ classification: A,
1611
+ series: _,
1612
1612
  indicatorList: W,
1613
- queryColumns: D,
1613
+ queryColumns: F,
1614
1614
  pageFlag: !0,
1615
1615
  sqlConditions: le,
1616
1616
  // fixedDimSql: '',
1617
- dataSourceId: L,
1618
- idxLibMode: $,
1619
- preview: b
1617
+ dataSourceId: x,
1618
+ idxLibMode: D,
1619
+ preview: f
1620
1620
  },
1621
1621
  {
1622
1622
  headers: {
@@ -1626,8 +1626,8 @@ const Vl = (e) => e.replace(/\\n/g, `
1626
1626
  }
1627
1627
  }
1628
1628
  );
1629
- } catch (T) {
1630
- console.error(T);
1629
+ } catch (L) {
1630
+ console.error(L);
1631
1631
  }
1632
1632
  };
1633
1633
  }, Hl = () => {
@@ -1664,22 +1664,22 @@ const Vl = (e) => e.replace(/\\n/g, `
1664
1664
  backgroundColor: e.backgroundColor,
1665
1665
  backgroundImage: Ve(e.backgroundImage, !0),
1666
1666
  backgroundSize: e.backgroundSize
1667
- })), t = _(0), n = _(0), a = _(0), l = _(0), i = _(!1), s = _();
1667
+ })), t = T(0), n = T(0), a = T(0), l = T(0), i = T(!1), s = T();
1668
1668
  let c;
1669
- const u = () => new Promise((f) => {
1669
+ const u = () => new Promise((h) => {
1670
1670
  At(() => {
1671
- e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = s.value.clientWidth, n.value = s.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height), f();
1671
+ e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = s.value.clientWidth, n.value = s.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height), h();
1672
1672
  });
1673
1673
  }), g = () => {
1674
1674
  t.value && n.value ? (s.value.style.width = `${t.value}px`, s.value.style.height = `${n.value}px`) : (s.value.style.width = `${a.value}px`, s.value.style.height = `${l.value}px`);
1675
1675
  }, m = () => {
1676
- const f = document.body.clientWidth, S = document.body.clientHeight, v = t.value || a.value, w = n.value || l.value, O = f / v, L = S / w;
1677
- s.value && (s.value.style.transform = `scale(${O}, ${L})`);
1676
+ const h = document.body.clientWidth, C = document.body.clientHeight, v = t.value || a.value, S = n.value || l.value, M = h / v, x = C / S;
1677
+ s.value && (s.value.style.transform = `scale(${M}, ${x})`);
1678
1678
  }, p = Vt(async () => {
1679
1679
  await u(), m();
1680
1680
  }, 100), d = () => {
1681
- const f = window.MutationObserver;
1682
- c = new f(p), c.observe(s.value, {
1681
+ const h = window.MutationObserver;
1682
+ c = new h(p), c.observe(s.value, {
1683
1683
  attributes: !0,
1684
1684
  attributeFilter: ["style"],
1685
1685
  attributeOldValue: !0
@@ -1703,8 +1703,8 @@ const Jl = {
1703
1703
  ref: "container"
1704
1704
  };
1705
1705
  function Yl(e, o, t, n, a, l) {
1706
- return M(), F("div", Jl, [
1707
- e.ready ? (M(), F("div", {
1706
+ return O(), z("div", Jl, [
1707
+ e.ready ? (O(), z("div", {
1708
1708
  key: 0,
1709
1709
  class: "page-config",
1710
1710
  style: q(e.style)
@@ -1726,7 +1726,7 @@ const Ql = /* @__PURE__ */ oe(Zl, [["render", Yl], ["__scopeId", "data-v-242d350
1726
1726
  },
1727
1727
  setup(e, { expose: o }) {
1728
1728
  Hl();
1729
- const t = _(), n = () => {
1729
+ const t = T(), n = () => {
1730
1730
  t.value.setAttribute("datav-theme", e.theme);
1731
1731
  };
1732
1732
  ee(() => e.theme, () => {
@@ -1734,7 +1734,7 @@ const Ql = /* @__PURE__ */ oe(Zl, [["render", Yl], ["__scopeId", "data-v-242d350
1734
1734
  }), Je(() => {
1735
1735
  n();
1736
1736
  });
1737
- const a = j(() => ye(e.contextRequestUrl)), l = j(() => e.pageMode), i = j(() => e.theme), s = _("");
1737
+ const a = j(() => ye(e.contextRequestUrl)), l = j(() => e.pageMode), i = j(() => e.theme), s = T("");
1738
1738
  je(Ae, {
1739
1739
  // 请求地址
1740
1740
  contextRequestUrl: a,
@@ -1749,110 +1749,110 @@ const Ql = /* @__PURE__ */ oe(Zl, [["render", Yl], ["__scopeId", "data-v-242d350
1749
1749
  const u = (P) => c.get(P);
1750
1750
  je(we, {
1751
1751
  getGlobalModel: u,
1752
- setGlobalModel: (P, x) => {
1753
- c.set(P, x);
1752
+ setGlobalModel: (P, k) => {
1753
+ c.set(P, k);
1754
1754
  }
1755
1755
  });
1756
1756
  const m = [], p = () => {
1757
1757
  m.pop();
1758
1758
  }, d = (P) => {
1759
1759
  m.push(P);
1760
- }, r = /* @__PURE__ */ new Map(), f = (P) => r.get(P);
1760
+ }, r = /* @__PURE__ */ new Map(), h = (P) => r.get(P);
1761
1761
  je(Wo, {
1762
1762
  popUseModalIds: p,
1763
1763
  pushUseModalIds: d,
1764
- getModalModel: f,
1765
- setModalModel: (P, x) => {
1766
- r.set(P, x);
1764
+ getModalModel: h,
1765
+ setModalModel: (P, k) => {
1766
+ r.set(P, k);
1767
1767
  }
1768
1768
  });
1769
- const v = va(), w = /* @__PURE__ */ new Set(), O = (P, x) => {
1770
- w.add(P), v.on(P, (h) => typeof x[h] == "function" && x[h]()), Bt(() => {
1771
- L(P);
1769
+ const v = va(), S = /* @__PURE__ */ new Set(), M = (P, k) => {
1770
+ S.add(P), v.on(P, (y) => typeof k[y] == "function" && k[y]()), Bt(() => {
1771
+ x(P);
1772
1772
  });
1773
- }, L = (P) => {
1774
- w.delete(P), v.off(P);
1773
+ }, x = (P) => {
1774
+ S.delete(P), v.off(P);
1775
1775
  };
1776
1776
  je(Yt, {
1777
- onEvent: O,
1778
- offEvent: L,
1779
- emitEvent: (P, x) => {
1777
+ onEvent: M,
1778
+ offEvent: x,
1779
+ emitEvent: (P, k) => {
1780
1780
  if (P === "PAGE") {
1781
- const h = m.length;
1782
- let y = [];
1783
- if (h === 0)
1784
- y = [...w];
1781
+ const y = m.length;
1782
+ let b = [];
1783
+ if (y === 0)
1784
+ b = [...S];
1785
1785
  else {
1786
- const I = m[h - 1];
1787
- y = [...f(I)];
1786
+ const I = m[y - 1];
1787
+ b = [...h(I)];
1788
1788
  }
1789
- y.forEach((I) => {
1790
- v.emit(I, x);
1789
+ b.forEach((I) => {
1790
+ v.emit(I, k);
1791
1791
  });
1792
1792
  } else
1793
- v.emit(P, x);
1793
+ v.emit(P, k);
1794
1794
  }
1795
1795
  });
1796
- const b = _(0);
1796
+ const f = T(0);
1797
1797
  je(Vo, {
1798
1798
  requestToken: () => {
1799
- b.value = C(b) + 1;
1799
+ f.value = w(f) + 1;
1800
1800
  }
1801
1801
  });
1802
- const A = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), W = ({ requestFn: P = () => {
1803
- }, sortNum: x = 0, id: h = "" }) => {
1804
- if (A.has(x)) {
1805
- const y = A.get(x);
1806
- y == null || y.push(P);
1802
+ const _ = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), W = ({ requestFn: P = () => {
1803
+ }, sortNum: k = 0, id: y = "" }) => {
1804
+ if (_.has(k)) {
1805
+ const b = _.get(k);
1806
+ b == null || b.push(P);
1807
1807
  } else
1808
- A.set(x, [P]);
1809
- D.set(h, P);
1810
- }, le = (P) => new Promise((x, h) => {
1811
- const y = P.map((I) => I());
1812
- Promise.all(y).then((I) => {
1813
- x(I);
1808
+ _.set(k, [P]);
1809
+ F.set(y, P);
1810
+ }, le = (P) => new Promise((k, y) => {
1811
+ const b = P.map((I) => I());
1812
+ Promise.all(b).then((I) => {
1813
+ k(I);
1814
1814
  }).catch((I) => {
1815
- h(I);
1815
+ y(I);
1816
1816
  });
1817
1817
  }), B = async () => {
1818
- var h;
1818
+ var y;
1819
1819
  const P = await Oo.get(`${Ho}/user/anonymous?username=admin&businessOfficeId=350421`, {
1820
1820
  headers: {
1821
1821
  systemCode: "F72FC50A3D97372514A6AC33333D28FD",
1822
1822
  current_context: "ygt",
1823
1823
  Authentication: ""
1824
1824
  }
1825
- }), { token: x } = ((h = P.data) == null ? void 0 : h.data) || {};
1826
- window.config.indicatorToken = x;
1827
- }, T = (P) => new Promise(async (x, h) => {
1825
+ }), { token: k } = ((y = P.data) == null ? void 0 : y.data) || {};
1826
+ window.config.indicatorToken = k;
1827
+ }, L = (P) => new Promise(async (k, y) => {
1828
1828
  if (P) {
1829
1829
  if (typeof P == "string") {
1830
- const y = D.get(P);
1831
- if (typeof y == "function") {
1832
- const I = qe.interceptors.response.use((z) => (x(z), z), (z) => (h(z), Promise.reject(z)));
1833
- y(), qe.interceptors.response.eject(I);
1830
+ const b = F.get(P);
1831
+ if (typeof b == "function") {
1832
+ const I = qe.interceptors.response.use((R) => (k(R), R), (R) => (y(R), Promise.reject(R)));
1833
+ b(), qe.interceptors.response.eject(I);
1834
1834
  }
1835
1835
  }
1836
1836
  } else {
1837
- const y = Array.from(A);
1838
- y.sort((z, Y) => Y[0] - z[0]);
1839
- const I = y.length;
1837
+ const b = Array.from(_);
1838
+ b.sort((R, Y) => Y[0] - R[0]);
1839
+ const I = b.length;
1840
1840
  try {
1841
- e.pageMode !== "design" && C(b) > 0 && await B();
1842
- for (let z = 0; z < I; z++) {
1843
- const Y = y[z][1];
1841
+ e.pageMode !== "design" && w(f) > 0 && await B();
1842
+ for (let R = 0; R < I; R++) {
1843
+ const Y = b[R][1];
1844
1844
  await le(Y);
1845
1845
  }
1846
- } catch (z) {
1847
- console.error(z);
1846
+ } catch (R) {
1847
+ console.error(R);
1848
1848
  } finally {
1849
- A.clear(), x(null);
1849
+ _.clear(), k(null);
1850
1850
  }
1851
1851
  }
1852
1852
  });
1853
1853
  je(_e, {
1854
1854
  setRequest: W,
1855
- touchRequest: T
1855
+ touchRequest: L
1856
1856
  }), je(lt, {
1857
1857
  emitRefreshPage: () => {
1858
1858
  v.emit(lt);
@@ -1864,9 +1864,9 @@ const Ql = /* @__PURE__ */ oe(Zl, [["render", Yl], ["__scopeId", "data-v-242d350
1864
1864
  });
1865
1865
  };
1866
1866
  return Bt(() => {
1867
- A == null || A.clear(), D == null || D.clear();
1867
+ _ == null || _.clear(), F == null || F.clear();
1868
1868
  }), o({
1869
- touchRequest: T,
1869
+ touchRequest: L,
1870
1870
  getGlobalModel: u,
1871
1871
  onRefreshPage: N
1872
1872
  }), {
@@ -1878,7 +1878,7 @@ const Ql = /* @__PURE__ */ oe(Zl, [["render", Yl], ["__scopeId", "data-v-242d350
1878
1878
  ref: "providerConfig"
1879
1879
  };
1880
1880
  function ti(e, o, t, n, a, l) {
1881
- return M(), F("div", ei, [
1881
+ return O(), z("div", ei, [
1882
1882
  rt(e.$slots, "default")
1883
1883
  ], 512);
1884
1884
  }
@@ -1913,42 +1913,42 @@ const oi = /* @__PURE__ */ oe(Xl, [["render", ti]]), ni = ae(oi), Qo = {
1913
1913
  ...Ko
1914
1914
  },
1915
1915
  setup(e) {
1916
- const o = ue(e), t = _({});
1916
+ const o = ue(e), t = T({});
1917
1917
  ee(() => [e.data, e.dataType], ([d, r]) => {
1918
1918
  r === "static" && (t.value = d);
1919
1919
  }, {
1920
1920
  immediate: !0
1921
1921
  });
1922
1922
  const n = j(() => {
1923
- var S;
1924
- const d = C(t);
1923
+ var C;
1924
+ const d = w(t);
1925
1925
  let r = e.text;
1926
1926
  r = r == null ? void 0 : r.replace(/\n|\\n/g, "<br/>"), r = r == null ? void 0 : r.replace(/\s(?!\{) | (?!\})\s/g, "&nbsp;");
1927
- const f = r.match(/\{(.+?)\}/g);
1928
- if (f == null || f.length === 0)
1927
+ const h = r.match(/\{(.+?)\}/g);
1928
+ if (h == null || h.length === 0)
1929
1929
  return r;
1930
- for (let v = 0; v < f.length; v++) {
1931
- const w = f[v], O = (S = w == null ? void 0 : w.slice(1, w.length - 1)) == null ? void 0 : S.trim();
1932
- let L = O;
1933
- const $ = O.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
1934
- for (let k = 0; k < $.length; k++) {
1935
- const A = $[k], D = d[A];
1936
- D && (L = O.replace(A, D));
1930
+ for (let v = 0; v < h.length; v++) {
1931
+ const S = h[v], M = (C = S == null ? void 0 : S.slice(1, S.length - 1)) == null ? void 0 : C.trim();
1932
+ let x = M;
1933
+ const D = M.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
1934
+ for (let A = 0; A < D.length; A++) {
1935
+ const _ = D[A], F = d[_];
1936
+ F && (x = M.replace(_, F));
1937
1937
  }
1938
- if (/\(.*\)/g.test(L)) {
1939
- const k = It(L);
1940
- k != null && (L = k);
1938
+ if (/\(.*\)/g.test(x)) {
1939
+ const A = It(x);
1940
+ A != null && (x = A);
1941
1941
  }
1942
- let b = L;
1943
- if (b === O && (b = e.variableDefaultValue), b != null) {
1944
- const k = e.format;
1945
- k === "percentage" ? (b = +b, isNaN(b) ? r = r.replace(w, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">0%</span>`) : b >= 0 ? (b = (b * 100).toFixed(2), r = r.replace(w, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${li}"/>${b}%</span>`)) : (b = (b * 100).toFixed(2), r = r.replace(w, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${ii}"/>${Math.abs(+b)}%</span>`))) : e.format === "percent" ? (b = +b, isNaN(b) || (b = (b * 100).toFixed(2), r = r.replace(w, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}%</span>`))) : e.format === "money" ? (b = +b, isNaN(b) || (b = Qt(b), r = r.replace(w, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}</span>`))) : k === "thousands" ? (b = +b, isNaN(b) || (b = Wl(b), r = r.replace(w, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}</span>`))) : r = r.replace(w, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}</span>`);
1942
+ let f = x;
1943
+ if (f === M && (f = e.variableDefaultValue), f != null) {
1944
+ const A = e.format;
1945
+ A === "percentage" ? (f = +f, isNaN(f) ? r = r.replace(S, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">0%</span>`) : f >= 0 ? (f = (f * 100).toFixed(2), r = r.replace(S, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${li}"/>${f}%</span>`)) : (f = (f * 100).toFixed(2), r = r.replace(S, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${ii}"/>${Math.abs(+f)}%</span>`))) : e.format === "percent" ? (f = +f, isNaN(f) || (f = (f * 100).toFixed(2), r = r.replace(S, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${f}%</span>`))) : e.format === "money" ? (f = +f, isNaN(f) || (f = Qt(f), r = r.replace(S, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${f}</span>`))) : A === "thousands" ? (f = +f, isNaN(f) || (f = Wl(f), r = r.replace(S, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${f}</span>`))) : r = r.replace(S, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${f}</span>`);
1946
1946
  }
1947
1947
  }
1948
1948
  return `<span>${r}</span>`;
1949
1949
  }), { pageMode: a } = V(Ae, {
1950
1950
  pageMode: "normal"
1951
- }), l = Oe(e), i = _(!1), s = async () => {
1951
+ }), l = Oe(e), i = T(!1), s = async () => {
1952
1952
  var d;
1953
1953
  try {
1954
1954
  i.value = !0;
@@ -1968,7 +1968,7 @@ const oi = /* @__PURE__ */ oe(Xl, [["render", ti]]), ni = ae(oi), Qo = {
1968
1968
  const { setRequest: u } = V(_e, {
1969
1969
  // @ts-ignore
1970
1970
  // eslint-disable-next-line no-void
1971
- setRequest: ({ id: d, sortNum: r, requestFn: f }) => {
1971
+ setRequest: ({ id: d, sortNum: r, requestFn: h }) => {
1972
1972
  }
1973
1973
  });
1974
1974
  u({
@@ -1981,13 +1981,13 @@ const oi = /* @__PURE__ */ oe(Xl, [["render", ti]]), ni = ae(oi), Qo = {
1981
1981
  const g = be(e), m = g("click", () => {
1982
1982
  if (!e.linkPage && !e.href)
1983
1983
  return;
1984
- const d = e.linkPage || "", r = Zo(C(a), d), f = e.href;
1985
- let S = f || r;
1986
- S = ye(S);
1984
+ const d = e.linkPage || "", r = Zo(w(a), d), h = e.href;
1985
+ let C = h || r;
1986
+ C = ye(C);
1987
1987
  const v = e.target;
1988
- v && (v !== "event" ? window.open(S, "_" + v) : window.parent.postMessage({
1988
+ v && (v !== "event" ? window.open(C, "_" + v) : window.parent.postMessage({
1989
1989
  type: "openPage",
1990
- url: f
1990
+ url: h
1991
1991
  }, "*"));
1992
1992
  }), p = g("valueChange", () => {
1993
1993
  });
@@ -2004,13 +2004,13 @@ const oi = /* @__PURE__ */ oe(Xl, [["render", ti]]), ni = ae(oi), Qo = {
2004
2004
  const ri = ["innerHTML"];
2005
2005
  function ci(e, o, t, n, a, l) {
2006
2006
  const i = Z("skeleton");
2007
- return e.loading ? (M(), F("div", {
2007
+ return e.loading ? (O(), z("div", {
2008
2008
  key: 0,
2009
2009
  class: "skeleton-wrapper",
2010
2010
  style: q(e.style)
2011
2011
  }, [
2012
2012
  U(i, { loading: e.loading }, null, 8, ["loading"])
2013
- ], 4)) : (M(), F("div", {
2013
+ ], 4)) : (O(), z("div", {
2014
2014
  key: 1,
2015
2015
  class: "ecan-text",
2016
2016
  style: q(e.style),
@@ -2022,13 +2022,13 @@ const di = /* @__PURE__ */ oe(si, [["render", ci], ["__scopeId", "data-v-e3658bc
2022
2022
  name: "EcanScrollText",
2023
2023
  setup() {
2024
2024
  return {
2025
- text: _("基础文本")
2025
+ text: T("基础文本")
2026
2026
  };
2027
2027
  }
2028
2028
  });
2029
2029
  const mi = { class: "red" };
2030
2030
  function hi(e, o, t, n, a, l) {
2031
- return M(), F("div", mi, Ce(e.text), 1);
2031
+ return O(), z("div", mi, Ce(e.text), 1);
2032
2032
  }
2033
2033
  const gi = /* @__PURE__ */ oe(fi, [["render", hi], ["__scopeId", "data-v-4dd9c03e"]]), yi = ae(gi), Xo = {
2034
2034
  ...me,
@@ -2067,7 +2067,7 @@ const gi = /* @__PURE__ */ oe(fi, [["render", hi], ["__scopeId", "data-v-4dd9c03
2067
2067
  }
2068
2068
  }
2069
2069
  return m.format(u);
2070
- }, n = _();
2070
+ }, n = T();
2071
2071
  ee(() => [e.operate, e.format], () => {
2072
2072
  n.value = t();
2073
2073
  }, {
@@ -2110,7 +2110,7 @@ const gi = /* @__PURE__ */ oe(fi, [["render", hi], ["__scopeId", "data-v-4dd9c03
2110
2110
  }
2111
2111
  });
2112
2112
  function pi(e, o, t, n, a, l) {
2113
- return M(), F("div", {
2113
+ return O(), z("div", {
2114
2114
  class: "time-display",
2115
2115
  style: q(e.style)
2116
2116
  }, Ce(e.time), 5);
@@ -2155,7 +2155,7 @@ const Ci = /* @__PURE__ */ oe(vi, [["render", pi], ["__scopeId", "data-v-b628fca
2155
2155
  ...on
2156
2156
  },
2157
2157
  setup(e) {
2158
- const o = _(e.data), t = ue(e, ["backgroundColor"]), n = j(() => e.useRanking ? {
2158
+ const o = T(e.data), t = ue(e, ["backgroundColor"]), n = j(() => e.useRanking ? {
2159
2159
  textAlign: "center"
2160
2160
  } : {
2161
2161
  textAlign: "left"
@@ -2164,16 +2164,16 @@ const Ci = /* @__PURE__ */ oe(vi, [["render", pi], ["__scopeId", "data-v-b628fca
2164
2164
  percentage: wt,
2165
2165
  contrast: wt
2166
2166
  }[r](d) || "", l = (d, r) => {
2167
- const f = parseFloat(d + "");
2167
+ const h = parseFloat(d + "");
2168
2168
  if (r !== "contrast")
2169
2169
  return "";
2170
2170
  switch (!0) {
2171
- case f >= 0:
2171
+ case h >= 0:
2172
2172
  return "goUp";
2173
- case f < 0:
2173
+ case h < 0:
2174
2174
  return "goDown";
2175
2175
  }
2176
- }, i = Oe(e), s = _(!1), c = async () => {
2176
+ }, i = Oe(e), s = T(!1), c = async () => {
2177
2177
  var d;
2178
2178
  if (e.dataType === "request")
2179
2179
  try {
@@ -2195,7 +2195,7 @@ const Ci = /* @__PURE__ */ oe(vi, [["render", pi], ["__scopeId", "data-v-b628fca
2195
2195
  const { setRequest: p } = V(_e, {
2196
2196
  // @ts-ignore
2197
2197
  // eslint-disable-next-line no-void
2198
- setRequest: ({ id: d, sortNum: r, requestFn: f }) => {
2198
+ setRequest: ({ id: d, sortNum: r, requestFn: h }) => {
2199
2199
  }
2200
2200
  });
2201
2201
  return p({
@@ -2231,14 +2231,14 @@ const ki = (e) => (_t("data-v-7aa27677"), e = e(), Tt(), e), Ai = {
2231
2231
  };
2232
2232
  function Ei(e, o, t, n, a, l) {
2233
2233
  const i = Z("skeleton");
2234
- return M(), F("div", {
2234
+ return O(), z("div", {
2235
2235
  class: "ecan-list",
2236
2236
  style: q(e.style)
2237
2237
  }, [
2238
2238
  U(i, { loading: e.loading }, {
2239
2239
  default: K(() => [
2240
- e.useTitle ? (M(), F("div", Ai, [
2241
- (M(!0), F(De, null, Fe(e.columnCount, (s) => (M(), F("div", {
2240
+ e.useTitle ? (O(), z("div", Ai, [
2241
+ (O(!0), z(De, null, Fe(e.columnCount, (s) => (O(), z("div", {
2242
2242
  class: "title-inner",
2243
2243
  style: q({
2244
2244
  backgroundColor: e.backgroundColor,
@@ -2248,8 +2248,8 @@ function Ei(e, o, t, n, a, l) {
2248
2248
  }),
2249
2249
  key: s
2250
2250
  }, [
2251
- e.useRanking ? (M(), F("div", _i)) : ke("", !0),
2252
- (M(!0), F(De, null, Fe(e.columns, (c, u) => (M(), F("div", {
2251
+ e.useRanking ? (O(), z("div", _i)) : ke("", !0),
2252
+ (O(!0), z(De, null, Fe(e.columns, (c, u) => (O(), z("div", {
2253
2253
  class: "column",
2254
2254
  key: c.key || u,
2255
2255
  style: q({
@@ -2259,15 +2259,15 @@ function Ei(e, o, t, n, a, l) {
2259
2259
  }, Ce(c.title), 5))), 128))
2260
2260
  ], 4))), 128))
2261
2261
  ])) : ke("", !0),
2262
- e.dataSource.length > 0 ? (M(), F("div", Ti, [
2263
- e.useTitle ? (M(), F("div", {
2262
+ e.dataSource.length > 0 ? (O(), z("div", Ti, [
2263
+ e.useTitle ? (O(), z("div", {
2264
2264
  key: 0,
2265
2265
  class: "title-placeholder",
2266
2266
  style: q({
2267
2267
  marginBottom: e.itemRowSpan
2268
2268
  })
2269
2269
  }, null, 4)) : ke("", !0),
2270
- (M(!0), F(De, null, Fe(e.dataSource.slice(0, e.sliceCount), (s, c) => (M(), F("div", {
2270
+ (O(!0), z(De, null, Fe(e.dataSource.slice(0, e.sliceCount), (s, c) => (O(), z("div", {
2271
2271
  class: "item",
2272
2272
  style: q({
2273
2273
  backgroundColor: e.backgroundColor,
@@ -2279,11 +2279,11 @@ function Ei(e, o, t, n, a, l) {
2279
2279
  key: s.id || c,
2280
2280
  onClick: o[0] || (o[0] = (...u) => e.click && e.click(...u))
2281
2281
  }, [
2282
- e.useRanking ? (M(), F("div", Li, [
2282
+ e.useRanking ? (O(), z("div", Li, [
2283
2283
  Ii,
2284
2284
  X("div", Mi, " Top " + Ce(c + 1), 1)
2285
2285
  ])) : ke("", !0),
2286
- (M(!0), F(De, null, Fe(e.columns, (u) => (M(), F("div", {
2286
+ (O(!0), z(De, null, Fe(e.columns, (u) => (O(), z("div", {
2287
2287
  class: Ut(["column", e.contrastClass(s[u.key], u.format)]),
2288
2288
  key: u.key,
2289
2289
  style: q({
@@ -2294,7 +2294,7 @@ function Ei(e, o, t, n, a, l) {
2294
2294
  })
2295
2295
  }, Ce((u.format != null || u.format !== "") && e.formatFn(s[u.key], u.format)), 7))), 128))
2296
2296
  ], 4))), 128))
2297
- ])) : (M(), F("div", Oi, " 暂无数据 "))
2297
+ ])) : (O(), z("div", Oi, " 暂无数据 "))
2298
2298
  ]),
2299
2299
  _: 1
2300
2300
  }, 8, ["loading"])
@@ -2338,60 +2338,60 @@ const Di = /* @__PURE__ */ oe(xi, [["render", Ei], ["__scopeId", "data-v-7aa2767
2338
2338
  }), t = ue(e), n = j(() => {
2339
2339
  const r = e.width;
2340
2340
  return parseFloat(r);
2341
- }), a = _({});
2341
+ }), a = T({});
2342
2342
  ee(() => e.data, () => {
2343
- (e.dataType === "static" || C(o) === "design") && (a.value = e.data);
2343
+ (e.dataType === "static" || w(o) === "design") && (a.value = e.data);
2344
2344
  }, {
2345
2345
  immediate: !0,
2346
2346
  deep: !0
2347
2347
  });
2348
2348
  const l = j(() => {
2349
- const r = C(a), f = +e.variableDefaultValue;
2349
+ const r = w(a), h = +e.variableDefaultValue;
2350
2350
  if (r == null)
2351
- return isNaN(f) ? 0 : f;
2352
- const S = e.text.match(/\{.+\}/g) || [];
2351
+ return isNaN(h) ? 0 : h;
2352
+ const C = e.text.match(/\{.+\}/g) || [];
2353
2353
  let v;
2354
- const w = new Set(Object.keys(r));
2355
- for (let O = 0; O < S.length; O++) {
2356
- const L = S[O], $ = L.slice(1, L.length - 1);
2357
- if (w.has($)) {
2358
- v = r[$];
2354
+ const S = new Set(Object.keys(r));
2355
+ for (let M = 0; M < C.length; M++) {
2356
+ const x = C[M], D = x.slice(1, x.length - 1);
2357
+ if (S.has(D)) {
2358
+ v = r[D];
2359
2359
  break;
2360
2360
  }
2361
2361
  }
2362
- return typeof v == "number" ? v = v * 100 : typeof v == "string" && !isNaN(+v) ? v = +v * 100 : isNaN(f) ? v = 0 : v = f * 100, e.decimalFormat && (v = +v.toFixed(2)), v;
2362
+ return typeof v == "number" ? v = v * 100 : typeof v == "string" && !isNaN(+v) ? v = +v * 100 : isNaN(h) ? v = 0 : v = h * 100, e.decimalFormat && (v = +v.toFixed(2)), v;
2363
2363
  }), i = j(() => {
2364
- var w;
2364
+ var S;
2365
2365
  let r = e.text;
2366
2366
  if (r === "")
2367
- return C(l);
2368
- const f = e.variableDefaultValue, S = C(a), v = r.match(/\{.+\}/g) || [];
2369
- for (let O = 0; O < v.length; O++) {
2370
- const L = v[O];
2371
- let $ = L.slice(1, L.length - 1);
2372
- const b = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, k = L.match(b);
2373
- for (let D = 0; D < (k == null ? void 0 : k.length); D++) {
2374
- const W = (w = k[D]) == null ? void 0 : w.trim();
2375
- S[W] != null && ($ = $.replace(W, S[W]));
2367
+ return w(l);
2368
+ const h = e.variableDefaultValue, C = w(a), v = r.match(/\{.+\}/g) || [];
2369
+ for (let M = 0; M < v.length; M++) {
2370
+ const x = v[M];
2371
+ let D = x.slice(1, x.length - 1);
2372
+ const f = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, A = x.match(f);
2373
+ for (let F = 0; F < (A == null ? void 0 : A.length); F++) {
2374
+ const W = (S = A[F]) == null ? void 0 : S.trim();
2375
+ C[W] != null && (D = D.replace(W, C[W]));
2376
2376
  }
2377
- let A = $;
2377
+ let _ = D;
2378
2378
  try {
2379
- /\(.*\)/g.test($) && (A = It($));
2380
- } catch (D) {
2381
- console.error(D);
2379
+ /\(.*\)/g.test(D) && (_ = It(D));
2380
+ } catch (F) {
2381
+ console.error(F);
2382
2382
  }
2383
- typeof +A == "number" && !isNaN(+A) ? (A = +A * 100, e.decimalFormat && (A = A.toFixed(2))) : A = f, r = r.replace(L, A + "");
2383
+ typeof +_ == "number" && !isNaN(+_) ? (_ = +_ * 100, e.decimalFormat && (_ = _.toFixed(2))) : _ = h, r = r.replace(x, _ + "");
2384
2384
  }
2385
2385
  return r;
2386
- }), s = Oe(e), c = _(!1), u = async () => {
2386
+ }), s = Oe(e), c = T(!1), u = async () => {
2387
2387
  var r;
2388
2388
  if (e.dataType === "request")
2389
2389
  try {
2390
2390
  c.value = !0;
2391
- const f = await s();
2392
- a.value = ((r = f == null ? void 0 : f.data) == null ? void 0 : r.data) || {};
2393
- } catch (f) {
2394
- console.error(f);
2391
+ const h = await s();
2392
+ a.value = ((r = h == null ? void 0 : h.data) == null ? void 0 : r.data) || {};
2393
+ } catch (h) {
2394
+ console.error(h);
2395
2395
  } finally {
2396
2396
  c.value = !1;
2397
2397
  }
@@ -2405,7 +2405,7 @@ const Di = /* @__PURE__ */ oe(xi, [["render", Ei], ["__scopeId", "data-v-7aa2767
2405
2405
  }), { setRequest: d } = V(_e, {
2406
2406
  // @ts-ignore
2407
2407
  // eslint-disable-next-line no-void
2408
- setRequest: ({ id: r, sortNum: f, requestFn: S }) => {
2408
+ setRequest: ({ id: r, sortNum: h, requestFn: C }) => {
2409
2409
  }
2410
2410
  });
2411
2411
  return d({
@@ -2424,7 +2424,7 @@ const Di = /* @__PURE__ */ oe(xi, [["render", Ei], ["__scopeId", "data-v-7aa2767
2424
2424
  });
2425
2425
  function $i(e, o, t, n, a, l) {
2426
2426
  const i = Z("skeleton"), s = Z("a-progress");
2427
- return M(), F("div", {
2427
+ return O(), z("div", {
2428
2428
  class: "ecan-proportion",
2429
2429
  style: q(e.style)
2430
2430
  }, [
@@ -2441,10 +2441,10 @@ function $i(e, o, t, n, a, l) {
2441
2441
  onClick: e.click
2442
2442
  }, {
2443
2443
  format: K(() => [
2444
- e.loading ? (M(), ze(i, {
2444
+ e.loading ? (O(), ze(i, {
2445
2445
  key: 0,
2446
2446
  loading: e.loading
2447
- }, null, 8, ["loading"])) : (M(), F("div", {
2447
+ }, null, 8, ["loading"])) : (O(), z("div", {
2448
2448
  key: 1,
2449
2449
  class: "format",
2450
2450
  style: q({
@@ -2481,7 +2481,7 @@ const Ni = /* @__PURE__ */ oe(Ri, [["render", $i], ["__scopeId", "data-v-00244f8
2481
2481
  ...sn
2482
2482
  },
2483
2483
  setup(e) {
2484
- const o = ue(e), t = _("");
2484
+ const o = ue(e), t = T("");
2485
2485
  ee(() => e.value, (u) => {
2486
2486
  t.value = u;
2487
2487
  }, {
@@ -2518,7 +2518,7 @@ const Ni = /* @__PURE__ */ oe(Ri, [["render", $i], ["__scopeId", "data-v-00244f8
2518
2518
  });
2519
2519
  function Gi(e, o, t, n, a, l) {
2520
2520
  const i = Z("a-input");
2521
- return M(), F("div", {
2521
+ return O(), z("div", {
2522
2522
  class: "ecan-input",
2523
2523
  style: q(e.style)
2524
2524
  }, [
@@ -2558,7 +2558,7 @@ const qi = /* @__PURE__ */ oe(Ui, [["render", Gi]]), ji = ae(qi), rn = {
2558
2558
  ADatePicker: ca
2559
2559
  },
2560
2560
  setup(e) {
2561
- const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n = _(null);
2561
+ const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n = T(null);
2562
2562
  ee(() => [e.value, e.useCurrentTime, e.operate], ([c, u, g]) => {
2563
2563
  let m = null;
2564
2564
  if (c ? m = Ie(ye(c)) : u && (m = Ie()), g && m) {
@@ -2589,7 +2589,7 @@ const qi = /* @__PURE__ */ oe(Ui, [["render", Gi]]), ji = ae(qi), rn = {
2589
2589
  });
2590
2590
  const i = be(e)("dateChange", () => {
2591
2591
  }), s = () => {
2592
- C(n) && i();
2592
+ w(n) && i();
2593
2593
  };
2594
2594
  return Se(e, {
2595
2595
  dateChange: i
@@ -2604,7 +2604,7 @@ const qi = /* @__PURE__ */ oe(Ui, [["render", Gi]]), ji = ae(qi), rn = {
2604
2604
  });
2605
2605
  function Hi(e, o, t, n, a, l) {
2606
2606
  const i = Z("a-date-picker");
2607
- return M(), F("div", {
2607
+ return O(), z("div", {
2608
2608
  class: "ecan-date-picker",
2609
2609
  style: q(e.style)
2610
2610
  }, [
@@ -2648,39 +2648,39 @@ const Zi = /* @__PURE__ */ oe(Wi, [["render", Hi]]), Ji = ae(Zi), dn = {
2648
2648
  ...un
2649
2649
  },
2650
2650
  setup(e) {
2651
- const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n = _([null, null]);
2652
- ee(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([S, v, w, O, L, $]) => {
2653
- let b = null, k = null;
2654
- if (w && (b = Ie().subtract(O, L), k = Ie()), S && (b = Ie(ye(S))), v && (k = Ie(ye(v))), $) {
2655
- const { type: A, value: D, mode: W } = $;
2656
- switch (A) {
2651
+ const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n = T([null, null]);
2652
+ ee(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([C, v, S, M, x, D]) => {
2653
+ let f = null, A = null;
2654
+ if (S && (f = Ie().subtract(M, x), A = Ie()), C && (f = Ie(ye(C))), v && (A = Ie(ye(v))), D) {
2655
+ const { type: _, value: F, mode: W } = D;
2656
+ switch (_) {
2657
2657
  case "add":
2658
- b = b && b.add(D, W), k = k && k.add(D, W);
2658
+ f = f && f.add(F, W), A = A && A.add(F, W);
2659
2659
  break;
2660
2660
  case "minus":
2661
- b = b && b.subtract(D, W), k = k && k.subtract(D, W);
2661
+ f = f && f.subtract(F, W), A = A && A.subtract(F, W);
2662
2662
  }
2663
2663
  }
2664
- n.value = [b, k];
2664
+ n.value = [f, A];
2665
2665
  }, {
2666
2666
  immediate: !0
2667
2667
  });
2668
- let a = C(n)[0], l = C(n)[1];
2669
- const i = (S) => {
2670
- Array.isArray(S) ? (a = S[0], l = S[1]) : (a = null, l = null);
2671
- }, s = (S) => {
2672
- let v = !1, { limitStartTime: w, limitEndTime: O } = e;
2673
- const L = {
2668
+ let a = w(n)[0], l = w(n)[1];
2669
+ const i = (C) => {
2670
+ Array.isArray(C) ? (a = C[0], l = C[1]) : (a = null, l = null);
2671
+ }, s = (C) => {
2672
+ let v = !1, { limitStartTime: S, limitEndTime: M } = e;
2673
+ const x = {
2674
2674
  startTime: `${a || ""}`,
2675
2675
  endTime: `${l || ""}`
2676
2676
  };
2677
- return w = ye(w, { codeData: L }), O = ye(O, { codeData: L }), w && O ? v = !(Ie(w) < S && S < Ie(O)) : w ? v = Ie(w) > S : O && (v = Ie(O) < S), v;
2677
+ return S = ye(S, { codeData: x }), M = ye(M, { codeData: x }), S && M ? v = !(Ie(S) < C && C < Ie(M)) : S ? v = Ie(S) > C : M && (v = Ie(M) < C), v;
2678
2678
  }, { setGlobalModel: c } = V(we, {
2679
2679
  // @ts-ignore
2680
2680
  // eslint-disable-next-line no-void
2681
- setGlobalModel: (S, v) => {
2681
+ setGlobalModel: (C, v) => {
2682
2682
  }
2683
- }), u = j(() => Array.isArray(C(n)) ? C(n)[0] : null), g = j(() => Array.isArray(C(n)) ? C(n)[1] : null);
2683
+ }), u = j(() => Array.isArray(w(n)) ? w(n)[0] : null), g = j(() => Array.isArray(w(n)) ? w(n)[1] : null);
2684
2684
  c(e.id, {
2685
2685
  type: e.type,
2686
2686
  format: e.format,
@@ -2690,10 +2690,10 @@ const Zi = /* @__PURE__ */ oe(Wi, [["render", Hi]]), Ji = ae(Zi), dn = {
2690
2690
  const m = be(e);
2691
2691
  let p = !1;
2692
2692
  const d = m("dateChange", () => {
2693
- }), r = (S) => {
2694
- const v = C(n), w = v && v[0] && v[1];
2695
- S === !1 && p === !0 && w && (d(), p = !1);
2696
- }, f = () => {
2693
+ }), r = (C) => {
2694
+ const v = w(n), S = v && v[0] && v[1];
2695
+ C === !1 && p === !0 && S && (d(), p = !1);
2696
+ }, h = () => {
2697
2697
  p = !0;
2698
2698
  };
2699
2699
  return Se(e, {
@@ -2707,13 +2707,13 @@ const Zi = /* @__PURE__ */ oe(Wi, [["render", Hi]]), Ji = ae(Zi), dn = {
2707
2707
  disabledDate: s,
2708
2708
  calendarChange: i,
2709
2709
  openChange: r,
2710
- change: f
2710
+ change: h
2711
2711
  };
2712
2712
  }
2713
2713
  });
2714
2714
  function Ki(e, o, t, n, a, l) {
2715
2715
  const i = Z("a-range-picker");
2716
- return M(), F("div", {
2716
+ return O(), z("div", {
2717
2717
  class: "ecan-range-picker",
2718
2718
  style: q(e.style)
2719
2719
  }, [
@@ -2757,14 +2757,14 @@ const Xi = /* @__PURE__ */ oe(Qi, [["render", Ki], ["__scopeId", "data-v-5a46a4a
2757
2757
  },
2758
2758
  setup(e) {
2759
2759
  const o = ue(e), n = be(e)("click", () => {
2760
- const s = C(l);
2760
+ const s = w(l);
2761
2761
  s && e.target === "event" && window.parent.postMessage({
2762
2762
  type: "openPage",
2763
2763
  url: s
2764
2764
  }, "*");
2765
2765
  }), a = j(() => ye(e.text)), l = j(() => ye(e.href) || null), i = j(() => {
2766
2766
  const s = e.target;
2767
- if (!(s === "event" || C(l) == null))
2767
+ if (!(s === "event" || w(l) == null))
2768
2768
  return {
2769
2769
  self: "_self",
2770
2770
  blank: "_blank"
@@ -2781,7 +2781,7 @@ const Xi = /* @__PURE__ */ oe(Qi, [["render", Ki], ["__scopeId", "data-v-5a46a4a
2781
2781
  });
2782
2782
  function ns(e, o, t, n, a, l) {
2783
2783
  const i = Z("a-button");
2784
- return M(), F("div", {
2784
+ return O(), z("div", {
2785
2785
  class: "ecan-button",
2786
2786
  style: q(e.style)
2787
2787
  }, [
@@ -2831,11 +2831,11 @@ const as = /* @__PURE__ */ oe(os, [["render", ns]]), ls = ae(as), hn = {
2831
2831
  ...gn
2832
2832
  },
2833
2833
  setup(e) {
2834
- const o = ue(e), t = _([]), n = _([]), a = (p) => {
2834
+ const o = ue(e), t = T([]), n = T([]), a = (p) => {
2835
2835
  const d = e.value;
2836
2836
  let r = [];
2837
- p.forEach((f) => {
2838
- f.checked && r.push(f.value);
2837
+ p.forEach((h) => {
2838
+ h.checked && r.push(h.value);
2839
2839
  }), typeof d == "string" && d !== "" ? r = r.concat(d.split(",")) : Array.isArray(d) && (r = r.concat(d)), t.value = p, n.value = r;
2840
2840
  };
2841
2841
  ee(() => [e.data, e.value], ([p]) => {
@@ -2845,10 +2845,10 @@ const as = /* @__PURE__ */ oe(os, [["render", ns]]), ls = ae(as), hn = {
2845
2845
  deep: !0
2846
2846
  });
2847
2847
  const l = Oe(e), i = async () => {
2848
- var r, f;
2848
+ var r, h;
2849
2849
  if (e.dataType !== "request")
2850
2850
  return;
2851
- const p = await l(), d = ((f = (r = p == null ? void 0 : p.data) == null ? void 0 : r.data) == null ? void 0 : f.rows) || [];
2851
+ const p = await l(), d = ((h = (r = p == null ? void 0 : p.data) == null ? void 0 : r.data) == null ? void 0 : h.rows) || [];
2852
2852
  a(d);
2853
2853
  }, { getGlobalModel: s, setGlobalModel: c } = V(we, {
2854
2854
  // @ts-ignore
@@ -2887,7 +2887,7 @@ const as = /* @__PURE__ */ oe(os, [["render", ns]]), ls = ae(as), hn = {
2887
2887
  });
2888
2888
  function rs(e, o, t, n, a, l) {
2889
2889
  const i = Z("a-checkbox-group");
2890
- return M(), F("div", {
2890
+ return O(), z("div", {
2891
2891
  class: "ecan-checkbox",
2892
2892
  style: q(e.style)
2893
2893
  }, [
@@ -2913,7 +2913,7 @@ const cs = /* @__PURE__ */ oe(ss, [["render", rs]]), ds = ae(cs), yn = {
2913
2913
  { label: "选项三", value: "3" }
2914
2914
  ],
2915
2915
  value: void 0,
2916
- dataFieldNames: { label: "label", value: "value" },
2916
+ dataFieldNames: { label: "label", value: "value", options: "" },
2917
2917
  maxTagCount: 3,
2918
2918
  autoClearSearchValue: !0,
2919
2919
  placeholder: "请选择",
@@ -2927,79 +2927,100 @@ const cs = /* @__PURE__ */ oe(ss, [["render", rs]]), ds = ae(cs), yn = {
2927
2927
  ...bn
2928
2928
  },
2929
2929
  setup(e) {
2930
- const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n = Oe(e), a = _(e.data || []), l = _();
2930
+ const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n = Oe(e), a = T(e.data || []), l = T();
2931
2931
  ee(() => [e.value, e.mode, e.selectFirstOption], () => {
2932
- const { mode: f, selectFirstOption: S, value: v } = e;
2933
- f === "multiple" || f === "tags" || f === "combobox" ? v ? l.value = v.split(",") : S && (l.value = [C(a)[0]]) : v ? l.value = v : S && (l.value = C(a)[0]);
2932
+ const { mode: C, selectFirstOption: v, value: S } = e;
2933
+ C === "multiple" || C === "tags" || C === "combobox" ? S ? l.value = S.split(",") : v && (l.value = [w(a)[0]]) : S ? l.value = S : v && (l.value = w(a)[0]);
2934
2934
  }, {
2935
2935
  immediate: !0
2936
2936
  });
2937
- const i = e.dataFieldNames, s = (f, S) => {
2938
- const v = i.label, w = i.value;
2939
- let O;
2940
- const L = S[v], $ = S[w];
2941
- return L != null ? O = L : $ != null && (O = $), (O == null ? void 0 : O.toLowerCase().indexOf(f == null ? void 0 : f.toLowerCase())) >= 0;
2942
- }, c = _(!1), u = async () => {
2943
- var f, S;
2937
+ const i = e.dataFieldNames, s = (C, v) => {
2938
+ const S = i.label, M = i.value;
2939
+ let x;
2940
+ const D = v[S], f = v[M];
2941
+ return D != null ? x = D : f != null && (x = f), (x == null ? void 0 : x.toLowerCase().indexOf(C == null ? void 0 : C.toLowerCase())) >= 0;
2942
+ }, c = (C) => {
2943
+ const { label: v, value: S, options: M } = e.dataFieldNames;
2944
+ if (M && Array.isArray(C))
2945
+ if (C.some((x) => M in x)) {
2946
+ const x = {}, D = [];
2947
+ C.forEach((f) => {
2948
+ x[f[M]] || (x[f[M]] = []), x[f[M]].push({
2949
+ [v]: f[v],
2950
+ [S]: f[S]
2951
+ });
2952
+ });
2953
+ for (const f in x)
2954
+ D.push({
2955
+ [v]: f,
2956
+ [M]: x[f]
2957
+ });
2958
+ return D;
2959
+ } else
2960
+ return C;
2961
+ else if (!M)
2962
+ return C;
2963
+ }, u = T(!1), g = async () => {
2964
+ var C, v;
2944
2965
  if (e.dataType === "request") {
2945
- c.value = !0;
2966
+ u.value = !0;
2946
2967
  try {
2947
- const v = await n();
2948
- a.value = ((S = (f = v == null ? void 0 : v.data) == null ? void 0 : f.data) == null ? void 0 : S.rows) || [];
2949
- const w = C(a)[0];
2950
- e.value === "" && w != null && (l.value = w[i.value]);
2951
- } catch (v) {
2952
- console.error(v);
2968
+ const S = await n();
2969
+ a.value = c(((v = (C = S == null ? void 0 : S.data) == null ? void 0 : C.data) == null ? void 0 : v.rows) || []);
2970
+ const M = w(a)[0];
2971
+ e.value === "" && M != null && (l.value = M[i.value]);
2972
+ } catch (S) {
2973
+ console.error(S);
2953
2974
  } finally {
2954
- c.value = !1;
2975
+ u.value = !1;
2955
2976
  }
2956
2977
  }
2957
- }, { getGlobalModel: g, setGlobalModel: m } = V(we, {
2978
+ }, { getGlobalModel: m, setGlobalModel: p } = V(we, {
2958
2979
  // @ts-ignore
2959
2980
  // eslint-disable-next-line no-void
2960
- getGlobalModel: (f) => {
2981
+ getGlobalModel: (C) => {
2961
2982
  },
2962
2983
  // @ts-ignore
2963
2984
  // eslint-disable-next-line no-void
2964
- setGlobalModel: (f, S) => {
2985
+ setGlobalModel: (C, v) => {
2965
2986
  }
2966
2987
  });
2967
- m(e.id, {
2988
+ p(e.id, {
2968
2989
  type: e.type,
2969
2990
  value: l
2970
2991
  });
2971
- const d = be(e)("selectChange", () => {
2972
- const f = e.id, S = g(f);
2973
- m(f, { ...S, RECORD: l });
2992
+ const r = be(e)("selectChange", () => {
2993
+ const C = e.id, v = m(C);
2994
+ p(C, { ...v, RECORD: l });
2974
2995
  });
2975
2996
  Se(e, {
2976
- selectChange: d,
2977
- refreshData: u
2997
+ selectChange: r,
2998
+ refreshData: g
2978
2999
  });
2979
- const { setRequest: r } = V(_e, {
3000
+ const { setRequest: h } = V(_e, {
2980
3001
  // @ts-ignore
2981
3002
  // eslint-disable-next-line no-void
2982
- setRequest: ({ id: f, sortNum: S, requestFn: v }) => {
3003
+ setRequest: ({ id: C, sortNum: v, requestFn: S }) => {
2983
3004
  }
2984
3005
  });
2985
- return r({
3006
+ return h({
2986
3007
  id: e.id,
2987
- requestFn: u,
3008
+ requestFn: g,
2988
3009
  sortNum: e.requestSort
2989
3010
  }), {
2990
3011
  style: o,
2991
3012
  getPopupContainer: t,
2992
3013
  myValue: l,
2993
- selectChange: d,
3014
+ selectChange: r,
2994
3015
  options: a,
2995
3016
  filterOption: s,
2996
- loading: c
3017
+ loading: u
2997
3018
  };
2998
3019
  }
2999
3020
  });
3000
3021
  function ms(e, o, t, n, a, l) {
3001
3022
  const i = Z("a-select");
3002
- return M(), F("div", {
3023
+ return O(), z("div", {
3003
3024
  class: "ecan-select",
3004
3025
  style: q(e.style)
3005
3026
  }, [
@@ -3022,7 +3043,7 @@ function ms(e, o, t, n, a, l) {
3022
3043
  }, null, 8, ["value", "placeholder", "options", "mode", "getPopupContainer", "fieldNames", "maxTagCount", "filterOption", "loading", "autoClearSearchValue", "onChange"])
3023
3044
  ], 4);
3024
3045
  }
3025
- const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-c0b8fe0f"]]), gs = ae(hs), vn = {
3046
+ const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-88398812"]]), gs = ae(hs), vn = {
3026
3047
  ...me,
3027
3048
  name: "树形下拉框选择器",
3028
3049
  keyName: "树形下拉框选择器",
@@ -3064,29 +3085,29 @@ const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-c0b8fe0
3064
3085
  ...pn
3065
3086
  },
3066
3087
  setup(e) {
3067
- const o = ue(e), t = _(e.data), n = (d, r) => {
3068
- const f = e.dataFieldNames, S = f.label, v = f.value;
3069
- let w;
3070
- const O = r[S], L = r[v];
3071
- return O != null ? w = O : L != null && (w = L), (w == null ? void 0 : w.toLowerCase().indexOf(d == null ? void 0 : d.toLowerCase())) >= 0;
3072
- }, a = _();
3088
+ const o = ue(e), t = T(e.data), n = (d, r) => {
3089
+ const h = e.dataFieldNames, C = h.label, v = h.value;
3090
+ let S;
3091
+ const M = r[C], x = r[v];
3092
+ return M != null ? S = M : x != null && (S = x), (S == null ? void 0 : S.toLowerCase().indexOf(d == null ? void 0 : d.toLowerCase())) >= 0;
3093
+ }, a = T();
3073
3094
  ee(() => [e.multiple, e.value, e.treeCheckable, e.selectFirstOption], () => {
3074
- const { multiple: d, value: r, selectFirstOption: f } = e;
3075
- d ? r ? a.value = r.split(",") : f && (a.value = [C(t)[0]]) : r ? a.value = r : f && (a.value = C(t)[0]);
3095
+ const { multiple: d, value: r, selectFirstOption: h } = e;
3096
+ d ? r ? a.value = r.split(",") : h && (a.value = [w(t)[0]]) : r ? a.value = r : h && (a.value = w(t)[0]);
3076
3097
  }, {
3077
3098
  immediate: !0
3078
3099
  });
3079
- const l = _(!1), i = Oe(e), s = async () => {
3100
+ const l = T(!1), i = Oe(e), s = async () => {
3080
3101
  var d, r;
3081
3102
  if (e.dataType === "request") {
3082
3103
  l.value = !0;
3083
3104
  try {
3084
- const f = await i();
3085
- t.value = ((r = (d = f == null ? void 0 : f.data) == null ? void 0 : d.data) == null ? void 0 : r.rows) || [];
3086
- const S = C(t)[0];
3087
- e.value === "" && S != null && (a.value = S[e.dataFieldNames.value]);
3088
- } catch (f) {
3089
- console.error(f);
3105
+ const h = await i();
3106
+ t.value = ((r = (d = h == null ? void 0 : h.data) == null ? void 0 : d.data) == null ? void 0 : r.rows) || [];
3107
+ const C = w(t)[0];
3108
+ e.value === "" && C != null && (a.value = C[e.dataFieldNames.value]);
3109
+ } catch (h) {
3110
+ console.error(h);
3090
3111
  } finally {
3091
3112
  l.value = !1;
3092
3113
  }
@@ -3116,7 +3137,7 @@ const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-c0b8fe0
3116
3137
  const { setRequest: p } = V(_e, {
3117
3138
  // @ts-ignore
3118
3139
  // eslint-disable-next-line no-void
3119
- setRequest: ({ id: d, sortNum: r, requestFn: f }) => {
3140
+ setRequest: ({ id: d, sortNum: r, requestFn: h }) => {
3120
3141
  }
3121
3142
  });
3122
3143
  return p({
@@ -3135,7 +3156,7 @@ const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-c0b8fe0
3135
3156
  };
3136
3157
  function vs(e, o, t, n, a, l) {
3137
3158
  const i = Z("a-tree-select");
3138
- return M(), F("div", {
3159
+ return O(), z("div", {
3139
3160
  class: "ecan-tree-select",
3140
3161
  style: q(n.style)
3141
3162
  }, [
@@ -3257,99 +3278,99 @@ const ps = /* @__PURE__ */ oe(bs, [["render", vs], ["__scopeId", "data-v-3723642
3257
3278
  },
3258
3279
  setup(e, { emit: o }) {
3259
3280
  const t = () => document.getElementById("ProviderConfig") || document.body, n = j(() => {
3260
- const y = e.position;
3281
+ const b = e.position;
3261
3282
  return {
3262
3283
  verticalAlign: {
3263
3284
  default: "",
3264
3285
  top: "top",
3265
3286
  center: "middle",
3266
3287
  bottom: "bottom"
3267
- }[y]
3288
+ }[b]
3268
3289
  };
3269
- }), a = e.width, l = e.height, i = e.originalWidth, s = e.originalHeight, c = _("80%"), u = _(0), g = _(), m = _(0), p = _({}), d = ue(e), r = _({}), f = _(!1), S = _();
3290
+ }), a = e.width, l = e.height, i = e.originalWidth, s = e.originalHeight, c = T("80%"), u = T(0), g = T(), m = T(0), p = T({}), d = ue(e), r = T({}), h = T(!1), C = T();
3270
3291
  let v;
3271
- const w = () => {
3292
+ const S = () => {
3272
3293
  g.value = parseFloat(a) / parseFloat(i);
3273
- const y = parseFloat(l) / parseFloat(s), I = document.body.offsetWidth, z = document.body.offsetHeight;
3274
- u.value = I * C(g), m.value = z * y, c.value = `${C(g) * 100}%`, p.value = {
3275
- width: `${C(u)}px`,
3276
- height: `${C(m)}px`
3294
+ const b = parseFloat(l) / parseFloat(s), I = document.body.offsetWidth, R = document.body.offsetHeight;
3295
+ u.value = I * w(g), m.value = R * b, c.value = `${w(g) * 100}%`, p.value = {
3296
+ width: `${w(u)}px`,
3297
+ height: `${w(m)}px`
3277
3298
  }, r.value = {
3278
- ...C(d),
3299
+ ...w(d),
3279
3300
  backgroundImage: Ve(e.backgroundImage, !0),
3280
- transform: `scale(${C(u) / parseFloat(a)},${C(m) / parseFloat(l)})`
3301
+ transform: `scale(${w(u) / parseFloat(a)},${w(m) / parseFloat(l)})`
3281
3302
  };
3282
- }, O = Vt(() => {
3283
- w();
3284
- }, 100), L = () => {
3285
- const y = window.MutationObserver;
3286
- v = new y(O), v.observe(document.body, {
3303
+ }, M = Vt(() => {
3304
+ S();
3305
+ }, 100), x = () => {
3306
+ const b = window.MutationObserver;
3307
+ v = new b(M), v.observe(document.body, {
3287
3308
  attributes: !0,
3288
3309
  attributeFilter: ["style"],
3289
3310
  attributeOldValue: !0
3290
3311
  });
3291
- }, $ = () => {
3312
+ }, D = () => {
3292
3313
  v && (v.disconnect(), v.takeRecords(), v = null);
3293
- }, b = _(!1), { touchRequest: k } = V(_e, {
3314
+ }, f = T(!1), { touchRequest: A } = V(_e, {
3294
3315
  // @ts-ignore
3295
3316
  // eslint-disable-next-line no-void
3296
3317
  touchRequest: () => {
3297
3318
  }
3298
- }), A = () => {
3299
- b.value = !0;
3300
- }, D = () => {
3301
- o("close"), b.value = !1;
3319
+ }), _ = () => {
3320
+ f.value = !0;
3321
+ }, F = () => {
3322
+ o("close"), f.value = !1;
3302
3323
  }, W = () => {
3303
- D();
3324
+ F();
3304
3325
  }, le = () => {
3305
- D();
3306
- }, { setModalModel: B, pushUseModalIds: T, popUseModalIds: H } = V(Wo, {
3307
- pushUseModalIds: (y) => {
3326
+ F();
3327
+ }, { setModalModel: B, pushUseModalIds: L, popUseModalIds: H } = V(Wo, {
3328
+ pushUseModalIds: (b) => {
3308
3329
  },
3309
3330
  popUseModalIds: () => {
3310
3331
  },
3311
- setModalModel: (y, I) => {
3332
+ setModalModel: (b, I) => {
3312
3333
  }
3313
3334
  }), N = () => {
3314
- const y = e.id;
3335
+ const b = e.id;
3315
3336
  let I = [];
3316
- const z = e.componentList;
3317
- console.log("componentList", z), Array.isArray(z) && (I = z.map((Y) => Y.id), B(y, [...new Set(I)]));
3337
+ const R = e.componentList;
3338
+ console.log("componentList", R), Array.isArray(R) && (I = R.map((Y) => Y.id), B(b, [...new Set(I)]));
3318
3339
  };
3319
- ee(() => b.value, async (y) => {
3320
- y ? (f.value = !1, T(e.id), N(), await At(() => {
3321
- w(), window.addEventListener("resize", O), L(), f.value = !0;
3322
- }), k()) : (H(), window.removeEventListener("resize", O), $());
3340
+ ee(() => f.value, async (b) => {
3341
+ b ? (h.value = !1, L(e.id), N(), await At(() => {
3342
+ S(), window.addEventListener("resize", M), x(), h.value = !0;
3343
+ }), A()) : (H(), window.removeEventListener("resize", M), D());
3323
3344
  });
3324
- const P = j(() => C(g) >= 1), x = j(() => e.fullModal), h = j(() => {
3325
- let y = "ecan-modal";
3326
- return C(P) && (y += " ecan-full-width-modal"), C(x) && (y += " ecan-full-modal"), y;
3345
+ const P = j(() => w(g) >= 1), k = j(() => e.fullModal), y = j(() => {
3346
+ let b = "ecan-modal";
3347
+ return w(P) && (b += " ecan-full-width-modal"), w(k) && (b += " ecan-full-modal"), b;
3327
3348
  });
3328
3349
  return Se(e, {
3329
- showModal: A
3350
+ showModal: _
3330
3351
  }), {
3331
- modalRef: S,
3352
+ modalRef: C,
3332
3353
  containStyle: p,
3333
3354
  contentStyle: r,
3334
3355
  getContainer: t,
3335
3356
  modalStyle: n,
3336
3357
  modalWith: c,
3337
- isFullModal: x,
3358
+ isFullModal: k,
3338
3359
  style: d,
3339
- visible: b,
3340
- showModal: A,
3360
+ visible: f,
3361
+ showModal: _,
3341
3362
  onOk: W,
3342
3363
  onCancel: le,
3343
3364
  isFullWidth: P,
3344
- wrapClassName: h,
3345
- ready: f
3365
+ wrapClassName: y,
3366
+ ready: h
3346
3367
  };
3347
3368
  }
3348
3369
  });
3349
3370
  const ks = { key: 0 };
3350
3371
  function As(e, o, t, n, a, l) {
3351
3372
  const i = Z("close-outlined"), s = Z("a-modal");
3352
- return M(), ze(s, {
3373
+ return O(), ze(s, {
3353
3374
  getContainer: e.getContainer,
3354
3375
  wrapClassName: e.wrapClassName,
3355
3376
  centered: "",
@@ -3369,7 +3390,7 @@ function As(e, o, t, n, a, l) {
3369
3390
  ref: "containRef",
3370
3391
  style: q(e.containStyle)
3371
3392
  }, [
3372
- e.ready ? (M(), F("div", {
3393
+ e.ready ? (O(), z("div", {
3373
3394
  key: 0,
3374
3395
  class: "content",
3375
3396
  style: q(e.contentStyle)
@@ -3381,7 +3402,7 @@ function As(e, o, t, n, a, l) {
3381
3402
  padding: "20px 30px"
3382
3403
  })
3383
3404
  }, [
3384
- e.title ? (M(), F("div", {
3405
+ e.title ? (O(), z("div", {
3385
3406
  key: 0,
3386
3407
  class: "ant-modal-title",
3387
3408
  style: q({
@@ -3394,8 +3415,8 @@ function As(e, o, t, n, a, l) {
3394
3415
  onClick: e.onCancel
3395
3416
  }, null, 8, ["onClick"])
3396
3417
  ], 4),
3397
- e.componentList.length ? (M(), F("div", ks, [
3398
- (M(!0), F(De, null, Fe(e.componentList, (c, u) => (M(), ze(Yn(c.type), Ao({
3418
+ e.componentList.length ? (O(), z("div", ks, [
3419
+ (O(!0), z(De, null, Fe(e.componentList, (c, u) => (O(), ze(Yn(c.type), Ao({
3399
3420
  key: c.id + u
3400
3421
  }, c), null, 16))), 128))
3401
3422
  ])) : rt(e.$slots, "default", { key: 1 }, void 0, !0)
@@ -3425,12 +3446,12 @@ const Ts = te({
3425
3446
  EcanModal: ot
3426
3447
  },
3427
3448
  setup(e, { expose: o }) {
3428
- const t = _(!1), n = ue(e), a = _([]), l = _(), i = j(() => {
3429
- let { data: k = [] } = C(a)[0] || {};
3449
+ const t = T(!1), n = ue(e), a = T([]), l = T(), i = j(() => {
3450
+ let { data: A = [] } = w(a)[0] || {};
3430
3451
  if (Array.isArray(e.colors)) {
3431
- const A = e.isUseLabelColors, D = e.colors;
3432
- k = k.map((W, le) => ({
3433
- label: A ? { color: D[le] } : {},
3452
+ const _ = e.isUseLabelColors, F = e.colors;
3453
+ A = A.map((W, le) => ({
3454
+ label: _ ? { color: F[le] } : {},
3434
3455
  ...W
3435
3456
  }));
3436
3457
  }
@@ -3455,8 +3476,8 @@ const Ts = te({
3455
3476
  title: "放大",
3456
3477
  icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
3457
3478
  onclick() {
3458
- var A;
3459
- t.value = !0, (A = l.value) == null || A.showModal();
3479
+ var _;
3480
+ t.value = !0, (_ = l.value) == null || _.showModal();
3460
3481
  }
3461
3482
  },
3462
3483
  myInfo: {
@@ -3488,20 +3509,20 @@ const Ts = te({
3488
3509
  tooltip: {
3489
3510
  show: e.tooltipShow,
3490
3511
  trigger: e.tooltipTrigger,
3491
- formatter: (A) => {
3492
- const { marker: D, seriesName: W, name: le, value: B, percent: T, data: H } = A || {};
3512
+ formatter: (_) => {
3513
+ const { marker: F, seriesName: W, name: le, value: B, percent: L, data: H } = _ || {};
3493
3514
  return ye(
3494
3515
  e.tooltipFormatter,
3495
3516
  {
3496
3517
  textData: {
3497
- marker: D,
3518
+ marker: F,
3498
3519
  name: le,
3499
3520
  value: B,
3500
- percent: T,
3521
+ percent: L,
3501
3522
  a: W,
3502
3523
  b: le,
3503
3524
  c: B,
3504
- d: T,
3525
+ d: L,
3505
3526
  ...H
3506
3527
  }
3507
3528
  },
@@ -3529,7 +3550,7 @@ const Ts = te({
3529
3550
  color: e.colors,
3530
3551
  series: [
3531
3552
  {
3532
- data: k,
3553
+ data: A,
3533
3554
  type: "pie",
3534
3555
  radius: [e.innerRadius, e.outerRadius],
3535
3556
  center: [e.centerLeft, e.centerTop],
@@ -3569,91 +3590,91 @@ const Ts = te({
3569
3590
  }, { getGlobalModel: c, setGlobalModel: u } = V(we, {
3570
3591
  // @ts-ignore
3571
3592
  // eslint-disable-next-line no-void
3572
- getGlobalModel: (k) => {
3593
+ getGlobalModel: (A) => {
3573
3594
  },
3574
3595
  // @ts-ignore
3575
3596
  // eslint-disable-next-line no-void
3576
- setGlobalModel: (k, A) => {
3597
+ setGlobalModel: (A, _) => {
3577
3598
  }
3578
3599
  }), { pageMode: g } = V(Ae, {
3579
3600
  pageMode: "normal"
3580
- }), m = (k = [], A) => {
3581
- const { dataset: D } = st(k, A);
3582
- a.value = D;
3583
- }, p = (k = [], A) => {
3584
- const D = st(k, A);
3585
- a.value = D.dataset;
3601
+ }), m = (A = [], _) => {
3602
+ const { dataset: F } = st(A, _);
3603
+ a.value = F;
3604
+ }, p = (A = [], _) => {
3605
+ const F = st(A, _);
3606
+ a.value = F.dataset;
3586
3607
  };
3587
- ee(() => e.data, (k) => {
3588
- (e.dataType === "static" || C(g) === "design") && m(k);
3608
+ ee(() => e.data, (A) => {
3609
+ (e.dataType === "static" || w(g) === "design") && m(A);
3589
3610
  }, {
3590
3611
  immediate: !0,
3591
3612
  deep: !0
3592
3613
  });
3593
- const d = _(!1), r = Oe(e), f = async () => {
3594
- var k, A;
3614
+ const d = T(!1), r = Oe(e), h = async () => {
3615
+ var A, _;
3595
3616
  if (e.dataType === "request")
3596
3617
  try {
3597
3618
  d.value = !0;
3598
- const D = await r();
3599
- m((A = (k = D == null ? void 0 : D.data) == null ? void 0 : k.data) == null ? void 0 : A.rows, e.valueTypeDataFieldNames);
3600
- } catch (D) {
3601
- console.error(D);
3619
+ const F = await r();
3620
+ m((_ = (A = F == null ? void 0 : F.data) == null ? void 0 : A.data) == null ? void 0 : _.rows, e.valueTypeDataFieldNames);
3621
+ } catch (F) {
3622
+ console.error(F);
3602
3623
  } finally {
3603
3624
  d.value = !1;
3604
3625
  }
3605
- }, v = be(e)("click", (k) => {
3606
- const A = c(e.id);
3607
- u(e.id, { ...A, RECORD: k == null ? void 0 : k.data });
3608
- }), w = ht(e), O = async () => {
3609
- var k;
3626
+ }, v = be(e)("click", (A) => {
3627
+ const _ = c(e.id);
3628
+ u(e.id, { ..._, RECORD: A == null ? void 0 : A.data });
3629
+ }), S = ht(e), M = async () => {
3630
+ var A;
3610
3631
  try {
3611
3632
  d.value = !0;
3612
- const A = await w(), { data: D } = A.data || {};
3613
- if (D) {
3614
- const { columns: W = [], rows: le = [] } = ((k = A == null ? void 0 : A.data) == null ? void 0 : k.data) ?? {};
3633
+ const _ = await S(), { data: F } = _.data || {};
3634
+ if (F) {
3635
+ const { columns: W = [], rows: le = [] } = ((A = _ == null ? void 0 : _.data) == null ? void 0 : A.data) ?? {};
3615
3636
  let B = [];
3616
3637
  if (W.length > 0) {
3617
- const T = W[0], H = W[1];
3638
+ const L = W[0], H = W[1];
3618
3639
  B = le.map((N) => ({
3619
- name: N[T],
3640
+ name: N[L],
3620
3641
  value: N[H]
3621
3642
  }));
3622
3643
  }
3623
3644
  p(B);
3624
3645
  }
3625
- } catch (A) {
3626
- console.error(A);
3646
+ } catch (_) {
3647
+ console.error(_);
3627
3648
  } finally {
3628
3649
  d.value = !1;
3629
3650
  }
3630
- }, L = () => {
3651
+ }, x = () => {
3631
3652
  switch (e.dataType) {
3632
3653
  case "indicator":
3633
- O();
3654
+ M();
3634
3655
  break;
3635
3656
  case "request":
3636
- f();
3657
+ h();
3637
3658
  break;
3638
3659
  }
3639
3660
  };
3640
3661
  Se(e, {
3641
3662
  resetRecord: () => {
3642
- const k = e.id, A = c(k);
3643
- u(k, { ...A, RECORD: "" });
3663
+ const A = e.id, _ = c(A);
3664
+ u(A, { ..._, RECORD: "" });
3644
3665
  },
3645
- refreshData: L,
3666
+ refreshData: x,
3646
3667
  click: v
3647
3668
  }), o({
3648
- refreshData: L
3669
+ refreshData: x
3649
3670
  });
3650
- const { setRequest: b } = V(_e, {
3651
- setRequest: (k) => {
3671
+ const { setRequest: f } = V(_e, {
3672
+ setRequest: (A) => {
3652
3673
  }
3653
3674
  });
3654
- return typeof b == "function" && b({
3675
+ return typeof f == "function" && f({
3655
3676
  id: e.id,
3656
- requestFn: L,
3677
+ requestFn: x,
3657
3678
  sortNum: e.requestSort
3658
3679
  }), {
3659
3680
  option: i,
@@ -3667,7 +3688,7 @@ const Ts = te({
3667
3688
  });
3668
3689
  function Ls(e, o, t, n, a, l) {
3669
3690
  const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal");
3670
- return M(), F("div", {
3691
+ return O(), z("div", {
3671
3692
  style: q(e.style)
3672
3693
  }, [
3673
3694
  U(s, { spinning: e.loading }, {
@@ -3794,10 +3815,10 @@ const Es = te({
3794
3815
  EcanModal: ot
3795
3816
  },
3796
3817
  setup(e, { expose: o }) {
3797
- const t = _(), n = _(!1), a = ue(e), l = _([]), i = _([]), s = _(), c = j(() => n.value ? Ye : 12), u = _({});
3818
+ const t = T(), n = T(!1), a = ue(e), l = T([]), i = T([]), s = T(), c = j(() => n.value ? Ye : 12), u = T({});
3798
3819
  let g;
3799
3820
  const m = j(() => {
3800
- const T = e.xAxisLabelFormatter, H = e.yAxisLabelFormatter;
3821
+ const L = e.xAxisLabelFormatter, H = e.yAxisLabelFormatter;
3801
3822
  return {
3802
3823
  toolbox: {
3803
3824
  show: e.toolboxShow,
@@ -3856,17 +3877,17 @@ const Es = te({
3856
3877
  },
3857
3878
  show: e.tooltipShow,
3858
3879
  formatter: (N) => {
3859
- var y;
3880
+ var b;
3860
3881
  const P = N.length;
3861
- let x = "", h = e.tooltipFormatter;
3862
- g = (y = N[0]) == null ? void 0 : y.data, h === "" && (h = "{marker} {a} {c}");
3882
+ let k = "", y = e.tooltipFormatter;
3883
+ g = (b = N[0]) == null ? void 0 : b.data, y === "" && (y = "{marker} {a} {c}");
3863
3884
  for (let I = 0; I < P; I++) {
3864
- const { marker: z, seriesName: Y, name: ce, value: ne, data: ve } = N[I] || {};
3865
- I === 0 && (x += `${ce}<br/>`), x += ye(
3866
- h,
3885
+ const { marker: R, seriesName: Y, name: ce, value: ne, data: ve } = N[I] || {};
3886
+ I === 0 && (k += `${ce}<br/>`), k += ye(
3887
+ y,
3867
3888
  {
3868
3889
  textData: {
3869
- marker: z,
3890
+ marker: R,
3870
3891
  name: ce,
3871
3892
  value: ne,
3872
3893
  a: Y,
@@ -3879,14 +3900,14 @@ const Es = te({
3879
3900
  useNewline: !0,
3880
3901
  useSpace: !0
3881
3902
  }
3882
- ), x += "<br/>";
3903
+ ), k += "<br/>";
3883
3904
  }
3884
- return x;
3905
+ return k;
3885
3906
  }
3886
3907
  },
3887
3908
  xAxis: {
3888
3909
  type: "category",
3889
- data: C(i).map((N) => {
3910
+ data: w(i).map((N) => {
3890
3911
  let P = {};
3891
3912
  return N && typeof N == "object" ? P = {
3892
3913
  ...N,
@@ -3914,7 +3935,7 @@ const Es = te({
3914
3935
  width: e.xAxisLabelWidth,
3915
3936
  overflow: e.xAxisLabelOverflow,
3916
3937
  formatter(N) {
3917
- return We(T, N);
3938
+ return We(L, N);
3918
3939
  }
3919
3940
  },
3920
3941
  axisLine: {
@@ -3958,36 +3979,36 @@ const Es = te({
3958
3979
  fontSize: c.value
3959
3980
  }
3960
3981
  },
3961
- series: C(l)
3982
+ series: w(l)
3962
3983
  };
3963
3984
  }), p = () => {
3964
3985
  n.value = !1;
3965
3986
  }, { getGlobalModel: d, setGlobalModel: r } = V(we, {
3966
3987
  // @ts-ignore
3967
3988
  // eslint-disable-next-line no-void
3968
- getGlobalModel: (T) => {
3989
+ getGlobalModel: (L) => {
3969
3990
  },
3970
3991
  // @ts-ignore
3971
3992
  // eslint-disable-next-line no-void
3972
- setGlobalModel: (T, H) => {
3993
+ setGlobalModel: (L, H) => {
3973
3994
  }
3974
- }), { pageMode: f } = V(Ae, {
3995
+ }), { pageMode: h } = V(Ae, {
3975
3996
  pageMode: "normal"
3976
- }), S = (T = [], H = !1) => {
3997
+ }), C = (L = [], H = !1) => {
3977
3998
  let N;
3978
3999
  if (e.dataFieldConfigType === "key") {
3979
- const y = H ? e.keyTypeDataFieldNames : null;
3980
- N = Qe(T, y);
4000
+ const b = H ? e.keyTypeDataFieldNames : null;
4001
+ N = Qe(L, b);
3981
4002
  } else if (e.dataFieldConfigType === "value") {
3982
- const y = H ? e.valueTypeDataFieldNames : null;
3983
- N = st(T, y);
4003
+ const b = H ? e.valueTypeDataFieldNames : null;
4004
+ N = st(L, b);
3984
4005
  }
3985
4006
  i.value = N.dimensions;
3986
- const P = N.dataset, x = [], h = P.length;
3987
- for (let y = 0; y < h; y++)
3988
- x.push({
4007
+ const P = N.dataset, k = [], y = P.length;
4008
+ for (let b = 0; b < y; b++)
4009
+ k.push({
3989
4010
  type: "line",
3990
- ...P[y],
4011
+ ...P[b],
3991
4012
  symbolSize: e.symbolSize,
3992
4013
  smooth: e.smooth,
3993
4014
  areaStyle: {
@@ -4010,86 +4031,86 @@ const Es = te({
4010
4031
  width: e.lineStyleWidth
4011
4032
  }
4012
4033
  });
4013
- l.value = x;
4014
- }, v = (T = [], H, N = !1) => {
4015
- const x = Qe(T, N ? H : null);
4016
- i.value = x.dimensions;
4017
- const h = x.dataset, y = [], I = h.length;
4018
- for (let z = 0; z < I; z++)
4019
- y.push({
4034
+ l.value = k;
4035
+ }, v = (L = [], H, N = !1) => {
4036
+ const k = Qe(L, N ? H : null);
4037
+ i.value = k.dimensions;
4038
+ const y = k.dataset, b = [], I = y.length;
4039
+ for (let R = 0; R < I; R++)
4040
+ b.push({
4020
4041
  type: "line",
4021
- ...h[z],
4042
+ ...y[R],
4022
4043
  symbolSize: e.symbolSize,
4023
4044
  smooth: e.smooth,
4024
4045
  lineStyle: {
4025
4046
  width: e.lineStyleWidth
4026
4047
  }
4027
4048
  });
4028
- l.value = y;
4049
+ l.value = b;
4029
4050
  };
4030
- ee(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([T]) => {
4031
- (e.dataType === "static" || C(f) === "design") && S(T);
4051
+ ee(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([L]) => {
4052
+ (e.dataType === "static" || w(h) === "design") && C(L);
4032
4053
  }, {
4033
4054
  immediate: !0,
4034
4055
  deep: !0
4035
4056
  });
4036
- const w = _(!1), O = Oe(e), L = async () => {
4037
- var T, H;
4057
+ const S = T(!1), M = Oe(e), x = async () => {
4058
+ var L, H;
4038
4059
  if (e.dataType === "request")
4039
4060
  try {
4040
- w.value = !0;
4041
- const N = await O();
4042
- S((H = (T = N == null ? void 0 : N.data) == null ? void 0 : T.data) == null ? void 0 : H.rows, !0);
4061
+ S.value = !0;
4062
+ const N = await M();
4063
+ C((H = (L = N == null ? void 0 : N.data) == null ? void 0 : L.data) == null ? void 0 : H.rows, !0);
4043
4064
  } catch (N) {
4044
4065
  console.error(N);
4045
4066
  } finally {
4046
- w.value = !1;
4067
+ S.value = !1;
4047
4068
  }
4048
- }, b = be(e)("click", (T) => {
4069
+ }, f = be(e)("click", (L) => {
4049
4070
  const H = d(e.id);
4050
- r(e.id, { ...H, RECORD: e.tooltipShow ? g : T.data });
4051
- }), k = (T) => {
4052
- t.value.chart.containPixel("grid", [T.offsetX, T.offsetY]) && b();
4071
+ r(e.id, { ...H, RECORD: e.tooltipShow ? g : L.data });
4072
+ }), A = (L) => {
4073
+ t.value.chart.containPixel("grid", [L.offsetX, L.offsetY]) && f();
4053
4074
  };
4054
- e.tooltipShow ? u.value["zr:click"] = k : u.value.click = b;
4055
- const A = ht(e), D = async () => {
4056
- var T;
4075
+ e.tooltipShow ? u.value["zr:click"] = A : u.value.click = f;
4076
+ const _ = ht(e), F = async () => {
4077
+ var L;
4057
4078
  try {
4058
- w.value = !0;
4059
- const H = await A(), { columns: N = [], rows: P = [] } = ((T = H == null ? void 0 : H.data) == null ? void 0 : T.data) ?? {};
4060
- let x;
4061
- N.length > 0 && (x = {
4079
+ S.value = !0;
4080
+ const H = await _(), { columns: N = [], rows: P = [] } = ((L = H == null ? void 0 : H.data) == null ? void 0 : L.data) ?? {};
4081
+ let k;
4082
+ N.length > 0 && (k = {
4062
4083
  name: N[0],
4063
- types: N.slice(1).map((h) => ({
4064
- label: h,
4065
- value: h
4084
+ types: N.slice(1).map((y) => ({
4085
+ label: y,
4086
+ value: y
4066
4087
  }))
4067
- }), v(P, x, !0);
4088
+ }), v(P, k, !0);
4068
4089
  } catch (H) {
4069
4090
  console.error(H);
4070
4091
  } finally {
4071
- w.value = !1;
4092
+ S.value = !1;
4072
4093
  }
4073
4094
  }, W = () => {
4074
4095
  switch (e.dataType) {
4075
4096
  case "indicator":
4076
- D();
4097
+ F();
4077
4098
  break;
4078
4099
  case "request":
4079
- L();
4100
+ x();
4080
4101
  break;
4081
4102
  }
4082
4103
  };
4083
4104
  Se(e, {
4084
4105
  refreshData: W,
4085
4106
  resetRecord: () => {
4086
- const T = e.id, H = d(T);
4087
- r(T, { ...H, RECORD: "" });
4107
+ const L = e.id, H = d(L);
4108
+ r(L, { ...H, RECORD: "" });
4088
4109
  },
4089
- click: b
4110
+ click: f
4090
4111
  });
4091
4112
  const { setRequest: B } = V(_e, {
4092
- setRequest: (T) => {
4113
+ setRequest: (L) => {
4093
4114
  }
4094
4115
  });
4095
4116
  return typeof B == "function" && B({
@@ -4101,8 +4122,8 @@ const Es = te({
4101
4122
  }), {
4102
4123
  option: m,
4103
4124
  style: a,
4104
- click: b,
4105
- loading: w,
4125
+ click: f,
4126
+ loading: S,
4106
4127
  onClose: p,
4107
4128
  ecanModal: s,
4108
4129
  eventObj: u,
@@ -4112,7 +4133,7 @@ const Es = te({
4112
4133
  });
4113
4134
  function Ds(e, o, t, n, a, l) {
4114
4135
  const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal");
4115
- return M(), F("div", {
4136
+ return O(), z("div", {
4116
4137
  style: q(e.style)
4117
4138
  }, [
4118
4139
  U(s, { spinning: e.loading }, {
@@ -4262,11 +4283,11 @@ const $s = te({
4262
4283
  AModal: Ge
4263
4284
  },
4264
4285
  setup(e, { expose: o }) {
4265
- const t = _(), n = _(!1), a = _(!1), l = _(null), i = _([]), s = ue(e), c = _([]), u = _(), g = j(() => n.value ? Ye : 12), m = j(() => {
4266
- const h = C(c), y = h.length, I = [];
4267
- for (let z = 0; z < y; z++) {
4286
+ const t = T(), n = T(!1), a = T(!1), l = T(null), i = T([]), s = ue(e), c = T([]), u = T(), g = j(() => n.value ? Ye : 12), m = j(() => {
4287
+ const y = w(c), b = y.length, I = [];
4288
+ for (let R = 0; R < b; R++) {
4268
4289
  const Y = {
4269
- ...h[z],
4290
+ ...y[R],
4270
4291
  type: "bar",
4271
4292
  barWidth: e.barWidth
4272
4293
  };
@@ -4278,8 +4299,8 @@ const $s = te({
4278
4299
  }, I.push(Y);
4279
4300
  }
4280
4301
  return I;
4281
- }), p = _([]), d = _(!1), r = j(() => {
4282
- const h = e.yAxisLabelFormatter, y = e.xAxisLabelFormatter;
4302
+ }), p = T([]), d = T(!1), r = j(() => {
4303
+ const y = e.yAxisLabelFormatter, b = e.xAxisLabelFormatter;
4283
4304
  return {
4284
4305
  toolbox: {
4285
4306
  show: e.toolboxShow,
@@ -4294,8 +4315,8 @@ const $s = te({
4294
4315
  icon: "path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",
4295
4316
  onclick() {
4296
4317
  a.value = !0;
4297
- const I = t.value.chart.getOption(), { xAxis: z } = I || {};
4298
- z && z.length && (i.value = z[0].data);
4318
+ const I = t.value.chart.getOption(), { xAxis: R } = I || {};
4319
+ R && R.length && (i.value = R[0].data);
4299
4320
  }
4300
4321
  },
4301
4322
  myDownload: {
@@ -4345,10 +4366,10 @@ const $s = te({
4345
4366
  trigger: "axis",
4346
4367
  show: e.tooltipShow,
4347
4368
  formatter: (I) => {
4348
- const z = I.length;
4369
+ const R = I.length;
4349
4370
  let Y = "", ce = e.tooltipFormatter;
4350
4371
  ce === "" && (ce = "{marker} {a} {c}");
4351
- for (let ne = 0; ne < z; ne++) {
4372
+ for (let ne = 0; ne < R; ne++) {
4352
4373
  const { marker: ve, seriesName: fe, name: de, value: he, data: $e } = I[ne] || {};
4353
4374
  ne === 0 && (Y += `${de}<br/>`), Y += ye(
4354
4375
  ce,
@@ -4391,7 +4412,7 @@ const $s = te({
4391
4412
  },
4392
4413
  xAxis: {
4393
4414
  type: e.isUseHorizontalAxis ? "value" : "category",
4394
- data: e.isUseHorizontalAxis ? null : C(O),
4415
+ data: e.isUseHorizontalAxis ? null : w(M),
4395
4416
  inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
4396
4417
  minInterval: e.xAxisMinInterval,
4397
4418
  splitLine: {
@@ -4407,7 +4428,7 @@ const $s = te({
4407
4428
  width: e.xAxisLabelWidth,
4408
4429
  overflow: e.xAxisLabelOverflow,
4409
4430
  formatter(I) {
4410
- return We(y, I);
4431
+ return We(b, I);
4411
4432
  }
4412
4433
  },
4413
4434
  axisLine: {
@@ -4421,7 +4442,7 @@ const $s = te({
4421
4442
  },
4422
4443
  yAxis: {
4423
4444
  type: e.isUseHorizontalAxis ? "category" : "value",
4424
- data: e.isUseHorizontalAxis ? C(p) : null,
4445
+ data: e.isUseHorizontalAxis ? w(p) : null,
4425
4446
  inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
4426
4447
  minInterval: e.yAxisMinInterval,
4427
4448
  splitLine: {
@@ -4437,7 +4458,7 @@ const $s = te({
4437
4458
  width: e.yAxisLabelWidth,
4438
4459
  overflow: e.yAxisLabelOverflow,
4439
4460
  formatter(I) {
4440
- return We(h, I);
4461
+ return We(y, I);
4441
4462
  }
4442
4463
  },
4443
4464
  axisLine: {
@@ -4446,61 +4467,61 @@ const $s = te({
4446
4467
  }
4447
4468
  }
4448
4469
  },
4449
- series: C(m)
4470
+ series: w(m)
4450
4471
  };
4451
- }), { pageMode: f } = V(Ae, {
4472
+ }), { pageMode: h } = V(Ae, {
4452
4473
  pageMode: "normal"
4453
- }), S = () => {
4474
+ }), C = () => {
4454
4475
  n.value = !1;
4455
- }, v = (h = [], y = !1) => {
4476
+ }, v = (y = [], b = !1) => {
4456
4477
  let I = {};
4457
4478
  if (e.dataFieldConfigType === "key") {
4458
- const z = y ? e.keyTypeDataFieldNames : null;
4459
- I = Qe(h, z);
4479
+ const R = b ? e.keyTypeDataFieldNames : null;
4480
+ I = Qe(y, R);
4460
4481
  } else if (e.dataFieldConfigType === "value") {
4461
- const z = y ? e.valueTypeDataFieldNames : null;
4462
- I = st(h, z);
4482
+ const R = b ? e.valueTypeDataFieldNames : null;
4483
+ I = st(y, R);
4463
4484
  }
4464
4485
  c.value = I.dataset, p.value = I.dimensions;
4465
- }, w = (h = [], y, I = !1) => {
4466
- const Y = Qe(h, I ? y : null);
4486
+ }, S = (y = [], b, I = !1) => {
4487
+ const Y = Qe(y, I ? b : null);
4467
4488
  c.value = Y.dataset, p.value = Y.dimensions;
4468
- }, O = j(() => C(p).map((h) => {
4469
- let y = {};
4470
- return h && typeof h == "object" ? y = {
4471
- ...h,
4489
+ }, M = j(() => w(p).map((y) => {
4490
+ let b = {};
4491
+ return y && typeof y == "object" ? b = {
4492
+ ...y,
4472
4493
  textStyle: {
4473
4494
  fontSize: g.value
4474
4495
  }
4475
- } : y = {
4476
- value: h,
4496
+ } : b = {
4497
+ value: y,
4477
4498
  textStyle: {
4478
4499
  fontSize: g.value
4479
4500
  }
4480
- }, y;
4501
+ }, b;
4481
4502
  }));
4482
- ee(() => e.data, (h) => {
4483
- (e.dataType === "static" || C(f) === "design") && v(h);
4503
+ ee(() => e.data, (y) => {
4504
+ (e.dataType === "static" || w(h) === "design") && v(y);
4484
4505
  }, {
4485
4506
  immediate: !0,
4486
4507
  deep: !0
4487
4508
  });
4488
- const L = Oe(e), $ = async () => {
4489
- var h, y;
4509
+ const x = Oe(e), D = async () => {
4510
+ var y, b;
4490
4511
  try {
4491
4512
  d.value = !0;
4492
- const I = await L();
4493
- v((y = (h = I == null ? void 0 : I.data) == null ? void 0 : h.data) == null ? void 0 : y.rows, !0);
4513
+ const I = await x();
4514
+ v((b = (y = I == null ? void 0 : I.data) == null ? void 0 : y.data) == null ? void 0 : b.rows, !0);
4494
4515
  } catch (I) {
4495
4516
  console.error(I);
4496
4517
  } finally {
4497
4518
  d.value = !1;
4498
4519
  }
4499
- }, b = ht(e), k = async () => {
4500
- var h;
4520
+ }, f = ht(e), A = async () => {
4521
+ var y;
4501
4522
  try {
4502
4523
  d.value = !0;
4503
- const y = await b(), { columns: I = [], rows: z = [] } = ((h = y == null ? void 0 : y.data) == null ? void 0 : h.data) ?? {};
4524
+ const b = await f(), { columns: I = [], rows: R = [] } = ((y = b == null ? void 0 : b.data) == null ? void 0 : y.data) ?? {};
4504
4525
  let Y;
4505
4526
  I.length > 0 && (Y = {
4506
4527
  name: I[0],
@@ -4508,79 +4529,79 @@ const $s = te({
4508
4529
  label: ce,
4509
4530
  value: ce
4510
4531
  }))
4511
- }), w(z, Y, !0);
4512
- } catch (y) {
4513
- console.error(y);
4532
+ }), S(R, Y, !0);
4533
+ } catch (b) {
4534
+ console.error(b);
4514
4535
  } finally {
4515
4536
  d.value = !1;
4516
4537
  }
4517
- }, A = () => {
4538
+ }, _ = () => {
4518
4539
  switch (e.dataType) {
4519
4540
  case "indicator":
4520
- k();
4541
+ A();
4521
4542
  break;
4522
4543
  case "request":
4523
- $();
4544
+ D();
4524
4545
  break;
4525
4546
  }
4526
- }, D = (h, y) => !!C(i)[y.value].value.includes(h), W = async () => {
4547
+ }, F = (y, b) => !!w(i)[b.value].value.includes(y), W = async () => {
4527
4548
  a.value = !1;
4528
- const h = t.value.chart.getOption();
4529
- for (let y = 0; y < 7; y++)
4530
- await le(h, y);
4531
- }, le = (h, y) => new Promise((I) => {
4549
+ const y = t.value.chart.getOption();
4550
+ for (let b = 0; b < 7; b++)
4551
+ await le(y, b);
4552
+ }, le = (y, b) => new Promise((I) => {
4532
4553
  setTimeout(() => {
4533
- const { series: z, color: Y, xAxis: ce } = h, ne = t.value.chart, { splitArea: ve = {} } = ce[0] || {};
4534
- z.forEach((fe, de) => {
4554
+ const { series: R, color: Y, xAxis: ce } = y, ne = t.value.chart, { splitArea: ve = {} } = ce[0] || {};
4555
+ R.forEach((fe, de) => {
4535
4556
  const he = fe.data;
4536
4557
  let $e = "";
4537
- y % 2 ? $e = Y[de] + "a8" : $e = Y[de], he[l.value].itemStyle = {
4558
+ b % 2 ? $e = Y[de] + "a8" : $e = Y[de], he[l.value].itemStyle = {
4538
4559
  color: $e
4539
4560
  };
4540
- }), y % 2 ? (ve.show = !0, ve.areaStyle.color = C(i).map((fe, de) => de === l.value ? "#ff003b26" : "")) : ve.show = !1, ne.setOption({ series: z, xAxis: ce }), I();
4561
+ }), b % 2 ? (ve.show = !0, ve.areaStyle.color = w(i).map((fe, de) => de === l.value ? "#ff003b26" : "")) : ve.show = !1, ne.setOption({ series: R, xAxis: ce }), I();
4541
4562
  }, 200);
4542
4563
  });
4543
4564
  o({
4544
- refreshData: A
4565
+ refreshData: _
4545
4566
  });
4546
- const B = be(e), { getGlobalModel: T, setGlobalModel: H } = V(we, {
4567
+ const B = be(e), { getGlobalModel: L, setGlobalModel: H } = V(we, {
4547
4568
  // @ts-ignore
4548
4569
  // eslint-disable-next-line no-void
4549
- getGlobalModel: (h) => {
4570
+ getGlobalModel: (y) => {
4550
4571
  },
4551
4572
  // @ts-ignore
4552
4573
  // eslint-disable-next-line no-void
4553
- setGlobalModel: (h, y) => {
4574
+ setGlobalModel: (y, b) => {
4554
4575
  }
4555
- }), N = B("click", (h) => {
4556
- const y = T(e.id);
4557
- H(e.id, { ...y, RECORD: h.data });
4576
+ }), N = B("click", (y) => {
4577
+ const b = L(e.id);
4578
+ H(e.id, { ...b, RECORD: y.data });
4558
4579
  }), { setRequest: P } = V(_e, {
4559
- setRequest: (h) => {
4580
+ setRequest: (y) => {
4560
4581
  }
4561
4582
  });
4562
4583
  return typeof P == "function" && P({
4563
4584
  id: e.id,
4564
- requestFn: A,
4585
+ requestFn: _,
4565
4586
  sortNum: e.requestSort
4566
4587
  }), Se(e, {
4567
- refreshData: A,
4588
+ refreshData: _,
4568
4589
  click: N,
4569
4590
  resetRecord: () => {
4570
- const h = e.id, y = T(h);
4571
- H(h, { ...y, RECORD: "" });
4591
+ const y = e.id, b = L(y);
4592
+ H(y, { ...b, RECORD: "" });
4572
4593
  }
4573
4594
  }), {
4574
4595
  option: r,
4575
4596
  style: s,
4576
- refreshData: A,
4597
+ refreshData: _,
4577
4598
  click: N,
4578
4599
  loading: d,
4579
- onClose: S,
4600
+ onClose: C,
4580
4601
  ecanModal: u,
4581
4602
  echartRef: t,
4582
4603
  handleLocationOk: W,
4583
- onFilterOption: D,
4604
+ onFilterOption: F,
4584
4605
  locationVisible: a,
4585
4606
  locationValue: l,
4586
4607
  locationNames: i
@@ -4590,7 +4611,7 @@ const $s = te({
4590
4611
  const Ns = (e) => (_t("data-v-447bc52f"), e = e(), Tt(), e), Ps = { class: "location-wrap" }, Bs = /* @__PURE__ */ Ns(() => /* @__PURE__ */ X("div", { class: "location-text" }, "选择分类:", -1));
4591
4612
  function Us(e, o, t, n, a, l) {
4592
4613
  const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal"), u = Z("a-select-option"), g = Z("a-select"), m = Z("a-modal");
4593
- return M(), F("div", {
4614
+ return O(), z("div", {
4594
4615
  class: "ecan-bar",
4595
4616
  style: q(e.style)
4596
4617
  }, [
@@ -4647,7 +4668,7 @@ function Us(e, o, t, n, a, l) {
4647
4668
  "filter-option": e.onFilterOption
4648
4669
  }, {
4649
4670
  default: K(() => [
4650
- (M(!0), F(De, null, Fe(e.locationNames, (p, d) => (M(), ze(u, {
4671
+ (O(!0), z(De, null, Fe(e.locationNames, (p, d) => (O(), ze(u, {
4651
4672
  key: d,
4652
4673
  value: d
4653
4674
  }, {
@@ -4746,8 +4767,8 @@ const Vs = te({
4746
4767
  EcanModal: ot
4747
4768
  },
4748
4769
  setup(e) {
4749
- const o = _(!1), t = ue(e), n = _([]), a = _(), l = j(() => o.value ? Ye : 12), i = j(() => {
4750
- const L = e.xAxisLabelFormatter, $ = e.yAxisLabelFormatter;
4770
+ const o = T(!1), t = ue(e), n = T([]), a = T(), l = j(() => o.value ? Ye : 12), i = j(() => {
4771
+ const x = e.xAxisLabelFormatter, D = e.yAxisLabelFormatter;
4751
4772
  return {
4752
4773
  toolbox: {
4753
4774
  show: e.toolboxShow,
@@ -4769,8 +4790,8 @@ const Vs = te({
4769
4790
  title: "放大",
4770
4791
  icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
4771
4792
  onclick() {
4772
- var b;
4773
- o.value = !0, (b = a.value) == null || b.showModal();
4793
+ var f;
4794
+ o.value = !0, (f = a.value) == null || f.showModal();
4774
4795
  }
4775
4796
  },
4776
4797
  myInfo: {
@@ -4814,8 +4835,8 @@ const Vs = te({
4814
4835
  rotate: e.xAxisLabelRotate,
4815
4836
  width: e.xAxisLabelWidth,
4816
4837
  overflow: e.xAxisLabelOverflow,
4817
- formatter(b) {
4818
- return We(L, b);
4838
+ formatter(f) {
4839
+ return We(x, f);
4819
4840
  }
4820
4841
  },
4821
4842
  axisLine: {
@@ -4837,8 +4858,8 @@ const Vs = te({
4837
4858
  axisLabel: {
4838
4859
  fontSize: l.value,
4839
4860
  color: e.yAxisLabelColor,
4840
- formatter(b) {
4841
- return We($, b);
4861
+ formatter(f) {
4862
+ return We(D, f);
4842
4863
  }
4843
4864
  },
4844
4865
  axisLine: {
@@ -4851,17 +4872,17 @@ const Vs = te({
4851
4872
  tooltip: {
4852
4873
  show: e.tooltipShow,
4853
4874
  trigger: e.tooltipTrigger,
4854
- formatter(b) {
4875
+ formatter(f) {
4855
4876
  var B;
4856
- const { marker: k, seriesName: A } = b, D = ((B = b == null ? void 0 : b.data) == null ? void 0 : B.record) ?? {}, { name: W, value: le } = D;
4877
+ const { marker: A, seriesName: _ } = f, F = ((B = f == null ? void 0 : f.data) == null ? void 0 : B.record) ?? {}, { name: W, value: le } = F;
4857
4878
  return ye(e.tooltipFormatter, {
4858
4879
  textData: {
4859
- marker: k,
4860
- seriesName: A,
4861
- a: A,
4880
+ marker: A,
4881
+ seriesName: _,
4882
+ a: _,
4862
4883
  b: W,
4863
4884
  c: le,
4864
- ...D
4885
+ ...F
4865
4886
  }
4866
4887
  });
4867
4888
  },
@@ -4884,7 +4905,7 @@ const Vs = te({
4884
4905
  },
4885
4906
  series: [
4886
4907
  {
4887
- data: C(n),
4908
+ data: w(n),
4888
4909
  type: "scatter",
4889
4910
  symbolSize: e.symbolSize
4890
4911
  }
@@ -4893,65 +4914,65 @@ const Vs = te({
4893
4914
  }), { getGlobalModel: s, setGlobalModel: c } = V(we, {
4894
4915
  // @ts-ignore
4895
4916
  // eslint-disable-next-line no-void
4896
- getGlobalModel: (L) => {
4917
+ getGlobalModel: (x) => {
4897
4918
  },
4898
4919
  // @ts-ignore
4899
4920
  // eslint-disable-next-line no-void
4900
- setGlobalModel: (L, $) => {
4921
+ setGlobalModel: (x, D) => {
4901
4922
  }
4902
4923
  }), { pageMode: u } = V(Ae, {
4903
4924
  pageMode: "normal"
4904
- }), g = (L = [], $) => {
4905
- const { name: b = "name", value: k = "value" } = $ || {};
4906
- n.value = L.map((A) => ({ value: [A[b], A[k]], record: A }));
4925
+ }), g = (x = [], D) => {
4926
+ const { name: f = "name", value: A = "value" } = D || {};
4927
+ n.value = x.map((_) => ({ value: [_[f], _[A]], record: _ }));
4907
4928
  };
4908
- ee(() => e.data, (L) => {
4909
- (e.dataType === "static" || C(u) === "design") && g(L);
4929
+ ee(() => e.data, (x) => {
4930
+ (e.dataType === "static" || w(u) === "design") && g(x);
4910
4931
  }, {
4911
4932
  immediate: !0,
4912
4933
  deep: !0
4913
4934
  });
4914
- const m = _(!1), p = Oe(e), d = async () => {
4915
- var L, $;
4935
+ const m = T(!1), p = Oe(e), d = async () => {
4936
+ var x, D;
4916
4937
  if (e.dataType === "request") {
4917
4938
  m.value = !0;
4918
4939
  try {
4919
- const b = await p();
4920
- g(($ = (L = b == null ? void 0 : b.data) == null ? void 0 : L.data) == null ? void 0 : $.rows, e.dataFieldNames);
4921
- } catch (b) {
4922
- console.error(b);
4940
+ const f = await p();
4941
+ g((D = (x = f == null ? void 0 : f.data) == null ? void 0 : x.data) == null ? void 0 : D.rows, e.dataFieldNames);
4942
+ } catch (f) {
4943
+ console.error(f);
4923
4944
  } finally {
4924
4945
  m.value = !1;
4925
4946
  }
4926
4947
  }
4927
4948
  }, r = () => {
4928
4949
  o.value = !1;
4929
- }, S = be(e)("click", (L) => {
4930
- const $ = e.id, b = s($);
4931
- c($, { ...b, RECORD: L == null ? void 0 : L.data });
4950
+ }, C = be(e)("click", (x) => {
4951
+ const D = e.id, f = s(D);
4952
+ c(D, { ...f, RECORD: x == null ? void 0 : x.data });
4932
4953
  });
4933
4954
  Se(e, {
4934
4955
  refreshData: () => {
4935
4956
  d();
4936
4957
  },
4937
- click: S,
4958
+ click: C,
4938
4959
  resetRecord: () => {
4939
- const L = e.id, $ = s(L);
4940
- c(L, { ...$, RECORD: "" });
4960
+ const x = e.id, D = s(x);
4961
+ c(x, { ...D, RECORD: "" });
4941
4962
  }
4942
4963
  });
4943
- const { setRequest: O } = V(_e, {
4944
- setRequest: (L) => {
4964
+ const { setRequest: M } = V(_e, {
4965
+ setRequest: (x) => {
4945
4966
  }
4946
4967
  });
4947
- return typeof O == "function" && O({
4968
+ return typeof M == "function" && M({
4948
4969
  id: e.id,
4949
4970
  requestFn: d,
4950
4971
  sortNum: e.requestSort
4951
4972
  }), {
4952
4973
  option: i,
4953
4974
  style: t,
4954
- click: S,
4975
+ click: C,
4955
4976
  loading: m,
4956
4977
  onClose: r,
4957
4978
  ecanModal: a
@@ -4960,7 +4981,7 @@ const Vs = te({
4960
4981
  });
4961
4982
  function Ws(e, o, t, n, a, l) {
4962
4983
  const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal");
4963
- return M(), F("div", {
4984
+ return O(), z("div", {
4964
4985
  style: q(e.style)
4965
4986
  }, [
4966
4987
  U(s, { spinning: e.loading }, {
@@ -5017,7 +5038,7 @@ const Hs = /* @__PURE__ */ oe(Vs, [["render", Ws]]), Zs = ae(Hs), Mn = {
5017
5038
  Echarts: He
5018
5039
  },
5019
5040
  setup(e) {
5020
- const o = ue(e), t = _();
5041
+ const o = ue(e), t = T();
5021
5042
  return ee(() => e.optionCode, (n) => {
5022
5043
  try {
5023
5044
  const a = eval;
@@ -5036,7 +5057,7 @@ const Hs = /* @__PURE__ */ oe(Vs, [["render", Ws]]), Zs = ae(Hs), Mn = {
5036
5057
  });
5037
5058
  function Ys(e, o, t, n, a, l) {
5038
5059
  const i = Z("echarts");
5039
- return M(), F("div", {
5060
+ return O(), z("div", {
5040
5061
  style: q(e.style)
5041
5062
  }, [
5042
5063
  U(i, {
@@ -5180,7 +5201,7 @@ const er = te({
5180
5201
  AModal: Ge
5181
5202
  },
5182
5203
  setup(e, { expose: o }) {
5183
- const t = _(), n = _(!1), a = _(!1), l = _(null), i = _([]), s = ue(e), c = _([]), u = _([]), g = _(), m = j(() => n.value ? Ye : 12), p = j(() => ({
5204
+ const t = T(), n = T(!1), a = T(!1), l = T(null), i = T([]), s = ue(e), c = T([]), u = T([]), g = T(), m = j(() => n.value ? Ye : 12), p = j(() => ({
5184
5205
  title: {
5185
5206
  text: e.titleText,
5186
5207
  subtext: e.titleSubtext,
@@ -5199,8 +5220,8 @@ const er = te({
5199
5220
  icon: "path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",
5200
5221
  onclick() {
5201
5222
  a.value = !0;
5202
- const x = t.value.chart.getOption(), { xAxis: h } = x || {};
5203
- h && h.length && (i.value = h[0].data);
5223
+ const k = t.value.chart.getOption(), { xAxis: y } = k || {};
5224
+ y && y.length && (i.value = y[0].data);
5204
5225
  }
5205
5226
  },
5206
5227
  myDownload: {
@@ -5216,8 +5237,8 @@ const er = te({
5216
5237
  title: "放大",
5217
5238
  icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
5218
5239
  onclick() {
5219
- var x;
5220
- n.value = !0, (x = g.value) == null || x.showModal();
5240
+ var k;
5241
+ n.value = !0, (k = g.value) == null || k.showModal();
5221
5242
  }
5222
5243
  },
5223
5244
  myInfo: {
@@ -5254,14 +5275,14 @@ const er = te({
5254
5275
  tooltip: {
5255
5276
  trigger: "axis",
5256
5277
  show: e.tooltipShow,
5257
- formatter: (x) => {
5258
- const h = x.length;
5259
- let y = "", I = e.tooltipFormatter;
5278
+ formatter: (k) => {
5279
+ const y = k.length;
5280
+ let b = "", I = e.tooltipFormatter;
5260
5281
  I === "" && (I = "{marker} {a} {c}");
5261
- const z = e.seriesTypes;
5262
- for (let Y = 0; Y < h; Y++) {
5263
- const ce = z[Y], { tooltipFormatter: ne } = ce || {}, { marker: ve, seriesName: fe, name: de, value: he, data: $e } = x[Y] || {};
5264
- Y === 0 && (y += `${de}<br/>`), y += ye(
5282
+ const R = e.seriesTypes;
5283
+ for (let Y = 0; Y < y; Y++) {
5284
+ const ce = R[Y], { tooltipFormatter: ne } = ce || {}, { marker: ve, seriesName: fe, name: de, value: he, data: $e } = k[Y] || {};
5285
+ Y === 0 && (b += `${de}<br/>`), b += ye(
5265
5286
  // 如果系列有提示框组件就使用自定义,没有就用默认的
5266
5287
  ne || I,
5267
5288
  {
@@ -5280,9 +5301,9 @@ const er = te({
5280
5301
  useNewline: !0,
5281
5302
  useSpace: !0
5282
5303
  }
5283
- ), y += "<br/>";
5304
+ ), b += "<br/>";
5284
5305
  }
5285
- return y;
5306
+ return b;
5286
5307
  },
5287
5308
  textStyle: {
5288
5309
  color: e.tooltipTextStyleColor,
@@ -5292,19 +5313,19 @@ const er = te({
5292
5313
  xAxis: {
5293
5314
  minInterval: e.xAxisMinInterval,
5294
5315
  type: "category",
5295
- data: C(u).map((x) => {
5296
- let h = {};
5297
- return x && typeof x == "object" ? h = {
5298
- ...x,
5316
+ data: w(u).map((k) => {
5317
+ let y = {};
5318
+ return k && typeof k == "object" ? y = {
5319
+ ...k,
5299
5320
  textStyle: {
5300
5321
  fontSize: m.value
5301
5322
  }
5302
- } : h = {
5303
- value: x,
5323
+ } : y = {
5324
+ value: k,
5304
5325
  textStyle: {
5305
5326
  fontSize: m.value
5306
5327
  }
5307
- }, h;
5328
+ }, y;
5308
5329
  }),
5309
5330
  splitLine: {
5310
5331
  show: e.xAxisSplitLineShow,
@@ -5328,23 +5349,23 @@ const er = te({
5328
5349
  show: e.xAxisTickShow
5329
5350
  }
5330
5351
  },
5331
- yAxis: C(v),
5332
- series: C(c)
5352
+ yAxis: w(v),
5353
+ series: w(c)
5333
5354
  })), { pageMode: d } = V(Ae, {
5334
5355
  pageMode: "normal"
5335
5356
  }), r = () => {
5336
5357
  n.value = !1;
5337
- }, f = (x = [], h = !1) => {
5338
- let y;
5358
+ }, h = (k = [], y = !1) => {
5359
+ let b;
5339
5360
  if (e.dataFieldConfigType === "key") {
5340
- const ne = h ? e.keyTypeDataFieldNames : null;
5341
- y = Qe(x, ne);
5361
+ const ne = y ? e.keyTypeDataFieldNames : null;
5362
+ b = Qe(k, ne);
5342
5363
  } else if (e.dataFieldConfigType === "value") {
5343
- const ne = h ? e.valueTypeDataFieldNames : null;
5344
- y = st(x, ne);
5364
+ const ne = y ? e.valueTypeDataFieldNames : null;
5365
+ b = st(k, ne);
5345
5366
  }
5346
- u.value = y.dimensions;
5347
- const I = y.dataset, z = [], Y = I.length, ce = e.seriesTypes;
5367
+ u.value = b.dimensions;
5368
+ const I = b.dataset, R = [], Y = I.length, ce = e.seriesTypes;
5348
5369
  for (let ne = 0; ne < Y; ne++) {
5349
5370
  const ve = ce[ne], { type: fe, axisIndex: de } = ve || {};
5350
5371
  let he = {
@@ -5365,13 +5386,13 @@ const er = te({
5365
5386
  }), fe === "bar" && (he = {
5366
5387
  ...he,
5367
5388
  barWidth: e.barWidth
5368
- }), z.push(he);
5389
+ }), R.push(he);
5369
5390
  }
5370
- c.value = z;
5371
- }, S = (x = [], h, y = !1) => {
5372
- const z = Qe(x, y ? h : null);
5373
- u.value = z.dimensions;
5374
- const Y = z.dataset, ce = [], ne = Y.length, ve = e.seriesTypes;
5391
+ c.value = R;
5392
+ }, C = (k = [], y, b = !1) => {
5393
+ const R = Qe(k, b ? y : null);
5394
+ u.value = R.dimensions;
5395
+ const Y = R.dataset, ce = [], ne = Y.length, ve = e.seriesTypes;
5375
5396
  for (let fe = 0; fe < ne; fe++) {
5376
5397
  const de = ve[fe];
5377
5398
  ce.push({
@@ -5382,15 +5403,15 @@ const er = te({
5382
5403
  }
5383
5404
  c.value = ce;
5384
5405
  };
5385
- ee(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([x]) => {
5386
- (e.dataType === "static" || C(d) === "design") && f(x);
5406
+ ee(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([k]) => {
5407
+ (e.dataType === "static" || w(d) === "design") && h(k);
5387
5408
  }, {
5388
5409
  immediate: !0,
5389
5410
  deep: !0
5390
5411
  });
5391
5412
  const v = j(() => {
5392
- const x = e.yAxis;
5393
- return x == null ? void 0 : x.map((h) => ({
5413
+ const k = e.yAxis;
5414
+ return k == null ? void 0 : k.map((y) => ({
5394
5415
  type: "value",
5395
5416
  minInterval: e.yAxisMinInterval,
5396
5417
  splitLine: {
@@ -5402,8 +5423,8 @@ const er = te({
5402
5423
  axisLabel: {
5403
5424
  fontSize: m.value,
5404
5425
  color: e.yAxisLabelColor,
5405
- formatter(y) {
5406
- return We(h.axisLabelFormatter, y);
5426
+ formatter(b) {
5427
+ return We(y.axisLabelFormatter, b);
5407
5428
  }
5408
5429
  },
5409
5430
  axisLine: {
@@ -5412,102 +5433,102 @@ const er = te({
5412
5433
  }
5413
5434
  }
5414
5435
  }));
5415
- }), w = _(!1), O = Oe(e), L = async () => {
5416
- var x, h;
5436
+ }), S = T(!1), M = Oe(e), x = async () => {
5437
+ var k, y;
5417
5438
  if (e.dataType === "request")
5418
5439
  try {
5419
- w.value = !0;
5420
- const y = await O();
5421
- f((h = (x = y == null ? void 0 : y.data) == null ? void 0 : x.data) == null ? void 0 : h.rows, !0);
5422
- } catch (y) {
5423
- console.error(y);
5440
+ S.value = !0;
5441
+ const b = await M();
5442
+ h((y = (k = b == null ? void 0 : b.data) == null ? void 0 : k.data) == null ? void 0 : y.rows, !0);
5443
+ } catch (b) {
5444
+ console.error(b);
5424
5445
  } finally {
5425
- w.value = !1;
5446
+ S.value = !1;
5426
5447
  }
5427
- }, $ = ht(e), b = async () => {
5428
- var x;
5448
+ }, D = ht(e), f = async () => {
5449
+ var k;
5429
5450
  try {
5430
- w.value = !0;
5431
- const h = await $(), { columns: y = [], rows: I = [] } = ((x = h == null ? void 0 : h.data) == null ? void 0 : x.data) ?? {};
5432
- let z;
5433
- y.length > 0 && (z = {
5434
- name: y[0],
5435
- types: y.slice(1).map((Y) => ({
5451
+ S.value = !0;
5452
+ const y = await D(), { columns: b = [], rows: I = [] } = ((k = y == null ? void 0 : y.data) == null ? void 0 : k.data) ?? {};
5453
+ let R;
5454
+ b.length > 0 && (R = {
5455
+ name: b[0],
5456
+ types: b.slice(1).map((Y) => ({
5436
5457
  label: Y,
5437
5458
  value: Y
5438
5459
  }))
5439
- }), S(I, z, !0);
5440
- } catch (h) {
5441
- console.error(h);
5460
+ }), C(I, R, !0);
5461
+ } catch (y) {
5462
+ console.error(y);
5442
5463
  } finally {
5443
- w.value = !1;
5464
+ S.value = !1;
5444
5465
  }
5445
- }, k = () => {
5466
+ }, A = () => {
5446
5467
  switch (e.dataType) {
5447
5468
  case "indicator":
5448
- b();
5469
+ f();
5449
5470
  break;
5450
5471
  case "request":
5451
- L();
5472
+ x();
5452
5473
  break;
5453
5474
  }
5454
- }, A = (x, h) => !!C(i)[h.value].value.includes(x), D = async () => {
5475
+ }, _ = (k, y) => !!w(i)[y.value].value.includes(k), F = async () => {
5455
5476
  a.value = !1;
5456
- const x = t.value.chart.getOption();
5457
- for (let h = 0; h < 7; h++)
5458
- await W(x, h);
5459
- }, W = (x, h) => new Promise((y) => {
5477
+ const k = t.value.chart.getOption();
5478
+ for (let y = 0; y < 7; y++)
5479
+ await W(k, y);
5480
+ }, W = (k, y) => new Promise((b) => {
5460
5481
  setTimeout(() => {
5461
- const { series: I, color: z, xAxis: Y } = x, ce = t.value.chart, { splitArea: ne = {} } = Y[0] || {};
5482
+ const { series: I, color: R, xAxis: Y } = k, ce = t.value.chart, { splitArea: ne = {} } = Y[0] || {};
5462
5483
  I.forEach((ve, fe) => {
5463
5484
  const de = ve.data;
5464
5485
  let he = "";
5465
- h % 2 ? he = z[fe] + "a8" : he = z[fe], de[l.value].itemStyle = {
5486
+ y % 2 ? he = R[fe] + "a8" : he = R[fe], de[l.value].itemStyle = {
5466
5487
  color: he
5467
5488
  };
5468
- }), h % 2 ? (ne.show = !0, ne.areaStyle.color = C(i).map((ve, fe) => fe === l.value ? "#ff003b26" : "")) : ne.show = !1, ce.setOption({ series: I, xAxis: Y }), y();
5489
+ }), y % 2 ? (ne.show = !0, ne.areaStyle.color = w(i).map((ve, fe) => fe === l.value ? "#ff003b26" : "")) : ne.show = !1, ce.setOption({ series: I, xAxis: Y }), b();
5469
5490
  }, 200);
5470
5491
  });
5471
5492
  o({
5472
- refreshData: k
5493
+ refreshData: A
5473
5494
  });
5474
- const le = be(e), { getGlobalModel: B, setGlobalModel: T } = V(we, {
5495
+ const le = be(e), { getGlobalModel: B, setGlobalModel: L } = V(we, {
5475
5496
  // @ts-ignore
5476
5497
  // eslint-disable-next-line no-void
5477
- getGlobalModel: (x) => {
5498
+ getGlobalModel: (k) => {
5478
5499
  },
5479
5500
  // @ts-ignore
5480
5501
  // eslint-disable-next-line no-void
5481
- setGlobalModel: (x, h) => {
5502
+ setGlobalModel: (k, y) => {
5482
5503
  }
5483
- }), H = le("click", (x) => {
5484
- const h = B(e.id);
5485
- T(e.id, { ...h, RECORD: x == null ? void 0 : x.data });
5504
+ }), H = le("click", (k) => {
5505
+ const y = B(e.id);
5506
+ L(e.id, { ...y, RECORD: k == null ? void 0 : k.data });
5486
5507
  }), { setRequest: N } = V(_e, {
5487
- setRequest: (x) => {
5508
+ setRequest: (k) => {
5488
5509
  }
5489
5510
  });
5490
5511
  return typeof N == "function" && N({
5491
5512
  id: e.id,
5492
- requestFn: k,
5513
+ requestFn: A,
5493
5514
  sortNum: e.requestSort
5494
5515
  }), Se(e, {
5495
5516
  resetRecord: () => {
5496
- const x = e.id, h = B(x);
5497
- T(x, { ...h, RECORD: "" });
5517
+ const k = e.id, y = B(k);
5518
+ L(k, { ...y, RECORD: "" });
5498
5519
  },
5499
- refreshData: k,
5520
+ refreshData: A,
5500
5521
  click: H
5501
5522
  }), {
5502
5523
  style: s,
5503
5524
  option: p,
5504
5525
  click: H,
5505
- loading: w,
5526
+ loading: S,
5506
5527
  onClose: r,
5507
5528
  ecanModal: g,
5508
5529
  echartRef: t,
5509
- handleLocationOk: D,
5510
- onFilterOption: A,
5530
+ handleLocationOk: F,
5531
+ onFilterOption: _,
5511
5532
  locationVisible: a,
5512
5533
  locationValue: l,
5513
5534
  locationNames: i
@@ -5517,7 +5538,7 @@ const er = te({
5517
5538
  const tr = (e) => (_t("data-v-b207f1d1"), e = e(), Tt(), e), or = { class: "location-wrap" }, nr = /* @__PURE__ */ tr(() => /* @__PURE__ */ X("div", { class: "location-text" }, "选择分类:", -1));
5518
5539
  function ar(e, o, t, n, a, l) {
5519
5540
  const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal"), u = Z("a-select-option"), g = Z("a-select"), m = Z("a-modal");
5520
- return M(), F("div", {
5541
+ return O(), z("div", {
5521
5542
  style: q(e.style)
5522
5543
  }, [
5523
5544
  U(s, { spinning: e.loading }, {
@@ -5574,7 +5595,7 @@ function ar(e, o, t, n, a, l) {
5574
5595
  "filter-option": e.onFilterOption
5575
5596
  }, {
5576
5597
  default: K(() => [
5577
- (M(!0), F(De, null, Fe(e.locationNames, (p, d) => (M(), ze(u, {
5598
+ (O(!0), z(De, null, Fe(e.locationNames, (p, d) => (O(), ze(u, {
5578
5599
  key: d,
5579
5600
  value: d
5580
5601
  }, {
@@ -5630,7 +5651,7 @@ const lr = /* @__PURE__ */ oe(er, [["render", ar], ["__scopeId", "data-v-b207f1d
5630
5651
  width: "100%",
5631
5652
  height: "100%"
5632
5653
  })), l = be(e)("click", () => {
5633
- }), i = _([]);
5654
+ }), i = T([]);
5634
5655
  ee(() => e.data, (c) => {
5635
5656
  i.value = c;
5636
5657
  }, {
@@ -5667,24 +5688,24 @@ const Re = (e) => (_t("data-v-1550b11b"), e = e(), Tt(), e), ur = /* @__PURE__ *
5667
5688
  class: "left-title"
5668
5689
  }, Ar = { class: "title" };
5669
5690
  function _r(e, o, t, n, a, l) {
5670
- return M(), F("div", {
5691
+ return O(), z("div", {
5671
5692
  class: "ecan-border",
5672
5693
  style: q(e.style),
5673
5694
  onClick: o[0] || (o[0] = (...i) => e.click && e.click(...i))
5674
5695
  }, [
5675
- e.mode === "no-title" ? (M(), F("div", {
5696
+ e.mode === "no-title" ? (O(), z("div", {
5676
5697
  key: 0,
5677
5698
  class: "no-title",
5678
5699
  style: q(e.borderStyle)
5679
5700
  }, [
5680
- e.useBorderModify ? (M(), F(De, { key: 0 }, [
5701
+ e.useBorderModify ? (O(), z(De, { key: 0 }, [
5681
5702
  ur,
5682
5703
  fr,
5683
5704
  mr,
5684
5705
  hr
5685
5706
  ], 64)) : ke("", !0)
5686
5707
  ], 4)) : ke("", !0),
5687
- e.mode === "top-title" ? (M(), F("div", {
5708
+ e.mode === "top-title" ? (O(), z("div", {
5688
5709
  key: 1,
5689
5710
  class: "top-title",
5690
5711
  style: q(e.borderStyle)
@@ -5701,7 +5722,7 @@ function _r(e, o, t, n, a, l) {
5701
5722
  wr,
5702
5723
  xr
5703
5724
  ], 4)) : ke("", !0),
5704
- e.mode === "left-title" ? (M(), F("div", kr, [
5725
+ e.mode === "left-title" ? (O(), z("div", kr, [
5705
5726
  X("div", Ar, [
5706
5727
  X("span", null, Ce(e.title), 1)
5707
5728
  ])
@@ -5749,7 +5770,7 @@ const Tr = /* @__PURE__ */ oe(rr, [["render", _r], ["__scopeId", "data-v-1550b11
5749
5770
  ...$n
5750
5771
  },
5751
5772
  setup(e) {
5752
- const o = ue(e), t = _(0);
5773
+ const o = ue(e), t = T(0);
5753
5774
  ee(() => e.activeKey, (d) => {
5754
5775
  t.value = d;
5755
5776
  }, {
@@ -5760,18 +5781,18 @@ const Tr = /* @__PURE__ */ oe(rr, [["render", _r], ["__scopeId", "data-v-1550b11
5760
5781
  });
5761
5782
  let a = null;
5762
5783
  const l = () => {
5763
- const d = Array.isArray(C(i)) ? C(i).length - 1 : 0;
5784
+ const d = Array.isArray(w(i)) ? w(i).length - 1 : 0;
5764
5785
  e.autoSwitch && d > 0 && (a = setInterval(() => {
5765
- const r = C(t) + 1;
5766
- r <= d ? t.value = r : t.value = 0, s.value = C(i)[C(t)], m();
5786
+ const r = w(t) + 1;
5787
+ r <= d ? t.value = r : t.value = 0, s.value = w(i)[w(t)], m();
5767
5788
  }, e.autoSwitchInterval * 1e3));
5768
5789
  };
5769
5790
  Je(() => {
5770
- C(n) !== "design" && l();
5791
+ w(n) !== "design" && l();
5771
5792
  }), Bt(() => {
5772
5793
  clearInterval(a);
5773
5794
  });
5774
- const i = _([]), s = _({});
5795
+ const i = T([]), s = T({});
5775
5796
  ee(() => e.data, (d) => {
5776
5797
  i.value = d, s.value = Array.isArray(d) && d.length > 0 ? d[0] : {};
5777
5798
  }, {
@@ -5793,7 +5814,7 @@ const Tr = /* @__PURE__ */ oe(rr, [["render", _r], ["__scopeId", "data-v-1550b11
5793
5814
  emitRefreshPage: () => {
5794
5815
  }
5795
5816
  }), p = u("tabChange", (d, r) => {
5796
- r !== C(t) && (s.value = d, t.value = r, m());
5817
+ r !== w(t) && (s.value = d, t.value = r, m());
5797
5818
  });
5798
5819
  return Se(e, {
5799
5820
  tabChange: p
@@ -5809,7 +5830,7 @@ const Tr = /* @__PURE__ */ oe(rr, [["render", _r], ["__scopeId", "data-v-1550b11
5809
5830
  });
5810
5831
  const Or = ["onClick"];
5811
5832
  function Er(e, o, t, n, a, l) {
5812
- return M(), F("div", {
5833
+ return O(), z("div", {
5813
5834
  class: "ecan-tabs",
5814
5835
  style: q(e.style)
5815
5836
  }, [
@@ -5822,7 +5843,7 @@ function Er(e, o, t, n, a, l) {
5822
5843
  flexDirection: e.tabFlexDirection
5823
5844
  })
5824
5845
  }, [
5825
- (M(!0), F(De, null, Fe(e.myData, (i, s) => (M(), F("div", {
5846
+ (O(!0), z(De, null, Fe(e.myData, (i, s) => (O(), z("div", {
5826
5847
  class: "tab",
5827
5848
  style: q({
5828
5849
  padding: `5px ${e.tabHorizontalPadding}`,
@@ -5871,7 +5892,7 @@ const Dr = /* @__PURE__ */ oe(Mr, [["render", Er], ["__scopeId", "data-v-a2045b9
5871
5892
  onClick: () => {
5872
5893
  if (!e.linkPage && !e.href)
5873
5894
  return;
5874
- const l = e.linkPage || "", i = Zo(C(n), l), s = e.href;
5895
+ const l = e.linkPage || "", i = Zo(w(n), l), s = e.href;
5875
5896
  let c = s || i;
5876
5897
  c = ye(c);
5877
5898
  const u = e.target;
@@ -5885,12 +5906,12 @@ const Dr = /* @__PURE__ */ oe(Mr, [["render", Er], ["__scopeId", "data-v-a2045b9
5885
5906
  });
5886
5907
  const Rr = ["src"];
5887
5908
  function $r(e, o, t, n, a, l) {
5888
- return e.myImgUrl !== "" ? (M(), F("img", {
5909
+ return e.myImgUrl !== "" ? (O(), z("img", {
5889
5910
  key: 0,
5890
5911
  style: q(e.style),
5891
5912
  src: e.myImgUrl,
5892
5913
  onClick: o[0] || (o[0] = (...i) => e.onClick && e.onClick(...i))
5893
- }, null, 12, Rr)) : (M(), F("div", {
5914
+ }, null, 12, Rr)) : (O(), z("div", {
5894
5915
  key: 1,
5895
5916
  class: "image-placeholder",
5896
5917
  style: q(e.style)
@@ -5916,7 +5937,7 @@ const Nr = /* @__PURE__ */ oe(zr, [["render", $r], ["__scopeId", "data-v-ef7a7be
5916
5937
  }), n = j(() => {
5917
5938
  let a = ye(e.link);
5918
5939
  if (e.linkType === "erd" && a != null) {
5919
- let l = C(t);
5940
+ let l = w(t);
5920
5941
  l[l.length - 1] === "/" ? l += "erdReport" : l += "/erdReport", a = `${jl || l}?_t=0&uid=${a}`;
5921
5942
  }
5922
5943
  return a;
@@ -5929,11 +5950,11 @@ const Nr = /* @__PURE__ */ oe(zr, [["render", $r], ["__scopeId", "data-v-ef7a7be
5929
5950
  });
5930
5951
  const Ur = ["src"];
5931
5952
  function Gr(e, o, t, n, a, l) {
5932
- return e.myLink ? (M(), F("iframe", {
5953
+ return e.myLink ? (O(), z("iframe", {
5933
5954
  key: 0,
5934
5955
  src: e.myLink,
5935
5956
  style: q(e.style)
5936
- }, null, 12, Ur)) : (M(), F("div", {
5957
+ }, null, 12, Ur)) : (O(), z("div", {
5937
5958
  key: 1,
5938
5959
  class: "iframe-placeholder",
5939
5960
  style: q(e.style)
@@ -6036,10 +6057,10 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
6036
6057
  default:
6037
6058
  return 55;
6038
6059
  }
6039
- }), a = j(() => e.scrollX), l = j(() => parseFloat(e.height) - C(n)), i = _([]), s = _([]), c = _([]), u = _([]), g = _(0), m = _(1), p = j(() => e.paginationPageSize), d = Kn([]), r = (E = []) => {
6060
+ }), a = j(() => e.scrollX), l = j(() => parseFloat(e.height) - w(n)), i = T([]), s = T([]), c = T([]), u = T([]), g = T(0), m = T(1), p = j(() => e.paginationPageSize), d = Kn([]), r = (E = []) => {
6040
6061
  if (Array.isArray(E) && E.length > 0) {
6041
- const R = E.length, J = e.columnsFixedNum;
6042
- for (let Q = 0; Q < R; Q++) {
6062
+ const $ = E.length, J = e.columnsFixedNum;
6063
+ for (let Q = 0; Q < $; Q++) {
6043
6064
  const G = E[Q];
6044
6065
  Q < J ? G.fixed = "left" : G.fixed = !1;
6045
6066
  const {
@@ -6069,10 +6090,10 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
6069
6090
  borderBottomColor: e.borderColor
6070
6091
  },
6071
6092
  class: {
6072
- highlight: C(h) === Mt && e.clickHighlight
6093
+ highlight: w(y) === Mt && e.clickHighlight
6073
6094
  },
6074
6095
  onClick: B("click", () => {
6075
- const Xt = e.id, Zn = T(Xt);
6096
+ const Xt = e.id, Zn = L(Xt);
6076
6097
  Ne = {
6077
6098
  dataIndex: pe,
6078
6099
  title: xe,
@@ -6082,7 +6103,7 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
6082
6103
  }), Array.isArray(G.children) && r(G.children);
6083
6104
  }
6084
6105
  }
6085
- }, f = (E = []) => (e.isUseSeq && E.unshift({
6106
+ }, h = (E = []) => (e.isUseSeq && E.unshift({
6086
6107
  title: "序号",
6087
6108
  dataIndex: "SEQ",
6088
6109
  align: "center"
@@ -6100,19 +6121,19 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
6100
6121
  e.cellBackgroundColor,
6101
6122
  e.borderColor
6102
6123
  ], () => {
6103
- i.value = f(Et(e.columns));
6124
+ i.value = h(Et(e.columns));
6104
6125
  }, {
6105
6126
  immediate: !0,
6106
6127
  deep: !0
6107
- }), ee(() => [e.data, e.dataType], ([E, R]) => {
6108
- R === "static" && (s.value = E);
6128
+ }), ee(() => [e.data, e.dataType], ([E, $]) => {
6129
+ $ === "static" && (s.value = E);
6109
6130
  }, {
6110
6131
  immediate: !0
6111
6132
  });
6112
- const S = _({}), v = (E) => {
6133
+ const C = T({}), v = (E) => {
6113
6134
  if (Array.isArray(E)) {
6114
- const R = E.length, J = d, Q = J.length, G = {};
6115
- for (let se = 0; se < R; se++) {
6135
+ const $ = E.length, J = d, Q = J.length, G = {};
6136
+ for (let se = 0; se < $; se++) {
6116
6137
  const pe = E[se];
6117
6138
  for (let xe = 0; xe < Q; xe++) {
6118
6139
  const ge = J[xe];
@@ -6130,28 +6151,28 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
6130
6151
  const pe = G[se], xe = Array.from(pe);
6131
6152
  ie[se] = xe.map((ge) => ({ label: ge, value: ge }));
6132
6153
  }
6133
- S.value = ie;
6154
+ C.value = ie;
6134
6155
  }
6135
6156
  };
6136
6157
  ee(() => [e.isReverse, i.value, s.value], () => {
6137
- const E = C(i), R = C(s);
6138
- if (v(R), e.isReverse) {
6139
- const { columns: J, dataSource: Q } = w(Et(E), Et(R));
6158
+ const E = w(i), $ = w(s);
6159
+ if (v($), e.isReverse) {
6160
+ const { columns: J, dataSource: Q } = S(Et(E), Et($));
6140
6161
  c.value = J, u.value = Q;
6141
6162
  } else
6142
- c.value = E, u.value = R;
6163
+ c.value = E, u.value = $;
6143
6164
  }, {
6144
6165
  immediate: !0
6145
6166
  });
6146
- const w = (E, R) => {
6167
+ const S = (E, $) => {
6147
6168
  const J = E[0], Q = [{
6148
6169
  title: J.title,
6149
6170
  dataIndex: "col0",
6150
6171
  key: "col0",
6151
6172
  align: "center"
6152
6173
  }];
6153
- for (let ie = 0; ie < R.length; ie++) {
6154
- const se = R[ie], pe = "col" + (ie + 1);
6174
+ for (let ie = 0; ie < $.length; ie++) {
6175
+ const se = $[ie], pe = "col" + (ie + 1);
6155
6176
  Q.push({
6156
6177
  title: se[J.dataIndex],
6157
6178
  dataIndex: pe,
@@ -6162,8 +6183,8 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
6162
6183
  const G = [];
6163
6184
  for (let ie = 1; ie < E.length; ie++) {
6164
6185
  const se = E[ie], pe = { col0: se.title };
6165
- for (let xe = 0; xe < R.length; xe++) {
6166
- const ge = R[xe];
6186
+ for (let xe = 0; xe < $.length; xe++) {
6187
+ const ge = $[xe];
6167
6188
  pe[`col${xe + 1}`] = ge[se.dataIndex];
6168
6189
  }
6169
6190
  G.push(pe);
@@ -6172,49 +6193,49 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
6172
6193
  columns: Q,
6173
6194
  dataSource: G
6174
6195
  };
6175
- }, O = _(""), L = Oe(e), $ = _(!1), b = async (E = !0, R = {}) => {
6196
+ }, M = T(""), x = Oe(e), D = T(!1), f = async (E = !0, $ = {}) => {
6176
6197
  var J;
6177
6198
  try {
6178
- E && ($.value = !0), C(O) && (R.orderCondition = C(O)), e.paginationShow && (R = {
6179
- pageNum: C(m),
6180
- pageSize: C(p),
6199
+ E && (D.value = !0), w(M) && ($.orderCondition = w(M)), e.paginationShow && ($ = {
6200
+ pageNum: w(m),
6201
+ pageSize: w(p),
6181
6202
  layer: "1",
6182
- ...R
6203
+ ...$
6183
6204
  });
6184
- const Q = await L(R), { rows: G = [], total: ie = 0 } = ((J = Q == null ? void 0 : Q.data) == null ? void 0 : J.data) || {};
6205
+ const Q = await x($), { rows: G = [], total: ie = 0 } = ((J = Q == null ? void 0 : Q.data) == null ? void 0 : J.data) || {};
6185
6206
  g.value = ie, Array.isArray(G) && (s.value = G);
6186
6207
  } catch (Q) {
6187
6208
  console.error(Q);
6188
6209
  } finally {
6189
- $.value = !1;
6210
+ D.value = !1;
6190
6211
  }
6191
- }, k = ({ current: E }, R, J) => {
6212
+ }, A = ({ current: E }, $, J) => {
6192
6213
  if (m.value = E, J && Object.keys(J).length > 0) {
6193
6214
  const { field: Q, order: G } = J, se = {
6194
6215
  ascend: "asc",
6195
6216
  descend: "desc"
6196
6217
  }[G];
6197
- Q != null && se != null && (O.value = Q + " " + se, m.value = 1);
6218
+ Q != null && se != null && (M.value = Q + " " + se, m.value = 1);
6198
6219
  }
6199
6220
  I(!1);
6200
- }, A = j(() => {
6201
- const E = e.simple, R = [e.paginationPosition];
6221
+ }, _ = j(() => {
6222
+ const E = e.simple, $ = [e.paginationPosition];
6202
6223
  return e.paginationShow && {
6203
6224
  simple: E,
6204
- position: R,
6205
- total: C(g),
6206
- current: C(m),
6207
- pageSize: C(p),
6225
+ position: $,
6226
+ total: w(g),
6227
+ current: w(m),
6228
+ pageSize: w(p),
6208
6229
  showSizeChanger: !1
6209
6230
  };
6210
- }), D = (E) => +E == 1 ? "是" : +E == 0 ? "否" : E, W = (E, R) => R == null || R === "" ? E : {
6231
+ }), F = (E) => +E == 1 ? "是" : +E == 0 ? "否" : E, W = (E, $) => $ == null || $ === "" ? E : {
6211
6232
  money: Qt,
6212
6233
  percentage: wt,
6213
6234
  contrast: wt,
6214
- boolean: D
6215
- }[R](E) || "", le = (E, R) => {
6235
+ boolean: F
6236
+ }[$](E) || "", le = (E, $) => {
6216
6237
  const J = parseFloat(E + "");
6217
- if (R !== "contrast")
6238
+ if ($ !== "contrast")
6218
6239
  return "";
6219
6240
  switch (!0) {
6220
6241
  case J >= 0:
@@ -6222,67 +6243,67 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
6222
6243
  case J < 0:
6223
6244
  return "goDown";
6224
6245
  }
6225
- }, B = be(e), { getGlobalModel: T, setGlobalModel: H } = V(we, {
6246
+ }, B = be(e), { getGlobalModel: L, setGlobalModel: H } = V(we, {
6226
6247
  // @ts-ignore
6227
6248
  // eslint-disable-next-line no-void
6228
6249
  getGlobalModel: (E) => {
6229
6250
  },
6230
6251
  // @ts-ignore
6231
6252
  // eslint-disable-next-line no-void
6232
- setGlobalModel: (E, R) => {
6253
+ setGlobalModel: (E, $) => {
6233
6254
  }
6234
- }), N = (E = [], R = []) => {
6255
+ }), N = (E = [], $ = []) => {
6235
6256
  const J = E.map((Q) => ({ title: Q, dataIndex: Q, key: Q }));
6236
- i.value = f(J), s.value = R;
6237
- }, P = ht(e), x = async () => {
6238
- var E, R, J, Q;
6257
+ i.value = h(J), s.value = $;
6258
+ }, P = ht(e), k = async () => {
6259
+ var E, $, J, Q;
6239
6260
  try {
6240
- $.value = !0;
6261
+ D.value = !0;
6241
6262
  const G = await P();
6242
- N((R = (E = G == null ? void 0 : G.data) == null ? void 0 : E.data) == null ? void 0 : R.columns, (Q = (J = G == null ? void 0 : G.data) == null ? void 0 : J.data) == null ? void 0 : Q.rows);
6263
+ N(($ = (E = G == null ? void 0 : G.data) == null ? void 0 : E.data) == null ? void 0 : $.columns, (Q = (J = G == null ? void 0 : G.data) == null ? void 0 : J.data) == null ? void 0 : Q.rows);
6243
6264
  } catch (G) {
6244
6265
  console.error(G);
6245
6266
  } finally {
6246
- $.value = !1;
6267
+ D.value = !1;
6247
6268
  }
6248
- }, h = _(-1), y = (E, R) => ({
6269
+ }, y = T(-1), b = (E, $) => ({
6249
6270
  onClick: B("rowClick", () => {
6250
- const J = e.id, Q = T(J);
6251
- H(J, { ...Q, RECORD: E }), h.value = R;
6271
+ const J = e.id, Q = L(J);
6272
+ H(J, { ...Q, RECORD: E }), y.value = $;
6252
6273
  })
6253
6274
  }), I = (E = !0) => {
6254
6275
  switch (e.dataType) {
6255
6276
  case "request":
6256
- b(E);
6277
+ f(E);
6257
6278
  break;
6258
6279
  case "indicator":
6259
- x();
6280
+ k();
6260
6281
  break;
6261
6282
  }
6262
- }, z = () => {
6263
- const E = e.id, R = T(E);
6264
- H(E, { ...R, RECORD: "" });
6283
+ }, R = () => {
6284
+ const E = e.id, $ = L(E);
6285
+ H(E, { ...$, RECORD: "" });
6265
6286
  }, Y = j(() => {
6266
- const E = C(c), R = [];
6287
+ const E = w(c), $ = [];
6267
6288
  let J = 0;
6268
6289
  for (let G = 0; G < E.length; G++) {
6269
6290
  const ie = E[G], { isCalcTotal: se } = ie;
6270
- e.isUseSeq && G === 0 ? R.push({
6291
+ e.isUseSeq && G === 0 ? $.push({
6271
6292
  ...ie,
6272
6293
  total: "小计"
6273
- }) : se ? (R.push({
6294
+ }) : se ? ($.push({
6274
6295
  ...ie,
6275
6296
  index: G,
6276
6297
  total: 0
6277
- }), J++) : R.push({
6298
+ }), J++) : $.push({
6278
6299
  ...ie
6279
6300
  });
6280
6301
  }
6281
6302
  if (J === 0)
6282
6303
  return [];
6283
- const Q = C(u);
6284
- for (let G = 0; G < R.length; G++) {
6285
- const ie = R[G];
6304
+ const Q = w(u);
6305
+ for (let G = 0; G < $.length; G++) {
6306
+ const ie = $[G];
6286
6307
  let se = 0;
6287
6308
  const { isCalcTotal: pe, dataIndex: xe } = ie;
6288
6309
  if (pe === !0) {
@@ -6293,7 +6314,7 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
6293
6314
  ie.total = se;
6294
6315
  }
6295
6316
  }
6296
- return R;
6317
+ return $;
6297
6318
  }), { setRequest: ce } = V(_e, {
6298
6319
  setRequest: (E) => {
6299
6320
  }
@@ -6305,27 +6326,27 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
6305
6326
  }), o({
6306
6327
  refreshData: I
6307
6328
  });
6308
- const ne = (E = "", R) => ye(E, R), ve = (E) => {
6329
+ const ne = (E = "", $) => ye(E, $), ve = (E) => {
6309
6330
  if (E !== "event")
6310
6331
  return {
6311
6332
  self: "_self",
6312
6333
  blank: "_blank"
6313
6334
  }[E];
6314
- }, fe = (E, R = "") => {
6335
+ }, fe = (E, $ = "") => {
6315
6336
  E === "event" && window.parent.postMessage({
6316
6337
  type: "openPage",
6317
- url: R
6338
+ url: $
6318
6339
  }, "*");
6319
- }, de = (E, R) => {
6320
- E(R.filterCheckboxGroupValue);
6321
- }, he = (E, R) => {
6322
- E({ confirm: !0 }), R.filterOptionsInputValue = "", R.filterCheckboxGroupValue = [];
6340
+ }, de = (E, $) => {
6341
+ E($.filterCheckboxGroupValue);
6342
+ }, he = (E, $) => {
6343
+ E({ confirm: !0 }), $.filterOptionsInputValue = "", $.filterCheckboxGroupValue = [];
6323
6344
  }, $e = () => {
6324
6345
  }, Wn = (E) => {
6325
- const R = E.dataIndex;
6326
- if (typeof R == "string") {
6327
- let J = C(S)[R];
6328
- const Q = C(E.filterOptionsInputValue).trim();
6346
+ const $ = E.dataIndex;
6347
+ if (typeof $ == "string") {
6348
+ let J = w(C)[$];
6349
+ const Q = w(E.filterOptionsInputValue).trim();
6329
6350
  return Array.isArray(J) ? (J = J.filter((G) => typeof G.label == "string" ? G.label.toLowerCase().includes(Q.toLowerCase()) : !0), J) : [];
6330
6351
  }
6331
6352
  return [];
@@ -6337,44 +6358,44 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
6337
6358
  content: "正在导出...",
6338
6359
  duration: 0
6339
6360
  });
6340
- let R = [];
6361
+ let $ = [];
6341
6362
  if (e.dataType === "static")
6342
- R = e.data;
6363
+ $ = e.data;
6343
6364
  else if (e.dataType === "request") {
6344
6365
  const Le = { layer: "1" };
6345
- C(O) && (Le.orderCondition = C(O));
6346
- const Ne = await L(Le);
6347
- R = ((Be = (ge = Ne == null ? void 0 : Ne.data) == null ? void 0 : ge.data) == null ? void 0 : Be.rows) || {};
6366
+ w(M) && (Le.orderCondition = w(M));
6367
+ const Ne = await x(Le);
6368
+ $ = ((Be = (ge = Ne == null ? void 0 : Ne.data) == null ? void 0 : ge.data) == null ? void 0 : Be.rows) || {};
6348
6369
  }
6349
- const J = C(c), Q = [], G = [];
6370
+ const J = w(c), Q = [], G = [];
6350
6371
  J == null || J.forEach((Le) => {
6351
6372
  Q.push(Le.dataIndex), G.push(Le.title);
6352
6373
  });
6353
- const ie = R.map((Le) => Mo(Le, Q)), se = yt.book_new(), pe = yt.aoa_to_sheet([G]), xe = yt.sheet_add_json(pe, ie, { skipHeader: !0, origin: "A2" });
6374
+ const ie = $.map((Le) => Mo(Le, Q)), se = yt.book_new(), pe = yt.aoa_to_sheet([G]), xe = yt.sheet_add_json(pe, ie, { skipHeader: !0, origin: "A2" });
6354
6375
  yt.book_append_sheet(se, xe, "sheet"), ka(se, "表格数据.xlsx"), Ze.success({ key: E, content: "导出成功" });
6355
- }, Hn = (E, R = 2) => {
6376
+ }, Hn = (E, $ = 2) => {
6356
6377
  const J = +E * 100;
6357
- return isNaN(J) || J <= 0 ? 0 : J >= 100 ? 100 : J.toFixed(R);
6378
+ return isNaN(J) || J <= 0 ? 0 : J >= 100 ? 100 : J.toFixed($);
6358
6379
  };
6359
6380
  return Se(e, {
6360
- resetRecord: z,
6381
+ resetRecord: R,
6361
6382
  refreshData: I,
6362
6383
  exportTableData: Kt
6363
6384
  }), {
6364
6385
  x: a,
6365
6386
  y: l,
6366
6387
  style: t,
6367
- customRow: y,
6368
- pagination: A,
6388
+ customRow: b,
6389
+ pagination: _,
6369
6390
  formatFn: W,
6370
6391
  contrastClass: le,
6371
- tableChange: k,
6392
+ tableChange: A,
6372
6393
  summaryList: Y,
6373
- loading: $,
6394
+ loading: D,
6374
6395
  onTouchHrefEvent: fe,
6375
6396
  handleHref: ne,
6376
6397
  handleHrefTarget: ve,
6377
- useRowIndex: h,
6398
+ useRowIndex: y,
6378
6399
  tableColumns: c,
6379
6400
  tableDataSource: u,
6380
6401
  useFilterOptions: Wn,
@@ -6398,13 +6419,13 @@ const Hr = {
6398
6419
  };
6399
6420
  function tc(e, o, t, n, a, l) {
6400
6421
  const i = Z("a-button"), s = Z("a-input"), c = Z("a-checkbox-group"), u = Z("a-table-summary-cell"), g = Z("a-table-summary-row"), m = Z("a-table-summary"), p = Z("a-table"), d = Z("skeleton");
6401
- return M(), F("div", {
6422
+ return O(), z("div", {
6402
6423
  class: "ecan-table",
6403
6424
  style: q(e.style)
6404
6425
  }, [
6405
6426
  U(d, { loading: e.loading }, {
6406
6427
  default: K(() => [
6407
- e.isUseExport ? (M(), F("div", Hr, [
6428
+ e.isUseExport ? (O(), z("div", Hr, [
6408
6429
  U(i, {
6409
6430
  class: "export-button",
6410
6431
  onClick: e.exportTableData
@@ -6429,7 +6450,7 @@ function tc(e, o, t, n, a, l) {
6429
6450
  pagination: e.pagination,
6430
6451
  onChange: e.tableChange
6431
6452
  }, {
6432
- customFilterDropdown: K(({ column: r, selectedKeys: f, setSelectedKeys: S, confirm: v, clearFilters: w }) => [
6453
+ customFilterDropdown: K(({ column: r, selectedKeys: h, setSelectedKeys: C, confirm: v, clearFilters: S }) => [
6433
6454
  X("div", {
6434
6455
  class: "ecan-table-filter",
6435
6456
  style: q({
@@ -6438,17 +6459,17 @@ function tc(e, o, t, n, a, l) {
6438
6459
  }, [
6439
6460
  U(s, {
6440
6461
  value: r.filterOptionsInputValue,
6441
- "onUpdate:value": (O) => r.filterOptionsInputValue = O,
6462
+ "onUpdate:value": (M) => r.filterOptionsInputValue = M,
6442
6463
  placeholder: "请输入关键字",
6443
6464
  class: "filter-input",
6444
6465
  onChange: e.onSearchFilterOptions
6445
6466
  }, null, 8, ["value", "onUpdate:value", "onChange"]),
6446
6467
  U(c, {
6447
6468
  value: r.filterCheckboxGroupValue,
6448
- "onUpdate:value": (O) => r.filterCheckboxGroupValue = O,
6469
+ "onUpdate:value": (M) => r.filterCheckboxGroupValue = M,
6449
6470
  class: "filter-checkbox",
6450
6471
  options: e.useFilterOptions(r),
6451
- onChange: (O) => e.useSetSelectedKeys(S, r)
6472
+ onChange: (M) => e.useSetSelectedKeys(C, r)
6452
6473
  }, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
6453
6474
  X("div", null, [
6454
6475
  U(i, {
@@ -6465,7 +6486,7 @@ function tc(e, o, t, n, a, l) {
6465
6486
  U(i, {
6466
6487
  size: "small",
6467
6488
  style: { width: "90px" },
6468
- onClick: _o((O) => e.onResetFilter(w, r), ["stop"])
6489
+ onClick: _o((M) => e.onResetFilter(S, r), ["stop"])
6469
6490
  }, {
6470
6491
  default: K(() => [
6471
6492
  Yr
@@ -6475,55 +6496,55 @@ function tc(e, o, t, n, a, l) {
6475
6496
  ])
6476
6497
  ], 4)
6477
6498
  ]),
6478
- bodyCell: K(({ column: r, index: f, text: S, record: v }) => [
6479
- r.dataIndex === "SEQ" ? (M(), F("span", Qr, Ce(f + 1), 1)) : r.dataIndex === "ACTION" ? (M(), F("div", Kr, [
6480
- (M(!0), F(De, null, Fe(e.actionList, (w, O) => (M(), F("div", {
6499
+ bodyCell: K(({ column: r, index: h, text: C, record: v }) => [
6500
+ r.dataIndex === "SEQ" ? (O(), z("span", Qr, Ce(h + 1), 1)) : r.dataIndex === "ACTION" ? (O(), z("div", Kr, [
6501
+ (O(!0), z(De, null, Fe(e.actionList, (S, M) => (O(), z("div", {
6481
6502
  class: "action",
6482
- key: O
6503
+ key: M
6483
6504
  }, [
6484
6505
  X("a", {
6485
- href: e.handleHref(w.href, v),
6486
- target: e.handleHrefTarget(w.target),
6506
+ href: e.handleHref(S.href, v),
6507
+ target: e.handleHrefTarget(S.target),
6487
6508
  style: q({
6488
- color: w.color,
6509
+ color: S.color,
6489
6510
  fontSize: e.fontSize,
6490
6511
  fontWeight: e.fontWeight
6491
6512
  }),
6492
- onClick: (L) => e.onTouchHrefEvent(w.target, e.handleHref(w.href, v))
6493
- }, Ce(w.title), 13, Xr)
6513
+ onClick: (x) => e.onTouchHrefEvent(S.target, e.handleHref(S.href, v))
6514
+ }, Ce(S.title), 13, Xr)
6494
6515
  ]))), 128))
6495
- ])) : r.format === "progress" ? (M(), F("div", ec, [
6516
+ ])) : r.format === "progress" ? (O(), z("div", ec, [
6496
6517
  X("div", {
6497
6518
  class: "progress",
6498
6519
  style: q({
6499
6520
  background: r.progressColor || "#1890ff",
6500
6521
  height: r.progressWidth || "18px",
6501
- width: `${e.handleProgressText(S, r.progressTextDecimalPlaces)}%`
6522
+ width: `${e.handleProgressText(C, r.progressTextDecimalPlaces)}%`
6502
6523
  })
6503
6524
  }, null, 4),
6504
6525
  X("div", {
6505
6526
  class: "progress-text",
6506
6527
  style: q({
6507
- color: e.handleProgressText(S) < 100 ? r.progressTextColor || "#333" : r.progressFinishedTextColor || "#fff"
6528
+ color: e.handleProgressText(C) < 100 ? r.progressTextColor || "#333" : r.progressFinishedTextColor || "#fff"
6508
6529
  })
6509
- }, Ce(e.handleProgressText(S, r.progressTextDecimalPlaces)) + "% ", 5)
6510
- ])) : (M(), F("div", {
6530
+ }, Ce(e.handleProgressText(C, r.progressTextDecimalPlaces)) + "% ", 5)
6531
+ ])) : (O(), z("div", {
6511
6532
  key: 3,
6512
- class: Ut([e.contrastClass(S, r.format)]),
6533
+ class: Ut([e.contrastClass(C, r.format)]),
6513
6534
  style: q({
6514
6535
  fontSize: e.fontSize,
6515
6536
  fontWeight: e.fontWeight
6516
6537
  })
6517
- }, Ce(r.format != null ? e.formatFn(S, r.format) : S), 7))
6538
+ }, Ce(r.format != null ? e.formatFn(C, r.format) : C), 7))
6518
6539
  ]),
6519
6540
  summary: K(() => [
6520
- e.summaryList.length > 0 ? (M(), ze(m, { key: 0 }, {
6541
+ e.summaryList.length > 0 ? (O(), ze(m, { key: 0 }, {
6521
6542
  default: K(() => [
6522
6543
  U(g, null, {
6523
6544
  default: K(() => [
6524
- (M(!0), F(De, null, Fe(e.summaryList, (r, f) => (M(), ze(u, {
6525
- key: f,
6526
- index: f,
6545
+ (O(!0), z(De, null, Fe(e.summaryList, (r, h) => (O(), ze(u, {
6546
+ key: h,
6547
+ index: h,
6527
6548
  style: q({
6528
6549
  backgroundColor: e.cellBackgroundColor,
6529
6550
  textAlign: r.cellAlign || "center",
@@ -6615,8 +6636,8 @@ const ac = te({
6615
6636
  ...Vn
6616
6637
  },
6617
6638
  setup(e) {
6618
- const o = ue(e, ["backgroundImage"]), t = _(), n = j(() => Ve(e.geoBackgroundImage)), a = j(() => Ve(e.backgroundImage)), l = j(() => e.geoBackgroundImage ? {
6619
- image: C(t),
6639
+ const o = ue(e, ["backgroundImage"]), t = T(), n = j(() => Ve(e.geoBackgroundImage)), a = j(() => Ve(e.backgroundImage)), l = j(() => e.geoBackgroundImage ? {
6640
+ image: w(t),
6620
6641
  repeat: e.geoBackgroundImageRepeat
6621
6642
  } : e.geoItemStyleAreaColor), i = j(() => {
6622
6643
  const g = e.symbolImage;
@@ -6636,7 +6657,7 @@ const ac = te({
6636
6657
  style: {
6637
6658
  width: parseFloat(e.width),
6638
6659
  height: parseFloat(e.height),
6639
- image: C(a)
6660
+ image: w(a)
6640
6661
  },
6641
6662
  top: "center"
6642
6663
  }
@@ -6657,7 +6678,7 @@ const ac = te({
6657
6678
  },
6658
6679
  itemStyle: {
6659
6680
  // 地图上板块属性
6660
- areaColor: C(l),
6681
+ areaColor: w(l),
6661
6682
  borderColor: e.geoItemStyleBorderColor,
6662
6683
  borderWidth: e.geoItemStyleBorderWidth,
6663
6684
  shadowColor: e.geoItemStyleShadowColor,
@@ -6684,7 +6705,7 @@ const ac = te({
6684
6705
  itemStyle: {
6685
6706
  color: e.itemStyleColor
6686
6707
  },
6687
- symbol: C(i),
6708
+ symbol: w(i),
6688
6709
  symbolSize: [e.symbolWidth, e.symbolHeight],
6689
6710
  label: {
6690
6711
  show: e.labelShow,
@@ -6703,7 +6724,7 @@ const ac = te({
6703
6724
  }
6704
6725
  ]
6705
6726
  };
6706
- }), c = _(!1), u = async () => {
6727
+ }), c = T(!1), u = async () => {
6707
6728
  var m;
6708
6729
  const g = e.mapJson;
6709
6730
  if (g != null && g.path) {
@@ -6729,11 +6750,11 @@ const ac = te({
6729
6750
  const lc = ["src"];
6730
6751
  function ic(e, o, t, n, a, l) {
6731
6752
  const i = Z("echarts");
6732
- return M(), F("div", {
6753
+ return O(), z("div", {
6733
6754
  class: "ecan-map",
6734
6755
  style: q(e.style)
6735
6756
  }, [
6736
- e.isLoadedData ? (M(), ze(i, {
6757
+ e.isLoadedData ? (O(), ze(i, {
6737
6758
  key: 0,
6738
6759
  option: e.option,
6739
6760
  "update-options": { notMerge: !0 },