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