cd-vue-filter 2.4.5 → 2.4.7
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 +309 -312
- 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 ye, ref as _, watch as G, resolveComponent as F, openBlock as g, createBlock as J, withCtx as
|
|
1
|
+
import { defineComponent as ye, ref as _, watch as G, resolveComponent as F, openBlock as g, createBlock as J, withCtx as s, createElementVNode as i, createVNode as o, createTextVNode as T, createCommentVNode as X, computed as ee, createElementBlock as B, Fragment as W, renderList as Z, nextTick as ie, toDisplayString as se, normalizeStyle as de, normalizeClass as ue, withDirectives as we, vShow as $e, renderSlot as Ve } from "vue";
|
|
2
2
|
import { MessagePlugin as re } from "tdesign-vue-next";
|
|
3
3
|
const Se = [
|
|
4
4
|
{
|
|
@@ -5537,8 +5537,8 @@ const Se = [
|
|
|
5537
5537
|
dialogTitle: {}
|
|
5538
5538
|
},
|
|
5539
5539
|
emits: ["update:visible", "select"],
|
|
5540
|
-
setup(
|
|
5541
|
-
const d =
|
|
5540
|
+
setup(r, { emit: Y }) {
|
|
5541
|
+
const d = r, k = Y, m = _(""), x = _(!1), I = _([]), e = _([]), $ = _(0), j = _(1), P = _([]), q = _(null), R = _([]), w = /* @__PURE__ */ new Map();
|
|
5542
5542
|
function O() {
|
|
5543
5543
|
k("update:visible", !1), N();
|
|
5544
5544
|
}
|
|
@@ -5547,8 +5547,8 @@ const Se = [
|
|
|
5547
5547
|
}
|
|
5548
5548
|
function K(a, p) {
|
|
5549
5549
|
if (a.length > 0) {
|
|
5550
|
-
const
|
|
5551
|
-
P.value = [
|
|
5550
|
+
const b = a[a.length - 1];
|
|
5551
|
+
P.value = [b], q.value = I.value.find((l) => l.id === b) || null;
|
|
5552
5552
|
} else
|
|
5553
5553
|
P.value = [], q.value = null;
|
|
5554
5554
|
}
|
|
@@ -5556,8 +5556,8 @@ const Se = [
|
|
|
5556
5556
|
if (!q.value) return;
|
|
5557
5557
|
const a = q.value;
|
|
5558
5558
|
let p = "";
|
|
5559
|
-
const
|
|
5560
|
-
if (
|
|
5559
|
+
const b = d.formType || (d.fieldType === "billdata" ? "form" : "basic");
|
|
5560
|
+
if (b === "basic" || b === "tree" ? p = a.fname || "" : p = a.fbillno || "", !p && R.value.length > 0) {
|
|
5561
5561
|
const l = R.value[0];
|
|
5562
5562
|
p = a[l.__vModel__] || "";
|
|
5563
5563
|
}
|
|
@@ -5565,10 +5565,10 @@ const Se = [
|
|
|
5565
5565
|
}
|
|
5566
5566
|
function c(a) {
|
|
5567
5567
|
const p = [];
|
|
5568
|
-
for (const
|
|
5569
|
-
if (!
|
|
5570
|
-
const l =
|
|
5571
|
-
l.noShow || l.jnpfKey === "divider" || l.jnpfKey === "table" || l.jnpfKey === "vxeSubGrid" || (l.children && Array.isArray(l.children) ? p.push(...c(l.children)) : p.push(
|
|
5568
|
+
for (const b of a) {
|
|
5569
|
+
if (!b) continue;
|
|
5570
|
+
const l = b.__config__ || {};
|
|
5571
|
+
l.noShow || l.jnpfKey === "divider" || l.jnpfKey === "table" || l.jnpfKey === "vxeSubGrid" || (l.children && Array.isArray(l.children) ? p.push(...c(l.children)) : p.push(b));
|
|
5572
5572
|
}
|
|
5573
5573
|
return p;
|
|
5574
5574
|
}
|
|
@@ -5581,9 +5581,9 @@ const Se = [
|
|
|
5581
5581
|
return;
|
|
5582
5582
|
}
|
|
5583
5583
|
try {
|
|
5584
|
-
const
|
|
5584
|
+
const b = await (await fetch(`/api/visualdev/OnlineDev/${d.releaseId}/Config`, {
|
|
5585
5585
|
credentials: "include"
|
|
5586
|
-
})).json(), l = (a =
|
|
5586
|
+
})).json(), l = (a = b.data) != null && a.formData ? JSON.parse(b.data.formData) : null;
|
|
5587
5587
|
if (!(l != null && l.fields)) return;
|
|
5588
5588
|
const t = c(l.fields);
|
|
5589
5589
|
R.value = t;
|
|
@@ -5606,7 +5606,7 @@ const Se = [
|
|
|
5606
5606
|
}
|
|
5607
5607
|
}
|
|
5608
5608
|
async function n() {
|
|
5609
|
-
var a, p,
|
|
5609
|
+
var a, p, b;
|
|
5610
5610
|
if (d.releaseId) {
|
|
5611
5611
|
x.value = !0;
|
|
5612
5612
|
try {
|
|
@@ -5627,7 +5627,7 @@ const Se = [
|
|
|
5627
5627
|
} catch {
|
|
5628
5628
|
}
|
|
5629
5629
|
return Object.assign(L, h), L;
|
|
5630
|
-
}), $.value = ((
|
|
5630
|
+
}), $.value = ((b = (p = y.data) == null ? void 0 : p.pagination) == null ? void 0 : b.total) || 0;
|
|
5631
5631
|
} catch (l) {
|
|
5632
5632
|
console.error("[RelationSelectDialog] fetchData error:", l);
|
|
5633
5633
|
} finally {
|
|
@@ -5644,10 +5644,10 @@ const Se = [
|
|
|
5644
5644
|
return G(() => d.visible, (a) => {
|
|
5645
5645
|
a && d.releaseId && f().then(() => n());
|
|
5646
5646
|
}), (a, p) => {
|
|
5647
|
-
const
|
|
5647
|
+
const b = F("t-input"), l = F("t-button"), t = F("t-table"), y = F("t-pagination"), z = F("t-dialog");
|
|
5648
5648
|
return g(), J(z, {
|
|
5649
|
-
visible:
|
|
5650
|
-
header:
|
|
5649
|
+
visible: r.visible,
|
|
5650
|
+
header: r.dialogTitle || "选择关联数据",
|
|
5651
5651
|
width: 900,
|
|
5652
5652
|
footer: !0,
|
|
5653
5653
|
onClose: O,
|
|
@@ -5655,10 +5655,10 @@ const Se = [
|
|
|
5655
5655
|
attach: ".cd-form-select-modal",
|
|
5656
5656
|
"close-on-overlay-click": !1
|
|
5657
5657
|
}, {
|
|
5658
|
-
default:
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
o(
|
|
5658
|
+
default: s(() => [
|
|
5659
|
+
i("div", xe, [
|
|
5660
|
+
i("div", De, [
|
|
5661
|
+
o(b, {
|
|
5662
5662
|
modelValue: m.value,
|
|
5663
5663
|
"onUpdate:modelValue": p[0] || (p[0] = (h) => m.value = h),
|
|
5664
5664
|
placeholder: "请输入关键字搜索",
|
|
@@ -5670,10 +5670,10 @@ const Se = [
|
|
|
5670
5670
|
theme: "primary",
|
|
5671
5671
|
onClick: U
|
|
5672
5672
|
}, {
|
|
5673
|
-
icon:
|
|
5674
|
-
|
|
5673
|
+
icon: s(() => [...p[2] || (p[2] = [
|
|
5674
|
+
i("i", { class: "ri-search-line" }, null, -1)
|
|
5675
5675
|
])]),
|
|
5676
|
-
default:
|
|
5676
|
+
default: s(() => [
|
|
5677
5677
|
p[3] || (p[3] = T(" 搜索 ", -1))
|
|
5678
5678
|
]),
|
|
5679
5679
|
_: 1
|
|
@@ -5707,8 +5707,8 @@ const Se = [
|
|
|
5707
5707
|
}, 8, ["visible", "header"]);
|
|
5708
5708
|
};
|
|
5709
5709
|
}
|
|
5710
|
-
}), ae = (
|
|
5711
|
-
const d =
|
|
5710
|
+
}), ae = (r, Y) => {
|
|
5711
|
+
const d = r.__vccOpts || r;
|
|
5712
5712
|
for (const [k, m] of Y)
|
|
5713
5713
|
d[k] = m;
|
|
5714
5714
|
return d;
|
|
@@ -5721,8 +5721,8 @@ const Se = [
|
|
|
5721
5721
|
size: {}
|
|
5722
5722
|
},
|
|
5723
5723
|
emits: ["search"],
|
|
5724
|
-
setup(
|
|
5725
|
-
var a, p,
|
|
5724
|
+
setup(r, { emit: Y }) {
|
|
5725
|
+
var a, p, b;
|
|
5726
5726
|
const d = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], k = ee(() => Se.map((l) => d.includes(l.name) ? {
|
|
5727
5727
|
label: l.name,
|
|
5728
5728
|
value: l.name,
|
|
@@ -5774,10 +5774,10 @@ const Se = [
|
|
|
5774
5774
|
function I(l) {
|
|
5775
5775
|
return [...l].sort((t, y) => t.value.localeCompare(y.value, "zh-CN"));
|
|
5776
5776
|
}
|
|
5777
|
-
const e =
|
|
5777
|
+
const e = r, $ = Y, j = _({
|
|
5778
5778
|
field: ((a = e.filterCondition) == null ? void 0 : a.field) || "",
|
|
5779
5779
|
operator: ((p = e.filterCondition) == null ? void 0 : p.operator) || "eq",
|
|
5780
|
-
value: ((
|
|
5780
|
+
value: ((b = e.filterCondition) == null ? void 0 : b.value) || null
|
|
5781
5781
|
});
|
|
5782
5782
|
G(() => e.filterCondition, (l) => {
|
|
5783
5783
|
l && (j.value = { ...l });
|
|
@@ -5915,7 +5915,7 @@ const Se = [
|
|
|
5915
5915
|
filterable: "",
|
|
5916
5916
|
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5917
5917
|
}, {
|
|
5918
|
-
default:
|
|
5918
|
+
default: s(() => [
|
|
5919
5919
|
(g(!0), B(W, null, Z(e.fieldOptions, (V) => (g(), J(y, {
|
|
5920
5920
|
key: V.key,
|
|
5921
5921
|
label: V.key,
|
|
@@ -5934,7 +5934,7 @@ const Se = [
|
|
|
5934
5934
|
onChange: R,
|
|
5935
5935
|
"popup-props": { attach: ".cd-form-select-modal" }
|
|
5936
5936
|
}, {
|
|
5937
|
-
default:
|
|
5937
|
+
default: s(() => [
|
|
5938
5938
|
(g(!0), B(W, null, Z(U.value, (V) => (g(), J(y, {
|
|
5939
5939
|
key: V.key,
|
|
5940
5940
|
label: V.label,
|
|
@@ -6028,8 +6028,8 @@ const Se = [
|
|
|
6028
6028
|
onChange: q,
|
|
6029
6029
|
clearable: ""
|
|
6030
6030
|
}, {
|
|
6031
|
-
suffixIcon:
|
|
6032
|
-
|
|
6031
|
+
suffixIcon: s(() => [
|
|
6032
|
+
i("i", {
|
|
6033
6033
|
class: "ri-search-line",
|
|
6034
6034
|
style: { cursor: "pointer" },
|
|
6035
6035
|
onClick: t[8] || (t[8] = (V) => f(e.filterCondition.field))
|
|
@@ -6057,8 +6057,8 @@ const Se = [
|
|
|
6057
6057
|
onChange: q,
|
|
6058
6058
|
clearable: ""
|
|
6059
6059
|
}, {
|
|
6060
|
-
suffixIcon:
|
|
6061
|
-
|
|
6060
|
+
suffixIcon: s(() => [...t[12] || (t[12] = [
|
|
6061
|
+
i("i", { class: "ri-search-line" }, null, -1)
|
|
6062
6062
|
])]),
|
|
6063
6063
|
_: 1
|
|
6064
6064
|
}, 8, ["modelValue", "size"])) : X("", !0)
|
|
@@ -6104,8 +6104,8 @@ const Se = [
|
|
|
6104
6104
|
"submit",
|
|
6105
6105
|
"close"
|
|
6106
6106
|
],
|
|
6107
|
-
setup(
|
|
6108
|
-
const d =
|
|
6107
|
+
setup(r, { emit: Y }) {
|
|
6108
|
+
const d = r, k = Y, m = _([
|
|
6109
6109
|
{
|
|
6110
6110
|
id: 1,
|
|
6111
6111
|
connector: "and",
|
|
@@ -6152,7 +6152,7 @@ const Se = [
|
|
|
6152
6152
|
return g(), J(f, {
|
|
6153
6153
|
header: "筛选条件设置",
|
|
6154
6154
|
placement: "center",
|
|
6155
|
-
visible:
|
|
6155
|
+
visible: r.visible,
|
|
6156
6156
|
"onUpdate:visible": O[1] || (O[1] = (n) => w.$emit("update:visible", n)),
|
|
6157
6157
|
width: "700px",
|
|
6158
6158
|
"z-index": 999,
|
|
@@ -6160,12 +6160,12 @@ const Se = [
|
|
|
6160
6160
|
onClose: R,
|
|
6161
6161
|
id: "leader-line-clip-container"
|
|
6162
6162
|
}, {
|
|
6163
|
-
body:
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6163
|
+
body: s(() => [
|
|
6164
|
+
i("div", Te, [
|
|
6165
|
+
i("div", Ne, [
|
|
6166
|
+
i("div", Be, [
|
|
6167
6167
|
m.value.length > 1 ? (g(), B("div", Pe, [
|
|
6168
|
-
|
|
6168
|
+
i("div", Re, [
|
|
6169
6169
|
o(K, {
|
|
6170
6170
|
size: "small",
|
|
6171
6171
|
class: "connector-selector",
|
|
@@ -6173,15 +6173,15 @@ const Se = [
|
|
|
6173
6173
|
"onUpdate:modelValue": O[0] || (O[0] = (n) => x.value = n),
|
|
6174
6174
|
style: { "margin-right": "20px" }
|
|
6175
6175
|
}, {
|
|
6176
|
-
default:
|
|
6176
|
+
default: s(() => [
|
|
6177
6177
|
o(N, { value: "and" }, {
|
|
6178
|
-
default:
|
|
6178
|
+
default: s(() => [...O[2] || (O[2] = [
|
|
6179
6179
|
T("且", -1)
|
|
6180
6180
|
])]),
|
|
6181
6181
|
_: 1
|
|
6182
6182
|
}),
|
|
6183
6183
|
o(N, { value: "or" }, {
|
|
6184
|
-
default:
|
|
6184
|
+
default: s(() => [...O[3] || (O[3] = [
|
|
6185
6185
|
T("或", -1)
|
|
6186
6186
|
])]),
|
|
6187
6187
|
_: 1
|
|
@@ -6191,30 +6191,30 @@ const Se = [
|
|
|
6191
6191
|
}, 8, ["modelValue"])
|
|
6192
6192
|
])
|
|
6193
6193
|
])) : X("", !0),
|
|
6194
|
-
|
|
6195
|
-
|
|
6194
|
+
i("div", Je, [
|
|
6195
|
+
i("div", je, [
|
|
6196
6196
|
(g(!0), B(W, null, Z(m.value, (n, U) => (g(), B("div", {
|
|
6197
6197
|
key: n.id,
|
|
6198
6198
|
class: "filter-card-item"
|
|
6199
6199
|
}, [
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6200
|
+
i("div", Me, [
|
|
6201
|
+
i("div", Ie, [
|
|
6202
|
+
i("span", Ke, "筛选卡片 " + se(U + 1), 1),
|
|
6203
6203
|
o(K, {
|
|
6204
6204
|
size: "small",
|
|
6205
6205
|
modelValue: n.connector,
|
|
6206
6206
|
"onUpdate:modelValue": (v) => n.connector = v,
|
|
6207
6207
|
class: "connector-selector"
|
|
6208
6208
|
}, {
|
|
6209
|
-
default:
|
|
6209
|
+
default: s(() => [
|
|
6210
6210
|
o(N, { value: "and" }, {
|
|
6211
|
-
default:
|
|
6211
|
+
default: s(() => [...O[4] || (O[4] = [
|
|
6212
6212
|
T("且", -1)
|
|
6213
6213
|
])]),
|
|
6214
6214
|
_: 1
|
|
6215
6215
|
}),
|
|
6216
6216
|
o(N, { value: "or" }, {
|
|
6217
|
-
default:
|
|
6217
|
+
default: s(() => [...O[5] || (O[5] = [
|
|
6218
6218
|
T("或", -1)
|
|
6219
6219
|
])]),
|
|
6220
6220
|
_: 1
|
|
@@ -6230,23 +6230,23 @@ const Se = [
|
|
|
6230
6230
|
onClick: (v) => P(U),
|
|
6231
6231
|
disabled: m.value.length === 1
|
|
6232
6232
|
}, {
|
|
6233
|
-
icon:
|
|
6233
|
+
icon: s(() => [
|
|
6234
6234
|
o(D, { name: "close" })
|
|
6235
6235
|
]),
|
|
6236
6236
|
_: 1
|
|
6237
6237
|
}, 8, ["onClick", "disabled"])
|
|
6238
6238
|
]),
|
|
6239
|
-
|
|
6239
|
+
i("div", He, [
|
|
6240
6240
|
(g(!0), B(W, null, Z(n.conditions, (v, a) => (g(), B("div", {
|
|
6241
6241
|
key: a,
|
|
6242
6242
|
class: "filter-combination"
|
|
6243
6243
|
}, [
|
|
6244
6244
|
o(me, {
|
|
6245
|
-
"field-options":
|
|
6245
|
+
"field-options": r.fieldOptions,
|
|
6246
6246
|
"filter-condition": n.conditions[a],
|
|
6247
6247
|
index: a,
|
|
6248
6248
|
"select-options": [],
|
|
6249
|
-
size:
|
|
6249
|
+
size: r.size
|
|
6250
6250
|
}, null, 8, ["field-options", "filter-condition", "index", "size"]),
|
|
6251
6251
|
o(c, {
|
|
6252
6252
|
theme: "default",
|
|
@@ -6255,22 +6255,22 @@ const Se = [
|
|
|
6255
6255
|
onClick: (p) => j(U, a),
|
|
6256
6256
|
disabled: n.conditions.length === 1
|
|
6257
6257
|
}, {
|
|
6258
|
-
icon:
|
|
6258
|
+
icon: s(() => [
|
|
6259
6259
|
o(D, { name: "minus" })
|
|
6260
6260
|
]),
|
|
6261
6261
|
_: 1
|
|
6262
6262
|
}, 8, ["onClick", "disabled"])
|
|
6263
6263
|
]))), 128)),
|
|
6264
|
-
|
|
6264
|
+
i("div", Le, [
|
|
6265
6265
|
o(c, {
|
|
6266
6266
|
theme: "default",
|
|
6267
6267
|
size: "small",
|
|
6268
6268
|
onClick: (v) => $(U)
|
|
6269
6269
|
}, {
|
|
6270
|
-
icon:
|
|
6270
|
+
icon: s(() => [
|
|
6271
6271
|
o(D, { name: "add" })
|
|
6272
6272
|
]),
|
|
6273
|
-
default:
|
|
6273
|
+
default: s(() => [
|
|
6274
6274
|
O[6] || (O[6] = T(" 添加条件 ", -1))
|
|
6275
6275
|
]),
|
|
6276
6276
|
_: 1
|
|
@@ -6278,13 +6278,13 @@ const Se = [
|
|
|
6278
6278
|
])
|
|
6279
6279
|
])
|
|
6280
6280
|
]))), 128)),
|
|
6281
|
-
|
|
6281
|
+
i("div", {
|
|
6282
6282
|
class: "add-filter-card",
|
|
6283
6283
|
onClick: e
|
|
6284
6284
|
}, [
|
|
6285
|
-
|
|
6285
|
+
i("div", Ye, [
|
|
6286
6286
|
o(D, { name: "add" }),
|
|
6287
|
-
O[7] || (O[7] =
|
|
6287
|
+
O[7] || (O[7] = i("span", null, "增加筛选卡片", -1))
|
|
6288
6288
|
])
|
|
6289
6289
|
])
|
|
6290
6290
|
])
|
|
@@ -6293,15 +6293,15 @@ const Se = [
|
|
|
6293
6293
|
])
|
|
6294
6294
|
])
|
|
6295
6295
|
]),
|
|
6296
|
-
footer:
|
|
6297
|
-
|
|
6298
|
-
O[10] || (O[10] =
|
|
6299
|
-
|
|
6296
|
+
footer: s(() => [
|
|
6297
|
+
i("div", Ge, [
|
|
6298
|
+
O[10] || (O[10] = i("div", { class: "filter-dialog-footer2" }, null, -1)),
|
|
6299
|
+
i("div", We, [
|
|
6300
6300
|
o(c, {
|
|
6301
6301
|
theme: "default",
|
|
6302
6302
|
onClick: R
|
|
6303
6303
|
}, {
|
|
6304
|
-
default:
|
|
6304
|
+
default: s(() => [...O[8] || (O[8] = [
|
|
6305
6305
|
T("取消", -1)
|
|
6306
6306
|
])]),
|
|
6307
6307
|
_: 1
|
|
@@ -6310,7 +6310,7 @@ const Se = [
|
|
|
6310
6310
|
theme: "primary",
|
|
6311
6311
|
onClick: q
|
|
6312
6312
|
}, {
|
|
6313
|
-
default:
|
|
6313
|
+
default: s(() => [...O[9] || (O[9] = [
|
|
6314
6314
|
T("确定", -1)
|
|
6315
6315
|
])]),
|
|
6316
6316
|
_: 1
|
|
@@ -6403,8 +6403,8 @@ const Se = [
|
|
|
6403
6403
|
"dept-click",
|
|
6404
6404
|
"column-change"
|
|
6405
6405
|
],
|
|
6406
|
-
setup(
|
|
6407
|
-
const d =
|
|
6406
|
+
setup(r, { emit: Y }) {
|
|
6407
|
+
const d = r, k = Y, m = _(JSON.parse(JSON.stringify(d.filterCards))), x = _(d.topOp), I = _(null);
|
|
6408
6408
|
_([]);
|
|
6409
6409
|
let e = 100;
|
|
6410
6410
|
G(() => d.filterCards, (v) => {
|
|
@@ -6432,11 +6432,11 @@ const Se = [
|
|
|
6432
6432
|
p.conditions.length > 1 && a >= 0 && a < p.conditions.length ? p.conditions.splice(a, 1) : p.conditions.length <= 1 && re.warning("每个卡片至少需要一个筛选条件");
|
|
6433
6433
|
}
|
|
6434
6434
|
}, R = (v) => v.map((a) => {
|
|
6435
|
-
const p = a.conditions.filter((
|
|
6435
|
+
const p = a.conditions.filter((b) => b.field && b.field.trim() !== "").map((b) => {
|
|
6436
6436
|
let l = "";
|
|
6437
|
-
return
|
|
6438
|
-
field:
|
|
6439
|
-
operator:
|
|
6437
|
+
return b.value !== null && b.value !== void 0 && (Array.isArray(b.value) ? l = b.value.join("/") : l = String(b.value)), {
|
|
6438
|
+
field: b.field.trim(),
|
|
6439
|
+
operator: b.operator || "eq",
|
|
6440
6440
|
value: l
|
|
6441
6441
|
};
|
|
6442
6442
|
});
|
|
@@ -6473,16 +6473,16 @@ const Se = [
|
|
|
6473
6473
|
});
|
|
6474
6474
|
const a = v.map((l) => l.value), p = a.map(
|
|
6475
6475
|
(l) => d.fieldOptions.find((t) => t.value === l)
|
|
6476
|
-
).filter(Boolean),
|
|
6476
|
+
).filter(Boolean), b = d.fieldOptions.filter(
|
|
6477
6477
|
(l) => !a.includes(l.value)
|
|
6478
6478
|
);
|
|
6479
|
-
n.value = [...p, ...
|
|
6479
|
+
n.value = [...p, ...b];
|
|
6480
6480
|
} else {
|
|
6481
6481
|
K.value = [...v];
|
|
6482
6482
|
const a = v.map(
|
|
6483
|
-
(
|
|
6483
|
+
(b) => d.fieldOptions.find((l) => l.value === b)
|
|
6484
6484
|
).filter(Boolean), p = d.fieldOptions.filter(
|
|
6485
|
-
(
|
|
6485
|
+
(b) => !v.includes(b.value)
|
|
6486
6486
|
);
|
|
6487
6487
|
n.value = [...a, ...p];
|
|
6488
6488
|
}
|
|
@@ -6496,56 +6496,56 @@ const Se = [
|
|
|
6496
6496
|
}, { immediate: !0 });
|
|
6497
6497
|
const U = () => {
|
|
6498
6498
|
const v = n.value.filter((a) => K.value.includes(a.value)).map((a) => {
|
|
6499
|
-
const p = c.value[a.value],
|
|
6499
|
+
const p = c.value[a.value], b = f.value[a.value] || "none";
|
|
6500
6500
|
return {
|
|
6501
6501
|
value: a.value,
|
|
6502
6502
|
show: !0,
|
|
6503
6503
|
// 已通过filter筛选,都是显示的
|
|
6504
6504
|
width: p ? `${p}px` : "120px",
|
|
6505
6505
|
// 没有设置宽度时使用默认值120px
|
|
6506
|
-
fixed:
|
|
6506
|
+
fixed: b
|
|
6507
6507
|
// 冻结状态
|
|
6508
6508
|
};
|
|
6509
6509
|
});
|
|
6510
6510
|
k("column-change", v);
|
|
6511
6511
|
};
|
|
6512
6512
|
return (v, a) => {
|
|
6513
|
-
const p = F("t-radio-button"),
|
|
6513
|
+
const p = F("t-radio-button"), b = F("t-radio-group"), l = F("t-icon"), t = F("t-button"), y = F("t-dialog");
|
|
6514
6514
|
return g(), J(y, {
|
|
6515
6515
|
header: "高级筛选",
|
|
6516
6516
|
placement: "center",
|
|
6517
6517
|
attach: "body",
|
|
6518
|
-
visible:
|
|
6518
|
+
visible: r.visible,
|
|
6519
6519
|
"onUpdate:visible": a[1] || (a[1] = (z) => v.$emit("update:visible", z)),
|
|
6520
|
-
width:
|
|
6520
|
+
width: r.width,
|
|
6521
6521
|
"z-index": 999,
|
|
6522
6522
|
footer: !0,
|
|
6523
6523
|
onClose: N,
|
|
6524
6524
|
id: "leader-line-clip-container"
|
|
6525
6525
|
}, {
|
|
6526
|
-
body:
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6526
|
+
body: s(() => [
|
|
6527
|
+
i("div", Xe, [
|
|
6528
|
+
i("div", Ze, [
|
|
6529
|
+
i("div", ea, [
|
|
6530
|
+
i("div", aa, [
|
|
6531
|
+
i("div", la, [
|
|
6532
6532
|
m.value.length > 1 ? (g(), B("div", ta, [
|
|
6533
|
-
|
|
6534
|
-
o(
|
|
6535
|
-
size:
|
|
6533
|
+
i("div", na, [
|
|
6534
|
+
o(b, {
|
|
6535
|
+
size: r.size,
|
|
6536
6536
|
class: "connector-selector",
|
|
6537
6537
|
modelValue: x.value,
|
|
6538
6538
|
"onUpdate:modelValue": a[0] || (a[0] = (z) => x.value = z)
|
|
6539
6539
|
}, {
|
|
6540
|
-
default:
|
|
6540
|
+
default: s(() => [
|
|
6541
6541
|
o(p, { value: "and" }, {
|
|
6542
|
-
default:
|
|
6542
|
+
default: s(() => [...a[2] || (a[2] = [
|
|
6543
6543
|
T("且", -1)
|
|
6544
6544
|
])]),
|
|
6545
6545
|
_: 1
|
|
6546
6546
|
}),
|
|
6547
6547
|
o(p, { value: "or" }, {
|
|
6548
|
-
default:
|
|
6548
|
+
default: s(() => [...a[3] || (a[3] = [
|
|
6549
6549
|
T("或", -1)
|
|
6550
6550
|
])]),
|
|
6551
6551
|
_: 1
|
|
@@ -6555,29 +6555,29 @@ const Se = [
|
|
|
6555
6555
|
}, 8, ["size", "modelValue"])
|
|
6556
6556
|
])
|
|
6557
6557
|
])) : X("", !0),
|
|
6558
|
-
|
|
6558
|
+
i("div", oa, [
|
|
6559
6559
|
(g(!0), B(W, null, Z(m.value, (z, h) => (g(), B("div", {
|
|
6560
6560
|
key: z.id,
|
|
6561
6561
|
class: "filter-card-item"
|
|
6562
6562
|
}, [
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
o(
|
|
6567
|
-
size:
|
|
6563
|
+
i("div", ia, [
|
|
6564
|
+
i("div", ra, [
|
|
6565
|
+
i("span", sa, "筛选卡片 " + se(h + 1), 1),
|
|
6566
|
+
o(b, {
|
|
6567
|
+
size: r.size,
|
|
6568
6568
|
modelValue: z.connector,
|
|
6569
6569
|
"onUpdate:modelValue": (L) => z.connector = L,
|
|
6570
6570
|
class: "connector-selector"
|
|
6571
6571
|
}, {
|
|
6572
|
-
default:
|
|
6572
|
+
default: s(() => [
|
|
6573
6573
|
o(p, { value: "and" }, {
|
|
6574
|
-
default:
|
|
6574
|
+
default: s(() => [...a[4] || (a[4] = [
|
|
6575
6575
|
T("且", -1)
|
|
6576
6576
|
])]),
|
|
6577
6577
|
_: 1
|
|
6578
6578
|
}),
|
|
6579
6579
|
o(p, { value: "or" }, {
|
|
6580
|
-
default:
|
|
6580
|
+
default: s(() => [...a[5] || (a[5] = [
|
|
6581
6581
|
T("或", -1)
|
|
6582
6582
|
])]),
|
|
6583
6583
|
_: 1
|
|
@@ -6589,50 +6589,50 @@ const Se = [
|
|
|
6589
6589
|
o(t, {
|
|
6590
6590
|
theme: "default",
|
|
6591
6591
|
variant: "text",
|
|
6592
|
-
size:
|
|
6592
|
+
size: r.size,
|
|
6593
6593
|
onClick: (L) => j(h),
|
|
6594
6594
|
disabled: m.value.length === 1
|
|
6595
6595
|
}, {
|
|
6596
|
-
icon:
|
|
6596
|
+
icon: s(() => [
|
|
6597
6597
|
o(l, { name: "close" })
|
|
6598
6598
|
]),
|
|
6599
6599
|
_: 1
|
|
6600
6600
|
}, 8, ["size", "onClick", "disabled"])
|
|
6601
6601
|
]),
|
|
6602
|
-
|
|
6602
|
+
i("div", da, [
|
|
6603
6603
|
(g(!0), B(W, null, Z(z.conditions, (L, Q) => (g(), B("div", {
|
|
6604
6604
|
key: Q,
|
|
6605
6605
|
class: "filter-combination"
|
|
6606
6606
|
}, [
|
|
6607
6607
|
o(me, {
|
|
6608
|
-
"field-options":
|
|
6608
|
+
"field-options": r.fieldOptions,
|
|
6609
6609
|
"filter-condition": z.conditions[Q],
|
|
6610
|
-
"select-options":
|
|
6611
|
-
size:
|
|
6610
|
+
"select-options": r.selectOptions,
|
|
6611
|
+
size: r.size
|
|
6612
6612
|
}, null, 8, ["field-options", "filter-condition", "select-options", "size"]),
|
|
6613
6613
|
o(t, {
|
|
6614
6614
|
theme: "default",
|
|
6615
6615
|
variant: "text",
|
|
6616
|
-
size:
|
|
6616
|
+
size: r.size,
|
|
6617
6617
|
onClick: (le) => q(h, Q),
|
|
6618
6618
|
disabled: z.conditions.length === 1
|
|
6619
6619
|
}, {
|
|
6620
|
-
icon:
|
|
6620
|
+
icon: s(() => [
|
|
6621
6621
|
o(l, { name: "minus" })
|
|
6622
6622
|
]),
|
|
6623
6623
|
_: 1
|
|
6624
6624
|
}, 8, ["size", "onClick", "disabled"])
|
|
6625
6625
|
]))), 128)),
|
|
6626
|
-
|
|
6626
|
+
i("div", ua, [
|
|
6627
6627
|
o(t, {
|
|
6628
6628
|
theme: "default",
|
|
6629
|
-
size:
|
|
6629
|
+
size: r.size,
|
|
6630
6630
|
onClick: (L) => P(h)
|
|
6631
6631
|
}, {
|
|
6632
|
-
icon:
|
|
6632
|
+
icon: s(() => [
|
|
6633
6633
|
o(l, { name: "add" })
|
|
6634
6634
|
]),
|
|
6635
|
-
default:
|
|
6635
|
+
default: s(() => [
|
|
6636
6636
|
a[6] || (a[6] = T(" 添加条件 ", -1))
|
|
6637
6637
|
]),
|
|
6638
6638
|
_: 1
|
|
@@ -6640,13 +6640,13 @@ const Se = [
|
|
|
6640
6640
|
])
|
|
6641
6641
|
])
|
|
6642
6642
|
]))), 128)),
|
|
6643
|
-
|
|
6643
|
+
i("div", {
|
|
6644
6644
|
class: "add-filter-card",
|
|
6645
6645
|
onClick: $
|
|
6646
6646
|
}, [
|
|
6647
|
-
|
|
6647
|
+
i("div", ma, [
|
|
6648
6648
|
o(l, { name: "add" }),
|
|
6649
|
-
a[7] || (a[7] =
|
|
6649
|
+
a[7] || (a[7] = i("span", null, "增加筛选卡片", -1))
|
|
6650
6650
|
])
|
|
6651
6651
|
])
|
|
6652
6652
|
])
|
|
@@ -6656,25 +6656,25 @@ const Se = [
|
|
|
6656
6656
|
])
|
|
6657
6657
|
])
|
|
6658
6658
|
]),
|
|
6659
|
-
footer:
|
|
6660
|
-
|
|
6661
|
-
|
|
6659
|
+
footer: s(() => [
|
|
6660
|
+
i("div", ca, [
|
|
6661
|
+
i("div", va, [
|
|
6662
6662
|
o(t, {
|
|
6663
6663
|
theme: "default",
|
|
6664
|
-
size:
|
|
6664
|
+
size: r.size,
|
|
6665
6665
|
onClick: w
|
|
6666
6666
|
}, {
|
|
6667
|
-
default:
|
|
6667
|
+
default: s(() => [...a[8] || (a[8] = [
|
|
6668
6668
|
T("重置", -1)
|
|
6669
6669
|
])]),
|
|
6670
6670
|
_: 1
|
|
6671
6671
|
}, 8, ["size"]),
|
|
6672
6672
|
o(t, {
|
|
6673
6673
|
theme: "primary",
|
|
6674
|
-
size:
|
|
6674
|
+
size: r.size,
|
|
6675
6675
|
onClick: O
|
|
6676
6676
|
}, {
|
|
6677
|
-
default:
|
|
6677
|
+
default: s(() => [...a[9] || (a[9] = [
|
|
6678
6678
|
T("确定", -1)
|
|
6679
6679
|
])]),
|
|
6680
6680
|
_: 1
|
|
@@ -6698,8 +6698,8 @@ const Se = [
|
|
|
6698
6698
|
initialRules: { type: Array, default: () => [] }
|
|
6699
6699
|
},
|
|
6700
6700
|
emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
|
|
6701
|
-
setup(
|
|
6702
|
-
const d =
|
|
6701
|
+
setup(r, { emit: Y }) {
|
|
6702
|
+
const d = r, k = Y, m = _(d.visible), x = [
|
|
6703
6703
|
// 第一行 - 暖色系
|
|
6704
6704
|
"#FFE7BA",
|
|
6705
6705
|
"#FFD6E7",
|
|
@@ -6808,7 +6808,7 @@ const Se = [
|
|
|
6808
6808
|
}), k("smart-colors-change", N.value);
|
|
6809
6809
|
};
|
|
6810
6810
|
return (D, c) => {
|
|
6811
|
-
const f = F("t-button"), n = F("t-checkbox"), U = F("t-popup"), v = F("t-radio-button"), a = F("t-radio-group"), p = F("t-select"),
|
|
6811
|
+
const f = F("t-button"), n = F("t-checkbox"), U = F("t-popup"), v = F("t-radio-button"), a = F("t-radio-group"), p = F("t-select"), b = F("t-input"), l = F("t-icon"), t = F("t-dialog");
|
|
6812
6812
|
return g(), J(t, {
|
|
6813
6813
|
visible: m.value,
|
|
6814
6814
|
"onUpdate:visible": c[0] || (c[0] = (y) => m.value = y),
|
|
@@ -6817,66 +6817,66 @@ const Se = [
|
|
|
6817
6817
|
"cancel-btn": null,
|
|
6818
6818
|
onClose: R
|
|
6819
6819
|
}, {
|
|
6820
|
-
header:
|
|
6821
|
-
|
|
6822
|
-
c[3] || (c[3] =
|
|
6820
|
+
header: s(() => [
|
|
6821
|
+
i("div", ya, [
|
|
6822
|
+
c[3] || (c[3] = i("span", null, "颜色筛选", -1)),
|
|
6823
6823
|
o(f, {
|
|
6824
6824
|
theme: "primary",
|
|
6825
6825
|
variant: "outline",
|
|
6826
6826
|
size: "small",
|
|
6827
6827
|
onClick: K
|
|
6828
6828
|
}, {
|
|
6829
|
-
icon:
|
|
6830
|
-
|
|
6829
|
+
icon: s(() => [...c[1] || (c[1] = [
|
|
6830
|
+
i("i", { class: "ri-palette-line" }, null, -1)
|
|
6831
6831
|
])]),
|
|
6832
|
-
default:
|
|
6832
|
+
default: s(() => [
|
|
6833
6833
|
c[2] || (c[2] = T(" 智能配色 ", -1))
|
|
6834
6834
|
]),
|
|
6835
6835
|
_: 1
|
|
6836
6836
|
})
|
|
6837
6837
|
])
|
|
6838
6838
|
]),
|
|
6839
|
-
body:
|
|
6840
|
-
|
|
6841
|
-
|
|
6839
|
+
body: s(() => [
|
|
6840
|
+
i("div", ba, [
|
|
6841
|
+
i("div", Ca, [
|
|
6842
6842
|
(g(!0), B(W, null, Z($.value, (y, z) => (g(), B("div", {
|
|
6843
6843
|
key: z,
|
|
6844
6844
|
class: "color-rule-item"
|
|
6845
6845
|
}, [
|
|
6846
|
-
|
|
6847
|
-
|
|
6846
|
+
i("div", ga, [
|
|
6847
|
+
i("div", ha, [
|
|
6848
6848
|
o(U, {
|
|
6849
6849
|
visible: y.showColorPicker,
|
|
6850
6850
|
"onUpdate:visible": (h) => y.showColorPicker = h,
|
|
6851
6851
|
placement: "bottom-left",
|
|
6852
6852
|
trigger: "click"
|
|
6853
6853
|
}, {
|
|
6854
|
-
content:
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
(g(), B(W, null, Z(x, (h) =>
|
|
6854
|
+
content: s(() => [
|
|
6855
|
+
i("div", za, [
|
|
6856
|
+
i("div", Fa, [
|
|
6857
|
+
(g(), B(W, null, Z(x, (h) => i("div", {
|
|
6858
6858
|
key: h,
|
|
6859
6859
|
class: ue(["preset-color-item", { active: y.backgroundColor === h }]),
|
|
6860
6860
|
style: de({ backgroundColor: h }),
|
|
6861
6861
|
onClick: (L) => j(z, h)
|
|
6862
6862
|
}, null, 14, Oa)), 64))
|
|
6863
6863
|
]),
|
|
6864
|
-
|
|
6864
|
+
i("div", wa, [
|
|
6865
6865
|
o(n, {
|
|
6866
6866
|
modelValue: y.isBold,
|
|
6867
6867
|
"onUpdate:modelValue": (h) => y.isBold = h
|
|
6868
6868
|
}, {
|
|
6869
|
-
default:
|
|
6870
|
-
|
|
6869
|
+
default: s(() => [...c[4] || (c[4] = [
|
|
6870
|
+
i("span", { class: "bold-text" }, "加粗", -1)
|
|
6871
6871
|
])]),
|
|
6872
6872
|
_: 1
|
|
6873
6873
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
6874
6874
|
])
|
|
6875
6875
|
])
|
|
6876
6876
|
]),
|
|
6877
|
-
default:
|
|
6878
|
-
|
|
6879
|
-
|
|
6877
|
+
default: s(() => [
|
|
6878
|
+
i("div", _a, [
|
|
6879
|
+
i("div", {
|
|
6880
6880
|
class: "color-block",
|
|
6881
6881
|
style: de({ backgroundColor: y.backgroundColor })
|
|
6882
6882
|
}, [
|
|
@@ -6887,28 +6887,28 @@ const Se = [
|
|
|
6887
6887
|
_: 2
|
|
6888
6888
|
}, 1032, ["visible", "onUpdate:visible"])
|
|
6889
6889
|
]),
|
|
6890
|
-
|
|
6890
|
+
i("div", $a, [
|
|
6891
6891
|
o(a, {
|
|
6892
6892
|
modelValue: y.applyTo,
|
|
6893
6893
|
"onUpdate:modelValue": (h) => y.applyTo = h,
|
|
6894
|
-
size:
|
|
6894
|
+
size: r.size,
|
|
6895
6895
|
variant: "default-filled"
|
|
6896
6896
|
}, {
|
|
6897
|
-
default:
|
|
6897
|
+
default: s(() => [
|
|
6898
6898
|
o(v, { value: "cell" }, {
|
|
6899
|
-
default:
|
|
6899
|
+
default: s(() => [...c[5] || (c[5] = [
|
|
6900
6900
|
T("单元格", -1)
|
|
6901
6901
|
])]),
|
|
6902
6902
|
_: 1
|
|
6903
6903
|
}),
|
|
6904
6904
|
o(v, { value: "row" }, {
|
|
6905
|
-
default:
|
|
6905
|
+
default: s(() => [...c[6] || (c[6] = [
|
|
6906
6906
|
T("整行", -1)
|
|
6907
6907
|
])]),
|
|
6908
6908
|
_: 1
|
|
6909
6909
|
}),
|
|
6910
6910
|
o(v, { value: "column" }, {
|
|
6911
|
-
default:
|
|
6911
|
+
default: s(() => [...c[7] || (c[7] = [
|
|
6912
6912
|
T("整列", -1)
|
|
6913
6913
|
])]),
|
|
6914
6914
|
_: 1
|
|
@@ -6917,13 +6917,13 @@ const Se = [
|
|
|
6917
6917
|
_: 1
|
|
6918
6918
|
}, 8, ["modelValue", "onUpdate:modelValue", "size"])
|
|
6919
6919
|
]),
|
|
6920
|
-
|
|
6920
|
+
i("div", Va, [
|
|
6921
6921
|
o(p, {
|
|
6922
6922
|
modelValue: y.field,
|
|
6923
6923
|
"onUpdate:modelValue": (h) => y.field = h,
|
|
6924
|
-
options:
|
|
6924
|
+
options: r.fieldOptions,
|
|
6925
6925
|
placeholder: "选择字段",
|
|
6926
|
-
size:
|
|
6926
|
+
size: r.size,
|
|
6927
6927
|
style: { width: "120px", display: "inline-block" },
|
|
6928
6928
|
"popup-props": e
|
|
6929
6929
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "size"]),
|
|
@@ -6932,15 +6932,15 @@ const Se = [
|
|
|
6932
6932
|
"onUpdate:modelValue": (h) => y.operator = h,
|
|
6933
6933
|
options: I,
|
|
6934
6934
|
placeholder: "选择操作符",
|
|
6935
|
-
size:
|
|
6935
|
+
size: r.size,
|
|
6936
6936
|
style: { width: "120px" },
|
|
6937
6937
|
"popup-props": e
|
|
6938
6938
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
|
|
6939
|
-
o(
|
|
6939
|
+
o(b, {
|
|
6940
6940
|
modelValue: y.value,
|
|
6941
6941
|
"onUpdate:modelValue": (h) => y.value = h,
|
|
6942
6942
|
placeholder: "输入值",
|
|
6943
|
-
size:
|
|
6943
|
+
size: r.size,
|
|
6944
6944
|
style: { width: "200px" }
|
|
6945
6945
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"])
|
|
6946
6946
|
])
|
|
@@ -6948,12 +6948,12 @@ const Se = [
|
|
|
6948
6948
|
o(f, {
|
|
6949
6949
|
theme: "default",
|
|
6950
6950
|
variant: "text",
|
|
6951
|
-
size:
|
|
6951
|
+
size: r.size,
|
|
6952
6952
|
onClick: (h) => q(z),
|
|
6953
6953
|
disabled: $.value.length === 1
|
|
6954
6954
|
}, {
|
|
6955
|
-
icon:
|
|
6956
|
-
|
|
6955
|
+
icon: s(() => [...c[8] || (c[8] = [
|
|
6956
|
+
i("i", { class: "ri-close-fill" }, null, -1)
|
|
6957
6957
|
])]),
|
|
6958
6958
|
_: 1
|
|
6959
6959
|
}, 8, ["size", "onClick", "disabled"])
|
|
@@ -6962,48 +6962,48 @@ const Se = [
|
|
|
6962
6962
|
o(f, {
|
|
6963
6963
|
theme: "default",
|
|
6964
6964
|
variant: "dashed",
|
|
6965
|
-
size:
|
|
6965
|
+
size: r.size,
|
|
6966
6966
|
onClick: P,
|
|
6967
6967
|
style: { width: "100%", "margin-top": "12px" }
|
|
6968
6968
|
}, {
|
|
6969
|
-
icon:
|
|
6969
|
+
icon: s(() => [
|
|
6970
6970
|
o(l, { name: "add" })
|
|
6971
6971
|
]),
|
|
6972
|
-
default:
|
|
6972
|
+
default: s(() => [
|
|
6973
6973
|
c[9] || (c[9] = T(" 添加规则 ", -1))
|
|
6974
6974
|
]),
|
|
6975
6975
|
_: 1
|
|
6976
6976
|
}, 8, ["size"])
|
|
6977
6977
|
])
|
|
6978
6978
|
]),
|
|
6979
|
-
footer:
|
|
6980
|
-
|
|
6979
|
+
footer: s(() => [
|
|
6980
|
+
i("div", Sa, [
|
|
6981
6981
|
o(f, {
|
|
6982
6982
|
theme: "default",
|
|
6983
|
-
size:
|
|
6983
|
+
size: r.size,
|
|
6984
6984
|
onClick: R
|
|
6985
6985
|
}, {
|
|
6986
|
-
default:
|
|
6986
|
+
default: s(() => [...c[10] || (c[10] = [
|
|
6987
6987
|
T("取消", -1)
|
|
6988
6988
|
])]),
|
|
6989
6989
|
_: 1
|
|
6990
6990
|
}, 8, ["size"]),
|
|
6991
6991
|
o(f, {
|
|
6992
6992
|
theme: "default",
|
|
6993
|
-
size:
|
|
6993
|
+
size: r.size,
|
|
6994
6994
|
onClick: w
|
|
6995
6995
|
}, {
|
|
6996
|
-
default:
|
|
6996
|
+
default: s(() => [...c[11] || (c[11] = [
|
|
6997
6997
|
T("清除", -1)
|
|
6998
6998
|
])]),
|
|
6999
6999
|
_: 1
|
|
7000
7000
|
}, 8, ["size"]),
|
|
7001
7001
|
o(f, {
|
|
7002
7002
|
theme: "primary",
|
|
7003
|
-
size:
|
|
7003
|
+
size: r.size,
|
|
7004
7004
|
onClick: O
|
|
7005
7005
|
}, {
|
|
7006
|
-
default:
|
|
7006
|
+
default: s(() => [...c[12] || (c[12] = [
|
|
7007
7007
|
T("确定", -1)
|
|
7008
7008
|
])]),
|
|
7009
7009
|
_: 1
|
|
@@ -7022,8 +7022,8 @@ const Se = [
|
|
|
7022
7022
|
visibleColumns: { type: Array, default: () => [] }
|
|
7023
7023
|
},
|
|
7024
7024
|
emits: ["update:visible", "column-change"],
|
|
7025
|
-
setup(
|
|
7026
|
-
const d =
|
|
7025
|
+
setup(r, { emit: Y }) {
|
|
7026
|
+
const d = r, k = Y, m = _([]), x = _({}), I = _({}), e = _([]), $ = _(null), j = _(null), P = (f) => {
|
|
7027
7027
|
if (x.value = {}, I.value = {}, f && f.length > 0)
|
|
7028
7028
|
if (typeof f[0] == "object") {
|
|
7029
7029
|
m.value = f.filter((a) => a.show !== !1).map((a) => a.value), f.forEach((a) => {
|
|
@@ -7077,28 +7077,28 @@ const Se = [
|
|
|
7077
7077
|
k("column-change", f), k("update:visible", !1);
|
|
7078
7078
|
};
|
|
7079
7079
|
return (f, n) => {
|
|
7080
|
-
const U = F("t-icon"), v = F("t-option"), a = F("t-select"), p = F("t-input-number"),
|
|
7080
|
+
const U = F("t-icon"), v = F("t-option"), a = F("t-select"), p = F("t-input-number"), b = F("t-button"), l = F("t-dialog");
|
|
7081
7081
|
return g(), J(l, {
|
|
7082
7082
|
header: "列配置",
|
|
7083
7083
|
placement: "center",
|
|
7084
7084
|
attach: "body",
|
|
7085
|
-
visible:
|
|
7085
|
+
visible: r.visible,
|
|
7086
7086
|
"onUpdate:visible": n[1] || (n[1] = (t) => f.$emit("update:visible", t)),
|
|
7087
7087
|
width: "700px",
|
|
7088
7088
|
"z-index": 999,
|
|
7089
7089
|
footer: !0,
|
|
7090
7090
|
onClose: n[2] || (n[2] = (t) => f.$emit("update:visible", !1))
|
|
7091
7091
|
}, {
|
|
7092
|
-
body:
|
|
7093
|
-
|
|
7094
|
-
n[3] || (n[3] =
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7092
|
+
body: s(() => [
|
|
7093
|
+
i("div", Da, [
|
|
7094
|
+
n[3] || (n[3] = i("div", { class: "column-title-row" }, [
|
|
7095
|
+
i("div", { class: "column-title column-title-name" }, "名称"),
|
|
7096
|
+
i("div", { class: "column-title column-title-show" }, "显示"),
|
|
7097
|
+
i("div", { class: "column-title column-title-width" }, "冻结列"),
|
|
7098
|
+
i("div", { class: "column-title column-title-width" }, "宽度"),
|
|
7099
|
+
i("div", { class: "column-title column-title-sort" }, "排序")
|
|
7100
7100
|
], -1)),
|
|
7101
|
-
|
|
7101
|
+
i("div", Aa, [
|
|
7102
7102
|
(g(!0), B(W, null, Z(e.value, (t, y) => (g(), B("div", {
|
|
7103
7103
|
key: t.value,
|
|
7104
7104
|
class: ue(["column-item-row", { dragging: $.value === y, "col-hidden": !m.value.includes(t.value) }]),
|
|
@@ -7108,28 +7108,28 @@ const Se = [
|
|
|
7108
7108
|
onDragend: K,
|
|
7109
7109
|
onDrop: (z) => D(y, z)
|
|
7110
7110
|
}, [
|
|
7111
|
-
|
|
7111
|
+
i("div", Ua, [
|
|
7112
7112
|
o(U, {
|
|
7113
7113
|
name: "move",
|
|
7114
7114
|
style: { cursor: "move", color: "#999", "margin-right": "8px" }
|
|
7115
7115
|
}),
|
|
7116
7116
|
T(" " + se(t.label), 1)
|
|
7117
7117
|
]),
|
|
7118
|
-
|
|
7119
|
-
|
|
7118
|
+
i("div", qa, [
|
|
7119
|
+
i("i", {
|
|
7120
7120
|
class: ue(m.value.includes(t.value) ? "ri-eye-line" : "ri-eye-off-line"),
|
|
7121
7121
|
style: de({ color: m.value.includes(t.value) ? "#0052d9" : "#bbb", fontSize: "18px", cursor: "pointer" }),
|
|
7122
7122
|
onClick: (z) => q(t.value)
|
|
7123
7123
|
}, null, 14, Ta)
|
|
7124
7124
|
]),
|
|
7125
|
-
|
|
7125
|
+
i("div", Na, [
|
|
7126
7126
|
o(a, {
|
|
7127
7127
|
modelValue: I.value[t.value],
|
|
7128
7128
|
"onUpdate:modelValue": (z) => I.value[t.value] = z,
|
|
7129
7129
|
size: "small",
|
|
7130
7130
|
style: { width: "120px" }
|
|
7131
7131
|
}, {
|
|
7132
|
-
default:
|
|
7132
|
+
default: s(() => [
|
|
7133
7133
|
o(v, {
|
|
7134
7134
|
value: "none",
|
|
7135
7135
|
label: "不冻结"
|
|
@@ -7146,7 +7146,7 @@ const Se = [
|
|
|
7146
7146
|
_: 1
|
|
7147
7147
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
7148
7148
|
]),
|
|
7149
|
-
|
|
7149
|
+
i("div", Ba, [
|
|
7150
7150
|
o(p, {
|
|
7151
7151
|
modelValue: x.value[t.value],
|
|
7152
7152
|
"onUpdate:modelValue": (z) => x.value[t.value] = z,
|
|
@@ -7158,15 +7158,15 @@ const Se = [
|
|
|
7158
7158
|
style: { width: "100px" }
|
|
7159
7159
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
7160
7160
|
]),
|
|
7161
|
-
|
|
7162
|
-
o(
|
|
7161
|
+
i("div", Pa, [
|
|
7162
|
+
o(b, {
|
|
7163
7163
|
theme: "default",
|
|
7164
7164
|
variant: "text",
|
|
7165
7165
|
size: "small",
|
|
7166
7166
|
onClick: (z) => R(y),
|
|
7167
7167
|
disabled: y === 0
|
|
7168
7168
|
}, {
|
|
7169
|
-
icon:
|
|
7169
|
+
icon: s(() => [
|
|
7170
7170
|
o(U, {
|
|
7171
7171
|
name: "chevron-up",
|
|
7172
7172
|
style: { color: "#f60" }
|
|
@@ -7174,14 +7174,14 @@ const Se = [
|
|
|
7174
7174
|
]),
|
|
7175
7175
|
_: 1
|
|
7176
7176
|
}, 8, ["onClick", "disabled"]),
|
|
7177
|
-
o(
|
|
7177
|
+
o(b, {
|
|
7178
7178
|
theme: "default",
|
|
7179
7179
|
variant: "text",
|
|
7180
7180
|
size: "small",
|
|
7181
7181
|
onClick: (z) => w(y),
|
|
7182
7182
|
disabled: y === e.value.length - 1
|
|
7183
7183
|
}, {
|
|
7184
|
-
icon:
|
|
7184
|
+
icon: s(() => [
|
|
7185
7185
|
o(U, {
|
|
7186
7186
|
name: "chevron-down",
|
|
7187
7187
|
style: { color: "#f60" }
|
|
@@ -7194,21 +7194,21 @@ const Se = [
|
|
|
7194
7194
|
])
|
|
7195
7195
|
])
|
|
7196
7196
|
]),
|
|
7197
|
-
footer:
|
|
7198
|
-
o(
|
|
7197
|
+
footer: s(() => [
|
|
7198
|
+
o(b, {
|
|
7199
7199
|
theme: "default",
|
|
7200
7200
|
onClick: n[0] || (n[0] = (t) => f.$emit("update:visible", !1))
|
|
7201
7201
|
}, {
|
|
7202
|
-
default:
|
|
7202
|
+
default: s(() => [...n[4] || (n[4] = [
|
|
7203
7203
|
T("取消", -1)
|
|
7204
7204
|
])]),
|
|
7205
7205
|
_: 1
|
|
7206
7206
|
}),
|
|
7207
|
-
o(
|
|
7207
|
+
o(b, {
|
|
7208
7208
|
theme: "primary",
|
|
7209
7209
|
onClick: c
|
|
7210
7210
|
}, {
|
|
7211
|
-
default:
|
|
7211
|
+
default: s(() => [...n[5] || (n[5] = [
|
|
7212
7212
|
T("确定", -1)
|
|
7213
7213
|
])]),
|
|
7214
7214
|
_: 1
|
|
@@ -7218,13 +7218,10 @@ const Se = [
|
|
|
7218
7218
|
}, 8, ["visible"]);
|
|
7219
7219
|
};
|
|
7220
7220
|
}
|
|
7221
|
-
}, Ja = /* @__PURE__ */ ae(Ra, [["__scopeId", "data-v-0a02ab86"]]), ja = { class: "cd-filter-bar" }, Ma = {
|
|
7222
|
-
key:
|
|
7223
|
-
class: "plan-radio-group"
|
|
7224
|
-
}, Ia = { class: "filter-toolbar-row" }, Ka = {
|
|
7225
|
-
key: 0,
|
|
7221
|
+
}, Ja = /* @__PURE__ */ ae(Ra, [["__scopeId", "data-v-0a02ab86"]]), ja = { class: "cd-filter-bar" }, Ma = { class: "filter-toolbar-row" }, Ia = {
|
|
7222
|
+
key: 1,
|
|
7226
7223
|
class: "inline-filter-toolbar"
|
|
7227
|
-
},
|
|
7224
|
+
}, Ka = { class: "filter-action-buttons" }, Ha = { style: { "margin-left": "auto", display: "flex", "align-items": "center" } }, La = { class: "save-plan-content" }, Ya = {
|
|
7228
7225
|
__name: "cd-filter-bar",
|
|
7229
7226
|
props: {
|
|
7230
7227
|
fieldOptions: { type: Array, required: !0 },
|
|
@@ -7272,16 +7269,16 @@ const Se = [
|
|
|
7272
7269
|
"smart-colors-change",
|
|
7273
7270
|
"refresh"
|
|
7274
7271
|
],
|
|
7275
|
-
setup(
|
|
7276
|
-
const d =
|
|
7272
|
+
setup(r, { emit: Y }) {
|
|
7273
|
+
const d = r, k = Y, m = _([]), x = () => ({ field: "", operator: "eq", value: "" });
|
|
7277
7274
|
(() => {
|
|
7278
7275
|
var u, A;
|
|
7279
7276
|
if (d.filterCount === 0) {
|
|
7280
7277
|
m.value = [];
|
|
7281
7278
|
return;
|
|
7282
7279
|
}
|
|
7283
|
-
const
|
|
7284
|
-
m.value = Array.from({ length: d.filterCount }, (E, M) =>
|
|
7280
|
+
const C = ((A = (u = d.filterCards) == null ? void 0 : u[0]) == null ? void 0 : A.conditions) || [];
|
|
7281
|
+
m.value = Array.from({ length: d.filterCount }, (E, M) => C[M] ? JSON.parse(JSON.stringify(C[M])) : x());
|
|
7285
7282
|
})();
|
|
7286
7283
|
const e = () => {
|
|
7287
7284
|
if (d.filterCount === 0) {
|
|
@@ -7290,21 +7287,21 @@ const Se = [
|
|
|
7290
7287
|
}
|
|
7291
7288
|
m.value = Array.from({ length: d.filterCount }, () => x());
|
|
7292
7289
|
}, $ = _("保存筛选方案"), j = _(!1), P = _(!1), q = _(d.topOp), R = _(JSON.parse(JSON.stringify(d.filterCards)));
|
|
7293
|
-
G(() => d.topOp, (
|
|
7290
|
+
G(() => d.topOp, (C) => q.value = C), G(() => d.filterCards, (C) => R.value = JSON.parse(JSON.stringify(C)));
|
|
7294
7291
|
const w = _(null), O = _("");
|
|
7295
7292
|
ee(() => d.planFilterOptions && d.planFilterOptions.length > 0 ? d.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]);
|
|
7296
|
-
const N = (
|
|
7297
|
-
const u = d.planFilterOptions.find((A) => A.value ===
|
|
7293
|
+
const N = (C) => {
|
|
7294
|
+
const u = d.planFilterOptions.find((A) => A.value === C);
|
|
7298
7295
|
u && K(u);
|
|
7299
|
-
}, K = (
|
|
7300
|
-
if (!
|
|
7301
|
-
if (w.value =
|
|
7302
|
-
const E =
|
|
7296
|
+
}, K = (C) => {
|
|
7297
|
+
if (!C.precepts || C.precepts.length === 0) return;
|
|
7298
|
+
if (w.value = C, O.value = C.value, R.value = JSON.parse(JSON.stringify(C.precepts)), q.value = C.sqlConnectType, d.filterCount > 0) {
|
|
7299
|
+
const E = C.precepts[0];
|
|
7303
7300
|
E && E.conditions && (m.value = Array.from({ length: d.filterCount }, (M, H) => E.conditions[H] ? JSON.parse(JSON.stringify(E.conditions[H])) : x()));
|
|
7304
7301
|
}
|
|
7305
|
-
const u = v(
|
|
7306
|
-
if (k("confirm", A),
|
|
7307
|
-
const E =
|
|
7302
|
+
const u = v(C.precepts), A = a(u, C.sqlConnectType);
|
|
7303
|
+
if (k("confirm", A), C.columns && C.columns.length > 0) {
|
|
7304
|
+
const E = C.columns.filter((M) => M.show !== !1);
|
|
7308
7305
|
k("column-change", E);
|
|
7309
7306
|
}
|
|
7310
7307
|
}, D = () => {
|
|
@@ -7314,9 +7311,9 @@ const Se = [
|
|
|
7314
7311
|
k("search", { conditions: { and: [] } });
|
|
7315
7312
|
return;
|
|
7316
7313
|
}
|
|
7317
|
-
const
|
|
7314
|
+
const C = v([
|
|
7318
7315
|
{ id: 1, connector: q.value, conditions: m.value }
|
|
7319
|
-
]), u = a(
|
|
7316
|
+
]), u = a(C, "and");
|
|
7320
7317
|
k("search", u);
|
|
7321
7318
|
}, f = () => {
|
|
7322
7319
|
j.value = !0;
|
|
@@ -7324,7 +7321,7 @@ const Se = [
|
|
|
7324
7321
|
k("refresh");
|
|
7325
7322
|
}, U = () => {
|
|
7326
7323
|
j.value = !1;
|
|
7327
|
-
}, v = (
|
|
7324
|
+
}, v = (C) => C.map((u) => {
|
|
7328
7325
|
const A = u.conditions.filter((E) => !(!E.field || E.field.trim() === "" || E.value === null || E.value === void 0 || E.value === "" || Array.isArray(E.value) && E.value.length === 0)).map((E) => {
|
|
7329
7326
|
let M = "";
|
|
7330
7327
|
return E.value !== null && E.value !== void 0 && (Array.isArray(E.value) ? M = E.value.join("/") : M = String(E.value).trim()), {
|
|
@@ -7339,7 +7336,7 @@ const Se = [
|
|
|
7339
7336
|
conditions: A.length > 0 ? A : [{ field: "", operator: "eq", value: "" }]
|
|
7340
7337
|
};
|
|
7341
7338
|
}).filter((u) => u.conditions.length > 0 && u.conditions[0].field !== "");
|
|
7342
|
-
function a(
|
|
7339
|
+
function a(C, u) {
|
|
7343
7340
|
if (u !== "and" && u !== "or")
|
|
7344
7341
|
throw new Error('type参数必须是"and"或"or"');
|
|
7345
7342
|
function A(H) {
|
|
@@ -7356,13 +7353,13 @@ const Se = [
|
|
|
7356
7353
|
}
|
|
7357
7354
|
return {
|
|
7358
7355
|
conditions: {
|
|
7359
|
-
[u]:
|
|
7356
|
+
[u]: C.map(E)
|
|
7360
7357
|
}
|
|
7361
7358
|
};
|
|
7362
7359
|
}
|
|
7363
|
-
const p = (
|
|
7360
|
+
const p = (C) => {
|
|
7364
7361
|
w.value ? ($.value = "更新筛选方案", h.value.name = w.value.content || "") : ($.value = "保存筛选方案", h.value.name = "", w.value = null), z.value = !0;
|
|
7365
|
-
},
|
|
7362
|
+
}, b = () => {
|
|
7366
7363
|
z.value = !1;
|
|
7367
7364
|
}, l = () => {
|
|
7368
7365
|
e(), w.value = null, O.value = "", R.value = [
|
|
@@ -7376,11 +7373,11 @@ const Se = [
|
|
|
7376
7373
|
}
|
|
7377
7374
|
], q.value = "and", k("reset"), c();
|
|
7378
7375
|
}, t = () => {
|
|
7379
|
-
const
|
|
7376
|
+
const C = h.value.name.trim();
|
|
7380
7377
|
if (w.value) {
|
|
7381
7378
|
const u = v(R.value);
|
|
7382
7379
|
k("update-plan", {
|
|
7383
|
-
name:
|
|
7380
|
+
name: C,
|
|
7384
7381
|
precepts: u,
|
|
7385
7382
|
topOp: q.value,
|
|
7386
7383
|
plan: w.value,
|
|
@@ -7390,7 +7387,7 @@ const Se = [
|
|
|
7390
7387
|
} else {
|
|
7391
7388
|
const u = v(R.value);
|
|
7392
7389
|
k("save-plan", {
|
|
7393
|
-
name:
|
|
7390
|
+
name: C,
|
|
7394
7391
|
precepts: u,
|
|
7395
7392
|
topOp: q.value,
|
|
7396
7393
|
plan: w.value,
|
|
@@ -7398,35 +7395,35 @@ const Se = [
|
|
|
7398
7395
|
// 包含当前列配置
|
|
7399
7396
|
});
|
|
7400
7397
|
}
|
|
7401
|
-
|
|
7402
|
-
}, y = (
|
|
7403
|
-
const u = a(
|
|
7398
|
+
b();
|
|
7399
|
+
}, y = (C) => {
|
|
7400
|
+
const u = a(C.filterCards, C.type1);
|
|
7404
7401
|
if (k("confirm", u), d.filterCount > 0) {
|
|
7405
|
-
const A =
|
|
7402
|
+
const A = C.filterCards[0];
|
|
7406
7403
|
A && A.conditions && (m.value = Array.from({ length: d.filterCount }, (E, M) => A.conditions[M] ? JSON.parse(JSON.stringify(A.conditions[M])) : x()));
|
|
7407
7404
|
}
|
|
7408
7405
|
U();
|
|
7409
7406
|
}, z = _(!1), h = _({ name: "" }), L = _(!1), Q = _([]), le = () => {
|
|
7410
7407
|
L.value = !0;
|
|
7411
|
-
}, te = (
|
|
7412
|
-
Q.value =
|
|
7408
|
+
}, te = (C) => {
|
|
7409
|
+
Q.value = C, k("color-filter-change", C);
|
|
7413
7410
|
}, ne = () => {
|
|
7414
7411
|
Q.value = [], k("color-filter-clear");
|
|
7415
7412
|
};
|
|
7416
7413
|
_("");
|
|
7417
|
-
const oe = (
|
|
7418
|
-
k("smart-colors-change",
|
|
7419
|
-
}, V = ee(() => Q.value.filter((
|
|
7414
|
+
const oe = (C) => {
|
|
7415
|
+
k("smart-colors-change", C);
|
|
7416
|
+
}, V = ee(() => Q.value.filter((C) => C.field && C.operator && C.value).length), Ce = ee(() => m.value.some((u) => u.field && u.field.trim() !== "") ? !0 : R.value.some(
|
|
7420
7417
|
(u) => u.conditions.some((A) => A.field && A.field.trim() !== "")
|
|
7421
7418
|
)), ge = ee(() => {
|
|
7422
|
-
const
|
|
7423
|
-
return
|
|
7424
|
-
${
|
|
7419
|
+
const C = Q.value.filter((A) => A.field && A.operator && A.value);
|
|
7420
|
+
return C.length === 0 ? "颜色筛选" : `
|
|
7421
|
+
${C.map((A) => {
|
|
7425
7422
|
const E = d.fieldOptions.find((H) => H.value === A.field);
|
|
7426
7423
|
return `${E ? E.label : A.field} ${he(A.operator)} ${A.value}`;
|
|
7427
7424
|
}).join(`
|
|
7428
7425
|
`)}`;
|
|
7429
|
-
}), he = (
|
|
7426
|
+
}), he = (C) => ({
|
|
7430
7427
|
eq: "等于",
|
|
7431
7428
|
ne: "不等于",
|
|
7432
7429
|
gt: "大于",
|
|
@@ -7435,25 +7432,25 @@ ${b.map((A) => {
|
|
|
7435
7432
|
lte: "小于等于",
|
|
7436
7433
|
contains: "包含",
|
|
7437
7434
|
notContains: "不包含"
|
|
7438
|
-
})[
|
|
7439
|
-
return (
|
|
7435
|
+
})[C] || C;
|
|
7436
|
+
return (C, u) => {
|
|
7440
7437
|
const A = F("t-radio-button"), E = F("t-radio-group"), M = F("t-button"), H = F("t-icon"), _e = F("t-badge"), ce = F("t-tooltip"), ke = F("t-input"), ze = F("t-form-item"), Fe = F("t-form"), Oe = F("t-dialog");
|
|
7441
7438
|
return g(), B("div", ja, [
|
|
7442
|
-
i
|
|
7443
|
-
|
|
7439
|
+
i("div", Ma, [
|
|
7440
|
+
r.planFilterOptions.length > 0 ? (g(), J(E, {
|
|
7444
7441
|
key: 0,
|
|
7445
7442
|
modelValue: O.value,
|
|
7446
7443
|
"onUpdate:modelValue": u[0] || (u[0] = (S) => O.value = S),
|
|
7447
|
-
size:
|
|
7444
|
+
size: r.size,
|
|
7448
7445
|
onChange: N
|
|
7449
7446
|
}, {
|
|
7450
|
-
default:
|
|
7451
|
-
(g(!0), B(W, null, Z(
|
|
7447
|
+
default: s(() => [
|
|
7448
|
+
(g(!0), B(W, null, Z(r.planFilterOptions, (S) => (g(), J(A, {
|
|
7452
7449
|
key: S.value,
|
|
7453
7450
|
value: S.value,
|
|
7454
7451
|
disabled: S.disabled
|
|
7455
7452
|
}, {
|
|
7456
|
-
default:
|
|
7453
|
+
default: s(() => [
|
|
7457
7454
|
T(se(S.content), 1)
|
|
7458
7455
|
]),
|
|
7459
7456
|
_: 2
|
|
@@ -7461,74 +7458,71 @@ ${b.map((A) => {
|
|
|
7461
7458
|
]),
|
|
7462
7459
|
_: 1
|
|
7463
7460
|
}, 8, ["modelValue", "size"])) : X("", !0),
|
|
7464
|
-
we(b.$slots, "plan-row-right", {}, void 0, !0)
|
|
7465
|
-
])) : X("", !0),
|
|
7466
|
-
s("div", Ia, [
|
|
7467
7461
|
o(M, {
|
|
7468
7462
|
theme: "default",
|
|
7469
7463
|
variant: "outline",
|
|
7470
|
-
size:
|
|
7464
|
+
size: r.size,
|
|
7471
7465
|
onClick: u[1] || (u[1] = (S) => P.value = !0),
|
|
7472
7466
|
title: "列配置"
|
|
7473
7467
|
}, {
|
|
7474
|
-
icon:
|
|
7475
|
-
|
|
7468
|
+
icon: s(() => [...u[15] || (u[15] = [
|
|
7469
|
+
i("i", { class: "ri-layout-column-line" }, null, -1)
|
|
7476
7470
|
])]),
|
|
7477
7471
|
_: 1
|
|
7478
7472
|
}, 8, ["size"]),
|
|
7479
|
-
|
|
7473
|
+
r.filterCount > 0 ? (g(), B("div", Ia, [
|
|
7480
7474
|
(g(!0), B(W, null, Z(m.value, (S, ve) => (g(), J(me, {
|
|
7481
7475
|
key: ve,
|
|
7482
|
-
"field-options":
|
|
7483
|
-
size:
|
|
7476
|
+
"field-options": r.fieldOptions,
|
|
7477
|
+
size: r.size,
|
|
7484
7478
|
"filter-condition": m.value[ve],
|
|
7485
|
-
"select-options":
|
|
7479
|
+
"select-options": r.selectOptions,
|
|
7486
7480
|
onSearch: D
|
|
7487
7481
|
}, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
|
|
7488
7482
|
])) : X("", !0),
|
|
7489
|
-
|
|
7490
|
-
|
|
7483
|
+
i("div", Ka, [
|
|
7484
|
+
r.filterCount > 0 ? (g(), J(M, {
|
|
7491
7485
|
key: 0,
|
|
7492
7486
|
theme: "primary",
|
|
7493
|
-
size:
|
|
7487
|
+
size: r.size,
|
|
7494
7488
|
onClick: n,
|
|
7495
7489
|
title: "刷新"
|
|
7496
7490
|
}, {
|
|
7497
|
-
icon:
|
|
7491
|
+
icon: s(() => [
|
|
7498
7492
|
o(H, { name: "refresh" })
|
|
7499
7493
|
]),
|
|
7500
7494
|
_: 1
|
|
7501
7495
|
}, 8, ["size"])) : X("", !0),
|
|
7502
|
-
|
|
7496
|
+
r.filterCount > 0 ? (g(), J(M, {
|
|
7503
7497
|
key: 1,
|
|
7504
7498
|
theme: "primary",
|
|
7505
|
-
size:
|
|
7499
|
+
size: r.size,
|
|
7506
7500
|
onClick: f,
|
|
7507
7501
|
title: "高级筛选"
|
|
7508
7502
|
}, {
|
|
7509
|
-
icon:
|
|
7503
|
+
icon: s(() => [
|
|
7510
7504
|
o(H, { name: "filter" })
|
|
7511
7505
|
]),
|
|
7512
7506
|
_: 1
|
|
7513
7507
|
}, 8, ["size"])) : X("", !0),
|
|
7514
|
-
|
|
7508
|
+
r.filterCount > 0 ? (g(), J(ce, {
|
|
7515
7509
|
key: 2,
|
|
7516
7510
|
content: ge.value,
|
|
7517
7511
|
placement: "top"
|
|
7518
7512
|
}, {
|
|
7519
|
-
default:
|
|
7513
|
+
default: s(() => [
|
|
7520
7514
|
o(_e, {
|
|
7521
7515
|
count: V.value,
|
|
7522
7516
|
"max-count": 99
|
|
7523
7517
|
}, {
|
|
7524
|
-
default:
|
|
7518
|
+
default: s(() => [
|
|
7525
7519
|
o(M, {
|
|
7526
7520
|
theme: "primary",
|
|
7527
|
-
size:
|
|
7521
|
+
size: r.size,
|
|
7528
7522
|
onClick: le
|
|
7529
7523
|
}, {
|
|
7530
|
-
icon:
|
|
7531
|
-
|
|
7524
|
+
icon: s(() => [...u[16] || (u[16] = [
|
|
7525
|
+
i("i", { class: "ri-palette-fill" }, null, -1)
|
|
7532
7526
|
])]),
|
|
7533
7527
|
_: 1
|
|
7534
7528
|
}, 8, ["size"])
|
|
@@ -7538,41 +7532,44 @@ ${b.map((A) => {
|
|
|
7538
7532
|
]),
|
|
7539
7533
|
_: 1
|
|
7540
7534
|
}, 8, ["content"])) : X("", !0),
|
|
7541
|
-
|
|
7535
|
+
r.filterCount > 0 ? (g(), J(ce, {
|
|
7542
7536
|
key: 3,
|
|
7543
7537
|
content: "保存方案",
|
|
7544
7538
|
placement: "top"
|
|
7545
7539
|
}, {
|
|
7546
|
-
default:
|
|
7547
|
-
|
|
7540
|
+
default: s(() => [
|
|
7541
|
+
we(o(M, {
|
|
7548
7542
|
theme: "primary",
|
|
7549
|
-
size:
|
|
7543
|
+
size: r.size,
|
|
7550
7544
|
onClick: p
|
|
7551
7545
|
}, {
|
|
7552
|
-
icon:
|
|
7546
|
+
icon: s(() => [
|
|
7553
7547
|
o(H, { name: "bookmark" })
|
|
7554
7548
|
]),
|
|
7555
7549
|
_: 1
|
|
7556
7550
|
}, 8, ["size"]), [
|
|
7557
|
-
[
|
|
7551
|
+
[$e, Ce.value]
|
|
7558
7552
|
])
|
|
7559
7553
|
]),
|
|
7560
7554
|
_: 1
|
|
7561
7555
|
})) : X("", !0)
|
|
7556
|
+
]),
|
|
7557
|
+
i("div", Ha, [
|
|
7558
|
+
Ve(C.$slots, "plan-row-right", {}, void 0, !0)
|
|
7562
7559
|
])
|
|
7563
7560
|
]),
|
|
7564
7561
|
o(pa, {
|
|
7565
7562
|
visible: j.value,
|
|
7566
7563
|
"onUpdate:visible": u[2] || (u[2] = (S) => j.value = S),
|
|
7567
|
-
"field-options":
|
|
7568
|
-
"select-options":
|
|
7569
|
-
"plan-filter-options":
|
|
7564
|
+
"field-options": r.fieldOptions,
|
|
7565
|
+
"select-options": r.selectOptions,
|
|
7566
|
+
"plan-filter-options": r.planFilterOptions,
|
|
7570
7567
|
"filter-cards": R.value,
|
|
7571
7568
|
"top-op": q.value,
|
|
7572
|
-
size:
|
|
7573
|
-
"person-tabs":
|
|
7574
|
-
"person-organizations":
|
|
7575
|
-
"visible-columns":
|
|
7569
|
+
size: r.size,
|
|
7570
|
+
"person-tabs": r.personTabs,
|
|
7571
|
+
"person-organizations": r.personOrganizations,
|
|
7572
|
+
"visible-columns": r.visibleColumns,
|
|
7576
7573
|
width: "1000",
|
|
7577
7574
|
onConfirm: y,
|
|
7578
7575
|
onReset: l,
|
|
@@ -7589,20 +7586,20 @@ ${b.map((A) => {
|
|
|
7589
7586
|
header: $.value,
|
|
7590
7587
|
visible: z.value,
|
|
7591
7588
|
width: "600px",
|
|
7592
|
-
onClose:
|
|
7589
|
+
onClose: b
|
|
7593
7590
|
}, {
|
|
7594
|
-
body:
|
|
7595
|
-
|
|
7591
|
+
body: s(() => [
|
|
7592
|
+
i("div", La, [
|
|
7596
7593
|
o(Fe, {
|
|
7597
7594
|
data: h.value,
|
|
7598
7595
|
"label-width": "100px"
|
|
7599
7596
|
}, {
|
|
7600
|
-
default:
|
|
7597
|
+
default: s(() => [
|
|
7601
7598
|
o(ze, {
|
|
7602
7599
|
label: "方案名称",
|
|
7603
7600
|
required: ""
|
|
7604
7601
|
}, {
|
|
7605
|
-
default:
|
|
7602
|
+
default: s(() => [
|
|
7606
7603
|
o(ke, {
|
|
7607
7604
|
modelValue: h.value.name,
|
|
7608
7605
|
"onUpdate:modelValue": u[11] || (u[11] = (S) => h.value.name = S),
|
|
@@ -7616,12 +7613,12 @@ ${b.map((A) => {
|
|
|
7616
7613
|
}, 8, ["data"])
|
|
7617
7614
|
])
|
|
7618
7615
|
]),
|
|
7619
|
-
footer:
|
|
7616
|
+
footer: s(() => [
|
|
7620
7617
|
o(M, {
|
|
7621
7618
|
theme: "default",
|
|
7622
|
-
onClick:
|
|
7619
|
+
onClick: b
|
|
7623
7620
|
}, {
|
|
7624
|
-
default:
|
|
7621
|
+
default: s(() => [...u[17] || (u[17] = [
|
|
7625
7622
|
T("取消", -1)
|
|
7626
7623
|
])]),
|
|
7627
7624
|
_: 1
|
|
@@ -7630,7 +7627,7 @@ ${b.map((A) => {
|
|
|
7630
7627
|
theme: "primary",
|
|
7631
7628
|
onClick: t
|
|
7632
7629
|
}, {
|
|
7633
|
-
default:
|
|
7630
|
+
default: s(() => [...u[18] || (u[18] = [
|
|
7634
7631
|
T("确定", -1)
|
|
7635
7632
|
])]),
|
|
7636
7633
|
_: 1
|
|
@@ -7641,15 +7638,15 @@ ${b.map((A) => {
|
|
|
7641
7638
|
o(Ja, {
|
|
7642
7639
|
visible: P.value,
|
|
7643
7640
|
"onUpdate:visible": u[12] || (u[12] = (S) => P.value = S),
|
|
7644
|
-
"field-options":
|
|
7645
|
-
"visible-columns":
|
|
7641
|
+
"field-options": r.fieldOptions,
|
|
7642
|
+
"visible-columns": r.visibleColumns,
|
|
7646
7643
|
onColumnChange: u[13] || (u[13] = (S) => k("column-change", S))
|
|
7647
7644
|
}, null, 8, ["visible", "field-options", "visible-columns"]),
|
|
7648
7645
|
o(be, {
|
|
7649
7646
|
visible: L.value,
|
|
7650
7647
|
"onUpdate:visible": u[14] || (u[14] = (S) => L.value = S),
|
|
7651
|
-
"field-options":
|
|
7652
|
-
size:
|
|
7648
|
+
"field-options": r.fieldOptions,
|
|
7649
|
+
size: r.size,
|
|
7653
7650
|
"initial-rules": Q.value,
|
|
7654
7651
|
onConfirm: te,
|
|
7655
7652
|
onClear: ne,
|
|
@@ -7658,8 +7655,8 @@ ${b.map((A) => {
|
|
|
7658
7655
|
]);
|
|
7659
7656
|
};
|
|
7660
7657
|
}
|
|
7661
|
-
}, Ga = /* @__PURE__ */ ae(Ya, [["__scopeId", "data-v-
|
|
7662
|
-
|
|
7658
|
+
}, Ga = /* @__PURE__ */ ae(Ya, [["__scopeId", "data-v-69d78592"]]), Xa = (r) => {
|
|
7659
|
+
r.component("FilterDialog", pe), r.component("FilterComponent", pe), r.component("CdFilterBar", Ga), r.component("ColorFilterDialog", be);
|
|
7663
7660
|
};
|
|
7664
7661
|
export {
|
|
7665
7662
|
Ga as CdFilterBar,
|