anytrek-front-public-component 1.4.29 → 1.4.30
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/anytrek-front-public-component.mjs +271 -271
- package/anytrek-front-public-component.umd.js +6 -6
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -10371,8 +10371,8 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10371
10371
|
e.automaticDropdown && !D.value && (D.value = !0, l.menuVisibleOnFocus = !0);
|
|
10372
10372
|
},
|
|
10373
10373
|
beforeBlur(K) {
|
|
10374
|
-
var
|
|
10375
|
-
return ((
|
|
10374
|
+
var we, nt;
|
|
10375
|
+
return ((we = u.value) == null ? void 0 : we.isFocusInsideContent(K)) || ((nt = v.value) == null ? void 0 : nt.isFocusInsideContent(K));
|
|
10376
10376
|
},
|
|
10377
10377
|
afterBlur() {
|
|
10378
10378
|
D.value = !1, l.menuVisibleOnFocus = !1;
|
|
@@ -10380,18 +10380,18 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10380
10380
|
}), D = A(!1), z = A(), { form: V, formItem: G } = zo(), { inputId: $ } = qr(e, {
|
|
10381
10381
|
formItemContext: G
|
|
10382
10382
|
}), { valueOnClear: te, isEmptyValue: R } = E8(e), U = P(() => e.disabled || (V == null ? void 0 : V.disabled)), N = P(() => Zn(e.modelValue) ? e.modelValue.length > 0 : !R(e.modelValue)), H = P(() => e.clearable && !U.value && l.inputHovering && N.value), Y = P(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), ce = P(() => o.is("reverse", Y.value && D.value)), ae = P(() => (G == null ? void 0 : G.validateState) || ""), he = P(() => em[ae.value]), Se = P(() => e.remote ? 300 : 0), _e = P(() => e.loading ? e.loadingText || n("el.select.loading") : e.remote && !l.inputValue && l.options.size === 0 ? !1 : e.filterable && l.inputValue && l.options.size > 0 && Ae.value === 0 ? e.noMatchText || n("el.select.noMatch") : l.options.size === 0 ? e.noDataText || n("el.select.noData") : null), Ae = P(() => Ue.value.filter((K) => K.visible).length), Ue = P(() => {
|
|
10383
|
-
const K = Array.from(l.options.values()),
|
|
10383
|
+
const K = Array.from(l.options.values()), we = [];
|
|
10384
10384
|
return l.optionValues.forEach((nt) => {
|
|
10385
10385
|
const pt = K.findIndex((Tn) => Tn.value === nt);
|
|
10386
|
-
pt > -1 &&
|
|
10387
|
-
}),
|
|
10386
|
+
pt > -1 && we.push(K[pt]);
|
|
10387
|
+
}), we.length >= K.length ? we : K;
|
|
10388
10388
|
}), De = P(() => Array.from(l.cachedOptions.values())), We = P(() => {
|
|
10389
|
-
const K = Ue.value.filter((
|
|
10389
|
+
const K = Ue.value.filter((we) => !we.created).some((we) => we.currentLabel === l.inputValue);
|
|
10390
10390
|
return e.filterable && e.allowCreate && l.inputValue !== "" && !K;
|
|
10391
10391
|
}), Ve = () => {
|
|
10392
10392
|
e.filterable && $t(e.filterMethod) || e.filterable && e.remote && $t(e.remoteMethod) || Ue.value.forEach((K) => {
|
|
10393
|
-
var
|
|
10394
|
-
(
|
|
10393
|
+
var we;
|
|
10394
|
+
(we = K.updateOption) == null || we.call(K, l.inputValue);
|
|
10395
10395
|
});
|
|
10396
10396
|
}, Q = Za(), q = P(() => ["small"].includes(Q.value) ? "small" : "default"), me = P({
|
|
10397
10397
|
get() {
|
|
@@ -10407,11 +10407,11 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10407
10407
|
return e.filterable || fo(K) ? !l.inputValue : !0;
|
|
10408
10408
|
}), Ee = P(() => {
|
|
10409
10409
|
var K;
|
|
10410
|
-
const
|
|
10411
|
-
return e.multiple || !N.value ?
|
|
10410
|
+
const we = (K = e.placeholder) != null ? K : n("el.select.placeholder");
|
|
10411
|
+
return e.multiple || !N.value ? we : l.selectedLabel;
|
|
10412
10412
|
}), ze = P(() => $s ? null : "mouseenter");
|
|
10413
|
-
pe(() => e.modelValue, (K,
|
|
10414
|
-
e.multiple && e.filterable && !e.reserveKeyword && (l.inputValue = "", He("")), Bt(), !Tl(K,
|
|
10413
|
+
pe(() => e.modelValue, (K, we) => {
|
|
10414
|
+
e.multiple && e.filterable && !e.reserveKeyword && (l.inputValue = "", He("")), Bt(), !Tl(K, we) && e.validateEvent && (G == null || G.validate("change").catch((nt) => Wt(nt)));
|
|
10415
10415
|
}, {
|
|
10416
10416
|
flush: "post",
|
|
10417
10417
|
deep: !0
|
|
@@ -10421,13 +10421,13 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10421
10421
|
var K;
|
|
10422
10422
|
if (!Rt)
|
|
10423
10423
|
return;
|
|
10424
|
-
const
|
|
10425
|
-
(!e.filterable && !e.defaultFirstOption && !fo(e.modelValue) || !Array.from(
|
|
10424
|
+
const we = ((K = s.value) == null ? void 0 : K.querySelectorAll("input")) || [];
|
|
10425
|
+
(!e.filterable && !e.defaultFirstOption && !fo(e.modelValue) || !Array.from(we).includes(document.activeElement)) && Bt(), e.defaultFirstOption && (e.filterable || e.remote) && Ae.value && St();
|
|
10426
10426
|
}, {
|
|
10427
10427
|
flush: "post"
|
|
10428
10428
|
}), pe(() => l.hoveringIndex, (K) => {
|
|
10429
|
-
jt(K) && K > -1 ? z.value = Ue.value[K] || {} : z.value = {}, Ue.value.forEach((
|
|
10430
|
-
|
|
10429
|
+
jt(K) && K > -1 ? z.value = Ue.value[K] || {} : z.value = {}, Ue.value.forEach((we) => {
|
|
10430
|
+
we.hover = z.value === we;
|
|
10431
10431
|
});
|
|
10432
10432
|
}), Kc(() => {
|
|
10433
10433
|
l.isBeforeHide || Ve();
|
|
@@ -10435,27 +10435,27 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10435
10435
|
const He = (K) => {
|
|
10436
10436
|
l.previousQuery === K || w.value || (l.previousQuery = K, e.filterable && $t(e.filterMethod) ? e.filterMethod(K) : e.filterable && e.remote && $t(e.remoteMethod) && e.remoteMethod(K), e.defaultFirstOption && (e.filterable || e.remote) && Ae.value ? it(St) : it(B));
|
|
10437
10437
|
}, St = () => {
|
|
10438
|
-
const K = Ue.value.filter((pt) => pt.visible && !pt.disabled && !pt.states.groupDisabled),
|
|
10439
|
-
l.hoveringIndex = At(Ue.value,
|
|
10438
|
+
const K = Ue.value.filter((pt) => pt.visible && !pt.disabled && !pt.states.groupDisabled), we = K.find((pt) => pt.created), nt = K[0];
|
|
10439
|
+
l.hoveringIndex = At(Ue.value, we || nt);
|
|
10440
10440
|
}, Bt = () => {
|
|
10441
10441
|
if (e.multiple)
|
|
10442
10442
|
l.selectedLabel = "";
|
|
10443
10443
|
else {
|
|
10444
|
-
const
|
|
10444
|
+
const we = Zn(e.modelValue) ? e.modelValue[0] : e.modelValue, nt = _(we);
|
|
10445
10445
|
l.selectedLabel = nt.currentLabel, l.selected = [nt];
|
|
10446
10446
|
return;
|
|
10447
10447
|
}
|
|
10448
10448
|
const K = [];
|
|
10449
|
-
fo(e.modelValue) || ka(e.modelValue).forEach((
|
|
10450
|
-
K.push(_(
|
|
10449
|
+
fo(e.modelValue) || ka(e.modelValue).forEach((we) => {
|
|
10450
|
+
K.push(_(we));
|
|
10451
10451
|
}), l.selected = K;
|
|
10452
10452
|
}, _ = (K) => {
|
|
10453
|
-
let
|
|
10453
|
+
let we;
|
|
10454
10454
|
const nt = Is(K).toLowerCase() === "object", pt = Is(K).toLowerCase() === "null", Tn = Is(K).toLowerCase() === "undefined";
|
|
10455
10455
|
for (let ua = l.cachedOptions.size - 1; ua >= 0; ua--) {
|
|
10456
10456
|
const yn = De.value[ua];
|
|
10457
10457
|
if (nt ? Wa(yn.value, e.valueKey) === Wa(K, e.valueKey) : yn.value === K) {
|
|
10458
|
-
|
|
10458
|
+
we = {
|
|
10459
10459
|
value: K,
|
|
10460
10460
|
currentLabel: yn.currentLabel,
|
|
10461
10461
|
get isDisabled() {
|
|
@@ -10465,15 +10465,15 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10465
10465
|
break;
|
|
10466
10466
|
}
|
|
10467
10467
|
}
|
|
10468
|
-
if (
|
|
10469
|
-
return
|
|
10468
|
+
if (we)
|
|
10469
|
+
return we;
|
|
10470
10470
|
const Ft = nt ? K.label : !pt && !Tn ? K : "";
|
|
10471
10471
|
return {
|
|
10472
10472
|
value: K,
|
|
10473
10473
|
currentLabel: Ft
|
|
10474
10474
|
};
|
|
10475
10475
|
}, B = () => {
|
|
10476
|
-
l.hoveringIndex = Ue.value.findIndex((K) => l.selected.some((
|
|
10476
|
+
l.hoveringIndex = Ue.value.findIndex((K) => l.selected.some((we) => Xe(we) === Xe(K)));
|
|
10477
10477
|
}, ge = () => {
|
|
10478
10478
|
l.selectionWidth = i.value.getBoundingClientRect().width;
|
|
10479
10479
|
}, Ge = () => {
|
|
@@ -10481,11 +10481,11 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10481
10481
|
}, ut = () => {
|
|
10482
10482
|
l.collapseItemWidth = b.value.getBoundingClientRect().width;
|
|
10483
10483
|
}, be = () => {
|
|
10484
|
-
var K,
|
|
10485
|
-
(
|
|
10484
|
+
var K, we;
|
|
10485
|
+
(we = (K = u.value) == null ? void 0 : K.updatePopper) == null || we.call(K);
|
|
10486
10486
|
}, Ze = () => {
|
|
10487
|
-
var K,
|
|
10488
|
-
(
|
|
10487
|
+
var K, we;
|
|
10488
|
+
(we = (K = v.value) == null ? void 0 : K.updatePopper) == null || we.call(K);
|
|
10489
10489
|
}, ie = () => {
|
|
10490
10490
|
l.inputValue.length > 0 && !D.value && (D.value = !0), He(l.inputValue);
|
|
10491
10491
|
}, Ce = (K) => {
|
|
@@ -10497,46 +10497,46 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10497
10497
|
ie();
|
|
10498
10498
|
}, Se.value), Ct = (K) => {
|
|
10499
10499
|
Tl(e.modelValue, K) || t(Vr, K);
|
|
10500
|
-
}, Ie = (K) => e4(K, (
|
|
10500
|
+
}, Ie = (K) => e4(K, (we) => !l.disabledOptions.has(we)), Pe = (K) => {
|
|
10501
10501
|
if (e.multiple && K.code !== an.delete && K.target.value.length <= 0) {
|
|
10502
|
-
const
|
|
10502
|
+
const we = ka(e.modelValue).slice(), nt = Ie(we);
|
|
10503
10503
|
if (nt < 0)
|
|
10504
10504
|
return;
|
|
10505
|
-
const pt =
|
|
10506
|
-
|
|
10505
|
+
const pt = we[nt];
|
|
10506
|
+
we.splice(nt, 1), t(Cn, we), Ct(we), t("remove-tag", pt);
|
|
10507
10507
|
}
|
|
10508
|
-
}, Ke = (K,
|
|
10509
|
-
const nt = l.selected.indexOf(
|
|
10508
|
+
}, Ke = (K, we) => {
|
|
10509
|
+
const nt = l.selected.indexOf(we);
|
|
10510
10510
|
if (nt > -1 && !U.value) {
|
|
10511
10511
|
const pt = ka(e.modelValue).slice();
|
|
10512
|
-
pt.splice(nt, 1), t(Cn, pt), Ct(pt), t("remove-tag",
|
|
10512
|
+
pt.splice(nt, 1), t(Cn, pt), Ct(pt), t("remove-tag", we.value);
|
|
10513
10513
|
}
|
|
10514
|
-
K.stopPropagation(),
|
|
10514
|
+
K.stopPropagation(), Te();
|
|
10515
10515
|
}, Le = (K) => {
|
|
10516
10516
|
K.stopPropagation();
|
|
10517
|
-
const
|
|
10517
|
+
const we = e.multiple ? [] : te.value;
|
|
10518
10518
|
if (e.multiple)
|
|
10519
10519
|
for (const nt of l.selected)
|
|
10520
|
-
nt.isDisabled &&
|
|
10521
|
-
t(Cn,
|
|
10520
|
+
nt.isDisabled && we.push(nt.value);
|
|
10521
|
+
t(Cn, we), Ct(we), l.hoveringIndex = -1, D.value = !1, t("clear"), Te();
|
|
10522
10522
|
}, st = (K) => {
|
|
10523
|
-
var
|
|
10523
|
+
var we;
|
|
10524
10524
|
if (e.multiple) {
|
|
10525
|
-
const nt = ka((
|
|
10525
|
+
const nt = ka((we = e.modelValue) != null ? we : []).slice(), pt = At(nt, K.value);
|
|
10526
10526
|
pt > -1 ? nt.splice(pt, 1) : (e.multipleLimit <= 0 || nt.length < e.multipleLimit) && nt.push(K.value), t(Cn, nt), Ct(nt), K.created && He(""), e.filterable && !e.reserveKeyword && (l.inputValue = "");
|
|
10527
10527
|
} else
|
|
10528
10528
|
t(Cn, K.value), Ct(K.value), D.value = !1;
|
|
10529
|
-
|
|
10529
|
+
Te(), !D.value && it(() => {
|
|
10530
10530
|
qt(K);
|
|
10531
10531
|
});
|
|
10532
|
-
}, At = (K = [],
|
|
10533
|
-
if (!Yn(
|
|
10534
|
-
return K.indexOf(
|
|
10532
|
+
}, At = (K = [], we) => {
|
|
10533
|
+
if (!Yn(we))
|
|
10534
|
+
return K.indexOf(we);
|
|
10535
10535
|
const nt = e.valueKey;
|
|
10536
10536
|
let pt = -1;
|
|
10537
|
-
return K.some((Tn, Ft) => Ja(Wa(Tn, nt)) === Wa(
|
|
10537
|
+
return K.some((Tn, Ft) => Ja(Wa(Tn, nt)) === Wa(we, nt) ? (pt = Ft, !0) : !1), pt;
|
|
10538
10538
|
}, qt = (K) => {
|
|
10539
|
-
var
|
|
10539
|
+
var we, nt, pt, Tn, Ft;
|
|
10540
10540
|
const Un = Zn(K) ? K[0] : K;
|
|
10541
10541
|
let ua = null;
|
|
10542
10542
|
if (Un != null && Un.value) {
|
|
@@ -10544,28 +10544,28 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10544
10544
|
yn.length > 0 && (ua = yn[0].$el);
|
|
10545
10545
|
}
|
|
10546
10546
|
if (u.value && ua) {
|
|
10547
|
-
const yn = (Tn = (pt = (nt = (
|
|
10547
|
+
const yn = (Tn = (pt = (nt = (we = u.value) == null ? void 0 : we.popperRef) == null ? void 0 : nt.contentRef) == null ? void 0 : pt.querySelector) == null ? void 0 : Tn.call(pt, `.${o.be("dropdown", "wrap")}`);
|
|
10548
10548
|
yn && f4(yn, ua);
|
|
10549
10549
|
}
|
|
10550
10550
|
(Ft = k.value) == null || Ft.handleScroll();
|
|
10551
10551
|
}, Xt = (K) => {
|
|
10552
10552
|
l.options.set(K.value, K), l.cachedOptions.set(K.value, K), K.disabled && l.disabledOptions.set(K.value, K);
|
|
10553
|
-
}, En = (K,
|
|
10554
|
-
l.options.get(K) ===
|
|
10553
|
+
}, En = (K, we) => {
|
|
10554
|
+
l.options.get(K) === we && l.options.delete(K);
|
|
10555
10555
|
}, Ln = P(() => {
|
|
10556
|
-
var K,
|
|
10557
|
-
return (
|
|
10556
|
+
var K, we;
|
|
10557
|
+
return (we = (K = u.value) == null ? void 0 : K.popperRef) == null ? void 0 : we.contentRef;
|
|
10558
10558
|
}), se = () => {
|
|
10559
10559
|
l.isBeforeHide = !1, it(() => qt(l.selected));
|
|
10560
|
-
},
|
|
10560
|
+
}, Te = () => {
|
|
10561
10561
|
var K;
|
|
10562
10562
|
(K = m.value) == null || K.focus();
|
|
10563
10563
|
}, oe = () => {
|
|
10564
10564
|
var K;
|
|
10565
10565
|
if (D.value) {
|
|
10566
10566
|
D.value = !1, it(() => {
|
|
10567
|
-
var
|
|
10568
|
-
return (
|
|
10567
|
+
var we;
|
|
10568
|
+
return (we = m.value) == null ? void 0 : we.blur();
|
|
10569
10569
|
});
|
|
10570
10570
|
return;
|
|
10571
10571
|
}
|
|
@@ -10574,8 +10574,8 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10574
10574
|
Le(K);
|
|
10575
10575
|
}, Ne = (K) => {
|
|
10576
10576
|
if (D.value = !1, M.value) {
|
|
10577
|
-
const
|
|
10578
|
-
it(() => x(
|
|
10577
|
+
const we = new FocusEvent("focus", K);
|
|
10578
|
+
it(() => x(we));
|
|
10579
10579
|
}
|
|
10580
10580
|
}, rt = () => {
|
|
10581
10581
|
l.inputValue.length > 0 ? l.inputValue = "" : D.value = !1;
|
|
@@ -10590,8 +10590,8 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10590
10590
|
}
|
|
10591
10591
|
if (!(l.options.size === 0 || l.filteredOptionsCount === 0 || w.value) && !wt.value) {
|
|
10592
10592
|
K === "next" ? (l.hoveringIndex++, l.hoveringIndex === l.options.size && (l.hoveringIndex = 0)) : K === "prev" && (l.hoveringIndex--, l.hoveringIndex < 0 && (l.hoveringIndex = l.options.size - 1));
|
|
10593
|
-
const
|
|
10594
|
-
(
|
|
10593
|
+
const we = Ue.value[l.hoveringIndex];
|
|
10594
|
+
(we.disabled === !0 || we.states.groupDisabled === !0 || !we.visible) && wn(K), it(() => qt(z.value));
|
|
10595
10595
|
}
|
|
10596
10596
|
}, ve = () => {
|
|
10597
10597
|
if (!i.value)
|
|
@@ -10649,7 +10649,7 @@ const S9 = 11, A9 = (e, t) => {
|
|
|
10649
10649
|
onOptionCreate: Xt,
|
|
10650
10650
|
onOptionDestroy: En,
|
|
10651
10651
|
handleMenuEnter: se,
|
|
10652
|
-
focus:
|
|
10652
|
+
focus: Te,
|
|
10653
10653
|
blur: oe,
|
|
10654
10654
|
handleClearClick: ue,
|
|
10655
10655
|
handleClickOutside: Ne,
|
|
@@ -27124,7 +27124,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27124
27124
|
let I = 0;
|
|
27125
27125
|
pe(() => E.value, () => {
|
|
27126
27126
|
if (v("update:retract", E.value), !E.value && g.value.id) {
|
|
27127
|
-
const se = (ie.value.items || []).findIndex((
|
|
27127
|
+
const se = (ie.value.items || []).findIndex((Te) => Te.id === g.value.id);
|
|
27128
27128
|
se && (I && clearTimeout(I), I = setTimeout(() => {
|
|
27129
27129
|
ie.value.scrollToItem(se);
|
|
27130
27130
|
}, 61));
|
|
@@ -27132,32 +27132,32 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27132
27132
|
});
|
|
27133
27133
|
const S = A((u.data.vehicleType || []).map((se) => ({ ...se, ...se.content }))), M = P(() => {
|
|
27134
27134
|
const se = [];
|
|
27135
|
-
return S.value.map((
|
|
27136
|
-
|
|
27137
|
-
}), se.sort((
|
|
27138
|
-
if (
|
|
27139
|
-
const oe = se.find((ue) =>
|
|
27140
|
-
oe && (oe.children = oe.children || [], oe.children.push(
|
|
27135
|
+
return S.value.map((Te) => {
|
|
27136
|
+
Te.content.parentType || se.push(Te), Te.assetType === 9999 && (Te.children = []);
|
|
27137
|
+
}), se.sort((Te, oe) => oe.assetType === 9999 ? -1 : Te.assetType === 9999 ? 1 : oe.assetType === 5e3 ? -1 : Te.assetType === 5e3 ? 1 : Te.content.assetType - oe.content.assetType), S.value.map((Te) => {
|
|
27138
|
+
if (Te.content.parentType === 9999) {
|
|
27139
|
+
const oe = se.find((ue) => Te.content.parentType === ue.content.assetType);
|
|
27140
|
+
oe && (oe.children = oe.children || [], oe.children.push(Te));
|
|
27141
27141
|
}
|
|
27142
27142
|
}), se;
|
|
27143
27143
|
}), x = P(() => {
|
|
27144
|
-
const se = {},
|
|
27144
|
+
const se = {}, Te = (oe, ue) => {
|
|
27145
27145
|
oe.length && oe.forEach((Ne) => {
|
|
27146
27146
|
const { assetType: rt, children: Ye } = Ne;
|
|
27147
|
-
rt && (Ye ?
|
|
27147
|
+
rt && (Ye ? Te(Ye, ue) : ue[rt] = Ne);
|
|
27148
27148
|
});
|
|
27149
27149
|
};
|
|
27150
|
-
return
|
|
27150
|
+
return Te(S.value, se), se;
|
|
27151
27151
|
}), D = A({}), z = A([]), V = A([]), G = A([]), $ = A(0);
|
|
27152
27152
|
async function te() {
|
|
27153
27153
|
var Ye;
|
|
27154
27154
|
console.time("getOneVehicleTripTest1"), console.log(u.data);
|
|
27155
|
-
let se = u.data.deviceStatusList || [],
|
|
27156
|
-
(Ye = u.data.relationDeviceList) != null && Ye.length && (se = [],
|
|
27155
|
+
let se = u.data.deviceStatusList || [], Te = u.data.vehicleDeviceList || [], oe = u.data.deviceList || [], ue = u.data.vehicleList || [], Ne = u.data.landmarkDeviceList || [];
|
|
27156
|
+
(Ye = u.data.relationDeviceList) != null && Ye.length && (se = [], Te = [], oe = [], ue = [], Ne = [], u.data.relationDeviceList.map((et) => {
|
|
27157
27157
|
var wt, fn, en;
|
|
27158
27158
|
(wt = et.bindVehicle) != null && wt.id && (ue.push({
|
|
27159
27159
|
...et.bindVehicle
|
|
27160
|
-
}),
|
|
27160
|
+
}), Te.push({
|
|
27161
27161
|
vehicleId: et.bindVehicle.id,
|
|
27162
27162
|
deviceId: et.id
|
|
27163
27163
|
})), (fn = et.deviceStatus) != null && fn.id && se.push({
|
|
@@ -27174,7 +27174,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27174
27174
|
const rt = aC({
|
|
27175
27175
|
...u.data,
|
|
27176
27176
|
deviceStatusList: se,
|
|
27177
|
-
vehicleDeviceList:
|
|
27177
|
+
vehicleDeviceList: Te,
|
|
27178
27178
|
deviceList: oe,
|
|
27179
27179
|
vehicleList: ue,
|
|
27180
27180
|
landmarkDeviceList: Ne,
|
|
@@ -27187,44 +27187,44 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27187
27187
|
if (!u.loading) {
|
|
27188
27188
|
const se = u.immediate && w || !w;
|
|
27189
27189
|
w = !1, te(), it(() => {
|
|
27190
|
-
b.value = u.vehicleId || 0, k.value = u.deviceId || 0, u.vehicleId && (g.value = ze.value.find((
|
|
27190
|
+
b.value = u.vehicleId || 0, k.value = u.deviceId || 0, u.vehicleId && (g.value = ze.value.find((Te) => Te.id === u.vehicleId) || {}), !g.value.id && u.deviceId && (g.value = ze.value.find((Te) => Te.id === u.deviceId) || {}), g.value.id ? v("clickItem", At(g.value), g.value) : He.value.length && (u.vehicleId || u.deviceId || se) && (g.value = He.value[0], v("clickItem", At(He.value[0]), He.value[0]), v("onlyClickChange", At(g.value), g.value));
|
|
27191
27191
|
});
|
|
27192
27192
|
}
|
|
27193
27193
|
}, { immediate: !0 });
|
|
27194
27194
|
function R(se) {
|
|
27195
|
-
let
|
|
27195
|
+
let Te = 0;
|
|
27196
27196
|
const oe = St.value.find((ue) => {
|
|
27197
27197
|
let Ne = ue.is === "tag" && ue.id === se.id;
|
|
27198
|
-
return Ne || (
|
|
27198
|
+
return Ne || (Te += ue.size || 0), Ne;
|
|
27199
27199
|
});
|
|
27200
|
-
ie.value.scrollToPosition(
|
|
27200
|
+
ie.value.scrollToPosition(Te), oe != null && oe.childrenLength && vt(oe);
|
|
27201
27201
|
}
|
|
27202
|
-
function U(se,
|
|
27202
|
+
function U(se, Te) {
|
|
27203
27203
|
var ue, Ne;
|
|
27204
|
-
se.isClose = !0, (se.name + "").replace(/\s+/g, " ").trim().toLocaleLowerCase().includes(
|
|
27204
|
+
se.isClose = !0, (se.name + "").replace(/\s+/g, " ").trim().toLocaleLowerCase().includes(Te.trim().replace(/\s+/g, " ").toLocaleLowerCase()) && (Y.value.id || (Y.value = se));
|
|
27205
27205
|
let oe = !1;
|
|
27206
27206
|
return (ue = se.children) != null && ue.length && se.children.map((rt) => {
|
|
27207
|
-
const Ye = U(rt,
|
|
27207
|
+
const Ye = U(rt, Te);
|
|
27208
27208
|
Ye && (oe = !0, se.isClose = !1), rt.isClose = !Ye;
|
|
27209
|
-
}),
|
|
27209
|
+
}), Te.trim() ? (se.name + "").replace(/\s+/g, " ").trim().toLocaleLowerCase().includes(Te.trim().replace(/\s+/g, " ").toLocaleLowerCase()) ? !0 : ((Ne = se.children) != null && Ne.length && !oe && (se.isClose = !0), oe) : (se.isClose = !1, !0);
|
|
27210
27210
|
}
|
|
27211
|
-
function N(se,
|
|
27211
|
+
function N(se, Te) {
|
|
27212
27212
|
let oe = 0, ue = se;
|
|
27213
|
-
for (; ue && ue !==
|
|
27213
|
+
for (; ue && ue !== Te && (oe += ue.offsetTop, ue = ue.offsetParent, ue !== document.body); )
|
|
27214
27214
|
;
|
|
27215
27215
|
return oe;
|
|
27216
27216
|
}
|
|
27217
27217
|
const H = A(""), Y = A({}), ce = A();
|
|
27218
27218
|
pe(() => H.value, Zu((se) => {
|
|
27219
|
-
if (Y.value = {}, G.value.map((
|
|
27220
|
-
|
|
27219
|
+
if (Y.value = {}, G.value.map((Te) => {
|
|
27220
|
+
Te.isClose = !U(Te, se);
|
|
27221
27221
|
}), !Y.value.name) {
|
|
27222
27222
|
ce.value.setScrollTop(0);
|
|
27223
27223
|
return;
|
|
27224
27224
|
}
|
|
27225
27225
|
ce.value.update(), it(() => {
|
|
27226
27226
|
try {
|
|
27227
|
-
const
|
|
27227
|
+
const Te = ce.value.wrapRef.children[0].children[0], oe = document.getElementById(`${Y.value.itemId}_tag`), ue = N(oe, Te);
|
|
27228
27228
|
ce.value.setScrollTop(ue);
|
|
27229
27229
|
} catch {
|
|
27230
27230
|
ce.value.setScrollTop(0);
|
|
@@ -27251,12 +27251,12 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27251
27251
|
var oe;
|
|
27252
27252
|
if (!((oe = se.deviceOne) != null && oe.id))
|
|
27253
27253
|
return;
|
|
27254
|
-
const
|
|
27255
|
-
if (
|
|
27256
|
-
const ue = new Date(
|
|
27257
|
-
|
|
27254
|
+
const Te = se.deviceOne;
|
|
27255
|
+
if (Te.locationReportTime) {
|
|
27256
|
+
const ue = new Date(Te.locationReportTime).getTime();
|
|
27257
|
+
Te.timeDiff = Sr(ue);
|
|
27258
27258
|
} else
|
|
27259
|
-
|
|
27259
|
+
Te.timeDiff = Sr(Te.locationReportTime);
|
|
27260
27260
|
});
|
|
27261
27261
|
}
|
|
27262
27262
|
function Ue() {
|
|
@@ -27265,8 +27265,8 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27265
27265
|
}, 1e3);
|
|
27266
27266
|
}
|
|
27267
27267
|
const De = A([]), We = A([]), Ve = (se) => se.trackerStatus <= 0 ? "offline-li" : se.battery && se.battery < 20 || se.battery === 0 ? "alarming-li" : se.trackerStatus === 1 ? "charging-li" : (se.trackerStatus === 2, "normal-li"), Q = (se) => se.trackerStatus === 0 || se.trackerStatus < 0 ? "offline" : se.event === 1 ? "driving" : se.acc === 0 && se.modelId && (se.modelId === 8 || se.modelId === 9) ? "engine" : "idle";
|
|
27268
|
-
function q(se,
|
|
27269
|
-
switch (
|
|
27268
|
+
function q(se, Te) {
|
|
27269
|
+
switch (Te) {
|
|
27270
27270
|
case "asc":
|
|
27271
27271
|
Wf(se, "ascending");
|
|
27272
27272
|
break;
|
|
@@ -27319,24 +27319,24 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27319
27319
|
}
|
|
27320
27320
|
const me = A([]), X = A([]);
|
|
27321
27321
|
function Ee(se) {
|
|
27322
|
-
const
|
|
27322
|
+
const Te = [], oe = [];
|
|
27323
27323
|
se.map((ue) => {
|
|
27324
|
-
ue.isModel ?
|
|
27325
|
-
}), me.value =
|
|
27324
|
+
ue.isModel ? Te.push(ue.obj.modelId) : oe.push(ue.obj.assetType);
|
|
27325
|
+
}), me.value = Te, X.value = oe;
|
|
27326
27326
|
}
|
|
27327
27327
|
const ze = P(() => {
|
|
27328
|
-
var
|
|
27328
|
+
var Te, oe, ue;
|
|
27329
27329
|
let se = [];
|
|
27330
|
-
return a.value.showDevice !== !1 ? se = [...((
|
|
27330
|
+
return a.value.showDevice !== !1 ? se = [...((Te = D.value) == null ? void 0 : Te.vehicleList) || [], ...((oe = D.value) == null ? void 0 : oe.onlyDeviceList) || []] : se = [...((ue = D.value) == null ? void 0 : ue.vehicleList) || []], se;
|
|
27331
27331
|
}), He = P(() => {
|
|
27332
27332
|
let se = [...ze.value];
|
|
27333
27333
|
se.map((oe) => {
|
|
27334
27334
|
oe.isNotHiddren = !1;
|
|
27335
27335
|
});
|
|
27336
|
-
const
|
|
27336
|
+
const Te = (m.value + "").replace(/\s+/g, " ").trim();
|
|
27337
27337
|
return se.map((oe) => {
|
|
27338
27338
|
var ue, Ne, rt, Ye, et;
|
|
27339
|
-
if (!me.value.length && !X.value.length && !
|
|
27339
|
+
if (!me.value.length && !X.value.length && !Te) {
|
|
27340
27340
|
oe.isNotHiddren = !0;
|
|
27341
27341
|
return;
|
|
27342
27342
|
}
|
|
@@ -27351,10 +27351,10 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27351
27351
|
oe.isNotHiddren = !0;
|
|
27352
27352
|
else
|
|
27353
27353
|
throw { xxx: "xxx" };
|
|
27354
|
-
if (
|
|
27354
|
+
if (Te)
|
|
27355
27355
|
if ((oe.name + "").replace(/\s+/g, " ").trim().toLocaleLowerCase().includes(
|
|
27356
|
-
|
|
27357
|
-
) || (((et = oe.deviceOne) == null ? void 0 : et.userPackageId) + "").includes(
|
|
27356
|
+
Te.replace(/\s+/g, " ").trim().toLocaleLowerCase()
|
|
27357
|
+
) || (((et = oe.deviceOne) == null ? void 0 : et.userPackageId) + "").includes(Te.replace(/\s+/g, " ").trim()))
|
|
27358
27358
|
oe.isNotHiddren = !0;
|
|
27359
27359
|
else
|
|
27360
27360
|
throw { xxx: "xxx" };
|
|
@@ -27363,7 +27363,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27363
27363
|
}
|
|
27364
27364
|
}), C.value && q(se, C.value), se;
|
|
27365
27365
|
}), St = P(() => Ze.value === 0 ? Bt.value : Ze.value === 1 ? _.value : ge.value), Bt = P(() => He.value.filter((se) => se.isNotHiddren).map((se) => ({ ...se, itemId: `${se.isVehicle ? "vehicle" : "device"}${se.id}` }))), _ = P(() => {
|
|
27366
|
-
const se = (m.value + "").replace(/\s+/g, " ").trim(),
|
|
27366
|
+
const se = (m.value + "").replace(/\s+/g, " ").trim(), Te = [];
|
|
27367
27367
|
return z.value.map((oe) => {
|
|
27368
27368
|
let ue = !1;
|
|
27369
27369
|
se && ((oe.name + "").replace(/\s+/g, " ").trim().toLocaleLowerCase().includes(
|
|
@@ -27387,7 +27387,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27387
27387
|
return !1;
|
|
27388
27388
|
});
|
|
27389
27389
|
if (se && (ue || rt.length > 0) || !se)
|
|
27390
|
-
|
|
27390
|
+
Te.push({
|
|
27391
27391
|
...oe,
|
|
27392
27392
|
open: Ne,
|
|
27393
27393
|
itemId: `tag${oe.id}`,
|
|
@@ -27396,20 +27396,20 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27396
27396
|
else
|
|
27397
27397
|
return;
|
|
27398
27398
|
Ne && rt.map((Ye) => {
|
|
27399
|
-
|
|
27399
|
+
Te.push({
|
|
27400
27400
|
...Ye,
|
|
27401
27401
|
parentId: oe.id,
|
|
27402
27402
|
itemId: `tag${Ye.isVehicle ? "vehicle" : "device"}${oe.id + "" + Ye.id}`
|
|
27403
27403
|
});
|
|
27404
27404
|
});
|
|
27405
|
-
}),
|
|
27405
|
+
}), Te;
|
|
27406
27406
|
}), B = P(() => {
|
|
27407
27407
|
const se = {};
|
|
27408
|
-
return _.value.map((
|
|
27409
|
-
(
|
|
27408
|
+
return _.value.map((Te) => {
|
|
27409
|
+
(Te.itemId + "").includes("tag") && !(Te.itemId + "").includes("vehicle") && !(Te.itemId + "").includes("device") && (se[Te.id] = Te.childrenLength);
|
|
27410
27410
|
}), se;
|
|
27411
27411
|
}), ge = P(() => {
|
|
27412
|
-
const se = (m.value + "").replace(/\s+/g, " ").trim(),
|
|
27412
|
+
const se = (m.value + "").replace(/\s+/g, " ").trim(), Te = [];
|
|
27413
27413
|
return V.value.map((oe) => {
|
|
27414
27414
|
let ue = !1;
|
|
27415
27415
|
se && ((oe.name + "").replace(/\s+/g, " ").trim().toLocaleLowerCase().includes(
|
|
@@ -27433,7 +27433,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27433
27433
|
return !1;
|
|
27434
27434
|
});
|
|
27435
27435
|
if (se && (ue || rt.length > 0) || !se)
|
|
27436
|
-
|
|
27436
|
+
Te.push({
|
|
27437
27437
|
...oe,
|
|
27438
27438
|
open: Ne,
|
|
27439
27439
|
itemId: `landmarkList${oe.id}`,
|
|
@@ -27442,13 +27442,13 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27442
27442
|
else
|
|
27443
27443
|
return;
|
|
27444
27444
|
Ne && rt.map((Ye) => {
|
|
27445
|
-
|
|
27445
|
+
Te.push({
|
|
27446
27446
|
...Ye,
|
|
27447
27447
|
parentId: oe.id,
|
|
27448
27448
|
itemId: `landmarkList${Ye.isVehicle ? "vehicle" : "device"}${oe.id + "" + Ye.id}`
|
|
27449
27449
|
});
|
|
27450
27450
|
});
|
|
27451
|
-
}),
|
|
27451
|
+
}), Te;
|
|
27452
27452
|
}), Ge = P(() => _.value.filter((se) => (se.itemId + "").includes("tag") && !(se.itemId + "").includes("vehicle") && !(se.itemId + "").includes("device")).length), ut = P(() => ge.value.filter((se) => (se.itemId + "").includes("landmarkList") && !(se.itemId + "").includes("vehicle") && !(se.itemId + "").includes("device")).length), be = P(() => He.value.filter((se) => se.isNotHiddren).length), Ze = A(0), ie = A();
|
|
27453
27453
|
function Ce(se) {
|
|
27454
27454
|
switch (se) {
|
|
@@ -27467,22 +27467,22 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27467
27467
|
function vt(se) {
|
|
27468
27468
|
if (!se.childrenLength)
|
|
27469
27469
|
return;
|
|
27470
|
-
let
|
|
27470
|
+
let Te = !0;
|
|
27471
27471
|
switch (se.is) {
|
|
27472
27472
|
case "landmark":
|
|
27473
27473
|
{
|
|
27474
27474
|
const oe = We.value.findIndex((ue) => ue === se.id);
|
|
27475
|
-
oe > -1 ? We.value.splice(oe, 1) : (
|
|
27475
|
+
oe > -1 ? We.value.splice(oe, 1) : (Te = !1, We.value.push(se.id)), c("landmark_expandOne");
|
|
27476
27476
|
}
|
|
27477
27477
|
break;
|
|
27478
27478
|
case "tag":
|
|
27479
27479
|
{
|
|
27480
27480
|
const oe = De.value.findIndex((ue) => ue === se.id);
|
|
27481
|
-
oe > -1 ? De.value.splice(oe, 1) : (
|
|
27481
|
+
oe > -1 ? De.value.splice(oe, 1) : (Te = !1, De.value.push(se.id)), c("tag_expandOne");
|
|
27482
27482
|
}
|
|
27483
27483
|
break;
|
|
27484
27484
|
}
|
|
27485
|
-
v("clickLandmarkOrTag", se.is,
|
|
27485
|
+
v("clickLandmarkOrTag", se.is, Te, se);
|
|
27486
27486
|
}
|
|
27487
27487
|
const Ct = A(!1);
|
|
27488
27488
|
let Ie = null;
|
|
@@ -27505,24 +27505,24 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27505
27505
|
}
|
|
27506
27506
|
function At(se) {
|
|
27507
27507
|
var oe;
|
|
27508
|
-
let
|
|
27509
|
-
return se.isVehicle ?
|
|
27508
|
+
let Te = {};
|
|
27509
|
+
return se.isVehicle ? Te = {
|
|
27510
27510
|
vehicleId: se.id,
|
|
27511
27511
|
deviceId: ((oe = se.deviceOne) == null ? void 0 : oe.id) || 0
|
|
27512
|
-
} :
|
|
27512
|
+
} : Te = {
|
|
27513
27513
|
vehicleId: 0,
|
|
27514
27514
|
deviceId: se.id
|
|
27515
|
-
},
|
|
27515
|
+
}, Te;
|
|
27516
27516
|
}
|
|
27517
27517
|
function qt(se) {
|
|
27518
27518
|
g.value = se, v("clickItem", At(se), se), v("onlyClickChange", At(se), se), v("chooseItem", At(se), se);
|
|
27519
27519
|
}
|
|
27520
|
-
const Xt = A(!1), En = (se,
|
|
27521
|
-
se.target.innerText !==
|
|
27520
|
+
const Xt = A(!1), En = (se, Te) => {
|
|
27521
|
+
se.target.innerText !== Te ? Xt.value = !0 : Xt.value = !1;
|
|
27522
27522
|
}, Ln = () => {
|
|
27523
27523
|
Xt.value = !1;
|
|
27524
27524
|
};
|
|
27525
|
-
return (se,
|
|
27525
|
+
return (se, Te) => {
|
|
27526
27526
|
const oe = no, ue = $e("anSvgIcon"), Ne = $e("text-clamp"), rt = _a, Ye = pr, et = ms;
|
|
27527
27527
|
return yt((T(), L("div", {
|
|
27528
27528
|
class: j(["vehicle-select", { retract: E.value, haveLeftBorder: e.haveLeftBorder, haveBorderRadius: e.haveBorderRadius }]),
|
|
@@ -27533,7 +27533,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27533
27533
|
y("div", JM, [
|
|
27534
27534
|
O(XM, {
|
|
27535
27535
|
sortKey: C.value,
|
|
27536
|
-
"onUpdate:sortKey":
|
|
27536
|
+
"onUpdate:sortKey": Te[0] || (Te[0] = (Xe) => C.value = Xe),
|
|
27537
27537
|
vehicleTypeList: M.value,
|
|
27538
27538
|
onFilter: Ee,
|
|
27539
27539
|
propsModleList: e.modleList,
|
|
@@ -27543,7 +27543,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27543
27543
|
y("div", $M, [
|
|
27544
27544
|
O(oe, {
|
|
27545
27545
|
modelValue: p.value,
|
|
27546
|
-
"onUpdate:modelValue":
|
|
27546
|
+
"onUpdate:modelValue": Te[2] || (Te[2] = (Xe) => p.value = Xe),
|
|
27547
27547
|
placeholder: d(i)("search"),
|
|
27548
27548
|
class: "anytrek-vehicle-auto-search vehicle-select-search",
|
|
27549
27549
|
"prefix-icon": Hl,
|
|
@@ -27553,7 +27553,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27553
27553
|
suffix: F(() => [
|
|
27554
27554
|
p.value ? (T(), re(zl, {
|
|
27555
27555
|
key: 0,
|
|
27556
|
-
onClick:
|
|
27556
|
+
onClick: Te[1] || (Te[1] = (Xe) => p.value = "")
|
|
27557
27557
|
})) : W("", !0)
|
|
27558
27558
|
]),
|
|
27559
27559
|
_: 1
|
|
@@ -27561,7 +27561,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27561
27561
|
]),
|
|
27562
27562
|
O(BI, {
|
|
27563
27563
|
activeOne: Ze.value,
|
|
27564
|
-
"onUpdate:activeOne":
|
|
27564
|
+
"onUpdate:activeOne": Te[3] || (Te[3] = (Xe) => Ze.value = Xe),
|
|
27565
27565
|
onChange: Ce,
|
|
27566
27566
|
allLength: be.value,
|
|
27567
27567
|
tagLength: Ge.value,
|
|
@@ -27636,7 +27636,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27636
27636
|
key: 0,
|
|
27637
27637
|
"show-arrow": !1,
|
|
27638
27638
|
visible: Xt.value,
|
|
27639
|
-
"onUpdate:visible":
|
|
27639
|
+
"onUpdate:visible": Te[5] || (Te[5] = (Xe) => Xt.value = Xe),
|
|
27640
27640
|
"popper-class": "normal-txt-pop",
|
|
27641
27641
|
effect: "dark",
|
|
27642
27642
|
content: g.value.name || d(i)("vehicle"),
|
|
@@ -27647,7 +27647,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27647
27647
|
}, {
|
|
27648
27648
|
default: F(() => [
|
|
27649
27649
|
(T(), re(Ne, {
|
|
27650
|
-
onMouseenter:
|
|
27650
|
+
onMouseenter: Te[4] || (Te[4] = (Xe) => En(Xe, g.value.name || d(i)("vehicle"))),
|
|
27651
27651
|
onMouseleave: Ln,
|
|
27652
27652
|
text: g.value.name || d(i)("vehicle"),
|
|
27653
27653
|
location: "middle",
|
|
@@ -27675,7 +27675,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27675
27675
|
}, [
|
|
27676
27676
|
O(oe, {
|
|
27677
27677
|
modelValue: H.value,
|
|
27678
|
-
"onUpdate:modelValue":
|
|
27678
|
+
"onUpdate:modelValue": Te[7] || (Te[7] = (Xe) => H.value = Xe),
|
|
27679
27679
|
placeholder: d(i)("search"),
|
|
27680
27680
|
class: "anytrek-vehicle-auto-search vehicle-select-search",
|
|
27681
27681
|
"prefix-icon": Hl,
|
|
@@ -27686,7 +27686,7 @@ const Hl = /* @__PURE__ */ _t(IM, [["render", OM]]), qs = /* @__PURE__ */ fe({
|
|
|
27686
27686
|
suffix: F(() => [
|
|
27687
27687
|
H.value ? (T(), re(zl, {
|
|
27688
27688
|
key: 0,
|
|
27689
|
-
onClick:
|
|
27689
|
+
onClick: Te[6] || (Te[6] = (Xe) => H.value = "")
|
|
27690
27690
|
})) : W("", !0)
|
|
27691
27691
|
]),
|
|
27692
27692
|
_: 1
|
|
@@ -28325,7 +28325,7 @@ const co = (e) => {
|
|
|
28325
28325
|
}), En.value = !1;
|
|
28326
28326
|
}, se = () => {
|
|
28327
28327
|
Xt.value = N.value.filter((ye) => ye.checkValue).length === N.value.length, N.value.filter((ye) => ye.checkValue).length > 0 && N.value.filter((ye) => ye.checkValue).length < N.value.length ? En.value = !0 : En.value = !1;
|
|
28328
|
-
},
|
|
28328
|
+
}, Te = A(!1), oe = A(), ue = (ye) => {
|
|
28329
28329
|
let le = r.allVehicles.filter((ft) => ye.vehicle.includes(ft.id)).map((ft) => ({ name: ft.name, id: ft.id })), Fe = r.allDevices.filter((ft) => ye.device.includes(ft.id)).map((ft) => ({ name: ft.userPackageId, id: ft.id })), Tt = r.allTags.filter((ft) => ye.tag.includes(ft.id)).map((ft) => ({ name: ft.name, id: ft.id })), Re = r.allLandmarks.filter((ft) => ye.landmark.includes(ft.id)).map((ft) => ({ name: ft.name, id: ft.id }));
|
|
28330
28330
|
oe.value = {
|
|
28331
28331
|
id: ye.id,
|
|
@@ -28338,9 +28338,9 @@ const co = (e) => {
|
|
|
28338
28338
|
tag: Tt,
|
|
28339
28339
|
landmark: Re
|
|
28340
28340
|
}
|
|
28341
|
-
},
|
|
28341
|
+
}, Te.value = !0, ie.value = !1;
|
|
28342
28342
|
}, Ne = () => {
|
|
28343
|
-
oe.value = null,
|
|
28343
|
+
oe.value = null, Te.value = !0, ie.value = !1;
|
|
28344
28344
|
}, rt = () => {
|
|
28345
28345
|
k.value.tagContent = N.value.filter((ye) => ye.checkValue), ie.value = !1;
|
|
28346
28346
|
};
|
|
@@ -28420,7 +28420,7 @@ const co = (e) => {
|
|
|
28420
28420
|
}, lt = (ye) => {
|
|
28421
28421
|
let le = [...k.value.tagContent];
|
|
28422
28422
|
le.splice(ye, 1), k.value.tagContent = le;
|
|
28423
|
-
}, K = A(!1),
|
|
28423
|
+
}, K = A(!1), we = A(!1), nt = A(!1), pt = A(!1), Tn = (ye) => r.allVehicles.filter(
|
|
28424
28424
|
(le) => le.content.assetType === ye.assetType && le.content.newIcon === ye.icon
|
|
28425
28425
|
).length, Ft = [
|
|
28426
28426
|
{
|
|
@@ -28581,7 +28581,7 @@ const co = (e) => {
|
|
|
28581
28581
|
}
|
|
28582
28582
|
}
|
|
28583
28583
|
);
|
|
28584
|
-
const
|
|
28584
|
+
const ke = () => {
|
|
28585
28585
|
ee.value = J(/* @__PURE__ */ new Date()).utc().format("YYYY-MM-DDTHH:mm:ss[Z]");
|
|
28586
28586
|
};
|
|
28587
28587
|
let ee = A("");
|
|
@@ -28731,7 +28731,7 @@ const co = (e) => {
|
|
|
28731
28731
|
const _o = (ye) => {
|
|
28732
28732
|
oe.value = {
|
|
28733
28733
|
id: ye.id
|
|
28734
|
-
},
|
|
28734
|
+
}, Te.value = !0;
|
|
28735
28735
|
};
|
|
28736
28736
|
return (ye, le) => {
|
|
28737
28737
|
const Fe = no, Tt = is, Re = $e("anSvgIcon"), ft = zu, Jn = _a, pn = Ho, Ga = $e("anytrekTimePick"), Bn = $e("text-clamp"), Et = Bu, tn = ls, al = pr, ol = hr, Lt = us, $n = $e("add-or-edit-tag"), Oa = ms;
|
|
@@ -29290,15 +29290,15 @@ const co = (e) => {
|
|
|
29290
29290
|
O(Tt, {
|
|
29291
29291
|
label: d(a)("vinOrSerialNumber"),
|
|
29292
29292
|
prop: "vin",
|
|
29293
|
-
class: j(["custom-label-poosition2", { "is-focus":
|
|
29293
|
+
class: j(["custom-label-poosition2", { "is-focus": we.value }])
|
|
29294
29294
|
}, {
|
|
29295
29295
|
default: F(() => [
|
|
29296
29296
|
O(Fe, {
|
|
29297
29297
|
modelValue: k.value.vin,
|
|
29298
29298
|
"onUpdate:modelValue": le[12] || (le[12] = (xe) => k.value.vin = xe),
|
|
29299
29299
|
maxlength: 64,
|
|
29300
|
-
onFocus: le[13] || (le[13] = (xe) =>
|
|
29301
|
-
onBlur: le[14] || (le[14] = (xe) =>
|
|
29300
|
+
onFocus: le[13] || (le[13] = (xe) => we.value = !0),
|
|
29301
|
+
onBlur: le[14] || (le[14] = (xe) => we.value = !1)
|
|
29302
29302
|
}, null, 8, ["modelValue"])
|
|
29303
29303
|
]),
|
|
29304
29304
|
_: 1
|
|
@@ -29346,7 +29346,7 @@ const co = (e) => {
|
|
|
29346
29346
|
]),
|
|
29347
29347
|
y("div", {
|
|
29348
29348
|
class: "btn-now",
|
|
29349
|
-
onClick: Je(
|
|
29349
|
+
onClick: Je(ke, ["stop"])
|
|
29350
29350
|
}, "Now")
|
|
29351
29351
|
])
|
|
29352
29352
|
], 512),
|
|
@@ -29778,10 +29778,10 @@ const co = (e) => {
|
|
|
29778
29778
|
]),
|
|
29779
29779
|
_: 1
|
|
29780
29780
|
}, 8, ["visible", "placement", "virtual-ref"]),
|
|
29781
|
-
|
|
29781
|
+
Te.value ? (T(), re($n, {
|
|
29782
29782
|
key: 0,
|
|
29783
|
-
modelValue:
|
|
29784
|
-
"onUpdate:modelValue": le[24] || (le[24] = (xe) =>
|
|
29783
|
+
modelValue: Te.value,
|
|
29784
|
+
"onUpdate:modelValue": le[24] || (le[24] = (xe) => Te.value = xe),
|
|
29785
29785
|
loginInfo: e.loginInfo,
|
|
29786
29786
|
customerHabit: d(s),
|
|
29787
29787
|
itemData: oe.value,
|
|
@@ -30019,16 +30019,16 @@ const co = (e) => {
|
|
|
30019
30019
|
var ve, ne, de, lt;
|
|
30020
30020
|
if (p.value.vehicle = r.allVehicles, p.value.device = r.allDevices, p.value.tag = r.allTags, p.value.landmark = r.allLandmarks, r.itemData && r.itemData.id) {
|
|
30021
30021
|
let K = r.allTags.find(
|
|
30022
|
-
(
|
|
30022
|
+
(we) => we.id === r.itemData.id
|
|
30023
30023
|
);
|
|
30024
30024
|
if (K) {
|
|
30025
|
-
let
|
|
30025
|
+
let we = r.allVehicles.filter((Ft) => K.content.vehicle.includes(Ft.id)).map((Ft) => ({ name: Ft.name, id: Ft.id })), nt = r.allDevices.filter((Ft) => K.content.device.includes(Ft.id)).map((Ft) => ({ name: Ft.userPackageId, id: Ft.id })), pt = r.allTags.filter((Ft) => K.content.tag.includes(Ft.id)).map((Ft) => ({ name: Ft.name, id: Ft.id })), Tn = r.allLandmarks.filter((Ft) => K.content.landmark.includes(Ft.id)).map((Ft) => ({ name: Ft.name, id: Ft.id }));
|
|
30026
30026
|
f.value = {
|
|
30027
30027
|
id: K.id,
|
|
30028
30028
|
name: K.name,
|
|
30029
30029
|
description: K.content.description,
|
|
30030
30030
|
content: {
|
|
30031
|
-
vehicle:
|
|
30031
|
+
vehicle: we,
|
|
30032
30032
|
device: nt,
|
|
30033
30033
|
tag: pt,
|
|
30034
30034
|
landmark: Tn
|
|
@@ -30102,8 +30102,8 @@ const co = (e) => {
|
|
|
30102
30102
|
for (let K of Object.keys(de))
|
|
30103
30103
|
if (de[K] !== f.value[K])
|
|
30104
30104
|
if (typeof de[K] == "object")
|
|
30105
|
-
for (const
|
|
30106
|
-
JSON.stringify(de[K][
|
|
30105
|
+
for (const we of Object.keys(de[K]))
|
|
30106
|
+
JSON.stringify(de[K][we]) != JSON.stringify(f.value[K][we]) && (lt[K][we] = de[K][we]);
|
|
30107
30107
|
else
|
|
30108
30108
|
lt[K] = de[K];
|
|
30109
30109
|
lt.id = de.id;
|
|
@@ -30130,7 +30130,7 @@ const co = (e) => {
|
|
|
30130
30130
|
() => u.value,
|
|
30131
30131
|
(ve) => {
|
|
30132
30132
|
var ne;
|
|
30133
|
-
ue.value = !1, ve || (h.value = {}, (ne = g.value) == null || ne.resetFields(), z.value = !1, V.value = !1, N.value = !1, H.value = !1,
|
|
30133
|
+
ue.value = !1, ve || (h.value = {}, (ne = g.value) == null || ne.resetFields(), z.value = !1, V.value = !1, N.value = !1, H.value = !1, Te.value = !1, oe.value = "");
|
|
30134
30134
|
}
|
|
30135
30135
|
);
|
|
30136
30136
|
const S = () => Yi(J.utc().format()), M = P(() => {
|
|
@@ -30192,7 +30192,7 @@ const co = (e) => {
|
|
|
30192
30192
|
}
|
|
30193
30193
|
} else if (ve === "vehicle") {
|
|
30194
30194
|
let lt = h.value.content[ve].some(
|
|
30195
|
-
(
|
|
30195
|
+
(we) => we.id === de.id
|
|
30196
30196
|
), K = Ue(de.id);
|
|
30197
30197
|
ne.push({
|
|
30198
30198
|
...de,
|
|
@@ -30226,17 +30226,17 @@ const co = (e) => {
|
|
|
30226
30226
|
if (h.value.id !== de.id) {
|
|
30227
30227
|
let K = h.value.content.landmark.some(
|
|
30228
30228
|
(nt) => nt.id === de.id
|
|
30229
|
-
),
|
|
30230
|
-
if ((lt =
|
|
30229
|
+
), we = { ...de, checkValue: K };
|
|
30230
|
+
if ((lt = we.landmarkGroup) != null && lt.length) {
|
|
30231
30231
|
let nt = ne.findIndex(
|
|
30232
|
-
(pt) => pt.id ===
|
|
30232
|
+
(pt) => pt.id === we.landmarkGroup[0]
|
|
30233
30233
|
);
|
|
30234
|
-
nt > -1 ? ne[nt].list.push(
|
|
30234
|
+
nt > -1 ? ne[nt].list.push(we) : ne[0].list.push(we);
|
|
30235
30235
|
} else
|
|
30236
|
-
ne[0].list.push(
|
|
30236
|
+
ne[0].list.push(we);
|
|
30237
30237
|
}
|
|
30238
30238
|
}), ne = ne.map((de) => {
|
|
30239
|
-
let lt = de.list.some((
|
|
30239
|
+
let lt = de.list.some((we) => we.checkValue) && de.list.some((we) => !we.checkValue), K = de.list.every((we) => we.checkValue) && de.list.length > 0;
|
|
30240
30240
|
return {
|
|
30241
30241
|
...de,
|
|
30242
30242
|
checkValue: K,
|
|
@@ -30260,8 +30260,8 @@ const co = (e) => {
|
|
|
30260
30260
|
if (Se.value === "landmark") {
|
|
30261
30261
|
ae.value = ae.value.map((de) => {
|
|
30262
30262
|
let lt = de.list.map((K) => {
|
|
30263
|
-
let
|
|
30264
|
-
return
|
|
30263
|
+
let we = ve.split(" "), nt = !1;
|
|
30264
|
+
return we.forEach((pt) => {
|
|
30265
30265
|
var Tn;
|
|
30266
30266
|
nt || (nt = (Tn = K.name) == null ? void 0 : Tn.toString().toLowerCase().includes(pt.toLowerCase()));
|
|
30267
30267
|
}), {
|
|
@@ -30286,8 +30286,8 @@ const co = (e) => {
|
|
|
30286
30286
|
ne.length ? Y.value = Y.value.map((de) => {
|
|
30287
30287
|
let lt = !1;
|
|
30288
30288
|
return ne.forEach((K) => {
|
|
30289
|
-
var
|
|
30290
|
-
lt || (lt = ((
|
|
30289
|
+
var we;
|
|
30290
|
+
lt || (lt = ((we = de.deviceUpid) == null ? void 0 : we.toString().toLowerCase()) === K.toLowerCase());
|
|
30291
30291
|
}), {
|
|
30292
30292
|
...de,
|
|
30293
30293
|
isShow: lt
|
|
@@ -30302,8 +30302,8 @@ const co = (e) => {
|
|
|
30302
30302
|
ne.length ? Y.value = Y.value.map((de) => {
|
|
30303
30303
|
let lt = !1;
|
|
30304
30304
|
return ne.forEach((K) => {
|
|
30305
|
-
var
|
|
30306
|
-
lt || (lt = ((
|
|
30305
|
+
var we;
|
|
30306
|
+
lt || (lt = ((we = de.name) == null ? void 0 : we.toString().toLowerCase()) === K.toLowerCase());
|
|
30307
30307
|
}), {
|
|
30308
30308
|
...de,
|
|
30309
30309
|
isShow: lt
|
|
@@ -30433,7 +30433,7 @@ const co = (e) => {
|
|
|
30433
30433
|
} else Se.value === "device" || Se.value;
|
|
30434
30434
|
V.value = !1, N.value = !1;
|
|
30435
30435
|
}, Ce = (ve) => r.allTags.filter((ne) => !!(ne.vehicle && ne.vehicle.findIndex((de) => de === ve) !== -1)), vt = (ve, ne = "deviceId") => r.allVehicleToDevice.find((de) => de[ne] === ve), Ct = A(!1), Ie = A(), Pe = () => {
|
|
30436
|
-
Se.value === "tag" ? (Ct.value = !0, Ie.value = h.value.id,
|
|
30436
|
+
Se.value === "tag" ? (Ct.value = !0, Ie.value = h.value.id, Te.value && (oe.value = h.value.id + ""), et.value = null, Ye.value = !0) : Se.value === "vehicle" ? (et.value = {}, fn.value = !0) : Se.value === "device" || Se.value, V.value = !1, N.value = !1;
|
|
30437
30437
|
}, Ke = () => {
|
|
30438
30438
|
et.value = {}, en.value = !0;
|
|
30439
30439
|
}, Le = (ve) => {
|
|
@@ -30451,11 +30451,11 @@ const co = (e) => {
|
|
|
30451
30451
|
}, se = () => {
|
|
30452
30452
|
qt.value = !1;
|
|
30453
30453
|
};
|
|
30454
|
-
let
|
|
30454
|
+
let Te = A(!1), oe = A("");
|
|
30455
30455
|
const ue = A(!1), Ne = () => {
|
|
30456
30456
|
qt.value = !1;
|
|
30457
30457
|
}, rt = (ve) => {
|
|
30458
|
-
V.value = !0,
|
|
30458
|
+
V.value = !0, Te.value = ve;
|
|
30459
30459
|
}, Ye = A(!1), et = A(), Xe = () => {
|
|
30460
30460
|
u.value = !1;
|
|
30461
30461
|
};
|
|
@@ -30497,7 +30497,7 @@ const co = (e) => {
|
|
|
30497
30497
|
}
|
|
30498
30498
|
};
|
|
30499
30499
|
return (ve, ne) => {
|
|
30500
|
-
const de = no, lt = is, K = $e("anSvgIcon"),
|
|
30500
|
+
const de = no, lt = is, K = $e("anSvgIcon"), we = $e("text-clamp"), nt = Bu, pt = $e("RecycleScroller"), Tn = ls, Ft = hr, Un = us, ua = _a, yn = $e("add-or-edit-vehicle"), ha = $e("add-or-edit-tag", !0), Ua = $e("add-or-edit-landmark");
|
|
30501
30501
|
return T(), L(Oe, null, [
|
|
30502
30502
|
O(Un, {
|
|
30503
30503
|
modelValue: u.value,
|
|
@@ -30601,7 +30601,7 @@ const co = (e) => {
|
|
|
30601
30601
|
class: "bindcls"
|
|
30602
30602
|
}, null, 8, ["name"]),
|
|
30603
30603
|
y("div", DP, [
|
|
30604
|
-
O(
|
|
30604
|
+
O(we, {
|
|
30605
30605
|
class: "tagtxt",
|
|
30606
30606
|
text: je.name + "" || "-",
|
|
30607
30607
|
location: "middle",
|
|
@@ -30636,7 +30636,7 @@ const co = (e) => {
|
|
|
30636
30636
|
class: "bindcls"
|
|
30637
30637
|
}, null, 8, ["name"]),
|
|
30638
30638
|
y("div", EP, [
|
|
30639
|
-
O(
|
|
30639
|
+
O(we, {
|
|
30640
30640
|
class: "tagtxt",
|
|
30641
30641
|
text: je.name + "" || "-",
|
|
30642
30642
|
location: "middle",
|
|
@@ -30683,7 +30683,7 @@ const co = (e) => {
|
|
|
30683
30683
|
class: "bindcls"
|
|
30684
30684
|
}, null, 8, ["name"]),
|
|
30685
30685
|
y("div", OP, [
|
|
30686
|
-
O(
|
|
30686
|
+
O(we, {
|
|
30687
30687
|
class: "tagtxt",
|
|
30688
30688
|
text: je.name + "" || "-",
|
|
30689
30689
|
location: "middle",
|
|
@@ -30719,7 +30719,7 @@ const co = (e) => {
|
|
|
30719
30719
|
class: "bindcls"
|
|
30720
30720
|
}, null, 8, ["name"]),
|
|
30721
30721
|
y("div", BP, [
|
|
30722
|
-
O(
|
|
30722
|
+
O(we, {
|
|
30723
30723
|
class: "tagtxt",
|
|
30724
30724
|
text: je.name + "" || "-",
|
|
30725
30725
|
location: "middle",
|
|
@@ -31079,7 +31079,7 @@ const co = (e) => {
|
|
|
31079
31079
|
])
|
|
31080
31080
|
]),
|
|
31081
31081
|
yt(y("div", SN, [
|
|
31082
|
-
(T(!0), L(Oe, null, at(je.list, (Dt,
|
|
31082
|
+
(T(!0), L(Oe, null, at(je.list, (Dt, ke) => (T(), L(Oe, { key: ke }, [
|
|
31083
31083
|
Dt.isShow ? (T(), L("div", AN, [
|
|
31084
31084
|
y("div", IN, Z(Dt.name), 1),
|
|
31085
31085
|
y("div", ON, [
|
|
@@ -31152,8 +31152,8 @@ const co = (e) => {
|
|
|
31152
31152
|
y("div", {
|
|
31153
31153
|
class: j(["bound-tagitem", [Zt.type + "-tag"]]),
|
|
31154
31154
|
style: ot({ fontSize: d(co)(Zt.name) }),
|
|
31155
|
-
onMouseenter: (
|
|
31156
|
-
|
|
31155
|
+
onMouseenter: (ke) => Ln(
|
|
31156
|
+
ke,
|
|
31157
31157
|
Zt.name,
|
|
31158
31158
|
Dt % 2 == 0 ? "left" : "right"
|
|
31159
31159
|
),
|
|
@@ -31165,7 +31165,7 @@ const co = (e) => {
|
|
|
31165
31165
|
class: "bindcls"
|
|
31166
31166
|
}, null, 8, ["name"]),
|
|
31167
31167
|
y("div", zN, [
|
|
31168
|
-
O(
|
|
31168
|
+
O(we, {
|
|
31169
31169
|
class: "tagtxt",
|
|
31170
31170
|
text: Zt.name + "" || "-",
|
|
31171
31171
|
location: "middle",
|
|
@@ -31175,7 +31175,7 @@ const co = (e) => {
|
|
|
31175
31175
|
]),
|
|
31176
31176
|
y("div", {
|
|
31177
31177
|
class: "remove-icon",
|
|
31178
|
-
onClick: (
|
|
31178
|
+
onClick: (ke) => Ze(Zt)
|
|
31179
31179
|
}, [
|
|
31180
31180
|
O(K, {
|
|
31181
31181
|
name: "removeIcon",
|
|
@@ -31671,7 +31671,7 @@ const co = (e) => {
|
|
|
31671
31671
|
ae.value.content.state = Ie.value, vt.value && vt.value.hide();
|
|
31672
31672
|
};
|
|
31673
31673
|
return (Ie, Pe) => {
|
|
31674
|
-
const Ke = no, Le = is, st = $e("anSvgIcon"), At = Ho, qt = hr, Xt = lv, En = iv, Ln = _a, se = B9,
|
|
31674
|
+
const Ke = no, Le = is, st = $e("anSvgIcon"), At = Ho, qt = hr, Xt = lv, En = iv, Ln = _a, se = B9, Te = x9, oe = ls, ue = us;
|
|
31675
31675
|
return T(), re(ue, {
|
|
31676
31676
|
modelValue: De.value,
|
|
31677
31677
|
"onUpdate:modelValue": Pe[14] || (Pe[14] = (Ne) => De.value = Ne),
|
|
@@ -31907,7 +31907,7 @@ const co = (e) => {
|
|
|
31907
31907
|
default: F(() => [
|
|
31908
31908
|
y("div", $N, [
|
|
31909
31909
|
y("span", ex, Z(d(n)("city")), 1),
|
|
31910
|
-
O(
|
|
31910
|
+
O(Te, {
|
|
31911
31911
|
modelValue: ae.value.content.city,
|
|
31912
31912
|
"onUpdate:modelValue": Pe[4] || (Pe[4] = (Ne) => ae.value.content.city = Ne),
|
|
31913
31913
|
filterable: "",
|
|
@@ -33985,43 +33985,43 @@ const OB = /* @__PURE__ */ fe({
|
|
|
33985
33985
|
});
|
|
33986
33986
|
function C() {
|
|
33987
33987
|
console.time("sharegetAllData");
|
|
33988
|
-
const
|
|
33988
|
+
const ke = IB({
|
|
33989
33989
|
...a.data
|
|
33990
33990
|
});
|
|
33991
|
-
m.value =
|
|
33991
|
+
m.value = ke.boundVehiclesList.filter(
|
|
33992
33992
|
(ee) => ee.deviceStatus === 2 && ee.isBindDevice && ee.isBindVehicle
|
|
33993
|
-
), v.value =
|
|
33993
|
+
), v.value = ke.tagListData, p.value = ke.landmarkListData, h.value = ke.landmarkGroupListData, c.value = ke.vehicleIconMap, console.timeEnd("sharegetAllData");
|
|
33994
33994
|
}
|
|
33995
33995
|
let E = "/upload/";
|
|
33996
33996
|
(process.env.NODE_ENV === "development" || process.env.NODE_ENV === "dev") && (E = "https://pro.anytrek.app/upload/");
|
|
33997
33997
|
const I = n, { t: S } = zn(), M = Wl(), { customerHabit: x, modelList: D } = un(jo()), z = () => {
|
|
33998
|
-
var
|
|
33999
|
-
(
|
|
33998
|
+
var ke;
|
|
33999
|
+
(ke = H.value) == null || ke.clearFiles(), et(), I("update:modelValue", !1);
|
|
34000
34000
|
}, V = A([]), G = A([]), $ = A(""), te = A(!1), R = A(!1), U = A(!1), N = A(!1), H = A(), Y = A(!1), ce = A(), ae = P(() => {
|
|
34001
|
-
var
|
|
34002
|
-
return !((
|
|
34003
|
-
}), he = (
|
|
34001
|
+
var ke, ee;
|
|
34002
|
+
return !((ke = x == null ? void 0 : x.value) != null && ke.localTimezone) && ((ee = x == null ? void 0 : x.value) != null && ee.timeZone) ? x.value.timeZone : "";
|
|
34003
|
+
}), he = (ke, ee) => {
|
|
34004
34004
|
var qe;
|
|
34005
|
-
return
|
|
34005
|
+
return ke.type !== 2 || !ee ? "" : ((qe = ee == null ? void 0 : ee[ke.value]) == null ? void 0 : qe.aliasName) || "";
|
|
34006
34006
|
}, Se = () => {
|
|
34007
34007
|
Y.value = !0;
|
|
34008
34008
|
}, _e = () => {
|
|
34009
|
-
U.value = !0, a.getShareHistoryUrl ? a.getShareHistoryUrl().then((
|
|
34009
|
+
U.value = !0, a.getShareHistoryUrl ? a.getShareHistoryUrl().then((ke) => {
|
|
34010
34010
|
var ee, qe;
|
|
34011
|
-
U.value = !1, (ee =
|
|
34011
|
+
U.value = !1, (ee = ke == null ? void 0 : ke.data) != null && ee.length && (V.value = [...ke.data]), B.value.showLogo && !B.value.logoPicture && ((qe = ke == null ? void 0 : ke.data) != null && qe.length) && Ae(V.value[0]);
|
|
34012
34012
|
}).then(() => {
|
|
34013
34013
|
U.value = !1;
|
|
34014
34014
|
}) : U.value = !1;
|
|
34015
|
-
}, Ae = (
|
|
34016
|
-
B.value.logoPicture =
|
|
34015
|
+
}, Ae = (ke) => {
|
|
34016
|
+
B.value.logoPicture = ke, G.value = ke, $.value = E + ke;
|
|
34017
34017
|
}, Ue = () => {
|
|
34018
34018
|
M.error(S("maxUploadNumber1"));
|
|
34019
|
-
}, De = (
|
|
34020
|
-
const qe =
|
|
34021
|
-
return qe ? (te.value = !0, $.value = URL.createObjectURL(
|
|
34022
|
-
}, Ve = async (
|
|
34023
|
-
new FormData().append("file",
|
|
34024
|
-
|
|
34019
|
+
}, De = (ke) => ke.newIcon ? `vehicle-${ke.newIcon}` : c.value.get(ke.value) || "", We = (ke, ee) => {
|
|
34020
|
+
const qe = ke.size / 1024 / 1024 < 1;
|
|
34021
|
+
return qe ? (te.value = !0, $.value = URL.createObjectURL(ke.raw), R.value = qe, R.value && Ve(ke.raw), !1) : (M.error(`${S("uploadFileSizeCannotExceed")} 1MB`), ee.pop(), !1);
|
|
34022
|
+
}, Ve = async (ke) => {
|
|
34023
|
+
new FormData().append("file", ke), ke && oC(
|
|
34024
|
+
ke,
|
|
34025
34025
|
{
|
|
34026
34026
|
height: 80,
|
|
34027
34027
|
quality: 0.1
|
|
@@ -34049,16 +34049,16 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34049
34049
|
(ct = ce.value) == null || ct.handleConfirm();
|
|
34050
34050
|
return;
|
|
34051
34051
|
}
|
|
34052
|
-
const
|
|
34053
|
-
|
|
34052
|
+
const ke = { ...B.value };
|
|
34053
|
+
ke.logoPicture = G.value || "", q.value = !0, ke.aliasNames = { ...u.value }, ke.vehicles = [...s.value], q.value = !0, ke.deadline && (ke.deadline = J(ke.deadline).valueOf());
|
|
34054
34054
|
const ee = [
|
|
34055
34055
|
{
|
|
34056
34056
|
isDelete: 0,
|
|
34057
|
-
content:
|
|
34057
|
+
content: ke
|
|
34058
34058
|
}
|
|
34059
34059
|
];
|
|
34060
34060
|
if ((Mt = a.itemData) != null && Mt.id) {
|
|
34061
|
-
const kt = Bv({ ...st.value }, { ...
|
|
34061
|
+
const kt = Bv({ ...st.value }, { ...ke });
|
|
34062
34062
|
ee[0].id = B.id, ee[0].content = { ...kt };
|
|
34063
34063
|
}
|
|
34064
34064
|
await a.saveFunctionShare(
|
|
@@ -34144,29 +34144,29 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34144
34144
|
}), Ce = A({
|
|
34145
34145
|
name: `6 ${S("Hours")}`,
|
|
34146
34146
|
value: "6h"
|
|
34147
|
-
}), vt = (
|
|
34148
|
-
let ee = ut.find((qe) =>
|
|
34147
|
+
}), vt = (ke) => {
|
|
34148
|
+
let ee = ut.find((qe) => ke === qe.value);
|
|
34149
34149
|
return ee || ut[0];
|
|
34150
|
-
}, Ct = (
|
|
34151
|
-
|
|
34150
|
+
}, Ct = (ke) => {
|
|
34151
|
+
ke === 1 ? B.value.historyStartTime || (B.value.historyStartTime = J().subtract(1, "day").toISOString(), B.value.historyEndTime = (/* @__PURE__ */ new Date()).toISOString()) : (B.value.historyStartTime = "", B.value.historyEndTime = "");
|
|
34152
34152
|
}, Ie = () => {
|
|
34153
34153
|
ge.value = !0, it(() => {
|
|
34154
34154
|
_.value.focus();
|
|
34155
34155
|
});
|
|
34156
|
-
}, Pe = (
|
|
34156
|
+
}, Pe = (ke) => {
|
|
34157
34157
|
Ke(
|
|
34158
34158
|
{
|
|
34159
34159
|
name: S("custom"),
|
|
34160
34160
|
value: "custom"
|
|
34161
34161
|
},
|
|
34162
34162
|
!1,
|
|
34163
|
-
J(
|
|
34163
|
+
J(ke).utc().format()
|
|
34164
34164
|
);
|
|
34165
|
-
}, Ke = (
|
|
34165
|
+
}, Ke = (ke, ee = !0, qe) => {
|
|
34166
34166
|
var kt;
|
|
34167
|
-
be.value = !1, ie.value =
|
|
34167
|
+
be.value = !1, ie.value = ke, B.value.permanent = 0;
|
|
34168
34168
|
let ct = J();
|
|
34169
|
-
switch (
|
|
34169
|
+
switch (ke.value) {
|
|
34170
34170
|
case "1h":
|
|
34171
34171
|
ct = J().add(1, "hour");
|
|
34172
34172
|
break;
|
|
@@ -34190,14 +34190,14 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34190
34190
|
break;
|
|
34191
34191
|
}
|
|
34192
34192
|
const Mt = ct.utc().format();
|
|
34193
|
-
|
|
34194
|
-
}, Le = (
|
|
34195
|
-
Ze.value = !1, Ce.value =
|
|
34193
|
+
ke.value !== "custom" && (B.value.deadline = Mt);
|
|
34194
|
+
}, Le = (ke) => {
|
|
34195
|
+
Ze.value = !1, Ce.value = ke, B.value.trailValue = ke.value;
|
|
34196
34196
|
}, st = A({});
|
|
34197
34197
|
pe(
|
|
34198
34198
|
() => k == null ? void 0 : k.value,
|
|
34199
|
-
(
|
|
34200
|
-
B.value.aliasNames =
|
|
34199
|
+
(ke) => {
|
|
34200
|
+
B.value.aliasNames = ke || {};
|
|
34201
34201
|
},
|
|
34202
34202
|
{
|
|
34203
34203
|
immediate: !0
|
|
@@ -34213,13 +34213,13 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34213
34213
|
}, s.value = [], i.value = {}, u.value = [], st.value = {};
|
|
34214
34214
|
}, qt = A();
|
|
34215
34215
|
let Xt = null;
|
|
34216
|
-
const En = A([]), Ln = (
|
|
34217
|
-
ee && (En.value[
|
|
34218
|
-
}, se = A([]),
|
|
34216
|
+
const En = A([]), Ln = (ke) => (ee) => {
|
|
34217
|
+
ee && (En.value[ke] = ee);
|
|
34218
|
+
}, se = A([]), Te = (ke, ee) => {
|
|
34219
34219
|
const qe = En.value[ee];
|
|
34220
|
-
Ye.value = qe, rt.value = !0, oe(
|
|
34221
|
-
}, oe = (
|
|
34222
|
-
const ee = wn(
|
|
34220
|
+
Ye.value = qe, rt.value = !0, oe(ke);
|
|
34221
|
+
}, oe = (ke) => {
|
|
34222
|
+
const ee = wn(ke), qe = [...ee == null ? void 0 : ee.tag, ...ee == null ? void 0 : ee.vehicle, ...ee == null ? void 0 : ee.landmark];
|
|
34223
34223
|
f.value = { ...ee, infoList: qe }, Ne.value = !0, Xt = qt.value.$el, Xt && Xt.addEventListener("scroll", ue);
|
|
34224
34224
|
};
|
|
34225
34225
|
function ue() {
|
|
@@ -34231,11 +34231,11 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34231
34231
|
Xt && Xt.removeEventListener("scroll", ue);
|
|
34232
34232
|
} catch {
|
|
34233
34233
|
}
|
|
34234
|
-
}, Xe = (
|
|
34235
|
-
k.value = { ...k.value, ...
|
|
34236
|
-
}, wt = (
|
|
34234
|
+
}, Xe = (ke) => {
|
|
34235
|
+
k.value = { ...k.value, ...ke || {} };
|
|
34236
|
+
}, wt = (ke) => {
|
|
34237
34237
|
const ee = m.value.find(
|
|
34238
|
-
(qe) => qe.vehicleId ===
|
|
34238
|
+
(qe) => qe.vehicleId === ke
|
|
34239
34239
|
);
|
|
34240
34240
|
return ee ? {
|
|
34241
34241
|
value: ee == null ? void 0 : ee.vehicleId,
|
|
@@ -34243,12 +34243,12 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34243
34243
|
newIcon: ee == null ? void 0 : ee.newIcon,
|
|
34244
34244
|
type: 2
|
|
34245
34245
|
} : null;
|
|
34246
|
-
}, fn = (
|
|
34247
|
-
...v.value.find((qe) => qe.value ===
|
|
34246
|
+
}, fn = (ke) => ({
|
|
34247
|
+
...v.value.find((qe) => qe.value === ke),
|
|
34248
34248
|
type: 1
|
|
34249
|
-
}), en = (
|
|
34249
|
+
}), en = (ke) => ({ ...p.value.find((qe) => qe.value === ke), type: 3 }), wn = (ke) => {
|
|
34250
34250
|
var Sn, Dn, da;
|
|
34251
|
-
const ee = v.value.find((Xn) => Xn.value ===
|
|
34251
|
+
const ee = v.value.find((Xn) => Xn.value === ke), qe = ee == null ? void 0 : ee.content, ct = [];
|
|
34252
34252
|
(Sn = qe == null ? void 0 : qe.tag) == null || Sn.map((Xn) => {
|
|
34253
34253
|
let vn = fn(Xn);
|
|
34254
34254
|
vn && !ct.some((aa) => aa.id === vn.id) && ct.push(vn);
|
|
@@ -34269,14 +34269,14 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34269
34269
|
tagName: ee == null ? void 0 : ee.label,
|
|
34270
34270
|
tagId: ee == null ? void 0 : ee.value
|
|
34271
34271
|
};
|
|
34272
|
-
}, ve = (
|
|
34273
|
-
k.value[ee] ? k.value[ee].aliasName =
|
|
34274
|
-
aliasName:
|
|
34272
|
+
}, ve = (ke, ee) => {
|
|
34273
|
+
k.value[ee] ? k.value[ee].aliasName = ke : k.value[ee] = {
|
|
34274
|
+
aliasName: ke
|
|
34275
34275
|
};
|
|
34276
|
-
}, ne = (
|
|
34277
|
-
k.value[ee.value] && delete k.value[ee.value], b.value.splice(
|
|
34278
|
-
}, de = (
|
|
34279
|
-
b.value = [...
|
|
34276
|
+
}, ne = (ke, ee) => {
|
|
34277
|
+
k.value[ee.value] && delete k.value[ee.value], b.value.splice(ke, 1);
|
|
34278
|
+
}, de = (ke, ee) => {
|
|
34279
|
+
b.value = [...ke], k.value = { ...u.value, ...ee || {} };
|
|
34280
34280
|
};
|
|
34281
34281
|
t({
|
|
34282
34282
|
openAdd: () => {
|
|
@@ -34286,9 +34286,9 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34286
34286
|
}
|
|
34287
34287
|
}), pe(
|
|
34288
34288
|
() => St.value,
|
|
34289
|
-
(
|
|
34289
|
+
(ke) => {
|
|
34290
34290
|
var ee, qe;
|
|
34291
|
-
if (Y.value = !1, C(),
|
|
34291
|
+
if (Y.value = !1, C(), ke)
|
|
34292
34292
|
if (_e(), (ee = a.itemData) != null && ee.id) {
|
|
34293
34293
|
const ct = { ...a.itemData, ...a.itemData.content || {} }, Mt = {
|
|
34294
34294
|
creatTime: ct.createTime,
|
|
@@ -34331,24 +34331,24 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34331
34331
|
immediate: !0
|
|
34332
34332
|
}
|
|
34333
34333
|
);
|
|
34334
|
-
const K = (
|
|
34334
|
+
const K = (ke) => {
|
|
34335
34335
|
var ee;
|
|
34336
34336
|
return (((ee = a.data) == null ? void 0 : ee.tagList) || []).filter((qe) => {
|
|
34337
34337
|
var ct, Mt;
|
|
34338
|
-
return !!((Mt = (ct = qe.content) == null ? void 0 : ct.vehicle) != null && Mt.length && qe.content.vehicle.findIndex((kt) => kt ===
|
|
34338
|
+
return !!((Mt = (ct = qe.content) == null ? void 0 : ct.vehicle) != null && Mt.length && qe.content.vehicle.findIndex((kt) => kt === ke) !== -1);
|
|
34339
34339
|
});
|
|
34340
|
-
},
|
|
34340
|
+
}, we = (ke, ee = "deviceId") => {
|
|
34341
34341
|
var qe;
|
|
34342
|
-
return (((qe = a.data) == null ? void 0 : qe.vehicleDeviceList) || []).find((ct) => ct[ee] ===
|
|
34342
|
+
return (((qe = a.data) == null ? void 0 : qe.vehicleDeviceList) || []).find((ct) => ct[ee] === ke);
|
|
34343
34343
|
}, nt = A(!1), pt = A({}), Tn = () => {
|
|
34344
34344
|
pt.value = {}, nt.value = !0;
|
|
34345
|
-
}, Ft = (
|
|
34345
|
+
}, Ft = (ke) => {
|
|
34346
34346
|
var qe, ct, Mt, kt, bn, Sn, Dn, da, Xn;
|
|
34347
34347
|
let ee = (((qe = a.data) == null ? void 0 : qe.vehicleList) || []).find(
|
|
34348
|
-
(vn) =>
|
|
34348
|
+
(vn) => ke.id === vn.id
|
|
34349
34349
|
);
|
|
34350
34350
|
if (ee) {
|
|
34351
|
-
let vn = K(ee.id), aa =
|
|
34351
|
+
let vn = K(ee.id), aa = we(ee.id, "vehicleId");
|
|
34352
34352
|
pt.value = {
|
|
34353
34353
|
id: ee.id,
|
|
34354
34354
|
name: ee.name,
|
|
@@ -34367,51 +34367,51 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34367
34367
|
}
|
|
34368
34368
|
}, Un = A(!1), ua = () => {
|
|
34369
34369
|
pt.value = {}, Un.value = !0;
|
|
34370
|
-
}, yn = (
|
|
34370
|
+
}, yn = (ke) => {
|
|
34371
34371
|
var qe;
|
|
34372
34372
|
let ee = (((qe = a.data) == null ? void 0 : qe.landmarkList) || []).find(
|
|
34373
|
-
(ct) => ct.id ===
|
|
34373
|
+
(ct) => ct.id === ke.id
|
|
34374
34374
|
);
|
|
34375
34375
|
ee && (pt.value = {
|
|
34376
34376
|
...ee,
|
|
34377
34377
|
...ee.content || {}
|
|
34378
34378
|
}, Un.value = !0);
|
|
34379
|
-
}, ha = (
|
|
34379
|
+
}, ha = (ke, ee) => {
|
|
34380
34380
|
var Mt, kt, bn, Sn;
|
|
34381
|
-
if (!
|
|
34381
|
+
if (!ke || ke.length === 0)
|
|
34382
34382
|
return [];
|
|
34383
34383
|
const qe = {};
|
|
34384
34384
|
qe.vehicle = ((Mt = a.data) == null ? void 0 : Mt.vehicleList) || [], qe.device = ((kt = a.data) == null ? void 0 : kt.deviceList) || [], qe.tag = ((bn = a.data) == null ? void 0 : bn.tagList) || [], qe.landmark = ((Sn = a.data) == null ? void 0 : Sn.landmarkList) || [];
|
|
34385
34385
|
let ct = [];
|
|
34386
34386
|
return qe[ee].map((Dn) => {
|
|
34387
|
-
|
|
34387
|
+
ke.findIndex((da) => da === Dn.id) !== -1 && ct.push({
|
|
34388
34388
|
id: Dn.id,
|
|
34389
34389
|
name: ee === "device" ? Dn.userPackageId : Dn.name
|
|
34390
34390
|
});
|
|
34391
34391
|
}), ct;
|
|
34392
34392
|
}, Ua = A(!1), xn = () => {
|
|
34393
34393
|
pt.value = {}, Ua.value = !0;
|
|
34394
|
-
}, je = (
|
|
34394
|
+
}, je = (ke) => {
|
|
34395
34395
|
var ee, qe, ct, Mt, kt;
|
|
34396
34396
|
pt.value = {
|
|
34397
|
-
id:
|
|
34398
|
-
name:
|
|
34397
|
+
id: ke.id,
|
|
34398
|
+
name: ke.name,
|
|
34399
34399
|
tagType: "landmark",
|
|
34400
|
-
description:
|
|
34400
|
+
description: ke.description || ((ee = ke.content) == null ? void 0 : ee.description),
|
|
34401
34401
|
content: {
|
|
34402
|
-
landmark: ha(
|
|
34403
|
-
vehicle: ha(
|
|
34404
|
-
device: ha(
|
|
34405
|
-
tag: ha(
|
|
34402
|
+
landmark: ha(ke.landmark || ((qe = ke.content) == null ? void 0 : qe.landmark) || [], "landmark"),
|
|
34403
|
+
vehicle: ha(ke.vehicle || ((ct = ke.content) == null ? void 0 : ct.vehicle) || [], "vehicle"),
|
|
34404
|
+
device: ha(ke.device || ((Mt = ke.content) == null ? void 0 : Mt.device) || [], "device"),
|
|
34405
|
+
tag: ha(ke.tag || ((kt = ke.content) == null ? void 0 : kt.tag) || [], "tag")
|
|
34406
34406
|
}
|
|
34407
34407
|
}, Ua.value = !0;
|
|
34408
34408
|
};
|
|
34409
|
-
function Zt(
|
|
34410
|
-
Dt(ee,
|
|
34409
|
+
function Zt(ke, ee) {
|
|
34410
|
+
Dt(ee, ke.value);
|
|
34411
34411
|
}
|
|
34412
|
-
function Dt(
|
|
34412
|
+
function Dt(ke, ee) {
|
|
34413
34413
|
var qe, ct, Mt;
|
|
34414
|
-
switch (
|
|
34414
|
+
switch (ke) {
|
|
34415
34415
|
case 1:
|
|
34416
34416
|
if (ee) {
|
|
34417
34417
|
let kt = (((qe = a.data) == null ? void 0 : qe.tagList) || []).find(
|
|
@@ -34441,7 +34441,7 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34441
34441
|
break;
|
|
34442
34442
|
}
|
|
34443
34443
|
}
|
|
34444
|
-
return (
|
|
34444
|
+
return (ke, ee) => {
|
|
34445
34445
|
const qe = hr, ct = $e("anSvgIcon"), Mt = no, kt = is, bn = $e("DynamicScrollerItem"), Sn = $e("DynamicScroller"), Dn = l9, da = i9, Xn = zu, vn = uv, aa = lv, Ts = iv, Cs = $e("anytrekTimerangePick"), Es = tT, on = K7, _o = bv, ye = ET, le = ls, Fe = pr, Tt = us, Re = Ho, ft = $e("add-or-edit-vehicle"), Jn = $e("add-or-edit-tag"), pn = $e("add-or-edit-landmark"), Ga = ms;
|
|
34446
34446
|
return T(), L(Oe, null, [
|
|
34447
34447
|
O(Tt, {
|
|
@@ -34533,7 +34533,7 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34533
34533
|
name: Lt.label,
|
|
34534
34534
|
icon: De(Lt),
|
|
34535
34535
|
"read-only": d(r),
|
|
34536
|
-
onShowTag: (Oa) =>
|
|
34536
|
+
onShowTag: (Oa) => Te(Lt.value, $n),
|
|
34537
34537
|
type: Lt.type,
|
|
34538
34538
|
ref_for: !0,
|
|
34539
34539
|
ref: Ln($n),
|
|
@@ -34560,7 +34560,7 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34560
34560
|
name: Lt.label,
|
|
34561
34561
|
icon: De(Lt),
|
|
34562
34562
|
"read-only": d(r),
|
|
34563
|
-
onShowTag: (Oa) =>
|
|
34563
|
+
onShowTag: (Oa) => Te(Lt.value, $n + 1),
|
|
34564
34564
|
ref_for: !0,
|
|
34565
34565
|
ref: Ln($n + 1),
|
|
34566
34566
|
type: Lt.type,
|
|
@@ -34599,7 +34599,7 @@ const OB = /* @__PURE__ */ fe({
|
|
|
34599
34599
|
name: Lt.label,
|
|
34600
34600
|
icon: De(Lt),
|
|
34601
34601
|
"read-only": d(r),
|
|
34602
|
-
onShowTag: (xe) =>
|
|
34602
|
+
onShowTag: (xe) => Te(Lt.value, $n),
|
|
34603
34603
|
ref: Ln($n),
|
|
34604
34604
|
type: Lt.type,
|
|
34605
34605
|
content: Lt == null ? void 0 : Lt.content,
|
|
@@ -35158,7 +35158,7 @@ const OB = /* @__PURE__ */ fe({
|
|
|
35158
35158
|
], 64);
|
|
35159
35159
|
};
|
|
35160
35160
|
}
|
|
35161
|
-
}), QV = /* @__PURE__ */ _t(KV, [["__scopeId", "data-v-
|
|
35161
|
+
}), QV = /* @__PURE__ */ _t(KV, [["__scopeId", "data-v-e0526f1f"]]), qV = { key: 0 }, XV = ["xlink:href"], JV = /* @__PURE__ */ fe({
|
|
35162
35162
|
__name: "svg-icon",
|
|
35163
35163
|
props: {
|
|
35164
35164
|
prefix: { default: "any-icon" },
|