cd-vue-filter 2.4.1 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,6 @@
1
- import { defineComponent as Ae, ref as b, watch as ne, resolveComponent as p, createBlock as G, openBlock as g, withCtx as l, createElementVNode as r, createVNode as a, createCommentVNode as oe, createTextVNode as $, computed as ue, createElementBlock as R, Fragment as le, renderList as se, nextTick as be, toDisplayString as pe, unref as Re, normalizeClass as Se, withModifiers as De, normalizeStyle as xe } from "vue";
2
- import { MessagePlugin as fe } from "tdesign-vue-next";
3
- import { CdUsersList as Je } from "cd-usercard";
4
- const je = [
1
+ import { defineComponent as ye, ref as _, watch as G, resolveComponent as F, openBlock as g, createBlock as J, withCtx as r, createElementVNode as s, createVNode as o, createTextVNode as T, createCommentVNode as W, computed as ee, createElementBlock as B, Fragment as Q, renderList as Z, nextTick as re, toDisplayString as te, normalizeStyle as de, normalizeClass as ue, renderSlot as we, withDirectives as $e, vShow as Ve } from "vue";
2
+ import { MessagePlugin as se } from "tdesign-vue-next";
3
+ const Se = [
5
4
  {
6
5
  name: "北京市",
7
6
  city: [{
@@ -5528,7 +5527,7 @@ const je = [
5528
5527
  }
5529
5528
  ]
5530
5529
  }
5531
- ], Le = { class: "relation-select-dialog" }, Ie = { class: "search-bar" }, Te = 20, He = /* @__PURE__ */ Ae({
5530
+ ], xe = { class: "relation-select-dialog" }, De = { class: "search-bar" }, fe = 20, Ae = /* @__PURE__ */ ye({
5532
5531
  __name: "RelationSelectDialog",
5533
5532
  props: {
5534
5533
  visible: { type: Boolean },
@@ -5538,182 +5537,182 @@ const je = [
5538
5537
  dialogTitle: {}
5539
5538
  },
5540
5539
  emits: ["update:visible", "select"],
5541
- setup(s, { emit: te }) {
5542
- const d = s, f = te, i = b(""), D = b(!1), ee = b([]), t = b([]), M = b(0), L = b(1), N = b([]), B = b(null), I = b([]), S = /* @__PURE__ */ new Map();
5543
- function z() {
5544
- f("update:visible", !1), h();
5540
+ setup(i, { emit: Y }) {
5541
+ const d = i, k = Y, m = _(""), x = _(!1), I = _([]), e = _([]), $ = _(0), j = _(1), P = _([]), q = _(null), R = _([]), w = /* @__PURE__ */ new Map();
5542
+ function O() {
5543
+ k("update:visible", !1), N();
5545
5544
  }
5546
- function h() {
5547
- i.value = "", L.value = 1, N.value = [], B.value = null, ee.value = [];
5545
+ function N() {
5546
+ m.value = "", j.value = 1, P.value = [], q.value = null, I.value = [];
5548
5547
  }
5549
- function x(V, F) {
5550
- if (V.length > 0) {
5551
- const E = V[V.length - 1];
5552
- N.value = [E], B.value = ee.value.find((m) => m.id === E) || null;
5548
+ function K(a, p) {
5549
+ if (a.length > 0) {
5550
+ const C = a[a.length - 1];
5551
+ P.value = [C], q.value = I.value.find((l) => l.id === C) || null;
5553
5552
  } else
5554
- N.value = [], B.value = null;
5553
+ P.value = [], q.value = null;
5555
5554
  }
5556
- function C() {
5557
- if (!B.value) return;
5558
- const V = B.value;
5559
- let F = "";
5560
- const E = d.formType || (d.fieldType === "billdata" ? "form" : "basic");
5561
- if (E === "basic" || E === "tree" ? F = V.fname || "" : F = V.fbillno || "", !F && I.value.length > 0) {
5562
- const m = I.value[0];
5563
- F = V[m.__vModel__] || "";
5555
+ function D() {
5556
+ if (!q.value) return;
5557
+ const a = q.value;
5558
+ let p = "";
5559
+ const C = d.formType || (d.fieldType === "billdata" ? "form" : "basic");
5560
+ if (C === "basic" || C === "tree" ? p = a.fname || "" : p = a.fbillno || "", !p && R.value.length > 0) {
5561
+ const l = R.value[0];
5562
+ p = a[l.__vModel__] || "";
5564
5563
  }
5565
- f("select", { id: V.id, displayName: F }), f("update:visible", !1), h();
5564
+ k("select", { id: a.id, displayName: p }), k("update:visible", !1), N();
5566
5565
  }
5567
- function c(V) {
5568
- const F = [];
5569
- for (const E of V) {
5570
- if (!E) continue;
5571
- const m = E.__config__ || {};
5572
- m.noShow || m.jnpfKey === "divider" || m.jnpfKey === "table" || m.jnpfKey === "vxeSubGrid" || (m.children && Array.isArray(m.children) ? F.push(...c(m.children)) : F.push(E));
5566
+ function c(a) {
5567
+ const p = [];
5568
+ for (const C of a) {
5569
+ if (!C) continue;
5570
+ const l = C.__config__ || {};
5571
+ l.noShow || l.jnpfKey === "divider" || l.jnpfKey === "table" || l.jnpfKey === "vxeSubGrid" || (l.children && Array.isArray(l.children) ? p.push(...c(l.children)) : p.push(C));
5573
5572
  }
5574
- return F;
5573
+ return p;
5575
5574
  }
5576
- async function J() {
5577
- var V;
5575
+ async function f() {
5576
+ var a;
5578
5577
  if (d.releaseId) {
5579
- if (S.has(d.releaseId)) {
5580
- const F = S.get(d.releaseId);
5581
- I.value = F.fields, t.value = F.columns;
5578
+ if (w.has(d.releaseId)) {
5579
+ const p = w.get(d.releaseId);
5580
+ R.value = p.fields, e.value = p.columns;
5582
5581
  return;
5583
5582
  }
5584
5583
  try {
5585
- const E = await (await fetch(`/api/visualdev/OnlineDev/${d.releaseId}/Config`, {
5584
+ const C = await (await fetch(`/api/visualdev/OnlineDev/${d.releaseId}/Config`, {
5586
5585
  credentials: "include"
5587
- })).json(), m = (V = E.data) != null && V.formData ? JSON.parse(E.data.formData) : null;
5588
- if (!(m != null && m.fields)) return;
5589
- const u = c(m.fields);
5590
- I.value = u;
5591
- const y = u.slice(0, 6).map((K) => {
5592
- var _;
5586
+ })).json(), l = (a = C.data) != null && a.formData ? JSON.parse(C.data.formData) : null;
5587
+ if (!(l != null && l.fields)) return;
5588
+ const t = c(l.fields);
5589
+ R.value = t;
5590
+ const y = t.slice(0, 6).map((z) => {
5591
+ var h;
5593
5592
  return {
5594
- colKey: K.__vModel__,
5595
- title: ((_ = K.__config__) == null ? void 0 : _.label) || K.__vModel__,
5593
+ colKey: z.__vModel__,
5594
+ title: ((h = z.__config__) == null ? void 0 : h.label) || z.__vModel__,
5596
5595
  ellipsis: !0,
5597
5596
  width: 140
5598
5597
  };
5599
5598
  });
5600
- t.value = [
5599
+ e.value = [
5601
5600
  { colKey: "row-select", type: "single", width: 50 },
5602
5601
  ...y
5603
- ], S.set(d.releaseId, { fields: u, columns: t.value });
5604
- } catch (F) {
5605
- console.error("[RelationSelectDialog] fetchConfig error:", F);
5602
+ ], w.set(d.releaseId, { fields: t, columns: e.value });
5603
+ } catch (p) {
5604
+ console.error("[RelationSelectDialog] fetchConfig error:", p);
5606
5605
  }
5607
5606
  }
5608
5607
  }
5609
- async function j() {
5610
- var V, F, E;
5608
+ async function n() {
5609
+ var a, p, C;
5611
5610
  if (d.releaseId) {
5612
- D.value = !0;
5611
+ x.value = !0;
5613
5612
  try {
5614
- const m = { currentPage: L.value, pageSize: Te };
5615
- i.value.trim() && (m.keyword = i.value.trim());
5613
+ const l = { currentPage: j.value, pageSize: fe };
5614
+ m.value.trim() && (l.keyword = m.value.trim());
5616
5615
  const y = await (await fetch(`/api/visualdev/OnlineDev/list/${d.releaseId}`, {
5617
5616
  method: "POST",
5618
5617
  credentials: "include",
5619
5618
  headers: { "Content-Type": "application/json" },
5620
- body: JSON.stringify(m)
5621
- })).json(), K = ((V = y.data) == null ? void 0 : V.list) || [];
5622
- ee.value = K.map((_) => {
5623
- const ie = { id: _.id };
5624
- if (_.data)
5619
+ body: JSON.stringify(l)
5620
+ })).json(), z = ((a = y.data) == null ? void 0 : a.list) || [];
5621
+ I.value = z.map((h) => {
5622
+ const L = { id: h.id };
5623
+ if (h.data)
5625
5624
  try {
5626
- const de = typeof _.data == "string" ? JSON.parse(_.data) : _.data;
5627
- Object.assign(ie, de);
5625
+ const X = typeof h.data == "string" ? JSON.parse(h.data) : h.data;
5626
+ Object.assign(L, X);
5628
5627
  } catch {
5629
5628
  }
5630
- return Object.assign(ie, _), ie;
5631
- }), M.value = ((E = (F = y.data) == null ? void 0 : F.pagination) == null ? void 0 : E.total) || 0;
5632
- } catch (m) {
5633
- console.error("[RelationSelectDialog] fetchData error:", m);
5629
+ return Object.assign(L, h), L;
5630
+ }), $.value = ((C = (p = y.data) == null ? void 0 : p.pagination) == null ? void 0 : C.total) || 0;
5631
+ } catch (l) {
5632
+ console.error("[RelationSelectDialog] fetchData error:", l);
5634
5633
  } finally {
5635
- D.value = !1;
5634
+ x.value = !1;
5636
5635
  }
5637
5636
  }
5638
5637
  }
5639
- function H() {
5640
- L.value = 1, j();
5638
+ function U() {
5639
+ j.value = 1, n();
5641
5640
  }
5642
- function X(V) {
5643
- L.value = V, j();
5641
+ function v(a) {
5642
+ j.value = a, n();
5644
5643
  }
5645
- return ne(() => d.visible, (V) => {
5646
- V && d.releaseId && J().then(() => j());
5647
- }), (V, F) => {
5648
- const E = p("t-input"), m = p("t-button"), u = p("t-table"), y = p("t-pagination"), K = p("t-dialog");
5649
- return g(), G(K, {
5650
- visible: s.visible,
5651
- header: s.dialogTitle || "选择关联数据",
5644
+ return G(() => d.visible, (a) => {
5645
+ a && d.releaseId && f().then(() => n());
5646
+ }), (a, p) => {
5647
+ const C = F("t-input"), l = F("t-button"), t = F("t-table"), y = F("t-pagination"), z = F("t-dialog");
5648
+ return g(), J(z, {
5649
+ visible: i.visible,
5650
+ header: i.dialogTitle || "选择关联数据",
5652
5651
  width: 900,
5653
5652
  footer: !0,
5654
- onClose: z,
5655
- onConfirm: C,
5653
+ onClose: O,
5654
+ onConfirm: D,
5656
5655
  attach: ".cd-form-select-modal",
5657
5656
  "close-on-overlay-click": !1
5658
5657
  }, {
5659
- default: l(() => [
5660
- r("div", Le, [
5661
- r("div", Ie, [
5662
- a(E, {
5663
- modelValue: i.value,
5664
- "onUpdate:modelValue": F[0] || (F[0] = (_) => i.value = _),
5658
+ default: r(() => [
5659
+ s("div", xe, [
5660
+ s("div", De, [
5661
+ o(C, {
5662
+ modelValue: m.value,
5663
+ "onUpdate:modelValue": p[0] || (p[0] = (h) => m.value = h),
5665
5664
  placeholder: "请输入关键字搜索",
5666
5665
  clearable: "",
5667
- onEnter: H,
5666
+ onEnter: U,
5668
5667
  style: { width: "260px" }
5669
5668
  }, null, 8, ["modelValue"]),
5670
- a(m, {
5669
+ o(l, {
5671
5670
  theme: "primary",
5672
- onClick: H
5671
+ onClick: U
5673
5672
  }, {
5674
- icon: l(() => [...F[2] || (F[2] = [
5675
- r("i", { class: "ri-search-line" }, null, -1)
5673
+ icon: r(() => [...p[2] || (p[2] = [
5674
+ s("i", { class: "ri-search-line" }, null, -1)
5676
5675
  ])]),
5677
- default: l(() => [
5678
- F[3] || (F[3] = $(" 搜索 ", -1))
5676
+ default: r(() => [
5677
+ p[3] || (p[3] = T(" 搜索 ", -1))
5679
5678
  ]),
5680
5679
  _: 1
5681
5680
  })
5682
5681
  ]),
5683
- a(u, {
5684
- data: ee.value,
5685
- columns: t.value,
5686
- loading: D.value,
5682
+ o(t, {
5683
+ data: I.value,
5684
+ columns: e.value,
5685
+ loading: x.value,
5687
5686
  "row-key": "id",
5688
- "selected-row-keys": N.value,
5689
- onSelectChange: x,
5687
+ "selected-row-keys": P.value,
5688
+ onSelectChange: K,
5690
5689
  "max-height": 400,
5691
5690
  size: "small",
5692
5691
  style: { "margin-top": "12px" }
5693
5692
  }, null, 8, ["data", "columns", "loading", "selected-row-keys"]),
5694
- M.value > 0 ? (g(), G(y, {
5693
+ $.value > 0 ? (g(), J(y, {
5695
5694
  key: 0,
5696
- current: L.value,
5697
- "onUpdate:current": F[1] || (F[1] = (_) => L.value = _),
5698
- total: M.value,
5699
- "page-size": Te,
5695
+ current: j.value,
5696
+ "onUpdate:current": p[1] || (p[1] = (h) => j.value = h),
5697
+ total: $.value,
5698
+ "page-size": fe,
5700
5699
  "show-jumper": !0,
5701
5700
  size: "small",
5702
5701
  style: { "margin-top": "12px", "text-align": "right" },
5703
- onCurrentChange: X
5704
- }, null, 8, ["current", "total"])) : oe("", !0)
5702
+ onCurrentChange: v
5703
+ }, null, 8, ["current", "total"])) : W("", !0)
5705
5704
  ])
5706
5705
  ]),
5707
5706
  _: 1
5708
5707
  }, 8, ["visible", "header"]);
5709
5708
  };
5710
5709
  }
5711
- }), me = (s, te) => {
5712
- const d = s.__vccOpts || s;
5713
- for (const [f, i] of te)
5714
- d[f] = i;
5710
+ }), ae = (i, Y) => {
5711
+ const d = i.__vccOpts || i;
5712
+ for (const [k, m] of Y)
5713
+ d[k] = m;
5715
5714
  return d;
5716
- }, Ke = /* @__PURE__ */ me(He, [["__scopeId", "data-v-de9d6482"]]), Ye = { class: "filter-component" }, Ge = /* @__PURE__ */ Ae({
5715
+ }, Ee = /* @__PURE__ */ ae(Ae, [["__scopeId", "data-v-de9d6482"]]), Ue = { class: "filter-component" }, qe = /* @__PURE__ */ ye({
5717
5716
  __name: "FilterComponent",
5718
5717
  props: {
5719
5718
  fieldOptions: {},
@@ -5722,29 +5721,29 @@ const je = [
5722
5721
  size: {}
5723
5722
  },
5724
5723
  emits: ["search"],
5725
- setup(s, { emit: te }) {
5726
- var V, F, E;
5727
- const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], f = ue(() => je.map((m) => d.includes(m.name) ? {
5728
- label: m.name,
5729
- value: m.name,
5730
- children: m.city[0].area.map((u) => ({
5731
- label: u,
5732
- value: `${m.name}/${u}`,
5724
+ setup(i, { emit: Y }) {
5725
+ var a, p, C;
5726
+ const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], k = ee(() => Se.map((l) => d.includes(l.name) ? {
5727
+ label: l.name,
5728
+ value: l.name,
5729
+ children: l.city[0].area.map((t) => ({
5730
+ label: t,
5731
+ value: `${l.name}/${t}`,
5733
5732
  children: void 0
5734
5733
  }))
5735
5734
  } : {
5736
- label: m.name,
5737
- value: m.name,
5738
- children: m.city.map((u) => ({
5739
- label: u.name,
5740
- value: `${m.name}/${u.name}`,
5741
- children: u.area.map((y) => ({
5735
+ label: l.name,
5736
+ value: l.name,
5737
+ children: l.city.map((t) => ({
5738
+ label: t.name,
5739
+ value: `${l.name}/${t.name}`,
5740
+ children: t.area.map((y) => ({
5742
5741
  label: y,
5743
- value: `${m.name}/${u.name}/${y}`,
5742
+ value: `${l.name}/${t.name}/${y}`,
5744
5743
  children: void 0
5745
5744
  }))
5746
5745
  }))
5747
- })), i = (m) => [
5746
+ })), m = (l) => [
5748
5747
  "today",
5749
5748
  "yesterday",
5750
5749
  "tomorrow",
@@ -5757,59 +5756,59 @@ const je = [
5757
5756
  "this_year",
5758
5757
  "last_year",
5759
5758
  "next_year"
5760
- ].includes(m), D = (m) => {
5761
- if (t.selectOptions && t.selectOptions[m])
5762
- return t.selectOptions[m];
5763
- if (t.selectOptions && Array.isArray(t.selectOptions)) {
5764
- const u = t.selectOptions.find(
5765
- (y) => y.columnName === m
5759
+ ].includes(l), x = (l) => {
5760
+ if (e.selectOptions && e.selectOptions[l])
5761
+ return e.selectOptions[l];
5762
+ if (e.selectOptions && Array.isArray(e.selectOptions)) {
5763
+ const t = e.selectOptions.find(
5764
+ (y) => y.columnName === l
5766
5765
  );
5767
- if (u && u.value)
5768
- return ee(u.value.map((y) => ({
5766
+ if (t && t.value)
5767
+ return I(t.value.map((y) => ({
5769
5768
  label: y,
5770
5769
  value: y
5771
5770
  })));
5772
5771
  }
5773
5772
  return [];
5774
5773
  };
5775
- function ee(m) {
5776
- return [...m].sort((u, y) => u.value.localeCompare(y.value, "zh-CN"));
5774
+ function I(l) {
5775
+ return [...l].sort((t, y) => t.value.localeCompare(y.value, "zh-CN"));
5777
5776
  }
5778
- const t = s, M = te, L = b({
5779
- field: ((V = t.filterCondition) == null ? void 0 : V.field) || "",
5780
- operator: ((F = t.filterCondition) == null ? void 0 : F.operator) || "eq",
5781
- value: ((E = t.filterCondition) == null ? void 0 : E.value) || null
5777
+ const e = i, $ = Y, j = _({
5778
+ field: ((a = e.filterCondition) == null ? void 0 : a.field) || "",
5779
+ operator: ((p = e.filterCondition) == null ? void 0 : p.operator) || "eq",
5780
+ value: ((C = e.filterCondition) == null ? void 0 : C.value) || null
5782
5781
  });
5783
- ne(() => t.filterCondition, (m) => {
5784
- m && (L.value = { ...m });
5782
+ G(() => e.filterCondition, (l) => {
5783
+ l && (j.value = { ...l });
5785
5784
  }, { deep: !0 });
5786
- const N = (m) => {
5787
- const u = t.fieldOptions.find((y) => y.value === m);
5788
- return u ? u.type : "text";
5789
- }, B = () => {
5790
- typeof t.filterCondition.value == "string" && (t.filterCondition.value = t.filterCondition.value.trim()), be(() => {
5791
- M("search", { ...t.filterCondition });
5785
+ const P = (l) => {
5786
+ const t = e.fieldOptions.find((y) => y.value === l);
5787
+ return t ? t.type : "text";
5788
+ }, q = () => {
5789
+ typeof e.filterCondition.value == "string" && (e.filterCondition.value = e.filterCondition.value.trim()), re(() => {
5790
+ $("search", { ...e.filterCondition });
5792
5791
  });
5793
- }, I = () => {
5794
- (t.filterCondition.operator === "is_empty" || t.filterCondition.operator === "is_not_empty") && (t.filterCondition.value = null), be(() => {
5795
- M("search", { ...t.filterCondition });
5792
+ }, R = () => {
5793
+ (e.filterCondition.operator === "is_empty" || e.filterCondition.operator === "is_not_empty") && (e.filterCondition.value = null), re(() => {
5794
+ $("search", { ...e.filterCondition });
5796
5795
  });
5797
- }, S = (m) => {
5798
- t.filterCondition.value = m, M("search", { ...t.filterCondition });
5799
- }, z = b(!1), h = b(null), x = b("basedata"), C = (m) => {
5800
- const u = t.fieldOptions.find((y) => y.value === m);
5801
- return !!u && (u.type === "basedata" || u.type === "billdata") && !!u.relationConfig;
5802
- }, c = (m) => m === "is_empty" || m === "is_not_empty", J = (m) => {
5803
- const u = t.fieldOptions.find((y) => y.value === m);
5804
- u != null && u.relationConfig && (h.value = u.relationConfig, x.value = u.type === "billdata" ? "billdata" : "basedata", z.value = !0);
5805
- }, j = (m) => {
5806
- t.filterCondition.value = m.displayName, be(() => {
5807
- M("search", { ...t.filterCondition });
5796
+ }, w = (l) => {
5797
+ e.filterCondition.value = l, $("search", { ...e.filterCondition });
5798
+ }, O = _(!1), N = _(null), K = _("basedata"), D = (l) => {
5799
+ const t = e.fieldOptions.find((y) => y.value === l);
5800
+ return !!t && (t.type === "basedata" || t.type === "billdata") && !!t.relationConfig;
5801
+ }, c = (l) => l === "is_empty" || l === "is_not_empty", f = (l) => {
5802
+ const t = e.fieldOptions.find((y) => y.value === l);
5803
+ t != null && t.relationConfig && (N.value = t.relationConfig, K.value = t.type === "billdata" ? "billdata" : "basedata", O.value = !0);
5804
+ }, n = (l) => {
5805
+ e.filterCondition.value = l.displayName, re(() => {
5806
+ $("search", { ...e.filterCondition });
5808
5807
  });
5809
- }, H = ue(() => {
5808
+ }, U = ee(() => {
5810
5809
  var y;
5811
- const m = t.filterCondition.field;
5812
- switch (((y = t.fieldOptions.find((K) => K.value === m)) == null ? void 0 : y.type) || "text") {
5810
+ const l = e.filterCondition.field;
5811
+ switch (((y = e.fieldOptions.find((z) => z.value === l)) == null ? void 0 : y.type) || "text") {
5813
5812
  case "number":
5814
5813
  return [
5815
5814
  { key: "eq", label: "等于", value: "eq" },
@@ -5895,183 +5894,188 @@ const je = [
5895
5894
  { key: "not_contains_with_empty", label: "不包含(含空)", value: "not_contains_with_empty" }
5896
5895
  ];
5897
5896
  }
5898
- }), X = () => {
5899
- be(() => {
5900
- M("search", { ...t.filterCondition });
5897
+ }), v = () => {
5898
+ re(() => {
5899
+ $("search", { ...e.filterCondition });
5901
5900
  });
5902
5901
  };
5903
- return ne(() => t.filterCondition.field, (m, u) => {
5904
- m && u && (t.filterCondition.operator = "eq", t.filterCondition.value = null);
5905
- }), (m, u) => {
5906
- var ce, ve, Q, re;
5907
- const y = p("t-option"), K = p("t-select"), _ = p("t-input"), ie = p("t-date-picker"), de = p("t-cascader");
5908
- return g(), R("div", Ye, [
5909
- a(K, {
5910
- modelValue: t.filterCondition.field,
5911
- "onUpdate:modelValue": u[0] || (u[0] = (w) => t.filterCondition.field = w),
5902
+ return G(() => e.filterCondition.field, (l, t) => {
5903
+ l && t && (e.filterCondition.operator = "eq", e.filterCondition.value = null);
5904
+ }), (l, t) => {
5905
+ var le, ne, oe, ie;
5906
+ const y = F("t-option"), z = F("t-select"), h = F("t-input"), L = F("t-date-picker"), X = F("t-cascader");
5907
+ return g(), B("div", Ue, [
5908
+ o(z, {
5909
+ modelValue: e.filterCondition.field,
5910
+ "onUpdate:modelValue": t[0] || (t[0] = (V) => e.filterCondition.field = V),
5912
5911
  placeholder: "请选择字段",
5913
- size: t.size,
5912
+ size: e.size,
5914
5913
  style: { "min-width": "80px", "max-width": "110px" },
5915
- onChange: X,
5914
+ onChange: v,
5916
5915
  filterable: "",
5917
5916
  "popup-props": { attach: ".cd-form-select-modal" }
5918
5917
  }, {
5919
- default: l(() => [
5920
- (g(!0), R(le, null, se(t.fieldOptions, (w) => (g(), G(y, {
5921
- key: w.key,
5922
- label: w.key,
5923
- value: w.value
5918
+ default: r(() => [
5919
+ (g(!0), B(Q, null, Z(e.fieldOptions, (V) => (g(), J(y, {
5920
+ key: V.key,
5921
+ label: V.key,
5922
+ value: V.value
5924
5923
  }, null, 8, ["label", "value"]))), 128))
5925
5924
  ]),
5926
5925
  _: 1
5927
5926
  }, 8, ["modelValue", "size"]),
5928
- a(K, {
5929
- modelValue: t.filterCondition.operator,
5930
- "onUpdate:modelValue": u[1] || (u[1] = (w) => t.filterCondition.operator = w),
5927
+ o(z, {
5928
+ modelValue: e.filterCondition.operator,
5929
+ "onUpdate:modelValue": t[1] || (t[1] = (V) => e.filterCondition.operator = V),
5931
5930
  placeholder: "请选择条件",
5932
- size: t.size,
5931
+ size: e.size,
5933
5932
  style: { width: "80px" },
5934
5933
  clearable: "",
5935
- onChange: I,
5934
+ onChange: R,
5936
5935
  "popup-props": { attach: ".cd-form-select-modal" }
5937
5936
  }, {
5938
- default: l(() => [
5939
- (g(!0), R(le, null, se(H.value, (w) => (g(), G(y, {
5940
- key: w.key,
5941
- label: w.label,
5942
- value: w.value
5937
+ default: r(() => [
5938
+ (g(!0), B(Q, null, Z(U.value, (V) => (g(), J(y, {
5939
+ key: V.key,
5940
+ label: V.label,
5941
+ value: V.value
5943
5942
  }, null, 8, ["label", "value"]))), 128))
5944
5943
  ]),
5945
5944
  _: 1
5946
5945
  }, 8, ["modelValue", "size"]),
5947
- N(t.filterCondition.field) === "number" ? (g(), G(_, {
5946
+ P(e.filterCondition.field) === "number" ? (g(), J(h, {
5948
5947
  key: 0,
5949
5948
  type: "number",
5950
- modelValue: t.filterCondition.value,
5951
- "onUpdate:modelValue": u[2] || (u[2] = (w) => t.filterCondition.value = w),
5949
+ modelValue: e.filterCondition.value,
5950
+ "onUpdate:modelValue": t[2] || (t[2] = (V) => e.filterCondition.value = V),
5952
5951
  placeholder: "请输入数字",
5953
- size: t.size,
5952
+ size: e.size,
5954
5953
  style: { width: "80px" },
5955
- onChange: B,
5954
+ onChange: q,
5956
5955
  clearable: ""
5957
- }, null, 8, ["modelValue", "size"])) : N(t.filterCondition.field) === "money" ? (g(), G(_, {
5956
+ }, null, 8, ["modelValue", "size"])) : P(e.filterCondition.field) === "money" ? (g(), J(h, {
5958
5957
  key: 1,
5959
5958
  type: "number",
5960
- modelValue: t.filterCondition.value,
5961
- "onUpdate:modelValue": u[3] || (u[3] = (w) => t.filterCondition.value = w),
5959
+ modelValue: e.filterCondition.value,
5960
+ "onUpdate:modelValue": t[3] || (t[3] = (V) => e.filterCondition.value = V),
5962
5961
  placeholder: "请输入金额",
5963
- size: t.size,
5962
+ size: e.size,
5964
5963
  style: { width: "80px" },
5965
- onChange: B,
5964
+ onChange: q,
5966
5965
  clearable: ""
5967
- }, null, 8, ["modelValue", "size"])) : N(t.filterCondition.field) === "date" ? (g(), R(le, { key: 2 }, [
5968
- i(t.filterCondition.operator) ? (g(), G(_, {
5966
+ }, null, 8, ["modelValue", "size"])) : P(e.filterCondition.field) === "date" ? (g(), B(Q, { key: 2 }, [
5967
+ m(e.filterCondition.operator) ? (g(), J(h, {
5969
5968
  key: 1,
5970
- value: (ce = H.value.find((w) => w.value === t.filterCondition.operator)) == null ? void 0 : ce.label,
5969
+ value: (le = U.value.find((V) => V.value === e.filterCondition.operator)) == null ? void 0 : le.label,
5971
5970
  disabled: "",
5972
- size: t.size,
5971
+ size: e.size,
5973
5972
  style: { "min-width": "80px", "max-width": "120px" }
5974
- }, null, 8, ["value", "size"])) : (g(), G(ie, {
5973
+ }, null, 8, ["value", "size"])) : (g(), J(L, {
5975
5974
  key: 0,
5976
- modelValue: t.filterCondition.value,
5977
- "onUpdate:modelValue": u[4] || (u[4] = (w) => t.filterCondition.value = w),
5975
+ modelValue: e.filterCondition.value,
5976
+ "onUpdate:modelValue": t[4] || (t[4] = (V) => e.filterCondition.value = V),
5978
5977
  placeholder: "请选择日期",
5979
- size: t.size,
5978
+ size: e.size,
5980
5979
  style: { "min-width": "80px", "max-width": "120px" },
5981
- onChange: B,
5980
+ onChange: q,
5982
5981
  clearable: "",
5983
5982
  "popup-props": { attach: ".cd-form-select-modal" }
5984
5983
  }, null, 8, ["modelValue", "size"]))
5985
- ], 64)) : N(t.filterCondition.field) === "time" ? (g(), G(ie, {
5984
+ ], 64)) : P(e.filterCondition.field) === "time" ? (g(), J(L, {
5986
5985
  key: 3,
5987
- modelValue: t.filterCondition.value,
5988
- "onUpdate:modelValue": u[5] || (u[5] = (w) => t.filterCondition.value = w),
5986
+ modelValue: e.filterCondition.value,
5987
+ "onUpdate:modelValue": t[5] || (t[5] = (V) => e.filterCondition.value = V),
5989
5988
  placeholder: "请选择日期时间",
5990
- size: t.size,
5989
+ size: e.size,
5991
5990
  style: { "min-width": "80px", "max-width": "120px" },
5992
5991
  "enable-time-picker": "",
5993
5992
  format: "YYYY-MM-DD HH:mm:ss",
5994
- onChange: B,
5993
+ onChange: q,
5995
5994
  clearable: "",
5996
5995
  "popup-props": { attach: ".cd-form-select-modal" }
5997
- }, null, 8, ["modelValue", "size"])) : N(t.filterCondition.field) === "select" ? (g(), G(K, {
5996
+ }, null, 8, ["modelValue", "size"])) : P(e.filterCondition.field) === "select" ? (g(), J(z, {
5998
5997
  key: 4,
5999
- modelValue: t.filterCondition.value,
6000
- "onUpdate:modelValue": u[6] || (u[6] = (w) => t.filterCondition.value = w),
6001
- options: D(t.filterCondition.field),
5998
+ modelValue: e.filterCondition.value,
5999
+ "onUpdate:modelValue": t[6] || (t[6] = (V) => e.filterCondition.value = V),
6000
+ options: x(e.filterCondition.field),
6002
6001
  placeholder: "请选择",
6003
- size: t.size,
6002
+ size: e.size,
6004
6003
  style: { "min-width": "80px", "max-width": "120px" },
6005
- onChange: B,
6004
+ onChange: q,
6006
6005
  clearable: "",
6007
6006
  "popup-props": { attach: ".cd-form-select-modal" }
6008
- }, null, 8, ["modelValue", "options", "size"])) : N(t.filterCondition.field) === "selectProvince" ? (g(), G(de, {
6007
+ }, null, 8, ["modelValue", "options", "size"])) : P(e.filterCondition.field) === "selectProvince" ? (g(), J(X, {
6009
6008
  key: 5,
6010
- modelValue: t.filterCondition.value,
6011
- "onUpdate:modelValue": u[7] || (u[7] = (w) => t.filterCondition.value = w),
6012
- options: f.value,
6009
+ modelValue: e.filterCondition.value,
6010
+ "onUpdate:modelValue": t[7] || (t[7] = (V) => e.filterCondition.value = V),
6011
+ options: k.value,
6013
6012
  placeholder: "请选择地区",
6014
- size: t.size,
6013
+ size: e.size,
6015
6014
  style: { "min-width": "80px", "max-width": "120px" },
6016
6015
  clearable: "",
6017
6016
  loading: !1,
6018
- onChange: S,
6017
+ onChange: w,
6019
6018
  "popup-props": { attach: ".cd-form-select-modal" }
6020
- }, null, 8, ["modelValue", "options", "size"])) : C(t.filterCondition.field) ? (g(), R(le, { key: 6 }, [
6021
- c(t.filterCondition.operator) ? oe("", !0) : (g(), G(_, {
6019
+ }, null, 8, ["modelValue", "options", "size"])) : D(e.filterCondition.field) ? (g(), B(Q, { key: 6 }, [
6020
+ c(e.filterCondition.operator) ? W("", !0) : (g(), J(h, {
6022
6021
  key: 0,
6023
- modelValue: t.filterCondition.value,
6024
- "onUpdate:modelValue": u[9] || (u[9] = (w) => t.filterCondition.value = w),
6022
+ modelValue: e.filterCondition.value,
6023
+ "onUpdate:modelValue": t[9] || (t[9] = (V) => e.filterCondition.value = V),
6025
6024
  placeholder: "请选择",
6026
6025
  readonly: "",
6027
- size: t.size,
6026
+ size: e.size,
6028
6027
  style: { "min-width": "80px", "max-width": "100px" },
6029
- onChange: B,
6028
+ onChange: q,
6030
6029
  clearable: ""
6031
6030
  }, {
6032
- suffixIcon: l(() => [
6033
- r("i", {
6031
+ suffixIcon: r(() => [
6032
+ s("i", {
6034
6033
  class: "ri-search-line",
6035
6034
  style: { cursor: "pointer" },
6036
- onClick: u[8] || (u[8] = (w) => J(t.filterCondition.field))
6035
+ onClick: t[8] || (t[8] = (V) => f(e.filterCondition.field))
6037
6036
  })
6038
6037
  ]),
6039
6038
  _: 1
6040
6039
  }, 8, ["modelValue", "size"])),
6041
- a(Ke, {
6042
- visible: z.value,
6043
- "onUpdate:visible": u[10] || (u[10] = (w) => z.value = w),
6044
- "release-id": ((ve = h.value) == null ? void 0 : ve.releaseId) || "",
6045
- "field-type": x.value,
6046
- "form-type": (Q = h.value) == null ? void 0 : Q.formType,
6047
- "dialog-title": (re = h.value) == null ? void 0 : re.dialogTitle,
6048
- onSelect: j
6040
+ o(Ee, {
6041
+ visible: O.value,
6042
+ "onUpdate:visible": t[10] || (t[10] = (V) => O.value = V),
6043
+ "release-id": ((ne = N.value) == null ? void 0 : ne.releaseId) || "",
6044
+ "field-type": K.value,
6045
+ "form-type": (oe = N.value) == null ? void 0 : oe.formType,
6046
+ "dialog-title": (ie = N.value) == null ? void 0 : ie.dialogTitle,
6047
+ onSelect: n
6049
6048
  }, null, 8, ["visible", "release-id", "field-type", "form-type", "dialog-title"])
6050
- ], 64)) : (g(), R(le, { key: 7 }, [
6051
- t.filterCondition.operator !== "is_empty" && t.filterCondition.operator !== "is_not_empty" ? (g(), G(_, {
6049
+ ], 64)) : (g(), B(Q, { key: 7 }, [
6050
+ e.filterCondition.operator !== "is_empty" && e.filterCondition.operator !== "is_not_empty" ? (g(), J(h, {
6052
6051
  key: 0,
6053
- modelValue: t.filterCondition.value,
6054
- "onUpdate:modelValue": u[11] || (u[11] = (w) => t.filterCondition.value = w),
6052
+ modelValue: e.filterCondition.value,
6053
+ "onUpdate:modelValue": t[11] || (t[11] = (V) => e.filterCondition.value = V),
6055
6054
  placeholder: "请输入关键字",
6056
- size: t.size,
6055
+ size: e.size,
6057
6056
  style: { "min-width": "80px", "max-width": "100px" },
6058
- onChange: B,
6057
+ onChange: q,
6059
6058
  clearable: ""
6060
- }, null, 8, ["modelValue", "size"])) : oe("", !0)
6059
+ }, {
6060
+ suffixIcon: r(() => [...t[12] || (t[12] = [
6061
+ s("i", { class: "ri-search-line" }, null, -1)
6062
+ ])]),
6063
+ _: 1
6064
+ }, 8, ["modelValue", "size"])) : W("", !0)
6061
6065
  ], 64))
6062
6066
  ]);
6063
6067
  };
6064
6068
  }
6065
- }), $e = /* @__PURE__ */ me(Ge, [["__scopeId", "data-v-274d36f5"]]), We = { class: "filter-dialog-content" }, Qe = { class: "leader-line-container" }, Xe = {
6069
+ }), me = /* @__PURE__ */ ae(qe, [["__scopeId", "data-v-fc381421"]]), Te = { class: "filter-dialog-content" }, Ne = { class: "leader-line-container" }, Be = {
6066
6070
  class: "filter-scroll-wrapper",
6067
6071
  id: "filter-scroll-wrapper"
6068
- }, Ze = {
6072
+ }, Pe = {
6069
6073
  key: 0,
6070
6074
  class: "filter-dialog-left"
6071
- }, ea = { class: "connectors-container" }, aa = {
6075
+ }, Re = { class: "connectors-container" }, Je = {
6072
6076
  class: "filter-dialog-middle",
6073
6077
  id: "filter-dialog-middle"
6074
- }, la = { class: "filter-cards" }, ta = { class: "filter-card-header" }, na = { style: { display: "flex", "align-items": "center", "flex-direction": "row" } }, oa = { class: "filter-card-title" }, ia = { class: "filter-card-content" }, sa = { class: "filter-card-actions" }, ra = { class: "add-card-content" }, da = { class: "filter-dialog-footer1" }, ua = { class: "filter-dialog-footer" }, ma = {
6078
+ }, je = { class: "filter-cards" }, Me = { class: "filter-card-header" }, Ie = { style: { display: "flex", "align-items": "center", "flex-direction": "row" } }, Ke = { class: "filter-card-title" }, He = { class: "filter-card-content" }, Le = { class: "filter-card-actions" }, Ye = { class: "add-card-content" }, Ge = { class: "filter-dialog-footer1" }, We = { class: "filter-dialog-footer" }, Qe = {
6075
6079
  __name: "filterDialog",
6076
6080
  props: {
6077
6081
  visible: {
@@ -6100,8 +6104,8 @@ const je = [
6100
6104
  "submit",
6101
6105
  "close"
6102
6106
  ],
6103
- setup(s, { emit: te }) {
6104
- const d = s, f = te, i = b([
6107
+ setup(i, { emit: Y }) {
6108
+ const d = i, k = Y, m = _([
6105
6109
  {
6106
6110
  id: 1,
6107
6111
  connector: "and",
@@ -6109,76 +6113,76 @@ const je = [
6109
6113
  { field: "", operator: "eq", value: "" }
6110
6114
  ]
6111
6115
  }
6112
- ]), D = b("and");
6113
- let ee = 3;
6114
- ne(() => d.initialFilterCards, (S) => {
6115
- S && S.length > 0 && (i.value = S);
6116
- }, { immediate: !0, deep: !0 }), ne(() => d.initialType1, (S) => {
6117
- S && (D.value = S);
6116
+ ]), x = _("and");
6117
+ let I = 3;
6118
+ G(() => d.initialFilterCards, (w) => {
6119
+ w && w.length > 0 && (m.value = w);
6120
+ }, { immediate: !0, deep: !0 }), G(() => d.initialType1, (w) => {
6121
+ w && (x.value = w);
6118
6122
  }, { immediate: !0 });
6119
- const t = () => {
6120
- i.value.push({
6121
- id: ee++,
6123
+ const e = () => {
6124
+ m.value.push({
6125
+ id: I++,
6122
6126
  connector: "and",
6123
6127
  conditions: [{ field: "", operator: "eq", value: "" }]
6124
6128
  });
6125
- }, M = (S) => {
6126
- S >= 0 && S < i.value.length && i.value[S].conditions.push({
6129
+ }, $ = (w) => {
6130
+ w >= 0 && w < m.value.length && m.value[w].conditions.push({
6127
6131
  field: "",
6128
6132
  operator: "eq",
6129
6133
  value: ""
6130
6134
  });
6131
- }, L = (S, z) => {
6132
- if (S >= 0 && S < i.value.length) {
6133
- const h = i.value[S];
6134
- h.conditions.length > 1 && z >= 0 && z < h.conditions.length ? h.conditions.splice(z, 1) : h.conditions.length <= 1 && fe.warning("每个卡片至少需要一个筛选条件");
6135
+ }, j = (w, O) => {
6136
+ if (w >= 0 && w < m.value.length) {
6137
+ const N = m.value[w];
6138
+ N.conditions.length > 1 && O >= 0 && O < N.conditions.length ? N.conditions.splice(O, 1) : N.conditions.length <= 1 && se.warning("每个卡片至少需要一个筛选条件");
6135
6139
  }
6136
- }, N = (S) => {
6137
- i.value.length > 1 ? i.value.splice(S, 1) : fe.warning("至少需要保留一个筛选卡片");
6138
- }, B = () => {
6139
- f("submit", {
6140
- filterCards: i.value,
6141
- type1: D.value
6140
+ }, P = (w) => {
6141
+ m.value.length > 1 ? m.value.splice(w, 1) : se.warning("至少需要保留一个筛选卡片");
6142
+ }, q = () => {
6143
+ k("submit", {
6144
+ filterCards: m.value,
6145
+ type1: x.value
6142
6146
  });
6143
- }, I = () => {
6144
- f("close"), f("update:visible", !1);
6147
+ }, R = () => {
6148
+ k("close"), k("update:visible", !1);
6145
6149
  };
6146
- return (S, z) => {
6147
- const h = p("t-radio-button"), x = p("t-radio-group"), C = p("t-icon"), c = p("t-button"), J = p("t-dialog");
6148
- return g(), G(J, {
6150
+ return (w, O) => {
6151
+ const N = F("t-radio-button"), K = F("t-radio-group"), D = F("t-icon"), c = F("t-button"), f = F("t-dialog");
6152
+ return g(), J(f, {
6149
6153
  header: "筛选条件设置",
6150
6154
  placement: "center",
6151
- visible: s.visible,
6152
- "onUpdate:visible": z[1] || (z[1] = (j) => S.$emit("update:visible", j)),
6155
+ visible: i.visible,
6156
+ "onUpdate:visible": O[1] || (O[1] = (n) => w.$emit("update:visible", n)),
6153
6157
  width: "700px",
6154
6158
  "z-index": 999,
6155
6159
  footer: !0,
6156
- onClose: I,
6160
+ onClose: R,
6157
6161
  id: "leader-line-clip-container"
6158
6162
  }, {
6159
- body: l(() => [
6160
- r("div", We, [
6161
- r("div", Qe, [
6162
- r("div", Xe, [
6163
- i.value.length > 1 ? (g(), R("div", Ze, [
6164
- r("div", ea, [
6165
- a(x, {
6163
+ body: r(() => [
6164
+ s("div", Te, [
6165
+ s("div", Ne, [
6166
+ s("div", Be, [
6167
+ m.value.length > 1 ? (g(), B("div", Pe, [
6168
+ s("div", Re, [
6169
+ o(K, {
6166
6170
  size: "small",
6167
6171
  class: "connector-selector",
6168
- modelValue: D.value,
6169
- "onUpdate:modelValue": z[0] || (z[0] = (j) => D.value = j),
6172
+ modelValue: x.value,
6173
+ "onUpdate:modelValue": O[0] || (O[0] = (n) => x.value = n),
6170
6174
  style: { "margin-right": "20px" }
6171
6175
  }, {
6172
- default: l(() => [
6173
- a(h, { value: "and" }, {
6174
- default: l(() => [...z[2] || (z[2] = [
6175
- $("且", -1)
6176
+ default: r(() => [
6177
+ o(N, { value: "and" }, {
6178
+ default: r(() => [...O[2] || (O[2] = [
6179
+ T("且", -1)
6176
6180
  ])]),
6177
6181
  _: 1
6178
6182
  }),
6179
- a(h, { value: "or" }, {
6180
- default: l(() => [...z[3] || (z[3] = [
6181
- $("或", -1)
6183
+ o(N, { value: "or" }, {
6184
+ default: r(() => [...O[3] || (O[3] = [
6185
+ T("或", -1)
6182
6186
  ])]),
6183
6187
  _: 1
6184
6188
  })
@@ -6186,32 +6190,32 @@ const je = [
6186
6190
  _: 1
6187
6191
  }, 8, ["modelValue"])
6188
6192
  ])
6189
- ])) : oe("", !0),
6190
- r("div", aa, [
6191
- r("div", la, [
6192
- (g(!0), R(le, null, se(i.value, (j, H) => (g(), R("div", {
6193
- key: j.id,
6193
+ ])) : W("", !0),
6194
+ s("div", Je, [
6195
+ s("div", je, [
6196
+ (g(!0), B(Q, null, Z(m.value, (n, U) => (g(), B("div", {
6197
+ key: n.id,
6194
6198
  class: "filter-card-item"
6195
6199
  }, [
6196
- r("div", ta, [
6197
- r("div", na, [
6198
- r("span", oa, "筛选卡片 " + pe(H + 1), 1),
6199
- a(x, {
6200
+ s("div", Me, [
6201
+ s("div", Ie, [
6202
+ s("span", Ke, "筛选卡片 " + te(U + 1), 1),
6203
+ o(K, {
6200
6204
  size: "small",
6201
- modelValue: j.connector,
6202
- "onUpdate:modelValue": (X) => j.connector = X,
6205
+ modelValue: n.connector,
6206
+ "onUpdate:modelValue": (v) => n.connector = v,
6203
6207
  class: "connector-selector"
6204
6208
  }, {
6205
- default: l(() => [
6206
- a(h, { value: "and" }, {
6207
- default: l(() => [...z[4] || (z[4] = [
6208
- $("且", -1)
6209
+ default: r(() => [
6210
+ o(N, { value: "and" }, {
6211
+ default: r(() => [...O[4] || (O[4] = [
6212
+ T("且", -1)
6209
6213
  ])]),
6210
6214
  _: 1
6211
6215
  }),
6212
- a(h, { value: "or" }, {
6213
- default: l(() => [...z[5] || (z[5] = [
6214
- $("或", -1)
6216
+ o(N, { value: "or" }, {
6217
+ default: r(() => [...O[5] || (O[5] = [
6218
+ T("或", -1)
6215
6219
  ])]),
6216
6220
  _: 1
6217
6221
  })
@@ -6219,68 +6223,68 @@ const je = [
6219
6223
  _: 1
6220
6224
  }, 8, ["modelValue", "onUpdate:modelValue"])
6221
6225
  ]),
6222
- a(c, {
6226
+ o(c, {
6223
6227
  theme: "default",
6224
6228
  variant: "text",
6225
6229
  size: "small",
6226
- onClick: (X) => N(H),
6227
- disabled: i.value.length === 1
6230
+ onClick: (v) => P(U),
6231
+ disabled: m.value.length === 1
6228
6232
  }, {
6229
- icon: l(() => [
6230
- a(C, { name: "close" })
6233
+ icon: r(() => [
6234
+ o(D, { name: "close" })
6231
6235
  ]),
6232
6236
  _: 1
6233
6237
  }, 8, ["onClick", "disabled"])
6234
6238
  ]),
6235
- r("div", ia, [
6236
- (g(!0), R(le, null, se(j.conditions, (X, V) => (g(), R("div", {
6237
- key: V,
6239
+ s("div", He, [
6240
+ (g(!0), B(Q, null, Z(n.conditions, (v, a) => (g(), B("div", {
6241
+ key: a,
6238
6242
  class: "filter-combination"
6239
6243
  }, [
6240
- a($e, {
6241
- "field-options": s.fieldOptions,
6242
- "filter-condition": j.conditions[V],
6243
- index: V,
6244
+ o(me, {
6245
+ "field-options": i.fieldOptions,
6246
+ "filter-condition": n.conditions[a],
6247
+ index: a,
6244
6248
  "select-options": [],
6245
- size: s.size
6249
+ size: i.size
6246
6250
  }, null, 8, ["field-options", "filter-condition", "index", "size"]),
6247
- a(c, {
6251
+ o(c, {
6248
6252
  theme: "default",
6249
6253
  variant: "text",
6250
6254
  size: "small",
6251
- onClick: (F) => L(H, V),
6252
- disabled: j.conditions.length === 1
6255
+ onClick: (p) => j(U, a),
6256
+ disabled: n.conditions.length === 1
6253
6257
  }, {
6254
- icon: l(() => [
6255
- a(C, { name: "minus" })
6258
+ icon: r(() => [
6259
+ o(D, { name: "minus" })
6256
6260
  ]),
6257
6261
  _: 1
6258
6262
  }, 8, ["onClick", "disabled"])
6259
6263
  ]))), 128)),
6260
- r("div", sa, [
6261
- a(c, {
6264
+ s("div", Le, [
6265
+ o(c, {
6262
6266
  theme: "default",
6263
6267
  size: "small",
6264
- onClick: (X) => M(H)
6268
+ onClick: (v) => $(U)
6265
6269
  }, {
6266
- icon: l(() => [
6267
- a(C, { name: "add" })
6270
+ icon: r(() => [
6271
+ o(D, { name: "add" })
6268
6272
  ]),
6269
- default: l(() => [
6270
- z[6] || (z[6] = $(" 添加条件 ", -1))
6273
+ default: r(() => [
6274
+ O[6] || (O[6] = T(" 添加条件 ", -1))
6271
6275
  ]),
6272
6276
  _: 1
6273
6277
  }, 8, ["onClick"])
6274
6278
  ])
6275
6279
  ])
6276
6280
  ]))), 128)),
6277
- r("div", {
6281
+ s("div", {
6278
6282
  class: "add-filter-card",
6279
- onClick: t
6283
+ onClick: e
6280
6284
  }, [
6281
- r("div", ra, [
6282
- a(C, { name: "add" }),
6283
- z[7] || (z[7] = r("span", null, "增加筛选卡片", -1))
6285
+ s("div", Ye, [
6286
+ o(D, { name: "add" }),
6287
+ O[7] || (O[7] = s("span", null, "增加筛选卡片", -1))
6284
6288
  ])
6285
6289
  ])
6286
6290
  ])
@@ -6289,25 +6293,25 @@ const je = [
6289
6293
  ])
6290
6294
  ])
6291
6295
  ]),
6292
- footer: l(() => [
6293
- r("div", da, [
6294
- z[10] || (z[10] = r("div", { class: "filter-dialog-footer2" }, null, -1)),
6295
- r("div", ua, [
6296
- a(c, {
6296
+ footer: r(() => [
6297
+ s("div", Ge, [
6298
+ O[10] || (O[10] = s("div", { class: "filter-dialog-footer2" }, null, -1)),
6299
+ s("div", We, [
6300
+ o(c, {
6297
6301
  theme: "default",
6298
- onClick: I
6302
+ onClick: R
6299
6303
  }, {
6300
- default: l(() => [...z[8] || (z[8] = [
6301
- $("取消", -1)
6304
+ default: r(() => [...O[8] || (O[8] = [
6305
+ T("取消", -1)
6302
6306
  ])]),
6303
6307
  _: 1
6304
6308
  }),
6305
- a(c, {
6309
+ o(c, {
6306
6310
  theme: "primary",
6307
- onClick: B
6311
+ onClick: q
6308
6312
  }, {
6309
- default: l(() => [...z[9] || (z[9] = [
6310
- $("确定", -1)
6313
+ default: r(() => [...O[9] || (O[9] = [
6314
+ T("确定", -1)
6311
6315
  ])]),
6312
6316
  _: 1
6313
6317
  })
@@ -6318,271 +6322,16 @@ const je = [
6318
6322
  }, 8, ["visible"]);
6319
6323
  };
6320
6324
  }
6321
- }, Ee = /* @__PURE__ */ me(ma, [["__scopeId", "data-v-92f16808"]]), ca = { class: "save-plan-content" }, va = {
6322
- __name: "SavePlanDialog",
6323
- props: {
6324
- visible: {
6325
- type: Boolean,
6326
- default: !1
6327
- },
6328
- isEditing: {
6329
- type: Boolean,
6330
- default: !1
6331
- },
6332
- planName: {
6333
- type: String,
6334
- default: ""
6335
- },
6336
- userOptions: {
6337
- type: Array,
6338
- default: () => []
6339
- },
6340
- tabs: {
6341
- type: Array,
6342
- default: () => []
6343
- },
6344
- organizations: {
6345
- type: Array,
6346
- default: () => []
6347
- },
6348
- deptMembersDataProp: {
6349
- type: Array,
6350
- default: () => []
6351
- },
6352
- // 原始方案的共享配置
6353
- originalShareMode: {
6354
- type: String,
6355
- default: "none"
6356
- },
6357
- originalShareType: {
6358
- type: String,
6359
- default: "specific"
6360
- },
6361
- originalSelectedUsers: {
6362
- type: Array,
6363
- default: () => []
6364
- }
6365
- },
6366
- emits: ["update:visible", "confirm", "close", "load-users", "search", "dept-click"],
6367
- setup(s, { emit: te }) {
6368
- const d = s, f = te, i = b({
6369
- planName: "",
6370
- shareMode: "none",
6371
- shareType: "specific",
6372
- selectedUsers: []
6373
- }), D = b([]), ee = b([]), t = ue(() => d.isEditing && d.originalShareMode === "copy");
6374
- ne(() => d.visible, (h) => {
6375
- h ? d.isEditing && d.planName && (i.value.planName = d.planName, i.value.shareMode = d.originalShareMode || "none", i.value.shareType = d.originalShareType || "specific", d.originalSelectedUsers && d.originalSelectedUsers.length > 0 && (i.value.selectedUsers = [...d.originalSelectedUsers])) : M();
6376
- }), ne(() => d.deptMembersDataProp, (h) => {
6377
- h && (ee.value = h);
6378
- });
6379
- const M = () => {
6380
- i.value = {
6381
- planName: "",
6382
- shareMode: "none",
6383
- shareType: "specific",
6384
- selectedUsers: []
6385
- }, D.value = [], ee.value = [];
6386
- }, L = (h) => {
6387
- console.log("选中人员:", h), h.map((C) => ({
6388
- id: C.id,
6389
- name: C.displayName || C.name,
6390
- avatar: "",
6391
- department: C.department,
6392
- role: C.position,
6393
- email: "",
6394
- mobile: C.phone || "",
6395
- employeeId: "",
6396
- signature: "",
6397
- tags: [],
6398
- isUser: C.isUser === !0
6399
- })).forEach((C) => {
6400
- D.value.find((J) => J.id === C.id) || D.value.push(C);
6401
- }), i.value.selectedUsers = D.value.map((C) => C.id);
6402
- }, N = (h) => {
6403
- f("load-users", h);
6404
- }, B = (h) => {
6405
- f("search", h);
6406
- }, I = (h) => {
6407
- f("dept-click", h);
6408
- }, S = () => {
6409
- if (!i.value.planName.trim()) {
6410
- fe.warning("请输入方案名称");
6411
- return;
6412
- }
6413
- if ((i.value.shareMode === "share" || i.value.shareMode === "copy") && i.value.shareType === "specific" && i.value.selectedUsers.length === 0) {
6414
- fe.warning("请选择要共享的用户");
6415
- return;
6416
- }
6417
- f("confirm", {
6418
- planName: i.value.planName,
6419
- shareMode: i.value.shareMode,
6420
- shareType: i.value.shareType,
6421
- selectedUsers: i.value.selectedUsers
6422
- }), f("update:visible", !1);
6423
- }, z = () => {
6424
- f("close"), f("update:visible", !1);
6425
- };
6426
- return (h, x) => {
6427
- const C = p("t-input"), c = p("t-form-item"), J = p("t-radio"), j = p("t-tooltip"), H = p("t-radio-group"), X = p("t-form"), V = p("t-button"), F = p("t-dialog");
6428
- return g(), G(F, {
6429
- header: s.isEditing ? "编辑筛选方案" : "保存筛选方案",
6430
- visible: s.visible,
6431
- "onUpdate:visible": x[3] || (x[3] = (E) => h.$emit("update:visible", E)),
6432
- width: "600px",
6433
- footer: !0,
6434
- onConfirm: S,
6435
- onClose: z
6436
- }, {
6437
- body: l(() => [
6438
- r("div", ca, [
6439
- a(X, {
6440
- data: i.value,
6441
- "label-align": "left",
6442
- "label-width": "100px"
6443
- }, {
6444
- default: l(() => [
6445
- a(c, {
6446
- label: "方案名称",
6447
- required: ""
6448
- }, {
6449
- default: l(() => [
6450
- a(C, {
6451
- modelValue: i.value.planName,
6452
- "onUpdate:modelValue": x[0] || (x[0] = (E) => i.value.planName = E),
6453
- placeholder: "请输入方案名称"
6454
- }, null, 8, ["modelValue"])
6455
- ]),
6456
- _: 1
6457
- }),
6458
- a(c, { label: "共享设置" }, {
6459
- default: l(() => [
6460
- a(H, {
6461
- modelValue: i.value.shareMode,
6462
- "onUpdate:modelValue": x[1] || (x[1] = (E) => i.value.shareMode = E),
6463
- disabled: t.value
6464
- }, {
6465
- default: l(() => [
6466
- a(J, { value: "none" }, {
6467
- default: l(() => [...x[4] || (x[4] = [
6468
- $("不共享", -1)
6469
- ])]),
6470
- _: 1
6471
- }),
6472
- a(J, { value: "share" }, {
6473
- default: l(() => [...x[5] || (x[5] = [
6474
- $("共享给其他人", -1)
6475
- ])]),
6476
- _: 1
6477
- }),
6478
- a(j, {
6479
- content: "复制方案只支持复制一次,建议共享方案",
6480
- placement: "top"
6481
- }, {
6482
- default: l(() => [
6483
- a(J, { value: "copy" }, {
6484
- default: l(() => [...x[6] || (x[6] = [
6485
- $("复制给其他人", -1)
6486
- ])]),
6487
- _: 1
6488
- })
6489
- ]),
6490
- _: 1
6491
- })
6492
- ]),
6493
- _: 1
6494
- }, 8, ["modelValue", "disabled"])
6495
- ]),
6496
- _: 1
6497
- }),
6498
- i.value.shareMode === "share" ? (g(), G(c, {
6499
- key: 0,
6500
- label: "共享范围"
6501
- }, {
6502
- default: l(() => [
6503
- a(H, {
6504
- modelValue: i.value.shareType,
6505
- "onUpdate:modelValue": x[2] || (x[2] = (E) => i.value.shareType = E)
6506
- }, {
6507
- default: l(() => [
6508
- a(J, { value: "specific" }, {
6509
- default: l(() => [...x[7] || (x[7] = [
6510
- $("指定用户", -1)
6511
- ])]),
6512
- _: 1
6513
- }),
6514
- a(J, { value: "all" }, {
6515
- default: l(() => [...x[8] || (x[8] = [
6516
- $("所有用户", -1)
6517
- ])]),
6518
- _: 1
6519
- })
6520
- ]),
6521
- _: 1
6522
- }, 8, ["modelValue"])
6523
- ]),
6524
- _: 1
6525
- })) : oe("", !0),
6526
- i.value.shareMode === "share" && i.value.shareType === "specific" || i.value.shareMode === "copy" ? (g(), G(c, {
6527
- key: 1,
6528
- label: "共享人员"
6529
- }, {
6530
- default: l(() => [
6531
- a(Re(Je), {
6532
- users: D.value,
6533
- "avatar-size": 32,
6534
- "max-display": 10,
6535
- edit: !0,
6536
- "person-tabs": s.tabs,
6537
- "person-organizations": s.organizations,
6538
- "dept-members-data": ee.value,
6539
- onPersonSelect: L,
6540
- onLoadUsers: N,
6541
- onSearch: B,
6542
- onDeptClick: I
6543
- }, null, 8, ["users", "person-tabs", "person-organizations", "dept-members-data"])
6544
- ]),
6545
- _: 1
6546
- })) : oe("", !0)
6547
- ]),
6548
- _: 1
6549
- }, 8, ["data"])
6550
- ])
6551
- ]),
6552
- footer: l(() => [
6553
- a(V, {
6554
- theme: "default",
6555
- onClick: z
6556
- }, {
6557
- default: l(() => [...x[9] || (x[9] = [
6558
- $("取消", -1)
6559
- ])]),
6560
- _: 1
6561
- }),
6562
- a(V, {
6563
- theme: "primary",
6564
- onClick: S
6565
- }, {
6566
- default: l(() => [...x[10] || (x[10] = [
6567
- $("确定", -1)
6568
- ])]),
6569
- _: 1
6570
- })
6571
- ]),
6572
- _: 1
6573
- }, 8, ["header", "visible"]);
6574
- };
6575
- }
6576
- }, fa = /* @__PURE__ */ me(va, [["__scopeId", "data-v-7fd313f0"]]), pa = { class: "filter-dialog-content" }, ya = { class: "leader-line-container" }, ga = {
6325
+ }, pe = /* @__PURE__ */ ae(Qe, [["__scopeId", "data-v-92f16808"]]), Xe = { class: "filter-dialog-content" }, Ze = { class: "leader-line-container" }, ea = {
6577
6326
  class: "filter-scroll-wrapper",
6578
6327
  id: "filter-scroll-wrapper"
6579
- }, ba = {
6328
+ }, aa = {
6580
6329
  class: "filter-dialog-middle",
6581
6330
  id: "filter-dialog-middle"
6582
- }, ha = { class: "filter-tab-content" }, Ca = {
6331
+ }, la = { class: "filter-tab-content" }, ta = {
6583
6332
  key: 0,
6584
6333
  class: "filter-dialog-left"
6585
- }, _a = { class: "connectors-container" }, ka = { class: "filter-cards" }, za = { class: "filter-card-header" }, wa = { class: "filter-card-header-left" }, Oa = { class: "filter-card-title" }, Fa = { class: "filter-card-content" }, Va = { class: "filter-card-actions" }, Sa = { class: "add-card-content" }, xa = { class: "column-settings-panel" }, $a = { class: "column-title-row" }, Ua = { class: "column-title column-title-show" }, Da = { class: "column-list" }, Ta = ["onDragstart", "onDragover", "onDrop"], Ea = { class: "column-name" }, Aa = { class: "column-show" }, Pa = { class: "column-freeze" }, Na = { class: "column-width" }, qa = { class: "column-sort-buttons" }, Ma = { class: "filter-dialog-right" }, Ba = { class: "filter-plan-list" }, Ra = ["onClick"], Ja = { class: "plan-name" }, ja = { class: "filter-dialog-footer-container" }, La = { class: "filter-dialog-footer-left" }, Ia = { class: "filter-dialog-footer-right" }, Ha = {
6334
+ }, na = { class: "connectors-container" }, oa = { class: "filter-cards" }, ia = { class: "filter-card-header" }, ra = { class: "filter-card-header-left" }, sa = { class: "filter-card-title" }, da = { class: "filter-card-content" }, ua = { class: "filter-card-actions" }, ma = { class: "add-card-content" }, ca = { class: "filter-dialog-footer-container" }, va = { class: "filter-dialog-footer-right" }, fa = {
6586
6335
  __name: "cd-filter",
6587
6336
  props: {
6588
6337
  visible: {
@@ -6654,97 +6403,50 @@ const je = [
6654
6403
  "dept-click",
6655
6404
  "column-change"
6656
6405
  ],
6657
- setup(s, { emit: te }) {
6658
- const d = s, f = te, i = b(JSON.parse(JSON.stringify(d.filterCards))), D = b(d.topOp), ee = b(null), t = b(!1), M = b([]), L = b("filter"), N = b(!1), B = b(""), I = b("none"), S = b("specific"), z = b([]), h = b(null);
6659
- let x = 100;
6660
- ne(() => d.filterCards, (e) => {
6661
- i.value = JSON.parse(JSON.stringify(e));
6662
- }, { deep: !0 }), ne(() => d.topOp, (e) => {
6663
- D.value = e;
6406
+ setup(i, { emit: Y }) {
6407
+ const d = i, k = Y, m = _(JSON.parse(JSON.stringify(d.filterCards))), x = _(d.topOp), I = _(null);
6408
+ _([]);
6409
+ let e = 100;
6410
+ G(() => d.filterCards, (v) => {
6411
+ m.value = JSON.parse(JSON.stringify(v));
6412
+ }, { deep: !0 }), G(() => d.topOp, (v) => {
6413
+ x.value = v;
6664
6414
  });
6665
- const C = () => {
6666
- i.value.push({
6667
- id: x++,
6415
+ const $ = () => {
6416
+ m.value.push({
6417
+ id: e++,
6668
6418
  connector: "and",
6669
6419
  conditions: [{ field: "", operator: "eq", value: "" }]
6670
6420
  });
6671
- }, c = (e) => {
6672
- i.value.length > 1 ? i.value.splice(e, 1) : fe.warning("至少需要保留一个筛选卡片");
6673
- }, J = (e) => {
6674
- e >= 0 && e < i.value.length && i.value[e].conditions.push({
6421
+ }, j = (v) => {
6422
+ m.value.length > 1 ? m.value.splice(v, 1) : se.warning("至少需要保留一个筛选卡片");
6423
+ }, P = (v) => {
6424
+ v >= 0 && v < m.value.length && m.value[v].conditions.push({
6675
6425
  field: "",
6676
6426
  operator: "eq",
6677
6427
  value: ""
6678
6428
  });
6679
- }, j = (e, n) => {
6680
- if (e >= 0 && e < i.value.length) {
6681
- const U = i.value[e];
6682
- U.conditions.length > 1 && n >= 0 && n < U.conditions.length ? U.conditions.splice(n, 1) : U.conditions.length <= 1 && fe.warning("每个卡片至少需要一个筛选条件");
6429
+ }, q = (v, a) => {
6430
+ if (v >= 0 && v < m.value.length) {
6431
+ const p = m.value[v];
6432
+ p.conditions.length > 1 && a >= 0 && a < p.conditions.length ? p.conditions.splice(a, 1) : p.conditions.length <= 1 && se.warning("每个卡片至少需要一个筛选条件");
6683
6433
  }
6684
- }, H = (e) => e.map((n) => {
6685
- const U = n.conditions.filter((q) => q.field && q.field.trim() !== "").map((q) => {
6686
- let O = "";
6687
- return q.value !== null && q.value !== void 0 && (Array.isArray(q.value) ? O = q.value.join("/") : O = String(q.value)), {
6688
- field: q.field.trim(),
6689
- operator: q.operator || "eq",
6690
- value: O
6434
+ }, R = (v) => v.map((a) => {
6435
+ const p = a.conditions.filter((C) => C.field && C.field.trim() !== "").map((C) => {
6436
+ let l = "";
6437
+ return C.value !== null && C.value !== void 0 && (Array.isArray(C.value) ? l = C.value.join("/") : l = String(C.value)), {
6438
+ field: C.field.trim(),
6439
+ operator: C.operator || "eq",
6440
+ value: l
6691
6441
  };
6692
6442
  });
6693
6443
  return {
6694
- ...n,
6695
- connector: n.connector || "and",
6696
- conditions: U.length > 0 ? U : [{ field: "", operator: "eq", value: "" }]
6444
+ ...a,
6445
+ connector: a.connector || "and",
6446
+ conditions: p.length > 0 ? p : [{ field: "", operator: "eq", value: "" }]
6697
6447
  };
6698
- }).filter((n) => n.conditions.length > 0 && n.conditions[0].field !== ""), X = (e) => {
6699
- if (e.value !== "empty" && (ee.value = e, f("plan-click", e), e.precepts && (i.value = JSON.parse(JSON.stringify(e.precepts))), e.sqlConnectType && (D.value = e.sqlConnectType), e.columns && e.columns.length > 0)) {
6700
- w.value = {}, v.value = {}, Q.value = e.columns.filter((P) => P.show !== !1).map((P) => P.value), e.columns.forEach((P) => {
6701
- P.width && (w.value[P.value] = parseInt(P.width)), P.fixed ? v.value[P.value] = P.fixed : v.value[P.value] = "none";
6702
- });
6703
- const n = e.columns.map((P) => P.value), U = n.map(
6704
- (P) => d.fieldOptions.find((ye) => ye.value === P)
6705
- ).filter(Boolean), q = d.fieldOptions.filter(
6706
- (P) => !n.includes(P.value)
6707
- );
6708
- o.value = [...U, ...q], re.value = Q.value.length === d.fieldOptions.length;
6709
- const O = e.columns.filter((P) => P.show !== !1);
6710
- f("column-change", O);
6711
- }
6712
- }, V = () => {
6713
- N.value = !1, h.value = null, B.value = "", I.value = "none", S.value = "specific", z.value = [], t.value = !0;
6714
- }, F = (e) => {
6715
- const n = o.value.map((U) => {
6716
- const q = w.value[U.value], O = v.value[U.value] || "none";
6717
- return {
6718
- value: U.value,
6719
- show: Q.value.includes(U.value),
6720
- // 是否显示
6721
- width: q ? `${q}px` : "120px",
6722
- fixed: O
6723
- // 冻结状态
6724
- };
6725
- });
6726
- N.value && h.value ? f("update-plan", {
6727
- ...e,
6728
- plan: h.value,
6729
- filterCards: i.value,
6730
- topOp: D.value,
6731
- columns: n
6732
- }) : f("save-plan", {
6733
- ...e,
6734
- filterCards: i.value,
6735
- topOp: D.value,
6736
- columns: n
6737
- }), N.value = !1, h.value = null;
6738
- }, E = (e) => {
6739
- N.value = !0, h.value = e, B.value = e.content || "", I.value = e.shareMode || "none", S.value = e.shareType || "specific", z.value = e.selectedUsers || [], t.value = !0;
6740
- }, m = (e) => {
6741
- f("copy-plan", e);
6742
- }, u = (e) => {
6743
- f("delete-plan", e);
6744
- }, y = (e) => {
6745
- f("set-default-plan", e);
6746
- }, K = () => {
6747
- ee.value = null, i.value = [
6448
+ }).filter((a) => a.conditions.length > 0 && a.conditions[0].field !== ""), w = () => {
6449
+ I.value = null, m.value = [
6748
6450
  {
6749
6451
  id: 1,
6750
6452
  connector: "and",
@@ -6753,569 +6455,241 @@ const je = [
6753
6455
  { field: "", operator: "eq", value: "" }
6754
6456
  ]
6755
6457
  }
6756
- ], D.value = "and", f("reset");
6757
- }, _ = () => {
6758
- if (L.value === "filter") {
6759
- const e = H(i.value);
6760
- f("confirm", {
6761
- filterCards: e,
6762
- type1: D.value
6763
- });
6764
- } else L.value === "column" && Oe();
6765
- ie();
6766
- }, ie = () => {
6767
- f("update:visible", !1);
6768
- }, de = (e) => {
6769
- f("load-users", e);
6770
- }, ce = (e) => {
6771
- f("search", e);
6772
- }, ve = (e) => {
6773
- f("dept-click", { dept: e, callback: (U) => {
6774
- M.value = U;
6775
- } });
6776
- }, Q = b([]), re = b(!1), w = b({}), v = b({}), o = b([]), A = b(null), T = b(null);
6777
- ne(() => d.visibleColumns, (e) => {
6778
- if (w.value = {}, v.value = {}, e && e.length > 0) {
6779
- if (typeof e[0] == "object") {
6780
- Q.value = e.filter((O) => O.show !== !1).map((O) => O.value), e.forEach((O) => {
6781
- O.width && (w.value[O.value] = parseInt(O.width)), O.fixed ? v.value[O.value] = O.fixed : v.value[O.value] = "none";
6458
+ ], x.value = "and", k("reset");
6459
+ }, O = () => {
6460
+ const v = R(m.value);
6461
+ k("confirm", {
6462
+ filterCards: v,
6463
+ type1: x.value
6464
+ }), U(), N();
6465
+ }, N = () => {
6466
+ k("update:visible", !1);
6467
+ }, K = _([]), D = _(!1), c = _({}), f = _({}), n = _([]);
6468
+ _(null), _(null), G(() => d.visibleColumns, (v) => {
6469
+ if (c.value = {}, f.value = {}, v && v.length > 0) {
6470
+ if (typeof v[0] == "object") {
6471
+ K.value = v.filter((l) => l.show !== !1).map((l) => l.value), v.forEach((l) => {
6472
+ l.width && (c.value[l.value] = parseInt(l.width)), l.fixed ? f.value[l.value] = l.fixed : f.value[l.value] = "none";
6782
6473
  });
6783
- const n = e.map((O) => O.value), U = n.map(
6784
- (O) => d.fieldOptions.find((P) => P.value === O)
6785
- ).filter(Boolean), q = d.fieldOptions.filter(
6786
- (O) => !n.includes(O.value)
6474
+ const a = v.map((l) => l.value), p = a.map(
6475
+ (l) => d.fieldOptions.find((t) => t.value === l)
6476
+ ).filter(Boolean), C = d.fieldOptions.filter(
6477
+ (l) => !a.includes(l.value)
6787
6478
  );
6788
- o.value = [...U, ...q];
6479
+ n.value = [...p, ...C];
6789
6480
  } else {
6790
- Q.value = [...e];
6791
- const n = e.map(
6792
- (q) => d.fieldOptions.find((O) => O.value === q)
6793
- ).filter(Boolean), U = d.fieldOptions.filter(
6794
- (q) => !e.includes(q.value)
6481
+ K.value = [...v];
6482
+ const a = v.map(
6483
+ (C) => d.fieldOptions.find((l) => l.value === C)
6484
+ ).filter(Boolean), p = d.fieldOptions.filter(
6485
+ (C) => !v.includes(C.value)
6795
6486
  );
6796
- o.value = [...n, ...U];
6487
+ n.value = [...a, ...p];
6797
6488
  }
6798
- re.value = Q.value.length === d.fieldOptions.length;
6799
- } else d.fieldOptions.length > 0 && (Q.value = d.fieldOptions.map((n) => n.value), o.value = [...d.fieldOptions], re.value = !0);
6800
- d.fieldOptions.forEach((n) => {
6801
- v.value[n.value] || (v.value[n.value] = "none");
6489
+ D.value = K.value.length === d.fieldOptions.length;
6490
+ } else d.fieldOptions.length > 0 && (K.value = d.fieldOptions.map((a) => a.value), n.value = [...d.fieldOptions], D.value = !0);
6491
+ d.fieldOptions.forEach((a) => {
6492
+ f.value[a.value] || (f.value[a.value] = "none");
6802
6493
  });
6803
- }, { immediate: !0 }), ne(() => d.fieldOptions, (e) => {
6804
- o.value.length || (o.value = [...e]);
6494
+ }, { immediate: !0 }), G(() => d.fieldOptions, (v) => {
6495
+ n.value.length || (n.value = [...v]);
6805
6496
  }, { immediate: !0 });
6806
- const Z = (e, n) => {
6807
- if (n)
6808
- Q.value.includes(e) || Q.value.push(e);
6809
- else {
6810
- const U = Q.value.indexOf(e);
6811
- U > -1 && Q.value.splice(U, 1);
6812
- }
6813
- re.value = Q.value.length === d.fieldOptions.length;
6814
- }, W = (e) => {
6815
- e ? Q.value = o.value.map((n) => n.value) : Q.value = [];
6816
- }, he = (e) => {
6817
- if (e > 0) {
6818
- const n = o.value[e];
6819
- o.value[e] = o.value[e - 1], o.value[e - 1] = n, o.value = [...o.value];
6820
- }
6821
- }, Ce = (e) => {
6822
- if (e < o.value.length - 1) {
6823
- const n = o.value[e];
6824
- o.value[e] = o.value[e + 1], o.value[e + 1] = n, o.value = [...o.value];
6825
- }
6826
- }, _e = (e, n) => {
6827
- A.value = e, n.dataTransfer.effectAllowed = "move", n.dataTransfer.setData("text/html", n.target.innerHTML);
6828
- }, ke = (e, n) => {
6829
- n.preventDefault(), n.dataTransfer.dropEffect = "move", T.value = e;
6830
- }, ze = () => {
6831
- A.value = null, T.value = null;
6832
- }, we = (e, n) => {
6833
- n.preventDefault();
6834
- const U = A.value;
6835
- if (U === null || U === e)
6836
- return;
6837
- const q = [...o.value], O = q[U];
6838
- q.splice(U, 1), q.splice(e, 0, O), o.value = q, A.value = null, T.value = null;
6839
- }, Oe = () => {
6840
- const e = o.value.filter((n) => Q.value.includes(n.value)).map((n) => {
6841
- const U = w.value[n.value], q = v.value[n.value] || "none";
6497
+ const U = () => {
6498
+ const v = n.value.filter((a) => K.value.includes(a.value)).map((a) => {
6499
+ const p = c.value[a.value], C = f.value[a.value] || "none";
6842
6500
  return {
6843
- value: n.value,
6501
+ value: a.value,
6844
6502
  show: !0,
6845
6503
  // 已通过filter筛选,都是显示的
6846
- width: U ? `${U}px` : "120px",
6504
+ width: p ? `${p}px` : "120px",
6847
6505
  // 没有设置宽度时使用默认值120px
6848
- fixed: q
6506
+ fixed: C
6849
6507
  // 冻结状态
6850
6508
  };
6851
6509
  });
6852
- f("column-change", e);
6510
+ k("column-change", v);
6853
6511
  };
6854
- return (e, n) => {
6855
- const U = p("t-radio-button"), q = p("t-radio-group"), O = p("t-icon"), P = p("t-button"), ye = p("t-tab-panel"), Ue = p("t-checkbox"), Fe = p("t-option"), Ne = p("t-select"), qe = p("t-input-number"), Me = p("t-tabs"), ge = p("t-tooltip"), Be = p("t-dialog");
6856
- return g(), R(le, null, [
6857
- a(Be, {
6858
- header: "方案设置",
6859
- placement: "center",
6860
- attach: "body",
6861
- visible: s.visible,
6862
- "onUpdate:visible": n[4] || (n[4] = (k) => e.$emit("update:visible", k)),
6863
- width: s.width,
6864
- "z-index": 999,
6865
- footer: !0,
6866
- onClose: ie,
6867
- id: "leader-line-clip-container"
6868
- }, {
6869
- body: l(() => [
6870
- r("div", pa, [
6871
- r("div", ya, [
6872
- r("div", ga, [
6873
- r("div", ba, [
6874
- a(Me, {
6875
- modelValue: L.value,
6876
- "onUpdate:modelValue": n[2] || (n[2] = (k) => L.value = k),
6877
- size: "medium"
6878
- }, {
6879
- default: l(() => [
6880
- a(ye, {
6881
- value: "filter",
6882
- label: "筛选"
6883
- }, {
6884
- default: l(() => [
6885
- r("div", ha, [
6886
- i.value.length > 1 ? (g(), R("div", Ca, [
6887
- r("div", _a, [
6888
- a(q, {
6889
- size: s.size,
6890
- class: "connector-selector",
6891
- modelValue: D.value,
6892
- "onUpdate:modelValue": n[0] || (n[0] = (k) => D.value = k)
6893
- }, {
6894
- default: l(() => [
6895
- a(U, { value: "and" }, {
6896
- default: l(() => [...n[6] || (n[6] = [
6897
- $("且", -1)
6898
- ])]),
6899
- _: 1
6900
- }),
6901
- a(U, { value: "or" }, {
6902
- default: l(() => [...n[7] || (n[7] = [
6903
- $("或", -1)
6904
- ])]),
6905
- _: 1
6906
- })
6907
- ]),
6908
- _: 1
6909
- }, 8, ["size", "modelValue"])
6910
- ])
6911
- ])) : oe("", !0),
6912
- r("div", ka, [
6913
- (g(!0), R(le, null, se(i.value, (k, ae) => (g(), R("div", {
6914
- key: k.id,
6915
- class: "filter-card-item"
6916
- }, [
6917
- r("div", za, [
6918
- r("div", wa, [
6919
- r("span", Oa, "筛选卡片 " + pe(ae + 1), 1),
6920
- a(q, {
6921
- size: s.size,
6922
- modelValue: k.connector,
6923
- "onUpdate:modelValue": (Y) => k.connector = Y,
6924
- class: "connector-selector"
6925
- }, {
6926
- default: l(() => [
6927
- a(U, { value: "and" }, {
6928
- default: l(() => [...n[8] || (n[8] = [
6929
- $("且", -1)
6930
- ])]),
6931
- _: 1
6932
- }),
6933
- a(U, { value: "or" }, {
6934
- default: l(() => [...n[9] || (n[9] = [
6935
- $("或", -1)
6936
- ])]),
6937
- _: 1
6938
- })
6939
- ]),
6940
- _: 1
6941
- }, 8, ["size", "modelValue", "onUpdate:modelValue"])
6942
- ]),
6943
- a(P, {
6944
- theme: "default",
6945
- variant: "text",
6946
- size: s.size,
6947
- onClick: (Y) => c(ae),
6948
- disabled: i.value.length === 1
6949
- }, {
6950
- icon: l(() => [
6951
- a(O, { name: "close" })
6952
- ]),
6953
- _: 1
6954
- }, 8, ["size", "onClick", "disabled"])
6955
- ]),
6956
- r("div", Fa, [
6957
- (g(!0), R(le, null, se(k.conditions, (Y, Ve) => (g(), R("div", {
6958
- key: Ve,
6959
- class: "filter-combination"
6960
- }, [
6961
- a($e, {
6962
- "field-options": s.fieldOptions,
6963
- "filter-condition": k.conditions[Ve],
6964
- "select-options": s.selectOptions,
6965
- size: s.size
6966
- }, null, 8, ["field-options", "filter-condition", "select-options", "size"]),
6967
- a(P, {
6968
- theme: "default",
6969
- variant: "text",
6970
- size: s.size,
6971
- onClick: (yl) => j(ae, Ve),
6972
- disabled: k.conditions.length === 1
6973
- }, {
6974
- icon: l(() => [
6975
- a(O, { name: "minus" })
6976
- ]),
6977
- _: 1
6978
- }, 8, ["size", "onClick", "disabled"])
6979
- ]))), 128)),
6980
- r("div", Va, [
6981
- a(P, {
6982
- theme: "default",
6983
- size: s.size,
6984
- onClick: (Y) => J(ae)
6985
- }, {
6986
- icon: l(() => [
6987
- a(O, { name: "add" })
6988
- ]),
6989
- default: l(() => [
6990
- n[10] || (n[10] = $(" 添加条件 ", -1))
6991
- ]),
6992
- _: 1
6993
- }, 8, ["size", "onClick"])
6994
- ])
6995
- ])
6996
- ]))), 128)),
6997
- r("div", {
6998
- class: "add-filter-card",
6999
- onClick: C
7000
- }, [
7001
- r("div", Sa, [
7002
- a(O, { name: "add" }),
7003
- n[11] || (n[11] = r("span", null, "增加筛选卡片", -1))
7004
- ])
7005
- ])
7006
- ])
7007
- ])
7008
- ]),
7009
- _: 1
7010
- }),
7011
- a(ye, {
7012
- value: "column",
7013
- label: "列配置"
6512
+ return (v, a) => {
6513
+ const p = F("t-radio-button"), C = F("t-radio-group"), l = F("t-icon"), t = F("t-button"), y = F("t-dialog");
6514
+ return g(), J(y, {
6515
+ header: "高级筛选",
6516
+ placement: "center",
6517
+ attach: "body",
6518
+ visible: i.visible,
6519
+ "onUpdate:visible": a[1] || (a[1] = (z) => v.$emit("update:visible", z)),
6520
+ width: i.width,
6521
+ "z-index": 999,
6522
+ footer: !0,
6523
+ onClose: N,
6524
+ id: "leader-line-clip-container"
6525
+ }, {
6526
+ body: r(() => [
6527
+ s("div", Xe, [
6528
+ s("div", Ze, [
6529
+ s("div", ea, [
6530
+ s("div", aa, [
6531
+ s("div", la, [
6532
+ m.value.length > 1 ? (g(), B("div", ta, [
6533
+ s("div", na, [
6534
+ o(C, {
6535
+ size: i.size,
6536
+ class: "connector-selector",
6537
+ modelValue: x.value,
6538
+ "onUpdate:modelValue": a[0] || (a[0] = (z) => x.value = z)
7014
6539
  }, {
7015
- default: l(() => [
7016
- r("div", xa, [
7017
- r("div", $a, [
7018
- n[13] || (n[13] = r("div", { class: "column-title column-title-name" }, "名称", -1)),
7019
- r("div", Ua, [
7020
- a(Ue, {
7021
- modelValue: re.value,
7022
- "onUpdate:modelValue": n[1] || (n[1] = (k) => re.value = k),
7023
- onChange: W
7024
- }, null, 8, ["modelValue"]),
7025
- n[12] || (n[12] = $(" 显示", -1))
7026
- ]),
7027
- n[14] || (n[14] = r("div", { class: "column-title column-title-width" }, "冻结列", -1)),
7028
- n[15] || (n[15] = r("div", { class: "column-title column-title-width" }, "宽度", -1)),
7029
- n[16] || (n[16] = r("div", { class: "column-title column-title-sort" }, "排序", -1))
7030
- ]),
7031
- r("div", Da, [
7032
- (g(!0), R(le, null, se(o.value, (k, ae) => (g(), R("div", {
7033
- key: k.value,
7034
- class: Se(["column-item-row", { dragging: A.value === ae }]),
7035
- draggable: "true",
7036
- onDragstart: (Y) => _e(ae, Y),
7037
- onDragover: (Y) => ke(ae, Y),
7038
- onDragend: ze,
7039
- onDrop: (Y) => we(ae, Y)
7040
- }, [
7041
- r("div", Ea, [
7042
- a(O, {
7043
- name: "move",
7044
- style: { cursor: "move", color: "#999", "margin-right": "8px" }
7045
- }),
7046
- $(" " + pe(k.label), 1)
7047
- ]),
7048
- r("div", Aa, [
7049
- a(Ue, {
7050
- checked: Q.value.includes(k.value),
7051
- onChange: (Y) => Z(k.value, Y)
7052
- }, null, 8, ["checked", "onChange"])
7053
- ]),
7054
- r("div", Pa, [
7055
- a(Ne, {
7056
- modelValue: v.value[k.value],
7057
- "onUpdate:modelValue": (Y) => v.value[k.value] = Y,
7058
- size: "small",
7059
- style: { width: "120px" }
7060
- }, {
7061
- default: l(() => [
7062
- a(Fe, {
7063
- value: "none",
7064
- label: "不冻结"
7065
- }),
7066
- a(Fe, {
7067
- value: "left",
7068
- label: "左侧冻结"
7069
- }),
7070
- a(Fe, {
7071
- value: "right",
7072
- label: "右侧冻结"
7073
- })
7074
- ]),
7075
- _: 1
7076
- }, 8, ["modelValue", "onUpdate:modelValue"])
7077
- ]),
7078
- r("div", Na, [
7079
- a(qe, {
7080
- modelValue: w.value[k.value],
7081
- "onUpdate:modelValue": (Y) => w.value[k.value] = Y,
7082
- min: 50,
7083
- max: 500,
7084
- step: 10,
7085
- size: "small",
7086
- placeholder: "",
7087
- style: { width: "100px" }
7088
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
7089
- ]),
7090
- r("div", qa, [
7091
- a(P, {
7092
- theme: "default",
7093
- variant: "text",
7094
- size: "small",
7095
- onClick: (Y) => he(ae),
7096
- disabled: ae === 0
7097
- }, {
7098
- icon: l(() => [
7099
- a(O, {
7100
- name: "chevron-up",
7101
- style: { color: "#f60" }
7102
- })
7103
- ]),
7104
- _: 1
7105
- }, 8, ["onClick", "disabled"]),
7106
- a(P, {
7107
- theme: "default",
7108
- variant: "text",
7109
- size: "small",
7110
- onClick: (Y) => Ce(ae),
7111
- disabled: ae === o.value.length - 1
7112
- }, {
7113
- icon: l(() => [
7114
- a(O, {
7115
- name: "chevron-down",
7116
- style: { color: "#f60" }
7117
- })
7118
- ]),
7119
- _: 1
7120
- }, 8, ["onClick", "disabled"])
7121
- ])
7122
- ], 42, Ta))), 128))
7123
- ])
7124
- ])
6540
+ default: r(() => [
6541
+ o(p, { value: "and" }, {
6542
+ default: r(() => [...a[2] || (a[2] = [
6543
+ T("", -1)
6544
+ ])]),
6545
+ _: 1
6546
+ }),
6547
+ o(p, { value: "or" }, {
6548
+ default: r(() => [...a[3] || (a[3] = [
6549
+ T("或", -1)
6550
+ ])]),
6551
+ _: 1
6552
+ })
7125
6553
  ]),
7126
6554
  _: 1
7127
- })
7128
- ]),
7129
- _: 1
7130
- }, 8, ["modelValue"])
7131
- ]),
7132
- r("div", Ma, [
7133
- n[17] || (n[17] = r("div", { class: "filter-plan-title" }, "我的方案", -1)),
7134
- r("div", Ba, [
7135
- (g(!0), R(le, null, se(s.planFilterOptions, (k) => {
7136
- var ae;
7137
- return g(), R("div", {
7138
- key: k.value,
7139
- class: Se(["filter-plan-item", { active: ((ae = ee.value) == null ? void 0 : ae.value) === k.value }]),
7140
- onClick: (Y) => X(k)
7141
- }, [
7142
- a(O, {
7143
- name: "file-text",
7144
- class: "plan-icon"
7145
- }),
7146
- r("span", Ja, pe(k.name), 1),
7147
- r("div", {
7148
- class: "plan-actions",
7149
- onClick: n[3] || (n[3] = De(() => {
7150
- }, ["stop"]))
7151
- }, [
7152
- a(ge, {
7153
- content: "编辑",
7154
- placement: "top"
6555
+ }, 8, ["size", "modelValue"])
6556
+ ])
6557
+ ])) : W("", !0),
6558
+ s("div", oa, [
6559
+ (g(!0), B(Q, null, Z(m.value, (z, h) => (g(), B("div", {
6560
+ key: z.id,
6561
+ class: "filter-card-item"
6562
+ }, [
6563
+ s("div", ia, [
6564
+ s("div", ra, [
6565
+ s("span", sa, "筛选卡片 " + te(h + 1), 1),
6566
+ o(C, {
6567
+ size: i.size,
6568
+ modelValue: z.connector,
6569
+ "onUpdate:modelValue": (L) => z.connector = L,
6570
+ class: "connector-selector"
7155
6571
  }, {
7156
- default: l(() => [
7157
- a(P, {
7158
- theme: "default",
7159
- variant: "text",
7160
- size: "small",
7161
- onClick: De((Y) => E(k), ["stop"]),
7162
- disabled: !k.value || k.value === "empty"
7163
- }, {
7164
- icon: l(() => [
7165
- a(O, {
7166
- name: "edit",
7167
- style: { color: "#0052d9" }
7168
- })
7169
- ]),
6572
+ default: r(() => [
6573
+ o(p, { value: "and" }, {
6574
+ default: r(() => [...a[4] || (a[4] = [
6575
+ T("", -1)
6576
+ ])]),
6577
+ _: 1
6578
+ }),
6579
+ o(p, { value: "or" }, {
6580
+ default: r(() => [...a[5] || (a[5] = [
6581
+ T("或", -1)
6582
+ ])]),
7170
6583
  _: 1
7171
- }, 8, ["onClick", "disabled"])
6584
+ })
7172
6585
  ]),
7173
- _: 2
7174
- }, 1024),
7175
- a(ge, {
7176
- content: "设置为默认方案",
7177
- placement: "top"
6586
+ _: 1
6587
+ }, 8, ["size", "modelValue", "onUpdate:modelValue"])
6588
+ ]),
6589
+ o(t, {
6590
+ theme: "default",
6591
+ variant: "text",
6592
+ size: i.size,
6593
+ onClick: (L) => j(h),
6594
+ disabled: m.value.length === 1
6595
+ }, {
6596
+ icon: r(() => [
6597
+ o(l, { name: "close" })
6598
+ ]),
6599
+ _: 1
6600
+ }, 8, ["size", "onClick", "disabled"])
6601
+ ]),
6602
+ s("div", da, [
6603
+ (g(!0), B(Q, null, Z(z.conditions, (L, X) => (g(), B("div", {
6604
+ key: X,
6605
+ class: "filter-combination"
6606
+ }, [
6607
+ o(me, {
6608
+ "field-options": i.fieldOptions,
6609
+ "filter-condition": z.conditions[X],
6610
+ "select-options": i.selectOptions,
6611
+ size: i.size
6612
+ }, null, 8, ["field-options", "filter-condition", "select-options", "size"]),
6613
+ o(t, {
6614
+ theme: "default",
6615
+ variant: "text",
6616
+ size: i.size,
6617
+ onClick: (le) => q(h, X),
6618
+ disabled: z.conditions.length === 1
7178
6619
  }, {
7179
- default: l(() => [
7180
- a(P, {
7181
- theme: "default",
7182
- variant: "text",
7183
- size: "small",
7184
- onClick: (Y) => y(k),
7185
- disabled: !k.value || k.value === "empty"
7186
- }, {
7187
- icon: l(() => [
7188
- a(O, {
7189
- name: k.isDefault ? "check-circle-filled" : "check-circle",
7190
- style: xe({ color: k.isDefault ? "#0052d9" : "#bbb" })
7191
- }, null, 8, ["name", "style"])
7192
- ]),
7193
- _: 2
7194
- }, 1032, ["onClick", "disabled"])
6620
+ icon: r(() => [
6621
+ o(l, { name: "minus" })
7195
6622
  ]),
7196
- _: 2
7197
- }, 1024),
7198
- a(ge, {
7199
- content: "复制方案",
7200
- placement: "top"
6623
+ _: 1
6624
+ }, 8, ["size", "onClick", "disabled"])
6625
+ ]))), 128)),
6626
+ s("div", ua, [
6627
+ o(t, {
6628
+ theme: "default",
6629
+ size: i.size,
6630
+ onClick: (L) => P(h)
7201
6631
  }, {
7202
- default: l(() => [
7203
- a(P, {
7204
- theme: "default",
7205
- variant: "text",
7206
- size: "small",
7207
- onClick: (Y) => m(k),
7208
- disabled: !k.value || k.value === "empty"
7209
- }, {
7210
- icon: l(() => [
7211
- a(O, {
7212
- name: "file-copy",
7213
- style: { color: "#ff9800" }
7214
- })
7215
- ]),
7216
- _: 1
7217
- }, 8, ["onClick", "disabled"])
6632
+ icon: r(() => [
6633
+ o(l, { name: "add" })
7218
6634
  ]),
7219
- _: 2
7220
- }, 1024),
7221
- a(ge, {
7222
- content: "删除方案",
7223
- placement: "top"
7224
- }, {
7225
- default: l(() => [
7226
- a(P, {
7227
- theme: "default",
7228
- variant: "text",
7229
- size: "small",
7230
- onClick: (Y) => u(k),
7231
- disabled: !k.value || k.value === "empty"
7232
- }, {
7233
- icon: l(() => [
7234
- a(O, {
7235
- name: "delete",
7236
- style: { color: "#0052d9" }
7237
- })
7238
- ]),
7239
- _: 1
7240
- }, 8, ["onClick", "disabled"])
6635
+ default: r(() => [
6636
+ a[6] || (a[6] = T(" 添加条件 ", -1))
7241
6637
  ]),
7242
- _: 2
7243
- }, 1024)
6638
+ _: 1
6639
+ }, 8, ["size", "onClick"])
7244
6640
  ])
7245
- ], 10, Ra);
7246
- }), 128))
6641
+ ])
6642
+ ]))), 128)),
6643
+ s("div", {
6644
+ class: "add-filter-card",
6645
+ onClick: $
6646
+ }, [
6647
+ s("div", ma, [
6648
+ o(l, { name: "add" }),
6649
+ a[7] || (a[7] = s("span", null, "增加筛选卡片", -1))
6650
+ ])
6651
+ ])
7247
6652
  ])
7248
6653
  ])
7249
6654
  ])
7250
6655
  ])
7251
6656
  ])
7252
- ]),
7253
- footer: l(() => [
7254
- r("div", ja, [
7255
- r("div", La, [
7256
- a(P, {
7257
- theme: "warning",
7258
- size: s.size,
7259
- onClick: V
7260
- }, {
7261
- icon: l(() => [
7262
- a(O, { name: "save" })
7263
- ]),
7264
- default: l(() => [
7265
- n[18] || (n[18] = $(" 保存方案 ", -1))
7266
- ]),
7267
- _: 1
7268
- }, 8, ["size"])
7269
- ]),
7270
- r("div", Ia, [
7271
- a(P, {
7272
- theme: "default",
7273
- size: s.size,
7274
- onClick: K
7275
- }, {
7276
- default: l(() => [...n[19] || (n[19] = [
7277
- $("重置", -1)
7278
- ])]),
7279
- _: 1
7280
- }, 8, ["size"]),
7281
- a(P, {
7282
- theme: "primary",
7283
- size: s.size,
7284
- onClick: _
7285
- }, {
7286
- default: l(() => [...n[20] || (n[20] = [
7287
- $("确定", -1)
7288
- ])]),
7289
- _: 1
7290
- }, 8, ["size"])
7291
- ])
6657
+ ])
6658
+ ]),
6659
+ footer: r(() => [
6660
+ s("div", ca, [
6661
+ s("div", va, [
6662
+ o(t, {
6663
+ theme: "default",
6664
+ size: i.size,
6665
+ onClick: w
6666
+ }, {
6667
+ default: r(() => [...a[8] || (a[8] = [
6668
+ T("重置", -1)
6669
+ ])]),
6670
+ _: 1
6671
+ }, 8, ["size"]),
6672
+ o(t, {
6673
+ theme: "primary",
6674
+ size: i.size,
6675
+ onClick: O
6676
+ }, {
6677
+ default: r(() => [...a[9] || (a[9] = [
6678
+ T("确定", -1)
6679
+ ])]),
6680
+ _: 1
6681
+ }, 8, ["size"])
7292
6682
  ])
7293
- ]),
7294
- _: 1
7295
- }, 8, ["visible", "width"]),
7296
- a(fa, {
7297
- visible: t.value,
7298
- "onUpdate:visible": n[5] || (n[5] = (k) => t.value = k),
7299
- "is-editing": N.value,
7300
- "plan-name": B.value,
7301
- "original-share-mode": I.value,
7302
- "original-share-type": S.value,
7303
- "original-selected-users": z.value,
7304
- tabs: s.personTabs,
7305
- organizations: s.personOrganizations,
7306
- "dept-members-data-prop": M.value,
7307
- onConfirm: F,
7308
- onLoadUsers: de,
7309
- onSearch: ce,
7310
- onDeptClick: ve
7311
- }, null, 8, ["visible", "is-editing", "plan-name", "original-share-mode", "original-share-type", "original-selected-users", "tabs", "organizations", "dept-members-data-prop"])
7312
- ], 64);
6683
+ ])
6684
+ ]),
6685
+ _: 1
6686
+ }, 8, ["visible", "width"]);
7313
6687
  };
7314
6688
  }
7315
- }, Ka = /* @__PURE__ */ me(Ha, [["__scopeId", "data-v-f1072cd9"]]), Ya = { class: "dialog-header" }, Ga = { class: "color-filter-dialog" }, Wa = { class: "color-filter-rules" }, Qa = { class: "rule-content" }, Xa = { class: "rule-color-section" }, Za = { class: "color-block-wrapper" }, el = {
6689
+ }, pa = /* @__PURE__ */ ae(fa, [["__scopeId", "data-v-0ee31b05"]]), ya = { class: "dialog-header" }, ba = { class: "color-filter-dialog" }, Ca = { class: "color-filter-rules" }, ga = { class: "rule-content" }, ha = { class: "rule-color-section" }, _a = { class: "color-block-wrapper" }, ka = {
7316
6690
  key: 0,
7317
6691
  class: "bold-indicator"
7318
- }, al = { class: "color-picker-panel" }, ll = { class: "preset-colors" }, tl = ["onClick"], nl = { class: "bold-option" }, ol = { class: "apply-to-section" }, il = { class: "rule-condition" }, sl = { class: "dialog-footer" }, rl = {
6692
+ }, za = { class: "color-picker-panel" }, Fa = { class: "preset-colors" }, Oa = ["onClick"], wa = { class: "bold-option" }, $a = { class: "apply-to-section" }, Va = { class: "rule-condition" }, Sa = { class: "dialog-footer" }, xa = {
7319
6693
  __name: "ColorFilterDialog",
7320
6694
  props: {
7321
6695
  visible: { type: Boolean, default: !1 },
@@ -7324,8 +6698,8 @@ const je = [
7324
6698
  initialRules: { type: Array, default: () => [] }
7325
6699
  },
7326
6700
  emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
7327
- setup(s, { emit: te }) {
7328
- const d = s, f = te, i = b(d.visible), D = [
6701
+ setup(i, { emit: Y }) {
6702
+ const d = i, k = Y, m = _(d.visible), x = [
7329
6703
  // 第一行 - 暖色系
7330
6704
  "#FFE7BA",
7331
6705
  "#FFD6E7",
@@ -7359,7 +6733,7 @@ const je = [
7359
6733
  "#B0BEC5",
7360
6734
  "#E7F5E8",
7361
6735
  "#F8F9FA"
7362
- ], ee = [
6736
+ ], I = [
7363
6737
  { label: "等于", value: "eq" },
7364
6738
  { label: "不等于", value: "ne" },
7365
6739
  { label: "大于", value: "gt" },
@@ -7368,11 +6742,11 @@ const je = [
7368
6742
  { label: "小于等于", value: "lte" },
7369
6743
  { label: "包含", value: "contains" },
7370
6744
  { label: "不包含", value: "notContains" }
7371
- ], t = {
6745
+ ], e = {
7372
6746
  overlayInnerStyle: {
7373
6747
  width: "180px"
7374
6748
  }
7375
- }, M = b([
6749
+ }, $ = _([
7376
6750
  {
7377
6751
  field: "",
7378
6752
  operator: "eq",
@@ -7383,18 +6757,18 @@ const je = [
7383
6757
  applyTo: "cell"
7384
6758
  }
7385
6759
  ]);
7386
- ne(() => d.visible, (C) => {
7387
- i.value = C, C && d.initialRules.length > 0 && (M.value = JSON.parse(JSON.stringify(d.initialRules)).map((c) => ({
6760
+ G(() => d.visible, (D) => {
6761
+ m.value = D, D && d.initialRules.length > 0 && ($.value = JSON.parse(JSON.stringify(d.initialRules)).map((c) => ({
7388
6762
  ...c,
7389
6763
  showColorPicker: !1
7390
6764
  })));
7391
- }), ne(i, (C) => {
7392
- f("update:visible", C);
6765
+ }), G(m, (D) => {
6766
+ k("update:visible", D);
7393
6767
  });
7394
- const L = (C, c) => {
7395
- M.value[C].backgroundColor = c, M.value[C].showColorPicker = !1;
7396
- }, N = () => {
7397
- M.value.push({
6768
+ const j = (D, c) => {
6769
+ $.value[D].backgroundColor = c, $.value[D].showColorPicker = !1;
6770
+ }, P = () => {
6771
+ $.value.push({
7398
6772
  field: "",
7399
6773
  operator: "eq",
7400
6774
  value: "",
@@ -7403,14 +6777,14 @@ const je = [
7403
6777
  showColorPicker: !1,
7404
6778
  applyTo: "cell"
7405
6779
  });
7406
- }, B = (C) => {
7407
- M.value.length > 1 && M.value.splice(C, 1);
7408
- }, I = () => {
7409
- i.value = !1;
7410
- }, S = () => {
7411
- f("clear"), i.value = !1;
7412
- }, z = () => {
7413
- const C = M.value.filter(
6780
+ }, q = (D) => {
6781
+ $.value.length > 1 && $.value.splice(D, 1);
6782
+ }, R = () => {
6783
+ m.value = !1;
6784
+ }, w = () => {
6785
+ k("clear"), m.value = !1;
6786
+ }, O = () => {
6787
+ const D = $.value.filter(
7414
6788
  (c) => c.field && c.operator && c.value
7415
6789
  ).map((c) => ({
7416
6790
  field: c.field,
@@ -7420,122 +6794,122 @@ const je = [
7420
6794
  isBold: c.isBold,
7421
6795
  applyTo: c.applyTo
7422
6796
  }));
7423
- f("confirm", C), i.value = !1;
7424
- }, h = ue(() => {
7425
- const C = M.value.length, c = Math.floor(D.length / C), J = [];
7426
- for (let j = 0; j < C; j++) {
7427
- const H = j * c % D.length;
7428
- J.push(D[H]);
6797
+ k("confirm", D), m.value = !1;
6798
+ }, N = ee(() => {
6799
+ const D = $.value.length, c = Math.floor(x.length / D), f = [];
6800
+ for (let n = 0; n < D; n++) {
6801
+ const U = n * c % x.length;
6802
+ f.push(x[U]);
7429
6803
  }
7430
- return J;
7431
- }), x = () => {
7432
- M.value.forEach((C, c) => {
7433
- c < h.value.length && (C.backgroundColor = h.value[c]);
7434
- }), f("smart-colors-change", h.value);
6804
+ return f;
6805
+ }), K = () => {
6806
+ $.value.forEach((D, c) => {
6807
+ c < N.value.length && (D.backgroundColor = N.value[c]);
6808
+ }), k("smart-colors-change", N.value);
7435
6809
  };
7436
- return (C, c) => {
7437
- const J = p("t-button"), j = p("t-checkbox"), H = p("t-popup"), X = p("t-radio-button"), V = p("t-radio-group"), F = p("t-select"), E = p("t-input"), m = p("t-icon"), u = p("t-dialog");
7438
- return g(), G(u, {
7439
- visible: i.value,
7440
- "onUpdate:visible": c[0] || (c[0] = (y) => i.value = y),
6810
+ return (D, c) => {
6811
+ const f = F("t-button"), n = F("t-checkbox"), U = F("t-popup"), v = F("t-radio-button"), a = F("t-radio-group"), p = F("t-select"), C = F("t-input"), l = F("t-icon"), t = F("t-dialog");
6812
+ return g(), J(t, {
6813
+ visible: m.value,
6814
+ "onUpdate:visible": c[0] || (c[0] = (y) => m.value = y),
7441
6815
  width: "800px",
7442
6816
  "confirm-btn": null,
7443
6817
  "cancel-btn": null,
7444
- onClose: I
6818
+ onClose: R
7445
6819
  }, {
7446
- header: l(() => [
7447
- r("div", Ya, [
7448
- c[3] || (c[3] = r("span", null, "颜色筛选", -1)),
7449
- a(J, {
6820
+ header: r(() => [
6821
+ s("div", ya, [
6822
+ c[3] || (c[3] = s("span", null, "颜色筛选", -1)),
6823
+ o(f, {
7450
6824
  theme: "primary",
7451
6825
  variant: "outline",
7452
6826
  size: "small",
7453
- onClick: x
6827
+ onClick: K
7454
6828
  }, {
7455
- icon: l(() => [...c[1] || (c[1] = [
7456
- r("i", { class: "ri-palette-line" }, null, -1)
6829
+ icon: r(() => [...c[1] || (c[1] = [
6830
+ s("i", { class: "ri-palette-line" }, null, -1)
7457
6831
  ])]),
7458
- default: l(() => [
7459
- c[2] || (c[2] = $(" 智能配色 ", -1))
6832
+ default: r(() => [
6833
+ c[2] || (c[2] = T(" 智能配色 ", -1))
7460
6834
  ]),
7461
6835
  _: 1
7462
6836
  })
7463
6837
  ])
7464
6838
  ]),
7465
- body: l(() => [
7466
- r("div", Ga, [
7467
- r("div", Wa, [
7468
- (g(!0), R(le, null, se(M.value, (y, K) => (g(), R("div", {
7469
- key: K,
6839
+ body: r(() => [
6840
+ s("div", ba, [
6841
+ s("div", Ca, [
6842
+ (g(!0), B(Q, null, Z($.value, (y, z) => (g(), B("div", {
6843
+ key: z,
7470
6844
  class: "color-rule-item"
7471
6845
  }, [
7472
- r("div", Qa, [
7473
- r("div", Xa, [
7474
- a(H, {
6846
+ s("div", ga, [
6847
+ s("div", ha, [
6848
+ o(U, {
7475
6849
  visible: y.showColorPicker,
7476
- "onUpdate:visible": (_) => y.showColorPicker = _,
6850
+ "onUpdate:visible": (h) => y.showColorPicker = h,
7477
6851
  placement: "bottom-left",
7478
6852
  trigger: "click"
7479
6853
  }, {
7480
- content: l(() => [
7481
- r("div", al, [
7482
- r("div", ll, [
7483
- (g(), R(le, null, se(D, (_) => r("div", {
7484
- key: _,
7485
- class: Se(["preset-color-item", { active: y.backgroundColor === _ }]),
7486
- style: xe({ backgroundColor: _ }),
7487
- onClick: (ie) => L(K, _)
7488
- }, null, 14, tl)), 64))
6854
+ content: r(() => [
6855
+ s("div", za, [
6856
+ s("div", Fa, [
6857
+ (g(), B(Q, null, Z(x, (h) => s("div", {
6858
+ key: h,
6859
+ class: ue(["preset-color-item", { active: y.backgroundColor === h }]),
6860
+ style: de({ backgroundColor: h }),
6861
+ onClick: (L) => j(z, h)
6862
+ }, null, 14, Oa)), 64))
7489
6863
  ]),
7490
- r("div", nl, [
7491
- a(j, {
6864
+ s("div", wa, [
6865
+ o(n, {
7492
6866
  modelValue: y.isBold,
7493
- "onUpdate:modelValue": (_) => y.isBold = _
6867
+ "onUpdate:modelValue": (h) => y.isBold = h
7494
6868
  }, {
7495
- default: l(() => [...c[4] || (c[4] = [
7496
- r("span", { class: "bold-text" }, "加粗", -1)
6869
+ default: r(() => [...c[4] || (c[4] = [
6870
+ s("span", { class: "bold-text" }, "加粗", -1)
7497
6871
  ])]),
7498
6872
  _: 1
7499
6873
  }, 8, ["modelValue", "onUpdate:modelValue"])
7500
6874
  ])
7501
6875
  ])
7502
6876
  ]),
7503
- default: l(() => [
7504
- r("div", Za, [
7505
- r("div", {
6877
+ default: r(() => [
6878
+ s("div", _a, [
6879
+ s("div", {
7506
6880
  class: "color-block",
7507
- style: xe({ backgroundColor: y.backgroundColor })
6881
+ style: de({ backgroundColor: y.backgroundColor })
7508
6882
  }, [
7509
- y.isBold ? (g(), R("span", el, "B")) : oe("", !0)
6883
+ y.isBold ? (g(), B("span", ka, "B")) : W("", !0)
7510
6884
  ], 4)
7511
6885
  ])
7512
6886
  ]),
7513
6887
  _: 2
7514
6888
  }, 1032, ["visible", "onUpdate:visible"])
7515
6889
  ]),
7516
- r("div", ol, [
7517
- a(V, {
6890
+ s("div", $a, [
6891
+ o(a, {
7518
6892
  modelValue: y.applyTo,
7519
- "onUpdate:modelValue": (_) => y.applyTo = _,
7520
- size: s.size,
6893
+ "onUpdate:modelValue": (h) => y.applyTo = h,
6894
+ size: i.size,
7521
6895
  variant: "default-filled"
7522
6896
  }, {
7523
- default: l(() => [
7524
- a(X, { value: "cell" }, {
7525
- default: l(() => [...c[5] || (c[5] = [
7526
- $("单元格", -1)
6897
+ default: r(() => [
6898
+ o(v, { value: "cell" }, {
6899
+ default: r(() => [...c[5] || (c[5] = [
6900
+ T("单元格", -1)
7527
6901
  ])]),
7528
6902
  _: 1
7529
6903
  }),
7530
- a(X, { value: "row" }, {
7531
- default: l(() => [...c[6] || (c[6] = [
7532
- $("整行", -1)
6904
+ o(v, { value: "row" }, {
6905
+ default: r(() => [...c[6] || (c[6] = [
6906
+ T("整行", -1)
7533
6907
  ])]),
7534
6908
  _: 1
7535
6909
  }),
7536
- a(X, { value: "column" }, {
7537
- default: l(() => [...c[7] || (c[7] = [
7538
- $("整列", -1)
6910
+ o(v, { value: "column" }, {
6911
+ default: r(() => [...c[7] || (c[7] = [
6912
+ T("整列", -1)
7539
6913
  ])]),
7540
6914
  _: 1
7541
6915
  })
@@ -7543,94 +6917,94 @@ const je = [
7543
6917
  _: 1
7544
6918
  }, 8, ["modelValue", "onUpdate:modelValue", "size"])
7545
6919
  ]),
7546
- r("div", il, [
7547
- a(F, {
6920
+ s("div", Va, [
6921
+ o(p, {
7548
6922
  modelValue: y.field,
7549
- "onUpdate:modelValue": (_) => y.field = _,
7550
- options: s.fieldOptions,
6923
+ "onUpdate:modelValue": (h) => y.field = h,
6924
+ options: i.fieldOptions,
7551
6925
  placeholder: "选择字段",
7552
- size: s.size,
6926
+ size: i.size,
7553
6927
  style: { width: "120px", display: "inline-block" },
7554
- "popup-props": t
6928
+ "popup-props": e
7555
6929
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "size"]),
7556
- a(F, {
6930
+ o(p, {
7557
6931
  modelValue: y.operator,
7558
- "onUpdate:modelValue": (_) => y.operator = _,
7559
- options: ee,
6932
+ "onUpdate:modelValue": (h) => y.operator = h,
6933
+ options: I,
7560
6934
  placeholder: "选择操作符",
7561
- size: s.size,
6935
+ size: i.size,
7562
6936
  style: { width: "120px" },
7563
- "popup-props": t
6937
+ "popup-props": e
7564
6938
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
7565
- a(E, {
6939
+ o(C, {
7566
6940
  modelValue: y.value,
7567
- "onUpdate:modelValue": (_) => y.value = _,
6941
+ "onUpdate:modelValue": (h) => y.value = h,
7568
6942
  placeholder: "输入值",
7569
- size: s.size,
6943
+ size: i.size,
7570
6944
  style: { width: "200px" }
7571
6945
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size"])
7572
6946
  ])
7573
6947
  ]),
7574
- a(J, {
6948
+ o(f, {
7575
6949
  theme: "default",
7576
6950
  variant: "text",
7577
- size: s.size,
7578
- onClick: (_) => B(K),
7579
- disabled: M.value.length === 1
6951
+ size: i.size,
6952
+ onClick: (h) => q(z),
6953
+ disabled: $.value.length === 1
7580
6954
  }, {
7581
- icon: l(() => [...c[8] || (c[8] = [
7582
- r("i", { class: "ri-close-fill" }, null, -1)
6955
+ icon: r(() => [...c[8] || (c[8] = [
6956
+ s("i", { class: "ri-close-fill" }, null, -1)
7583
6957
  ])]),
7584
6958
  _: 1
7585
6959
  }, 8, ["size", "onClick", "disabled"])
7586
6960
  ]))), 128))
7587
6961
  ]),
7588
- a(J, {
6962
+ o(f, {
7589
6963
  theme: "default",
7590
6964
  variant: "dashed",
7591
- size: s.size,
7592
- onClick: N,
6965
+ size: i.size,
6966
+ onClick: P,
7593
6967
  style: { width: "100%", "margin-top": "12px" }
7594
6968
  }, {
7595
- icon: l(() => [
7596
- a(m, { name: "add" })
6969
+ icon: r(() => [
6970
+ o(l, { name: "add" })
7597
6971
  ]),
7598
- default: l(() => [
7599
- c[9] || (c[9] = $(" 添加规则 ", -1))
6972
+ default: r(() => [
6973
+ c[9] || (c[9] = T(" 添加规则 ", -1))
7600
6974
  ]),
7601
6975
  _: 1
7602
6976
  }, 8, ["size"])
7603
6977
  ])
7604
6978
  ]),
7605
- footer: l(() => [
7606
- r("div", sl, [
7607
- a(J, {
6979
+ footer: r(() => [
6980
+ s("div", Sa, [
6981
+ o(f, {
7608
6982
  theme: "default",
7609
- size: s.size,
7610
- onClick: I
6983
+ size: i.size,
6984
+ onClick: R
7611
6985
  }, {
7612
- default: l(() => [...c[10] || (c[10] = [
7613
- $("取消", -1)
6986
+ default: r(() => [...c[10] || (c[10] = [
6987
+ T("取消", -1)
7614
6988
  ])]),
7615
6989
  _: 1
7616
6990
  }, 8, ["size"]),
7617
- a(J, {
6991
+ o(f, {
7618
6992
  theme: "default",
7619
- size: s.size,
7620
- onClick: S
6993
+ size: i.size,
6994
+ onClick: w
7621
6995
  }, {
7622
- default: l(() => [...c[11] || (c[11] = [
7623
- $("清除", -1)
6996
+ default: r(() => [...c[11] || (c[11] = [
6997
+ T("清除", -1)
7624
6998
  ])]),
7625
6999
  _: 1
7626
7000
  }, 8, ["size"]),
7627
- a(J, {
7001
+ o(f, {
7628
7002
  theme: "primary",
7629
- size: s.size,
7630
- onClick: z
7003
+ size: i.size,
7004
+ onClick: O
7631
7005
  }, {
7632
- default: l(() => [...c[12] || (c[12] = [
7633
- $("确定", -1)
7006
+ default: r(() => [...c[12] || (c[12] = [
7007
+ T("确定", -1)
7634
7008
  ])]),
7635
7009
  _: 1
7636
7010
  }, 8, ["size"])
@@ -7640,13 +7014,220 @@ const je = [
7640
7014
  }, 8, ["visible"]);
7641
7015
  };
7642
7016
  }
7643
- }, Pe = /* @__PURE__ */ me(rl, [["__scopeId", "data-v-822b291e"]]), dl = { class: "cd-filter-bar" }, ul = {
7017
+ }, be = /* @__PURE__ */ ae(xa, [["__scopeId", "data-v-822b291e"]]), Da = { class: "column-settings-panel" }, Aa = { class: "column-list" }, Ea = ["onDragstart", "onDragover", "onDrop"], Ua = { class: "column-name" }, qa = { class: "column-show" }, Ta = ["onClick"], Na = { class: "column-freeze" }, Ba = { class: "column-width" }, Pa = { class: "column-sort-buttons" }, Ra = {
7018
+ __name: "ColumnSettingsDialog",
7019
+ props: {
7020
+ visible: { type: Boolean, default: !1 },
7021
+ fieldOptions: { type: Array, default: () => [] },
7022
+ visibleColumns: { type: Array, default: () => [] }
7023
+ },
7024
+ emits: ["update:visible", "column-change"],
7025
+ setup(i, { emit: Y }) {
7026
+ const d = i, k = Y, m = _([]), x = _({}), I = _({}), e = _([]), $ = _(null), j = _(null), P = (f) => {
7027
+ if (x.value = {}, I.value = {}, f && f.length > 0)
7028
+ if (typeof f[0] == "object") {
7029
+ m.value = f.filter((a) => a.show !== !1).map((a) => a.value), f.forEach((a) => {
7030
+ x.value[a.value] = a.width ? parseInt(a.width) : void 0, I.value[a.value] = a.fixed || "none";
7031
+ });
7032
+ const n = f.map((a) => a.value), U = n.map((a) => d.fieldOptions.find((p) => p.value === a)).filter(Boolean), v = d.fieldOptions.filter((a) => !n.includes(a.value));
7033
+ e.value = [...U, ...v];
7034
+ } else {
7035
+ m.value = [...f];
7036
+ const n = f.map((v) => d.fieldOptions.find((a) => a.value === v)).filter(Boolean), U = d.fieldOptions.filter((v) => !f.includes(v.value));
7037
+ e.value = [...n, ...U];
7038
+ }
7039
+ else d.fieldOptions.length > 0 && (m.value = d.fieldOptions.map((n) => n.value), e.value = [...d.fieldOptions]);
7040
+ e.value.forEach((n) => {
7041
+ I.value[n.value] || (I.value[n.value] = "none");
7042
+ }), e.value.length || (e.value = [...d.fieldOptions]);
7043
+ };
7044
+ G(() => d.visibleColumns, P, { immediate: !0 }), G(() => d.fieldOptions, () => P(d.visibleColumns));
7045
+ const q = (f) => {
7046
+ const n = m.value.indexOf(f);
7047
+ n === -1 ? m.value.push(f) : m.value.splice(n, 1);
7048
+ }, R = (f) => {
7049
+ if (f > 0) {
7050
+ const n = [...e.value];
7051
+ [n[f], n[f - 1]] = [n[f - 1], n[f]], e.value = n;
7052
+ }
7053
+ }, w = (f) => {
7054
+ if (f < e.value.length - 1) {
7055
+ const n = [...e.value];
7056
+ [n[f], n[f + 1]] = [n[f + 1], n[f]], e.value = n;
7057
+ }
7058
+ }, O = (f, n) => {
7059
+ $.value = f, n.dataTransfer.effectAllowed = "move";
7060
+ }, N = (f, n) => {
7061
+ n.preventDefault(), j.value = f;
7062
+ }, K = () => {
7063
+ $.value = null, j.value = null;
7064
+ }, D = (f, n) => {
7065
+ n.preventDefault();
7066
+ const U = $.value;
7067
+ if (U === null || U === f) return;
7068
+ const v = [...e.value], a = v.splice(U, 1)[0];
7069
+ v.splice(f, 0, a), e.value = v, $.value = null, j.value = null;
7070
+ }, c = () => {
7071
+ const f = e.value.filter((n) => m.value.includes(n.value)).map((n) => ({
7072
+ value: n.value,
7073
+ show: !0,
7074
+ width: x.value[n.value] ? `${x.value[n.value]}px` : "120px",
7075
+ fixed: I.value[n.value] || "none"
7076
+ }));
7077
+ k("column-change", f), k("update:visible", !1);
7078
+ };
7079
+ return (f, n) => {
7080
+ const U = F("t-icon"), v = F("t-option"), a = F("t-select"), p = F("t-input-number"), C = F("t-button"), l = F("t-dialog");
7081
+ return g(), J(l, {
7082
+ header: "列配置",
7083
+ placement: "center",
7084
+ attach: "body",
7085
+ visible: i.visible,
7086
+ "onUpdate:visible": n[1] || (n[1] = (t) => f.$emit("update:visible", t)),
7087
+ width: "700px",
7088
+ "z-index": 999,
7089
+ footer: !0,
7090
+ onClose: n[2] || (n[2] = (t) => f.$emit("update:visible", !1))
7091
+ }, {
7092
+ body: r(() => [
7093
+ s("div", Da, [
7094
+ n[3] || (n[3] = s("div", { class: "column-title-row" }, [
7095
+ s("div", { class: "column-title column-title-name" }, "名称"),
7096
+ s("div", { class: "column-title column-title-show" }, "显示"),
7097
+ s("div", { class: "column-title column-title-width" }, "冻结列"),
7098
+ s("div", { class: "column-title column-title-width" }, "宽度"),
7099
+ s("div", { class: "column-title column-title-sort" }, "排序")
7100
+ ], -1)),
7101
+ s("div", Aa, [
7102
+ (g(!0), B(Q, null, Z(e.value, (t, y) => (g(), B("div", {
7103
+ key: t.value,
7104
+ class: ue(["column-item-row", { dragging: $.value === y, "col-hidden": !m.value.includes(t.value) }]),
7105
+ draggable: "true",
7106
+ onDragstart: (z) => O(y, z),
7107
+ onDragover: (z) => N(y, z),
7108
+ onDragend: K,
7109
+ onDrop: (z) => D(y, z)
7110
+ }, [
7111
+ s("div", Ua, [
7112
+ o(U, {
7113
+ name: "move",
7114
+ style: { cursor: "move", color: "#999", "margin-right": "8px" }
7115
+ }),
7116
+ T(" " + te(t.label), 1)
7117
+ ]),
7118
+ s("div", qa, [
7119
+ s("i", {
7120
+ class: ue(m.value.includes(t.value) ? "ri-eye-line" : "ri-eye-off-line"),
7121
+ style: de({ color: m.value.includes(t.value) ? "#0052d9" : "#bbb", fontSize: "18px", cursor: "pointer" }),
7122
+ onClick: (z) => q(t.value)
7123
+ }, null, 14, Ta)
7124
+ ]),
7125
+ s("div", Na, [
7126
+ o(a, {
7127
+ modelValue: I.value[t.value],
7128
+ "onUpdate:modelValue": (z) => I.value[t.value] = z,
7129
+ size: "small",
7130
+ style: { width: "120px" }
7131
+ }, {
7132
+ default: r(() => [
7133
+ o(v, {
7134
+ value: "none",
7135
+ label: "不冻结"
7136
+ }),
7137
+ o(v, {
7138
+ value: "left",
7139
+ label: "左侧冻结"
7140
+ }),
7141
+ o(v, {
7142
+ value: "right",
7143
+ label: "右侧冻结"
7144
+ })
7145
+ ]),
7146
+ _: 1
7147
+ }, 8, ["modelValue", "onUpdate:modelValue"])
7148
+ ]),
7149
+ s("div", Ba, [
7150
+ o(p, {
7151
+ modelValue: x.value[t.value],
7152
+ "onUpdate:modelValue": (z) => x.value[t.value] = z,
7153
+ min: 50,
7154
+ max: 500,
7155
+ step: 10,
7156
+ size: "small",
7157
+ placeholder: "",
7158
+ style: { width: "100px" }
7159
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
7160
+ ]),
7161
+ s("div", Pa, [
7162
+ o(C, {
7163
+ theme: "default",
7164
+ variant: "text",
7165
+ size: "small",
7166
+ onClick: (z) => R(y),
7167
+ disabled: y === 0
7168
+ }, {
7169
+ icon: r(() => [
7170
+ o(U, {
7171
+ name: "chevron-up",
7172
+ style: { color: "#f60" }
7173
+ })
7174
+ ]),
7175
+ _: 1
7176
+ }, 8, ["onClick", "disabled"]),
7177
+ o(C, {
7178
+ theme: "default",
7179
+ variant: "text",
7180
+ size: "small",
7181
+ onClick: (z) => w(y),
7182
+ disabled: y === e.value.length - 1
7183
+ }, {
7184
+ icon: r(() => [
7185
+ o(U, {
7186
+ name: "chevron-down",
7187
+ style: { color: "#f60" }
7188
+ })
7189
+ ]),
7190
+ _: 1
7191
+ }, 8, ["onClick", "disabled"])
7192
+ ])
7193
+ ], 42, Ea))), 128))
7194
+ ])
7195
+ ])
7196
+ ]),
7197
+ footer: r(() => [
7198
+ o(C, {
7199
+ theme: "default",
7200
+ onClick: n[0] || (n[0] = (t) => f.$emit("update:visible", !1))
7201
+ }, {
7202
+ default: r(() => [...n[4] || (n[4] = [
7203
+ T("取消", -1)
7204
+ ])]),
7205
+ _: 1
7206
+ }),
7207
+ o(C, {
7208
+ theme: "primary",
7209
+ onClick: c
7210
+ }, {
7211
+ default: r(() => [...n[5] || (n[5] = [
7212
+ T("确定", -1)
7213
+ ])]),
7214
+ _: 1
7215
+ })
7216
+ ]),
7217
+ _: 1
7218
+ }, 8, ["visible"]);
7219
+ };
7220
+ }
7221
+ }, Ja = /* @__PURE__ */ ae(Ra, [["__scopeId", "data-v-0a02ab86"]]), ja = { class: "cd-filter-bar" }, Ma = {
7644
7222
  key: 0,
7645
- class: "inline-filter-toolbar"
7646
- }, ml = {
7647
- key: 1,
7648
7223
  class: "plan-radio-group"
7649
- }, cl = { class: "filter-action-buttons" }, vl = { class: "save-plan-content" }, fl = {
7224
+ }, Ia = {
7225
+ key: 0,
7226
+ class: "plan-label"
7227
+ }, Ka = { class: "filter-toolbar-row" }, Ha = {
7228
+ key: 0,
7229
+ class: "inline-filter-toolbar"
7230
+ }, La = { class: "filter-action-buttons" }, Ya = { class: "save-plan-content" }, Ga = {
7650
7231
  __name: "cd-filter-bar",
7651
7232
  props: {
7652
7233
  fieldOptions: { type: Array, required: !0 },
@@ -7667,6 +7248,7 @@ const je = [
7667
7248
  },
7668
7249
  topOp: { type: String, default: "and" },
7669
7250
  planFilterOptions: { type: Array, default: () => [] },
7251
+ planTitle: { type: String, default: "" },
7670
7252
  size: { type: String, default: "small" },
7671
7253
  width: { type: String, default: "1000px" },
7672
7254
  personTabs: { type: Array, default: () => [] },
@@ -7690,96 +7272,103 @@ const je = [
7690
7272
  "color-filter-clear",
7691
7273
  "keyword-change",
7692
7274
  "keyword-clear",
7693
- "smart-colors-change"
7275
+ "smart-colors-change",
7276
+ "refresh"
7694
7277
  ],
7695
- setup(s, { emit: te }) {
7696
- const d = s, f = te, i = b([]), D = () => ({ field: "", operator: "eq", value: "" });
7278
+ setup(i, { emit: Y }) {
7279
+ const d = i, k = Y, m = _([]), x = () => ({ field: "", operator: "eq", value: "" });
7697
7280
  (() => {
7698
- var o, A;
7281
+ var u, A;
7699
7282
  if (d.filterCount === 0) {
7700
- i.value = [];
7283
+ m.value = [];
7701
7284
  return;
7702
7285
  }
7703
- const v = ((A = (o = d.filterCards) == null ? void 0 : o[0]) == null ? void 0 : A.conditions) || [];
7704
- i.value = Array.from({ length: d.filterCount }, (T, Z) => v[Z] ? JSON.parse(JSON.stringify(v[Z])) : D());
7286
+ const b = ((A = (u = d.filterCards) == null ? void 0 : u[0]) == null ? void 0 : A.conditions) || [];
7287
+ m.value = Array.from({ length: d.filterCount }, (E, M) => b[M] ? JSON.parse(JSON.stringify(b[M])) : x());
7705
7288
  })();
7706
- const t = () => {
7289
+ const e = () => {
7707
7290
  if (d.filterCount === 0) {
7708
- i.value = [];
7291
+ m.value = [];
7709
7292
  return;
7710
7293
  }
7711
- i.value = Array.from({ length: d.filterCount }, () => D());
7712
- }, M = b("保存筛选方案"), L = b(!1), N = b(d.topOp), B = b(JSON.parse(JSON.stringify(d.filterCards)));
7713
- ne(() => d.topOp, (v) => N.value = v), ne(() => d.filterCards, (v) => B.value = JSON.parse(JSON.stringify(v)));
7714
- const I = b(null), S = b(""), z = ue(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), h = (v) => {
7715
- const o = d.planFilterOptions.find((A) => A.value === v);
7716
- o && x(o);
7717
- }, x = (v) => {
7718
- if (!v.precepts || v.precepts.length === 0) return;
7719
- if (I.value = v, S.value = v.value, B.value = JSON.parse(JSON.stringify(v.precepts)), N.value = v.sqlConnectType, d.filterCount > 0) {
7720
- const T = v.precepts[0];
7721
- T && T.conditions && (i.value = Array.from({ length: d.filterCount }, (Z, W) => T.conditions[W] ? JSON.parse(JSON.stringify(T.conditions[W])) : D()));
7294
+ m.value = Array.from({ length: d.filterCount }, () => x());
7295
+ }, $ = _("保存筛选方案"), j = _(!1), P = _(!1), q = _(d.topOp), R = _(JSON.parse(JSON.stringify(d.filterCards)));
7296
+ G(() => d.topOp, (b) => q.value = b), G(() => d.filterCards, (b) => R.value = JSON.parse(JSON.stringify(b)));
7297
+ const w = _(null), O = _("");
7298
+ ee(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]);
7299
+ const N = (b) => {
7300
+ const u = d.planFilterOptions.find((A) => A.value === b);
7301
+ u && K(u);
7302
+ }, K = (b) => {
7303
+ if (!b.precepts || b.precepts.length === 0) return;
7304
+ if (w.value = b, O.value = b.value, R.value = JSON.parse(JSON.stringify(b.precepts)), q.value = b.sqlConnectType, d.filterCount > 0) {
7305
+ const E = b.precepts[0];
7306
+ E && E.conditions && (m.value = Array.from({ length: d.filterCount }, (M, H) => E.conditions[H] ? JSON.parse(JSON.stringify(E.conditions[H])) : x()));
7722
7307
  }
7723
- const o = H(v.precepts), A = X(o, v.sqlConnectType);
7724
- if (f("confirm", A), v.columns && v.columns.length > 0) {
7725
- const T = v.columns.filter((Z) => Z.show !== !1);
7726
- f("column-change", T);
7308
+ const u = v(b.precepts), A = a(u, b.sqlConnectType);
7309
+ if (k("confirm", A), b.columns && b.columns.length > 0) {
7310
+ const E = b.columns.filter((M) => M.show !== !1);
7311
+ k("column-change", E);
7727
7312
  }
7728
- }, C = () => {
7313
+ }, D = () => {
7729
7314
  c();
7730
7315
  }, c = () => {
7731
7316
  if (d.filterCount === 0) {
7732
- f("search", { conditions: { and: [] } });
7317
+ k("search", { conditions: { and: [] } });
7733
7318
  return;
7734
7319
  }
7735
- const v = H([
7736
- { id: 1, connector: N.value, conditions: i.value }
7737
- ]), o = X(v, "and");
7738
- f("search", o);
7739
- }, J = () => {
7740
- L.value = !0;
7741
- }, j = () => {
7742
- L.value = !1;
7743
- }, H = (v) => v.map((o) => {
7744
- const A = o.conditions.filter((T) => !(!T.field || T.field.trim() === "" || T.value === null || T.value === void 0 || T.value === "" || Array.isArray(T.value) && T.value.length === 0)).map((T) => {
7745
- let Z = "";
7746
- return T.value !== null && T.value !== void 0 && (Array.isArray(T.value) ? Z = T.value.join("/") : Z = String(T.value).trim()), {
7747
- field: T.field.trim(),
7748
- operator: T.operator || "eq",
7749
- value: Z
7320
+ const b = v([
7321
+ { id: 1, connector: q.value, conditions: m.value }
7322
+ ]), u = a(b, "and");
7323
+ k("search", u);
7324
+ }, f = () => {
7325
+ j.value = !0;
7326
+ }, n = () => {
7327
+ k("refresh");
7328
+ }, U = () => {
7329
+ j.value = !1;
7330
+ }, v = (b) => b.map((u) => {
7331
+ const A = u.conditions.filter((E) => !(!E.field || E.field.trim() === "" || E.value === null || E.value === void 0 || E.value === "" || Array.isArray(E.value) && E.value.length === 0)).map((E) => {
7332
+ let M = "";
7333
+ return E.value !== null && E.value !== void 0 && (Array.isArray(E.value) ? M = E.value.join("/") : M = String(E.value).trim()), {
7334
+ field: E.field.trim(),
7335
+ operator: E.operator || "eq",
7336
+ value: M
7750
7337
  };
7751
7338
  });
7752
7339
  return {
7753
- ...o,
7754
- connector: o.connector || "and",
7340
+ ...u,
7341
+ connector: u.connector || "and",
7755
7342
  conditions: A.length > 0 ? A : [{ field: "", operator: "eq", value: "" }]
7756
7343
  };
7757
- }).filter((o) => o.conditions.length > 0 && o.conditions[0].field !== "");
7758
- function X(v, o) {
7759
- if (o !== "and" && o !== "or")
7344
+ }).filter((u) => u.conditions.length > 0 && u.conditions[0].field !== "");
7345
+ function a(b, u) {
7346
+ if (u !== "and" && u !== "or")
7760
7347
  throw new Error('type参数必须是"and"或"or"');
7761
- function A(W) {
7348
+ function A(H) {
7762
7349
  return {
7763
- [W.field]: {
7764
- [W.operator]: W.value
7350
+ [H.field]: {
7351
+ [H.operator]: H.value
7765
7352
  }
7766
7353
  };
7767
7354
  }
7768
- function T(W) {
7769
- return W.conditions.length === 1 ? A(W.conditions[0]) : {
7770
- [W.connector]: W.conditions.map(A)
7355
+ function E(H) {
7356
+ return H.conditions.length === 1 ? A(H.conditions[0]) : {
7357
+ [H.connector]: H.conditions.map(A)
7771
7358
  };
7772
7359
  }
7773
7360
  return {
7774
7361
  conditions: {
7775
- [o]: v.map(T)
7362
+ [u]: b.map(E)
7776
7363
  }
7777
7364
  };
7778
7365
  }
7779
- const V = () => {
7780
- u.value = !1;
7781
- }, F = () => {
7782
- t(), I.value = null, S.value = "", B.value = [
7366
+ const p = (b) => {
7367
+ w.value ? ($.value = "更新筛选方案", h.value.name = w.value.content || "") : ($.value = "保存筛选方案", h.value.name = "", w.value = null), z.value = !0;
7368
+ }, C = () => {
7369
+ z.value = !1;
7370
+ }, l = () => {
7371
+ e(), w.value = null, O.value = "", R.value = [
7783
7372
  {
7784
7373
  id: 1,
7785
7374
  connector: "and",
@@ -7788,57 +7377,59 @@ const je = [
7788
7377
  { field: "", operator: "eq", value: "" }
7789
7378
  ]
7790
7379
  }
7791
- ], N.value = "and", f("reset"), c();
7792
- }, E = () => {
7793
- const v = y.value.name.trim();
7794
- if (I.value) {
7795
- const o = H(B.value);
7796
- f("update-plan", {
7797
- name: v,
7798
- precepts: o,
7799
- topOp: N.value,
7800
- plan: I.value,
7380
+ ], q.value = "and", k("reset"), c();
7381
+ }, t = () => {
7382
+ const b = h.value.name.trim();
7383
+ if (w.value) {
7384
+ const u = v(R.value);
7385
+ k("update-plan", {
7386
+ name: b,
7387
+ precepts: u,
7388
+ topOp: q.value,
7389
+ plan: w.value,
7801
7390
  columns: d.visibleColumns || []
7802
7391
  // 包含当前列配置
7803
7392
  });
7804
7393
  } else {
7805
- const o = H(B.value);
7806
- f("save-plan", {
7807
- name: v,
7808
- precepts: o,
7809
- topOp: N.value,
7810
- plan: I.value,
7394
+ const u = v(R.value);
7395
+ k("save-plan", {
7396
+ name: b,
7397
+ precepts: u,
7398
+ topOp: q.value,
7399
+ plan: w.value,
7811
7400
  columns: d.visibleColumns || []
7812
7401
  // 包含当前列配置
7813
7402
  });
7814
7403
  }
7815
- V();
7816
- }, m = (v) => {
7817
- const o = X(v.filterCards, v.type1);
7818
- if (f("confirm", o), d.filterCount > 0) {
7819
- const A = v.filterCards[0];
7820
- A && A.conditions && (i.value = Array.from({ length: d.filterCount }, (T, Z) => A.conditions[Z] ? JSON.parse(JSON.stringify(A.conditions[Z])) : D()));
7404
+ C();
7405
+ }, y = (b) => {
7406
+ const u = a(b.filterCards, b.type1);
7407
+ if (k("confirm", u), d.filterCount > 0) {
7408
+ const A = b.filterCards[0];
7409
+ A && A.conditions && (m.value = Array.from({ length: d.filterCount }, (E, M) => A.conditions[M] ? JSON.parse(JSON.stringify(A.conditions[M])) : x()));
7821
7410
  }
7822
- j();
7823
- }, u = b(!1), y = b({ name: "" }), K = b(!1), _ = b([]), ie = () => {
7824
- K.value = !0;
7825
- }, de = (v) => {
7826
- _.value = v, f("color-filter-change", v);
7827
- }, ce = () => {
7828
- _.value = [], f("color-filter-clear");
7411
+ U();
7412
+ }, z = _(!1), h = _({ name: "" }), L = _(!1), X = _([]), le = () => {
7413
+ L.value = !0;
7414
+ }, ne = (b) => {
7415
+ X.value = b, k("color-filter-change", b);
7416
+ }, oe = () => {
7417
+ X.value = [], k("color-filter-clear");
7829
7418
  };
7830
- b("");
7831
- const ve = (v) => {
7832
- f("smart-colors-change", v);
7833
- }, Q = ue(() => _.value.filter((v) => v.field && v.operator && v.value).length), re = ue(() => {
7834
- const v = _.value.filter((A) => A.field && A.operator && A.value);
7835
- return v.length === 0 ? "颜色筛选" : `
7836
- ${v.map((A) => {
7837
- const T = d.fieldOptions.find((W) => W.value === A.field);
7838
- return `${T ? T.label : A.field} ${w(A.operator)} ${A.value}`;
7419
+ _("");
7420
+ const ie = (b) => {
7421
+ k("smart-colors-change", b);
7422
+ }, V = ee(() => X.value.filter((b) => b.field && b.operator && b.value).length), Ce = ee(() => m.value.some((u) => u.field && u.field.trim() !== "") ? !0 : R.value.some(
7423
+ (u) => u.conditions.some((A) => A.field && A.field.trim() !== "")
7424
+ )), ge = ee(() => {
7425
+ const b = X.value.filter((A) => A.field && A.operator && A.value);
7426
+ return b.length === 0 ? "颜色筛选" : `
7427
+ ${b.map((A) => {
7428
+ const E = d.fieldOptions.find((H) => H.value === A.field);
7429
+ return `${E ? E.label : A.field} ${he(A.operator)} ${A.value}`;
7839
7430
  }).join(`
7840
7431
  `)}`;
7841
- }), w = (v) => ({
7432
+ }), he = (b) => ({
7842
7433
  eq: "等于",
7843
7434
  ne: "不等于",
7844
7435
  gt: "大于",
@@ -7847,164 +7438,178 @@ ${v.map((A) => {
7847
7438
  lte: "小于等于",
7848
7439
  contains: "包含",
7849
7440
  notContains: "不包含"
7850
- })[v] || v;
7851
- return (v, o) => {
7852
- const A = p("t-radio-button"), T = p("t-radio-group"), Z = p("t-icon"), W = p("t-button"), he = p("t-badge"), Ce = p("t-tooltip"), _e = p("t-dropdown"), ke = p("t-input"), ze = p("t-form-item"), we = p("t-form"), Oe = p("t-dialog");
7853
- return g(), R("div", dl, [
7854
- s.filterCount > 0 ? (g(), R("div", ul, [
7855
- (g(!0), R(le, null, se(i.value, (e, n) => (g(), G($e, {
7856
- key: n,
7857
- "field-options": s.fieldOptions,
7858
- size: s.size,
7859
- "filter-condition": i.value[n],
7860
- "select-options": s.selectOptions,
7861
- onSearch: C
7862
- }, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
7863
- ])) : oe("", !0),
7864
- s.filterCount === 0 && s.planFilterOptions.length > 0 ? (g(), R("div", ml, [
7865
- o[12] || (o[12] = r("span", { class: "plan-label" }, "我的方案:", -1)),
7866
- a(T, {
7867
- modelValue: S.value,
7868
- "onUpdate:modelValue": o[0] || (o[0] = (e) => S.value = e),
7869
- size: s.size,
7870
- onChange: h
7441
+ })[b] || b;
7442
+ return (b, u) => {
7443
+ const A = F("t-radio-button"), E = F("t-radio-group"), M = F("t-button"), H = F("t-icon"), _e = F("t-badge"), ce = F("t-tooltip"), ke = F("t-input"), ze = F("t-form-item"), Fe = F("t-form"), Oe = F("t-dialog");
7444
+ return g(), B("div", ja, [
7445
+ i.planFilterOptions.length > 0 || b.$slots["plan-row-right"] ? (g(), B("div", Ma, [
7446
+ i.planFilterOptions.length > 0 ? (g(), B("span", Ia, te($.value || "我的方案"), 1)) : W("", !0),
7447
+ i.planFilterOptions.length > 0 ? (g(), J(E, {
7448
+ key: 1,
7449
+ modelValue: O.value,
7450
+ "onUpdate:modelValue": u[0] || (u[0] = (S) => O.value = S),
7451
+ size: i.size,
7452
+ onChange: N
7871
7453
  }, {
7872
- default: l(() => [
7873
- (g(!0), R(le, null, se(s.planFilterOptions, (e) => (g(), G(A, {
7874
- key: e.value,
7875
- value: e.value,
7876
- disabled: e.disabled
7454
+ default: r(() => [
7455
+ (g(!0), B(Q, null, Z(i.planFilterOptions, (S) => (g(), J(A, {
7456
+ key: S.value,
7457
+ value: S.value,
7458
+ disabled: S.disabled
7877
7459
  }, {
7878
- default: l(() => [
7879
- $(pe(e.content), 1)
7460
+ default: r(() => [
7461
+ T(te(S.content), 1)
7880
7462
  ]),
7881
7463
  _: 2
7882
7464
  }, 1032, ["value", "disabled"]))), 128))
7883
7465
  ]),
7884
7466
  _: 1
7885
- }, 8, ["modelValue", "size"]),
7886
- a(W, {
7467
+ }, 8, ["modelValue", "size"])) : W("", !0),
7468
+ we(b.$slots, "plan-row-right", {}, void 0, !0)
7469
+ ])) : W("", !0),
7470
+ s("div", Ka, [
7471
+ o(M, {
7887
7472
  theme: "default",
7888
7473
  variant: "outline",
7889
- size: s.size,
7890
- onClick: J,
7891
- title: "高级筛选"
7892
- }, {
7893
- icon: l(() => [
7894
- a(Z, { name: "filter" })
7895
- ]),
7896
- _: 1
7897
- }, 8, ["size"])
7898
- ])) : oe("", !0),
7899
- r("div", cl, [
7900
- s.filterCount > 0 ? (g(), G(W, {
7901
- key: 0,
7902
- theme: "primary",
7903
- size: s.size,
7904
- onClick: J,
7905
- title: "高级筛选"
7474
+ size: i.size,
7475
+ onClick: u[1] || (u[1] = (S) => P.value = !0),
7476
+ title: "列配置"
7906
7477
  }, {
7907
- icon: l(() => [
7908
- a(Z, { name: "filter" })
7909
- ]),
7910
- _: 1
7911
- }, 8, ["size"])) : oe("", !0),
7912
- s.filterCount > 0 ? (g(), G(Ce, {
7913
- key: 1,
7914
- content: re.value,
7915
- placement: "top"
7916
- }, {
7917
- default: l(() => [
7918
- a(he, {
7919
- count: Q.value,
7920
- "max-count": 99
7921
- }, {
7922
- default: l(() => [
7923
- a(W, {
7924
- theme: "primary",
7925
- size: s.size,
7926
- onClick: ie
7927
- }, {
7928
- icon: l(() => [...o[13] || (o[13] = [
7929
- r("i", { class: "ri-palette-fill" }, null, -1)
7930
- ])]),
7931
- _: 1
7932
- }, 8, ["size"])
7933
- ]),
7934
- _: 1
7935
- }, 8, ["count"])
7936
- ]),
7937
- _: 1
7938
- }, 8, ["content"])) : oe("", !0),
7939
- s.filterCount > 0 ? (g(), G(_e, {
7940
- key: 2,
7941
- options: z.value,
7942
- onClick: x,
7943
- "overlay-class-name": "filter-dropdown"
7944
- }, {
7945
- default: l(() => [
7946
- a(W, {
7947
- theme: "primary",
7948
- size: s.size,
7949
- class: "margin-reset"
7950
- }, {
7951
- suffix: l(() => [
7952
- a(Z, { name: "chevron-down" })
7953
- ]),
7954
- default: l(() => [
7955
- o[14] || (o[14] = $(" 我的方案 ", -1))
7956
- ]),
7957
- _: 1
7958
- }, 8, ["size"])
7959
- ]),
7478
+ icon: r(() => [...u[15] || (u[15] = [
7479
+ s("i", { class: "ri-layout-column-line" }, null, -1)
7480
+ ])]),
7960
7481
  _: 1
7961
- }, 8, ["options"])) : oe("", !0)
7482
+ }, 8, ["size"]),
7483
+ i.filterCount > 0 ? (g(), B("div", Ha, [
7484
+ (g(!0), B(Q, null, Z(m.value, (S, ve) => (g(), J(me, {
7485
+ key: ve,
7486
+ "field-options": i.fieldOptions,
7487
+ size: i.size,
7488
+ "filter-condition": m.value[ve],
7489
+ "select-options": i.selectOptions,
7490
+ onSearch: D
7491
+ }, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
7492
+ ])) : W("", !0),
7493
+ s("div", La, [
7494
+ i.filterCount > 0 ? (g(), J(M, {
7495
+ key: 0,
7496
+ theme: "primary",
7497
+ size: i.size,
7498
+ onClick: n,
7499
+ title: "刷新"
7500
+ }, {
7501
+ icon: r(() => [
7502
+ o(H, { name: "refresh" })
7503
+ ]),
7504
+ _: 1
7505
+ }, 8, ["size"])) : W("", !0),
7506
+ i.filterCount > 0 ? (g(), J(M, {
7507
+ key: 1,
7508
+ theme: "primary",
7509
+ size: i.size,
7510
+ onClick: f,
7511
+ title: "高级筛选"
7512
+ }, {
7513
+ icon: r(() => [
7514
+ o(H, { name: "filter" })
7515
+ ]),
7516
+ _: 1
7517
+ }, 8, ["size"])) : W("", !0),
7518
+ i.filterCount > 0 ? (g(), J(ce, {
7519
+ key: 2,
7520
+ content: ge.value,
7521
+ placement: "top"
7522
+ }, {
7523
+ default: r(() => [
7524
+ o(_e, {
7525
+ count: V.value,
7526
+ "max-count": 99
7527
+ }, {
7528
+ default: r(() => [
7529
+ o(M, {
7530
+ theme: "primary",
7531
+ size: i.size,
7532
+ onClick: le
7533
+ }, {
7534
+ icon: r(() => [...u[16] || (u[16] = [
7535
+ s("i", { class: "ri-palette-fill" }, null, -1)
7536
+ ])]),
7537
+ _: 1
7538
+ }, 8, ["size"])
7539
+ ]),
7540
+ _: 1
7541
+ }, 8, ["count"])
7542
+ ]),
7543
+ _: 1
7544
+ }, 8, ["content"])) : W("", !0),
7545
+ i.filterCount > 0 ? (g(), J(ce, {
7546
+ key: 3,
7547
+ content: "保存方案",
7548
+ placement: "top"
7549
+ }, {
7550
+ default: r(() => [
7551
+ $e(o(M, {
7552
+ theme: "primary",
7553
+ size: i.size,
7554
+ onClick: p
7555
+ }, {
7556
+ icon: r(() => [
7557
+ o(H, { name: "bookmark" })
7558
+ ]),
7559
+ _: 1
7560
+ }, 8, ["size"]), [
7561
+ [Ve, Ce.value]
7562
+ ])
7563
+ ]),
7564
+ _: 1
7565
+ })) : W("", !0)
7566
+ ])
7962
7567
  ]),
7963
- a(Ka, {
7964
- visible: L.value,
7965
- "onUpdate:visible": o[1] || (o[1] = (e) => L.value = e),
7966
- "field-options": s.fieldOptions,
7967
- "select-options": s.selectOptions,
7968
- "plan-filter-options": s.planFilterOptions,
7969
- "filter-cards": B.value,
7970
- "top-op": N.value,
7971
- size: s.size,
7972
- "person-tabs": s.personTabs,
7973
- "person-organizations": s.personOrganizations,
7974
- "visible-columns": s.visibleColumns,
7568
+ o(pa, {
7569
+ visible: j.value,
7570
+ "onUpdate:visible": u[2] || (u[2] = (S) => j.value = S),
7571
+ "field-options": i.fieldOptions,
7572
+ "select-options": i.selectOptions,
7573
+ "plan-filter-options": i.planFilterOptions,
7574
+ "filter-cards": R.value,
7575
+ "top-op": q.value,
7576
+ size: i.size,
7577
+ "person-tabs": i.personTabs,
7578
+ "person-organizations": i.personOrganizations,
7579
+ "visible-columns": i.visibleColumns,
7975
7580
  width: "1000",
7976
- onConfirm: m,
7977
- onReset: F,
7978
- onDeletePlan: o[2] || (o[2] = (e) => f("delete-plan", e)),
7979
- onCopyPlan: o[3] || (o[3] = (e) => f("copy-plan", e)),
7980
- onSetDefaultPlan: o[4] || (o[4] = (e) => f("set-default-plan", e)),
7981
- onUpdatePlan: o[5] || (o[5] = (e) => f("update-plan", e)),
7982
- onLoadUsers: o[6] || (o[6] = (e) => f("load-users", e)),
7983
- onSearch: o[7] || (o[7] = (e) => f("search-persons", e)),
7984
- onDeptClick: o[8] || (o[8] = (e) => f("dept-click", e)),
7985
- onColumnChange: o[9] || (o[9] = (e) => f("column-change", e))
7581
+ onConfirm: y,
7582
+ onReset: l,
7583
+ onDeletePlan: u[3] || (u[3] = (S) => k("delete-plan", S)),
7584
+ onCopyPlan: u[4] || (u[4] = (S) => k("copy-plan", S)),
7585
+ onSetDefaultPlan: u[5] || (u[5] = (S) => k("set-default-plan", S)),
7586
+ onUpdatePlan: u[6] || (u[6] = (S) => k("update-plan", S)),
7587
+ onLoadUsers: u[7] || (u[7] = (S) => k("load-users", S)),
7588
+ onSearch: u[8] || (u[8] = (S) => k("search-persons", S)),
7589
+ onDeptClick: u[9] || (u[9] = (S) => k("dept-click", S)),
7590
+ onColumnChange: u[10] || (u[10] = (S) => k("column-change", S))
7986
7591
  }, null, 8, ["visible", "field-options", "select-options", "plan-filter-options", "filter-cards", "top-op", "size", "person-tabs", "person-organizations", "visible-columns"]),
7987
- a(Oe, {
7988
- header: M.value,
7989
- visible: u.value,
7592
+ o(Oe, {
7593
+ header: $.value,
7594
+ visible: z.value,
7990
7595
  width: "600px",
7991
- onClose: V
7596
+ onClose: C
7992
7597
  }, {
7993
- body: l(() => [
7994
- r("div", vl, [
7995
- a(we, {
7996
- data: y.value,
7598
+ body: r(() => [
7599
+ s("div", Ya, [
7600
+ o(Fe, {
7601
+ data: h.value,
7997
7602
  "label-width": "100px"
7998
7603
  }, {
7999
- default: l(() => [
8000
- a(ze, {
7604
+ default: r(() => [
7605
+ o(ze, {
8001
7606
  label: "方案名称",
8002
7607
  required: ""
8003
7608
  }, {
8004
- default: l(() => [
8005
- a(ke, {
8006
- modelValue: y.value.name,
8007
- "onUpdate:modelValue": o[10] || (o[10] = (e) => y.value.name = e),
7609
+ default: r(() => [
7610
+ o(ke, {
7611
+ modelValue: h.value.name,
7612
+ "onUpdate:modelValue": u[11] || (u[11] = (S) => h.value.name = S),
8008
7613
  placeholder: "请输入筛选方案名称"
8009
7614
  }, null, 8, ["modelValue"])
8010
7615
  ]),
@@ -8015,49 +7620,57 @@ ${v.map((A) => {
8015
7620
  }, 8, ["data"])
8016
7621
  ])
8017
7622
  ]),
8018
- footer: l(() => [
8019
- a(W, {
7623
+ footer: r(() => [
7624
+ o(M, {
8020
7625
  theme: "default",
8021
- onClick: V
7626
+ onClick: C
8022
7627
  }, {
8023
- default: l(() => [...o[15] || (o[15] = [
8024
- $("取消", -1)
7628
+ default: r(() => [...u[17] || (u[17] = [
7629
+ T("取消", -1)
8025
7630
  ])]),
8026
7631
  _: 1
8027
7632
  }),
8028
- a(W, {
7633
+ o(M, {
8029
7634
  theme: "primary",
8030
- onClick: E
7635
+ onClick: t
8031
7636
  }, {
8032
- default: l(() => [...o[16] || (o[16] = [
8033
- $("确定", -1)
7637
+ default: r(() => [...u[18] || (u[18] = [
7638
+ T("确定", -1)
8034
7639
  ])]),
8035
7640
  _: 1
8036
7641
  })
8037
7642
  ]),
8038
7643
  _: 1
8039
7644
  }, 8, ["header", "visible"]),
8040
- a(Pe, {
8041
- visible: K.value,
8042
- "onUpdate:visible": o[11] || (o[11] = (e) => K.value = e),
8043
- "field-options": s.fieldOptions,
8044
- size: s.size,
8045
- "initial-rules": _.value,
8046
- onConfirm: de,
8047
- onClear: ce,
8048
- onSmartColorsChange: ve
7645
+ o(Ja, {
7646
+ visible: P.value,
7647
+ "onUpdate:visible": u[12] || (u[12] = (S) => P.value = S),
7648
+ "field-options": i.fieldOptions,
7649
+ "visible-columns": i.visibleColumns,
7650
+ onColumnChange: u[13] || (u[13] = (S) => k("column-change", S))
7651
+ }, null, 8, ["visible", "field-options", "visible-columns"]),
7652
+ o(be, {
7653
+ visible: L.value,
7654
+ "onUpdate:visible": u[14] || (u[14] = (S) => L.value = S),
7655
+ "field-options": i.fieldOptions,
7656
+ size: i.size,
7657
+ "initial-rules": X.value,
7658
+ onConfirm: ne,
7659
+ onClear: oe,
7660
+ onSmartColorsChange: ie
8049
7661
  }, null, 8, ["visible", "field-options", "size", "initial-rules"])
8050
7662
  ]);
8051
7663
  };
8052
7664
  }
8053
- }, pl = /* @__PURE__ */ me(fl, [["__scopeId", "data-v-eb153ff2"]]), Cl = (s) => {
8054
- s.component("FilterDialog", Ee), s.component("FilterComponent", Ee), s.component("CdFilterBar", pl), s.component("ColorFilterDialog", Pe);
7665
+ }, Wa = /* @__PURE__ */ ae(Ga, [["__scopeId", "data-v-05e6c474"]]), Za = (i) => {
7666
+ i.component("FilterDialog", pe), i.component("FilterComponent", pe), i.component("CdFilterBar", Wa), i.component("ColorFilterDialog", be);
8055
7667
  };
8056
7668
  export {
8057
- pl as CdFilterBar,
8058
- Pe as ColorFilterDialog,
8059
- Ee as FilterComponent,
8060
- Ee as FilterDialog,
8061
- Ee as default,
8062
- Cl as install
7669
+ Wa as CdFilterBar,
7670
+ be as ColorFilterDialog,
7671
+ Ja as ColumnSettingsDialog,
7672
+ pe as FilterComponent,
7673
+ pe as FilterDialog,
7674
+ pe as default,
7675
+ Za as install
8063
7676
  };