cd-vue-filter 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cd-vue-filter.js +221 -217
- 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 z, watch as ee, resolveComponent as y, createElementBlock as A, openBlock as b, createVNode as e, createBlock as
|
|
1
|
+
import { defineComponent as Be, computed as re, ref as z, watch as ee, resolveComponent as y, createElementBlock as A, openBlock as b, createVNode as e, createBlock as j, withCtx as a, Fragment as I, renderList as te, nextTick as Ve, createElementVNode as i, createTextVNode as V, createCommentVNode as oe, 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 = [
|
|
@@ -5539,27 +5539,27 @@ const Re = [
|
|
|
5539
5539
|
emits: ["search"],
|
|
5540
5540
|
setup(o, { emit: ae }) {
|
|
5541
5541
|
var O, g, u;
|
|
5542
|
-
const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], v = re(() => Re.map((
|
|
5543
|
-
label:
|
|
5544
|
-
value:
|
|
5545
|
-
children:
|
|
5542
|
+
const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], v = re(() => Re.map((p) => d.includes(p.name) ? {
|
|
5543
|
+
label: p.name,
|
|
5544
|
+
value: p.name,
|
|
5545
|
+
children: p.city[0].area.map((m) => ({
|
|
5546
5546
|
label: m,
|
|
5547
|
-
value: `${
|
|
5547
|
+
value: `${p.name}/${m}`,
|
|
5548
5548
|
children: void 0
|
|
5549
5549
|
}))
|
|
5550
5550
|
} : {
|
|
5551
|
-
label:
|
|
5552
|
-
value:
|
|
5553
|
-
children:
|
|
5551
|
+
label: p.name,
|
|
5552
|
+
value: p.name,
|
|
5553
|
+
children: p.city.map((m) => ({
|
|
5554
5554
|
label: m.name,
|
|
5555
|
-
value: `${
|
|
5555
|
+
value: `${p.name}/${m.name}`,
|
|
5556
5556
|
children: m.area.map((S) => ({
|
|
5557
5557
|
label: S,
|
|
5558
|
-
value: `${
|
|
5558
|
+
value: `${p.name}/${m.name}/${S}`,
|
|
5559
5559
|
children: void 0
|
|
5560
5560
|
}))
|
|
5561
5561
|
}))
|
|
5562
|
-
})), n = (
|
|
5562
|
+
})), n = (p) => [
|
|
5563
5563
|
"today",
|
|
5564
5564
|
"yesterday",
|
|
5565
5565
|
"tomorrow",
|
|
@@ -5572,12 +5572,12 @@ const Re = [
|
|
|
5572
5572
|
"this_year",
|
|
5573
5573
|
"last_year",
|
|
5574
5574
|
"next_year"
|
|
5575
|
-
].includes(
|
|
5576
|
-
if (s.selectOptions && s.selectOptions[
|
|
5577
|
-
return s.selectOptions[
|
|
5575
|
+
].includes(p), D = (p) => {
|
|
5576
|
+
if (s.selectOptions && s.selectOptions[p])
|
|
5577
|
+
return s.selectOptions[p];
|
|
5578
5578
|
if (s.selectOptions && Array.isArray(s.selectOptions)) {
|
|
5579
5579
|
const m = s.selectOptions.find(
|
|
5580
|
-
(S) => S.columnName ===
|
|
5580
|
+
(S) => S.columnName === p
|
|
5581
5581
|
);
|
|
5582
5582
|
if (m && m.value)
|
|
5583
5583
|
return Z(m.value.map((S) => ({
|
|
@@ -5587,34 +5587,34 @@ const Re = [
|
|
|
5587
5587
|
}
|
|
5588
5588
|
return [];
|
|
5589
5589
|
};
|
|
5590
|
-
function Z(
|
|
5591
|
-
return [...
|
|
5590
|
+
function Z(p) {
|
|
5591
|
+
return [...p].sort((m, S) => m.value.localeCompare(S.value, "zh-CN"));
|
|
5592
5592
|
}
|
|
5593
5593
|
const s = o, T = ae, K = z({
|
|
5594
5594
|
field: ((O = s.filterCondition) == null ? void 0 : O.field) || "",
|
|
5595
5595
|
operator: ((g = s.filterCondition) == null ? void 0 : g.operator) || "eq",
|
|
5596
5596
|
value: ((u = s.filterCondition) == null ? void 0 : u.value) || null
|
|
5597
5597
|
});
|
|
5598
|
-
ee(() => s.filterCondition, (
|
|
5599
|
-
|
|
5598
|
+
ee(() => s.filterCondition, (p) => {
|
|
5599
|
+
p && (K.value = { ...p });
|
|
5600
5600
|
}, { deep: !0 });
|
|
5601
|
-
const P = (
|
|
5602
|
-
const m = s.fieldOptions.find((S) => S.value ===
|
|
5601
|
+
const P = (p) => {
|
|
5602
|
+
const m = s.fieldOptions.find((S) => S.value === p);
|
|
5603
5603
|
return m ? m.type : "text";
|
|
5604
5604
|
}, N = () => {
|
|
5605
5605
|
Ve(() => {
|
|
5606
5606
|
T("search", { ...s.filterCondition });
|
|
5607
5607
|
});
|
|
5608
|
-
},
|
|
5608
|
+
}, Y = () => {
|
|
5609
5609
|
Ve(() => {
|
|
5610
5610
|
T("search", { ...s.filterCondition });
|
|
5611
5611
|
});
|
|
5612
|
-
}, $ = (
|
|
5613
|
-
s.filterCondition.value =
|
|
5612
|
+
}, $ = (p) => {
|
|
5613
|
+
s.filterCondition.value = p, T("search", { ...s.filterCondition });
|
|
5614
5614
|
}, k = re(() => {
|
|
5615
5615
|
var S;
|
|
5616
|
-
const
|
|
5617
|
-
switch (((S = s.fieldOptions.find((J) => J.value ===
|
|
5616
|
+
const p = s.filterCondition.field;
|
|
5617
|
+
switch (((S = s.fieldOptions.find((J) => J.value === p)) == null ? void 0 : S.type) || "text") {
|
|
5618
5618
|
case "number":
|
|
5619
5619
|
return [
|
|
5620
5620
|
{ key: "eq", label: "等于", value: "eq" },
|
|
@@ -5697,9 +5697,9 @@ const Re = [
|
|
|
5697
5697
|
T("search", { ...s.filterCondition });
|
|
5698
5698
|
});
|
|
5699
5699
|
};
|
|
5700
|
-
return ee(() => s.filterCondition.field, (
|
|
5701
|
-
|
|
5702
|
-
}), (
|
|
5700
|
+
return ee(() => s.filterCondition.field, (p, m) => {
|
|
5701
|
+
p && m && (s.filterCondition.operator = "eq", s.filterCondition.value = null);
|
|
5702
|
+
}), (p, m) => {
|
|
5703
5703
|
var ie;
|
|
5704
5704
|
const S = y("t-option"), J = y("t-select"), G = y("t-input"), le = y("t-date-picker"), X = y("t-cascader");
|
|
5705
5705
|
return b(), A("div", Le, [
|
|
@@ -5713,7 +5713,7 @@ const Re = [
|
|
|
5713
5713
|
filterable: ""
|
|
5714
5714
|
}, {
|
|
5715
5715
|
default: a(() => [
|
|
5716
|
-
(b(!0), A(I, null, te(s.fieldOptions, (F) => (b(),
|
|
5716
|
+
(b(!0), A(I, null, te(s.fieldOptions, (F) => (b(), j(S, {
|
|
5717
5717
|
key: F.key,
|
|
5718
5718
|
label: F.key,
|
|
5719
5719
|
value: F.value
|
|
@@ -5728,10 +5728,10 @@ const Re = [
|
|
|
5728
5728
|
size: s.size,
|
|
5729
5729
|
style: { width: "80px" },
|
|
5730
5730
|
clearable: "",
|
|
5731
|
-
onChange:
|
|
5731
|
+
onChange: Y
|
|
5732
5732
|
}, {
|
|
5733
5733
|
default: a(() => [
|
|
5734
|
-
(b(!0), A(I, null, te(k.value, (F) => (b(),
|
|
5734
|
+
(b(!0), A(I, null, te(k.value, (F) => (b(), j(S, {
|
|
5735
5735
|
key: F.key,
|
|
5736
5736
|
label: F.label,
|
|
5737
5737
|
value: F.value
|
|
@@ -5739,7 +5739,7 @@ const Re = [
|
|
|
5739
5739
|
]),
|
|
5740
5740
|
_: 1
|
|
5741
5741
|
}, 8, ["modelValue", "size"]),
|
|
5742
|
-
P(s.filterCondition.field) === "number" ? (b(),
|
|
5742
|
+
P(s.filterCondition.field) === "number" ? (b(), j(G, {
|
|
5743
5743
|
key: 0,
|
|
5744
5744
|
type: "number",
|
|
5745
5745
|
modelValue: s.filterCondition.value,
|
|
@@ -5749,7 +5749,7 @@ const Re = [
|
|
|
5749
5749
|
style: { width: "80px" },
|
|
5750
5750
|
onChange: N,
|
|
5751
5751
|
clearable: ""
|
|
5752
|
-
}, null, 8, ["modelValue", "size"])) : P(s.filterCondition.field) === "money" ? (b(),
|
|
5752
|
+
}, null, 8, ["modelValue", "size"])) : P(s.filterCondition.field) === "money" ? (b(), j(G, {
|
|
5753
5753
|
key: 1,
|
|
5754
5754
|
type: "number",
|
|
5755
5755
|
modelValue: s.filterCondition.value,
|
|
@@ -5760,13 +5760,13 @@ const Re = [
|
|
|
5760
5760
|
onChange: N,
|
|
5761
5761
|
clearable: ""
|
|
5762
5762
|
}, null, 8, ["modelValue", "size"])) : P(s.filterCondition.field) === "date" ? (b(), A(I, { key: 2 }, [
|
|
5763
|
-
n(s.filterCondition.operator) ? (b(),
|
|
5763
|
+
n(s.filterCondition.operator) ? (b(), j(G, {
|
|
5764
5764
|
key: 1,
|
|
5765
5765
|
value: (ie = k.value.find((F) => F.value === s.filterCondition.operator)) == null ? void 0 : ie.label,
|
|
5766
5766
|
disabled: "",
|
|
5767
5767
|
size: s.size,
|
|
5768
5768
|
style: { "min-width": "80px", "max-width": "120px" }
|
|
5769
|
-
}, null, 8, ["value", "size"])) : (b(),
|
|
5769
|
+
}, null, 8, ["value", "size"])) : (b(), j(le, {
|
|
5770
5770
|
key: 0,
|
|
5771
5771
|
modelValue: s.filterCondition.value,
|
|
5772
5772
|
"onUpdate:modelValue": m[4] || (m[4] = (F) => s.filterCondition.value = F),
|
|
@@ -5776,7 +5776,7 @@ const Re = [
|
|
|
5776
5776
|
onChange: N,
|
|
5777
5777
|
clearable: ""
|
|
5778
5778
|
}, null, 8, ["modelValue", "size"]))
|
|
5779
|
-
], 64)) : P(s.filterCondition.field) === "time" ? (b(),
|
|
5779
|
+
], 64)) : P(s.filterCondition.field) === "time" ? (b(), j(le, {
|
|
5780
5780
|
key: 3,
|
|
5781
5781
|
modelValue: s.filterCondition.value,
|
|
5782
5782
|
"onUpdate:modelValue": m[5] || (m[5] = (F) => s.filterCondition.value = F),
|
|
@@ -5787,17 +5787,17 @@ const Re = [
|
|
|
5787
5787
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
5788
5788
|
onChange: N,
|
|
5789
5789
|
clearable: ""
|
|
5790
|
-
}, null, 8, ["modelValue", "size"])) : P(s.filterCondition.field) === "select" ? (b(),
|
|
5790
|
+
}, null, 8, ["modelValue", "size"])) : P(s.filterCondition.field) === "select" ? (b(), j(J, {
|
|
5791
5791
|
key: 4,
|
|
5792
5792
|
modelValue: s.filterCondition.value,
|
|
5793
5793
|
"onUpdate:modelValue": m[6] || (m[6] = (F) => s.filterCondition.value = F),
|
|
5794
|
-
options:
|
|
5794
|
+
options: D(s.filterCondition.field),
|
|
5795
5795
|
placeholder: "请选择",
|
|
5796
5796
|
size: s.size,
|
|
5797
5797
|
style: { "min-width": "80px", "max-width": "120px" },
|
|
5798
5798
|
onChange: N,
|
|
5799
5799
|
clearable: ""
|
|
5800
|
-
}, null, 8, ["modelValue", "options", "size"])) : P(s.filterCondition.field) === "selectProvince" ? (b(),
|
|
5800
|
+
}, null, 8, ["modelValue", "options", "size"])) : P(s.filterCondition.field) === "selectProvince" ? (b(), j(X, {
|
|
5801
5801
|
key: 5,
|
|
5802
5802
|
modelValue: s.filterCondition.value,
|
|
5803
5803
|
"onUpdate:modelValue": m[7] || (m[7] = (F) => s.filterCondition.value = F),
|
|
@@ -5808,7 +5808,7 @@ const Re = [
|
|
|
5808
5808
|
clearable: "",
|
|
5809
5809
|
loading: !1,
|
|
5810
5810
|
onChange: $
|
|
5811
|
-
}, null, 8, ["modelValue", "options", "size"])) : (b(),
|
|
5811
|
+
}, null, 8, ["modelValue", "options", "size"])) : (b(), j(G, {
|
|
5812
5812
|
key: 6,
|
|
5813
5813
|
modelValue: s.filterCondition.value,
|
|
5814
5814
|
"onUpdate:modelValue": m[8] || (m[8] = (F) => s.filterCondition.value = F),
|
|
@@ -5873,12 +5873,12 @@ const Re = [
|
|
|
5873
5873
|
{ field: "", operator: "eq", value: "" }
|
|
5874
5874
|
]
|
|
5875
5875
|
}
|
|
5876
|
-
]),
|
|
5876
|
+
]), D = z("and");
|
|
5877
5877
|
let Z = 3;
|
|
5878
5878
|
ee(() => d.initialFilterCards, ($) => {
|
|
5879
5879
|
$ && $.length > 0 && (n.value = $);
|
|
5880
5880
|
}, { immediate: !0, deep: !0 }), ee(() => d.initialType1, ($) => {
|
|
5881
|
-
$ && (
|
|
5881
|
+
$ && (D.value = $);
|
|
5882
5882
|
}, { immediate: !0 });
|
|
5883
5883
|
const s = () => {
|
|
5884
5884
|
n.value.push({
|
|
@@ -5902,14 +5902,14 @@ const Re = [
|
|
|
5902
5902
|
}, N = () => {
|
|
5903
5903
|
v("submit", {
|
|
5904
5904
|
filterCards: n.value,
|
|
5905
|
-
type1:
|
|
5905
|
+
type1: D.value
|
|
5906
5906
|
});
|
|
5907
|
-
},
|
|
5907
|
+
}, Y = () => {
|
|
5908
5908
|
v("close"), v("update:visible", !1);
|
|
5909
5909
|
};
|
|
5910
5910
|
return ($, k) => {
|
|
5911
|
-
const _ = y("t-radio-button"), O = y("t-radio-group"), g = y("t-icon"), u = y("t-button"),
|
|
5912
|
-
return b(),
|
|
5911
|
+
const _ = y("t-radio-button"), O = y("t-radio-group"), g = y("t-icon"), u = y("t-button"), p = y("t-dialog");
|
|
5912
|
+
return b(), j(p, {
|
|
5913
5913
|
header: "筛选条件设置",
|
|
5914
5914
|
placement: "center",
|
|
5915
5915
|
visible: o.visible,
|
|
@@ -5917,7 +5917,7 @@ const Re = [
|
|
|
5917
5917
|
width: "700px",
|
|
5918
5918
|
"z-index": 999,
|
|
5919
5919
|
footer: !0,
|
|
5920
|
-
onClose:
|
|
5920
|
+
onClose: Y,
|
|
5921
5921
|
id: "leader-line-clip-container"
|
|
5922
5922
|
}, {
|
|
5923
5923
|
body: a(() => [
|
|
@@ -5929,8 +5929,8 @@ const Re = [
|
|
|
5929
5929
|
e(O, {
|
|
5930
5930
|
size: "small",
|
|
5931
5931
|
class: "connector-selector",
|
|
5932
|
-
modelValue:
|
|
5933
|
-
"onUpdate:modelValue": k[0] || (k[0] = (m) =>
|
|
5932
|
+
modelValue: D.value,
|
|
5933
|
+
"onUpdate:modelValue": k[0] || (k[0] = (m) => D.value = m),
|
|
5934
5934
|
style: { "margin-right": "20px" }
|
|
5935
5935
|
}, {
|
|
5936
5936
|
default: a(() => [
|
|
@@ -6059,7 +6059,7 @@ const Re = [
|
|
|
6059
6059
|
i("div", oa, [
|
|
6060
6060
|
e(u, {
|
|
6061
6061
|
theme: "default",
|
|
6062
|
-
onClick:
|
|
6062
|
+
onClick: Y
|
|
6063
6063
|
}, {
|
|
6064
6064
|
default: a(() => [...k[8] || (k[8] = [
|
|
6065
6065
|
V("取消", -1)
|
|
@@ -6134,7 +6134,7 @@ const Re = [
|
|
|
6134
6134
|
shareMode: "none",
|
|
6135
6135
|
shareType: "specific",
|
|
6136
6136
|
selectedUsers: []
|
|
6137
|
-
}),
|
|
6137
|
+
}), D = z([]), Z = z([]), s = re(() => d.isEditing && d.originalShareMode === "copy");
|
|
6138
6138
|
ee(() => d.visible, (_) => {
|
|
6139
6139
|
_ ? d.isEditing && d.planName && (n.value.planName = d.planName, n.value.shareMode = d.originalShareMode || "none", n.value.shareType = d.originalShareType || "specific", d.originalSelectedUsers && d.originalSelectedUsers.length > 0 && (n.value.selectedUsers = [...d.originalSelectedUsers])) : T();
|
|
6140
6140
|
}), ee(() => d.deptMembersDataProp, (_) => {
|
|
@@ -6146,7 +6146,7 @@ const Re = [
|
|
|
6146
6146
|
shareMode: "none",
|
|
6147
6147
|
shareType: "specific",
|
|
6148
6148
|
selectedUsers: []
|
|
6149
|
-
},
|
|
6149
|
+
}, D.value = [], Z.value = [];
|
|
6150
6150
|
}, K = (_) => {
|
|
6151
6151
|
console.log("选中人员:", _), _.map((g) => ({
|
|
6152
6152
|
id: g.id,
|
|
@@ -6161,13 +6161,13 @@ const Re = [
|
|
|
6161
6161
|
tags: [],
|
|
6162
6162
|
isUser: g.isUser === !0
|
|
6163
6163
|
})).forEach((g) => {
|
|
6164
|
-
|
|
6165
|
-
}), n.value.selectedUsers =
|
|
6164
|
+
D.value.find((p) => p.id === g.id) || D.value.push(g);
|
|
6165
|
+
}), n.value.selectedUsers = D.value.map((g) => g.id);
|
|
6166
6166
|
}, P = (_) => {
|
|
6167
6167
|
v("load-users", _);
|
|
6168
6168
|
}, N = (_) => {
|
|
6169
6169
|
v("search", _);
|
|
6170
|
-
},
|
|
6170
|
+
}, Y = (_) => {
|
|
6171
6171
|
v("dept-click", _);
|
|
6172
6172
|
}, $ = () => {
|
|
6173
6173
|
if (!n.value.planName.trim()) {
|
|
@@ -6188,8 +6188,8 @@ const Re = [
|
|
|
6188
6188
|
v("close"), v("update:visible", !1);
|
|
6189
6189
|
};
|
|
6190
6190
|
return (_, O) => {
|
|
6191
|
-
const g = y("t-input"), u = y("t-form-item"),
|
|
6192
|
-
return b(),
|
|
6191
|
+
const g = y("t-input"), u = y("t-form-item"), p = y("t-radio"), m = y("t-tooltip"), S = y("t-radio-group"), J = y("t-form"), G = y("t-button"), le = y("t-dialog");
|
|
6192
|
+
return b(), j(le, {
|
|
6193
6193
|
header: o.isEditing ? "编辑筛选方案" : "保存筛选方案",
|
|
6194
6194
|
visible: o.visible,
|
|
6195
6195
|
"onUpdate:visible": O[3] || (O[3] = (X) => _.$emit("update:visible", X)),
|
|
@@ -6227,13 +6227,13 @@ const Re = [
|
|
|
6227
6227
|
disabled: s.value
|
|
6228
6228
|
}, {
|
|
6229
6229
|
default: a(() => [
|
|
6230
|
-
e(
|
|
6230
|
+
e(p, { value: "none" }, {
|
|
6231
6231
|
default: a(() => [...O[4] || (O[4] = [
|
|
6232
6232
|
V("不共享", -1)
|
|
6233
6233
|
])]),
|
|
6234
6234
|
_: 1
|
|
6235
6235
|
}),
|
|
6236
|
-
e(
|
|
6236
|
+
e(p, { value: "share" }, {
|
|
6237
6237
|
default: a(() => [...O[5] || (O[5] = [
|
|
6238
6238
|
V("共享给其他人", -1)
|
|
6239
6239
|
])]),
|
|
@@ -6244,7 +6244,7 @@ const Re = [
|
|
|
6244
6244
|
placement: "top"
|
|
6245
6245
|
}, {
|
|
6246
6246
|
default: a(() => [
|
|
6247
|
-
e(
|
|
6247
|
+
e(p, { value: "copy" }, {
|
|
6248
6248
|
default: a(() => [...O[6] || (O[6] = [
|
|
6249
6249
|
V("复制给其他人", -1)
|
|
6250
6250
|
])]),
|
|
@@ -6259,7 +6259,7 @@ const Re = [
|
|
|
6259
6259
|
]),
|
|
6260
6260
|
_: 1
|
|
6261
6261
|
}),
|
|
6262
|
-
n.value.shareMode === "share" ? (b(),
|
|
6262
|
+
n.value.shareMode === "share" ? (b(), j(u, {
|
|
6263
6263
|
key: 0,
|
|
6264
6264
|
label: "共享范围"
|
|
6265
6265
|
}, {
|
|
@@ -6269,13 +6269,13 @@ const Re = [
|
|
|
6269
6269
|
"onUpdate:modelValue": O[2] || (O[2] = (X) => n.value.shareType = X)
|
|
6270
6270
|
}, {
|
|
6271
6271
|
default: a(() => [
|
|
6272
|
-
e(
|
|
6272
|
+
e(p, { value: "specific" }, {
|
|
6273
6273
|
default: a(() => [...O[7] || (O[7] = [
|
|
6274
6274
|
V("指定用户", -1)
|
|
6275
6275
|
])]),
|
|
6276
6276
|
_: 1
|
|
6277
6277
|
}),
|
|
6278
|
-
e(
|
|
6278
|
+
e(p, { value: "all" }, {
|
|
6279
6279
|
default: a(() => [...O[8] || (O[8] = [
|
|
6280
6280
|
V("所有用户", -1)
|
|
6281
6281
|
])]),
|
|
@@ -6287,13 +6287,13 @@ const Re = [
|
|
|
6287
6287
|
]),
|
|
6288
6288
|
_: 1
|
|
6289
6289
|
})) : oe("", !0),
|
|
6290
|
-
n.value.shareMode === "share" && n.value.shareType === "specific" || n.value.shareMode === "copy" ? (b(),
|
|
6290
|
+
n.value.shareMode === "share" && n.value.shareType === "specific" || n.value.shareMode === "copy" ? (b(), j(u, {
|
|
6291
6291
|
key: 1,
|
|
6292
6292
|
label: "共享人员"
|
|
6293
6293
|
}, {
|
|
6294
6294
|
default: a(() => [
|
|
6295
6295
|
e(Me(Je), {
|
|
6296
|
-
users:
|
|
6296
|
+
users: D.value,
|
|
6297
6297
|
"avatar-size": 32,
|
|
6298
6298
|
"max-display": 10,
|
|
6299
6299
|
edit: !0,
|
|
@@ -6303,7 +6303,7 @@ const Re = [
|
|
|
6303
6303
|
onPersonSelect: K,
|
|
6304
6304
|
onLoadUsers: P,
|
|
6305
6305
|
onSearch: N,
|
|
6306
|
-
onDeptClick:
|
|
6306
|
+
onDeptClick: Y
|
|
6307
6307
|
}, null, 8, ["users", "person-tabs", "person-organizations", "dept-members-data"])
|
|
6308
6308
|
]),
|
|
6309
6309
|
_: 1
|
|
@@ -6419,12 +6419,12 @@ const Re = [
|
|
|
6419
6419
|
"column-change"
|
|
6420
6420
|
],
|
|
6421
6421
|
setup(o, { emit: ae }) {
|
|
6422
|
-
const d = o, v = ae, n = z(JSON.parse(JSON.stringify(d.filterCards))),
|
|
6422
|
+
const d = o, v = ae, n = z(JSON.parse(JSON.stringify(d.filterCards))), D = z(d.topOp), Z = z(null), s = z(!1), T = z([]), K = z("filter"), P = z(!1), N = z(""), Y = z("none"), $ = z("specific"), k = z([]), _ = z(null);
|
|
6423
6423
|
let O = 100;
|
|
6424
6424
|
ee(() => d.filterCards, (l) => {
|
|
6425
6425
|
n.value = JSON.parse(JSON.stringify(l));
|
|
6426
6426
|
}, { deep: !0 }), ee(() => d.topOp, (l) => {
|
|
6427
|
-
|
|
6427
|
+
D.value = l;
|
|
6428
6428
|
});
|
|
6429
6429
|
const g = () => {
|
|
6430
6430
|
n.value.push({
|
|
@@ -6434,7 +6434,7 @@ const Re = [
|
|
|
6434
6434
|
});
|
|
6435
6435
|
}, u = (l) => {
|
|
6436
6436
|
n.value.length > 1 ? n.value.splice(l, 1) : de.warning("至少需要保留一个筛选卡片");
|
|
6437
|
-
},
|
|
6437
|
+
}, p = (l) => {
|
|
6438
6438
|
l >= 0 && l < n.value.length && n.value[l].conditions.push({
|
|
6439
6439
|
field: "",
|
|
6440
6440
|
operator: "eq",
|
|
@@ -6446,11 +6446,11 @@ const Re = [
|
|
|
6446
6446
|
w.conditions.length > 1 && t >= 0 && t < w.conditions.length ? w.conditions.splice(t, 1) : w.conditions.length <= 1 && de.warning("每个卡片至少需要一个筛选条件");
|
|
6447
6447
|
}
|
|
6448
6448
|
}, S = (l) => l.map((t) => {
|
|
6449
|
-
const w = t.conditions.filter((
|
|
6449
|
+
const w = t.conditions.filter((q) => q.field && q.field.trim() !== "").map((q) => {
|
|
6450
6450
|
let h = "";
|
|
6451
|
-
return
|
|
6452
|
-
field:
|
|
6453
|
-
operator:
|
|
6451
|
+
return q.value !== null && q.value !== void 0 && (Array.isArray(q.value) ? h = q.value.join("/") : h = String(q.value)), {
|
|
6452
|
+
field: q.field.trim(),
|
|
6453
|
+
operator: q.operator || "eq",
|
|
6454
6454
|
value: h
|
|
6455
6455
|
};
|
|
6456
6456
|
});
|
|
@@ -6460,29 +6460,29 @@ const Re = [
|
|
|
6460
6460
|
conditions: w.length > 0 ? w : [{ field: "", operator: "eq", value: "" }]
|
|
6461
6461
|
};
|
|
6462
6462
|
}).filter((t) => t.conditions.length > 0 && t.conditions[0].field !== ""), J = (l) => {
|
|
6463
|
-
if (l.value !== "empty" && (Z.value = l, v("plan-click", l), l.precepts && (n.value = JSON.parse(JSON.stringify(l.precepts))), l.sqlConnectType && (
|
|
6463
|
+
if (l.value !== "empty" && (Z.value = l, v("plan-click", l), l.precepts && (n.value = JSON.parse(JSON.stringify(l.precepts))), l.sqlConnectType && (D.value = l.sqlConnectType), l.columns && l.columns.length > 0)) {
|
|
6464
6464
|
c.value = {}, r.value = {}, W.value = l.columns.filter((U) => U.show !== !1).map((U) => U.value), l.columns.forEach((U) => {
|
|
6465
6465
|
U.width && (c.value[U.value] = parseInt(U.width)), U.freeze ? r.value[U.value] = U.freeze : r.value[U.value] = "none";
|
|
6466
6466
|
});
|
|
6467
6467
|
const t = l.columns.map((U) => U.value), w = t.map(
|
|
6468
6468
|
(U) => d.fieldOptions.find((ve) => ve.value === U)
|
|
6469
|
-
).filter(Boolean),
|
|
6469
|
+
).filter(Boolean), q = d.fieldOptions.filter(
|
|
6470
6470
|
(U) => !t.includes(U.value)
|
|
6471
6471
|
);
|
|
6472
|
-
|
|
6472
|
+
f.value = [...w, ...q], se.value = W.value.length === d.fieldOptions.length;
|
|
6473
6473
|
const h = l.columns.filter((U) => U.show !== !1);
|
|
6474
6474
|
v("column-change", h);
|
|
6475
6475
|
}
|
|
6476
6476
|
}, G = () => {
|
|
6477
|
-
P.value = !1, _.value = null, N.value = "",
|
|
6477
|
+
P.value = !1, _.value = null, N.value = "", Y.value = "none", $.value = "specific", k.value = [], s.value = !0;
|
|
6478
6478
|
}, le = (l) => {
|
|
6479
|
-
const t =
|
|
6480
|
-
const
|
|
6479
|
+
const t = f.value.map((w) => {
|
|
6480
|
+
const q = c.value[w.value], h = r.value[w.value] || "none";
|
|
6481
6481
|
return {
|
|
6482
6482
|
value: w.value,
|
|
6483
6483
|
show: W.value.includes(w.value),
|
|
6484
6484
|
// 是否显示
|
|
6485
|
-
width:
|
|
6485
|
+
width: q ? `${q}px` : "120px",
|
|
6486
6486
|
freeze: h
|
|
6487
6487
|
// 冻结状态
|
|
6488
6488
|
};
|
|
@@ -6491,16 +6491,16 @@ const Re = [
|
|
|
6491
6491
|
...l,
|
|
6492
6492
|
plan: _.value,
|
|
6493
6493
|
filterCards: n.value,
|
|
6494
|
-
topOp:
|
|
6494
|
+
topOp: D.value,
|
|
6495
6495
|
columns: t
|
|
6496
6496
|
}) : v("save-plan", {
|
|
6497
6497
|
...l,
|
|
6498
6498
|
filterCards: n.value,
|
|
6499
|
-
topOp:
|
|
6499
|
+
topOp: D.value,
|
|
6500
6500
|
columns: t
|
|
6501
6501
|
}), P.value = !1, _.value = null;
|
|
6502
6502
|
}, X = (l) => {
|
|
6503
|
-
P.value = !0, _.value = l, N.value = l.content || "",
|
|
6503
|
+
P.value = !0, _.value = l, N.value = l.content || "", Y.value = l.shareMode || "none", $.value = l.shareType || "specific", k.value = l.selectedUsers || [], s.value = !0;
|
|
6504
6504
|
}, ie = (l) => {
|
|
6505
6505
|
v("copy-plan", l);
|
|
6506
6506
|
}, F = (l) => {
|
|
@@ -6517,15 +6517,15 @@ const Re = [
|
|
|
6517
6517
|
{ field: "", operator: "eq", value: "" }
|
|
6518
6518
|
]
|
|
6519
6519
|
}
|
|
6520
|
-
],
|
|
6521
|
-
},
|
|
6520
|
+
], D.value = "and", v("reset");
|
|
6521
|
+
}, H = () => {
|
|
6522
6522
|
if (K.value === "filter") {
|
|
6523
6523
|
const l = S(n.value);
|
|
6524
6524
|
v("confirm", {
|
|
6525
6525
|
filterCards: l,
|
|
6526
|
-
type1:
|
|
6526
|
+
type1: D.value
|
|
6527
6527
|
});
|
|
6528
|
-
} else K.value === "column" &&
|
|
6528
|
+
} else K.value === "column" && E();
|
|
6529
6529
|
me();
|
|
6530
6530
|
}, me = () => {
|
|
6531
6531
|
v("update:visible", !1);
|
|
@@ -6537,7 +6537,7 @@ const Re = [
|
|
|
6537
6537
|
v("dept-click", { dept: l, callback: (w) => {
|
|
6538
6538
|
T.value = w;
|
|
6539
6539
|
} });
|
|
6540
|
-
}, W = z([]), se = z(!1), c = z({}), r = z({}),
|
|
6540
|
+
}, W = z([]), se = z(!1), c = z({}), r = z({}), f = z([]), x = z(null), R = z(null);
|
|
6541
6541
|
ee(() => d.visibleColumns, (l) => {
|
|
6542
6542
|
if (c.value = {}, r.value = {}, l && l.length > 0) {
|
|
6543
6543
|
if (typeof l[0] == "object") {
|
|
@@ -6546,28 +6546,28 @@ const Re = [
|
|
|
6546
6546
|
});
|
|
6547
6547
|
const t = l.map((h) => h.value), w = t.map(
|
|
6548
6548
|
(h) => d.fieldOptions.find((U) => U.value === h)
|
|
6549
|
-
).filter(Boolean),
|
|
6549
|
+
).filter(Boolean), q = d.fieldOptions.filter(
|
|
6550
6550
|
(h) => !t.includes(h.value)
|
|
6551
6551
|
);
|
|
6552
|
-
|
|
6552
|
+
f.value = [...w, ...q];
|
|
6553
6553
|
} else {
|
|
6554
6554
|
W.value = [...l];
|
|
6555
6555
|
const t = l.map(
|
|
6556
|
-
(
|
|
6556
|
+
(q) => d.fieldOptions.find((h) => h.value === q)
|
|
6557
6557
|
).filter(Boolean), w = d.fieldOptions.filter(
|
|
6558
|
-
(
|
|
6558
|
+
(q) => !l.includes(q.value)
|
|
6559
6559
|
);
|
|
6560
|
-
|
|
6560
|
+
f.value = [...t, ...w];
|
|
6561
6561
|
}
|
|
6562
6562
|
se.value = W.value.length === d.fieldOptions.length;
|
|
6563
|
-
} else d.fieldOptions.length > 0 && (W.value = d.fieldOptions.map((t) => t.value),
|
|
6563
|
+
} else d.fieldOptions.length > 0 && (W.value = d.fieldOptions.map((t) => t.value), f.value = [...d.fieldOptions], se.value = !0);
|
|
6564
6564
|
d.fieldOptions.forEach((t) => {
|
|
6565
6565
|
r.value[t.value] || (r.value[t.value] = "none");
|
|
6566
6566
|
});
|
|
6567
6567
|
}, { immediate: !0 }), ee(() => d.fieldOptions, (l) => {
|
|
6568
|
-
|
|
6568
|
+
f.value.length || (f.value = [...l]);
|
|
6569
6569
|
}, { immediate: !0 });
|
|
6570
|
-
const
|
|
6570
|
+
const L = (l, t) => {
|
|
6571
6571
|
if (t)
|
|
6572
6572
|
W.value.includes(l) || W.value.push(l);
|
|
6573
6573
|
else {
|
|
@@ -6576,47 +6576,47 @@ const Re = [
|
|
|
6576
6576
|
}
|
|
6577
6577
|
se.value = W.value.length === d.fieldOptions.length;
|
|
6578
6578
|
}, ge = (l) => {
|
|
6579
|
-
l ? W.value =
|
|
6579
|
+
l ? W.value = f.value.map((t) => t.value) : W.value = [];
|
|
6580
6580
|
}, Ce = (l) => {
|
|
6581
6581
|
if (l > 0) {
|
|
6582
|
-
const t =
|
|
6583
|
-
|
|
6582
|
+
const t = f.value[l];
|
|
6583
|
+
f.value[l] = f.value[l - 1], f.value[l - 1] = t, f.value = [...f.value];
|
|
6584
6584
|
}
|
|
6585
6585
|
}, he = (l) => {
|
|
6586
|
-
if (l <
|
|
6587
|
-
const t =
|
|
6588
|
-
|
|
6586
|
+
if (l < f.value.length - 1) {
|
|
6587
|
+
const t = f.value[l];
|
|
6588
|
+
f.value[l] = f.value[l + 1], f.value[l + 1] = t, f.value = [...f.value];
|
|
6589
6589
|
}
|
|
6590
6590
|
}, ke = (l, t) => {
|
|
6591
6591
|
x.value = l, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/html", t.target.innerHTML);
|
|
6592
6592
|
}, _e = (l, t) => {
|
|
6593
|
-
t.preventDefault(), t.dataTransfer.dropEffect = "move",
|
|
6593
|
+
t.preventDefault(), t.dataTransfer.dropEffect = "move", R.value = l;
|
|
6594
6594
|
}, ze = () => {
|
|
6595
|
-
x.value = null,
|
|
6595
|
+
x.value = null, R.value = null;
|
|
6596
6596
|
}, Fe = (l, t) => {
|
|
6597
6597
|
t.preventDefault();
|
|
6598
6598
|
const w = x.value;
|
|
6599
6599
|
if (w === null || w === l)
|
|
6600
6600
|
return;
|
|
6601
|
-
const
|
|
6602
|
-
|
|
6603
|
-
},
|
|
6604
|
-
const l =
|
|
6605
|
-
const w = c.value[t.value],
|
|
6601
|
+
const q = [...f.value], h = q[w];
|
|
6602
|
+
q.splice(w, 1), q.splice(l, 0, h), f.value = q, x.value = null, R.value = null;
|
|
6603
|
+
}, E = () => {
|
|
6604
|
+
const l = f.value.filter((t) => W.value.includes(t.value)).map((t) => {
|
|
6605
|
+
const w = c.value[t.value], q = r.value[t.value] || "none";
|
|
6606
6606
|
return {
|
|
6607
6607
|
value: t.value,
|
|
6608
6608
|
show: !0,
|
|
6609
6609
|
// 已通过filter筛选,都是显示的
|
|
6610
6610
|
width: w ? `${w}px` : "120px",
|
|
6611
6611
|
// 没有设置宽度时使用默认值120px
|
|
6612
|
-
freeze:
|
|
6612
|
+
freeze: q
|
|
6613
6613
|
// 冻结状态
|
|
6614
6614
|
};
|
|
6615
6615
|
});
|
|
6616
6616
|
v("column-change", l);
|
|
6617
6617
|
};
|
|
6618
6618
|
return (l, t) => {
|
|
6619
|
-
const w = y("t-radio-button"),
|
|
6619
|
+
const w = y("t-radio-button"), q = y("t-radio-group"), h = y("t-icon"), U = y("t-button"), ve = y("t-tab-panel"), xe = y("t-checkbox"), Oe = y("t-option"), Ae = y("t-select"), Pe = y("t-input-number"), Te = y("t-tabs"), fe = y("t-tooltip"), Ne = y("t-dialog");
|
|
6620
6620
|
return b(), A(I, null, [
|
|
6621
6621
|
e(Ne, {
|
|
6622
6622
|
header: "方案设置",
|
|
@@ -6648,11 +6648,11 @@ const Re = [
|
|
|
6648
6648
|
i("div", fa, [
|
|
6649
6649
|
n.value.length > 1 ? (b(), A("div", pa, [
|
|
6650
6650
|
i("div", ya, [
|
|
6651
|
-
e(
|
|
6651
|
+
e(q, {
|
|
6652
6652
|
size: o.size,
|
|
6653
6653
|
class: "connector-selector",
|
|
6654
|
-
modelValue:
|
|
6655
|
-
"onUpdate:modelValue": t[0] || (t[0] = (C) =>
|
|
6654
|
+
modelValue: D.value,
|
|
6655
|
+
"onUpdate:modelValue": t[0] || (t[0] = (C) => D.value = C)
|
|
6656
6656
|
}, {
|
|
6657
6657
|
default: a(() => [
|
|
6658
6658
|
e(w, { value: "and" }, {
|
|
@@ -6680,7 +6680,7 @@ const Re = [
|
|
|
6680
6680
|
i("div", ga, [
|
|
6681
6681
|
i("div", Ca, [
|
|
6682
6682
|
i("span", ha, "筛选卡片 " + ce(Q + 1), 1),
|
|
6683
|
-
e(
|
|
6683
|
+
e(q, {
|
|
6684
6684
|
size: o.size,
|
|
6685
6685
|
modelValue: C.connector,
|
|
6686
6686
|
"onUpdate:modelValue": (M) => C.connector = M,
|
|
@@ -6744,7 +6744,7 @@ const Re = [
|
|
|
6744
6744
|
e(U, {
|
|
6745
6745
|
theme: "default",
|
|
6746
6746
|
size: o.size,
|
|
6747
|
-
onClick: (M) =>
|
|
6747
|
+
onClick: (M) => p(Q)
|
|
6748
6748
|
}, {
|
|
6749
6749
|
icon: a(() => [
|
|
6750
6750
|
e(h, { name: "add" })
|
|
@@ -6792,7 +6792,7 @@ const Re = [
|
|
|
6792
6792
|
t[16] || (t[16] = i("div", { class: "column-title column-title-sort" }, "排序", -1))
|
|
6793
6793
|
]),
|
|
6794
6794
|
i("div", Va, [
|
|
6795
|
-
(b(!0), A(I, null, te(
|
|
6795
|
+
(b(!0), A(I, null, te(f.value, (C, Q) => (b(), A("div", {
|
|
6796
6796
|
key: C.value,
|
|
6797
6797
|
class: Se(["column-item-row", { dragging: x.value === Q }]),
|
|
6798
6798
|
draggable: "true",
|
|
@@ -6811,7 +6811,7 @@ const Re = [
|
|
|
6811
6811
|
i("div", Ua, [
|
|
6812
6812
|
e(xe, {
|
|
6813
6813
|
checked: W.value.includes(C.value),
|
|
6814
|
-
onChange: (M) =>
|
|
6814
|
+
onChange: (M) => L(C.value, M)
|
|
6815
6815
|
}, null, 8, ["checked", "onChange"])
|
|
6816
6816
|
]),
|
|
6817
6817
|
i("div", xa, [
|
|
@@ -6871,7 +6871,7 @@ const Re = [
|
|
|
6871
6871
|
variant: "text",
|
|
6872
6872
|
size: "small",
|
|
6873
6873
|
onClick: (M) => he(Q),
|
|
6874
|
-
disabled: Q ===
|
|
6874
|
+
disabled: Q === f.value.length - 1
|
|
6875
6875
|
}, {
|
|
6876
6876
|
icon: a(() => [
|
|
6877
6877
|
e(h, {
|
|
@@ -7044,7 +7044,7 @@ const Re = [
|
|
|
7044
7044
|
e(U, {
|
|
7045
7045
|
theme: "primary",
|
|
7046
7046
|
size: o.size,
|
|
7047
|
-
onClick:
|
|
7047
|
+
onClick: H
|
|
7048
7048
|
}, {
|
|
7049
7049
|
default: a(() => [...t[20] || (t[20] = [
|
|
7050
7050
|
V("确定", -1)
|
|
@@ -7061,7 +7061,7 @@ const Re = [
|
|
|
7061
7061
|
"onUpdate:visible": t[5] || (t[5] = (C) => s.value = C),
|
|
7062
7062
|
"is-editing": P.value,
|
|
7063
7063
|
"plan-name": N.value,
|
|
7064
|
-
"original-share-mode":
|
|
7064
|
+
"original-share-mode": Y.value,
|
|
7065
7065
|
"original-share-type": $.value,
|
|
7066
7066
|
"original-selected-users": k.value,
|
|
7067
7067
|
tabs: o.personTabs,
|
|
@@ -7088,7 +7088,7 @@ const Re = [
|
|
|
7088
7088
|
},
|
|
7089
7089
|
emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
|
|
7090
7090
|
setup(o, { emit: ae }) {
|
|
7091
|
-
const d = o, v = ae, n = z(d.visible),
|
|
7091
|
+
const d = o, v = ae, n = z(d.visible), D = [
|
|
7092
7092
|
// 第一行 - 暖色系
|
|
7093
7093
|
"#FFE7BA",
|
|
7094
7094
|
"#FFD6E7",
|
|
@@ -7168,7 +7168,7 @@ const Re = [
|
|
|
7168
7168
|
});
|
|
7169
7169
|
}, N = (g) => {
|
|
7170
7170
|
T.value.length > 1 && T.value.splice(g, 1);
|
|
7171
|
-
},
|
|
7171
|
+
}, Y = () => {
|
|
7172
7172
|
n.value = !1;
|
|
7173
7173
|
}, $ = () => {
|
|
7174
7174
|
v("clear"), n.value = !1;
|
|
@@ -7185,31 +7185,31 @@ const Re = [
|
|
|
7185
7185
|
}));
|
|
7186
7186
|
v("confirm", g), n.value = !1;
|
|
7187
7187
|
}, _ = re(() => {
|
|
7188
|
-
const g = T.value.length, u = Math.floor(
|
|
7188
|
+
const g = T.value.length, u = Math.floor(D.length / g), p = [];
|
|
7189
7189
|
for (let m = 0; m < g; m++) {
|
|
7190
|
-
const S = m * u %
|
|
7191
|
-
|
|
7190
|
+
const S = m * u % D.length;
|
|
7191
|
+
p.push(D[S]);
|
|
7192
7192
|
}
|
|
7193
|
-
return
|
|
7193
|
+
return p;
|
|
7194
7194
|
}), O = () => {
|
|
7195
7195
|
T.value.forEach((g, u) => {
|
|
7196
7196
|
u < _.value.length && (g.backgroundColor = _.value[u]);
|
|
7197
7197
|
}), v("smart-colors-change", _.value);
|
|
7198
7198
|
};
|
|
7199
7199
|
return (g, u) => {
|
|
7200
|
-
const
|
|
7201
|
-
return b(),
|
|
7200
|
+
const p = y("t-button"), m = y("t-checkbox"), S = y("t-popup"), J = y("t-radio-button"), G = y("t-radio-group"), le = y("t-select"), X = y("t-input"), ie = y("t-icon"), F = y("t-dialog");
|
|
7201
|
+
return b(), j(F, {
|
|
7202
7202
|
visible: n.value,
|
|
7203
7203
|
"onUpdate:visible": u[0] || (u[0] = (B) => n.value = B),
|
|
7204
7204
|
width: "800px",
|
|
7205
7205
|
"confirm-btn": null,
|
|
7206
7206
|
"cancel-btn": null,
|
|
7207
|
-
onClose:
|
|
7207
|
+
onClose: Y
|
|
7208
7208
|
}, {
|
|
7209
7209
|
header: a(() => [
|
|
7210
7210
|
i("div", La, [
|
|
7211
7211
|
u[3] || (u[3] = i("span", null, "颜色筛选", -1)),
|
|
7212
|
-
e(
|
|
7212
|
+
e(p, {
|
|
7213
7213
|
theme: "primary",
|
|
7214
7214
|
variant: "outline",
|
|
7215
7215
|
size: "small",
|
|
@@ -7236,24 +7236,24 @@ const Re = [
|
|
|
7236
7236
|
i("div", Ga, [
|
|
7237
7237
|
e(S, {
|
|
7238
7238
|
visible: B.showColorPicker,
|
|
7239
|
-
"onUpdate:visible": (
|
|
7239
|
+
"onUpdate:visible": (H) => B.showColorPicker = H,
|
|
7240
7240
|
placement: "bottom-left",
|
|
7241
7241
|
trigger: "click"
|
|
7242
7242
|
}, {
|
|
7243
7243
|
content: a(() => [
|
|
7244
7244
|
i("div", Qa, [
|
|
7245
7245
|
i("div", Xa, [
|
|
7246
|
-
(b(), A(I, null, te(
|
|
7247
|
-
key:
|
|
7248
|
-
class: Se(["preset-color-item", { active: B.backgroundColor ===
|
|
7249
|
-
style: $e({ backgroundColor:
|
|
7250
|
-
onClick: (me) => K(ne,
|
|
7246
|
+
(b(), A(I, null, te(D, (H) => i("div", {
|
|
7247
|
+
key: H,
|
|
7248
|
+
class: Se(["preset-color-item", { active: B.backgroundColor === H }]),
|
|
7249
|
+
style: $e({ backgroundColor: H }),
|
|
7250
|
+
onClick: (me) => K(ne, H)
|
|
7251
7251
|
}, null, 14, Za)), 64))
|
|
7252
7252
|
]),
|
|
7253
7253
|
i("div", Ia, [
|
|
7254
7254
|
e(m, {
|
|
7255
7255
|
modelValue: B.isBold,
|
|
7256
|
-
"onUpdate:modelValue": (
|
|
7256
|
+
"onUpdate:modelValue": (H) => B.isBold = H
|
|
7257
7257
|
}, {
|
|
7258
7258
|
default: a(() => [...u[4] || (u[4] = [
|
|
7259
7259
|
i("span", { class: "bold-text" }, "加粗", -1)
|
|
@@ -7279,7 +7279,7 @@ const Re = [
|
|
|
7279
7279
|
i("div", el, [
|
|
7280
7280
|
e(G, {
|
|
7281
7281
|
modelValue: B.applyTo,
|
|
7282
|
-
"onUpdate:modelValue": (
|
|
7282
|
+
"onUpdate:modelValue": (H) => B.applyTo = H,
|
|
7283
7283
|
size: o.size,
|
|
7284
7284
|
variant: "default-filled"
|
|
7285
7285
|
}, {
|
|
@@ -7309,7 +7309,7 @@ const Re = [
|
|
|
7309
7309
|
i("div", al, [
|
|
7310
7310
|
e(le, {
|
|
7311
7311
|
modelValue: B.field,
|
|
7312
|
-
"onUpdate:modelValue": (
|
|
7312
|
+
"onUpdate:modelValue": (H) => B.field = H,
|
|
7313
7313
|
options: o.fieldOptions,
|
|
7314
7314
|
placeholder: "选择字段",
|
|
7315
7315
|
size: o.size,
|
|
@@ -7318,7 +7318,7 @@ const Re = [
|
|
|
7318
7318
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "size"]),
|
|
7319
7319
|
e(le, {
|
|
7320
7320
|
modelValue: B.operator,
|
|
7321
|
-
"onUpdate:modelValue": (
|
|
7321
|
+
"onUpdate:modelValue": (H) => B.operator = H,
|
|
7322
7322
|
options: Z,
|
|
7323
7323
|
placeholder: "选择操作符",
|
|
7324
7324
|
size: o.size,
|
|
@@ -7327,18 +7327,18 @@ const Re = [
|
|
|
7327
7327
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
|
|
7328
7328
|
e(X, {
|
|
7329
7329
|
modelValue: B.value,
|
|
7330
|
-
"onUpdate:modelValue": (
|
|
7330
|
+
"onUpdate:modelValue": (H) => B.value = H,
|
|
7331
7331
|
placeholder: "输入值",
|
|
7332
7332
|
size: o.size,
|
|
7333
7333
|
style: { width: "200px" }
|
|
7334
7334
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"])
|
|
7335
7335
|
])
|
|
7336
7336
|
]),
|
|
7337
|
-
e(
|
|
7337
|
+
e(p, {
|
|
7338
7338
|
theme: "default",
|
|
7339
7339
|
variant: "text",
|
|
7340
7340
|
size: o.size,
|
|
7341
|
-
onClick: (
|
|
7341
|
+
onClick: (H) => N(ne),
|
|
7342
7342
|
disabled: T.value.length === 1
|
|
7343
7343
|
}, {
|
|
7344
7344
|
icon: a(() => [...u[8] || (u[8] = [
|
|
@@ -7348,7 +7348,7 @@ const Re = [
|
|
|
7348
7348
|
}, 8, ["size", "onClick", "disabled"])
|
|
7349
7349
|
]))), 128))
|
|
7350
7350
|
]),
|
|
7351
|
-
e(
|
|
7351
|
+
e(p, {
|
|
7352
7352
|
theme: "default",
|
|
7353
7353
|
variant: "dashed",
|
|
7354
7354
|
size: o.size,
|
|
@@ -7367,17 +7367,17 @@ const Re = [
|
|
|
7367
7367
|
]),
|
|
7368
7368
|
footer: a(() => [
|
|
7369
7369
|
i("div", ll, [
|
|
7370
|
-
e(
|
|
7370
|
+
e(p, {
|
|
7371
7371
|
theme: "default",
|
|
7372
7372
|
size: o.size,
|
|
7373
|
-
onClick:
|
|
7373
|
+
onClick: Y
|
|
7374
7374
|
}, {
|
|
7375
7375
|
default: a(() => [...u[10] || (u[10] = [
|
|
7376
7376
|
V("取消", -1)
|
|
7377
7377
|
])]),
|
|
7378
7378
|
_: 1
|
|
7379
7379
|
}, 8, ["size"]),
|
|
7380
|
-
e(
|
|
7380
|
+
e(p, {
|
|
7381
7381
|
theme: "default",
|
|
7382
7382
|
size: o.size,
|
|
7383
7383
|
onClick: $
|
|
@@ -7387,7 +7387,7 @@ const Re = [
|
|
|
7387
7387
|
])]),
|
|
7388
7388
|
_: 1
|
|
7389
7389
|
}, 8, ["size"]),
|
|
7390
|
-
e(
|
|
7390
|
+
e(p, {
|
|
7391
7391
|
theme: "primary",
|
|
7392
7392
|
size: o.size,
|
|
7393
7393
|
onClick: k
|
|
@@ -7456,36 +7456,36 @@ const Re = [
|
|
|
7456
7456
|
"smart-colors-change"
|
|
7457
7457
|
],
|
|
7458
7458
|
setup(o, { emit: ae }) {
|
|
7459
|
-
const d = o, v = ae, n = z([]),
|
|
7459
|
+
const d = o, v = ae, n = z([]), D = () => ({ field: "", operator: "eq", value: "" });
|
|
7460
7460
|
(() => {
|
|
7461
|
-
var r,
|
|
7461
|
+
var r, f;
|
|
7462
7462
|
if (d.filterCount === 0) {
|
|
7463
7463
|
n.value = [];
|
|
7464
7464
|
return;
|
|
7465
7465
|
}
|
|
7466
|
-
const c = ((
|
|
7467
|
-
n.value = Array.from({ length: d.filterCount }, (x,
|
|
7466
|
+
const c = ((f = (r = d.filterCards) == null ? void 0 : r[0]) == null ? void 0 : f.conditions) || [];
|
|
7467
|
+
n.value = Array.from({ length: d.filterCount }, (x, R) => c[R] ? JSON.parse(JSON.stringify(c[R])) : D());
|
|
7468
7468
|
})();
|
|
7469
7469
|
const s = () => {
|
|
7470
7470
|
if (d.filterCount === 0) {
|
|
7471
7471
|
n.value = [];
|
|
7472
7472
|
return;
|
|
7473
7473
|
}
|
|
7474
|
-
n.value = Array.from({ length: d.filterCount }, () =>
|
|
7474
|
+
n.value = Array.from({ length: d.filterCount }, () => D());
|
|
7475
7475
|
}, T = z("保存筛选方案"), K = z(!1), P = z(d.topOp), N = z(JSON.parse(JSON.stringify(d.filterCards)));
|
|
7476
7476
|
ee(() => d.topOp, (c) => P.value = c), ee(() => d.filterCards, (c) => N.value = JSON.parse(JSON.stringify(c)));
|
|
7477
|
-
const
|
|
7478
|
-
const r = d.planFilterOptions.find((
|
|
7477
|
+
const Y = z(null), $ = z(""), k = re(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), _ = (c) => {
|
|
7478
|
+
const r = d.planFilterOptions.find((f) => f.value === c);
|
|
7479
7479
|
r && O(r);
|
|
7480
7480
|
}, O = (c) => {
|
|
7481
7481
|
if (!c.precepts || c.precepts.length === 0) return;
|
|
7482
|
-
if (
|
|
7482
|
+
if (Y.value = c, $.value = c.value, N.value = JSON.parse(JSON.stringify(c.precepts)), P.value = c.sqlConnectType, d.filterCount > 0) {
|
|
7483
7483
|
const x = c.precepts[0];
|
|
7484
|
-
x && x.conditions && (n.value = Array.from({ length: d.filterCount }, (
|
|
7484
|
+
x && x.conditions && (n.value = Array.from({ length: d.filterCount }, (R, L) => x.conditions[L] ? JSON.parse(JSON.stringify(x.conditions[L])) : D()));
|
|
7485
7485
|
}
|
|
7486
|
-
const r = m(c.precepts),
|
|
7487
|
-
if (v("confirm",
|
|
7488
|
-
const x = c.columns.filter((
|
|
7486
|
+
const r = m(c.precepts), f = S(r, c.sqlConnectType);
|
|
7487
|
+
if (v("confirm", f), c.columns && c.columns.length > 0) {
|
|
7488
|
+
const x = c.columns.filter((R) => R.show !== !1);
|
|
7489
7489
|
v("column-change", x);
|
|
7490
7490
|
}
|
|
7491
7491
|
}, g = () => {
|
|
@@ -7499,36 +7499,36 @@ const Re = [
|
|
|
7499
7499
|
v("search", r);
|
|
7500
7500
|
}, u = () => {
|
|
7501
7501
|
K.value = !0;
|
|
7502
|
-
},
|
|
7502
|
+
}, p = () => {
|
|
7503
7503
|
K.value = !1;
|
|
7504
7504
|
}, m = (c) => c.map((r) => {
|
|
7505
|
-
const
|
|
7506
|
-
let
|
|
7507
|
-
return x.value !== null && x.value !== void 0 && (Array.isArray(x.value) ?
|
|
7505
|
+
const f = r.conditions.filter((x) => x.field && x.field.trim() !== "").map((x) => {
|
|
7506
|
+
let R = "";
|
|
7507
|
+
return x.value !== null && x.value !== void 0 && (Array.isArray(x.value) ? R = x.value.join("/") : R = String(x.value)), {
|
|
7508
7508
|
field: x.field.trim(),
|
|
7509
7509
|
operator: x.operator || "eq",
|
|
7510
|
-
value:
|
|
7510
|
+
value: R
|
|
7511
7511
|
};
|
|
7512
7512
|
});
|
|
7513
7513
|
return {
|
|
7514
7514
|
...r,
|
|
7515
7515
|
connector: r.connector || "and",
|
|
7516
|
-
conditions:
|
|
7516
|
+
conditions: f.length > 0 ? f : [{ field: "", operator: "eq", value: "" }]
|
|
7517
7517
|
};
|
|
7518
7518
|
}).filter((r) => r.conditions.length > 0 && r.conditions[0].field !== "");
|
|
7519
7519
|
function S(c, r) {
|
|
7520
7520
|
if (r !== "and" && r !== "or")
|
|
7521
7521
|
throw new Error('type参数必须是"and"或"or"');
|
|
7522
|
-
function
|
|
7522
|
+
function f(L) {
|
|
7523
7523
|
return {
|
|
7524
|
-
[
|
|
7525
|
-
[
|
|
7524
|
+
[L.field]: {
|
|
7525
|
+
[L.operator]: L.value
|
|
7526
7526
|
}
|
|
7527
7527
|
};
|
|
7528
7528
|
}
|
|
7529
|
-
function x(
|
|
7530
|
-
return
|
|
7531
|
-
[
|
|
7529
|
+
function x(L) {
|
|
7530
|
+
return L.conditions.length === 1 ? f(L.conditions[0]) : {
|
|
7531
|
+
[L.connector]: L.conditions.map(f)
|
|
7532
7532
|
};
|
|
7533
7533
|
}
|
|
7534
7534
|
return {
|
|
@@ -7540,7 +7540,7 @@ const Re = [
|
|
|
7540
7540
|
const J = () => {
|
|
7541
7541
|
ie.value = !1;
|
|
7542
7542
|
}, G = () => {
|
|
7543
|
-
s(),
|
|
7543
|
+
s(), Y.value = null, $.value = "", N.value = [
|
|
7544
7544
|
{
|
|
7545
7545
|
id: 1,
|
|
7546
7546
|
connector: "and",
|
|
@@ -7551,13 +7551,13 @@ const Re = [
|
|
|
7551
7551
|
}
|
|
7552
7552
|
], P.value = "and", v("reset"), g();
|
|
7553
7553
|
}, le = () => {
|
|
7554
|
-
if (
|
|
7554
|
+
if (Y.value) {
|
|
7555
7555
|
const c = m(N.value);
|
|
7556
7556
|
v("update-plan", {
|
|
7557
7557
|
name: F.value.name,
|
|
7558
7558
|
precepts: c,
|
|
7559
7559
|
topOp: P.value,
|
|
7560
|
-
plan:
|
|
7560
|
+
plan: Y.value,
|
|
7561
7561
|
columns: d.visibleColumns || []
|
|
7562
7562
|
// 包含当前列配置
|
|
7563
7563
|
});
|
|
@@ -7567,7 +7567,7 @@ const Re = [
|
|
|
7567
7567
|
name: F.value.name,
|
|
7568
7568
|
precepts: c,
|
|
7569
7569
|
topOp: P.value,
|
|
7570
|
-
plan:
|
|
7570
|
+
plan: Y.value,
|
|
7571
7571
|
columns: d.visibleColumns || []
|
|
7572
7572
|
// 包含当前列配置
|
|
7573
7573
|
});
|
|
@@ -7575,8 +7575,12 @@ const Re = [
|
|
|
7575
7575
|
J();
|
|
7576
7576
|
}, X = (c) => {
|
|
7577
7577
|
const r = S(c.filterCards, c.type1);
|
|
7578
|
-
v("confirm", r), d.filterCount > 0
|
|
7579
|
-
|
|
7578
|
+
if (v("confirm", r), d.filterCount > 0) {
|
|
7579
|
+
const f = c.filterCards[0];
|
|
7580
|
+
f && f.conditions && (n.value = Array.from({ length: d.filterCount }, (x, R) => f.conditions[R] ? JSON.parse(JSON.stringify(f.conditions[R])) : D()));
|
|
7581
|
+
}
|
|
7582
|
+
p();
|
|
7583
|
+
}, ie = z(!1), F = z({ name: "" }), B = z(!1), ne = z([]), H = () => {
|
|
7580
7584
|
B.value = !0;
|
|
7581
7585
|
}, me = (c) => {
|
|
7582
7586
|
ne.value = c, v("color-filter-change", c);
|
|
@@ -7587,11 +7591,11 @@ const Re = [
|
|
|
7587
7591
|
const ye = (c) => {
|
|
7588
7592
|
v("smart-colors-change", c);
|
|
7589
7593
|
}, be = re(() => ne.value.filter((c) => c.field && c.operator && c.value).length), W = re(() => {
|
|
7590
|
-
const c = ne.value.filter((
|
|
7594
|
+
const c = ne.value.filter((f) => f.field && f.operator && f.value);
|
|
7591
7595
|
return c.length === 0 ? "颜色筛选" : `
|
|
7592
|
-
${c.map((
|
|
7593
|
-
const x = d.fieldOptions.find((
|
|
7594
|
-
return `${x ? x.label :
|
|
7596
|
+
${c.map((f) => {
|
|
7597
|
+
const x = d.fieldOptions.find((L) => L.value === f.field);
|
|
7598
|
+
return `${x ? x.label : f.field} ${se(f.operator)} ${f.value}`;
|
|
7595
7599
|
}).join(`
|
|
7596
7600
|
`)}`;
|
|
7597
7601
|
}), se = (c) => ({
|
|
@@ -7605,10 +7609,10 @@ ${c.map((p) => {
|
|
|
7605
7609
|
notContains: "不包含"
|
|
7606
7610
|
})[c] || c;
|
|
7607
7611
|
return (c, r) => {
|
|
7608
|
-
const
|
|
7612
|
+
const f = y("t-radio-button"), x = y("t-radio-group"), R = y("t-icon"), L = y("t-button"), ge = y("t-badge"), Ce = y("t-tooltip"), he = y("t-dropdown"), ke = y("t-input"), _e = y("t-form-item"), ze = y("t-form"), Fe = y("t-dialog");
|
|
7609
7613
|
return b(), A("div", nl, [
|
|
7610
7614
|
o.filterCount > 0 ? (b(), A("div", ol, [
|
|
7611
|
-
(b(!0), A(I, null, te(n.value, (
|
|
7615
|
+
(b(!0), A(I, null, te(n.value, (E, l) => (b(), j(Ue, {
|
|
7612
7616
|
key: l,
|
|
7613
7617
|
"field-options": o.fieldOptions,
|
|
7614
7618
|
size: o.size,
|
|
@@ -7620,25 +7624,25 @@ ${c.map((p) => {
|
|
|
7620
7624
|
r[12] || (r[12] = i("span", { class: "plan-label" }, "我的方案:", -1)),
|
|
7621
7625
|
e(x, {
|
|
7622
7626
|
modelValue: $.value,
|
|
7623
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
7627
|
+
"onUpdate:modelValue": r[0] || (r[0] = (E) => $.value = E),
|
|
7624
7628
|
size: o.size,
|
|
7625
7629
|
onChange: _
|
|
7626
7630
|
}, {
|
|
7627
7631
|
default: a(() => [
|
|
7628
|
-
(b(!0), A(I, null, te(o.planFilterOptions, (
|
|
7629
|
-
key:
|
|
7630
|
-
value:
|
|
7631
|
-
disabled:
|
|
7632
|
+
(b(!0), A(I, null, te(o.planFilterOptions, (E) => (b(), j(f, {
|
|
7633
|
+
key: E.value,
|
|
7634
|
+
value: E.value,
|
|
7635
|
+
disabled: E.disabled
|
|
7632
7636
|
}, {
|
|
7633
7637
|
default: a(() => [
|
|
7634
|
-
V(ce(
|
|
7638
|
+
V(ce(E.content), 1)
|
|
7635
7639
|
]),
|
|
7636
7640
|
_: 2
|
|
7637
7641
|
}, 1032, ["value", "disabled"]))), 128))
|
|
7638
7642
|
]),
|
|
7639
7643
|
_: 1
|
|
7640
7644
|
}, 8, ["modelValue", "size"]),
|
|
7641
|
-
e(
|
|
7645
|
+
e(L, {
|
|
7642
7646
|
theme: "default",
|
|
7643
7647
|
variant: "outline",
|
|
7644
7648
|
size: o.size,
|
|
@@ -7646,13 +7650,13 @@ ${c.map((p) => {
|
|
|
7646
7650
|
title: "高级筛选"
|
|
7647
7651
|
}, {
|
|
7648
7652
|
icon: a(() => [
|
|
7649
|
-
e(
|
|
7653
|
+
e(R, { name: "filter" })
|
|
7650
7654
|
]),
|
|
7651
7655
|
_: 1
|
|
7652
7656
|
}, 8, ["size"])
|
|
7653
7657
|
])) : oe("", !0),
|
|
7654
7658
|
i("div", sl, [
|
|
7655
|
-
o.filterCount > 0 ? (b(),
|
|
7659
|
+
o.filterCount > 0 ? (b(), j(L, {
|
|
7656
7660
|
key: 0,
|
|
7657
7661
|
theme: "primary",
|
|
7658
7662
|
size: o.size,
|
|
@@ -7660,11 +7664,11 @@ ${c.map((p) => {
|
|
|
7660
7664
|
title: "高级筛选"
|
|
7661
7665
|
}, {
|
|
7662
7666
|
icon: a(() => [
|
|
7663
|
-
e(
|
|
7667
|
+
e(R, { name: "filter" })
|
|
7664
7668
|
]),
|
|
7665
7669
|
_: 1
|
|
7666
7670
|
}, 8, ["size"])) : oe("", !0),
|
|
7667
|
-
o.filterCount > 0 ? (b(),
|
|
7671
|
+
o.filterCount > 0 ? (b(), j(Ce, {
|
|
7668
7672
|
key: 1,
|
|
7669
7673
|
content: W.value,
|
|
7670
7674
|
placement: "top"
|
|
@@ -7675,10 +7679,10 @@ ${c.map((p) => {
|
|
|
7675
7679
|
"max-count": 99
|
|
7676
7680
|
}, {
|
|
7677
7681
|
default: a(() => [
|
|
7678
|
-
e(
|
|
7682
|
+
e(L, {
|
|
7679
7683
|
theme: "primary",
|
|
7680
7684
|
size: o.size,
|
|
7681
|
-
onClick:
|
|
7685
|
+
onClick: H
|
|
7682
7686
|
}, {
|
|
7683
7687
|
icon: a(() => [...r[13] || (r[13] = [
|
|
7684
7688
|
i("i", { class: "ri-palette-fill" }, null, -1)
|
|
@@ -7691,20 +7695,20 @@ ${c.map((p) => {
|
|
|
7691
7695
|
]),
|
|
7692
7696
|
_: 1
|
|
7693
7697
|
}, 8, ["content"])) : oe("", !0),
|
|
7694
|
-
o.filterCount > 0 ? (b(),
|
|
7698
|
+
o.filterCount > 0 ? (b(), j(he, {
|
|
7695
7699
|
key: 2,
|
|
7696
7700
|
options: k.value,
|
|
7697
7701
|
onClick: O,
|
|
7698
7702
|
"overlay-class-name": "filter-dropdown"
|
|
7699
7703
|
}, {
|
|
7700
7704
|
default: a(() => [
|
|
7701
|
-
e(
|
|
7705
|
+
e(L, {
|
|
7702
7706
|
theme: "primary",
|
|
7703
7707
|
size: o.size,
|
|
7704
7708
|
class: "margin-reset"
|
|
7705
7709
|
}, {
|
|
7706
7710
|
suffix: a(() => [
|
|
7707
|
-
e(
|
|
7711
|
+
e(R, { name: "chevron-down" })
|
|
7708
7712
|
]),
|
|
7709
7713
|
default: a(() => [
|
|
7710
7714
|
r[14] || (r[14] = V(" 我的方案 ", -1))
|
|
@@ -7717,7 +7721,7 @@ ${c.map((p) => {
|
|
|
7717
7721
|
]),
|
|
7718
7722
|
e(Ra, {
|
|
7719
7723
|
visible: K.value,
|
|
7720
|
-
"onUpdate:visible": r[1] || (r[1] = (
|
|
7724
|
+
"onUpdate:visible": r[1] || (r[1] = (E) => K.value = E),
|
|
7721
7725
|
"field-options": o.fieldOptions,
|
|
7722
7726
|
"select-options": o.selectOptions,
|
|
7723
7727
|
"plan-filter-options": o.planFilterOptions,
|
|
@@ -7730,14 +7734,14 @@ ${c.map((p) => {
|
|
|
7730
7734
|
width: "1000",
|
|
7731
7735
|
onConfirm: X,
|
|
7732
7736
|
onReset: G,
|
|
7733
|
-
onDeletePlan: r[2] || (r[2] = (
|
|
7734
|
-
onCopyPlan: r[3] || (r[3] = (
|
|
7735
|
-
onSetDefaultPlan: r[4] || (r[4] = (
|
|
7736
|
-
onUpdatePlan: r[5] || (r[5] = (
|
|
7737
|
-
onLoadUsers: r[6] || (r[6] = (
|
|
7738
|
-
onSearch: r[7] || (r[7] = (
|
|
7739
|
-
onDeptClick: r[8] || (r[8] = (
|
|
7740
|
-
onColumnChange: r[9] || (r[9] = (
|
|
7737
|
+
onDeletePlan: r[2] || (r[2] = (E) => v("delete-plan", E)),
|
|
7738
|
+
onCopyPlan: r[3] || (r[3] = (E) => v("copy-plan", E)),
|
|
7739
|
+
onSetDefaultPlan: r[4] || (r[4] = (E) => v("set-default-plan", E)),
|
|
7740
|
+
onUpdatePlan: r[5] || (r[5] = (E) => v("update-plan", E)),
|
|
7741
|
+
onLoadUsers: r[6] || (r[6] = (E) => v("load-users", E)),
|
|
7742
|
+
onSearch: r[7] || (r[7] = (E) => v("search-persons", E)),
|
|
7743
|
+
onDeptClick: r[8] || (r[8] = (E) => v("dept-click", E)),
|
|
7744
|
+
onColumnChange: r[9] || (r[9] = (E) => v("column-change", E))
|
|
7741
7745
|
}, null, 8, ["visible", "field-options", "select-options", "plan-filter-options", "filter-cards", "top-op", "size", "person-tabs", "person-organizations", "visible-columns"]),
|
|
7742
7746
|
e(Fe, {
|
|
7743
7747
|
header: T.value,
|
|
@@ -7759,7 +7763,7 @@ ${c.map((p) => {
|
|
|
7759
7763
|
default: a(() => [
|
|
7760
7764
|
e(ke, {
|
|
7761
7765
|
modelValue: F.value.name,
|
|
7762
|
-
"onUpdate:modelValue": r[10] || (r[10] = (
|
|
7766
|
+
"onUpdate:modelValue": r[10] || (r[10] = (E) => F.value.name = E),
|
|
7763
7767
|
placeholder: "请输入筛选方案名称"
|
|
7764
7768
|
}, null, 8, ["modelValue"])
|
|
7765
7769
|
]),
|
|
@@ -7771,7 +7775,7 @@ ${c.map((p) => {
|
|
|
7771
7775
|
])
|
|
7772
7776
|
]),
|
|
7773
7777
|
footer: a(() => [
|
|
7774
|
-
e(
|
|
7778
|
+
e(L, {
|
|
7775
7779
|
theme: "default",
|
|
7776
7780
|
onClick: J
|
|
7777
7781
|
}, {
|
|
@@ -7780,7 +7784,7 @@ ${c.map((p) => {
|
|
|
7780
7784
|
])]),
|
|
7781
7785
|
_: 1
|
|
7782
7786
|
}),
|
|
7783
|
-
e(
|
|
7787
|
+
e(L, {
|
|
7784
7788
|
theme: "primary",
|
|
7785
7789
|
onClick: le
|
|
7786
7790
|
}, {
|
|
@@ -7794,7 +7798,7 @@ ${c.map((p) => {
|
|
|
7794
7798
|
}, 8, ["header", "visible"]),
|
|
7795
7799
|
e(qe, {
|
|
7796
7800
|
visible: B.value,
|
|
7797
|
-
"onUpdate:visible": r[11] || (r[11] = (
|
|
7801
|
+
"onUpdate:visible": r[11] || (r[11] = (E) => B.value = E),
|
|
7798
7802
|
"field-options": o.fieldOptions,
|
|
7799
7803
|
size: o.size,
|
|
7800
7804
|
"initial-rules": ne.value,
|
|
@@ -7805,7 +7809,7 @@ ${c.map((p) => {
|
|
|
7805
7809
|
]);
|
|
7806
7810
|
};
|
|
7807
7811
|
}
|
|
7808
|
-
}, ul = /* @__PURE__ */ ue(dl, [["__scopeId", "data-v-
|
|
7812
|
+
}, ul = /* @__PURE__ */ ue(dl, [["__scopeId", "data-v-d0045dd7"]]), pl = (o) => {
|
|
7809
7813
|
o.component("FilterDialog", Ee), o.component("FilterComponent", Ee), o.component("CdFilterBar", ul), o.component("ColorFilterDialog", qe);
|
|
7810
7814
|
};
|
|
7811
7815
|
export {
|