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