cd-vue-filter 2.4.8 → 2.4.11

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,6 +1,6 @@
1
- import { defineComponent as be, ref as _, watch as G, resolveComponent as F, openBlock as g, createBlock as J, withCtx as s, createElementVNode as i, createVNode as o, createTextVNode as T, createCommentVNode as X, computed as ee, createElementBlock as B, Fragment as W, renderList as Z, nextTick as ie, toDisplayString as se, normalizeStyle as de, normalizeClass as ue, renderSlot as fe, withDirectives as $e, vShow as Ve } from "vue";
1
+ import { defineComponent as be, ref as _, watch as G, resolveComponent as O, openBlock as C, createBlock as J, withCtx as s, createElementVNode as i, createVNode as o, createTextVNode as T, createCommentVNode as X, computed as ee, createElementBlock as B, Fragment as W, renderList as Z, nextTick as ie, toDisplayString as se, normalizeStyle as de, normalizeClass as ue, renderSlot as fe, withDirectives as $e, vShow as Se } from "vue";
2
2
  import { MessagePlugin as re } from "tdesign-vue-next";
3
- const Se = [
3
+ const Ve = [
4
4
  {
5
5
  name: "北京市",
6
6
  city: [{
@@ -5538,8 +5538,8 @@ const Se = [
5538
5538
  },
5539
5539
  emits: ["update:visible", "select"],
5540
5540
  setup(r, { emit: Y }) {
5541
- const d = r, k = Y, m = _(""), x = _(!1), I = _([]), e = _([]), $ = _(0), j = _(1), P = _([]), q = _(null), R = _([]), w = /* @__PURE__ */ new Map();
5542
- function O() {
5541
+ const d = r, k = Y, m = _(""), A = _(!1), I = _([]), e = _([]), S = _(0), j = _(1), P = _([]), q = _(null), M = _([]), w = /* @__PURE__ */ new Map();
5542
+ function F() {
5543
5543
  k("update:visible", !1), N();
5544
5544
  }
5545
5545
  function N() {
@@ -5547,28 +5547,28 @@ const Se = [
5547
5547
  }
5548
5548
  function K(a, p) {
5549
5549
  if (a.length > 0) {
5550
- const C = a[a.length - 1];
5551
- P.value = [C], q.value = I.value.find((l) => l.id === C) || null;
5550
+ const g = a[a.length - 1];
5551
+ P.value = [g], q.value = I.value.find((l) => l.id === g) || null;
5552
5552
  } else
5553
5553
  P.value = [], q.value = null;
5554
5554
  }
5555
- function D() {
5555
+ function E() {
5556
5556
  if (!q.value) return;
5557
5557
  const a = q.value;
5558
5558
  let p = "";
5559
- const C = d.formType || (d.fieldType === "billdata" ? "form" : "basic");
5560
- if (C === "basic" || C === "tree" ? p = a.fname || "" : p = a.fbillno || "", !p && R.value.length > 0) {
5561
- const l = R.value[0];
5559
+ const g = d.formType || (d.fieldType === "billdata" ? "form" : "basic");
5560
+ if (g === "basic" || g === "tree" ? p = a.fname || "" : p = a.fbillno || "", !p && M.value.length > 0) {
5561
+ const l = M.value[0];
5562
5562
  p = a[l.__vModel__] || "";
5563
5563
  }
5564
5564
  k("select", { id: a.id, displayName: p }), k("update:visible", !1), N();
5565
5565
  }
5566
5566
  function c(a) {
5567
5567
  const p = [];
5568
- for (const C of a) {
5569
- if (!C) continue;
5570
- const l = C.__config__ || {};
5571
- l.noShow || l.jnpfKey === "divider" || l.jnpfKey === "table" || l.jnpfKey === "vxeSubGrid" || (l.children && Array.isArray(l.children) ? p.push(...c(l.children)) : p.push(C));
5568
+ for (const g of a) {
5569
+ if (!g) continue;
5570
+ const l = g.__config__ || {};
5571
+ l.noShow || l.jnpfKey === "divider" || l.jnpfKey === "table" || l.jnpfKey === "vxeSubGrid" || (l.children && Array.isArray(l.children) ? p.push(...c(l.children)) : p.push(g));
5572
5572
  }
5573
5573
  return p;
5574
5574
  }
@@ -5577,16 +5577,16 @@ const Se = [
5577
5577
  if (d.releaseId) {
5578
5578
  if (w.has(d.releaseId)) {
5579
5579
  const p = w.get(d.releaseId);
5580
- R.value = p.fields, e.value = p.columns;
5580
+ M.value = p.fields, e.value = p.columns;
5581
5581
  return;
5582
5582
  }
5583
5583
  try {
5584
- const C = await (await fetch(`/api/visualdev/OnlineDev/${d.releaseId}/Config`, {
5584
+ const g = await (await fetch(`/api/visualdev/OnlineDev/${d.releaseId}/Config`, {
5585
5585
  credentials: "include"
5586
- })).json(), l = (a = C.data) != null && a.formData ? JSON.parse(C.data.formData) : null;
5586
+ })).json(), l = (a = g.data) != null && a.formData ? JSON.parse(g.data.formData) : null;
5587
5587
  if (!(l != null && l.fields)) return;
5588
5588
  const t = c(l.fields);
5589
- R.value = t;
5589
+ M.value = t;
5590
5590
  const y = t.slice(0, 6).map((z) => {
5591
5591
  var h;
5592
5592
  return {
@@ -5606,9 +5606,9 @@ const Se = [
5606
5606
  }
5607
5607
  }
5608
5608
  async function n() {
5609
- var a, p, C;
5609
+ var a, p, g;
5610
5610
  if (d.releaseId) {
5611
- x.value = !0;
5611
+ A.value = !0;
5612
5612
  try {
5613
5613
  const l = { currentPage: j.value, pageSize: pe };
5614
5614
  m.value.trim() && (l.keyword = m.value.trim());
@@ -5627,11 +5627,11 @@ const Se = [
5627
5627
  } catch {
5628
5628
  }
5629
5629
  return Object.assign(L, h), L;
5630
- }), $.value = ((C = (p = y.data) == null ? void 0 : p.pagination) == null ? void 0 : C.total) || 0;
5630
+ }), S.value = ((g = (p = y.data) == null ? void 0 : p.pagination) == null ? void 0 : g.total) || 0;
5631
5631
  } catch (l) {
5632
5632
  console.error("[RelationSelectDialog] fetchData error:", l);
5633
5633
  } finally {
5634
- x.value = !1;
5634
+ A.value = !1;
5635
5635
  }
5636
5636
  }
5637
5637
  }
@@ -5644,21 +5644,21 @@ const Se = [
5644
5644
  return G(() => d.visible, (a) => {
5645
5645
  a && d.releaseId && f().then(() => n());
5646
5646
  }), (a, p) => {
5647
- const C = F("t-input"), l = F("t-button"), t = F("t-table"), y = F("t-pagination"), z = F("t-dialog");
5648
- return g(), J(z, {
5647
+ const g = O("t-input"), l = O("t-button"), t = O("t-table"), y = O("t-pagination"), z = O("t-dialog");
5648
+ return C(), J(z, {
5649
5649
  visible: r.visible,
5650
5650
  header: r.dialogTitle || "选择关联数据",
5651
5651
  width: 900,
5652
5652
  footer: !0,
5653
- onClose: O,
5654
- onConfirm: D,
5653
+ onClose: F,
5654
+ onConfirm: E,
5655
5655
  attach: ".cd-form-select-modal",
5656
5656
  "close-on-overlay-click": !1
5657
5657
  }, {
5658
5658
  default: s(() => [
5659
5659
  i("div", xe, [
5660
5660
  i("div", De, [
5661
- o(C, {
5661
+ o(g, {
5662
5662
  modelValue: m.value,
5663
5663
  "onUpdate:modelValue": p[0] || (p[0] = (h) => m.value = h),
5664
5664
  placeholder: "请输入关键字搜索",
@@ -5682,7 +5682,7 @@ const Se = [
5682
5682
  o(t, {
5683
5683
  data: I.value,
5684
5684
  columns: e.value,
5685
- loading: x.value,
5685
+ loading: A.value,
5686
5686
  "row-key": "id",
5687
5687
  "selected-row-keys": P.value,
5688
5688
  onSelectChange: K,
@@ -5690,11 +5690,11 @@ const Se = [
5690
5690
  size: "small",
5691
5691
  style: { "margin-top": "12px" }
5692
5692
  }, null, 8, ["data", "columns", "loading", "selected-row-keys"]),
5693
- $.value > 0 ? (g(), J(y, {
5693
+ S.value > 0 ? (C(), J(y, {
5694
5694
  key: 0,
5695
5695
  current: j.value,
5696
5696
  "onUpdate:current": p[1] || (p[1] = (h) => j.value = h),
5697
- total: $.value,
5697
+ total: S.value,
5698
5698
  "page-size": pe,
5699
5699
  "show-jumper": !0,
5700
5700
  size: "small",
@@ -5722,8 +5722,8 @@ const Se = [
5722
5722
  },
5723
5723
  emits: ["search"],
5724
5724
  setup(r, { emit: Y }) {
5725
- var a, p, C;
5726
- const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], k = ee(() => Se.map((l) => d.includes(l.name) ? {
5725
+ var a, p, g;
5726
+ const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], k = ee(() => Ve.map((l) => d.includes(l.name) ? {
5727
5727
  label: l.name,
5728
5728
  value: l.name,
5729
5729
  children: l.city[0].area.map((t) => ({
@@ -5756,7 +5756,7 @@ const Se = [
5756
5756
  "this_year",
5757
5757
  "last_year",
5758
5758
  "next_year"
5759
- ].includes(l), x = (l) => {
5759
+ ].includes(l), A = (l) => {
5760
5760
  if (e.selectOptions && e.selectOptions[l])
5761
5761
  return e.selectOptions[l];
5762
5762
  if (e.selectOptions && Array.isArray(e.selectOptions)) {
@@ -5774,10 +5774,10 @@ const Se = [
5774
5774
  function I(l) {
5775
5775
  return [...l].sort((t, y) => t.value.localeCompare(y.value, "zh-CN"));
5776
5776
  }
5777
- const e = r, $ = Y, j = _({
5777
+ const e = r, S = Y, j = _({
5778
5778
  field: ((a = e.filterCondition) == null ? void 0 : a.field) || "",
5779
5779
  operator: ((p = e.filterCondition) == null ? void 0 : p.operator) || "eq",
5780
- value: ((C = e.filterCondition) == null ? void 0 : C.value) || null
5780
+ value: ((g = e.filterCondition) == null ? void 0 : g.value) || null
5781
5781
  });
5782
5782
  G(() => e.filterCondition, (l) => {
5783
5783
  l && (j.value = { ...l });
@@ -5787,23 +5787,23 @@ const Se = [
5787
5787
  return t ? t.type : "text";
5788
5788
  }, q = () => {
5789
5789
  typeof e.filterCondition.value == "string" && (e.filterCondition.value = e.filterCondition.value.trim()), ie(() => {
5790
- $("search", { ...e.filterCondition });
5790
+ S("search", { ...e.filterCondition });
5791
5791
  });
5792
- }, R = () => {
5792
+ }, M = () => {
5793
5793
  (e.filterCondition.operator === "is_empty" || e.filterCondition.operator === "is_not_empty") && (e.filterCondition.value = null), ie(() => {
5794
- $("search", { ...e.filterCondition });
5794
+ S("search", { ...e.filterCondition });
5795
5795
  });
5796
5796
  }, w = (l) => {
5797
- e.filterCondition.value = l, $("search", { ...e.filterCondition });
5798
- }, O = _(!1), N = _(null), K = _("basedata"), D = (l) => {
5797
+ e.filterCondition.value = l, S("search", { ...e.filterCondition });
5798
+ }, F = _(!1), N = _(null), K = _("basedata"), E = (l) => {
5799
5799
  const t = e.fieldOptions.find((y) => y.value === l);
5800
5800
  return !!t && (t.type === "basedata" || t.type === "billdata") && !!t.relationConfig;
5801
5801
  }, c = (l) => l === "is_empty" || l === "is_not_empty", f = (l) => {
5802
5802
  const t = e.fieldOptions.find((y) => y.value === l);
5803
- t != null && t.relationConfig && (N.value = t.relationConfig, K.value = t.type === "billdata" ? "billdata" : "basedata", O.value = !0);
5803
+ t != null && t.relationConfig && (N.value = t.relationConfig, K.value = t.type === "billdata" ? "billdata" : "basedata", F.value = !0);
5804
5804
  }, n = (l) => {
5805
5805
  e.filterCondition.value = l.displayName, ie(() => {
5806
- $("search", { ...e.filterCondition });
5806
+ S("search", { ...e.filterCondition });
5807
5807
  });
5808
5808
  }, U = ee(() => {
5809
5809
  var y;
@@ -5896,18 +5896,18 @@ const Se = [
5896
5896
  }
5897
5897
  }), v = () => {
5898
5898
  ie(() => {
5899
- $("search", { ...e.filterCondition });
5899
+ S("search", { ...e.filterCondition });
5900
5900
  });
5901
5901
  };
5902
5902
  return G(() => e.filterCondition.field, (l, t) => {
5903
5903
  l && t && (e.filterCondition.operator = "eq", e.filterCondition.value = null);
5904
5904
  }), (l, t) => {
5905
5905
  var le, te, ne, oe;
5906
- const y = F("t-option"), z = F("t-select"), h = F("t-input"), L = F("t-date-picker"), Q = F("t-cascader");
5907
- return g(), B("div", Ue, [
5906
+ const y = O("t-option"), z = O("t-select"), h = O("t-input"), L = O("t-date-picker"), Q = O("t-cascader");
5907
+ return C(), B("div", Ue, [
5908
5908
  o(z, {
5909
5909
  modelValue: e.filterCondition.field,
5910
- "onUpdate:modelValue": t[0] || (t[0] = (V) => e.filterCondition.field = V),
5910
+ "onUpdate:modelValue": t[0] || (t[0] = (x) => e.filterCondition.field = x),
5911
5911
  placeholder: "请选择字段",
5912
5912
  size: e.size,
5913
5913
  style: { "min-width": "80px", "max-width": "110px" },
@@ -5916,64 +5916,64 @@ const Se = [
5916
5916
  "popup-props": { attach: ".cd-form-select-modal" }
5917
5917
  }, {
5918
5918
  default: s(() => [
5919
- (g(!0), B(W, null, Z(e.fieldOptions, (V) => (g(), J(y, {
5920
- key: V.key,
5921
- label: V.key,
5922
- value: V.value
5919
+ (C(!0), B(W, null, Z(e.fieldOptions, (x) => (C(), J(y, {
5920
+ key: x.key,
5921
+ label: x.key,
5922
+ value: x.value
5923
5923
  }, null, 8, ["label", "value"]))), 128))
5924
5924
  ]),
5925
5925
  _: 1
5926
5926
  }, 8, ["modelValue", "size"]),
5927
5927
  o(z, {
5928
5928
  modelValue: e.filterCondition.operator,
5929
- "onUpdate:modelValue": t[1] || (t[1] = (V) => e.filterCondition.operator = V),
5929
+ "onUpdate:modelValue": t[1] || (t[1] = (x) => e.filterCondition.operator = x),
5930
5930
  placeholder: "请选择条件",
5931
5931
  size: e.size,
5932
5932
  style: { width: "80px" },
5933
5933
  clearable: "",
5934
- onChange: R,
5934
+ onChange: M,
5935
5935
  "popup-props": { attach: ".cd-form-select-modal" }
5936
5936
  }, {
5937
5937
  default: s(() => [
5938
- (g(!0), B(W, null, Z(U.value, (V) => (g(), J(y, {
5939
- key: V.key,
5940
- label: V.label,
5941
- value: V.value
5938
+ (C(!0), B(W, null, Z(U.value, (x) => (C(), J(y, {
5939
+ key: x.key,
5940
+ label: x.label,
5941
+ value: x.value
5942
5942
  }, null, 8, ["label", "value"]))), 128))
5943
5943
  ]),
5944
5944
  _: 1
5945
5945
  }, 8, ["modelValue", "size"]),
5946
- P(e.filterCondition.field) === "number" ? (g(), J(h, {
5946
+ P(e.filterCondition.field) === "number" ? (C(), J(h, {
5947
5947
  key: 0,
5948
5948
  type: "number",
5949
5949
  modelValue: e.filterCondition.value,
5950
- "onUpdate:modelValue": t[2] || (t[2] = (V) => e.filterCondition.value = V),
5950
+ "onUpdate:modelValue": t[2] || (t[2] = (x) => e.filterCondition.value = x),
5951
5951
  placeholder: "请输入数字",
5952
5952
  size: e.size,
5953
5953
  style: { width: "80px" },
5954
5954
  onChange: q,
5955
5955
  clearable: ""
5956
- }, null, 8, ["modelValue", "size"])) : P(e.filterCondition.field) === "money" ? (g(), J(h, {
5956
+ }, null, 8, ["modelValue", "size"])) : P(e.filterCondition.field) === "money" ? (C(), J(h, {
5957
5957
  key: 1,
5958
5958
  type: "number",
5959
5959
  modelValue: e.filterCondition.value,
5960
- "onUpdate:modelValue": t[3] || (t[3] = (V) => e.filterCondition.value = V),
5960
+ "onUpdate:modelValue": t[3] || (t[3] = (x) => e.filterCondition.value = x),
5961
5961
  placeholder: "请输入金额",
5962
5962
  size: e.size,
5963
5963
  style: { width: "80px" },
5964
5964
  onChange: q,
5965
5965
  clearable: ""
5966
- }, null, 8, ["modelValue", "size"])) : P(e.filterCondition.field) === "date" ? (g(), B(W, { key: 2 }, [
5967
- m(e.filterCondition.operator) ? (g(), J(h, {
5966
+ }, null, 8, ["modelValue", "size"])) : P(e.filterCondition.field) === "date" ? (C(), B(W, { key: 2 }, [
5967
+ m(e.filterCondition.operator) ? (C(), J(h, {
5968
5968
  key: 1,
5969
- value: (le = U.value.find((V) => V.value === e.filterCondition.operator)) == null ? void 0 : le.label,
5969
+ value: (le = U.value.find((x) => x.value === e.filterCondition.operator)) == null ? void 0 : le.label,
5970
5970
  disabled: "",
5971
5971
  size: e.size,
5972
5972
  style: { "min-width": "80px", "max-width": "120px" }
5973
- }, null, 8, ["value", "size"])) : (g(), J(L, {
5973
+ }, null, 8, ["value", "size"])) : (C(), J(L, {
5974
5974
  key: 0,
5975
5975
  modelValue: e.filterCondition.value,
5976
- "onUpdate:modelValue": t[4] || (t[4] = (V) => e.filterCondition.value = V),
5976
+ "onUpdate:modelValue": t[4] || (t[4] = (x) => e.filterCondition.value = x),
5977
5977
  placeholder: "请选择日期",
5978
5978
  size: e.size,
5979
5979
  style: { "min-width": "80px", "max-width": "120px" },
@@ -5981,10 +5981,10 @@ const Se = [
5981
5981
  clearable: "",
5982
5982
  "popup-props": { attach: ".cd-form-select-modal" }
5983
5983
  }, null, 8, ["modelValue", "size"]))
5984
- ], 64)) : P(e.filterCondition.field) === "time" ? (g(), J(L, {
5984
+ ], 64)) : P(e.filterCondition.field) === "time" ? (C(), J(L, {
5985
5985
  key: 3,
5986
5986
  modelValue: e.filterCondition.value,
5987
- "onUpdate:modelValue": t[5] || (t[5] = (V) => e.filterCondition.value = V),
5987
+ "onUpdate:modelValue": t[5] || (t[5] = (x) => e.filterCondition.value = x),
5988
5988
  placeholder: "请选择日期时间",
5989
5989
  size: e.size,
5990
5990
  style: { "min-width": "80px", "max-width": "120px" },
@@ -5993,21 +5993,21 @@ const Se = [
5993
5993
  onChange: q,
5994
5994
  clearable: "",
5995
5995
  "popup-props": { attach: ".cd-form-select-modal" }
5996
- }, null, 8, ["modelValue", "size"])) : P(e.filterCondition.field) === "select" ? (g(), J(z, {
5996
+ }, null, 8, ["modelValue", "size"])) : P(e.filterCondition.field) === "select" ? (C(), J(z, {
5997
5997
  key: 4,
5998
5998
  modelValue: e.filterCondition.value,
5999
- "onUpdate:modelValue": t[6] || (t[6] = (V) => e.filterCondition.value = V),
6000
- options: x(e.filterCondition.field),
5999
+ "onUpdate:modelValue": t[6] || (t[6] = (x) => e.filterCondition.value = x),
6000
+ options: A(e.filterCondition.field),
6001
6001
  placeholder: "请选择",
6002
6002
  size: e.size,
6003
6003
  style: { "min-width": "80px", "max-width": "120px" },
6004
6004
  onChange: q,
6005
6005
  clearable: "",
6006
6006
  "popup-props": { attach: ".cd-form-select-modal" }
6007
- }, null, 8, ["modelValue", "options", "size"])) : P(e.filterCondition.field) === "selectProvince" ? (g(), J(Q, {
6007
+ }, null, 8, ["modelValue", "options", "size"])) : P(e.filterCondition.field) === "selectProvince" ? (C(), J(Q, {
6008
6008
  key: 5,
6009
6009
  modelValue: e.filterCondition.value,
6010
- "onUpdate:modelValue": t[7] || (t[7] = (V) => e.filterCondition.value = V),
6010
+ "onUpdate:modelValue": t[7] || (t[7] = (x) => e.filterCondition.value = x),
6011
6011
  options: k.value,
6012
6012
  placeholder: "请选择地区",
6013
6013
  size: e.size,
@@ -6016,11 +6016,11 @@ const Se = [
6016
6016
  loading: !1,
6017
6017
  onChange: w,
6018
6018
  "popup-props": { attach: ".cd-form-select-modal" }
6019
- }, null, 8, ["modelValue", "options", "size"])) : D(e.filterCondition.field) ? (g(), B(W, { key: 6 }, [
6020
- c(e.filterCondition.operator) ? X("", !0) : (g(), J(h, {
6019
+ }, null, 8, ["modelValue", "options", "size"])) : E(e.filterCondition.field) ? (C(), B(W, { key: 6 }, [
6020
+ c(e.filterCondition.operator) ? X("", !0) : (C(), J(h, {
6021
6021
  key: 0,
6022
6022
  modelValue: e.filterCondition.value,
6023
- "onUpdate:modelValue": t[9] || (t[9] = (V) => e.filterCondition.value = V),
6023
+ "onUpdate:modelValue": t[9] || (t[9] = (x) => e.filterCondition.value = x),
6024
6024
  placeholder: "请选择",
6025
6025
  readonly: "",
6026
6026
  size: e.size,
@@ -6032,25 +6032,25 @@ const Se = [
6032
6032
  i("i", {
6033
6033
  class: "ri-search-line",
6034
6034
  style: { cursor: "pointer" },
6035
- onClick: t[8] || (t[8] = (V) => f(e.filterCondition.field))
6035
+ onClick: t[8] || (t[8] = (x) => f(e.filterCondition.field))
6036
6036
  })
6037
6037
  ]),
6038
6038
  _: 1
6039
6039
  }, 8, ["modelValue", "size"])),
6040
6040
  o(Ee, {
6041
- visible: O.value,
6042
- "onUpdate:visible": t[10] || (t[10] = (V) => O.value = V),
6041
+ visible: F.value,
6042
+ "onUpdate:visible": t[10] || (t[10] = (x) => F.value = x),
6043
6043
  "release-id": ((te = N.value) == null ? void 0 : te.releaseId) || "",
6044
6044
  "field-type": K.value,
6045
6045
  "form-type": (ne = N.value) == null ? void 0 : ne.formType,
6046
6046
  "dialog-title": (oe = N.value) == null ? void 0 : oe.dialogTitle,
6047
6047
  onSelect: n
6048
6048
  }, null, 8, ["visible", "release-id", "field-type", "form-type", "dialog-title"])
6049
- ], 64)) : (g(), B(W, { key: 7 }, [
6050
- e.filterCondition.operator !== "is_empty" && e.filterCondition.operator !== "is_not_empty" ? (g(), J(h, {
6049
+ ], 64)) : (C(), B(W, { key: 7 }, [
6050
+ e.filterCondition.operator !== "is_empty" && e.filterCondition.operator !== "is_not_empty" ? (C(), J(h, {
6051
6051
  key: 0,
6052
6052
  modelValue: e.filterCondition.value,
6053
- "onUpdate:modelValue": t[11] || (t[11] = (V) => e.filterCondition.value = V),
6053
+ "onUpdate:modelValue": t[11] || (t[11] = (x) => e.filterCondition.value = x),
6054
6054
  placeholder: "请输入关键字",
6055
6055
  size: e.size,
6056
6056
  style: { "min-width": "80px", "max-width": "100px" },
@@ -6113,12 +6113,12 @@ const Se = [
6113
6113
  { field: "", operator: "eq", value: "" }
6114
6114
  ]
6115
6115
  }
6116
- ]), x = _("and");
6116
+ ]), A = _("and");
6117
6117
  let I = 3;
6118
6118
  G(() => d.initialFilterCards, (w) => {
6119
6119
  w && w.length > 0 && (m.value = w);
6120
6120
  }, { immediate: !0, deep: !0 }), G(() => d.initialType1, (w) => {
6121
- w && (x.value = w);
6121
+ w && (A.value = w);
6122
6122
  }, { immediate: !0 });
6123
6123
  const e = () => {
6124
6124
  m.value.push({
@@ -6126,62 +6126,62 @@ const Se = [
6126
6126
  connector: "and",
6127
6127
  conditions: [{ field: "", operator: "eq", value: "" }]
6128
6128
  });
6129
- }, $ = (w) => {
6129
+ }, S = (w) => {
6130
6130
  w >= 0 && w < m.value.length && m.value[w].conditions.push({
6131
6131
  field: "",
6132
6132
  operator: "eq",
6133
6133
  value: ""
6134
6134
  });
6135
- }, j = (w, O) => {
6135
+ }, j = (w, F) => {
6136
6136
  if (w >= 0 && w < m.value.length) {
6137
6137
  const N = m.value[w];
6138
- N.conditions.length > 1 && O >= 0 && O < N.conditions.length ? N.conditions.splice(O, 1) : N.conditions.length <= 1 && re.warning("每个卡片至少需要一个筛选条件");
6138
+ N.conditions.length > 1 && F >= 0 && F < N.conditions.length ? N.conditions.splice(F, 1) : N.conditions.length <= 1 && re.warning("每个卡片至少需要一个筛选条件");
6139
6139
  }
6140
6140
  }, P = (w) => {
6141
6141
  m.value.length > 1 ? m.value.splice(w, 1) : re.warning("至少需要保留一个筛选卡片");
6142
6142
  }, q = () => {
6143
6143
  k("submit", {
6144
6144
  filterCards: m.value,
6145
- type1: x.value
6145
+ type1: A.value
6146
6146
  });
6147
- }, R = () => {
6147
+ }, M = () => {
6148
6148
  k("close"), k("update:visible", !1);
6149
6149
  };
6150
- return (w, O) => {
6151
- const N = F("t-radio-button"), K = F("t-radio-group"), D = F("t-icon"), c = F("t-button"), f = F("t-dialog");
6152
- return g(), J(f, {
6150
+ return (w, F) => {
6151
+ const N = O("t-radio-button"), K = O("t-radio-group"), E = O("t-icon"), c = O("t-button"), f = O("t-dialog");
6152
+ return C(), J(f, {
6153
6153
  header: "筛选条件设置",
6154
6154
  placement: "center",
6155
6155
  visible: r.visible,
6156
- "onUpdate:visible": O[1] || (O[1] = (n) => w.$emit("update:visible", n)),
6156
+ "onUpdate:visible": F[1] || (F[1] = (n) => w.$emit("update:visible", n)),
6157
6157
  width: "700px",
6158
6158
  "z-index": 999,
6159
6159
  footer: !0,
6160
- onClose: R,
6160
+ onClose: M,
6161
6161
  id: "leader-line-clip-container"
6162
6162
  }, {
6163
6163
  body: s(() => [
6164
6164
  i("div", Te, [
6165
6165
  i("div", Ne, [
6166
6166
  i("div", Be, [
6167
- m.value.length > 1 ? (g(), B("div", Pe, [
6167
+ m.value.length > 1 ? (C(), B("div", Pe, [
6168
6168
  i("div", Re, [
6169
6169
  o(K, {
6170
6170
  size: "small",
6171
6171
  class: "connector-selector",
6172
- modelValue: x.value,
6173
- "onUpdate:modelValue": O[0] || (O[0] = (n) => x.value = n),
6172
+ modelValue: A.value,
6173
+ "onUpdate:modelValue": F[0] || (F[0] = (n) => A.value = n),
6174
6174
  style: { "margin-right": "20px" }
6175
6175
  }, {
6176
6176
  default: s(() => [
6177
6177
  o(N, { value: "and" }, {
6178
- default: s(() => [...O[2] || (O[2] = [
6178
+ default: s(() => [...F[2] || (F[2] = [
6179
6179
  T("且", -1)
6180
6180
  ])]),
6181
6181
  _: 1
6182
6182
  }),
6183
6183
  o(N, { value: "or" }, {
6184
- default: s(() => [...O[3] || (O[3] = [
6184
+ default: s(() => [...F[3] || (F[3] = [
6185
6185
  T("或", -1)
6186
6186
  ])]),
6187
6187
  _: 1
@@ -6193,7 +6193,7 @@ const Se = [
6193
6193
  ])) : X("", !0),
6194
6194
  i("div", Je, [
6195
6195
  i("div", je, [
6196
- (g(!0), B(W, null, Z(m.value, (n, U) => (g(), B("div", {
6196
+ (C(!0), B(W, null, Z(m.value, (n, U) => (C(), B("div", {
6197
6197
  key: n.id,
6198
6198
  class: "filter-card-item"
6199
6199
  }, [
@@ -6208,13 +6208,13 @@ const Se = [
6208
6208
  }, {
6209
6209
  default: s(() => [
6210
6210
  o(N, { value: "and" }, {
6211
- default: s(() => [...O[4] || (O[4] = [
6211
+ default: s(() => [...F[4] || (F[4] = [
6212
6212
  T("且", -1)
6213
6213
  ])]),
6214
6214
  _: 1
6215
6215
  }),
6216
6216
  o(N, { value: "or" }, {
6217
- default: s(() => [...O[5] || (O[5] = [
6217
+ default: s(() => [...F[5] || (F[5] = [
6218
6218
  T("或", -1)
6219
6219
  ])]),
6220
6220
  _: 1
@@ -6231,13 +6231,13 @@ const Se = [
6231
6231
  disabled: m.value.length === 1
6232
6232
  }, {
6233
6233
  icon: s(() => [
6234
- o(D, { name: "close" })
6234
+ o(E, { name: "close" })
6235
6235
  ]),
6236
6236
  _: 1
6237
6237
  }, 8, ["onClick", "disabled"])
6238
6238
  ]),
6239
6239
  i("div", He, [
6240
- (g(!0), B(W, null, Z(n.conditions, (v, a) => (g(), B("div", {
6240
+ (C(!0), B(W, null, Z(n.conditions, (v, a) => (C(), B("div", {
6241
6241
  key: a,
6242
6242
  class: "filter-combination"
6243
6243
  }, [
@@ -6256,7 +6256,7 @@ const Se = [
6256
6256
  disabled: n.conditions.length === 1
6257
6257
  }, {
6258
6258
  icon: s(() => [
6259
- o(D, { name: "minus" })
6259
+ o(E, { name: "minus" })
6260
6260
  ]),
6261
6261
  _: 1
6262
6262
  }, 8, ["onClick", "disabled"])
@@ -6265,13 +6265,13 @@ const Se = [
6265
6265
  o(c, {
6266
6266
  theme: "default",
6267
6267
  size: "small",
6268
- onClick: (v) => $(U)
6268
+ onClick: (v) => S(U)
6269
6269
  }, {
6270
6270
  icon: s(() => [
6271
- o(D, { name: "add" })
6271
+ o(E, { name: "add" })
6272
6272
  ]),
6273
6273
  default: s(() => [
6274
- O[6] || (O[6] = T(" 添加条件 ", -1))
6274
+ F[6] || (F[6] = T(" 添加条件 ", -1))
6275
6275
  ]),
6276
6276
  _: 1
6277
6277
  }, 8, ["onClick"])
@@ -6283,8 +6283,8 @@ const Se = [
6283
6283
  onClick: e
6284
6284
  }, [
6285
6285
  i("div", Ye, [
6286
- o(D, { name: "add" }),
6287
- O[7] || (O[7] = i("span", null, "增加筛选卡片", -1))
6286
+ o(E, { name: "add" }),
6287
+ F[7] || (F[7] = i("span", null, "增加筛选卡片", -1))
6288
6288
  ])
6289
6289
  ])
6290
6290
  ])
@@ -6295,13 +6295,13 @@ const Se = [
6295
6295
  ]),
6296
6296
  footer: s(() => [
6297
6297
  i("div", Ge, [
6298
- O[10] || (O[10] = i("div", { class: "filter-dialog-footer2" }, null, -1)),
6298
+ F[10] || (F[10] = i("div", { class: "filter-dialog-footer2" }, null, -1)),
6299
6299
  i("div", We, [
6300
6300
  o(c, {
6301
6301
  theme: "default",
6302
- onClick: R
6302
+ onClick: M
6303
6303
  }, {
6304
- default: s(() => [...O[8] || (O[8] = [
6304
+ default: s(() => [...F[8] || (F[8] = [
6305
6305
  T("取消", -1)
6306
6306
  ])]),
6307
6307
  _: 1
@@ -6310,7 +6310,7 @@ const Se = [
6310
6310
  theme: "primary",
6311
6311
  onClick: q
6312
6312
  }, {
6313
- default: s(() => [...O[9] || (O[9] = [
6313
+ default: s(() => [...F[9] || (F[9] = [
6314
6314
  T("确定", -1)
6315
6315
  ])]),
6316
6316
  _: 1
@@ -6404,15 +6404,15 @@ const Se = [
6404
6404
  "column-change"
6405
6405
  ],
6406
6406
  setup(r, { emit: Y }) {
6407
- const d = r, k = Y, m = _(JSON.parse(JSON.stringify(d.filterCards))), x = _(d.topOp), I = _(null);
6407
+ const d = r, k = Y, m = _(JSON.parse(JSON.stringify(d.filterCards))), A = _(d.topOp), I = _(null);
6408
6408
  _([]);
6409
6409
  let e = 100;
6410
6410
  G(() => d.filterCards, (v) => {
6411
6411
  m.value = JSON.parse(JSON.stringify(v));
6412
6412
  }, { deep: !0 }), G(() => d.topOp, (v) => {
6413
- x.value = v;
6413
+ A.value = v;
6414
6414
  });
6415
- const $ = () => {
6415
+ const S = () => {
6416
6416
  m.value.push({
6417
6417
  id: e++,
6418
6418
  connector: "and",
@@ -6431,12 +6431,12 @@ const Se = [
6431
6431
  const p = m.value[v];
6432
6432
  p.conditions.length > 1 && a >= 0 && a < p.conditions.length ? p.conditions.splice(a, 1) : p.conditions.length <= 1 && re.warning("每个卡片至少需要一个筛选条件");
6433
6433
  }
6434
- }, R = (v) => v.map((a) => {
6435
- const p = a.conditions.filter((C) => C.field && C.field.trim() !== "").map((C) => {
6434
+ }, M = (v) => v.map((a) => {
6435
+ const p = a.conditions.filter((g) => g.field && g.field.trim() !== "").map((g) => {
6436
6436
  let l = "";
6437
- return C.value !== null && C.value !== void 0 && (Array.isArray(C.value) ? l = C.value.join("/") : l = String(C.value)), {
6438
- field: C.field.trim(),
6439
- operator: C.operator || "eq",
6437
+ return g.value !== null && g.value !== void 0 && (Array.isArray(g.value) ? l = g.value.join("/") : l = String(g.value)), {
6438
+ field: g.field.trim(),
6439
+ operator: g.operator || "eq",
6440
6440
  value: l
6441
6441
  };
6442
6442
  });
@@ -6455,16 +6455,16 @@ const Se = [
6455
6455
  { field: "", operator: "eq", value: "" }
6456
6456
  ]
6457
6457
  }
6458
- ], x.value = "and", k("reset");
6459
- }, O = () => {
6460
- const v = R(m.value);
6458
+ ], A.value = "and", k("reset");
6459
+ }, F = () => {
6460
+ const v = M(m.value);
6461
6461
  k("confirm", {
6462
6462
  filterCards: v,
6463
- type1: x.value
6463
+ type1: A.value
6464
6464
  }), U(), N();
6465
6465
  }, N = () => {
6466
6466
  k("update:visible", !1);
6467
- }, K = _([]), D = _(!1), c = _({}), f = _({}), n = _([]);
6467
+ }, K = _([]), E = _(!1), c = _({}), f = _({}), n = _([]);
6468
6468
  _(null), _(null), G(() => d.visibleColumns, (v) => {
6469
6469
  if (c.value = {}, f.value = {}, v && v.length > 0) {
6470
6470
  if (typeof v[0] == "object") {
@@ -6473,21 +6473,21 @@ const Se = [
6473
6473
  });
6474
6474
  const a = v.map((l) => l.value), p = a.map(
6475
6475
  (l) => d.fieldOptions.find((t) => t.value === l)
6476
- ).filter(Boolean), C = d.fieldOptions.filter(
6476
+ ).filter(Boolean), g = d.fieldOptions.filter(
6477
6477
  (l) => !a.includes(l.value)
6478
6478
  );
6479
- n.value = [...p, ...C];
6479
+ n.value = [...p, ...g];
6480
6480
  } else {
6481
6481
  K.value = [...v];
6482
6482
  const a = v.map(
6483
- (C) => d.fieldOptions.find((l) => l.value === C)
6483
+ (g) => d.fieldOptions.find((l) => l.value === g)
6484
6484
  ).filter(Boolean), p = d.fieldOptions.filter(
6485
- (C) => !v.includes(C.value)
6485
+ (g) => !v.includes(g.value)
6486
6486
  );
6487
6487
  n.value = [...a, ...p];
6488
6488
  }
6489
- D.value = K.value.length === d.fieldOptions.length;
6490
- } else d.fieldOptions.length > 0 && (K.value = d.fieldOptions.map((a) => a.value), n.value = [...d.fieldOptions], D.value = !0);
6489
+ E.value = K.value.length === d.fieldOptions.length;
6490
+ } else d.fieldOptions.length > 0 && (K.value = d.fieldOptions.map((a) => a.value), n.value = [...d.fieldOptions], E.value = !0);
6491
6491
  d.fieldOptions.forEach((a) => {
6492
6492
  f.value[a.value] || (f.value[a.value] = "none");
6493
6493
  });
@@ -6496,22 +6496,22 @@ const Se = [
6496
6496
  }, { immediate: !0 });
6497
6497
  const U = () => {
6498
6498
  const v = n.value.filter((a) => K.value.includes(a.value)).map((a) => {
6499
- const p = c.value[a.value], C = f.value[a.value] || "none";
6499
+ const p = c.value[a.value], g = f.value[a.value] || "none";
6500
6500
  return {
6501
6501
  value: a.value,
6502
6502
  show: !0,
6503
6503
  // 已通过filter筛选,都是显示的
6504
6504
  width: p ? `${p}px` : "120px",
6505
6505
  // 没有设置宽度时使用默认值120px
6506
- fixed: C
6506
+ fixed: g
6507
6507
  // 冻结状态
6508
6508
  };
6509
6509
  });
6510
6510
  k("column-change", v);
6511
6511
  };
6512
6512
  return (v, a) => {
6513
- const p = F("t-radio-button"), C = F("t-radio-group"), l = F("t-icon"), t = F("t-button"), y = F("t-dialog");
6514
- return g(), J(y, {
6513
+ const p = O("t-radio-button"), g = O("t-radio-group"), l = O("t-icon"), t = O("t-button"), y = O("t-dialog");
6514
+ return C(), J(y, {
6515
6515
  header: "高级筛选",
6516
6516
  placement: "center",
6517
6517
  attach: "body",
@@ -6529,13 +6529,13 @@ const Se = [
6529
6529
  i("div", ea, [
6530
6530
  i("div", aa, [
6531
6531
  i("div", la, [
6532
- m.value.length > 1 ? (g(), B("div", ta, [
6532
+ m.value.length > 1 ? (C(), B("div", ta, [
6533
6533
  i("div", na, [
6534
- o(C, {
6534
+ o(g, {
6535
6535
  size: r.size,
6536
6536
  class: "connector-selector",
6537
- modelValue: x.value,
6538
- "onUpdate:modelValue": a[0] || (a[0] = (z) => x.value = z)
6537
+ modelValue: A.value,
6538
+ "onUpdate:modelValue": a[0] || (a[0] = (z) => A.value = z)
6539
6539
  }, {
6540
6540
  default: s(() => [
6541
6541
  o(p, { value: "and" }, {
@@ -6556,14 +6556,14 @@ const Se = [
6556
6556
  ])
6557
6557
  ])) : X("", !0),
6558
6558
  i("div", oa, [
6559
- (g(!0), B(W, null, Z(m.value, (z, h) => (g(), B("div", {
6559
+ (C(!0), B(W, null, Z(m.value, (z, h) => (C(), B("div", {
6560
6560
  key: z.id,
6561
6561
  class: "filter-card-item"
6562
6562
  }, [
6563
6563
  i("div", ia, [
6564
6564
  i("div", ra, [
6565
6565
  i("span", sa, "筛选卡片 " + se(h + 1), 1),
6566
- o(C, {
6566
+ o(g, {
6567
6567
  size: r.size,
6568
6568
  modelValue: z.connector,
6569
6569
  "onUpdate:modelValue": (L) => z.connector = L,
@@ -6600,7 +6600,7 @@ const Se = [
6600
6600
  }, 8, ["size", "onClick", "disabled"])
6601
6601
  ]),
6602
6602
  i("div", da, [
6603
- (g(!0), B(W, null, Z(z.conditions, (L, Q) => (g(), B("div", {
6603
+ (C(!0), B(W, null, Z(z.conditions, (L, Q) => (C(), B("div", {
6604
6604
  key: Q,
6605
6605
  class: "filter-combination"
6606
6606
  }, [
@@ -6642,7 +6642,7 @@ const Se = [
6642
6642
  ]))), 128)),
6643
6643
  i("div", {
6644
6644
  class: "add-filter-card",
6645
- onClick: $
6645
+ onClick: S
6646
6646
  }, [
6647
6647
  i("div", ma, [
6648
6648
  o(l, { name: "add" }),
@@ -6672,7 +6672,7 @@ const Se = [
6672
6672
  o(t, {
6673
6673
  theme: "primary",
6674
6674
  size: r.size,
6675
- onClick: O
6675
+ onClick: F
6676
6676
  }, {
6677
6677
  default: s(() => [...a[9] || (a[9] = [
6678
6678
  T("确定", -1)
@@ -6686,10 +6686,10 @@ const Se = [
6686
6686
  }, 8, ["visible", "width"]);
6687
6687
  };
6688
6688
  }
6689
- }, pa = /* @__PURE__ */ ae(fa, [["__scopeId", "data-v-0ee31b05"]]), ya = { class: "dialog-header" }, ba = { class: "color-filter-dialog" }, Ca = { class: "color-filter-rules" }, ga = { class: "rule-content" }, ha = { class: "rule-color-section" }, _a = { class: "color-block-wrapper" }, ka = {
6689
+ }, pa = /* @__PURE__ */ ae(fa, [["__scopeId", "data-v-0ee31b05"]]), ya = { class: "dialog-header" }, ba = { class: "color-filter-dialog" }, ga = { class: "color-filter-rules" }, Ca = { class: "rule-content" }, ha = { class: "rule-color-section" }, _a = { class: "color-block-wrapper" }, ka = {
6690
6690
  key: 0,
6691
6691
  class: "bold-indicator"
6692
- }, za = { class: "color-picker-panel" }, Fa = { class: "preset-colors" }, Oa = ["onClick"], wa = { class: "bold-option" }, $a = { class: "apply-to-section" }, Va = { class: "rule-condition" }, Sa = { class: "dialog-footer" }, xa = {
6692
+ }, za = { class: "color-picker-panel" }, Oa = { class: "preset-colors" }, Fa = ["onClick"], wa = { class: "bold-option" }, $a = { class: "apply-to-section" }, Sa = { class: "rule-condition" }, Va = { class: "dialog-footer" }, xa = {
6693
6693
  __name: "ColorFilterDialog",
6694
6694
  props: {
6695
6695
  visible: { type: Boolean, default: !1 },
@@ -6699,7 +6699,7 @@ const Se = [
6699
6699
  },
6700
6700
  emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
6701
6701
  setup(r, { emit: Y }) {
6702
- const d = r, k = Y, m = _(d.visible), x = [
6702
+ const d = r, k = Y, m = _(d.visible), A = [
6703
6703
  // 第一行 - 暖色系
6704
6704
  "#FFE7BA",
6705
6705
  "#FFD6E7",
@@ -6746,7 +6746,7 @@ const Se = [
6746
6746
  overlayInnerStyle: {
6747
6747
  width: "180px"
6748
6748
  }
6749
- }, $ = _([
6749
+ }, S = _([
6750
6750
  {
6751
6751
  field: "",
6752
6752
  operator: "eq",
@@ -6757,18 +6757,18 @@ const Se = [
6757
6757
  applyTo: "cell"
6758
6758
  }
6759
6759
  ]);
6760
- G(() => d.visible, (D) => {
6761
- m.value = D, D && d.initialRules.length > 0 && ($.value = JSON.parse(JSON.stringify(d.initialRules)).map((c) => ({
6760
+ G(() => d.visible, (E) => {
6761
+ m.value = E, E && d.initialRules.length > 0 && (S.value = JSON.parse(JSON.stringify(d.initialRules)).map((c) => ({
6762
6762
  ...c,
6763
6763
  showColorPicker: !1
6764
6764
  })));
6765
- }), G(m, (D) => {
6766
- k("update:visible", D);
6765
+ }), G(m, (E) => {
6766
+ k("update:visible", E);
6767
6767
  });
6768
- const j = (D, c) => {
6769
- $.value[D].backgroundColor = c, $.value[D].showColorPicker = !1;
6768
+ const j = (E, c) => {
6769
+ S.value[E].backgroundColor = c, S.value[E].showColorPicker = !1;
6770
6770
  }, P = () => {
6771
- $.value.push({
6771
+ S.value.push({
6772
6772
  field: "",
6773
6773
  operator: "eq",
6774
6774
  value: "",
@@ -6777,14 +6777,14 @@ const Se = [
6777
6777
  showColorPicker: !1,
6778
6778
  applyTo: "cell"
6779
6779
  });
6780
- }, q = (D) => {
6781
- $.value.length > 1 && $.value.splice(D, 1);
6782
- }, R = () => {
6780
+ }, q = (E) => {
6781
+ S.value.length > 1 && S.value.splice(E, 1);
6782
+ }, M = () => {
6783
6783
  m.value = !1;
6784
6784
  }, w = () => {
6785
6785
  k("clear"), m.value = !1;
6786
- }, O = () => {
6787
- const D = $.value.filter(
6786
+ }, F = () => {
6787
+ const E = S.value.filter(
6788
6788
  (c) => c.field && c.operator && c.value
6789
6789
  ).map((c) => ({
6790
6790
  field: c.field,
@@ -6794,28 +6794,28 @@ const Se = [
6794
6794
  isBold: c.isBold,
6795
6795
  applyTo: c.applyTo
6796
6796
  }));
6797
- k("confirm", D), m.value = !1;
6797
+ k("confirm", E), m.value = !1;
6798
6798
  }, N = ee(() => {
6799
- const D = $.value.length, c = Math.floor(x.length / D), f = [];
6800
- for (let n = 0; n < D; n++) {
6801
- const U = n * c % x.length;
6802
- f.push(x[U]);
6799
+ const E = S.value.length, c = Math.floor(A.length / E), f = [];
6800
+ for (let n = 0; n < E; n++) {
6801
+ const U = n * c % A.length;
6802
+ f.push(A[U]);
6803
6803
  }
6804
6804
  return f;
6805
6805
  }), K = () => {
6806
- $.value.forEach((D, c) => {
6807
- c < N.value.length && (D.backgroundColor = N.value[c]);
6806
+ S.value.forEach((E, c) => {
6807
+ c < N.value.length && (E.backgroundColor = N.value[c]);
6808
6808
  }), k("smart-colors-change", N.value);
6809
6809
  };
6810
- return (D, c) => {
6811
- const f = F("t-button"), n = F("t-checkbox"), U = F("t-popup"), v = F("t-radio-button"), a = F("t-radio-group"), p = F("t-select"), C = F("t-input"), l = F("t-icon"), t = F("t-dialog");
6812
- return g(), J(t, {
6810
+ return (E, c) => {
6811
+ const f = O("t-button"), n = O("t-checkbox"), U = O("t-popup"), v = O("t-radio-button"), a = O("t-radio-group"), p = O("t-select"), g = O("t-input"), l = O("t-icon"), t = O("t-dialog");
6812
+ return C(), J(t, {
6813
6813
  visible: m.value,
6814
6814
  "onUpdate:visible": c[0] || (c[0] = (y) => m.value = y),
6815
6815
  width: "800px",
6816
6816
  "confirm-btn": null,
6817
6817
  "cancel-btn": null,
6818
- onClose: R
6818
+ onClose: M
6819
6819
  }, {
6820
6820
  header: s(() => [
6821
6821
  i("div", ya, [
@@ -6838,12 +6838,12 @@ const Se = [
6838
6838
  ]),
6839
6839
  body: s(() => [
6840
6840
  i("div", ba, [
6841
- i("div", Ca, [
6842
- (g(!0), B(W, null, Z($.value, (y, z) => (g(), B("div", {
6841
+ i("div", ga, [
6842
+ (C(!0), B(W, null, Z(S.value, (y, z) => (C(), B("div", {
6843
6843
  key: z,
6844
6844
  class: "color-rule-item"
6845
6845
  }, [
6846
- i("div", ga, [
6846
+ i("div", Ca, [
6847
6847
  i("div", ha, [
6848
6848
  o(U, {
6849
6849
  visible: y.showColorPicker,
@@ -6853,13 +6853,13 @@ const Se = [
6853
6853
  }, {
6854
6854
  content: s(() => [
6855
6855
  i("div", za, [
6856
- i("div", Fa, [
6857
- (g(), B(W, null, Z(x, (h) => i("div", {
6856
+ i("div", Oa, [
6857
+ (C(), B(W, null, Z(A, (h) => i("div", {
6858
6858
  key: h,
6859
6859
  class: ue(["preset-color-item", { active: y.backgroundColor === h }]),
6860
6860
  style: de({ backgroundColor: h }),
6861
6861
  onClick: (L) => j(z, h)
6862
- }, null, 14, Oa)), 64))
6862
+ }, null, 14, Fa)), 64))
6863
6863
  ]),
6864
6864
  i("div", wa, [
6865
6865
  o(n, {
@@ -6880,7 +6880,7 @@ const Se = [
6880
6880
  class: "color-block",
6881
6881
  style: de({ backgroundColor: y.backgroundColor })
6882
6882
  }, [
6883
- y.isBold ? (g(), B("span", ka, "B")) : X("", !0)
6883
+ y.isBold ? (C(), B("span", ka, "B")) : X("", !0)
6884
6884
  ], 4)
6885
6885
  ])
6886
6886
  ]),
@@ -6917,7 +6917,7 @@ const Se = [
6917
6917
  _: 1
6918
6918
  }, 8, ["modelValue", "onUpdate:modelValue", "size"])
6919
6919
  ]),
6920
- i("div", Va, [
6920
+ i("div", Sa, [
6921
6921
  o(p, {
6922
6922
  modelValue: y.field,
6923
6923
  "onUpdate:modelValue": (h) => y.field = h,
@@ -6936,7 +6936,7 @@ const Se = [
6936
6936
  style: { width: "120px" },
6937
6937
  "popup-props": e
6938
6938
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
6939
- o(C, {
6939
+ o(g, {
6940
6940
  modelValue: y.value,
6941
6941
  "onUpdate:modelValue": (h) => y.value = h,
6942
6942
  placeholder: "输入值",
@@ -6950,7 +6950,7 @@ const Se = [
6950
6950
  variant: "text",
6951
6951
  size: r.size,
6952
6952
  onClick: (h) => q(z),
6953
- disabled: $.value.length === 1
6953
+ disabled: S.value.length === 1
6954
6954
  }, {
6955
6955
  icon: s(() => [...c[8] || (c[8] = [
6956
6956
  i("i", { class: "ri-close-fill" }, null, -1)
@@ -6977,11 +6977,11 @@ const Se = [
6977
6977
  ])
6978
6978
  ]),
6979
6979
  footer: s(() => [
6980
- i("div", Sa, [
6980
+ i("div", Va, [
6981
6981
  o(f, {
6982
6982
  theme: "default",
6983
6983
  size: r.size,
6984
- onClick: R
6984
+ onClick: M
6985
6985
  }, {
6986
6986
  default: s(() => [...c[10] || (c[10] = [
6987
6987
  T("取消", -1)
@@ -7001,7 +7001,7 @@ const Se = [
7001
7001
  o(f, {
7002
7002
  theme: "primary",
7003
7003
  size: r.size,
7004
- onClick: O
7004
+ onClick: F
7005
7005
  }, {
7006
7006
  default: s(() => [...c[12] || (c[12] = [
7007
7007
  T("确定", -1)
@@ -7014,7 +7014,7 @@ const Se = [
7014
7014
  }, 8, ["visible"]);
7015
7015
  };
7016
7016
  }
7017
- }, Ce = /* @__PURE__ */ ae(xa, [["__scopeId", "data-v-822b291e"]]), Da = { class: "column-settings-panel" }, Aa = { class: "column-list" }, Ea = ["onDragstart", "onDragover", "onDrop"], Ua = { class: "column-name" }, qa = { class: "column-show" }, Ta = ["onClick"], Na = { class: "column-freeze" }, Ba = { class: "column-width" }, Pa = { class: "column-sort-buttons" }, Ra = {
7017
+ }, ge = /* @__PURE__ */ ae(xa, [["__scopeId", "data-v-822b291e"]]), Da = { class: "column-settings-panel" }, Aa = { class: "column-list" }, Ea = ["onDragstart", "onDragover", "onDrop"], Ua = { class: "column-name" }, qa = { class: "column-show" }, Ta = ["onClick"], Na = { class: "column-freeze" }, Ba = { class: "column-width" }, Pa = { class: "column-sort-buttons" }, Ra = {
7018
7018
  __name: "ColumnSettingsDialog",
7019
7019
  props: {
7020
7020
  visible: { type: Boolean, default: !1 },
@@ -7023,11 +7023,11 @@ const Se = [
7023
7023
  },
7024
7024
  emits: ["update:visible", "column-change"],
7025
7025
  setup(r, { emit: Y }) {
7026
- const d = r, k = Y, m = _([]), x = _({}), I = _({}), e = _([]), $ = _(null), j = _(null), P = (f) => {
7027
- if (x.value = {}, I.value = {}, f && f.length > 0)
7026
+ const d = r, k = Y, m = _([]), A = _({}), I = _({}), e = _([]), S = _(null), j = _(null), P = (f) => {
7027
+ if (A.value = {}, I.value = {}, f && f.length > 0)
7028
7028
  if (typeof f[0] == "object") {
7029
7029
  m.value = f.filter((a) => a.show !== !1).map((a) => a.value), f.forEach((a) => {
7030
- x.value[a.value] = a.width ? parseInt(a.width) : void 0, I.value[a.value] = a.fixed || "none";
7030
+ A.value[a.value] = a.width ? parseInt(a.width) : void 0, I.value[a.value] = a.fixed || "none";
7031
7031
  });
7032
7032
  const n = f.map((a) => a.value), U = n.map((a) => d.fieldOptions.find((p) => p.value === a)).filter(Boolean), v = d.fieldOptions.filter((a) => !n.includes(a.value));
7033
7033
  e.value = [...U, ...v];
@@ -7045,7 +7045,7 @@ const Se = [
7045
7045
  const q = (f) => {
7046
7046
  const n = m.value.indexOf(f);
7047
7047
  n === -1 ? m.value.push(f) : m.value.splice(n, 1);
7048
- }, R = (f) => {
7048
+ }, M = (f) => {
7049
7049
  if (f > 0) {
7050
7050
  const n = [...e.value];
7051
7051
  [n[f], n[f - 1]] = [n[f - 1], n[f]], e.value = n;
@@ -7055,30 +7055,30 @@ const Se = [
7055
7055
  const n = [...e.value];
7056
7056
  [n[f], n[f + 1]] = [n[f + 1], n[f]], e.value = n;
7057
7057
  }
7058
- }, O = (f, n) => {
7059
- $.value = f, n.dataTransfer.effectAllowed = "move";
7058
+ }, F = (f, n) => {
7059
+ S.value = f, n.dataTransfer.effectAllowed = "move";
7060
7060
  }, N = (f, n) => {
7061
7061
  n.preventDefault(), j.value = f;
7062
7062
  }, K = () => {
7063
- $.value = null, j.value = null;
7064
- }, D = (f, n) => {
7063
+ S.value = null, j.value = null;
7064
+ }, E = (f, n) => {
7065
7065
  n.preventDefault();
7066
- const U = $.value;
7066
+ const U = S.value;
7067
7067
  if (U === null || U === f) return;
7068
7068
  const v = [...e.value], a = v.splice(U, 1)[0];
7069
- v.splice(f, 0, a), e.value = v, $.value = null, j.value = null;
7069
+ v.splice(f, 0, a), e.value = v, S.value = null, j.value = null;
7070
7070
  }, c = () => {
7071
7071
  const f = e.value.filter((n) => m.value.includes(n.value)).map((n) => ({
7072
7072
  value: n.value,
7073
7073
  show: !0,
7074
- width: x.value[n.value] ? `${x.value[n.value]}px` : "120px",
7074
+ width: A.value[n.value] ? `${A.value[n.value]}px` : "120px",
7075
7075
  fixed: I.value[n.value] || "none"
7076
7076
  }));
7077
7077
  k("column-change", f), k("update:visible", !1);
7078
7078
  };
7079
7079
  return (f, n) => {
7080
- const U = F("t-icon"), v = F("t-option"), a = F("t-select"), p = F("t-input-number"), C = F("t-button"), l = F("t-dialog");
7081
- return g(), J(l, {
7080
+ const U = O("t-icon"), v = O("t-option"), a = O("t-select"), p = O("t-input-number"), g = O("t-button"), l = O("t-dialog");
7081
+ return C(), J(l, {
7082
7082
  header: "列配置",
7083
7083
  placement: "center",
7084
7084
  attach: "body",
@@ -7099,14 +7099,14 @@ const Se = [
7099
7099
  i("div", { class: "column-title column-title-sort" }, "排序")
7100
7100
  ], -1)),
7101
7101
  i("div", Aa, [
7102
- (g(!0), B(W, null, Z(e.value, (t, y) => (g(), B("div", {
7102
+ (C(!0), B(W, null, Z(e.value, (t, y) => (C(), B("div", {
7103
7103
  key: t.value,
7104
- class: ue(["column-item-row", { dragging: $.value === y, "col-hidden": !m.value.includes(t.value) }]),
7104
+ class: ue(["column-item-row", { dragging: S.value === y, "col-hidden": !m.value.includes(t.value) }]),
7105
7105
  draggable: "true",
7106
- onDragstart: (z) => O(y, z),
7106
+ onDragstart: (z) => F(y, z),
7107
7107
  onDragover: (z) => N(y, z),
7108
7108
  onDragend: K,
7109
- onDrop: (z) => D(y, z)
7109
+ onDrop: (z) => E(y, z)
7110
7110
  }, [
7111
7111
  i("div", Ua, [
7112
7112
  o(U, {
@@ -7148,8 +7148,8 @@ const Se = [
7148
7148
  ]),
7149
7149
  i("div", Ba, [
7150
7150
  o(p, {
7151
- modelValue: x.value[t.value],
7152
- "onUpdate:modelValue": (z) => x.value[t.value] = z,
7151
+ modelValue: A.value[t.value],
7152
+ "onUpdate:modelValue": (z) => A.value[t.value] = z,
7153
7153
  min: 50,
7154
7154
  max: 500,
7155
7155
  step: 10,
@@ -7159,11 +7159,11 @@ const Se = [
7159
7159
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
7160
7160
  ]),
7161
7161
  i("div", Pa, [
7162
- o(C, {
7162
+ o(g, {
7163
7163
  theme: "default",
7164
7164
  variant: "text",
7165
7165
  size: "small",
7166
- onClick: (z) => R(y),
7166
+ onClick: (z) => M(y),
7167
7167
  disabled: y === 0
7168
7168
  }, {
7169
7169
  icon: s(() => [
@@ -7174,7 +7174,7 @@ const Se = [
7174
7174
  ]),
7175
7175
  _: 1
7176
7176
  }, 8, ["onClick", "disabled"]),
7177
- o(C, {
7177
+ o(g, {
7178
7178
  theme: "default",
7179
7179
  variant: "text",
7180
7180
  size: "small",
@@ -7195,7 +7195,7 @@ const Se = [
7195
7195
  ])
7196
7196
  ]),
7197
7197
  footer: s(() => [
7198
- o(C, {
7198
+ o(g, {
7199
7199
  theme: "default",
7200
7200
  onClick: n[0] || (n[0] = (t) => f.$emit("update:visible", !1))
7201
7201
  }, {
@@ -7204,7 +7204,7 @@ const Se = [
7204
7204
  ])]),
7205
7205
  _: 1
7206
7206
  }),
7207
- o(C, {
7207
+ o(g, {
7208
7208
  theme: "primary",
7209
7209
  onClick: c
7210
7210
  }, {
@@ -7218,10 +7218,10 @@ const Se = [
7218
7218
  }, 8, ["visible"]);
7219
7219
  };
7220
7220
  }
7221
- }, Ja = /* @__PURE__ */ ae(Ra, [["__scopeId", "data-v-0a02ab86"]]), ja = { class: "cd-filter-bar" }, Ma = { class: "filter-toolbar-row" }, Ia = {
7221
+ }, Ja = /* @__PURE__ */ ae(Ra, [["__scopeId", "data-v-0a02ab86"]]), ja = { class: "cd-filter-bar" }, Ma = { class: "filter-head-row" }, Ia = { class: "filter-toolbar-row" }, Ka = {
7222
7222
  key: 1,
7223
7223
  class: "inline-filter-toolbar"
7224
- }, Ka = { class: "filter-action-buttons" }, Ha = { style: { "margin-left": "auto", display: "flex", "align-items": "center" } }, La = { class: "save-plan-content" }, Ya = {
7224
+ }, Ha = { class: "filter-action-buttons" }, La = { style: { "margin-left": "auto", display: "flex", "align-items": "center", gap: "8px" } }, Ya = { class: "save-plan-content" }, Ga = {
7225
7225
  __name: "cd-filter-bar",
7226
7226
  props: {
7227
7227
  fieldOptions: { type: Array, required: !0 },
@@ -7270,41 +7270,41 @@ const Se = [
7270
7270
  "refresh"
7271
7271
  ],
7272
7272
  setup(r, { emit: Y }) {
7273
- const d = r, k = Y, m = _([]), x = () => ({ field: "", operator: "eq", value: "" });
7273
+ const d = r, k = Y, m = _([]), A = () => ({ field: "", operator: "eq", value: "" });
7274
7274
  (() => {
7275
- var u, A;
7275
+ var u, $;
7276
7276
  if (d.filterCount === 0) {
7277
7277
  m.value = [];
7278
7278
  return;
7279
7279
  }
7280
- const b = ((A = (u = d.filterCards) == null ? void 0 : u[0]) == null ? void 0 : A.conditions) || [];
7281
- m.value = Array.from({ length: d.filterCount }, (E, M) => b[M] ? JSON.parse(JSON.stringify(b[M])) : x());
7280
+ const b = (($ = (u = d.filterCards) == null ? void 0 : u[0]) == null ? void 0 : $.conditions) || [];
7281
+ m.value = Array.from({ length: d.filterCount }, (V, R) => b[R] ? JSON.parse(JSON.stringify(b[R])) : A());
7282
7282
  })();
7283
7283
  const e = () => {
7284
7284
  if (d.filterCount === 0) {
7285
7285
  m.value = [];
7286
7286
  return;
7287
7287
  }
7288
- m.value = Array.from({ length: d.filterCount }, () => x());
7289
- }, $ = _("保存筛选方案"), j = _(!1), P = _(!1), q = _(d.topOp), R = _(JSON.parse(JSON.stringify(d.filterCards)));
7290
- G(() => d.topOp, (b) => q.value = b), G(() => d.filterCards, (b) => R.value = JSON.parse(JSON.stringify(b)));
7291
- const w = _(null), O = _("");
7288
+ m.value = Array.from({ length: d.filterCount }, () => A());
7289
+ }, S = _("保存筛选方案"), j = _(!1), P = _(!1), q = _(d.topOp), M = _(JSON.parse(JSON.stringify(d.filterCards)));
7290
+ G(() => d.topOp, (b) => q.value = b), G(() => d.filterCards, (b) => M.value = JSON.parse(JSON.stringify(b)));
7291
+ const w = _(null), F = _("");
7292
7292
  ee(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]);
7293
7293
  const N = (b) => {
7294
- const u = d.planFilterOptions.find((A) => A.value === b);
7294
+ const u = d.planFilterOptions.find(($) => $.value === b);
7295
7295
  u && K(u);
7296
7296
  }, K = (b) => {
7297
7297
  if (!b.precepts || b.precepts.length === 0) return;
7298
- if (w.value = b, O.value = b.value, R.value = JSON.parse(JSON.stringify(b.precepts)), q.value = b.sqlConnectType, d.filterCount > 0) {
7299
- const E = b.precepts[0];
7300
- E && E.conditions && (m.value = Array.from({ length: d.filterCount }, (M, H) => E.conditions[H] ? JSON.parse(JSON.stringify(E.conditions[H])) : x()));
7298
+ if (w.value = b, F.value = b.value, M.value = JSON.parse(JSON.stringify(b.precepts)), q.value = b.sqlConnectType, d.filterCount > 0) {
7299
+ const V = b.precepts[0];
7300
+ V && V.conditions && (m.value = Array.from({ length: d.filterCount }, (R, H) => V.conditions[H] ? JSON.parse(JSON.stringify(V.conditions[H])) : A()));
7301
7301
  }
7302
- const u = v(b.precepts), A = a(u, b.sqlConnectType);
7303
- if (k("confirm", A), b.columns && b.columns.length > 0) {
7304
- const E = b.columns.filter((M) => M.show !== !1);
7305
- k("column-change", E);
7302
+ const u = v(b.precepts), $ = a(u, b.sqlConnectType);
7303
+ if (k("confirm", $), b.columns && b.columns.length > 0) {
7304
+ const V = b.columns.filter((R) => R.show !== !1);
7305
+ k("column-change", V);
7306
7306
  }
7307
- }, D = () => {
7307
+ }, E = () => {
7308
7308
  c();
7309
7309
  }, c = () => {
7310
7310
  if (d.filterCount === 0) {
@@ -7322,47 +7322,47 @@ const Se = [
7322
7322
  }, U = () => {
7323
7323
  j.value = !1;
7324
7324
  }, v = (b) => b.map((u) => {
7325
- const A = u.conditions.filter((E) => !(!E.field || E.field.trim() === "" || E.value === null || E.value === void 0 || E.value === "" || Array.isArray(E.value) && E.value.length === 0)).map((E) => {
7326
- let M = "";
7327
- return E.value !== null && E.value !== void 0 && (Array.isArray(E.value) ? M = E.value.join("/") : M = String(E.value).trim()), {
7328
- field: E.field.trim(),
7329
- operator: E.operator || "eq",
7330
- value: M
7325
+ const $ = u.conditions.filter((V) => !(!V.field || V.field.trim() === "" || V.value === null || V.value === void 0 || V.value === "" || Array.isArray(V.value) && V.value.length === 0)).map((V) => {
7326
+ let R = "";
7327
+ return V.value !== null && V.value !== void 0 && (Array.isArray(V.value) ? R = V.value.join("/") : R = String(V.value).trim()), {
7328
+ field: V.field.trim(),
7329
+ operator: V.operator || "eq",
7330
+ value: R
7331
7331
  };
7332
7332
  });
7333
7333
  return {
7334
7334
  ...u,
7335
7335
  connector: u.connector || "and",
7336
- conditions: A.length > 0 ? A : [{ field: "", operator: "eq", value: "" }]
7336
+ conditions: $.length > 0 ? $ : [{ field: "", operator: "eq", value: "" }]
7337
7337
  };
7338
7338
  }).filter((u) => u.conditions.length > 0 && u.conditions[0].field !== "");
7339
7339
  function a(b, u) {
7340
7340
  if (u !== "and" && u !== "or")
7341
7341
  throw new Error('type参数必须是"and"或"or"');
7342
- function A(H) {
7342
+ function $(H) {
7343
7343
  return {
7344
7344
  [H.field]: {
7345
7345
  [H.operator]: H.value
7346
7346
  }
7347
7347
  };
7348
7348
  }
7349
- function E(H) {
7350
- return H.conditions.length === 1 ? A(H.conditions[0]) : {
7351
- [H.connector]: H.conditions.map(A)
7349
+ function V(H) {
7350
+ return H.conditions.length === 1 ? $(H.conditions[0]) : {
7351
+ [H.connector]: H.conditions.map($)
7352
7352
  };
7353
7353
  }
7354
7354
  return {
7355
7355
  conditions: {
7356
- [u]: b.map(E)
7356
+ [u]: b.map(V)
7357
7357
  }
7358
7358
  };
7359
7359
  }
7360
7360
  const p = (b) => {
7361
- w.value ? ($.value = "更新筛选方案", h.value.name = w.value.content || "") : ($.value = "保存筛选方案", h.value.name = "", w.value = null), z.value = !0;
7362
- }, C = () => {
7361
+ w.value ? (S.value = "更新筛选方案", h.value.name = w.value.content || "") : (S.value = "保存筛选方案", h.value.name = "", w.value = null), z.value = !0;
7362
+ }, g = () => {
7363
7363
  z.value = !1;
7364
7364
  }, l = () => {
7365
- e(), w.value = null, O.value = "", R.value = [
7365
+ e(), w.value = null, F.value = "", M.value = [
7366
7366
  {
7367
7367
  id: 1,
7368
7368
  connector: "and",
@@ -7373,34 +7373,39 @@ const Se = [
7373
7373
  }
7374
7374
  ], q.value = "and", k("reset"), c();
7375
7375
  }, t = () => {
7376
- const b = h.value.name.trim();
7376
+ const b = h.value.name.trim(), u = JSON.parse(JSON.stringify(M.value));
7377
+ if (d.filterCount > 0 && m.value.length > 0) {
7378
+ u[0] || (u[0] = { id: 1, connector: "and", conditions: [] });
7379
+ const $ = u[0].conditions || [];
7380
+ m.value.forEach((V, R) => {
7381
+ V.field && V.field.trim() !== "" && ($[R] = JSON.parse(JSON.stringify(V)));
7382
+ }), u[0].conditions = $;
7383
+ }
7377
7384
  if (w.value) {
7378
- const u = v(R.value);
7385
+ const $ = v(u);
7379
7386
  k("update-plan", {
7380
7387
  name: b,
7381
- precepts: u,
7388
+ precepts: $,
7382
7389
  topOp: q.value,
7383
7390
  plan: w.value,
7384
7391
  columns: d.visibleColumns || []
7385
- // 包含当前列配置
7386
7392
  });
7387
7393
  } else {
7388
- const u = v(R.value);
7394
+ const $ = v(u);
7389
7395
  k("save-plan", {
7390
7396
  name: b,
7391
- precepts: u,
7397
+ precepts: $,
7392
7398
  topOp: q.value,
7393
7399
  plan: w.value,
7394
7400
  columns: d.visibleColumns || []
7395
- // 包含当前列配置
7396
7401
  });
7397
7402
  }
7398
- C();
7403
+ g();
7399
7404
  }, y = (b) => {
7400
7405
  const u = a(b.filterCards, b.type1);
7401
7406
  if (k("confirm", u), d.filterCount > 0) {
7402
- const A = b.filterCards[0];
7403
- A && A.conditions && (m.value = Array.from({ length: d.filterCount }, (E, M) => A.conditions[M] ? JSON.parse(JSON.stringify(A.conditions[M])) : x()));
7407
+ const $ = b.filterCards[0];
7408
+ $ && $.conditions && (m.value = Array.from({ length: d.filterCount }, (V, R) => $.conditions[R] ? JSON.parse(JSON.stringify($.conditions[R])) : A()));
7404
7409
  }
7405
7410
  U();
7406
7411
  }, z = _(!1), h = _({ name: "" }), L = _(!1), Q = _([]), le = () => {
@@ -7413,14 +7418,14 @@ const Se = [
7413
7418
  _("");
7414
7419
  const oe = (b) => {
7415
7420
  k("smart-colors-change", b);
7416
- }, V = ee(() => Q.value.filter((b) => b.field && b.operator && b.value).length), ge = ee(() => m.value.some((u) => u.field && u.field.trim() !== "") ? !0 : R.value.some(
7417
- (u) => u.conditions.some((A) => A.field && A.field.trim() !== "")
7421
+ }, x = ee(() => Q.value.filter((b) => b.field && b.operator && b.value).length), Ce = ee(() => m.value.some((u) => u.field && u.field.trim() !== "") ? !0 : M.value.some(
7422
+ (u) => u.conditions.some(($) => $.field && $.field.trim() !== "")
7418
7423
  )), he = ee(() => {
7419
- const b = Q.value.filter((A) => A.field && A.operator && A.value);
7424
+ const b = Q.value.filter(($) => $.field && $.operator && $.value);
7420
7425
  return b.length === 0 ? "颜色筛选" : `
7421
- ${b.map((A) => {
7422
- const E = d.fieldOptions.find((H) => H.value === A.field);
7423
- return `${E ? E.label : A.field} ${_e(A.operator)} ${A.value}`;
7426
+ ${b.map(($) => {
7427
+ const V = d.fieldOptions.find((H) => H.value === $.field);
7428
+ return `${V ? V.label : $.field} ${_e($.operator)} ${$.value}`;
7424
7429
  }).join(`
7425
7430
  `)}`;
7426
7431
  }), _e = (b) => ({
@@ -7434,36 +7439,38 @@ ${b.map((A) => {
7434
7439
  notContains: "不包含"
7435
7440
  })[b] || b;
7436
7441
  return (b, u) => {
7437
- const A = F("t-radio-button"), E = F("t-radio-group"), M = F("t-button"), H = F("t-icon"), ke = F("t-badge"), ce = F("t-tooltip"), ze = F("t-input"), Fe = F("t-form-item"), Oe = F("t-form"), we = F("t-dialog");
7438
- return g(), B("div", ja, [
7442
+ const $ = O("t-radio-button"), V = O("t-radio-group"), R = O("t-button"), H = O("t-icon"), ke = O("t-badge"), ce = O("t-tooltip"), ze = O("t-input"), Oe = O("t-form-item"), Fe = O("t-form"), we = O("t-dialog");
7443
+ return C(), B("div", ja, [
7439
7444
  i("div", Ma, [
7440
- fe(b.$slots, "header", {}, void 0, !0),
7441
- r.planFilterOptions.length > 0 ? (g(), J(E, {
7445
+ fe(b.$slots, "head", {}, void 0, !0)
7446
+ ]),
7447
+ i("div", Ia, [
7448
+ r.planFilterOptions.length > 0 ? (C(), J(V, {
7442
7449
  key: 0,
7443
- modelValue: O.value,
7444
- "onUpdate:modelValue": u[0] || (u[0] = (S) => O.value = S),
7450
+ modelValue: F.value,
7451
+ "onUpdate:modelValue": u[0] || (u[0] = (D) => F.value = D),
7445
7452
  size: r.size,
7446
7453
  onChange: N
7447
7454
  }, {
7448
7455
  default: s(() => [
7449
- (g(!0), B(W, null, Z(r.planFilterOptions, (S) => (g(), J(A, {
7450
- key: S.value,
7451
- value: S.value,
7452
- disabled: S.disabled
7456
+ (C(!0), B(W, null, Z(r.planFilterOptions, (D) => (C(), J($, {
7457
+ key: D.value,
7458
+ value: D.value,
7459
+ disabled: D.disabled
7453
7460
  }, {
7454
7461
  default: s(() => [
7455
- T(se(S.content), 1)
7462
+ T(se(D.content), 1)
7456
7463
  ]),
7457
7464
  _: 2
7458
7465
  }, 1032, ["value", "disabled"]))), 128))
7459
7466
  ]),
7460
7467
  _: 1
7461
7468
  }, 8, ["modelValue", "size"])) : X("", !0),
7462
- o(M, {
7469
+ o(R, {
7463
7470
  theme: "default",
7464
7471
  variant: "outline",
7465
7472
  size: r.size,
7466
- onClick: u[1] || (u[1] = (S) => P.value = !0),
7473
+ onClick: u[1] || (u[1] = (D) => P.value = !0),
7467
7474
  title: "列配置"
7468
7475
  }, {
7469
7476
  icon: s(() => [...u[15] || (u[15] = [
@@ -7471,18 +7478,18 @@ ${b.map((A) => {
7471
7478
  ])]),
7472
7479
  _: 1
7473
7480
  }, 8, ["size"]),
7474
- r.filterCount > 0 ? (g(), B("div", Ia, [
7475
- (g(!0), B(W, null, Z(m.value, (S, ve) => (g(), J(me, {
7481
+ r.filterCount > 0 ? (C(), B("div", Ka, [
7482
+ (C(!0), B(W, null, Z(m.value, (D, ve) => (C(), J(me, {
7476
7483
  key: ve,
7477
7484
  "field-options": r.fieldOptions,
7478
7485
  size: r.size,
7479
7486
  "filter-condition": m.value[ve],
7480
7487
  "select-options": r.selectOptions,
7481
- onSearch: D
7488
+ onSearch: E
7482
7489
  }, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
7483
7490
  ])) : X("", !0),
7484
- i("div", Ka, [
7485
- r.filterCount > 0 ? (g(), J(M, {
7491
+ i("div", Ha, [
7492
+ r.filterCount > 0 ? (C(), J(R, {
7486
7493
  key: 0,
7487
7494
  theme: "primary",
7488
7495
  size: r.size,
@@ -7494,7 +7501,7 @@ ${b.map((A) => {
7494
7501
  ]),
7495
7502
  _: 1
7496
7503
  }, 8, ["size"])) : X("", !0),
7497
- r.filterCount > 0 ? (g(), J(M, {
7504
+ r.filterCount > 0 ? (C(), J(R, {
7498
7505
  key: 1,
7499
7506
  theme: "primary",
7500
7507
  size: r.size,
@@ -7506,18 +7513,18 @@ ${b.map((A) => {
7506
7513
  ]),
7507
7514
  _: 1
7508
7515
  }, 8, ["size"])) : X("", !0),
7509
- r.filterCount > 0 ? (g(), J(ce, {
7516
+ r.filterCount > 0 ? (C(), J(ce, {
7510
7517
  key: 2,
7511
7518
  content: he.value,
7512
7519
  placement: "top"
7513
7520
  }, {
7514
7521
  default: s(() => [
7515
7522
  o(ke, {
7516
- count: V.value,
7523
+ count: x.value,
7517
7524
  "max-count": 99
7518
7525
  }, {
7519
7526
  default: s(() => [
7520
- o(M, {
7527
+ o(R, {
7521
7528
  theme: "primary",
7522
7529
  size: r.size,
7523
7530
  onClick: le
@@ -7533,13 +7540,13 @@ ${b.map((A) => {
7533
7540
  ]),
7534
7541
  _: 1
7535
7542
  }, 8, ["content"])) : X("", !0),
7536
- r.filterCount > 0 ? (g(), J(ce, {
7543
+ r.filterCount > 0 ? (C(), J(ce, {
7537
7544
  key: 3,
7538
7545
  content: "保存方案",
7539
7546
  placement: "top"
7540
7547
  }, {
7541
7548
  default: s(() => [
7542
- $e(o(M, {
7549
+ $e(o(R, {
7543
7550
  theme: "primary",
7544
7551
  size: r.size,
7545
7552
  onClick: p
@@ -7549,23 +7556,23 @@ ${b.map((A) => {
7549
7556
  ]),
7550
7557
  _: 1
7551
7558
  }, 8, ["size"]), [
7552
- [Ve, ge.value]
7559
+ [Se, Ce.value]
7553
7560
  ])
7554
7561
  ]),
7555
7562
  _: 1
7556
7563
  })) : X("", !0)
7557
7564
  ]),
7558
- i("div", Ha, [
7559
- fe(b.$slots, "plan-row-right", {}, void 0, !0)
7565
+ i("div", La, [
7566
+ fe(b.$slots, "toolbar-right", {}, void 0, !0)
7560
7567
  ])
7561
7568
  ]),
7562
7569
  o(pa, {
7563
7570
  visible: j.value,
7564
- "onUpdate:visible": u[2] || (u[2] = (S) => j.value = S),
7571
+ "onUpdate:visible": u[2] || (u[2] = (D) => j.value = D),
7565
7572
  "field-options": r.fieldOptions,
7566
7573
  "select-options": r.selectOptions,
7567
7574
  "plan-filter-options": r.planFilterOptions,
7568
- "filter-cards": R.value,
7575
+ "filter-cards": M.value,
7569
7576
  "top-op": q.value,
7570
7577
  size: r.size,
7571
7578
  "person-tabs": r.personTabs,
@@ -7574,36 +7581,36 @@ ${b.map((A) => {
7574
7581
  width: "1000",
7575
7582
  onConfirm: y,
7576
7583
  onReset: l,
7577
- onDeletePlan: u[3] || (u[3] = (S) => k("delete-plan", S)),
7578
- onCopyPlan: u[4] || (u[4] = (S) => k("copy-plan", S)),
7579
- onSetDefaultPlan: u[5] || (u[5] = (S) => k("set-default-plan", S)),
7580
- onUpdatePlan: u[6] || (u[6] = (S) => k("update-plan", S)),
7581
- onLoadUsers: u[7] || (u[7] = (S) => k("load-users", S)),
7582
- onSearch: u[8] || (u[8] = (S) => k("search-persons", S)),
7583
- onDeptClick: u[9] || (u[9] = (S) => k("dept-click", S)),
7584
- onColumnChange: u[10] || (u[10] = (S) => k("column-change", S))
7584
+ onDeletePlan: u[3] || (u[3] = (D) => k("delete-plan", D)),
7585
+ onCopyPlan: u[4] || (u[4] = (D) => k("copy-plan", D)),
7586
+ onSetDefaultPlan: u[5] || (u[5] = (D) => k("set-default-plan", D)),
7587
+ onUpdatePlan: u[6] || (u[6] = (D) => k("update-plan", D)),
7588
+ onLoadUsers: u[7] || (u[7] = (D) => k("load-users", D)),
7589
+ onSearch: u[8] || (u[8] = (D) => k("search-persons", D)),
7590
+ onDeptClick: u[9] || (u[9] = (D) => k("dept-click", D)),
7591
+ onColumnChange: u[10] || (u[10] = (D) => k("column-change", D))
7585
7592
  }, null, 8, ["visible", "field-options", "select-options", "plan-filter-options", "filter-cards", "top-op", "size", "person-tabs", "person-organizations", "visible-columns"]),
7586
7593
  o(we, {
7587
- header: $.value,
7594
+ header: S.value,
7588
7595
  visible: z.value,
7589
7596
  width: "600px",
7590
- onClose: C
7597
+ onClose: g
7591
7598
  }, {
7592
7599
  body: s(() => [
7593
- i("div", La, [
7594
- o(Oe, {
7600
+ i("div", Ya, [
7601
+ o(Fe, {
7595
7602
  data: h.value,
7596
7603
  "label-width": "100px"
7597
7604
  }, {
7598
7605
  default: s(() => [
7599
- o(Fe, {
7606
+ o(Oe, {
7600
7607
  label: "方案名称",
7601
7608
  required: ""
7602
7609
  }, {
7603
7610
  default: s(() => [
7604
7611
  o(ze, {
7605
7612
  modelValue: h.value.name,
7606
- "onUpdate:modelValue": u[11] || (u[11] = (S) => h.value.name = S),
7613
+ "onUpdate:modelValue": u[11] || (u[11] = (D) => h.value.name = D),
7607
7614
  placeholder: "请输入筛选方案名称"
7608
7615
  }, null, 8, ["modelValue"])
7609
7616
  ]),
@@ -7615,16 +7622,16 @@ ${b.map((A) => {
7615
7622
  ])
7616
7623
  ]),
7617
7624
  footer: s(() => [
7618
- o(M, {
7625
+ o(R, {
7619
7626
  theme: "default",
7620
- onClick: C
7627
+ onClick: g
7621
7628
  }, {
7622
7629
  default: s(() => [...u[17] || (u[17] = [
7623
7630
  T("取消", -1)
7624
7631
  ])]),
7625
7632
  _: 1
7626
7633
  }),
7627
- o(M, {
7634
+ o(R, {
7628
7635
  theme: "primary",
7629
7636
  onClick: t
7630
7637
  }, {
@@ -7638,14 +7645,14 @@ ${b.map((A) => {
7638
7645
  }, 8, ["header", "visible"]),
7639
7646
  o(Ja, {
7640
7647
  visible: P.value,
7641
- "onUpdate:visible": u[12] || (u[12] = (S) => P.value = S),
7648
+ "onUpdate:visible": u[12] || (u[12] = (D) => P.value = D),
7642
7649
  "field-options": r.fieldOptions,
7643
7650
  "visible-columns": r.visibleColumns,
7644
- onColumnChange: u[13] || (u[13] = (S) => k("column-change", S))
7651
+ onColumnChange: u[13] || (u[13] = (D) => k("column-change", D))
7645
7652
  }, null, 8, ["visible", "field-options", "visible-columns"]),
7646
- o(Ce, {
7653
+ o(ge, {
7647
7654
  visible: L.value,
7648
- "onUpdate:visible": u[14] || (u[14] = (S) => L.value = S),
7655
+ "onUpdate:visible": u[14] || (u[14] = (D) => L.value = D),
7649
7656
  "field-options": r.fieldOptions,
7650
7657
  size: r.size,
7651
7658
  "initial-rules": Q.value,
@@ -7656,15 +7663,15 @@ ${b.map((A) => {
7656
7663
  ]);
7657
7664
  };
7658
7665
  }
7659
- }, Ga = /* @__PURE__ */ ae(Ya, [["__scopeId", "data-v-d428dbdd"]]), Xa = (r) => {
7660
- r.component("FilterDialog", ye), r.component("FilterComponent", ye), r.component("CdFilterBar", Ga), r.component("ColorFilterDialog", Ce);
7666
+ }, Wa = /* @__PURE__ */ ae(Ga, [["__scopeId", "data-v-325e5f44"]]), Za = (r) => {
7667
+ r.component("FilterDialog", ye), r.component("FilterComponent", ye), r.component("CdFilterBar", Wa), r.component("ColorFilterDialog", ge);
7661
7668
  };
7662
7669
  export {
7663
- Ga as CdFilterBar,
7664
- Ce as ColorFilterDialog,
7670
+ Wa as CdFilterBar,
7671
+ ge as ColorFilterDialog,
7665
7672
  Ja as ColumnSettingsDialog,
7666
7673
  ye as FilterComponent,
7667
7674
  ye as FilterDialog,
7668
7675
  ye as default,
7669
- Xa as install
7676
+ Za as install
7670
7677
  };