cd-vue-filter 2.3.8 → 2.3.9
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 +84 -76
- package/dist/cd-vue-filter.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cd-vue-filter.js
CHANGED
|
@@ -5611,7 +5611,7 @@ const Re = [
|
|
|
5611
5611
|
});
|
|
5612
5612
|
}, S = (f) => {
|
|
5613
5613
|
r.filterCondition.value = f, P("search", { ...r.filterCondition });
|
|
5614
|
-
},
|
|
5614
|
+
}, C = se(() => {
|
|
5615
5615
|
var F;
|
|
5616
5616
|
const f = r.filterCondition.field;
|
|
5617
5617
|
switch (((F = r.fieldOptions.find((J) => J.value === f)) == null ? void 0 : F.type) || "text") {
|
|
@@ -5710,7 +5710,8 @@ const Re = [
|
|
|
5710
5710
|
size: r.size,
|
|
5711
5711
|
style: { "min-width": "80px", "max-width": "110px" },
|
|
5712
5712
|
onChange: k,
|
|
5713
|
-
filterable: ""
|
|
5713
|
+
filterable: "",
|
|
5714
|
+
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5714
5715
|
}, {
|
|
5715
5716
|
default: l(() => [
|
|
5716
5717
|
(y(!0), A(Z, null, le(r.fieldOptions, ($) => (y(), j(F, {
|
|
@@ -5728,10 +5729,11 @@ const Re = [
|
|
|
5728
5729
|
size: r.size,
|
|
5729
5730
|
style: { width: "80px" },
|
|
5730
5731
|
clearable: "",
|
|
5731
|
-
onChange: Y
|
|
5732
|
+
onChange: Y,
|
|
5733
|
+
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5732
5734
|
}, {
|
|
5733
5735
|
default: l(() => [
|
|
5734
|
-
(y(!0), A(Z, null, le(
|
|
5736
|
+
(y(!0), A(Z, null, le(C.value, ($) => (y(), j(F, {
|
|
5735
5737
|
key: $.key,
|
|
5736
5738
|
label: $.label,
|
|
5737
5739
|
value: $.value
|
|
@@ -5762,7 +5764,7 @@ const Re = [
|
|
|
5762
5764
|
}, null, 8, ["modelValue", "size"])) : q(r.filterCondition.field) === "date" ? (y(), A(Z, { key: 2 }, [
|
|
5763
5765
|
o(r.filterCondition.operator) ? (y(), j(L, {
|
|
5764
5766
|
key: 1,
|
|
5765
|
-
value: (ie =
|
|
5767
|
+
value: (ie = C.value.find(($) => $.value === r.filterCondition.operator)) == null ? void 0 : ie.label,
|
|
5766
5768
|
disabled: "",
|
|
5767
5769
|
size: r.size,
|
|
5768
5770
|
style: { "min-width": "80px", "max-width": "120px" }
|
|
@@ -5774,7 +5776,8 @@ const Re = [
|
|
|
5774
5776
|
size: r.size,
|
|
5775
5777
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
5776
5778
|
onChange: B,
|
|
5777
|
-
clearable: ""
|
|
5779
|
+
clearable: "",
|
|
5780
|
+
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5778
5781
|
}, null, 8, ["modelValue", "size"]))
|
|
5779
5782
|
], 64)) : q(r.filterCondition.field) === "time" ? (y(), j(ae, {
|
|
5780
5783
|
key: 3,
|
|
@@ -5786,7 +5789,8 @@ const Re = [
|
|
|
5786
5789
|
"enable-time-picker": "",
|
|
5787
5790
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
5788
5791
|
onChange: B,
|
|
5789
|
-
clearable: ""
|
|
5792
|
+
clearable: "",
|
|
5793
|
+
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5790
5794
|
}, null, 8, ["modelValue", "size"])) : q(r.filterCondition.field) === "select" ? (y(), j(J, {
|
|
5791
5795
|
key: 4,
|
|
5792
5796
|
modelValue: r.filterCondition.value,
|
|
@@ -5796,7 +5800,8 @@ const Re = [
|
|
|
5796
5800
|
size: r.size,
|
|
5797
5801
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
5798
5802
|
onChange: B,
|
|
5799
|
-
clearable: ""
|
|
5803
|
+
clearable: "",
|
|
5804
|
+
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5800
5805
|
}, null, 8, ["modelValue", "options", "size"])) : q(r.filterCondition.field) === "selectProvince" ? (y(), j(Q, {
|
|
5801
5806
|
key: 5,
|
|
5802
5807
|
modelValue: r.filterCondition.value,
|
|
@@ -5807,7 +5812,8 @@ const Re = [
|
|
|
5807
5812
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
5808
5813
|
clearable: "",
|
|
5809
5814
|
loading: !1,
|
|
5810
|
-
onChange: S
|
|
5815
|
+
onChange: S,
|
|
5816
|
+
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5811
5817
|
}, null, 8, ["modelValue", "options", "size"])) : (y(), j(L, {
|
|
5812
5818
|
key: 6,
|
|
5813
5819
|
modelValue: r.filterCondition.value,
|
|
@@ -5816,7 +5822,8 @@ const Re = [
|
|
|
5816
5822
|
size: r.size,
|
|
5817
5823
|
style: { "min-width": "80px", "max-width": "100px" },
|
|
5818
5824
|
onChange: B,
|
|
5819
|
-
clearable: ""
|
|
5825
|
+
clearable: "",
|
|
5826
|
+
"suffix-icon": "search"
|
|
5820
5827
|
}, null, 8, ["modelValue", "size"]))
|
|
5821
5828
|
]);
|
|
5822
5829
|
};
|
|
@@ -5826,7 +5833,7 @@ const Re = [
|
|
|
5826
5833
|
for (const [v, o] of ee)
|
|
5827
5834
|
d[v] = o;
|
|
5828
5835
|
return d;
|
|
5829
|
-
}, xe = /* @__PURE__ */ ue(He, [["__scopeId", "data-v-
|
|
5836
|
+
}, xe = /* @__PURE__ */ ue(He, [["__scopeId", "data-v-18fdd1f4"]]), je = { class: "filter-dialog-content" }, Ye = { class: "leader-line-container" }, Ge = {
|
|
5830
5837
|
class: "filter-scroll-wrapper",
|
|
5831
5838
|
id: "filter-scroll-wrapper"
|
|
5832
5839
|
}, We = {
|
|
@@ -5892,10 +5899,10 @@ const Re = [
|
|
|
5892
5899
|
operator: "eq",
|
|
5893
5900
|
value: ""
|
|
5894
5901
|
});
|
|
5895
|
-
}, W = (S,
|
|
5902
|
+
}, W = (S, C) => {
|
|
5896
5903
|
if (S >= 0 && S < o.value.length) {
|
|
5897
5904
|
const k = o.value[S];
|
|
5898
|
-
k.conditions.length > 1 &&
|
|
5905
|
+
k.conditions.length > 1 && C >= 0 && C < k.conditions.length ? k.conditions.splice(C, 1) : k.conditions.length <= 1 && de.warning("每个卡片至少需要一个筛选条件");
|
|
5899
5906
|
}
|
|
5900
5907
|
}, q = (S) => {
|
|
5901
5908
|
o.value.length > 1 ? o.value.splice(S, 1) : de.warning("至少需要保留一个筛选卡片");
|
|
@@ -5907,13 +5914,13 @@ const Re = [
|
|
|
5907
5914
|
}, Y = () => {
|
|
5908
5915
|
v("close"), v("update:visible", !1);
|
|
5909
5916
|
};
|
|
5910
|
-
return (S,
|
|
5917
|
+
return (S, C) => {
|
|
5911
5918
|
const k = p("t-radio-button"), z = p("t-radio-group"), b = p("t-icon"), u = p("t-button"), f = p("t-dialog");
|
|
5912
5919
|
return y(), j(f, {
|
|
5913
5920
|
header: "筛选条件设置",
|
|
5914
5921
|
placement: "center",
|
|
5915
5922
|
visible: i.visible,
|
|
5916
|
-
"onUpdate:visible":
|
|
5923
|
+
"onUpdate:visible": C[1] || (C[1] = (c) => S.$emit("update:visible", c)),
|
|
5917
5924
|
width: "700px",
|
|
5918
5925
|
"z-index": 999,
|
|
5919
5926
|
footer: !0,
|
|
@@ -5930,18 +5937,18 @@ const Re = [
|
|
|
5930
5937
|
size: "small",
|
|
5931
5938
|
class: "connector-selector",
|
|
5932
5939
|
modelValue: D.value,
|
|
5933
|
-
"onUpdate:modelValue":
|
|
5940
|
+
"onUpdate:modelValue": C[0] || (C[0] = (c) => D.value = c),
|
|
5934
5941
|
style: { "margin-right": "20px" }
|
|
5935
5942
|
}, {
|
|
5936
5943
|
default: l(() => [
|
|
5937
5944
|
a(k, { value: "and" }, {
|
|
5938
|
-
default: l(() => [...
|
|
5945
|
+
default: l(() => [...C[2] || (C[2] = [
|
|
5939
5946
|
w("且", -1)
|
|
5940
5947
|
])]),
|
|
5941
5948
|
_: 1
|
|
5942
5949
|
}),
|
|
5943
5950
|
a(k, { value: "or" }, {
|
|
5944
|
-
default: l(() => [...
|
|
5951
|
+
default: l(() => [...C[3] || (C[3] = [
|
|
5945
5952
|
w("或", -1)
|
|
5946
5953
|
])]),
|
|
5947
5954
|
_: 1
|
|
@@ -5968,13 +5975,13 @@ const Re = [
|
|
|
5968
5975
|
}, {
|
|
5969
5976
|
default: l(() => [
|
|
5970
5977
|
a(k, { value: "and" }, {
|
|
5971
|
-
default: l(() => [...
|
|
5978
|
+
default: l(() => [...C[4] || (C[4] = [
|
|
5972
5979
|
w("且", -1)
|
|
5973
5980
|
])]),
|
|
5974
5981
|
_: 1
|
|
5975
5982
|
}),
|
|
5976
5983
|
a(k, { value: "or" }, {
|
|
5977
|
-
default: l(() => [...
|
|
5984
|
+
default: l(() => [...C[5] || (C[5] = [
|
|
5978
5985
|
w("或", -1)
|
|
5979
5986
|
])]),
|
|
5980
5987
|
_: 1
|
|
@@ -6031,7 +6038,7 @@ const Re = [
|
|
|
6031
6038
|
a(b, { name: "add" })
|
|
6032
6039
|
]),
|
|
6033
6040
|
default: l(() => [
|
|
6034
|
-
|
|
6041
|
+
C[6] || (C[6] = w(" 添加条件 ", -1))
|
|
6035
6042
|
]),
|
|
6036
6043
|
_: 1
|
|
6037
6044
|
}, 8, ["onClick"])
|
|
@@ -6044,7 +6051,7 @@ const Re = [
|
|
|
6044
6051
|
}, [
|
|
6045
6052
|
s("div", ta, [
|
|
6046
6053
|
a(b, { name: "add" }),
|
|
6047
|
-
|
|
6054
|
+
C[7] || (C[7] = s("span", null, "增加筛选卡片", -1))
|
|
6048
6055
|
])
|
|
6049
6056
|
])
|
|
6050
6057
|
])
|
|
@@ -6055,13 +6062,13 @@ const Re = [
|
|
|
6055
6062
|
]),
|
|
6056
6063
|
footer: l(() => [
|
|
6057
6064
|
s("div", na, [
|
|
6058
|
-
|
|
6065
|
+
C[10] || (C[10] = s("div", { class: "filter-dialog-footer2" }, null, -1)),
|
|
6059
6066
|
s("div", oa, [
|
|
6060
6067
|
a(u, {
|
|
6061
6068
|
theme: "default",
|
|
6062
6069
|
onClick: Y
|
|
6063
6070
|
}, {
|
|
6064
|
-
default: l(() => [...
|
|
6071
|
+
default: l(() => [...C[8] || (C[8] = [
|
|
6065
6072
|
w("取消", -1)
|
|
6066
6073
|
])]),
|
|
6067
6074
|
_: 1
|
|
@@ -6070,7 +6077,7 @@ const Re = [
|
|
|
6070
6077
|
theme: "primary",
|
|
6071
6078
|
onClick: B
|
|
6072
6079
|
}, {
|
|
6073
|
-
default: l(() => [...
|
|
6080
|
+
default: l(() => [...C[9] || (C[9] = [
|
|
6074
6081
|
w("确定", -1)
|
|
6075
6082
|
])]),
|
|
6076
6083
|
_: 1
|
|
@@ -6184,7 +6191,7 @@ const Re = [
|
|
|
6184
6191
|
shareType: o.value.shareType,
|
|
6185
6192
|
selectedUsers: o.value.selectedUsers
|
|
6186
6193
|
}), v("update:visible", !1);
|
|
6187
|
-
},
|
|
6194
|
+
}, C = () => {
|
|
6188
6195
|
v("close"), v("update:visible", !1);
|
|
6189
6196
|
};
|
|
6190
6197
|
return (k, z) => {
|
|
@@ -6196,7 +6203,7 @@ const Re = [
|
|
|
6196
6203
|
width: "600px",
|
|
6197
6204
|
footer: !0,
|
|
6198
6205
|
onConfirm: S,
|
|
6199
|
-
onClose:
|
|
6206
|
+
onClose: C
|
|
6200
6207
|
}, {
|
|
6201
6208
|
body: l(() => [
|
|
6202
6209
|
s("div", ra, [
|
|
@@ -6316,7 +6323,7 @@ const Re = [
|
|
|
6316
6323
|
footer: l(() => [
|
|
6317
6324
|
a(L, {
|
|
6318
6325
|
theme: "default",
|
|
6319
|
-
onClick:
|
|
6326
|
+
onClick: C
|
|
6320
6327
|
}, {
|
|
6321
6328
|
default: l(() => [...z[9] || (z[9] = [
|
|
6322
6329
|
w("取消", -1)
|
|
@@ -6346,7 +6353,7 @@ const Re = [
|
|
|
6346
6353
|
}, fa = { class: "filter-tab-content" }, pa = {
|
|
6347
6354
|
key: 0,
|
|
6348
6355
|
class: "filter-dialog-left"
|
|
6349
|
-
}, ya = { class: "connectors-container" }, ba = { class: "filter-cards" }, ga = { class: "filter-card-header" },
|
|
6356
|
+
}, ya = { class: "connectors-container" }, ba = { class: "filter-cards" }, ga = { class: "filter-card-header" }, ha = { class: "filter-card-header-left" }, Ca = { class: "filter-card-title" }, ka = { class: "filter-card-content" }, _a = { class: "filter-card-actions" }, za = { class: "add-card-content" }, Fa = { class: "column-settings-panel" }, Oa = { class: "column-title-row" }, wa = { class: "column-title column-title-show" }, Va = { class: "column-list" }, Sa = ["onDragstart", "onDragover", "onDrop"], $a = { class: "column-name" }, xa = { class: "column-show" }, Ua = { class: "column-freeze" }, Da = { class: "column-width" }, Ea = { class: "column-sort-buttons" }, Aa = { class: "filter-dialog-right" }, qa = { class: "filter-plan-list" }, Pa = ["onClick"], Ta = { class: "plan-name" }, Na = { class: "filter-dialog-footer-container" }, Ba = { class: "filter-dialog-footer-left" }, Ma = { class: "filter-dialog-footer-right" }, Ja = {
|
|
6350
6357
|
__name: "cd-filter",
|
|
6351
6358
|
props: {
|
|
6352
6359
|
visible: {
|
|
@@ -6419,7 +6426,7 @@ const Re = [
|
|
|
6419
6426
|
"column-change"
|
|
6420
6427
|
],
|
|
6421
6428
|
setup(i, { emit: ee }) {
|
|
6422
|
-
const d = i, v = ee, o = _(JSON.parse(JSON.stringify(d.filterCards))), D = _(d.topOp), X = _(null), r = _(!1), P = _([]), W = _("filter"), q = _(!1), B = _(""), Y = _("none"), S = _("specific"),
|
|
6429
|
+
const d = i, v = ee, o = _(JSON.parse(JSON.stringify(d.filterCards))), D = _(d.topOp), X = _(null), r = _(!1), P = _([]), W = _("filter"), q = _(!1), B = _(""), Y = _("none"), S = _("specific"), C = _([]), k = _(null);
|
|
6423
6430
|
let z = 100;
|
|
6424
6431
|
I(() => d.filterCards, (e) => {
|
|
6425
6432
|
o.value = JSON.parse(JSON.stringify(e));
|
|
@@ -6447,11 +6454,11 @@ const Re = [
|
|
|
6447
6454
|
}
|
|
6448
6455
|
}, F = (e) => e.map((t) => {
|
|
6449
6456
|
const O = t.conditions.filter((E) => E.field && E.field.trim() !== "").map((E) => {
|
|
6450
|
-
let
|
|
6451
|
-
return E.value !== null && E.value !== void 0 && (Array.isArray(E.value) ?
|
|
6457
|
+
let h = "";
|
|
6458
|
+
return E.value !== null && E.value !== void 0 && (Array.isArray(E.value) ? h = E.value.join("/") : h = String(E.value)), {
|
|
6452
6459
|
field: E.field.trim(),
|
|
6453
6460
|
operator: E.operator || "eq",
|
|
6454
|
-
value:
|
|
6461
|
+
value: h
|
|
6455
6462
|
};
|
|
6456
6463
|
});
|
|
6457
6464
|
return {
|
|
@@ -6470,20 +6477,20 @@ const Re = [
|
|
|
6470
6477
|
(U) => !t.includes(U.value)
|
|
6471
6478
|
);
|
|
6472
6479
|
n.value = [...O, ...E], re.value = G.value.length === d.fieldOptions.length;
|
|
6473
|
-
const
|
|
6474
|
-
v("column-change",
|
|
6480
|
+
const h = e.columns.filter((U) => U.show !== !1);
|
|
6481
|
+
v("column-change", h);
|
|
6475
6482
|
}
|
|
6476
6483
|
}, L = () => {
|
|
6477
|
-
q.value = !1, k.value = null, B.value = "", Y.value = "none", S.value = "specific",
|
|
6484
|
+
q.value = !1, k.value = null, B.value = "", Y.value = "none", S.value = "specific", C.value = [], r.value = !0;
|
|
6478
6485
|
}, ae = (e) => {
|
|
6479
6486
|
const t = n.value.map((O) => {
|
|
6480
|
-
const E = te.value[O.value],
|
|
6487
|
+
const E = te.value[O.value], h = m.value[O.value] || "none";
|
|
6481
6488
|
return {
|
|
6482
6489
|
value: O.value,
|
|
6483
6490
|
show: G.value.includes(O.value),
|
|
6484
6491
|
// 是否显示
|
|
6485
6492
|
width: E ? `${E}px` : "120px",
|
|
6486
|
-
fixed:
|
|
6493
|
+
fixed: h
|
|
6487
6494
|
// 冻结状态
|
|
6488
6495
|
};
|
|
6489
6496
|
});
|
|
@@ -6500,7 +6507,7 @@ const Re = [
|
|
|
6500
6507
|
columns: t
|
|
6501
6508
|
}), q.value = !1, k.value = null;
|
|
6502
6509
|
}, Q = (e) => {
|
|
6503
|
-
q.value = !0, k.value = e, B.value = e.content || "", Y.value = e.shareMode || "none", S.value = e.shareType || "specific",
|
|
6510
|
+
q.value = !0, k.value = e, B.value = e.content || "", Y.value = e.shareMode || "none", S.value = e.shareType || "specific", C.value = e.selectedUsers || [], r.value = !0;
|
|
6504
6511
|
}, ie = (e) => {
|
|
6505
6512
|
v("copy-plan", e);
|
|
6506
6513
|
}, $ = (e) => {
|
|
@@ -6541,19 +6548,19 @@ const Re = [
|
|
|
6541
6548
|
I(() => d.visibleColumns, (e) => {
|
|
6542
6549
|
if (te.value = {}, m.value = {}, e && e.length > 0) {
|
|
6543
6550
|
if (typeof e[0] == "object") {
|
|
6544
|
-
G.value = e.filter((
|
|
6545
|
-
|
|
6551
|
+
G.value = e.filter((h) => h.show !== !1).map((h) => h.value), e.forEach((h) => {
|
|
6552
|
+
h.width && (te.value[h.value] = parseInt(h.width)), h.fixed ? m.value[h.value] = h.fixed : m.value[h.value] = "none";
|
|
6546
6553
|
});
|
|
6547
|
-
const t = e.map((
|
|
6548
|
-
(
|
|
6554
|
+
const t = e.map((h) => h.value), O = t.map(
|
|
6555
|
+
(h) => d.fieldOptions.find((U) => U.value === h)
|
|
6549
6556
|
).filter(Boolean), E = d.fieldOptions.filter(
|
|
6550
|
-
(
|
|
6557
|
+
(h) => !t.includes(h.value)
|
|
6551
6558
|
);
|
|
6552
6559
|
n.value = [...O, ...E];
|
|
6553
6560
|
} else {
|
|
6554
6561
|
G.value = [...e];
|
|
6555
6562
|
const t = e.map(
|
|
6556
|
-
(E) => d.fieldOptions.find((
|
|
6563
|
+
(E) => d.fieldOptions.find((h) => h.value === E)
|
|
6557
6564
|
).filter(Boolean), O = d.fieldOptions.filter(
|
|
6558
6565
|
(E) => !e.includes(E.value)
|
|
6559
6566
|
);
|
|
@@ -6582,12 +6589,12 @@ const Re = [
|
|
|
6582
6589
|
const t = n.value[e];
|
|
6583
6590
|
n.value[e] = n.value[e - 1], n.value[e - 1] = t, n.value = [...n.value];
|
|
6584
6591
|
}
|
|
6585
|
-
},
|
|
6592
|
+
}, he = (e) => {
|
|
6586
6593
|
if (e < n.value.length - 1) {
|
|
6587
6594
|
const t = n.value[e];
|
|
6588
6595
|
n.value[e] = n.value[e + 1], n.value[e + 1] = t, n.value = [...n.value];
|
|
6589
6596
|
}
|
|
6590
|
-
},
|
|
6597
|
+
}, Ce = (e, t) => {
|
|
6591
6598
|
x.value = e, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/html", t.target.innerHTML);
|
|
6592
6599
|
}, ke = (e, t) => {
|
|
6593
6600
|
t.preventDefault(), t.dataTransfer.dropEffect = "move", V.value = e;
|
|
@@ -6598,8 +6605,8 @@ const Re = [
|
|
|
6598
6605
|
const O = x.value;
|
|
6599
6606
|
if (O === null || O === e)
|
|
6600
6607
|
return;
|
|
6601
|
-
const E = [...n.value],
|
|
6602
|
-
E.splice(O, 1), E.splice(e, 0,
|
|
6608
|
+
const E = [...n.value], h = E[O];
|
|
6609
|
+
E.splice(O, 1), E.splice(e, 0, h), n.value = E, x.value = null, V.value = null;
|
|
6603
6610
|
}, Fe = () => {
|
|
6604
6611
|
const e = n.value.filter((t) => G.value.includes(t.value)).map((t) => {
|
|
6605
6612
|
const O = te.value[t.value], E = m.value[t.value] || "none";
|
|
@@ -6616,11 +6623,12 @@ const Re = [
|
|
|
6616
6623
|
v("column-change", e);
|
|
6617
6624
|
};
|
|
6618
6625
|
return (e, t) => {
|
|
6619
|
-
const O = p("t-radio-button"), E = p("t-radio-group"),
|
|
6626
|
+
const O = p("t-radio-button"), E = p("t-radio-group"), h = p("t-icon"), U = p("t-button"), ve = p("t-tab-panel"), Ue = p("t-checkbox"), Oe = p("t-option"), qe = p("t-select"), Pe = p("t-input-number"), Te = p("t-tabs"), fe = p("t-tooltip"), Ne = p("t-dialog");
|
|
6620
6627
|
return y(), A(Z, null, [
|
|
6621
6628
|
a(Ne, {
|
|
6622
6629
|
header: "方案设置",
|
|
6623
6630
|
placement: "center",
|
|
6631
|
+
attach: "body",
|
|
6624
6632
|
visible: i.visible,
|
|
6625
6633
|
"onUpdate:visible": t[4] || (t[4] = (g) => e.$emit("update:visible", g)),
|
|
6626
6634
|
width: i.width,
|
|
@@ -6678,8 +6686,8 @@ const Re = [
|
|
|
6678
6686
|
class: "filter-card-item"
|
|
6679
6687
|
}, [
|
|
6680
6688
|
s("div", ga, [
|
|
6681
|
-
s("div",
|
|
6682
|
-
s("span",
|
|
6689
|
+
s("div", ha, [
|
|
6690
|
+
s("span", Ca, "筛选卡片 " + ce(K + 1), 1),
|
|
6683
6691
|
a(E, {
|
|
6684
6692
|
size: i.size,
|
|
6685
6693
|
modelValue: g.connector,
|
|
@@ -6711,7 +6719,7 @@ const Re = [
|
|
|
6711
6719
|
disabled: o.value.length === 1
|
|
6712
6720
|
}, {
|
|
6713
6721
|
icon: l(() => [
|
|
6714
|
-
a(
|
|
6722
|
+
a(h, { name: "close" })
|
|
6715
6723
|
]),
|
|
6716
6724
|
_: 1
|
|
6717
6725
|
}, 8, ["size", "onClick", "disabled"])
|
|
@@ -6735,7 +6743,7 @@ const Re = [
|
|
|
6735
6743
|
disabled: g.conditions.length === 1
|
|
6736
6744
|
}, {
|
|
6737
6745
|
icon: l(() => [
|
|
6738
|
-
a(
|
|
6746
|
+
a(h, { name: "minus" })
|
|
6739
6747
|
]),
|
|
6740
6748
|
_: 1
|
|
6741
6749
|
}, 8, ["size", "onClick", "disabled"])
|
|
@@ -6747,7 +6755,7 @@ const Re = [
|
|
|
6747
6755
|
onClick: (M) => f(K)
|
|
6748
6756
|
}, {
|
|
6749
6757
|
icon: l(() => [
|
|
6750
|
-
a(
|
|
6758
|
+
a(h, { name: "add" })
|
|
6751
6759
|
]),
|
|
6752
6760
|
default: l(() => [
|
|
6753
6761
|
t[10] || (t[10] = w(" 添加条件 ", -1))
|
|
@@ -6762,7 +6770,7 @@ const Re = [
|
|
|
6762
6770
|
onClick: b
|
|
6763
6771
|
}, [
|
|
6764
6772
|
s("div", za, [
|
|
6765
|
-
a(
|
|
6773
|
+
a(h, { name: "add" }),
|
|
6766
6774
|
t[11] || (t[11] = s("span", null, "增加筛选卡片", -1))
|
|
6767
6775
|
])
|
|
6768
6776
|
])
|
|
@@ -6796,13 +6804,13 @@ const Re = [
|
|
|
6796
6804
|
key: g.value,
|
|
6797
6805
|
class: Se(["column-item-row", { dragging: x.value === K }]),
|
|
6798
6806
|
draggable: "true",
|
|
6799
|
-
onDragstart: (M) =>
|
|
6807
|
+
onDragstart: (M) => Ce(K, M),
|
|
6800
6808
|
onDragover: (M) => ke(K, M),
|
|
6801
6809
|
onDragend: _e,
|
|
6802
6810
|
onDrop: (M) => ze(K, M)
|
|
6803
6811
|
}, [
|
|
6804
6812
|
s("div", $a, [
|
|
6805
|
-
a(
|
|
6813
|
+
a(h, {
|
|
6806
6814
|
name: "move",
|
|
6807
6815
|
style: { cursor: "move", color: "#999", "margin-right": "8px" }
|
|
6808
6816
|
}),
|
|
@@ -6859,7 +6867,7 @@ const Re = [
|
|
|
6859
6867
|
disabled: K === 0
|
|
6860
6868
|
}, {
|
|
6861
6869
|
icon: l(() => [
|
|
6862
|
-
a(
|
|
6870
|
+
a(h, {
|
|
6863
6871
|
name: "chevron-up",
|
|
6864
6872
|
style: { color: "#f60" }
|
|
6865
6873
|
})
|
|
@@ -6870,11 +6878,11 @@ const Re = [
|
|
|
6870
6878
|
theme: "default",
|
|
6871
6879
|
variant: "text",
|
|
6872
6880
|
size: "small",
|
|
6873
|
-
onClick: (M) =>
|
|
6881
|
+
onClick: (M) => he(K),
|
|
6874
6882
|
disabled: K === n.value.length - 1
|
|
6875
6883
|
}, {
|
|
6876
6884
|
icon: l(() => [
|
|
6877
|
-
a(
|
|
6885
|
+
a(h, {
|
|
6878
6886
|
name: "chevron-down",
|
|
6879
6887
|
style: { color: "#f60" }
|
|
6880
6888
|
})
|
|
@@ -6902,7 +6910,7 @@ const Re = [
|
|
|
6902
6910
|
class: Se(["filter-plan-item", { active: ((K = X.value) == null ? void 0 : K.value) === g.value }]),
|
|
6903
6911
|
onClick: (M) => J(g)
|
|
6904
6912
|
}, [
|
|
6905
|
-
a(
|
|
6913
|
+
a(h, {
|
|
6906
6914
|
name: "file-text",
|
|
6907
6915
|
class: "plan-icon"
|
|
6908
6916
|
}),
|
|
@@ -6925,7 +6933,7 @@ const Re = [
|
|
|
6925
6933
|
disabled: !g.value || g.value === "empty"
|
|
6926
6934
|
}, {
|
|
6927
6935
|
icon: l(() => [
|
|
6928
|
-
a(
|
|
6936
|
+
a(h, {
|
|
6929
6937
|
name: "edit",
|
|
6930
6938
|
style: { color: "#0052d9" }
|
|
6931
6939
|
})
|
|
@@ -6948,7 +6956,7 @@ const Re = [
|
|
|
6948
6956
|
disabled: !g.value || g.value === "empty"
|
|
6949
6957
|
}, {
|
|
6950
6958
|
icon: l(() => [
|
|
6951
|
-
a(
|
|
6959
|
+
a(h, {
|
|
6952
6960
|
name: g.isDefault ? "check-circle-filled" : "check-circle",
|
|
6953
6961
|
style: $e({ color: g.isDefault ? "#0052d9" : "#bbb" })
|
|
6954
6962
|
}, null, 8, ["name", "style"])
|
|
@@ -6971,7 +6979,7 @@ const Re = [
|
|
|
6971
6979
|
disabled: !g.value || g.value === "empty"
|
|
6972
6980
|
}, {
|
|
6973
6981
|
icon: l(() => [
|
|
6974
|
-
a(
|
|
6982
|
+
a(h, {
|
|
6975
6983
|
name: "file-copy",
|
|
6976
6984
|
style: { color: "#ff9800" }
|
|
6977
6985
|
})
|
|
@@ -6994,7 +7002,7 @@ const Re = [
|
|
|
6994
7002
|
disabled: !g.value || g.value === "empty"
|
|
6995
7003
|
}, {
|
|
6996
7004
|
icon: l(() => [
|
|
6997
|
-
a(
|
|
7005
|
+
a(h, {
|
|
6998
7006
|
name: "delete",
|
|
6999
7007
|
style: { color: "#0052d9" }
|
|
7000
7008
|
})
|
|
@@ -7022,7 +7030,7 @@ const Re = [
|
|
|
7022
7030
|
onClick: L
|
|
7023
7031
|
}, {
|
|
7024
7032
|
icon: l(() => [
|
|
7025
|
-
a(
|
|
7033
|
+
a(h, { name: "save" })
|
|
7026
7034
|
]),
|
|
7027
7035
|
default: l(() => [
|
|
7028
7036
|
t[18] || (t[18] = w(" 保存方案 ", -1))
|
|
@@ -7063,7 +7071,7 @@ const Re = [
|
|
|
7063
7071
|
"plan-name": B.value,
|
|
7064
7072
|
"original-share-mode": Y.value,
|
|
7065
7073
|
"original-share-type": S.value,
|
|
7066
|
-
"original-selected-users":
|
|
7074
|
+
"original-selected-users": C.value,
|
|
7067
7075
|
tabs: i.personTabs,
|
|
7068
7076
|
organizations: i.personOrganizations,
|
|
7069
7077
|
"dept-members-data-prop": P.value,
|
|
@@ -7075,7 +7083,7 @@ const Re = [
|
|
|
7075
7083
|
], 64);
|
|
7076
7084
|
};
|
|
7077
7085
|
}
|
|
7078
|
-
}, Ra = /* @__PURE__ */ ue(Ja, [["__scopeId", "data-v-
|
|
7086
|
+
}, Ra = /* @__PURE__ */ ue(Ja, [["__scopeId", "data-v-f1072cd9"]]), La = { class: "dialog-header" }, Ha = { class: "color-filter-dialog" }, ja = { class: "color-filter-rules" }, Ya = { class: "rule-content" }, Ga = { class: "rule-color-section" }, Wa = { class: "color-block-wrapper" }, Ka = {
|
|
7079
7087
|
key: 0,
|
|
7080
7088
|
class: "bold-indicator"
|
|
7081
7089
|
}, 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 = {
|
|
@@ -7172,7 +7180,7 @@ const Re = [
|
|
|
7172
7180
|
o.value = !1;
|
|
7173
7181
|
}, S = () => {
|
|
7174
7182
|
v("clear"), o.value = !1;
|
|
7175
|
-
},
|
|
7183
|
+
}, C = () => {
|
|
7176
7184
|
const b = P.value.filter(
|
|
7177
7185
|
(u) => u.field && u.operator && u.value
|
|
7178
7186
|
).map((u) => ({
|
|
@@ -7390,7 +7398,7 @@ const Re = [
|
|
|
7390
7398
|
a(f, {
|
|
7391
7399
|
theme: "primary",
|
|
7392
7400
|
size: i.size,
|
|
7393
|
-
onClick:
|
|
7401
|
+
onClick: C
|
|
7394
7402
|
}, {
|
|
7395
7403
|
default: l(() => [...u[12] || (u[12] = [
|
|
7396
7404
|
w("确定", -1)
|
|
@@ -7474,7 +7482,7 @@ const Re = [
|
|
|
7474
7482
|
o.value = Array.from({ length: d.filterCount }, () => D());
|
|
7475
7483
|
}, P = _("保存筛选方案"), W = _(!1), q = _(d.topOp), B = _(JSON.parse(JSON.stringify(d.filterCards)));
|
|
7476
7484
|
I(() => d.topOp, (m) => q.value = m), I(() => d.filterCards, (m) => B.value = JSON.parse(JSON.stringify(m)));
|
|
7477
|
-
const Y = _(null), S = _(""),
|
|
7485
|
+
const Y = _(null), S = _(""), C = se(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), k = (m) => {
|
|
7478
7486
|
const n = d.planFilterOptions.find((x) => x.value === m);
|
|
7479
7487
|
n && z(n);
|
|
7480
7488
|
}, z = (m) => {
|
|
@@ -7612,7 +7620,7 @@ ${m.map((x) => {
|
|
|
7612
7620
|
notContains: "不包含"
|
|
7613
7621
|
})[m] || m;
|
|
7614
7622
|
return (m, n) => {
|
|
7615
|
-
const x = p("t-radio-button"), V = p("t-radio-group"), H = p("t-icon"), R = p("t-button"), ge = p("t-badge"),
|
|
7623
|
+
const x = p("t-radio-button"), V = p("t-radio-group"), H = p("t-icon"), R = p("t-button"), ge = p("t-badge"), he = p("t-tooltip"), Ce = p("t-dropdown"), ke = p("t-input"), _e = p("t-form-item"), ze = p("t-form"), Fe = p("t-dialog");
|
|
7616
7624
|
return y(), A("div", nl, [
|
|
7617
7625
|
i.filterCount > 0 ? (y(), A("div", ol, [
|
|
7618
7626
|
(y(!0), A(Z, null, le(o.value, (e, t) => (y(), j(xe, {
|
|
@@ -7672,7 +7680,7 @@ ${m.map((x) => {
|
|
|
7672
7680
|
]),
|
|
7673
7681
|
_: 1
|
|
7674
7682
|
}, 8, ["size"])) : ne("", !0),
|
|
7675
|
-
i.filterCount > 0 ? (y(), j(
|
|
7683
|
+
i.filterCount > 0 ? (y(), j(he, {
|
|
7676
7684
|
key: 1,
|
|
7677
7685
|
content: re.value,
|
|
7678
7686
|
placement: "top"
|
|
@@ -7699,9 +7707,9 @@ ${m.map((x) => {
|
|
|
7699
7707
|
]),
|
|
7700
7708
|
_: 1
|
|
7701
7709
|
}, 8, ["content"])) : ne("", !0),
|
|
7702
|
-
i.filterCount > 0 ? (y(), j(
|
|
7710
|
+
i.filterCount > 0 ? (y(), j(Ce, {
|
|
7703
7711
|
key: 2,
|
|
7704
|
-
options:
|
|
7712
|
+
options: C.value,
|
|
7705
7713
|
onClick: z,
|
|
7706
7714
|
"overlay-class-name": "filter-dropdown"
|
|
7707
7715
|
}, {
|