cd-vue-filter 2.2.6 → 2.2.7

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,7 +1,7 @@
1
- import { defineComponent as qe, computed as ve, ref as w, watch as Z, resolveComponent as g, createElementBlock as T, openBlock as f, createVNode as e, createBlock as L, withCtx as l, Fragment as X, renderList as ne, createElementVNode as s, createTextVNode as $, createCommentVNode as ie, toDisplayString as de, unref as Pe, normalizeClass as be, withModifiers as ge, normalizeStyle as Te } from "vue";
2
- import { MessagePlugin as se } from "tdesign-vue-next";
3
- import { CdUsersList as Ne } from "cd-usercard";
4
- const Ae = [
1
+ import { defineComponent as Be, computed as re, ref as z, watch as ee, resolveComponent as y, createElementBlock as A, openBlock as b, createVNode as e, createBlock as Y, withCtx as a, Fragment as I, renderList as te, nextTick as Ve, createElementVNode as o, createTextVNode as V, createCommentVNode as ie, toDisplayString as me, unref as Me, normalizeClass as Se, withModifiers as De, normalizeStyle as $e } from "vue";
2
+ import { MessagePlugin as de } from "tdesign-vue-next";
3
+ import { CdUsersList as Je } from "cd-usercard";
4
+ const Re = [
5
5
  {
6
6
  name: "北京市",
7
7
  city: [{
@@ -5528,7 +5528,7 @@ const Ae = [
5528
5528
  }
5529
5529
  ]
5530
5530
  }
5531
- ], Me = { class: "filter-component" }, Je = /* @__PURE__ */ qe({
5531
+ ], Le = { class: "filter-component" }, He = /* @__PURE__ */ Be({
5532
5532
  __name: "FilterComponent",
5533
5533
  props: {
5534
5534
  fieldOptions: {},
@@ -5537,30 +5537,29 @@ const Ae = [
5537
5537
  size: {}
5538
5538
  },
5539
5539
  emits: ["search"],
5540
- setup(o, { emit: I }) {
5541
- var C, k, F;
5542
- const r = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], u = ve(() => Ae.map((c) => r.includes(c.name) ? {
5543
- label: c.name,
5544
- value: c.name,
5545
- children: c.city[0].area.map((m) => ({
5540
+ setup(s, { emit: ae }) {
5541
+ var O, g, u;
5542
+ const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], v = re(() => Re.map((p) => d.includes(p.name) ? {
5543
+ label: p.name,
5544
+ value: p.name,
5545
+ children: p.city[0].area.map((m) => ({
5546
5546
  label: m,
5547
- value: `${c.name}/${m}`
5548
- // 使用省份名称作为前缀
5547
+ value: `${p.name}/${m}`,
5548
+ children: void 0
5549
5549
  }))
5550
5550
  } : {
5551
- label: c.name,
5552
- value: c.name,
5553
- children: c.city.map((m) => ({
5551
+ label: p.name,
5552
+ value: p.name,
5553
+ children: p.city.map((m) => ({
5554
5554
  label: m.name,
5555
- value: `${c.name}/${m.name}`,
5556
- // 使用省份名称作为前缀
5557
- children: m.area.map((y) => ({
5558
- label: y,
5559
- value: `${c.name}/${m.name}/${y}`
5560
- // 使用省份和城市名称作为前缀
5555
+ value: `${p.name}/${m.name}`,
5556
+ children: m.area.map((S) => ({
5557
+ label: S,
5558
+ value: `${p.name}/${m.name}/${S}`,
5559
+ children: void 0
5561
5560
  }))
5562
5561
  }))
5563
- })), t = (c) => [
5562
+ })), n = (p) => [
5564
5563
  "today",
5565
5564
  "yesterday",
5566
5565
  "tomorrow",
@@ -5573,43 +5572,49 @@ const Ae = [
5573
5572
  "this_year",
5574
5573
  "last_year",
5575
5574
  "next_year"
5576
- ].includes(c), D = (c) => {
5577
- if (i.selectOptions && i.selectOptions[c])
5578
- return i.selectOptions[c];
5575
+ ].includes(p), q = (p) => {
5576
+ if (i.selectOptions && i.selectOptions[p])
5577
+ return i.selectOptions[p];
5579
5578
  if (i.selectOptions && Array.isArray(i.selectOptions)) {
5580
5579
  const m = i.selectOptions.find(
5581
- (y) => y.columnName === c
5580
+ (S) => S.columnName === p
5582
5581
  );
5583
5582
  if (m && m.value)
5584
- return Q(m.value.map((y) => ({
5585
- label: y,
5586
- value: y
5583
+ return Z(m.value.map((S) => ({
5584
+ label: S,
5585
+ value: S
5587
5586
  })));
5588
5587
  }
5589
5588
  return [];
5590
5589
  };
5591
- function Q(c) {
5592
- return [...c].sort((m, y) => m.value.localeCompare(y.value, "zh-CN"));
5590
+ function Z(p) {
5591
+ return [...p].sort((m, S) => m.value.localeCompare(S.value, "zh-CN"));
5593
5592
  }
5594
- const i = o, ee = I, H = w({
5595
- field: ((C = i.filterCondition) == null ? void 0 : C.field) || "",
5596
- operator: ((k = i.filterCondition) == null ? void 0 : k.operator) || "eq",
5597
- value: ((F = i.filterCondition) == null ? void 0 : F.value) || null
5593
+ const i = s, T = ae, K = z({
5594
+ field: ((O = i.filterCondition) == null ? void 0 : O.field) || "",
5595
+ operator: ((g = i.filterCondition) == null ? void 0 : g.operator) || "eq",
5596
+ value: ((u = i.filterCondition) == null ? void 0 : u.value) || null
5598
5597
  });
5599
- Z(() => i.filterCondition, (c) => {
5600
- c && (H.value = { ...c });
5598
+ ee(() => i.filterCondition, (p) => {
5599
+ p && (K.value = { ...p });
5601
5600
  }, { deep: !0 });
5602
- const q = (c) => {
5603
- const m = i.fieldOptions.find((y) => y.value === c);
5601
+ const P = (p) => {
5602
+ const m = i.fieldOptions.find((S) => S.value === p);
5604
5603
  return m ? m.type : "text";
5605
5604
  }, N = () => {
5606
- ee("search", { ...H.value });
5607
- }, Y = () => {
5608
- ee("search", { ...H.value });
5609
- }, z = ve(() => {
5610
- var y;
5611
- const c = i.filterCondition.field;
5612
- switch (((y = i.fieldOptions.find((J) => J.value === c)) == null ? void 0 : y.type) || "text") {
5605
+ Ve(() => {
5606
+ T("search", { ...i.filterCondition });
5607
+ });
5608
+ }, H = () => {
5609
+ Ve(() => {
5610
+ T("search", { ...i.filterCondition });
5611
+ });
5612
+ }, $ = (p) => {
5613
+ i.filterCondition.value = p, T("search", { ...i.filterCondition });
5614
+ }, _ = re(() => {
5615
+ var S;
5616
+ const p = i.filterCondition.field;
5617
+ switch (((S = i.fieldOptions.find((J) => J.value === p)) == null ? void 0 : S.type) || "text") {
5613
5618
  case "number":
5614
5619
  return [
5615
5620
  { key: "eq", label: "等于", value: "eq" },
@@ -5687,92 +5692,94 @@ const Ae = [
5687
5692
  { key: "ends_with", label: "结尾是", value: "ends_with" }
5688
5693
  ];
5689
5694
  }
5690
- }), p = () => {
5695
+ }), k = () => {
5696
+ Ve(() => {
5697
+ T("search", { ...i.filterCondition });
5698
+ });
5691
5699
  };
5692
- return Z(() => i.filterCondition.field, (c, m) => {
5693
- c && m && (i.filterCondition.operator = "eq", i.filterCondition.value = null);
5694
- }), (c, m) => {
5695
- var K;
5696
- const y = g("t-option"), J = g("t-select"), R = g("t-input"), W = g("t-date-picker"), le = g("t-cascader");
5697
- return f(), T("div", Me, [
5700
+ return ee(() => i.filterCondition.field, (p, m) => {
5701
+ p && m && (i.filterCondition.operator = "eq", i.filterCondition.value = null);
5702
+ }), (p, m) => {
5703
+ var oe;
5704
+ const S = y("t-option"), J = y("t-select"), G = y("t-input"), le = y("t-date-picker"), X = y("t-cascader");
5705
+ return b(), A("div", Le, [
5698
5706
  e(J, {
5699
5707
  modelValue: i.filterCondition.field,
5700
- "onUpdate:modelValue": m[0] || (m[0] = (S) => i.filterCondition.field = S),
5708
+ "onUpdate:modelValue": m[0] || (m[0] = (F) => i.filterCondition.field = F),
5701
5709
  placeholder: "请选择字段",
5702
5710
  size: i.size,
5703
5711
  style: { "min-width": "80px", "max-width": "110px" },
5704
- onChange: p,
5705
- clearable: "",
5712
+ onChange: k,
5706
5713
  filterable: ""
5707
5714
  }, {
5708
- default: l(() => [
5709
- (f(!0), T(X, null, ne(i.fieldOptions, (S) => (f(), L(y, {
5710
- key: S.key,
5711
- label: S.key,
5712
- value: S.value
5715
+ default: a(() => [
5716
+ (b(!0), A(I, null, te(i.fieldOptions, (F) => (b(), Y(S, {
5717
+ key: F.key,
5718
+ label: F.key,
5719
+ value: F.value
5713
5720
  }, null, 8, ["label", "value"]))), 128))
5714
5721
  ]),
5715
5722
  _: 1
5716
5723
  }, 8, ["modelValue", "size"]),
5717
5724
  e(J, {
5718
5725
  modelValue: i.filterCondition.operator,
5719
- "onUpdate:modelValue": m[1] || (m[1] = (S) => i.filterCondition.operator = S),
5726
+ "onUpdate:modelValue": m[1] || (m[1] = (F) => i.filterCondition.operator = F),
5720
5727
  placeholder: "请选择条件",
5721
5728
  size: i.size,
5722
5729
  style: { width: "80px" },
5723
- clearable: !1,
5724
- onChange: Y
5730
+ clearable: "",
5731
+ onChange: H
5725
5732
  }, {
5726
- default: l(() => [
5727
- (f(!0), T(X, null, ne(z.value, (S) => (f(), L(y, {
5728
- key: S.key,
5729
- label: S.label,
5730
- value: S.value
5733
+ default: a(() => [
5734
+ (b(!0), A(I, null, te(_.value, (F) => (b(), Y(S, {
5735
+ key: F.key,
5736
+ label: F.label,
5737
+ value: F.value
5731
5738
  }, null, 8, ["label", "value"]))), 128))
5732
5739
  ]),
5733
5740
  _: 1
5734
5741
  }, 8, ["modelValue", "size"]),
5735
- q(i.filterCondition.field) === "number" ? (f(), L(R, {
5742
+ P(i.filterCondition.field) === "number" ? (b(), Y(G, {
5736
5743
  key: 0,
5737
5744
  type: "number",
5738
5745
  modelValue: i.filterCondition.value,
5739
- "onUpdate:modelValue": m[2] || (m[2] = (S) => i.filterCondition.value = S),
5746
+ "onUpdate:modelValue": m[2] || (m[2] = (F) => i.filterCondition.value = F),
5740
5747
  placeholder: "请输入数字",
5741
5748
  size: i.size,
5742
- style: { "min-width": "80px", "max-width": "120px" },
5749
+ style: { width: "80px" },
5743
5750
  onChange: N,
5744
5751
  clearable: ""
5745
- }, null, 8, ["modelValue", "size"])) : q(i.filterCondition.field) === "money" ? (f(), L(R, {
5752
+ }, null, 8, ["modelValue", "size"])) : P(i.filterCondition.field) === "money" ? (b(), Y(G, {
5746
5753
  key: 1,
5747
5754
  type: "number",
5748
5755
  modelValue: i.filterCondition.value,
5749
- "onUpdate:modelValue": m[3] || (m[3] = (S) => i.filterCondition.value = S),
5756
+ "onUpdate:modelValue": m[3] || (m[3] = (F) => i.filterCondition.value = F),
5750
5757
  placeholder: "请输入金额",
5751
5758
  size: i.size,
5752
- style: { "min-width": "80px", "max-width": "120px" },
5759
+ style: { width: "80px" },
5753
5760
  onChange: N,
5754
5761
  clearable: ""
5755
- }, null, 8, ["modelValue", "size"])) : q(i.filterCondition.field) === "date" ? (f(), T(X, { key: 2 }, [
5756
- t(i.filterCondition.operator) ? (f(), L(R, {
5762
+ }, null, 8, ["modelValue", "size"])) : P(i.filterCondition.field) === "date" ? (b(), A(I, { key: 2 }, [
5763
+ n(i.filterCondition.operator) ? (b(), Y(G, {
5757
5764
  key: 1,
5758
- value: (K = z.value.find((S) => S.value === i.filterCondition.operator)) == null ? void 0 : K.label,
5765
+ value: (oe = _.value.find((F) => F.value === i.filterCondition.operator)) == null ? void 0 : oe.label,
5759
5766
  disabled: "",
5760
5767
  size: i.size,
5761
5768
  style: { "min-width": "80px", "max-width": "120px" }
5762
- }, null, 8, ["value", "size"])) : (f(), L(W, {
5769
+ }, null, 8, ["value", "size"])) : (b(), Y(le, {
5763
5770
  key: 0,
5764
5771
  modelValue: i.filterCondition.value,
5765
- "onUpdate:modelValue": m[4] || (m[4] = (S) => i.filterCondition.value = S),
5772
+ "onUpdate:modelValue": m[4] || (m[4] = (F) => i.filterCondition.value = F),
5766
5773
  placeholder: "请选择日期",
5767
5774
  size: i.size,
5768
5775
  style: { "min-width": "80px", "max-width": "120px" },
5769
5776
  onChange: N,
5770
5777
  clearable: ""
5771
5778
  }, null, 8, ["modelValue", "size"]))
5772
- ], 64)) : q(i.filterCondition.field) === "time" ? (f(), L(W, {
5779
+ ], 64)) : P(i.filterCondition.field) === "time" ? (b(), Y(le, {
5773
5780
  key: 3,
5774
5781
  modelValue: i.filterCondition.value,
5775
- "onUpdate:modelValue": m[5] || (m[5] = (S) => i.filterCondition.value = S),
5782
+ "onUpdate:modelValue": m[5] || (m[5] = (F) => i.filterCondition.value = F),
5776
5783
  placeholder: "请选择日期时间",
5777
5784
  size: i.size,
5778
5785
  style: { "min-width": "80px", "max-width": "120px" },
@@ -5780,56 +5787,55 @@ const Ae = [
5780
5787
  format: "YYYY-MM-DD HH:mm:ss",
5781
5788
  onChange: N,
5782
5789
  clearable: ""
5783
- }, null, 8, ["modelValue", "size"])) : q(i.filterCondition.field) === "select" ? (f(), L(J, {
5790
+ }, null, 8, ["modelValue", "size"])) : P(i.filterCondition.field) === "select" ? (b(), Y(J, {
5784
5791
  key: 4,
5785
5792
  modelValue: i.filterCondition.value,
5786
- "onUpdate:modelValue": m[6] || (m[6] = (S) => i.filterCondition.value = S),
5787
- options: D(i.filterCondition.field),
5793
+ "onUpdate:modelValue": m[6] || (m[6] = (F) => i.filterCondition.value = F),
5794
+ options: q(i.filterCondition.field),
5788
5795
  placeholder: "请选择",
5789
5796
  size: i.size,
5790
5797
  style: { "min-width": "80px", "max-width": "120px" },
5791
5798
  onChange: N,
5792
5799
  clearable: ""
5793
- }, null, 8, ["modelValue", "options", "size"])) : q(i.filterCondition.field) === "selectProvince" ? (f(), L(le, {
5800
+ }, null, 8, ["modelValue", "options", "size"])) : P(i.filterCondition.field) === "selectProvince" ? (b(), Y(X, {
5794
5801
  key: 5,
5795
5802
  modelValue: i.filterCondition.value,
5796
- "onUpdate:modelValue": m[7] || (m[7] = (S) => i.filterCondition.value = S),
5797
- options: u.value,
5803
+ "onUpdate:modelValue": m[7] || (m[7] = (F) => i.filterCondition.value = F),
5804
+ options: v.value,
5798
5805
  placeholder: "请选择地区",
5799
5806
  size: i.size,
5800
5807
  style: { "min-width": "80px", "max-width": "120px" },
5801
5808
  clearable: "",
5802
5809
  loading: !1,
5803
- checkStrictly: !0,
5804
- onChange: N
5805
- }, null, 8, ["modelValue", "options", "size"])) : (f(), L(R, {
5810
+ onChange: $
5811
+ }, null, 8, ["modelValue", "options", "size"])) : (b(), Y(G, {
5806
5812
  key: 6,
5807
5813
  modelValue: i.filterCondition.value,
5808
- "onUpdate:modelValue": m[8] || (m[8] = (S) => i.filterCondition.value = S),
5814
+ "onUpdate:modelValue": m[8] || (m[8] = (F) => i.filterCondition.value = F),
5809
5815
  placeholder: "请输入关键字",
5810
5816
  size: i.size,
5811
- style: { "min-width": "80px", "max-width": "120px" },
5817
+ style: { "min-width": "80px", "max-width": "100px" },
5812
5818
  onChange: N,
5813
5819
  clearable: ""
5814
5820
  }, null, 8, ["modelValue", "size"]))
5815
5821
  ]);
5816
5822
  };
5817
5823
  }
5818
- }), me = (o, I) => {
5819
- const r = o.__vccOpts || o;
5820
- for (const [u, t] of I)
5821
- r[u] = t;
5822
- return r;
5823
- }, ye = /* @__PURE__ */ me(Je, [["__scopeId", "data-v-9089e83f"]]), Ee = { class: "filter-dialog-content" }, Be = { class: "leader-line-container" }, Le = {
5824
+ }), ue = (s, ae) => {
5825
+ const d = s.__vccOpts || s;
5826
+ for (const [v, n] of ae)
5827
+ d[v] = n;
5828
+ return d;
5829
+ }, Ue = /* @__PURE__ */ ue(He, [["__scopeId", "data-v-8f6272e8"]]), je = { class: "filter-dialog-content" }, Ye = { class: "leader-line-container" }, Ge = {
5824
5830
  class: "filter-scroll-wrapper",
5825
5831
  id: "filter-scroll-wrapper"
5826
- }, He = {
5832
+ }, We = {
5827
5833
  key: 0,
5828
5834
  class: "filter-dialog-left"
5829
- }, Re = { class: "connectors-container" }, Ye = {
5835
+ }, Ke = { class: "connectors-container" }, Qe = {
5830
5836
  class: "filter-dialog-middle",
5831
5837
  id: "filter-dialog-middle"
5832
- }, je = { class: "filter-cards" }, Ge = { class: "filter-card-header" }, We = { style: { display: "flex", "align-items": "center", "flex-direction": "row" } }, Ke = { class: "filter-card-title" }, Qe = { class: "filter-card-content" }, Xe = { class: "filter-card-actions" }, Ze = { class: "add-card-content" }, Ie = { class: "filter-dialog-footer1" }, ea = { class: "filter-dialog-footer" }, aa = {
5838
+ }, Xe = { class: "filter-cards" }, Ze = { class: "filter-card-header" }, Ie = { style: { display: "flex", "align-items": "center", "flex-direction": "row" } }, ea = { class: "filter-card-title" }, aa = { class: "filter-card-content" }, la = { class: "filter-card-actions" }, ta = { class: "add-card-content" }, na = { class: "filter-dialog-footer1" }, oa = { class: "filter-dialog-footer" }, ia = {
5833
5839
  __name: "filterDialog",
5834
5840
  props: {
5835
5841
  visible: {
@@ -5858,8 +5864,8 @@ const Ae = [
5858
5864
  "submit",
5859
5865
  "close"
5860
5866
  ],
5861
- setup(o, { emit: I }) {
5862
- const r = o, u = I, t = w([
5867
+ setup(s, { emit: ae }) {
5868
+ const d = s, v = ae, n = z([
5863
5869
  {
5864
5870
  id: 1,
5865
5871
  connector: "and",
@@ -5867,76 +5873,76 @@ const Ae = [
5867
5873
  { field: "", operator: "eq", value: "" }
5868
5874
  ]
5869
5875
  }
5870
- ]), D = w("and");
5871
- let Q = 3;
5872
- Z(() => r.initialFilterCards, (z) => {
5873
- z && z.length > 0 && (t.value = z);
5874
- }, { immediate: !0, deep: !0 }), Z(() => r.initialType1, (z) => {
5875
- z && (D.value = z);
5876
+ ]), q = z("and");
5877
+ let Z = 3;
5878
+ ee(() => d.initialFilterCards, ($) => {
5879
+ $ && $.length > 0 && (n.value = $);
5880
+ }, { immediate: !0, deep: !0 }), ee(() => d.initialType1, ($) => {
5881
+ $ && (q.value = $);
5876
5882
  }, { immediate: !0 });
5877
5883
  const i = () => {
5878
- t.value.push({
5879
- id: Q++,
5884
+ n.value.push({
5885
+ id: Z++,
5880
5886
  connector: "and",
5881
5887
  conditions: [{ field: "", operator: "eq", value: "" }]
5882
5888
  });
5883
- }, ee = (z) => {
5884
- z >= 0 && z < t.value.length && t.value[z].conditions.push({
5889
+ }, T = ($) => {
5890
+ $ >= 0 && $ < n.value.length && n.value[$].conditions.push({
5885
5891
  field: "",
5886
5892
  operator: "eq",
5887
5893
  value: ""
5888
5894
  });
5889
- }, H = (z, p) => {
5890
- if (z >= 0 && z < t.value.length) {
5891
- const C = t.value[z];
5892
- C.conditions.length > 1 && p >= 0 && p < C.conditions.length ? C.conditions.splice(p, 1) : C.conditions.length <= 1 && se.warning("每个卡片至少需要一个筛选条件");
5895
+ }, K = ($, _) => {
5896
+ if ($ >= 0 && $ < n.value.length) {
5897
+ const k = n.value[$];
5898
+ k.conditions.length > 1 && _ >= 0 && _ < k.conditions.length ? k.conditions.splice(_, 1) : k.conditions.length <= 1 && de.warning("每个卡片至少需要一个筛选条件");
5893
5899
  }
5894
- }, q = (z) => {
5895
- t.value.length > 1 ? t.value.splice(z, 1) : se.warning("至少需要保留一个筛选卡片");
5900
+ }, P = ($) => {
5901
+ n.value.length > 1 ? n.value.splice($, 1) : de.warning("至少需要保留一个筛选卡片");
5896
5902
  }, N = () => {
5897
- u("submit", {
5898
- filterCards: t.value,
5899
- type1: D.value
5903
+ v("submit", {
5904
+ filterCards: n.value,
5905
+ type1: q.value
5900
5906
  });
5901
- }, Y = () => {
5902
- u("close"), u("update:visible", !1);
5907
+ }, H = () => {
5908
+ v("close"), v("update:visible", !1);
5903
5909
  };
5904
- return (z, p) => {
5905
- const C = g("t-radio-button"), k = g("t-radio-group"), F = g("t-icon"), c = g("t-button"), m = g("t-dialog");
5906
- return f(), L(m, {
5910
+ return ($, _) => {
5911
+ const k = y("t-radio-button"), O = y("t-radio-group"), g = y("t-icon"), u = y("t-button"), p = y("t-dialog");
5912
+ return b(), Y(p, {
5907
5913
  header: "筛选条件设置",
5908
5914
  placement: "center",
5909
- visible: o.visible,
5910
- "onUpdate:visible": p[1] || (p[1] = (y) => z.$emit("update:visible", y)),
5915
+ visible: s.visible,
5916
+ "onUpdate:visible": _[1] || (_[1] = (m) => $.$emit("update:visible", m)),
5911
5917
  width: "700px",
5912
5918
  "z-index": 999,
5913
5919
  footer: !0,
5914
- onClose: Y,
5920
+ onClose: H,
5915
5921
  id: "leader-line-clip-container"
5916
5922
  }, {
5917
- body: l(() => [
5918
- s("div", Ee, [
5919
- s("div", Be, [
5920
- s("div", Le, [
5921
- t.value.length > 1 ? (f(), T("div", He, [
5922
- s("div", Re, [
5923
- e(k, {
5923
+ body: a(() => [
5924
+ o("div", je, [
5925
+ o("div", Ye, [
5926
+ o("div", Ge, [
5927
+ n.value.length > 1 ? (b(), A("div", We, [
5928
+ o("div", Ke, [
5929
+ e(O, {
5924
5930
  size: "small",
5925
5931
  class: "connector-selector",
5926
- modelValue: D.value,
5927
- "onUpdate:modelValue": p[0] || (p[0] = (y) => D.value = y),
5932
+ modelValue: q.value,
5933
+ "onUpdate:modelValue": _[0] || (_[0] = (m) => q.value = m),
5928
5934
  style: { "margin-right": "20px" }
5929
5935
  }, {
5930
- default: l(() => [
5931
- e(C, { value: "and" }, {
5932
- default: l(() => [...p[2] || (p[2] = [
5933
- $("且", -1)
5936
+ default: a(() => [
5937
+ e(k, { value: "and" }, {
5938
+ default: a(() => [..._[2] || (_[2] = [
5939
+ V("且", -1)
5934
5940
  ])]),
5935
5941
  _: 1
5936
5942
  }),
5937
- e(C, { value: "or" }, {
5938
- default: l(() => [...p[3] || (p[3] = [
5939
- $("或", -1)
5943
+ e(k, { value: "or" }, {
5944
+ default: a(() => [..._[3] || (_[3] = [
5945
+ V("或", -1)
5940
5946
  ])]),
5941
5947
  _: 1
5942
5948
  })
@@ -5945,31 +5951,31 @@ const Ae = [
5945
5951
  }, 8, ["modelValue"])
5946
5952
  ])
5947
5953
  ])) : ie("", !0),
5948
- s("div", Ye, [
5949
- s("div", je, [
5950
- (f(!0), T(X, null, ne(t.value, (y, J) => (f(), T("div", {
5951
- key: y.id,
5954
+ o("div", Qe, [
5955
+ o("div", Xe, [
5956
+ (b(!0), A(I, null, te(n.value, (m, S) => (b(), A("div", {
5957
+ key: m.id,
5952
5958
  class: "filter-card-item"
5953
5959
  }, [
5954
- s("div", Ge, [
5955
- s("div", We, [
5956
- s("span", Ke, "筛选卡片 " + de(J + 1), 1),
5957
- e(k, {
5960
+ o("div", Ze, [
5961
+ o("div", Ie, [
5962
+ o("span", ea, "筛选卡片 " + me(S + 1), 1),
5963
+ e(O, {
5958
5964
  size: "small",
5959
- modelValue: y.connector,
5960
- "onUpdate:modelValue": (R) => y.connector = R,
5965
+ modelValue: m.connector,
5966
+ "onUpdate:modelValue": (J) => m.connector = J,
5961
5967
  class: "connector-selector"
5962
5968
  }, {
5963
- default: l(() => [
5964
- e(C, { value: "and" }, {
5965
- default: l(() => [...p[4] || (p[4] = [
5966
- $("且", -1)
5969
+ default: a(() => [
5970
+ e(k, { value: "and" }, {
5971
+ default: a(() => [..._[4] || (_[4] = [
5972
+ V("且", -1)
5967
5973
  ])]),
5968
5974
  _: 1
5969
5975
  }),
5970
- e(C, { value: "or" }, {
5971
- default: l(() => [...p[5] || (p[5] = [
5972
- $("或", -1)
5976
+ e(k, { value: "or" }, {
5977
+ default: a(() => [..._[5] || (_[5] = [
5978
+ V("或", -1)
5973
5979
  ])]),
5974
5980
  _: 1
5975
5981
  })
@@ -5977,68 +5983,68 @@ const Ae = [
5977
5983
  _: 1
5978
5984
  }, 8, ["modelValue", "onUpdate:modelValue"])
5979
5985
  ]),
5980
- e(c, {
5986
+ e(u, {
5981
5987
  theme: "default",
5982
5988
  variant: "text",
5983
5989
  size: "small",
5984
- onClick: (R) => q(J),
5985
- disabled: t.value.length === 1
5990
+ onClick: (J) => P(S),
5991
+ disabled: n.value.length === 1
5986
5992
  }, {
5987
- icon: l(() => [
5988
- e(F, { name: "close" })
5993
+ icon: a(() => [
5994
+ e(g, { name: "close" })
5989
5995
  ]),
5990
5996
  _: 1
5991
5997
  }, 8, ["onClick", "disabled"])
5992
5998
  ]),
5993
- s("div", Qe, [
5994
- (f(!0), T(X, null, ne(y.conditions, (R, W) => (f(), T("div", {
5995
- key: W,
5999
+ o("div", aa, [
6000
+ (b(!0), A(I, null, te(m.conditions, (J, G) => (b(), A("div", {
6001
+ key: G,
5996
6002
  class: "filter-combination"
5997
6003
  }, [
5998
- e(ye, {
5999
- "field-options": o.fieldOptions,
6000
- "filter-condition": y.conditions[W],
6001
- index: W,
6004
+ e(Ue, {
6005
+ "field-options": s.fieldOptions,
6006
+ "filter-condition": m.conditions[G],
6007
+ index: G,
6002
6008
  "select-options": [],
6003
- size: o.size
6009
+ size: s.size
6004
6010
  }, null, 8, ["field-options", "filter-condition", "index", "size"]),
6005
- e(c, {
6011
+ e(u, {
6006
6012
  theme: "default",
6007
6013
  variant: "text",
6008
6014
  size: "small",
6009
- onClick: (le) => H(J, W),
6010
- disabled: y.conditions.length === 1
6015
+ onClick: (le) => K(S, G),
6016
+ disabled: m.conditions.length === 1
6011
6017
  }, {
6012
- icon: l(() => [
6013
- e(F, { name: "minus" })
6018
+ icon: a(() => [
6019
+ e(g, { name: "minus" })
6014
6020
  ]),
6015
6021
  _: 1
6016
6022
  }, 8, ["onClick", "disabled"])
6017
6023
  ]))), 128)),
6018
- s("div", Xe, [
6019
- e(c, {
6024
+ o("div", la, [
6025
+ e(u, {
6020
6026
  theme: "default",
6021
6027
  size: "small",
6022
- onClick: (R) => ee(J)
6028
+ onClick: (J) => T(S)
6023
6029
  }, {
6024
- icon: l(() => [
6025
- e(F, { name: "add" })
6030
+ icon: a(() => [
6031
+ e(g, { name: "add" })
6026
6032
  ]),
6027
- default: l(() => [
6028
- p[6] || (p[6] = $(" 添加条件 ", -1))
6033
+ default: a(() => [
6034
+ _[6] || (_[6] = V(" 添加条件 ", -1))
6029
6035
  ]),
6030
6036
  _: 1
6031
6037
  }, 8, ["onClick"])
6032
6038
  ])
6033
6039
  ])
6034
6040
  ]))), 128)),
6035
- s("div", {
6041
+ o("div", {
6036
6042
  class: "add-filter-card",
6037
6043
  onClick: i
6038
6044
  }, [
6039
- s("div", Ze, [
6040
- e(F, { name: "add" }),
6041
- p[7] || (p[7] = s("span", null, "增加筛选卡片", -1))
6045
+ o("div", ta, [
6046
+ e(g, { name: "add" }),
6047
+ _[7] || (_[7] = o("span", null, "增加筛选卡片", -1))
6042
6048
  ])
6043
6049
  ])
6044
6050
  ])
@@ -6047,25 +6053,25 @@ const Ae = [
6047
6053
  ])
6048
6054
  ])
6049
6055
  ]),
6050
- footer: l(() => [
6051
- s("div", Ie, [
6052
- p[10] || (p[10] = s("div", { class: "filter-dialog-footer2" }, null, -1)),
6053
- s("div", ea, [
6054
- e(c, {
6056
+ footer: a(() => [
6057
+ o("div", na, [
6058
+ _[10] || (_[10] = o("div", { class: "filter-dialog-footer2" }, null, -1)),
6059
+ o("div", oa, [
6060
+ e(u, {
6055
6061
  theme: "default",
6056
- onClick: Y
6062
+ onClick: H
6057
6063
  }, {
6058
- default: l(() => [...p[8] || (p[8] = [
6059
- $("取消", -1)
6064
+ default: a(() => [..._[8] || (_[8] = [
6065
+ V("取消", -1)
6060
6066
  ])]),
6061
6067
  _: 1
6062
6068
  }),
6063
- e(c, {
6069
+ e(u, {
6064
6070
  theme: "primary",
6065
6071
  onClick: N
6066
6072
  }, {
6067
- default: l(() => [...p[9] || (p[9] = [
6068
- $("确定", -1)
6073
+ default: a(() => [..._[9] || (_[9] = [
6074
+ V("确定", -1)
6069
6075
  ])]),
6070
6076
  _: 1
6071
6077
  })
@@ -6076,7 +6082,7 @@ const Ae = [
6076
6082
  }, 8, ["visible"]);
6077
6083
  };
6078
6084
  }
6079
- }, Ce = /* @__PURE__ */ me(aa, [["__scopeId", "data-v-92f16808"]]), na = { class: "save-plan-content" }, la = {
6085
+ }, Ee = /* @__PURE__ */ ue(ia, [["__scopeId", "data-v-92f16808"]]), sa = { class: "save-plan-content" }, ra = {
6080
6086
  __name: "SavePlanDialog",
6081
6087
  props: {
6082
6088
  visible: {
@@ -6122,125 +6128,125 @@ const Ae = [
6122
6128
  }
6123
6129
  },
6124
6130
  emits: ["update:visible", "confirm", "close", "load-users", "search", "dept-click"],
6125
- setup(o, { emit: I }) {
6126
- const r = o, u = I, t = w({
6131
+ setup(s, { emit: ae }) {
6132
+ const d = s, v = ae, n = z({
6127
6133
  planName: "",
6128
6134
  shareMode: "none",
6129
6135
  shareType: "specific",
6130
6136
  selectedUsers: []
6131
- }), D = w([]), Q = w([]), i = ve(() => r.isEditing && r.originalShareMode === "copy");
6132
- Z(() => r.visible, (C) => {
6133
- C ? r.isEditing && r.planName && (t.value.planName = r.planName, t.value.shareMode = r.originalShareMode || "none", t.value.shareType = r.originalShareType || "specific", r.originalSelectedUsers && r.originalSelectedUsers.length > 0 && (t.value.selectedUsers = [...r.originalSelectedUsers])) : ee();
6134
- }), Z(() => r.deptMembersDataProp, (C) => {
6135
- C && (Q.value = C);
6137
+ }), q = z([]), Z = z([]), i = re(() => d.isEditing && d.originalShareMode === "copy");
6138
+ ee(() => d.visible, (k) => {
6139
+ k ? d.isEditing && d.planName && (n.value.planName = d.planName, n.value.shareMode = d.originalShareMode || "none", n.value.shareType = d.originalShareType || "specific", d.originalSelectedUsers && d.originalSelectedUsers.length > 0 && (n.value.selectedUsers = [...d.originalSelectedUsers])) : T();
6140
+ }), ee(() => d.deptMembersDataProp, (k) => {
6141
+ k && (Z.value = k);
6136
6142
  });
6137
- const ee = () => {
6138
- t.value = {
6143
+ const T = () => {
6144
+ n.value = {
6139
6145
  planName: "",
6140
6146
  shareMode: "none",
6141
6147
  shareType: "specific",
6142
6148
  selectedUsers: []
6143
- }, D.value = [], Q.value = [];
6144
- }, H = (C) => {
6145
- console.log("选中人员:", C), C.map((F) => ({
6146
- id: F.id,
6147
- name: F.displayName || F.name,
6149
+ }, q.value = [], Z.value = [];
6150
+ }, K = (k) => {
6151
+ console.log("选中人员:", k), k.map((g) => ({
6152
+ id: g.id,
6153
+ name: g.displayName || g.name,
6148
6154
  avatar: "",
6149
- department: F.department,
6150
- role: F.position,
6155
+ department: g.department,
6156
+ role: g.position,
6151
6157
  email: "",
6152
- mobile: F.phone || "",
6158
+ mobile: g.phone || "",
6153
6159
  employeeId: "",
6154
6160
  signature: "",
6155
6161
  tags: [],
6156
- isUser: F.isUser === !0
6157
- })).forEach((F) => {
6158
- D.value.find((m) => m.id === F.id) || D.value.push(F);
6159
- }), t.value.selectedUsers = D.value.map((F) => F.id);
6160
- }, q = (C) => {
6161
- u("load-users", C);
6162
- }, N = (C) => {
6163
- u("search", C);
6164
- }, Y = (C) => {
6165
- u("dept-click", C);
6166
- }, z = () => {
6167
- if (!t.value.planName.trim()) {
6168
- se.warning("请输入方案名称");
6162
+ isUser: g.isUser === !0
6163
+ })).forEach((g) => {
6164
+ q.value.find((p) => p.id === g.id) || q.value.push(g);
6165
+ }), n.value.selectedUsers = q.value.map((g) => g.id);
6166
+ }, P = (k) => {
6167
+ v("load-users", k);
6168
+ }, N = (k) => {
6169
+ v("search", k);
6170
+ }, H = (k) => {
6171
+ v("dept-click", k);
6172
+ }, $ = () => {
6173
+ if (!n.value.planName.trim()) {
6174
+ de.warning("请输入方案名称");
6169
6175
  return;
6170
6176
  }
6171
- if ((t.value.shareMode === "share" || t.value.shareMode === "copy") && t.value.shareType === "specific" && t.value.selectedUsers.length === 0) {
6172
- se.warning("请选择要共享的用户");
6177
+ if ((n.value.shareMode === "share" || n.value.shareMode === "copy") && n.value.shareType === "specific" && n.value.selectedUsers.length === 0) {
6178
+ de.warning("请选择要共享的用户");
6173
6179
  return;
6174
6180
  }
6175
- u("confirm", {
6176
- planName: t.value.planName,
6177
- shareMode: t.value.shareMode,
6178
- shareType: t.value.shareType,
6179
- selectedUsers: t.value.selectedUsers
6180
- }), u("update:visible", !1);
6181
- }, p = () => {
6182
- u("close"), u("update:visible", !1);
6181
+ v("confirm", {
6182
+ planName: n.value.planName,
6183
+ shareMode: n.value.shareMode,
6184
+ shareType: n.value.shareType,
6185
+ selectedUsers: n.value.selectedUsers
6186
+ }), v("update:visible", !1);
6187
+ }, _ = () => {
6188
+ v("close"), v("update:visible", !1);
6183
6189
  };
6184
- return (C, k) => {
6185
- const F = g("t-input"), c = g("t-form-item"), m = g("t-radio"), y = g("t-tooltip"), J = g("t-radio-group"), R = g("t-form"), W = g("t-button"), le = g("t-dialog");
6186
- return f(), L(le, {
6187
- header: o.isEditing ? "编辑筛选方案" : "保存筛选方案",
6188
- visible: o.visible,
6189
- "onUpdate:visible": k[3] || (k[3] = (K) => C.$emit("update:visible", K)),
6190
+ return (k, O) => {
6191
+ const g = y("t-input"), u = y("t-form-item"), p = y("t-radio"), m = y("t-tooltip"), S = y("t-radio-group"), J = y("t-form"), G = y("t-button"), le = y("t-dialog");
6192
+ return b(), Y(le, {
6193
+ header: s.isEditing ? "编辑筛选方案" : "保存筛选方案",
6194
+ visible: s.visible,
6195
+ "onUpdate:visible": O[3] || (O[3] = (X) => k.$emit("update:visible", X)),
6190
6196
  width: "600px",
6191
6197
  footer: !0,
6192
- onConfirm: z,
6193
- onClose: p
6198
+ onConfirm: $,
6199
+ onClose: _
6194
6200
  }, {
6195
- body: l(() => [
6196
- s("div", na, [
6197
- e(R, {
6198
- data: t.value,
6201
+ body: a(() => [
6202
+ o("div", sa, [
6203
+ e(J, {
6204
+ data: n.value,
6199
6205
  "label-align": "left",
6200
6206
  "label-width": "100px"
6201
6207
  }, {
6202
- default: l(() => [
6203
- e(c, {
6208
+ default: a(() => [
6209
+ e(u, {
6204
6210
  label: "方案名称",
6205
6211
  required: ""
6206
6212
  }, {
6207
- default: l(() => [
6208
- e(F, {
6209
- modelValue: t.value.planName,
6210
- "onUpdate:modelValue": k[0] || (k[0] = (K) => t.value.planName = K),
6213
+ default: a(() => [
6214
+ e(g, {
6215
+ modelValue: n.value.planName,
6216
+ "onUpdate:modelValue": O[0] || (O[0] = (X) => n.value.planName = X),
6211
6217
  placeholder: "请输入方案名称"
6212
6218
  }, null, 8, ["modelValue"])
6213
6219
  ]),
6214
6220
  _: 1
6215
6221
  }),
6216
- e(c, { label: "共享设置" }, {
6217
- default: l(() => [
6218
- e(J, {
6219
- modelValue: t.value.shareMode,
6220
- "onUpdate:modelValue": k[1] || (k[1] = (K) => t.value.shareMode = K),
6222
+ e(u, { label: "共享设置" }, {
6223
+ default: a(() => [
6224
+ e(S, {
6225
+ modelValue: n.value.shareMode,
6226
+ "onUpdate:modelValue": O[1] || (O[1] = (X) => n.value.shareMode = X),
6221
6227
  disabled: i.value
6222
6228
  }, {
6223
- default: l(() => [
6224
- e(m, { value: "none" }, {
6225
- default: l(() => [...k[4] || (k[4] = [
6226
- $("不共享", -1)
6229
+ default: a(() => [
6230
+ e(p, { value: "none" }, {
6231
+ default: a(() => [...O[4] || (O[4] = [
6232
+ V("不共享", -1)
6227
6233
  ])]),
6228
6234
  _: 1
6229
6235
  }),
6230
- e(m, { value: "share" }, {
6231
- default: l(() => [...k[5] || (k[5] = [
6232
- $("共享给其他人", -1)
6236
+ e(p, { value: "share" }, {
6237
+ default: a(() => [...O[5] || (O[5] = [
6238
+ V("共享给其他人", -1)
6233
6239
  ])]),
6234
6240
  _: 1
6235
6241
  }),
6236
- e(y, {
6242
+ e(m, {
6237
6243
  content: "复制方案只支持复制一次,建议共享方案",
6238
6244
  placement: "top"
6239
6245
  }, {
6240
- default: l(() => [
6241
- e(m, { value: "copy" }, {
6242
- default: l(() => [...k[6] || (k[6] = [
6243
- $("复制给其他人", -1)
6246
+ default: a(() => [
6247
+ e(p, { value: "copy" }, {
6248
+ default: a(() => [...O[6] || (O[6] = [
6249
+ V("复制给其他人", -1)
6244
6250
  ])]),
6245
6251
  _: 1
6246
6252
  })
@@ -6253,25 +6259,25 @@ const Ae = [
6253
6259
  ]),
6254
6260
  _: 1
6255
6261
  }),
6256
- t.value.shareMode === "share" ? (f(), L(c, {
6262
+ n.value.shareMode === "share" ? (b(), Y(u, {
6257
6263
  key: 0,
6258
6264
  label: "共享范围"
6259
6265
  }, {
6260
- default: l(() => [
6261
- e(J, {
6262
- modelValue: t.value.shareType,
6263
- "onUpdate:modelValue": k[2] || (k[2] = (K) => t.value.shareType = K)
6266
+ default: a(() => [
6267
+ e(S, {
6268
+ modelValue: n.value.shareType,
6269
+ "onUpdate:modelValue": O[2] || (O[2] = (X) => n.value.shareType = X)
6264
6270
  }, {
6265
- default: l(() => [
6266
- e(m, { value: "specific" }, {
6267
- default: l(() => [...k[7] || (k[7] = [
6268
- $("指定用户", -1)
6271
+ default: a(() => [
6272
+ e(p, { value: "specific" }, {
6273
+ default: a(() => [...O[7] || (O[7] = [
6274
+ V("指定用户", -1)
6269
6275
  ])]),
6270
6276
  _: 1
6271
6277
  }),
6272
- e(m, { value: "all" }, {
6273
- default: l(() => [...k[8] || (k[8] = [
6274
- $("所有用户", -1)
6278
+ e(p, { value: "all" }, {
6279
+ default: a(() => [...O[8] || (O[8] = [
6280
+ V("所有用户", -1)
6275
6281
  ])]),
6276
6282
  _: 1
6277
6283
  })
@@ -6281,23 +6287,23 @@ const Ae = [
6281
6287
  ]),
6282
6288
  _: 1
6283
6289
  })) : ie("", !0),
6284
- t.value.shareMode === "share" && t.value.shareType === "specific" || t.value.shareMode === "copy" ? (f(), L(c, {
6290
+ n.value.shareMode === "share" && n.value.shareType === "specific" || n.value.shareMode === "copy" ? (b(), Y(u, {
6285
6291
  key: 1,
6286
6292
  label: "共享人员"
6287
6293
  }, {
6288
- default: l(() => [
6289
- e(Pe(Ne), {
6290
- users: D.value,
6294
+ default: a(() => [
6295
+ e(Me(Je), {
6296
+ users: q.value,
6291
6297
  "avatar-size": 32,
6292
6298
  "max-display": 10,
6293
6299
  edit: !0,
6294
- "person-tabs": o.tabs,
6295
- "person-organizations": o.organizations,
6296
- "dept-members-data": Q.value,
6297
- onPersonSelect: H,
6298
- onLoadUsers: q,
6300
+ "person-tabs": s.tabs,
6301
+ "person-organizations": s.organizations,
6302
+ "dept-members-data": Z.value,
6303
+ onPersonSelect: K,
6304
+ onLoadUsers: P,
6299
6305
  onSearch: N,
6300
- onDeptClick: Y
6306
+ onDeptClick: H
6301
6307
  }, null, 8, ["users", "person-tabs", "person-organizations", "dept-members-data"])
6302
6308
  ]),
6303
6309
  _: 1
@@ -6307,22 +6313,22 @@ const Ae = [
6307
6313
  }, 8, ["data"])
6308
6314
  ])
6309
6315
  ]),
6310
- footer: l(() => [
6311
- e(W, {
6316
+ footer: a(() => [
6317
+ e(G, {
6312
6318
  theme: "default",
6313
- onClick: p
6319
+ onClick: _
6314
6320
  }, {
6315
- default: l(() => [...k[9] || (k[9] = [
6316
- $("取消", -1)
6321
+ default: a(() => [...O[9] || (O[9] = [
6322
+ V("取消", -1)
6317
6323
  ])]),
6318
6324
  _: 1
6319
6325
  }),
6320
- e(W, {
6326
+ e(G, {
6321
6327
  theme: "primary",
6322
- onClick: z
6328
+ onClick: $
6323
6329
  }, {
6324
- default: l(() => [...k[10] || (k[10] = [
6325
- $("确定", -1)
6330
+ default: a(() => [...O[10] || (O[10] = [
6331
+ V("确定", -1)
6326
6332
  ])]),
6327
6333
  _: 1
6328
6334
  })
@@ -6331,16 +6337,16 @@ const Ae = [
6331
6337
  }, 8, ["header", "visible"]);
6332
6338
  };
6333
6339
  }
6334
- }, ta = /* @__PURE__ */ me(la, [["__scopeId", "data-v-7fd313f0"]]), ia = { class: "filter-dialog-content" }, oa = { class: "leader-line-container" }, ra = {
6340
+ }, da = /* @__PURE__ */ ue(ra, [["__scopeId", "data-v-7fd313f0"]]), ua = { class: "filter-dialog-content" }, ma = { class: "leader-line-container" }, ca = {
6335
6341
  class: "filter-scroll-wrapper",
6336
6342
  id: "filter-scroll-wrapper"
6337
- }, sa = {
6343
+ }, va = {
6338
6344
  class: "filter-dialog-middle",
6339
6345
  id: "filter-dialog-middle"
6340
- }, da = { class: "filter-tab-content" }, ma = {
6346
+ }, pa = { class: "filter-tab-content" }, fa = {
6341
6347
  key: 0,
6342
6348
  class: "filter-dialog-left"
6343
- }, ua = { class: "connectors-container" }, ca = { class: "filter-cards" }, va = { class: "filter-card-header" }, fa = { class: "filter-card-header-left" }, pa = { class: "filter-card-title" }, ya = { class: "filter-card-content" }, ha = { class: "filter-card-actions" }, ba = { class: "add-card-content" }, ga = { class: "column-settings-panel" }, Ca = { class: "column-settings-header" }, _a = { class: "column-list" }, ka = ["onDragstart", "onDragover", "onDrop"], za = { class: "column-name" }, Oa = { class: "column-show" }, wa = { class: "column-width" }, Sa = { class: "column-sort-buttons" }, Va = { class: "filter-dialog-right" }, xa = { class: "filter-plan-list" }, Ua = ["onClick"], $a = { class: "plan-name" }, Fa = { class: "filter-dialog-footer-container" }, Da = { class: "filter-dialog-footer-left" }, qa = { class: "filter-dialog-footer-right" }, Pa = {
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" }, _a = { class: "filter-card-content" }, ka = { 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 = {
6344
6350
  __name: "cd-filter",
6345
6351
  props: {
6346
6352
  visible: {
@@ -6412,95 +6418,97 @@ const Ae = [
6412
6418
  "dept-click",
6413
6419
  "column-change"
6414
6420
  ],
6415
- setup(o, { emit: I }) {
6416
- const r = o, u = I, t = w(JSON.parse(JSON.stringify(r.filterCards))), D = w(r.topOp), Q = w(null), i = w(!1), ee = w([]), H = w("filter"), q = w(!1), N = w(""), Y = w("none"), z = w("specific"), p = w([]), C = w(null);
6417
- let k = 100;
6418
- Z(() => r.filterCards, (a) => {
6419
- t.value = JSON.parse(JSON.stringify(a));
6420
- }, { deep: !0 }), Z(() => r.topOp, (a) => {
6421
- D.value = a;
6421
+ setup(s, { emit: ae }) {
6422
+ const d = s, v = ae, n = z(JSON.parse(JSON.stringify(d.filterCards))), q = z(d.topOp), Z = z(null), i = z(!1), T = z([]), K = z("filter"), P = z(!1), N = z(""), H = z("none"), $ = z("specific"), _ = z([]), k = z(null);
6423
+ let O = 100;
6424
+ ee(() => d.filterCards, (l) => {
6425
+ n.value = JSON.parse(JSON.stringify(l));
6426
+ }, { deep: !0 }), ee(() => d.topOp, (l) => {
6427
+ q.value = l;
6422
6428
  });
6423
- const F = () => {
6424
- t.value.push({
6425
- id: k++,
6429
+ const g = () => {
6430
+ n.value.push({
6431
+ id: O++,
6426
6432
  connector: "and",
6427
6433
  conditions: [{ field: "", operator: "eq", value: "" }]
6428
6434
  });
6429
- }, c = (a) => {
6430
- t.value.length > 1 ? t.value.splice(a, 1) : se.warning("至少需要保留一个筛选卡片");
6431
- }, m = (a) => {
6432
- a >= 0 && a < t.value.length && t.value[a].conditions.push({
6435
+ }, u = (l) => {
6436
+ n.value.length > 1 ? n.value.splice(l, 1) : de.warning("至少需要保留一个筛选卡片");
6437
+ }, p = (l) => {
6438
+ l >= 0 && l < n.value.length && n.value[l].conditions.push({
6433
6439
  field: "",
6434
6440
  operator: "eq",
6435
6441
  value: ""
6436
6442
  });
6437
- }, y = (a, n) => {
6438
- if (a >= 0 && a < t.value.length) {
6439
- const _ = t.value[a];
6440
- _.conditions.length > 1 && n >= 0 && n < _.conditions.length ? _.conditions.splice(n, 1) : _.conditions.length <= 1 && se.warning("每个卡片至少需要一个筛选条件");
6443
+ }, m = (l, t) => {
6444
+ if (l >= 0 && l < n.value.length) {
6445
+ const w = n.value[l];
6446
+ w.conditions.length > 1 && t >= 0 && t < w.conditions.length ? w.conditions.splice(t, 1) : w.conditions.length <= 1 && de.warning("每个卡片至少需要一个筛选条件");
6441
6447
  }
6442
- }, J = (a) => a.map((n) => {
6443
- const _ = n.conditions.filter((x) => x.field && x.field.trim() !== "").map((x) => {
6444
- let b = "";
6445
- return x.value !== null && x.value !== void 0 && (Array.isArray(x.value) ? b = x.value.join("/") : b = String(x.value)), {
6446
- field: x.field.trim(),
6447
- operator: x.operator || "eq",
6448
- value: b
6448
+ }, S = (l) => l.map((t) => {
6449
+ const w = t.conditions.filter((E) => E.field && E.field.trim() !== "").map((E) => {
6450
+ let C = "";
6451
+ return E.value !== null && E.value !== void 0 && (Array.isArray(E.value) ? C = E.value.join("/") : C = String(E.value)), {
6452
+ field: E.field.trim(),
6453
+ operator: E.operator || "eq",
6454
+ value: C
6449
6455
  };
6450
6456
  });
6451
6457
  return {
6452
- ...n,
6453
- connector: n.connector || "and",
6454
- conditions: _.length > 0 ? _ : [{ field: "", operator: "eq", value: "" }]
6458
+ ...t,
6459
+ connector: t.connector || "and",
6460
+ conditions: w.length > 0 ? w : [{ field: "", operator: "eq", value: "" }]
6455
6461
  };
6456
- }).filter((n) => n.conditions.length > 0 && n.conditions[0].field !== ""), R = (a) => {
6457
- if (a.value !== "empty" && (Q.value = a, u("plan-click", a), a.precepts && (t.value = JSON.parse(JSON.stringify(a.precepts))), a.sqlConnectType && (D.value = a.sqlConnectType), a.columns && a.columns.length > 0)) {
6458
- ae.value = {}, B.value = a.columns.filter((V) => V.show !== !1).map((V) => V.value), a.columns.forEach((V) => {
6459
- V.width && (ae.value[V.value] = parseInt(V.width));
6462
+ }).filter((t) => t.conditions.length > 0 && t.conditions[0].field !== ""), J = (l) => {
6463
+ if (l.value !== "empty" && (Z.value = l, v("plan-click", l), l.precepts && (n.value = JSON.parse(JSON.stringify(l.precepts))), l.sqlConnectType && (q.value = l.sqlConnectType), l.columns && l.columns.length > 0)) {
6464
+ c.value = {}, r.value = {}, W.value = l.columns.filter((U) => U.show !== !1).map((U) => U.value), l.columns.forEach((U) => {
6465
+ U.width && (c.value[U.value] = parseInt(U.width)), U.freeze ? r.value[U.value] = U.freeze : r.value[U.value] = "none";
6460
6466
  });
6461
- const n = a.columns.map((V) => V.value), _ = n.map(
6462
- (V) => r.fieldOptions.find((ue) => ue.value === V)
6463
- ).filter(Boolean), x = r.fieldOptions.filter(
6464
- (V) => !n.includes(V.value)
6467
+ const t = l.columns.map((U) => U.value), w = t.map(
6468
+ (U) => d.fieldOptions.find((ve) => ve.value === U)
6469
+ ).filter(Boolean), E = d.fieldOptions.filter(
6470
+ (U) => !t.includes(U.value)
6465
6471
  );
6466
- U.value = [..._, ...x], te.value = B.value.length === r.fieldOptions.length;
6467
- const b = a.columns.filter((V) => V.show !== !1);
6468
- u("column-change", b);
6472
+ f.value = [...w, ...E], se.value = W.value.length === d.fieldOptions.length;
6473
+ const C = l.columns.filter((U) => U.show !== !1);
6474
+ v("column-change", C);
6469
6475
  }
6470
- }, W = () => {
6471
- q.value = !1, C.value = null, N.value = "", Y.value = "none", z.value = "specific", p.value = [], i.value = !0;
6472
- }, le = (a) => {
6473
- const n = U.value.map((_) => {
6474
- const x = ae.value[_.value];
6476
+ }, G = () => {
6477
+ P.value = !1, k.value = null, N.value = "", H.value = "none", $.value = "specific", _.value = [], i.value = !0;
6478
+ }, le = (l) => {
6479
+ const t = f.value.map((w) => {
6480
+ const E = c.value[w.value], C = r.value[w.value] || "none";
6475
6481
  return {
6476
- value: _.value,
6477
- show: B.value.includes(_.value),
6482
+ value: w.value,
6483
+ show: W.value.includes(w.value),
6478
6484
  // 是否显示
6479
- width: x ? `${x}px` : "120px"
6485
+ width: E ? `${E}px` : "120px",
6486
+ freeze: C
6487
+ // 冻结状态
6480
6488
  };
6481
6489
  });
6482
- q.value && C.value ? u("update-plan", {
6483
- ...a,
6484
- plan: C.value,
6485
- filterCards: t.value,
6486
- topOp: D.value,
6487
- columns: n
6488
- }) : u("save-plan", {
6489
- ...a,
6490
- filterCards: t.value,
6491
- topOp: D.value,
6492
- columns: n
6493
- }), q.value = !1, C.value = null;
6494
- }, K = (a) => {
6495
- q.value = !0, C.value = a, N.value = a.content || "", Y.value = a.shareMode || "none", z.value = a.shareType || "specific", p.value = a.selectedUsers || [], i.value = !0;
6496
- }, S = (a) => {
6497
- u("copy-plan", a);
6498
- }, oe = (a) => {
6499
- u("delete-plan", a);
6500
- }, h = (a) => {
6501
- u("set-default-plan", a);
6502
- }, d = () => {
6503
- Q.value = null, t.value = [
6490
+ P.value && k.value ? v("update-plan", {
6491
+ ...l,
6492
+ plan: k.value,
6493
+ filterCards: n.value,
6494
+ topOp: q.value,
6495
+ columns: t
6496
+ }) : v("save-plan", {
6497
+ ...l,
6498
+ filterCards: n.value,
6499
+ topOp: q.value,
6500
+ columns: t
6501
+ }), P.value = !1, k.value = null;
6502
+ }, X = (l) => {
6503
+ P.value = !0, k.value = l, N.value = l.content || "", H.value = l.shareMode || "none", $.value = l.shareType || "specific", _.value = l.selectedUsers || [], i.value = !0;
6504
+ }, oe = (l) => {
6505
+ v("copy-plan", l);
6506
+ }, F = (l) => {
6507
+ v("delete-plan", l);
6508
+ }, B = (l) => {
6509
+ v("set-default-plan", l);
6510
+ }, ne = () => {
6511
+ Z.value = null, n.value = [
6504
6512
  {
6505
6513
  id: 1,
6506
6514
  connector: "and",
@@ -6509,147 +6517,152 @@ const Ae = [
6509
6517
  { field: "", operator: "eq", value: "" }
6510
6518
  ]
6511
6519
  }
6512
- ], D.value = "and", u("reset");
6513
- }, j = () => {
6514
- if (H.value === "filter") {
6515
- const a = J(t.value);
6516
- u("confirm", {
6517
- filterCards: a,
6518
- type1: D.value
6520
+ ], q.value = "and", v("reset");
6521
+ }, L = () => {
6522
+ if (K.value === "filter") {
6523
+ const l = S(n.value);
6524
+ v("confirm", {
6525
+ filterCards: l,
6526
+ type1: q.value
6519
6527
  });
6520
- } else H.value === "column" && Ue();
6521
- }, P = () => {
6522
- u("update:visible", !1);
6523
- }, E = (a) => {
6524
- u("load-users", a);
6525
- }, A = (a) => {
6526
- u("search", a);
6527
- }, fe = (a) => {
6528
- u("dept-click", { dept: a, callback: (_) => {
6529
- ee.value = _;
6528
+ } else K.value === "column" && D();
6529
+ }, ce = () => {
6530
+ v("update:visible", !1);
6531
+ }, fe = (l) => {
6532
+ v("load-users", l);
6533
+ }, ye = (l) => {
6534
+ v("search", l);
6535
+ }, be = (l) => {
6536
+ v("dept-click", { dept: l, callback: (w) => {
6537
+ T.value = w;
6530
6538
  } });
6531
- }, B = w([]), te = w(!1), ae = w({}), U = w([]), O = w(null), re = w(null);
6532
- Z(() => r.visibleColumns, (a) => {
6533
- if (ae.value = {}, a && a.length > 0) {
6534
- if (typeof a[0] == "object") {
6535
- B.value = a.filter((b) => b.show !== !1).map((b) => b.value), a.forEach((b) => {
6536
- b.width && (ae.value[b.value] = parseInt(b.width));
6539
+ }, W = z([]), se = z(!1), c = z({}), r = z({}), f = z([]), x = z(null), j = z(null);
6540
+ ee(() => d.visibleColumns, (l) => {
6541
+ if (c.value = {}, r.value = {}, l && l.length > 0) {
6542
+ if (typeof l[0] == "object") {
6543
+ W.value = l.filter((C) => C.show !== !1).map((C) => C.value), l.forEach((C) => {
6544
+ C.width && (c.value[C.value] = parseInt(C.width)), C.freeze ? r.value[C.value] = C.freeze : r.value[C.value] = "none";
6537
6545
  });
6538
- const n = a.map((b) => b.value), _ = n.map(
6539
- (b) => r.fieldOptions.find((V) => V.value === b)
6540
- ).filter(Boolean), x = r.fieldOptions.filter(
6541
- (b) => !n.includes(b.value)
6546
+ const t = l.map((C) => C.value), w = t.map(
6547
+ (C) => d.fieldOptions.find((U) => U.value === C)
6548
+ ).filter(Boolean), E = d.fieldOptions.filter(
6549
+ (C) => !t.includes(C.value)
6542
6550
  );
6543
- U.value = [..._, ...x];
6551
+ f.value = [...w, ...E];
6544
6552
  } else {
6545
- B.value = [...a];
6546
- const n = a.map(
6547
- (x) => r.fieldOptions.find((b) => b.value === x)
6548
- ).filter(Boolean), _ = r.fieldOptions.filter(
6549
- (x) => !a.includes(x.value)
6553
+ W.value = [...l];
6554
+ const t = l.map(
6555
+ (E) => d.fieldOptions.find((C) => C.value === E)
6556
+ ).filter(Boolean), w = d.fieldOptions.filter(
6557
+ (E) => !l.includes(E.value)
6550
6558
  );
6551
- U.value = [...n, ..._];
6559
+ f.value = [...t, ...w];
6552
6560
  }
6553
- te.value = B.value.length === r.fieldOptions.length;
6554
- } else r.fieldOptions.length > 0 && (B.value = r.fieldOptions.map((n) => n.value), U.value = [...r.fieldOptions], te.value = !0);
6555
- }, { immediate: !0 }), Z(() => r.fieldOptions, (a) => {
6556
- U.value.length || (U.value = [...a]);
6561
+ se.value = W.value.length === d.fieldOptions.length;
6562
+ } else d.fieldOptions.length > 0 && (W.value = d.fieldOptions.map((t) => t.value), f.value = [...d.fieldOptions], se.value = !0);
6563
+ d.fieldOptions.forEach((t) => {
6564
+ r.value[t.value] || (r.value[t.value] = "none");
6565
+ });
6566
+ }, { immediate: !0 }), ee(() => d.fieldOptions, (l) => {
6567
+ f.value.length || (f.value = [...l]);
6557
6568
  }, { immediate: !0 });
6558
- const _e = (a, n) => {
6559
- if (n)
6560
- B.value.includes(a) || B.value.push(a);
6569
+ const R = (l, t) => {
6570
+ if (t)
6571
+ W.value.includes(l) || W.value.push(l);
6561
6572
  else {
6562
- const _ = B.value.indexOf(a);
6563
- _ > -1 && B.value.splice(_, 1);
6573
+ const w = W.value.indexOf(l);
6574
+ w > -1 && W.value.splice(w, 1);
6564
6575
  }
6565
- te.value = B.value.length === r.fieldOptions.length;
6566
- }, ke = (a) => {
6567
- a ? B.value = U.value.map((n) => n.value) : B.value = [];
6568
- }, ze = (a) => {
6569
- if (a > 0) {
6570
- const n = U.value[a];
6571
- U.value[a] = U.value[a - 1], U.value[a - 1] = n, U.value = [...U.value];
6576
+ se.value = W.value.length === d.fieldOptions.length;
6577
+ }, ge = (l) => {
6578
+ l ? W.value = f.value.map((t) => t.value) : W.value = [];
6579
+ }, he = (l) => {
6580
+ if (l > 0) {
6581
+ const t = f.value[l];
6582
+ f.value[l] = f.value[l - 1], f.value[l - 1] = t, f.value = [...f.value];
6572
6583
  }
6573
- }, Oe = (a) => {
6574
- if (a < U.value.length - 1) {
6575
- const n = U.value[a];
6576
- U.value[a] = U.value[a + 1], U.value[a + 1] = n, U.value = [...U.value];
6584
+ }, Ce = (l) => {
6585
+ if (l < f.value.length - 1) {
6586
+ const t = f.value[l];
6587
+ f.value[l] = f.value[l + 1], f.value[l + 1] = t, f.value = [...f.value];
6577
6588
  }
6578
- }, we = (a, n) => {
6579
- O.value = a, n.dataTransfer.effectAllowed = "move", n.dataTransfer.setData("text/html", n.target.innerHTML);
6580
- }, Se = (a, n) => {
6581
- n.preventDefault(), n.dataTransfer.dropEffect = "move", re.value = a;
6582
- }, Ve = () => {
6583
- O.value = null, re.value = null;
6584
- }, xe = (a, n) => {
6585
- n.preventDefault();
6586
- const _ = O.value;
6587
- if (_ === null || _ === a)
6589
+ }, _e = (l, t) => {
6590
+ x.value = l, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/html", t.target.innerHTML);
6591
+ }, ke = (l, t) => {
6592
+ t.preventDefault(), t.dataTransfer.dropEffect = "move", j.value = l;
6593
+ }, ze = () => {
6594
+ x.value = null, j.value = null;
6595
+ }, Fe = (l, t) => {
6596
+ t.preventDefault();
6597
+ const w = x.value;
6598
+ if (w === null || w === l)
6588
6599
  return;
6589
- const x = [...U.value], b = x[_];
6590
- x.splice(_, 1), x.splice(a, 0, b), U.value = x, O.value = null, re.value = null;
6591
- }, Ue = () => {
6592
- const a = U.value.filter((n) => B.value.includes(n.value)).map((n) => {
6593
- const _ = ae.value[n.value];
6600
+ const E = [...f.value], C = E[w];
6601
+ E.splice(w, 1), E.splice(l, 0, C), f.value = E, x.value = null, j.value = null;
6602
+ }, D = () => {
6603
+ const l = f.value.filter((t) => W.value.includes(t.value)).map((t) => {
6604
+ const w = c.value[t.value], E = r.value[t.value] || "none";
6594
6605
  return {
6595
- value: n.value,
6606
+ value: t.value,
6596
6607
  show: !0,
6597
6608
  // 已通过filter筛选,都是显示的
6598
- width: _ ? `${_}px` : "120px"
6609
+ width: w ? `${w}px` : "120px",
6599
6610
  // 没有设置宽度时使用默认值120px
6611
+ freeze: E
6612
+ // 冻结状态
6600
6613
  };
6601
6614
  });
6602
- u("column-change", a);
6615
+ v("column-change", l);
6603
6616
  };
6604
- return (a, n) => {
6605
- const _ = g("t-radio-button"), x = g("t-radio-group"), b = g("t-icon"), V = g("t-button"), ue = g("t-tab-panel"), he = g("t-checkbox"), $e = g("t-input-number"), Fe = g("t-tabs"), ce = g("t-tooltip"), De = g("t-dialog");
6606
- return f(), T(X, null, [
6607
- e(De, {
6617
+ return (l, t) => {
6618
+ const w = y("t-radio-button"), E = y("t-radio-group"), C = y("t-icon"), U = y("t-button"), ve = y("t-tab-panel"), xe = y("t-checkbox"), Oe = y("t-option"), Ae = y("t-select"), Pe = y("t-input-number"), Te = y("t-tabs"), pe = y("t-tooltip"), Ne = y("t-dialog");
6619
+ return b(), A(I, null, [
6620
+ e(Ne, {
6608
6621
  header: "方案设置",
6609
6622
  placement: "center",
6610
- visible: o.visible,
6611
- "onUpdate:visible": n[4] || (n[4] = (v) => a.$emit("update:visible", v)),
6612
- width: o.width,
6623
+ visible: s.visible,
6624
+ "onUpdate:visible": t[4] || (t[4] = (h) => l.$emit("update:visible", h)),
6625
+ width: s.width,
6613
6626
  "z-index": 999,
6614
6627
  footer: !0,
6615
- onClose: P,
6628
+ onClose: ce,
6616
6629
  id: "leader-line-clip-container"
6617
6630
  }, {
6618
- body: l(() => [
6619
- s("div", ia, [
6620
- s("div", oa, [
6621
- s("div", ra, [
6622
- s("div", sa, [
6623
- e(Fe, {
6624
- modelValue: H.value,
6625
- "onUpdate:modelValue": n[2] || (n[2] = (v) => H.value = v),
6631
+ body: a(() => [
6632
+ o("div", ua, [
6633
+ o("div", ma, [
6634
+ o("div", ca, [
6635
+ o("div", va, [
6636
+ e(Te, {
6637
+ modelValue: K.value,
6638
+ "onUpdate:modelValue": t[2] || (t[2] = (h) => K.value = h),
6626
6639
  size: "medium"
6627
6640
  }, {
6628
- default: l(() => [
6629
- e(ue, {
6641
+ default: a(() => [
6642
+ e(ve, {
6630
6643
  value: "filter",
6631
6644
  label: "筛选"
6632
6645
  }, {
6633
- default: l(() => [
6634
- s("div", da, [
6635
- t.value.length > 1 ? (f(), T("div", ma, [
6636
- s("div", ua, [
6637
- e(x, {
6638
- size: o.size,
6646
+ default: a(() => [
6647
+ o("div", pa, [
6648
+ n.value.length > 1 ? (b(), A("div", fa, [
6649
+ o("div", ya, [
6650
+ e(E, {
6651
+ size: s.size,
6639
6652
  class: "connector-selector",
6640
- modelValue: D.value,
6641
- "onUpdate:modelValue": n[0] || (n[0] = (v) => D.value = v)
6653
+ modelValue: q.value,
6654
+ "onUpdate:modelValue": t[0] || (t[0] = (h) => q.value = h)
6642
6655
  }, {
6643
- default: l(() => [
6644
- e(_, { value: "and" }, {
6645
- default: l(() => [...n[6] || (n[6] = [
6646
- $("且", -1)
6656
+ default: a(() => [
6657
+ e(w, { value: "and" }, {
6658
+ default: a(() => [...t[6] || (t[6] = [
6659
+ V("且", -1)
6647
6660
  ])]),
6648
6661
  _: 1
6649
6662
  }),
6650
- e(_, { value: "or" }, {
6651
- default: l(() => [...n[7] || (n[7] = [
6652
- $("或", -1)
6663
+ e(w, { value: "or" }, {
6664
+ default: a(() => [...t[7] || (t[7] = [
6665
+ V("或", -1)
6653
6666
  ])]),
6654
6667
  _: 1
6655
6668
  })
@@ -6658,30 +6671,30 @@ const Ae = [
6658
6671
  }, 8, ["size", "modelValue"])
6659
6672
  ])
6660
6673
  ])) : ie("", !0),
6661
- s("div", ca, [
6662
- (f(!0), T(X, null, ne(t.value, (v, G) => (f(), T("div", {
6663
- key: v.id,
6674
+ o("div", ba, [
6675
+ (b(!0), A(I, null, te(n.value, (h, Q) => (b(), A("div", {
6676
+ key: h.id,
6664
6677
  class: "filter-card-item"
6665
6678
  }, [
6666
- s("div", va, [
6667
- s("div", fa, [
6668
- s("span", pa, "筛选卡片 " + de(G + 1), 1),
6669
- e(x, {
6670
- size: o.size,
6671
- modelValue: v.connector,
6672
- "onUpdate:modelValue": (M) => v.connector = M,
6679
+ o("div", ga, [
6680
+ o("div", ha, [
6681
+ o("span", Ca, "筛选卡片 " + me(Q + 1), 1),
6682
+ e(E, {
6683
+ size: s.size,
6684
+ modelValue: h.connector,
6685
+ "onUpdate:modelValue": (M) => h.connector = M,
6673
6686
  class: "connector-selector"
6674
6687
  }, {
6675
- default: l(() => [
6676
- e(_, { value: "and" }, {
6677
- default: l(() => [...n[8] || (n[8] = [
6678
- $("且", -1)
6688
+ default: a(() => [
6689
+ e(w, { value: "and" }, {
6690
+ default: a(() => [...t[8] || (t[8] = [
6691
+ V("且", -1)
6679
6692
  ])]),
6680
6693
  _: 1
6681
6694
  }),
6682
- e(_, { value: "or" }, {
6683
- default: l(() => [...n[9] || (n[9] = [
6684
- $("或", -1)
6695
+ e(w, { value: "or" }, {
6696
+ default: a(() => [...t[9] || (t[9] = [
6697
+ V("或", -1)
6685
6698
  ])]),
6686
6699
  _: 1
6687
6700
  })
@@ -6689,67 +6702,67 @@ const Ae = [
6689
6702
  _: 1
6690
6703
  }, 8, ["size", "modelValue", "onUpdate:modelValue"])
6691
6704
  ]),
6692
- e(V, {
6705
+ e(U, {
6693
6706
  theme: "default",
6694
6707
  variant: "text",
6695
- size: o.size,
6696
- onClick: (M) => c(G),
6697
- disabled: t.value.length === 1
6708
+ size: s.size,
6709
+ onClick: (M) => u(Q),
6710
+ disabled: n.value.length === 1
6698
6711
  }, {
6699
- icon: l(() => [
6700
- e(b, { name: "close" })
6712
+ icon: a(() => [
6713
+ e(C, { name: "close" })
6701
6714
  ]),
6702
6715
  _: 1
6703
6716
  }, 8, ["size", "onClick", "disabled"])
6704
6717
  ]),
6705
- s("div", ya, [
6706
- (f(!0), T(X, null, ne(v.conditions, (M, pe) => (f(), T("div", {
6707
- key: pe,
6718
+ o("div", _a, [
6719
+ (b(!0), A(I, null, te(h.conditions, (M, we) => (b(), A("div", {
6720
+ key: we,
6708
6721
  class: "filter-combination"
6709
6722
  }, [
6710
- e(ye, {
6711
- "field-options": o.fieldOptions,
6712
- "filter-condition": v.conditions[pe],
6713
- "select-options": o.selectOptions,
6714
- size: o.size
6723
+ e(Ue, {
6724
+ "field-options": s.fieldOptions,
6725
+ "filter-condition": h.conditions[we],
6726
+ "select-options": s.selectOptions,
6727
+ size: s.size
6715
6728
  }, null, 8, ["field-options", "filter-condition", "select-options", "size"]),
6716
- e(V, {
6729
+ e(U, {
6717
6730
  theme: "default",
6718
6731
  variant: "text",
6719
- size: o.size,
6720
- onClick: (Ha) => y(G, pe),
6721
- disabled: v.conditions.length === 1
6732
+ size: s.size,
6733
+ onClick: (ml) => m(Q, we),
6734
+ disabled: h.conditions.length === 1
6722
6735
  }, {
6723
- icon: l(() => [
6724
- e(b, { name: "minus" })
6736
+ icon: a(() => [
6737
+ e(C, { name: "minus" })
6725
6738
  ]),
6726
6739
  _: 1
6727
6740
  }, 8, ["size", "onClick", "disabled"])
6728
6741
  ]))), 128)),
6729
- s("div", ha, [
6730
- e(V, {
6742
+ o("div", ka, [
6743
+ e(U, {
6731
6744
  theme: "default",
6732
- size: o.size,
6733
- onClick: (M) => m(G)
6745
+ size: s.size,
6746
+ onClick: (M) => p(Q)
6734
6747
  }, {
6735
- icon: l(() => [
6736
- e(b, { name: "add" })
6748
+ icon: a(() => [
6749
+ e(C, { name: "add" })
6737
6750
  ]),
6738
- default: l(() => [
6739
- n[10] || (n[10] = $(" 添加条件 ", -1))
6751
+ default: a(() => [
6752
+ t[10] || (t[10] = V(" 添加条件 ", -1))
6740
6753
  ]),
6741
6754
  _: 1
6742
6755
  }, 8, ["size", "onClick"])
6743
6756
  ])
6744
6757
  ])
6745
6758
  ]))), 128)),
6746
- s("div", {
6759
+ o("div", {
6747
6760
  class: "add-filter-card",
6748
- onClick: F
6761
+ onClick: g
6749
6762
  }, [
6750
- s("div", ba, [
6751
- e(b, { name: "add" }),
6752
- n[11] || (n[11] = s("span", null, "增加筛选卡片", -1))
6763
+ o("div", za, [
6764
+ e(C, { name: "add" }),
6765
+ t[11] || (t[11] = o("span", null, "增加筛选卡片", -1))
6753
6766
  ])
6754
6767
  ])
6755
6768
  ])
@@ -6757,93 +6770,112 @@ const Ae = [
6757
6770
  ]),
6758
6771
  _: 1
6759
6772
  }),
6760
- e(ue, {
6773
+ e(ve, {
6761
6774
  value: "column",
6762
6775
  label: "列配置"
6763
6776
  }, {
6764
- default: l(() => [
6765
- s("div", ga, [
6766
- s("div", Ca, [
6767
- e(he, {
6768
- modelValue: te.value,
6769
- "onUpdate:modelValue": n[1] || (n[1] = (v) => te.value = v),
6770
- onChange: ke
6771
- }, {
6772
- default: l(() => [...n[12] || (n[12] = [
6773
- $("全选", -1)
6774
- ])]),
6775
- _: 1
6776
- }, 8, ["modelValue"])
6777
+ default: a(() => [
6778
+ o("div", Fa, [
6779
+ o("div", Oa, [
6780
+ t[13] || (t[13] = o("div", { class: "column-title column-title-name" }, "名称", -1)),
6781
+ o("div", wa, [
6782
+ e(xe, {
6783
+ modelValue: se.value,
6784
+ "onUpdate:modelValue": t[1] || (t[1] = (h) => se.value = h),
6785
+ onChange: ge
6786
+ }, null, 8, ["modelValue"]),
6787
+ t[12] || (t[12] = V(" 显示", -1))
6788
+ ]),
6789
+ t[14] || (t[14] = o("div", { class: "column-title column-title-width" }, "冻结列", -1)),
6790
+ t[15] || (t[15] = o("div", { class: "column-title column-title-width" }, "宽度", -1)),
6791
+ t[16] || (t[16] = o("div", { class: "column-title column-title-sort" }, "排序", -1))
6777
6792
  ]),
6778
- n[13] || (n[13] = s("div", { class: "column-title-row" }, [
6779
- s("div", { class: "column-title-name" }, "名称"),
6780
- s("div", { class: "column-title-show" }, "显示"),
6781
- s("div", { class: "column-title-width" }, "宽度"),
6782
- s("div", { class: "column-title-sort" }, "排序")
6783
- ], -1)),
6784
- s("div", _a, [
6785
- (f(!0), T(X, null, ne(U.value, (v, G) => (f(), T("div", {
6786
- key: v.value,
6787
- class: be(["column-item-row", { dragging: O.value === G }]),
6793
+ o("div", Va, [
6794
+ (b(!0), A(I, null, te(f.value, (h, Q) => (b(), A("div", {
6795
+ key: h.value,
6796
+ class: Se(["column-item-row", { dragging: x.value === Q }]),
6788
6797
  draggable: "true",
6789
- onDragstart: (M) => we(G, M),
6790
- onDragover: (M) => Se(G, M),
6791
- onDragend: Ve,
6792
- onDrop: (M) => xe(G, M)
6798
+ onDragstart: (M) => _e(Q, M),
6799
+ onDragover: (M) => ke(Q, M),
6800
+ onDragend: ze,
6801
+ onDrop: (M) => Fe(Q, M)
6793
6802
  }, [
6794
- s("div", za, [
6795
- e(b, {
6803
+ o("div", $a, [
6804
+ e(C, {
6796
6805
  name: "move",
6797
6806
  style: { cursor: "move", color: "#999", "margin-right": "8px" }
6798
6807
  }),
6799
- $(" " + de(v.label), 1)
6808
+ V(" " + me(h.label), 1)
6800
6809
  ]),
6801
- s("div", Oa, [
6802
- e(he, {
6803
- checked: B.value.includes(v.value),
6804
- onChange: (M) => _e(v.value, M)
6810
+ o("div", Ua, [
6811
+ e(xe, {
6812
+ checked: W.value.includes(h.value),
6813
+ onChange: (M) => R(h.value, M)
6805
6814
  }, null, 8, ["checked", "onChange"])
6806
6815
  ]),
6807
- s("div", wa, [
6808
- e($e, {
6809
- modelValue: ae.value[v.value],
6810
- "onUpdate:modelValue": (M) => ae.value[v.value] = M,
6816
+ o("div", xa, [
6817
+ e(Ae, {
6818
+ modelValue: r.value[h.value],
6819
+ "onUpdate:modelValue": (M) => r.value[h.value] = M,
6820
+ size: "small",
6821
+ style: { width: "120px" }
6822
+ }, {
6823
+ default: a(() => [
6824
+ e(Oe, {
6825
+ value: "none",
6826
+ label: "不冻结"
6827
+ }),
6828
+ e(Oe, {
6829
+ value: "left",
6830
+ label: "左侧冻结"
6831
+ }),
6832
+ e(Oe, {
6833
+ value: "right",
6834
+ label: "右侧冻结"
6835
+ })
6836
+ ]),
6837
+ _: 1
6838
+ }, 8, ["modelValue", "onUpdate:modelValue"])
6839
+ ]),
6840
+ o("div", Da, [
6841
+ e(Pe, {
6842
+ modelValue: c.value[h.value],
6843
+ "onUpdate:modelValue": (M) => c.value[h.value] = M,
6811
6844
  min: 50,
6812
6845
  max: 500,
6813
6846
  step: 10,
6814
6847
  size: "small",
6815
6848
  placeholder: "",
6816
- style: { width: "130px" },
6817
- suffix: "px"
6849
+ style: { width: "100px" }
6818
6850
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
6819
6851
  ]),
6820
- s("div", Sa, [
6821
- e(V, {
6852
+ o("div", Ea, [
6853
+ e(U, {
6822
6854
  theme: "default",
6823
6855
  variant: "text",
6824
6856
  size: "small",
6825
- onClick: (M) => ze(G),
6826
- disabled: G === 0
6857
+ onClick: (M) => he(Q),
6858
+ disabled: Q === 0
6827
6859
  }, {
6828
- icon: l(() => [
6829
- e(b, { name: "chevron-up" })
6860
+ icon: a(() => [
6861
+ e(C, { name: "chevron-up" })
6830
6862
  ]),
6831
6863
  _: 1
6832
6864
  }, 8, ["onClick", "disabled"]),
6833
- e(V, {
6865
+ e(U, {
6834
6866
  theme: "default",
6835
6867
  variant: "text",
6836
6868
  size: "small",
6837
- onClick: (M) => Oe(G),
6838
- disabled: G === U.value.length - 1
6869
+ onClick: (M) => Ce(Q),
6870
+ disabled: Q === f.value.length - 1
6839
6871
  }, {
6840
- icon: l(() => [
6841
- e(b, { name: "chevron-down" })
6872
+ icon: a(() => [
6873
+ e(C, { name: "chevron-down" })
6842
6874
  ]),
6843
6875
  _: 1
6844
6876
  }, 8, ["onClick", "disabled"])
6845
6877
  ])
6846
- ], 42, ka))), 128))
6878
+ ], 42, Sa))), 128))
6847
6879
  ])
6848
6880
  ])
6849
6881
  ]),
@@ -6853,40 +6885,40 @@ const Ae = [
6853
6885
  _: 1
6854
6886
  }, 8, ["modelValue"])
6855
6887
  ]),
6856
- s("div", Va, [
6857
- n[14] || (n[14] = s("div", { class: "filter-plan-title" }, "我的方案", -1)),
6858
- s("div", xa, [
6859
- (f(!0), T(X, null, ne(o.planFilterOptions, (v) => {
6860
- var G;
6861
- return f(), T("div", {
6862
- key: v.value,
6863
- class: be(["filter-plan-item", { active: ((G = Q.value) == null ? void 0 : G.value) === v.value }]),
6864
- onClick: (M) => R(v)
6888
+ o("div", qa, [
6889
+ t[17] || (t[17] = o("div", { class: "filter-plan-title" }, "我的方案", -1)),
6890
+ o("div", Aa, [
6891
+ (b(!0), A(I, null, te(s.planFilterOptions, (h) => {
6892
+ var Q;
6893
+ return b(), A("div", {
6894
+ key: h.value,
6895
+ class: Se(["filter-plan-item", { active: ((Q = Z.value) == null ? void 0 : Q.value) === h.value }]),
6896
+ onClick: (M) => J(h)
6865
6897
  }, [
6866
- e(b, {
6898
+ e(C, {
6867
6899
  name: "file-text",
6868
6900
  class: "plan-icon"
6869
6901
  }),
6870
- s("span", $a, de(v.content), 1),
6871
- s("div", {
6902
+ o("span", Ta, me(h.content), 1),
6903
+ o("div", {
6872
6904
  class: "plan-actions",
6873
- onClick: n[3] || (n[3] = ge(() => {
6905
+ onClick: t[3] || (t[3] = De(() => {
6874
6906
  }, ["stop"]))
6875
6907
  }, [
6876
- e(ce, {
6908
+ e(pe, {
6877
6909
  content: "编辑",
6878
6910
  placement: "top"
6879
6911
  }, {
6880
- default: l(() => [
6881
- e(V, {
6912
+ default: a(() => [
6913
+ e(U, {
6882
6914
  theme: "default",
6883
6915
  variant: "text",
6884
6916
  size: "small",
6885
- onClick: ge((M) => K(v), ["stop"]),
6886
- disabled: !v.value || v.value === "empty"
6917
+ onClick: De((M) => X(h), ["stop"]),
6918
+ disabled: !h.value || h.value === "empty"
6887
6919
  }, {
6888
- icon: l(() => [
6889
- e(b, {
6920
+ icon: a(() => [
6921
+ e(C, {
6890
6922
  name: "edit",
6891
6923
  style: { color: "#0052d9" }
6892
6924
  })
@@ -6896,22 +6928,22 @@ const Ae = [
6896
6928
  ]),
6897
6929
  _: 2
6898
6930
  }, 1024),
6899
- e(ce, {
6931
+ e(pe, {
6900
6932
  content: "设置为默认方案",
6901
6933
  placement: "top"
6902
6934
  }, {
6903
- default: l(() => [
6904
- e(V, {
6935
+ default: a(() => [
6936
+ e(U, {
6905
6937
  theme: "default",
6906
6938
  variant: "text",
6907
6939
  size: "small",
6908
- onClick: (M) => h(v),
6909
- disabled: !v.value || v.value === "empty"
6940
+ onClick: (M) => B(h),
6941
+ disabled: !h.value || h.value === "empty"
6910
6942
  }, {
6911
- icon: l(() => [
6912
- e(b, {
6913
- name: v.isDefault ? "check-circle-filled" : "check-circle",
6914
- style: Te({ color: v.isDefault ? "#0052d9" : "#bbb" })
6943
+ icon: a(() => [
6944
+ e(C, {
6945
+ name: h.isDefault ? "check-circle-filled" : "check-circle",
6946
+ style: $e({ color: h.isDefault ? "#0052d9" : "#bbb" })
6915
6947
  }, null, 8, ["name", "style"])
6916
6948
  ]),
6917
6949
  _: 2
@@ -6919,40 +6951,46 @@ const Ae = [
6919
6951
  ]),
6920
6952
  _: 2
6921
6953
  }, 1024),
6922
- e(ce, {
6954
+ e(pe, {
6923
6955
  content: "复制方案",
6924
6956
  placement: "top"
6925
6957
  }, {
6926
- default: l(() => [
6927
- e(V, {
6958
+ default: a(() => [
6959
+ e(U, {
6928
6960
  theme: "default",
6929
6961
  variant: "text",
6930
6962
  size: "small",
6931
- onClick: (M) => S(v),
6932
- disabled: !v.value || v.value === "empty"
6963
+ onClick: (M) => oe(h),
6964
+ disabled: !h.value || h.value === "empty"
6933
6965
  }, {
6934
- icon: l(() => [
6935
- e(b, { name: "file-copy" })
6966
+ icon: a(() => [
6967
+ e(C, {
6968
+ name: "file-copy",
6969
+ style: { color: "#ff9800" }
6970
+ })
6936
6971
  ]),
6937
6972
  _: 1
6938
6973
  }, 8, ["onClick", "disabled"])
6939
6974
  ]),
6940
6975
  _: 2
6941
6976
  }, 1024),
6942
- e(ce, {
6977
+ e(pe, {
6943
6978
  content: "删除方案",
6944
6979
  placement: "top"
6945
6980
  }, {
6946
- default: l(() => [
6947
- e(V, {
6981
+ default: a(() => [
6982
+ e(U, {
6948
6983
  theme: "default",
6949
6984
  variant: "text",
6950
6985
  size: "small",
6951
- onClick: (M) => oe(v),
6952
- disabled: !v.value || v.value === "empty"
6986
+ onClick: (M) => F(h),
6987
+ disabled: !h.value || h.value === "empty"
6953
6988
  }, {
6954
- icon: l(() => [
6955
- e(b, { name: "delete" })
6989
+ icon: a(() => [
6990
+ e(C, {
6991
+ name: "delete",
6992
+ style: { color: "#0052d9" }
6993
+ })
6956
6994
  ]),
6957
6995
  _: 1
6958
6996
  }, 8, ["onClick", "disabled"])
@@ -6960,7 +6998,7 @@ const Ae = [
6960
6998
  _: 2
6961
6999
  }, 1024)
6962
7000
  ])
6963
- ], 10, Ua);
7001
+ ], 10, Pa);
6964
7002
  }), 128))
6965
7003
  ])
6966
7004
  ])
@@ -6968,39 +7006,42 @@ const Ae = [
6968
7006
  ])
6969
7007
  ])
6970
7008
  ]),
6971
- footer: l(() => [
6972
- s("div", Fa, [
6973
- s("div", Da, [
6974
- e(V, {
7009
+ footer: a(() => [
7010
+ o("div", Na, [
7011
+ o("div", Ba, [
7012
+ e(U, {
6975
7013
  theme: "default",
6976
- size: o.size,
6977
- onClick: W
7014
+ size: s.size,
7015
+ onClick: G
6978
7016
  }, {
6979
- icon: l(() => [
6980
- e(b, { name: "save" })
7017
+ icon: a(() => [
7018
+ e(C, {
7019
+ name: "save",
7020
+ theme: "warning"
7021
+ })
6981
7022
  ]),
6982
- default: l(() => [
6983
- n[15] || (n[15] = $(" 保存方案 ", -1))
7023
+ default: a(() => [
7024
+ t[18] || (t[18] = V(" 保存方案 ", -1))
6984
7025
  ]),
6985
7026
  _: 1
6986
7027
  }, 8, ["size"])
6987
7028
  ]),
6988
- s("div", qa, [
6989
- e(V, {
7029
+ o("div", Ma, [
7030
+ e(U, {
6990
7031
  theme: "default",
6991
- onClick: d
7032
+ onClick: ne
6992
7033
  }, {
6993
- default: l(() => [...n[16] || (n[16] = [
6994
- $("重置", -1)
7034
+ default: a(() => [...t[19] || (t[19] = [
7035
+ V("重置", -1)
6995
7036
  ])]),
6996
7037
  _: 1
6997
7038
  }),
6998
- e(V, {
7039
+ e(U, {
6999
7040
  theme: "primary",
7000
- onClick: j
7041
+ onClick: L
7001
7042
  }, {
7002
- default: l(() => [...n[17] || (n[17] = [
7003
- $("确定", -1)
7043
+ default: a(() => [...t[20] || (t[20] = [
7044
+ V("确定", -1)
7004
7045
  ])]),
7005
7046
  _: 1
7006
7047
  })
@@ -7009,32 +7050,360 @@ const Ae = [
7009
7050
  ]),
7010
7051
  _: 1
7011
7052
  }, 8, ["visible", "width"]),
7012
- e(ta, {
7053
+ e(da, {
7013
7054
  visible: i.value,
7014
- "onUpdate:visible": n[5] || (n[5] = (v) => i.value = v),
7015
- "is-editing": q.value,
7055
+ "onUpdate:visible": t[5] || (t[5] = (h) => i.value = h),
7056
+ "is-editing": P.value,
7016
7057
  "plan-name": N.value,
7017
- "original-share-mode": Y.value,
7018
- "original-share-type": z.value,
7019
- "original-selected-users": p.value,
7020
- tabs: o.personTabs,
7021
- organizations: o.personOrganizations,
7022
- "dept-members-data-prop": ee.value,
7058
+ "original-share-mode": H.value,
7059
+ "original-share-type": $.value,
7060
+ "original-selected-users": _.value,
7061
+ tabs: s.personTabs,
7062
+ organizations: s.personOrganizations,
7063
+ "dept-members-data-prop": T.value,
7023
7064
  onConfirm: le,
7024
- onLoadUsers: E,
7025
- onSearch: A,
7026
- onDeptClick: fe
7065
+ onLoadUsers: fe,
7066
+ onSearch: ye,
7067
+ onDeptClick: be
7027
7068
  }, null, 8, ["visible", "is-editing", "plan-name", "original-share-mode", "original-share-type", "original-selected-users", "tabs", "organizations", "dept-members-data-prop"])
7028
7069
  ], 64);
7029
7070
  };
7030
7071
  }
7031
- }, Ta = /* @__PURE__ */ me(Pa, [["__scopeId", "data-v-dca13fd2"]]), Na = { class: "cd-filter-bar" }, Aa = {
7072
+ }, Ra = /* @__PURE__ */ ue(Ja, [["__scopeId", "data-v-dfbbd671"]]), La = { class: "dialog-header" }, Ha = { class: "color-filter-dialog" }, ja = { class: "color-filter-rules" }, Ya = { class: "rule-content" }, Ga = { class: "rule-color-section" }, Wa = { class: "color-block-wrapper" }, Ka = {
7073
+ key: 0,
7074
+ class: "bold-indicator"
7075
+ }, Qa = { class: "color-picker-panel" }, Xa = { class: "preset-colors" }, Za = ["onClick"], Ia = { class: "bold-option" }, el = { class: "apply-to-section" }, al = { class: "rule-condition" }, ll = { class: "dialog-footer" }, tl = {
7076
+ __name: "ColorFilterDialog",
7077
+ props: {
7078
+ visible: { type: Boolean, default: !1 },
7079
+ fieldOptions: { type: Array, required: !0 },
7080
+ size: { type: String, default: "small" },
7081
+ initialRules: { type: Array, default: () => [] }
7082
+ },
7083
+ emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
7084
+ setup(s, { emit: ae }) {
7085
+ const d = s, v = ae, n = z(d.visible), q = [
7086
+ // 第一行 - 暖色系
7087
+ "#FFE7BA",
7088
+ "#FFD6E7",
7089
+ "#FFE5E5",
7090
+ "#FFF4E6",
7091
+ "#FFF9C4",
7092
+ "#FFE4CC",
7093
+ "#FFD9D9",
7094
+ "#FFEAA7",
7095
+ "#FFE0B2",
7096
+ "#FFCCBC",
7097
+ // 第二行 - 冷色系
7098
+ "#D4F1F4",
7099
+ "#E1F5FE",
7100
+ "#E0F2F1",
7101
+ "#E8F5E9",
7102
+ "#F1F8E9",
7103
+ "#E8E8FF",
7104
+ "#F3E5F5",
7105
+ "#E1BEE7",
7106
+ "#D1C4E9",
7107
+ "#C5CAE9",
7108
+ // 第三行 - 中性色系
7109
+ "#F0F0F0",
7110
+ "#E0E0E0",
7111
+ "#EEEEEE",
7112
+ "#F5F5F5",
7113
+ "#FAFAFA",
7114
+ "#ECEFF1",
7115
+ "#CFD8DC",
7116
+ "#B0BEC5",
7117
+ "#E7F5E8",
7118
+ "#F8F9FA"
7119
+ ], Z = [
7120
+ { label: "等于", value: "eq" },
7121
+ { label: "不等于", value: "ne" },
7122
+ { label: "大于", value: "gt" },
7123
+ { label: "大于等于", value: "gte" },
7124
+ { label: "小于", value: "lt" },
7125
+ { label: "小于等于", value: "lte" },
7126
+ { label: "包含", value: "contains" },
7127
+ { label: "不包含", value: "notContains" }
7128
+ ], i = {
7129
+ overlayInnerStyle: {
7130
+ width: "180px"
7131
+ }
7132
+ }, T = z([
7133
+ {
7134
+ field: "",
7135
+ operator: "eq",
7136
+ value: "",
7137
+ backgroundColor: "#FFE7BA",
7138
+ isBold: !1,
7139
+ showColorPicker: !1,
7140
+ applyTo: "cell"
7141
+ }
7142
+ ]);
7143
+ ee(() => d.visible, (g) => {
7144
+ n.value = g, g && d.initialRules.length > 0 && (T.value = JSON.parse(JSON.stringify(d.initialRules)).map((u) => ({
7145
+ ...u,
7146
+ showColorPicker: !1
7147
+ })));
7148
+ }), ee(n, (g) => {
7149
+ v("update:visible", g);
7150
+ });
7151
+ const K = (g, u) => {
7152
+ T.value[g].backgroundColor = u, T.value[g].showColorPicker = !1;
7153
+ }, P = () => {
7154
+ T.value.push({
7155
+ field: "",
7156
+ operator: "eq",
7157
+ value: "",
7158
+ backgroundColor: "#FFE7BA",
7159
+ isBold: !1,
7160
+ showColorPicker: !1,
7161
+ applyTo: "cell"
7162
+ });
7163
+ }, N = (g) => {
7164
+ T.value.length > 1 && T.value.splice(g, 1);
7165
+ }, H = () => {
7166
+ n.value = !1;
7167
+ }, $ = () => {
7168
+ v("clear"), n.value = !1;
7169
+ }, _ = () => {
7170
+ const g = T.value.filter(
7171
+ (u) => u.field && u.operator && u.value
7172
+ ).map((u) => ({
7173
+ field: u.field,
7174
+ operator: u.operator,
7175
+ value: u.value,
7176
+ backgroundColor: u.backgroundColor,
7177
+ isBold: u.isBold,
7178
+ applyTo: u.applyTo
7179
+ }));
7180
+ v("confirm", g), n.value = !1;
7181
+ }, k = re(() => {
7182
+ const g = T.value.length, u = Math.floor(q.length / g), p = [];
7183
+ for (let m = 0; m < g; m++) {
7184
+ const S = m * u % q.length;
7185
+ p.push(q[S]);
7186
+ }
7187
+ return p;
7188
+ }), O = () => {
7189
+ T.value.forEach((g, u) => {
7190
+ u < k.value.length && (g.backgroundColor = k.value[u]);
7191
+ }), v("smart-colors-change", k.value);
7192
+ };
7193
+ return (g, u) => {
7194
+ const p = y("t-button"), m = y("t-checkbox"), S = y("t-popup"), J = y("t-radio-button"), G = y("t-radio-group"), le = y("t-select"), X = y("t-input"), oe = y("t-icon"), F = y("t-dialog");
7195
+ return b(), Y(F, {
7196
+ visible: n.value,
7197
+ "onUpdate:visible": u[0] || (u[0] = (B) => n.value = B),
7198
+ width: "800px",
7199
+ "confirm-btn": null,
7200
+ "cancel-btn": null,
7201
+ onClose: H
7202
+ }, {
7203
+ header: a(() => [
7204
+ o("div", La, [
7205
+ u[3] || (u[3] = o("span", null, "颜色筛选", -1)),
7206
+ e(p, {
7207
+ theme: "primary",
7208
+ variant: "outline",
7209
+ size: "small",
7210
+ onClick: O
7211
+ }, {
7212
+ icon: a(() => [...u[1] || (u[1] = [
7213
+ o("i", { class: "ri-palette-line" }, null, -1)
7214
+ ])]),
7215
+ default: a(() => [
7216
+ u[2] || (u[2] = V(" 智能配色 ", -1))
7217
+ ]),
7218
+ _: 1
7219
+ })
7220
+ ])
7221
+ ]),
7222
+ body: a(() => [
7223
+ o("div", Ha, [
7224
+ o("div", ja, [
7225
+ (b(!0), A(I, null, te(T.value, (B, ne) => (b(), A("div", {
7226
+ key: ne,
7227
+ class: "color-rule-item"
7228
+ }, [
7229
+ o("div", Ya, [
7230
+ o("div", Ga, [
7231
+ e(S, {
7232
+ visible: B.showColorPicker,
7233
+ "onUpdate:visible": (L) => B.showColorPicker = L,
7234
+ placement: "bottom-left",
7235
+ trigger: "click"
7236
+ }, {
7237
+ content: a(() => [
7238
+ o("div", Qa, [
7239
+ o("div", Xa, [
7240
+ (b(), A(I, null, te(q, (L) => o("div", {
7241
+ key: L,
7242
+ class: Se(["preset-color-item", { active: B.backgroundColor === L }]),
7243
+ style: $e({ backgroundColor: L }),
7244
+ onClick: (ce) => K(ne, L)
7245
+ }, null, 14, Za)), 64))
7246
+ ]),
7247
+ o("div", Ia, [
7248
+ e(m, {
7249
+ modelValue: B.isBold,
7250
+ "onUpdate:modelValue": (L) => B.isBold = L
7251
+ }, {
7252
+ default: a(() => [...u[4] || (u[4] = [
7253
+ o("span", { class: "bold-text" }, "加粗", -1)
7254
+ ])]),
7255
+ _: 1
7256
+ }, 8, ["modelValue", "onUpdate:modelValue"])
7257
+ ])
7258
+ ])
7259
+ ]),
7260
+ default: a(() => [
7261
+ o("div", Wa, [
7262
+ o("div", {
7263
+ class: "color-block",
7264
+ style: $e({ backgroundColor: B.backgroundColor })
7265
+ }, [
7266
+ B.isBold ? (b(), A("span", Ka, "B")) : ie("", !0)
7267
+ ], 4)
7268
+ ])
7269
+ ]),
7270
+ _: 2
7271
+ }, 1032, ["visible", "onUpdate:visible"])
7272
+ ]),
7273
+ o("div", el, [
7274
+ e(G, {
7275
+ modelValue: B.applyTo,
7276
+ "onUpdate:modelValue": (L) => B.applyTo = L,
7277
+ size: s.size,
7278
+ variant: "default-filled"
7279
+ }, {
7280
+ default: a(() => [
7281
+ e(J, { value: "cell" }, {
7282
+ default: a(() => [...u[5] || (u[5] = [
7283
+ V("单元格", -1)
7284
+ ])]),
7285
+ _: 1
7286
+ }),
7287
+ e(J, { value: "row" }, {
7288
+ default: a(() => [...u[6] || (u[6] = [
7289
+ V("整行", -1)
7290
+ ])]),
7291
+ _: 1
7292
+ }),
7293
+ e(J, { value: "column" }, {
7294
+ default: a(() => [...u[7] || (u[7] = [
7295
+ V("整列", -1)
7296
+ ])]),
7297
+ _: 1
7298
+ })
7299
+ ]),
7300
+ _: 1
7301
+ }, 8, ["modelValue", "onUpdate:modelValue", "size"])
7302
+ ]),
7303
+ o("div", al, [
7304
+ e(le, {
7305
+ modelValue: B.field,
7306
+ "onUpdate:modelValue": (L) => B.field = L,
7307
+ options: s.fieldOptions,
7308
+ placeholder: "选择字段",
7309
+ size: s.size,
7310
+ style: { width: "120px", display: "inline-block" },
7311
+ "popup-props": i
7312
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "size"]),
7313
+ e(le, {
7314
+ modelValue: B.operator,
7315
+ "onUpdate:modelValue": (L) => B.operator = L,
7316
+ options: Z,
7317
+ placeholder: "选择操作符",
7318
+ size: s.size,
7319
+ style: { width: "120px" },
7320
+ "popup-props": i
7321
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
7322
+ e(X, {
7323
+ modelValue: B.value,
7324
+ "onUpdate:modelValue": (L) => B.value = L,
7325
+ placeholder: "输入值",
7326
+ size: s.size,
7327
+ style: { width: "200px" }
7328
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "size"])
7329
+ ])
7330
+ ]),
7331
+ e(p, {
7332
+ theme: "default",
7333
+ variant: "text",
7334
+ size: s.size,
7335
+ onClick: (L) => N(ne),
7336
+ disabled: T.value.length === 1
7337
+ }, {
7338
+ icon: a(() => [...u[8] || (u[8] = [
7339
+ o("i", { class: "ri-close-fill" }, null, -1)
7340
+ ])]),
7341
+ _: 1
7342
+ }, 8, ["size", "onClick", "disabled"])
7343
+ ]))), 128))
7344
+ ]),
7345
+ e(p, {
7346
+ theme: "default",
7347
+ variant: "dashed",
7348
+ size: s.size,
7349
+ onClick: P,
7350
+ style: { width: "100%", "margin-top": "12px" }
7351
+ }, {
7352
+ icon: a(() => [
7353
+ e(oe, { name: "add" })
7354
+ ]),
7355
+ default: a(() => [
7356
+ u[9] || (u[9] = V(" 添加规则 ", -1))
7357
+ ]),
7358
+ _: 1
7359
+ }, 8, ["size"])
7360
+ ])
7361
+ ]),
7362
+ footer: a(() => [
7363
+ o("div", ll, [
7364
+ e(p, {
7365
+ theme: "default",
7366
+ size: s.size,
7367
+ onClick: H
7368
+ }, {
7369
+ default: a(() => [...u[10] || (u[10] = [
7370
+ V("取消", -1)
7371
+ ])]),
7372
+ _: 1
7373
+ }, 8, ["size"]),
7374
+ e(p, {
7375
+ theme: "default",
7376
+ size: s.size,
7377
+ onClick: $
7378
+ }, {
7379
+ default: a(() => [...u[11] || (u[11] = [
7380
+ V("清除", -1)
7381
+ ])]),
7382
+ _: 1
7383
+ }, 8, ["size"]),
7384
+ e(p, {
7385
+ theme: "primary",
7386
+ size: s.size,
7387
+ onClick: _
7388
+ }, {
7389
+ default: a(() => [...u[12] || (u[12] = [
7390
+ V("确定", -1)
7391
+ ])]),
7392
+ _: 1
7393
+ }, 8, ["size"])
7394
+ ])
7395
+ ]),
7396
+ _: 1
7397
+ }, 8, ["visible"]);
7398
+ };
7399
+ }
7400
+ }, qe = /* @__PURE__ */ ue(tl, [["__scopeId", "data-v-822b291e"]]), nl = { class: "cd-filter-bar" }, ol = {
7032
7401
  key: 0,
7033
7402
  class: "inline-filter-toolbar"
7034
- }, Ma = {
7403
+ }, il = {
7035
7404
  key: 1,
7036
7405
  class: "plan-radio-group"
7037
- }, Ja = { class: "filter-action-buttons" }, Ea = { class: "save-plan-content" }, Ba = {
7406
+ }, sl = { class: "filter-action-buttons" }, rl = { class: "save-plan-content" }, dl = {
7038
7407
  __name: "cd-filter-bar",
7039
7408
  props: {
7040
7409
  fieldOptions: { type: Array, required: !0 },
@@ -7073,94 +7442,99 @@ const Ae = [
7073
7442
  "load-users",
7074
7443
  "search-persons",
7075
7444
  "dept-click",
7076
- "column-change"
7445
+ "column-change",
7446
+ "color-filter-change",
7447
+ "color-filter-clear",
7448
+ "keyword-change",
7449
+ "keyword-clear",
7450
+ "smart-colors-change"
7077
7451
  ],
7078
- setup(o, { emit: I }) {
7079
- const r = o, u = I, t = w([]), D = () => ({ field: "", operator: "eq", value: "" });
7452
+ setup(s, { emit: ae }) {
7453
+ const d = s, v = ae, n = z([]), q = () => ({ field: "", operator: "eq", value: "" });
7080
7454
  (() => {
7081
- var d, j;
7082
- if (r.filterCount === 0) {
7083
- t.value = [];
7455
+ var r, f;
7456
+ if (d.filterCount === 0) {
7457
+ n.value = [];
7084
7458
  return;
7085
7459
  }
7086
- const h = ((j = (d = r.filterCards) == null ? void 0 : d[0]) == null ? void 0 : j.conditions) || [];
7087
- t.value = Array.from({ length: r.filterCount }, (P, E) => h[E] ? JSON.parse(JSON.stringify(h[E])) : D());
7460
+ const c = ((f = (r = d.filterCards) == null ? void 0 : r[0]) == null ? void 0 : f.conditions) || [];
7461
+ n.value = Array.from({ length: d.filterCount }, (x, j) => c[j] ? JSON.parse(JSON.stringify(c[j])) : q());
7088
7462
  })();
7089
7463
  const i = () => {
7090
- if (r.filterCount === 0) {
7091
- t.value = [];
7464
+ if (d.filterCount === 0) {
7465
+ n.value = [];
7092
7466
  return;
7093
7467
  }
7094
- t.value = Array.from({ length: r.filterCount }, () => D());
7095
- }, ee = w("保存筛选方案"), H = w(!1), q = w(r.topOp), N = w(JSON.parse(JSON.stringify(r.filterCards)));
7096
- Z(() => r.topOp, (h) => q.value = h), Z(() => r.filterCards, (h) => N.value = JSON.parse(JSON.stringify(h)));
7097
- const Y = w(null), z = w(""), p = ve(() => r.planFilterOptions && r.planFilterOptions.length > 0 ? r.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), C = (h) => {
7098
- const d = r.planFilterOptions.find((j) => j.value === h);
7099
- d && k(d);
7100
- }, k = (h) => {
7101
- if (!h.precepts || h.precepts.length === 0) return;
7102
- if (Y.value = h, z.value = h.value, N.value = JSON.parse(JSON.stringify(h.precepts)), q.value = h.sqlConnectType, r.filterCount > 0) {
7103
- const P = h.precepts[0];
7104
- P && P.conditions && (t.value = Array.from({ length: r.filterCount }, (E, A) => P.conditions[A] ? JSON.parse(JSON.stringify(P.conditions[A])) : D()));
7468
+ n.value = Array.from({ length: d.filterCount }, () => q());
7469
+ }, T = z("保存筛选方案"), K = z(!1), P = z(d.topOp), N = z(JSON.parse(JSON.stringify(d.filterCards)));
7470
+ ee(() => d.topOp, (c) => P.value = c), ee(() => d.filterCards, (c) => N.value = JSON.parse(JSON.stringify(c)));
7471
+ const H = z(null), $ = z(""), _ = re(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), k = (c) => {
7472
+ const r = d.planFilterOptions.find((f) => f.value === c);
7473
+ r && O(r);
7474
+ }, O = (c) => {
7475
+ if (!c.precepts || c.precepts.length === 0) return;
7476
+ if (H.value = c, $.value = c.value, N.value = JSON.parse(JSON.stringify(c.precepts)), P.value = c.sqlConnectType, d.filterCount > 0) {
7477
+ const x = c.precepts[0];
7478
+ x && x.conditions && (n.value = Array.from({ length: d.filterCount }, (j, R) => x.conditions[R] ? JSON.parse(JSON.stringify(x.conditions[R])) : q()));
7105
7479
  }
7106
- const d = y(h.precepts), j = J(d, h.sqlConnectType);
7107
- if (u("confirm", j), h.columns && h.columns.length > 0) {
7108
- const P = h.columns.filter((E) => E.show !== !1);
7109
- u("column-change", P);
7480
+ const r = m(c.precepts), f = S(r, c.sqlConnectType);
7481
+ if (v("confirm", f), c.columns && c.columns.length > 0) {
7482
+ const x = c.columns.filter((j) => j.show !== !1);
7483
+ v("column-change", x);
7110
7484
  }
7111
- }, F = () => {
7112
- if (r.filterCount === 0) {
7113
- u("search", { conditions: { and: [] } });
7485
+ }, g = () => {
7486
+ if (d.filterCount === 0) {
7487
+ v("search", { conditions: { and: [] } });
7114
7488
  return;
7115
7489
  }
7116
- const h = y([
7117
- { id: 1, connector: q.value, conditions: t.value }
7118
- ]), d = J(h, "and");
7119
- u("search", d);
7120
- }, c = () => {
7121
- H.value = !0;
7122
- }, m = () => {
7123
- H.value = !1;
7124
- }, y = (h) => h.map((d) => {
7125
- const j = d.conditions.filter((P) => P.field && P.field.trim() !== "").map((P) => {
7126
- let E = "";
7127
- return P.value !== null && P.value !== void 0 && (Array.isArray(P.value) ? E = P.value.join("/") : E = String(P.value)), {
7128
- field: P.field.trim(),
7129
- operator: P.operator || "eq",
7130
- value: E
7490
+ const c = m([
7491
+ { id: 1, connector: P.value, conditions: n.value }
7492
+ ]), r = S(c, "and");
7493
+ v("search", r);
7494
+ }, u = () => {
7495
+ K.value = !0;
7496
+ }, p = () => {
7497
+ K.value = !1;
7498
+ }, m = (c) => c.map((r) => {
7499
+ const f = r.conditions.filter((x) => x.field && x.field.trim() !== "").map((x) => {
7500
+ let j = "";
7501
+ return x.value !== null && x.value !== void 0 && (Array.isArray(x.value) ? j = x.value.join("/") : j = String(x.value)), {
7502
+ field: x.field.trim(),
7503
+ operator: x.operator || "eq",
7504
+ value: j
7131
7505
  };
7132
7506
  });
7133
7507
  return {
7134
- ...d,
7135
- connector: d.connector || "and",
7136
- conditions: j.length > 0 ? j : [{ field: "", operator: "eq", value: "" }]
7508
+ ...r,
7509
+ connector: r.connector || "and",
7510
+ conditions: f.length > 0 ? f : [{ field: "", operator: "eq", value: "" }]
7137
7511
  };
7138
- }).filter((d) => d.conditions.length > 0 && d.conditions[0].field !== "");
7139
- function J(h, d) {
7140
- if (d !== "and" && d !== "or")
7512
+ }).filter((r) => r.conditions.length > 0 && r.conditions[0].field !== "");
7513
+ function S(c, r) {
7514
+ if (r !== "and" && r !== "or")
7141
7515
  throw new Error('type参数必须是"and"或"or"');
7142
- function j(A) {
7516
+ function f(R) {
7143
7517
  return {
7144
- [A.field]: {
7145
- [A.operator]: A.value
7518
+ [R.field]: {
7519
+ [R.operator]: R.value
7146
7520
  }
7147
7521
  };
7148
7522
  }
7149
- function P(A) {
7150
- return A.conditions.length === 1 ? j(A.conditions[0]) : {
7151
- [A.connector]: A.conditions.map(j)
7523
+ function x(R) {
7524
+ return R.conditions.length === 1 ? f(R.conditions[0]) : {
7525
+ [R.connector]: R.conditions.map(f)
7152
7526
  };
7153
7527
  }
7154
7528
  return {
7155
7529
  conditions: {
7156
- [d]: h.map(P)
7530
+ [r]: c.map(x)
7157
7531
  }
7158
7532
  };
7159
7533
  }
7160
- const R = () => {
7161
- S.value = !1;
7162
- }, W = () => {
7163
- i(), Y.value = null, z.value = "", N.value = [
7534
+ const J = () => {
7535
+ oe.value = !1;
7536
+ }, G = () => {
7537
+ i(), H.value = null, $.value = "", N.value = [
7164
7538
  {
7165
7539
  id: 1,
7166
7540
  connector: "and",
@@ -7169,131 +7543,164 @@ const Ae = [
7169
7543
  { field: "", operator: "eq", value: "" }
7170
7544
  ]
7171
7545
  }
7172
- ], q.value = "and", u("reset"), F();
7546
+ ], P.value = "and", v("reset"), g();
7173
7547
  }, le = () => {
7174
- if (Y.value) {
7175
- const h = y(N.value);
7176
- u("update-plan", {
7177
- name: oe.value.name,
7178
- precepts: h,
7179
- topOp: q.value,
7180
- plan: Y.value,
7181
- columns: r.visibleColumns || []
7548
+ if (H.value) {
7549
+ const c = m(N.value);
7550
+ v("update-plan", {
7551
+ name: F.value.name,
7552
+ precepts: c,
7553
+ topOp: P.value,
7554
+ plan: H.value,
7555
+ columns: d.visibleColumns || []
7182
7556
  // 包含当前列配置
7183
7557
  });
7184
7558
  } else {
7185
- const h = y(N.value);
7186
- u("save-plan", {
7187
- name: oe.value.name,
7188
- precepts: h,
7189
- topOp: q.value,
7190
- plan: Y.value,
7191
- columns: r.visibleColumns || []
7559
+ const c = m(N.value);
7560
+ v("save-plan", {
7561
+ name: F.value.name,
7562
+ precepts: c,
7563
+ topOp: P.value,
7564
+ plan: H.value,
7565
+ columns: d.visibleColumns || []
7192
7566
  // 包含当前列配置
7193
7567
  });
7194
7568
  }
7195
- R();
7196
- }, K = (h) => {
7197
- const d = J(h.filterCards, h.type1);
7198
- u("confirm", d), r.filterCount > 0 && i(), m();
7199
- }, S = w(!1), oe = w({ name: "" });
7200
- return (h, d) => {
7201
- const j = g("t-radio-button"), P = g("t-radio-group"), E = g("t-icon"), A = g("t-button"), fe = g("t-dropdown"), B = g("t-input"), te = g("t-form-item"), ae = g("t-form"), U = g("t-dialog");
7202
- return f(), T("div", Na, [
7203
- o.filterCount > 0 ? (f(), T("div", Aa, [
7204
- (f(!0), T(X, null, ne(t.value, (O, re) => (f(), L(ye, {
7205
- key: re,
7206
- "field-options": o.fieldOptions,
7207
- size: o.size,
7208
- "filter-condition": t.value[re],
7209
- "select-options": o.selectOptions
7569
+ J();
7570
+ }, X = (c) => {
7571
+ const r = S(c.filterCards, c.type1);
7572
+ v("confirm", r), d.filterCount > 0 && i(), p();
7573
+ }, oe = z(!1), F = z({ name: "" }), B = z(!1), ne = z([]), L = () => {
7574
+ B.value = !0;
7575
+ }, ce = (c) => {
7576
+ ne.value = c, v("color-filter-change", c);
7577
+ }, fe = () => {
7578
+ ne.value = [], v("color-filter-clear");
7579
+ };
7580
+ z("");
7581
+ const ye = (c) => {
7582
+ v("smart-colors-change", c);
7583
+ }, be = re(() => ne.value.filter((c) => c.field && c.operator && c.value).length), W = re(() => {
7584
+ const c = ne.value.filter((f) => f.field && f.operator && f.value);
7585
+ return c.length === 0 ? "颜色筛选" : `
7586
+ ${c.map((f) => {
7587
+ const x = d.fieldOptions.find((R) => R.value === f.field);
7588
+ return `${x ? x.label : f.field} ${se(f.operator)} ${f.value}`;
7589
+ }).join(`
7590
+ `)}`;
7591
+ }), se = (c) => ({
7592
+ eq: "等于",
7593
+ ne: "不等于",
7594
+ gt: "大于",
7595
+ gte: "大于等于",
7596
+ lt: "小于",
7597
+ lte: "小于等于",
7598
+ contains: "包含",
7599
+ notContains: "不包含"
7600
+ })[c] || c;
7601
+ return (c, r) => {
7602
+ const f = y("t-radio-button"), x = y("t-radio-group"), j = y("t-icon"), R = y("t-button"), ge = y("t-badge"), he = y("t-tooltip"), Ce = y("t-dropdown"), _e = y("t-input"), ke = y("t-form-item"), ze = y("t-form"), Fe = y("t-dialog");
7603
+ return b(), A("div", nl, [
7604
+ s.filterCount > 0 ? (b(), A("div", ol, [
7605
+ (b(!0), A(I, null, te(n.value, (D, l) => (b(), Y(Ue, {
7606
+ key: l,
7607
+ "field-options": s.fieldOptions,
7608
+ size: s.size,
7609
+ "filter-condition": n.value[l],
7610
+ "select-options": s.selectOptions
7210
7611
  }, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
7211
7612
  ])) : ie("", !0),
7212
- o.filterCount === 0 && o.planFilterOptions.length > 0 ? (f(), T("div", Ma, [
7213
- d[11] || (d[11] = s("span", { class: "plan-label" }, "我的方案:", -1)),
7214
- e(P, {
7215
- modelValue: z.value,
7216
- "onUpdate:modelValue": d[0] || (d[0] = (O) => z.value = O),
7217
- size: o.size,
7218
- onChange: C
7613
+ s.filterCount === 0 && s.planFilterOptions.length > 0 ? (b(), A("div", il, [
7614
+ r[12] || (r[12] = o("span", { class: "plan-label" }, "我的方案:", -1)),
7615
+ e(x, {
7616
+ modelValue: $.value,
7617
+ "onUpdate:modelValue": r[0] || (r[0] = (D) => $.value = D),
7618
+ size: s.size,
7619
+ onChange: k
7219
7620
  }, {
7220
- default: l(() => [
7221
- (f(!0), T(X, null, ne(o.planFilterOptions, (O) => (f(), L(j, {
7222
- key: O.value,
7223
- value: O.value,
7224
- disabled: O.disabled
7621
+ default: a(() => [
7622
+ (b(!0), A(I, null, te(s.planFilterOptions, (D) => (b(), Y(f, {
7623
+ key: D.value,
7624
+ value: D.value,
7625
+ disabled: D.disabled
7225
7626
  }, {
7226
- default: l(() => [
7227
- $(de(O.content), 1)
7627
+ default: a(() => [
7628
+ V(me(D.content), 1)
7228
7629
  ]),
7229
7630
  _: 2
7230
7631
  }, 1032, ["value", "disabled"]))), 128))
7231
7632
  ]),
7232
7633
  _: 1
7233
7634
  }, 8, ["modelValue", "size"]),
7234
- e(A, {
7635
+ e(R, {
7235
7636
  theme: "default",
7236
7637
  variant: "outline",
7237
- size: o.size,
7238
- onClick: c,
7638
+ size: s.size,
7639
+ onClick: u,
7239
7640
  title: "高级筛选"
7240
7641
  }, {
7241
- icon: l(() => [
7242
- e(E, { name: "filter" })
7642
+ icon: a(() => [
7643
+ e(j, { name: "filter" })
7243
7644
  ]),
7244
7645
  _: 1
7245
7646
  }, 8, ["size"])
7246
7647
  ])) : ie("", !0),
7247
- s("div", Ja, [
7248
- e(A, {
7249
- theme: "primary",
7250
- size: o.size,
7251
- onClick: F,
7252
- title: "搜索"
7253
- }, {
7254
- icon: l(() => [
7255
- e(E, { name: "search" })
7256
- ]),
7257
- _: 1
7258
- }, 8, ["size"]),
7259
- e(A, {
7648
+ o("div", sl, [
7649
+ s.filterCount > 0 ? (b(), Y(R, {
7650
+ key: 0,
7260
7651
  theme: "primary",
7261
- size: o.size,
7262
- onClick: W,
7263
- title: "重置"
7652
+ size: s.size,
7653
+ onClick: u,
7654
+ title: "高级筛选"
7264
7655
  }, {
7265
- icon: l(() => [
7266
- e(E, { name: "refresh" })
7656
+ icon: a(() => [
7657
+ e(j, { name: "filter" })
7267
7658
  ]),
7268
7659
  _: 1
7269
- }, 8, ["size"]),
7270
- o.filterCount > 0 ? (f(), L(A, {
7271
- key: 0,
7272
- theme: "primary",
7273
- size: o.size,
7274
- onClick: c
7660
+ }, 8, ["size"])) : ie("", !0),
7661
+ e(he, {
7662
+ content: W.value,
7663
+ placement: "top"
7275
7664
  }, {
7276
- icon: l(() => [
7277
- e(E, { name: "filter" })
7665
+ default: a(() => [
7666
+ e(ge, {
7667
+ count: be.value,
7668
+ "max-count": 99
7669
+ }, {
7670
+ default: a(() => [
7671
+ e(R, {
7672
+ theme: "primary",
7673
+ size: s.size,
7674
+ onClick: L
7675
+ }, {
7676
+ icon: a(() => [...r[13] || (r[13] = [
7677
+ o("i", { class: "ri-palette-fill" }, null, -1)
7678
+ ])]),
7679
+ _: 1
7680
+ }, 8, ["size"])
7681
+ ]),
7682
+ _: 1
7683
+ }, 8, ["count"])
7278
7684
  ]),
7279
7685
  _: 1
7280
- }, 8, ["size"])) : ie("", !0),
7281
- o.filterCount > 0 ? (f(), L(fe, {
7686
+ }, 8, ["content"]),
7687
+ s.filterCount > 0 ? (b(), Y(Ce, {
7282
7688
  key: 1,
7283
- options: p.value,
7284
- onClick: k
7689
+ options: _.value,
7690
+ onClick: O,
7691
+ "overlay-class-name": "filter-dropdown"
7285
7692
  }, {
7286
- default: l(() => [
7287
- e(A, {
7693
+ default: a(() => [
7694
+ e(R, {
7288
7695
  theme: "primary",
7289
- size: o.size,
7696
+ size: s.size,
7290
7697
  class: "margin-reset"
7291
7698
  }, {
7292
- suffix: l(() => [
7293
- e(E, { name: "chevron-down" })
7699
+ suffix: a(() => [
7700
+ e(j, { name: "chevron-down" })
7294
7701
  ]),
7295
- default: l(() => [
7296
- d[12] || (d[12] = $(" 我的方案 ", -1))
7702
+ default: a(() => [
7703
+ r[14] || (r[14] = V(" 我的方案1 ", -1))
7297
7704
  ]),
7298
7705
  _: 1
7299
7706
  }, 8, ["size"])
@@ -7301,51 +7708,51 @@ const Ae = [
7301
7708
  _: 1
7302
7709
  }, 8, ["options"])) : ie("", !0)
7303
7710
  ]),
7304
- e(Ta, {
7305
- visible: H.value,
7306
- "onUpdate:visible": d[1] || (d[1] = (O) => H.value = O),
7307
- "field-options": o.fieldOptions,
7308
- "select-options": o.selectOptions,
7309
- "plan-filter-options": o.planFilterOptions,
7711
+ e(Ra, {
7712
+ visible: K.value,
7713
+ "onUpdate:visible": r[1] || (r[1] = (D) => K.value = D),
7714
+ "field-options": s.fieldOptions,
7715
+ "select-options": s.selectOptions,
7716
+ "plan-filter-options": s.planFilterOptions,
7310
7717
  "filter-cards": N.value,
7311
- "top-op": q.value,
7312
- size: o.size,
7313
- "person-tabs": o.personTabs,
7314
- "person-organizations": o.personOrganizations,
7315
- "visible-columns": o.visibleColumns,
7718
+ "top-op": P.value,
7719
+ size: s.size,
7720
+ "person-tabs": s.personTabs,
7721
+ "person-organizations": s.personOrganizations,
7722
+ "visible-columns": s.visibleColumns,
7316
7723
  width: "1000",
7317
- onConfirm: K,
7318
- onReset: W,
7319
- onDeletePlan: d[2] || (d[2] = (O) => u("delete-plan", O)),
7320
- onCopyPlan: d[3] || (d[3] = (O) => u("copy-plan", O)),
7321
- onSetDefaultPlan: d[4] || (d[4] = (O) => u("set-default-plan", O)),
7322
- onUpdatePlan: d[5] || (d[5] = (O) => u("update-plan", O)),
7323
- onLoadUsers: d[6] || (d[6] = (O) => u("load-users", O)),
7324
- onSearch: d[7] || (d[7] = (O) => u("search-persons", O)),
7325
- onDeptClick: d[8] || (d[8] = (O) => u("dept-click", O)),
7326
- onColumnChange: d[9] || (d[9] = (O) => u("column-change", O))
7724
+ onConfirm: X,
7725
+ onReset: G,
7726
+ onDeletePlan: r[2] || (r[2] = (D) => v("delete-plan", D)),
7727
+ onCopyPlan: r[3] || (r[3] = (D) => v("copy-plan", D)),
7728
+ onSetDefaultPlan: r[4] || (r[4] = (D) => v("set-default-plan", D)),
7729
+ onUpdatePlan: r[5] || (r[5] = (D) => v("update-plan", D)),
7730
+ onLoadUsers: r[6] || (r[6] = (D) => v("load-users", D)),
7731
+ onSearch: r[7] || (r[7] = (D) => v("search-persons", D)),
7732
+ onDeptClick: r[8] || (r[8] = (D) => v("dept-click", D)),
7733
+ onColumnChange: r[9] || (r[9] = (D) => v("column-change", D))
7327
7734
  }, null, 8, ["visible", "field-options", "select-options", "plan-filter-options", "filter-cards", "top-op", "size", "person-tabs", "person-organizations", "visible-columns"]),
7328
- e(U, {
7329
- header: ee.value,
7330
- visible: S.value,
7735
+ e(Fe, {
7736
+ header: T.value,
7737
+ visible: oe.value,
7331
7738
  width: "600px",
7332
- onClose: R
7739
+ onClose: J
7333
7740
  }, {
7334
- body: l(() => [
7335
- s("div", Ea, [
7336
- e(ae, {
7337
- data: oe.value,
7741
+ body: a(() => [
7742
+ o("div", rl, [
7743
+ e(ze, {
7744
+ data: F.value,
7338
7745
  "label-width": "100px"
7339
7746
  }, {
7340
- default: l(() => [
7341
- e(te, {
7747
+ default: a(() => [
7748
+ e(ke, {
7342
7749
  label: "方案名称",
7343
7750
  required: ""
7344
7751
  }, {
7345
- default: l(() => [
7346
- e(B, {
7347
- modelValue: oe.value.name,
7348
- "onUpdate:modelValue": d[10] || (d[10] = (O) => oe.value.name = O),
7752
+ default: a(() => [
7753
+ e(_e, {
7754
+ modelValue: F.value.name,
7755
+ "onUpdate:modelValue": r[10] || (r[10] = (D) => F.value.name = D),
7349
7756
  placeholder: "请输入筛选方案名称"
7350
7757
  }, null, 8, ["modelValue"])
7351
7758
  ]),
@@ -7356,38 +7763,49 @@ const Ae = [
7356
7763
  }, 8, ["data"])
7357
7764
  ])
7358
7765
  ]),
7359
- footer: l(() => [
7360
- e(A, {
7766
+ footer: a(() => [
7767
+ e(R, {
7361
7768
  theme: "default",
7362
- onClick: R
7769
+ onClick: J
7363
7770
  }, {
7364
- default: l(() => [...d[13] || (d[13] = [
7365
- $("取消", -1)
7771
+ default: a(() => [...r[15] || (r[15] = [
7772
+ V("取消", -1)
7366
7773
  ])]),
7367
7774
  _: 1
7368
7775
  }),
7369
- e(A, {
7776
+ e(R, {
7370
7777
  theme: "primary",
7371
7778
  onClick: le
7372
7779
  }, {
7373
- default: l(() => [...d[14] || (d[14] = [
7374
- $("确定", -1)
7780
+ default: a(() => [...r[16] || (r[16] = [
7781
+ V("确定", -1)
7375
7782
  ])]),
7376
7783
  _: 1
7377
7784
  })
7378
7785
  ]),
7379
7786
  _: 1
7380
- }, 8, ["header", "visible"])
7787
+ }, 8, ["header", "visible"]),
7788
+ e(qe, {
7789
+ visible: B.value,
7790
+ "onUpdate:visible": r[11] || (r[11] = (D) => B.value = D),
7791
+ "field-options": s.fieldOptions,
7792
+ size: s.size,
7793
+ "initial-rules": ne.value,
7794
+ onConfirm: ce,
7795
+ onClear: fe,
7796
+ onSmartColorsChange: ye
7797
+ }, null, 8, ["visible", "field-options", "size", "initial-rules"])
7381
7798
  ]);
7382
7799
  };
7383
7800
  }
7384
- }, La = /* @__PURE__ */ me(Ba, [["__scopeId", "data-v-73f9d558"]]), Ga = (o) => {
7385
- o.component("FilterDialog", Ce), o.component("FilterComponent", Ce), o.component("CdFilterBar", La);
7801
+ }, ul = /* @__PURE__ */ ue(dl, [["__scopeId", "data-v-313325d6"]]), fl = (s) => {
7802
+ s.component("FilterDialog", Ee), s.component("FilterComponent", Ee), s.component("CdFilterBar", ul), s.component("ColorFilterDialog", qe);
7386
7803
  };
7387
7804
  export {
7388
- La as CdFilterBar,
7389
- Ce as FilterComponent,
7390
- Ce as FilterDialog,
7391
- Ce as default,
7392
- Ga as install
7805
+ ul as CdFilterBar,
7806
+ qe as ColorFilterDialog,
7807
+ Ee as FilterComponent,
7808
+ Ee as FilterDialog,
7809
+ Ee as default,
7810
+ fl as install
7393
7811
  };