cd-vue-filter 2.2.6 → 2.2.8

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 H, withCtx as a, Fragment as I, renderList as te, nextTick as Ve, createElementVNode as i, createTextVNode as V, createCommentVNode as oe, 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(o, { emit: ae }) {
5541
+ var O, g, u;
5542
+ const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], v = re(() => Re.map((f) => d.includes(f.name) ? {
5543
+ label: f.name,
5544
+ value: f.name,
5545
+ children: f.city[0].area.map((m) => ({
5546
5546
  label: m,
5547
- value: `${c.name}/${m}`
5548
- // 使用省份名称作为前缀
5547
+ value: `${f.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: f.name,
5552
+ value: f.name,
5553
+ children: f.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: `${f.name}/${m.name}`,
5556
+ children: m.area.map((S) => ({
5557
+ label: S,
5558
+ value: `${f.name}/${m.name}/${S}`,
5559
+ children: void 0
5561
5560
  }))
5562
5561
  }))
5563
- })), t = (c) => [
5562
+ })), n = (f) => [
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];
5579
- if (i.selectOptions && Array.isArray(i.selectOptions)) {
5580
- const m = i.selectOptions.find(
5581
- (y) => y.columnName === c
5575
+ ].includes(f), q = (f) => {
5576
+ if (s.selectOptions && s.selectOptions[f])
5577
+ return s.selectOptions[f];
5578
+ if (s.selectOptions && Array.isArray(s.selectOptions)) {
5579
+ const m = s.selectOptions.find(
5580
+ (S) => S.columnName === f
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(f) {
5591
+ return [...f].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 s = o, T = ae, K = z({
5594
+ field: ((O = s.filterCondition) == null ? void 0 : O.field) || "",
5595
+ operator: ((g = s.filterCondition) == null ? void 0 : g.operator) || "eq",
5596
+ value: ((u = s.filterCondition) == null ? void 0 : u.value) || null
5598
5597
  });
5599
- Z(() => i.filterCondition, (c) => {
5600
- c && (H.value = { ...c });
5598
+ ee(() => s.filterCondition, (f) => {
5599
+ f && (K.value = { ...f });
5601
5600
  }, { deep: !0 });
5602
- const q = (c) => {
5603
- const m = i.fieldOptions.find((y) => y.value === c);
5601
+ const P = (f) => {
5602
+ const m = s.fieldOptions.find((S) => S.value === f);
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", { ...s.filterCondition });
5607
+ });
5608
+ }, j = () => {
5609
+ Ve(() => {
5610
+ T("search", { ...s.filterCondition });
5611
+ });
5612
+ }, $ = (f) => {
5613
+ s.filterCondition.value = f, T("search", { ...s.filterCondition });
5614
+ }, k = re(() => {
5615
+ var S;
5616
+ const f = s.filterCondition.field;
5617
+ switch (((S = s.fieldOptions.find((J) => J.value === f)) == null ? void 0 : S.type) || "text") {
5613
5618
  case "number":
5614
5619
  return [
5615
5620
  { key: "eq", label: "等于", value: "eq" },
@@ -5687,149 +5692,150 @@ const Ae = [
5687
5692
  { key: "ends_with", label: "结尾是", value: "ends_with" }
5688
5693
  ];
5689
5694
  }
5690
- }), p = () => {
5695
+ }), _ = () => {
5696
+ Ve(() => {
5697
+ T("search", { ...s.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(() => s.filterCondition.field, (f, m) => {
5701
+ f && m && (s.filterCondition.operator = "eq", s.filterCondition.value = null);
5702
+ }), (f, m) => {
5703
+ var ie;
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
- modelValue: i.filterCondition.field,
5700
- "onUpdate:modelValue": m[0] || (m[0] = (S) => i.filterCondition.field = S),
5707
+ modelValue: s.filterCondition.field,
5708
+ "onUpdate:modelValue": m[0] || (m[0] = (F) => s.filterCondition.field = F),
5701
5709
  placeholder: "请选择字段",
5702
- size: i.size,
5710
+ size: s.size,
5703
5711
  style: { "min-width": "80px", "max-width": "110px" },
5704
- onChange: p,
5705
- clearable: "",
5712
+ onChange: _,
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(s.fieldOptions, (F) => (b(), H(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
- modelValue: i.filterCondition.operator,
5719
- "onUpdate:modelValue": m[1] || (m[1] = (S) => i.filterCondition.operator = S),
5725
+ modelValue: s.filterCondition.operator,
5726
+ "onUpdate:modelValue": m[1] || (m[1] = (F) => s.filterCondition.operator = F),
5720
5727
  placeholder: "请选择条件",
5721
- size: i.size,
5728
+ size: s.size,
5722
5729
  style: { width: "80px" },
5723
- clearable: !1,
5724
- onChange: Y
5730
+ clearable: "",
5731
+ onChange: j
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(k.value, (F) => (b(), H(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(s.filterCondition.field) === "number" ? (b(), H(G, {
5736
5743
  key: 0,
5737
5744
  type: "number",
5738
- modelValue: i.filterCondition.value,
5739
- "onUpdate:modelValue": m[2] || (m[2] = (S) => i.filterCondition.value = S),
5745
+ modelValue: s.filterCondition.value,
5746
+ "onUpdate:modelValue": m[2] || (m[2] = (F) => s.filterCondition.value = F),
5740
5747
  placeholder: "请输入数字",
5741
- size: i.size,
5742
- style: { "min-width": "80px", "max-width": "120px" },
5748
+ size: s.size,
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(s.filterCondition.field) === "money" ? (b(), H(G, {
5746
5753
  key: 1,
5747
5754
  type: "number",
5748
- modelValue: i.filterCondition.value,
5749
- "onUpdate:modelValue": m[3] || (m[3] = (S) => i.filterCondition.value = S),
5755
+ modelValue: s.filterCondition.value,
5756
+ "onUpdate:modelValue": m[3] || (m[3] = (F) => s.filterCondition.value = F),
5750
5757
  placeholder: "请输入金额",
5751
- size: i.size,
5752
- style: { "min-width": "80px", "max-width": "120px" },
5758
+ size: s.size,
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(s.filterCondition.field) === "date" ? (b(), A(I, { key: 2 }, [
5763
+ n(s.filterCondition.operator) ? (b(), H(G, {
5757
5764
  key: 1,
5758
- value: (K = z.value.find((S) => S.value === i.filterCondition.operator)) == null ? void 0 : K.label,
5765
+ value: (ie = k.value.find((F) => F.value === s.filterCondition.operator)) == null ? void 0 : ie.label,
5759
5766
  disabled: "",
5760
- size: i.size,
5767
+ size: s.size,
5761
5768
  style: { "min-width": "80px", "max-width": "120px" }
5762
- }, null, 8, ["value", "size"])) : (f(), L(W, {
5769
+ }, null, 8, ["value", "size"])) : (b(), H(le, {
5763
5770
  key: 0,
5764
- modelValue: i.filterCondition.value,
5765
- "onUpdate:modelValue": m[4] || (m[4] = (S) => i.filterCondition.value = S),
5771
+ modelValue: s.filterCondition.value,
5772
+ "onUpdate:modelValue": m[4] || (m[4] = (F) => s.filterCondition.value = F),
5766
5773
  placeholder: "请选择日期",
5767
- size: i.size,
5774
+ size: s.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(s.filterCondition.field) === "time" ? (b(), H(le, {
5773
5780
  key: 3,
5774
- modelValue: i.filterCondition.value,
5775
- "onUpdate:modelValue": m[5] || (m[5] = (S) => i.filterCondition.value = S),
5781
+ modelValue: s.filterCondition.value,
5782
+ "onUpdate:modelValue": m[5] || (m[5] = (F) => s.filterCondition.value = F),
5776
5783
  placeholder: "请选择日期时间",
5777
- size: i.size,
5784
+ size: s.size,
5778
5785
  style: { "min-width": "80px", "max-width": "120px" },
5779
5786
  "enable-time-picker": "",
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(s.filterCondition.field) === "select" ? (b(), H(J, {
5784
5791
  key: 4,
5785
- modelValue: i.filterCondition.value,
5786
- "onUpdate:modelValue": m[6] || (m[6] = (S) => i.filterCondition.value = S),
5787
- options: D(i.filterCondition.field),
5792
+ modelValue: s.filterCondition.value,
5793
+ "onUpdate:modelValue": m[6] || (m[6] = (F) => s.filterCondition.value = F),
5794
+ options: q(s.filterCondition.field),
5788
5795
  placeholder: "请选择",
5789
- size: i.size,
5796
+ size: s.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(s.filterCondition.field) === "selectProvince" ? (b(), H(X, {
5794
5801
  key: 5,
5795
- modelValue: i.filterCondition.value,
5796
- "onUpdate:modelValue": m[7] || (m[7] = (S) => i.filterCondition.value = S),
5797
- options: u.value,
5802
+ modelValue: s.filterCondition.value,
5803
+ "onUpdate:modelValue": m[7] || (m[7] = (F) => s.filterCondition.value = F),
5804
+ options: v.value,
5798
5805
  placeholder: "请选择地区",
5799
- size: i.size,
5806
+ size: s.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(), H(G, {
5806
5812
  key: 6,
5807
- modelValue: i.filterCondition.value,
5808
- "onUpdate:modelValue": m[8] || (m[8] = (S) => i.filterCondition.value = S),
5813
+ modelValue: s.filterCondition.value,
5814
+ "onUpdate:modelValue": m[8] || (m[8] = (F) => s.filterCondition.value = F),
5809
5815
  placeholder: "请输入关键字",
5810
- size: i.size,
5811
- style: { "min-width": "80px", "max-width": "120px" },
5816
+ size: s.size,
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 = (o, ae) => {
5825
+ const d = o.__vccOpts || o;
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(o, { emit: ae }) {
5868
+ const d = o, 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
- const i = () => {
5878
- t.value.push({
5879
- id: Q++,
5883
+ const s = () => {
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 = ($, k) => {
5896
+ if ($ >= 0 && $ < n.value.length) {
5897
+ const _ = n.value[$];
5898
+ _.conditions.length > 1 && k >= 0 && k < _.conditions.length ? _.conditions.splice(k, 1) : _.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
+ }, j = () => {
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 ($, k) => {
5911
+ const _ = y("t-radio-button"), O = y("t-radio-group"), g = y("t-icon"), u = y("t-button"), f = y("t-dialog");
5912
+ return b(), H(f, {
5907
5913
  header: "筛选条件设置",
5908
5914
  placement: "center",
5909
5915
  visible: o.visible,
5910
- "onUpdate:visible": p[1] || (p[1] = (y) => z.$emit("update:visible", y)),
5916
+ "onUpdate:visible": k[1] || (k[1] = (m) => $.$emit("update:visible", m)),
5911
5917
  width: "700px",
5912
5918
  "z-index": 999,
5913
5919
  footer: !0,
5914
- onClose: Y,
5920
+ onClose: j,
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
+ i("div", je, [
5925
+ i("div", Ye, [
5926
+ i("div", Ge, [
5927
+ n.value.length > 1 ? (b(), A("div", We, [
5928
+ i("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": k[0] || (k[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(_, { value: "and" }, {
5938
+ default: a(() => [...k[2] || (k[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(_, { value: "or" }, {
5944
+ default: a(() => [...k[3] || (k[3] = [
5945
+ V("或", -1)
5940
5946
  ])]),
5941
5947
  _: 1
5942
5948
  })
@@ -5944,32 +5950,32 @@ const Ae = [
5944
5950
  _: 1
5945
5951
  }, 8, ["modelValue"])
5946
5952
  ])
5947
- ])) : 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,
5953
+ ])) : oe("", !0),
5954
+ i("div", Qe, [
5955
+ i("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
+ i("div", Ze, [
5961
+ i("div", Ie, [
5962
+ i("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(_, { value: "and" }, {
5971
+ default: a(() => [...k[4] || (k[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(_, { value: "or" }, {
5977
+ default: a(() => [...k[5] || (k[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
+ i("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, {
6004
+ e(Ue, {
5999
6005
  "field-options": o.fieldOptions,
6000
- "filter-condition": y.conditions[W],
6001
- index: W,
6006
+ "filter-condition": m.conditions[G],
6007
+ index: G,
6002
6008
  "select-options": [],
6003
6009
  size: o.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
+ i("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
+ k[6] || (k[6] = V(" 添加条件 ", -1))
6029
6035
  ]),
6030
6036
  _: 1
6031
6037
  }, 8, ["onClick"])
6032
6038
  ])
6033
6039
  ])
6034
6040
  ]))), 128)),
6035
- s("div", {
6041
+ i("div", {
6036
6042
  class: "add-filter-card",
6037
- onClick: i
6043
+ onClick: s
6038
6044
  }, [
6039
- s("div", Ze, [
6040
- e(F, { name: "add" }),
6041
- p[7] || (p[7] = s("span", null, "增加筛选卡片", -1))
6045
+ i("div", ta, [
6046
+ e(g, { name: "add" }),
6047
+ k[7] || (k[7] = i("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
+ i("div", na, [
6058
+ k[10] || (k[10] = i("div", { class: "filter-dialog-footer2" }, null, -1)),
6059
+ i("div", oa, [
6060
+ e(u, {
6055
6061
  theme: "default",
6056
- onClick: Y
6062
+ onClick: j
6057
6063
  }, {
6058
- default: l(() => [...p[8] || (p[8] = [
6059
- $("取消", -1)
6064
+ default: a(() => [...k[8] || (k[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(() => [...k[9] || (k[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(o, { emit: ae }) {
6132
+ const d = o, 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([]), s = re(() => d.isEditing && d.originalShareMode === "copy");
6138
+ ee(() => d.visible, (_) => {
6139
+ _ ? 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, (_) => {
6141
+ _ && (Z.value = _);
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 = (_) => {
6151
+ console.log("选中人员:", _), _.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((f) => f.id === g.id) || q.value.push(g);
6165
+ }), n.value.selectedUsers = q.value.map((g) => g.id);
6166
+ }, P = (_) => {
6167
+ v("load-users", _);
6168
+ }, N = (_) => {
6169
+ v("search", _);
6170
+ }, j = (_) => {
6171
+ v("dept-click", _);
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
+ }, k = () => {
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, {
6190
+ return (_, O) => {
6191
+ const g = y("t-input"), u = y("t-form-item"), f = 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(), H(le, {
6187
6193
  header: o.isEditing ? "编辑筛选方案" : "保存筛选方案",
6188
6194
  visible: o.visible,
6189
- "onUpdate:visible": k[3] || (k[3] = (K) => C.$emit("update:visible", K)),
6195
+ "onUpdate:visible": O[3] || (O[3] = (X) => _.$emit("update:visible", X)),
6190
6196
  width: "600px",
6191
6197
  footer: !0,
6192
- onConfirm: z,
6193
- onClose: p
6198
+ onConfirm: $,
6199
+ onClose: k
6194
6200
  }, {
6195
- body: l(() => [
6196
- s("div", na, [
6197
- e(R, {
6198
- data: t.value,
6201
+ body: a(() => [
6202
+ i("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),
6221
- disabled: i.value
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),
6227
+ disabled: s.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(f, { 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(f, { 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(f, { 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(), H(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(f, { 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(f, { value: "all" }, {
6279
+ default: a(() => [...O[8] || (O[8] = [
6280
+ V("所有用户", -1)
6275
6281
  ])]),
6276
6282
  _: 1
6277
6283
  })
@@ -6280,49 +6286,49 @@ const Ae = [
6280
6286
  }, 8, ["modelValue"])
6281
6287
  ]),
6282
6288
  _: 1
6283
- })) : ie("", !0),
6284
- t.value.shareMode === "share" && t.value.shareType === "specific" || t.value.shareMode === "copy" ? (f(), L(c, {
6289
+ })) : oe("", !0),
6290
+ n.value.shareMode === "share" && n.value.shareType === "specific" || n.value.shareMode === "copy" ? (b(), H(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
6300
  "person-tabs": o.tabs,
6295
6301
  "person-organizations": o.organizations,
6296
- "dept-members-data": Q.value,
6297
- onPersonSelect: H,
6298
- onLoadUsers: q,
6302
+ "dept-members-data": Z.value,
6303
+ onPersonSelect: K,
6304
+ onLoadUsers: P,
6299
6305
  onSearch: N,
6300
- onDeptClick: Y
6306
+ onDeptClick: j
6301
6307
  }, null, 8, ["users", "person-tabs", "person-organizations", "dept-members-data"])
6302
6308
  ]),
6303
6309
  _: 1
6304
- })) : ie("", !0)
6310
+ })) : oe("", !0)
6305
6311
  ]),
6306
6312
  _: 1
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: k
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
+ }, fa = { class: "filter-tab-content" }, pa = {
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" }, Ca = { class: "filter-card-header-left" }, ha = { class: "filter-card-title" }, ka = { class: "filter-card-content" }, _a = { class: "filter-card-actions" }, za = { class: "add-card-content" }, Fa = { class: "column-settings-panel" }, Oa = { class: "column-title-row" }, wa = { class: "column-title column-title-show" }, Va = { class: "column-list" }, Sa = ["onDragstart", "onDragover", "onDrop"], $a = { class: "column-name" }, Ua = { class: "column-show" }, xa = { class: "column-freeze" }, Da = { class: "column-width" }, Ea = { class: "column-sort-buttons" }, qa = { class: "filter-dialog-right" }, Aa = { class: "filter-plan-list" }, Pa = ["onClick"], Ta = { class: "plan-name" }, Na = { class: "filter-dialog-footer-container" }, Ba = { class: "filter-dialog-footer-left" }, Ma = { class: "filter-dialog-footer-right" }, Ja = {
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(o, { emit: ae }) {
6422
+ const d = o, v = ae, n = z(JSON.parse(JSON.stringify(d.filterCards))), q = z(d.topOp), Z = z(null), s = z(!1), T = z([]), K = z("filter"), P = z(!1), N = z(""), j = z("none"), $ = z("specific"), k = z([]), _ = 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
+ }, f = (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 h = "";
6451
+ return E.value !== null && E.value !== void 0 && (Array.isArray(E.value) ? h = E.value.join("/") : h = String(E.value)), {
6452
+ field: E.field.trim(),
6453
+ operator: E.operator || "eq",
6454
+ value: h
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
+ p.value = [...w, ...E], se.value = W.value.length === d.fieldOptions.length;
6473
+ const h = l.columns.filter((U) => U.show !== !1);
6474
+ v("column-change", h);
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, _.value = null, N.value = "", j.value = "none", $.value = "specific", k.value = [], s.value = !0;
6478
+ }, le = (l) => {
6479
+ const t = p.value.map((w) => {
6480
+ const E = c.value[w.value], h = 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: h
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 && _.value ? v("update-plan", {
6491
+ ...l,
6492
+ plan: _.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, _.value = null;
6502
+ }, X = (l) => {
6503
+ P.value = !0, _.value = l, N.value = l.content || "", j.value = l.shareMode || "none", $.value = l.shareType || "specific", k.value = l.selectedUsers || [], s.value = !0;
6504
+ }, ie = (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
+ }, pe = (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({}), p = z([]), x = z(null), Y = 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((h) => h.show !== !1).map((h) => h.value), l.forEach((h) => {
6544
+ h.width && (c.value[h.value] = parseInt(h.width)), h.freeze ? r.value[h.value] = h.freeze : r.value[h.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((h) => h.value), w = t.map(
6547
+ (h) => d.fieldOptions.find((U) => U.value === h)
6548
+ ).filter(Boolean), E = d.fieldOptions.filter(
6549
+ (h) => !t.includes(h.value)
6542
6550
  );
6543
- U.value = [..._, ...x];
6551
+ p.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((h) => h.value === E)
6556
+ ).filter(Boolean), w = d.fieldOptions.filter(
6557
+ (E) => !l.includes(E.value)
6550
6558
  );
6551
- U.value = [...n, ..._];
6559
+ p.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), p.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
+ p.value.length || (p.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 = p.value.map((t) => t.value) : W.value = [];
6579
+ }, Ce = (l) => {
6580
+ if (l > 0) {
6581
+ const t = p.value[l];
6582
+ p.value[l] = p.value[l - 1], p.value[l - 1] = t, p.value = [...p.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
+ }, he = (l) => {
6585
+ if (l < p.value.length - 1) {
6586
+ const t = p.value[l];
6587
+ p.value[l] = p.value[l + 1], p.value[l + 1] = t, p.value = [...p.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
+ }, ke = (l, t) => {
6590
+ x.value = l, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/html", t.target.innerHTML);
6591
+ }, _e = (l, t) => {
6592
+ t.preventDefault(), t.dataTransfer.dropEffect = "move", Y.value = l;
6593
+ }, ze = () => {
6594
+ x.value = null, Y.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 = [...p.value], h = E[w];
6601
+ E.splice(w, 1), E.splice(l, 0, h), p.value = E, x.value = null, Y.value = null;
6602
+ }, D = () => {
6603
+ const l = p.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"), h = 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"), fe = y("t-tooltip"), Ne = y("t-dialog");
6619
+ return b(), A(I, null, [
6620
+ e(Ne, {
6608
6621
  header: "方案设置",
6609
6622
  placement: "center",
6610
6623
  visible: o.visible,
6611
- "onUpdate:visible": n[4] || (n[4] = (v) => a.$emit("update:visible", v)),
6624
+ "onUpdate:visible": t[4] || (t[4] = (C) => l.$emit("update:visible", C)),
6612
6625
  width: o.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
+ i("div", ua, [
6633
+ i("div", ma, [
6634
+ i("div", ca, [
6635
+ i("div", va, [
6636
+ e(Te, {
6637
+ modelValue: K.value,
6638
+ "onUpdate:modelValue": t[2] || (t[2] = (C) => K.value = C),
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, {
6646
+ default: a(() => [
6647
+ i("div", fa, [
6648
+ n.value.length > 1 ? (b(), A("div", pa, [
6649
+ i("div", ya, [
6650
+ e(E, {
6638
6651
  size: o.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] = (C) => q.value = C)
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
  })
@@ -6657,31 +6670,31 @@ const Ae = [
6657
6670
  _: 1
6658
6671
  }, 8, ["size", "modelValue"])
6659
6672
  ])
6660
- ])) : ie("", !0),
6661
- s("div", ca, [
6662
- (f(!0), T(X, null, ne(t.value, (v, G) => (f(), T("div", {
6663
- key: v.id,
6673
+ ])) : oe("", !0),
6674
+ i("div", ba, [
6675
+ (b(!0), A(I, null, te(n.value, (C, Q) => (b(), A("div", {
6676
+ key: C.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, {
6679
+ i("div", ga, [
6680
+ i("div", Ca, [
6681
+ i("span", ha, "筛选卡片 " + me(Q + 1), 1),
6682
+ e(E, {
6670
6683
  size: o.size,
6671
- modelValue: v.connector,
6672
- "onUpdate:modelValue": (M) => v.connector = M,
6684
+ modelValue: C.connector,
6685
+ "onUpdate:modelValue": (M) => C.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
6708
  size: o.size,
6696
- onClick: (M) => c(G),
6697
- disabled: t.value.length === 1
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(h, { 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
+ i("div", ka, [
6719
+ (b(!0), A(I, null, te(C.conditions, (M, we) => (b(), A("div", {
6720
+ key: we,
6708
6721
  class: "filter-combination"
6709
6722
  }, [
6710
- e(ye, {
6723
+ e(Ue, {
6711
6724
  "field-options": o.fieldOptions,
6712
- "filter-condition": v.conditions[pe],
6725
+ "filter-condition": C.conditions[we],
6713
6726
  "select-options": o.selectOptions,
6714
6727
  size: o.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
6732
  size: o.size,
6720
- onClick: (Ha) => y(G, pe),
6721
- disabled: v.conditions.length === 1
6733
+ onClick: (ml) => m(Q, we),
6734
+ disabled: C.conditions.length === 1
6722
6735
  }, {
6723
- icon: l(() => [
6724
- e(b, { name: "minus" })
6736
+ icon: a(() => [
6737
+ e(h, { name: "minus" })
6725
6738
  ]),
6726
6739
  _: 1
6727
6740
  }, 8, ["size", "onClick", "disabled"])
6728
6741
  ]))), 128)),
6729
- s("div", ha, [
6730
- e(V, {
6742
+ i("div", _a, [
6743
+ e(U, {
6731
6744
  theme: "default",
6732
6745
  size: o.size,
6733
- onClick: (M) => m(G)
6746
+ onClick: (M) => f(Q)
6734
6747
  }, {
6735
- icon: l(() => [
6736
- e(b, { name: "add" })
6748
+ icon: a(() => [
6749
+ e(h, { 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
+ i("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
+ i("div", za, [
6764
+ e(h, { name: "add" }),
6765
+ t[11] || (t[11] = i("span", null, "增加筛选卡片", -1))
6753
6766
  ])
6754
6767
  ])
6755
6768
  ])
@@ -6757,93 +6770,118 @@ 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
+ i("div", Fa, [
6779
+ i("div", Oa, [
6780
+ t[13] || (t[13] = i("div", { class: "column-title column-title-name" }, "名称", -1)),
6781
+ i("div", wa, [
6782
+ e(xe, {
6783
+ modelValue: se.value,
6784
+ "onUpdate:modelValue": t[1] || (t[1] = (C) => se.value = C),
6785
+ onChange: ge
6786
+ }, null, 8, ["modelValue"]),
6787
+ t[12] || (t[12] = V(" 显示", -1))
6788
+ ]),
6789
+ t[14] || (t[14] = i("div", { class: "column-title column-title-width" }, "冻结列", -1)),
6790
+ t[15] || (t[15] = i("div", { class: "column-title column-title-width" }, "宽度", -1)),
6791
+ t[16] || (t[16] = i("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
+ i("div", Va, [
6794
+ (b(!0), A(I, null, te(p.value, (C, Q) => (b(), A("div", {
6795
+ key: C.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) => ke(Q, M),
6799
+ onDragover: (M) => _e(Q, M),
6800
+ onDragend: ze,
6801
+ onDrop: (M) => Fe(Q, M)
6793
6802
  }, [
6794
- s("div", za, [
6795
- e(b, {
6803
+ i("div", $a, [
6804
+ e(h, {
6796
6805
  name: "move",
6797
6806
  style: { cursor: "move", color: "#999", "margin-right": "8px" }
6798
6807
  }),
6799
- $(" " + de(v.label), 1)
6808
+ V(" " + me(C.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
+ i("div", Ua, [
6811
+ e(xe, {
6812
+ checked: W.value.includes(C.value),
6813
+ onChange: (M) => R(C.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
+ i("div", xa, [
6817
+ e(Ae, {
6818
+ modelValue: r.value[C.value],
6819
+ "onUpdate:modelValue": (M) => r.value[C.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
+ i("div", Da, [
6841
+ e(Pe, {
6842
+ modelValue: c.value[C.value],
6843
+ "onUpdate:modelValue": (M) => c.value[C.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
+ i("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) => Ce(Q),
6858
+ disabled: Q === 0
6827
6859
  }, {
6828
- icon: l(() => [
6829
- e(b, { name: "chevron-up" })
6860
+ icon: a(() => [
6861
+ e(h, {
6862
+ name: "chevron-up",
6863
+ style: { color: "#f60" }
6864
+ })
6830
6865
  ]),
6831
6866
  _: 1
6832
6867
  }, 8, ["onClick", "disabled"]),
6833
- e(V, {
6868
+ e(U, {
6834
6869
  theme: "default",
6835
6870
  variant: "text",
6836
6871
  size: "small",
6837
- onClick: (M) => Oe(G),
6838
- disabled: G === U.value.length - 1
6872
+ onClick: (M) => he(Q),
6873
+ disabled: Q === p.value.length - 1
6839
6874
  }, {
6840
- icon: l(() => [
6841
- e(b, { name: "chevron-down" })
6875
+ icon: a(() => [
6876
+ e(h, {
6877
+ name: "chevron-down",
6878
+ style: { color: "#f60" }
6879
+ })
6842
6880
  ]),
6843
6881
  _: 1
6844
6882
  }, 8, ["onClick", "disabled"])
6845
6883
  ])
6846
- ], 42, ka))), 128))
6884
+ ], 42, Sa))), 128))
6847
6885
  ])
6848
6886
  ])
6849
6887
  ]),
@@ -6853,40 +6891,40 @@ const Ae = [
6853
6891
  _: 1
6854
6892
  }, 8, ["modelValue"])
6855
6893
  ]),
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)
6894
+ i("div", qa, [
6895
+ t[17] || (t[17] = i("div", { class: "filter-plan-title" }, "我的方案", -1)),
6896
+ i("div", Aa, [
6897
+ (b(!0), A(I, null, te(o.planFilterOptions, (C) => {
6898
+ var Q;
6899
+ return b(), A("div", {
6900
+ key: C.value,
6901
+ class: Se(["filter-plan-item", { active: ((Q = Z.value) == null ? void 0 : Q.value) === C.value }]),
6902
+ onClick: (M) => J(C)
6865
6903
  }, [
6866
- e(b, {
6904
+ e(h, {
6867
6905
  name: "file-text",
6868
6906
  class: "plan-icon"
6869
6907
  }),
6870
- s("span", $a, de(v.content), 1),
6871
- s("div", {
6908
+ i("span", Ta, me(C.content), 1),
6909
+ i("div", {
6872
6910
  class: "plan-actions",
6873
- onClick: n[3] || (n[3] = ge(() => {
6911
+ onClick: t[3] || (t[3] = De(() => {
6874
6912
  }, ["stop"]))
6875
6913
  }, [
6876
- e(ce, {
6914
+ e(fe, {
6877
6915
  content: "编辑",
6878
6916
  placement: "top"
6879
6917
  }, {
6880
- default: l(() => [
6881
- e(V, {
6918
+ default: a(() => [
6919
+ e(U, {
6882
6920
  theme: "default",
6883
6921
  variant: "text",
6884
6922
  size: "small",
6885
- onClick: ge((M) => K(v), ["stop"]),
6886
- disabled: !v.value || v.value === "empty"
6923
+ onClick: De((M) => X(C), ["stop"]),
6924
+ disabled: !C.value || C.value === "empty"
6887
6925
  }, {
6888
- icon: l(() => [
6889
- e(b, {
6926
+ icon: a(() => [
6927
+ e(h, {
6890
6928
  name: "edit",
6891
6929
  style: { color: "#0052d9" }
6892
6930
  })
@@ -6896,22 +6934,22 @@ const Ae = [
6896
6934
  ]),
6897
6935
  _: 2
6898
6936
  }, 1024),
6899
- e(ce, {
6937
+ e(fe, {
6900
6938
  content: "设置为默认方案",
6901
6939
  placement: "top"
6902
6940
  }, {
6903
- default: l(() => [
6904
- e(V, {
6941
+ default: a(() => [
6942
+ e(U, {
6905
6943
  theme: "default",
6906
6944
  variant: "text",
6907
6945
  size: "small",
6908
- onClick: (M) => h(v),
6909
- disabled: !v.value || v.value === "empty"
6946
+ onClick: (M) => B(C),
6947
+ disabled: !C.value || C.value === "empty"
6910
6948
  }, {
6911
- icon: l(() => [
6912
- e(b, {
6913
- name: v.isDefault ? "check-circle-filled" : "check-circle",
6914
- style: Te({ color: v.isDefault ? "#0052d9" : "#bbb" })
6949
+ icon: a(() => [
6950
+ e(h, {
6951
+ name: C.isDefault ? "check-circle-filled" : "check-circle",
6952
+ style: $e({ color: C.isDefault ? "#0052d9" : "#bbb" })
6915
6953
  }, null, 8, ["name", "style"])
6916
6954
  ]),
6917
6955
  _: 2
@@ -6919,40 +6957,46 @@ const Ae = [
6919
6957
  ]),
6920
6958
  _: 2
6921
6959
  }, 1024),
6922
- e(ce, {
6960
+ e(fe, {
6923
6961
  content: "复制方案",
6924
6962
  placement: "top"
6925
6963
  }, {
6926
- default: l(() => [
6927
- e(V, {
6964
+ default: a(() => [
6965
+ e(U, {
6928
6966
  theme: "default",
6929
6967
  variant: "text",
6930
6968
  size: "small",
6931
- onClick: (M) => S(v),
6932
- disabled: !v.value || v.value === "empty"
6969
+ onClick: (M) => ie(C),
6970
+ disabled: !C.value || C.value === "empty"
6933
6971
  }, {
6934
- icon: l(() => [
6935
- e(b, { name: "file-copy" })
6972
+ icon: a(() => [
6973
+ e(h, {
6974
+ name: "file-copy",
6975
+ style: { color: "#ff9800" }
6976
+ })
6936
6977
  ]),
6937
6978
  _: 1
6938
6979
  }, 8, ["onClick", "disabled"])
6939
6980
  ]),
6940
6981
  _: 2
6941
6982
  }, 1024),
6942
- e(ce, {
6983
+ e(fe, {
6943
6984
  content: "删除方案",
6944
6985
  placement: "top"
6945
6986
  }, {
6946
- default: l(() => [
6947
- e(V, {
6987
+ default: a(() => [
6988
+ e(U, {
6948
6989
  theme: "default",
6949
6990
  variant: "text",
6950
6991
  size: "small",
6951
- onClick: (M) => oe(v),
6952
- disabled: !v.value || v.value === "empty"
6992
+ onClick: (M) => F(C),
6993
+ disabled: !C.value || C.value === "empty"
6953
6994
  }, {
6954
- icon: l(() => [
6955
- e(b, { name: "delete" })
6995
+ icon: a(() => [
6996
+ e(h, {
6997
+ name: "delete",
6998
+ style: { color: "#0052d9" }
6999
+ })
6956
7000
  ]),
6957
7001
  _: 1
6958
7002
  }, 8, ["onClick", "disabled"])
@@ -6960,7 +7004,7 @@ const Ae = [
6960
7004
  _: 2
6961
7005
  }, 1024)
6962
7006
  ])
6963
- ], 10, Ua);
7007
+ ], 10, Pa);
6964
7008
  }), 128))
6965
7009
  ])
6966
7010
  ])
@@ -6968,73 +7012,403 @@ const Ae = [
6968
7012
  ])
6969
7013
  ])
6970
7014
  ]),
6971
- footer: l(() => [
6972
- s("div", Fa, [
6973
- s("div", Da, [
6974
- e(V, {
6975
- theme: "default",
7015
+ footer: a(() => [
7016
+ i("div", Na, [
7017
+ i("div", Ba, [
7018
+ e(U, {
7019
+ theme: "warning",
6976
7020
  size: o.size,
6977
- onClick: W
7021
+ onClick: G
6978
7022
  }, {
6979
- icon: l(() => [
6980
- e(b, { name: "save" })
7023
+ icon: a(() => [
7024
+ e(h, { name: "save" })
6981
7025
  ]),
6982
- default: l(() => [
6983
- n[15] || (n[15] = $(" 保存方案 ", -1))
7026
+ default: a(() => [
7027
+ t[18] || (t[18] = V(" 保存方案 ", -1))
6984
7028
  ]),
6985
7029
  _: 1
6986
7030
  }, 8, ["size"])
6987
7031
  ]),
6988
- s("div", qa, [
6989
- e(V, {
7032
+ i("div", Ma, [
7033
+ e(U, {
6990
7034
  theme: "default",
6991
- onClick: d
7035
+ size: o.size,
7036
+ onClick: ne
6992
7037
  }, {
6993
- default: l(() => [...n[16] || (n[16] = [
6994
- $("重置", -1)
7038
+ default: a(() => [...t[19] || (t[19] = [
7039
+ V("重置", -1)
6995
7040
  ])]),
6996
7041
  _: 1
6997
- }),
6998
- e(V, {
7042
+ }, 8, ["size"]),
7043
+ e(U, {
6999
7044
  theme: "primary",
7000
- onClick: j
7045
+ size: o.size,
7046
+ onClick: L
7001
7047
  }, {
7002
- default: l(() => [...n[17] || (n[17] = [
7003
- $("确定", -1)
7048
+ default: a(() => [...t[20] || (t[20] = [
7049
+ V("确定", -1)
7004
7050
  ])]),
7005
7051
  _: 1
7006
- })
7052
+ }, 8, ["size"])
7007
7053
  ])
7008
7054
  ])
7009
7055
  ]),
7010
7056
  _: 1
7011
7057
  }, 8, ["visible", "width"]),
7012
- e(ta, {
7013
- visible: i.value,
7014
- "onUpdate:visible": n[5] || (n[5] = (v) => i.value = v),
7015
- "is-editing": q.value,
7058
+ e(da, {
7059
+ visible: s.value,
7060
+ "onUpdate:visible": t[5] || (t[5] = (C) => s.value = C),
7061
+ "is-editing": P.value,
7016
7062
  "plan-name": N.value,
7017
- "original-share-mode": Y.value,
7018
- "original-share-type": z.value,
7019
- "original-selected-users": p.value,
7063
+ "original-share-mode": j.value,
7064
+ "original-share-type": $.value,
7065
+ "original-selected-users": k.value,
7020
7066
  tabs: o.personTabs,
7021
7067
  organizations: o.personOrganizations,
7022
- "dept-members-data-prop": ee.value,
7068
+ "dept-members-data-prop": T.value,
7023
7069
  onConfirm: le,
7024
- onLoadUsers: E,
7025
- onSearch: A,
7026
- onDeptClick: fe
7070
+ onLoadUsers: pe,
7071
+ onSearch: ye,
7072
+ onDeptClick: be
7027
7073
  }, null, 8, ["visible", "is-editing", "plan-name", "original-share-mode", "original-share-type", "original-selected-users", "tabs", "organizations", "dept-members-data-prop"])
7028
7074
  ], 64);
7029
7075
  };
7030
7076
  }
7031
- }, Ta = /* @__PURE__ */ me(Pa, [["__scopeId", "data-v-dca13fd2"]]), Na = { class: "cd-filter-bar" }, Aa = {
7077
+ }, Ra = /* @__PURE__ */ ue(Ja, [["__scopeId", "data-v-fe40b048"]]), 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 = {
7078
+ key: 0,
7079
+ class: "bold-indicator"
7080
+ }, 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 = {
7081
+ __name: "ColorFilterDialog",
7082
+ props: {
7083
+ visible: { type: Boolean, default: !1 },
7084
+ fieldOptions: { type: Array, required: !0 },
7085
+ size: { type: String, default: "small" },
7086
+ initialRules: { type: Array, default: () => [] }
7087
+ },
7088
+ emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
7089
+ setup(o, { emit: ae }) {
7090
+ const d = o, v = ae, n = z(d.visible), q = [
7091
+ // 第一行 - 暖色系
7092
+ "#FFE7BA",
7093
+ "#FFD6E7",
7094
+ "#FFE5E5",
7095
+ "#FFF4E6",
7096
+ "#FFF9C4",
7097
+ "#FFE4CC",
7098
+ "#FFD9D9",
7099
+ "#FFEAA7",
7100
+ "#FFE0B2",
7101
+ "#FFCCBC",
7102
+ // 第二行 - 冷色系
7103
+ "#D4F1F4",
7104
+ "#E1F5FE",
7105
+ "#E0F2F1",
7106
+ "#E8F5E9",
7107
+ "#F1F8E9",
7108
+ "#E8E8FF",
7109
+ "#F3E5F5",
7110
+ "#E1BEE7",
7111
+ "#D1C4E9",
7112
+ "#C5CAE9",
7113
+ // 第三行 - 中性色系
7114
+ "#F0F0F0",
7115
+ "#E0E0E0",
7116
+ "#EEEEEE",
7117
+ "#F5F5F5",
7118
+ "#FAFAFA",
7119
+ "#ECEFF1",
7120
+ "#CFD8DC",
7121
+ "#B0BEC5",
7122
+ "#E7F5E8",
7123
+ "#F8F9FA"
7124
+ ], Z = [
7125
+ { label: "等于", value: "eq" },
7126
+ { label: "不等于", value: "ne" },
7127
+ { label: "大于", value: "gt" },
7128
+ { label: "大于等于", value: "gte" },
7129
+ { label: "小于", value: "lt" },
7130
+ { label: "小于等于", value: "lte" },
7131
+ { label: "包含", value: "contains" },
7132
+ { label: "不包含", value: "notContains" }
7133
+ ], s = {
7134
+ overlayInnerStyle: {
7135
+ width: "180px"
7136
+ }
7137
+ }, T = z([
7138
+ {
7139
+ field: "",
7140
+ operator: "eq",
7141
+ value: "",
7142
+ backgroundColor: "#FFE7BA",
7143
+ isBold: !1,
7144
+ showColorPicker: !1,
7145
+ applyTo: "cell"
7146
+ }
7147
+ ]);
7148
+ ee(() => d.visible, (g) => {
7149
+ n.value = g, g && d.initialRules.length > 0 && (T.value = JSON.parse(JSON.stringify(d.initialRules)).map((u) => ({
7150
+ ...u,
7151
+ showColorPicker: !1
7152
+ })));
7153
+ }), ee(n, (g) => {
7154
+ v("update:visible", g);
7155
+ });
7156
+ const K = (g, u) => {
7157
+ T.value[g].backgroundColor = u, T.value[g].showColorPicker = !1;
7158
+ }, P = () => {
7159
+ T.value.push({
7160
+ field: "",
7161
+ operator: "eq",
7162
+ value: "",
7163
+ backgroundColor: "#FFE7BA",
7164
+ isBold: !1,
7165
+ showColorPicker: !1,
7166
+ applyTo: "cell"
7167
+ });
7168
+ }, N = (g) => {
7169
+ T.value.length > 1 && T.value.splice(g, 1);
7170
+ }, j = () => {
7171
+ n.value = !1;
7172
+ }, $ = () => {
7173
+ v("clear"), n.value = !1;
7174
+ }, k = () => {
7175
+ const g = T.value.filter(
7176
+ (u) => u.field && u.operator && u.value
7177
+ ).map((u) => ({
7178
+ field: u.field,
7179
+ operator: u.operator,
7180
+ value: u.value,
7181
+ backgroundColor: u.backgroundColor,
7182
+ isBold: u.isBold,
7183
+ applyTo: u.applyTo
7184
+ }));
7185
+ v("confirm", g), n.value = !1;
7186
+ }, _ = re(() => {
7187
+ const g = T.value.length, u = Math.floor(q.length / g), f = [];
7188
+ for (let m = 0; m < g; m++) {
7189
+ const S = m * u % q.length;
7190
+ f.push(q[S]);
7191
+ }
7192
+ return f;
7193
+ }), O = () => {
7194
+ T.value.forEach((g, u) => {
7195
+ u < _.value.length && (g.backgroundColor = _.value[u]);
7196
+ }), v("smart-colors-change", _.value);
7197
+ };
7198
+ return (g, u) => {
7199
+ const f = 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"), ie = y("t-icon"), F = y("t-dialog");
7200
+ return b(), H(F, {
7201
+ visible: n.value,
7202
+ "onUpdate:visible": u[0] || (u[0] = (B) => n.value = B),
7203
+ width: "800px",
7204
+ "confirm-btn": null,
7205
+ "cancel-btn": null,
7206
+ onClose: j
7207
+ }, {
7208
+ header: a(() => [
7209
+ i("div", La, [
7210
+ u[3] || (u[3] = i("span", null, "颜色筛选", -1)),
7211
+ e(f, {
7212
+ theme: "primary",
7213
+ variant: "outline",
7214
+ size: "small",
7215
+ onClick: O
7216
+ }, {
7217
+ icon: a(() => [...u[1] || (u[1] = [
7218
+ i("i", { class: "ri-palette-line" }, null, -1)
7219
+ ])]),
7220
+ default: a(() => [
7221
+ u[2] || (u[2] = V(" 智能配色 ", -1))
7222
+ ]),
7223
+ _: 1
7224
+ })
7225
+ ])
7226
+ ]),
7227
+ body: a(() => [
7228
+ i("div", Ha, [
7229
+ i("div", ja, [
7230
+ (b(!0), A(I, null, te(T.value, (B, ne) => (b(), A("div", {
7231
+ key: ne,
7232
+ class: "color-rule-item"
7233
+ }, [
7234
+ i("div", Ya, [
7235
+ i("div", Ga, [
7236
+ e(S, {
7237
+ visible: B.showColorPicker,
7238
+ "onUpdate:visible": (L) => B.showColorPicker = L,
7239
+ placement: "bottom-left",
7240
+ trigger: "click"
7241
+ }, {
7242
+ content: a(() => [
7243
+ i("div", Qa, [
7244
+ i("div", Xa, [
7245
+ (b(), A(I, null, te(q, (L) => i("div", {
7246
+ key: L,
7247
+ class: Se(["preset-color-item", { active: B.backgroundColor === L }]),
7248
+ style: $e({ backgroundColor: L }),
7249
+ onClick: (ce) => K(ne, L)
7250
+ }, null, 14, Za)), 64))
7251
+ ]),
7252
+ i("div", Ia, [
7253
+ e(m, {
7254
+ modelValue: B.isBold,
7255
+ "onUpdate:modelValue": (L) => B.isBold = L
7256
+ }, {
7257
+ default: a(() => [...u[4] || (u[4] = [
7258
+ i("span", { class: "bold-text" }, "加粗", -1)
7259
+ ])]),
7260
+ _: 1
7261
+ }, 8, ["modelValue", "onUpdate:modelValue"])
7262
+ ])
7263
+ ])
7264
+ ]),
7265
+ default: a(() => [
7266
+ i("div", Wa, [
7267
+ i("div", {
7268
+ class: "color-block",
7269
+ style: $e({ backgroundColor: B.backgroundColor })
7270
+ }, [
7271
+ B.isBold ? (b(), A("span", Ka, "B")) : oe("", !0)
7272
+ ], 4)
7273
+ ])
7274
+ ]),
7275
+ _: 2
7276
+ }, 1032, ["visible", "onUpdate:visible"])
7277
+ ]),
7278
+ i("div", el, [
7279
+ e(G, {
7280
+ modelValue: B.applyTo,
7281
+ "onUpdate:modelValue": (L) => B.applyTo = L,
7282
+ size: o.size,
7283
+ variant: "default-filled"
7284
+ }, {
7285
+ default: a(() => [
7286
+ e(J, { value: "cell" }, {
7287
+ default: a(() => [...u[5] || (u[5] = [
7288
+ V("单元格", -1)
7289
+ ])]),
7290
+ _: 1
7291
+ }),
7292
+ e(J, { value: "row" }, {
7293
+ default: a(() => [...u[6] || (u[6] = [
7294
+ V("整行", -1)
7295
+ ])]),
7296
+ _: 1
7297
+ }),
7298
+ e(J, { value: "column" }, {
7299
+ default: a(() => [...u[7] || (u[7] = [
7300
+ V("整列", -1)
7301
+ ])]),
7302
+ _: 1
7303
+ })
7304
+ ]),
7305
+ _: 1
7306
+ }, 8, ["modelValue", "onUpdate:modelValue", "size"])
7307
+ ]),
7308
+ i("div", al, [
7309
+ e(le, {
7310
+ modelValue: B.field,
7311
+ "onUpdate:modelValue": (L) => B.field = L,
7312
+ options: o.fieldOptions,
7313
+ placeholder: "选择字段",
7314
+ size: o.size,
7315
+ style: { width: "120px", display: "inline-block" },
7316
+ "popup-props": s
7317
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "size"]),
7318
+ e(le, {
7319
+ modelValue: B.operator,
7320
+ "onUpdate:modelValue": (L) => B.operator = L,
7321
+ options: Z,
7322
+ placeholder: "选择操作符",
7323
+ size: o.size,
7324
+ style: { width: "120px" },
7325
+ "popup-props": s
7326
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
7327
+ e(X, {
7328
+ modelValue: B.value,
7329
+ "onUpdate:modelValue": (L) => B.value = L,
7330
+ placeholder: "输入值",
7331
+ size: o.size,
7332
+ style: { width: "200px" }
7333
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "size"])
7334
+ ])
7335
+ ]),
7336
+ e(f, {
7337
+ theme: "default",
7338
+ variant: "text",
7339
+ size: o.size,
7340
+ onClick: (L) => N(ne),
7341
+ disabled: T.value.length === 1
7342
+ }, {
7343
+ icon: a(() => [...u[8] || (u[8] = [
7344
+ i("i", { class: "ri-close-fill" }, null, -1)
7345
+ ])]),
7346
+ _: 1
7347
+ }, 8, ["size", "onClick", "disabled"])
7348
+ ]))), 128))
7349
+ ]),
7350
+ e(f, {
7351
+ theme: "default",
7352
+ variant: "dashed",
7353
+ size: o.size,
7354
+ onClick: P,
7355
+ style: { width: "100%", "margin-top": "12px" }
7356
+ }, {
7357
+ icon: a(() => [
7358
+ e(ie, { name: "add" })
7359
+ ]),
7360
+ default: a(() => [
7361
+ u[9] || (u[9] = V(" 添加规则 ", -1))
7362
+ ]),
7363
+ _: 1
7364
+ }, 8, ["size"])
7365
+ ])
7366
+ ]),
7367
+ footer: a(() => [
7368
+ i("div", ll, [
7369
+ e(f, {
7370
+ theme: "default",
7371
+ size: o.size,
7372
+ onClick: j
7373
+ }, {
7374
+ default: a(() => [...u[10] || (u[10] = [
7375
+ V("取消", -1)
7376
+ ])]),
7377
+ _: 1
7378
+ }, 8, ["size"]),
7379
+ e(f, {
7380
+ theme: "default",
7381
+ size: o.size,
7382
+ onClick: $
7383
+ }, {
7384
+ default: a(() => [...u[11] || (u[11] = [
7385
+ V("清除", -1)
7386
+ ])]),
7387
+ _: 1
7388
+ }, 8, ["size"]),
7389
+ e(f, {
7390
+ theme: "primary",
7391
+ size: o.size,
7392
+ onClick: k
7393
+ }, {
7394
+ default: a(() => [...u[12] || (u[12] = [
7395
+ V("确定", -1)
7396
+ ])]),
7397
+ _: 1
7398
+ }, 8, ["size"])
7399
+ ])
7400
+ ]),
7401
+ _: 1
7402
+ }, 8, ["visible"]);
7403
+ };
7404
+ }
7405
+ }, qe = /* @__PURE__ */ ue(tl, [["__scopeId", "data-v-822b291e"]]), nl = { class: "cd-filter-bar" }, ol = {
7032
7406
  key: 0,
7033
7407
  class: "inline-filter-toolbar"
7034
- }, Ma = {
7408
+ }, il = {
7035
7409
  key: 1,
7036
7410
  class: "plan-radio-group"
7037
- }, Ja = { class: "filter-action-buttons" }, Ea = { class: "save-plan-content" }, Ba = {
7411
+ }, sl = { class: "filter-action-buttons" }, rl = { class: "save-plan-content" }, dl = {
7038
7412
  __name: "cd-filter-bar",
7039
7413
  props: {
7040
7414
  fieldOptions: { type: Array, required: !0 },
@@ -7073,94 +7447,99 @@ const Ae = [
7073
7447
  "load-users",
7074
7448
  "search-persons",
7075
7449
  "dept-click",
7076
- "column-change"
7450
+ "column-change",
7451
+ "color-filter-change",
7452
+ "color-filter-clear",
7453
+ "keyword-change",
7454
+ "keyword-clear",
7455
+ "smart-colors-change"
7077
7456
  ],
7078
- setup(o, { emit: I }) {
7079
- const r = o, u = I, t = w([]), D = () => ({ field: "", operator: "eq", value: "" });
7457
+ setup(o, { emit: ae }) {
7458
+ const d = o, v = ae, n = z([]), q = () => ({ field: "", operator: "eq", value: "" });
7080
7459
  (() => {
7081
- var d, j;
7082
- if (r.filterCount === 0) {
7083
- t.value = [];
7460
+ var r, p;
7461
+ if (d.filterCount === 0) {
7462
+ n.value = [];
7084
7463
  return;
7085
7464
  }
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());
7465
+ const c = ((p = (r = d.filterCards) == null ? void 0 : r[0]) == null ? void 0 : p.conditions) || [];
7466
+ n.value = Array.from({ length: d.filterCount }, (x, Y) => c[Y] ? JSON.parse(JSON.stringify(c[Y])) : q());
7088
7467
  })();
7089
- const i = () => {
7090
- if (r.filterCount === 0) {
7091
- t.value = [];
7468
+ const s = () => {
7469
+ if (d.filterCount === 0) {
7470
+ n.value = [];
7092
7471
  return;
7093
7472
  }
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()));
7473
+ n.value = Array.from({ length: d.filterCount }, () => q());
7474
+ }, T = z("保存筛选方案"), K = z(!1), P = z(d.topOp), N = z(JSON.parse(JSON.stringify(d.filterCards)));
7475
+ ee(() => d.topOp, (c) => P.value = c), ee(() => d.filterCards, (c) => N.value = JSON.parse(JSON.stringify(c)));
7476
+ const j = z(null), $ = z(""), k = re(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), _ = (c) => {
7477
+ const r = d.planFilterOptions.find((p) => p.value === c);
7478
+ r && O(r);
7479
+ }, O = (c) => {
7480
+ if (!c.precepts || c.precepts.length === 0) return;
7481
+ if (j.value = c, $.value = c.value, N.value = JSON.parse(JSON.stringify(c.precepts)), P.value = c.sqlConnectType, d.filterCount > 0) {
7482
+ const x = c.precepts[0];
7483
+ x && x.conditions && (n.value = Array.from({ length: d.filterCount }, (Y, R) => x.conditions[R] ? JSON.parse(JSON.stringify(x.conditions[R])) : q()));
7105
7484
  }
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);
7485
+ const r = m(c.precepts), p = S(r, c.sqlConnectType);
7486
+ if (v("confirm", p), c.columns && c.columns.length > 0) {
7487
+ const x = c.columns.filter((Y) => Y.show !== !1);
7488
+ v("column-change", x);
7110
7489
  }
7111
- }, F = () => {
7112
- if (r.filterCount === 0) {
7113
- u("search", { conditions: { and: [] } });
7490
+ }, g = () => {
7491
+ if (d.filterCount === 0) {
7492
+ v("search", { conditions: { and: [] } });
7114
7493
  return;
7115
7494
  }
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
7495
+ const c = m([
7496
+ { id: 1, connector: P.value, conditions: n.value }
7497
+ ]), r = S(c, "and");
7498
+ v("search", r);
7499
+ }, u = () => {
7500
+ K.value = !0;
7501
+ }, f = () => {
7502
+ K.value = !1;
7503
+ }, m = (c) => c.map((r) => {
7504
+ const p = r.conditions.filter((x) => x.field && x.field.trim() !== "").map((x) => {
7505
+ let Y = "";
7506
+ return x.value !== null && x.value !== void 0 && (Array.isArray(x.value) ? Y = x.value.join("/") : Y = String(x.value)), {
7507
+ field: x.field.trim(),
7508
+ operator: x.operator || "eq",
7509
+ value: Y
7131
7510
  };
7132
7511
  });
7133
7512
  return {
7134
- ...d,
7135
- connector: d.connector || "and",
7136
- conditions: j.length > 0 ? j : [{ field: "", operator: "eq", value: "" }]
7513
+ ...r,
7514
+ connector: r.connector || "and",
7515
+ conditions: p.length > 0 ? p : [{ field: "", operator: "eq", value: "" }]
7137
7516
  };
7138
- }).filter((d) => d.conditions.length > 0 && d.conditions[0].field !== "");
7139
- function J(h, d) {
7140
- if (d !== "and" && d !== "or")
7517
+ }).filter((r) => r.conditions.length > 0 && r.conditions[0].field !== "");
7518
+ function S(c, r) {
7519
+ if (r !== "and" && r !== "or")
7141
7520
  throw new Error('type参数必须是"and"或"or"');
7142
- function j(A) {
7521
+ function p(R) {
7143
7522
  return {
7144
- [A.field]: {
7145
- [A.operator]: A.value
7523
+ [R.field]: {
7524
+ [R.operator]: R.value
7146
7525
  }
7147
7526
  };
7148
7527
  }
7149
- function P(A) {
7150
- return A.conditions.length === 1 ? j(A.conditions[0]) : {
7151
- [A.connector]: A.conditions.map(j)
7528
+ function x(R) {
7529
+ return R.conditions.length === 1 ? p(R.conditions[0]) : {
7530
+ [R.connector]: R.conditions.map(p)
7152
7531
  };
7153
7532
  }
7154
7533
  return {
7155
7534
  conditions: {
7156
- [d]: h.map(P)
7535
+ [r]: c.map(x)
7157
7536
  }
7158
7537
  };
7159
7538
  }
7160
- const R = () => {
7161
- S.value = !1;
7162
- }, W = () => {
7163
- i(), Y.value = null, z.value = "", N.value = [
7539
+ const J = () => {
7540
+ ie.value = !1;
7541
+ }, G = () => {
7542
+ s(), j.value = null, $.value = "", N.value = [
7164
7543
  {
7165
7544
  id: 1,
7166
7545
  connector: "and",
@@ -7169,183 +7548,217 @@ const Ae = [
7169
7548
  { field: "", operator: "eq", value: "" }
7170
7549
  ]
7171
7550
  }
7172
- ], q.value = "and", u("reset"), F();
7551
+ ], P.value = "and", v("reset"), g();
7173
7552
  }, 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 || []
7553
+ if (j.value) {
7554
+ const c = m(N.value);
7555
+ v("update-plan", {
7556
+ name: F.value.name,
7557
+ precepts: c,
7558
+ topOp: P.value,
7559
+ plan: j.value,
7560
+ columns: d.visibleColumns || []
7182
7561
  // 包含当前列配置
7183
7562
  });
7184
7563
  } 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 || []
7564
+ const c = m(N.value);
7565
+ v("save-plan", {
7566
+ name: F.value.name,
7567
+ precepts: c,
7568
+ topOp: P.value,
7569
+ plan: j.value,
7570
+ columns: d.visibleColumns || []
7192
7571
  // 包含当前列配置
7193
7572
  });
7194
7573
  }
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,
7574
+ J();
7575
+ }, X = (c) => {
7576
+ const r = S(c.filterCards, c.type1);
7577
+ v("confirm", r), d.filterCount > 0 && s(), f();
7578
+ }, ie = z(!1), F = z({ name: "" }), B = z(!1), ne = z([]), L = () => {
7579
+ B.value = !0;
7580
+ }, ce = (c) => {
7581
+ ne.value = c, v("color-filter-change", c);
7582
+ }, pe = () => {
7583
+ ne.value = [], v("color-filter-clear");
7584
+ };
7585
+ z("");
7586
+ const ye = (c) => {
7587
+ v("smart-colors-change", c);
7588
+ }, be = re(() => ne.value.filter((c) => c.field && c.operator && c.value).length), W = re(() => {
7589
+ const c = ne.value.filter((p) => p.field && p.operator && p.value);
7590
+ return c.length === 0 ? "颜色筛选" : `
7591
+ ${c.map((p) => {
7592
+ const x = d.fieldOptions.find((R) => R.value === p.field);
7593
+ return `${x ? x.label : p.field} ${se(p.operator)} ${p.value}`;
7594
+ }).join(`
7595
+ `)}`;
7596
+ }), se = (c) => ({
7597
+ eq: "等于",
7598
+ ne: "不等于",
7599
+ gt: "大于",
7600
+ gte: "大于等于",
7601
+ lt: "小于",
7602
+ lte: "小于等于",
7603
+ contains: "包含",
7604
+ notContains: "不包含"
7605
+ })[c] || c;
7606
+ return (c, r) => {
7607
+ const p = y("t-radio-button"), x = y("t-radio-group"), Y = y("t-icon"), R = y("t-button"), ge = y("t-badge"), Ce = y("t-tooltip"), he = y("t-dropdown"), ke = y("t-input"), _e = y("t-form-item"), ze = y("t-form"), Fe = y("t-dialog");
7608
+ return b(), A("div", nl, [
7609
+ o.filterCount > 0 ? (b(), A("div", ol, [
7610
+ (b(!0), A(I, null, te(n.value, (D, l) => (b(), H(Ue, {
7611
+ key: l,
7206
7612
  "field-options": o.fieldOptions,
7207
7613
  size: o.size,
7208
- "filter-condition": t.value[re],
7614
+ "filter-condition": n.value[l],
7209
7615
  "select-options": o.selectOptions
7210
7616
  }, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
7211
- ])) : 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),
7617
+ ])) : oe("", !0),
7618
+ o.filterCount === 0 && o.planFilterOptions.length > 0 ? (b(), A("div", il, [
7619
+ r[12] || (r[12] = i("span", { class: "plan-label" }, "我的方案:", -1)),
7620
+ e(x, {
7621
+ modelValue: $.value,
7622
+ "onUpdate:modelValue": r[0] || (r[0] = (D) => $.value = D),
7217
7623
  size: o.size,
7218
- onChange: C
7624
+ onChange: _
7219
7625
  }, {
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
7626
+ default: a(() => [
7627
+ (b(!0), A(I, null, te(o.planFilterOptions, (D) => (b(), H(p, {
7628
+ key: D.value,
7629
+ value: D.value,
7630
+ disabled: D.disabled
7225
7631
  }, {
7226
- default: l(() => [
7227
- $(de(O.content), 1)
7632
+ default: a(() => [
7633
+ V(me(D.content), 1)
7228
7634
  ]),
7229
7635
  _: 2
7230
7636
  }, 1032, ["value", "disabled"]))), 128))
7231
7637
  ]),
7232
7638
  _: 1
7233
7639
  }, 8, ["modelValue", "size"]),
7234
- e(A, {
7640
+ e(R, {
7235
7641
  theme: "default",
7236
7642
  variant: "outline",
7237
7643
  size: o.size,
7238
- onClick: c,
7644
+ onClick: u,
7239
7645
  title: "高级筛选"
7240
7646
  }, {
7241
- icon: l(() => [
7242
- e(E, { name: "filter" })
7647
+ icon: a(() => [
7648
+ e(Y, { name: "filter" })
7243
7649
  ]),
7244
7650
  _: 1
7245
7651
  }, 8, ["size"])
7246
- ])) : 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, {
7652
+ ])) : oe("", !0),
7653
+ i("div", sl, [
7654
+ o.filterCount > 0 ? (b(), H(R, {
7655
+ key: 0,
7260
7656
  theme: "primary",
7261
7657
  size: o.size,
7262
- onClick: W,
7263
- title: "重置"
7658
+ onClick: u,
7659
+ title: "高级筛选"
7264
7660
  }, {
7265
- icon: l(() => [
7266
- e(E, { name: "refresh" })
7661
+ icon: a(() => [
7662
+ e(Y, { name: "filter" })
7267
7663
  ]),
7268
7664
  _: 1
7269
- }, 8, ["size"]),
7270
- o.filterCount > 0 ? (f(), L(A, {
7271
- key: 0,
7272
- theme: "primary",
7273
- size: o.size,
7274
- onClick: c
7665
+ }, 8, ["size"])) : oe("", !0),
7666
+ o.filterCount > 0 ? (b(), H(Ce, {
7667
+ key: 1,
7668
+ content: W.value,
7669
+ placement: "top"
7275
7670
  }, {
7276
- icon: l(() => [
7277
- e(E, { name: "filter" })
7671
+ default: a(() => [
7672
+ e(ge, {
7673
+ count: be.value,
7674
+ "max-count": 99
7675
+ }, {
7676
+ default: a(() => [
7677
+ e(R, {
7678
+ theme: "primary",
7679
+ size: o.size,
7680
+ onClick: L
7681
+ }, {
7682
+ icon: a(() => [...r[13] || (r[13] = [
7683
+ i("i", { class: "ri-palette-fill" }, null, -1)
7684
+ ])]),
7685
+ _: 1
7686
+ }, 8, ["size"])
7687
+ ]),
7688
+ _: 1
7689
+ }, 8, ["count"])
7278
7690
  ]),
7279
7691
  _: 1
7280
- }, 8, ["size"])) : ie("", !0),
7281
- o.filterCount > 0 ? (f(), L(fe, {
7282
- key: 1,
7283
- options: p.value,
7284
- onClick: k
7692
+ }, 8, ["content"])) : oe("", !0),
7693
+ o.filterCount > 0 ? (b(), H(he, {
7694
+ key: 2,
7695
+ options: k.value,
7696
+ onClick: O,
7697
+ "overlay-class-name": "filter-dropdown"
7285
7698
  }, {
7286
- default: l(() => [
7287
- e(A, {
7699
+ default: a(() => [
7700
+ e(R, {
7288
7701
  theme: "primary",
7289
7702
  size: o.size,
7290
7703
  class: "margin-reset"
7291
7704
  }, {
7292
- suffix: l(() => [
7293
- e(E, { name: "chevron-down" })
7705
+ suffix: a(() => [
7706
+ e(Y, { name: "chevron-down" })
7294
7707
  ]),
7295
- default: l(() => [
7296
- d[12] || (d[12] = $(" 我的方案 ", -1))
7708
+ default: a(() => [
7709
+ r[14] || (r[14] = V(" 我的方案 ", -1))
7297
7710
  ]),
7298
7711
  _: 1
7299
7712
  }, 8, ["size"])
7300
7713
  ]),
7301
7714
  _: 1
7302
- }, 8, ["options"])) : ie("", !0)
7715
+ }, 8, ["options"])) : oe("", !0)
7303
7716
  ]),
7304
- e(Ta, {
7305
- visible: H.value,
7306
- "onUpdate:visible": d[1] || (d[1] = (O) => H.value = O),
7717
+ e(Ra, {
7718
+ visible: K.value,
7719
+ "onUpdate:visible": r[1] || (r[1] = (D) => K.value = D),
7307
7720
  "field-options": o.fieldOptions,
7308
7721
  "select-options": o.selectOptions,
7309
7722
  "plan-filter-options": o.planFilterOptions,
7310
7723
  "filter-cards": N.value,
7311
- "top-op": q.value,
7724
+ "top-op": P.value,
7312
7725
  size: o.size,
7313
7726
  "person-tabs": o.personTabs,
7314
7727
  "person-organizations": o.personOrganizations,
7315
7728
  "visible-columns": o.visibleColumns,
7316
7729
  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))
7730
+ onConfirm: X,
7731
+ onReset: G,
7732
+ onDeletePlan: r[2] || (r[2] = (D) => v("delete-plan", D)),
7733
+ onCopyPlan: r[3] || (r[3] = (D) => v("copy-plan", D)),
7734
+ onSetDefaultPlan: r[4] || (r[4] = (D) => v("set-default-plan", D)),
7735
+ onUpdatePlan: r[5] || (r[5] = (D) => v("update-plan", D)),
7736
+ onLoadUsers: r[6] || (r[6] = (D) => v("load-users", D)),
7737
+ onSearch: r[7] || (r[7] = (D) => v("search-persons", D)),
7738
+ onDeptClick: r[8] || (r[8] = (D) => v("dept-click", D)),
7739
+ onColumnChange: r[9] || (r[9] = (D) => v("column-change", D))
7327
7740
  }, 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,
7741
+ e(Fe, {
7742
+ header: T.value,
7743
+ visible: ie.value,
7331
7744
  width: "600px",
7332
- onClose: R
7745
+ onClose: J
7333
7746
  }, {
7334
- body: l(() => [
7335
- s("div", Ea, [
7336
- e(ae, {
7337
- data: oe.value,
7747
+ body: a(() => [
7748
+ i("div", rl, [
7749
+ e(ze, {
7750
+ data: F.value,
7338
7751
  "label-width": "100px"
7339
7752
  }, {
7340
- default: l(() => [
7341
- e(te, {
7753
+ default: a(() => [
7754
+ e(_e, {
7342
7755
  label: "方案名称",
7343
7756
  required: ""
7344
7757
  }, {
7345
- default: l(() => [
7346
- e(B, {
7347
- modelValue: oe.value.name,
7348
- "onUpdate:modelValue": d[10] || (d[10] = (O) => oe.value.name = O),
7758
+ default: a(() => [
7759
+ e(ke, {
7760
+ modelValue: F.value.name,
7761
+ "onUpdate:modelValue": r[10] || (r[10] = (D) => F.value.name = D),
7349
7762
  placeholder: "请输入筛选方案名称"
7350
7763
  }, null, 8, ["modelValue"])
7351
7764
  ]),
@@ -7356,38 +7769,49 @@ const Ae = [
7356
7769
  }, 8, ["data"])
7357
7770
  ])
7358
7771
  ]),
7359
- footer: l(() => [
7360
- e(A, {
7772
+ footer: a(() => [
7773
+ e(R, {
7361
7774
  theme: "default",
7362
- onClick: R
7775
+ onClick: J
7363
7776
  }, {
7364
- default: l(() => [...d[13] || (d[13] = [
7365
- $("取消", -1)
7777
+ default: a(() => [...r[15] || (r[15] = [
7778
+ V("取消", -1)
7366
7779
  ])]),
7367
7780
  _: 1
7368
7781
  }),
7369
- e(A, {
7782
+ e(R, {
7370
7783
  theme: "primary",
7371
7784
  onClick: le
7372
7785
  }, {
7373
- default: l(() => [...d[14] || (d[14] = [
7374
- $("确定", -1)
7786
+ default: a(() => [...r[16] || (r[16] = [
7787
+ V("确定", -1)
7375
7788
  ])]),
7376
7789
  _: 1
7377
7790
  })
7378
7791
  ]),
7379
7792
  _: 1
7380
- }, 8, ["header", "visible"])
7793
+ }, 8, ["header", "visible"]),
7794
+ e(qe, {
7795
+ visible: B.value,
7796
+ "onUpdate:visible": r[11] || (r[11] = (D) => B.value = D),
7797
+ "field-options": o.fieldOptions,
7798
+ size: o.size,
7799
+ "initial-rules": ne.value,
7800
+ onConfirm: ce,
7801
+ onClear: pe,
7802
+ onSmartColorsChange: ye
7803
+ }, null, 8, ["visible", "field-options", "size", "initial-rules"])
7381
7804
  ]);
7382
7805
  };
7383
7806
  }
7384
- }, La = /* @__PURE__ */ me(Ba, [["__scopeId", "data-v-73f9d558"]]), Ga = (o) => {
7385
- o.component("FilterDialog", Ce), o.component("FilterComponent", Ce), o.component("CdFilterBar", La);
7807
+ }, ul = /* @__PURE__ */ ue(dl, [["__scopeId", "data-v-4cfceac5"]]), pl = (o) => {
7808
+ o.component("FilterDialog", Ee), o.component("FilterComponent", Ee), o.component("CdFilterBar", ul), o.component("ColorFilterDialog", qe);
7386
7809
  };
7387
7810
  export {
7388
- La as CdFilterBar,
7389
- Ce as FilterComponent,
7390
- Ce as FilterDialog,
7391
- Ce as default,
7392
- Ga as install
7811
+ ul as CdFilterBar,
7812
+ qe as ColorFilterDialog,
7813
+ Ee as FilterComponent,
7814
+ Ee as FilterDialog,
7815
+ Ee as default,
7816
+ pl as install
7393
7817
  };