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