cd-vue-filter 2.3.3 → 2.3.4

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