cd-vue-filter 2.4.2 → 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 s, 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(r, { emit: te }) {
5542
- const d = r, 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: r.visible,
5651
- header: r.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
- s("div", Le, [
5661
- s("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] = [
5673
+ icon: r(() => [...p[2] || (p[2] = [
5675
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 = (r, te) => {
5712
- const d = r.__vccOpts || r;
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(r, { 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 = r, 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,188 +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(() => [
6031
+ suffixIcon: r(() => [
6033
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
6059
  }, {
6061
- suffixIcon: l(() => [...u[12] || (u[12] = [
6060
+ suffixIcon: r(() => [...t[12] || (t[12] = [
6062
6061
  s("i", { class: "ri-search-line" }, null, -1)
6063
6062
  ])]),
6064
6063
  _: 1
6065
- }, 8, ["modelValue", "size"])) : oe("", !0)
6064
+ }, 8, ["modelValue", "size"])) : W("", !0)
6066
6065
  ], 64))
6067
6066
  ]);
6068
6067
  };
6069
6068
  }
6070
- }), $e = /* @__PURE__ */ me(Ge, [["__scopeId", "data-v-fc381421"]]), 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 = {
6071
6070
  class: "filter-scroll-wrapper",
6072
6071
  id: "filter-scroll-wrapper"
6073
- }, Ze = {
6072
+ }, Pe = {
6074
6073
  key: 0,
6075
6074
  class: "filter-dialog-left"
6076
- }, ea = { class: "connectors-container" }, aa = {
6075
+ }, Re = { class: "connectors-container" }, Je = {
6077
6076
  class: "filter-dialog-middle",
6078
6077
  id: "filter-dialog-middle"
6079
- }, 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 = {
6080
6079
  __name: "filterDialog",
6081
6080
  props: {
6082
6081
  visible: {
@@ -6105,8 +6104,8 @@ const je = [
6105
6104
  "submit",
6106
6105
  "close"
6107
6106
  ],
6108
- setup(r, { emit: te }) {
6109
- const d = r, f = te, i = b([
6107
+ setup(i, { emit: Y }) {
6108
+ const d = i, k = Y, m = _([
6110
6109
  {
6111
6110
  id: 1,
6112
6111
  connector: "and",
@@ -6114,76 +6113,76 @@ const je = [
6114
6113
  { field: "", operator: "eq", value: "" }
6115
6114
  ]
6116
6115
  }
6117
- ]), D = b("and");
6118
- let ee = 3;
6119
- ne(() => d.initialFilterCards, (S) => {
6120
- S && S.length > 0 && (i.value = S);
6121
- }, { immediate: !0, deep: !0 }), ne(() => d.initialType1, (S) => {
6122
- 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);
6123
6122
  }, { immediate: !0 });
6124
- const t = () => {
6125
- i.value.push({
6126
- id: ee++,
6123
+ const e = () => {
6124
+ m.value.push({
6125
+ id: I++,
6127
6126
  connector: "and",
6128
6127
  conditions: [{ field: "", operator: "eq", value: "" }]
6129
6128
  });
6130
- }, M = (S) => {
6131
- 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({
6132
6131
  field: "",
6133
6132
  operator: "eq",
6134
6133
  value: ""
6135
6134
  });
6136
- }, L = (S, z) => {
6137
- if (S >= 0 && S < i.value.length) {
6138
- const h = i.value[S];
6139
- 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("每个卡片至少需要一个筛选条件");
6140
6139
  }
6141
- }, N = (S) => {
6142
- i.value.length > 1 ? i.value.splice(S, 1) : fe.warning("至少需要保留一个筛选卡片");
6143
- }, B = () => {
6144
- f("submit", {
6145
- filterCards: i.value,
6146
- 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
6147
6146
  });
6148
- }, I = () => {
6149
- f("close"), f("update:visible", !1);
6147
+ }, R = () => {
6148
+ k("close"), k("update:visible", !1);
6150
6149
  };
6151
- return (S, z) => {
6152
- const h = p("t-radio-button"), x = p("t-radio-group"), C = p("t-icon"), c = p("t-button"), J = p("t-dialog");
6153
- 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, {
6154
6153
  header: "筛选条件设置",
6155
6154
  placement: "center",
6156
- visible: r.visible,
6157
- "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)),
6158
6157
  width: "700px",
6159
6158
  "z-index": 999,
6160
6159
  footer: !0,
6161
- onClose: I,
6160
+ onClose: R,
6162
6161
  id: "leader-line-clip-container"
6163
6162
  }, {
6164
- body: l(() => [
6165
- s("div", We, [
6166
- s("div", Qe, [
6167
- s("div", Xe, [
6168
- i.value.length > 1 ? (g(), R("div", Ze, [
6169
- s("div", ea, [
6170
- 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, {
6171
6170
  size: "small",
6172
6171
  class: "connector-selector",
6173
- modelValue: D.value,
6174
- "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),
6175
6174
  style: { "margin-right": "20px" }
6176
6175
  }, {
6177
- default: l(() => [
6178
- a(h, { value: "and" }, {
6179
- default: l(() => [...z[2] || (z[2] = [
6180
- $("且", -1)
6176
+ default: r(() => [
6177
+ o(N, { value: "and" }, {
6178
+ default: r(() => [...O[2] || (O[2] = [
6179
+ T("且", -1)
6181
6180
  ])]),
6182
6181
  _: 1
6183
6182
  }),
6184
- a(h, { value: "or" }, {
6185
- default: l(() => [...z[3] || (z[3] = [
6186
- $("或", -1)
6183
+ o(N, { value: "or" }, {
6184
+ default: r(() => [...O[3] || (O[3] = [
6185
+ T("或", -1)
6187
6186
  ])]),
6188
6187
  _: 1
6189
6188
  })
@@ -6191,32 +6190,32 @@ const je = [
6191
6190
  _: 1
6192
6191
  }, 8, ["modelValue"])
6193
6192
  ])
6194
- ])) : oe("", !0),
6195
- s("div", aa, [
6196
- s("div", la, [
6197
- (g(!0), R(le, null, se(i.value, (j, H) => (g(), R("div", {
6198
- 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,
6199
6198
  class: "filter-card-item"
6200
6199
  }, [
6201
- s("div", ta, [
6202
- s("div", na, [
6203
- s("span", oa, "筛选卡片 " + pe(H + 1), 1),
6204
- a(x, {
6200
+ s("div", Me, [
6201
+ s("div", Ie, [
6202
+ s("span", Ke, "筛选卡片 " + te(U + 1), 1),
6203
+ o(K, {
6205
6204
  size: "small",
6206
- modelValue: j.connector,
6207
- "onUpdate:modelValue": (X) => j.connector = X,
6205
+ modelValue: n.connector,
6206
+ "onUpdate:modelValue": (v) => n.connector = v,
6208
6207
  class: "connector-selector"
6209
6208
  }, {
6210
- default: l(() => [
6211
- a(h, { value: "and" }, {
6212
- default: l(() => [...z[4] || (z[4] = [
6213
- $("且", -1)
6209
+ default: r(() => [
6210
+ o(N, { value: "and" }, {
6211
+ default: r(() => [...O[4] || (O[4] = [
6212
+ T("且", -1)
6214
6213
  ])]),
6215
6214
  _: 1
6216
6215
  }),
6217
- a(h, { value: "or" }, {
6218
- default: l(() => [...z[5] || (z[5] = [
6219
- $("或", -1)
6216
+ o(N, { value: "or" }, {
6217
+ default: r(() => [...O[5] || (O[5] = [
6218
+ T("或", -1)
6220
6219
  ])]),
6221
6220
  _: 1
6222
6221
  })
@@ -6224,55 +6223,55 @@ const je = [
6224
6223
  _: 1
6225
6224
  }, 8, ["modelValue", "onUpdate:modelValue"])
6226
6225
  ]),
6227
- a(c, {
6226
+ o(c, {
6228
6227
  theme: "default",
6229
6228
  variant: "text",
6230
6229
  size: "small",
6231
- onClick: (X) => N(H),
6232
- disabled: i.value.length === 1
6230
+ onClick: (v) => P(U),
6231
+ disabled: m.value.length === 1
6233
6232
  }, {
6234
- icon: l(() => [
6235
- a(C, { name: "close" })
6233
+ icon: r(() => [
6234
+ o(D, { name: "close" })
6236
6235
  ]),
6237
6236
  _: 1
6238
6237
  }, 8, ["onClick", "disabled"])
6239
6238
  ]),
6240
- s("div", ia, [
6241
- (g(!0), R(le, null, se(j.conditions, (X, V) => (g(), R("div", {
6242
- key: V,
6239
+ s("div", He, [
6240
+ (g(!0), B(Q, null, Z(n.conditions, (v, a) => (g(), B("div", {
6241
+ key: a,
6243
6242
  class: "filter-combination"
6244
6243
  }, [
6245
- a($e, {
6246
- "field-options": r.fieldOptions,
6247
- "filter-condition": j.conditions[V],
6248
- index: V,
6244
+ o(me, {
6245
+ "field-options": i.fieldOptions,
6246
+ "filter-condition": n.conditions[a],
6247
+ index: a,
6249
6248
  "select-options": [],
6250
- size: r.size
6249
+ size: i.size
6251
6250
  }, null, 8, ["field-options", "filter-condition", "index", "size"]),
6252
- a(c, {
6251
+ o(c, {
6253
6252
  theme: "default",
6254
6253
  variant: "text",
6255
6254
  size: "small",
6256
- onClick: (F) => L(H, V),
6257
- disabled: j.conditions.length === 1
6255
+ onClick: (p) => j(U, a),
6256
+ disabled: n.conditions.length === 1
6258
6257
  }, {
6259
- icon: l(() => [
6260
- a(C, { name: "minus" })
6258
+ icon: r(() => [
6259
+ o(D, { name: "minus" })
6261
6260
  ]),
6262
6261
  _: 1
6263
6262
  }, 8, ["onClick", "disabled"])
6264
6263
  ]))), 128)),
6265
- s("div", sa, [
6266
- a(c, {
6264
+ s("div", Le, [
6265
+ o(c, {
6267
6266
  theme: "default",
6268
6267
  size: "small",
6269
- onClick: (X) => M(H)
6268
+ onClick: (v) => $(U)
6270
6269
  }, {
6271
- icon: l(() => [
6272
- a(C, { name: "add" })
6270
+ icon: r(() => [
6271
+ o(D, { name: "add" })
6273
6272
  ]),
6274
- default: l(() => [
6275
- z[6] || (z[6] = $(" 添加条件 ", -1))
6273
+ default: r(() => [
6274
+ O[6] || (O[6] = T(" 添加条件 ", -1))
6276
6275
  ]),
6277
6276
  _: 1
6278
6277
  }, 8, ["onClick"])
@@ -6281,11 +6280,11 @@ const je = [
6281
6280
  ]))), 128)),
6282
6281
  s("div", {
6283
6282
  class: "add-filter-card",
6284
- onClick: t
6283
+ onClick: e
6285
6284
  }, [
6286
- s("div", ra, [
6287
- a(C, { name: "add" }),
6288
- z[7] || (z[7] = s("span", null, "增加筛选卡片", -1))
6285
+ s("div", Ye, [
6286
+ o(D, { name: "add" }),
6287
+ O[7] || (O[7] = s("span", null, "增加筛选卡片", -1))
6289
6288
  ])
6290
6289
  ])
6291
6290
  ])
@@ -6294,25 +6293,25 @@ const je = [
6294
6293
  ])
6295
6294
  ])
6296
6295
  ]),
6297
- footer: l(() => [
6298
- s("div", da, [
6299
- z[10] || (z[10] = s("div", { class: "filter-dialog-footer2" }, null, -1)),
6300
- s("div", ua, [
6301
- 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, {
6302
6301
  theme: "default",
6303
- onClick: I
6302
+ onClick: R
6304
6303
  }, {
6305
- default: l(() => [...z[8] || (z[8] = [
6306
- $("取消", -1)
6304
+ default: r(() => [...O[8] || (O[8] = [
6305
+ T("取消", -1)
6307
6306
  ])]),
6308
6307
  _: 1
6309
6308
  }),
6310
- a(c, {
6309
+ o(c, {
6311
6310
  theme: "primary",
6312
- onClick: B
6311
+ onClick: q
6313
6312
  }, {
6314
- default: l(() => [...z[9] || (z[9] = [
6315
- $("确定", -1)
6313
+ default: r(() => [...O[9] || (O[9] = [
6314
+ T("确定", -1)
6316
6315
  ])]),
6317
6316
  _: 1
6318
6317
  })
@@ -6323,271 +6322,16 @@ const je = [
6323
6322
  }, 8, ["visible"]);
6324
6323
  };
6325
6324
  }
6326
- }, Ee = /* @__PURE__ */ me(ma, [["__scopeId", "data-v-92f16808"]]), ca = { class: "save-plan-content" }, va = {
6327
- __name: "SavePlanDialog",
6328
- props: {
6329
- visible: {
6330
- type: Boolean,
6331
- default: !1
6332
- },
6333
- isEditing: {
6334
- type: Boolean,
6335
- default: !1
6336
- },
6337
- planName: {
6338
- type: String,
6339
- default: ""
6340
- },
6341
- userOptions: {
6342
- type: Array,
6343
- default: () => []
6344
- },
6345
- tabs: {
6346
- type: Array,
6347
- default: () => []
6348
- },
6349
- organizations: {
6350
- type: Array,
6351
- default: () => []
6352
- },
6353
- deptMembersDataProp: {
6354
- type: Array,
6355
- default: () => []
6356
- },
6357
- // 原始方案的共享配置
6358
- originalShareMode: {
6359
- type: String,
6360
- default: "none"
6361
- },
6362
- originalShareType: {
6363
- type: String,
6364
- default: "specific"
6365
- },
6366
- originalSelectedUsers: {
6367
- type: Array,
6368
- default: () => []
6369
- }
6370
- },
6371
- emits: ["update:visible", "confirm", "close", "load-users", "search", "dept-click"],
6372
- setup(r, { emit: te }) {
6373
- const d = r, f = te, i = b({
6374
- planName: "",
6375
- shareMode: "none",
6376
- shareType: "specific",
6377
- selectedUsers: []
6378
- }), D = b([]), ee = b([]), t = ue(() => d.isEditing && d.originalShareMode === "copy");
6379
- ne(() => d.visible, (h) => {
6380
- 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();
6381
- }), ne(() => d.deptMembersDataProp, (h) => {
6382
- h && (ee.value = h);
6383
- });
6384
- const M = () => {
6385
- i.value = {
6386
- planName: "",
6387
- shareMode: "none",
6388
- shareType: "specific",
6389
- selectedUsers: []
6390
- }, D.value = [], ee.value = [];
6391
- }, L = (h) => {
6392
- console.log("选中人员:", h), h.map((C) => ({
6393
- id: C.id,
6394
- name: C.displayName || C.name,
6395
- avatar: "",
6396
- department: C.department,
6397
- role: C.position,
6398
- email: "",
6399
- mobile: C.phone || "",
6400
- employeeId: "",
6401
- signature: "",
6402
- tags: [],
6403
- isUser: C.isUser === !0
6404
- })).forEach((C) => {
6405
- D.value.find((J) => J.id === C.id) || D.value.push(C);
6406
- }), i.value.selectedUsers = D.value.map((C) => C.id);
6407
- }, N = (h) => {
6408
- f("load-users", h);
6409
- }, B = (h) => {
6410
- f("search", h);
6411
- }, I = (h) => {
6412
- f("dept-click", h);
6413
- }, S = () => {
6414
- if (!i.value.planName.trim()) {
6415
- fe.warning("请输入方案名称");
6416
- return;
6417
- }
6418
- if ((i.value.shareMode === "share" || i.value.shareMode === "copy") && i.value.shareType === "specific" && i.value.selectedUsers.length === 0) {
6419
- fe.warning("请选择要共享的用户");
6420
- return;
6421
- }
6422
- f("confirm", {
6423
- planName: i.value.planName,
6424
- shareMode: i.value.shareMode,
6425
- shareType: i.value.shareType,
6426
- selectedUsers: i.value.selectedUsers
6427
- }), f("update:visible", !1);
6428
- }, z = () => {
6429
- f("close"), f("update:visible", !1);
6430
- };
6431
- return (h, x) => {
6432
- 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");
6433
- return g(), G(F, {
6434
- header: r.isEditing ? "编辑筛选方案" : "保存筛选方案",
6435
- visible: r.visible,
6436
- "onUpdate:visible": x[3] || (x[3] = (E) => h.$emit("update:visible", E)),
6437
- width: "600px",
6438
- footer: !0,
6439
- onConfirm: S,
6440
- onClose: z
6441
- }, {
6442
- body: l(() => [
6443
- s("div", ca, [
6444
- a(X, {
6445
- data: i.value,
6446
- "label-align": "left",
6447
- "label-width": "100px"
6448
- }, {
6449
- default: l(() => [
6450
- a(c, {
6451
- label: "方案名称",
6452
- required: ""
6453
- }, {
6454
- default: l(() => [
6455
- a(C, {
6456
- modelValue: i.value.planName,
6457
- "onUpdate:modelValue": x[0] || (x[0] = (E) => i.value.planName = E),
6458
- placeholder: "请输入方案名称"
6459
- }, null, 8, ["modelValue"])
6460
- ]),
6461
- _: 1
6462
- }),
6463
- a(c, { label: "共享设置" }, {
6464
- default: l(() => [
6465
- a(H, {
6466
- modelValue: i.value.shareMode,
6467
- "onUpdate:modelValue": x[1] || (x[1] = (E) => i.value.shareMode = E),
6468
- disabled: t.value
6469
- }, {
6470
- default: l(() => [
6471
- a(J, { value: "none" }, {
6472
- default: l(() => [...x[4] || (x[4] = [
6473
- $("不共享", -1)
6474
- ])]),
6475
- _: 1
6476
- }),
6477
- a(J, { value: "share" }, {
6478
- default: l(() => [...x[5] || (x[5] = [
6479
- $("共享给其他人", -1)
6480
- ])]),
6481
- _: 1
6482
- }),
6483
- a(j, {
6484
- content: "复制方案只支持复制一次,建议共享方案",
6485
- placement: "top"
6486
- }, {
6487
- default: l(() => [
6488
- a(J, { value: "copy" }, {
6489
- default: l(() => [...x[6] || (x[6] = [
6490
- $("复制给其他人", -1)
6491
- ])]),
6492
- _: 1
6493
- })
6494
- ]),
6495
- _: 1
6496
- })
6497
- ]),
6498
- _: 1
6499
- }, 8, ["modelValue", "disabled"])
6500
- ]),
6501
- _: 1
6502
- }),
6503
- i.value.shareMode === "share" ? (g(), G(c, {
6504
- key: 0,
6505
- label: "共享范围"
6506
- }, {
6507
- default: l(() => [
6508
- a(H, {
6509
- modelValue: i.value.shareType,
6510
- "onUpdate:modelValue": x[2] || (x[2] = (E) => i.value.shareType = E)
6511
- }, {
6512
- default: l(() => [
6513
- a(J, { value: "specific" }, {
6514
- default: l(() => [...x[7] || (x[7] = [
6515
- $("指定用户", -1)
6516
- ])]),
6517
- _: 1
6518
- }),
6519
- a(J, { value: "all" }, {
6520
- default: l(() => [...x[8] || (x[8] = [
6521
- $("所有用户", -1)
6522
- ])]),
6523
- _: 1
6524
- })
6525
- ]),
6526
- _: 1
6527
- }, 8, ["modelValue"])
6528
- ]),
6529
- _: 1
6530
- })) : oe("", !0),
6531
- i.value.shareMode === "share" && i.value.shareType === "specific" || i.value.shareMode === "copy" ? (g(), G(c, {
6532
- key: 1,
6533
- label: "共享人员"
6534
- }, {
6535
- default: l(() => [
6536
- a(Re(Je), {
6537
- users: D.value,
6538
- "avatar-size": 32,
6539
- "max-display": 10,
6540
- edit: !0,
6541
- "person-tabs": r.tabs,
6542
- "person-organizations": r.organizations,
6543
- "dept-members-data": ee.value,
6544
- onPersonSelect: L,
6545
- onLoadUsers: N,
6546
- onSearch: B,
6547
- onDeptClick: I
6548
- }, null, 8, ["users", "person-tabs", "person-organizations", "dept-members-data"])
6549
- ]),
6550
- _: 1
6551
- })) : oe("", !0)
6552
- ]),
6553
- _: 1
6554
- }, 8, ["data"])
6555
- ])
6556
- ]),
6557
- footer: l(() => [
6558
- a(V, {
6559
- theme: "default",
6560
- onClick: z
6561
- }, {
6562
- default: l(() => [...x[9] || (x[9] = [
6563
- $("取消", -1)
6564
- ])]),
6565
- _: 1
6566
- }),
6567
- a(V, {
6568
- theme: "primary",
6569
- onClick: S
6570
- }, {
6571
- default: l(() => [...x[10] || (x[10] = [
6572
- $("确定", -1)
6573
- ])]),
6574
- _: 1
6575
- })
6576
- ]),
6577
- _: 1
6578
- }, 8, ["header", "visible"]);
6579
- };
6580
- }
6581
- }, 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 = {
6582
6326
  class: "filter-scroll-wrapper",
6583
6327
  id: "filter-scroll-wrapper"
6584
- }, ba = {
6328
+ }, aa = {
6585
6329
  class: "filter-dialog-middle",
6586
6330
  id: "filter-dialog-middle"
6587
- }, ha = { class: "filter-tab-content" }, Ca = {
6331
+ }, la = { class: "filter-tab-content" }, ta = {
6588
6332
  key: 0,
6589
6333
  class: "filter-dialog-left"
6590
- }, _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 = {
6591
6335
  __name: "cd-filter",
6592
6336
  props: {
6593
6337
  visible: {
@@ -6659,97 +6403,50 @@ const je = [
6659
6403
  "dept-click",
6660
6404
  "column-change"
6661
6405
  ],
6662
- setup(r, { emit: te }) {
6663
- const d = r, 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);
6664
- let x = 100;
6665
- ne(() => d.filterCards, (e) => {
6666
- i.value = JSON.parse(JSON.stringify(e));
6667
- }, { deep: !0 }), ne(() => d.topOp, (e) => {
6668
- 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;
6669
6414
  });
6670
- const C = () => {
6671
- i.value.push({
6672
- id: x++,
6415
+ const $ = () => {
6416
+ m.value.push({
6417
+ id: e++,
6673
6418
  connector: "and",
6674
6419
  conditions: [{ field: "", operator: "eq", value: "" }]
6675
6420
  });
6676
- }, c = (e) => {
6677
- i.value.length > 1 ? i.value.splice(e, 1) : fe.warning("至少需要保留一个筛选卡片");
6678
- }, J = (e) => {
6679
- 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({
6680
6425
  field: "",
6681
6426
  operator: "eq",
6682
6427
  value: ""
6683
6428
  });
6684
- }, j = (e, n) => {
6685
- if (e >= 0 && e < i.value.length) {
6686
- const U = i.value[e];
6687
- 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("每个卡片至少需要一个筛选条件");
6688
6433
  }
6689
- }, H = (e) => e.map((n) => {
6690
- const U = n.conditions.filter((q) => q.field && q.field.trim() !== "").map((q) => {
6691
- let O = "";
6692
- return q.value !== null && q.value !== void 0 && (Array.isArray(q.value) ? O = q.value.join("/") : O = String(q.value)), {
6693
- field: q.field.trim(),
6694
- operator: q.operator || "eq",
6695
- 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
6696
6441
  };
6697
6442
  });
6698
6443
  return {
6699
- ...n,
6700
- connector: n.connector || "and",
6701
- 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: "" }]
6702
6447
  };
6703
- }).filter((n) => n.conditions.length > 0 && n.conditions[0].field !== ""), X = (e) => {
6704
- 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)) {
6705
- w.value = {}, v.value = {}, Q.value = e.columns.filter((P) => P.show !== !1).map((P) => P.value), e.columns.forEach((P) => {
6706
- P.width && (w.value[P.value] = parseInt(P.width)), P.fixed ? v.value[P.value] = P.fixed : v.value[P.value] = "none";
6707
- });
6708
- const n = e.columns.map((P) => P.value), U = n.map(
6709
- (P) => d.fieldOptions.find((ye) => ye.value === P)
6710
- ).filter(Boolean), q = d.fieldOptions.filter(
6711
- (P) => !n.includes(P.value)
6712
- );
6713
- o.value = [...U, ...q], re.value = Q.value.length === d.fieldOptions.length;
6714
- const O = e.columns.filter((P) => P.show !== !1);
6715
- f("column-change", O);
6716
- }
6717
- }, V = () => {
6718
- N.value = !1, h.value = null, B.value = "", I.value = "none", S.value = "specific", z.value = [], t.value = !0;
6719
- }, F = (e) => {
6720
- const n = o.value.map((U) => {
6721
- const q = w.value[U.value], O = v.value[U.value] || "none";
6722
- return {
6723
- value: U.value,
6724
- show: Q.value.includes(U.value),
6725
- // 是否显示
6726
- width: q ? `${q}px` : "120px",
6727
- fixed: O
6728
- // 冻结状态
6729
- };
6730
- });
6731
- N.value && h.value ? f("update-plan", {
6732
- ...e,
6733
- plan: h.value,
6734
- filterCards: i.value,
6735
- topOp: D.value,
6736
- columns: n
6737
- }) : f("save-plan", {
6738
- ...e,
6739
- filterCards: i.value,
6740
- topOp: D.value,
6741
- columns: n
6742
- }), N.value = !1, h.value = null;
6743
- }, E = (e) => {
6744
- 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;
6745
- }, m = (e) => {
6746
- f("copy-plan", e);
6747
- }, u = (e) => {
6748
- f("delete-plan", e);
6749
- }, y = (e) => {
6750
- f("set-default-plan", e);
6751
- }, K = () => {
6752
- ee.value = null, i.value = [
6448
+ }).filter((a) => a.conditions.length > 0 && a.conditions[0].field !== ""), w = () => {
6449
+ I.value = null, m.value = [
6753
6450
  {
6754
6451
  id: 1,
6755
6452
  connector: "and",
@@ -6758,569 +6455,241 @@ const je = [
6758
6455
  { field: "", operator: "eq", value: "" }
6759
6456
  ]
6760
6457
  }
6761
- ], D.value = "and", f("reset");
6762
- }, _ = () => {
6763
- if (L.value === "filter") {
6764
- const e = H(i.value);
6765
- f("confirm", {
6766
- filterCards: e,
6767
- type1: D.value
6768
- });
6769
- } else L.value === "column" && Oe();
6770
- ie();
6771
- }, ie = () => {
6772
- f("update:visible", !1);
6773
- }, de = (e) => {
6774
- f("load-users", e);
6775
- }, ce = (e) => {
6776
- f("search", e);
6777
- }, ve = (e) => {
6778
- f("dept-click", { dept: e, callback: (U) => {
6779
- M.value = U;
6780
- } });
6781
- }, Q = b([]), re = b(!1), w = b({}), v = b({}), o = b([]), A = b(null), T = b(null);
6782
- ne(() => d.visibleColumns, (e) => {
6783
- if (w.value = {}, v.value = {}, e && e.length > 0) {
6784
- if (typeof e[0] == "object") {
6785
- Q.value = e.filter((O) => O.show !== !1).map((O) => O.value), e.forEach((O) => {
6786
- 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";
6787
6473
  });
6788
- const n = e.map((O) => O.value), U = n.map(
6789
- (O) => d.fieldOptions.find((P) => P.value === O)
6790
- ).filter(Boolean), q = d.fieldOptions.filter(
6791
- (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)
6792
6478
  );
6793
- o.value = [...U, ...q];
6479
+ n.value = [...p, ...C];
6794
6480
  } else {
6795
- Q.value = [...e];
6796
- const n = e.map(
6797
- (q) => d.fieldOptions.find((O) => O.value === q)
6798
- ).filter(Boolean), U = d.fieldOptions.filter(
6799
- (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)
6800
6486
  );
6801
- o.value = [...n, ...U];
6487
+ n.value = [...a, ...p];
6802
6488
  }
6803
- re.value = Q.value.length === d.fieldOptions.length;
6804
- } else d.fieldOptions.length > 0 && (Q.value = d.fieldOptions.map((n) => n.value), o.value = [...d.fieldOptions], re.value = !0);
6805
- d.fieldOptions.forEach((n) => {
6806
- 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");
6807
6493
  });
6808
- }, { immediate: !0 }), ne(() => d.fieldOptions, (e) => {
6809
- o.value.length || (o.value = [...e]);
6494
+ }, { immediate: !0 }), G(() => d.fieldOptions, (v) => {
6495
+ n.value.length || (n.value = [...v]);
6810
6496
  }, { immediate: !0 });
6811
- const Z = (e, n) => {
6812
- if (n)
6813
- Q.value.includes(e) || Q.value.push(e);
6814
- else {
6815
- const U = Q.value.indexOf(e);
6816
- U > -1 && Q.value.splice(U, 1);
6817
- }
6818
- re.value = Q.value.length === d.fieldOptions.length;
6819
- }, W = (e) => {
6820
- e ? Q.value = o.value.map((n) => n.value) : Q.value = [];
6821
- }, he = (e) => {
6822
- if (e > 0) {
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
- }, Ce = (e) => {
6827
- if (e < o.value.length - 1) {
6828
- const n = o.value[e];
6829
- o.value[e] = o.value[e + 1], o.value[e + 1] = n, o.value = [...o.value];
6830
- }
6831
- }, _e = (e, n) => {
6832
- A.value = e, n.dataTransfer.effectAllowed = "move", n.dataTransfer.setData("text/html", n.target.innerHTML);
6833
- }, ke = (e, n) => {
6834
- n.preventDefault(), n.dataTransfer.dropEffect = "move", T.value = e;
6835
- }, ze = () => {
6836
- A.value = null, T.value = null;
6837
- }, we = (e, n) => {
6838
- n.preventDefault();
6839
- const U = A.value;
6840
- if (U === null || U === e)
6841
- return;
6842
- const q = [...o.value], O = q[U];
6843
- q.splice(U, 1), q.splice(e, 0, O), o.value = q, A.value = null, T.value = null;
6844
- }, Oe = () => {
6845
- const e = o.value.filter((n) => Q.value.includes(n.value)).map((n) => {
6846
- 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";
6847
6500
  return {
6848
- value: n.value,
6501
+ value: a.value,
6849
6502
  show: !0,
6850
6503
  // 已通过filter筛选,都是显示的
6851
- width: U ? `${U}px` : "120px",
6504
+ width: p ? `${p}px` : "120px",
6852
6505
  // 没有设置宽度时使用默认值120px
6853
- fixed: q
6506
+ fixed: C
6854
6507
  // 冻结状态
6855
6508
  };
6856
6509
  });
6857
- f("column-change", e);
6510
+ k("column-change", v);
6858
6511
  };
6859
- return (e, n) => {
6860
- 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");
6861
- return g(), R(le, null, [
6862
- a(Be, {
6863
- header: "方案设置",
6864
- placement: "center",
6865
- attach: "body",
6866
- visible: r.visible,
6867
- "onUpdate:visible": n[4] || (n[4] = (k) => e.$emit("update:visible", k)),
6868
- width: r.width,
6869
- "z-index": 999,
6870
- footer: !0,
6871
- onClose: ie,
6872
- id: "leader-line-clip-container"
6873
- }, {
6874
- body: l(() => [
6875
- s("div", pa, [
6876
- s("div", ya, [
6877
- s("div", ga, [
6878
- s("div", ba, [
6879
- a(Me, {
6880
- modelValue: L.value,
6881
- "onUpdate:modelValue": n[2] || (n[2] = (k) => L.value = k),
6882
- size: "medium"
6883
- }, {
6884
- default: l(() => [
6885
- a(ye, {
6886
- value: "filter",
6887
- label: "筛选"
6888
- }, {
6889
- default: l(() => [
6890
- s("div", ha, [
6891
- i.value.length > 1 ? (g(), R("div", Ca, [
6892
- s("div", _a, [
6893
- a(q, {
6894
- size: r.size,
6895
- class: "connector-selector",
6896
- modelValue: D.value,
6897
- "onUpdate:modelValue": n[0] || (n[0] = (k) => D.value = k)
6898
- }, {
6899
- default: l(() => [
6900
- a(U, { value: "and" }, {
6901
- default: l(() => [...n[6] || (n[6] = [
6902
- $("且", -1)
6903
- ])]),
6904
- _: 1
6905
- }),
6906
- a(U, { value: "or" }, {
6907
- default: l(() => [...n[7] || (n[7] = [
6908
- $("或", -1)
6909
- ])]),
6910
- _: 1
6911
- })
6912
- ]),
6913
- _: 1
6914
- }, 8, ["size", "modelValue"])
6915
- ])
6916
- ])) : oe("", !0),
6917
- s("div", ka, [
6918
- (g(!0), R(le, null, se(i.value, (k, ae) => (g(), R("div", {
6919
- key: k.id,
6920
- class: "filter-card-item"
6921
- }, [
6922
- s("div", za, [
6923
- s("div", wa, [
6924
- s("span", Oa, "筛选卡片 " + pe(ae + 1), 1),
6925
- a(q, {
6926
- size: r.size,
6927
- modelValue: k.connector,
6928
- "onUpdate:modelValue": (Y) => k.connector = Y,
6929
- class: "connector-selector"
6930
- }, {
6931
- default: l(() => [
6932
- a(U, { value: "and" }, {
6933
- default: l(() => [...n[8] || (n[8] = [
6934
- $("且", -1)
6935
- ])]),
6936
- _: 1
6937
- }),
6938
- a(U, { value: "or" }, {
6939
- default: l(() => [...n[9] || (n[9] = [
6940
- $("或", -1)
6941
- ])]),
6942
- _: 1
6943
- })
6944
- ]),
6945
- _: 1
6946
- }, 8, ["size", "modelValue", "onUpdate:modelValue"])
6947
- ]),
6948
- a(P, {
6949
- theme: "default",
6950
- variant: "text",
6951
- size: r.size,
6952
- onClick: (Y) => c(ae),
6953
- disabled: i.value.length === 1
6954
- }, {
6955
- icon: l(() => [
6956
- a(O, { name: "close" })
6957
- ]),
6958
- _: 1
6959
- }, 8, ["size", "onClick", "disabled"])
6960
- ]),
6961
- s("div", Fa, [
6962
- (g(!0), R(le, null, se(k.conditions, (Y, Ve) => (g(), R("div", {
6963
- key: Ve,
6964
- class: "filter-combination"
6965
- }, [
6966
- a($e, {
6967
- "field-options": r.fieldOptions,
6968
- "filter-condition": k.conditions[Ve],
6969
- "select-options": r.selectOptions,
6970
- size: r.size
6971
- }, null, 8, ["field-options", "filter-condition", "select-options", "size"]),
6972
- a(P, {
6973
- theme: "default",
6974
- variant: "text",
6975
- size: r.size,
6976
- onClick: (yl) => j(ae, Ve),
6977
- disabled: k.conditions.length === 1
6978
- }, {
6979
- icon: l(() => [
6980
- a(O, { name: "minus" })
6981
- ]),
6982
- _: 1
6983
- }, 8, ["size", "onClick", "disabled"])
6984
- ]))), 128)),
6985
- s("div", Va, [
6986
- a(P, {
6987
- theme: "default",
6988
- size: r.size,
6989
- onClick: (Y) => J(ae)
6990
- }, {
6991
- icon: l(() => [
6992
- a(O, { name: "add" })
6993
- ]),
6994
- default: l(() => [
6995
- n[10] || (n[10] = $(" 添加条件 ", -1))
6996
- ]),
6997
- _: 1
6998
- }, 8, ["size", "onClick"])
6999
- ])
7000
- ])
7001
- ]))), 128)),
7002
- s("div", {
7003
- class: "add-filter-card",
7004
- onClick: C
7005
- }, [
7006
- s("div", Sa, [
7007
- a(O, { name: "add" }),
7008
- n[11] || (n[11] = s("span", null, "增加筛选卡片", -1))
7009
- ])
7010
- ])
7011
- ])
7012
- ])
7013
- ]),
7014
- _: 1
7015
- }),
7016
- a(ye, {
7017
- value: "column",
7018
- 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)
7019
6539
  }, {
7020
- default: l(() => [
7021
- s("div", xa, [
7022
- s("div", $a, [
7023
- n[13] || (n[13] = s("div", { class: "column-title column-title-name" }, "名称", -1)),
7024
- s("div", Ua, [
7025
- a(Ue, {
7026
- modelValue: re.value,
7027
- "onUpdate:modelValue": n[1] || (n[1] = (k) => re.value = k),
7028
- onChange: W
7029
- }, null, 8, ["modelValue"]),
7030
- n[12] || (n[12] = $(" 显示", -1))
7031
- ]),
7032
- n[14] || (n[14] = s("div", { class: "column-title column-title-width" }, "冻结列", -1)),
7033
- n[15] || (n[15] = s("div", { class: "column-title column-title-width" }, "宽度", -1)),
7034
- n[16] || (n[16] = s("div", { class: "column-title column-title-sort" }, "排序", -1))
7035
- ]),
7036
- s("div", Da, [
7037
- (g(!0), R(le, null, se(o.value, (k, ae) => (g(), R("div", {
7038
- key: k.value,
7039
- class: Se(["column-item-row", { dragging: A.value === ae }]),
7040
- draggable: "true",
7041
- onDragstart: (Y) => _e(ae, Y),
7042
- onDragover: (Y) => ke(ae, Y),
7043
- onDragend: ze,
7044
- onDrop: (Y) => we(ae, Y)
7045
- }, [
7046
- s("div", Ea, [
7047
- a(O, {
7048
- name: "move",
7049
- style: { cursor: "move", color: "#999", "margin-right": "8px" }
7050
- }),
7051
- $(" " + pe(k.label), 1)
7052
- ]),
7053
- s("div", Aa, [
7054
- a(Ue, {
7055
- checked: Q.value.includes(k.value),
7056
- onChange: (Y) => Z(k.value, Y)
7057
- }, null, 8, ["checked", "onChange"])
7058
- ]),
7059
- s("div", Pa, [
7060
- a(Ne, {
7061
- modelValue: v.value[k.value],
7062
- "onUpdate:modelValue": (Y) => v.value[k.value] = Y,
7063
- size: "small",
7064
- style: { width: "120px" }
7065
- }, {
7066
- default: l(() => [
7067
- a(Fe, {
7068
- value: "none",
7069
- label: "不冻结"
7070
- }),
7071
- a(Fe, {
7072
- value: "left",
7073
- label: "左侧冻结"
7074
- }),
7075
- a(Fe, {
7076
- value: "right",
7077
- label: "右侧冻结"
7078
- })
7079
- ]),
7080
- _: 1
7081
- }, 8, ["modelValue", "onUpdate:modelValue"])
7082
- ]),
7083
- s("div", Na, [
7084
- a(qe, {
7085
- modelValue: w.value[k.value],
7086
- "onUpdate:modelValue": (Y) => w.value[k.value] = Y,
7087
- min: 50,
7088
- max: 500,
7089
- step: 10,
7090
- size: "small",
7091
- placeholder: "",
7092
- style: { width: "100px" }
7093
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
7094
- ]),
7095
- s("div", qa, [
7096
- a(P, {
7097
- theme: "default",
7098
- variant: "text",
7099
- size: "small",
7100
- onClick: (Y) => he(ae),
7101
- disabled: ae === 0
7102
- }, {
7103
- icon: l(() => [
7104
- a(O, {
7105
- name: "chevron-up",
7106
- style: { color: "#f60" }
7107
- })
7108
- ]),
7109
- _: 1
7110
- }, 8, ["onClick", "disabled"]),
7111
- a(P, {
7112
- theme: "default",
7113
- variant: "text",
7114
- size: "small",
7115
- onClick: (Y) => Ce(ae),
7116
- disabled: ae === o.value.length - 1
7117
- }, {
7118
- icon: l(() => [
7119
- a(O, {
7120
- name: "chevron-down",
7121
- style: { color: "#f60" }
7122
- })
7123
- ]),
7124
- _: 1
7125
- }, 8, ["onClick", "disabled"])
7126
- ])
7127
- ], 42, Ta))), 128))
7128
- ])
7129
- ])
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
+ })
7130
6553
  ]),
7131
6554
  _: 1
7132
- })
7133
- ]),
7134
- _: 1
7135
- }, 8, ["modelValue"])
7136
- ]),
7137
- s("div", Ma, [
7138
- n[17] || (n[17] = s("div", { class: "filter-plan-title" }, "我的方案", -1)),
7139
- s("div", Ba, [
7140
- (g(!0), R(le, null, se(r.planFilterOptions, (k) => {
7141
- var ae;
7142
- return g(), R("div", {
7143
- key: k.value,
7144
- class: Se(["filter-plan-item", { active: ((ae = ee.value) == null ? void 0 : ae.value) === k.value }]),
7145
- onClick: (Y) => X(k)
7146
- }, [
7147
- a(O, {
7148
- name: "file-text",
7149
- class: "plan-icon"
7150
- }),
7151
- s("span", Ja, pe(k.name), 1),
7152
- s("div", {
7153
- class: "plan-actions",
7154
- onClick: n[3] || (n[3] = De(() => {
7155
- }, ["stop"]))
7156
- }, [
7157
- a(ge, {
7158
- content: "编辑",
7159
- 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"
7160
6571
  }, {
7161
- default: l(() => [
7162
- a(P, {
7163
- theme: "default",
7164
- variant: "text",
7165
- size: "small",
7166
- onClick: De((Y) => E(k), ["stop"]),
7167
- disabled: !k.value || k.value === "empty"
7168
- }, {
7169
- icon: l(() => [
7170
- a(O, {
7171
- name: "edit",
7172
- style: { color: "#0052d9" }
7173
- })
7174
- ]),
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
+ ])]),
7175
6583
  _: 1
7176
- }, 8, ["onClick", "disabled"])
6584
+ })
7177
6585
  ]),
7178
- _: 2
7179
- }, 1024),
7180
- a(ge, {
7181
- content: "设置为默认方案",
7182
- 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
7183
6619
  }, {
7184
- default: l(() => [
7185
- a(P, {
7186
- theme: "default",
7187
- variant: "text",
7188
- size: "small",
7189
- onClick: (Y) => y(k),
7190
- disabled: !k.value || k.value === "empty"
7191
- }, {
7192
- icon: l(() => [
7193
- a(O, {
7194
- name: k.isDefault ? "check-circle-filled" : "check-circle",
7195
- style: xe({ color: k.isDefault ? "#0052d9" : "#bbb" })
7196
- }, null, 8, ["name", "style"])
7197
- ]),
7198
- _: 2
7199
- }, 1032, ["onClick", "disabled"])
6620
+ icon: r(() => [
6621
+ o(l, { name: "minus" })
7200
6622
  ]),
7201
- _: 2
7202
- }, 1024),
7203
- a(ge, {
7204
- content: "复制方案",
7205
- 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)
7206
6631
  }, {
7207
- default: l(() => [
7208
- a(P, {
7209
- theme: "default",
7210
- variant: "text",
7211
- size: "small",
7212
- onClick: (Y) => m(k),
7213
- disabled: !k.value || k.value === "empty"
7214
- }, {
7215
- icon: l(() => [
7216
- a(O, {
7217
- name: "file-copy",
7218
- style: { color: "#ff9800" }
7219
- })
7220
- ]),
7221
- _: 1
7222
- }, 8, ["onClick", "disabled"])
6632
+ icon: r(() => [
6633
+ o(l, { name: "add" })
7223
6634
  ]),
7224
- _: 2
7225
- }, 1024),
7226
- a(ge, {
7227
- content: "删除方案",
7228
- placement: "top"
7229
- }, {
7230
- default: l(() => [
7231
- a(P, {
7232
- theme: "default",
7233
- variant: "text",
7234
- size: "small",
7235
- onClick: (Y) => u(k),
7236
- disabled: !k.value || k.value === "empty"
7237
- }, {
7238
- icon: l(() => [
7239
- a(O, {
7240
- name: "delete",
7241
- style: { color: "#0052d9" }
7242
- })
7243
- ]),
7244
- _: 1
7245
- }, 8, ["onClick", "disabled"])
6635
+ default: r(() => [
6636
+ a[6] || (a[6] = T(" 添加条件 ", -1))
7246
6637
  ]),
7247
- _: 2
7248
- }, 1024)
6638
+ _: 1
6639
+ }, 8, ["size", "onClick"])
7249
6640
  ])
7250
- ], 10, Ra);
7251
- }), 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
+ ])
7252
6652
  ])
7253
6653
  ])
7254
6654
  ])
7255
6655
  ])
7256
6656
  ])
7257
- ]),
7258
- footer: l(() => [
7259
- s("div", ja, [
7260
- s("div", La, [
7261
- a(P, {
7262
- theme: "warning",
7263
- size: r.size,
7264
- onClick: V
7265
- }, {
7266
- icon: l(() => [
7267
- a(O, { name: "save" })
7268
- ]),
7269
- default: l(() => [
7270
- n[18] || (n[18] = $(" 保存方案 ", -1))
7271
- ]),
7272
- _: 1
7273
- }, 8, ["size"])
7274
- ]),
7275
- s("div", Ia, [
7276
- a(P, {
7277
- theme: "default",
7278
- size: r.size,
7279
- onClick: K
7280
- }, {
7281
- default: l(() => [...n[19] || (n[19] = [
7282
- $("重置", -1)
7283
- ])]),
7284
- _: 1
7285
- }, 8, ["size"]),
7286
- a(P, {
7287
- theme: "primary",
7288
- size: r.size,
7289
- onClick: _
7290
- }, {
7291
- default: l(() => [...n[20] || (n[20] = [
7292
- $("确定", -1)
7293
- ])]),
7294
- _: 1
7295
- }, 8, ["size"])
7296
- ])
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"])
7297
6682
  ])
7298
- ]),
7299
- _: 1
7300
- }, 8, ["visible", "width"]),
7301
- a(fa, {
7302
- visible: t.value,
7303
- "onUpdate:visible": n[5] || (n[5] = (k) => t.value = k),
7304
- "is-editing": N.value,
7305
- "plan-name": B.value,
7306
- "original-share-mode": I.value,
7307
- "original-share-type": S.value,
7308
- "original-selected-users": z.value,
7309
- tabs: r.personTabs,
7310
- organizations: r.personOrganizations,
7311
- "dept-members-data-prop": M.value,
7312
- onConfirm: F,
7313
- onLoadUsers: de,
7314
- onSearch: ce,
7315
- onDeptClick: ve
7316
- }, null, 8, ["visible", "is-editing", "plan-name", "original-share-mode", "original-share-type", "original-selected-users", "tabs", "organizations", "dept-members-data-prop"])
7317
- ], 64);
6683
+ ])
6684
+ ]),
6685
+ _: 1
6686
+ }, 8, ["visible", "width"]);
7318
6687
  };
7319
6688
  }
7320
- }, 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 = {
7321
6690
  key: 0,
7322
6691
  class: "bold-indicator"
7323
- }, 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 = {
7324
6693
  __name: "ColorFilterDialog",
7325
6694
  props: {
7326
6695
  visible: { type: Boolean, default: !1 },
@@ -7329,8 +6698,8 @@ const je = [
7329
6698
  initialRules: { type: Array, default: () => [] }
7330
6699
  },
7331
6700
  emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
7332
- setup(r, { emit: te }) {
7333
- const d = r, f = te, i = b(d.visible), D = [
6701
+ setup(i, { emit: Y }) {
6702
+ const d = i, k = Y, m = _(d.visible), x = [
7334
6703
  // 第一行 - 暖色系
7335
6704
  "#FFE7BA",
7336
6705
  "#FFD6E7",
@@ -7364,7 +6733,7 @@ const je = [
7364
6733
  "#B0BEC5",
7365
6734
  "#E7F5E8",
7366
6735
  "#F8F9FA"
7367
- ], ee = [
6736
+ ], I = [
7368
6737
  { label: "等于", value: "eq" },
7369
6738
  { label: "不等于", value: "ne" },
7370
6739
  { label: "大于", value: "gt" },
@@ -7373,11 +6742,11 @@ const je = [
7373
6742
  { label: "小于等于", value: "lte" },
7374
6743
  { label: "包含", value: "contains" },
7375
6744
  { label: "不包含", value: "notContains" }
7376
- ], t = {
6745
+ ], e = {
7377
6746
  overlayInnerStyle: {
7378
6747
  width: "180px"
7379
6748
  }
7380
- }, M = b([
6749
+ }, $ = _([
7381
6750
  {
7382
6751
  field: "",
7383
6752
  operator: "eq",
@@ -7388,18 +6757,18 @@ const je = [
7388
6757
  applyTo: "cell"
7389
6758
  }
7390
6759
  ]);
7391
- ne(() => d.visible, (C) => {
7392
- 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) => ({
7393
6762
  ...c,
7394
6763
  showColorPicker: !1
7395
6764
  })));
7396
- }), ne(i, (C) => {
7397
- f("update:visible", C);
6765
+ }), G(m, (D) => {
6766
+ k("update:visible", D);
7398
6767
  });
7399
- const L = (C, c) => {
7400
- M.value[C].backgroundColor = c, M.value[C].showColorPicker = !1;
7401
- }, N = () => {
7402
- M.value.push({
6768
+ const j = (D, c) => {
6769
+ $.value[D].backgroundColor = c, $.value[D].showColorPicker = !1;
6770
+ }, P = () => {
6771
+ $.value.push({
7403
6772
  field: "",
7404
6773
  operator: "eq",
7405
6774
  value: "",
@@ -7408,14 +6777,14 @@ const je = [
7408
6777
  showColorPicker: !1,
7409
6778
  applyTo: "cell"
7410
6779
  });
7411
- }, B = (C) => {
7412
- M.value.length > 1 && M.value.splice(C, 1);
7413
- }, I = () => {
7414
- i.value = !1;
7415
- }, S = () => {
7416
- f("clear"), i.value = !1;
7417
- }, z = () => {
7418
- 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(
7419
6788
  (c) => c.field && c.operator && c.value
7420
6789
  ).map((c) => ({
7421
6790
  field: c.field,
@@ -7425,79 +6794,79 @@ const je = [
7425
6794
  isBold: c.isBold,
7426
6795
  applyTo: c.applyTo
7427
6796
  }));
7428
- f("confirm", C), i.value = !1;
7429
- }, h = ue(() => {
7430
- const C = M.value.length, c = Math.floor(D.length / C), J = [];
7431
- for (let j = 0; j < C; j++) {
7432
- const H = j * c % D.length;
7433
- 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]);
7434
6803
  }
7435
- return J;
7436
- }), x = () => {
7437
- M.value.forEach((C, c) => {
7438
- c < h.value.length && (C.backgroundColor = h.value[c]);
7439
- }), 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);
7440
6809
  };
7441
- return (C, c) => {
7442
- 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");
7443
- return g(), G(u, {
7444
- visible: i.value,
7445
- "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),
7446
6815
  width: "800px",
7447
6816
  "confirm-btn": null,
7448
6817
  "cancel-btn": null,
7449
- onClose: I
6818
+ onClose: R
7450
6819
  }, {
7451
- header: l(() => [
7452
- s("div", Ya, [
6820
+ header: r(() => [
6821
+ s("div", ya, [
7453
6822
  c[3] || (c[3] = s("span", null, "颜色筛选", -1)),
7454
- a(J, {
6823
+ o(f, {
7455
6824
  theme: "primary",
7456
6825
  variant: "outline",
7457
6826
  size: "small",
7458
- onClick: x
6827
+ onClick: K
7459
6828
  }, {
7460
- icon: l(() => [...c[1] || (c[1] = [
6829
+ icon: r(() => [...c[1] || (c[1] = [
7461
6830
  s("i", { class: "ri-palette-line" }, null, -1)
7462
6831
  ])]),
7463
- default: l(() => [
7464
- c[2] || (c[2] = $(" 智能配色 ", -1))
6832
+ default: r(() => [
6833
+ c[2] || (c[2] = T(" 智能配色 ", -1))
7465
6834
  ]),
7466
6835
  _: 1
7467
6836
  })
7468
6837
  ])
7469
6838
  ]),
7470
- body: l(() => [
7471
- s("div", Ga, [
7472
- s("div", Wa, [
7473
- (g(!0), R(le, null, se(M.value, (y, K) => (g(), R("div", {
7474
- 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,
7475
6844
  class: "color-rule-item"
7476
6845
  }, [
7477
- s("div", Qa, [
7478
- s("div", Xa, [
7479
- a(H, {
6846
+ s("div", ga, [
6847
+ s("div", ha, [
6848
+ o(U, {
7480
6849
  visible: y.showColorPicker,
7481
- "onUpdate:visible": (_) => y.showColorPicker = _,
6850
+ "onUpdate:visible": (h) => y.showColorPicker = h,
7482
6851
  placement: "bottom-left",
7483
6852
  trigger: "click"
7484
6853
  }, {
7485
- content: l(() => [
7486
- s("div", al, [
7487
- s("div", ll, [
7488
- (g(), R(le, null, se(D, (_) => s("div", {
7489
- key: _,
7490
- class: Se(["preset-color-item", { active: y.backgroundColor === _ }]),
7491
- style: xe({ backgroundColor: _ }),
7492
- onClick: (ie) => L(K, _)
7493
- }, 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))
7494
6863
  ]),
7495
- s("div", nl, [
7496
- a(j, {
6864
+ s("div", wa, [
6865
+ o(n, {
7497
6866
  modelValue: y.isBold,
7498
- "onUpdate:modelValue": (_) => y.isBold = _
6867
+ "onUpdate:modelValue": (h) => y.isBold = h
7499
6868
  }, {
7500
- default: l(() => [...c[4] || (c[4] = [
6869
+ default: r(() => [...c[4] || (c[4] = [
7501
6870
  s("span", { class: "bold-text" }, "加粗", -1)
7502
6871
  ])]),
7503
6872
  _: 1
@@ -7505,42 +6874,42 @@ const je = [
7505
6874
  ])
7506
6875
  ])
7507
6876
  ]),
7508
- default: l(() => [
7509
- s("div", Za, [
6877
+ default: r(() => [
6878
+ s("div", _a, [
7510
6879
  s("div", {
7511
6880
  class: "color-block",
7512
- style: xe({ backgroundColor: y.backgroundColor })
6881
+ style: de({ backgroundColor: y.backgroundColor })
7513
6882
  }, [
7514
- y.isBold ? (g(), R("span", el, "B")) : oe("", !0)
6883
+ y.isBold ? (g(), B("span", ka, "B")) : W("", !0)
7515
6884
  ], 4)
7516
6885
  ])
7517
6886
  ]),
7518
6887
  _: 2
7519
6888
  }, 1032, ["visible", "onUpdate:visible"])
7520
6889
  ]),
7521
- s("div", ol, [
7522
- a(V, {
6890
+ s("div", $a, [
6891
+ o(a, {
7523
6892
  modelValue: y.applyTo,
7524
- "onUpdate:modelValue": (_) => y.applyTo = _,
7525
- size: r.size,
6893
+ "onUpdate:modelValue": (h) => y.applyTo = h,
6894
+ size: i.size,
7526
6895
  variant: "default-filled"
7527
6896
  }, {
7528
- default: l(() => [
7529
- a(X, { value: "cell" }, {
7530
- default: l(() => [...c[5] || (c[5] = [
7531
- $("单元格", -1)
6897
+ default: r(() => [
6898
+ o(v, { value: "cell" }, {
6899
+ default: r(() => [...c[5] || (c[5] = [
6900
+ T("单元格", -1)
7532
6901
  ])]),
7533
6902
  _: 1
7534
6903
  }),
7535
- a(X, { value: "row" }, {
7536
- default: l(() => [...c[6] || (c[6] = [
7537
- $("整行", -1)
6904
+ o(v, { value: "row" }, {
6905
+ default: r(() => [...c[6] || (c[6] = [
6906
+ T("整行", -1)
7538
6907
  ])]),
7539
6908
  _: 1
7540
6909
  }),
7541
- a(X, { value: "column" }, {
7542
- default: l(() => [...c[7] || (c[7] = [
7543
- $("整列", -1)
6910
+ o(v, { value: "column" }, {
6911
+ default: r(() => [...c[7] || (c[7] = [
6912
+ T("整列", -1)
7544
6913
  ])]),
7545
6914
  _: 1
7546
6915
  })
@@ -7548,94 +6917,94 @@ const je = [
7548
6917
  _: 1
7549
6918
  }, 8, ["modelValue", "onUpdate:modelValue", "size"])
7550
6919
  ]),
7551
- s("div", il, [
7552
- a(F, {
6920
+ s("div", Va, [
6921
+ o(p, {
7553
6922
  modelValue: y.field,
7554
- "onUpdate:modelValue": (_) => y.field = _,
7555
- options: r.fieldOptions,
6923
+ "onUpdate:modelValue": (h) => y.field = h,
6924
+ options: i.fieldOptions,
7556
6925
  placeholder: "选择字段",
7557
- size: r.size,
6926
+ size: i.size,
7558
6927
  style: { width: "120px", display: "inline-block" },
7559
- "popup-props": t
6928
+ "popup-props": e
7560
6929
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "size"]),
7561
- a(F, {
6930
+ o(p, {
7562
6931
  modelValue: y.operator,
7563
- "onUpdate:modelValue": (_) => y.operator = _,
7564
- options: ee,
6932
+ "onUpdate:modelValue": (h) => y.operator = h,
6933
+ options: I,
7565
6934
  placeholder: "选择操作符",
7566
- size: r.size,
6935
+ size: i.size,
7567
6936
  style: { width: "120px" },
7568
- "popup-props": t
6937
+ "popup-props": e
7569
6938
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
7570
- a(E, {
6939
+ o(C, {
7571
6940
  modelValue: y.value,
7572
- "onUpdate:modelValue": (_) => y.value = _,
6941
+ "onUpdate:modelValue": (h) => y.value = h,
7573
6942
  placeholder: "输入值",
7574
- size: r.size,
6943
+ size: i.size,
7575
6944
  style: { width: "200px" }
7576
6945
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size"])
7577
6946
  ])
7578
6947
  ]),
7579
- a(J, {
6948
+ o(f, {
7580
6949
  theme: "default",
7581
6950
  variant: "text",
7582
- size: r.size,
7583
- onClick: (_) => B(K),
7584
- disabled: M.value.length === 1
6951
+ size: i.size,
6952
+ onClick: (h) => q(z),
6953
+ disabled: $.value.length === 1
7585
6954
  }, {
7586
- icon: l(() => [...c[8] || (c[8] = [
6955
+ icon: r(() => [...c[8] || (c[8] = [
7587
6956
  s("i", { class: "ri-close-fill" }, null, -1)
7588
6957
  ])]),
7589
6958
  _: 1
7590
6959
  }, 8, ["size", "onClick", "disabled"])
7591
6960
  ]))), 128))
7592
6961
  ]),
7593
- a(J, {
6962
+ o(f, {
7594
6963
  theme: "default",
7595
6964
  variant: "dashed",
7596
- size: r.size,
7597
- onClick: N,
6965
+ size: i.size,
6966
+ onClick: P,
7598
6967
  style: { width: "100%", "margin-top": "12px" }
7599
6968
  }, {
7600
- icon: l(() => [
7601
- a(m, { name: "add" })
6969
+ icon: r(() => [
6970
+ o(l, { name: "add" })
7602
6971
  ]),
7603
- default: l(() => [
7604
- c[9] || (c[9] = $(" 添加规则 ", -1))
6972
+ default: r(() => [
6973
+ c[9] || (c[9] = T(" 添加规则 ", -1))
7605
6974
  ]),
7606
6975
  _: 1
7607
6976
  }, 8, ["size"])
7608
6977
  ])
7609
6978
  ]),
7610
- footer: l(() => [
7611
- s("div", sl, [
7612
- a(J, {
6979
+ footer: r(() => [
6980
+ s("div", Sa, [
6981
+ o(f, {
7613
6982
  theme: "default",
7614
- size: r.size,
7615
- onClick: I
6983
+ size: i.size,
6984
+ onClick: R
7616
6985
  }, {
7617
- default: l(() => [...c[10] || (c[10] = [
7618
- $("取消", -1)
6986
+ default: r(() => [...c[10] || (c[10] = [
6987
+ T("取消", -1)
7619
6988
  ])]),
7620
6989
  _: 1
7621
6990
  }, 8, ["size"]),
7622
- a(J, {
6991
+ o(f, {
7623
6992
  theme: "default",
7624
- size: r.size,
7625
- onClick: S
6993
+ size: i.size,
6994
+ onClick: w
7626
6995
  }, {
7627
- default: l(() => [...c[11] || (c[11] = [
7628
- $("清除", -1)
6996
+ default: r(() => [...c[11] || (c[11] = [
6997
+ T("清除", -1)
7629
6998
  ])]),
7630
6999
  _: 1
7631
7000
  }, 8, ["size"]),
7632
- a(J, {
7001
+ o(f, {
7633
7002
  theme: "primary",
7634
- size: r.size,
7635
- onClick: z
7003
+ size: i.size,
7004
+ onClick: O
7636
7005
  }, {
7637
- default: l(() => [...c[12] || (c[12] = [
7638
- $("确定", -1)
7006
+ default: r(() => [...c[12] || (c[12] = [
7007
+ T("确定", -1)
7639
7008
  ])]),
7640
7009
  _: 1
7641
7010
  }, 8, ["size"])
@@ -7645,13 +7014,220 @@ const je = [
7645
7014
  }, 8, ["visible"]);
7646
7015
  };
7647
7016
  }
7648
- }, 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 = {
7649
7222
  key: 0,
7650
- class: "inline-filter-toolbar"
7651
- }, ml = {
7652
- key: 1,
7653
7223
  class: "plan-radio-group"
7654
- }, 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 = {
7655
7231
  __name: "cd-filter-bar",
7656
7232
  props: {
7657
7233
  fieldOptions: { type: Array, required: !0 },
@@ -7672,6 +7248,7 @@ const je = [
7672
7248
  },
7673
7249
  topOp: { type: String, default: "and" },
7674
7250
  planFilterOptions: { type: Array, default: () => [] },
7251
+ planTitle: { type: String, default: "" },
7675
7252
  size: { type: String, default: "small" },
7676
7253
  width: { type: String, default: "1000px" },
7677
7254
  personTabs: { type: Array, default: () => [] },
@@ -7695,96 +7272,103 @@ const je = [
7695
7272
  "color-filter-clear",
7696
7273
  "keyword-change",
7697
7274
  "keyword-clear",
7698
- "smart-colors-change"
7275
+ "smart-colors-change",
7276
+ "refresh"
7699
7277
  ],
7700
- setup(r, { emit: te }) {
7701
- const d = r, 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: "" });
7702
7280
  (() => {
7703
- var o, A;
7281
+ var u, A;
7704
7282
  if (d.filterCount === 0) {
7705
- i.value = [];
7283
+ m.value = [];
7706
7284
  return;
7707
7285
  }
7708
- const v = ((A = (o = d.filterCards) == null ? void 0 : o[0]) == null ? void 0 : A.conditions) || [];
7709
- 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());
7710
7288
  })();
7711
- const t = () => {
7289
+ const e = () => {
7712
7290
  if (d.filterCount === 0) {
7713
- i.value = [];
7291
+ m.value = [];
7714
7292
  return;
7715
7293
  }
7716
- i.value = Array.from({ length: d.filterCount }, () => D());
7717
- }, M = b("保存筛选方案"), L = b(!1), N = b(d.topOp), B = b(JSON.parse(JSON.stringify(d.filterCards)));
7718
- ne(() => d.topOp, (v) => N.value = v), ne(() => d.filterCards, (v) => B.value = JSON.parse(JSON.stringify(v)));
7719
- const I = b(null), S = b(""), z = ue(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), h = (v) => {
7720
- const o = d.planFilterOptions.find((A) => A.value === v);
7721
- o && x(o);
7722
- }, x = (v) => {
7723
- if (!v.precepts || v.precepts.length === 0) return;
7724
- if (I.value = v, S.value = v.value, B.value = JSON.parse(JSON.stringify(v.precepts)), N.value = v.sqlConnectType, d.filterCount > 0) {
7725
- const T = v.precepts[0];
7726
- 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()));
7727
7307
  }
7728
- const o = H(v.precepts), A = X(o, v.sqlConnectType);
7729
- if (f("confirm", A), v.columns && v.columns.length > 0) {
7730
- const T = v.columns.filter((Z) => Z.show !== !1);
7731
- 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);
7732
7312
  }
7733
- }, C = () => {
7313
+ }, D = () => {
7734
7314
  c();
7735
7315
  }, c = () => {
7736
7316
  if (d.filterCount === 0) {
7737
- f("search", { conditions: { and: [] } });
7317
+ k("search", { conditions: { and: [] } });
7738
7318
  return;
7739
7319
  }
7740
- const v = H([
7741
- { id: 1, connector: N.value, conditions: i.value }
7742
- ]), o = X(v, "and");
7743
- f("search", o);
7744
- }, J = () => {
7745
- L.value = !0;
7746
- }, j = () => {
7747
- L.value = !1;
7748
- }, H = (v) => v.map((o) => {
7749
- 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) => {
7750
- let Z = "";
7751
- return T.value !== null && T.value !== void 0 && (Array.isArray(T.value) ? Z = T.value.join("/") : Z = String(T.value).trim()), {
7752
- field: T.field.trim(),
7753
- operator: T.operator || "eq",
7754
- 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
7755
7337
  };
7756
7338
  });
7757
7339
  return {
7758
- ...o,
7759
- connector: o.connector || "and",
7340
+ ...u,
7341
+ connector: u.connector || "and",
7760
7342
  conditions: A.length > 0 ? A : [{ field: "", operator: "eq", value: "" }]
7761
7343
  };
7762
- }).filter((o) => o.conditions.length > 0 && o.conditions[0].field !== "");
7763
- function X(v, o) {
7764
- 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")
7765
7347
  throw new Error('type参数必须是"and"或"or"');
7766
- function A(W) {
7348
+ function A(H) {
7767
7349
  return {
7768
- [W.field]: {
7769
- [W.operator]: W.value
7350
+ [H.field]: {
7351
+ [H.operator]: H.value
7770
7352
  }
7771
7353
  };
7772
7354
  }
7773
- function T(W) {
7774
- return W.conditions.length === 1 ? A(W.conditions[0]) : {
7775
- [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)
7776
7358
  };
7777
7359
  }
7778
7360
  return {
7779
7361
  conditions: {
7780
- [o]: v.map(T)
7362
+ [u]: b.map(E)
7781
7363
  }
7782
7364
  };
7783
7365
  }
7784
- const V = () => {
7785
- u.value = !1;
7786
- }, F = () => {
7787
- 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 = [
7788
7372
  {
7789
7373
  id: 1,
7790
7374
  connector: "and",
@@ -7793,57 +7377,59 @@ const je = [
7793
7377
  { field: "", operator: "eq", value: "" }
7794
7378
  ]
7795
7379
  }
7796
- ], N.value = "and", f("reset"), c();
7797
- }, E = () => {
7798
- const v = y.value.name.trim();
7799
- if (I.value) {
7800
- const o = H(B.value);
7801
- f("update-plan", {
7802
- name: v,
7803
- precepts: o,
7804
- topOp: N.value,
7805
- 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,
7806
7390
  columns: d.visibleColumns || []
7807
7391
  // 包含当前列配置
7808
7392
  });
7809
7393
  } else {
7810
- const o = H(B.value);
7811
- f("save-plan", {
7812
- name: v,
7813
- precepts: o,
7814
- topOp: N.value,
7815
- 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,
7816
7400
  columns: d.visibleColumns || []
7817
7401
  // 包含当前列配置
7818
7402
  });
7819
7403
  }
7820
- V();
7821
- }, m = (v) => {
7822
- const o = X(v.filterCards, v.type1);
7823
- if (f("confirm", o), d.filterCount > 0) {
7824
- const A = v.filterCards[0];
7825
- 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()));
7826
7410
  }
7827
- j();
7828
- }, u = b(!1), y = b({ name: "" }), K = b(!1), _ = b([]), ie = () => {
7829
- K.value = !0;
7830
- }, de = (v) => {
7831
- _.value = v, f("color-filter-change", v);
7832
- }, ce = () => {
7833
- _.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");
7834
7418
  };
7835
- b("");
7836
- const ve = (v) => {
7837
- f("smart-colors-change", v);
7838
- }, Q = ue(() => _.value.filter((v) => v.field && v.operator && v.value).length), re = ue(() => {
7839
- const v = _.value.filter((A) => A.field && A.operator && A.value);
7840
- return v.length === 0 ? "颜色筛选" : `
7841
- ${v.map((A) => {
7842
- const T = d.fieldOptions.find((W) => W.value === A.field);
7843
- 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}`;
7844
7430
  }).join(`
7845
7431
  `)}`;
7846
- }), w = (v) => ({
7432
+ }), he = (b) => ({
7847
7433
  eq: "等于",
7848
7434
  ne: "不等于",
7849
7435
  gt: "大于",
@@ -7852,164 +7438,178 @@ ${v.map((A) => {
7852
7438
  lte: "小于等于",
7853
7439
  contains: "包含",
7854
7440
  notContains: "不包含"
7855
- })[v] || v;
7856
- return (v, o) => {
7857
- 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");
7858
- return g(), R("div", dl, [
7859
- r.filterCount > 0 ? (g(), R("div", ul, [
7860
- (g(!0), R(le, null, se(i.value, (e, n) => (g(), G($e, {
7861
- key: n,
7862
- "field-options": r.fieldOptions,
7863
- size: r.size,
7864
- "filter-condition": i.value[n],
7865
- "select-options": r.selectOptions,
7866
- onSearch: C
7867
- }, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
7868
- ])) : oe("", !0),
7869
- r.filterCount === 0 && r.planFilterOptions.length > 0 ? (g(), R("div", ml, [
7870
- o[12] || (o[12] = s("span", { class: "plan-label" }, "我的方案:", -1)),
7871
- a(T, {
7872
- modelValue: S.value,
7873
- "onUpdate:modelValue": o[0] || (o[0] = (e) => S.value = e),
7874
- size: r.size,
7875
- 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
7876
7453
  }, {
7877
- default: l(() => [
7878
- (g(!0), R(le, null, se(r.planFilterOptions, (e) => (g(), G(A, {
7879
- key: e.value,
7880
- value: e.value,
7881
- 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
7882
7459
  }, {
7883
- default: l(() => [
7884
- $(pe(e.content), 1)
7460
+ default: r(() => [
7461
+ T(te(S.content), 1)
7885
7462
  ]),
7886
7463
  _: 2
7887
7464
  }, 1032, ["value", "disabled"]))), 128))
7888
7465
  ]),
7889
7466
  _: 1
7890
- }, 8, ["modelValue", "size"]),
7891
- 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, {
7892
7472
  theme: "default",
7893
7473
  variant: "outline",
7894
- size: r.size,
7895
- onClick: J,
7896
- title: "高级筛选"
7897
- }, {
7898
- icon: l(() => [
7899
- a(Z, { name: "filter" })
7900
- ]),
7901
- _: 1
7902
- }, 8, ["size"])
7903
- ])) : oe("", !0),
7904
- s("div", cl, [
7905
- r.filterCount > 0 ? (g(), G(W, {
7906
- key: 0,
7907
- theme: "primary",
7908
- size: r.size,
7909
- onClick: J,
7910
- title: "高级筛选"
7474
+ size: i.size,
7475
+ onClick: u[1] || (u[1] = (S) => P.value = !0),
7476
+ title: "列配置"
7911
7477
  }, {
7912
- icon: l(() => [
7913
- a(Z, { name: "filter" })
7914
- ]),
7915
- _: 1
7916
- }, 8, ["size"])) : oe("", !0),
7917
- r.filterCount > 0 ? (g(), G(Ce, {
7918
- key: 1,
7919
- content: re.value,
7920
- placement: "top"
7921
- }, {
7922
- default: l(() => [
7923
- a(he, {
7924
- count: Q.value,
7925
- "max-count": 99
7926
- }, {
7927
- default: l(() => [
7928
- a(W, {
7929
- theme: "primary",
7930
- size: r.size,
7931
- onClick: ie
7932
- }, {
7933
- icon: l(() => [...o[13] || (o[13] = [
7934
- s("i", { class: "ri-palette-fill" }, null, -1)
7935
- ])]),
7936
- _: 1
7937
- }, 8, ["size"])
7938
- ]),
7939
- _: 1
7940
- }, 8, ["count"])
7941
- ]),
7942
- _: 1
7943
- }, 8, ["content"])) : oe("", !0),
7944
- r.filterCount > 0 ? (g(), G(_e, {
7945
- key: 2,
7946
- options: z.value,
7947
- onClick: x,
7948
- "overlay-class-name": "filter-dropdown"
7949
- }, {
7950
- default: l(() => [
7951
- a(W, {
7952
- theme: "primary",
7953
- size: r.size,
7954
- class: "margin-reset"
7955
- }, {
7956
- suffix: l(() => [
7957
- a(Z, { name: "chevron-down" })
7958
- ]),
7959
- default: l(() => [
7960
- o[14] || (o[14] = $(" 我的方案 ", -1))
7961
- ]),
7962
- _: 1
7963
- }, 8, ["size"])
7964
- ]),
7478
+ icon: r(() => [...u[15] || (u[15] = [
7479
+ s("i", { class: "ri-layout-column-line" }, null, -1)
7480
+ ])]),
7965
7481
  _: 1
7966
- }, 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
+ ])
7967
7567
  ]),
7968
- a(Ka, {
7969
- visible: L.value,
7970
- "onUpdate:visible": o[1] || (o[1] = (e) => L.value = e),
7971
- "field-options": r.fieldOptions,
7972
- "select-options": r.selectOptions,
7973
- "plan-filter-options": r.planFilterOptions,
7974
- "filter-cards": B.value,
7975
- "top-op": N.value,
7976
- size: r.size,
7977
- "person-tabs": r.personTabs,
7978
- "person-organizations": r.personOrganizations,
7979
- "visible-columns": r.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,
7980
7580
  width: "1000",
7981
- onConfirm: m,
7982
- onReset: F,
7983
- onDeletePlan: o[2] || (o[2] = (e) => f("delete-plan", e)),
7984
- onCopyPlan: o[3] || (o[3] = (e) => f("copy-plan", e)),
7985
- onSetDefaultPlan: o[4] || (o[4] = (e) => f("set-default-plan", e)),
7986
- onUpdatePlan: o[5] || (o[5] = (e) => f("update-plan", e)),
7987
- onLoadUsers: o[6] || (o[6] = (e) => f("load-users", e)),
7988
- onSearch: o[7] || (o[7] = (e) => f("search-persons", e)),
7989
- onDeptClick: o[8] || (o[8] = (e) => f("dept-click", e)),
7990
- 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))
7991
7591
  }, null, 8, ["visible", "field-options", "select-options", "plan-filter-options", "filter-cards", "top-op", "size", "person-tabs", "person-organizations", "visible-columns"]),
7992
- a(Oe, {
7993
- header: M.value,
7994
- visible: u.value,
7592
+ o(Oe, {
7593
+ header: $.value,
7594
+ visible: z.value,
7995
7595
  width: "600px",
7996
- onClose: V
7596
+ onClose: C
7997
7597
  }, {
7998
- body: l(() => [
7999
- s("div", vl, [
8000
- a(we, {
8001
- data: y.value,
7598
+ body: r(() => [
7599
+ s("div", Ya, [
7600
+ o(Fe, {
7601
+ data: h.value,
8002
7602
  "label-width": "100px"
8003
7603
  }, {
8004
- default: l(() => [
8005
- a(ze, {
7604
+ default: r(() => [
7605
+ o(ze, {
8006
7606
  label: "方案名称",
8007
7607
  required: ""
8008
7608
  }, {
8009
- default: l(() => [
8010
- a(ke, {
8011
- modelValue: y.value.name,
8012
- "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),
8013
7613
  placeholder: "请输入筛选方案名称"
8014
7614
  }, null, 8, ["modelValue"])
8015
7615
  ]),
@@ -8020,49 +7620,57 @@ ${v.map((A) => {
8020
7620
  }, 8, ["data"])
8021
7621
  ])
8022
7622
  ]),
8023
- footer: l(() => [
8024
- a(W, {
7623
+ footer: r(() => [
7624
+ o(M, {
8025
7625
  theme: "default",
8026
- onClick: V
7626
+ onClick: C
8027
7627
  }, {
8028
- default: l(() => [...o[15] || (o[15] = [
8029
- $("取消", -1)
7628
+ default: r(() => [...u[17] || (u[17] = [
7629
+ T("取消", -1)
8030
7630
  ])]),
8031
7631
  _: 1
8032
7632
  }),
8033
- a(W, {
7633
+ o(M, {
8034
7634
  theme: "primary",
8035
- onClick: E
7635
+ onClick: t
8036
7636
  }, {
8037
- default: l(() => [...o[16] || (o[16] = [
8038
- $("确定", -1)
7637
+ default: r(() => [...u[18] || (u[18] = [
7638
+ T("确定", -1)
8039
7639
  ])]),
8040
7640
  _: 1
8041
7641
  })
8042
7642
  ]),
8043
7643
  _: 1
8044
7644
  }, 8, ["header", "visible"]),
8045
- a(Pe, {
8046
- visible: K.value,
8047
- "onUpdate:visible": o[11] || (o[11] = (e) => K.value = e),
8048
- "field-options": r.fieldOptions,
8049
- size: r.size,
8050
- "initial-rules": _.value,
8051
- onConfirm: de,
8052
- onClear: ce,
8053
- 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
8054
7661
  }, null, 8, ["visible", "field-options", "size", "initial-rules"])
8055
7662
  ]);
8056
7663
  };
8057
7664
  }
8058
- }, pl = /* @__PURE__ */ me(fl, [["__scopeId", "data-v-eb153ff2"]]), Cl = (r) => {
8059
- r.component("FilterDialog", Ee), r.component("FilterComponent", Ee), r.component("CdFilterBar", pl), r.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);
8060
7667
  };
8061
7668
  export {
8062
- pl as CdFilterBar,
8063
- Pe as ColorFilterDialog,
8064
- Ee as FilterComponent,
8065
- Ee as FilterDialog,
8066
- Ee as default,
8067
- 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
8068
7676
  };