cd-vue-filter 2.3.4 → 2.3.5

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,4 +1,4 @@
1
- import { defineComponent as Be, computed as re, ref as _, watch as I, resolveComponent as p, createElementBlock as q, openBlock as y, createVNode as a, createBlock as j, withCtx as l, Fragment as Z, renderList as le, nextTick as Ve, createElementVNode as s, createTextVNode as w, createCommentVNode as ne, toDisplayString as ce, unref as Me, normalizeClass as Se, withModifiers as De, normalizeStyle as $e } from "vue";
1
+ import { defineComponent as Be, computed as se, ref as _, watch as I, resolveComponent as p, createElementBlock as A, openBlock as y, createVNode as a, createBlock as j, withCtx as l, Fragment as Z, renderList as le, nextTick as Ve, createElementVNode as r, createTextVNode as w, createCommentVNode as ne, toDisplayString as ce, unref as Me, normalizeClass as Se, withModifiers as De, normalizeStyle as $e } from "vue";
2
2
  import { MessagePlugin as de } from "tdesign-vue-next";
3
3
  import { CdUsersList as Je } from "cd-usercard";
4
4
  const Re = [
@@ -5539,7 +5539,7 @@ const Re = [
5539
5539
  emits: ["search"],
5540
5540
  setup(i, { emit: ee }) {
5541
5541
  var z, b, u;
5542
- const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], v = re(() => Re.map((f) => d.includes(f.name) ? {
5542
+ const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], v = se(() => Re.map((f) => d.includes(f.name) ? {
5543
5543
  label: f.name,
5544
5544
  value: f.name,
5545
5545
  children: f.city[0].area.map((c) => ({
@@ -5572,11 +5572,11 @@ const Re = [
5572
5572
  "this_year",
5573
5573
  "last_year",
5574
5574
  "next_year"
5575
- ].includes(f), x = (f) => {
5576
- if (r.selectOptions && r.selectOptions[f])
5577
- return r.selectOptions[f];
5578
- if (r.selectOptions && Array.isArray(r.selectOptions)) {
5579
- const c = r.selectOptions.find(
5575
+ ].includes(f), D = (f) => {
5576
+ if (s.selectOptions && s.selectOptions[f])
5577
+ return s.selectOptions[f];
5578
+ if (s.selectOptions && Array.isArray(s.selectOptions)) {
5579
+ const c = s.selectOptions.find(
5580
5580
  (F) => F.columnName === f
5581
5581
  );
5582
5582
  if (c && c.value)
@@ -5590,31 +5590,31 @@ const Re = [
5590
5590
  function X(f) {
5591
5591
  return [...f].sort((c, F) => c.value.localeCompare(F.value, "zh-CN"));
5592
5592
  }
5593
- const r = i, P = ee, W = _({
5594
- field: ((z = r.filterCondition) == null ? void 0 : z.field) || "",
5595
- operator: ((b = r.filterCondition) == null ? void 0 : b.operator) || "eq",
5596
- value: ((u = r.filterCondition) == null ? void 0 : u.value) || null
5593
+ const s = i, P = ee, W = _({
5594
+ field: ((z = s.filterCondition) == null ? void 0 : z.field) || "",
5595
+ operator: ((b = s.filterCondition) == null ? void 0 : b.operator) || "eq",
5596
+ value: ((u = s.filterCondition) == null ? void 0 : u.value) || null
5597
5597
  });
5598
- I(() => r.filterCondition, (f) => {
5598
+ I(() => s.filterCondition, (f) => {
5599
5599
  f && (W.value = { ...f });
5600
5600
  }, { deep: !0 });
5601
- const A = (f) => {
5602
- const c = r.fieldOptions.find((F) => F.value === f);
5601
+ const q = (f) => {
5602
+ const c = s.fieldOptions.find((F) => F.value === f);
5603
5603
  return c ? c.type : "text";
5604
5604
  }, B = () => {
5605
5605
  Ve(() => {
5606
- P("search", { ...r.filterCondition });
5606
+ P("search", { ...s.filterCondition });
5607
5607
  });
5608
5608
  }, Y = () => {
5609
5609
  Ve(() => {
5610
- P("search", { ...r.filterCondition });
5610
+ P("search", { ...s.filterCondition });
5611
5611
  });
5612
- }, V = (f) => {
5613
- r.filterCondition.value = f, P("search", { ...r.filterCondition });
5614
- }, C = re(() => {
5612
+ }, S = (f) => {
5613
+ s.filterCondition.value = f, P("search", { ...s.filterCondition });
5614
+ }, C = se(() => {
5615
5615
  var F;
5616
- const f = r.filterCondition.field;
5617
- switch (((F = r.fieldOptions.find((J) => J.value === f)) == null ? void 0 : F.type) || "text") {
5616
+ const f = s.filterCondition.field;
5617
+ switch (((F = s.fieldOptions.find((J) => J.value === f)) == null ? void 0 : F.type) || "text") {
5618
5618
  case "number":
5619
5619
  return [
5620
5620
  { key: "eq", label: "等于", value: "eq" },
@@ -5694,126 +5694,126 @@ const Re = [
5694
5694
  }
5695
5695
  }), k = () => {
5696
5696
  Ve(() => {
5697
- P("search", { ...r.filterCondition });
5697
+ P("search", { ...s.filterCondition });
5698
5698
  });
5699
5699
  };
5700
- return I(() => r.filterCondition.field, (f, c) => {
5701
- f && c && (r.filterCondition.operator = "eq", r.filterCondition.value = null);
5700
+ return I(() => s.filterCondition.field, (f, c) => {
5701
+ f && c && (s.filterCondition.operator = "eq", s.filterCondition.value = null);
5702
5702
  }), (f, c) => {
5703
5703
  var ie;
5704
5704
  const F = p("t-option"), J = p("t-select"), L = p("t-input"), ae = p("t-date-picker"), Q = p("t-cascader");
5705
- return y(), q("div", Le, [
5705
+ return y(), A("div", Le, [
5706
5706
  a(J, {
5707
- modelValue: r.filterCondition.field,
5708
- "onUpdate:modelValue": c[0] || (c[0] = (S) => r.filterCondition.field = S),
5707
+ modelValue: s.filterCondition.field,
5708
+ "onUpdate:modelValue": c[0] || (c[0] = ($) => s.filterCondition.field = $),
5709
5709
  placeholder: "请选择字段",
5710
- size: r.size,
5710
+ size: s.size,
5711
5711
  style: { "min-width": "80px", "max-width": "110px" },
5712
5712
  onChange: k,
5713
5713
  filterable: ""
5714
5714
  }, {
5715
5715
  default: l(() => [
5716
- (y(!0), q(Z, null, le(r.fieldOptions, (S) => (y(), j(F, {
5717
- key: S.key,
5718
- label: S.key,
5719
- value: S.value
5716
+ (y(!0), A(Z, null, le(s.fieldOptions, ($) => (y(), j(F, {
5717
+ key: $.key,
5718
+ label: $.key,
5719
+ value: $.value
5720
5720
  }, null, 8, ["label", "value"]))), 128))
5721
5721
  ]),
5722
5722
  _: 1
5723
5723
  }, 8, ["modelValue", "size"]),
5724
5724
  a(J, {
5725
- modelValue: r.filterCondition.operator,
5726
- "onUpdate:modelValue": c[1] || (c[1] = (S) => r.filterCondition.operator = S),
5725
+ modelValue: s.filterCondition.operator,
5726
+ "onUpdate:modelValue": c[1] || (c[1] = ($) => s.filterCondition.operator = $),
5727
5727
  placeholder: "请选择条件",
5728
- size: r.size,
5728
+ size: s.size,
5729
5729
  style: { width: "80px" },
5730
5730
  clearable: "",
5731
5731
  onChange: Y
5732
5732
  }, {
5733
5733
  default: l(() => [
5734
- (y(!0), q(Z, null, le(C.value, (S) => (y(), j(F, {
5735
- key: S.key,
5736
- label: S.label,
5737
- value: S.value
5734
+ (y(!0), A(Z, null, le(C.value, ($) => (y(), j(F, {
5735
+ key: $.key,
5736
+ label: $.label,
5737
+ value: $.value
5738
5738
  }, null, 8, ["label", "value"]))), 128))
5739
5739
  ]),
5740
5740
  _: 1
5741
5741
  }, 8, ["modelValue", "size"]),
5742
- A(r.filterCondition.field) === "number" ? (y(), j(L, {
5742
+ q(s.filterCondition.field) === "number" ? (y(), j(L, {
5743
5743
  key: 0,
5744
5744
  type: "number",
5745
- modelValue: r.filterCondition.value,
5746
- "onUpdate:modelValue": c[2] || (c[2] = (S) => r.filterCondition.value = S),
5745
+ modelValue: s.filterCondition.value,
5746
+ "onUpdate:modelValue": c[2] || (c[2] = ($) => s.filterCondition.value = $),
5747
5747
  placeholder: "请输入数字",
5748
- size: r.size,
5748
+ size: s.size,
5749
5749
  style: { width: "80px" },
5750
5750
  onChange: B,
5751
5751
  clearable: ""
5752
- }, null, 8, ["modelValue", "size"])) : A(r.filterCondition.field) === "money" ? (y(), j(L, {
5752
+ }, null, 8, ["modelValue", "size"])) : q(s.filterCondition.field) === "money" ? (y(), j(L, {
5753
5753
  key: 1,
5754
5754
  type: "number",
5755
- modelValue: r.filterCondition.value,
5756
- "onUpdate:modelValue": c[3] || (c[3] = (S) => r.filterCondition.value = S),
5755
+ modelValue: s.filterCondition.value,
5756
+ "onUpdate:modelValue": c[3] || (c[3] = ($) => s.filterCondition.value = $),
5757
5757
  placeholder: "请输入金额",
5758
- size: r.size,
5758
+ size: s.size,
5759
5759
  style: { width: "80px" },
5760
5760
  onChange: B,
5761
5761
  clearable: ""
5762
- }, null, 8, ["modelValue", "size"])) : A(r.filterCondition.field) === "date" ? (y(), q(Z, { key: 2 }, [
5763
- o(r.filterCondition.operator) ? (y(), j(L, {
5762
+ }, null, 8, ["modelValue", "size"])) : q(s.filterCondition.field) === "date" ? (y(), A(Z, { key: 2 }, [
5763
+ o(s.filterCondition.operator) ? (y(), j(L, {
5764
5764
  key: 1,
5765
- value: (ie = C.value.find((S) => S.value === r.filterCondition.operator)) == null ? void 0 : ie.label,
5765
+ value: (ie = C.value.find(($) => $.value === s.filterCondition.operator)) == null ? void 0 : ie.label,
5766
5766
  disabled: "",
5767
- size: r.size,
5767
+ size: s.size,
5768
5768
  style: { "min-width": "80px", "max-width": "120px" }
5769
5769
  }, null, 8, ["value", "size"])) : (y(), j(ae, {
5770
5770
  key: 0,
5771
- modelValue: r.filterCondition.value,
5772
- "onUpdate:modelValue": c[4] || (c[4] = (S) => r.filterCondition.value = S),
5771
+ modelValue: s.filterCondition.value,
5772
+ "onUpdate:modelValue": c[4] || (c[4] = ($) => s.filterCondition.value = $),
5773
5773
  placeholder: "请选择日期",
5774
- size: r.size,
5774
+ size: s.size,
5775
5775
  style: { "min-width": "80px", "max-width": "120px" },
5776
5776
  onChange: B,
5777
5777
  clearable: ""
5778
5778
  }, null, 8, ["modelValue", "size"]))
5779
- ], 64)) : A(r.filterCondition.field) === "time" ? (y(), j(ae, {
5779
+ ], 64)) : q(s.filterCondition.field) === "time" ? (y(), j(ae, {
5780
5780
  key: 3,
5781
- modelValue: r.filterCondition.value,
5782
- "onUpdate:modelValue": c[5] || (c[5] = (S) => r.filterCondition.value = S),
5781
+ modelValue: s.filterCondition.value,
5782
+ "onUpdate:modelValue": c[5] || (c[5] = ($) => s.filterCondition.value = $),
5783
5783
  placeholder: "请选择日期时间",
5784
- size: r.size,
5784
+ size: s.size,
5785
5785
  style: { "min-width": "80px", "max-width": "120px" },
5786
5786
  "enable-time-picker": "",
5787
5787
  format: "YYYY-MM-DD HH:mm:ss",
5788
5788
  onChange: B,
5789
5789
  clearable: ""
5790
- }, null, 8, ["modelValue", "size"])) : A(r.filterCondition.field) === "select" ? (y(), j(J, {
5790
+ }, null, 8, ["modelValue", "size"])) : q(s.filterCondition.field) === "select" ? (y(), j(J, {
5791
5791
  key: 4,
5792
- modelValue: r.filterCondition.value,
5793
- "onUpdate:modelValue": c[6] || (c[6] = (S) => r.filterCondition.value = S),
5794
- options: x(r.filterCondition.field),
5792
+ modelValue: s.filterCondition.value,
5793
+ "onUpdate:modelValue": c[6] || (c[6] = ($) => s.filterCondition.value = $),
5794
+ options: D(s.filterCondition.field),
5795
5795
  placeholder: "请选择",
5796
- size: r.size,
5796
+ size: s.size,
5797
5797
  style: { "min-width": "80px", "max-width": "120px" },
5798
5798
  onChange: B,
5799
5799
  clearable: ""
5800
- }, null, 8, ["modelValue", "options", "size"])) : A(r.filterCondition.field) === "selectProvince" ? (y(), j(Q, {
5800
+ }, null, 8, ["modelValue", "options", "size"])) : q(s.filterCondition.field) === "selectProvince" ? (y(), j(Q, {
5801
5801
  key: 5,
5802
- modelValue: r.filterCondition.value,
5803
- "onUpdate:modelValue": c[7] || (c[7] = (S) => r.filterCondition.value = S),
5802
+ modelValue: s.filterCondition.value,
5803
+ "onUpdate:modelValue": c[7] || (c[7] = ($) => s.filterCondition.value = $),
5804
5804
  options: v.value,
5805
5805
  placeholder: "请选择地区",
5806
- size: r.size,
5806
+ size: s.size,
5807
5807
  style: { "min-width": "80px", "max-width": "120px" },
5808
5808
  clearable: "",
5809
5809
  loading: !1,
5810
- onChange: V
5810
+ onChange: S
5811
5811
  }, null, 8, ["modelValue", "options", "size"])) : (y(), j(L, {
5812
5812
  key: 6,
5813
- modelValue: r.filterCondition.value,
5814
- "onUpdate:modelValue": c[8] || (c[8] = (S) => r.filterCondition.value = S),
5813
+ modelValue: s.filterCondition.value,
5814
+ "onUpdate:modelValue": c[8] || (c[8] = ($) => s.filterCondition.value = $),
5815
5815
  placeholder: "请输入关键字",
5816
- size: r.size,
5816
+ size: s.size,
5817
5817
  style: { "min-width": "80px", "max-width": "100px" },
5818
5818
  onChange: B,
5819
5819
  clearable: ""
@@ -5873,47 +5873,47 @@ const Re = [
5873
5873
  { field: "", operator: "eq", value: "" }
5874
5874
  ]
5875
5875
  }
5876
- ]), x = _("and");
5876
+ ]), D = _("and");
5877
5877
  let X = 3;
5878
- I(() => d.initialFilterCards, (V) => {
5879
- V && V.length > 0 && (o.value = V);
5880
- }, { immediate: !0, deep: !0 }), I(() => d.initialType1, (V) => {
5881
- V && (x.value = V);
5878
+ I(() => d.initialFilterCards, (S) => {
5879
+ S && S.length > 0 && (o.value = S);
5880
+ }, { immediate: !0, deep: !0 }), I(() => d.initialType1, (S) => {
5881
+ S && (D.value = S);
5882
5882
  }, { immediate: !0 });
5883
- const r = () => {
5883
+ const s = () => {
5884
5884
  o.value.push({
5885
5885
  id: X++,
5886
5886
  connector: "and",
5887
5887
  conditions: [{ field: "", operator: "eq", value: "" }]
5888
5888
  });
5889
- }, P = (V) => {
5890
- V >= 0 && V < o.value.length && o.value[V].conditions.push({
5889
+ }, P = (S) => {
5890
+ S >= 0 && S < o.value.length && o.value[S].conditions.push({
5891
5891
  field: "",
5892
5892
  operator: "eq",
5893
5893
  value: ""
5894
5894
  });
5895
- }, W = (V, C) => {
5896
- if (V >= 0 && V < o.value.length) {
5897
- const k = o.value[V];
5895
+ }, W = (S, C) => {
5896
+ if (S >= 0 && S < o.value.length) {
5897
+ const k = o.value[S];
5898
5898
  k.conditions.length > 1 && C >= 0 && C < k.conditions.length ? k.conditions.splice(C, 1) : k.conditions.length <= 1 && de.warning("每个卡片至少需要一个筛选条件");
5899
5899
  }
5900
- }, A = (V) => {
5901
- o.value.length > 1 ? o.value.splice(V, 1) : de.warning("至少需要保留一个筛选卡片");
5900
+ }, q = (S) => {
5901
+ o.value.length > 1 ? o.value.splice(S, 1) : de.warning("至少需要保留一个筛选卡片");
5902
5902
  }, B = () => {
5903
5903
  v("submit", {
5904
5904
  filterCards: o.value,
5905
- type1: x.value
5905
+ type1: D.value
5906
5906
  });
5907
5907
  }, Y = () => {
5908
5908
  v("close"), v("update:visible", !1);
5909
5909
  };
5910
- return (V, C) => {
5910
+ return (S, C) => {
5911
5911
  const k = p("t-radio-button"), z = p("t-radio-group"), b = p("t-icon"), u = p("t-button"), f = p("t-dialog");
5912
5912
  return y(), j(f, {
5913
5913
  header: "筛选条件设置",
5914
5914
  placement: "center",
5915
5915
  visible: i.visible,
5916
- "onUpdate:visible": C[1] || (C[1] = (c) => V.$emit("update:visible", c)),
5916
+ "onUpdate:visible": C[1] || (C[1] = (c) => S.$emit("update:visible", c)),
5917
5917
  width: "700px",
5918
5918
  "z-index": 999,
5919
5919
  footer: !0,
@@ -5921,16 +5921,16 @@ const Re = [
5921
5921
  id: "leader-line-clip-container"
5922
5922
  }, {
5923
5923
  body: l(() => [
5924
- s("div", je, [
5925
- s("div", Ye, [
5926
- s("div", Ge, [
5927
- o.value.length > 1 ? (y(), q("div", We, [
5928
- s("div", Ke, [
5924
+ r("div", je, [
5925
+ r("div", Ye, [
5926
+ r("div", Ge, [
5927
+ o.value.length > 1 ? (y(), A("div", We, [
5928
+ r("div", Ke, [
5929
5929
  a(z, {
5930
5930
  size: "small",
5931
5931
  class: "connector-selector",
5932
- modelValue: x.value,
5933
- "onUpdate:modelValue": C[0] || (C[0] = (c) => x.value = c),
5932
+ modelValue: D.value,
5933
+ "onUpdate:modelValue": C[0] || (C[0] = (c) => D.value = c),
5934
5934
  style: { "margin-right": "20px" }
5935
5935
  }, {
5936
5936
  default: l(() => [
@@ -5951,15 +5951,15 @@ const Re = [
5951
5951
  }, 8, ["modelValue"])
5952
5952
  ])
5953
5953
  ])) : ne("", !0),
5954
- s("div", Qe, [
5955
- s("div", Xe, [
5956
- (y(!0), q(Z, null, le(o.value, (c, F) => (y(), q("div", {
5954
+ r("div", Qe, [
5955
+ r("div", Xe, [
5956
+ (y(!0), A(Z, null, le(o.value, (c, F) => (y(), A("div", {
5957
5957
  key: c.id,
5958
5958
  class: "filter-card-item"
5959
5959
  }, [
5960
- s("div", Ze, [
5961
- s("div", Ie, [
5962
- s("span", ea, "筛选卡片 " + ce(F + 1), 1),
5960
+ r("div", Ze, [
5961
+ r("div", Ie, [
5962
+ r("span", ea, "筛选卡片 " + ce(F + 1), 1),
5963
5963
  a(z, {
5964
5964
  size: "small",
5965
5965
  modelValue: c.connector,
@@ -5987,7 +5987,7 @@ const Re = [
5987
5987
  theme: "default",
5988
5988
  variant: "text",
5989
5989
  size: "small",
5990
- onClick: (J) => A(F),
5990
+ onClick: (J) => q(F),
5991
5991
  disabled: o.value.length === 1
5992
5992
  }, {
5993
5993
  icon: l(() => [
@@ -5996,8 +5996,8 @@ const Re = [
5996
5996
  _: 1
5997
5997
  }, 8, ["onClick", "disabled"])
5998
5998
  ]),
5999
- s("div", aa, [
6000
- (y(!0), q(Z, null, le(c.conditions, (J, L) => (y(), q("div", {
5999
+ r("div", aa, [
6000
+ (y(!0), A(Z, null, le(c.conditions, (J, L) => (y(), A("div", {
6001
6001
  key: L,
6002
6002
  class: "filter-combination"
6003
6003
  }, [
@@ -6021,7 +6021,7 @@ const Re = [
6021
6021
  _: 1
6022
6022
  }, 8, ["onClick", "disabled"])
6023
6023
  ]))), 128)),
6024
- s("div", la, [
6024
+ r("div", la, [
6025
6025
  a(u, {
6026
6026
  theme: "default",
6027
6027
  size: "small",
@@ -6038,13 +6038,13 @@ const Re = [
6038
6038
  ])
6039
6039
  ])
6040
6040
  ]))), 128)),
6041
- s("div", {
6041
+ r("div", {
6042
6042
  class: "add-filter-card",
6043
- onClick: r
6043
+ onClick: s
6044
6044
  }, [
6045
- s("div", ta, [
6045
+ r("div", ta, [
6046
6046
  a(b, { name: "add" }),
6047
- C[7] || (C[7] = s("span", null, "增加筛选卡片", -1))
6047
+ C[7] || (C[7] = r("span", null, "增加筛选卡片", -1))
6048
6048
  ])
6049
6049
  ])
6050
6050
  ])
@@ -6054,9 +6054,9 @@ const Re = [
6054
6054
  ])
6055
6055
  ]),
6056
6056
  footer: l(() => [
6057
- s("div", na, [
6058
- C[10] || (C[10] = s("div", { class: "filter-dialog-footer2" }, null, -1)),
6059
- s("div", oa, [
6057
+ r("div", na, [
6058
+ C[10] || (C[10] = r("div", { class: "filter-dialog-footer2" }, null, -1)),
6059
+ r("div", oa, [
6060
6060
  a(u, {
6061
6061
  theme: "default",
6062
6062
  onClick: Y
@@ -6082,7 +6082,7 @@ const Re = [
6082
6082
  }, 8, ["visible"]);
6083
6083
  };
6084
6084
  }
6085
- }, Ee = /* @__PURE__ */ ue(ia, [["__scopeId", "data-v-92f16808"]]), sa = { class: "save-plan-content" }, ra = {
6085
+ }, Ee = /* @__PURE__ */ ue(ia, [["__scopeId", "data-v-92f16808"]]), ra = { class: "save-plan-content" }, sa = {
6086
6086
  __name: "SavePlanDialog",
6087
6087
  props: {
6088
6088
  visible: {
@@ -6134,7 +6134,7 @@ const Re = [
6134
6134
  shareMode: "none",
6135
6135
  shareType: "specific",
6136
6136
  selectedUsers: []
6137
- }), x = _([]), X = _([]), r = re(() => d.isEditing && d.originalShareMode === "copy");
6137
+ }), D = _([]), X = _([]), s = se(() => d.isEditing && d.originalShareMode === "copy");
6138
6138
  I(() => d.visible, (k) => {
6139
6139
  k ? d.isEditing && d.planName && (o.value.planName = d.planName, o.value.shareMode = d.originalShareMode || "none", o.value.shareType = d.originalShareType || "specific", d.originalSelectedUsers && d.originalSelectedUsers.length > 0 && (o.value.selectedUsers = [...d.originalSelectedUsers])) : P();
6140
6140
  }), I(() => d.deptMembersDataProp, (k) => {
@@ -6146,7 +6146,7 @@ const Re = [
6146
6146
  shareMode: "none",
6147
6147
  shareType: "specific",
6148
6148
  selectedUsers: []
6149
- }, x.value = [], X.value = [];
6149
+ }, D.value = [], X.value = [];
6150
6150
  }, W = (k) => {
6151
6151
  console.log("选中人员:", k), k.map((b) => ({
6152
6152
  id: b.id,
@@ -6161,15 +6161,15 @@ const Re = [
6161
6161
  tags: [],
6162
6162
  isUser: b.isUser === !0
6163
6163
  })).forEach((b) => {
6164
- x.value.find((f) => f.id === b.id) || x.value.push(b);
6165
- }), o.value.selectedUsers = x.value.map((b) => b.id);
6166
- }, A = (k) => {
6164
+ D.value.find((f) => f.id === b.id) || D.value.push(b);
6165
+ }), o.value.selectedUsers = D.value.map((b) => b.id);
6166
+ }, q = (k) => {
6167
6167
  v("load-users", k);
6168
6168
  }, B = (k) => {
6169
6169
  v("search", k);
6170
6170
  }, Y = (k) => {
6171
6171
  v("dept-click", k);
6172
- }, V = () => {
6172
+ }, S = () => {
6173
6173
  if (!o.value.planName.trim()) {
6174
6174
  de.warning("请输入方案名称");
6175
6175
  return;
@@ -6195,11 +6195,11 @@ const Re = [
6195
6195
  "onUpdate:visible": z[3] || (z[3] = (Q) => k.$emit("update:visible", Q)),
6196
6196
  width: "600px",
6197
6197
  footer: !0,
6198
- onConfirm: V,
6198
+ onConfirm: S,
6199
6199
  onClose: C
6200
6200
  }, {
6201
6201
  body: l(() => [
6202
- s("div", sa, [
6202
+ r("div", ra, [
6203
6203
  a(J, {
6204
6204
  data: o.value,
6205
6205
  "label-align": "left",
@@ -6224,7 +6224,7 @@ const Re = [
6224
6224
  a(F, {
6225
6225
  modelValue: o.value.shareMode,
6226
6226
  "onUpdate:modelValue": z[1] || (z[1] = (Q) => o.value.shareMode = Q),
6227
- disabled: r.value
6227
+ disabled: s.value
6228
6228
  }, {
6229
6229
  default: l(() => [
6230
6230
  a(f, { value: "none" }, {
@@ -6293,7 +6293,7 @@ const Re = [
6293
6293
  }, {
6294
6294
  default: l(() => [
6295
6295
  a(Me(Je), {
6296
- users: x.value,
6296
+ users: D.value,
6297
6297
  "avatar-size": 32,
6298
6298
  "max-display": 10,
6299
6299
  edit: !0,
@@ -6301,7 +6301,7 @@ const Re = [
6301
6301
  "person-organizations": i.organizations,
6302
6302
  "dept-members-data": X.value,
6303
6303
  onPersonSelect: W,
6304
- onLoadUsers: A,
6304
+ onLoadUsers: q,
6305
6305
  onSearch: B,
6306
6306
  onDeptClick: Y
6307
6307
  }, null, 8, ["users", "person-tabs", "person-organizations", "dept-members-data"])
@@ -6325,7 +6325,7 @@ const Re = [
6325
6325
  }),
6326
6326
  a(L, {
6327
6327
  theme: "primary",
6328
- onClick: V
6328
+ onClick: S
6329
6329
  }, {
6330
6330
  default: l(() => [...z[10] || (z[10] = [
6331
6331
  w("确定", -1)
@@ -6337,7 +6337,7 @@ const Re = [
6337
6337
  }, 8, ["header", "visible"]);
6338
6338
  };
6339
6339
  }
6340
- }, da = /* @__PURE__ */ ue(ra, [["__scopeId", "data-v-7fd313f0"]]), ua = { class: "filter-dialog-content" }, ma = { class: "leader-line-container" }, ca = {
6340
+ }, da = /* @__PURE__ */ ue(sa, [["__scopeId", "data-v-7fd313f0"]]), ua = { class: "filter-dialog-content" }, ma = { class: "leader-line-container" }, ca = {
6341
6341
  class: "filter-scroll-wrapper",
6342
6342
  id: "filter-scroll-wrapper"
6343
6343
  }, va = {
@@ -6346,7 +6346,7 @@ const Re = [
6346
6346
  }, fa = { class: "filter-tab-content" }, pa = {
6347
6347
  key: 0,
6348
6348
  class: "filter-dialog-left"
6349
- }, ya = { class: "connectors-container" }, ba = { class: "filter-cards" }, ga = { class: "filter-card-header" }, ha = { class: "filter-card-header-left" }, Ca = { class: "filter-card-title" }, ka = { class: "filter-card-content" }, _a = { class: "filter-card-actions" }, za = { class: "add-card-content" }, Fa = { class: "column-settings-panel" }, Oa = { class: "column-title-row" }, wa = { class: "column-title column-title-show" }, Va = { class: "column-list" }, Sa = ["onDragstart", "onDragover", "onDrop"], $a = { class: "column-name" }, Ua = { class: "column-show" }, xa = { class: "column-freeze" }, Da = { class: "column-width" }, Ea = { class: "column-sort-buttons" }, qa = { class: "filter-dialog-right" }, Aa = { class: "filter-plan-list" }, Pa = ["onClick"], Ta = { class: "plan-name" }, Na = { class: "filter-dialog-footer-container" }, Ba = { class: "filter-dialog-footer-left" }, Ma = { class: "filter-dialog-footer-right" }, Ja = {
6349
+ }, ya = { class: "connectors-container" }, ba = { class: "filter-cards" }, ga = { class: "filter-card-header" }, ha = { class: "filter-card-header-left" }, Ca = { class: "filter-card-title" }, ka = { class: "filter-card-content" }, _a = { class: "filter-card-actions" }, za = { class: "add-card-content" }, Fa = { class: "column-settings-panel" }, Oa = { class: "column-title-row" }, wa = { class: "column-title column-title-show" }, Va = { class: "column-list" }, Sa = ["onDragstart", "onDragover", "onDrop"], $a = { class: "column-name" }, Ua = { class: "column-show" }, xa = { class: "column-freeze" }, Da = { class: "column-width" }, Ea = { class: "column-sort-buttons" }, Aa = { class: "filter-dialog-right" }, qa = { class: "filter-plan-list" }, Pa = ["onClick"], Ta = { class: "plan-name" }, Na = { class: "filter-dialog-footer-container" }, Ba = { class: "filter-dialog-footer-left" }, Ma = { class: "filter-dialog-footer-right" }, Ja = {
6350
6350
  __name: "cd-filter",
6351
6351
  props: {
6352
6352
  visible: {
@@ -6419,12 +6419,12 @@ const Re = [
6419
6419
  "column-change"
6420
6420
  ],
6421
6421
  setup(i, { emit: ee }) {
6422
- const d = i, v = ee, o = _(JSON.parse(JSON.stringify(d.filterCards))), x = _(d.topOp), X = _(null), r = _(!1), P = _([]), W = _("filter"), A = _(!1), B = _(""), Y = _("none"), V = _("specific"), C = _([]), k = _(null);
6422
+ const d = i, v = ee, o = _(JSON.parse(JSON.stringify(d.filterCards))), D = _(d.topOp), X = _(null), s = _(!1), P = _([]), W = _("filter"), q = _(!1), B = _(""), Y = _("none"), S = _("specific"), C = _([]), k = _(null);
6423
6423
  let z = 100;
6424
6424
  I(() => d.filterCards, (e) => {
6425
6425
  o.value = JSON.parse(JSON.stringify(e));
6426
6426
  }, { deep: !0 }), I(() => d.topOp, (e) => {
6427
- x.value = e;
6427
+ D.value = e;
6428
6428
  });
6429
6429
  const b = () => {
6430
6430
  o.value.push({
@@ -6446,11 +6446,11 @@ const Re = [
6446
6446
  O.conditions.length > 1 && t >= 0 && t < O.conditions.length ? O.conditions.splice(t, 1) : O.conditions.length <= 1 && de.warning("每个卡片至少需要一个筛选条件");
6447
6447
  }
6448
6448
  }, F = (e) => e.map((t) => {
6449
- const O = t.conditions.filter((D) => D.field && D.field.trim() !== "").map((D) => {
6449
+ const O = t.conditions.filter((E) => E.field && E.field.trim() !== "").map((E) => {
6450
6450
  let h = "";
6451
- return D.value !== null && D.value !== void 0 && (Array.isArray(D.value) ? h = D.value.join("/") : h = String(D.value)), {
6452
- field: D.field.trim(),
6453
- operator: D.operator || "eq",
6451
+ return E.value !== null && E.value !== void 0 && (Array.isArray(E.value) ? h = E.value.join("/") : h = String(E.value)), {
6452
+ field: E.field.trim(),
6453
+ operator: E.operator || "eq",
6454
6454
  value: h
6455
6455
  };
6456
6456
  });
@@ -6460,50 +6460,50 @@ const Re = [
6460
6460
  conditions: O.length > 0 ? O : [{ field: "", operator: "eq", value: "" }]
6461
6461
  };
6462
6462
  }).filter((t) => t.conditions.length > 0 && t.conditions[0].field !== ""), J = (e) => {
6463
- if (e.value !== "empty" && (X.value = e, v("plan-click", e), e.precepts && (o.value = JSON.parse(JSON.stringify(e.precepts))), e.sqlConnectType && (x.value = e.sqlConnectType), e.columns && e.columns.length > 0)) {
6464
- te.value = {}, m.value = {}, G.value = e.columns.filter((U) => U.show !== !1).map((U) => U.value), e.columns.forEach((U) => {
6465
- U.width && (te.value[U.value] = parseInt(U.width)), U.freeze ? m.value[U.value] = U.freeze : m.value[U.value] = "none";
6463
+ if (e.value !== "empty" && (X.value = e, v("plan-click", e), e.precepts && (o.value = JSON.parse(JSON.stringify(e.precepts))), e.sqlConnectType && (D.value = e.sqlConnectType), e.columns && e.columns.length > 0)) {
6464
+ te.value = {}, m.value = {}, G.value = e.columns.filter((x) => x.show !== !1).map((x) => x.value), e.columns.forEach((x) => {
6465
+ x.width && (te.value[x.value] = parseInt(x.width)), x.freeze ? m.value[x.value] = x.freeze : m.value[x.value] = "none";
6466
6466
  });
6467
- const t = e.columns.map((U) => U.value), O = t.map(
6468
- (U) => d.fieldOptions.find((ve) => ve.value === U)
6469
- ).filter(Boolean), D = d.fieldOptions.filter(
6470
- (U) => !t.includes(U.value)
6467
+ const t = e.columns.map((x) => x.value), O = t.map(
6468
+ (x) => d.fieldOptions.find((ve) => ve.value === x)
6469
+ ).filter(Boolean), E = d.fieldOptions.filter(
6470
+ (x) => !t.includes(x.value)
6471
6471
  );
6472
- n.value = [...O, ...D], se.value = G.value.length === d.fieldOptions.length;
6473
- const h = e.columns.filter((U) => U.show !== !1);
6472
+ n.value = [...O, ...E], re.value = G.value.length === d.fieldOptions.length;
6473
+ const h = e.columns.filter((x) => x.show !== !1);
6474
6474
  v("column-change", h);
6475
6475
  }
6476
6476
  }, L = () => {
6477
- A.value = !1, k.value = null, B.value = "", Y.value = "none", V.value = "specific", C.value = [], r.value = !0;
6477
+ q.value = !1, k.value = null, B.value = "", Y.value = "none", S.value = "specific", C.value = [], s.value = !0;
6478
6478
  }, ae = (e) => {
6479
6479
  const t = n.value.map((O) => {
6480
- const D = te.value[O.value], h = m.value[O.value] || "none";
6480
+ const E = te.value[O.value], h = m.value[O.value] || "none";
6481
6481
  return {
6482
6482
  value: O.value,
6483
6483
  show: G.value.includes(O.value),
6484
6484
  // 是否显示
6485
- width: D ? `${D}px` : "120px",
6485
+ width: E ? `${E}px` : "120px",
6486
6486
  freeze: h
6487
6487
  // 冻结状态
6488
6488
  };
6489
6489
  });
6490
- A.value && k.value ? v("update-plan", {
6490
+ q.value && k.value ? v("update-plan", {
6491
6491
  ...e,
6492
6492
  plan: k.value,
6493
6493
  filterCards: o.value,
6494
- topOp: x.value,
6494
+ topOp: D.value,
6495
6495
  columns: t
6496
6496
  }) : v("save-plan", {
6497
6497
  ...e,
6498
6498
  filterCards: o.value,
6499
- topOp: x.value,
6499
+ topOp: D.value,
6500
6500
  columns: t
6501
- }), A.value = !1, k.value = null;
6501
+ }), q.value = !1, k.value = null;
6502
6502
  }, Q = (e) => {
6503
- A.value = !0, k.value = e, B.value = e.content || "", Y.value = e.shareMode || "none", V.value = e.shareType || "specific", C.value = e.selectedUsers || [], r.value = !0;
6503
+ q.value = !0, k.value = e, B.value = e.content || "", Y.value = e.shareMode || "none", S.value = e.shareType || "specific", C.value = e.selectedUsers || [], s.value = !0;
6504
6504
  }, ie = (e) => {
6505
6505
  v("copy-plan", e);
6506
- }, S = (e) => {
6506
+ }, $ = (e) => {
6507
6507
  v("delete-plan", e);
6508
6508
  }, T = (e) => {
6509
6509
  v("set-default-plan", e);
@@ -6517,13 +6517,13 @@ const Re = [
6517
6517
  { field: "", operator: "eq", value: "" }
6518
6518
  ]
6519
6519
  }
6520
- ], x.value = "and", v("reset");
6520
+ ], D.value = "and", v("reset");
6521
6521
  }, N = () => {
6522
6522
  if (W.value === "filter") {
6523
6523
  const e = F(o.value);
6524
6524
  v("confirm", {
6525
6525
  filterCards: e,
6526
- type1: x.value
6526
+ type1: D.value
6527
6527
  });
6528
6528
  } else W.value === "column" && Fe();
6529
6529
  me();
@@ -6537,7 +6537,7 @@ const Re = [
6537
6537
  v("dept-click", { dept: e, callback: (O) => {
6538
6538
  P.value = O;
6539
6539
  } });
6540
- }, G = _([]), se = _(!1), te = _({}), m = _({}), n = _([]), $ = _(null), E = _(null);
6540
+ }, G = _([]), re = _(!1), te = _({}), m = _({}), n = _([]), U = _(null), V = _(null);
6541
6541
  I(() => d.visibleColumns, (e) => {
6542
6542
  if (te.value = {}, m.value = {}, e && e.length > 0) {
6543
6543
  if (typeof e[0] == "object") {
@@ -6545,22 +6545,22 @@ const Re = [
6545
6545
  h.width && (te.value[h.value] = parseInt(h.width)), h.freeze ? m.value[h.value] = h.freeze : m.value[h.value] = "none";
6546
6546
  });
6547
6547
  const t = e.map((h) => h.value), O = t.map(
6548
- (h) => d.fieldOptions.find((U) => U.value === h)
6549
- ).filter(Boolean), D = d.fieldOptions.filter(
6548
+ (h) => d.fieldOptions.find((x) => x.value === h)
6549
+ ).filter(Boolean), E = d.fieldOptions.filter(
6550
6550
  (h) => !t.includes(h.value)
6551
6551
  );
6552
- n.value = [...O, ...D];
6552
+ n.value = [...O, ...E];
6553
6553
  } else {
6554
6554
  G.value = [...e];
6555
6555
  const t = e.map(
6556
- (D) => d.fieldOptions.find((h) => h.value === D)
6556
+ (E) => d.fieldOptions.find((h) => h.value === E)
6557
6557
  ).filter(Boolean), O = d.fieldOptions.filter(
6558
- (D) => !e.includes(D.value)
6558
+ (E) => !e.includes(E.value)
6559
6559
  );
6560
6560
  n.value = [...t, ...O];
6561
6561
  }
6562
- se.value = G.value.length === d.fieldOptions.length;
6563
- } else d.fieldOptions.length > 0 && (G.value = d.fieldOptions.map((t) => t.value), n.value = [...d.fieldOptions], se.value = !0);
6562
+ re.value = G.value.length === d.fieldOptions.length;
6563
+ } else d.fieldOptions.length > 0 && (G.value = d.fieldOptions.map((t) => t.value), n.value = [...d.fieldOptions], re.value = !0);
6564
6564
  d.fieldOptions.forEach((t) => {
6565
6565
  m.value[t.value] || (m.value[t.value] = "none");
6566
6566
  });
@@ -6574,7 +6574,7 @@ const Re = [
6574
6574
  const O = G.value.indexOf(e);
6575
6575
  O > -1 && G.value.splice(O, 1);
6576
6576
  }
6577
- se.value = G.value.length === d.fieldOptions.length;
6577
+ re.value = G.value.length === d.fieldOptions.length;
6578
6578
  }, R = (e) => {
6579
6579
  e ? G.value = n.value.map((t) => t.value) : G.value = [];
6580
6580
  }, ge = (e) => {
@@ -6588,36 +6588,36 @@ const Re = [
6588
6588
  n.value[e] = n.value[e + 1], n.value[e + 1] = t, n.value = [...n.value];
6589
6589
  }
6590
6590
  }, Ce = (e, t) => {
6591
- $.value = e, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/html", t.target.innerHTML);
6591
+ U.value = e, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/html", t.target.innerHTML);
6592
6592
  }, ke = (e, t) => {
6593
- t.preventDefault(), t.dataTransfer.dropEffect = "move", E.value = e;
6593
+ t.preventDefault(), t.dataTransfer.dropEffect = "move", V.value = e;
6594
6594
  }, _e = () => {
6595
- $.value = null, E.value = null;
6595
+ U.value = null, V.value = null;
6596
6596
  }, ze = (e, t) => {
6597
6597
  t.preventDefault();
6598
- const O = $.value;
6598
+ const O = U.value;
6599
6599
  if (O === null || O === e)
6600
6600
  return;
6601
- const D = [...n.value], h = D[O];
6602
- D.splice(O, 1), D.splice(e, 0, h), n.value = D, $.value = null, E.value = null;
6601
+ const E = [...n.value], h = E[O];
6602
+ E.splice(O, 1), E.splice(e, 0, h), n.value = E, U.value = null, V.value = null;
6603
6603
  }, Fe = () => {
6604
6604
  const e = n.value.filter((t) => G.value.includes(t.value)).map((t) => {
6605
- const O = te.value[t.value], D = m.value[t.value] || "none";
6605
+ const O = te.value[t.value], E = m.value[t.value] || "none";
6606
6606
  return {
6607
6607
  value: t.value,
6608
6608
  show: !0,
6609
6609
  // 已通过filter筛选,都是显示的
6610
6610
  width: O ? `${O}px` : "120px",
6611
6611
  // 没有设置宽度时使用默认值120px
6612
- freeze: D
6612
+ freeze: E
6613
6613
  // 冻结状态
6614
6614
  };
6615
6615
  });
6616
6616
  v("column-change", e);
6617
6617
  };
6618
6618
  return (e, t) => {
6619
- const O = p("t-radio-button"), D = p("t-radio-group"), h = p("t-icon"), U = p("t-button"), ve = p("t-tab-panel"), xe = p("t-checkbox"), Oe = p("t-option"), Ae = p("t-select"), Pe = p("t-input-number"), Te = p("t-tabs"), fe = p("t-tooltip"), Ne = p("t-dialog");
6620
- return y(), q(Z, null, [
6619
+ const O = p("t-radio-button"), E = p("t-radio-group"), h = p("t-icon"), x = p("t-button"), ve = p("t-tab-panel"), xe = p("t-checkbox"), Oe = p("t-option"), qe = p("t-select"), Pe = p("t-input-number"), Te = p("t-tabs"), fe = p("t-tooltip"), Ne = p("t-dialog");
6620
+ return y(), A(Z, null, [
6621
6621
  a(Ne, {
6622
6622
  header: "方案设置",
6623
6623
  placement: "center",
@@ -6630,10 +6630,10 @@ const Re = [
6630
6630
  id: "leader-line-clip-container"
6631
6631
  }, {
6632
6632
  body: l(() => [
6633
- s("div", ua, [
6634
- s("div", ma, [
6635
- s("div", ca, [
6636
- s("div", va, [
6633
+ r("div", ua, [
6634
+ r("div", ma, [
6635
+ r("div", ca, [
6636
+ r("div", va, [
6637
6637
  a(Te, {
6638
6638
  modelValue: W.value,
6639
6639
  "onUpdate:modelValue": t[2] || (t[2] = (g) => W.value = g),
@@ -6645,14 +6645,14 @@ const Re = [
6645
6645
  label: "筛选"
6646
6646
  }, {
6647
6647
  default: l(() => [
6648
- s("div", fa, [
6649
- o.value.length > 1 ? (y(), q("div", pa, [
6650
- s("div", ya, [
6651
- a(D, {
6648
+ r("div", fa, [
6649
+ o.value.length > 1 ? (y(), A("div", pa, [
6650
+ r("div", ya, [
6651
+ a(E, {
6652
6652
  size: i.size,
6653
6653
  class: "connector-selector",
6654
- modelValue: x.value,
6655
- "onUpdate:modelValue": t[0] || (t[0] = (g) => x.value = g)
6654
+ modelValue: D.value,
6655
+ "onUpdate:modelValue": t[0] || (t[0] = (g) => D.value = g)
6656
6656
  }, {
6657
6657
  default: l(() => [
6658
6658
  a(O, { value: "and" }, {
@@ -6672,15 +6672,15 @@ const Re = [
6672
6672
  }, 8, ["size", "modelValue"])
6673
6673
  ])
6674
6674
  ])) : ne("", !0),
6675
- s("div", ba, [
6676
- (y(!0), q(Z, null, le(o.value, (g, K) => (y(), q("div", {
6675
+ r("div", ba, [
6676
+ (y(!0), A(Z, null, le(o.value, (g, K) => (y(), A("div", {
6677
6677
  key: g.id,
6678
6678
  class: "filter-card-item"
6679
6679
  }, [
6680
- s("div", ga, [
6681
- s("div", ha, [
6682
- s("span", Ca, "筛选卡片 " + ce(K + 1), 1),
6683
- a(D, {
6680
+ r("div", ga, [
6681
+ r("div", ha, [
6682
+ r("span", Ca, "筛选卡片 " + ce(K + 1), 1),
6683
+ a(E, {
6684
6684
  size: i.size,
6685
6685
  modelValue: g.connector,
6686
6686
  "onUpdate:modelValue": (M) => g.connector = M,
@@ -6703,7 +6703,7 @@ const Re = [
6703
6703
  _: 1
6704
6704
  }, 8, ["size", "modelValue", "onUpdate:modelValue"])
6705
6705
  ]),
6706
- a(U, {
6706
+ a(x, {
6707
6707
  theme: "default",
6708
6708
  variant: "text",
6709
6709
  size: i.size,
@@ -6716,8 +6716,8 @@ const Re = [
6716
6716
  _: 1
6717
6717
  }, 8, ["size", "onClick", "disabled"])
6718
6718
  ]),
6719
- s("div", ka, [
6720
- (y(!0), q(Z, null, le(g.conditions, (M, we) => (y(), q("div", {
6719
+ r("div", ka, [
6720
+ (y(!0), A(Z, null, le(g.conditions, (M, we) => (y(), A("div", {
6721
6721
  key: we,
6722
6722
  class: "filter-combination"
6723
6723
  }, [
@@ -6727,7 +6727,7 @@ const Re = [
6727
6727
  "select-options": i.selectOptions,
6728
6728
  size: i.size
6729
6729
  }, null, 8, ["field-options", "filter-condition", "select-options", "size"]),
6730
- a(U, {
6730
+ a(x, {
6731
6731
  theme: "default",
6732
6732
  variant: "text",
6733
6733
  size: i.size,
@@ -6740,8 +6740,8 @@ const Re = [
6740
6740
  _: 1
6741
6741
  }, 8, ["size", "onClick", "disabled"])
6742
6742
  ]))), 128)),
6743
- s("div", _a, [
6744
- a(U, {
6743
+ r("div", _a, [
6744
+ a(x, {
6745
6745
  theme: "default",
6746
6746
  size: i.size,
6747
6747
  onClick: (M) => f(K)
@@ -6757,13 +6757,13 @@ const Re = [
6757
6757
  ])
6758
6758
  ])
6759
6759
  ]))), 128)),
6760
- s("div", {
6760
+ r("div", {
6761
6761
  class: "add-filter-card",
6762
6762
  onClick: b
6763
6763
  }, [
6764
- s("div", za, [
6764
+ r("div", za, [
6765
6765
  a(h, { name: "add" }),
6766
- t[11] || (t[11] = s("span", null, "增加筛选卡片", -1))
6766
+ t[11] || (t[11] = r("span", null, "增加筛选卡片", -1))
6767
6767
  ])
6768
6768
  ])
6769
6769
  ])
@@ -6776,46 +6776,46 @@ const Re = [
6776
6776
  label: "列配置"
6777
6777
  }, {
6778
6778
  default: l(() => [
6779
- s("div", Fa, [
6780
- s("div", Oa, [
6781
- t[13] || (t[13] = s("div", { class: "column-title column-title-name" }, "名称", -1)),
6782
- s("div", wa, [
6779
+ r("div", Fa, [
6780
+ r("div", Oa, [
6781
+ t[13] || (t[13] = r("div", { class: "column-title column-title-name" }, "名称", -1)),
6782
+ r("div", wa, [
6783
6783
  a(xe, {
6784
- modelValue: se.value,
6785
- "onUpdate:modelValue": t[1] || (t[1] = (g) => se.value = g),
6784
+ modelValue: re.value,
6785
+ "onUpdate:modelValue": t[1] || (t[1] = (g) => re.value = g),
6786
6786
  onChange: R
6787
6787
  }, null, 8, ["modelValue"]),
6788
6788
  t[12] || (t[12] = w(" 显示", -1))
6789
6789
  ]),
6790
- t[14] || (t[14] = s("div", { class: "column-title column-title-width" }, "冻结列", -1)),
6791
- t[15] || (t[15] = s("div", { class: "column-title column-title-width" }, "宽度", -1)),
6792
- t[16] || (t[16] = s("div", { class: "column-title column-title-sort" }, "排序", -1))
6790
+ t[14] || (t[14] = r("div", { class: "column-title column-title-width" }, "冻结列", -1)),
6791
+ t[15] || (t[15] = r("div", { class: "column-title column-title-width" }, "宽度", -1)),
6792
+ t[16] || (t[16] = r("div", { class: "column-title column-title-sort" }, "排序", -1))
6793
6793
  ]),
6794
- s("div", Va, [
6795
- (y(!0), q(Z, null, le(n.value, (g, K) => (y(), q("div", {
6794
+ r("div", Va, [
6795
+ (y(!0), A(Z, null, le(n.value, (g, K) => (y(), A("div", {
6796
6796
  key: g.value,
6797
- class: Se(["column-item-row", { dragging: $.value === K }]),
6797
+ class: Se(["column-item-row", { dragging: U.value === K }]),
6798
6798
  draggable: "true",
6799
6799
  onDragstart: (M) => Ce(K, M),
6800
6800
  onDragover: (M) => ke(K, M),
6801
6801
  onDragend: _e,
6802
6802
  onDrop: (M) => ze(K, M)
6803
6803
  }, [
6804
- s("div", $a, [
6804
+ r("div", $a, [
6805
6805
  a(h, {
6806
6806
  name: "move",
6807
6807
  style: { cursor: "move", color: "#999", "margin-right": "8px" }
6808
6808
  }),
6809
6809
  w(" " + ce(g.label), 1)
6810
6810
  ]),
6811
- s("div", Ua, [
6811
+ r("div", Ua, [
6812
6812
  a(xe, {
6813
6813
  checked: G.value.includes(g.value),
6814
6814
  onChange: (M) => H(g.value, M)
6815
6815
  }, null, 8, ["checked", "onChange"])
6816
6816
  ]),
6817
- s("div", xa, [
6818
- a(Ae, {
6817
+ r("div", xa, [
6818
+ a(qe, {
6819
6819
  modelValue: m.value[g.value],
6820
6820
  "onUpdate:modelValue": (M) => m.value[g.value] = M,
6821
6821
  size: "small",
@@ -6838,7 +6838,7 @@ const Re = [
6838
6838
  _: 1
6839
6839
  }, 8, ["modelValue", "onUpdate:modelValue"])
6840
6840
  ]),
6841
- s("div", Da, [
6841
+ r("div", Da, [
6842
6842
  a(Pe, {
6843
6843
  modelValue: te.value[g.value],
6844
6844
  "onUpdate:modelValue": (M) => te.value[g.value] = M,
@@ -6850,8 +6850,8 @@ const Re = [
6850
6850
  style: { width: "100px" }
6851
6851
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
6852
6852
  ]),
6853
- s("div", Ea, [
6854
- a(U, {
6853
+ r("div", Ea, [
6854
+ a(x, {
6855
6855
  theme: "default",
6856
6856
  variant: "text",
6857
6857
  size: "small",
@@ -6866,7 +6866,7 @@ const Re = [
6866
6866
  ]),
6867
6867
  _: 1
6868
6868
  }, 8, ["onClick", "disabled"]),
6869
- a(U, {
6869
+ a(x, {
6870
6870
  theme: "default",
6871
6871
  variant: "text",
6872
6872
  size: "small",
@@ -6892,12 +6892,12 @@ const Re = [
6892
6892
  _: 1
6893
6893
  }, 8, ["modelValue"])
6894
6894
  ]),
6895
- s("div", qa, [
6896
- t[17] || (t[17] = s("div", { class: "filter-plan-title" }, "我的方案", -1)),
6897
- s("div", Aa, [
6898
- (y(!0), q(Z, null, le(i.planFilterOptions, (g) => {
6895
+ r("div", Aa, [
6896
+ t[17] || (t[17] = r("div", { class: "filter-plan-title" }, "我的方案", -1)),
6897
+ r("div", qa, [
6898
+ (y(!0), A(Z, null, le(i.planFilterOptions, (g) => {
6899
6899
  var K;
6900
- return y(), q("div", {
6900
+ return y(), A("div", {
6901
6901
  key: g.value,
6902
6902
  class: Se(["filter-plan-item", { active: ((K = X.value) == null ? void 0 : K.value) === g.value }]),
6903
6903
  onClick: (M) => J(g)
@@ -6906,8 +6906,8 @@ const Re = [
6906
6906
  name: "file-text",
6907
6907
  class: "plan-icon"
6908
6908
  }),
6909
- s("span", Ta, ce(g.content), 1),
6910
- s("div", {
6909
+ r("span", Ta, ce(g.content), 1),
6910
+ r("div", {
6911
6911
  class: "plan-actions",
6912
6912
  onClick: t[3] || (t[3] = De(() => {
6913
6913
  }, ["stop"]))
@@ -6917,7 +6917,7 @@ const Re = [
6917
6917
  placement: "top"
6918
6918
  }, {
6919
6919
  default: l(() => [
6920
- a(U, {
6920
+ a(x, {
6921
6921
  theme: "default",
6922
6922
  variant: "text",
6923
6923
  size: "small",
@@ -6940,7 +6940,7 @@ const Re = [
6940
6940
  placement: "top"
6941
6941
  }, {
6942
6942
  default: l(() => [
6943
- a(U, {
6943
+ a(x, {
6944
6944
  theme: "default",
6945
6945
  variant: "text",
6946
6946
  size: "small",
@@ -6963,7 +6963,7 @@ const Re = [
6963
6963
  placement: "top"
6964
6964
  }, {
6965
6965
  default: l(() => [
6966
- a(U, {
6966
+ a(x, {
6967
6967
  theme: "default",
6968
6968
  variant: "text",
6969
6969
  size: "small",
@@ -6986,11 +6986,11 @@ const Re = [
6986
6986
  placement: "top"
6987
6987
  }, {
6988
6988
  default: l(() => [
6989
- a(U, {
6989
+ a(x, {
6990
6990
  theme: "default",
6991
6991
  variant: "text",
6992
6992
  size: "small",
6993
- onClick: (M) => S(g),
6993
+ onClick: (M) => $(g),
6994
6994
  disabled: !g.value || g.value === "empty"
6995
6995
  }, {
6996
6996
  icon: l(() => [
@@ -7014,9 +7014,9 @@ const Re = [
7014
7014
  ])
7015
7015
  ]),
7016
7016
  footer: l(() => [
7017
- s("div", Na, [
7018
- s("div", Ba, [
7019
- a(U, {
7017
+ r("div", Na, [
7018
+ r("div", Ba, [
7019
+ a(x, {
7020
7020
  theme: "warning",
7021
7021
  size: i.size,
7022
7022
  onClick: L
@@ -7030,8 +7030,8 @@ const Re = [
7030
7030
  _: 1
7031
7031
  }, 8, ["size"])
7032
7032
  ]),
7033
- s("div", Ma, [
7034
- a(U, {
7033
+ r("div", Ma, [
7034
+ a(x, {
7035
7035
  theme: "default",
7036
7036
  size: i.size,
7037
7037
  onClick: oe
@@ -7041,7 +7041,7 @@ const Re = [
7041
7041
  ])]),
7042
7042
  _: 1
7043
7043
  }, 8, ["size"]),
7044
- a(U, {
7044
+ a(x, {
7045
7045
  theme: "primary",
7046
7046
  size: i.size,
7047
7047
  onClick: N
@@ -7057,12 +7057,12 @@ const Re = [
7057
7057
  _: 1
7058
7058
  }, 8, ["visible", "width"]),
7059
7059
  a(da, {
7060
- visible: r.value,
7061
- "onUpdate:visible": t[5] || (t[5] = (g) => r.value = g),
7062
- "is-editing": A.value,
7060
+ visible: s.value,
7061
+ "onUpdate:visible": t[5] || (t[5] = (g) => s.value = g),
7062
+ "is-editing": q.value,
7063
7063
  "plan-name": B.value,
7064
7064
  "original-share-mode": Y.value,
7065
- "original-share-type": V.value,
7065
+ "original-share-type": S.value,
7066
7066
  "original-selected-users": C.value,
7067
7067
  tabs: i.personTabs,
7068
7068
  organizations: i.personOrganizations,
@@ -7088,7 +7088,7 @@ const Re = [
7088
7088
  },
7089
7089
  emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
7090
7090
  setup(i, { emit: ee }) {
7091
- const d = i, v = ee, o = _(d.visible), x = [
7091
+ const d = i, v = ee, o = _(d.visible), D = [
7092
7092
  // 第一行 - 暖色系
7093
7093
  "#FFE7BA",
7094
7094
  "#FFD6E7",
@@ -7131,7 +7131,7 @@ const Re = [
7131
7131
  { label: "小于等于", value: "lte" },
7132
7132
  { label: "包含", value: "contains" },
7133
7133
  { label: "不包含", value: "notContains" }
7134
- ], r = {
7134
+ ], s = {
7135
7135
  overlayInnerStyle: {
7136
7136
  width: "180px"
7137
7137
  }
@@ -7156,7 +7156,7 @@ const Re = [
7156
7156
  });
7157
7157
  const W = (b, u) => {
7158
7158
  P.value[b].backgroundColor = u, P.value[b].showColorPicker = !1;
7159
- }, A = () => {
7159
+ }, q = () => {
7160
7160
  P.value.push({
7161
7161
  field: "",
7162
7162
  operator: "eq",
@@ -7170,7 +7170,7 @@ const Re = [
7170
7170
  P.value.length > 1 && P.value.splice(b, 1);
7171
7171
  }, Y = () => {
7172
7172
  o.value = !1;
7173
- }, V = () => {
7173
+ }, S = () => {
7174
7174
  v("clear"), o.value = !1;
7175
7175
  }, C = () => {
7176
7176
  const b = P.value.filter(
@@ -7184,11 +7184,11 @@ const Re = [
7184
7184
  applyTo: u.applyTo
7185
7185
  }));
7186
7186
  v("confirm", b), o.value = !1;
7187
- }, k = re(() => {
7188
- const b = P.value.length, u = Math.floor(x.length / b), f = [];
7187
+ }, k = se(() => {
7188
+ const b = P.value.length, u = Math.floor(D.length / b), f = [];
7189
7189
  for (let c = 0; c < b; c++) {
7190
- const F = c * u % x.length;
7191
- f.push(x[F]);
7190
+ const F = c * u % D.length;
7191
+ f.push(D[F]);
7192
7192
  }
7193
7193
  return f;
7194
7194
  }), z = () => {
@@ -7197,8 +7197,8 @@ const Re = [
7197
7197
  }), v("smart-colors-change", k.value);
7198
7198
  };
7199
7199
  return (b, u) => {
7200
- const f = p("t-button"), c = p("t-checkbox"), F = p("t-popup"), J = p("t-radio-button"), L = p("t-radio-group"), ae = p("t-select"), Q = p("t-input"), ie = p("t-icon"), S = p("t-dialog");
7201
- return y(), j(S, {
7200
+ const f = p("t-button"), c = p("t-checkbox"), F = p("t-popup"), J = p("t-radio-button"), L = p("t-radio-group"), ae = p("t-select"), Q = p("t-input"), ie = p("t-icon"), $ = p("t-dialog");
7201
+ return y(), j($, {
7202
7202
  visible: o.value,
7203
7203
  "onUpdate:visible": u[0] || (u[0] = (T) => o.value = T),
7204
7204
  width: "800px",
@@ -7207,8 +7207,8 @@ const Re = [
7207
7207
  onClose: Y
7208
7208
  }, {
7209
7209
  header: l(() => [
7210
- s("div", La, [
7211
- u[3] || (u[3] = s("span", null, "颜色筛选", -1)),
7210
+ r("div", La, [
7211
+ u[3] || (u[3] = r("span", null, "颜色筛选", -1)),
7212
7212
  a(f, {
7213
7213
  theme: "primary",
7214
7214
  variant: "outline",
@@ -7216,7 +7216,7 @@ const Re = [
7216
7216
  onClick: z
7217
7217
  }, {
7218
7218
  icon: l(() => [...u[1] || (u[1] = [
7219
- s("i", { class: "ri-palette-line" }, null, -1)
7219
+ r("i", { class: "ri-palette-line" }, null, -1)
7220
7220
  ])]),
7221
7221
  default: l(() => [
7222
7222
  u[2] || (u[2] = w(" 智能配色 ", -1))
@@ -7226,14 +7226,14 @@ const Re = [
7226
7226
  ])
7227
7227
  ]),
7228
7228
  body: l(() => [
7229
- s("div", Ha, [
7230
- s("div", ja, [
7231
- (y(!0), q(Z, null, le(P.value, (T, oe) => (y(), q("div", {
7229
+ r("div", Ha, [
7230
+ r("div", ja, [
7231
+ (y(!0), A(Z, null, le(P.value, (T, oe) => (y(), A("div", {
7232
7232
  key: oe,
7233
7233
  class: "color-rule-item"
7234
7234
  }, [
7235
- s("div", Ya, [
7236
- s("div", Ga, [
7235
+ r("div", Ya, [
7236
+ r("div", Ga, [
7237
7237
  a(F, {
7238
7238
  visible: T.showColorPicker,
7239
7239
  "onUpdate:visible": (N) => T.showColorPicker = N,
@@ -7241,22 +7241,22 @@ const Re = [
7241
7241
  trigger: "click"
7242
7242
  }, {
7243
7243
  content: l(() => [
7244
- s("div", Qa, [
7245
- s("div", Xa, [
7246
- (y(), q(Z, null, le(x, (N) => s("div", {
7244
+ r("div", Qa, [
7245
+ r("div", Xa, [
7246
+ (y(), A(Z, null, le(D, (N) => r("div", {
7247
7247
  key: N,
7248
7248
  class: Se(["preset-color-item", { active: T.backgroundColor === N }]),
7249
7249
  style: $e({ backgroundColor: N }),
7250
7250
  onClick: (me) => W(oe, N)
7251
7251
  }, null, 14, Za)), 64))
7252
7252
  ]),
7253
- s("div", Ia, [
7253
+ r("div", Ia, [
7254
7254
  a(c, {
7255
7255
  modelValue: T.isBold,
7256
7256
  "onUpdate:modelValue": (N) => T.isBold = N
7257
7257
  }, {
7258
7258
  default: l(() => [...u[4] || (u[4] = [
7259
- s("span", { class: "bold-text" }, "加粗", -1)
7259
+ r("span", { class: "bold-text" }, "加粗", -1)
7260
7260
  ])]),
7261
7261
  _: 1
7262
7262
  }, 8, ["modelValue", "onUpdate:modelValue"])
@@ -7264,19 +7264,19 @@ const Re = [
7264
7264
  ])
7265
7265
  ]),
7266
7266
  default: l(() => [
7267
- s("div", Wa, [
7268
- s("div", {
7267
+ r("div", Wa, [
7268
+ r("div", {
7269
7269
  class: "color-block",
7270
7270
  style: $e({ backgroundColor: T.backgroundColor })
7271
7271
  }, [
7272
- T.isBold ? (y(), q("span", Ka, "B")) : ne("", !0)
7272
+ T.isBold ? (y(), A("span", Ka, "B")) : ne("", !0)
7273
7273
  ], 4)
7274
7274
  ])
7275
7275
  ]),
7276
7276
  _: 2
7277
7277
  }, 1032, ["visible", "onUpdate:visible"])
7278
7278
  ]),
7279
- s("div", el, [
7279
+ r("div", el, [
7280
7280
  a(L, {
7281
7281
  modelValue: T.applyTo,
7282
7282
  "onUpdate:modelValue": (N) => T.applyTo = N,
@@ -7306,7 +7306,7 @@ const Re = [
7306
7306
  _: 1
7307
7307
  }, 8, ["modelValue", "onUpdate:modelValue", "size"])
7308
7308
  ]),
7309
- s("div", al, [
7309
+ r("div", al, [
7310
7310
  a(ae, {
7311
7311
  modelValue: T.field,
7312
7312
  "onUpdate:modelValue": (N) => T.field = N,
@@ -7314,7 +7314,7 @@ const Re = [
7314
7314
  placeholder: "选择字段",
7315
7315
  size: i.size,
7316
7316
  style: { width: "120px", display: "inline-block" },
7317
- "popup-props": r
7317
+ "popup-props": s
7318
7318
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "size"]),
7319
7319
  a(ae, {
7320
7320
  modelValue: T.operator,
@@ -7323,7 +7323,7 @@ const Re = [
7323
7323
  placeholder: "选择操作符",
7324
7324
  size: i.size,
7325
7325
  style: { width: "120px" },
7326
- "popup-props": r
7326
+ "popup-props": s
7327
7327
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
7328
7328
  a(Q, {
7329
7329
  modelValue: T.value,
@@ -7342,7 +7342,7 @@ const Re = [
7342
7342
  disabled: P.value.length === 1
7343
7343
  }, {
7344
7344
  icon: l(() => [...u[8] || (u[8] = [
7345
- s("i", { class: "ri-close-fill" }, null, -1)
7345
+ r("i", { class: "ri-close-fill" }, null, -1)
7346
7346
  ])]),
7347
7347
  _: 1
7348
7348
  }, 8, ["size", "onClick", "disabled"])
@@ -7352,7 +7352,7 @@ const Re = [
7352
7352
  theme: "default",
7353
7353
  variant: "dashed",
7354
7354
  size: i.size,
7355
- onClick: A,
7355
+ onClick: q,
7356
7356
  style: { width: "100%", "margin-top": "12px" }
7357
7357
  }, {
7358
7358
  icon: l(() => [
@@ -7366,7 +7366,7 @@ const Re = [
7366
7366
  ])
7367
7367
  ]),
7368
7368
  footer: l(() => [
7369
- s("div", ll, [
7369
+ r("div", ll, [
7370
7370
  a(f, {
7371
7371
  theme: "default",
7372
7372
  size: i.size,
@@ -7380,7 +7380,7 @@ const Re = [
7380
7380
  a(f, {
7381
7381
  theme: "default",
7382
7382
  size: i.size,
7383
- onClick: V
7383
+ onClick: S
7384
7384
  }, {
7385
7385
  default: l(() => [...u[11] || (u[11] = [
7386
7386
  w("清除", -1)
@@ -7403,13 +7403,13 @@ const Re = [
7403
7403
  }, 8, ["visible"]);
7404
7404
  };
7405
7405
  }
7406
- }, qe = /* @__PURE__ */ ue(tl, [["__scopeId", "data-v-822b291e"]]), nl = { class: "cd-filter-bar" }, ol = {
7406
+ }, Ae = /* @__PURE__ */ ue(tl, [["__scopeId", "data-v-822b291e"]]), nl = { class: "cd-filter-bar" }, ol = {
7407
7407
  key: 0,
7408
7408
  class: "inline-filter-toolbar"
7409
7409
  }, il = {
7410
7410
  key: 1,
7411
7411
  class: "plan-radio-group"
7412
- }, sl = { class: "filter-action-buttons" }, rl = { class: "save-plan-content" }, dl = {
7412
+ }, rl = { class: "filter-action-buttons" }, sl = { class: "save-plan-content" }, dl = {
7413
7413
  __name: "cd-filter-bar",
7414
7414
  props: {
7415
7415
  fieldOptions: { type: Array, required: !0 },
@@ -7456,37 +7456,37 @@ const Re = [
7456
7456
  "smart-colors-change"
7457
7457
  ],
7458
7458
  setup(i, { emit: ee }) {
7459
- const d = i, v = ee, o = _([]), x = () => ({ field: "", operator: "eq", value: "" });
7459
+ const d = i, v = ee, o = _([]), D = () => ({ field: "", operator: "eq", value: "" });
7460
7460
  (() => {
7461
- var n, $;
7461
+ var n, U;
7462
7462
  if (d.filterCount === 0) {
7463
7463
  o.value = [];
7464
7464
  return;
7465
7465
  }
7466
- const m = (($ = (n = d.filterCards) == null ? void 0 : n[0]) == null ? void 0 : $.conditions) || [];
7467
- o.value = Array.from({ length: d.filterCount }, (E, H) => m[H] ? JSON.parse(JSON.stringify(m[H])) : x());
7466
+ const m = ((U = (n = d.filterCards) == null ? void 0 : n[0]) == null ? void 0 : U.conditions) || [];
7467
+ o.value = Array.from({ length: d.filterCount }, (V, H) => m[H] ? JSON.parse(JSON.stringify(m[H])) : D());
7468
7468
  })();
7469
- const r = () => {
7469
+ const s = () => {
7470
7470
  if (d.filterCount === 0) {
7471
7471
  o.value = [];
7472
7472
  return;
7473
7473
  }
7474
- o.value = Array.from({ length: d.filterCount }, () => x());
7475
- }, P = _("保存筛选方案"), W = _(!1), A = _(d.topOp), B = _(JSON.parse(JSON.stringify(d.filterCards)));
7476
- I(() => d.topOp, (m) => A.value = m), I(() => d.filterCards, (m) => B.value = JSON.parse(JSON.stringify(m)));
7477
- const Y = _(null), V = _(""), C = re(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), k = (m) => {
7478
- const n = d.planFilterOptions.find(($) => $.value === m);
7474
+ o.value = Array.from({ length: d.filterCount }, () => D());
7475
+ }, P = _("保存筛选方案"), W = _(!1), q = _(d.topOp), B = _(JSON.parse(JSON.stringify(d.filterCards)));
7476
+ I(() => d.topOp, (m) => q.value = m), I(() => d.filterCards, (m) => B.value = JSON.parse(JSON.stringify(m)));
7477
+ const Y = _(null), S = _(""), C = se(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), k = (m) => {
7478
+ const n = d.planFilterOptions.find((U) => U.value === m);
7479
7479
  n && z(n);
7480
7480
  }, z = (m) => {
7481
7481
  if (!m.precepts || m.precepts.length === 0) return;
7482
- if (Y.value = m, V.value = m.value, B.value = JSON.parse(JSON.stringify(m.precepts)), A.value = m.sqlConnectType, d.filterCount > 0) {
7483
- const E = m.precepts[0];
7484
- E && E.conditions && (o.value = Array.from({ length: d.filterCount }, (H, R) => E.conditions[R] ? JSON.parse(JSON.stringify(E.conditions[R])) : x()));
7482
+ if (Y.value = m, S.value = m.value, B.value = JSON.parse(JSON.stringify(m.precepts)), q.value = m.sqlConnectType, d.filterCount > 0) {
7483
+ const V = m.precepts[0];
7484
+ V && V.conditions && (o.value = Array.from({ length: d.filterCount }, (H, R) => V.conditions[R] ? JSON.parse(JSON.stringify(V.conditions[R])) : D()));
7485
7485
  }
7486
- const n = F(m.precepts), $ = J(n, m.sqlConnectType);
7487
- if (v("confirm", $), m.columns && m.columns.length > 0) {
7488
- const E = m.columns.filter((H) => H.show !== !1);
7489
- v("column-change", E);
7486
+ const n = F(m.precepts), U = J(n, m.sqlConnectType);
7487
+ if (v("confirm", U), m.columns && m.columns.length > 0) {
7488
+ const V = m.columns.filter((H) => H.show !== !1);
7489
+ v("column-change", V);
7490
7490
  }
7491
7491
  }, b = () => {
7492
7492
  u();
@@ -7496,7 +7496,7 @@ const Re = [
7496
7496
  return;
7497
7497
  }
7498
7498
  const m = F([
7499
- { id: 1, connector: A.value, conditions: o.value }
7499
+ { id: 1, connector: q.value, conditions: o.value }
7500
7500
  ]), n = J(m, "and");
7501
7501
  v("search", n);
7502
7502
  }, f = () => {
@@ -7504,45 +7504,45 @@ const Re = [
7504
7504
  }, c = () => {
7505
7505
  W.value = !1;
7506
7506
  }, F = (m) => m.map((n) => {
7507
- const $ = n.conditions.filter((E) => E.field && E.field.trim() !== "").map((E) => {
7507
+ const U = n.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) => {
7508
7508
  let H = "";
7509
- return E.value !== null && E.value !== void 0 && (Array.isArray(E.value) ? H = E.value.join("/") : H = String(E.value)), {
7510
- field: E.field.trim(),
7511
- operator: E.operator || "eq",
7509
+ return V.value !== null && V.value !== void 0 && (Array.isArray(V.value) ? H = V.value.join("/") : H = String(V.value)), {
7510
+ field: V.field.trim(),
7511
+ operator: V.operator || "eq",
7512
7512
  value: H
7513
7513
  };
7514
7514
  });
7515
7515
  return {
7516
7516
  ...n,
7517
7517
  connector: n.connector || "and",
7518
- conditions: $.length > 0 ? $ : [{ field: "", operator: "eq", value: "" }]
7518
+ conditions: U.length > 0 ? U : [{ field: "", operator: "eq", value: "" }]
7519
7519
  };
7520
7520
  }).filter((n) => n.conditions.length > 0 && n.conditions[0].field !== "");
7521
7521
  function J(m, n) {
7522
7522
  if (n !== "and" && n !== "or")
7523
7523
  throw new Error('type参数必须是"and"或"or"');
7524
- function $(R) {
7524
+ function U(R) {
7525
7525
  return {
7526
7526
  [R.field]: {
7527
7527
  [R.operator]: R.value
7528
7528
  }
7529
7529
  };
7530
7530
  }
7531
- function E(R) {
7532
- return R.conditions.length === 1 ? $(R.conditions[0]) : {
7533
- [R.connector]: R.conditions.map($)
7531
+ function V(R) {
7532
+ return R.conditions.length === 1 ? U(R.conditions[0]) : {
7533
+ [R.connector]: R.conditions.map(U)
7534
7534
  };
7535
7535
  }
7536
7536
  return {
7537
7537
  conditions: {
7538
- [n]: m.map(E)
7538
+ [n]: m.map(V)
7539
7539
  }
7540
7540
  };
7541
7541
  }
7542
7542
  const L = () => {
7543
- S.value = !1;
7543
+ $.value = !1;
7544
7544
  }, ae = () => {
7545
- r(), Y.value = null, V.value = "", B.value = [
7545
+ s(), Y.value = null, S.value = "", B.value = [
7546
7546
  {
7547
7547
  id: 1,
7548
7548
  connector: "and",
@@ -7551,14 +7551,14 @@ const Re = [
7551
7551
  { field: "", operator: "eq", value: "" }
7552
7552
  ]
7553
7553
  }
7554
- ], A.value = "and", v("reset"), u();
7554
+ ], q.value = "and", v("reset"), u();
7555
7555
  }, Q = () => {
7556
7556
  if (Y.value) {
7557
7557
  const m = F(B.value);
7558
7558
  v("update-plan", {
7559
7559
  name: T.value.name,
7560
7560
  precepts: m,
7561
- topOp: A.value,
7561
+ topOp: q.value,
7562
7562
  plan: Y.value,
7563
7563
  columns: d.visibleColumns || []
7564
7564
  // 包含当前列配置
@@ -7568,7 +7568,7 @@ const Re = [
7568
7568
  v("save-plan", {
7569
7569
  name: T.value.name,
7570
7570
  precepts: m,
7571
- topOp: A.value,
7571
+ topOp: q.value,
7572
7572
  plan: Y.value,
7573
7573
  columns: d.visibleColumns || []
7574
7574
  // 包含当前列配置
@@ -7578,11 +7578,11 @@ const Re = [
7578
7578
  }, ie = (m) => {
7579
7579
  const n = J(m.filterCards, m.type1);
7580
7580
  if (v("confirm", n), d.filterCount > 0) {
7581
- const $ = m.filterCards[0];
7582
- $ && $.conditions && (o.value = Array.from({ length: d.filterCount }, (E, H) => $.conditions[H] ? JSON.parse(JSON.stringify($.conditions[H])) : x()));
7581
+ const U = m.filterCards[0];
7582
+ U && U.conditions && (o.value = Array.from({ length: d.filterCount }, (V, H) => U.conditions[H] ? JSON.parse(JSON.stringify(U.conditions[H])) : D()));
7583
7583
  }
7584
7584
  c();
7585
- }, S = _(!1), T = _({ name: "" }), oe = _(!1), N = _([]), me = () => {
7585
+ }, $ = _(!1), T = _({ name: "" }), oe = _(!1), N = _([]), me = () => {
7586
7586
  oe.value = !0;
7587
7587
  }, pe = (m) => {
7588
7588
  N.value = m, v("color-filter-change", m);
@@ -7592,12 +7592,12 @@ const Re = [
7592
7592
  _("");
7593
7593
  const be = (m) => {
7594
7594
  v("smart-colors-change", m);
7595
- }, G = re(() => N.value.filter((m) => m.field && m.operator && m.value).length), se = re(() => {
7596
- const m = N.value.filter(($) => $.field && $.operator && $.value);
7595
+ }, G = se(() => N.value.filter((m) => m.field && m.operator && m.value).length), re = se(() => {
7596
+ const m = N.value.filter((U) => U.field && U.operator && U.value);
7597
7597
  return m.length === 0 ? "颜色筛选" : `
7598
- ${m.map(($) => {
7599
- const E = d.fieldOptions.find((R) => R.value === $.field);
7600
- return `${E ? E.label : $.field} ${te($.operator)} ${$.value}`;
7598
+ ${m.map((U) => {
7599
+ const V = d.fieldOptions.find((R) => R.value === U.field);
7600
+ return `${V ? V.label : U.field} ${te(U.operator)} ${U.value}`;
7601
7601
  }).join(`
7602
7602
  `)}`;
7603
7603
  }), te = (m) => ({
@@ -7611,10 +7611,10 @@ ${m.map(($) => {
7611
7611
  notContains: "不包含"
7612
7612
  })[m] || m;
7613
7613
  return (m, n) => {
7614
- const $ = p("t-radio-button"), E = p("t-radio-group"), H = p("t-icon"), R = p("t-button"), ge = p("t-badge"), he = p("t-tooltip"), Ce = p("t-dropdown"), ke = p("t-input"), _e = p("t-form-item"), ze = p("t-form"), Fe = p("t-dialog");
7615
- return y(), q("div", nl, [
7616
- i.filterCount > 0 ? (y(), q("div", ol, [
7617
- (y(!0), q(Z, null, le(o.value, (e, t) => (y(), j(Ue, {
7614
+ const U = p("t-radio-button"), V = p("t-radio-group"), H = p("t-icon"), R = p("t-button"), ge = p("t-badge"), he = p("t-tooltip"), Ce = p("t-dropdown"), ke = p("t-input"), _e = p("t-form-item"), ze = p("t-form"), Fe = p("t-dialog");
7615
+ return y(), A("div", nl, [
7616
+ i.filterCount > 0 ? (y(), A("div", ol, [
7617
+ (y(!0), A(Z, null, le(o.value, (e, t) => (y(), j(Ue, {
7618
7618
  key: t,
7619
7619
  "field-options": i.fieldOptions,
7620
7620
  size: i.size,
@@ -7623,16 +7623,16 @@ ${m.map(($) => {
7623
7623
  onSearch: b
7624
7624
  }, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
7625
7625
  ])) : ne("", !0),
7626
- i.filterCount === 0 && i.planFilterOptions.length > 0 ? (y(), q("div", il, [
7627
- n[12] || (n[12] = s("span", { class: "plan-label" }, "我的方案:", -1)),
7628
- a(E, {
7629
- modelValue: V.value,
7630
- "onUpdate:modelValue": n[0] || (n[0] = (e) => V.value = e),
7626
+ i.filterCount === 0 && i.planFilterOptions.length > 0 ? (y(), A("div", il, [
7627
+ n[12] || (n[12] = r("span", { class: "plan-label" }, "我的方案:", -1)),
7628
+ a(V, {
7629
+ modelValue: S.value,
7630
+ "onUpdate:modelValue": n[0] || (n[0] = (e) => S.value = e),
7631
7631
  size: i.size,
7632
7632
  onChange: k
7633
7633
  }, {
7634
7634
  default: l(() => [
7635
- (y(!0), q(Z, null, le(i.planFilterOptions, (e) => (y(), j($, {
7635
+ (y(!0), A(Z, null, le(i.planFilterOptions, (e) => (y(), j(U, {
7636
7636
  key: e.value,
7637
7637
  value: e.value,
7638
7638
  disabled: e.disabled
@@ -7658,7 +7658,7 @@ ${m.map(($) => {
7658
7658
  _: 1
7659
7659
  }, 8, ["size"])
7660
7660
  ])) : ne("", !0),
7661
- s("div", sl, [
7661
+ r("div", rl, [
7662
7662
  i.filterCount > 0 ? (y(), j(R, {
7663
7663
  key: 0,
7664
7664
  theme: "primary",
@@ -7673,7 +7673,7 @@ ${m.map(($) => {
7673
7673
  }, 8, ["size"])) : ne("", !0),
7674
7674
  i.filterCount > 0 ? (y(), j(he, {
7675
7675
  key: 1,
7676
- content: se.value,
7676
+ content: re.value,
7677
7677
  placement: "top"
7678
7678
  }, {
7679
7679
  default: l(() => [
@@ -7688,7 +7688,7 @@ ${m.map(($) => {
7688
7688
  onClick: me
7689
7689
  }, {
7690
7690
  icon: l(() => [...n[13] || (n[13] = [
7691
- s("i", { class: "ri-palette-fill" }, null, -1)
7691
+ r("i", { class: "ri-palette-fill" }, null, -1)
7692
7692
  ])]),
7693
7693
  _: 1
7694
7694
  }, 8, ["size"])
@@ -7729,7 +7729,7 @@ ${m.map(($) => {
7729
7729
  "select-options": i.selectOptions,
7730
7730
  "plan-filter-options": i.planFilterOptions,
7731
7731
  "filter-cards": B.value,
7732
- "top-op": A.value,
7732
+ "top-op": q.value,
7733
7733
  size: i.size,
7734
7734
  "person-tabs": i.personTabs,
7735
7735
  "person-organizations": i.personOrganizations,
@@ -7748,12 +7748,12 @@ ${m.map(($) => {
7748
7748
  }, null, 8, ["visible", "field-options", "select-options", "plan-filter-options", "filter-cards", "top-op", "size", "person-tabs", "person-organizations", "visible-columns"]),
7749
7749
  a(Fe, {
7750
7750
  header: P.value,
7751
- visible: S.value,
7751
+ visible: $.value,
7752
7752
  width: "600px",
7753
7753
  onClose: L
7754
7754
  }, {
7755
7755
  body: l(() => [
7756
- s("div", rl, [
7756
+ r("div", sl, [
7757
7757
  a(ze, {
7758
7758
  data: T.value,
7759
7759
  "label-width": "100px"
@@ -7799,7 +7799,7 @@ ${m.map(($) => {
7799
7799
  ]),
7800
7800
  _: 1
7801
7801
  }, 8, ["header", "visible"]),
7802
- a(qe, {
7802
+ a(Ae, {
7803
7803
  visible: oe.value,
7804
7804
  "onUpdate:visible": n[11] || (n[11] = (e) => oe.value = e),
7805
7805
  "field-options": i.fieldOptions,
@@ -7812,12 +7812,12 @@ ${m.map(($) => {
7812
7812
  ]);
7813
7813
  };
7814
7814
  }
7815
- }, ul = /* @__PURE__ */ ue(dl, [["__scopeId", "data-v-f1789296"]]), pl = (i) => {
7816
- i.component("FilterDialog", Ee), i.component("FilterComponent", Ee), i.component("CdFilterBar", ul), i.component("ColorFilterDialog", qe);
7815
+ }, ul = /* @__PURE__ */ ue(dl, [["__scopeId", "data-v-ac4f1791"]]), pl = (i) => {
7816
+ i.component("FilterDialog", Ee), i.component("FilterComponent", Ee), i.component("CdFilterBar", ul), i.component("ColorFilterDialog", Ae);
7817
7817
  };
7818
7818
  export {
7819
7819
  ul as CdFilterBar,
7820
- qe as ColorFilterDialog,
7820
+ Ae as ColorFilterDialog,
7821
7821
  Ee as FilterComponent,
7822
7822
  Ee as FilterDialog,
7823
7823
  Ee as default,