@ecan-bi/indicator-library 1.1.25 → 1.1.27

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.
@@ -1,10 +1,10 @@
1
- /*! @ecan-bi/indicator-library@1.1.25 */
1
+ /*! @ecan-bi/indicator-library@1.1.27 */
2
2
  import { createVNode as p, defineComponent as fe, inject as ee, unref as a, computed as X, ref as z, watch as Ae, resolveComponent as S, openBlock as m, createBlock as j, withCtx as f, createElementVNode as G, createTextVNode as B, createElementBlock as N, Fragment as le, renderList as we, toDisplayString as ue, resolveDirective as co, withModifiers as xe, withDirectives as zt, createCommentVNode as J, onMounted as qe, vShow as Un, normalizeStyle as Ne, pushScopeId as st, popScopeId as ut, provide as Jt, createSlots as Fa, normalizeClass as to, reactive as fl, mergeProps as Ut, withKeys as ml, nextTick as zo, onBeforeUnmount as vl, onUnmounted as Ia, Teleport as bl, Transition as hl, toRaw as yl, resolveDynamicComponent as mn, toHandlers as Ho, defineAsyncComponent as gl } from "vue";
3
3
  import { Modal as bt, Button as Dt, Select as Me, SelectOption as ht, Input as Je, Checkbox as po, Collapse as fo, CollapsePanel as mo, Tag as Cl, CheckableTag as _l, message as We, DatePicker as wl, Dropdown as Hn, Menu as Wn, MenuItem as Yn, Popover as yn, Tabs as Kn, TabPane as qn, RadioGroup as vo, Radio as kl, InputNumber as Ft, Row as Al, Col as Sl, Textarea as bo, InputSearch as Tl, Tree as Ol, RadioButton as $a, Form as El, FormItem as xa, Tooltip as Ll, Card as Dl, SubMenu as Fl, MenuDivider as Il, Switch as Na, Slider as $l, Table as Xn } from "ant-design-vue";
4
- import { R as _t, I as wt, G as Pe, U as Ze, a as rt, _ as be, c as Ma, d as ct, C as Qn, S as it, e as ho, b as Pa, y as Ee, m as Ht, f as Ba, g as Va, h as Ra, T as xl, i as Ua, p as Nl, M as Ml, j as ja, k as Pl, E as Bl, u as Vl, l as Rl, n as Ul, P as jl, o as Gl } from "./index-a3448397.mjs";
4
+ import { R as _t, I as wt, G as Pe, U as Ze, a as rt, _ as be, c as Ma, d as ct, C as Qn, S as it, e as ho, b as Pa, y as Ee, m as Ht, f as Ba, g as Va, h as Ra, T as xl, i as Ua, p as Nl, M as Ml, j as ja, k as Pl, E as Bl, u as Vl, l as Rl, n as Ul, P as jl, o as Gl } from "./index-fd31e8a5.mjs";
5
5
  import Jn from "vuedraggable";
6
6
  import { cloneDeep as ve, reduce as Wo, debounce as zl, pick as jn, without as Hl } from "lodash-es";
7
- import { A as Xe, d as un, e as Ga, f as Gn, h as cn, i as Wl } from "./util-3dea94a1.mjs";
7
+ import { A as Xe, d as un, e as Ga, f as Gn, h as cn, i as Wl } from "./util-e29a9f97.mjs";
8
8
  import "ant-design-vue/es/popover/style";
9
9
  import "ant-design-vue/es/dropdown/style";
10
10
  import He from "dayjs";
