cd-vue-filter 2.4.12 → 2.4.13
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 +898 -879
- package/dist/cd-vue-filter.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cd-vue-filter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as be, ref as _, watch as
|
|
2
|
-
import { MessagePlugin as
|
|
1
|
+
import { defineComponent as be, ref as _, watch as Y, resolveComponent as z, openBlock as h, createBlock as M, withCtx as u, createElementVNode as i, createVNode as n, createTextVNode as N, createCommentVNode as Q, computed as ae, createElementBlock as P, Fragment as W, renderList as Z, nextTick as re, toDisplayString as ue, normalizeStyle as ce, normalizeClass as se, renderSlot as me, withModifiers as $e, withDirectives as Se, vShow as xe } from "vue";
|
|
2
|
+
import { MessagePlugin as de } from "tdesign-vue-next";
|
|
3
3
|
const Ve = [
|
|
4
4
|
{
|
|
5
5
|
name: "北京市",
|
|
@@ -5527,7 +5527,7 @@ const Ve = [
|
|
|
5527
5527
|
}
|
|
5528
5528
|
]
|
|
5529
5529
|
}
|
|
5530
|
-
],
|
|
5530
|
+
], De = { class: "relation-select-dialog" }, Ae = { class: "search-bar" }, pe = 20, Ee = /* @__PURE__ */ be({
|
|
5531
5531
|
__name: "RelationSelectDialog",
|
|
5532
5532
|
props: {
|
|
5533
5533
|
visible: { type: Boolean },
|
|
@@ -5537,61 +5537,61 @@ const Ve = [
|
|
|
5537
5537
|
dialogTitle: {}
|
|
5538
5538
|
},
|
|
5539
5539
|
emits: ["update:visible", "select"],
|
|
5540
|
-
setup(
|
|
5541
|
-
const
|
|
5542
|
-
function
|
|
5543
|
-
|
|
5540
|
+
setup(d, { emit: G }) {
|
|
5541
|
+
const s = d, C = G, m = _(""), A = _(!1), R = _([]), e = _([]), x = _(0), J = _(1), B = _([]), U = _(null), j = _([]), $ = /* @__PURE__ */ new Map();
|
|
5542
|
+
function w() {
|
|
5543
|
+
C("update:visible", !1), T();
|
|
5544
5544
|
}
|
|
5545
|
-
function
|
|
5546
|
-
m.value = "",
|
|
5545
|
+
function T() {
|
|
5546
|
+
m.value = "", J.value = 1, B.value = [], U.value = null, R.value = [];
|
|
5547
5547
|
}
|
|
5548
|
-
function
|
|
5548
|
+
function I(a, v) {
|
|
5549
5549
|
if (a.length > 0) {
|
|
5550
5550
|
const g = a[a.length - 1];
|
|
5551
|
-
|
|
5551
|
+
B.value = [g], U.value = R.value.find((l) => l.id === g) || null;
|
|
5552
5552
|
} else
|
|
5553
|
-
|
|
5553
|
+
B.value = [], U.value = null;
|
|
5554
5554
|
}
|
|
5555
5555
|
function E() {
|
|
5556
|
-
if (!
|
|
5557
|
-
const a =
|
|
5558
|
-
let
|
|
5559
|
-
const g =
|
|
5560
|
-
if (g === "basic" || g === "tree" ?
|
|
5561
|
-
const l =
|
|
5562
|
-
|
|
5556
|
+
if (!U.value) return;
|
|
5557
|
+
const a = U.value;
|
|
5558
|
+
let v = "";
|
|
5559
|
+
const g = s.formType || (s.fieldType === "billdata" ? "form" : "basic");
|
|
5560
|
+
if (g === "basic" || g === "tree" ? v = a.fname || "" : v = a.fbillno || "", !v && j.value.length > 0) {
|
|
5561
|
+
const l = j.value[0];
|
|
5562
|
+
v = a[l.__vModel__] || "";
|
|
5563
5563
|
}
|
|
5564
|
-
|
|
5564
|
+
C("select", { id: a.id, displayName: v }), C("update:visible", !1), T();
|
|
5565
5565
|
}
|
|
5566
5566
|
function c(a) {
|
|
5567
|
-
const
|
|
5567
|
+
const v = [];
|
|
5568
5568
|
for (const g of a) {
|
|
5569
5569
|
if (!g) continue;
|
|
5570
5570
|
const l = g.__config__ || {};
|
|
5571
|
-
l.noShow || l.jnpfKey === "divider" || l.jnpfKey === "table" || l.jnpfKey === "vxeSubGrid" || (l.children && Array.isArray(l.children) ?
|
|
5571
|
+
l.noShow || l.jnpfKey === "divider" || l.jnpfKey === "table" || l.jnpfKey === "vxeSubGrid" || (l.children && Array.isArray(l.children) ? v.push(...c(l.children)) : v.push(g));
|
|
5572
5572
|
}
|
|
5573
|
-
return
|
|
5573
|
+
return v;
|
|
5574
5574
|
}
|
|
5575
5575
|
async function f() {
|
|
5576
5576
|
var a;
|
|
5577
|
-
if (
|
|
5578
|
-
if (
|
|
5579
|
-
const
|
|
5580
|
-
|
|
5577
|
+
if (s.releaseId) {
|
|
5578
|
+
if ($.has(s.releaseId)) {
|
|
5579
|
+
const v = $.get(s.releaseId);
|
|
5580
|
+
j.value = v.fields, e.value = v.columns;
|
|
5581
5581
|
return;
|
|
5582
5582
|
}
|
|
5583
5583
|
try {
|
|
5584
|
-
const g = await (await fetch(`/api/visualdev/OnlineDev/${
|
|
5584
|
+
const g = await (await fetch(`/api/visualdev/OnlineDev/${s.releaseId}/Config`, {
|
|
5585
5585
|
credentials: "include"
|
|
5586
5586
|
})).json(), l = (a = g.data) != null && a.formData ? JSON.parse(g.data.formData) : null;
|
|
5587
5587
|
if (!(l != null && l.fields)) return;
|
|
5588
5588
|
const t = c(l.fields);
|
|
5589
|
-
|
|
5590
|
-
const y = t.slice(0, 6).map((
|
|
5591
|
-
var
|
|
5589
|
+
j.value = t;
|
|
5590
|
+
const y = t.slice(0, 6).map((O) => {
|
|
5591
|
+
var k;
|
|
5592
5592
|
return {
|
|
5593
|
-
colKey:
|
|
5594
|
-
title: ((
|
|
5593
|
+
colKey: O.__vModel__,
|
|
5594
|
+
title: ((k = O.__config__) == null ? void 0 : k.label) || O.__vModel__,
|
|
5595
5595
|
ellipsis: !0,
|
|
5596
5596
|
width: 140
|
|
5597
5597
|
};
|
|
@@ -5599,35 +5599,35 @@ const Ve = [
|
|
|
5599
5599
|
e.value = [
|
|
5600
5600
|
{ colKey: "row-select", type: "single", width: 50 },
|
|
5601
5601
|
...y
|
|
5602
|
-
],
|
|
5603
|
-
} catch (
|
|
5604
|
-
console.error("[RelationSelectDialog] fetchConfig error:",
|
|
5602
|
+
], $.set(s.releaseId, { fields: t, columns: e.value });
|
|
5603
|
+
} catch (v) {
|
|
5604
|
+
console.error("[RelationSelectDialog] fetchConfig error:", v);
|
|
5605
5605
|
}
|
|
5606
5606
|
}
|
|
5607
5607
|
}
|
|
5608
|
-
async function
|
|
5609
|
-
var a,
|
|
5610
|
-
if (
|
|
5608
|
+
async function o() {
|
|
5609
|
+
var a, v, g;
|
|
5610
|
+
if (s.releaseId) {
|
|
5611
5611
|
A.value = !0;
|
|
5612
5612
|
try {
|
|
5613
|
-
const l = { currentPage:
|
|
5613
|
+
const l = { currentPage: J.value, pageSize: pe };
|
|
5614
5614
|
m.value.trim() && (l.keyword = m.value.trim());
|
|
5615
|
-
const y = await (await fetch(`/api/visualdev/OnlineDev/list/${
|
|
5615
|
+
const y = await (await fetch(`/api/visualdev/OnlineDev/list/${s.releaseId}`, {
|
|
5616
5616
|
method: "POST",
|
|
5617
5617
|
credentials: "include",
|
|
5618
5618
|
headers: { "Content-Type": "application/json" },
|
|
5619
5619
|
body: JSON.stringify(l)
|
|
5620
|
-
})).json(),
|
|
5621
|
-
|
|
5622
|
-
const
|
|
5623
|
-
if (
|
|
5620
|
+
})).json(), O = ((a = y.data) == null ? void 0 : a.list) || [];
|
|
5621
|
+
R.value = O.map((k) => {
|
|
5622
|
+
const H = { id: k.id };
|
|
5623
|
+
if (k.data)
|
|
5624
5624
|
try {
|
|
5625
|
-
const
|
|
5626
|
-
Object.assign(
|
|
5625
|
+
const X = typeof k.data == "string" ? JSON.parse(k.data) : k.data;
|
|
5626
|
+
Object.assign(H, X);
|
|
5627
5627
|
} catch {
|
|
5628
5628
|
}
|
|
5629
|
-
return Object.assign(
|
|
5630
|
-
}),
|
|
5629
|
+
return Object.assign(H, k), H;
|
|
5630
|
+
}), x.value = ((g = (v = y.data) == null ? void 0 : v.pagination) == null ? void 0 : g.total) || 0;
|
|
5631
5631
|
} catch (l) {
|
|
5632
5632
|
console.error("[RelationSelectDialog] fetchData error:", l);
|
|
5633
5633
|
} finally {
|
|
@@ -5635,84 +5635,84 @@ const Ve = [
|
|
|
5635
5635
|
}
|
|
5636
5636
|
}
|
|
5637
5637
|
}
|
|
5638
|
-
function
|
|
5639
|
-
|
|
5638
|
+
function q() {
|
|
5639
|
+
J.value = 1, o();
|
|
5640
5640
|
}
|
|
5641
|
-
function
|
|
5642
|
-
|
|
5641
|
+
function p(a) {
|
|
5642
|
+
J.value = a, o();
|
|
5643
5643
|
}
|
|
5644
|
-
return
|
|
5645
|
-
a &&
|
|
5646
|
-
}), (a,
|
|
5647
|
-
const g =
|
|
5648
|
-
return
|
|
5649
|
-
visible:
|
|
5650
|
-
header:
|
|
5644
|
+
return Y(() => s.visible, (a) => {
|
|
5645
|
+
a && s.releaseId && f().then(() => o());
|
|
5646
|
+
}), (a, v) => {
|
|
5647
|
+
const g = z("t-input"), l = z("t-button"), t = z("t-table"), y = z("t-pagination"), O = z("t-dialog");
|
|
5648
|
+
return h(), M(O, {
|
|
5649
|
+
visible: d.visible,
|
|
5650
|
+
header: d.dialogTitle || "选择关联数据",
|
|
5651
5651
|
width: 900,
|
|
5652
5652
|
footer: !0,
|
|
5653
|
-
onClose:
|
|
5653
|
+
onClose: w,
|
|
5654
5654
|
onConfirm: E,
|
|
5655
5655
|
attach: ".cd-form-select-modal",
|
|
5656
5656
|
"close-on-overlay-click": !1
|
|
5657
5657
|
}, {
|
|
5658
|
-
default:
|
|
5659
|
-
i("div",
|
|
5660
|
-
i("div",
|
|
5661
|
-
|
|
5658
|
+
default: u(() => [
|
|
5659
|
+
i("div", De, [
|
|
5660
|
+
i("div", Ae, [
|
|
5661
|
+
n(g, {
|
|
5662
5662
|
modelValue: m.value,
|
|
5663
|
-
"onUpdate:modelValue":
|
|
5663
|
+
"onUpdate:modelValue": v[0] || (v[0] = (k) => m.value = k),
|
|
5664
5664
|
placeholder: "请输入关键字搜索",
|
|
5665
5665
|
clearable: "",
|
|
5666
|
-
onEnter:
|
|
5666
|
+
onEnter: q,
|
|
5667
5667
|
style: { width: "260px" }
|
|
5668
5668
|
}, null, 8, ["modelValue"]),
|
|
5669
|
-
|
|
5669
|
+
n(l, {
|
|
5670
5670
|
theme: "primary",
|
|
5671
|
-
onClick:
|
|
5671
|
+
onClick: q
|
|
5672
5672
|
}, {
|
|
5673
|
-
icon:
|
|
5673
|
+
icon: u(() => [...v[2] || (v[2] = [
|
|
5674
5674
|
i("i", { class: "ri-search-line" }, null, -1)
|
|
5675
5675
|
])]),
|
|
5676
|
-
default:
|
|
5677
|
-
|
|
5676
|
+
default: u(() => [
|
|
5677
|
+
v[3] || (v[3] = N(" 搜索 ", -1))
|
|
5678
5678
|
]),
|
|
5679
5679
|
_: 1
|
|
5680
5680
|
})
|
|
5681
5681
|
]),
|
|
5682
|
-
|
|
5683
|
-
data:
|
|
5682
|
+
n(t, {
|
|
5683
|
+
data: R.value,
|
|
5684
5684
|
columns: e.value,
|
|
5685
5685
|
loading: A.value,
|
|
5686
5686
|
"row-key": "id",
|
|
5687
|
-
"selected-row-keys":
|
|
5688
|
-
onSelectChange:
|
|
5687
|
+
"selected-row-keys": B.value,
|
|
5688
|
+
onSelectChange: I,
|
|
5689
5689
|
"max-height": 400,
|
|
5690
5690
|
size: "small",
|
|
5691
5691
|
style: { "margin-top": "12px" }
|
|
5692
5692
|
}, null, 8, ["data", "columns", "loading", "selected-row-keys"]),
|
|
5693
|
-
|
|
5693
|
+
x.value > 0 ? (h(), M(y, {
|
|
5694
5694
|
key: 0,
|
|
5695
|
-
current:
|
|
5696
|
-
"onUpdate:current":
|
|
5697
|
-
total:
|
|
5695
|
+
current: J.value,
|
|
5696
|
+
"onUpdate:current": v[1] || (v[1] = (k) => J.value = k),
|
|
5697
|
+
total: x.value,
|
|
5698
5698
|
"page-size": pe,
|
|
5699
5699
|
"show-jumper": !0,
|
|
5700
5700
|
size: "small",
|
|
5701
5701
|
style: { "margin-top": "12px", "text-align": "right" },
|
|
5702
|
-
onCurrentChange:
|
|
5703
|
-
}, null, 8, ["current", "total"])) :
|
|
5702
|
+
onCurrentChange: p
|
|
5703
|
+
}, null, 8, ["current", "total"])) : Q("", !0)
|
|
5704
5704
|
])
|
|
5705
5705
|
]),
|
|
5706
5706
|
_: 1
|
|
5707
5707
|
}, 8, ["visible", "header"]);
|
|
5708
5708
|
};
|
|
5709
5709
|
}
|
|
5710
|
-
}),
|
|
5711
|
-
const
|
|
5712
|
-
for (const [
|
|
5713
|
-
|
|
5714
|
-
return
|
|
5715
|
-
},
|
|
5710
|
+
}), le = (d, G) => {
|
|
5711
|
+
const s = d.__vccOpts || d;
|
|
5712
|
+
for (const [C, m] of G)
|
|
5713
|
+
s[C] = m;
|
|
5714
|
+
return s;
|
|
5715
|
+
}, qe = /* @__PURE__ */ le(Ee, [["__scopeId", "data-v-de9d6482"]]), Ue = { class: "filter-component" }, Te = /* @__PURE__ */ be({
|
|
5716
5716
|
__name: "FilterComponent",
|
|
5717
5717
|
props: {
|
|
5718
5718
|
fieldOptions: {},
|
|
@@ -5721,9 +5721,9 @@ const Ve = [
|
|
|
5721
5721
|
size: {}
|
|
5722
5722
|
},
|
|
5723
5723
|
emits: ["search"],
|
|
5724
|
-
setup(
|
|
5725
|
-
var a,
|
|
5726
|
-
const
|
|
5724
|
+
setup(d, { emit: G }) {
|
|
5725
|
+
var a, v, g;
|
|
5726
|
+
const s = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], C = ae(() => Ve.map((l) => s.includes(l.name) ? {
|
|
5727
5727
|
label: l.name,
|
|
5728
5728
|
value: l.name,
|
|
5729
5729
|
children: l.city[0].area.map((t) => ({
|
|
@@ -5764,51 +5764,51 @@ const Ve = [
|
|
|
5764
5764
|
(y) => y.columnName === l
|
|
5765
5765
|
);
|
|
5766
5766
|
if (t && t.value)
|
|
5767
|
-
return
|
|
5767
|
+
return R(t.value.map((y) => ({
|
|
5768
5768
|
label: y,
|
|
5769
5769
|
value: y
|
|
5770
5770
|
})));
|
|
5771
5771
|
}
|
|
5772
5772
|
return [];
|
|
5773
5773
|
};
|
|
5774
|
-
function
|
|
5774
|
+
function R(l) {
|
|
5775
5775
|
return [...l].sort((t, y) => t.value.localeCompare(y.value, "zh-CN"));
|
|
5776
5776
|
}
|
|
5777
|
-
const e =
|
|
5777
|
+
const e = d, x = G, J = _({
|
|
5778
5778
|
field: ((a = e.filterCondition) == null ? void 0 : a.field) || "",
|
|
5779
|
-
operator: ((
|
|
5779
|
+
operator: ((v = e.filterCondition) == null ? void 0 : v.operator) || "eq",
|
|
5780
5780
|
value: ((g = e.filterCondition) == null ? void 0 : g.value) || null
|
|
5781
5781
|
});
|
|
5782
|
-
|
|
5783
|
-
l && (
|
|
5782
|
+
Y(() => e.filterCondition, (l) => {
|
|
5783
|
+
l && (J.value = { ...l });
|
|
5784
5784
|
}, { deep: !0 });
|
|
5785
|
-
const
|
|
5785
|
+
const B = (l) => {
|
|
5786
5786
|
const t = e.fieldOptions.find((y) => y.value === l);
|
|
5787
5787
|
return t ? t.type : "text";
|
|
5788
|
-
},
|
|
5789
|
-
typeof e.filterCondition.value == "string" && (e.filterCondition.value = e.filterCondition.value.trim()),
|
|
5790
|
-
|
|
5788
|
+
}, U = () => {
|
|
5789
|
+
typeof e.filterCondition.value == "string" && (e.filterCondition.value = e.filterCondition.value.trim()), re(() => {
|
|
5790
|
+
x("search", { ...e.filterCondition });
|
|
5791
5791
|
});
|
|
5792
|
-
},
|
|
5793
|
-
(e.filterCondition.operator === "is_empty" || e.filterCondition.operator === "is_not_empty") && (e.filterCondition.value = null),
|
|
5794
|
-
|
|
5792
|
+
}, j = () => {
|
|
5793
|
+
(e.filterCondition.operator === "is_empty" || e.filterCondition.operator === "is_not_empty") && (e.filterCondition.value = null), re(() => {
|
|
5794
|
+
x("search", { ...e.filterCondition });
|
|
5795
5795
|
});
|
|
5796
|
-
},
|
|
5797
|
-
e.filterCondition.value = l,
|
|
5798
|
-
},
|
|
5796
|
+
}, $ = (l) => {
|
|
5797
|
+
e.filterCondition.value = l, x("search", { ...e.filterCondition });
|
|
5798
|
+
}, w = _(!1), T = _(null), I = _("basedata"), E = (l) => {
|
|
5799
5799
|
const t = e.fieldOptions.find((y) => y.value === l);
|
|
5800
5800
|
return !!t && (t.type === "basedata" || t.type === "billdata") && !!t.relationConfig;
|
|
5801
5801
|
}, c = (l) => l === "is_empty" || l === "is_not_empty", f = (l) => {
|
|
5802
5802
|
const t = e.fieldOptions.find((y) => y.value === l);
|
|
5803
|
-
t != null && t.relationConfig && (
|
|
5804
|
-
},
|
|
5805
|
-
e.filterCondition.value = l.displayName,
|
|
5806
|
-
|
|
5803
|
+
t != null && t.relationConfig && (T.value = t.relationConfig, I.value = t.type === "billdata" ? "billdata" : "basedata", w.value = !0);
|
|
5804
|
+
}, o = (l) => {
|
|
5805
|
+
e.filterCondition.value = l.displayName, re(() => {
|
|
5806
|
+
x("search", { ...e.filterCondition });
|
|
5807
5807
|
});
|
|
5808
|
-
},
|
|
5808
|
+
}, q = ae(() => {
|
|
5809
5809
|
var y;
|
|
5810
5810
|
const l = e.filterCondition.field;
|
|
5811
|
-
switch (((y = e.fieldOptions.find((
|
|
5811
|
+
switch (((y = e.fieldOptions.find((O) => O.value === l)) == null ? void 0 : y.type) || "text") {
|
|
5812
5812
|
case "number":
|
|
5813
5813
|
return [
|
|
5814
5814
|
{ key: "eq", label: "等于", value: "eq" },
|
|
@@ -5894,188 +5894,188 @@ const Ve = [
|
|
|
5894
5894
|
{ key: "not_contains_with_empty", label: "不包含(含空)", value: "not_contains_with_empty" }
|
|
5895
5895
|
];
|
|
5896
5896
|
}
|
|
5897
|
-
}),
|
|
5898
|
-
|
|
5899
|
-
|
|
5897
|
+
}), p = () => {
|
|
5898
|
+
re(() => {
|
|
5899
|
+
x("search", { ...e.filterCondition });
|
|
5900
5900
|
});
|
|
5901
5901
|
};
|
|
5902
|
-
return
|
|
5902
|
+
return Y(() => e.filterCondition.field, (l, t) => {
|
|
5903
5903
|
l && t && (e.filterCondition.operator = "eq", e.filterCondition.value = null);
|
|
5904
5904
|
}), (l, t) => {
|
|
5905
|
-
var
|
|
5906
|
-
const y =
|
|
5907
|
-
return
|
|
5908
|
-
|
|
5905
|
+
var ee, ne, oe, ie;
|
|
5906
|
+
const y = z("t-option"), O = z("t-select"), k = z("t-input"), H = z("t-date-picker"), X = z("t-cascader");
|
|
5907
|
+
return h(), P("div", Ue, [
|
|
5908
|
+
n(O, {
|
|
5909
5909
|
modelValue: e.filterCondition.field,
|
|
5910
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
5910
|
+
"onUpdate:modelValue": t[0] || (t[0] = (V) => e.filterCondition.field = V),
|
|
5911
5911
|
placeholder: "请选择字段",
|
|
5912
5912
|
size: e.size,
|
|
5913
5913
|
style: { "min-width": "80px", "max-width": "110px" },
|
|
5914
|
-
onChange:
|
|
5914
|
+
onChange: p,
|
|
5915
5915
|
filterable: "",
|
|
5916
5916
|
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5917
5917
|
}, {
|
|
5918
|
-
default:
|
|
5919
|
-
(
|
|
5920
|
-
key:
|
|
5921
|
-
label:
|
|
5922
|
-
value:
|
|
5918
|
+
default: u(() => [
|
|
5919
|
+
(h(!0), P(W, null, Z(e.fieldOptions, (V) => (h(), M(y, {
|
|
5920
|
+
key: V.key,
|
|
5921
|
+
label: V.key,
|
|
5922
|
+
value: V.value
|
|
5923
5923
|
}, null, 8, ["label", "value"]))), 128))
|
|
5924
5924
|
]),
|
|
5925
5925
|
_: 1
|
|
5926
5926
|
}, 8, ["modelValue", "size"]),
|
|
5927
|
-
|
|
5927
|
+
n(O, {
|
|
5928
5928
|
modelValue: e.filterCondition.operator,
|
|
5929
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
5929
|
+
"onUpdate:modelValue": t[1] || (t[1] = (V) => e.filterCondition.operator = V),
|
|
5930
5930
|
placeholder: "请选择条件",
|
|
5931
5931
|
size: e.size,
|
|
5932
5932
|
style: { width: "80px" },
|
|
5933
5933
|
clearable: "",
|
|
5934
|
-
onChange:
|
|
5934
|
+
onChange: j,
|
|
5935
5935
|
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5936
5936
|
}, {
|
|
5937
|
-
default:
|
|
5938
|
-
(
|
|
5939
|
-
key:
|
|
5940
|
-
label:
|
|
5941
|
-
value:
|
|
5937
|
+
default: u(() => [
|
|
5938
|
+
(h(!0), P(W, null, Z(q.value, (V) => (h(), M(y, {
|
|
5939
|
+
key: V.key,
|
|
5940
|
+
label: V.label,
|
|
5941
|
+
value: V.value
|
|
5942
5942
|
}, null, 8, ["label", "value"]))), 128))
|
|
5943
5943
|
]),
|
|
5944
5944
|
_: 1
|
|
5945
5945
|
}, 8, ["modelValue", "size"]),
|
|
5946
|
-
|
|
5946
|
+
B(e.filterCondition.field) === "number" ? (h(), M(k, {
|
|
5947
5947
|
key: 0,
|
|
5948
5948
|
type: "number",
|
|
5949
5949
|
modelValue: e.filterCondition.value,
|
|
5950
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
5950
|
+
"onUpdate:modelValue": t[2] || (t[2] = (V) => e.filterCondition.value = V),
|
|
5951
5951
|
placeholder: "请输入数字",
|
|
5952
5952
|
size: e.size,
|
|
5953
5953
|
style: { width: "80px" },
|
|
5954
|
-
onChange:
|
|
5954
|
+
onChange: U,
|
|
5955
5955
|
clearable: ""
|
|
5956
|
-
}, null, 8, ["modelValue", "size"])) :
|
|
5956
|
+
}, null, 8, ["modelValue", "size"])) : B(e.filterCondition.field) === "money" ? (h(), M(k, {
|
|
5957
5957
|
key: 1,
|
|
5958
5958
|
type: "number",
|
|
5959
5959
|
modelValue: e.filterCondition.value,
|
|
5960
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
5960
|
+
"onUpdate:modelValue": t[3] || (t[3] = (V) => e.filterCondition.value = V),
|
|
5961
5961
|
placeholder: "请输入金额",
|
|
5962
5962
|
size: e.size,
|
|
5963
5963
|
style: { width: "80px" },
|
|
5964
|
-
onChange:
|
|
5964
|
+
onChange: U,
|
|
5965
5965
|
clearable: ""
|
|
5966
|
-
}, null, 8, ["modelValue", "size"])) :
|
|
5967
|
-
m(e.filterCondition.operator) ? (
|
|
5966
|
+
}, null, 8, ["modelValue", "size"])) : B(e.filterCondition.field) === "date" ? (h(), P(W, { key: 2 }, [
|
|
5967
|
+
m(e.filterCondition.operator) ? (h(), M(k, {
|
|
5968
5968
|
key: 1,
|
|
5969
|
-
value: (
|
|
5969
|
+
value: (ee = q.value.find((V) => V.value === e.filterCondition.operator)) == null ? void 0 : ee.label,
|
|
5970
5970
|
disabled: "",
|
|
5971
5971
|
size: e.size,
|
|
5972
5972
|
style: { "min-width": "80px", "max-width": "120px" }
|
|
5973
|
-
}, null, 8, ["value", "size"])) : (
|
|
5973
|
+
}, null, 8, ["value", "size"])) : (h(), M(H, {
|
|
5974
5974
|
key: 0,
|
|
5975
5975
|
modelValue: e.filterCondition.value,
|
|
5976
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
5976
|
+
"onUpdate:modelValue": t[4] || (t[4] = (V) => e.filterCondition.value = V),
|
|
5977
5977
|
placeholder: "请选择日期",
|
|
5978
5978
|
size: e.size,
|
|
5979
5979
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
5980
|
-
onChange:
|
|
5980
|
+
onChange: U,
|
|
5981
5981
|
clearable: "",
|
|
5982
5982
|
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5983
5983
|
}, null, 8, ["modelValue", "size"]))
|
|
5984
|
-
], 64)) :
|
|
5984
|
+
], 64)) : B(e.filterCondition.field) === "time" ? (h(), M(H, {
|
|
5985
5985
|
key: 3,
|
|
5986
5986
|
modelValue: e.filterCondition.value,
|
|
5987
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
5987
|
+
"onUpdate:modelValue": t[5] || (t[5] = (V) => e.filterCondition.value = V),
|
|
5988
5988
|
placeholder: "请选择日期时间",
|
|
5989
5989
|
size: e.size,
|
|
5990
5990
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
5991
5991
|
"enable-time-picker": "",
|
|
5992
5992
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
5993
|
-
onChange:
|
|
5993
|
+
onChange: U,
|
|
5994
5994
|
clearable: "",
|
|
5995
5995
|
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5996
|
-
}, null, 8, ["modelValue", "size"])) :
|
|
5996
|
+
}, null, 8, ["modelValue", "size"])) : B(e.filterCondition.field) === "select" ? (h(), M(O, {
|
|
5997
5997
|
key: 4,
|
|
5998
5998
|
modelValue: e.filterCondition.value,
|
|
5999
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
5999
|
+
"onUpdate:modelValue": t[6] || (t[6] = (V) => e.filterCondition.value = V),
|
|
6000
6000
|
options: A(e.filterCondition.field),
|
|
6001
6001
|
placeholder: "请选择",
|
|
6002
6002
|
size: e.size,
|
|
6003
6003
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
6004
|
-
onChange:
|
|
6004
|
+
onChange: U,
|
|
6005
6005
|
clearable: "",
|
|
6006
6006
|
"popup-props": { attach: ".cd-form-select-modal" }
|
|
6007
|
-
}, null, 8, ["modelValue", "options", "size"])) :
|
|
6007
|
+
}, null, 8, ["modelValue", "options", "size"])) : B(e.filterCondition.field) === "selectProvince" ? (h(), M(X, {
|
|
6008
6008
|
key: 5,
|
|
6009
6009
|
modelValue: e.filterCondition.value,
|
|
6010
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
6011
|
-
options:
|
|
6010
|
+
"onUpdate:modelValue": t[7] || (t[7] = (V) => e.filterCondition.value = V),
|
|
6011
|
+
options: C.value,
|
|
6012
6012
|
placeholder: "请选择地区",
|
|
6013
6013
|
size: e.size,
|
|
6014
6014
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
6015
6015
|
clearable: "",
|
|
6016
6016
|
loading: !1,
|
|
6017
|
-
onChange:
|
|
6017
|
+
onChange: $,
|
|
6018
6018
|
"popup-props": { attach: ".cd-form-select-modal" }
|
|
6019
|
-
}, null, 8, ["modelValue", "options", "size"])) : E(e.filterCondition.field) ? (
|
|
6020
|
-
c(e.filterCondition.operator) ?
|
|
6019
|
+
}, null, 8, ["modelValue", "options", "size"])) : E(e.filterCondition.field) ? (h(), P(W, { key: 6 }, [
|
|
6020
|
+
c(e.filterCondition.operator) ? Q("", !0) : (h(), M(k, {
|
|
6021
6021
|
key: 0,
|
|
6022
6022
|
modelValue: e.filterCondition.value,
|
|
6023
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
6023
|
+
"onUpdate:modelValue": t[9] || (t[9] = (V) => e.filterCondition.value = V),
|
|
6024
6024
|
placeholder: "请选择",
|
|
6025
6025
|
readonly: "",
|
|
6026
6026
|
size: e.size,
|
|
6027
6027
|
style: { "min-width": "80px", "max-width": "100px" },
|
|
6028
|
-
onChange:
|
|
6028
|
+
onChange: U,
|
|
6029
6029
|
clearable: ""
|
|
6030
6030
|
}, {
|
|
6031
|
-
suffixIcon:
|
|
6031
|
+
suffixIcon: u(() => [
|
|
6032
6032
|
i("i", {
|
|
6033
6033
|
class: "ri-search-line",
|
|
6034
6034
|
style: { cursor: "pointer" },
|
|
6035
|
-
onClick: t[8] || (t[8] = (
|
|
6035
|
+
onClick: t[8] || (t[8] = (V) => f(e.filterCondition.field))
|
|
6036
6036
|
})
|
|
6037
6037
|
]),
|
|
6038
6038
|
_: 1
|
|
6039
6039
|
}, 8, ["modelValue", "size"])),
|
|
6040
|
-
|
|
6041
|
-
visible:
|
|
6042
|
-
"onUpdate:visible": t[10] || (t[10] = (
|
|
6043
|
-
"release-id": ((
|
|
6044
|
-
"field-type":
|
|
6045
|
-
"form-type": (
|
|
6046
|
-
"dialog-title": (
|
|
6047
|
-
onSelect:
|
|
6040
|
+
n(qe, {
|
|
6041
|
+
visible: w.value,
|
|
6042
|
+
"onUpdate:visible": t[10] || (t[10] = (V) => w.value = V),
|
|
6043
|
+
"release-id": ((ne = T.value) == null ? void 0 : ne.releaseId) || "",
|
|
6044
|
+
"field-type": I.value,
|
|
6045
|
+
"form-type": (oe = T.value) == null ? void 0 : oe.formType,
|
|
6046
|
+
"dialog-title": (ie = T.value) == null ? void 0 : ie.dialogTitle,
|
|
6047
|
+
onSelect: o
|
|
6048
6048
|
}, null, 8, ["visible", "release-id", "field-type", "form-type", "dialog-title"])
|
|
6049
|
-
], 64)) : (
|
|
6050
|
-
e.filterCondition.operator !== "is_empty" && e.filterCondition.operator !== "is_not_empty" ? (
|
|
6049
|
+
], 64)) : (h(), P(W, { key: 7 }, [
|
|
6050
|
+
e.filterCondition.operator !== "is_empty" && e.filterCondition.operator !== "is_not_empty" ? (h(), M(k, {
|
|
6051
6051
|
key: 0,
|
|
6052
6052
|
modelValue: e.filterCondition.value,
|
|
6053
|
-
"onUpdate:modelValue": t[11] || (t[11] = (
|
|
6053
|
+
"onUpdate:modelValue": t[11] || (t[11] = (V) => e.filterCondition.value = V),
|
|
6054
6054
|
placeholder: "请输入关键字",
|
|
6055
6055
|
size: e.size,
|
|
6056
6056
|
style: { "min-width": "80px", "max-width": "100px" },
|
|
6057
|
-
onChange:
|
|
6057
|
+
onChange: U,
|
|
6058
6058
|
clearable: ""
|
|
6059
6059
|
}, {
|
|
6060
|
-
suffixIcon:
|
|
6060
|
+
suffixIcon: u(() => [...t[12] || (t[12] = [
|
|
6061
6061
|
i("i", { class: "ri-search-line" }, null, -1)
|
|
6062
6062
|
])]),
|
|
6063
6063
|
_: 1
|
|
6064
|
-
}, 8, ["modelValue", "size"])) :
|
|
6064
|
+
}, 8, ["modelValue", "size"])) : Q("", !0)
|
|
6065
6065
|
], 64))
|
|
6066
6066
|
]);
|
|
6067
6067
|
};
|
|
6068
6068
|
}
|
|
6069
|
-
}),
|
|
6069
|
+
}), fe = /* @__PURE__ */ le(Te, [["__scopeId", "data-v-fc381421"]]), Ne = { class: "filter-dialog-content" }, Pe = { class: "leader-line-container" }, Be = {
|
|
6070
6070
|
class: "filter-scroll-wrapper",
|
|
6071
6071
|
id: "filter-scroll-wrapper"
|
|
6072
|
-
},
|
|
6072
|
+
}, Re = {
|
|
6073
6073
|
key: 0,
|
|
6074
6074
|
class: "filter-dialog-left"
|
|
6075
|
-
},
|
|
6075
|
+
}, Je = { class: "connectors-container" }, je = {
|
|
6076
6076
|
class: "filter-dialog-middle",
|
|
6077
6077
|
id: "filter-dialog-middle"
|
|
6078
|
-
},
|
|
6078
|
+
}, Me = { class: "filter-cards" }, Ie = { class: "filter-card-header" }, He = { style: { display: "flex", "align-items": "center", "flex-direction": "row" } }, Ke = { class: "filter-card-title" }, Le = { class: "filter-card-content" }, Ye = { class: "filter-card-actions" }, Ge = { class: "add-card-content" }, We = { class: "filter-dialog-footer1" }, Qe = { class: "filter-dialog-footer" }, Xe = {
|
|
6079
6079
|
__name: "filterDialog",
|
|
6080
6080
|
props: {
|
|
6081
6081
|
visible: {
|
|
@@ -6104,8 +6104,8 @@ const Ve = [
|
|
|
6104
6104
|
"submit",
|
|
6105
6105
|
"close"
|
|
6106
6106
|
],
|
|
6107
|
-
setup(
|
|
6108
|
-
const
|
|
6107
|
+
setup(d, { emit: G }) {
|
|
6108
|
+
const s = d, C = G, m = _([
|
|
6109
6109
|
{
|
|
6110
6110
|
id: 1,
|
|
6111
6111
|
connector: "and",
|
|
@@ -6114,75 +6114,75 @@ const Ve = [
|
|
|
6114
6114
|
]
|
|
6115
6115
|
}
|
|
6116
6116
|
]), A = _("and");
|
|
6117
|
-
let
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
}, { immediate: !0, deep: !0 }),
|
|
6121
|
-
|
|
6117
|
+
let R = 3;
|
|
6118
|
+
Y(() => s.initialFilterCards, ($) => {
|
|
6119
|
+
$ && $.length > 0 && (m.value = $);
|
|
6120
|
+
}, { immediate: !0, deep: !0 }), Y(() => s.initialType1, ($) => {
|
|
6121
|
+
$ && (A.value = $);
|
|
6122
6122
|
}, { immediate: !0 });
|
|
6123
6123
|
const e = () => {
|
|
6124
6124
|
m.value.push({
|
|
6125
|
-
id:
|
|
6125
|
+
id: R++,
|
|
6126
6126
|
connector: "and",
|
|
6127
6127
|
conditions: [{ field: "", operator: "eq", value: "" }]
|
|
6128
6128
|
});
|
|
6129
|
-
},
|
|
6130
|
-
|
|
6129
|
+
}, x = ($) => {
|
|
6130
|
+
$ >= 0 && $ < m.value.length && m.value[$].conditions.push({
|
|
6131
6131
|
field: "",
|
|
6132
6132
|
operator: "eq",
|
|
6133
6133
|
value: ""
|
|
6134
6134
|
});
|
|
6135
|
-
},
|
|
6136
|
-
if (
|
|
6137
|
-
const
|
|
6138
|
-
|
|
6135
|
+
}, J = ($, w) => {
|
|
6136
|
+
if ($ >= 0 && $ < m.value.length) {
|
|
6137
|
+
const T = m.value[$];
|
|
6138
|
+
T.conditions.length > 1 && w >= 0 && w < T.conditions.length ? T.conditions.splice(w, 1) : T.conditions.length <= 1 && de.warning("每个卡片至少需要一个筛选条件");
|
|
6139
6139
|
}
|
|
6140
|
-
},
|
|
6141
|
-
m.value.length > 1 ? m.value.splice(
|
|
6142
|
-
},
|
|
6143
|
-
|
|
6140
|
+
}, B = ($) => {
|
|
6141
|
+
m.value.length > 1 ? m.value.splice($, 1) : de.warning("至少需要保留一个筛选卡片");
|
|
6142
|
+
}, U = () => {
|
|
6143
|
+
C("submit", {
|
|
6144
6144
|
filterCards: m.value,
|
|
6145
6145
|
type1: A.value
|
|
6146
6146
|
});
|
|
6147
|
-
},
|
|
6148
|
-
|
|
6147
|
+
}, j = () => {
|
|
6148
|
+
C("close"), C("update:visible", !1);
|
|
6149
6149
|
};
|
|
6150
|
-
return (w
|
|
6151
|
-
const
|
|
6152
|
-
return
|
|
6150
|
+
return ($, w) => {
|
|
6151
|
+
const T = z("t-radio-button"), I = z("t-radio-group"), E = z("t-icon"), c = z("t-button"), f = z("t-dialog");
|
|
6152
|
+
return h(), M(f, {
|
|
6153
6153
|
header: "筛选条件设置",
|
|
6154
6154
|
placement: "center",
|
|
6155
|
-
visible:
|
|
6156
|
-
"onUpdate:visible":
|
|
6155
|
+
visible: d.visible,
|
|
6156
|
+
"onUpdate:visible": w[1] || (w[1] = (o) => $.$emit("update:visible", o)),
|
|
6157
6157
|
width: "700px",
|
|
6158
6158
|
"z-index": 999,
|
|
6159
6159
|
footer: !0,
|
|
6160
|
-
onClose:
|
|
6160
|
+
onClose: j,
|
|
6161
6161
|
id: "leader-line-clip-container"
|
|
6162
6162
|
}, {
|
|
6163
|
-
body:
|
|
6164
|
-
i("div",
|
|
6165
|
-
i("div",
|
|
6163
|
+
body: u(() => [
|
|
6164
|
+
i("div", Ne, [
|
|
6165
|
+
i("div", Pe, [
|
|
6166
6166
|
i("div", Be, [
|
|
6167
|
-
m.value.length > 1 ? (
|
|
6168
|
-
i("div",
|
|
6169
|
-
|
|
6167
|
+
m.value.length > 1 ? (h(), P("div", Re, [
|
|
6168
|
+
i("div", Je, [
|
|
6169
|
+
n(I, {
|
|
6170
6170
|
size: "small",
|
|
6171
6171
|
class: "connector-selector",
|
|
6172
6172
|
modelValue: A.value,
|
|
6173
|
-
"onUpdate:modelValue":
|
|
6173
|
+
"onUpdate:modelValue": w[0] || (w[0] = (o) => A.value = o),
|
|
6174
6174
|
style: { "margin-right": "20px" }
|
|
6175
6175
|
}, {
|
|
6176
|
-
default:
|
|
6177
|
-
|
|
6178
|
-
default:
|
|
6179
|
-
|
|
6176
|
+
default: u(() => [
|
|
6177
|
+
n(T, { value: "and" }, {
|
|
6178
|
+
default: u(() => [...w[2] || (w[2] = [
|
|
6179
|
+
N("且", -1)
|
|
6180
6180
|
])]),
|
|
6181
6181
|
_: 1
|
|
6182
6182
|
}),
|
|
6183
|
-
|
|
6184
|
-
default:
|
|
6185
|
-
|
|
6183
|
+
n(T, { value: "or" }, {
|
|
6184
|
+
default: u(() => [...w[3] || (w[3] = [
|
|
6185
|
+
N("或", -1)
|
|
6186
6186
|
])]),
|
|
6187
6187
|
_: 1
|
|
6188
6188
|
})
|
|
@@ -6190,32 +6190,32 @@ const Ve = [
|
|
|
6190
6190
|
_: 1
|
|
6191
6191
|
}, 8, ["modelValue"])
|
|
6192
6192
|
])
|
|
6193
|
-
])) :
|
|
6194
|
-
i("div",
|
|
6195
|
-
i("div",
|
|
6196
|
-
(
|
|
6197
|
-
key:
|
|
6193
|
+
])) : Q("", !0),
|
|
6194
|
+
i("div", je, [
|
|
6195
|
+
i("div", Me, [
|
|
6196
|
+
(h(!0), P(W, null, Z(m.value, (o, q) => (h(), P("div", {
|
|
6197
|
+
key: o.id,
|
|
6198
6198
|
class: "filter-card-item"
|
|
6199
6199
|
}, [
|
|
6200
|
-
i("div",
|
|
6201
|
-
i("div",
|
|
6202
|
-
i("span", Ke, "筛选卡片 " +
|
|
6203
|
-
|
|
6200
|
+
i("div", Ie, [
|
|
6201
|
+
i("div", He, [
|
|
6202
|
+
i("span", Ke, "筛选卡片 " + ue(q + 1), 1),
|
|
6203
|
+
n(I, {
|
|
6204
6204
|
size: "small",
|
|
6205
|
-
modelValue:
|
|
6206
|
-
"onUpdate:modelValue": (
|
|
6205
|
+
modelValue: o.connector,
|
|
6206
|
+
"onUpdate:modelValue": (p) => o.connector = p,
|
|
6207
6207
|
class: "connector-selector"
|
|
6208
6208
|
}, {
|
|
6209
|
-
default:
|
|
6210
|
-
|
|
6211
|
-
default:
|
|
6212
|
-
|
|
6209
|
+
default: u(() => [
|
|
6210
|
+
n(T, { value: "and" }, {
|
|
6211
|
+
default: u(() => [...w[4] || (w[4] = [
|
|
6212
|
+
N("且", -1)
|
|
6213
6213
|
])]),
|
|
6214
6214
|
_: 1
|
|
6215
6215
|
}),
|
|
6216
|
-
|
|
6217
|
-
default:
|
|
6218
|
-
|
|
6216
|
+
n(T, { value: "or" }, {
|
|
6217
|
+
default: u(() => [...w[5] || (w[5] = [
|
|
6218
|
+
N("或", -1)
|
|
6219
6219
|
])]),
|
|
6220
6220
|
_: 1
|
|
6221
6221
|
})
|
|
@@ -6223,55 +6223,55 @@ const Ve = [
|
|
|
6223
6223
|
_: 1
|
|
6224
6224
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
6225
6225
|
]),
|
|
6226
|
-
|
|
6226
|
+
n(c, {
|
|
6227
6227
|
theme: "default",
|
|
6228
6228
|
variant: "text",
|
|
6229
6229
|
size: "small",
|
|
6230
|
-
onClick: (
|
|
6230
|
+
onClick: (p) => B(q),
|
|
6231
6231
|
disabled: m.value.length === 1
|
|
6232
6232
|
}, {
|
|
6233
|
-
icon:
|
|
6234
|
-
|
|
6233
|
+
icon: u(() => [
|
|
6234
|
+
n(E, { name: "close" })
|
|
6235
6235
|
]),
|
|
6236
6236
|
_: 1
|
|
6237
6237
|
}, 8, ["onClick", "disabled"])
|
|
6238
6238
|
]),
|
|
6239
|
-
i("div",
|
|
6240
|
-
(
|
|
6239
|
+
i("div", Le, [
|
|
6240
|
+
(h(!0), P(W, null, Z(o.conditions, (p, a) => (h(), P("div", {
|
|
6241
6241
|
key: a,
|
|
6242
6242
|
class: "filter-combination"
|
|
6243
6243
|
}, [
|
|
6244
|
-
|
|
6245
|
-
"field-options":
|
|
6246
|
-
"filter-condition":
|
|
6244
|
+
n(fe, {
|
|
6245
|
+
"field-options": d.fieldOptions,
|
|
6246
|
+
"filter-condition": o.conditions[a],
|
|
6247
6247
|
index: a,
|
|
6248
6248
|
"select-options": [],
|
|
6249
|
-
size:
|
|
6249
|
+
size: d.size
|
|
6250
6250
|
}, null, 8, ["field-options", "filter-condition", "index", "size"]),
|
|
6251
|
-
|
|
6251
|
+
n(c, {
|
|
6252
6252
|
theme: "default",
|
|
6253
6253
|
variant: "text",
|
|
6254
6254
|
size: "small",
|
|
6255
|
-
onClick: (
|
|
6256
|
-
disabled:
|
|
6255
|
+
onClick: (v) => J(q, a),
|
|
6256
|
+
disabled: o.conditions.length === 1
|
|
6257
6257
|
}, {
|
|
6258
|
-
icon:
|
|
6259
|
-
|
|
6258
|
+
icon: u(() => [
|
|
6259
|
+
n(E, { name: "minus" })
|
|
6260
6260
|
]),
|
|
6261
6261
|
_: 1
|
|
6262
6262
|
}, 8, ["onClick", "disabled"])
|
|
6263
6263
|
]))), 128)),
|
|
6264
|
-
i("div",
|
|
6265
|
-
|
|
6264
|
+
i("div", Ye, [
|
|
6265
|
+
n(c, {
|
|
6266
6266
|
theme: "default",
|
|
6267
6267
|
size: "small",
|
|
6268
|
-
onClick: (
|
|
6268
|
+
onClick: (p) => x(q)
|
|
6269
6269
|
}, {
|
|
6270
|
-
icon:
|
|
6271
|
-
|
|
6270
|
+
icon: u(() => [
|
|
6271
|
+
n(E, { name: "add" })
|
|
6272
6272
|
]),
|
|
6273
|
-
default:
|
|
6274
|
-
|
|
6273
|
+
default: u(() => [
|
|
6274
|
+
w[6] || (w[6] = N(" 添加条件 ", -1))
|
|
6275
6275
|
]),
|
|
6276
6276
|
_: 1
|
|
6277
6277
|
}, 8, ["onClick"])
|
|
@@ -6282,9 +6282,9 @@ const Ve = [
|
|
|
6282
6282
|
class: "add-filter-card",
|
|
6283
6283
|
onClick: e
|
|
6284
6284
|
}, [
|
|
6285
|
-
i("div",
|
|
6286
|
-
|
|
6287
|
-
|
|
6285
|
+
i("div", Ge, [
|
|
6286
|
+
n(E, { name: "add" }),
|
|
6287
|
+
w[7] || (w[7] = i("span", null, "增加筛选卡片", -1))
|
|
6288
6288
|
])
|
|
6289
6289
|
])
|
|
6290
6290
|
])
|
|
@@ -6293,25 +6293,25 @@ const Ve = [
|
|
|
6293
6293
|
])
|
|
6294
6294
|
])
|
|
6295
6295
|
]),
|
|
6296
|
-
footer:
|
|
6297
|
-
i("div",
|
|
6298
|
-
|
|
6299
|
-
i("div",
|
|
6300
|
-
|
|
6296
|
+
footer: u(() => [
|
|
6297
|
+
i("div", We, [
|
|
6298
|
+
w[10] || (w[10] = i("div", { class: "filter-dialog-footer2" }, null, -1)),
|
|
6299
|
+
i("div", Qe, [
|
|
6300
|
+
n(c, {
|
|
6301
6301
|
theme: "default",
|
|
6302
|
-
onClick:
|
|
6302
|
+
onClick: j
|
|
6303
6303
|
}, {
|
|
6304
|
-
default:
|
|
6305
|
-
|
|
6304
|
+
default: u(() => [...w[8] || (w[8] = [
|
|
6305
|
+
N("取消", -1)
|
|
6306
6306
|
])]),
|
|
6307
6307
|
_: 1
|
|
6308
6308
|
}),
|
|
6309
|
-
|
|
6309
|
+
n(c, {
|
|
6310
6310
|
theme: "primary",
|
|
6311
|
-
onClick:
|
|
6311
|
+
onClick: U
|
|
6312
6312
|
}, {
|
|
6313
|
-
default:
|
|
6314
|
-
|
|
6313
|
+
default: u(() => [...w[9] || (w[9] = [
|
|
6314
|
+
N("确定", -1)
|
|
6315
6315
|
])]),
|
|
6316
6316
|
_: 1
|
|
6317
6317
|
})
|
|
@@ -6322,16 +6322,16 @@ const Ve = [
|
|
|
6322
6322
|
}, 8, ["visible"]);
|
|
6323
6323
|
};
|
|
6324
6324
|
}
|
|
6325
|
-
}, ye = /* @__PURE__ */
|
|
6325
|
+
}, ye = /* @__PURE__ */ le(Xe, [["__scopeId", "data-v-92f16808"]]), Ze = { class: "filter-dialog-content" }, ea = { class: "leader-line-container" }, aa = {
|
|
6326
6326
|
class: "filter-scroll-wrapper",
|
|
6327
6327
|
id: "filter-scroll-wrapper"
|
|
6328
|
-
},
|
|
6328
|
+
}, la = {
|
|
6329
6329
|
class: "filter-dialog-middle",
|
|
6330
6330
|
id: "filter-dialog-middle"
|
|
6331
|
-
},
|
|
6331
|
+
}, ta = { class: "filter-tab-content" }, na = {
|
|
6332
6332
|
key: 0,
|
|
6333
6333
|
class: "filter-dialog-left"
|
|
6334
|
-
},
|
|
6334
|
+
}, oa = { class: "connectors-container" }, ia = { class: "filter-cards" }, ra = { class: "filter-card-header" }, sa = { class: "filter-card-header-left" }, da = { class: "filter-card-title" }, ua = { class: "filter-card-content" }, ma = { class: "filter-card-actions" }, ca = { class: "add-card-content" }, fa = { class: "filter-dialog-footer-container" }, va = { class: "filter-dialog-footer-right" }, pa = {
|
|
6335
6335
|
__name: "cd-filter",
|
|
6336
6336
|
props: {
|
|
6337
6337
|
visible: {
|
|
@@ -6403,36 +6403,36 @@ const Ve = [
|
|
|
6403
6403
|
"dept-click",
|
|
6404
6404
|
"column-change"
|
|
6405
6405
|
],
|
|
6406
|
-
setup(
|
|
6407
|
-
const
|
|
6406
|
+
setup(d, { emit: G }) {
|
|
6407
|
+
const s = d, C = G, m = _(JSON.parse(JSON.stringify(s.filterCards))), A = _(s.topOp), R = _(null);
|
|
6408
6408
|
_([]);
|
|
6409
6409
|
let e = 100;
|
|
6410
|
-
|
|
6411
|
-
m.value = JSON.parse(JSON.stringify(
|
|
6412
|
-
}, { deep: !0 }),
|
|
6413
|
-
A.value =
|
|
6410
|
+
Y(() => s.filterCards, (p) => {
|
|
6411
|
+
m.value = JSON.parse(JSON.stringify(p));
|
|
6412
|
+
}, { deep: !0 }), Y(() => s.topOp, (p) => {
|
|
6413
|
+
A.value = p;
|
|
6414
6414
|
});
|
|
6415
|
-
const
|
|
6415
|
+
const x = () => {
|
|
6416
6416
|
m.value.push({
|
|
6417
6417
|
id: e++,
|
|
6418
6418
|
connector: "and",
|
|
6419
6419
|
conditions: [{ field: "", operator: "eq", value: "" }]
|
|
6420
6420
|
});
|
|
6421
|
-
},
|
|
6422
|
-
m.value.length > 1 ? m.value.splice(
|
|
6423
|
-
},
|
|
6424
|
-
|
|
6421
|
+
}, J = (p) => {
|
|
6422
|
+
m.value.length > 1 ? m.value.splice(p, 1) : de.warning("至少需要保留一个筛选卡片");
|
|
6423
|
+
}, B = (p) => {
|
|
6424
|
+
p >= 0 && p < m.value.length && m.value[p].conditions.push({
|
|
6425
6425
|
field: "",
|
|
6426
6426
|
operator: "eq",
|
|
6427
6427
|
value: ""
|
|
6428
6428
|
});
|
|
6429
|
-
},
|
|
6430
|
-
if (
|
|
6431
|
-
const
|
|
6432
|
-
|
|
6429
|
+
}, U = (p, a) => {
|
|
6430
|
+
if (p >= 0 && p < m.value.length) {
|
|
6431
|
+
const v = m.value[p];
|
|
6432
|
+
v.conditions.length > 1 && a >= 0 && a < v.conditions.length ? v.conditions.splice(a, 1) : v.conditions.length <= 1 && de.warning("每个卡片至少需要一个筛选条件");
|
|
6433
6433
|
}
|
|
6434
|
-
},
|
|
6435
|
-
const
|
|
6434
|
+
}, j = (p) => p.map((a) => {
|
|
6435
|
+
const v = a.conditions.filter((g) => g.field && g.field.trim() !== "").map((g) => {
|
|
6436
6436
|
let l = "";
|
|
6437
6437
|
return g.value !== null && g.value !== void 0 && (Array.isArray(g.value) ? l = g.value.join("/") : l = String(g.value)), {
|
|
6438
6438
|
field: g.field.trim(),
|
|
@@ -6443,10 +6443,10 @@ const Ve = [
|
|
|
6443
6443
|
return {
|
|
6444
6444
|
...a,
|
|
6445
6445
|
connector: a.connector || "and",
|
|
6446
|
-
conditions:
|
|
6446
|
+
conditions: v.length > 0 ? v : [{ field: "", operator: "eq", value: "" }]
|
|
6447
6447
|
};
|
|
6448
|
-
}).filter((a) => a.conditions.length > 0 && a.conditions[0].field !== ""),
|
|
6449
|
-
|
|
6448
|
+
}).filter((a) => a.conditions.length > 0 && a.conditions[0].field !== ""), $ = () => {
|
|
6449
|
+
R.value = null, m.value = [
|
|
6450
6450
|
{
|
|
6451
6451
|
id: 1,
|
|
6452
6452
|
connector: "and",
|
|
@@ -6455,98 +6455,98 @@ const Ve = [
|
|
|
6455
6455
|
{ field: "", operator: "eq", value: "" }
|
|
6456
6456
|
]
|
|
6457
6457
|
}
|
|
6458
|
-
], A.value = "and",
|
|
6459
|
-
},
|
|
6460
|
-
const
|
|
6461
|
-
|
|
6462
|
-
filterCards:
|
|
6458
|
+
], A.value = "and", C("reset");
|
|
6459
|
+
}, w = () => {
|
|
6460
|
+
const p = j(m.value);
|
|
6461
|
+
C("confirm", {
|
|
6462
|
+
filterCards: p,
|
|
6463
6463
|
type1: A.value
|
|
6464
|
-
}),
|
|
6465
|
-
},
|
|
6466
|
-
|
|
6467
|
-
},
|
|
6468
|
-
_(null), _(null),
|
|
6469
|
-
if (c.value = {}, f.value = {},
|
|
6470
|
-
if (typeof
|
|
6471
|
-
|
|
6464
|
+
}), q(), T();
|
|
6465
|
+
}, T = () => {
|
|
6466
|
+
C("update:visible", !1);
|
|
6467
|
+
}, I = _([]), E = _(!1), c = _({}), f = _({}), o = _([]);
|
|
6468
|
+
_(null), _(null), Y(() => s.visibleColumns, (p) => {
|
|
6469
|
+
if (c.value = {}, f.value = {}, p && p.length > 0) {
|
|
6470
|
+
if (typeof p[0] == "object") {
|
|
6471
|
+
I.value = p.filter((l) => l.show !== !1).map((l) => l.value), p.forEach((l) => {
|
|
6472
6472
|
l.width && (c.value[l.value] = parseInt(l.width)), l.fixed ? f.value[l.value] = l.fixed : f.value[l.value] = "none";
|
|
6473
6473
|
});
|
|
6474
|
-
const a =
|
|
6475
|
-
(l) =>
|
|
6476
|
-
).filter(Boolean), g =
|
|
6474
|
+
const a = p.map((l) => l.value), v = a.map(
|
|
6475
|
+
(l) => s.fieldOptions.find((t) => t.value === l)
|
|
6476
|
+
).filter(Boolean), g = s.fieldOptions.filter(
|
|
6477
6477
|
(l) => !a.includes(l.value)
|
|
6478
6478
|
);
|
|
6479
|
-
|
|
6479
|
+
o.value = [...v, ...g];
|
|
6480
6480
|
} else {
|
|
6481
|
-
|
|
6482
|
-
const a =
|
|
6483
|
-
(g) =>
|
|
6484
|
-
).filter(Boolean),
|
|
6485
|
-
(g) => !
|
|
6481
|
+
I.value = [...p];
|
|
6482
|
+
const a = p.map(
|
|
6483
|
+
(g) => s.fieldOptions.find((l) => l.value === g)
|
|
6484
|
+
).filter(Boolean), v = s.fieldOptions.filter(
|
|
6485
|
+
(g) => !p.includes(g.value)
|
|
6486
6486
|
);
|
|
6487
|
-
|
|
6487
|
+
o.value = [...a, ...v];
|
|
6488
6488
|
}
|
|
6489
|
-
E.value =
|
|
6490
|
-
} else
|
|
6491
|
-
|
|
6489
|
+
E.value = I.value.length === s.fieldOptions.length;
|
|
6490
|
+
} else s.fieldOptions.length > 0 && (I.value = s.fieldOptions.map((a) => a.value), o.value = [...s.fieldOptions], E.value = !0);
|
|
6491
|
+
s.fieldOptions.forEach((a) => {
|
|
6492
6492
|
f.value[a.value] || (f.value[a.value] = "none");
|
|
6493
6493
|
});
|
|
6494
|
-
}, { immediate: !0 }),
|
|
6495
|
-
|
|
6494
|
+
}, { immediate: !0 }), Y(() => s.fieldOptions, (p) => {
|
|
6495
|
+
o.value.length || (o.value = [...p]);
|
|
6496
6496
|
}, { immediate: !0 });
|
|
6497
|
-
const
|
|
6498
|
-
const
|
|
6499
|
-
const
|
|
6497
|
+
const q = () => {
|
|
6498
|
+
const p = o.value.filter((a) => I.value.includes(a.value)).map((a) => {
|
|
6499
|
+
const v = c.value[a.value], g = f.value[a.value] || "none";
|
|
6500
6500
|
return {
|
|
6501
6501
|
value: a.value,
|
|
6502
6502
|
show: !0,
|
|
6503
6503
|
// 已通过filter筛选,都是显示的
|
|
6504
|
-
width:
|
|
6504
|
+
width: v ? `${v}px` : "120px",
|
|
6505
6505
|
// 没有设置宽度时使用默认值120px
|
|
6506
6506
|
fixed: g
|
|
6507
6507
|
// 冻结状态
|
|
6508
6508
|
};
|
|
6509
6509
|
});
|
|
6510
|
-
|
|
6510
|
+
C("column-change", p);
|
|
6511
6511
|
};
|
|
6512
|
-
return (
|
|
6513
|
-
const
|
|
6514
|
-
return
|
|
6512
|
+
return (p, a) => {
|
|
6513
|
+
const v = z("t-radio-button"), g = z("t-radio-group"), l = z("t-icon"), t = z("t-button"), y = z("t-dialog");
|
|
6514
|
+
return h(), M(y, {
|
|
6515
6515
|
header: "高级筛选",
|
|
6516
6516
|
placement: "center",
|
|
6517
6517
|
attach: "body",
|
|
6518
|
-
visible:
|
|
6519
|
-
"onUpdate:visible": a[1] || (a[1] = (
|
|
6520
|
-
width:
|
|
6518
|
+
visible: d.visible,
|
|
6519
|
+
"onUpdate:visible": a[1] || (a[1] = (O) => p.$emit("update:visible", O)),
|
|
6520
|
+
width: d.width,
|
|
6521
6521
|
"z-index": 999,
|
|
6522
6522
|
footer: !0,
|
|
6523
|
-
onClose:
|
|
6523
|
+
onClose: T,
|
|
6524
6524
|
id: "leader-line-clip-container"
|
|
6525
6525
|
}, {
|
|
6526
|
-
body:
|
|
6527
|
-
i("div",
|
|
6528
|
-
i("div",
|
|
6529
|
-
i("div",
|
|
6530
|
-
i("div",
|
|
6531
|
-
i("div",
|
|
6532
|
-
m.value.length > 1 ? (
|
|
6533
|
-
i("div",
|
|
6534
|
-
|
|
6535
|
-
size:
|
|
6526
|
+
body: u(() => [
|
|
6527
|
+
i("div", Ze, [
|
|
6528
|
+
i("div", ea, [
|
|
6529
|
+
i("div", aa, [
|
|
6530
|
+
i("div", la, [
|
|
6531
|
+
i("div", ta, [
|
|
6532
|
+
m.value.length > 1 ? (h(), P("div", na, [
|
|
6533
|
+
i("div", oa, [
|
|
6534
|
+
n(g, {
|
|
6535
|
+
size: d.size,
|
|
6536
6536
|
class: "connector-selector",
|
|
6537
6537
|
modelValue: A.value,
|
|
6538
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
6538
|
+
"onUpdate:modelValue": a[0] || (a[0] = (O) => A.value = O)
|
|
6539
6539
|
}, {
|
|
6540
|
-
default:
|
|
6541
|
-
|
|
6542
|
-
default:
|
|
6543
|
-
|
|
6540
|
+
default: u(() => [
|
|
6541
|
+
n(v, { value: "and" }, {
|
|
6542
|
+
default: u(() => [...a[2] || (a[2] = [
|
|
6543
|
+
N("且", -1)
|
|
6544
6544
|
])]),
|
|
6545
6545
|
_: 1
|
|
6546
6546
|
}),
|
|
6547
|
-
|
|
6548
|
-
default:
|
|
6549
|
-
|
|
6547
|
+
n(v, { value: "or" }, {
|
|
6548
|
+
default: u(() => [...a[3] || (a[3] = [
|
|
6549
|
+
N("或", -1)
|
|
6550
6550
|
])]),
|
|
6551
6551
|
_: 1
|
|
6552
6552
|
})
|
|
@@ -6554,31 +6554,31 @@ const Ve = [
|
|
|
6554
6554
|
_: 1
|
|
6555
6555
|
}, 8, ["size", "modelValue"])
|
|
6556
6556
|
])
|
|
6557
|
-
])) :
|
|
6558
|
-
i("div",
|
|
6559
|
-
(
|
|
6560
|
-
key:
|
|
6557
|
+
])) : Q("", !0),
|
|
6558
|
+
i("div", ia, [
|
|
6559
|
+
(h(!0), P(W, null, Z(m.value, (O, k) => (h(), P("div", {
|
|
6560
|
+
key: O.id,
|
|
6561
6561
|
class: "filter-card-item"
|
|
6562
6562
|
}, [
|
|
6563
|
-
i("div",
|
|
6564
|
-
i("div",
|
|
6565
|
-
i("span",
|
|
6566
|
-
|
|
6567
|
-
size:
|
|
6568
|
-
modelValue:
|
|
6569
|
-
"onUpdate:modelValue": (
|
|
6563
|
+
i("div", ra, [
|
|
6564
|
+
i("div", sa, [
|
|
6565
|
+
i("span", da, "筛选卡片 " + ue(k + 1), 1),
|
|
6566
|
+
n(g, {
|
|
6567
|
+
size: d.size,
|
|
6568
|
+
modelValue: O.connector,
|
|
6569
|
+
"onUpdate:modelValue": (H) => O.connector = H,
|
|
6570
6570
|
class: "connector-selector"
|
|
6571
6571
|
}, {
|
|
6572
|
-
default:
|
|
6573
|
-
|
|
6574
|
-
default:
|
|
6575
|
-
|
|
6572
|
+
default: u(() => [
|
|
6573
|
+
n(v, { value: "and" }, {
|
|
6574
|
+
default: u(() => [...a[4] || (a[4] = [
|
|
6575
|
+
N("且", -1)
|
|
6576
6576
|
])]),
|
|
6577
6577
|
_: 1
|
|
6578
6578
|
}),
|
|
6579
|
-
|
|
6580
|
-
default:
|
|
6581
|
-
|
|
6579
|
+
n(v, { value: "or" }, {
|
|
6580
|
+
default: u(() => [...a[5] || (a[5] = [
|
|
6581
|
+
N("或", -1)
|
|
6582
6582
|
])]),
|
|
6583
6583
|
_: 1
|
|
6584
6584
|
})
|
|
@@ -6586,54 +6586,54 @@ const Ve = [
|
|
|
6586
6586
|
_: 1
|
|
6587
6587
|
}, 8, ["size", "modelValue", "onUpdate:modelValue"])
|
|
6588
6588
|
]),
|
|
6589
|
-
|
|
6589
|
+
n(t, {
|
|
6590
6590
|
theme: "default",
|
|
6591
6591
|
variant: "text",
|
|
6592
|
-
size:
|
|
6593
|
-
onClick: (
|
|
6592
|
+
size: d.size,
|
|
6593
|
+
onClick: (H) => J(k),
|
|
6594
6594
|
disabled: m.value.length === 1
|
|
6595
6595
|
}, {
|
|
6596
|
-
icon:
|
|
6597
|
-
|
|
6596
|
+
icon: u(() => [
|
|
6597
|
+
n(l, { name: "close" })
|
|
6598
6598
|
]),
|
|
6599
6599
|
_: 1
|
|
6600
6600
|
}, 8, ["size", "onClick", "disabled"])
|
|
6601
6601
|
]),
|
|
6602
|
-
i("div",
|
|
6603
|
-
(
|
|
6604
|
-
key:
|
|
6602
|
+
i("div", ua, [
|
|
6603
|
+
(h(!0), P(W, null, Z(O.conditions, (H, X) => (h(), P("div", {
|
|
6604
|
+
key: X,
|
|
6605
6605
|
class: "filter-combination"
|
|
6606
6606
|
}, [
|
|
6607
|
-
|
|
6608
|
-
"field-options":
|
|
6609
|
-
"filter-condition":
|
|
6610
|
-
"select-options":
|
|
6611
|
-
size:
|
|
6607
|
+
n(fe, {
|
|
6608
|
+
"field-options": d.fieldOptions,
|
|
6609
|
+
"filter-condition": O.conditions[X],
|
|
6610
|
+
"select-options": d.selectOptions,
|
|
6611
|
+
size: d.size
|
|
6612
6612
|
}, null, 8, ["field-options", "filter-condition", "select-options", "size"]),
|
|
6613
|
-
|
|
6613
|
+
n(t, {
|
|
6614
6614
|
theme: "default",
|
|
6615
6615
|
variant: "text",
|
|
6616
|
-
size:
|
|
6617
|
-
onClick: (
|
|
6618
|
-
disabled:
|
|
6616
|
+
size: d.size,
|
|
6617
|
+
onClick: (ee) => U(k, X),
|
|
6618
|
+
disabled: O.conditions.length === 1
|
|
6619
6619
|
}, {
|
|
6620
|
-
icon:
|
|
6621
|
-
|
|
6620
|
+
icon: u(() => [
|
|
6621
|
+
n(l, { name: "minus" })
|
|
6622
6622
|
]),
|
|
6623
6623
|
_: 1
|
|
6624
6624
|
}, 8, ["size", "onClick", "disabled"])
|
|
6625
6625
|
]))), 128)),
|
|
6626
|
-
i("div",
|
|
6627
|
-
|
|
6626
|
+
i("div", ma, [
|
|
6627
|
+
n(t, {
|
|
6628
6628
|
theme: "default",
|
|
6629
|
-
size:
|
|
6630
|
-
onClick: (
|
|
6629
|
+
size: d.size,
|
|
6630
|
+
onClick: (H) => B(k)
|
|
6631
6631
|
}, {
|
|
6632
|
-
icon:
|
|
6633
|
-
|
|
6632
|
+
icon: u(() => [
|
|
6633
|
+
n(l, { name: "add" })
|
|
6634
6634
|
]),
|
|
6635
|
-
default:
|
|
6636
|
-
a[6] || (a[6] =
|
|
6635
|
+
default: u(() => [
|
|
6636
|
+
a[6] || (a[6] = N(" 添加条件 ", -1))
|
|
6637
6637
|
]),
|
|
6638
6638
|
_: 1
|
|
6639
6639
|
}, 8, ["size", "onClick"])
|
|
@@ -6642,10 +6642,10 @@ const Ve = [
|
|
|
6642
6642
|
]))), 128)),
|
|
6643
6643
|
i("div", {
|
|
6644
6644
|
class: "add-filter-card",
|
|
6645
|
-
onClick:
|
|
6645
|
+
onClick: x
|
|
6646
6646
|
}, [
|
|
6647
|
-
i("div",
|
|
6648
|
-
|
|
6647
|
+
i("div", ca, [
|
|
6648
|
+
n(l, { name: "add" }),
|
|
6649
6649
|
a[7] || (a[7] = i("span", null, "增加筛选卡片", -1))
|
|
6650
6650
|
])
|
|
6651
6651
|
])
|
|
@@ -6656,26 +6656,26 @@ const Ve = [
|
|
|
6656
6656
|
])
|
|
6657
6657
|
])
|
|
6658
6658
|
]),
|
|
6659
|
-
footer:
|
|
6660
|
-
i("div",
|
|
6659
|
+
footer: u(() => [
|
|
6660
|
+
i("div", fa, [
|
|
6661
6661
|
i("div", va, [
|
|
6662
|
-
|
|
6662
|
+
n(t, {
|
|
6663
6663
|
theme: "default",
|
|
6664
|
-
size:
|
|
6665
|
-
onClick:
|
|
6664
|
+
size: d.size,
|
|
6665
|
+
onClick: $
|
|
6666
6666
|
}, {
|
|
6667
|
-
default:
|
|
6668
|
-
|
|
6667
|
+
default: u(() => [...a[8] || (a[8] = [
|
|
6668
|
+
N("重置", -1)
|
|
6669
6669
|
])]),
|
|
6670
6670
|
_: 1
|
|
6671
6671
|
}, 8, ["size"]),
|
|
6672
|
-
|
|
6672
|
+
n(t, {
|
|
6673
6673
|
theme: "primary",
|
|
6674
|
-
size:
|
|
6675
|
-
onClick:
|
|
6674
|
+
size: d.size,
|
|
6675
|
+
onClick: w
|
|
6676
6676
|
}, {
|
|
6677
|
-
default:
|
|
6678
|
-
|
|
6677
|
+
default: u(() => [...a[9] || (a[9] = [
|
|
6678
|
+
N("确定", -1)
|
|
6679
6679
|
])]),
|
|
6680
6680
|
_: 1
|
|
6681
6681
|
}, 8, ["size"])
|
|
@@ -6686,10 +6686,10 @@ const Ve = [
|
|
|
6686
6686
|
}, 8, ["visible", "width"]);
|
|
6687
6687
|
};
|
|
6688
6688
|
}
|
|
6689
|
-
},
|
|
6689
|
+
}, ya = /* @__PURE__ */ le(pa, [["__scopeId", "data-v-0ee31b05"]]), ba = { class: "dialog-header" }, ga = { class: "color-filter-dialog" }, Ca = { class: "color-filter-rules" }, ha = { class: "rule-content" }, _a = { class: "rule-color-section" }, ka = { class: "color-block-wrapper" }, za = {
|
|
6690
6690
|
key: 0,
|
|
6691
6691
|
class: "bold-indicator"
|
|
6692
|
-
},
|
|
6692
|
+
}, Oa = { class: "color-picker-panel" }, Fa = { class: "preset-colors" }, wa = ["onClick"], $a = { class: "bold-option" }, Sa = { class: "apply-to-section" }, xa = { class: "rule-condition" }, Va = { class: "dialog-footer" }, Da = {
|
|
6693
6693
|
__name: "ColorFilterDialog",
|
|
6694
6694
|
props: {
|
|
6695
6695
|
visible: { type: Boolean, default: !1 },
|
|
@@ -6698,8 +6698,8 @@ const Ve = [
|
|
|
6698
6698
|
initialRules: { type: Array, default: () => [] }
|
|
6699
6699
|
},
|
|
6700
6700
|
emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
|
|
6701
|
-
setup(
|
|
6702
|
-
const
|
|
6701
|
+
setup(d, { emit: G }) {
|
|
6702
|
+
const s = d, C = G, m = _(s.visible), A = [
|
|
6703
6703
|
// 第一行 - 暖色系
|
|
6704
6704
|
"#FFE7BA",
|
|
6705
6705
|
"#FFD6E7",
|
|
@@ -6733,7 +6733,7 @@ const Ve = [
|
|
|
6733
6733
|
"#B0BEC5",
|
|
6734
6734
|
"#E7F5E8",
|
|
6735
6735
|
"#F8F9FA"
|
|
6736
|
-
],
|
|
6736
|
+
], R = [
|
|
6737
6737
|
{ label: "等于", value: "eq" },
|
|
6738
6738
|
{ label: "不等于", value: "ne" },
|
|
6739
6739
|
{ label: "大于", value: "gt" },
|
|
@@ -6746,7 +6746,7 @@ const Ve = [
|
|
|
6746
6746
|
overlayInnerStyle: {
|
|
6747
6747
|
width: "180px"
|
|
6748
6748
|
}
|
|
6749
|
-
},
|
|
6749
|
+
}, x = _([
|
|
6750
6750
|
{
|
|
6751
6751
|
field: "",
|
|
6752
6752
|
operator: "eq",
|
|
@@ -6757,18 +6757,18 @@ const Ve = [
|
|
|
6757
6757
|
applyTo: "cell"
|
|
6758
6758
|
}
|
|
6759
6759
|
]);
|
|
6760
|
-
|
|
6761
|
-
m.value = E, E &&
|
|
6760
|
+
Y(() => s.visible, (E) => {
|
|
6761
|
+
m.value = E, E && s.initialRules.length > 0 && (x.value = JSON.parse(JSON.stringify(s.initialRules)).map((c) => ({
|
|
6762
6762
|
...c,
|
|
6763
6763
|
showColorPicker: !1
|
|
6764
6764
|
})));
|
|
6765
|
-
}),
|
|
6766
|
-
|
|
6765
|
+
}), Y(m, (E) => {
|
|
6766
|
+
C("update:visible", E);
|
|
6767
6767
|
});
|
|
6768
|
-
const
|
|
6769
|
-
|
|
6770
|
-
},
|
|
6771
|
-
|
|
6768
|
+
const J = (E, c) => {
|
|
6769
|
+
x.value[E].backgroundColor = c, x.value[E].showColorPicker = !1;
|
|
6770
|
+
}, B = () => {
|
|
6771
|
+
x.value.push({
|
|
6772
6772
|
field: "",
|
|
6773
6773
|
operator: "eq",
|
|
6774
6774
|
value: "",
|
|
@@ -6777,14 +6777,14 @@ const Ve = [
|
|
|
6777
6777
|
showColorPicker: !1,
|
|
6778
6778
|
applyTo: "cell"
|
|
6779
6779
|
});
|
|
6780
|
-
},
|
|
6781
|
-
|
|
6782
|
-
},
|
|
6780
|
+
}, U = (E) => {
|
|
6781
|
+
x.value.length > 1 && x.value.splice(E, 1);
|
|
6782
|
+
}, j = () => {
|
|
6783
6783
|
m.value = !1;
|
|
6784
|
+
}, $ = () => {
|
|
6785
|
+
C("clear"), m.value = !1;
|
|
6784
6786
|
}, w = () => {
|
|
6785
|
-
|
|
6786
|
-
}, F = () => {
|
|
6787
|
-
const E = S.value.filter(
|
|
6787
|
+
const E = x.value.filter(
|
|
6788
6788
|
(c) => c.field && c.operator && c.value
|
|
6789
6789
|
).map((c) => ({
|
|
6790
6790
|
field: c.field,
|
|
@@ -6794,79 +6794,79 @@ const Ve = [
|
|
|
6794
6794
|
isBold: c.isBold,
|
|
6795
6795
|
applyTo: c.applyTo
|
|
6796
6796
|
}));
|
|
6797
|
-
|
|
6798
|
-
},
|
|
6799
|
-
const E =
|
|
6800
|
-
for (let
|
|
6801
|
-
const
|
|
6802
|
-
f.push(A[
|
|
6797
|
+
C("confirm", E), m.value = !1;
|
|
6798
|
+
}, T = ae(() => {
|
|
6799
|
+
const E = x.value.length, c = Math.floor(A.length / E), f = [];
|
|
6800
|
+
for (let o = 0; o < E; o++) {
|
|
6801
|
+
const q = o * c % A.length;
|
|
6802
|
+
f.push(A[q]);
|
|
6803
6803
|
}
|
|
6804
6804
|
return f;
|
|
6805
|
-
}),
|
|
6806
|
-
|
|
6807
|
-
c <
|
|
6808
|
-
}),
|
|
6805
|
+
}), I = () => {
|
|
6806
|
+
x.value.forEach((E, c) => {
|
|
6807
|
+
c < T.value.length && (E.backgroundColor = T.value[c]);
|
|
6808
|
+
}), C("smart-colors-change", T.value);
|
|
6809
6809
|
};
|
|
6810
6810
|
return (E, c) => {
|
|
6811
|
-
const f =
|
|
6812
|
-
return
|
|
6811
|
+
const f = z("t-button"), o = z("t-checkbox"), q = z("t-popup"), p = z("t-radio-button"), a = z("t-radio-group"), v = z("t-select"), g = z("t-input"), l = z("t-icon"), t = z("t-dialog");
|
|
6812
|
+
return h(), M(t, {
|
|
6813
6813
|
visible: m.value,
|
|
6814
6814
|
"onUpdate:visible": c[0] || (c[0] = (y) => m.value = y),
|
|
6815
6815
|
width: "800px",
|
|
6816
6816
|
"confirm-btn": null,
|
|
6817
6817
|
"cancel-btn": null,
|
|
6818
|
-
onClose:
|
|
6818
|
+
onClose: j
|
|
6819
6819
|
}, {
|
|
6820
|
-
header:
|
|
6821
|
-
i("div",
|
|
6820
|
+
header: u(() => [
|
|
6821
|
+
i("div", ba, [
|
|
6822
6822
|
c[3] || (c[3] = i("span", null, "颜色筛选", -1)),
|
|
6823
|
-
|
|
6823
|
+
n(f, {
|
|
6824
6824
|
theme: "primary",
|
|
6825
6825
|
variant: "outline",
|
|
6826
6826
|
size: "small",
|
|
6827
|
-
onClick:
|
|
6827
|
+
onClick: I
|
|
6828
6828
|
}, {
|
|
6829
|
-
icon:
|
|
6829
|
+
icon: u(() => [...c[1] || (c[1] = [
|
|
6830
6830
|
i("i", { class: "ri-palette-line" }, null, -1)
|
|
6831
6831
|
])]),
|
|
6832
|
-
default:
|
|
6833
|
-
c[2] || (c[2] =
|
|
6832
|
+
default: u(() => [
|
|
6833
|
+
c[2] || (c[2] = N(" 智能配色 ", -1))
|
|
6834
6834
|
]),
|
|
6835
6835
|
_: 1
|
|
6836
6836
|
})
|
|
6837
6837
|
])
|
|
6838
6838
|
]),
|
|
6839
|
-
body:
|
|
6840
|
-
i("div",
|
|
6841
|
-
i("div",
|
|
6842
|
-
(
|
|
6843
|
-
key:
|
|
6839
|
+
body: u(() => [
|
|
6840
|
+
i("div", ga, [
|
|
6841
|
+
i("div", Ca, [
|
|
6842
|
+
(h(!0), P(W, null, Z(x.value, (y, O) => (h(), P("div", {
|
|
6843
|
+
key: O,
|
|
6844
6844
|
class: "color-rule-item"
|
|
6845
6845
|
}, [
|
|
6846
|
-
i("div",
|
|
6847
|
-
i("div",
|
|
6848
|
-
|
|
6846
|
+
i("div", ha, [
|
|
6847
|
+
i("div", _a, [
|
|
6848
|
+
n(q, {
|
|
6849
6849
|
visible: y.showColorPicker,
|
|
6850
|
-
"onUpdate:visible": (
|
|
6850
|
+
"onUpdate:visible": (k) => y.showColorPicker = k,
|
|
6851
6851
|
placement: "bottom-left",
|
|
6852
6852
|
trigger: "click"
|
|
6853
6853
|
}, {
|
|
6854
|
-
content:
|
|
6855
|
-
i("div",
|
|
6856
|
-
i("div",
|
|
6857
|
-
(
|
|
6858
|
-
key:
|
|
6859
|
-
class:
|
|
6860
|
-
style:
|
|
6861
|
-
onClick: (
|
|
6862
|
-
}, null, 14,
|
|
6854
|
+
content: u(() => [
|
|
6855
|
+
i("div", Oa, [
|
|
6856
|
+
i("div", Fa, [
|
|
6857
|
+
(h(), P(W, null, Z(A, (k) => i("div", {
|
|
6858
|
+
key: k,
|
|
6859
|
+
class: se(["preset-color-item", { active: y.backgroundColor === k }]),
|
|
6860
|
+
style: ce({ backgroundColor: k }),
|
|
6861
|
+
onClick: (H) => J(O, k)
|
|
6862
|
+
}, null, 14, wa)), 64))
|
|
6863
6863
|
]),
|
|
6864
|
-
i("div",
|
|
6865
|
-
o
|
|
6864
|
+
i("div", $a, [
|
|
6865
|
+
n(o, {
|
|
6866
6866
|
modelValue: y.isBold,
|
|
6867
|
-
"onUpdate:modelValue": (
|
|
6867
|
+
"onUpdate:modelValue": (k) => y.isBold = k
|
|
6868
6868
|
}, {
|
|
6869
|
-
default:
|
|
6869
|
+
default: u(() => [...c[4] || (c[4] = [
|
|
6870
6870
|
i("span", { class: "bold-text" }, "加粗", -1)
|
|
6871
6871
|
])]),
|
|
6872
6872
|
_: 1
|
|
@@ -6874,42 +6874,42 @@ const Ve = [
|
|
|
6874
6874
|
])
|
|
6875
6875
|
])
|
|
6876
6876
|
]),
|
|
6877
|
-
default:
|
|
6878
|
-
i("div",
|
|
6877
|
+
default: u(() => [
|
|
6878
|
+
i("div", ka, [
|
|
6879
6879
|
i("div", {
|
|
6880
6880
|
class: "color-block",
|
|
6881
|
-
style:
|
|
6881
|
+
style: ce({ backgroundColor: y.backgroundColor })
|
|
6882
6882
|
}, [
|
|
6883
|
-
y.isBold ? (
|
|
6883
|
+
y.isBold ? (h(), P("span", za, "B")) : Q("", !0)
|
|
6884
6884
|
], 4)
|
|
6885
6885
|
])
|
|
6886
6886
|
]),
|
|
6887
6887
|
_: 2
|
|
6888
6888
|
}, 1032, ["visible", "onUpdate:visible"])
|
|
6889
6889
|
]),
|
|
6890
|
-
i("div",
|
|
6891
|
-
|
|
6890
|
+
i("div", Sa, [
|
|
6891
|
+
n(a, {
|
|
6892
6892
|
modelValue: y.applyTo,
|
|
6893
|
-
"onUpdate:modelValue": (
|
|
6894
|
-
size:
|
|
6893
|
+
"onUpdate:modelValue": (k) => y.applyTo = k,
|
|
6894
|
+
size: d.size,
|
|
6895
6895
|
variant: "default-filled"
|
|
6896
6896
|
}, {
|
|
6897
|
-
default:
|
|
6898
|
-
|
|
6899
|
-
default:
|
|
6900
|
-
|
|
6897
|
+
default: u(() => [
|
|
6898
|
+
n(p, { value: "cell" }, {
|
|
6899
|
+
default: u(() => [...c[5] || (c[5] = [
|
|
6900
|
+
N("单元格", -1)
|
|
6901
6901
|
])]),
|
|
6902
6902
|
_: 1
|
|
6903
6903
|
}),
|
|
6904
|
-
|
|
6905
|
-
default:
|
|
6906
|
-
|
|
6904
|
+
n(p, { value: "row" }, {
|
|
6905
|
+
default: u(() => [...c[6] || (c[6] = [
|
|
6906
|
+
N("整行", -1)
|
|
6907
6907
|
])]),
|
|
6908
6908
|
_: 1
|
|
6909
6909
|
}),
|
|
6910
|
-
|
|
6911
|
-
default:
|
|
6912
|
-
|
|
6910
|
+
n(p, { value: "column" }, {
|
|
6911
|
+
default: u(() => [...c[7] || (c[7] = [
|
|
6912
|
+
N("整列", -1)
|
|
6913
6913
|
])]),
|
|
6914
6914
|
_: 1
|
|
6915
6915
|
})
|
|
@@ -6917,94 +6917,94 @@ const Ve = [
|
|
|
6917
6917
|
_: 1
|
|
6918
6918
|
}, 8, ["modelValue", "onUpdate:modelValue", "size"])
|
|
6919
6919
|
]),
|
|
6920
|
-
i("div",
|
|
6921
|
-
|
|
6920
|
+
i("div", xa, [
|
|
6921
|
+
n(v, {
|
|
6922
6922
|
modelValue: y.field,
|
|
6923
|
-
"onUpdate:modelValue": (
|
|
6924
|
-
options:
|
|
6923
|
+
"onUpdate:modelValue": (k) => y.field = k,
|
|
6924
|
+
options: d.fieldOptions,
|
|
6925
6925
|
placeholder: "选择字段",
|
|
6926
|
-
size:
|
|
6926
|
+
size: d.size,
|
|
6927
6927
|
style: { width: "120px", display: "inline-block" },
|
|
6928
6928
|
"popup-props": e
|
|
6929
6929
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "size"]),
|
|
6930
|
-
|
|
6930
|
+
n(v, {
|
|
6931
6931
|
modelValue: y.operator,
|
|
6932
|
-
"onUpdate:modelValue": (
|
|
6933
|
-
options:
|
|
6932
|
+
"onUpdate:modelValue": (k) => y.operator = k,
|
|
6933
|
+
options: R,
|
|
6934
6934
|
placeholder: "选择操作符",
|
|
6935
|
-
size:
|
|
6935
|
+
size: d.size,
|
|
6936
6936
|
style: { width: "120px" },
|
|
6937
6937
|
"popup-props": e
|
|
6938
6938
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
|
|
6939
|
-
|
|
6939
|
+
n(g, {
|
|
6940
6940
|
modelValue: y.value,
|
|
6941
|
-
"onUpdate:modelValue": (
|
|
6941
|
+
"onUpdate:modelValue": (k) => y.value = k,
|
|
6942
6942
|
placeholder: "输入值",
|
|
6943
|
-
size:
|
|
6943
|
+
size: d.size,
|
|
6944
6944
|
style: { width: "200px" }
|
|
6945
6945
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"])
|
|
6946
6946
|
])
|
|
6947
6947
|
]),
|
|
6948
|
-
|
|
6948
|
+
n(f, {
|
|
6949
6949
|
theme: "default",
|
|
6950
6950
|
variant: "text",
|
|
6951
|
-
size:
|
|
6952
|
-
onClick: (
|
|
6953
|
-
disabled:
|
|
6951
|
+
size: d.size,
|
|
6952
|
+
onClick: (k) => U(O),
|
|
6953
|
+
disabled: x.value.length === 1
|
|
6954
6954
|
}, {
|
|
6955
|
-
icon:
|
|
6955
|
+
icon: u(() => [...c[8] || (c[8] = [
|
|
6956
6956
|
i("i", { class: "ri-close-fill" }, null, -1)
|
|
6957
6957
|
])]),
|
|
6958
6958
|
_: 1
|
|
6959
6959
|
}, 8, ["size", "onClick", "disabled"])
|
|
6960
6960
|
]))), 128))
|
|
6961
6961
|
]),
|
|
6962
|
-
|
|
6962
|
+
n(f, {
|
|
6963
6963
|
theme: "default",
|
|
6964
6964
|
variant: "dashed",
|
|
6965
|
-
size:
|
|
6966
|
-
onClick:
|
|
6965
|
+
size: d.size,
|
|
6966
|
+
onClick: B,
|
|
6967
6967
|
style: { width: "100%", "margin-top": "12px" }
|
|
6968
6968
|
}, {
|
|
6969
|
-
icon:
|
|
6970
|
-
|
|
6969
|
+
icon: u(() => [
|
|
6970
|
+
n(l, { name: "add" })
|
|
6971
6971
|
]),
|
|
6972
|
-
default:
|
|
6973
|
-
c[9] || (c[9] =
|
|
6972
|
+
default: u(() => [
|
|
6973
|
+
c[9] || (c[9] = N(" 添加规则 ", -1))
|
|
6974
6974
|
]),
|
|
6975
6975
|
_: 1
|
|
6976
6976
|
}, 8, ["size"])
|
|
6977
6977
|
])
|
|
6978
6978
|
]),
|
|
6979
|
-
footer:
|
|
6979
|
+
footer: u(() => [
|
|
6980
6980
|
i("div", Va, [
|
|
6981
|
-
|
|
6981
|
+
n(f, {
|
|
6982
6982
|
theme: "default",
|
|
6983
|
-
size:
|
|
6984
|
-
onClick:
|
|
6983
|
+
size: d.size,
|
|
6984
|
+
onClick: j
|
|
6985
6985
|
}, {
|
|
6986
|
-
default:
|
|
6987
|
-
|
|
6986
|
+
default: u(() => [...c[10] || (c[10] = [
|
|
6987
|
+
N("取消", -1)
|
|
6988
6988
|
])]),
|
|
6989
6989
|
_: 1
|
|
6990
6990
|
}, 8, ["size"]),
|
|
6991
|
-
|
|
6991
|
+
n(f, {
|
|
6992
6992
|
theme: "default",
|
|
6993
|
-
size:
|
|
6994
|
-
onClick:
|
|
6993
|
+
size: d.size,
|
|
6994
|
+
onClick: $
|
|
6995
6995
|
}, {
|
|
6996
|
-
default:
|
|
6997
|
-
|
|
6996
|
+
default: u(() => [...c[11] || (c[11] = [
|
|
6997
|
+
N("清除", -1)
|
|
6998
6998
|
])]),
|
|
6999
6999
|
_: 1
|
|
7000
7000
|
}, 8, ["size"]),
|
|
7001
|
-
|
|
7001
|
+
n(f, {
|
|
7002
7002
|
theme: "primary",
|
|
7003
|
-
size:
|
|
7004
|
-
onClick:
|
|
7003
|
+
size: d.size,
|
|
7004
|
+
onClick: w
|
|
7005
7005
|
}, {
|
|
7006
|
-
default:
|
|
7007
|
-
|
|
7006
|
+
default: u(() => [...c[12] || (c[12] = [
|
|
7007
|
+
N("确定", -1)
|
|
7008
7008
|
])]),
|
|
7009
7009
|
_: 1
|
|
7010
7010
|
}, 8, ["size"])
|
|
@@ -7014,7 +7014,7 @@ const Ve = [
|
|
|
7014
7014
|
}, 8, ["visible"]);
|
|
7015
7015
|
};
|
|
7016
7016
|
}
|
|
7017
|
-
}, ge = /* @__PURE__ */
|
|
7017
|
+
}, ge = /* @__PURE__ */ le(Da, [["__scopeId", "data-v-822b291e"]]), Aa = { class: "column-settings-panel" }, Ea = { class: "column-list" }, qa = ["onDragstart", "onDragover", "onDrop"], Ua = { class: "column-name" }, Ta = { class: "column-show" }, Na = ["onClick"], Pa = { class: "column-freeze" }, Ba = { class: "column-width" }, Ra = { class: "column-sort-buttons" }, Ja = {
|
|
7018
7018
|
__name: "ColumnSettingsDialog",
|
|
7019
7019
|
props: {
|
|
7020
7020
|
visible: { type: Boolean, default: !1 },
|
|
@@ -7022,123 +7022,123 @@ const Ve = [
|
|
|
7022
7022
|
visibleColumns: { type: Array, default: () => [] }
|
|
7023
7023
|
},
|
|
7024
7024
|
emits: ["update:visible", "column-change"],
|
|
7025
|
-
setup(
|
|
7026
|
-
const
|
|
7027
|
-
if (A.value = {},
|
|
7025
|
+
setup(d, { emit: G }) {
|
|
7026
|
+
const s = d, C = G, m = _([]), A = _({}), R = _({}), e = _([]), x = _(null), J = _(null), B = (f) => {
|
|
7027
|
+
if (A.value = {}, R.value = {}, f && f.length > 0)
|
|
7028
7028
|
if (typeof f[0] == "object") {
|
|
7029
7029
|
m.value = f.filter((a) => a.show !== !1).map((a) => a.value), f.forEach((a) => {
|
|
7030
|
-
A.value[a.value] = a.width ? parseInt(a.width) : void 0,
|
|
7030
|
+
A.value[a.value] = a.width ? parseInt(a.width) : void 0, R.value[a.value] = a.fixed || "none";
|
|
7031
7031
|
});
|
|
7032
|
-
const
|
|
7033
|
-
e.value = [...
|
|
7032
|
+
const o = f.map((a) => a.value), q = o.map((a) => s.fieldOptions.find((v) => v.value === a)).filter(Boolean), p = s.fieldOptions.filter((a) => !o.includes(a.value));
|
|
7033
|
+
e.value = [...q, ...p];
|
|
7034
7034
|
} else {
|
|
7035
7035
|
m.value = [...f];
|
|
7036
|
-
const
|
|
7037
|
-
e.value = [...
|
|
7036
|
+
const o = f.map((p) => s.fieldOptions.find((a) => a.value === p)).filter(Boolean), q = s.fieldOptions.filter((p) => !f.includes(p.value));
|
|
7037
|
+
e.value = [...o, ...q];
|
|
7038
7038
|
}
|
|
7039
|
-
else
|
|
7040
|
-
e.value.forEach((
|
|
7041
|
-
|
|
7042
|
-
}), e.value.length || (e.value = [...
|
|
7039
|
+
else s.fieldOptions.length > 0 && (m.value = s.fieldOptions.map((o) => o.value), e.value = [...s.fieldOptions]);
|
|
7040
|
+
e.value.forEach((o) => {
|
|
7041
|
+
R.value[o.value] || (R.value[o.value] = "none");
|
|
7042
|
+
}), e.value.length || (e.value = [...s.fieldOptions]);
|
|
7043
7043
|
};
|
|
7044
|
-
|
|
7045
|
-
const
|
|
7046
|
-
const
|
|
7047
|
-
|
|
7048
|
-
},
|
|
7044
|
+
Y(() => s.visibleColumns, B, { immediate: !0 }), Y(() => s.fieldOptions, () => B(s.visibleColumns));
|
|
7045
|
+
const U = (f) => {
|
|
7046
|
+
const o = m.value.indexOf(f);
|
|
7047
|
+
o === -1 ? m.value.push(f) : m.value.splice(o, 1);
|
|
7048
|
+
}, j = (f) => {
|
|
7049
7049
|
if (f > 0) {
|
|
7050
|
-
const
|
|
7051
|
-
[
|
|
7050
|
+
const o = [...e.value];
|
|
7051
|
+
[o[f], o[f - 1]] = [o[f - 1], o[f]], e.value = o;
|
|
7052
7052
|
}
|
|
7053
|
-
},
|
|
7053
|
+
}, $ = (f) => {
|
|
7054
7054
|
if (f < e.value.length - 1) {
|
|
7055
|
-
const
|
|
7056
|
-
[
|
|
7055
|
+
const o = [...e.value];
|
|
7056
|
+
[o[f], o[f + 1]] = [o[f + 1], o[f]], e.value = o;
|
|
7057
7057
|
}
|
|
7058
|
-
},
|
|
7059
|
-
|
|
7060
|
-
},
|
|
7061
|
-
|
|
7062
|
-
},
|
|
7063
|
-
|
|
7064
|
-
}, E = (f,
|
|
7065
|
-
|
|
7066
|
-
const
|
|
7067
|
-
if (
|
|
7068
|
-
const
|
|
7069
|
-
|
|
7058
|
+
}, w = (f, o) => {
|
|
7059
|
+
x.value = f, o.dataTransfer.effectAllowed = "move";
|
|
7060
|
+
}, T = (f, o) => {
|
|
7061
|
+
o.preventDefault(), J.value = f;
|
|
7062
|
+
}, I = () => {
|
|
7063
|
+
x.value = null, J.value = null;
|
|
7064
|
+
}, E = (f, o) => {
|
|
7065
|
+
o.preventDefault();
|
|
7066
|
+
const q = x.value;
|
|
7067
|
+
if (q === null || q === f) return;
|
|
7068
|
+
const p = [...e.value], a = p.splice(q, 1)[0];
|
|
7069
|
+
p.splice(f, 0, a), e.value = p, x.value = null, J.value = null;
|
|
7070
7070
|
}, c = () => {
|
|
7071
|
-
const f = e.value.filter((
|
|
7072
|
-
value:
|
|
7071
|
+
const f = e.value.filter((o) => m.value.includes(o.value)).map((o) => ({
|
|
7072
|
+
value: o.value,
|
|
7073
7073
|
show: !0,
|
|
7074
|
-
width: A.value[
|
|
7075
|
-
fixed:
|
|
7074
|
+
width: A.value[o.value] ? `${A.value[o.value]}px` : "120px",
|
|
7075
|
+
fixed: R.value[o.value] || "none"
|
|
7076
7076
|
}));
|
|
7077
|
-
|
|
7077
|
+
C("column-change", f), C("update:visible", !1);
|
|
7078
7078
|
};
|
|
7079
|
-
return (f,
|
|
7080
|
-
const
|
|
7081
|
-
return
|
|
7079
|
+
return (f, o) => {
|
|
7080
|
+
const q = z("t-icon"), p = z("t-option"), a = z("t-select"), v = z("t-input-number"), g = z("t-button"), l = z("t-dialog");
|
|
7081
|
+
return h(), M(l, {
|
|
7082
7082
|
header: "列配置",
|
|
7083
7083
|
placement: "center",
|
|
7084
7084
|
attach: "body",
|
|
7085
|
-
visible:
|
|
7086
|
-
"onUpdate:visible":
|
|
7085
|
+
visible: d.visible,
|
|
7086
|
+
"onUpdate:visible": o[1] || (o[1] = (t) => f.$emit("update:visible", t)),
|
|
7087
7087
|
width: "700px",
|
|
7088
7088
|
"z-index": 999,
|
|
7089
7089
|
footer: !0,
|
|
7090
|
-
onClose:
|
|
7090
|
+
onClose: o[2] || (o[2] = (t) => f.$emit("update:visible", !1))
|
|
7091
7091
|
}, {
|
|
7092
|
-
body:
|
|
7093
|
-
i("div",
|
|
7094
|
-
|
|
7092
|
+
body: u(() => [
|
|
7093
|
+
i("div", Aa, [
|
|
7094
|
+
o[3] || (o[3] = i("div", { class: "column-title-row" }, [
|
|
7095
7095
|
i("div", { class: "column-title column-title-name" }, "名称"),
|
|
7096
7096
|
i("div", { class: "column-title column-title-show" }, "显示"),
|
|
7097
7097
|
i("div", { class: "column-title column-title-width" }, "冻结列"),
|
|
7098
7098
|
i("div", { class: "column-title column-title-width" }, "宽度"),
|
|
7099
7099
|
i("div", { class: "column-title column-title-sort" }, "排序")
|
|
7100
7100
|
], -1)),
|
|
7101
|
-
i("div",
|
|
7102
|
-
(
|
|
7101
|
+
i("div", Ea, [
|
|
7102
|
+
(h(!0), P(W, null, Z(e.value, (t, y) => (h(), P("div", {
|
|
7103
7103
|
key: t.value,
|
|
7104
|
-
class:
|
|
7104
|
+
class: se(["column-item-row", { dragging: x.value === y, "col-hidden": !m.value.includes(t.value) }]),
|
|
7105
7105
|
draggable: "true",
|
|
7106
|
-
onDragstart: (
|
|
7107
|
-
onDragover: (
|
|
7108
|
-
onDragend:
|
|
7109
|
-
onDrop: (
|
|
7106
|
+
onDragstart: (O) => w(y, O),
|
|
7107
|
+
onDragover: (O) => T(y, O),
|
|
7108
|
+
onDragend: I,
|
|
7109
|
+
onDrop: (O) => E(y, O)
|
|
7110
7110
|
}, [
|
|
7111
7111
|
i("div", Ua, [
|
|
7112
|
-
|
|
7112
|
+
n(q, {
|
|
7113
7113
|
name: "move",
|
|
7114
7114
|
style: { cursor: "move", color: "#999", "margin-right": "8px" }
|
|
7115
7115
|
}),
|
|
7116
|
-
|
|
7116
|
+
N(" " + ue(t.label), 1)
|
|
7117
7117
|
]),
|
|
7118
|
-
i("div",
|
|
7118
|
+
i("div", Ta, [
|
|
7119
7119
|
i("i", {
|
|
7120
|
-
class:
|
|
7121
|
-
style:
|
|
7122
|
-
onClick: (
|
|
7123
|
-
}, null, 14,
|
|
7120
|
+
class: se(m.value.includes(t.value) ? "ri-eye-line" : "ri-eye-off-line"),
|
|
7121
|
+
style: ce({ color: m.value.includes(t.value) ? "#0052d9" : "#bbb", fontSize: "18px", cursor: "pointer" }),
|
|
7122
|
+
onClick: (O) => U(t.value)
|
|
7123
|
+
}, null, 14, Na)
|
|
7124
7124
|
]),
|
|
7125
|
-
i("div",
|
|
7126
|
-
|
|
7127
|
-
modelValue:
|
|
7128
|
-
"onUpdate:modelValue": (
|
|
7125
|
+
i("div", Pa, [
|
|
7126
|
+
n(a, {
|
|
7127
|
+
modelValue: R.value[t.value],
|
|
7128
|
+
"onUpdate:modelValue": (O) => R.value[t.value] = O,
|
|
7129
7129
|
size: "small",
|
|
7130
7130
|
style: { width: "120px" }
|
|
7131
7131
|
}, {
|
|
7132
|
-
default:
|
|
7133
|
-
|
|
7132
|
+
default: u(() => [
|
|
7133
|
+
n(p, {
|
|
7134
7134
|
value: "none",
|
|
7135
7135
|
label: "不冻结"
|
|
7136
7136
|
}),
|
|
7137
|
-
|
|
7137
|
+
n(p, {
|
|
7138
7138
|
value: "left",
|
|
7139
7139
|
label: "左侧冻结"
|
|
7140
7140
|
}),
|
|
7141
|
-
|
|
7141
|
+
n(p, {
|
|
7142
7142
|
value: "right",
|
|
7143
7143
|
label: "右侧冻结"
|
|
7144
7144
|
})
|
|
@@ -7147,9 +7147,9 @@ const Ve = [
|
|
|
7147
7147
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
7148
7148
|
]),
|
|
7149
7149
|
i("div", Ba, [
|
|
7150
|
-
|
|
7150
|
+
n(v, {
|
|
7151
7151
|
modelValue: A.value[t.value],
|
|
7152
|
-
"onUpdate:modelValue": (
|
|
7152
|
+
"onUpdate:modelValue": (O) => A.value[t.value] = O,
|
|
7153
7153
|
min: 50,
|
|
7154
7154
|
max: 500,
|
|
7155
7155
|
step: 10,
|
|
@@ -7158,31 +7158,31 @@ const Ve = [
|
|
|
7158
7158
|
style: { width: "100px" }
|
|
7159
7159
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
7160
7160
|
]),
|
|
7161
|
-
i("div",
|
|
7162
|
-
|
|
7161
|
+
i("div", Ra, [
|
|
7162
|
+
n(g, {
|
|
7163
7163
|
theme: "default",
|
|
7164
7164
|
variant: "text",
|
|
7165
7165
|
size: "small",
|
|
7166
|
-
onClick: (
|
|
7166
|
+
onClick: (O) => j(y),
|
|
7167
7167
|
disabled: y === 0
|
|
7168
7168
|
}, {
|
|
7169
|
-
icon:
|
|
7170
|
-
|
|
7169
|
+
icon: u(() => [
|
|
7170
|
+
n(q, {
|
|
7171
7171
|
name: "chevron-up",
|
|
7172
7172
|
style: { color: "#f60" }
|
|
7173
7173
|
})
|
|
7174
7174
|
]),
|
|
7175
7175
|
_: 1
|
|
7176
7176
|
}, 8, ["onClick", "disabled"]),
|
|
7177
|
-
|
|
7177
|
+
n(g, {
|
|
7178
7178
|
theme: "default",
|
|
7179
7179
|
variant: "text",
|
|
7180
7180
|
size: "small",
|
|
7181
|
-
onClick: (
|
|
7181
|
+
onClick: (O) => $(y),
|
|
7182
7182
|
disabled: y === e.value.length - 1
|
|
7183
7183
|
}, {
|
|
7184
|
-
icon:
|
|
7185
|
-
|
|
7184
|
+
icon: u(() => [
|
|
7185
|
+
n(q, {
|
|
7186
7186
|
name: "chevron-down",
|
|
7187
7187
|
style: { color: "#f60" }
|
|
7188
7188
|
})
|
|
@@ -7190,26 +7190,26 @@ const Ve = [
|
|
|
7190
7190
|
_: 1
|
|
7191
7191
|
}, 8, ["onClick", "disabled"])
|
|
7192
7192
|
])
|
|
7193
|
-
], 42,
|
|
7193
|
+
], 42, qa))), 128))
|
|
7194
7194
|
])
|
|
7195
7195
|
])
|
|
7196
7196
|
]),
|
|
7197
|
-
footer:
|
|
7198
|
-
|
|
7197
|
+
footer: u(() => [
|
|
7198
|
+
n(g, {
|
|
7199
7199
|
theme: "default",
|
|
7200
|
-
onClick:
|
|
7200
|
+
onClick: o[0] || (o[0] = (t) => f.$emit("update:visible", !1))
|
|
7201
7201
|
}, {
|
|
7202
|
-
default:
|
|
7203
|
-
|
|
7202
|
+
default: u(() => [...o[4] || (o[4] = [
|
|
7203
|
+
N("取消", -1)
|
|
7204
7204
|
])]),
|
|
7205
7205
|
_: 1
|
|
7206
7206
|
}),
|
|
7207
|
-
|
|
7207
|
+
n(g, {
|
|
7208
7208
|
theme: "primary",
|
|
7209
7209
|
onClick: c
|
|
7210
7210
|
}, {
|
|
7211
|
-
default:
|
|
7212
|
-
|
|
7211
|
+
default: u(() => [...o[5] || (o[5] = [
|
|
7212
|
+
N("确定", -1)
|
|
7213
7213
|
])]),
|
|
7214
7214
|
_: 1
|
|
7215
7215
|
})
|
|
@@ -7218,10 +7218,13 @@ const Ve = [
|
|
|
7218
7218
|
}, 8, ["visible"]);
|
|
7219
7219
|
};
|
|
7220
7220
|
}
|
|
7221
|
-
},
|
|
7221
|
+
}, ja = /* @__PURE__ */ le(Ja, [["__scopeId", "data-v-0a02ab86"]]), Ma = { class: "cd-filter-bar" }, Ia = { class: "filter-plan-row" }, Ha = {
|
|
7222
|
+
key: 0,
|
|
7223
|
+
class: "plan-radio-group"
|
|
7224
|
+
}, Ka = ["onClick"], La = { class: "plan-radio-label" }, Ya = { style: { "margin-left": "auto", display: "flex", "align-items": "center", gap: "8px" } }, Ga = { class: "filter-toolbar-row" }, Wa = {
|
|
7222
7225
|
key: 0,
|
|
7223
7226
|
class: "inline-filter-toolbar"
|
|
7224
|
-
},
|
|
7227
|
+
}, Qa = { class: "filter-action-buttons" }, Xa = { style: { "margin-left": "auto", display: "flex", "align-items": "center", gap: "8px" } }, Za = { class: "save-plan-content" }, el = {
|
|
7225
7228
|
__name: "cd-filter-bar",
|
|
7226
7229
|
props: {
|
|
7227
7230
|
fieldOptions: { type: Array, required: !0 },
|
|
@@ -7269,100 +7272,103 @@ const Ve = [
|
|
|
7269
7272
|
"smart-colors-change",
|
|
7270
7273
|
"refresh"
|
|
7271
7274
|
],
|
|
7272
|
-
setup(
|
|
7273
|
-
const
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
if (d.filterCount === 0) {
|
|
7275
|
+
setup(d, { emit: G }) {
|
|
7276
|
+
const s = d, C = G, m = _([]), A = () => ({ field: "", operator: "eq", value: "" }), R = () => {
|
|
7277
|
+
var r, S, F;
|
|
7278
|
+
if (s.filterCount === 0) {
|
|
7277
7279
|
m.value = [];
|
|
7278
7280
|
return;
|
|
7279
7281
|
}
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7282
|
+
console.log("[cd-filter-bar] initInlineHeaderConditions, filterCount=", s.filterCount, "fieldOptions=", (r = s.fieldOptions) == null ? void 0 : r.length);
|
|
7283
|
+
const b = ((F = (S = s.filterCards) == null ? void 0 : S[0]) == null ? void 0 : F.conditions) || [];
|
|
7284
|
+
m.value = Array.from({ length: s.filterCount }, (K, L) => b[L] ? JSON.parse(JSON.stringify(b[L])) : A()), console.log("[cd-filter-bar] inlineHeaderConditions=", m.value);
|
|
7285
|
+
};
|
|
7286
|
+
R();
|
|
7283
7287
|
const e = () => {
|
|
7284
|
-
if (
|
|
7288
|
+
if (s.filterCount === 0) {
|
|
7285
7289
|
m.value = [];
|
|
7286
7290
|
return;
|
|
7287
7291
|
}
|
|
7288
|
-
m.value = Array.from({ length:
|
|
7289
|
-
},
|
|
7290
|
-
|
|
7291
|
-
const
|
|
7292
|
-
|
|
7293
|
-
const
|
|
7294
|
-
const
|
|
7295
|
-
|
|
7296
|
-
},
|
|
7292
|
+
m.value = Array.from({ length: s.filterCount }, () => A());
|
|
7293
|
+
}, x = _("保存筛选方案"), J = _(!1), B = _(!1), U = _(s.topOp), j = _(JSON.parse(JSON.stringify(s.filterCards)));
|
|
7294
|
+
Y(() => s.topOp, (b) => U.value = b), Y(() => s.filterCards, (b) => j.value = JSON.parse(JSON.stringify(b))), Y(() => s.filterCount, () => R());
|
|
7295
|
+
const $ = _(null), w = _("");
|
|
7296
|
+
ae(() => s.planFilterOptions && s.planFilterOptions.length > 0 ? s.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]);
|
|
7297
|
+
const T = (b) => {
|
|
7298
|
+
const r = s.planFilterOptions.find((S) => S.value === b);
|
|
7299
|
+
r && I(r);
|
|
7300
|
+
}, I = (b) => {
|
|
7297
7301
|
if (!b.precepts || b.precepts.length === 0) return;
|
|
7298
|
-
if (
|
|
7299
|
-
const
|
|
7300
|
-
|
|
7302
|
+
if ($.value = b, w.value = b.value, j.value = JSON.parse(JSON.stringify(b.precepts)), U.value = b.sqlConnectType, s.filterCount > 0) {
|
|
7303
|
+
const F = b.precepts[0];
|
|
7304
|
+
F && F.conditions && (m.value = Array.from({ length: s.filterCount }, (K, L) => F.conditions[L] ? JSON.parse(JSON.stringify(F.conditions[L])) : A()));
|
|
7301
7305
|
}
|
|
7302
|
-
const
|
|
7303
|
-
if (
|
|
7304
|
-
const
|
|
7305
|
-
|
|
7306
|
+
const r = a(b.precepts), S = v(r, b.sqlConnectType);
|
|
7307
|
+
if (C("confirm", S), C("search", S), b.columns && b.columns.length > 0) {
|
|
7308
|
+
const F = b.columns.filter((K) => K.show !== !1);
|
|
7309
|
+
C("column-change", F);
|
|
7306
7310
|
}
|
|
7307
|
-
}, E = () => {
|
|
7308
|
-
|
|
7311
|
+
}, E = (b, r) => {
|
|
7312
|
+
b === "delete" ? C("delete-plan", r) : b === "copy" ? C("copy-plan", r) : b === "setDefault" && C("set-default-plan", r);
|
|
7309
7313
|
}, c = () => {
|
|
7310
|
-
|
|
7311
|
-
|
|
7314
|
+
f();
|
|
7315
|
+
}, f = () => {
|
|
7316
|
+
if (s.filterCount === 0) {
|
|
7317
|
+
C("search", { conditions: { and: [] } });
|
|
7312
7318
|
return;
|
|
7313
7319
|
}
|
|
7314
|
-
const b =
|
|
7315
|
-
{ id: 1, connector:
|
|
7316
|
-
]),
|
|
7317
|
-
|
|
7318
|
-
},
|
|
7319
|
-
|
|
7320
|
-
},
|
|
7321
|
-
|
|
7322
|
-
},
|
|
7323
|
-
|
|
7324
|
-
},
|
|
7325
|
-
const
|
|
7326
|
-
let
|
|
7327
|
-
return
|
|
7328
|
-
field:
|
|
7329
|
-
operator:
|
|
7330
|
-
value:
|
|
7320
|
+
const b = a([
|
|
7321
|
+
{ id: 1, connector: U.value, conditions: m.value }
|
|
7322
|
+
]), r = v(b, "and");
|
|
7323
|
+
C("search", r);
|
|
7324
|
+
}, o = () => {
|
|
7325
|
+
J.value = !0;
|
|
7326
|
+
}, q = () => {
|
|
7327
|
+
C("refresh");
|
|
7328
|
+
}, p = () => {
|
|
7329
|
+
J.value = !1;
|
|
7330
|
+
}, a = (b) => b.map((r) => {
|
|
7331
|
+
const S = r.conditions.filter((F) => !(!F.field || F.field.trim() === "" || F.value === null || F.value === void 0 || F.value === "" || Array.isArray(F.value) && F.value.length === 0)).map((F) => {
|
|
7332
|
+
let K = "";
|
|
7333
|
+
return F.value !== null && F.value !== void 0 && (Array.isArray(F.value) ? K = F.value.join("/") : K = String(F.value).trim()), {
|
|
7334
|
+
field: F.field.trim(),
|
|
7335
|
+
operator: F.operator || "eq",
|
|
7336
|
+
value: K
|
|
7331
7337
|
};
|
|
7332
7338
|
});
|
|
7333
7339
|
return {
|
|
7334
|
-
...
|
|
7335
|
-
connector:
|
|
7336
|
-
conditions:
|
|
7340
|
+
...r,
|
|
7341
|
+
connector: r.connector || "and",
|
|
7342
|
+
conditions: S.length > 0 ? S : [{ field: "", operator: "eq", value: "" }]
|
|
7337
7343
|
};
|
|
7338
|
-
}).filter((
|
|
7339
|
-
function
|
|
7340
|
-
if (
|
|
7344
|
+
}).filter((r) => r.conditions.length > 0 && r.conditions[0].field !== "");
|
|
7345
|
+
function v(b, r) {
|
|
7346
|
+
if (r !== "and" && r !== "or")
|
|
7341
7347
|
throw new Error('type参数必须是"and"或"or"');
|
|
7342
|
-
function
|
|
7348
|
+
function S(L) {
|
|
7343
7349
|
return {
|
|
7344
|
-
[
|
|
7345
|
-
[
|
|
7350
|
+
[L.field]: {
|
|
7351
|
+
[L.operator]: L.value
|
|
7346
7352
|
}
|
|
7347
7353
|
};
|
|
7348
7354
|
}
|
|
7349
|
-
function
|
|
7350
|
-
return
|
|
7351
|
-
[
|
|
7355
|
+
function F(L) {
|
|
7356
|
+
return L.conditions.length === 1 ? S(L.conditions[0]) : {
|
|
7357
|
+
[L.connector]: L.conditions.map(S)
|
|
7352
7358
|
};
|
|
7353
7359
|
}
|
|
7354
7360
|
return {
|
|
7355
7361
|
conditions: {
|
|
7356
|
-
[
|
|
7362
|
+
[r]: b.map(F)
|
|
7357
7363
|
}
|
|
7358
7364
|
};
|
|
7359
7365
|
}
|
|
7360
|
-
const
|
|
7361
|
-
|
|
7362
|
-
}, g = () => {
|
|
7363
|
-
z.value = !1;
|
|
7366
|
+
const g = (b) => {
|
|
7367
|
+
$.value ? (x.value = "更新筛选方案", H.value.name = $.value.content || "") : (x.value = "保存筛选方案", H.value.name = "", $.value = null), k.value = !0;
|
|
7364
7368
|
}, l = () => {
|
|
7365
|
-
|
|
7369
|
+
k.value = !1;
|
|
7370
|
+
}, t = () => {
|
|
7371
|
+
e(), $.value = null, w.value = "", j.value = [
|
|
7366
7372
|
{
|
|
7367
7373
|
id: 1,
|
|
7368
7374
|
connector: "and",
|
|
@@ -7371,64 +7377,64 @@ const Ve = [
|
|
|
7371
7377
|
{ field: "", operator: "eq", value: "" }
|
|
7372
7378
|
]
|
|
7373
7379
|
}
|
|
7374
|
-
],
|
|
7375
|
-
},
|
|
7376
|
-
const b =
|
|
7377
|
-
if (
|
|
7378
|
-
|
|
7379
|
-
const
|
|
7380
|
-
m.value.forEach((
|
|
7381
|
-
|
|
7382
|
-
}),
|
|
7380
|
+
], U.value = "and", C("reset"), f();
|
|
7381
|
+
}, y = () => {
|
|
7382
|
+
const b = H.value.name.trim(), r = JSON.parse(JSON.stringify(j.value));
|
|
7383
|
+
if (s.filterCount > 0 && m.value.length > 0) {
|
|
7384
|
+
r[0] || (r[0] = { id: 1, connector: "and", conditions: [] });
|
|
7385
|
+
const S = r[0].conditions || [];
|
|
7386
|
+
m.value.forEach((F, K) => {
|
|
7387
|
+
F.field && F.field.trim() !== "" && (S[K] = JSON.parse(JSON.stringify(F)));
|
|
7388
|
+
}), r[0].conditions = S;
|
|
7383
7389
|
}
|
|
7384
|
-
if (
|
|
7385
|
-
const
|
|
7386
|
-
|
|
7390
|
+
if ($.value) {
|
|
7391
|
+
const S = a(r);
|
|
7392
|
+
C("update-plan", {
|
|
7387
7393
|
name: b,
|
|
7388
|
-
precepts:
|
|
7389
|
-
topOp:
|
|
7390
|
-
plan:
|
|
7391
|
-
columns:
|
|
7394
|
+
precepts: S,
|
|
7395
|
+
topOp: U.value,
|
|
7396
|
+
plan: $.value,
|
|
7397
|
+
columns: s.visibleColumns || []
|
|
7392
7398
|
});
|
|
7393
7399
|
} else {
|
|
7394
|
-
const
|
|
7395
|
-
|
|
7400
|
+
const S = a(r);
|
|
7401
|
+
C("save-plan", {
|
|
7396
7402
|
name: b,
|
|
7397
|
-
precepts:
|
|
7398
|
-
topOp:
|
|
7399
|
-
plan:
|
|
7400
|
-
columns:
|
|
7403
|
+
precepts: S,
|
|
7404
|
+
topOp: U.value,
|
|
7405
|
+
plan: $.value,
|
|
7406
|
+
columns: s.visibleColumns || []
|
|
7401
7407
|
});
|
|
7402
7408
|
}
|
|
7403
|
-
|
|
7404
|
-
},
|
|
7405
|
-
const
|
|
7406
|
-
if (
|
|
7407
|
-
const
|
|
7408
|
-
|
|
7409
|
+
l();
|
|
7410
|
+
}, O = (b) => {
|
|
7411
|
+
const r = v(b.filterCards, b.type1);
|
|
7412
|
+
if (C("confirm", r), s.filterCount > 0) {
|
|
7413
|
+
const S = b.filterCards[0];
|
|
7414
|
+
S && S.conditions && (m.value = Array.from({ length: s.filterCount }, (F, K) => S.conditions[K] ? JSON.parse(JSON.stringify(S.conditions[K])) : A()));
|
|
7409
7415
|
}
|
|
7410
|
-
|
|
7411
|
-
},
|
|
7412
|
-
|
|
7413
|
-
},
|
|
7414
|
-
|
|
7415
|
-
},
|
|
7416
|
-
|
|
7416
|
+
p();
|
|
7417
|
+
}, k = _(!1), H = _({ name: "" }), X = _(!1), ee = _([]), ne = () => {
|
|
7418
|
+
X.value = !0;
|
|
7419
|
+
}, oe = (b) => {
|
|
7420
|
+
ee.value = b, C("color-filter-change", b);
|
|
7421
|
+
}, ie = () => {
|
|
7422
|
+
ee.value = [], C("color-filter-clear");
|
|
7417
7423
|
};
|
|
7418
7424
|
_("");
|
|
7419
|
-
const
|
|
7420
|
-
|
|
7421
|
-
},
|
|
7422
|
-
(
|
|
7423
|
-
)),
|
|
7424
|
-
const b =
|
|
7425
|
+
const V = (b) => {
|
|
7426
|
+
C("smart-colors-change", b);
|
|
7427
|
+
}, Ce = ae(() => ee.value.filter((b) => b.field && b.operator && b.value).length), he = ae(() => m.value.some((r) => r.field && r.field.trim() !== "") ? !0 : j.value.some(
|
|
7428
|
+
(r) => r.conditions.some((S) => S.field && S.field.trim() !== "")
|
|
7429
|
+
)), _e = ae(() => {
|
|
7430
|
+
const b = ee.value.filter((S) => S.field && S.operator && S.value);
|
|
7425
7431
|
return b.length === 0 ? "颜色筛选" : `
|
|
7426
|
-
${b.map((
|
|
7427
|
-
const
|
|
7428
|
-
return `${
|
|
7432
|
+
${b.map((S) => {
|
|
7433
|
+
const F = s.fieldOptions.find((L) => L.value === S.field);
|
|
7434
|
+
return `${F ? F.label : S.field} ${ke(S.operator)} ${S.value}`;
|
|
7429
7435
|
}).join(`
|
|
7430
7436
|
`)}`;
|
|
7431
|
-
}),
|
|
7437
|
+
}), ke = (b) => ({
|
|
7432
7438
|
eq: "等于",
|
|
7433
7439
|
ne: "不等于",
|
|
7434
7440
|
gt: "大于",
|
|
@@ -7438,98 +7444,111 @@ ${b.map(($) => {
|
|
|
7438
7444
|
contains: "包含",
|
|
7439
7445
|
notContains: "不包含"
|
|
7440
7446
|
})[b] || b;
|
|
7441
|
-
return (b,
|
|
7442
|
-
const
|
|
7443
|
-
return
|
|
7444
|
-
i("div",
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
(
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7447
|
+
return (b, r) => {
|
|
7448
|
+
const S = z("t-dropdown"), F = z("t-button"), K = z("t-icon"), L = z("t-badge"), ve = z("t-tooltip"), ze = z("t-input"), Oe = z("t-form-item"), Fe = z("t-form"), we = z("t-dialog");
|
|
7449
|
+
return h(), P("div", Ma, [
|
|
7450
|
+
i("div", Ia, [
|
|
7451
|
+
me(b.$slots, "head-left", {}, void 0, !0),
|
|
7452
|
+
d.planFilterOptions && d.planFilterOptions.length > 0 ? (h(), P("div", Ha, [
|
|
7453
|
+
(h(!0), P(W, null, Z(d.planFilterOptions, (D) => (h(), P("div", {
|
|
7454
|
+
key: D.value,
|
|
7455
|
+
class: se(["plan-radio-item", { active: w.value === D.value }]),
|
|
7456
|
+
onClick: (te) => !D.disabled && T(D.value)
|
|
7457
|
+
}, [
|
|
7458
|
+
i("span", La, ue(D.content), 1),
|
|
7459
|
+
n(S, {
|
|
7460
|
+
options: [
|
|
7461
|
+
{ content: "设为默认", value: "setDefault" },
|
|
7462
|
+
{ content: "复制方案", value: "copy" },
|
|
7463
|
+
{ content: "删除方案", value: "delete", theme: "error" }
|
|
7464
|
+
],
|
|
7465
|
+
trigger: "click",
|
|
7466
|
+
placement: "bottom-right",
|
|
7467
|
+
onClick: (te) => E(te.value, D),
|
|
7468
|
+
popupProps: "{ zIndex: 9999 }"
|
|
7457
7469
|
}, {
|
|
7458
|
-
default:
|
|
7459
|
-
|
|
7470
|
+
default: u(() => [
|
|
7471
|
+
i("span", {
|
|
7472
|
+
class: "plan-radio-more",
|
|
7473
|
+
onClick: r[0] || (r[0] = $e(() => {
|
|
7474
|
+
}, ["stop"]))
|
|
7475
|
+
}, [...r[15] || (r[15] = [
|
|
7476
|
+
i("i", { class: "ri-more-line" }, null, -1)
|
|
7477
|
+
])])
|
|
7460
7478
|
]),
|
|
7461
|
-
_:
|
|
7462
|
-
},
|
|
7463
|
-
]),
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7479
|
+
_: 1
|
|
7480
|
+
}, 8, ["onClick"])
|
|
7481
|
+
], 10, Ka))), 128))
|
|
7482
|
+
])) : Q("", !0),
|
|
7483
|
+
i("div", Ya, [
|
|
7484
|
+
me(b.$slots, "head-right", {}, void 0, !0)
|
|
7485
|
+
])
|
|
7467
7486
|
]),
|
|
7468
|
-
i("div",
|
|
7469
|
-
|
|
7487
|
+
i("div", Ga, [
|
|
7488
|
+
n(F, {
|
|
7470
7489
|
theme: "default",
|
|
7471
7490
|
variant: "outline",
|
|
7472
|
-
size:
|
|
7473
|
-
onClick:
|
|
7491
|
+
size: d.size,
|
|
7492
|
+
onClick: r[1] || (r[1] = (D) => B.value = !0),
|
|
7474
7493
|
title: "列配置"
|
|
7475
7494
|
}, {
|
|
7476
|
-
icon:
|
|
7495
|
+
icon: u(() => [...r[16] || (r[16] = [
|
|
7477
7496
|
i("i", { class: "ri-layout-column-line" }, null, -1)
|
|
7478
7497
|
])]),
|
|
7479
7498
|
_: 1
|
|
7480
7499
|
}, 8, ["size"]),
|
|
7481
|
-
|
|
7482
|
-
(
|
|
7483
|
-
key:
|
|
7484
|
-
"field-options":
|
|
7485
|
-
size:
|
|
7486
|
-
"filter-condition": m.value[
|
|
7487
|
-
"select-options":
|
|
7488
|
-
onSearch:
|
|
7500
|
+
d.filterCount > 0 ? (h(), P("div", Wa, [
|
|
7501
|
+
(h(!0), P(W, null, Z(m.value, (D, te) => (h(), M(fe, {
|
|
7502
|
+
key: te,
|
|
7503
|
+
"field-options": d.fieldOptions,
|
|
7504
|
+
size: d.size,
|
|
7505
|
+
"filter-condition": m.value[te],
|
|
7506
|
+
"select-options": d.selectOptions,
|
|
7507
|
+
onSearch: c
|
|
7489
7508
|
}, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
|
|
7490
|
-
])) :
|
|
7491
|
-
i("div",
|
|
7492
|
-
|
|
7509
|
+
])) : Q("", !0),
|
|
7510
|
+
i("div", Qa, [
|
|
7511
|
+
d.filterCount > 0 ? (h(), M(F, {
|
|
7493
7512
|
key: 0,
|
|
7494
7513
|
theme: "primary",
|
|
7495
|
-
size:
|
|
7496
|
-
onClick:
|
|
7514
|
+
size: d.size,
|
|
7515
|
+
onClick: q,
|
|
7497
7516
|
title: "刷新"
|
|
7498
7517
|
}, {
|
|
7499
|
-
icon:
|
|
7500
|
-
|
|
7518
|
+
icon: u(() => [
|
|
7519
|
+
n(K, { name: "refresh" })
|
|
7501
7520
|
]),
|
|
7502
7521
|
_: 1
|
|
7503
|
-
}, 8, ["size"])) :
|
|
7504
|
-
|
|
7522
|
+
}, 8, ["size"])) : Q("", !0),
|
|
7523
|
+
d.filterCount > 0 ? (h(), M(F, {
|
|
7505
7524
|
key: 1,
|
|
7506
7525
|
theme: "primary",
|
|
7507
|
-
size:
|
|
7508
|
-
onClick:
|
|
7526
|
+
size: d.size,
|
|
7527
|
+
onClick: o,
|
|
7509
7528
|
title: "高级筛选"
|
|
7510
7529
|
}, {
|
|
7511
|
-
icon:
|
|
7512
|
-
|
|
7530
|
+
icon: u(() => [
|
|
7531
|
+
n(K, { name: "filter" })
|
|
7513
7532
|
]),
|
|
7514
7533
|
_: 1
|
|
7515
|
-
}, 8, ["size"])) :
|
|
7516
|
-
|
|
7534
|
+
}, 8, ["size"])) : Q("", !0),
|
|
7535
|
+
d.filterCount > 0 ? (h(), M(ve, {
|
|
7517
7536
|
key: 2,
|
|
7518
|
-
content:
|
|
7537
|
+
content: _e.value,
|
|
7519
7538
|
placement: "top"
|
|
7520
7539
|
}, {
|
|
7521
|
-
default:
|
|
7522
|
-
|
|
7523
|
-
count:
|
|
7540
|
+
default: u(() => [
|
|
7541
|
+
n(L, {
|
|
7542
|
+
count: Ce.value,
|
|
7524
7543
|
"max-count": 99
|
|
7525
7544
|
}, {
|
|
7526
|
-
default:
|
|
7527
|
-
|
|
7545
|
+
default: u(() => [
|
|
7546
|
+
n(F, {
|
|
7528
7547
|
theme: "primary",
|
|
7529
|
-
size:
|
|
7530
|
-
onClick:
|
|
7548
|
+
size: d.size,
|
|
7549
|
+
onClick: ne
|
|
7531
7550
|
}, {
|
|
7532
|
-
icon:
|
|
7551
|
+
icon: u(() => [...r[17] || (r[17] = [
|
|
7533
7552
|
i("i", { class: "ri-palette-fill" }, null, -1)
|
|
7534
7553
|
])]),
|
|
7535
7554
|
_: 1
|
|
@@ -7539,78 +7558,78 @@ ${b.map(($) => {
|
|
|
7539
7558
|
}, 8, ["count"])
|
|
7540
7559
|
]),
|
|
7541
7560
|
_: 1
|
|
7542
|
-
}, 8, ["content"])) :
|
|
7543
|
-
|
|
7561
|
+
}, 8, ["content"])) : Q("", !0),
|
|
7562
|
+
d.filterCount > 0 ? (h(), M(ve, {
|
|
7544
7563
|
key: 3,
|
|
7545
7564
|
content: "保存方案",
|
|
7546
7565
|
placement: "top"
|
|
7547
7566
|
}, {
|
|
7548
|
-
default:
|
|
7549
|
-
|
|
7567
|
+
default: u(() => [
|
|
7568
|
+
Se(n(F, {
|
|
7550
7569
|
theme: "primary",
|
|
7551
|
-
size:
|
|
7552
|
-
onClick:
|
|
7570
|
+
size: d.size,
|
|
7571
|
+
onClick: g
|
|
7553
7572
|
}, {
|
|
7554
|
-
icon:
|
|
7555
|
-
|
|
7573
|
+
icon: u(() => [
|
|
7574
|
+
n(K, { name: "bookmark" })
|
|
7556
7575
|
]),
|
|
7557
7576
|
_: 1
|
|
7558
7577
|
}, 8, ["size"]), [
|
|
7559
|
-
[
|
|
7578
|
+
[xe, he.value]
|
|
7560
7579
|
])
|
|
7561
7580
|
]),
|
|
7562
7581
|
_: 1
|
|
7563
|
-
})) :
|
|
7582
|
+
})) : Q("", !0)
|
|
7564
7583
|
]),
|
|
7565
|
-
i("div",
|
|
7566
|
-
|
|
7584
|
+
i("div", Xa, [
|
|
7585
|
+
me(b.$slots, "toolbar-right", {}, void 0, !0)
|
|
7567
7586
|
])
|
|
7568
7587
|
]),
|
|
7569
|
-
|
|
7570
|
-
visible:
|
|
7571
|
-
"onUpdate:visible":
|
|
7572
|
-
"field-options":
|
|
7573
|
-
"select-options":
|
|
7574
|
-
"plan-filter-options":
|
|
7575
|
-
"filter-cards":
|
|
7576
|
-
"top-op":
|
|
7577
|
-
size:
|
|
7578
|
-
"person-tabs":
|
|
7579
|
-
"person-organizations":
|
|
7580
|
-
"visible-columns":
|
|
7588
|
+
n(ya, {
|
|
7589
|
+
visible: J.value,
|
|
7590
|
+
"onUpdate:visible": r[2] || (r[2] = (D) => J.value = D),
|
|
7591
|
+
"field-options": d.fieldOptions,
|
|
7592
|
+
"select-options": d.selectOptions,
|
|
7593
|
+
"plan-filter-options": d.planFilterOptions,
|
|
7594
|
+
"filter-cards": j.value,
|
|
7595
|
+
"top-op": U.value,
|
|
7596
|
+
size: d.size,
|
|
7597
|
+
"person-tabs": d.personTabs,
|
|
7598
|
+
"person-organizations": d.personOrganizations,
|
|
7599
|
+
"visible-columns": d.visibleColumns,
|
|
7581
7600
|
width: "1000",
|
|
7582
|
-
onConfirm:
|
|
7583
|
-
onReset:
|
|
7584
|
-
onDeletePlan:
|
|
7585
|
-
onCopyPlan:
|
|
7586
|
-
onSetDefaultPlan:
|
|
7587
|
-
onUpdatePlan:
|
|
7588
|
-
onLoadUsers:
|
|
7589
|
-
onSearch:
|
|
7590
|
-
onDeptClick:
|
|
7591
|
-
onColumnChange:
|
|
7601
|
+
onConfirm: O,
|
|
7602
|
+
onReset: t,
|
|
7603
|
+
onDeletePlan: r[3] || (r[3] = (D) => C("delete-plan", D)),
|
|
7604
|
+
onCopyPlan: r[4] || (r[4] = (D) => C("copy-plan", D)),
|
|
7605
|
+
onSetDefaultPlan: r[5] || (r[5] = (D) => C("set-default-plan", D)),
|
|
7606
|
+
onUpdatePlan: r[6] || (r[6] = (D) => C("update-plan", D)),
|
|
7607
|
+
onLoadUsers: r[7] || (r[7] = (D) => C("load-users", D)),
|
|
7608
|
+
onSearch: r[8] || (r[8] = (D) => C("search-persons", D)),
|
|
7609
|
+
onDeptClick: r[9] || (r[9] = (D) => C("dept-click", D)),
|
|
7610
|
+
onColumnChange: r[10] || (r[10] = (D) => C("column-change", D))
|
|
7592
7611
|
}, null, 8, ["visible", "field-options", "select-options", "plan-filter-options", "filter-cards", "top-op", "size", "person-tabs", "person-organizations", "visible-columns"]),
|
|
7593
|
-
|
|
7594
|
-
header:
|
|
7595
|
-
visible:
|
|
7612
|
+
n(we, {
|
|
7613
|
+
header: x.value,
|
|
7614
|
+
visible: k.value,
|
|
7596
7615
|
width: "600px",
|
|
7597
|
-
onClose:
|
|
7616
|
+
onClose: l
|
|
7598
7617
|
}, {
|
|
7599
|
-
body:
|
|
7600
|
-
i("div",
|
|
7601
|
-
|
|
7602
|
-
data:
|
|
7618
|
+
body: u(() => [
|
|
7619
|
+
i("div", Za, [
|
|
7620
|
+
n(Fe, {
|
|
7621
|
+
data: H.value,
|
|
7603
7622
|
"label-width": "100px"
|
|
7604
7623
|
}, {
|
|
7605
|
-
default:
|
|
7606
|
-
|
|
7624
|
+
default: u(() => [
|
|
7625
|
+
n(Oe, {
|
|
7607
7626
|
label: "方案名称",
|
|
7608
7627
|
required: ""
|
|
7609
7628
|
}, {
|
|
7610
|
-
default:
|
|
7611
|
-
|
|
7612
|
-
modelValue:
|
|
7613
|
-
"onUpdate:modelValue":
|
|
7629
|
+
default: u(() => [
|
|
7630
|
+
n(ze, {
|
|
7631
|
+
modelValue: H.value.name,
|
|
7632
|
+
"onUpdate:modelValue": r[11] || (r[11] = (D) => H.value.name = D),
|
|
7614
7633
|
placeholder: "请输入筛选方案名称"
|
|
7615
7634
|
}, null, 8, ["modelValue"])
|
|
7616
7635
|
]),
|
|
@@ -7621,57 +7640,57 @@ ${b.map(($) => {
|
|
|
7621
7640
|
}, 8, ["data"])
|
|
7622
7641
|
])
|
|
7623
7642
|
]),
|
|
7624
|
-
footer:
|
|
7625
|
-
|
|
7643
|
+
footer: u(() => [
|
|
7644
|
+
n(F, {
|
|
7626
7645
|
theme: "default",
|
|
7627
|
-
onClick:
|
|
7646
|
+
onClick: l
|
|
7628
7647
|
}, {
|
|
7629
|
-
default:
|
|
7630
|
-
|
|
7648
|
+
default: u(() => [...r[18] || (r[18] = [
|
|
7649
|
+
N("取消", -1)
|
|
7631
7650
|
])]),
|
|
7632
7651
|
_: 1
|
|
7633
7652
|
}),
|
|
7634
|
-
|
|
7653
|
+
n(F, {
|
|
7635
7654
|
theme: "primary",
|
|
7636
|
-
onClick:
|
|
7655
|
+
onClick: y
|
|
7637
7656
|
}, {
|
|
7638
|
-
default:
|
|
7639
|
-
|
|
7657
|
+
default: u(() => [...r[19] || (r[19] = [
|
|
7658
|
+
N("确定", -1)
|
|
7640
7659
|
])]),
|
|
7641
7660
|
_: 1
|
|
7642
7661
|
})
|
|
7643
7662
|
]),
|
|
7644
7663
|
_: 1
|
|
7645
7664
|
}, 8, ["header", "visible"]),
|
|
7646
|
-
|
|
7647
|
-
visible:
|
|
7648
|
-
"onUpdate:visible":
|
|
7649
|
-
"field-options":
|
|
7650
|
-
"visible-columns":
|
|
7651
|
-
onColumnChange:
|
|
7665
|
+
n(ja, {
|
|
7666
|
+
visible: B.value,
|
|
7667
|
+
"onUpdate:visible": r[12] || (r[12] = (D) => B.value = D),
|
|
7668
|
+
"field-options": d.fieldOptions,
|
|
7669
|
+
"visible-columns": d.visibleColumns,
|
|
7670
|
+
onColumnChange: r[13] || (r[13] = (D) => C("column-change", D))
|
|
7652
7671
|
}, null, 8, ["visible", "field-options", "visible-columns"]),
|
|
7653
|
-
|
|
7654
|
-
visible:
|
|
7655
|
-
"onUpdate:visible":
|
|
7656
|
-
"field-options":
|
|
7657
|
-
size:
|
|
7658
|
-
"initial-rules":
|
|
7659
|
-
onConfirm:
|
|
7660
|
-
onClear:
|
|
7661
|
-
onSmartColorsChange:
|
|
7672
|
+
n(ge, {
|
|
7673
|
+
visible: X.value,
|
|
7674
|
+
"onUpdate:visible": r[14] || (r[14] = (D) => X.value = D),
|
|
7675
|
+
"field-options": d.fieldOptions,
|
|
7676
|
+
size: d.size,
|
|
7677
|
+
"initial-rules": ee.value,
|
|
7678
|
+
onConfirm: oe,
|
|
7679
|
+
onClear: ie,
|
|
7680
|
+
onSmartColorsChange: V
|
|
7662
7681
|
}, null, 8, ["visible", "field-options", "size", "initial-rules"])
|
|
7663
7682
|
]);
|
|
7664
7683
|
};
|
|
7665
7684
|
}
|
|
7666
|
-
},
|
|
7667
|
-
|
|
7685
|
+
}, al = /* @__PURE__ */ le(el, [["__scopeId", "data-v-43767da5"]]), nl = (d) => {
|
|
7686
|
+
d.component("FilterDialog", ye), d.component("FilterComponent", ye), d.component("CdFilterBar", al), d.component("ColorFilterDialog", ge);
|
|
7668
7687
|
};
|
|
7669
7688
|
export {
|
|
7670
|
-
|
|
7689
|
+
al as CdFilterBar,
|
|
7671
7690
|
ge as ColorFilterDialog,
|
|
7672
|
-
|
|
7691
|
+
ja as ColumnSettingsDialog,
|
|
7673
7692
|
ye as FilterComponent,
|
|
7674
7693
|
ye as FilterDialog,
|
|
7675
7694
|
ye as default,
|
|
7676
|
-
|
|
7695
|
+
nl as install
|
|
7677
7696
|
};
|