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