@@ -398,10 +398,10 @@ const Hi = xo, za = {
398
398
  setup(e, { expose: t }) {
399
399
  var Z;
400
400
  const n = (Z = window == null ? void 0 : window.config) == null ? void 0 : Z.pageId, o = ee(_t), l = a(ee(wt)), r = ee(Pe), s = ee(Ze), u = X(() => a(r).source), i = X(() => a(r).dataViewId), c = z([]), d = z("1"), b = z([]), y = (M) => {
401
- const Q = e.sortList.filter((ae) => !a(b).find((L) => L.columnName === ae.name) || M.columnName === ae.name), K = [];
402
- return Q.forEach((ae, L) => {
403
- K.includes(ae.name) ? ae.name = `${ae.name}_ecanrepeat_${L}` : K.push(ae.name);
404
- }), Q;
401
+ const Q = e.sortList.filter((ae) => !a(b).find((L) => L.columnName === ae.name) || M.columnName === ae.name), Y = [];
402
+ return Q.forEach((ae) => {
403
+ Y.find((L) => L.name === ae.name) || Y.push(ae);
404
+ }), Y;
405
405
  }, T = async () => {
406
406
  try {
407
407
  const M = await o.post(`${rt}/diagram/groupvalue`, {
@@ -417,16 +417,16 @@ const Hi = xo, za = {
417
417
  Authentication: l,
418
418
  operateContext: "ygt"
419
419
  }
420
- }), { success: Q, data: K = [] } = M.data;
421
- Q && (c.value = K == null ? void 0 : K.slice(0, 200));
420
+ }), { success: Q, data: Y = [] } = M.data;
421
+ Q && (c.value = Y == null ? void 0 : Y.slice(0, 200));
422
422
  } catch (M) {
423
423
  console.error(M);
424
424
  }
425
425
  }, E = () => {
426
426
  var L, I;
427
- const M = ((L = a(r)[e.type]) == null ? void 0 : L.slice()) || [], Q = M[e.index], { label: K, name: ae } = e.item;
427
+ const M = ((L = a(r)[e.type]) == null ? void 0 : L.slice()) || [], Q = M[e.index], { label: Y, name: ae } = e.item;
428
428
  a(d) === "2" ? Q.sort = {
429
- label: K,
429
+ label: Y,
430
430
  columnName: ae,
431
431
  type: "CUSTOM",
432
432
  customOrderColumns: a(c)
@@ -438,9 +438,9 @@ const Hi = xo, za = {
438
438
  const v = () => {
439
439
  A = !0;
440
440
  }, g = z(!1), C = (M) => {
441
- var K;
441
+ var Y;
442
442
  const { sort: Q } = M;
443
- Q ? Array.isArray(Q) ? (d.value = ((K = Q[0]) == null ? void 0 : K.type) === "CUSTOM" ? "2" : "1", a(d) === "1" ? b.value = ve(Q) : b.value = []) : (d.value = (Q == null ? void 0 : Q.type) === "CUSTOM" ? "2" : "1", a(d) === "1" ? b.value = [ve(Q)] : b.value = []) : b.value = [], g.value = !0;
443
+ Q ? Array.isArray(Q) ? (d.value = ((Y = Q[0]) == null ? void 0 : Y.type) === "CUSTOM" ? "2" : "1", a(d) === "1" ? b.value = ve(Q) : b.value = []) : (d.value = (Q == null ? void 0 : Q.type) === "CUSTOM" ? "2" : "1", a(d) === "1" ? b.value = [ve(Q)] : b.value = []) : b.value = [], g.value = !0;
444
444
  }, F = () => {
445
445
  g.value = !1;
446
446
  }, _ = () => {
@@ -449,9 +449,9 @@ const Hi = xo, za = {
449
449
  return t({
450
450
  showModal: C
451
451
  }), Ae(g, (M) => {
452
- var Q, K;
452
+ var Q, Y;
453
453
  if (M) {
454
- const ae = (K = (Q = e.item) == null ? void 0 : Q.sort) == null ? void 0 : K.customOrderColumns;
454
+ const ae = (Y = (Q = e.item) == null ? void 0 : Q.sort) == null ? void 0 : Y.customOrderColumns;
455
455
  ae == null ? T() : c.value = ae;
456
456
  } else
457
457
  c.value = [];
@@ -466,8 +466,8 @@ const Hi = xo, za = {
466
466
  getSortOptions: y,
467
467
  onChange: v,
468
468
  onDeleteConfig: () => {
469
- var K;
470
- const M = ((K = a(r)[e.type]) == null ? void 0 : K.slice()) || [], Q = M[e.index];
469
+ var Y;
470
+ const M = ((Y = a(r)[e.type]) == null ? void 0 : Y.slice()) || [], Q = M[e.index];
471
471
  delete Q.sort, s({
472
472
  [e.type]: M
473
473
  }), F();
@@ -485,10 +485,10 @@ const Hi = xo, za = {
485
485
  b.value.splice(M, 1);
486
486
  },
487
487
  onColumnChange: (M) => {
488
- const Q = a(b).find((K) => K.columnName === M);
488
+ const Q = a(b).find((Y) => Y.columnName === M);
489
489
  if (Q) {
490
- const K = e.sortList.find((ae) => ae.name === M);
491
- K && (Q.label = K.label, K.defaultCode ? Q.defaultCode = K.defaultCode : delete Q.defaultCode);
490
+ const Y = e.sortList.find((ae) => ae.name === M);
491
+ Y && (Q.label = Y.label, Y.defaultCode ? Q.defaultCode = Y.defaultCode : delete Q.defaultCode);
492
492
  }
493
493
  }
494
494
  };
@@ -620,7 +620,7 @@ function Qi(e, t, n, o, l, r) {
620
620
  _: 1
621
621
  }, 8, ["visible", "onCancel"]);
622
622
  }
623
- const Ji = /* @__PURE__ */ be(Wi, [["render", Qi], ["__scopeId", "data-v-6a468e35"]]), Zi = fe({
623
+ const Ji = /* @__PURE__ */ be(Wi, [["render", Qi], ["__scopeId", "data-v-39d24fac"]]), Zi = fe({
624
624
  name: "CustomGroupModal",
625
625
  directives: {
626
626
  focus: za
@@ -763,10 +763,10 @@ const Ji = /* @__PURE__ */ be(Wi, [["render", Qi], ["__scopeId", "data-v-6a468e3
763
763
  }, R({
764
764
  [e.type]: W
765
765
  });
766
- }, K = z(!1), ae = () => {
767
- K.value = !0;
766
+ }, Y = z(!1), ae = () => {
767
+ Y.value = !0;
768
768
  }, L = () => {
769
- K.value = !1;
769
+ Y.value = !1;
770
770
  }, I = () => {
771
771
  L(), r && Q(), r = !1;
772
772
  }, $ = () => {
@@ -825,7 +825,7 @@ const Ji = /* @__PURE__ */ be(Wi, [["render", Qi], ["__scopeId", "data-v-6a468e3
825
825
  }
826
826
  };
827
827
  return Ae(
828
- K,
828
+ Y,
829
829
  (h) => {
830
830
  h && oe(), window.changeShowTable && window.changeShowTable(!h);
831
831
  },
@@ -835,7 +835,7 @@ const Ji = /* @__PURE__ */ be(Wi, [["render", Qi], ["__scopeId", "data-v-6a468e3
835
835
  ), t({
836
836
  showModal: ae
837
837
  }), {
838
- visible: K,
838
+ visible: Y,
839
839
  title: s,
840
840
  activeKey: c,
841
841
  customGroupList: d,
@@ -1231,7 +1231,7 @@ const hr = fe({
1231
1231
  label: Te.label || Te.title,
1232
1232
  value: Te.name
1233
1233
  }));
1234
- }), { updateCondition: Q, deleteCondition: K, addCondition: ae } = ee(Qn, {
1234
+ }), { updateCondition: Q, deleteCondition: Y, addCondition: ae } = ee(Qn, {
1235
1235
  // eslint-disable-next-line no-void
1236
1236
  updateCondition: (te, ie, de) => {
1237
1237
  },
@@ -1242,7 +1242,7 @@ const hr = fe({
1242
1242
  addCondition: (te, ie, de) => {
1243
1243
  }
1244
1244
  }), L = () => {
1245
- K(e.index, e.path);
1245
+ Y(e.index, e.path);
1246
1246
  };
1247
1247
  Ae(k, (te) => {
1248
1248
  const ie = ve(te);
@@ -2309,8 +2309,8 @@ const Jr = /* @__PURE__ */ be(Gr, [["render", Qr], ["__scopeId", "data-v-f543c69
2309
2309
  A && F(), A = !1, V();
2310
2310
  }, P = () => {
2311
2311
  V();
2312
- }, Z = ee(_t), M = a(ee(wt)), Q = (L = window == null ? void 0 : window.config) == null ? void 0 : L.pageId, K = z([]);
2313
- Jt(Ma, K);
2312
+ }, Z = ee(_t), M = a(ee(wt)), Q = (L = window == null ? void 0 : window.config) == null ? void 0 : L.pageId, Y = z([]);
2313
+ Jt(Ma, Y);
2314
2314
  const ae = async (I) => {
2315
2315
  var $;
2316
2316
  if (["leftAxisList", "rightAxisList", "indicators", "queryColumnList"].includes(e.type))
@@ -2327,7 +2327,7 @@ const Jr = /* @__PURE__ */ be(Gr, [["render", Qr], ["__scopeId", "data-v-f543c69
2327
2327
  operateContext: "ygt"
2328
2328
  }
2329
2329
  }), { success: w, data: h = [] } = D.data;
2330
- w && (($ = h == null ? void 0 : h.dataViewColumns) != null && $.length) && (K.value = h.dataViewColumns.map((O) => ({
2330
+ w && (($ = h == null ? void 0 : h.dataViewColumns) != null && $.length) && (Y.value = h.dataViewColumns.map((O) => ({
2331
2331
  ...O,
2332
2332
  label: O.title || O.label
2333
2333
  })));
@@ -2594,15 +2594,15 @@ const us = /* @__PURE__ */ be(as, [["render", ss], ["__scopeId", "data-v-de6a175
2594
2594
  for (const R of _) {
2595
2595
  const P = a(r).find((Z) => Z.id === R.componentId);
2596
2596
  if (P) {
2597
- const { type: Z, id: M, events: Q = [] } = P, K = Gn(Z);
2597
+ const { type: Z, id: M, events: Q = [] } = P, Y = Gn(Z);
2598
2598
  if (R.add)
2599
2599
  Q.find((ae) => {
2600
2600
  var L;
2601
- return ae.on === K && ae.target === ((L = a(s)) == null ? void 0 : L.id) && ae.emit === "refreshData";
2601
+ return ae.on === Y && ae.target === ((L = a(s)) == null ? void 0 : L.id) && ae.emit === "refreshData";
2602
2602
  }) || u({
2603
2603
  id: M,
2604
2604
  events: [...Q, {
2605
- on: K,
2605
+ on: Y,
2606
2606
  target: (V = a(s)) == null ? void 0 : V.id,
2607
2607
  emit: "refreshData"
2608
2608
  }].reverse()
@@ -2610,7 +2610,7 @@ const us = /* @__PURE__ */ be(as, [["render", ss], ["__scopeId", "data-v-de6a175
2610
2610
  else if (R.delete) {
2611
2611
  const ae = Q.findIndex((L) => {
2612
2612
  var I;
2613
- return L.on === K && L.target === ((I = a(s)) == null ? void 0 : I.id) && L.emit === "refreshData";
2613
+ return L.on === Y && L.target === ((I = a(s)) == null ? void 0 : I.id) && L.emit === "refreshData";
2614
2614
  });
2615
2615
  ae !== -1 && (Q.splice(ae, 1), u({
2616
2616
  id: M,
@@ -2792,6 +2792,11 @@ const _s = /* @__PURE__ */ be(bs, [["render", Cs], ["__scopeId", "data-v-aa1c298
2792
2792
  mode: {
2793
2793
  type: String,
2794
2794
  default: "add"
2795
+ },
2796
+ // 卡片类型
2797
+ type: {
2798
+ type: String,
2799
+ default: ""
2795
2800
  }
2796
2801
  },
2797
2802
  components: {
@@ -2814,9 +2819,9 @@ const _s = /* @__PURE__ */ be(bs, [["render", Cs], ["__scopeId", "data-v-aa1c298
2814
2819
  ), d = X(() => a(l).indexLibColumns || []), b = X(() => {
2815
2820
  var Q;
2816
2821
  let M = a(r).concat(a(u)).concat(a(i)).concat(a(c));
2817
- return (Q = a(d)) != null && Q.length && (M = a(c).concat(a(d))), e.mode === "edit" ? (M == null ? void 0 : M.filter((K) => {
2822
+ return e.type === "indexLibColumns" && ((Q = a(d)) != null && Q.length) && (M = a(c).concat(a(d))), e.mode === "edit" ? (M == null ? void 0 : M.filter((Y) => {
2818
2823
  var ae;
2819
- return K.id !== ((ae = e.item) == null ? void 0 : ae.id);
2824
+ return Y.id !== ((ae = e.item) == null ? void 0 : ae.id);
2820
2825
  })) || [] : M || [];
2821
2826
  }), y = X(() => s.value.filter((M) => !M.randomKey)), T = X({
2822
2827
  get: () => e.value || "",
@@ -2825,38 +2830,38 @@ const _s = /* @__PURE__ */ be(bs, [["render", Cs], ["__scopeId", "data-v-aa1c298
2825
2830
  }
2826
2831
  }), E = z("1"), A = z(""), v = (M) => {
2827
2832
  const Q = document.getElementById("calTextArea");
2828
- let K = T.value;
2833
+ let Y = T.value;
2829
2834
  if (document.selection) {
2830
2835
  const ae = document.selection.createRange();
2831
2836
  ae.text = M;
2832
2837
  } else if (typeof Q.selectionStart == "number" && typeof Q.selectionEnd == "number") {
2833
2838
  const ae = Q.selectionStart, L = Q.selectionEnd;
2834
2839
  let I = ae;
2835
- K = K.substring(0, ae) + M + K.substring(L, K.length), I += M.length, Q.selectionStart = Q.selectionEnd = I;
2840
+ Y = Y.substring(0, ae) + M + Y.substring(L, Y.length), I += M.length, Q.selectionStart = Q.selectionEnd = I;
2836
2841
  } else
2837
- K += M;
2838
- T.value = K;
2842
+ Y += M;
2843
+ T.value = Y;
2839
2844
  }, g = ["+", "-", "*", "/", "(", ")"], C = (M, Q) => {
2840
- let K = "";
2845
+ let Y = "";
2841
2846
  switch (Q) {
2842
2847
  case "name": {
2843
- K = "${" + M + "}";
2848
+ Y = "${" + M + "}";
2844
2849
  break;
2845
2850
  }
2846
2851
  case "function": {
2847
- K = M + "()";
2852
+ Y = M + "()";
2848
2853
  break;
2849
2854
  }
2850
2855
  default:
2851
- K = M;
2856
+ Y = M;
2852
2857
  }
2853
- v(K);
2858
+ v(Y);
2854
2859
  }, F = [], _ = z([]), k = z(!0), V = z([]), R = (M) => {
2855
2860
  var Q;
2856
- for (const K of M)
2857
- (Q = K == null ? void 0 : K.children) != null && Q.length ? R(K.children) : F.push({
2858
- key: K.key,
2859
- title: K.title
2861
+ for (const Y of M)
2862
+ (Q = Y == null ? void 0 : Y.children) != null && Q.length ? R(Y.children) : F.push({
2863
+ key: Y.key,
2864
+ title: Y.title
2860
2865
  });
2861
2866
  }, P = async () => {
2862
2867
  try {
@@ -2865,8 +2870,8 @@ const _s = /* @__PURE__ */ be(bs, [["render", Cs], ["__scopeId", "data-v-aa1c298
2865
2870
  Authentication: o,
2866
2871
  operateContext: "ygt"
2867
2872
  }
2868
- }), { success: Q, data: K = [] } = M.data;
2869
- Q && (K != null && K.length) && (R(K), V.value = K);
2873
+ }), { success: Q, data: Y = [] } = M.data;
2874
+ Q && (Y != null && Y.length) && (R(Y), V.value = Y);
2870
2875
  } catch (M) {
2871
2876
  console.error(M);
2872
2877
  }
@@ -2874,7 +2879,7 @@ const _s = /* @__PURE__ */ be(bs, [["render", Cs], ["__scopeId", "data-v-aa1c298
2874
2879
  _.value = M, k.value = !1;
2875
2880
  };
2876
2881
  return Ae(A, (M) => {
2877
- const Q = F.map((K) => K.title.indexOf(M) > -1 ? oo(K.key, V.value) : null).filter((K, ae, L) => K && L.indexOf(K) === ae);
2882
+ const Q = F.map((Y) => Y.title.indexOf(M) > -1 ? oo(Y.key, V.value) : null).filter((Y, ae, L) => Y && L.indexOf(Y) === ae);
2878
2883
  _.value = Q, A.value = M, k.value = !0;
2879
2884
  }), qe(() => {
2880
2885
  P();
@@ -2893,7 +2898,7 @@ const _s = /* @__PURE__ */ be(bs, [["render", Cs], ["__scopeId", "data-v-aa1c298
2893
2898
  };
2894
2899
  }
2895
2900
  });
2896
- const Wa = (e) => (st("data-v-4217a6cb"), e = e(), ut(), e), ks = { class: "formula-calculation" }, As = { class: "field-area" }, Ss = { style: { "text-align": "center", padding: "10px 0" } }, Ts = ["onClick"], Os = ["onClick"], Es = { class: "cal_right_bottom" }, Ls = { class: "cal_fu" }, Ds = ["onClick"], Fs = { class: "function-wrap" }, Is = { class: "wrap-search" }, $s = { class: "tree-box" }, xs = /* @__PURE__ */ Wa(() => /* @__PURE__ */ G("span", { style: { "font-weight": "bold" } }, "描述:", -1)), Ns = /* @__PURE__ */ Wa(() => /* @__PURE__ */ G("span", { style: { "font-weight": "bold" } }, "示例:", -1)), Ms = { key: 0 }, Ps = { style: { color: "#f50" } }, Bs = { key: 1 }, Vs = ["onClick"], Rs = { class: "cal_a" };
2901
+ const Wa = (e) => (st("data-v-ea364ea1"), e = e(), ut(), e), ks = { class: "formula-calculation" }, As = { class: "field-area" }, Ss = { style: { "text-align": "center", padding: "10px 0" } }, Ts = ["onClick"], Os = ["onClick"], Es = { class: "cal_right_bottom" }, Ls = { class: "cal_fu" }, Ds = ["onClick"], Fs = { class: "function-wrap" }, Is = { class: "wrap-search" }, $s = { class: "tree-box" }, xs = /* @__PURE__ */ Wa(() => /* @__PURE__ */ G("span", { style: { "font-weight": "bold" } }, "描述:", -1)), Ns = /* @__PURE__ */ Wa(() => /* @__PURE__ */ G("span", { style: { "font-weight": "bold" } }, "示例:", -1)), Ms = { key: 0 }, Ps = { style: { color: "#f50" } }, Bs = { key: 1 }, Vs = ["onClick"], Rs = { class: "cal_a" };
2897
2902
  function Us(e, t, n, o, l, r) {
2898
2903
  const s = S("a-radio-button"), u = S("a-radio-group"), i = S("a-col"), c = S("a-textarea"), d = S("a-input-search"), b = S("a-tooltip"), y = S("a-tree"), T = S("double-right-outlined"), E = S("a-popover"), A = S("a-row");
2899
2904
  return m(), N("div", ks, [
@@ -3035,7 +3040,7 @@ function Us(e, t, n, o, l, r) {
3035
3040
  })
3036
3041
  ]);
3037
3042
  }
3038
- const js = /* @__PURE__ */ be(ws, [["render", Us], ["__scopeId", "data-v-4217a6cb"]]), Gs = fe({
3043
+ const js = /* @__PURE__ */ be(ws, [["render", Us], ["__scopeId", "data-v-ea364ea1"]]), Gs = fe({
3039
3044
  name: "CalculationModal",
3040
3045
  components: {
3041
3046
  FormulaCalculation: js,
@@ -3214,7 +3219,7 @@ const js = /* @__PURE__ */ be(ws, [["render", Us], ["__scopeId", "data-v-4217a6c
3214
3219
  E.value.clearValidate(), V();
3215
3220
  }, Q = () => {
3216
3221
  g = !0, a(v).builtInCalcWay = "";
3217
- }, K = X(() => {
3222
+ }, Y = X(() => {
3218
3223
  let L = "";
3219
3224
  const I = a(v).builtInCalcWay, $ = a(v).builtInValueSource;
3220
3225
  if (!$ || !I)
@@ -3291,7 +3296,7 @@ const js = /* @__PURE__ */ be(ws, [["render", Us], ["__scopeId", "data-v-4217a6c
3291
3296
  onOK: Z,
3292
3297
  onChange: C,
3293
3298
  formRules: P,
3294
- accessLogic: K,
3299
+ accessLogic: Y,
3295
3300
  formRef: E,
3296
3301
  onChangeBuiltInFormula: Q,
3297
3302
  componentList: s,
@@ -3393,8 +3398,9 @@ function Ws(e, t, n, o, l, r) {
3393
3398
  "onUpdate:value": t[2] || (t[2] = (g) => e.formState.formula = g),
3394
3399
  item: e.item,
3395
3400
  mode: e.mode,
3401
+ type: e.type,
3396
3402
  onChange: e.onChange
3397
- }, null, 8, ["value", "item", "mode", "onChange"])) : J("", !0),
3403
+ }, null, 8, ["value", "item", "mode", "type", "onChange"])) : J("", !0),
3398
3404
  e.formState.calcType === "BUILT_IN" ? (m(), N(le, { key: 1 }, [
3399
3405
  p(u, {
3400
3406
  label: "内置公式",
@@ -3669,7 +3675,7 @@ function Ws(e, t, n, o, l, r) {
3669
3675
  _: 1
3670
3676
  }, 8, ["title", "visible", "onOk", "onCancel"]);
3671
3677
  }
3672
- const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040a"]]), Ks = fe({
3678
+ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-7a7bcf24"]]), Ks = fe({
3673
3679
  name: "DataConfigCard",
3674
3680
  directives: {
3675
3681
  focus: za
@@ -3738,13 +3744,13 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
3738
3744
  }
3739
3745
  }), y = (U = {}) => {
3740
3746
  var re;
3741
- const { type: Y } = e;
3747
+ const { type: K } = e;
3742
3748
  if (a(c) === "SQL_VIEW")
3743
3749
  return !0;
3744
3750
  a(c) === "EDV_DATA_SET" && l({ edvDataSetId: U.parentId });
3745
3751
  let ne = !1;
3746
- if (U.scope === "FIELD" && (ne = !0, U.genericType === "0" && s.includes(Y) && (ne = !1)), ["IDX", "BUILT_IN_IDX"].includes(U.scope) ? s.includes(Y) && (ne = !0) : ["DIM", "BUILT_IN_DIM"].includes(U.scope) && u.includes(Y) && (ne = !0), Y === "dimensionList") {
3747
- const _e = ((re = a(o)[Y]) == null ? void 0 : re.slice()) || [];
3752
+ if (U.scope === "FIELD" && (ne = !0, U.genericType === "0" && s.includes(K) && (ne = !1)), ["IDX", "BUILT_IN_IDX"].includes(U.scope) ? s.includes(K) && (ne = !0) : ["DIM", "BUILT_IN_DIM"].includes(U.scope) && u.includes(K) && (ne = !0), K === "dimensionList") {
3753
+ const _e = ((re = a(o)[K]) == null ? void 0 : re.slice()) || [];
3748
3754
  (_e == null ? void 0 : _e.length) === 1 && (ne = !1);
3749
3755
  }
3750
3756
  return ne;
@@ -3752,12 +3758,12 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
3752
3758
  var U;
3753
3759
  return Ee((U = a(Ve)) == null ? void 0 : U.type, ["dataSelect"]) && e.type === "indicators";
3754
3760
  }), E = (U = "{}") => {
3755
- var Y, ne;
3761
+ var K, ne;
3756
3762
  try {
3757
3763
  const re = JSON.parse(U);
3758
3764
  if (!y(re))
3759
3765
  return;
3760
- const _e = ((Y = a(o)[e.type]) == null ? void 0 : Y.slice()) || [];
3766
+ const _e = ((K = a(o)[e.type]) == null ? void 0 : K.slice()) || [];
3761
3767
  (e.type === "seriesList" || e.type === "specialIndicatorList" || e.type === "classificationList" && !Ee(a(Ve).type, ["list", "circulate", "scatter"]) || a(T) || Ee(a(Ve).type, ["indexPanel"])) && _e.forEach((ke) => {
3762
3768
  ke.show = !1;
3763
3769
  }), v(_e, re), re.randomKey = Le(), _e.push(re);
@@ -3794,12 +3800,12 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
3794
3800
  console.error(re);
3795
3801
  }
3796
3802
  }, A = (U = "{}") => {
3797
- var Y;
3803
+ var K;
3798
3804
  try {
3799
3805
  const { cardItem: ne, type: re, index: _e } = JSON.parse(U);
3800
3806
  if (!y(ne) || re === e.type)
3801
3807
  return;
3802
- const Se = ((Y = a(o)[e.type]) == null ? void 0 : Y.slice()) || [];
3808
+ const Se = ((K = a(o)[e.type]) == null ? void 0 : K.slice()) || [];
3803
3809
  v(Se, ne), Se.push(ne);
3804
3810
  const Ce = a(o)[re].slice() || [];
3805
3811
  Ce.splice(_e, 1), l({
@@ -3810,58 +3816,58 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
3810
3816
  console.error(ne);
3811
3817
  }
3812
3818
  };
3813
- function v(U, Y) {
3819
+ function v(U, K) {
3814
3820
  const ne = [];
3815
3821
  if (U.forEach((re) => {
3816
- re.label.includes(Y.label) && ne.push(re.label.split(Y.label)[1]);
3822
+ re.label.includes(K.label) && ne.push(re.label.split(K.label)[1]);
3817
3823
  }), ne.length >= 1) {
3818
3824
  for (let re = 1; re <= ne.length; re++)
3819
3825
  if (!ne.includes(re + "")) {
3820
- Y.label = Y.label + re;
3826
+ K.label = K.label + re;
3821
3827
  break;
3822
3828
  }
3823
3829
  }
3824
3830
  }
3825
- const g = (U, Y) => {
3831
+ const g = (U, K) => {
3826
3832
  var _e, Se;
3827
3833
  const ne = (_e = U.target) == null ? void 0 : _e.checked, re = ((Se = a(o)[e.type]) == null ? void 0 : Se.slice()) || [];
3828
3834
  (e.type === "seriesList" || e.type === "classificationList" && !Ee(a(Ve).type, ["list", "circulate"]) || a(T) || Ee(a(Ve).type, ["indexPanel"])) && re.forEach((Ce) => {
3829
3835
  Ce.show = !1;
3830
- }), re[Y].show = ne, l({
3836
+ }), re[K].show = ne, l({
3831
3837
  [e.type]: re
3832
3838
  });
3833
3839
  }, C = (U) => {
3834
3840
  var ne;
3835
- const Y = ((ne = a(o)[e.type]) == null ? void 0 : ne.slice()) || [];
3836
- Y.splice(U, 1), l({
3837
- [e.type]: Y
3841
+ const K = ((ne = a(o)[e.type]) == null ? void 0 : ne.slice()) || [];
3842
+ K.splice(U, 1), l({
3843
+ [e.type]: K
3838
3844
  });
3839
3845
  }, F = () => {
3840
3846
  sessionStorage.setItem("indicator-card-item", "");
3841
3847
  }, _ = (U) => {
3842
- const Y = sessionStorage.getItem("indicator-list-item"), ne = sessionStorage.getItem("indicator-card-item");
3843
- Y ? E(Y) : ne && A(ne);
3848
+ const K = sessionStorage.getItem("indicator-list-item"), ne = sessionStorage.getItem("indicator-card-item");
3849
+ K ? E(K) : ne && A(ne);
3844
3850
  }, k = (U) => {
3845
3851
  var ke, $e;
3846
- const { newIndex: Y, oldIndex: ne, from: re, to: _e } = U, Se = re.id, Ce = _e.id;
3847
- if (Y >= 0 && ne >= 0) {
3852
+ const { newIndex: K, oldIndex: ne, from: re, to: _e } = U, Se = re.id, Ce = _e.id;
3853
+ if (K >= 0 && ne >= 0) {
3848
3854
  if (Se === Ce) {
3849
3855
  const De = ((ke = a(o)[e.type]) == null ? void 0 : ke.slice()) || [], Re = De.splice(ne, 1)[0];
3850
- Re && (De.splice(Y, 0, Re), l({
3856
+ Re && (De.splice(K, 0, Re), l({
3851
3857
  [e.type]: De
3852
3858
  }));
3853
3859
  } else if (e.type === Ce) {
3854
3860
  const De = (($e = a(o)[Ce]) == null ? void 0 : $e.slice()) || [];
3855
3861
  if (De != null && De.length) {
3856
3862
  const Re = De.splice(De.length - 1, 1)[0];
3857
- Re && (De.splice(Y, 0, Re), l({
3863
+ Re && (De.splice(K, 0, Re), l({
3858
3864
  [e.type]: De
3859
3865
  }));
3860
3866
  }
3861
3867
  }
3862
3868
  }
3863
- }, V = (U, Y) => {
3864
- const ne = U.oldIndex, re = Y[ne];
3869
+ }, V = (U, K) => {
3870
+ const ne = U.oldIndex, re = K[ne];
3865
3871
  re && sessionStorage.setItem("indicator-card-item", JSON.stringify({
3866
3872
  cardItem: re,
3867
3873
  type: e.type,
@@ -3881,28 +3887,28 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
3881
3887
  );
3882
3888
  const M = (U) => {
3883
3889
  var ne, re, _e;
3884
- const Y = ((ne = a(o)[e.type]) == null ? void 0 : ne.slice()) || [];
3885
- if ((re = Y[U]) != null && re.randomKey) {
3890
+ const K = ((ne = a(o)[e.type]) == null ? void 0 : ne.slice()) || [];
3891
+ if ((re = K[U]) != null && re.randomKey) {
3886
3892
  const Se = ((_e = a(o)) == null ? void 0 : _e.variableList) || [];
3887
3893
  for (let Ce = Se.length - 1; Ce >= 0; Ce--)
3888
- Se[Ce].randomKey === Y[U].randomKey && Se.splice(Ce, 1);
3894
+ Se[Ce].randomKey === K[U].randomKey && Se.splice(Ce, 1);
3889
3895
  l({
3890
3896
  variableConditions: cn(Se, r),
3891
3897
  variableList: Se
3892
3898
  });
3893
3899
  }
3894
- Y.splice(U, 1), l({
3895
- [e.type]: Y
3900
+ K.splice(U, 1), l({
3901
+ [e.type]: K
3896
3902
  });
3897
3903
  }, Q = (U) => {
3898
3904
  P.value[U] = !0;
3899
- }, K = () => {
3905
+ }, Y = () => {
3900
3906
  Z = !0;
3901
3907
  }, ae = (U) => {
3902
3908
  U.key === "Escape" && (U.stopPropagation(), U.preventDefault());
3903
- }, L = (U, Y, ne) => {
3909
+ }, L = (U, K, ne) => {
3904
3910
  var re, _e, Se, Ce;
3905
- if (P.value[Y] = !1, Z) {
3911
+ if (P.value[K] = !1, Z) {
3906
3912
  const ke = (re = U.target) == null ? void 0 : re.value, $e = ((_e = a(o)[e.type]) == null ? void 0 : _e.slice()) || [], De = $e.filter((Ie) => {
3907
3913
  var je;
3908
3914
  return (je = Ie == null ? void 0 : Ie.formula) == null ? void 0 : je.includes(ne);
@@ -3920,8 +3926,8 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
3920
3926
  const je = $e.find((Vt) => Vt.id === Ie);
3921
3927
  je.builtInValueSource = je.builtInValueSource.replaceAll(ne, ke);
3922
3928
  }
3923
- if ($e[Y].label = ke, (Se = $e[Y]) != null && Se.randomKey) {
3924
- const Ie = ((Ce = a(o)) == null ? void 0 : Ce.variableList) || [], je = Ie.filter((Vt) => Vt.randomKey === $e[Y].randomKey);
3929
+ if ($e[K].label = ke, (Se = $e[K]) != null && Se.randomKey) {
3930
+ const Ie = ((Ce = a(o)) == null ? void 0 : Ce.variableList) || [], je = Ie.filter((Vt) => Vt.randomKey === $e[K].randomKey);
3925
3931
  je != null && je.length && je.forEach((Vt) => {
3926
3932
  Vt.label = ke;
3927
3933
  }), l({
@@ -3935,8 +3941,8 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
3935
3941
  }
3936
3942
  Z = !1;
3937
3943
  }, I = "DEFAULT", $ = X(() => {
3938
- const U = [], { scope: Y } = a(d) || {}, ne = a(o)[e.type] || [];
3939
- if (Y === "DIM" && !a(d).typeGuid.includes("_code")) {
3944
+ const U = [], { scope: K } = a(d) || {}, ne = a(o)[e.type] || [];
3945
+ if (K === "DIM" && !a(d).typeGuid.includes("_code")) {
3940
3946
  const ke = ve(a(d));
3941
3947
  delete ke.show, delete ke.truncations, delete ke.conditions, ke.hrpIndexComplexid += "_code", ke.id += "_code", ke.typeGuid += "_code", ke.label = ke.name + "_编码", ke.name = ke.typeGuid, ke.defaultCode = ke.typeGuid, U.push(ke);
3942
3948
  }
@@ -3959,10 +3965,10 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
3959
3965
  ...Se,
3960
3966
  ...Ce
3961
3967
  ];
3962
- }), q = (U = {}, Y, ne = "ASC") => {
3968
+ }), q = (U = {}, K, ne = "ASC") => {
3963
3969
  var $e;
3964
3970
  const { label: re, name: _e, id: Se, defaultCode: Ce } = U, ke = (($e = a(o)[e.type]) == null ? void 0 : $e.slice()) || [];
3965
- Se === I ? delete ke[Y].sort : ke[Y].sort = {
3971
+ Se === I ? delete ke[K].sort : ke[K].sort = {
3966
3972
  label: re,
3967
3973
  columnName: _e,
3968
3974
  type: "NORMAL",
@@ -3971,21 +3977,21 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
3971
3977
  }, l({
3972
3978
  [e.type]: ke
3973
3979
  });
3974
- }, oe = (U = {}, Y = "ASC") => {
3980
+ }, oe = (U = {}, K = "ASC") => {
3975
3981
  const re = {
3976
3982
  ASC: "升序",
3977
3983
  DESC: "降序"
3978
- }[Y], { sort: _e } = U, { label: Se, order: Ce } = _e || {};
3979
- return Se && Ce === Y ? `${re}(${Se})` : re;
3980
- }, D = z(), w = z(), h = z(), O = z(), x = (U = {}, Y) => {
3984
+ }[K], { sort: _e } = U, { label: Se, order: Ce } = _e || {};
3985
+ return Se && Ce === K ? `${re}(${Se})` : re;
3986
+ }, D = z(), w = z(), h = z(), O = z(), x = (U = {}, K) => {
3981
3987
  var ne;
3982
- D.value = U, w.value = Y, (ne = a(h)) == null || ne.showModal(U);
3983
- }, H = (U) => "排序" + (U != null && U.sort ? "(已配置)" : ""), W = (U = {}, Y) => {
3988
+ D.value = U, w.value = K, (ne = a(h)) == null || ne.showModal(U);
3989
+ }, H = (U) => "排序" + (U != null && U.sort ? "(已配置)" : ""), W = (U = {}, K) => {
3984
3990
  var ne;
3985
- D.value = U, w.value = Y, (ne = a(O)) == null || ne.showModal();
3991
+ D.value = U, w.value = K, (ne = a(O)) == null || ne.showModal();
3986
3992
  }, se = (U) => {
3987
- var Y, ne;
3988
- return "自定义分组" + (!(U != null && U.customGroup) || !Object.keys(((Y = U.customGroup) == null ? void 0 : Y.groupInfoMap) || {}).length && !((ne = U.customGroup) != null && ne.otherGroupName) ? "" : "(已配置)");
3993
+ var K, ne;
3994
+ return "自定义分组" + (!(U != null && U.customGroup) || !Object.keys(((K = U.customGroup) == null ? void 0 : K.groupInfoMap) || {}).length && !((ne = U.customGroup) != null && ne.otherGroupName) ? "" : "(已配置)");
3989
3995
  }, ce = [
3990
3996
  {
3991
3997
  name: "显示",
@@ -4043,50 +4049,50 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
4043
4049
  name: "否",
4044
4050
  value: 0
4045
4051
  }
4046
- ], Ge = (U, Y) => {
4052
+ ], Ge = (U, K) => {
4047
4053
  var re;
4048
4054
  const ne = ((re = a(o)[e.type]) == null ? void 0 : re.slice()) || [];
4049
- ne[Y].showInDrillTable = U, l({
4055
+ ne[K].showInDrillTable = U, l({
4050
4056
  [e.type]: ne
4051
4057
  });
4052
- }, Fe = (U, Y) => {
4058
+ }, Fe = (U, K) => {
4053
4059
  var re;
4054
4060
  const ne = ((re = a(o)[e.type]) == null ? void 0 : re.slice()) || [];
4055
4061
  for (const _e of ne)
4056
4062
  _e.gaugeIndType === U && (_e.gaugeIndType = "");
4057
- ne[Y].gaugeIndType = U, l({
4063
+ ne[K].gaugeIndType = U, l({
4058
4064
  [e.type]: ne
4059
4065
  });
4060
- }, Oe = (U, Y) => {
4066
+ }, Oe = (U, K) => {
4061
4067
  var re;
4062
4068
  const ne = ((re = a(o)[e.type]) == null ? void 0 : re.slice()) || [];
4063
4069
  for (const _e of ne)
4064
4070
  _e.budgetIndType === U && (_e.budgetIndType = "");
4065
- ne[Y].budgetIndType = U, l({
4071
+ ne[K].budgetIndType = U, l({
4066
4072
  [e.type]: ne
4067
4073
  });
4068
- }, ze = (U, Y) => {
4074
+ }, ze = (U, K) => {
4069
4075
  var re;
4070
4076
  const ne = ((re = a(o)[e.type]) == null ? void 0 : re.slice()) || [];
4071
- ne[Y].aggregate = U, l({
4077
+ ne[K].aggregate = U, l({
4072
4078
  [e.type]: ne
4073
4079
  });
4074
- }, At = (U, Y) => {
4080
+ }, At = (U, K) => {
4075
4081
  var re;
4076
4082
  const ne = ((re = a(o)[e.type]) == null ? void 0 : re.slice()) || [];
4077
- ne[Y].distinct = U, l({
4083
+ ne[K].distinct = U, l({
4078
4084
  [e.type]: ne
4079
4085
  });
4080
- }, Yt = (U, Y) => {
4086
+ }, Yt = (U, K) => {
4081
4087
  var re;
4082
4088
  const ne = ((re = a(o)[e.type]) == null ? void 0 : re.slice()) || [];
4083
- ne[Y].dateFormat = U, l({
4089
+ ne[K].dateFormat = U, l({
4084
4090
  [e.type]: ne
4085
4091
  });
4086
- }, wn = (U, Y) => {
4092
+ }, wn = (U, K) => {
4087
4093
  var re;
4088
4094
  const ne = ((re = a(o)[e.type]) == null ? void 0 : re.slice()) || [];
4089
- ne[Y].sort = U, l({
4095
+ ne[K].sort = U, l({
4090
4096
  [e.type]: ne
4091
4097
  });
4092
4098
  }, Kt = (U = "show") => `在钻取的普通表中(${{
@@ -4105,34 +4111,34 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
4105
4111
  MAX: "最大值",
4106
4112
  COUNT: "计数"
4107
4113
  }[U]})`, Nt = (U) => {
4108
- const Y = {
4114
+ const K = {
4109
4115
  ASC: "升序",
4110
4116
  DESC: "降序"
4111
4117
  };
4112
- return U ? `排序(${Y[U]})` : "排序";
4118
+ return U ? `排序(${K[U]})` : "排序";
4113
4119
  }, St = (U) => `是否去重(${{
4114
4120
  0: "否",
4115
4121
  1: "是"
4116
4122
  }[U] || "否"})`, Mt = (U = {}) => {
4117
- var Y;
4118
- return "过滤" + (U != null && U.conditions && ((Y = U == null ? void 0 : U.conditions) == null ? void 0 : Y.length) > 0 ? "(已配置)" : "");
4119
- }, Tt = z(), Ot = z(), Et = z(), on = z(), kn = (U = {}, Y) => {
4120
- D.value = U, w.value = Y, a(Tt).showModal();
4121
- }, An = (U = {}, Y) => {
4122
- D.value = U, w.value = Y, a(Ot).showModal(U);
4123
- }, Sn = (U = {}, Y) => {
4124
- D.value = U, w.value = Y, a(Et).showModal(U);
4125
- }, Tn = (U = {}, Y) => {
4126
- D.value = U, w.value = Y, a(on).showModal(U, a(ln));
4127
- }, te = z(), ie = z("add"), de = (U, Y, ne) => {
4123
+ var K;
4124
+ return "过滤" + (U != null && U.conditions && ((K = U == null ? void 0 : U.conditions) == null ? void 0 : K.length) > 0 ? "(已配置)" : "");
4125
+ }, Tt = z(), Ot = z(), Et = z(), on = z(), kn = (U = {}, K) => {
4126
+ D.value = U, w.value = K, a(Tt).showModal();
4127
+ }, An = (U = {}, K) => {
4128
+ D.value = U, w.value = K, a(Ot).showModal(U);
4129
+ }, Sn = (U = {}, K) => {
4130
+ D.value = U, w.value = K, a(Et).showModal(U);
4131
+ }, Tn = (U = {}, K) => {
4132
+ D.value = U, w.value = K, a(on).showModal(U, a(ln));
4133
+ }, te = z(), ie = z("add"), de = (U, K, ne) => {
4128
4134
  var re;
4129
- ie.value = U, U === "edit" && (D.value = Y, w.value = ne), (re = a(te)) == null || re.showModal();
4135
+ ie.value = U, U === "edit" && (D.value = K, w.value = ne), (re = a(te)) == null || re.showModal();
4130
4136
  }, he = ee(_t), ye = a(ee(wt)), Te = z([]), Ue = X(() => a(o)[e.type] || {});
4131
4137
  Ae(o, () => {
4132
4138
  var U;
4133
- Ee(a(Ve).type, ["scatter", "valueline"]) && ((U = a(o)) != null && U.indicators) && (Te.value = a(o).indicators.map((Y) => ({
4134
- label: Y.label,
4135
- value: Y.label
4139
+ Ee(a(Ve).type, ["scatter", "valueline"]) && ((U = a(o)) != null && U.indicators) && (Te.value = a(o).indicators.map((K) => ({
4140
+ label: K.label,
4141
+ value: K.label
4136
4142
  })));
4137
4143
  }), Ae(() => o.value.classificationList, () => {
4138
4144
  gt();
@@ -4141,7 +4147,7 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
4141
4147
  const { source: U } = a(o);
4142
4148
  if (U !== "EDV_DATA_SET" || !Ee(a(Ve).type, "select"))
4143
4149
  return;
4144
- const { classificationList: Y = [] } = a(o), ne = Y.find((Ce) => Ce.show);
4150
+ const { classificationList: K = [] } = a(o), ne = K.find((Ce) => Ce.show);
4145
4151
  if (ne != null && ne.parentId) {
4146
4152
  if (a(tt) === ne.parentId)
4147
4153
  return;
@@ -4170,30 +4176,30 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
4170
4176
  if (U === "EDV_DATA_SET")
4171
4177
  await gt();
4172
4178
  else {
4173
- const Y = await he.post(`${rt}/diagram/dimFields`, {}, {
4179
+ const K = await he.post(`${rt}/diagram/dimFields`, {}, {
4174
4180
  headers: {
4175
4181
  Authentication: ye,
4176
4182
  operateContext: "ygt"
4177
4183
  }
4178
- }), { success: ne, data: re = [] } = Y.data;
4184
+ }), { success: ne, data: re = [] } = K.data;
4179
4185
  ne && (a(o).selectFieldOptions = re || [], Te.value = re);
4180
4186
  }
4181
- } catch (Y) {
4182
- console.error(Y);
4187
+ } catch (K) {
4188
+ console.error(K);
4183
4189
  }
4184
- }, Pt = (U, Y) => {
4190
+ }, Pt = (U, K) => {
4185
4191
  const ne = a(o)[e.type] || {};
4186
- ne[Y] = U, l({
4192
+ ne[K] = U, l({
4187
4193
  [e.type]: ne
4188
4194
  });
4189
- }, Lt = ["classificationList", "seriesList", "rowHeaderList", "queryColumnList", "dimensionList"], an = z({}), ln = z([]), dt = async (U, Y) => {
4195
+ }, Lt = ["classificationList", "seriesList", "rowHeaderList", "queryColumnList", "dimensionList"], an = z({}), ln = z([]), dt = async (U, K) => {
4190
4196
  var re;
4191
- const { name: ne } = Y;
4192
- if (!Lt.includes(e.type) && U && Ht(Y, "indexCode")) {
4197
+ const { name: ne } = K;
4198
+ if (!Lt.includes(e.type) && U && Ht(K, "indexCode")) {
4193
4199
  const _e = await he.post(`${rt}/diagram/hrpIndexWithComplex`, {
4194
4200
  dataSourceId: "",
4195
- indexGuid: Y.id,
4196
- indexCode: Y.indexCode,
4201
+ indexGuid: K.id,
4202
+ indexCode: K.indexCode,
4197
4203
  pageId: (re = window == null ? void 0 : window.config) == null ? void 0 : re.pageId
4198
4204
  }, {
4199
4205
  headers: {
@@ -4209,11 +4215,11 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
4209
4215
  }, pt = (U) => {
4210
4216
  d.value = U;
4211
4217
  }, Bt = (U) => {
4212
- const Y = document.createElement("input");
4213
- document.body.appendChild(Y), Y.setAttribute("value", U), Y.select(), document.execCommand("copy"), document.body.removeChild(Y), We.success("复制成功");
4218
+ const K = document.createElement("input");
4219
+ document.body.appendChild(K), K.setAttribute("value", U), K.select(), document.execCommand("copy"), document.body.removeChild(K), We.success("复制成功");
4214
4220
  }, Ve = ee(it), On = X(() => e.type === "indicators" && a(Ve).type === "ecanTable"), ul = X(() => !!["indicators", "classificationList", "leftAxisList", "rightAxisList"].includes(e.type)), cl = X(() => {
4215
- var U, Y;
4216
- return Ee((U = a(Ve)) == null ? void 0 : U.type, ["table"]) && ((Y = a(o)) == null ? void 0 : Y.isIndexSet);
4221
+ var U, K;
4222
+ return Ee((U = a(Ve)) == null ? void 0 : U.type, ["table"]) && ((K = a(o)) == null ? void 0 : K.isIndexSet);
4217
4223
  }), dl = X(() => !Lt.includes(e.type) && !a(T)), pl = (U) => U ? i[U] : "--";
4218
4224
  return qe(() => {
4219
4225
  e.type === "formFields" && (a(Ve).type === "ecanDataSelect" ? Te.value = [
@@ -4249,7 +4255,7 @@ const Ys = /* @__PURE__ */ be(Gs, [["render", Ws], ["__scopeId", "data-v-fb16040
4249
4255
  customGroupModalRef: O,
4250
4256
  showCustomGroupModal: W,
4251
4257
  editLabelList: P,
4252
- onLabelChange: K,
4258
+ onLabelChange: Y,
4253
4259
  handleInputKeyDown: ae,
4254
4260
  aggregateList: ge,
4255
4261
  showHideList: ce,
@@ -4314,7 +4320,7 @@ const It = (e) => (st("data-v-6a13635a"), e = e(), ut(), e), qs = { class: "titl
4314
4320
  style: { width: "20px" }
4315
4321
  }, null, -1)), iu = { class: "title" }, ru = { class: "title-text" }, su = /* @__PURE__ */ It(() => /* @__PURE__ */ G("p", null, "配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值", -1)), uu = /* @__PURE__ */ It(() => /* @__PURE__ */ G("span", null, "添加计算指标", -1)), cu = { class: "card-item-wrap" }, du = { class: "card-item-inner" }, pu = ["onClick"], fu = ["onClick"], mu = ["onClick"], vu = { style: { display: "flex", "align-items": "center" } }, bu = ["title"], hu = /* @__PURE__ */ It(() => /* @__PURE__ */ G("span", { style: { "font-weight": "bold" } }, "指标名:", -1)), yu = { style: { display: "flex", "align-items": "center" } }, gu = ["title"], Cu = /* @__PURE__ */ It(() => /* @__PURE__ */ G("span", { style: { "font-weight": "bold" } }, "指标编码:", -1));
4316
4322
  function _u(e, t, n, o, l, r) {
4317
- const s = S("a-select"), u = S("a-checkbox"), i = S("a-card"), c = S("info-circle-outlined"), d = S("a-popover"), b = S("plus-outlined"), y = S("a-input"), T = S("setting-outlined"), E = S("a-menu-item"), A = S("a-menu-divider"), v = S("a-sub-menu"), g = S("copy-outlined"), C = S("a-menu"), F = S("a-dropdown"), _ = S("delete-outlined"), k = S("draggable"), V = S("custom-sort-modal"), R = S("custom-group-modal"), P = S("filter-modal"), Z = S("config-name"), M = S("sort-by-cpnt"), Q = S("dim-by-count"), K = S("calculation-modal"), ae = co("focus");
4323
+ const s = S("a-select"), u = S("a-checkbox"), i = S("a-card"), c = S("info-circle-outlined"), d = S("a-popover"), b = S("plus-outlined"), y = S("a-input"), T = S("setting-outlined"), E = S("a-menu-item"), A = S("a-menu-divider"), v = S("a-sub-menu"), g = S("copy-outlined"), C = S("a-menu"), F = S("a-dropdown"), _ = S("delete-outlined"), k = S("draggable"), V = S("custom-sort-modal"), R = S("custom-group-modal"), P = S("filter-modal"), Z = S("config-name"), M = S("sort-by-cpnt"), Q = S("dim-by-count"), Y = S("calculation-modal"), ae = co("focus");
4318
4324
  return e.type === "formFields" ? (m(), j(i, {
4319
4325
  key: 0,
4320
4326
  class: "data-config-card",
@@ -4806,7 +4812,7 @@ function _u(e, t, n, o, l, r) {
4806
4812
  type: e.type,
4807
4813
  ref: "dimByCountRef"
4808
4814
  }, null, 8, ["index", "type"]),
4809
- p(K, {
4815
+ p(Y, {
4810
4816
  type: e.type,
4811
4817
  item: e.currentItem,
4812
4818
  index: e.currentIndex,
@@ -9702,14 +9708,14 @@ function ca(e) {
9702
9708
  }
9703
9709
  var Q = Object.assign({
9704
9710
  position: u
9705
- }, c && fc), K = d === !0 ? mc({
9711
+ }, c && fc), Y = d === !0 ? mc({
9706
9712
  x: T,
9707
9713
  y: A
9708
9714
  }, Qe(n)) : {
9709
9715
  x: T,
9710
9716
  y: A
9711
9717
  };
9712
- if (T = K.x, A = K.y, i) {
9718
+ if (T = Y.x, A = Y.y, i) {
9713
9719
  var ae;
9714
9720
  return Object.assign({}, Q, (ae = {}, ae[_] = C ? "0" : "", ae[F] = g ? "0" : "", ae.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + T + "px, " + A + "px)" : "translate3d(" + T + "px, " + A + "px, 0)", ae));
9715
9721
  }
@@ -9925,10 +9931,10 @@ function bn(e, t) {
9925
9931
  right: Z.right - k.right + g.right
9926
9932
  }, Q = e.modifiersData.offset;
9927
9933
  if (y === rn && Q) {
9928
- var K = Q[l];
9934
+ var Y = Q[l];
9929
9935
  Object.keys(M).forEach(function(ae) {
9930
9936
  var L = [lt, at].indexOf(ae) >= 0 ? 1 : -1, I = [Ye, at].indexOf(ae) >= 0 ? "y" : "x";
9931
- M[ae] += K[I] * L;
9937
+ M[ae] += Y[I] * L;
9932
9938
  });
9933
9939
  }
9934
9940
  return M;
@@ -9972,7 +9978,7 @@ function Ec(e) {
9972
9978
  allowedAutoPlacements: A
9973
9979
  }) : W);
9974
9980
  }, []), k = t.rects.reference, V = t.rects.popper, R = /* @__PURE__ */ new Map(), P = !0, Z = _[0], M = 0; M < _.length; M++) {
9975
- var Q = _[M], K = mt(Q), ae = nn(Q) === Zt, L = [Ye, at].indexOf(K) >= 0, I = L ? "width" : "height", $ = bn(t, {
9981
+ var Q = _[M], Y = mt(Q), ae = nn(Q) === Zt, L = [Ye, at].indexOf(Y) >= 0, I = L ? "width" : "height", $ = bn(t, {
9976
9982
  placement: Q,
9977
9983
  boundary: d,
9978
9984
  rootBoundary: b,
@@ -9981,7 +9987,7 @@ function Ec(e) {
9981
9987
  }), q = L ? ae ? lt : Ke : ae ? at : Ye;
9982
9988
  k[I] > V[I] && (q = Fn(q));
9983
9989
  var oe = Fn(q), D = [];
9984
- if (r && D.push($[K] <= 0), u && D.push($[q] <= 0, $[oe] <= 0), D.every(function(H) {
9990
+ if (r && D.push($[Y] <= 0), u && D.push($[q] <= 0, $[oe] <= 0), D.every(function(H) {
9985
9991
  return H;
9986
9992
  })) {
9987
9993
  Z = Q, P = !1;
@@ -10115,7 +10121,7 @@ function Bc(e) {
10115
10121
  } : Object.assign({
10116
10122
  mainAxis: 0,
10117
10123
  altAxis: 0
10118
- }, Z), Q = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, K = {
10124
+ }, Z), Q = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, Y = {
10119
10125
  x: 0,
10120
10126
  y: 0
10121
10127
  };
@@ -10125,13 +10131,13 @@ function Bc(e) {
10125
10131
  width: 0,
10126
10132
  height: 0
10127
10133
  }, W = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ja(), se = W[L], ce = W[I], pe = dn(0, R[$], H[$]), me = F ? R[$] / 2 - w - pe - se - M.mainAxis : h - pe - se - M.mainAxis, ge = F ? -R[$] / 2 + w + pe + ce + M.mainAxis : O + pe + ce + M.mainAxis, Be = t.elements.arrow && _n(t.elements.arrow), Ge = Be ? _ === "y" ? Be.clientTop || 0 : Be.clientLeft || 0 : 0, Fe = (ae = Q == null ? void 0 : Q[_]) != null ? ae : 0, Oe = q + me - Fe - Ge, ze = q + ge - Fe, At = dn(T ? zn(oe, Oe) : oe, q, T ? jt(D, ze) : D);
10128
- V[_] = At, K[_] = At - q;
10134
+ V[_] = At, Y[_] = At - q;
10129
10135
  }
10130
10136
  if (u) {
10131
10137
  var Yt, wn = _ === "x" ? Ye : Ke, Kt = _ === "x" ? at : lt, et = V[k], yt = k === "y" ? "height" : "width", xt = et + v[wn], Nt = et - v[Kt], St = [Ye, Ke].indexOf(g) !== -1, Mt = (Yt = Q == null ? void 0 : Q[k]) != null ? Yt : 0, Tt = St ? xt : et - R[yt] - P[yt] - Mt + M.altAxis, Ot = St ? et + R[yt] + P[yt] - Mt - M.altAxis : Nt, Et = T && St ? sc(Tt, et, Ot) : dn(T ? Tt : xt, et, T ? Ot : Nt);
10132
- V[k] = Et, K[k] = Et - et;
10138
+ V[k] = Et, Y[k] = Et - et;
10133
10139
  }
10134
- t.modifiersData[o] = K;
10140
+ t.modifiersData[o] = Y;
10135
10141
  }
10136
10142
  }
10137
10143
  const Vc = {
@@ -10452,7 +10458,7 @@ var al = { exports: {} }, ga = { exports: {} };
10452
10458
  });
10453
10459
  });
10454
10460
  }
10455
- function K(D, w) {
10461
+ function Y(D, w) {
10456
10462
  function h(x, H, W, se) {
10457
10463
  var ce = E(D[x], D, H);
10458
10464
  if (ce.type !== "throw") {
@@ -10565,11 +10571,11 @@ var al = { exports: {} }, ga = { exports: {} };
10565
10571
  return Object.setPrototypeOf ? Object.setPrototypeOf(D, V) : (D.__proto__ = V, y(D, b, "GeneratorFunction")), D.prototype = Object.create(M), D;
10566
10572
  }, l.awrap = function(D) {
10567
10573
  return { __await: D };
10568
- }, Q(K.prototype), y(K.prototype, d, function() {
10574
+ }, Q(Y.prototype), y(Y.prototype, d, function() {
10569
10575
  return this;
10570
- }), l.AsyncIterator = K, l.async = function(D, w, h, O, x) {
10576
+ }), l.AsyncIterator = Y, l.async = function(D, w, h, O, x) {
10571
10577
  x === void 0 && (x = Promise);
10572
- var H = new K(T(D, w, h, O), x);
10578
+ var H = new Y(T(D, w, h, O), x);
10573
10579
  return l.isGeneratorFunction(w) ? H : H.next().then(function(W) {
10574
10580
  return W.done ? W.value : H.next();
10575
10581
  });
@@ -11350,7 +11356,7 @@ var Rt = null, Gt = fe({ name: "ColorPicker", components: { ColorItem: fn, Picke
11350
11356
  return typeof e.popupContainer == "string" || Xt(e.popupContainer) === "object" && e.popupContainer != null ? e.popupContainer : "body";
11351
11357
  }), Q = X(function() {
11352
11358
  return typeof e.popupContainer == "boolean" && e.popupContainer === !1;
11353
- }), K = X(function() {
11359
+ }), Y = X(function() {
11354
11360
  return e.theme;
11355
11361
  });
11356
11362
  Ae(function() {
@@ -11358,9 +11364,9 @@ var Rt = null, Gt = fe({ name: "ColorPicker", components: { ColorItem: fn, Picke
11358
11364
  }, function() {
11359
11365
  zo(function() {
11360
11366
  var L, I;
11361
- (L = a(k)) === null || L === void 0 || L.setAttribute("pick-colors-theme", a(K)), (I = a(v)) === null || I === void 0 || (I = I.$el) === null || I === void 0 || I.setAttribute("pick-colors-theme", a(K));
11367
+ (L = a(k)) === null || L === void 0 || L.setAttribute("pick-colors-theme", a(Y)), (I = a(v)) === null || I === void 0 || (I = I.$el) === null || I === void 0 || I.setAttribute("pick-colors-theme", a(Y));
11362
11368
  });
11363
- }, { immediate: !0 }), Jt("theme", { theme: K });
11369
+ }, { immediate: !0 }), Jt("theme", { theme: Y });
11364
11370
  var ae = z([]);
11365
11371
  return qe(function() {
11366
11372
  document.addEventListener("mouseup", R, !1), e.showPicker && F();
@@ -12756,7 +12762,7 @@ const _p = /* @__PURE__ */ be(gp, [["render", Cp]]), wp = [
12756
12762
  }
12757
12763
  console.log("columns", _, o), _.forEach((Z) => {
12758
12764
  var Q;
12759
- let M = (Q = a(o)) == null ? void 0 : Q.find((K) => K.label === Z.label);
12765
+ let M = (Q = a(o)) == null ? void 0 : Q.find((Y) => Y.label === Z.label);
12760
12766
  M || (M = {
12761
12767
  label: Z.label,
12762
12768
  prop: Z.label,
@@ -13224,12 +13230,12 @@ const Dp = /* @__PURE__ */ be(Ep, [["render", Lp], ["__scopeId", "data-v-7276111
13224
13230
  var V;
13225
13231
  return (V = a(o)) == null ? void 0 : V.type;
13226
13232
  }), b = ["showTotalBool", "totalName", "expandAll"], y = X(() => Eu.map((V) => {
13227
- const { props: R, title: P, enableProps: Z, onlyType: M, excludeType: Q } = V, K = [];
13233
+ const { props: R, title: P, enableProps: Z, onlyType: M, excludeType: Q } = V, Y = [];
13228
13234
  R.forEach((I) => {
13229
- typeof I == "string" && (b.includes(I) ? e.isGroupTable && K.push(I) : K.push(I));
13235
+ typeof I == "string" && (b.includes(I) ? e.isGroupTable && Y.push(I) : Y.push(I));
13230
13236
  });
13231
13237
  let ae, L;
13232
- return e.componentType === "table" && (M != null && M.includes(e.componentType)) ? (ae = typeof Z == "string" && l.value ? l.value[Z] : void 0, L = jn(a(l), K)) : (ae = typeof Z == "string" && o.value ? o.value[Z] : void 0, L = jn(a(o), K)), {
13238
+ return e.componentType === "table" && (M != null && M.includes(e.componentType)) ? (ae = typeof Z == "string" && l.value ? l.value[Z] : void 0, L = jn(a(l), Y)) : (ae = typeof Z == "string" && o.value ? o.value[Z] : void 0, L = jn(a(o), Y)), {
13233
13239
  title: P,
13234
13240
  enableProps: ae,
13235
13241
  enablePropsName: Z,
@@ -13677,7 +13683,7 @@ const xp = /* @__PURE__ */ be(Fp, [["render", $p], ["__scopeId", "data-v-9a2fa8f
13677
13683
  }, Q = (h, O) => {
13678
13684
  var x;
13679
13685
  return (x = O == null ? void 0 : O.keyName) == null ? void 0 : x.toLowerCase().includes(h == null ? void 0 : h.toLowerCase());
13680
- }, K = (h, O) => {
13686
+ }, Y = (h, O) => {
13681
13687
  var x;
13682
13688
  return (x = O == null ? void 0 : O.label) == null ? void 0 : x.toLowerCase().includes(h == null ? void 0 : h.toLowerCase());
13683
13689
  }, ae = X(() => {
@@ -13757,7 +13763,7 @@ const xp = /* @__PURE__ */ be(Fp, [["render", $p], ["__scopeId", "data-v-9a2fa8f
13757
13763
  onCustomValueChange: k,
13758
13764
  onConditionKeyChange: M,
13759
13765
  idFilterOption: Q,
13760
- filterOption: K,
13766
+ filterOption: Y,
13761
13767
  onFormatChange: (h) => {
13762
13768
  r({
13763
13769
  control: {
@@ -14042,9 +14048,9 @@ const Wp = /* @__PURE__ */ be(Vp, [["render", Hp], ["__scopeId", "data-v-2588920
14042
14048
  if (Array.isArray(_) && _[g])
14043
14049
  if (_.splice(g, 1), _.length === 1) {
14044
14050
  if (k.length > 0) {
14045
- const M = k.length - 1, Q = k[M], K = k.slice(0, M);
14051
+ const M = k.length - 1, Q = k[M], Y = k.slice(0, M);
14046
14052
  let ae = F, L = "";
14047
- for (const I of K)
14053
+ for (const I of Y)
14048
14054
  if (ae[I])
14049
14055
  L = (P = ae[I]) == null ? void 0 : P.join, ae = (Z = ae[I]) == null ? void 0 : Z.conditions;
14050
14056
  else
@@ -15055,13 +15061,13 @@ const xf = /* @__PURE__ */ be(Ff, [["render", $f]]), Nf = fe({
15055
15061
  const me = pe.reduce(
15056
15062
  (ge, Be) => ge.filter((Ge) => Be.find((Fe) => Fe.typeGuid === Ge.typeGuid))
15057
15063
  );
15058
- K(me.filter((ge) => ge.typeGuid));
15064
+ Y(me.filter((ge) => ge.typeGuid));
15059
15065
  }
15060
15066
  });
15061
15067
  } else
15062
- K([]);
15068
+ Y([]);
15063
15069
  }
15064
- function K(w) {
15070
+ function Y(w) {
15065
15071
  var Fe;
15066
15072
  const {
15067
15073
  classificationList: h = [],
@@ -15384,4 +15390,4 @@ const Jf = /* @__PURE__ */ be(Nf, [["render", Bf], ["__scopeId", "data-v-ed09940
15384
15390
  export {
15385
15391
  Jf as default
15386
15392
  };
15387
- //# sourceMappingURL=index-43aedc2c.mjs.map
15393
+ //# sourceMappingURL=index-1847f43e.mjs.map