command-center-v3-common 0.0.124 → 0.0.125
Sign up to get free protection for your applications and to get access to all the features.
@@ -23605,7 +23605,7 @@ function NX({ emit: e }) {
|
|
23605
23605
|
n.value.splice(_, 1), i.value.setSelectedList(n.value);
|
23606
23606
|
}
|
23607
23607
|
function d(_ = []) {
|
23608
|
-
n.value = [..._];
|
23608
|
+
n.value = [..._], i.value.setSelectedList(n.value);
|
23609
23609
|
}
|
23610
23610
|
function h(_) {
|
23611
23611
|
t.value = typeof _ == "boolean" ? _ : !t.value, e("on-selectedDataList", n.value);
|
@@ -23636,17 +23636,15 @@ const EX = { class: "flex flex-col w-full h-full" }, AX = { class: "flex justify
|
|
23636
23636
|
},
|
23637
23637
|
emits: ["on-selected-data-list"],
|
23638
23638
|
setup(e, { expose: t, emit: n }) {
|
23639
|
-
const o =
|
23640
|
-
return
|
23641
|
-
|
23642
|
-
}), Zt(() => {
|
23643
|
-
c.value && c.value.abort();
|
23639
|
+
const o = n, { setSelectedDataList: l, getData: i, abortController: r, selectedDataList: c, clearSelectedData: d, deleteSelectList: h, onSelectedData: u, hyOrgTreeRef: m } = NX({ emit: o });
|
23640
|
+
return Zt(() => {
|
23641
|
+
r.value && r.value.abort();
|
23644
23642
|
}), t({
|
23645
|
-
setSelectedDataList:
|
23646
|
-
clearSelectedData:
|
23647
|
-
getData:
|
23648
|
-
}), (
|
23649
|
-
const
|
23643
|
+
setSelectedDataList: l,
|
23644
|
+
clearSelectedData: d,
|
23645
|
+
getData: i
|
23646
|
+
}), (_, b) => {
|
23647
|
+
const w = B("el-button"), x = B("svg-icon"), $ = pt("loading");
|
23650
23648
|
return f(), y("div", EX, [
|
23651
23649
|
a("div", AX, [
|
23652
23650
|
a("div", IX, [
|
@@ -23654,23 +23652,23 @@ const EX = { class: "flex flex-col w-full h-full" }, AX = { class: "flex justify
|
|
23654
23652
|
a("span", LX, p(s(T)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")), 1)
|
23655
23653
|
]),
|
23656
23654
|
a("div", OX, [
|
23657
|
-
ie(g(
|
23655
|
+
ie(g(w, {
|
23658
23656
|
type: "danger",
|
23659
23657
|
size: "small",
|
23660
23658
|
class: "button_delete mr-1 !p-[4px_14px]",
|
23661
|
-
onClick: s(
|
23659
|
+
onClick: s(d)
|
23662
23660
|
}, {
|
23663
23661
|
default: O(() => [
|
23664
23662
|
a("span", FX, p(s(T)("clear")), 1)
|
23665
23663
|
]),
|
23666
23664
|
_: 1
|
23667
23665
|
}, 8, ["onClick"]), [
|
23668
|
-
[he, s(
|
23666
|
+
[he, s(c).length !== 0]
|
23669
23667
|
]),
|
23670
23668
|
a("div", RX, [
|
23671
23669
|
a("span", null, [
|
23672
23670
|
J(p(s(T)("selected")) + " ", 1),
|
23673
|
-
a("span", PX, p(s(
|
23671
|
+
a("span", PX, p(s(c).length), 1),
|
23674
23672
|
J(" " + p(s(T)("individual-0")), 1)
|
23675
23673
|
])
|
23676
23674
|
])
|
@@ -23686,32 +23684,32 @@ const EX = { class: "flex flex-col w-full h-full" }, AX = { class: "flex justify
|
|
23686
23684
|
a("div", VX, [
|
23687
23685
|
g(DX, {
|
23688
23686
|
ref_key: "hyOrgTreeRef",
|
23689
|
-
ref:
|
23687
|
+
ref: m,
|
23690
23688
|
"show-checkbox": !0,
|
23691
23689
|
"parent-checkbox": !1,
|
23692
|
-
"get-data": s(
|
23693
|
-
"default-checked-list": s(
|
23694
|
-
onOnSelectedData: s(
|
23690
|
+
"get-data": s(i),
|
23691
|
+
"default-checked-list": s(c),
|
23692
|
+
onOnSelectedData: s(u)
|
23695
23693
|
}, null, 8, ["get-data", "default-checked-list", "onOnSelectedData"])
|
23696
23694
|
])
|
23697
23695
|
]),
|
23698
23696
|
a("ul", UX, [
|
23699
23697
|
ie(a("li", jX, [
|
23700
23698
|
a("div", HX, [
|
23701
|
-
g(
|
23699
|
+
g(x, {
|
23702
23700
|
name: "base-no-data",
|
23703
23701
|
"class-name": "svgBox !w-[50px] !h-[50px]"
|
23704
23702
|
}),
|
23705
23703
|
a("div", WX, p(s(T)("youHaveNotSelectedADepartmentYet")), 1)
|
23706
23704
|
])
|
23707
23705
|
], 512), [
|
23708
|
-
[he, s(
|
23706
|
+
[he, s(c).length === 0]
|
23709
23707
|
]),
|
23710
|
-
(f(!0), y(me, null, ve(s(
|
23711
|
-
key: `${
|
23708
|
+
(f(!0), y(me, null, ve(s(c), (C, A) => (f(), y("li", {
|
23709
|
+
key: `${C.id}_selectedDataList`,
|
23712
23710
|
class: "w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border clickBox border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"
|
23713
23711
|
}, [
|
23714
|
-
a("div", zX, p(
|
23712
|
+
a("div", zX, p(C.companyName || C.groupName || C.orgName), 1),
|
23715
23713
|
a("div", YX, [
|
23716
23714
|
g(ut, {
|
23717
23715
|
margin: "4px",
|
@@ -23721,13 +23719,13 @@ const EX = { class: "flex flex-col w-full h-full" }, AX = { class: "flex justify
|
|
23721
23719
|
"class-name": "text-hy-danger",
|
23722
23720
|
name: "base-delete",
|
23723
23721
|
tips: s(T)("delete"),
|
23724
|
-
onClick: (
|
23722
|
+
onClick: (S) => s(h)(A)
|
23725
23723
|
}, null, 8, ["tips", "onClick"])
|
23726
23724
|
])
|
23727
23725
|
]))), 128))
|
23728
23726
|
])
|
23729
23727
|
], 8, MX)), [
|
23730
|
-
[
|
23728
|
+
[$, !1]
|
23731
23729
|
])
|
23732
23730
|
]);
|
23733
23731
|
};
|
@@ -24175,7 +24173,7 @@ function CK({ emit: e }) {
|
|
24175
24173
|
h([]), c.value.setSelectedList(n.value), e("on-selected-data-list", n.value);
|
24176
24174
|
}
|
24177
24175
|
function h($ = []) {
|
24178
|
-
n.value = [...$];
|
24176
|
+
n.value = [...$], c.value.setSelectedList(n.value);
|
24179
24177
|
}
|
24180
24178
|
function u($) {
|
24181
24179
|
if (!$.disabled) {
|
@@ -24302,9 +24300,7 @@ const $K = { class: "flex flex-col w-full h-full" }, SK = { class: "flex justify
|
|
24302
24300
|
emits: ["on-selected-data-list"],
|
24303
24301
|
setup(e, { expose: t, emit: n }) {
|
24304
24302
|
const o = e, l = n, { setSelectedDataList: i, getData: r, abortController: c, selectedDataList: d, clearSelectedData: h, deviceClick: u, checkDeviceTypeFn: m, onSelectedData: _, hyDeviceTreeRef: b } = CK({ emit: l });
|
24305
|
-
return
|
24306
|
-
i(o.initSelectedDataList), r();
|
24307
|
-
}), Zt(() => {
|
24303
|
+
return Zt(() => {
|
24308
24304
|
c.value && c.value.abort();
|
24309
24305
|
}), t({
|
24310
24306
|
setSelectedDataList: i,
|
@@ -24425,7 +24421,7 @@ function WK({ emit: e }) {
|
|
24425
24421
|
}));
|
24426
24422
|
}
|
24427
24423
|
function u(A = []) {
|
24428
|
-
r.value =
|
24424
|
+
r.value = i.value.filter((S) => A.some((I) => I.id === S.id)), e("on-selected-data-list", r.value);
|
24429
24425
|
}
|
24430
24426
|
function m() {
|
24431
24427
|
return [...r.value];
|
@@ -24488,32 +24484,32 @@ const zK = { class: "flex flex-col w-full h-full" }, YK = { class: "flex justify
|
|
24488
24484
|
},
|
24489
24485
|
emits: ["on-selected-data-list"],
|
24490
24486
|
setup(e, { expose: t, emit: n }) {
|
24491
|
-
const o =
|
24492
|
-
return Ne(() => {
|
24493
|
-
i(
|
24487
|
+
const o = n, { setSelectedDataList: l, getData: i, setCheckAll: r, checkAll: c, selectedDataList: d, loading: h, filterValue: u, deviceList: m, deviceClick: _, judgeSelectedFn: b, deleteSelectList: w } = WK({ emit: o });
|
24488
|
+
return Ne(async () => {
|
24489
|
+
await i();
|
24494
24490
|
}), t({
|
24495
|
-
setSelectedDataList:
|
24496
|
-
getData:
|
24497
|
-
}), (
|
24498
|
-
const
|
24491
|
+
setSelectedDataList: l,
|
24492
|
+
getData: i
|
24493
|
+
}), (x, $) => {
|
24494
|
+
const C = B("svg-icon"), A = B("el-button"), S = B("el-input"), I = pt("loading");
|
24499
24495
|
return f(), y("div", zK, [
|
24500
24496
|
a("div", YK, [
|
24501
24497
|
a("span", null, p(s(T)("electronicFence")), 1),
|
24502
24498
|
a("div", {
|
24503
24499
|
class: "flex items-center clickBox",
|
24504
|
-
onClick:
|
24505
|
-
(...
|
24500
|
+
onClick: $[0] || ($[0] = //@ts-ignore
|
24501
|
+
(...R) => s(r) && s(r)(...R))
|
24506
24502
|
}, [
|
24507
24503
|
a("div", GK, [
|
24508
24504
|
a("span", {
|
24509
24505
|
class: re([{
|
24510
|
-
"is-checked": s(
|
24506
|
+
"is-checked": s(c)
|
24511
24507
|
}, "el-checkbox__input"])
|
24512
24508
|
}, XK, 2)
|
24513
24509
|
]),
|
24514
24510
|
a("span", null, [
|
24515
24511
|
J(p(s(T)("selected")) + " ", 1),
|
24516
|
-
a("span", KK, p(s(
|
24512
|
+
a("span", KK, p(s(d).length), 1),
|
24517
24513
|
J(" " + p(s(T)("individual-0")), 1)
|
24518
24514
|
])
|
24519
24515
|
])
|
@@ -24526,22 +24522,22 @@ const zK = { class: "flex flex-col w-full h-full" }, YK = { class: "flex justify
|
|
24526
24522
|
}, [
|
24527
24523
|
a("div", ZK, [
|
24528
24524
|
a("div", QK, [
|
24529
|
-
g(
|
24530
|
-
modelValue: s(
|
24531
|
-
"onUpdate:modelValue":
|
24525
|
+
g(S, {
|
24526
|
+
modelValue: s(u),
|
24527
|
+
"onUpdate:modelValue": $[1] || ($[1] = (R) => Ce(u) ? u.value = R : null),
|
24532
24528
|
placeholder: s(T)("filterByElectronicFenceName"),
|
24533
24529
|
class: "table-search-main w-[254px] text-[12px]",
|
24534
|
-
onClear:
|
24535
|
-
onKeyup:
|
24530
|
+
onClear: $[2] || ($[2] = (R) => s(i)()),
|
24531
|
+
onKeyup: $[3] || ($[3] = mn((R) => s(i)(), ["enter"]))
|
24536
24532
|
}, {
|
24537
24533
|
append: O(() => [
|
24538
24534
|
a("div", eJ, [
|
24539
|
-
g(
|
24535
|
+
g(A, {
|
24540
24536
|
class: "!m-0 h-[28px] w-[36px] !p-[6px_0px]",
|
24541
|
-
onClick: s(
|
24537
|
+
onClick: s(i)
|
24542
24538
|
}, {
|
24543
24539
|
default: O(() => [
|
24544
|
-
g(
|
24540
|
+
g(C, {
|
24545
24541
|
name: "sys-button-search",
|
24546
24542
|
width: "14",
|
24547
24543
|
height: "14"
|
@@ -24555,23 +24551,23 @@ const zK = { class: "flex flex-col w-full h-full" }, YK = { class: "flex justify
|
|
24555
24551
|
}, 8, ["modelValue", "placeholder"])
|
24556
24552
|
]),
|
24557
24553
|
a("div", tJ, [
|
24558
|
-
(f(!0), y(me, null, ve(s(
|
24559
|
-
key:
|
24554
|
+
(f(!0), y(me, null, ve(s(m), (R) => (f(), y("div", {
|
24555
|
+
key: R.id,
|
24560
24556
|
class: "hover:shadow-[0_0_10px_0_inset] bg-hy-dialog-bg-2 hover:shadow-hy-border-1 hover:border-hy-border-1 border-hy-dialog-bg-2 flex-grow flex h-[32px] items-center border rounded my-2 box-border px-2 cursor-pointer",
|
24561
|
-
onClick: (
|
24557
|
+
onClick: (P) => s(_)(R)
|
24562
24558
|
}, [
|
24563
24559
|
a("div", sJ, [
|
24564
24560
|
a("div", oJ, [
|
24565
24561
|
a("span", {
|
24566
|
-
class: re([s(
|
24562
|
+
class: re([s(b)(R), "el-checkbox__input"])
|
24567
24563
|
}, lJ, 2)
|
24568
24564
|
])
|
24569
24565
|
]),
|
24570
24566
|
a("div", iJ, [
|
24571
24567
|
a("div", rJ, [
|
24572
|
-
a("span", cJ, p(
|
24573
|
-
ie(a("span", { class: "flex-shrink-0 ml-1 text-hy-text-main" }, " (" + p(
|
24574
|
-
[he,
|
24568
|
+
a("span", cJ, p(R.railName), 1),
|
24569
|
+
ie(a("span", { class: "flex-shrink-0 ml-1 text-hy-text-main" }, " (" + p(R.deviceList.length) + ") ", 513), [
|
24570
|
+
[he, R.deviceList.length]
|
24575
24571
|
])
|
24576
24572
|
])
|
24577
24573
|
])
|
@@ -24581,20 +24577,20 @@ const zK = { class: "flex flex-col w-full h-full" }, YK = { class: "flex justify
|
|
24581
24577
|
a("ul", dJ, [
|
24582
24578
|
ie(a("li", uJ, [
|
24583
24579
|
a("div", pJ, [
|
24584
|
-
g(
|
24580
|
+
g(C, {
|
24585
24581
|
name: "base-no-data",
|
24586
24582
|
"class-name": "svgBox !w-[50px] !h-[50px]"
|
24587
24583
|
}),
|
24588
24584
|
a("div", hJ, p(s(T)("youHavenTSelectedAFenceYet")), 1)
|
24589
24585
|
])
|
24590
24586
|
], 512), [
|
24591
|
-
[he, s(
|
24587
|
+
[he, s(d).length === 0]
|
24592
24588
|
]),
|
24593
|
-
(f(!0), y(me, null, ve(s(
|
24594
|
-
key: `${
|
24589
|
+
(f(!0), y(me, null, ve(s(d), (R, P) => (f(), y("li", {
|
24590
|
+
key: `${R.id}_selectedDataList`,
|
24595
24591
|
class: "w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"
|
24596
24592
|
}, [
|
24597
|
-
a("div", fJ, p(
|
24593
|
+
a("div", fJ, p(R.railName), 1),
|
24598
24594
|
a("div", mJ, [
|
24599
24595
|
g(ut, {
|
24600
24596
|
margin: "4px",
|
@@ -24604,13 +24600,13 @@ const zK = { class: "flex flex-col w-full h-full" }, YK = { class: "flex justify
|
|
24604
24600
|
"class-name": "text-hy-danger",
|
24605
24601
|
name: "base-delete",
|
24606
24602
|
tips: s(T)("delete"),
|
24607
|
-
onClick: (
|
24603
|
+
onClick: (v) => s(w)(P)
|
24608
24604
|
}, null, 8, ["tips", "onClick"])
|
24609
24605
|
])
|
24610
24606
|
]))), 128))
|
24611
24607
|
])
|
24612
24608
|
], 8, JK)), [
|
24613
|
-
[
|
24609
|
+
[I, s(h)]
|
24614
24610
|
])
|
24615
24611
|
]);
|
24616
24612
|
};
|