cd-vue-filter 2.4.0 → 2.4.1

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