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 = e, l = n, { setSelectedDataList: i, getData: r, abortController: c, selectedDataList: d, clearSelectedData: h, deleteSelectList: u, onSelectedData: m, hyOrgTreeRef: _ } = NX({ emit: l });
23640
- return Ne(() => {
23641
- i(o.initSelectedDataList);
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: i,
23646
- clearSelectedData: h,
23647
- getData: r
23648
- }), (b, w) => {
23649
- const x = B("el-button"), $ = B("svg-icon"), C = pt("loading");
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(x, {
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(h)
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(d).length !== 0]
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(d).length), 1),
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(r),
23693
- "default-checked-list": s(d),
23694
- onOnSelectedData: s(m)
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(d).length === 0]
23706
+ [he, s(c).length === 0]
23709
23707
  ]),
23710
- (f(!0), y(me, null, ve(s(d), (A, S) => (f(), y("li", {
23711
- key: `${A.id}_selectedDataList`,
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(A.companyName || A.groupName || A.orgName), 1),
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: (I) => s(u)(S)
23722
+ onClick: (S) => s(h)(A)
23725
23723
  }, null, 8, ["tips", "onClick"])
23726
23724
  ])
23727
23725
  ]))), 128))
23728
23726
  ])
23729
23727
  ], 8, MX)), [
23730
- [C, !1]
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 Ne(() => {
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 = [...A];
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 = e, l = n, { setSelectedDataList: i, getData: r, setCheckAll: c, checkAll: d, selectedDataList: h, loading: u, filterValue: m, deviceList: _, deviceClick: b, judgeSelectedFn: w, deleteSelectList: x } = WK({ emit: l });
24492
- return Ne(() => {
24493
- i(o.initSelectedDataList), r();
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: i,
24496
- getData: r
24497
- }), ($, C) => {
24498
- const A = B("svg-icon"), S = B("el-button"), I = B("el-input"), R = pt("loading");
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: C[0] || (C[0] = //@ts-ignore
24505
- (...P) => s(c) && s(c)(...P))
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(d)
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(h).length), 1),
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(I, {
24530
- modelValue: s(m),
24531
- "onUpdate:modelValue": C[1] || (C[1] = (P) => Ce(m) ? m.value = P : null),
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: C[2] || (C[2] = (P) => s(r)()),
24535
- onKeyup: C[3] || (C[3] = mn((P) => s(r)(), ["enter"]))
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(S, {
24535
+ g(A, {
24540
24536
  class: "!m-0 h-[28px] w-[36px] !p-[6px_0px]",
24541
- onClick: s(r)
24537
+ onClick: s(i)
24542
24538
  }, {
24543
24539
  default: O(() => [
24544
- g(A, {
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(_), (P) => (f(), y("div", {
24559
- key: P.id,
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: (v) => s(b)(P)
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(w)(P), "el-checkbox__input"])
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(P.railName), 1),
24573
- ie(a("span", { class: "flex-shrink-0 ml-1 text-hy-text-main" }, " (" + p(P.deviceList.length) + ") ", 513), [
24574
- [he, P.deviceList.length]
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(A, {
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(h).length === 0]
24587
+ [he, s(d).length === 0]
24592
24588
  ]),
24593
- (f(!0), y(me, null, ve(s(h), (P, v) => (f(), y("li", {
24594
- key: `${P.id}_selectedDataList`,
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(P.railName), 1),
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: (k) => s(x)(v)
24603
+ onClick: (v) => s(w)(P)
24608
24604
  }, null, 8, ["tips", "onClick"])
24609
24605
  ])
24610
24606
  ]))), 128))
24611
24607
  ])
24612
24608
  ], 8, JK)), [
24613
- [R, s(u)]
24609
+ [I, s(h)]
24614
24610
  ])
24615
24611
  ]);
24616
24612
  };