cd-vue-filter 2.3.3 → 2.3.4
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 +1002 -999
- package/dist/cd-vue-filter.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cd-vue-filter.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Be, computed as re, ref as
|
|
1
|
+
import { defineComponent as Be, computed as re, ref as _, watch as I, resolveComponent as p, createElementBlock as q, openBlock as y, createVNode as a, createBlock as j, withCtx as l, Fragment as Z, renderList as le, nextTick as Ve, createElementVNode as s, createTextVNode as w, createCommentVNode as ne, toDisplayString as ce, unref as Me, normalizeClass as Se, withModifiers as De, normalizeStyle as $e } from "vue";
|
|
2
2
|
import { MessagePlugin as de } from "tdesign-vue-next";
|
|
3
3
|
import { CdUsersList as Je } from "cd-usercard";
|
|
4
4
|
const Re = [
|
|
@@ -5537,29 +5537,29 @@ const Re = [
|
|
|
5537
5537
|
size: {}
|
|
5538
5538
|
},
|
|
5539
5539
|
emits: ["search"],
|
|
5540
|
-
setup(
|
|
5541
|
-
var
|
|
5542
|
-
const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], v = re(() => Re.map((
|
|
5543
|
-
label:
|
|
5544
|
-
value:
|
|
5545
|
-
children:
|
|
5546
|
-
label:
|
|
5547
|
-
value: `${
|
|
5540
|
+
setup(i, { emit: ee }) {
|
|
5541
|
+
var z, b, u;
|
|
5542
|
+
const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], v = re(() => Re.map((f) => d.includes(f.name) ? {
|
|
5543
|
+
label: f.name,
|
|
5544
|
+
value: f.name,
|
|
5545
|
+
children: f.city[0].area.map((c) => ({
|
|
5546
|
+
label: c,
|
|
5547
|
+
value: `${f.name}/${c}`,
|
|
5548
5548
|
children: void 0
|
|
5549
5549
|
}))
|
|
5550
5550
|
} : {
|
|
5551
|
-
label:
|
|
5552
|
-
value:
|
|
5553
|
-
children:
|
|
5554
|
-
label:
|
|
5555
|
-
value: `${
|
|
5556
|
-
children:
|
|
5557
|
-
label:
|
|
5558
|
-
value: `${
|
|
5551
|
+
label: f.name,
|
|
5552
|
+
value: f.name,
|
|
5553
|
+
children: f.city.map((c) => ({
|
|
5554
|
+
label: c.name,
|
|
5555
|
+
value: `${f.name}/${c.name}`,
|
|
5556
|
+
children: c.area.map((F) => ({
|
|
5557
|
+
label: F,
|
|
5558
|
+
value: `${f.name}/${c.name}/${F}`,
|
|
5559
5559
|
children: void 0
|
|
5560
5560
|
}))
|
|
5561
5561
|
}))
|
|
5562
|
-
})),
|
|
5562
|
+
})), o = (f) => [
|
|
5563
5563
|
"today",
|
|
5564
5564
|
"yesterday",
|
|
5565
5565
|
"tomorrow",
|
|
@@ -5572,49 +5572,49 @@ const Re = [
|
|
|
5572
5572
|
"this_year",
|
|
5573
5573
|
"last_year",
|
|
5574
5574
|
"next_year"
|
|
5575
|
-
].includes(
|
|
5576
|
-
if (
|
|
5577
|
-
return
|
|
5578
|
-
if (
|
|
5579
|
-
const
|
|
5580
|
-
(
|
|
5575
|
+
].includes(f), x = (f) => {
|
|
5576
|
+
if (r.selectOptions && r.selectOptions[f])
|
|
5577
|
+
return r.selectOptions[f];
|
|
5578
|
+
if (r.selectOptions && Array.isArray(r.selectOptions)) {
|
|
5579
|
+
const c = r.selectOptions.find(
|
|
5580
|
+
(F) => F.columnName === f
|
|
5581
5581
|
);
|
|
5582
|
-
if (
|
|
5583
|
-
return
|
|
5584
|
-
label:
|
|
5585
|
-
value:
|
|
5582
|
+
if (c && c.value)
|
|
5583
|
+
return X(c.value.map((F) => ({
|
|
5584
|
+
label: F,
|
|
5585
|
+
value: F
|
|
5586
5586
|
})));
|
|
5587
5587
|
}
|
|
5588
5588
|
return [];
|
|
5589
5589
|
};
|
|
5590
|
-
function
|
|
5591
|
-
return [...
|
|
5590
|
+
function X(f) {
|
|
5591
|
+
return [...f].sort((c, F) => c.value.localeCompare(F.value, "zh-CN"));
|
|
5592
5592
|
}
|
|
5593
|
-
const
|
|
5594
|
-
field: ((
|
|
5595
|
-
operator: ((
|
|
5596
|
-
value: ((u =
|
|
5593
|
+
const r = i, P = ee, W = _({
|
|
5594
|
+
field: ((z = r.filterCondition) == null ? void 0 : z.field) || "",
|
|
5595
|
+
operator: ((b = r.filterCondition) == null ? void 0 : b.operator) || "eq",
|
|
5596
|
+
value: ((u = r.filterCondition) == null ? void 0 : u.value) || null
|
|
5597
5597
|
});
|
|
5598
|
-
|
|
5599
|
-
|
|
5598
|
+
I(() => r.filterCondition, (f) => {
|
|
5599
|
+
f && (W.value = { ...f });
|
|
5600
5600
|
}, { deep: !0 });
|
|
5601
|
-
const
|
|
5602
|
-
const
|
|
5603
|
-
return
|
|
5604
|
-
},
|
|
5601
|
+
const A = (f) => {
|
|
5602
|
+
const c = r.fieldOptions.find((F) => F.value === f);
|
|
5603
|
+
return c ? c.type : "text";
|
|
5604
|
+
}, B = () => {
|
|
5605
5605
|
Ve(() => {
|
|
5606
|
-
|
|
5606
|
+
P("search", { ...r.filterCondition });
|
|
5607
5607
|
});
|
|
5608
5608
|
}, Y = () => {
|
|
5609
5609
|
Ve(() => {
|
|
5610
|
-
|
|
5610
|
+
P("search", { ...r.filterCondition });
|
|
5611
5611
|
});
|
|
5612
|
-
},
|
|
5613
|
-
|
|
5614
|
-
},
|
|
5615
|
-
var
|
|
5616
|
-
const
|
|
5617
|
-
switch (((
|
|
5612
|
+
}, V = (f) => {
|
|
5613
|
+
r.filterCondition.value = f, P("search", { ...r.filterCondition });
|
|
5614
|
+
}, C = re(() => {
|
|
5615
|
+
var F;
|
|
5616
|
+
const f = r.filterCondition.field;
|
|
5617
|
+
switch (((F = r.fieldOptions.find((J) => J.value === f)) == null ? void 0 : F.type) || "text") {
|
|
5618
5618
|
case "number":
|
|
5619
5619
|
return [
|
|
5620
5620
|
{ key: "eq", label: "等于", value: "eq" },
|
|
@@ -5692,139 +5692,139 @@ const Re = [
|
|
|
5692
5692
|
{ key: "ends_with", label: "结尾是", value: "ends_with" }
|
|
5693
5693
|
];
|
|
5694
5694
|
}
|
|
5695
|
-
}),
|
|
5695
|
+
}), k = () => {
|
|
5696
5696
|
Ve(() => {
|
|
5697
|
-
|
|
5697
|
+
P("search", { ...r.filterCondition });
|
|
5698
5698
|
});
|
|
5699
5699
|
};
|
|
5700
|
-
return
|
|
5701
|
-
|
|
5702
|
-
}), (
|
|
5700
|
+
return I(() => r.filterCondition.field, (f, c) => {
|
|
5701
|
+
f && c && (r.filterCondition.operator = "eq", r.filterCondition.value = null);
|
|
5702
|
+
}), (f, c) => {
|
|
5703
5703
|
var ie;
|
|
5704
|
-
const
|
|
5705
|
-
return
|
|
5706
|
-
|
|
5707
|
-
modelValue:
|
|
5708
|
-
"onUpdate:modelValue":
|
|
5704
|
+
const F = p("t-option"), J = p("t-select"), L = p("t-input"), ae = p("t-date-picker"), Q = p("t-cascader");
|
|
5705
|
+
return y(), q("div", Le, [
|
|
5706
|
+
a(J, {
|
|
5707
|
+
modelValue: r.filterCondition.field,
|
|
5708
|
+
"onUpdate:modelValue": c[0] || (c[0] = (S) => r.filterCondition.field = S),
|
|
5709
5709
|
placeholder: "请选择字段",
|
|
5710
|
-
size:
|
|
5710
|
+
size: r.size,
|
|
5711
5711
|
style: { "min-width": "80px", "max-width": "110px" },
|
|
5712
|
-
onChange:
|
|
5712
|
+
onChange: k,
|
|
5713
5713
|
filterable: ""
|
|
5714
5714
|
}, {
|
|
5715
|
-
default:
|
|
5716
|
-
(
|
|
5717
|
-
key:
|
|
5718
|
-
label:
|
|
5719
|
-
value:
|
|
5715
|
+
default: l(() => [
|
|
5716
|
+
(y(!0), q(Z, null, le(r.fieldOptions, (S) => (y(), j(F, {
|
|
5717
|
+
key: S.key,
|
|
5718
|
+
label: S.key,
|
|
5719
|
+
value: S.value
|
|
5720
5720
|
}, null, 8, ["label", "value"]))), 128))
|
|
5721
5721
|
]),
|
|
5722
5722
|
_: 1
|
|
5723
5723
|
}, 8, ["modelValue", "size"]),
|
|
5724
|
-
|
|
5725
|
-
modelValue:
|
|
5726
|
-
"onUpdate:modelValue":
|
|
5724
|
+
a(J, {
|
|
5725
|
+
modelValue: r.filterCondition.operator,
|
|
5726
|
+
"onUpdate:modelValue": c[1] || (c[1] = (S) => r.filterCondition.operator = S),
|
|
5727
5727
|
placeholder: "请选择条件",
|
|
5728
|
-
size:
|
|
5728
|
+
size: r.size,
|
|
5729
5729
|
style: { width: "80px" },
|
|
5730
5730
|
clearable: "",
|
|
5731
5731
|
onChange: Y
|
|
5732
5732
|
}, {
|
|
5733
|
-
default:
|
|
5734
|
-
(
|
|
5735
|
-
key:
|
|
5736
|
-
label:
|
|
5737
|
-
value:
|
|
5733
|
+
default: l(() => [
|
|
5734
|
+
(y(!0), q(Z, null, le(C.value, (S) => (y(), j(F, {
|
|
5735
|
+
key: S.key,
|
|
5736
|
+
label: S.label,
|
|
5737
|
+
value: S.value
|
|
5738
5738
|
}, null, 8, ["label", "value"]))), 128))
|
|
5739
5739
|
]),
|
|
5740
5740
|
_: 1
|
|
5741
5741
|
}, 8, ["modelValue", "size"]),
|
|
5742
|
-
|
|
5742
|
+
A(r.filterCondition.field) === "number" ? (y(), j(L, {
|
|
5743
5743
|
key: 0,
|
|
5744
5744
|
type: "number",
|
|
5745
|
-
modelValue:
|
|
5746
|
-
"onUpdate:modelValue":
|
|
5745
|
+
modelValue: r.filterCondition.value,
|
|
5746
|
+
"onUpdate:modelValue": c[2] || (c[2] = (S) => r.filterCondition.value = S),
|
|
5747
5747
|
placeholder: "请输入数字",
|
|
5748
|
-
size:
|
|
5748
|
+
size: r.size,
|
|
5749
5749
|
style: { width: "80px" },
|
|
5750
|
-
onChange:
|
|
5750
|
+
onChange: B,
|
|
5751
5751
|
clearable: ""
|
|
5752
|
-
}, null, 8, ["modelValue", "size"])) :
|
|
5752
|
+
}, null, 8, ["modelValue", "size"])) : A(r.filterCondition.field) === "money" ? (y(), j(L, {
|
|
5753
5753
|
key: 1,
|
|
5754
5754
|
type: "number",
|
|
5755
|
-
modelValue:
|
|
5756
|
-
"onUpdate:modelValue":
|
|
5755
|
+
modelValue: r.filterCondition.value,
|
|
5756
|
+
"onUpdate:modelValue": c[3] || (c[3] = (S) => r.filterCondition.value = S),
|
|
5757
5757
|
placeholder: "请输入金额",
|
|
5758
|
-
size:
|
|
5758
|
+
size: r.size,
|
|
5759
5759
|
style: { width: "80px" },
|
|
5760
|
-
onChange:
|
|
5760
|
+
onChange: B,
|
|
5761
5761
|
clearable: ""
|
|
5762
|
-
}, null, 8, ["modelValue", "size"])) :
|
|
5763
|
-
|
|
5762
|
+
}, null, 8, ["modelValue", "size"])) : A(r.filterCondition.field) === "date" ? (y(), q(Z, { key: 2 }, [
|
|
5763
|
+
o(r.filterCondition.operator) ? (y(), j(L, {
|
|
5764
5764
|
key: 1,
|
|
5765
|
-
value: (ie =
|
|
5765
|
+
value: (ie = C.value.find((S) => S.value === r.filterCondition.operator)) == null ? void 0 : ie.label,
|
|
5766
5766
|
disabled: "",
|
|
5767
|
-
size:
|
|
5767
|
+
size: r.size,
|
|
5768
5768
|
style: { "min-width": "80px", "max-width": "120px" }
|
|
5769
|
-
}, null, 8, ["value", "size"])) : (
|
|
5769
|
+
}, null, 8, ["value", "size"])) : (y(), j(ae, {
|
|
5770
5770
|
key: 0,
|
|
5771
|
-
modelValue:
|
|
5772
|
-
"onUpdate:modelValue":
|
|
5771
|
+
modelValue: r.filterCondition.value,
|
|
5772
|
+
"onUpdate:modelValue": c[4] || (c[4] = (S) => r.filterCondition.value = S),
|
|
5773
5773
|
placeholder: "请选择日期",
|
|
5774
|
-
size:
|
|
5774
|
+
size: r.size,
|
|
5775
5775
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
5776
|
-
onChange:
|
|
5776
|
+
onChange: B,
|
|
5777
5777
|
clearable: ""
|
|
5778
5778
|
}, null, 8, ["modelValue", "size"]))
|
|
5779
|
-
], 64)) :
|
|
5779
|
+
], 64)) : A(r.filterCondition.field) === "time" ? (y(), j(ae, {
|
|
5780
5780
|
key: 3,
|
|
5781
|
-
modelValue:
|
|
5782
|
-
"onUpdate:modelValue":
|
|
5781
|
+
modelValue: r.filterCondition.value,
|
|
5782
|
+
"onUpdate:modelValue": c[5] || (c[5] = (S) => r.filterCondition.value = S),
|
|
5783
5783
|
placeholder: "请选择日期时间",
|
|
5784
|
-
size:
|
|
5784
|
+
size: r.size,
|
|
5785
5785
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
5786
5786
|
"enable-time-picker": "",
|
|
5787
5787
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
5788
|
-
onChange:
|
|
5788
|
+
onChange: B,
|
|
5789
5789
|
clearable: ""
|
|
5790
|
-
}, null, 8, ["modelValue", "size"])) :
|
|
5790
|
+
}, null, 8, ["modelValue", "size"])) : A(r.filterCondition.field) === "select" ? (y(), j(J, {
|
|
5791
5791
|
key: 4,
|
|
5792
|
-
modelValue:
|
|
5793
|
-
"onUpdate:modelValue":
|
|
5794
|
-
options:
|
|
5792
|
+
modelValue: r.filterCondition.value,
|
|
5793
|
+
"onUpdate:modelValue": c[6] || (c[6] = (S) => r.filterCondition.value = S),
|
|
5794
|
+
options: x(r.filterCondition.field),
|
|
5795
5795
|
placeholder: "请选择",
|
|
5796
|
-
size:
|
|
5796
|
+
size: r.size,
|
|
5797
5797
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
5798
|
-
onChange:
|
|
5798
|
+
onChange: B,
|
|
5799
5799
|
clearable: ""
|
|
5800
|
-
}, null, 8, ["modelValue", "options", "size"])) :
|
|
5800
|
+
}, null, 8, ["modelValue", "options", "size"])) : A(r.filterCondition.field) === "selectProvince" ? (y(), j(Q, {
|
|
5801
5801
|
key: 5,
|
|
5802
|
-
modelValue:
|
|
5803
|
-
"onUpdate:modelValue":
|
|
5802
|
+
modelValue: r.filterCondition.value,
|
|
5803
|
+
"onUpdate:modelValue": c[7] || (c[7] = (S) => r.filterCondition.value = S),
|
|
5804
5804
|
options: v.value,
|
|
5805
5805
|
placeholder: "请选择地区",
|
|
5806
|
-
size:
|
|
5806
|
+
size: r.size,
|
|
5807
5807
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
5808
5808
|
clearable: "",
|
|
5809
5809
|
loading: !1,
|
|
5810
|
-
onChange:
|
|
5811
|
-
}, null, 8, ["modelValue", "options", "size"])) : (
|
|
5810
|
+
onChange: V
|
|
5811
|
+
}, null, 8, ["modelValue", "options", "size"])) : (y(), j(L, {
|
|
5812
5812
|
key: 6,
|
|
5813
|
-
modelValue:
|
|
5814
|
-
"onUpdate:modelValue":
|
|
5813
|
+
modelValue: r.filterCondition.value,
|
|
5814
|
+
"onUpdate:modelValue": c[8] || (c[8] = (S) => r.filterCondition.value = S),
|
|
5815
5815
|
placeholder: "请输入关键字",
|
|
5816
|
-
size:
|
|
5816
|
+
size: r.size,
|
|
5817
5817
|
style: { "min-width": "80px", "max-width": "100px" },
|
|
5818
|
-
onChange:
|
|
5818
|
+
onChange: B,
|
|
5819
5819
|
clearable: ""
|
|
5820
5820
|
}, null, 8, ["modelValue", "size"]))
|
|
5821
5821
|
]);
|
|
5822
5822
|
};
|
|
5823
5823
|
}
|
|
5824
|
-
}), ue = (
|
|
5825
|
-
const d =
|
|
5826
|
-
for (const [v,
|
|
5827
|
-
d[v] =
|
|
5824
|
+
}), ue = (i, ee) => {
|
|
5825
|
+
const d = i.__vccOpts || i;
|
|
5826
|
+
for (const [v, o] of ee)
|
|
5827
|
+
d[v] = o;
|
|
5828
5828
|
return d;
|
|
5829
5829
|
}, Ue = /* @__PURE__ */ ue(He, [["__scopeId", "data-v-8f6272e8"]]), je = { class: "filter-dialog-content" }, Ye = { class: "leader-line-container" }, Ge = {
|
|
5830
5830
|
class: "filter-scroll-wrapper",
|
|
@@ -5864,8 +5864,8 @@ const Re = [
|
|
|
5864
5864
|
"submit",
|
|
5865
5865
|
"close"
|
|
5866
5866
|
],
|
|
5867
|
-
setup(
|
|
5868
|
-
const d =
|
|
5867
|
+
setup(i, { emit: ee }) {
|
|
5868
|
+
const d = i, v = ee, o = _([
|
|
5869
5869
|
{
|
|
5870
5870
|
id: 1,
|
|
5871
5871
|
connector: "and",
|
|
@@ -5873,76 +5873,76 @@ const Re = [
|
|
|
5873
5873
|
{ field: "", operator: "eq", value: "" }
|
|
5874
5874
|
]
|
|
5875
5875
|
}
|
|
5876
|
-
]),
|
|
5877
|
-
let
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
}, { immediate: !0, deep: !0 }),
|
|
5881
|
-
|
|
5876
|
+
]), x = _("and");
|
|
5877
|
+
let X = 3;
|
|
5878
|
+
I(() => d.initialFilterCards, (V) => {
|
|
5879
|
+
V && V.length > 0 && (o.value = V);
|
|
5880
|
+
}, { immediate: !0, deep: !0 }), I(() => d.initialType1, (V) => {
|
|
5881
|
+
V && (x.value = V);
|
|
5882
5882
|
}, { immediate: !0 });
|
|
5883
|
-
const
|
|
5884
|
-
|
|
5885
|
-
id:
|
|
5883
|
+
const r = () => {
|
|
5884
|
+
o.value.push({
|
|
5885
|
+
id: X++,
|
|
5886
5886
|
connector: "and",
|
|
5887
5887
|
conditions: [{ field: "", operator: "eq", value: "" }]
|
|
5888
5888
|
});
|
|
5889
|
-
},
|
|
5890
|
-
|
|
5889
|
+
}, P = (V) => {
|
|
5890
|
+
V >= 0 && V < o.value.length && o.value[V].conditions.push({
|
|
5891
5891
|
field: "",
|
|
5892
5892
|
operator: "eq",
|
|
5893
5893
|
value: ""
|
|
5894
5894
|
});
|
|
5895
|
-
},
|
|
5896
|
-
if (
|
|
5897
|
-
const
|
|
5898
|
-
|
|
5895
|
+
}, W = (V, C) => {
|
|
5896
|
+
if (V >= 0 && V < o.value.length) {
|
|
5897
|
+
const k = o.value[V];
|
|
5898
|
+
k.conditions.length > 1 && C >= 0 && C < k.conditions.length ? k.conditions.splice(C, 1) : k.conditions.length <= 1 && de.warning("每个卡片至少需要一个筛选条件");
|
|
5899
5899
|
}
|
|
5900
|
-
},
|
|
5901
|
-
|
|
5902
|
-
},
|
|
5900
|
+
}, A = (V) => {
|
|
5901
|
+
o.value.length > 1 ? o.value.splice(V, 1) : de.warning("至少需要保留一个筛选卡片");
|
|
5902
|
+
}, B = () => {
|
|
5903
5903
|
v("submit", {
|
|
5904
|
-
filterCards:
|
|
5905
|
-
type1:
|
|
5904
|
+
filterCards: o.value,
|
|
5905
|
+
type1: x.value
|
|
5906
5906
|
});
|
|
5907
5907
|
}, Y = () => {
|
|
5908
5908
|
v("close"), v("update:visible", !1);
|
|
5909
5909
|
};
|
|
5910
|
-
return (
|
|
5911
|
-
const
|
|
5912
|
-
return
|
|
5910
|
+
return (V, C) => {
|
|
5911
|
+
const k = p("t-radio-button"), z = p("t-radio-group"), b = p("t-icon"), u = p("t-button"), f = p("t-dialog");
|
|
5912
|
+
return y(), j(f, {
|
|
5913
5913
|
header: "筛选条件设置",
|
|
5914
5914
|
placement: "center",
|
|
5915
|
-
visible:
|
|
5916
|
-
"onUpdate:visible":
|
|
5915
|
+
visible: i.visible,
|
|
5916
|
+
"onUpdate:visible": C[1] || (C[1] = (c) => V.$emit("update:visible", c)),
|
|
5917
5917
|
width: "700px",
|
|
5918
5918
|
"z-index": 999,
|
|
5919
5919
|
footer: !0,
|
|
5920
5920
|
onClose: Y,
|
|
5921
5921
|
id: "leader-line-clip-container"
|
|
5922
5922
|
}, {
|
|
5923
|
-
body:
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5923
|
+
body: l(() => [
|
|
5924
|
+
s("div", je, [
|
|
5925
|
+
s("div", Ye, [
|
|
5926
|
+
s("div", Ge, [
|
|
5927
|
+
o.value.length > 1 ? (y(), q("div", We, [
|
|
5928
|
+
s("div", Ke, [
|
|
5929
|
+
a(z, {
|
|
5930
5930
|
size: "small",
|
|
5931
5931
|
class: "connector-selector",
|
|
5932
|
-
modelValue:
|
|
5933
|
-
"onUpdate:modelValue":
|
|
5932
|
+
modelValue: x.value,
|
|
5933
|
+
"onUpdate:modelValue": C[0] || (C[0] = (c) => x.value = c),
|
|
5934
5934
|
style: { "margin-right": "20px" }
|
|
5935
5935
|
}, {
|
|
5936
|
-
default:
|
|
5937
|
-
|
|
5938
|
-
default:
|
|
5939
|
-
|
|
5936
|
+
default: l(() => [
|
|
5937
|
+
a(k, { value: "and" }, {
|
|
5938
|
+
default: l(() => [...C[2] || (C[2] = [
|
|
5939
|
+
w("且", -1)
|
|
5940
5940
|
])]),
|
|
5941
5941
|
_: 1
|
|
5942
5942
|
}),
|
|
5943
|
-
|
|
5944
|
-
default:
|
|
5945
|
-
|
|
5943
|
+
a(k, { value: "or" }, {
|
|
5944
|
+
default: l(() => [...C[3] || (C[3] = [
|
|
5945
|
+
w("或", -1)
|
|
5946
5946
|
])]),
|
|
5947
5947
|
_: 1
|
|
5948
5948
|
})
|
|
@@ -5950,32 +5950,32 @@ const Re = [
|
|
|
5950
5950
|
_: 1
|
|
5951
5951
|
}, 8, ["modelValue"])
|
|
5952
5952
|
])
|
|
5953
|
-
])) :
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
(
|
|
5957
|
-
key:
|
|
5953
|
+
])) : ne("", !0),
|
|
5954
|
+
s("div", Qe, [
|
|
5955
|
+
s("div", Xe, [
|
|
5956
|
+
(y(!0), q(Z, null, le(o.value, (c, F) => (y(), q("div", {
|
|
5957
|
+
key: c.id,
|
|
5958
5958
|
class: "filter-card-item"
|
|
5959
5959
|
}, [
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5960
|
+
s("div", Ze, [
|
|
5961
|
+
s("div", Ie, [
|
|
5962
|
+
s("span", ea, "筛选卡片 " + ce(F + 1), 1),
|
|
5963
|
+
a(z, {
|
|
5964
5964
|
size: "small",
|
|
5965
|
-
modelValue:
|
|
5966
|
-
"onUpdate:modelValue": (J) =>
|
|
5965
|
+
modelValue: c.connector,
|
|
5966
|
+
"onUpdate:modelValue": (J) => c.connector = J,
|
|
5967
5967
|
class: "connector-selector"
|
|
5968
5968
|
}, {
|
|
5969
|
-
default:
|
|
5970
|
-
|
|
5971
|
-
default:
|
|
5972
|
-
|
|
5969
|
+
default: l(() => [
|
|
5970
|
+
a(k, { value: "and" }, {
|
|
5971
|
+
default: l(() => [...C[4] || (C[4] = [
|
|
5972
|
+
w("且", -1)
|
|
5973
5973
|
])]),
|
|
5974
5974
|
_: 1
|
|
5975
5975
|
}),
|
|
5976
|
-
|
|
5977
|
-
default:
|
|
5978
|
-
|
|
5976
|
+
a(k, { value: "or" }, {
|
|
5977
|
+
default: l(() => [...C[5] || (C[5] = [
|
|
5978
|
+
w("或", -1)
|
|
5979
5979
|
])]),
|
|
5980
5980
|
_: 1
|
|
5981
5981
|
})
|
|
@@ -5983,68 +5983,68 @@ const Re = [
|
|
|
5983
5983
|
_: 1
|
|
5984
5984
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
5985
5985
|
]),
|
|
5986
|
-
|
|
5986
|
+
a(u, {
|
|
5987
5987
|
theme: "default",
|
|
5988
5988
|
variant: "text",
|
|
5989
5989
|
size: "small",
|
|
5990
|
-
onClick: (J) =>
|
|
5991
|
-
disabled:
|
|
5990
|
+
onClick: (J) => A(F),
|
|
5991
|
+
disabled: o.value.length === 1
|
|
5992
5992
|
}, {
|
|
5993
|
-
icon:
|
|
5994
|
-
|
|
5993
|
+
icon: l(() => [
|
|
5994
|
+
a(b, { name: "close" })
|
|
5995
5995
|
]),
|
|
5996
5996
|
_: 1
|
|
5997
5997
|
}, 8, ["onClick", "disabled"])
|
|
5998
5998
|
]),
|
|
5999
|
-
|
|
6000
|
-
(
|
|
6001
|
-
key:
|
|
5999
|
+
s("div", aa, [
|
|
6000
|
+
(y(!0), q(Z, null, le(c.conditions, (J, L) => (y(), q("div", {
|
|
6001
|
+
key: L,
|
|
6002
6002
|
class: "filter-combination"
|
|
6003
6003
|
}, [
|
|
6004
|
-
|
|
6005
|
-
"field-options":
|
|
6006
|
-
"filter-condition":
|
|
6007
|
-
index:
|
|
6004
|
+
a(Ue, {
|
|
6005
|
+
"field-options": i.fieldOptions,
|
|
6006
|
+
"filter-condition": c.conditions[L],
|
|
6007
|
+
index: L,
|
|
6008
6008
|
"select-options": [],
|
|
6009
|
-
size:
|
|
6009
|
+
size: i.size
|
|
6010
6010
|
}, null, 8, ["field-options", "filter-condition", "index", "size"]),
|
|
6011
|
-
|
|
6011
|
+
a(u, {
|
|
6012
6012
|
theme: "default",
|
|
6013
6013
|
variant: "text",
|
|
6014
6014
|
size: "small",
|
|
6015
|
-
onClick: (
|
|
6016
|
-
disabled:
|
|
6015
|
+
onClick: (ae) => W(F, L),
|
|
6016
|
+
disabled: c.conditions.length === 1
|
|
6017
6017
|
}, {
|
|
6018
|
-
icon:
|
|
6019
|
-
|
|
6018
|
+
icon: l(() => [
|
|
6019
|
+
a(b, { name: "minus" })
|
|
6020
6020
|
]),
|
|
6021
6021
|
_: 1
|
|
6022
6022
|
}, 8, ["onClick", "disabled"])
|
|
6023
6023
|
]))), 128)),
|
|
6024
|
-
|
|
6025
|
-
|
|
6024
|
+
s("div", la, [
|
|
6025
|
+
a(u, {
|
|
6026
6026
|
theme: "default",
|
|
6027
6027
|
size: "small",
|
|
6028
|
-
onClick: (J) =>
|
|
6028
|
+
onClick: (J) => P(F)
|
|
6029
6029
|
}, {
|
|
6030
|
-
icon:
|
|
6031
|
-
|
|
6030
|
+
icon: l(() => [
|
|
6031
|
+
a(b, { name: "add" })
|
|
6032
6032
|
]),
|
|
6033
|
-
default:
|
|
6034
|
-
|
|
6033
|
+
default: l(() => [
|
|
6034
|
+
C[6] || (C[6] = w(" 添加条件 ", -1))
|
|
6035
6035
|
]),
|
|
6036
6036
|
_: 1
|
|
6037
6037
|
}, 8, ["onClick"])
|
|
6038
6038
|
])
|
|
6039
6039
|
])
|
|
6040
6040
|
]))), 128)),
|
|
6041
|
-
|
|
6041
|
+
s("div", {
|
|
6042
6042
|
class: "add-filter-card",
|
|
6043
|
-
onClick:
|
|
6043
|
+
onClick: r
|
|
6044
6044
|
}, [
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6045
|
+
s("div", ta, [
|
|
6046
|
+
a(b, { name: "add" }),
|
|
6047
|
+
C[7] || (C[7] = s("span", null, "增加筛选卡片", -1))
|
|
6048
6048
|
])
|
|
6049
6049
|
])
|
|
6050
6050
|
])
|
|
@@ -6053,25 +6053,25 @@ const Re = [
|
|
|
6053
6053
|
])
|
|
6054
6054
|
])
|
|
6055
6055
|
]),
|
|
6056
|
-
footer:
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6056
|
+
footer: l(() => [
|
|
6057
|
+
s("div", na, [
|
|
6058
|
+
C[10] || (C[10] = s("div", { class: "filter-dialog-footer2" }, null, -1)),
|
|
6059
|
+
s("div", oa, [
|
|
6060
|
+
a(u, {
|
|
6061
6061
|
theme: "default",
|
|
6062
6062
|
onClick: Y
|
|
6063
6063
|
}, {
|
|
6064
|
-
default:
|
|
6065
|
-
|
|
6064
|
+
default: l(() => [...C[8] || (C[8] = [
|
|
6065
|
+
w("取消", -1)
|
|
6066
6066
|
])]),
|
|
6067
6067
|
_: 1
|
|
6068
6068
|
}),
|
|
6069
|
-
|
|
6069
|
+
a(u, {
|
|
6070
6070
|
theme: "primary",
|
|
6071
|
-
onClick:
|
|
6071
|
+
onClick: B
|
|
6072
6072
|
}, {
|
|
6073
|
-
default:
|
|
6074
|
-
|
|
6073
|
+
default: l(() => [...C[9] || (C[9] = [
|
|
6074
|
+
w("确定", -1)
|
|
6075
6075
|
])]),
|
|
6076
6076
|
_: 1
|
|
6077
6077
|
})
|
|
@@ -6128,125 +6128,125 @@ const Re = [
|
|
|
6128
6128
|
}
|
|
6129
6129
|
},
|
|
6130
6130
|
emits: ["update:visible", "confirm", "close", "load-users", "search", "dept-click"],
|
|
6131
|
-
setup(
|
|
6132
|
-
const d =
|
|
6131
|
+
setup(i, { emit: ee }) {
|
|
6132
|
+
const d = i, v = ee, o = _({
|
|
6133
6133
|
planName: "",
|
|
6134
6134
|
shareMode: "none",
|
|
6135
6135
|
shareType: "specific",
|
|
6136
6136
|
selectedUsers: []
|
|
6137
|
-
}),
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
}),
|
|
6141
|
-
|
|
6137
|
+
}), x = _([]), X = _([]), r = re(() => d.isEditing && d.originalShareMode === "copy");
|
|
6138
|
+
I(() => d.visible, (k) => {
|
|
6139
|
+
k ? d.isEditing && d.planName && (o.value.planName = d.planName, o.value.shareMode = d.originalShareMode || "none", o.value.shareType = d.originalShareType || "specific", d.originalSelectedUsers && d.originalSelectedUsers.length > 0 && (o.value.selectedUsers = [...d.originalSelectedUsers])) : P();
|
|
6140
|
+
}), I(() => d.deptMembersDataProp, (k) => {
|
|
6141
|
+
k && (X.value = k);
|
|
6142
6142
|
});
|
|
6143
|
-
const
|
|
6144
|
-
|
|
6143
|
+
const P = () => {
|
|
6144
|
+
o.value = {
|
|
6145
6145
|
planName: "",
|
|
6146
6146
|
shareMode: "none",
|
|
6147
6147
|
shareType: "specific",
|
|
6148
6148
|
selectedUsers: []
|
|
6149
|
-
},
|
|
6150
|
-
},
|
|
6151
|
-
console.log("选中人员:",
|
|
6152
|
-
id:
|
|
6153
|
-
name:
|
|
6149
|
+
}, x.value = [], X.value = [];
|
|
6150
|
+
}, W = (k) => {
|
|
6151
|
+
console.log("选中人员:", k), k.map((b) => ({
|
|
6152
|
+
id: b.id,
|
|
6153
|
+
name: b.displayName || b.name,
|
|
6154
6154
|
avatar: "",
|
|
6155
|
-
department:
|
|
6156
|
-
role:
|
|
6155
|
+
department: b.department,
|
|
6156
|
+
role: b.position,
|
|
6157
6157
|
email: "",
|
|
6158
|
-
mobile:
|
|
6158
|
+
mobile: b.phone || "",
|
|
6159
6159
|
employeeId: "",
|
|
6160
6160
|
signature: "",
|
|
6161
6161
|
tags: [],
|
|
6162
|
-
isUser:
|
|
6163
|
-
})).forEach((
|
|
6164
|
-
|
|
6165
|
-
}),
|
|
6166
|
-
},
|
|
6167
|
-
v("load-users",
|
|
6168
|
-
},
|
|
6169
|
-
v("search",
|
|
6170
|
-
}, Y = (
|
|
6171
|
-
v("dept-click",
|
|
6172
|
-
},
|
|
6173
|
-
if (!
|
|
6162
|
+
isUser: b.isUser === !0
|
|
6163
|
+
})).forEach((b) => {
|
|
6164
|
+
x.value.find((f) => f.id === b.id) || x.value.push(b);
|
|
6165
|
+
}), o.value.selectedUsers = x.value.map((b) => b.id);
|
|
6166
|
+
}, A = (k) => {
|
|
6167
|
+
v("load-users", k);
|
|
6168
|
+
}, B = (k) => {
|
|
6169
|
+
v("search", k);
|
|
6170
|
+
}, Y = (k) => {
|
|
6171
|
+
v("dept-click", k);
|
|
6172
|
+
}, V = () => {
|
|
6173
|
+
if (!o.value.planName.trim()) {
|
|
6174
6174
|
de.warning("请输入方案名称");
|
|
6175
6175
|
return;
|
|
6176
6176
|
}
|
|
6177
|
-
if ((
|
|
6177
|
+
if ((o.value.shareMode === "share" || o.value.shareMode === "copy") && o.value.shareType === "specific" && o.value.selectedUsers.length === 0) {
|
|
6178
6178
|
de.warning("请选择要共享的用户");
|
|
6179
6179
|
return;
|
|
6180
6180
|
}
|
|
6181
6181
|
v("confirm", {
|
|
6182
|
-
planName:
|
|
6183
|
-
shareMode:
|
|
6184
|
-
shareType:
|
|
6185
|
-
selectedUsers:
|
|
6182
|
+
planName: o.value.planName,
|
|
6183
|
+
shareMode: o.value.shareMode,
|
|
6184
|
+
shareType: o.value.shareType,
|
|
6185
|
+
selectedUsers: o.value.selectedUsers
|
|
6186
6186
|
}), v("update:visible", !1);
|
|
6187
|
-
},
|
|
6187
|
+
}, C = () => {
|
|
6188
6188
|
v("close"), v("update:visible", !1);
|
|
6189
6189
|
};
|
|
6190
|
-
return (
|
|
6191
|
-
const
|
|
6192
|
-
return
|
|
6193
|
-
header:
|
|
6194
|
-
visible:
|
|
6195
|
-
"onUpdate:visible":
|
|
6190
|
+
return (k, z) => {
|
|
6191
|
+
const b = p("t-input"), u = p("t-form-item"), f = p("t-radio"), c = p("t-tooltip"), F = p("t-radio-group"), J = p("t-form"), L = p("t-button"), ae = p("t-dialog");
|
|
6192
|
+
return y(), j(ae, {
|
|
6193
|
+
header: i.isEditing ? "编辑筛选方案" : "保存筛选方案",
|
|
6194
|
+
visible: i.visible,
|
|
6195
|
+
"onUpdate:visible": z[3] || (z[3] = (Q) => k.$emit("update:visible", Q)),
|
|
6196
6196
|
width: "600px",
|
|
6197
6197
|
footer: !0,
|
|
6198
|
-
onConfirm:
|
|
6199
|
-
onClose:
|
|
6198
|
+
onConfirm: V,
|
|
6199
|
+
onClose: C
|
|
6200
6200
|
}, {
|
|
6201
|
-
body:
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
data:
|
|
6201
|
+
body: l(() => [
|
|
6202
|
+
s("div", sa, [
|
|
6203
|
+
a(J, {
|
|
6204
|
+
data: o.value,
|
|
6205
6205
|
"label-align": "left",
|
|
6206
6206
|
"label-width": "100px"
|
|
6207
6207
|
}, {
|
|
6208
|
-
default:
|
|
6209
|
-
|
|
6208
|
+
default: l(() => [
|
|
6209
|
+
a(u, {
|
|
6210
6210
|
label: "方案名称",
|
|
6211
6211
|
required: ""
|
|
6212
6212
|
}, {
|
|
6213
|
-
default:
|
|
6214
|
-
|
|
6215
|
-
modelValue:
|
|
6216
|
-
"onUpdate:modelValue":
|
|
6213
|
+
default: l(() => [
|
|
6214
|
+
a(b, {
|
|
6215
|
+
modelValue: o.value.planName,
|
|
6216
|
+
"onUpdate:modelValue": z[0] || (z[0] = (Q) => o.value.planName = Q),
|
|
6217
6217
|
placeholder: "请输入方案名称"
|
|
6218
6218
|
}, null, 8, ["modelValue"])
|
|
6219
6219
|
]),
|
|
6220
6220
|
_: 1
|
|
6221
6221
|
}),
|
|
6222
|
-
|
|
6223
|
-
default:
|
|
6224
|
-
|
|
6225
|
-
modelValue:
|
|
6226
|
-
"onUpdate:modelValue":
|
|
6227
|
-
disabled:
|
|
6222
|
+
a(u, { label: "共享设置" }, {
|
|
6223
|
+
default: l(() => [
|
|
6224
|
+
a(F, {
|
|
6225
|
+
modelValue: o.value.shareMode,
|
|
6226
|
+
"onUpdate:modelValue": z[1] || (z[1] = (Q) => o.value.shareMode = Q),
|
|
6227
|
+
disabled: r.value
|
|
6228
6228
|
}, {
|
|
6229
|
-
default:
|
|
6230
|
-
|
|
6231
|
-
default:
|
|
6232
|
-
|
|
6229
|
+
default: l(() => [
|
|
6230
|
+
a(f, { value: "none" }, {
|
|
6231
|
+
default: l(() => [...z[4] || (z[4] = [
|
|
6232
|
+
w("不共享", -1)
|
|
6233
6233
|
])]),
|
|
6234
6234
|
_: 1
|
|
6235
6235
|
}),
|
|
6236
|
-
|
|
6237
|
-
default:
|
|
6238
|
-
|
|
6236
|
+
a(f, { value: "share" }, {
|
|
6237
|
+
default: l(() => [...z[5] || (z[5] = [
|
|
6238
|
+
w("共享给其他人", -1)
|
|
6239
6239
|
])]),
|
|
6240
6240
|
_: 1
|
|
6241
6241
|
}),
|
|
6242
|
-
|
|
6242
|
+
a(c, {
|
|
6243
6243
|
content: "复制方案只支持复制一次,建议共享方案",
|
|
6244
6244
|
placement: "top"
|
|
6245
6245
|
}, {
|
|
6246
|
-
default:
|
|
6247
|
-
|
|
6248
|
-
default:
|
|
6249
|
-
|
|
6246
|
+
default: l(() => [
|
|
6247
|
+
a(f, { value: "copy" }, {
|
|
6248
|
+
default: l(() => [...z[6] || (z[6] = [
|
|
6249
|
+
w("复制给其他人", -1)
|
|
6250
6250
|
])]),
|
|
6251
6251
|
_: 1
|
|
6252
6252
|
})
|
|
@@ -6259,25 +6259,25 @@ const Re = [
|
|
|
6259
6259
|
]),
|
|
6260
6260
|
_: 1
|
|
6261
6261
|
}),
|
|
6262
|
-
|
|
6262
|
+
o.value.shareMode === "share" ? (y(), j(u, {
|
|
6263
6263
|
key: 0,
|
|
6264
6264
|
label: "共享范围"
|
|
6265
6265
|
}, {
|
|
6266
|
-
default:
|
|
6267
|
-
|
|
6268
|
-
modelValue:
|
|
6269
|
-
"onUpdate:modelValue":
|
|
6266
|
+
default: l(() => [
|
|
6267
|
+
a(F, {
|
|
6268
|
+
modelValue: o.value.shareType,
|
|
6269
|
+
"onUpdate:modelValue": z[2] || (z[2] = (Q) => o.value.shareType = Q)
|
|
6270
6270
|
}, {
|
|
6271
|
-
default:
|
|
6272
|
-
|
|
6273
|
-
default:
|
|
6274
|
-
|
|
6271
|
+
default: l(() => [
|
|
6272
|
+
a(f, { value: "specific" }, {
|
|
6273
|
+
default: l(() => [...z[7] || (z[7] = [
|
|
6274
|
+
w("指定用户", -1)
|
|
6275
6275
|
])]),
|
|
6276
6276
|
_: 1
|
|
6277
6277
|
}),
|
|
6278
|
-
|
|
6279
|
-
default:
|
|
6280
|
-
|
|
6278
|
+
a(f, { value: "all" }, {
|
|
6279
|
+
default: l(() => [...z[8] || (z[8] = [
|
|
6280
|
+
w("所有用户", -1)
|
|
6281
6281
|
])]),
|
|
6282
6282
|
_: 1
|
|
6283
6283
|
})
|
|
@@ -6286,49 +6286,49 @@ const Re = [
|
|
|
6286
6286
|
}, 8, ["modelValue"])
|
|
6287
6287
|
]),
|
|
6288
6288
|
_: 1
|
|
6289
|
-
})) :
|
|
6290
|
-
|
|
6289
|
+
})) : ne("", !0),
|
|
6290
|
+
o.value.shareMode === "share" && o.value.shareType === "specific" || o.value.shareMode === "copy" ? (y(), j(u, {
|
|
6291
6291
|
key: 1,
|
|
6292
6292
|
label: "共享人员"
|
|
6293
6293
|
}, {
|
|
6294
|
-
default:
|
|
6295
|
-
|
|
6296
|
-
users:
|
|
6294
|
+
default: l(() => [
|
|
6295
|
+
a(Me(Je), {
|
|
6296
|
+
users: x.value,
|
|
6297
6297
|
"avatar-size": 32,
|
|
6298
6298
|
"max-display": 10,
|
|
6299
6299
|
edit: !0,
|
|
6300
|
-
"person-tabs":
|
|
6301
|
-
"person-organizations":
|
|
6302
|
-
"dept-members-data":
|
|
6303
|
-
onPersonSelect:
|
|
6304
|
-
onLoadUsers:
|
|
6305
|
-
onSearch:
|
|
6300
|
+
"person-tabs": i.tabs,
|
|
6301
|
+
"person-organizations": i.organizations,
|
|
6302
|
+
"dept-members-data": X.value,
|
|
6303
|
+
onPersonSelect: W,
|
|
6304
|
+
onLoadUsers: A,
|
|
6305
|
+
onSearch: B,
|
|
6306
6306
|
onDeptClick: Y
|
|
6307
6307
|
}, null, 8, ["users", "person-tabs", "person-organizations", "dept-members-data"])
|
|
6308
6308
|
]),
|
|
6309
6309
|
_: 1
|
|
6310
|
-
})) :
|
|
6310
|
+
})) : ne("", !0)
|
|
6311
6311
|
]),
|
|
6312
6312
|
_: 1
|
|
6313
6313
|
}, 8, ["data"])
|
|
6314
6314
|
])
|
|
6315
6315
|
]),
|
|
6316
|
-
footer:
|
|
6317
|
-
|
|
6316
|
+
footer: l(() => [
|
|
6317
|
+
a(L, {
|
|
6318
6318
|
theme: "default",
|
|
6319
|
-
onClick:
|
|
6319
|
+
onClick: C
|
|
6320
6320
|
}, {
|
|
6321
|
-
default:
|
|
6322
|
-
|
|
6321
|
+
default: l(() => [...z[9] || (z[9] = [
|
|
6322
|
+
w("取消", -1)
|
|
6323
6323
|
])]),
|
|
6324
6324
|
_: 1
|
|
6325
6325
|
}),
|
|
6326
|
-
|
|
6326
|
+
a(L, {
|
|
6327
6327
|
theme: "primary",
|
|
6328
|
-
onClick:
|
|
6328
|
+
onClick: V
|
|
6329
6329
|
}, {
|
|
6330
|
-
default:
|
|
6331
|
-
|
|
6330
|
+
default: l(() => [...z[10] || (z[10] = [
|
|
6331
|
+
w("确定", -1)
|
|
6332
6332
|
])]),
|
|
6333
6333
|
_: 1
|
|
6334
6334
|
})
|
|
@@ -6346,7 +6346,7 @@ const Re = [
|
|
|
6346
6346
|
}, fa = { class: "filter-tab-content" }, pa = {
|
|
6347
6347
|
key: 0,
|
|
6348
6348
|
class: "filter-dialog-left"
|
|
6349
|
-
}, ya = { class: "connectors-container" }, ba = { class: "filter-cards" }, ga = { class: "filter-card-header" },
|
|
6349
|
+
}, ya = { class: "connectors-container" }, ba = { class: "filter-cards" }, ga = { class: "filter-card-header" }, ha = { class: "filter-card-header-left" }, Ca = { class: "filter-card-title" }, ka = { class: "filter-card-content" }, _a = { class: "filter-card-actions" }, za = { class: "add-card-content" }, Fa = { class: "column-settings-panel" }, Oa = { class: "column-title-row" }, wa = { class: "column-title column-title-show" }, Va = { class: "column-list" }, Sa = ["onDragstart", "onDragover", "onDrop"], $a = { class: "column-name" }, Ua = { class: "column-show" }, xa = { class: "column-freeze" }, Da = { class: "column-width" }, Ea = { class: "column-sort-buttons" }, qa = { class: "filter-dialog-right" }, Aa = { class: "filter-plan-list" }, Pa = ["onClick"], Ta = { class: "plan-name" }, Na = { class: "filter-dialog-footer-container" }, Ba = { class: "filter-dialog-footer-left" }, Ma = { class: "filter-dialog-footer-right" }, Ja = {
|
|
6350
6350
|
__name: "cd-filter",
|
|
6351
6351
|
props: {
|
|
6352
6352
|
visible: {
|
|
@@ -6418,97 +6418,97 @@ const Re = [
|
|
|
6418
6418
|
"dept-click",
|
|
6419
6419
|
"column-change"
|
|
6420
6420
|
],
|
|
6421
|
-
setup(
|
|
6422
|
-
const d =
|
|
6423
|
-
let
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
}, { deep: !0 }),
|
|
6427
|
-
|
|
6421
|
+
setup(i, { emit: ee }) {
|
|
6422
|
+
const d = i, v = ee, o = _(JSON.parse(JSON.stringify(d.filterCards))), x = _(d.topOp), X = _(null), r = _(!1), P = _([]), W = _("filter"), A = _(!1), B = _(""), Y = _("none"), V = _("specific"), C = _([]), k = _(null);
|
|
6423
|
+
let z = 100;
|
|
6424
|
+
I(() => d.filterCards, (e) => {
|
|
6425
|
+
o.value = JSON.parse(JSON.stringify(e));
|
|
6426
|
+
}, { deep: !0 }), I(() => d.topOp, (e) => {
|
|
6427
|
+
x.value = e;
|
|
6428
6428
|
});
|
|
6429
|
-
const
|
|
6430
|
-
|
|
6431
|
-
id:
|
|
6429
|
+
const b = () => {
|
|
6430
|
+
o.value.push({
|
|
6431
|
+
id: z++,
|
|
6432
6432
|
connector: "and",
|
|
6433
6433
|
conditions: [{ field: "", operator: "eq", value: "" }]
|
|
6434
6434
|
});
|
|
6435
|
-
}, u = (
|
|
6436
|
-
|
|
6437
|
-
},
|
|
6438
|
-
|
|
6435
|
+
}, u = (e) => {
|
|
6436
|
+
o.value.length > 1 ? o.value.splice(e, 1) : de.warning("至少需要保留一个筛选卡片");
|
|
6437
|
+
}, f = (e) => {
|
|
6438
|
+
e >= 0 && e < o.value.length && o.value[e].conditions.push({
|
|
6439
6439
|
field: "",
|
|
6440
6440
|
operator: "eq",
|
|
6441
6441
|
value: ""
|
|
6442
6442
|
});
|
|
6443
|
-
},
|
|
6444
|
-
if (
|
|
6445
|
-
const
|
|
6446
|
-
|
|
6443
|
+
}, c = (e, t) => {
|
|
6444
|
+
if (e >= 0 && e < o.value.length) {
|
|
6445
|
+
const O = o.value[e];
|
|
6446
|
+
O.conditions.length > 1 && t >= 0 && t < O.conditions.length ? O.conditions.splice(t, 1) : O.conditions.length <= 1 && de.warning("每个卡片至少需要一个筛选条件");
|
|
6447
6447
|
}
|
|
6448
|
-
},
|
|
6449
|
-
const
|
|
6448
|
+
}, F = (e) => e.map((t) => {
|
|
6449
|
+
const O = t.conditions.filter((D) => D.field && D.field.trim() !== "").map((D) => {
|
|
6450
6450
|
let h = "";
|
|
6451
|
-
return
|
|
6452
|
-
field:
|
|
6453
|
-
operator:
|
|
6451
|
+
return D.value !== null && D.value !== void 0 && (Array.isArray(D.value) ? h = D.value.join("/") : h = String(D.value)), {
|
|
6452
|
+
field: D.field.trim(),
|
|
6453
|
+
operator: D.operator || "eq",
|
|
6454
6454
|
value: h
|
|
6455
6455
|
};
|
|
6456
6456
|
});
|
|
6457
6457
|
return {
|
|
6458
6458
|
...t,
|
|
6459
6459
|
connector: t.connector || "and",
|
|
6460
|
-
conditions:
|
|
6460
|
+
conditions: O.length > 0 ? O : [{ field: "", operator: "eq", value: "" }]
|
|
6461
6461
|
};
|
|
6462
|
-
}).filter((t) => t.conditions.length > 0 && t.conditions[0].field !== ""), J = (
|
|
6463
|
-
if (
|
|
6464
|
-
|
|
6465
|
-
U.width && (
|
|
6462
|
+
}).filter((t) => t.conditions.length > 0 && t.conditions[0].field !== ""), J = (e) => {
|
|
6463
|
+
if (e.value !== "empty" && (X.value = e, v("plan-click", e), e.precepts && (o.value = JSON.parse(JSON.stringify(e.precepts))), e.sqlConnectType && (x.value = e.sqlConnectType), e.columns && e.columns.length > 0)) {
|
|
6464
|
+
te.value = {}, m.value = {}, G.value = e.columns.filter((U) => U.show !== !1).map((U) => U.value), e.columns.forEach((U) => {
|
|
6465
|
+
U.width && (te.value[U.value] = parseInt(U.width)), U.freeze ? m.value[U.value] = U.freeze : m.value[U.value] = "none";
|
|
6466
6466
|
});
|
|
6467
|
-
const t =
|
|
6467
|
+
const t = e.columns.map((U) => U.value), O = t.map(
|
|
6468
6468
|
(U) => d.fieldOptions.find((ve) => ve.value === U)
|
|
6469
|
-
).filter(Boolean),
|
|
6469
|
+
).filter(Boolean), D = d.fieldOptions.filter(
|
|
6470
6470
|
(U) => !t.includes(U.value)
|
|
6471
6471
|
);
|
|
6472
|
-
|
|
6473
|
-
const h =
|
|
6472
|
+
n.value = [...O, ...D], se.value = G.value.length === d.fieldOptions.length;
|
|
6473
|
+
const h = e.columns.filter((U) => U.show !== !1);
|
|
6474
6474
|
v("column-change", h);
|
|
6475
6475
|
}
|
|
6476
|
-
},
|
|
6477
|
-
|
|
6478
|
-
},
|
|
6479
|
-
const t =
|
|
6480
|
-
const
|
|
6476
|
+
}, L = () => {
|
|
6477
|
+
A.value = !1, k.value = null, B.value = "", Y.value = "none", V.value = "specific", C.value = [], r.value = !0;
|
|
6478
|
+
}, ae = (e) => {
|
|
6479
|
+
const t = n.value.map((O) => {
|
|
6480
|
+
const D = te.value[O.value], h = m.value[O.value] || "none";
|
|
6481
6481
|
return {
|
|
6482
|
-
value:
|
|
6483
|
-
show:
|
|
6482
|
+
value: O.value,
|
|
6483
|
+
show: G.value.includes(O.value),
|
|
6484
6484
|
// 是否显示
|
|
6485
|
-
width:
|
|
6485
|
+
width: D ? `${D}px` : "120px",
|
|
6486
6486
|
freeze: h
|
|
6487
6487
|
// 冻结状态
|
|
6488
6488
|
};
|
|
6489
6489
|
});
|
|
6490
|
-
|
|
6491
|
-
...
|
|
6492
|
-
plan:
|
|
6493
|
-
filterCards:
|
|
6494
|
-
topOp:
|
|
6490
|
+
A.value && k.value ? v("update-plan", {
|
|
6491
|
+
...e,
|
|
6492
|
+
plan: k.value,
|
|
6493
|
+
filterCards: o.value,
|
|
6494
|
+
topOp: x.value,
|
|
6495
6495
|
columns: t
|
|
6496
6496
|
}) : v("save-plan", {
|
|
6497
|
-
...
|
|
6498
|
-
filterCards:
|
|
6499
|
-
topOp:
|
|
6497
|
+
...e,
|
|
6498
|
+
filterCards: o.value,
|
|
6499
|
+
topOp: x.value,
|
|
6500
6500
|
columns: t
|
|
6501
|
-
}),
|
|
6502
|
-
},
|
|
6503
|
-
|
|
6504
|
-
}, ie = (
|
|
6505
|
-
v("copy-plan",
|
|
6506
|
-
},
|
|
6507
|
-
v("delete-plan",
|
|
6508
|
-
},
|
|
6509
|
-
v("set-default-plan",
|
|
6510
|
-
},
|
|
6511
|
-
|
|
6501
|
+
}), A.value = !1, k.value = null;
|
|
6502
|
+
}, Q = (e) => {
|
|
6503
|
+
A.value = !0, k.value = e, B.value = e.content || "", Y.value = e.shareMode || "none", V.value = e.shareType || "specific", C.value = e.selectedUsers || [], r.value = !0;
|
|
6504
|
+
}, ie = (e) => {
|
|
6505
|
+
v("copy-plan", e);
|
|
6506
|
+
}, S = (e) => {
|
|
6507
|
+
v("delete-plan", e);
|
|
6508
|
+
}, T = (e) => {
|
|
6509
|
+
v("set-default-plan", e);
|
|
6510
|
+
}, oe = () => {
|
|
6511
|
+
X.value = null, o.value = [
|
|
6512
6512
|
{
|
|
6513
6513
|
id: 1,
|
|
6514
6514
|
connector: "and",
|
|
@@ -6517,153 +6517,153 @@ const Re = [
|
|
|
6517
6517
|
{ field: "", operator: "eq", value: "" }
|
|
6518
6518
|
]
|
|
6519
6519
|
}
|
|
6520
|
-
],
|
|
6521
|
-
},
|
|
6522
|
-
if (
|
|
6523
|
-
const
|
|
6520
|
+
], x.value = "and", v("reset");
|
|
6521
|
+
}, N = () => {
|
|
6522
|
+
if (W.value === "filter") {
|
|
6523
|
+
const e = F(o.value);
|
|
6524
6524
|
v("confirm", {
|
|
6525
|
-
filterCards:
|
|
6526
|
-
type1:
|
|
6525
|
+
filterCards: e,
|
|
6526
|
+
type1: x.value
|
|
6527
6527
|
});
|
|
6528
|
-
} else
|
|
6528
|
+
} else W.value === "column" && Fe();
|
|
6529
6529
|
me();
|
|
6530
6530
|
}, me = () => {
|
|
6531
6531
|
v("update:visible", !1);
|
|
6532
|
-
}, pe = (
|
|
6533
|
-
v("load-users",
|
|
6534
|
-
}, ye = (
|
|
6535
|
-
v("search",
|
|
6536
|
-
}, be = (
|
|
6537
|
-
v("dept-click", { dept:
|
|
6538
|
-
|
|
6532
|
+
}, pe = (e) => {
|
|
6533
|
+
v("load-users", e);
|
|
6534
|
+
}, ye = (e) => {
|
|
6535
|
+
v("search", e);
|
|
6536
|
+
}, be = (e) => {
|
|
6537
|
+
v("dept-click", { dept: e, callback: (O) => {
|
|
6538
|
+
P.value = O;
|
|
6539
6539
|
} });
|
|
6540
|
-
},
|
|
6541
|
-
|
|
6542
|
-
if (
|
|
6543
|
-
if (typeof
|
|
6544
|
-
|
|
6545
|
-
h.width && (
|
|
6540
|
+
}, G = _([]), se = _(!1), te = _({}), m = _({}), n = _([]), $ = _(null), E = _(null);
|
|
6541
|
+
I(() => d.visibleColumns, (e) => {
|
|
6542
|
+
if (te.value = {}, m.value = {}, e && e.length > 0) {
|
|
6543
|
+
if (typeof e[0] == "object") {
|
|
6544
|
+
G.value = e.filter((h) => h.show !== !1).map((h) => h.value), e.forEach((h) => {
|
|
6545
|
+
h.width && (te.value[h.value] = parseInt(h.width)), h.freeze ? m.value[h.value] = h.freeze : m.value[h.value] = "none";
|
|
6546
6546
|
});
|
|
6547
|
-
const t =
|
|
6547
|
+
const t = e.map((h) => h.value), O = t.map(
|
|
6548
6548
|
(h) => d.fieldOptions.find((U) => U.value === h)
|
|
6549
|
-
).filter(Boolean),
|
|
6549
|
+
).filter(Boolean), D = d.fieldOptions.filter(
|
|
6550
6550
|
(h) => !t.includes(h.value)
|
|
6551
6551
|
);
|
|
6552
|
-
|
|
6552
|
+
n.value = [...O, ...D];
|
|
6553
6553
|
} else {
|
|
6554
|
-
|
|
6555
|
-
const t =
|
|
6556
|
-
(
|
|
6557
|
-
).filter(Boolean),
|
|
6558
|
-
(
|
|
6554
|
+
G.value = [...e];
|
|
6555
|
+
const t = e.map(
|
|
6556
|
+
(D) => d.fieldOptions.find((h) => h.value === D)
|
|
6557
|
+
).filter(Boolean), O = d.fieldOptions.filter(
|
|
6558
|
+
(D) => !e.includes(D.value)
|
|
6559
6559
|
);
|
|
6560
|
-
|
|
6560
|
+
n.value = [...t, ...O];
|
|
6561
6561
|
}
|
|
6562
|
-
se.value =
|
|
6563
|
-
} else d.fieldOptions.length > 0 && (
|
|
6562
|
+
se.value = G.value.length === d.fieldOptions.length;
|
|
6563
|
+
} else d.fieldOptions.length > 0 && (G.value = d.fieldOptions.map((t) => t.value), n.value = [...d.fieldOptions], se.value = !0);
|
|
6564
6564
|
d.fieldOptions.forEach((t) => {
|
|
6565
|
-
|
|
6565
|
+
m.value[t.value] || (m.value[t.value] = "none");
|
|
6566
6566
|
});
|
|
6567
|
-
}, { immediate: !0 }),
|
|
6568
|
-
|
|
6567
|
+
}, { immediate: !0 }), I(() => d.fieldOptions, (e) => {
|
|
6568
|
+
n.value.length || (n.value = [...e]);
|
|
6569
6569
|
}, { immediate: !0 });
|
|
6570
|
-
const
|
|
6570
|
+
const H = (e, t) => {
|
|
6571
6571
|
if (t)
|
|
6572
|
-
|
|
6572
|
+
G.value.includes(e) || G.value.push(e);
|
|
6573
6573
|
else {
|
|
6574
|
-
const
|
|
6575
|
-
|
|
6574
|
+
const O = G.value.indexOf(e);
|
|
6575
|
+
O > -1 && G.value.splice(O, 1);
|
|
6576
6576
|
}
|
|
6577
|
-
se.value =
|
|
6578
|
-
},
|
|
6579
|
-
|
|
6580
|
-
},
|
|
6581
|
-
if (
|
|
6582
|
-
const t =
|
|
6583
|
-
|
|
6577
|
+
se.value = G.value.length === d.fieldOptions.length;
|
|
6578
|
+
}, R = (e) => {
|
|
6579
|
+
e ? G.value = n.value.map((t) => t.value) : G.value = [];
|
|
6580
|
+
}, ge = (e) => {
|
|
6581
|
+
if (e > 0) {
|
|
6582
|
+
const t = n.value[e];
|
|
6583
|
+
n.value[e] = n.value[e - 1], n.value[e - 1] = t, n.value = [...n.value];
|
|
6584
6584
|
}
|
|
6585
|
-
}, he = (
|
|
6586
|
-
if (
|
|
6587
|
-
const t =
|
|
6588
|
-
|
|
6585
|
+
}, he = (e) => {
|
|
6586
|
+
if (e < n.value.length - 1) {
|
|
6587
|
+
const t = n.value[e];
|
|
6588
|
+
n.value[e] = n.value[e + 1], n.value[e + 1] = t, n.value = [...n.value];
|
|
6589
6589
|
}
|
|
6590
|
-
},
|
|
6591
|
-
|
|
6592
|
-
},
|
|
6593
|
-
t.preventDefault(), t.dataTransfer.dropEffect = "move",
|
|
6594
|
-
},
|
|
6595
|
-
|
|
6596
|
-
},
|
|
6590
|
+
}, Ce = (e, t) => {
|
|
6591
|
+
$.value = e, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/html", t.target.innerHTML);
|
|
6592
|
+
}, ke = (e, t) => {
|
|
6593
|
+
t.preventDefault(), t.dataTransfer.dropEffect = "move", E.value = e;
|
|
6594
|
+
}, _e = () => {
|
|
6595
|
+
$.value = null, E.value = null;
|
|
6596
|
+
}, ze = (e, t) => {
|
|
6597
6597
|
t.preventDefault();
|
|
6598
|
-
const
|
|
6599
|
-
if (
|
|
6598
|
+
const O = $.value;
|
|
6599
|
+
if (O === null || O === e)
|
|
6600
6600
|
return;
|
|
6601
|
-
const
|
|
6602
|
-
|
|
6603
|
-
},
|
|
6604
|
-
const
|
|
6605
|
-
const
|
|
6601
|
+
const D = [...n.value], h = D[O];
|
|
6602
|
+
D.splice(O, 1), D.splice(e, 0, h), n.value = D, $.value = null, E.value = null;
|
|
6603
|
+
}, Fe = () => {
|
|
6604
|
+
const e = n.value.filter((t) => G.value.includes(t.value)).map((t) => {
|
|
6605
|
+
const O = te.value[t.value], D = m.value[t.value] || "none";
|
|
6606
6606
|
return {
|
|
6607
6607
|
value: t.value,
|
|
6608
6608
|
show: !0,
|
|
6609
6609
|
// 已通过filter筛选,都是显示的
|
|
6610
|
-
width:
|
|
6610
|
+
width: O ? `${O}px` : "120px",
|
|
6611
6611
|
// 没有设置宽度时使用默认值120px
|
|
6612
|
-
freeze:
|
|
6612
|
+
freeze: D
|
|
6613
6613
|
// 冻结状态
|
|
6614
6614
|
};
|
|
6615
6615
|
});
|
|
6616
|
-
v("column-change",
|
|
6616
|
+
v("column-change", e);
|
|
6617
6617
|
};
|
|
6618
|
-
return (
|
|
6619
|
-
const
|
|
6620
|
-
return
|
|
6621
|
-
|
|
6618
|
+
return (e, t) => {
|
|
6619
|
+
const O = p("t-radio-button"), D = p("t-radio-group"), h = p("t-icon"), U = p("t-button"), ve = p("t-tab-panel"), xe = p("t-checkbox"), Oe = p("t-option"), Ae = p("t-select"), Pe = p("t-input-number"), Te = p("t-tabs"), fe = p("t-tooltip"), Ne = p("t-dialog");
|
|
6620
|
+
return y(), q(Z, null, [
|
|
6621
|
+
a(Ne, {
|
|
6622
6622
|
header: "方案设置",
|
|
6623
6623
|
placement: "center",
|
|
6624
|
-
visible:
|
|
6625
|
-
"onUpdate:visible": t[4] || (t[4] = (
|
|
6626
|
-
width:
|
|
6624
|
+
visible: i.visible,
|
|
6625
|
+
"onUpdate:visible": t[4] || (t[4] = (g) => e.$emit("update:visible", g)),
|
|
6626
|
+
width: i.width,
|
|
6627
6627
|
"z-index": 999,
|
|
6628
6628
|
footer: !0,
|
|
6629
6629
|
onClose: me,
|
|
6630
6630
|
id: "leader-line-clip-container"
|
|
6631
6631
|
}, {
|
|
6632
|
-
body:
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
modelValue:
|
|
6639
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
6632
|
+
body: l(() => [
|
|
6633
|
+
s("div", ua, [
|
|
6634
|
+
s("div", ma, [
|
|
6635
|
+
s("div", ca, [
|
|
6636
|
+
s("div", va, [
|
|
6637
|
+
a(Te, {
|
|
6638
|
+
modelValue: W.value,
|
|
6639
|
+
"onUpdate:modelValue": t[2] || (t[2] = (g) => W.value = g),
|
|
6640
6640
|
size: "medium"
|
|
6641
6641
|
}, {
|
|
6642
|
-
default:
|
|
6643
|
-
|
|
6642
|
+
default: l(() => [
|
|
6643
|
+
a(ve, {
|
|
6644
6644
|
value: "filter",
|
|
6645
6645
|
label: "筛选"
|
|
6646
6646
|
}, {
|
|
6647
|
-
default:
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
size:
|
|
6647
|
+
default: l(() => [
|
|
6648
|
+
s("div", fa, [
|
|
6649
|
+
o.value.length > 1 ? (y(), q("div", pa, [
|
|
6650
|
+
s("div", ya, [
|
|
6651
|
+
a(D, {
|
|
6652
|
+
size: i.size,
|
|
6653
6653
|
class: "connector-selector",
|
|
6654
|
-
modelValue:
|
|
6655
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
6654
|
+
modelValue: x.value,
|
|
6655
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => x.value = g)
|
|
6656
6656
|
}, {
|
|
6657
|
-
default:
|
|
6658
|
-
|
|
6659
|
-
default:
|
|
6660
|
-
|
|
6657
|
+
default: l(() => [
|
|
6658
|
+
a(O, { value: "and" }, {
|
|
6659
|
+
default: l(() => [...t[6] || (t[6] = [
|
|
6660
|
+
w("且", -1)
|
|
6661
6661
|
])]),
|
|
6662
6662
|
_: 1
|
|
6663
6663
|
}),
|
|
6664
|
-
|
|
6665
|
-
default:
|
|
6666
|
-
|
|
6664
|
+
a(O, { value: "or" }, {
|
|
6665
|
+
default: l(() => [...t[7] || (t[7] = [
|
|
6666
|
+
w("或", -1)
|
|
6667
6667
|
])]),
|
|
6668
6668
|
_: 1
|
|
6669
6669
|
})
|
|
@@ -6671,31 +6671,31 @@ const Re = [
|
|
|
6671
6671
|
_: 1
|
|
6672
6672
|
}, 8, ["size", "modelValue"])
|
|
6673
6673
|
])
|
|
6674
|
-
])) :
|
|
6675
|
-
|
|
6676
|
-
(
|
|
6677
|
-
key:
|
|
6674
|
+
])) : ne("", !0),
|
|
6675
|
+
s("div", ba, [
|
|
6676
|
+
(y(!0), q(Z, null, le(o.value, (g, K) => (y(), q("div", {
|
|
6677
|
+
key: g.id,
|
|
6678
6678
|
class: "filter-card-item"
|
|
6679
6679
|
}, [
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
size:
|
|
6685
|
-
modelValue:
|
|
6686
|
-
"onUpdate:modelValue": (M) =>
|
|
6680
|
+
s("div", ga, [
|
|
6681
|
+
s("div", ha, [
|
|
6682
|
+
s("span", Ca, "筛选卡片 " + ce(K + 1), 1),
|
|
6683
|
+
a(D, {
|
|
6684
|
+
size: i.size,
|
|
6685
|
+
modelValue: g.connector,
|
|
6686
|
+
"onUpdate:modelValue": (M) => g.connector = M,
|
|
6687
6687
|
class: "connector-selector"
|
|
6688
6688
|
}, {
|
|
6689
|
-
default:
|
|
6690
|
-
|
|
6691
|
-
default:
|
|
6692
|
-
|
|
6689
|
+
default: l(() => [
|
|
6690
|
+
a(O, { value: "and" }, {
|
|
6691
|
+
default: l(() => [...t[8] || (t[8] = [
|
|
6692
|
+
w("且", -1)
|
|
6693
6693
|
])]),
|
|
6694
6694
|
_: 1
|
|
6695
6695
|
}),
|
|
6696
|
-
|
|
6697
|
-
default:
|
|
6698
|
-
|
|
6696
|
+
a(O, { value: "or" }, {
|
|
6697
|
+
default: l(() => [...t[9] || (t[9] = [
|
|
6698
|
+
w("或", -1)
|
|
6699
6699
|
])]),
|
|
6700
6700
|
_: 1
|
|
6701
6701
|
})
|
|
@@ -6703,67 +6703,67 @@ const Re = [
|
|
|
6703
6703
|
_: 1
|
|
6704
6704
|
}, 8, ["size", "modelValue", "onUpdate:modelValue"])
|
|
6705
6705
|
]),
|
|
6706
|
-
|
|
6706
|
+
a(U, {
|
|
6707
6707
|
theme: "default",
|
|
6708
6708
|
variant: "text",
|
|
6709
|
-
size:
|
|
6710
|
-
onClick: (M) => u(
|
|
6711
|
-
disabled:
|
|
6709
|
+
size: i.size,
|
|
6710
|
+
onClick: (M) => u(K),
|
|
6711
|
+
disabled: o.value.length === 1
|
|
6712
6712
|
}, {
|
|
6713
|
-
icon:
|
|
6714
|
-
|
|
6713
|
+
icon: l(() => [
|
|
6714
|
+
a(h, { name: "close" })
|
|
6715
6715
|
]),
|
|
6716
6716
|
_: 1
|
|
6717
6717
|
}, 8, ["size", "onClick", "disabled"])
|
|
6718
6718
|
]),
|
|
6719
|
-
|
|
6720
|
-
(
|
|
6719
|
+
s("div", ka, [
|
|
6720
|
+
(y(!0), q(Z, null, le(g.conditions, (M, we) => (y(), q("div", {
|
|
6721
6721
|
key: we,
|
|
6722
6722
|
class: "filter-combination"
|
|
6723
6723
|
}, [
|
|
6724
|
-
|
|
6725
|
-
"field-options":
|
|
6726
|
-
"filter-condition":
|
|
6727
|
-
"select-options":
|
|
6728
|
-
size:
|
|
6724
|
+
a(Ue, {
|
|
6725
|
+
"field-options": i.fieldOptions,
|
|
6726
|
+
"filter-condition": g.conditions[we],
|
|
6727
|
+
"select-options": i.selectOptions,
|
|
6728
|
+
size: i.size
|
|
6729
6729
|
}, null, 8, ["field-options", "filter-condition", "select-options", "size"]),
|
|
6730
|
-
|
|
6730
|
+
a(U, {
|
|
6731
6731
|
theme: "default",
|
|
6732
6732
|
variant: "text",
|
|
6733
|
-
size:
|
|
6734
|
-
onClick: (ml) =>
|
|
6735
|
-
disabled:
|
|
6733
|
+
size: i.size,
|
|
6734
|
+
onClick: (ml) => c(K, we),
|
|
6735
|
+
disabled: g.conditions.length === 1
|
|
6736
6736
|
}, {
|
|
6737
|
-
icon:
|
|
6738
|
-
|
|
6737
|
+
icon: l(() => [
|
|
6738
|
+
a(h, { name: "minus" })
|
|
6739
6739
|
]),
|
|
6740
6740
|
_: 1
|
|
6741
6741
|
}, 8, ["size", "onClick", "disabled"])
|
|
6742
6742
|
]))), 128)),
|
|
6743
|
-
|
|
6744
|
-
|
|
6743
|
+
s("div", _a, [
|
|
6744
|
+
a(U, {
|
|
6745
6745
|
theme: "default",
|
|
6746
|
-
size:
|
|
6747
|
-
onClick: (M) =>
|
|
6746
|
+
size: i.size,
|
|
6747
|
+
onClick: (M) => f(K)
|
|
6748
6748
|
}, {
|
|
6749
|
-
icon:
|
|
6750
|
-
|
|
6749
|
+
icon: l(() => [
|
|
6750
|
+
a(h, { name: "add" })
|
|
6751
6751
|
]),
|
|
6752
|
-
default:
|
|
6753
|
-
t[10] || (t[10] =
|
|
6752
|
+
default: l(() => [
|
|
6753
|
+
t[10] || (t[10] = w(" 添加条件 ", -1))
|
|
6754
6754
|
]),
|
|
6755
6755
|
_: 1
|
|
6756
6756
|
}, 8, ["size", "onClick"])
|
|
6757
6757
|
])
|
|
6758
6758
|
])
|
|
6759
6759
|
]))), 128)),
|
|
6760
|
-
|
|
6760
|
+
s("div", {
|
|
6761
6761
|
class: "add-filter-card",
|
|
6762
|
-
onClick:
|
|
6762
|
+
onClick: b
|
|
6763
6763
|
}, [
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
t[11] || (t[11] =
|
|
6764
|
+
s("div", za, [
|
|
6765
|
+
a(h, { name: "add" }),
|
|
6766
|
+
t[11] || (t[11] = s("span", null, "增加筛选卡片", -1))
|
|
6767
6767
|
])
|
|
6768
6768
|
])
|
|
6769
6769
|
])
|
|
@@ -6771,66 +6771,66 @@ const Re = [
|
|
|
6771
6771
|
]),
|
|
6772
6772
|
_: 1
|
|
6773
6773
|
}),
|
|
6774
|
-
|
|
6774
|
+
a(ve, {
|
|
6775
6775
|
value: "column",
|
|
6776
6776
|
label: "列配置"
|
|
6777
6777
|
}, {
|
|
6778
|
-
default:
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
t[13] || (t[13] =
|
|
6782
|
-
|
|
6783
|
-
|
|
6778
|
+
default: l(() => [
|
|
6779
|
+
s("div", Fa, [
|
|
6780
|
+
s("div", Oa, [
|
|
6781
|
+
t[13] || (t[13] = s("div", { class: "column-title column-title-name" }, "名称", -1)),
|
|
6782
|
+
s("div", wa, [
|
|
6783
|
+
a(xe, {
|
|
6784
6784
|
modelValue: se.value,
|
|
6785
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
6786
|
-
onChange:
|
|
6785
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => se.value = g),
|
|
6786
|
+
onChange: R
|
|
6787
6787
|
}, null, 8, ["modelValue"]),
|
|
6788
|
-
t[12] || (t[12] =
|
|
6788
|
+
t[12] || (t[12] = w(" 显示", -1))
|
|
6789
6789
|
]),
|
|
6790
|
-
t[14] || (t[14] =
|
|
6791
|
-
t[15] || (t[15] =
|
|
6792
|
-
t[16] || (t[16] =
|
|
6790
|
+
t[14] || (t[14] = s("div", { class: "column-title column-title-width" }, "冻结列", -1)),
|
|
6791
|
+
t[15] || (t[15] = s("div", { class: "column-title column-title-width" }, "宽度", -1)),
|
|
6792
|
+
t[16] || (t[16] = s("div", { class: "column-title column-title-sort" }, "排序", -1))
|
|
6793
6793
|
]),
|
|
6794
|
-
|
|
6795
|
-
(
|
|
6796
|
-
key:
|
|
6797
|
-
class: Se(["column-item-row", { dragging:
|
|
6794
|
+
s("div", Va, [
|
|
6795
|
+
(y(!0), q(Z, null, le(n.value, (g, K) => (y(), q("div", {
|
|
6796
|
+
key: g.value,
|
|
6797
|
+
class: Se(["column-item-row", { dragging: $.value === K }]),
|
|
6798
6798
|
draggable: "true",
|
|
6799
|
-
onDragstart: (M) =>
|
|
6800
|
-
onDragover: (M) =>
|
|
6801
|
-
onDragend:
|
|
6802
|
-
onDrop: (M) =>
|
|
6799
|
+
onDragstart: (M) => Ce(K, M),
|
|
6800
|
+
onDragover: (M) => ke(K, M),
|
|
6801
|
+
onDragend: _e,
|
|
6802
|
+
onDrop: (M) => ze(K, M)
|
|
6803
6803
|
}, [
|
|
6804
|
-
|
|
6805
|
-
|
|
6804
|
+
s("div", $a, [
|
|
6805
|
+
a(h, {
|
|
6806
6806
|
name: "move",
|
|
6807
6807
|
style: { cursor: "move", color: "#999", "margin-right": "8px" }
|
|
6808
6808
|
}),
|
|
6809
|
-
|
|
6809
|
+
w(" " + ce(g.label), 1)
|
|
6810
6810
|
]),
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
checked:
|
|
6814
|
-
onChange: (M) =>
|
|
6811
|
+
s("div", Ua, [
|
|
6812
|
+
a(xe, {
|
|
6813
|
+
checked: G.value.includes(g.value),
|
|
6814
|
+
onChange: (M) => H(g.value, M)
|
|
6815
6815
|
}, null, 8, ["checked", "onChange"])
|
|
6816
6816
|
]),
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
modelValue:
|
|
6820
|
-
"onUpdate:modelValue": (M) =>
|
|
6817
|
+
s("div", xa, [
|
|
6818
|
+
a(Ae, {
|
|
6819
|
+
modelValue: m.value[g.value],
|
|
6820
|
+
"onUpdate:modelValue": (M) => m.value[g.value] = M,
|
|
6821
6821
|
size: "small",
|
|
6822
6822
|
style: { width: "120px" }
|
|
6823
6823
|
}, {
|
|
6824
|
-
default:
|
|
6825
|
-
|
|
6824
|
+
default: l(() => [
|
|
6825
|
+
a(Oe, {
|
|
6826
6826
|
value: "none",
|
|
6827
6827
|
label: "不冻结"
|
|
6828
6828
|
}),
|
|
6829
|
-
|
|
6829
|
+
a(Oe, {
|
|
6830
6830
|
value: "left",
|
|
6831
6831
|
label: "左侧冻结"
|
|
6832
6832
|
}),
|
|
6833
|
-
|
|
6833
|
+
a(Oe, {
|
|
6834
6834
|
value: "right",
|
|
6835
6835
|
label: "右侧冻结"
|
|
6836
6836
|
})
|
|
@@ -6838,10 +6838,10 @@ const Re = [
|
|
|
6838
6838
|
_: 1
|
|
6839
6839
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
6840
6840
|
]),
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
modelValue:
|
|
6844
|
-
"onUpdate:modelValue": (M) =>
|
|
6841
|
+
s("div", Da, [
|
|
6842
|
+
a(Pe, {
|
|
6843
|
+
modelValue: te.value[g.value],
|
|
6844
|
+
"onUpdate:modelValue": (M) => te.value[g.value] = M,
|
|
6845
6845
|
min: 50,
|
|
6846
6846
|
max: 500,
|
|
6847
6847
|
step: 10,
|
|
@@ -6850,31 +6850,31 @@ const Re = [
|
|
|
6850
6850
|
style: { width: "100px" }
|
|
6851
6851
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
6852
6852
|
]),
|
|
6853
|
-
|
|
6854
|
-
|
|
6853
|
+
s("div", Ea, [
|
|
6854
|
+
a(U, {
|
|
6855
6855
|
theme: "default",
|
|
6856
6856
|
variant: "text",
|
|
6857
6857
|
size: "small",
|
|
6858
|
-
onClick: (M) =>
|
|
6859
|
-
disabled:
|
|
6858
|
+
onClick: (M) => ge(K),
|
|
6859
|
+
disabled: K === 0
|
|
6860
6860
|
}, {
|
|
6861
|
-
icon:
|
|
6862
|
-
|
|
6861
|
+
icon: l(() => [
|
|
6862
|
+
a(h, {
|
|
6863
6863
|
name: "chevron-up",
|
|
6864
6864
|
style: { color: "#f60" }
|
|
6865
6865
|
})
|
|
6866
6866
|
]),
|
|
6867
6867
|
_: 1
|
|
6868
6868
|
}, 8, ["onClick", "disabled"]),
|
|
6869
|
-
|
|
6869
|
+
a(U, {
|
|
6870
6870
|
theme: "default",
|
|
6871
6871
|
variant: "text",
|
|
6872
6872
|
size: "small",
|
|
6873
|
-
onClick: (M) => he(
|
|
6874
|
-
disabled:
|
|
6873
|
+
onClick: (M) => he(K),
|
|
6874
|
+
disabled: K === n.value.length - 1
|
|
6875
6875
|
}, {
|
|
6876
|
-
icon:
|
|
6877
|
-
|
|
6876
|
+
icon: l(() => [
|
|
6877
|
+
a(h, {
|
|
6878
6878
|
name: "chevron-down",
|
|
6879
6879
|
style: { color: "#f60" }
|
|
6880
6880
|
})
|
|
@@ -6892,40 +6892,40 @@ const Re = [
|
|
|
6892
6892
|
_: 1
|
|
6893
6893
|
}, 8, ["modelValue"])
|
|
6894
6894
|
]),
|
|
6895
|
-
|
|
6896
|
-
t[17] || (t[17] =
|
|
6897
|
-
|
|
6898
|
-
(
|
|
6899
|
-
var
|
|
6900
|
-
return
|
|
6901
|
-
key:
|
|
6902
|
-
class: Se(["filter-plan-item", { active: ((
|
|
6903
|
-
onClick: (M) => J(
|
|
6895
|
+
s("div", qa, [
|
|
6896
|
+
t[17] || (t[17] = s("div", { class: "filter-plan-title" }, "我的方案", -1)),
|
|
6897
|
+
s("div", Aa, [
|
|
6898
|
+
(y(!0), q(Z, null, le(i.planFilterOptions, (g) => {
|
|
6899
|
+
var K;
|
|
6900
|
+
return y(), q("div", {
|
|
6901
|
+
key: g.value,
|
|
6902
|
+
class: Se(["filter-plan-item", { active: ((K = X.value) == null ? void 0 : K.value) === g.value }]),
|
|
6903
|
+
onClick: (M) => J(g)
|
|
6904
6904
|
}, [
|
|
6905
|
-
|
|
6905
|
+
a(h, {
|
|
6906
6906
|
name: "file-text",
|
|
6907
6907
|
class: "plan-icon"
|
|
6908
6908
|
}),
|
|
6909
|
-
|
|
6910
|
-
|
|
6909
|
+
s("span", Ta, ce(g.content), 1),
|
|
6910
|
+
s("div", {
|
|
6911
6911
|
class: "plan-actions",
|
|
6912
6912
|
onClick: t[3] || (t[3] = De(() => {
|
|
6913
6913
|
}, ["stop"]))
|
|
6914
6914
|
}, [
|
|
6915
|
-
|
|
6915
|
+
a(fe, {
|
|
6916
6916
|
content: "编辑",
|
|
6917
6917
|
placement: "top"
|
|
6918
6918
|
}, {
|
|
6919
|
-
default:
|
|
6920
|
-
|
|
6919
|
+
default: l(() => [
|
|
6920
|
+
a(U, {
|
|
6921
6921
|
theme: "default",
|
|
6922
6922
|
variant: "text",
|
|
6923
6923
|
size: "small",
|
|
6924
|
-
onClick: De((M) =>
|
|
6925
|
-
disabled: !
|
|
6924
|
+
onClick: De((M) => Q(g), ["stop"]),
|
|
6925
|
+
disabled: !g.value || g.value === "empty"
|
|
6926
6926
|
}, {
|
|
6927
|
-
icon:
|
|
6928
|
-
|
|
6927
|
+
icon: l(() => [
|
|
6928
|
+
a(h, {
|
|
6929
6929
|
name: "edit",
|
|
6930
6930
|
style: { color: "#0052d9" }
|
|
6931
6931
|
})
|
|
@@ -6935,22 +6935,22 @@ const Re = [
|
|
|
6935
6935
|
]),
|
|
6936
6936
|
_: 2
|
|
6937
6937
|
}, 1024),
|
|
6938
|
-
|
|
6938
|
+
a(fe, {
|
|
6939
6939
|
content: "设置为默认方案",
|
|
6940
6940
|
placement: "top"
|
|
6941
6941
|
}, {
|
|
6942
|
-
default:
|
|
6943
|
-
|
|
6942
|
+
default: l(() => [
|
|
6943
|
+
a(U, {
|
|
6944
6944
|
theme: "default",
|
|
6945
6945
|
variant: "text",
|
|
6946
6946
|
size: "small",
|
|
6947
|
-
onClick: (M) =>
|
|
6948
|
-
disabled: !
|
|
6947
|
+
onClick: (M) => T(g),
|
|
6948
|
+
disabled: !g.value || g.value === "empty"
|
|
6949
6949
|
}, {
|
|
6950
|
-
icon:
|
|
6951
|
-
|
|
6952
|
-
name:
|
|
6953
|
-
style: $e({ color:
|
|
6950
|
+
icon: l(() => [
|
|
6951
|
+
a(h, {
|
|
6952
|
+
name: g.isDefault ? "check-circle-filled" : "check-circle",
|
|
6953
|
+
style: $e({ color: g.isDefault ? "#0052d9" : "#bbb" })
|
|
6954
6954
|
}, null, 8, ["name", "style"])
|
|
6955
6955
|
]),
|
|
6956
6956
|
_: 2
|
|
@@ -6958,20 +6958,20 @@ const Re = [
|
|
|
6958
6958
|
]),
|
|
6959
6959
|
_: 2
|
|
6960
6960
|
}, 1024),
|
|
6961
|
-
|
|
6961
|
+
a(fe, {
|
|
6962
6962
|
content: "复制方案",
|
|
6963
6963
|
placement: "top"
|
|
6964
6964
|
}, {
|
|
6965
|
-
default:
|
|
6966
|
-
|
|
6965
|
+
default: l(() => [
|
|
6966
|
+
a(U, {
|
|
6967
6967
|
theme: "default",
|
|
6968
6968
|
variant: "text",
|
|
6969
6969
|
size: "small",
|
|
6970
|
-
onClick: (M) => ie(
|
|
6971
|
-
disabled: !
|
|
6970
|
+
onClick: (M) => ie(g),
|
|
6971
|
+
disabled: !g.value || g.value === "empty"
|
|
6972
6972
|
}, {
|
|
6973
|
-
icon:
|
|
6974
|
-
|
|
6973
|
+
icon: l(() => [
|
|
6974
|
+
a(h, {
|
|
6975
6975
|
name: "file-copy",
|
|
6976
6976
|
style: { color: "#ff9800" }
|
|
6977
6977
|
})
|
|
@@ -6981,20 +6981,20 @@ const Re = [
|
|
|
6981
6981
|
]),
|
|
6982
6982
|
_: 2
|
|
6983
6983
|
}, 1024),
|
|
6984
|
-
|
|
6984
|
+
a(fe, {
|
|
6985
6985
|
content: "删除方案",
|
|
6986
6986
|
placement: "top"
|
|
6987
6987
|
}, {
|
|
6988
|
-
default:
|
|
6989
|
-
|
|
6988
|
+
default: l(() => [
|
|
6989
|
+
a(U, {
|
|
6990
6990
|
theme: "default",
|
|
6991
6991
|
variant: "text",
|
|
6992
6992
|
size: "small",
|
|
6993
|
-
onClick: (M) =>
|
|
6994
|
-
disabled: !
|
|
6993
|
+
onClick: (M) => S(g),
|
|
6994
|
+
disabled: !g.value || g.value === "empty"
|
|
6995
6995
|
}, {
|
|
6996
|
-
icon:
|
|
6997
|
-
|
|
6996
|
+
icon: l(() => [
|
|
6997
|
+
a(h, {
|
|
6998
6998
|
name: "delete",
|
|
6999
6999
|
style: { color: "#0052d9" }
|
|
7000
7000
|
})
|
|
@@ -7013,41 +7013,41 @@ const Re = [
|
|
|
7013
7013
|
])
|
|
7014
7014
|
])
|
|
7015
7015
|
]),
|
|
7016
|
-
footer:
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7016
|
+
footer: l(() => [
|
|
7017
|
+
s("div", Na, [
|
|
7018
|
+
s("div", Ba, [
|
|
7019
|
+
a(U, {
|
|
7020
7020
|
theme: "warning",
|
|
7021
|
-
size:
|
|
7022
|
-
onClick:
|
|
7021
|
+
size: i.size,
|
|
7022
|
+
onClick: L
|
|
7023
7023
|
}, {
|
|
7024
|
-
icon:
|
|
7025
|
-
|
|
7024
|
+
icon: l(() => [
|
|
7025
|
+
a(h, { name: "save" })
|
|
7026
7026
|
]),
|
|
7027
|
-
default:
|
|
7028
|
-
t[18] || (t[18] =
|
|
7027
|
+
default: l(() => [
|
|
7028
|
+
t[18] || (t[18] = w(" 保存方案 ", -1))
|
|
7029
7029
|
]),
|
|
7030
7030
|
_: 1
|
|
7031
7031
|
}, 8, ["size"])
|
|
7032
7032
|
]),
|
|
7033
|
-
|
|
7034
|
-
|
|
7033
|
+
s("div", Ma, [
|
|
7034
|
+
a(U, {
|
|
7035
7035
|
theme: "default",
|
|
7036
|
-
size:
|
|
7037
|
-
onClick:
|
|
7036
|
+
size: i.size,
|
|
7037
|
+
onClick: oe
|
|
7038
7038
|
}, {
|
|
7039
|
-
default:
|
|
7040
|
-
|
|
7039
|
+
default: l(() => [...t[19] || (t[19] = [
|
|
7040
|
+
w("重置", -1)
|
|
7041
7041
|
])]),
|
|
7042
7042
|
_: 1
|
|
7043
7043
|
}, 8, ["size"]),
|
|
7044
|
-
|
|
7044
|
+
a(U, {
|
|
7045
7045
|
theme: "primary",
|
|
7046
|
-
size:
|
|
7047
|
-
onClick:
|
|
7046
|
+
size: i.size,
|
|
7047
|
+
onClick: N
|
|
7048
7048
|
}, {
|
|
7049
|
-
default:
|
|
7050
|
-
|
|
7049
|
+
default: l(() => [...t[20] || (t[20] = [
|
|
7050
|
+
w("确定", -1)
|
|
7051
7051
|
])]),
|
|
7052
7052
|
_: 1
|
|
7053
7053
|
}, 8, ["size"])
|
|
@@ -7056,18 +7056,18 @@ const Re = [
|
|
|
7056
7056
|
]),
|
|
7057
7057
|
_: 1
|
|
7058
7058
|
}, 8, ["visible", "width"]),
|
|
7059
|
-
|
|
7060
|
-
visible:
|
|
7061
|
-
"onUpdate:visible": t[5] || (t[5] = (
|
|
7062
|
-
"is-editing":
|
|
7063
|
-
"plan-name":
|
|
7059
|
+
a(da, {
|
|
7060
|
+
visible: r.value,
|
|
7061
|
+
"onUpdate:visible": t[5] || (t[5] = (g) => r.value = g),
|
|
7062
|
+
"is-editing": A.value,
|
|
7063
|
+
"plan-name": B.value,
|
|
7064
7064
|
"original-share-mode": Y.value,
|
|
7065
|
-
"original-share-type":
|
|
7066
|
-
"original-selected-users":
|
|
7067
|
-
tabs:
|
|
7068
|
-
organizations:
|
|
7069
|
-
"dept-members-data-prop":
|
|
7070
|
-
onConfirm:
|
|
7065
|
+
"original-share-type": V.value,
|
|
7066
|
+
"original-selected-users": C.value,
|
|
7067
|
+
tabs: i.personTabs,
|
|
7068
|
+
organizations: i.personOrganizations,
|
|
7069
|
+
"dept-members-data-prop": P.value,
|
|
7070
|
+
onConfirm: ae,
|
|
7071
7071
|
onLoadUsers: pe,
|
|
7072
7072
|
onSearch: ye,
|
|
7073
7073
|
onDeptClick: be
|
|
@@ -7087,8 +7087,8 @@ const Re = [
|
|
|
7087
7087
|
initialRules: { type: Array, default: () => [] }
|
|
7088
7088
|
},
|
|
7089
7089
|
emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
|
|
7090
|
-
setup(
|
|
7091
|
-
const d =
|
|
7090
|
+
setup(i, { emit: ee }) {
|
|
7091
|
+
const d = i, v = ee, o = _(d.visible), x = [
|
|
7092
7092
|
// 第一行 - 暖色系
|
|
7093
7093
|
"#FFE7BA",
|
|
7094
7094
|
"#FFD6E7",
|
|
@@ -7122,7 +7122,7 @@ const Re = [
|
|
|
7122
7122
|
"#B0BEC5",
|
|
7123
7123
|
"#E7F5E8",
|
|
7124
7124
|
"#F8F9FA"
|
|
7125
|
-
],
|
|
7125
|
+
], X = [
|
|
7126
7126
|
{ label: "等于", value: "eq" },
|
|
7127
7127
|
{ label: "不等于", value: "ne" },
|
|
7128
7128
|
{ label: "大于", value: "gt" },
|
|
@@ -7131,11 +7131,11 @@ const Re = [
|
|
|
7131
7131
|
{ label: "小于等于", value: "lte" },
|
|
7132
7132
|
{ label: "包含", value: "contains" },
|
|
7133
7133
|
{ label: "不包含", value: "notContains" }
|
|
7134
|
-
],
|
|
7134
|
+
], r = {
|
|
7135
7135
|
overlayInnerStyle: {
|
|
7136
7136
|
width: "180px"
|
|
7137
7137
|
}
|
|
7138
|
-
},
|
|
7138
|
+
}, P = _([
|
|
7139
7139
|
{
|
|
7140
7140
|
field: "",
|
|
7141
7141
|
operator: "eq",
|
|
@@ -7146,18 +7146,18 @@ const Re = [
|
|
|
7146
7146
|
applyTo: "cell"
|
|
7147
7147
|
}
|
|
7148
7148
|
]);
|
|
7149
|
-
|
|
7150
|
-
|
|
7149
|
+
I(() => d.visible, (b) => {
|
|
7150
|
+
o.value = b, b && d.initialRules.length > 0 && (P.value = JSON.parse(JSON.stringify(d.initialRules)).map((u) => ({
|
|
7151
7151
|
...u,
|
|
7152
7152
|
showColorPicker: !1
|
|
7153
7153
|
})));
|
|
7154
|
-
}),
|
|
7155
|
-
v("update:visible",
|
|
7154
|
+
}), I(o, (b) => {
|
|
7155
|
+
v("update:visible", b);
|
|
7156
7156
|
});
|
|
7157
|
-
const
|
|
7158
|
-
|
|
7159
|
-
},
|
|
7160
|
-
|
|
7157
|
+
const W = (b, u) => {
|
|
7158
|
+
P.value[b].backgroundColor = u, P.value[b].showColorPicker = !1;
|
|
7159
|
+
}, A = () => {
|
|
7160
|
+
P.value.push({
|
|
7161
7161
|
field: "",
|
|
7162
7162
|
operator: "eq",
|
|
7163
7163
|
value: "",
|
|
@@ -7166,14 +7166,14 @@ const Re = [
|
|
|
7166
7166
|
showColorPicker: !1,
|
|
7167
7167
|
applyTo: "cell"
|
|
7168
7168
|
});
|
|
7169
|
-
},
|
|
7170
|
-
|
|
7169
|
+
}, B = (b) => {
|
|
7170
|
+
P.value.length > 1 && P.value.splice(b, 1);
|
|
7171
7171
|
}, Y = () => {
|
|
7172
|
-
|
|
7173
|
-
},
|
|
7174
|
-
v("clear"),
|
|
7175
|
-
},
|
|
7176
|
-
const
|
|
7172
|
+
o.value = !1;
|
|
7173
|
+
}, V = () => {
|
|
7174
|
+
v("clear"), o.value = !1;
|
|
7175
|
+
}, C = () => {
|
|
7176
|
+
const b = P.value.filter(
|
|
7177
7177
|
(u) => u.field && u.operator && u.value
|
|
7178
7178
|
).map((u) => ({
|
|
7179
7179
|
field: u.field,
|
|
@@ -7183,122 +7183,122 @@ const Re = [
|
|
|
7183
7183
|
isBold: u.isBold,
|
|
7184
7184
|
applyTo: u.applyTo
|
|
7185
7185
|
}));
|
|
7186
|
-
v("confirm",
|
|
7187
|
-
},
|
|
7188
|
-
const
|
|
7189
|
-
for (let
|
|
7190
|
-
const
|
|
7191
|
-
|
|
7186
|
+
v("confirm", b), o.value = !1;
|
|
7187
|
+
}, k = re(() => {
|
|
7188
|
+
const b = P.value.length, u = Math.floor(x.length / b), f = [];
|
|
7189
|
+
for (let c = 0; c < b; c++) {
|
|
7190
|
+
const F = c * u % x.length;
|
|
7191
|
+
f.push(x[F]);
|
|
7192
7192
|
}
|
|
7193
|
-
return
|
|
7194
|
-
}),
|
|
7195
|
-
|
|
7196
|
-
u <
|
|
7197
|
-
}), v("smart-colors-change",
|
|
7193
|
+
return f;
|
|
7194
|
+
}), z = () => {
|
|
7195
|
+
P.value.forEach((b, u) => {
|
|
7196
|
+
u < k.value.length && (b.backgroundColor = k.value[u]);
|
|
7197
|
+
}), v("smart-colors-change", k.value);
|
|
7198
7198
|
};
|
|
7199
|
-
return (
|
|
7200
|
-
const
|
|
7201
|
-
return
|
|
7202
|
-
visible:
|
|
7203
|
-
"onUpdate:visible": u[0] || (u[0] = (
|
|
7199
|
+
return (b, u) => {
|
|
7200
|
+
const f = p("t-button"), c = p("t-checkbox"), F = p("t-popup"), J = p("t-radio-button"), L = p("t-radio-group"), ae = p("t-select"), Q = p("t-input"), ie = p("t-icon"), S = p("t-dialog");
|
|
7201
|
+
return y(), j(S, {
|
|
7202
|
+
visible: o.value,
|
|
7203
|
+
"onUpdate:visible": u[0] || (u[0] = (T) => o.value = T),
|
|
7204
7204
|
width: "800px",
|
|
7205
7205
|
"confirm-btn": null,
|
|
7206
7206
|
"cancel-btn": null,
|
|
7207
7207
|
onClose: Y
|
|
7208
7208
|
}, {
|
|
7209
|
-
header:
|
|
7210
|
-
|
|
7211
|
-
u[3] || (u[3] =
|
|
7212
|
-
|
|
7209
|
+
header: l(() => [
|
|
7210
|
+
s("div", La, [
|
|
7211
|
+
u[3] || (u[3] = s("span", null, "颜色筛选", -1)),
|
|
7212
|
+
a(f, {
|
|
7213
7213
|
theme: "primary",
|
|
7214
7214
|
variant: "outline",
|
|
7215
7215
|
size: "small",
|
|
7216
|
-
onClick:
|
|
7216
|
+
onClick: z
|
|
7217
7217
|
}, {
|
|
7218
|
-
icon:
|
|
7219
|
-
|
|
7218
|
+
icon: l(() => [...u[1] || (u[1] = [
|
|
7219
|
+
s("i", { class: "ri-palette-line" }, null, -1)
|
|
7220
7220
|
])]),
|
|
7221
|
-
default:
|
|
7222
|
-
u[2] || (u[2] =
|
|
7221
|
+
default: l(() => [
|
|
7222
|
+
u[2] || (u[2] = w(" 智能配色 ", -1))
|
|
7223
7223
|
]),
|
|
7224
7224
|
_: 1
|
|
7225
7225
|
})
|
|
7226
7226
|
])
|
|
7227
7227
|
]),
|
|
7228
|
-
body:
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
(
|
|
7232
|
-
key:
|
|
7228
|
+
body: l(() => [
|
|
7229
|
+
s("div", Ha, [
|
|
7230
|
+
s("div", ja, [
|
|
7231
|
+
(y(!0), q(Z, null, le(P.value, (T, oe) => (y(), q("div", {
|
|
7232
|
+
key: oe,
|
|
7233
7233
|
class: "color-rule-item"
|
|
7234
7234
|
}, [
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
visible:
|
|
7239
|
-
"onUpdate:visible": (
|
|
7235
|
+
s("div", Ya, [
|
|
7236
|
+
s("div", Ga, [
|
|
7237
|
+
a(F, {
|
|
7238
|
+
visible: T.showColorPicker,
|
|
7239
|
+
"onUpdate:visible": (N) => T.showColorPicker = N,
|
|
7240
7240
|
placement: "bottom-left",
|
|
7241
7241
|
trigger: "click"
|
|
7242
7242
|
}, {
|
|
7243
|
-
content:
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
(
|
|
7247
|
-
key:
|
|
7248
|
-
class: Se(["preset-color-item", { active:
|
|
7249
|
-
style: $e({ backgroundColor:
|
|
7250
|
-
onClick: (me) =>
|
|
7243
|
+
content: l(() => [
|
|
7244
|
+
s("div", Qa, [
|
|
7245
|
+
s("div", Xa, [
|
|
7246
|
+
(y(), q(Z, null, le(x, (N) => s("div", {
|
|
7247
|
+
key: N,
|
|
7248
|
+
class: Se(["preset-color-item", { active: T.backgroundColor === N }]),
|
|
7249
|
+
style: $e({ backgroundColor: N }),
|
|
7250
|
+
onClick: (me) => W(oe, N)
|
|
7251
7251
|
}, null, 14, Za)), 64))
|
|
7252
7252
|
]),
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
modelValue:
|
|
7256
|
-
"onUpdate:modelValue": (
|
|
7253
|
+
s("div", Ia, [
|
|
7254
|
+
a(c, {
|
|
7255
|
+
modelValue: T.isBold,
|
|
7256
|
+
"onUpdate:modelValue": (N) => T.isBold = N
|
|
7257
7257
|
}, {
|
|
7258
|
-
default:
|
|
7259
|
-
|
|
7258
|
+
default: l(() => [...u[4] || (u[4] = [
|
|
7259
|
+
s("span", { class: "bold-text" }, "加粗", -1)
|
|
7260
7260
|
])]),
|
|
7261
7261
|
_: 1
|
|
7262
7262
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
7263
7263
|
])
|
|
7264
7264
|
])
|
|
7265
7265
|
]),
|
|
7266
|
-
default:
|
|
7267
|
-
|
|
7268
|
-
|
|
7266
|
+
default: l(() => [
|
|
7267
|
+
s("div", Wa, [
|
|
7268
|
+
s("div", {
|
|
7269
7269
|
class: "color-block",
|
|
7270
|
-
style: $e({ backgroundColor:
|
|
7270
|
+
style: $e({ backgroundColor: T.backgroundColor })
|
|
7271
7271
|
}, [
|
|
7272
|
-
|
|
7272
|
+
T.isBold ? (y(), q("span", Ka, "B")) : ne("", !0)
|
|
7273
7273
|
], 4)
|
|
7274
7274
|
])
|
|
7275
7275
|
]),
|
|
7276
7276
|
_: 2
|
|
7277
7277
|
}, 1032, ["visible", "onUpdate:visible"])
|
|
7278
7278
|
]),
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
modelValue:
|
|
7282
|
-
"onUpdate:modelValue": (
|
|
7283
|
-
size:
|
|
7279
|
+
s("div", el, [
|
|
7280
|
+
a(L, {
|
|
7281
|
+
modelValue: T.applyTo,
|
|
7282
|
+
"onUpdate:modelValue": (N) => T.applyTo = N,
|
|
7283
|
+
size: i.size,
|
|
7284
7284
|
variant: "default-filled"
|
|
7285
7285
|
}, {
|
|
7286
|
-
default:
|
|
7287
|
-
|
|
7288
|
-
default:
|
|
7289
|
-
|
|
7286
|
+
default: l(() => [
|
|
7287
|
+
a(J, { value: "cell" }, {
|
|
7288
|
+
default: l(() => [...u[5] || (u[5] = [
|
|
7289
|
+
w("单元格", -1)
|
|
7290
7290
|
])]),
|
|
7291
7291
|
_: 1
|
|
7292
7292
|
}),
|
|
7293
|
-
|
|
7294
|
-
default:
|
|
7295
|
-
|
|
7293
|
+
a(J, { value: "row" }, {
|
|
7294
|
+
default: l(() => [...u[6] || (u[6] = [
|
|
7295
|
+
w("整行", -1)
|
|
7296
7296
|
])]),
|
|
7297
7297
|
_: 1
|
|
7298
7298
|
}),
|
|
7299
|
-
|
|
7300
|
-
default:
|
|
7301
|
-
|
|
7299
|
+
a(J, { value: "column" }, {
|
|
7300
|
+
default: l(() => [...u[7] || (u[7] = [
|
|
7301
|
+
w("整列", -1)
|
|
7302
7302
|
])]),
|
|
7303
7303
|
_: 1
|
|
7304
7304
|
})
|
|
@@ -7306,94 +7306,94 @@ const Re = [
|
|
|
7306
7306
|
_: 1
|
|
7307
7307
|
}, 8, ["modelValue", "onUpdate:modelValue", "size"])
|
|
7308
7308
|
]),
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
modelValue:
|
|
7312
|
-
"onUpdate:modelValue": (
|
|
7313
|
-
options:
|
|
7309
|
+
s("div", al, [
|
|
7310
|
+
a(ae, {
|
|
7311
|
+
modelValue: T.field,
|
|
7312
|
+
"onUpdate:modelValue": (N) => T.field = N,
|
|
7313
|
+
options: i.fieldOptions,
|
|
7314
7314
|
placeholder: "选择字段",
|
|
7315
|
-
size:
|
|
7315
|
+
size: i.size,
|
|
7316
7316
|
style: { width: "120px", display: "inline-block" },
|
|
7317
|
-
"popup-props":
|
|
7317
|
+
"popup-props": r
|
|
7318
7318
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "size"]),
|
|
7319
|
-
|
|
7320
|
-
modelValue:
|
|
7321
|
-
"onUpdate:modelValue": (
|
|
7322
|
-
options:
|
|
7319
|
+
a(ae, {
|
|
7320
|
+
modelValue: T.operator,
|
|
7321
|
+
"onUpdate:modelValue": (N) => T.operator = N,
|
|
7322
|
+
options: X,
|
|
7323
7323
|
placeholder: "选择操作符",
|
|
7324
|
-
size:
|
|
7324
|
+
size: i.size,
|
|
7325
7325
|
style: { width: "120px" },
|
|
7326
|
-
"popup-props":
|
|
7326
|
+
"popup-props": r
|
|
7327
7327
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
|
|
7328
|
-
|
|
7329
|
-
modelValue:
|
|
7330
|
-
"onUpdate:modelValue": (
|
|
7328
|
+
a(Q, {
|
|
7329
|
+
modelValue: T.value,
|
|
7330
|
+
"onUpdate:modelValue": (N) => T.value = N,
|
|
7331
7331
|
placeholder: "输入值",
|
|
7332
|
-
size:
|
|
7332
|
+
size: i.size,
|
|
7333
7333
|
style: { width: "200px" }
|
|
7334
7334
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"])
|
|
7335
7335
|
])
|
|
7336
7336
|
]),
|
|
7337
|
-
|
|
7337
|
+
a(f, {
|
|
7338
7338
|
theme: "default",
|
|
7339
7339
|
variant: "text",
|
|
7340
|
-
size:
|
|
7341
|
-
onClick: (
|
|
7342
|
-
disabled:
|
|
7340
|
+
size: i.size,
|
|
7341
|
+
onClick: (N) => B(oe),
|
|
7342
|
+
disabled: P.value.length === 1
|
|
7343
7343
|
}, {
|
|
7344
|
-
icon:
|
|
7345
|
-
|
|
7344
|
+
icon: l(() => [...u[8] || (u[8] = [
|
|
7345
|
+
s("i", { class: "ri-close-fill" }, null, -1)
|
|
7346
7346
|
])]),
|
|
7347
7347
|
_: 1
|
|
7348
7348
|
}, 8, ["size", "onClick", "disabled"])
|
|
7349
7349
|
]))), 128))
|
|
7350
7350
|
]),
|
|
7351
|
-
|
|
7351
|
+
a(f, {
|
|
7352
7352
|
theme: "default",
|
|
7353
7353
|
variant: "dashed",
|
|
7354
|
-
size:
|
|
7355
|
-
onClick:
|
|
7354
|
+
size: i.size,
|
|
7355
|
+
onClick: A,
|
|
7356
7356
|
style: { width: "100%", "margin-top": "12px" }
|
|
7357
7357
|
}, {
|
|
7358
|
-
icon:
|
|
7359
|
-
|
|
7358
|
+
icon: l(() => [
|
|
7359
|
+
a(ie, { name: "add" })
|
|
7360
7360
|
]),
|
|
7361
|
-
default:
|
|
7362
|
-
u[9] || (u[9] =
|
|
7361
|
+
default: l(() => [
|
|
7362
|
+
u[9] || (u[9] = w(" 添加规则 ", -1))
|
|
7363
7363
|
]),
|
|
7364
7364
|
_: 1
|
|
7365
7365
|
}, 8, ["size"])
|
|
7366
7366
|
])
|
|
7367
7367
|
]),
|
|
7368
|
-
footer:
|
|
7369
|
-
|
|
7370
|
-
|
|
7368
|
+
footer: l(() => [
|
|
7369
|
+
s("div", ll, [
|
|
7370
|
+
a(f, {
|
|
7371
7371
|
theme: "default",
|
|
7372
|
-
size:
|
|
7372
|
+
size: i.size,
|
|
7373
7373
|
onClick: Y
|
|
7374
7374
|
}, {
|
|
7375
|
-
default:
|
|
7376
|
-
|
|
7375
|
+
default: l(() => [...u[10] || (u[10] = [
|
|
7376
|
+
w("取消", -1)
|
|
7377
7377
|
])]),
|
|
7378
7378
|
_: 1
|
|
7379
7379
|
}, 8, ["size"]),
|
|
7380
|
-
|
|
7380
|
+
a(f, {
|
|
7381
7381
|
theme: "default",
|
|
7382
|
-
size:
|
|
7383
|
-
onClick:
|
|
7382
|
+
size: i.size,
|
|
7383
|
+
onClick: V
|
|
7384
7384
|
}, {
|
|
7385
|
-
default:
|
|
7386
|
-
|
|
7385
|
+
default: l(() => [...u[11] || (u[11] = [
|
|
7386
|
+
w("清除", -1)
|
|
7387
7387
|
])]),
|
|
7388
7388
|
_: 1
|
|
7389
7389
|
}, 8, ["size"]),
|
|
7390
|
-
|
|
7390
|
+
a(f, {
|
|
7391
7391
|
theme: "primary",
|
|
7392
|
-
size:
|
|
7393
|
-
onClick:
|
|
7392
|
+
size: i.size,
|
|
7393
|
+
onClick: C
|
|
7394
7394
|
}, {
|
|
7395
|
-
default:
|
|
7396
|
-
|
|
7395
|
+
default: l(() => [...u[12] || (u[12] = [
|
|
7396
|
+
w("确定", -1)
|
|
7397
7397
|
])]),
|
|
7398
7398
|
_: 1
|
|
7399
7399
|
}, 8, ["size"])
|
|
@@ -7455,92 +7455,94 @@ const Re = [
|
|
|
7455
7455
|
"keyword-clear",
|
|
7456
7456
|
"smart-colors-change"
|
|
7457
7457
|
],
|
|
7458
|
-
setup(
|
|
7459
|
-
const d =
|
|
7458
|
+
setup(i, { emit: ee }) {
|
|
7459
|
+
const d = i, v = ee, o = _([]), x = () => ({ field: "", operator: "eq", value: "" });
|
|
7460
7460
|
(() => {
|
|
7461
|
-
var
|
|
7461
|
+
var n, $;
|
|
7462
7462
|
if (d.filterCount === 0) {
|
|
7463
|
-
|
|
7463
|
+
o.value = [];
|
|
7464
7464
|
return;
|
|
7465
7465
|
}
|
|
7466
|
-
const
|
|
7467
|
-
|
|
7466
|
+
const m = (($ = (n = d.filterCards) == null ? void 0 : n[0]) == null ? void 0 : $.conditions) || [];
|
|
7467
|
+
o.value = Array.from({ length: d.filterCount }, (E, H) => m[H] ? JSON.parse(JSON.stringify(m[H])) : x());
|
|
7468
7468
|
})();
|
|
7469
|
-
const
|
|
7469
|
+
const r = () => {
|
|
7470
7470
|
if (d.filterCount === 0) {
|
|
7471
|
-
|
|
7471
|
+
o.value = [];
|
|
7472
7472
|
return;
|
|
7473
7473
|
}
|
|
7474
|
-
|
|
7475
|
-
},
|
|
7476
|
-
|
|
7477
|
-
const Y =
|
|
7478
|
-
const
|
|
7479
|
-
|
|
7480
|
-
},
|
|
7481
|
-
if (!
|
|
7482
|
-
if (Y.value =
|
|
7483
|
-
const
|
|
7484
|
-
|
|
7474
|
+
o.value = Array.from({ length: d.filterCount }, () => x());
|
|
7475
|
+
}, P = _("保存筛选方案"), W = _(!1), A = _(d.topOp), B = _(JSON.parse(JSON.stringify(d.filterCards)));
|
|
7476
|
+
I(() => d.topOp, (m) => A.value = m), I(() => d.filterCards, (m) => B.value = JSON.parse(JSON.stringify(m)));
|
|
7477
|
+
const Y = _(null), V = _(""), C = re(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), k = (m) => {
|
|
7478
|
+
const n = d.planFilterOptions.find(($) => $.value === m);
|
|
7479
|
+
n && z(n);
|
|
7480
|
+
}, z = (m) => {
|
|
7481
|
+
if (!m.precepts || m.precepts.length === 0) return;
|
|
7482
|
+
if (Y.value = m, V.value = m.value, B.value = JSON.parse(JSON.stringify(m.precepts)), A.value = m.sqlConnectType, d.filterCount > 0) {
|
|
7483
|
+
const E = m.precepts[0];
|
|
7484
|
+
E && E.conditions && (o.value = Array.from({ length: d.filterCount }, (H, R) => E.conditions[R] ? JSON.parse(JSON.stringify(E.conditions[R])) : x()));
|
|
7485
7485
|
}
|
|
7486
|
-
const
|
|
7487
|
-
if (v("confirm",
|
|
7488
|
-
const
|
|
7489
|
-
v("column-change",
|
|
7486
|
+
const n = F(m.precepts), $ = J(n, m.sqlConnectType);
|
|
7487
|
+
if (v("confirm", $), m.columns && m.columns.length > 0) {
|
|
7488
|
+
const E = m.columns.filter((H) => H.show !== !1);
|
|
7489
|
+
v("column-change", E);
|
|
7490
7490
|
}
|
|
7491
|
-
},
|
|
7491
|
+
}, b = () => {
|
|
7492
|
+
u();
|
|
7493
|
+
}, u = () => {
|
|
7492
7494
|
if (d.filterCount === 0) {
|
|
7493
7495
|
v("search", { conditions: { and: [] } });
|
|
7494
7496
|
return;
|
|
7495
7497
|
}
|
|
7496
|
-
const
|
|
7497
|
-
{ id: 1, connector:
|
|
7498
|
-
]),
|
|
7499
|
-
v("search",
|
|
7500
|
-
},
|
|
7501
|
-
|
|
7502
|
-
},
|
|
7503
|
-
|
|
7504
|
-
},
|
|
7505
|
-
const
|
|
7506
|
-
let
|
|
7507
|
-
return
|
|
7508
|
-
field:
|
|
7509
|
-
operator:
|
|
7510
|
-
value:
|
|
7498
|
+
const m = F([
|
|
7499
|
+
{ id: 1, connector: A.value, conditions: o.value }
|
|
7500
|
+
]), n = J(m, "and");
|
|
7501
|
+
v("search", n);
|
|
7502
|
+
}, f = () => {
|
|
7503
|
+
W.value = !0;
|
|
7504
|
+
}, c = () => {
|
|
7505
|
+
W.value = !1;
|
|
7506
|
+
}, F = (m) => m.map((n) => {
|
|
7507
|
+
const $ = n.conditions.filter((E) => E.field && E.field.trim() !== "").map((E) => {
|
|
7508
|
+
let H = "";
|
|
7509
|
+
return E.value !== null && E.value !== void 0 && (Array.isArray(E.value) ? H = E.value.join("/") : H = String(E.value)), {
|
|
7510
|
+
field: E.field.trim(),
|
|
7511
|
+
operator: E.operator || "eq",
|
|
7512
|
+
value: H
|
|
7511
7513
|
};
|
|
7512
7514
|
});
|
|
7513
7515
|
return {
|
|
7514
|
-
...
|
|
7515
|
-
connector:
|
|
7516
|
-
conditions:
|
|
7516
|
+
...n,
|
|
7517
|
+
connector: n.connector || "and",
|
|
7518
|
+
conditions: $.length > 0 ? $ : [{ field: "", operator: "eq", value: "" }]
|
|
7517
7519
|
};
|
|
7518
|
-
}).filter((
|
|
7519
|
-
function
|
|
7520
|
-
if (
|
|
7520
|
+
}).filter((n) => n.conditions.length > 0 && n.conditions[0].field !== "");
|
|
7521
|
+
function J(m, n) {
|
|
7522
|
+
if (n !== "and" && n !== "or")
|
|
7521
7523
|
throw new Error('type参数必须是"and"或"or"');
|
|
7522
|
-
function
|
|
7524
|
+
function $(R) {
|
|
7523
7525
|
return {
|
|
7524
|
-
[
|
|
7525
|
-
[
|
|
7526
|
+
[R.field]: {
|
|
7527
|
+
[R.operator]: R.value
|
|
7526
7528
|
}
|
|
7527
7529
|
};
|
|
7528
7530
|
}
|
|
7529
|
-
function
|
|
7530
|
-
return
|
|
7531
|
-
[
|
|
7531
|
+
function E(R) {
|
|
7532
|
+
return R.conditions.length === 1 ? $(R.conditions[0]) : {
|
|
7533
|
+
[R.connector]: R.conditions.map($)
|
|
7532
7534
|
};
|
|
7533
7535
|
}
|
|
7534
7536
|
return {
|
|
7535
7537
|
conditions: {
|
|
7536
|
-
[
|
|
7538
|
+
[n]: m.map(E)
|
|
7537
7539
|
}
|
|
7538
7540
|
};
|
|
7539
7541
|
}
|
|
7540
|
-
const
|
|
7541
|
-
|
|
7542
|
-
},
|
|
7543
|
-
|
|
7542
|
+
const L = () => {
|
|
7543
|
+
S.value = !1;
|
|
7544
|
+
}, ae = () => {
|
|
7545
|
+
r(), Y.value = null, V.value = "", B.value = [
|
|
7544
7546
|
{
|
|
7545
7547
|
id: 1,
|
|
7546
7548
|
connector: "and",
|
|
@@ -7549,56 +7551,56 @@ const Re = [
|
|
|
7549
7551
|
{ field: "", operator: "eq", value: "" }
|
|
7550
7552
|
]
|
|
7551
7553
|
}
|
|
7552
|
-
],
|
|
7553
|
-
},
|
|
7554
|
+
], A.value = "and", v("reset"), u();
|
|
7555
|
+
}, Q = () => {
|
|
7554
7556
|
if (Y.value) {
|
|
7555
|
-
const
|
|
7557
|
+
const m = F(B.value);
|
|
7556
7558
|
v("update-plan", {
|
|
7557
|
-
name:
|
|
7558
|
-
precepts:
|
|
7559
|
-
topOp:
|
|
7559
|
+
name: T.value.name,
|
|
7560
|
+
precepts: m,
|
|
7561
|
+
topOp: A.value,
|
|
7560
7562
|
plan: Y.value,
|
|
7561
7563
|
columns: d.visibleColumns || []
|
|
7562
7564
|
// 包含当前列配置
|
|
7563
7565
|
});
|
|
7564
7566
|
} else {
|
|
7565
|
-
const
|
|
7567
|
+
const m = F(B.value);
|
|
7566
7568
|
v("save-plan", {
|
|
7567
|
-
name:
|
|
7568
|
-
precepts:
|
|
7569
|
-
topOp:
|
|
7569
|
+
name: T.value.name,
|
|
7570
|
+
precepts: m,
|
|
7571
|
+
topOp: A.value,
|
|
7570
7572
|
plan: Y.value,
|
|
7571
7573
|
columns: d.visibleColumns || []
|
|
7572
7574
|
// 包含当前列配置
|
|
7573
7575
|
});
|
|
7574
7576
|
}
|
|
7575
|
-
|
|
7576
|
-
},
|
|
7577
|
-
const
|
|
7578
|
-
if (v("confirm",
|
|
7579
|
-
const
|
|
7580
|
-
|
|
7577
|
+
L();
|
|
7578
|
+
}, ie = (m) => {
|
|
7579
|
+
const n = J(m.filterCards, m.type1);
|
|
7580
|
+
if (v("confirm", n), d.filterCount > 0) {
|
|
7581
|
+
const $ = m.filterCards[0];
|
|
7582
|
+
$ && $.conditions && (o.value = Array.from({ length: d.filterCount }, (E, H) => $.conditions[H] ? JSON.parse(JSON.stringify($.conditions[H])) : x()));
|
|
7581
7583
|
}
|
|
7582
|
-
|
|
7583
|
-
},
|
|
7584
|
-
|
|
7585
|
-
},
|
|
7586
|
-
|
|
7587
|
-
},
|
|
7588
|
-
|
|
7584
|
+
c();
|
|
7585
|
+
}, S = _(!1), T = _({ name: "" }), oe = _(!1), N = _([]), me = () => {
|
|
7586
|
+
oe.value = !0;
|
|
7587
|
+
}, pe = (m) => {
|
|
7588
|
+
N.value = m, v("color-filter-change", m);
|
|
7589
|
+
}, ye = () => {
|
|
7590
|
+
N.value = [], v("color-filter-clear");
|
|
7589
7591
|
};
|
|
7590
|
-
|
|
7591
|
-
const
|
|
7592
|
-
v("smart-colors-change",
|
|
7593
|
-
},
|
|
7594
|
-
const
|
|
7595
|
-
return
|
|
7596
|
-
${
|
|
7597
|
-
const
|
|
7598
|
-
return `${
|
|
7592
|
+
_("");
|
|
7593
|
+
const be = (m) => {
|
|
7594
|
+
v("smart-colors-change", m);
|
|
7595
|
+
}, G = re(() => N.value.filter((m) => m.field && m.operator && m.value).length), se = re(() => {
|
|
7596
|
+
const m = N.value.filter(($) => $.field && $.operator && $.value);
|
|
7597
|
+
return m.length === 0 ? "颜色筛选" : `
|
|
7598
|
+
${m.map(($) => {
|
|
7599
|
+
const E = d.fieldOptions.find((R) => R.value === $.field);
|
|
7600
|
+
return `${E ? E.label : $.field} ${te($.operator)} ${$.value}`;
|
|
7599
7601
|
}).join(`
|
|
7600
7602
|
`)}`;
|
|
7601
|
-
}),
|
|
7603
|
+
}), te = (m) => ({
|
|
7602
7604
|
eq: "等于",
|
|
7603
7605
|
ne: "不等于",
|
|
7604
7606
|
gt: "大于",
|
|
@@ -7607,85 +7609,86 @@ ${c.map((f) => {
|
|
|
7607
7609
|
lte: "小于等于",
|
|
7608
7610
|
contains: "包含",
|
|
7609
7611
|
notContains: "不包含"
|
|
7610
|
-
})[
|
|
7611
|
-
return (
|
|
7612
|
-
const
|
|
7613
|
-
return
|
|
7614
|
-
|
|
7615
|
-
(
|
|
7616
|
-
key:
|
|
7617
|
-
"field-options":
|
|
7618
|
-
size:
|
|
7619
|
-
"filter-condition":
|
|
7620
|
-
"select-options":
|
|
7612
|
+
})[m] || m;
|
|
7613
|
+
return (m, n) => {
|
|
7614
|
+
const $ = p("t-radio-button"), E = p("t-radio-group"), H = p("t-icon"), R = p("t-button"), ge = p("t-badge"), he = p("t-tooltip"), Ce = p("t-dropdown"), ke = p("t-input"), _e = p("t-form-item"), ze = p("t-form"), Fe = p("t-dialog");
|
|
7615
|
+
return y(), q("div", nl, [
|
|
7616
|
+
i.filterCount > 0 ? (y(), q("div", ol, [
|
|
7617
|
+
(y(!0), q(Z, null, le(o.value, (e, t) => (y(), j(Ue, {
|
|
7618
|
+
key: t,
|
|
7619
|
+
"field-options": i.fieldOptions,
|
|
7620
|
+
size: i.size,
|
|
7621
|
+
"filter-condition": o.value[t],
|
|
7622
|
+
"select-options": i.selectOptions,
|
|
7623
|
+
onSearch: b
|
|
7621
7624
|
}, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
|
|
7622
|
-
])) :
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
modelValue:
|
|
7627
|
-
"onUpdate:modelValue":
|
|
7628
|
-
size:
|
|
7629
|
-
onChange:
|
|
7625
|
+
])) : ne("", !0),
|
|
7626
|
+
i.filterCount === 0 && i.planFilterOptions.length > 0 ? (y(), q("div", il, [
|
|
7627
|
+
n[12] || (n[12] = s("span", { class: "plan-label" }, "我的方案:", -1)),
|
|
7628
|
+
a(E, {
|
|
7629
|
+
modelValue: V.value,
|
|
7630
|
+
"onUpdate:modelValue": n[0] || (n[0] = (e) => V.value = e),
|
|
7631
|
+
size: i.size,
|
|
7632
|
+
onChange: k
|
|
7630
7633
|
}, {
|
|
7631
|
-
default:
|
|
7632
|
-
(
|
|
7633
|
-
key:
|
|
7634
|
-
value:
|
|
7635
|
-
disabled:
|
|
7634
|
+
default: l(() => [
|
|
7635
|
+
(y(!0), q(Z, null, le(i.planFilterOptions, (e) => (y(), j($, {
|
|
7636
|
+
key: e.value,
|
|
7637
|
+
value: e.value,
|
|
7638
|
+
disabled: e.disabled
|
|
7636
7639
|
}, {
|
|
7637
|
-
default:
|
|
7638
|
-
|
|
7640
|
+
default: l(() => [
|
|
7641
|
+
w(ce(e.content), 1)
|
|
7639
7642
|
]),
|
|
7640
7643
|
_: 2
|
|
7641
7644
|
}, 1032, ["value", "disabled"]))), 128))
|
|
7642
7645
|
]),
|
|
7643
7646
|
_: 1
|
|
7644
7647
|
}, 8, ["modelValue", "size"]),
|
|
7645
|
-
|
|
7648
|
+
a(R, {
|
|
7646
7649
|
theme: "default",
|
|
7647
7650
|
variant: "outline",
|
|
7648
|
-
size:
|
|
7649
|
-
onClick:
|
|
7651
|
+
size: i.size,
|
|
7652
|
+
onClick: f,
|
|
7650
7653
|
title: "高级筛选"
|
|
7651
7654
|
}, {
|
|
7652
|
-
icon:
|
|
7653
|
-
|
|
7655
|
+
icon: l(() => [
|
|
7656
|
+
a(H, { name: "filter" })
|
|
7654
7657
|
]),
|
|
7655
7658
|
_: 1
|
|
7656
7659
|
}, 8, ["size"])
|
|
7657
|
-
])) :
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
+
])) : ne("", !0),
|
|
7661
|
+
s("div", sl, [
|
|
7662
|
+
i.filterCount > 0 ? (y(), j(R, {
|
|
7660
7663
|
key: 0,
|
|
7661
7664
|
theme: "primary",
|
|
7662
|
-
size:
|
|
7663
|
-
onClick:
|
|
7665
|
+
size: i.size,
|
|
7666
|
+
onClick: f,
|
|
7664
7667
|
title: "高级筛选"
|
|
7665
7668
|
}, {
|
|
7666
|
-
icon:
|
|
7667
|
-
|
|
7669
|
+
icon: l(() => [
|
|
7670
|
+
a(H, { name: "filter" })
|
|
7668
7671
|
]),
|
|
7669
7672
|
_: 1
|
|
7670
|
-
}, 8, ["size"])) :
|
|
7671
|
-
|
|
7673
|
+
}, 8, ["size"])) : ne("", !0),
|
|
7674
|
+
i.filterCount > 0 ? (y(), j(he, {
|
|
7672
7675
|
key: 1,
|
|
7673
|
-
content:
|
|
7676
|
+
content: se.value,
|
|
7674
7677
|
placement: "top"
|
|
7675
7678
|
}, {
|
|
7676
|
-
default:
|
|
7677
|
-
|
|
7678
|
-
count:
|
|
7679
|
+
default: l(() => [
|
|
7680
|
+
a(ge, {
|
|
7681
|
+
count: G.value,
|
|
7679
7682
|
"max-count": 99
|
|
7680
7683
|
}, {
|
|
7681
|
-
default:
|
|
7682
|
-
|
|
7684
|
+
default: l(() => [
|
|
7685
|
+
a(R, {
|
|
7683
7686
|
theme: "primary",
|
|
7684
|
-
size:
|
|
7685
|
-
onClick:
|
|
7687
|
+
size: i.size,
|
|
7688
|
+
onClick: me
|
|
7686
7689
|
}, {
|
|
7687
|
-
icon:
|
|
7688
|
-
|
|
7690
|
+
icon: l(() => [...n[13] || (n[13] = [
|
|
7691
|
+
s("i", { class: "ri-palette-fill" }, null, -1)
|
|
7689
7692
|
])]),
|
|
7690
7693
|
_: 1
|
|
7691
7694
|
}, 8, ["size"])
|
|
@@ -7694,76 +7697,76 @@ ${c.map((f) => {
|
|
|
7694
7697
|
}, 8, ["count"])
|
|
7695
7698
|
]),
|
|
7696
7699
|
_: 1
|
|
7697
|
-
}, 8, ["content"])) :
|
|
7698
|
-
|
|
7700
|
+
}, 8, ["content"])) : ne("", !0),
|
|
7701
|
+
i.filterCount > 0 ? (y(), j(Ce, {
|
|
7699
7702
|
key: 2,
|
|
7700
|
-
options:
|
|
7701
|
-
onClick:
|
|
7703
|
+
options: C.value,
|
|
7704
|
+
onClick: z,
|
|
7702
7705
|
"overlay-class-name": "filter-dropdown"
|
|
7703
7706
|
}, {
|
|
7704
|
-
default:
|
|
7705
|
-
|
|
7707
|
+
default: l(() => [
|
|
7708
|
+
a(R, {
|
|
7706
7709
|
theme: "primary",
|
|
7707
|
-
size:
|
|
7710
|
+
size: i.size,
|
|
7708
7711
|
class: "margin-reset"
|
|
7709
7712
|
}, {
|
|
7710
|
-
suffix:
|
|
7711
|
-
|
|
7713
|
+
suffix: l(() => [
|
|
7714
|
+
a(H, { name: "chevron-down" })
|
|
7712
7715
|
]),
|
|
7713
|
-
default:
|
|
7714
|
-
|
|
7716
|
+
default: l(() => [
|
|
7717
|
+
n[14] || (n[14] = w(" 我的方案 ", -1))
|
|
7715
7718
|
]),
|
|
7716
7719
|
_: 1
|
|
7717
7720
|
}, 8, ["size"])
|
|
7718
7721
|
]),
|
|
7719
7722
|
_: 1
|
|
7720
|
-
}, 8, ["options"])) :
|
|
7723
|
+
}, 8, ["options"])) : ne("", !0)
|
|
7721
7724
|
]),
|
|
7722
|
-
|
|
7723
|
-
visible:
|
|
7724
|
-
"onUpdate:visible":
|
|
7725
|
-
"field-options":
|
|
7726
|
-
"select-options":
|
|
7727
|
-
"plan-filter-options":
|
|
7728
|
-
"filter-cards":
|
|
7729
|
-
"top-op":
|
|
7730
|
-
size:
|
|
7731
|
-
"person-tabs":
|
|
7732
|
-
"person-organizations":
|
|
7733
|
-
"visible-columns":
|
|
7725
|
+
a(Ra, {
|
|
7726
|
+
visible: W.value,
|
|
7727
|
+
"onUpdate:visible": n[1] || (n[1] = (e) => W.value = e),
|
|
7728
|
+
"field-options": i.fieldOptions,
|
|
7729
|
+
"select-options": i.selectOptions,
|
|
7730
|
+
"plan-filter-options": i.planFilterOptions,
|
|
7731
|
+
"filter-cards": B.value,
|
|
7732
|
+
"top-op": A.value,
|
|
7733
|
+
size: i.size,
|
|
7734
|
+
"person-tabs": i.personTabs,
|
|
7735
|
+
"person-organizations": i.personOrganizations,
|
|
7736
|
+
"visible-columns": i.visibleColumns,
|
|
7734
7737
|
width: "1000",
|
|
7735
|
-
onConfirm:
|
|
7736
|
-
onReset:
|
|
7737
|
-
onDeletePlan:
|
|
7738
|
-
onCopyPlan:
|
|
7739
|
-
onSetDefaultPlan:
|
|
7740
|
-
onUpdatePlan:
|
|
7741
|
-
onLoadUsers:
|
|
7742
|
-
onSearch:
|
|
7743
|
-
onDeptClick:
|
|
7744
|
-
onColumnChange:
|
|
7738
|
+
onConfirm: ie,
|
|
7739
|
+
onReset: ae,
|
|
7740
|
+
onDeletePlan: n[2] || (n[2] = (e) => v("delete-plan", e)),
|
|
7741
|
+
onCopyPlan: n[3] || (n[3] = (e) => v("copy-plan", e)),
|
|
7742
|
+
onSetDefaultPlan: n[4] || (n[4] = (e) => v("set-default-plan", e)),
|
|
7743
|
+
onUpdatePlan: n[5] || (n[5] = (e) => v("update-plan", e)),
|
|
7744
|
+
onLoadUsers: n[6] || (n[6] = (e) => v("load-users", e)),
|
|
7745
|
+
onSearch: n[7] || (n[7] = (e) => v("search-persons", e)),
|
|
7746
|
+
onDeptClick: n[8] || (n[8] = (e) => v("dept-click", e)),
|
|
7747
|
+
onColumnChange: n[9] || (n[9] = (e) => v("column-change", e))
|
|
7745
7748
|
}, null, 8, ["visible", "field-options", "select-options", "plan-filter-options", "filter-cards", "top-op", "size", "person-tabs", "person-organizations", "visible-columns"]),
|
|
7746
|
-
|
|
7747
|
-
header:
|
|
7748
|
-
visible:
|
|
7749
|
+
a(Fe, {
|
|
7750
|
+
header: P.value,
|
|
7751
|
+
visible: S.value,
|
|
7749
7752
|
width: "600px",
|
|
7750
|
-
onClose:
|
|
7753
|
+
onClose: L
|
|
7751
7754
|
}, {
|
|
7752
|
-
body:
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
data:
|
|
7755
|
+
body: l(() => [
|
|
7756
|
+
s("div", rl, [
|
|
7757
|
+
a(ze, {
|
|
7758
|
+
data: T.value,
|
|
7756
7759
|
"label-width": "100px"
|
|
7757
7760
|
}, {
|
|
7758
|
-
default:
|
|
7759
|
-
|
|
7761
|
+
default: l(() => [
|
|
7762
|
+
a(_e, {
|
|
7760
7763
|
label: "方案名称",
|
|
7761
7764
|
required: ""
|
|
7762
7765
|
}, {
|
|
7763
|
-
default:
|
|
7764
|
-
|
|
7765
|
-
modelValue:
|
|
7766
|
-
"onUpdate:modelValue":
|
|
7766
|
+
default: l(() => [
|
|
7767
|
+
a(ke, {
|
|
7768
|
+
modelValue: T.value.name,
|
|
7769
|
+
"onUpdate:modelValue": n[10] || (n[10] = (e) => T.value.name = e),
|
|
7767
7770
|
placeholder: "请输入筛选方案名称"
|
|
7768
7771
|
}, null, 8, ["modelValue"])
|
|
7769
7772
|
]),
|
|
@@ -7774,43 +7777,43 @@ ${c.map((f) => {
|
|
|
7774
7777
|
}, 8, ["data"])
|
|
7775
7778
|
])
|
|
7776
7779
|
]),
|
|
7777
|
-
footer:
|
|
7778
|
-
|
|
7780
|
+
footer: l(() => [
|
|
7781
|
+
a(R, {
|
|
7779
7782
|
theme: "default",
|
|
7780
|
-
onClick:
|
|
7783
|
+
onClick: L
|
|
7781
7784
|
}, {
|
|
7782
|
-
default:
|
|
7783
|
-
|
|
7785
|
+
default: l(() => [...n[15] || (n[15] = [
|
|
7786
|
+
w("取消", -1)
|
|
7784
7787
|
])]),
|
|
7785
7788
|
_: 1
|
|
7786
7789
|
}),
|
|
7787
|
-
|
|
7790
|
+
a(R, {
|
|
7788
7791
|
theme: "primary",
|
|
7789
|
-
onClick:
|
|
7792
|
+
onClick: Q
|
|
7790
7793
|
}, {
|
|
7791
|
-
default:
|
|
7792
|
-
|
|
7794
|
+
default: l(() => [...n[16] || (n[16] = [
|
|
7795
|
+
w("确定", -1)
|
|
7793
7796
|
])]),
|
|
7794
7797
|
_: 1
|
|
7795
7798
|
})
|
|
7796
7799
|
]),
|
|
7797
7800
|
_: 1
|
|
7798
7801
|
}, 8, ["header", "visible"]),
|
|
7799
|
-
|
|
7800
|
-
visible:
|
|
7801
|
-
"onUpdate:visible":
|
|
7802
|
-
"field-options":
|
|
7803
|
-
size:
|
|
7804
|
-
"initial-rules":
|
|
7805
|
-
onConfirm:
|
|
7806
|
-
onClear:
|
|
7807
|
-
onSmartColorsChange:
|
|
7802
|
+
a(qe, {
|
|
7803
|
+
visible: oe.value,
|
|
7804
|
+
"onUpdate:visible": n[11] || (n[11] = (e) => oe.value = e),
|
|
7805
|
+
"field-options": i.fieldOptions,
|
|
7806
|
+
size: i.size,
|
|
7807
|
+
"initial-rules": N.value,
|
|
7808
|
+
onConfirm: pe,
|
|
7809
|
+
onClear: ye,
|
|
7810
|
+
onSmartColorsChange: be
|
|
7808
7811
|
}, null, 8, ["visible", "field-options", "size", "initial-rules"])
|
|
7809
7812
|
]);
|
|
7810
7813
|
};
|
|
7811
7814
|
}
|
|
7812
|
-
}, ul = /* @__PURE__ */ ue(dl, [["__scopeId", "data-v-
|
|
7813
|
-
|
|
7815
|
+
}, ul = /* @__PURE__ */ ue(dl, [["__scopeId", "data-v-f1789296"]]), pl = (i) => {
|
|
7816
|
+
i.component("FilterDialog", Ee), i.component("FilterComponent", Ee), i.component("CdFilterBar", ul), i.component("ColorFilterDialog", qe);
|
|
7814
7817
|
};
|
|
7815
7818
|
export {
|
|
7816
7819
|
ul as CdFilterBar,
|