cd-vue-filter 2.3.1 → 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 +231 -226
- 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(() => [
|
|
@@ -5959,7 +5959,7 @@ const Re = [
|
|
|
5959
5959
|
}, [
|
|
5960
5960
|
i("div", Ze, [
|
|
5961
5961
|
i("div", Ie, [
|
|
5962
|
-
i("span", ea, "筛选卡片 " +
|
|
5962
|
+
i("span", ea, "筛选卡片 " + ce(S + 1), 1),
|
|
5963
5963
|
e(O, {
|
|
5964
5964
|
size: "small",
|
|
5965
5965
|
modelValue: m.connector,
|
|
@@ -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,16 +6517,17 @@ 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" &&
|
|
6529
|
-
|
|
6528
|
+
} else K.value === "column" && E();
|
|
6529
|
+
me();
|
|
6530
|
+
}, me = () => {
|
|
6530
6531
|
v("update:visible", !1);
|
|
6531
6532
|
}, pe = (l) => {
|
|
6532
6533
|
v("load-users", l);
|
|
@@ -6536,7 +6537,7 @@ const Re = [
|
|
|
6536
6537
|
v("dept-click", { dept: l, callback: (w) => {
|
|
6537
6538
|
T.value = w;
|
|
6538
6539
|
} });
|
|
6539
|
-
}, 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);
|
|
6540
6541
|
ee(() => d.visibleColumns, (l) => {
|
|
6541
6542
|
if (c.value = {}, r.value = {}, l && l.length > 0) {
|
|
6542
6543
|
if (typeof l[0] == "object") {
|
|
@@ -6545,28 +6546,28 @@ const Re = [
|
|
|
6545
6546
|
});
|
|
6546
6547
|
const t = l.map((h) => h.value), w = t.map(
|
|
6547
6548
|
(h) => d.fieldOptions.find((U) => U.value === h)
|
|
6548
|
-
).filter(Boolean),
|
|
6549
|
+
).filter(Boolean), q = d.fieldOptions.filter(
|
|
6549
6550
|
(h) => !t.includes(h.value)
|
|
6550
6551
|
);
|
|
6551
|
-
|
|
6552
|
+
f.value = [...w, ...q];
|
|
6552
6553
|
} else {
|
|
6553
6554
|
W.value = [...l];
|
|
6554
6555
|
const t = l.map(
|
|
6555
|
-
(
|
|
6556
|
+
(q) => d.fieldOptions.find((h) => h.value === q)
|
|
6556
6557
|
).filter(Boolean), w = d.fieldOptions.filter(
|
|
6557
|
-
(
|
|
6558
|
+
(q) => !l.includes(q.value)
|
|
6558
6559
|
);
|
|
6559
|
-
|
|
6560
|
+
f.value = [...t, ...w];
|
|
6560
6561
|
}
|
|
6561
6562
|
se.value = W.value.length === d.fieldOptions.length;
|
|
6562
|
-
} 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);
|
|
6563
6564
|
d.fieldOptions.forEach((t) => {
|
|
6564
6565
|
r.value[t.value] || (r.value[t.value] = "none");
|
|
6565
6566
|
});
|
|
6566
6567
|
}, { immediate: !0 }), ee(() => d.fieldOptions, (l) => {
|
|
6567
|
-
|
|
6568
|
+
f.value.length || (f.value = [...l]);
|
|
6568
6569
|
}, { immediate: !0 });
|
|
6569
|
-
const
|
|
6570
|
+
const L = (l, t) => {
|
|
6570
6571
|
if (t)
|
|
6571
6572
|
W.value.includes(l) || W.value.push(l);
|
|
6572
6573
|
else {
|
|
@@ -6575,47 +6576,47 @@ const Re = [
|
|
|
6575
6576
|
}
|
|
6576
6577
|
se.value = W.value.length === d.fieldOptions.length;
|
|
6577
6578
|
}, ge = (l) => {
|
|
6578
|
-
l ? W.value =
|
|
6579
|
+
l ? W.value = f.value.map((t) => t.value) : W.value = [];
|
|
6579
6580
|
}, Ce = (l) => {
|
|
6580
6581
|
if (l > 0) {
|
|
6581
|
-
const t =
|
|
6582
|
-
|
|
6582
|
+
const t = f.value[l];
|
|
6583
|
+
f.value[l] = f.value[l - 1], f.value[l - 1] = t, f.value = [...f.value];
|
|
6583
6584
|
}
|
|
6584
6585
|
}, he = (l) => {
|
|
6585
|
-
if (l <
|
|
6586
|
-
const t =
|
|
6587
|
-
|
|
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];
|
|
6588
6589
|
}
|
|
6589
6590
|
}, ke = (l, t) => {
|
|
6590
6591
|
x.value = l, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/html", t.target.innerHTML);
|
|
6591
6592
|
}, _e = (l, t) => {
|
|
6592
|
-
t.preventDefault(), t.dataTransfer.dropEffect = "move",
|
|
6593
|
+
t.preventDefault(), t.dataTransfer.dropEffect = "move", R.value = l;
|
|
6593
6594
|
}, ze = () => {
|
|
6594
|
-
x.value = null,
|
|
6595
|
+
x.value = null, R.value = null;
|
|
6595
6596
|
}, Fe = (l, t) => {
|
|
6596
6597
|
t.preventDefault();
|
|
6597
6598
|
const w = x.value;
|
|
6598
6599
|
if (w === null || w === l)
|
|
6599
6600
|
return;
|
|
6600
|
-
const
|
|
6601
|
-
|
|
6602
|
-
},
|
|
6603
|
-
const l =
|
|
6604
|
-
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";
|
|
6605
6606
|
return {
|
|
6606
6607
|
value: t.value,
|
|
6607
6608
|
show: !0,
|
|
6608
6609
|
// 已通过filter筛选,都是显示的
|
|
6609
6610
|
width: w ? `${w}px` : "120px",
|
|
6610
6611
|
// 没有设置宽度时使用默认值120px
|
|
6611
|
-
freeze:
|
|
6612
|
+
freeze: q
|
|
6612
6613
|
// 冻结状态
|
|
6613
6614
|
};
|
|
6614
6615
|
});
|
|
6615
6616
|
v("column-change", l);
|
|
6616
6617
|
};
|
|
6617
6618
|
return (l, t) => {
|
|
6618
|
-
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");
|
|
6619
6620
|
return b(), A(I, null, [
|
|
6620
6621
|
e(Ne, {
|
|
6621
6622
|
header: "方案设置",
|
|
@@ -6625,7 +6626,7 @@ const Re = [
|
|
|
6625
6626
|
width: o.width,
|
|
6626
6627
|
"z-index": 999,
|
|
6627
6628
|
footer: !0,
|
|
6628
|
-
onClose:
|
|
6629
|
+
onClose: me,
|
|
6629
6630
|
id: "leader-line-clip-container"
|
|
6630
6631
|
}, {
|
|
6631
6632
|
body: a(() => [
|
|
@@ -6647,11 +6648,11 @@ const Re = [
|
|
|
6647
6648
|
i("div", fa, [
|
|
6648
6649
|
n.value.length > 1 ? (b(), A("div", pa, [
|
|
6649
6650
|
i("div", ya, [
|
|
6650
|
-
e(
|
|
6651
|
+
e(q, {
|
|
6651
6652
|
size: o.size,
|
|
6652
6653
|
class: "connector-selector",
|
|
6653
|
-
modelValue:
|
|
6654
|
-
"onUpdate:modelValue": t[0] || (t[0] = (C) =>
|
|
6654
|
+
modelValue: D.value,
|
|
6655
|
+
"onUpdate:modelValue": t[0] || (t[0] = (C) => D.value = C)
|
|
6655
6656
|
}, {
|
|
6656
6657
|
default: a(() => [
|
|
6657
6658
|
e(w, { value: "and" }, {
|
|
@@ -6678,8 +6679,8 @@ const Re = [
|
|
|
6678
6679
|
}, [
|
|
6679
6680
|
i("div", ga, [
|
|
6680
6681
|
i("div", Ca, [
|
|
6681
|
-
i("span", ha, "筛选卡片 " +
|
|
6682
|
-
e(
|
|
6682
|
+
i("span", ha, "筛选卡片 " + ce(Q + 1), 1),
|
|
6683
|
+
e(q, {
|
|
6683
6684
|
size: o.size,
|
|
6684
6685
|
modelValue: C.connector,
|
|
6685
6686
|
"onUpdate:modelValue": (M) => C.connector = M,
|
|
@@ -6743,7 +6744,7 @@ const Re = [
|
|
|
6743
6744
|
e(U, {
|
|
6744
6745
|
theme: "default",
|
|
6745
6746
|
size: o.size,
|
|
6746
|
-
onClick: (M) =>
|
|
6747
|
+
onClick: (M) => p(Q)
|
|
6747
6748
|
}, {
|
|
6748
6749
|
icon: a(() => [
|
|
6749
6750
|
e(h, { name: "add" })
|
|
@@ -6791,7 +6792,7 @@ const Re = [
|
|
|
6791
6792
|
t[16] || (t[16] = i("div", { class: "column-title column-title-sort" }, "排序", -1))
|
|
6792
6793
|
]),
|
|
6793
6794
|
i("div", Va, [
|
|
6794
|
-
(b(!0), A(I, null, te(
|
|
6795
|
+
(b(!0), A(I, null, te(f.value, (C, Q) => (b(), A("div", {
|
|
6795
6796
|
key: C.value,
|
|
6796
6797
|
class: Se(["column-item-row", { dragging: x.value === Q }]),
|
|
6797
6798
|
draggable: "true",
|
|
@@ -6805,12 +6806,12 @@ const Re = [
|
|
|
6805
6806
|
name: "move",
|
|
6806
6807
|
style: { cursor: "move", color: "#999", "margin-right": "8px" }
|
|
6807
6808
|
}),
|
|
6808
|
-
V(" " +
|
|
6809
|
+
V(" " + ce(C.label), 1)
|
|
6809
6810
|
]),
|
|
6810
6811
|
i("div", Ua, [
|
|
6811
6812
|
e(xe, {
|
|
6812
6813
|
checked: W.value.includes(C.value),
|
|
6813
|
-
onChange: (M) =>
|
|
6814
|
+
onChange: (M) => L(C.value, M)
|
|
6814
6815
|
}, null, 8, ["checked", "onChange"])
|
|
6815
6816
|
]),
|
|
6816
6817
|
i("div", xa, [
|
|
@@ -6870,7 +6871,7 @@ const Re = [
|
|
|
6870
6871
|
variant: "text",
|
|
6871
6872
|
size: "small",
|
|
6872
6873
|
onClick: (M) => he(Q),
|
|
6873
|
-
disabled: Q ===
|
|
6874
|
+
disabled: Q === f.value.length - 1
|
|
6874
6875
|
}, {
|
|
6875
6876
|
icon: a(() => [
|
|
6876
6877
|
e(h, {
|
|
@@ -6905,7 +6906,7 @@ const Re = [
|
|
|
6905
6906
|
name: "file-text",
|
|
6906
6907
|
class: "plan-icon"
|
|
6907
6908
|
}),
|
|
6908
|
-
i("span", Ta,
|
|
6909
|
+
i("span", Ta, ce(C.content), 1),
|
|
6909
6910
|
i("div", {
|
|
6910
6911
|
class: "plan-actions",
|
|
6911
6912
|
onClick: t[3] || (t[3] = De(() => {
|
|
@@ -7043,7 +7044,7 @@ const Re = [
|
|
|
7043
7044
|
e(U, {
|
|
7044
7045
|
theme: "primary",
|
|
7045
7046
|
size: o.size,
|
|
7046
|
-
onClick:
|
|
7047
|
+
onClick: H
|
|
7047
7048
|
}, {
|
|
7048
7049
|
default: a(() => [...t[20] || (t[20] = [
|
|
7049
7050
|
V("确定", -1)
|
|
@@ -7060,7 +7061,7 @@ const Re = [
|
|
|
7060
7061
|
"onUpdate:visible": t[5] || (t[5] = (C) => s.value = C),
|
|
7061
7062
|
"is-editing": P.value,
|
|
7062
7063
|
"plan-name": N.value,
|
|
7063
|
-
"original-share-mode":
|
|
7064
|
+
"original-share-mode": Y.value,
|
|
7064
7065
|
"original-share-type": $.value,
|
|
7065
7066
|
"original-selected-users": k.value,
|
|
7066
7067
|
tabs: o.personTabs,
|
|
@@ -7074,7 +7075,7 @@ const Re = [
|
|
|
7074
7075
|
], 64);
|
|
7075
7076
|
};
|
|
7076
7077
|
}
|
|
7077
|
-
}, Ra = /* @__PURE__ */ ue(Ja, [["__scopeId", "data-v-
|
|
7078
|
+
}, Ra = /* @__PURE__ */ ue(Ja, [["__scopeId", "data-v-51b8afd7"]]), La = { class: "dialog-header" }, Ha = { class: "color-filter-dialog" }, ja = { class: "color-filter-rules" }, Ya = { class: "rule-content" }, Ga = { class: "rule-color-section" }, Wa = { class: "color-block-wrapper" }, Ka = {
|
|
7078
7079
|
key: 0,
|
|
7079
7080
|
class: "bold-indicator"
|
|
7080
7081
|
}, Qa = { class: "color-picker-panel" }, Xa = { class: "preset-colors" }, Za = ["onClick"], Ia = { class: "bold-option" }, el = { class: "apply-to-section" }, al = { class: "rule-condition" }, ll = { class: "dialog-footer" }, tl = {
|
|
@@ -7087,7 +7088,7 @@ const Re = [
|
|
|
7087
7088
|
},
|
|
7088
7089
|
emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
|
|
7089
7090
|
setup(o, { emit: ae }) {
|
|
7090
|
-
const d = o, v = ae, n = z(d.visible),
|
|
7091
|
+
const d = o, v = ae, n = z(d.visible), D = [
|
|
7091
7092
|
// 第一行 - 暖色系
|
|
7092
7093
|
"#FFE7BA",
|
|
7093
7094
|
"#FFD6E7",
|
|
@@ -7167,7 +7168,7 @@ const Re = [
|
|
|
7167
7168
|
});
|
|
7168
7169
|
}, N = (g) => {
|
|
7169
7170
|
T.value.length > 1 && T.value.splice(g, 1);
|
|
7170
|
-
},
|
|
7171
|
+
}, Y = () => {
|
|
7171
7172
|
n.value = !1;
|
|
7172
7173
|
}, $ = () => {
|
|
7173
7174
|
v("clear"), n.value = !1;
|
|
@@ -7184,31 +7185,31 @@ const Re = [
|
|
|
7184
7185
|
}));
|
|
7185
7186
|
v("confirm", g), n.value = !1;
|
|
7186
7187
|
}, _ = re(() => {
|
|
7187
|
-
const g = T.value.length, u = Math.floor(
|
|
7188
|
+
const g = T.value.length, u = Math.floor(D.length / g), p = [];
|
|
7188
7189
|
for (let m = 0; m < g; m++) {
|
|
7189
|
-
const S = m * u %
|
|
7190
|
-
|
|
7190
|
+
const S = m * u % D.length;
|
|
7191
|
+
p.push(D[S]);
|
|
7191
7192
|
}
|
|
7192
|
-
return
|
|
7193
|
+
return p;
|
|
7193
7194
|
}), O = () => {
|
|
7194
7195
|
T.value.forEach((g, u) => {
|
|
7195
7196
|
u < _.value.length && (g.backgroundColor = _.value[u]);
|
|
7196
7197
|
}), v("smart-colors-change", _.value);
|
|
7197
7198
|
};
|
|
7198
7199
|
return (g, u) => {
|
|
7199
|
-
const
|
|
7200
|
-
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, {
|
|
7201
7202
|
visible: n.value,
|
|
7202
7203
|
"onUpdate:visible": u[0] || (u[0] = (B) => n.value = B),
|
|
7203
7204
|
width: "800px",
|
|
7204
7205
|
"confirm-btn": null,
|
|
7205
7206
|
"cancel-btn": null,
|
|
7206
|
-
onClose:
|
|
7207
|
+
onClose: Y
|
|
7207
7208
|
}, {
|
|
7208
7209
|
header: a(() => [
|
|
7209
7210
|
i("div", La, [
|
|
7210
7211
|
u[3] || (u[3] = i("span", null, "颜色筛选", -1)),
|
|
7211
|
-
e(
|
|
7212
|
+
e(p, {
|
|
7212
7213
|
theme: "primary",
|
|
7213
7214
|
variant: "outline",
|
|
7214
7215
|
size: "small",
|
|
@@ -7235,24 +7236,24 @@ const Re = [
|
|
|
7235
7236
|
i("div", Ga, [
|
|
7236
7237
|
e(S, {
|
|
7237
7238
|
visible: B.showColorPicker,
|
|
7238
|
-
"onUpdate:visible": (
|
|
7239
|
+
"onUpdate:visible": (H) => B.showColorPicker = H,
|
|
7239
7240
|
placement: "bottom-left",
|
|
7240
7241
|
trigger: "click"
|
|
7241
7242
|
}, {
|
|
7242
7243
|
content: a(() => [
|
|
7243
7244
|
i("div", Qa, [
|
|
7244
7245
|
i("div", Xa, [
|
|
7245
|
-
(b(), A(I, null, te(
|
|
7246
|
-
key:
|
|
7247
|
-
class: Se(["preset-color-item", { active: B.backgroundColor ===
|
|
7248
|
-
style: $e({ backgroundColor:
|
|
7249
|
-
onClick: (
|
|
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)
|
|
7250
7251
|
}, null, 14, Za)), 64))
|
|
7251
7252
|
]),
|
|
7252
7253
|
i("div", Ia, [
|
|
7253
7254
|
e(m, {
|
|
7254
7255
|
modelValue: B.isBold,
|
|
7255
|
-
"onUpdate:modelValue": (
|
|
7256
|
+
"onUpdate:modelValue": (H) => B.isBold = H
|
|
7256
7257
|
}, {
|
|
7257
7258
|
default: a(() => [...u[4] || (u[4] = [
|
|
7258
7259
|
i("span", { class: "bold-text" }, "加粗", -1)
|
|
@@ -7278,7 +7279,7 @@ const Re = [
|
|
|
7278
7279
|
i("div", el, [
|
|
7279
7280
|
e(G, {
|
|
7280
7281
|
modelValue: B.applyTo,
|
|
7281
|
-
"onUpdate:modelValue": (
|
|
7282
|
+
"onUpdate:modelValue": (H) => B.applyTo = H,
|
|
7282
7283
|
size: o.size,
|
|
7283
7284
|
variant: "default-filled"
|
|
7284
7285
|
}, {
|
|
@@ -7308,7 +7309,7 @@ const Re = [
|
|
|
7308
7309
|
i("div", al, [
|
|
7309
7310
|
e(le, {
|
|
7310
7311
|
modelValue: B.field,
|
|
7311
|
-
"onUpdate:modelValue": (
|
|
7312
|
+
"onUpdate:modelValue": (H) => B.field = H,
|
|
7312
7313
|
options: o.fieldOptions,
|
|
7313
7314
|
placeholder: "选择字段",
|
|
7314
7315
|
size: o.size,
|
|
@@ -7317,7 +7318,7 @@ const Re = [
|
|
|
7317
7318
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "size"]),
|
|
7318
7319
|
e(le, {
|
|
7319
7320
|
modelValue: B.operator,
|
|
7320
|
-
"onUpdate:modelValue": (
|
|
7321
|
+
"onUpdate:modelValue": (H) => B.operator = H,
|
|
7321
7322
|
options: Z,
|
|
7322
7323
|
placeholder: "选择操作符",
|
|
7323
7324
|
size: o.size,
|
|
@@ -7326,18 +7327,18 @@ const Re = [
|
|
|
7326
7327
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
|
|
7327
7328
|
e(X, {
|
|
7328
7329
|
modelValue: B.value,
|
|
7329
|
-
"onUpdate:modelValue": (
|
|
7330
|
+
"onUpdate:modelValue": (H) => B.value = H,
|
|
7330
7331
|
placeholder: "输入值",
|
|
7331
7332
|
size: o.size,
|
|
7332
7333
|
style: { width: "200px" }
|
|
7333
7334
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"])
|
|
7334
7335
|
])
|
|
7335
7336
|
]),
|
|
7336
|
-
e(
|
|
7337
|
+
e(p, {
|
|
7337
7338
|
theme: "default",
|
|
7338
7339
|
variant: "text",
|
|
7339
7340
|
size: o.size,
|
|
7340
|
-
onClick: (
|
|
7341
|
+
onClick: (H) => N(ne),
|
|
7341
7342
|
disabled: T.value.length === 1
|
|
7342
7343
|
}, {
|
|
7343
7344
|
icon: a(() => [...u[8] || (u[8] = [
|
|
@@ -7347,7 +7348,7 @@ const Re = [
|
|
|
7347
7348
|
}, 8, ["size", "onClick", "disabled"])
|
|
7348
7349
|
]))), 128))
|
|
7349
7350
|
]),
|
|
7350
|
-
e(
|
|
7351
|
+
e(p, {
|
|
7351
7352
|
theme: "default",
|
|
7352
7353
|
variant: "dashed",
|
|
7353
7354
|
size: o.size,
|
|
@@ -7366,17 +7367,17 @@ const Re = [
|
|
|
7366
7367
|
]),
|
|
7367
7368
|
footer: a(() => [
|
|
7368
7369
|
i("div", ll, [
|
|
7369
|
-
e(
|
|
7370
|
+
e(p, {
|
|
7370
7371
|
theme: "default",
|
|
7371
7372
|
size: o.size,
|
|
7372
|
-
onClick:
|
|
7373
|
+
onClick: Y
|
|
7373
7374
|
}, {
|
|
7374
7375
|
default: a(() => [...u[10] || (u[10] = [
|
|
7375
7376
|
V("取消", -1)
|
|
7376
7377
|
])]),
|
|
7377
7378
|
_: 1
|
|
7378
7379
|
}, 8, ["size"]),
|
|
7379
|
-
e(
|
|
7380
|
+
e(p, {
|
|
7380
7381
|
theme: "default",
|
|
7381
7382
|
size: o.size,
|
|
7382
7383
|
onClick: $
|
|
@@ -7386,7 +7387,7 @@ const Re = [
|
|
|
7386
7387
|
])]),
|
|
7387
7388
|
_: 1
|
|
7388
7389
|
}, 8, ["size"]),
|
|
7389
|
-
e(
|
|
7390
|
+
e(p, {
|
|
7390
7391
|
theme: "primary",
|
|
7391
7392
|
size: o.size,
|
|
7392
7393
|
onClick: k
|
|
@@ -7455,36 +7456,36 @@ const Re = [
|
|
|
7455
7456
|
"smart-colors-change"
|
|
7456
7457
|
],
|
|
7457
7458
|
setup(o, { emit: ae }) {
|
|
7458
|
-
const d = o, v = ae, n = z([]),
|
|
7459
|
+
const d = o, v = ae, n = z([]), D = () => ({ field: "", operator: "eq", value: "" });
|
|
7459
7460
|
(() => {
|
|
7460
|
-
var r,
|
|
7461
|
+
var r, f;
|
|
7461
7462
|
if (d.filterCount === 0) {
|
|
7462
7463
|
n.value = [];
|
|
7463
7464
|
return;
|
|
7464
7465
|
}
|
|
7465
|
-
const c = ((
|
|
7466
|
-
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());
|
|
7467
7468
|
})();
|
|
7468
7469
|
const s = () => {
|
|
7469
7470
|
if (d.filterCount === 0) {
|
|
7470
7471
|
n.value = [];
|
|
7471
7472
|
return;
|
|
7472
7473
|
}
|
|
7473
|
-
n.value = Array.from({ length: d.filterCount }, () =>
|
|
7474
|
+
n.value = Array.from({ length: d.filterCount }, () => D());
|
|
7474
7475
|
}, T = z("保存筛选方案"), K = z(!1), P = z(d.topOp), N = z(JSON.parse(JSON.stringify(d.filterCards)));
|
|
7475
7476
|
ee(() => d.topOp, (c) => P.value = c), ee(() => d.filterCards, (c) => N.value = JSON.parse(JSON.stringify(c)));
|
|
7476
|
-
const
|
|
7477
|
-
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);
|
|
7478
7479
|
r && O(r);
|
|
7479
7480
|
}, O = (c) => {
|
|
7480
7481
|
if (!c.precepts || c.precepts.length === 0) return;
|
|
7481
|
-
if (
|
|
7482
|
+
if (Y.value = c, $.value = c.value, N.value = JSON.parse(JSON.stringify(c.precepts)), P.value = c.sqlConnectType, d.filterCount > 0) {
|
|
7482
7483
|
const x = c.precepts[0];
|
|
7483
|
-
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()));
|
|
7484
7485
|
}
|
|
7485
|
-
const r = m(c.precepts),
|
|
7486
|
-
if (v("confirm",
|
|
7487
|
-
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);
|
|
7488
7489
|
v("column-change", x);
|
|
7489
7490
|
}
|
|
7490
7491
|
}, g = () => {
|
|
@@ -7498,36 +7499,36 @@ const Re = [
|
|
|
7498
7499
|
v("search", r);
|
|
7499
7500
|
}, u = () => {
|
|
7500
7501
|
K.value = !0;
|
|
7501
|
-
},
|
|
7502
|
+
}, p = () => {
|
|
7502
7503
|
K.value = !1;
|
|
7503
7504
|
}, m = (c) => c.map((r) => {
|
|
7504
|
-
const
|
|
7505
|
-
let
|
|
7506
|
-
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)), {
|
|
7507
7508
|
field: x.field.trim(),
|
|
7508
7509
|
operator: x.operator || "eq",
|
|
7509
|
-
value:
|
|
7510
|
+
value: R
|
|
7510
7511
|
};
|
|
7511
7512
|
});
|
|
7512
7513
|
return {
|
|
7513
7514
|
...r,
|
|
7514
7515
|
connector: r.connector || "and",
|
|
7515
|
-
conditions:
|
|
7516
|
+
conditions: f.length > 0 ? f : [{ field: "", operator: "eq", value: "" }]
|
|
7516
7517
|
};
|
|
7517
7518
|
}).filter((r) => r.conditions.length > 0 && r.conditions[0].field !== "");
|
|
7518
7519
|
function S(c, r) {
|
|
7519
7520
|
if (r !== "and" && r !== "or")
|
|
7520
7521
|
throw new Error('type参数必须是"and"或"or"');
|
|
7521
|
-
function
|
|
7522
|
+
function f(L) {
|
|
7522
7523
|
return {
|
|
7523
|
-
[
|
|
7524
|
-
[
|
|
7524
|
+
[L.field]: {
|
|
7525
|
+
[L.operator]: L.value
|
|
7525
7526
|
}
|
|
7526
7527
|
};
|
|
7527
7528
|
}
|
|
7528
|
-
function x(
|
|
7529
|
-
return
|
|
7530
|
-
[
|
|
7529
|
+
function x(L) {
|
|
7530
|
+
return L.conditions.length === 1 ? f(L.conditions[0]) : {
|
|
7531
|
+
[L.connector]: L.conditions.map(f)
|
|
7531
7532
|
};
|
|
7532
7533
|
}
|
|
7533
7534
|
return {
|
|
@@ -7539,7 +7540,7 @@ const Re = [
|
|
|
7539
7540
|
const J = () => {
|
|
7540
7541
|
ie.value = !1;
|
|
7541
7542
|
}, G = () => {
|
|
7542
|
-
s(),
|
|
7543
|
+
s(), Y.value = null, $.value = "", N.value = [
|
|
7543
7544
|
{
|
|
7544
7545
|
id: 1,
|
|
7545
7546
|
connector: "and",
|
|
@@ -7550,13 +7551,13 @@ const Re = [
|
|
|
7550
7551
|
}
|
|
7551
7552
|
], P.value = "and", v("reset"), g();
|
|
7552
7553
|
}, le = () => {
|
|
7553
|
-
if (
|
|
7554
|
+
if (Y.value) {
|
|
7554
7555
|
const c = m(N.value);
|
|
7555
7556
|
v("update-plan", {
|
|
7556
7557
|
name: F.value.name,
|
|
7557
7558
|
precepts: c,
|
|
7558
7559
|
topOp: P.value,
|
|
7559
|
-
plan:
|
|
7560
|
+
plan: Y.value,
|
|
7560
7561
|
columns: d.visibleColumns || []
|
|
7561
7562
|
// 包含当前列配置
|
|
7562
7563
|
});
|
|
@@ -7566,7 +7567,7 @@ const Re = [
|
|
|
7566
7567
|
name: F.value.name,
|
|
7567
7568
|
precepts: c,
|
|
7568
7569
|
topOp: P.value,
|
|
7569
|
-
plan:
|
|
7570
|
+
plan: Y.value,
|
|
7570
7571
|
columns: d.visibleColumns || []
|
|
7571
7572
|
// 包含当前列配置
|
|
7572
7573
|
});
|
|
@@ -7574,10 +7575,14 @@ const Re = [
|
|
|
7574
7575
|
J();
|
|
7575
7576
|
}, X = (c) => {
|
|
7576
7577
|
const r = S(c.filterCards, c.type1);
|
|
7577
|
-
v("confirm", r), d.filterCount > 0
|
|
7578
|
-
|
|
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 = () => {
|
|
7579
7584
|
B.value = !0;
|
|
7580
|
-
},
|
|
7585
|
+
}, me = (c) => {
|
|
7581
7586
|
ne.value = c, v("color-filter-change", c);
|
|
7582
7587
|
}, pe = () => {
|
|
7583
7588
|
ne.value = [], v("color-filter-clear");
|
|
@@ -7586,11 +7591,11 @@ const Re = [
|
|
|
7586
7591
|
const ye = (c) => {
|
|
7587
7592
|
v("smart-colors-change", c);
|
|
7588
7593
|
}, be = re(() => ne.value.filter((c) => c.field && c.operator && c.value).length), W = re(() => {
|
|
7589
|
-
const c = ne.value.filter((
|
|
7594
|
+
const c = ne.value.filter((f) => f.field && f.operator && f.value);
|
|
7590
7595
|
return c.length === 0 ? "颜色筛选" : `
|
|
7591
|
-
${c.map((
|
|
7592
|
-
const x = d.fieldOptions.find((
|
|
7593
|
-
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}`;
|
|
7594
7599
|
}).join(`
|
|
7595
7600
|
`)}`;
|
|
7596
7601
|
}), se = (c) => ({
|
|
@@ -7604,10 +7609,10 @@ ${c.map((p) => {
|
|
|
7604
7609
|
notContains: "不包含"
|
|
7605
7610
|
})[c] || c;
|
|
7606
7611
|
return (c, r) => {
|
|
7607
|
-
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");
|
|
7608
7613
|
return b(), A("div", nl, [
|
|
7609
7614
|
o.filterCount > 0 ? (b(), A("div", ol, [
|
|
7610
|
-
(b(!0), A(I, null, te(n.value, (
|
|
7615
|
+
(b(!0), A(I, null, te(n.value, (E, l) => (b(), j(Ue, {
|
|
7611
7616
|
key: l,
|
|
7612
7617
|
"field-options": o.fieldOptions,
|
|
7613
7618
|
size: o.size,
|
|
@@ -7619,25 +7624,25 @@ ${c.map((p) => {
|
|
|
7619
7624
|
r[12] || (r[12] = i("span", { class: "plan-label" }, "我的方案:", -1)),
|
|
7620
7625
|
e(x, {
|
|
7621
7626
|
modelValue: $.value,
|
|
7622
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
7627
|
+
"onUpdate:modelValue": r[0] || (r[0] = (E) => $.value = E),
|
|
7623
7628
|
size: o.size,
|
|
7624
7629
|
onChange: _
|
|
7625
7630
|
}, {
|
|
7626
7631
|
default: a(() => [
|
|
7627
|
-
(b(!0), A(I, null, te(o.planFilterOptions, (
|
|
7628
|
-
key:
|
|
7629
|
-
value:
|
|
7630
|
-
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
|
|
7631
7636
|
}, {
|
|
7632
7637
|
default: a(() => [
|
|
7633
|
-
V(
|
|
7638
|
+
V(ce(E.content), 1)
|
|
7634
7639
|
]),
|
|
7635
7640
|
_: 2
|
|
7636
7641
|
}, 1032, ["value", "disabled"]))), 128))
|
|
7637
7642
|
]),
|
|
7638
7643
|
_: 1
|
|
7639
7644
|
}, 8, ["modelValue", "size"]),
|
|
7640
|
-
e(
|
|
7645
|
+
e(L, {
|
|
7641
7646
|
theme: "default",
|
|
7642
7647
|
variant: "outline",
|
|
7643
7648
|
size: o.size,
|
|
@@ -7645,13 +7650,13 @@ ${c.map((p) => {
|
|
|
7645
7650
|
title: "高级筛选"
|
|
7646
7651
|
}, {
|
|
7647
7652
|
icon: a(() => [
|
|
7648
|
-
e(
|
|
7653
|
+
e(R, { name: "filter" })
|
|
7649
7654
|
]),
|
|
7650
7655
|
_: 1
|
|
7651
7656
|
}, 8, ["size"])
|
|
7652
7657
|
])) : oe("", !0),
|
|
7653
7658
|
i("div", sl, [
|
|
7654
|
-
o.filterCount > 0 ? (b(),
|
|
7659
|
+
o.filterCount > 0 ? (b(), j(L, {
|
|
7655
7660
|
key: 0,
|
|
7656
7661
|
theme: "primary",
|
|
7657
7662
|
size: o.size,
|
|
@@ -7659,11 +7664,11 @@ ${c.map((p) => {
|
|
|
7659
7664
|
title: "高级筛选"
|
|
7660
7665
|
}, {
|
|
7661
7666
|
icon: a(() => [
|
|
7662
|
-
e(
|
|
7667
|
+
e(R, { name: "filter" })
|
|
7663
7668
|
]),
|
|
7664
7669
|
_: 1
|
|
7665
7670
|
}, 8, ["size"])) : oe("", !0),
|
|
7666
|
-
o.filterCount > 0 ? (b(),
|
|
7671
|
+
o.filterCount > 0 ? (b(), j(Ce, {
|
|
7667
7672
|
key: 1,
|
|
7668
7673
|
content: W.value,
|
|
7669
7674
|
placement: "top"
|
|
@@ -7674,10 +7679,10 @@ ${c.map((p) => {
|
|
|
7674
7679
|
"max-count": 99
|
|
7675
7680
|
}, {
|
|
7676
7681
|
default: a(() => [
|
|
7677
|
-
e(
|
|
7682
|
+
e(L, {
|
|
7678
7683
|
theme: "primary",
|
|
7679
7684
|
size: o.size,
|
|
7680
|
-
onClick:
|
|
7685
|
+
onClick: H
|
|
7681
7686
|
}, {
|
|
7682
7687
|
icon: a(() => [...r[13] || (r[13] = [
|
|
7683
7688
|
i("i", { class: "ri-palette-fill" }, null, -1)
|
|
@@ -7690,20 +7695,20 @@ ${c.map((p) => {
|
|
|
7690
7695
|
]),
|
|
7691
7696
|
_: 1
|
|
7692
7697
|
}, 8, ["content"])) : oe("", !0),
|
|
7693
|
-
o.filterCount > 0 ? (b(),
|
|
7698
|
+
o.filterCount > 0 ? (b(), j(he, {
|
|
7694
7699
|
key: 2,
|
|
7695
7700
|
options: k.value,
|
|
7696
7701
|
onClick: O,
|
|
7697
7702
|
"overlay-class-name": "filter-dropdown"
|
|
7698
7703
|
}, {
|
|
7699
7704
|
default: a(() => [
|
|
7700
|
-
e(
|
|
7705
|
+
e(L, {
|
|
7701
7706
|
theme: "primary",
|
|
7702
7707
|
size: o.size,
|
|
7703
7708
|
class: "margin-reset"
|
|
7704
7709
|
}, {
|
|
7705
7710
|
suffix: a(() => [
|
|
7706
|
-
e(
|
|
7711
|
+
e(R, { name: "chevron-down" })
|
|
7707
7712
|
]),
|
|
7708
7713
|
default: a(() => [
|
|
7709
7714
|
r[14] || (r[14] = V(" 我的方案 ", -1))
|
|
@@ -7716,7 +7721,7 @@ ${c.map((p) => {
|
|
|
7716
7721
|
]),
|
|
7717
7722
|
e(Ra, {
|
|
7718
7723
|
visible: K.value,
|
|
7719
|
-
"onUpdate:visible": r[1] || (r[1] = (
|
|
7724
|
+
"onUpdate:visible": r[1] || (r[1] = (E) => K.value = E),
|
|
7720
7725
|
"field-options": o.fieldOptions,
|
|
7721
7726
|
"select-options": o.selectOptions,
|
|
7722
7727
|
"plan-filter-options": o.planFilterOptions,
|
|
@@ -7729,14 +7734,14 @@ ${c.map((p) => {
|
|
|
7729
7734
|
width: "1000",
|
|
7730
7735
|
onConfirm: X,
|
|
7731
7736
|
onReset: G,
|
|
7732
|
-
onDeletePlan: r[2] || (r[2] = (
|
|
7733
|
-
onCopyPlan: r[3] || (r[3] = (
|
|
7734
|
-
onSetDefaultPlan: r[4] || (r[4] = (
|
|
7735
|
-
onUpdatePlan: r[5] || (r[5] = (
|
|
7736
|
-
onLoadUsers: r[6] || (r[6] = (
|
|
7737
|
-
onSearch: r[7] || (r[7] = (
|
|
7738
|
-
onDeptClick: r[8] || (r[8] = (
|
|
7739
|
-
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))
|
|
7740
7745
|
}, null, 8, ["visible", "field-options", "select-options", "plan-filter-options", "filter-cards", "top-op", "size", "person-tabs", "person-organizations", "visible-columns"]),
|
|
7741
7746
|
e(Fe, {
|
|
7742
7747
|
header: T.value,
|
|
@@ -7758,7 +7763,7 @@ ${c.map((p) => {
|
|
|
7758
7763
|
default: a(() => [
|
|
7759
7764
|
e(ke, {
|
|
7760
7765
|
modelValue: F.value.name,
|
|
7761
|
-
"onUpdate:modelValue": r[10] || (r[10] = (
|
|
7766
|
+
"onUpdate:modelValue": r[10] || (r[10] = (E) => F.value.name = E),
|
|
7762
7767
|
placeholder: "请输入筛选方案名称"
|
|
7763
7768
|
}, null, 8, ["modelValue"])
|
|
7764
7769
|
]),
|
|
@@ -7770,7 +7775,7 @@ ${c.map((p) => {
|
|
|
7770
7775
|
])
|
|
7771
7776
|
]),
|
|
7772
7777
|
footer: a(() => [
|
|
7773
|
-
e(
|
|
7778
|
+
e(L, {
|
|
7774
7779
|
theme: "default",
|
|
7775
7780
|
onClick: J
|
|
7776
7781
|
}, {
|
|
@@ -7779,7 +7784,7 @@ ${c.map((p) => {
|
|
|
7779
7784
|
])]),
|
|
7780
7785
|
_: 1
|
|
7781
7786
|
}),
|
|
7782
|
-
e(
|
|
7787
|
+
e(L, {
|
|
7783
7788
|
theme: "primary",
|
|
7784
7789
|
onClick: le
|
|
7785
7790
|
}, {
|
|
@@ -7793,18 +7798,18 @@ ${c.map((p) => {
|
|
|
7793
7798
|
}, 8, ["header", "visible"]),
|
|
7794
7799
|
e(qe, {
|
|
7795
7800
|
visible: B.value,
|
|
7796
|
-
"onUpdate:visible": r[11] || (r[11] = (
|
|
7801
|
+
"onUpdate:visible": r[11] || (r[11] = (E) => B.value = E),
|
|
7797
7802
|
"field-options": o.fieldOptions,
|
|
7798
7803
|
size: o.size,
|
|
7799
7804
|
"initial-rules": ne.value,
|
|
7800
|
-
onConfirm:
|
|
7805
|
+
onConfirm: me,
|
|
7801
7806
|
onClear: pe,
|
|
7802
7807
|
onSmartColorsChange: ye
|
|
7803
7808
|
}, null, 8, ["visible", "field-options", "size", "initial-rules"])
|
|
7804
7809
|
]);
|
|
7805
7810
|
};
|
|
7806
7811
|
}
|
|
7807
|
-
}, ul = /* @__PURE__ */ ue(dl, [["__scopeId", "data-v-
|
|
7812
|
+
}, ul = /* @__PURE__ */ ue(dl, [["__scopeId", "data-v-d0045dd7"]]), pl = (o) => {
|
|
7808
7813
|
o.component("FilterDialog", Ee), o.component("FilterComponent", Ee), o.component("CdFilterBar", ul), o.component("ColorFilterDialog", qe);
|
|
7809
7814
|
};
|
|
7810
7815
|
export {
|