nxd-plugin 1.8.37 → 1.8.39
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/chunks/YCServiceSummary-CP4xYmeZ.mjs +2 -0
- package/dist/chunks/{component-Agent-DqXO06Ql.mjs → component-Agent-Cm2BEfcV.mjs} +2451 -2405
- package/dist/chunks/{component-AiChat-C8NFYtVc.mjs → component-AiChat-C0nCRTDL.mjs} +202 -202
- package/dist/chunks/{component-AqiMonitor-WvrknfI9.mjs → component-AqiMonitor-buvqeOgY.mjs} +9 -9
- package/dist/chunks/{component-ChartCumulativePre-B9Prk8Sx.mjs → component-ChartCumulativePre-C4PgcnVy.mjs} +7 -7
- package/dist/chunks/{component-ChartServiceMaterial-dSZ_Pec0.mjs → component-ChartServiceMaterial-C7a1Qqo_.mjs} +6 -6
- package/dist/chunks/{component-Duty-CcPTE385.mjs → component-Duty-DOs3Ug6k.mjs} +6 -6
- package/dist/chunks/{component-EarlyWarningStatistic-Ug-1jfiU.mjs → component-EarlyWarningStatistic-CXmSRC_Z.mjs} +6 -6
- package/dist/chunks/{component-EarlyWarningStatistic2-BnZqgK4P.mjs → component-EarlyWarningStatistic2-DBipE3hf.mjs} +15 -15
- package/dist/chunks/{component-Forecast72h-5DGIhVUd.mjs → component-Forecast72h-CU8p9veB.mjs} +16 -16
- package/dist/chunks/{component-GeologyLiveAlarm-Bg710d1g.mjs → component-GeologyLiveAlarm-Br4JKabm.mjs} +7 -7
- package/dist/chunks/{component-GridForecastMsg-D0jzurbN.mjs → component-GridForecastMsg-8ERFdIt7.mjs} +8 -8
- package/dist/chunks/{component-HDSeaLegend-D5FWHvmR.mjs → component-HDSeaLegend-DQXZYgpR.mjs} +2 -2
- package/dist/chunks/{component-HdCameraList-4ArboSf0.mjs → component-HdCameraList-CzJDCIUd.mjs} +151 -150
- package/dist/chunks/{component-HdFarmStation-D9qZ2csY.mjs → component-HdFarmStation-Bw9K6NJn.mjs} +11 -11
- package/dist/chunks/{component-HdFarmStationDialog-DHGlfkae.mjs → component-HdFarmStationDialog-jR-LBbQP.mjs} +33 -33
- package/dist/chunks/{component-HdForecastProducts-qj9Yzh7D.mjs → component-HdForecastProducts-TXRVg26S.mjs} +10 -10
- package/dist/chunks/{component-HdHeatChart-Br63YpFN.mjs → component-HdHeatChart-DZak9Ft6.mjs} +12 -12
- package/dist/chunks/{component-HdHeatChartDialog-DOkB8heB.mjs → component-HdHeatChartDialog-D1fXxl0L.mjs} +11 -11
- package/dist/chunks/{component-HdHeatService-BeUpAmBA.mjs → component-HdHeatService-B6jbZMfm.mjs} +34 -34
- package/dist/chunks/{component-HdInsectDetailList-C9tAtciq.mjs → component-HdInsectDetailList-B3sikKhM.mjs} +16 -16
- package/dist/chunks/{component-HdInsectList-pU1-mQ-C.mjs → component-HdInsectList-BhwtKWGc.mjs} +18 -18
- package/dist/chunks/{component-HdMajorActivity-DSPYsbdQ.mjs → component-HdMajorActivity-EC4Hvfqb.mjs} +23 -23
- package/dist/chunks/{component-HdObservation-osOGizJv.mjs → component-HdObservation-DZLNEWhN.mjs} +10 -10
- package/dist/chunks/{component-HdPreSituation-Ca_d4L11.mjs → component-HdPreSituation-DBGR2Ryu.mjs} +9 -9
- package/dist/chunks/{component-HdQxServiceEffects-CtlLJVdx.mjs → component-HdQxServiceEffects-dREiY6bN.mjs} +10 -10
- package/dist/chunks/{component-HdRadarList-CgWMdwBo.mjs → component-HdRadarList-BxHqX6lK.mjs} +3 -3
- package/dist/chunks/{component-HdRadarTime-Bp7D80GJ.mjs → component-HdRadarTime-BmXlFJFB.mjs} +12 -12
- package/dist/chunks/{component-HdRadarTimeLine-DfOce6fK.mjs → component-HdRadarTimeLine-DuKt7347.mjs} +13 -13
- package/dist/chunks/{component-HdRisk-Bd3if-1-.mjs → component-HdRisk-CAF1JxIu.mjs} +11 -11
- package/dist/chunks/{component-HdSeaCase-CbY3FsOy.mjs → component-HdSeaCase-DVhbtYSc.mjs} +26 -26
- package/dist/chunks/{component-HdServiceMarterial-B7FEviHO.mjs → component-HdServiceMarterial-CAXKIPOW.mjs} +17 -17
- package/dist/chunks/{component-HdServiceRequirements-DKJ8uQja.mjs → component-HdServiceRequirements-ByhUd4ey.mjs} +13 -13
- package/dist/chunks/{component-HdSoil-ztBxJspH.mjs → component-HdSoil-qNATYOOB.mjs} +11 -11
- package/dist/chunks/{component-HdSoilDetailList-1gMQt-uL.mjs → component-HdSoilDetailList-BbihIcJ9.mjs} +12 -12
- package/dist/chunks/{component-HdStationTem-DfJ0I_2S.mjs → component-HdStationTem-C7eTBEla.mjs} +17 -17
- package/dist/chunks/{component-HdSuggestion-FXvLu_OD.mjs → component-HdSuggestion-BGz6-uaw.mjs} +13 -13
- package/dist/chunks/{component-HdThreeWeatherTrend-DGLSVUb8.mjs → component-HdThreeWeatherTrend-CZTzNuEZ.mjs} +18 -18
- package/dist/chunks/{component-HdWaveForcast-dTEB0h8d.mjs → component-HdWaveForcast-CFfbmxOJ.mjs} +11 -11
- package/dist/chunks/{component-HighQuality-DZGJXvJC.mjs → component-HighQuality-qHBWb-O7.mjs} +16 -16
- package/dist/chunks/{component-HighWayEarlyWarningRed-F0q1FCTw.mjs → component-HighWayEarlyWarningRed-D5xK5D0V.mjs} +16 -16
- package/dist/chunks/{component-HighWayFreeze-d4Xwkwf1.mjs → component-HighWayFreeze-Bfzy5Py4.mjs} +8 -8
- package/dist/chunks/{component-HighwayLiveAlarm-ChAdlgNB.mjs → component-HighwayLiveAlarm-C0NVxNlc.mjs} +6 -6
- package/dist/chunks/{component-HighwayLiveAlarmNew-B-KnOey_.mjs → component-HighwayLiveAlarmNew-BkPc1uHT.mjs} +11 -11
- package/dist/chunks/{component-HighwayStations-CknEywO_.mjs → component-HighwayStations-gLCzqaFg.mjs} +6 -6
- package/dist/chunks/{component-HighwayWeatherForecast-B4szOq2G.mjs → component-HighwayWeatherForecast-Di4k_gXe.mjs} +9 -9
- package/dist/chunks/{component-IframeWeb-iDh9lrPn.mjs → component-IframeWeb-BI6ARPim.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-CsIZ2Kz2.mjs → component-ImageGeneration-HZcmty4a.mjs} +2 -2
- package/dist/chunks/{component-IntroducePic-BggfUWvz.mjs → component-IntroducePic-BzcpXcDu.mjs} +13 -13
- package/dist/chunks/{component-LithiumBatteryMiningArea-RpuBju1r.mjs → component-LithiumBatteryMiningArea-CWmowyvH.mjs} +12 -12
- package/dist/chunks/{component-MapPopup-LFWUnUl3.mjs → component-MapPopup-BMpK3HDv.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-DvNKoDNy.mjs → component-MaterialPreview-opXV5MsP.mjs} +5 -5
- package/dist/chunks/{component-PieLegend-B2Nor3pz.mjs → component-PieLegend-DbYkitpz.mjs} +1 -1
- package/dist/chunks/{component-PrecipitationRanking-ClwjH24B.mjs → component-PrecipitationRanking-DCkl4WcA.mjs} +27 -27
- package/dist/chunks/{component-RadarChart-BMoy8MXR.mjs → component-RadarChart-elpvJJcV.mjs} +10 -10
- package/dist/chunks/{component-RadarLegend-rXlAb8lF.mjs → component-RadarLegend-CooXza3E.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-4RS7HYWc.mjs → component-RadarShortTerm-CThl2lDU.mjs} +20 -20
- package/dist/chunks/{component-RadarTime-W1ZVEA9e.mjs → component-RadarTime-CvudM45Q.mjs} +18 -18
- package/dist/chunks/{component-RenderMarkdown-DO4bEFoj.mjs → component-RenderMarkdown-hrLIIwgE.mjs} +6 -6
- package/dist/chunks/{component-ReservoirLiveAlarm-ZD1RSFHm.mjs → component-ReservoirLiveAlarm-CzZpNTun.mjs} +8 -8
- package/dist/chunks/{component-ServiceMaterial-DrxeAmRt.mjs → component-ServiceMaterial-9oH_DZq1.mjs} +9 -9
- package/dist/chunks/{component-ServiceMaterialsBtn-CZFRzpDr.mjs → component-ServiceMaterialsBtn-ckhadvV7.mjs} +2 -2
- package/dist/chunks/{component-StationDialog-NhNr3lY1.mjs → component-StationDialog-XTeGI3qA.mjs} +9 -9
- package/dist/chunks/{component-StationList-CSU1nUgF.mjs → component-StationList-rrmZM7q1.mjs} +9 -9
- package/dist/chunks/{component-TimeBasedForecast-BObdyMNh.mjs → component-TimeBasedForecast-C8eEmt7r.mjs} +10 -10
- package/dist/chunks/{component-Typhoon-AxGQ8VuM.mjs → component-Typhoon-RsStDsjO.mjs} +16 -16
- package/dist/chunks/{component-WarningLine-Biz0NEC8.mjs → component-WarningLine-gmXFFeUv.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-D5ux6LCy.mjs → component-WarningSignal-CjQjyTr4.mjs} +17 -17
- package/dist/chunks/{component-WeatherForecast-DnvELAB8.mjs → component-WeatherForecast-CtNxOx9i.mjs} +16 -16
- package/dist/chunks/{component-YCDataMonitor-Dumu7_mw.mjs → component-YCDataMonitor-CI7XRJ83.mjs} +16 -16
- package/dist/chunks/{component-YCDataService-CibX3y21.mjs → component-YCDataService-DkIDLzWF.mjs} +10 -10
- package/dist/chunks/{component-YCHighWaySummary-B4rfNY9B.mjs → component-YCHighWaySummary-B3VElvls.mjs} +7 -7
- package/dist/chunks/{component-YCHome-BgH2uOoL.mjs → component-YCHome-CiN9AggT.mjs} +36 -36
- package/dist/chunks/{component-YCHomeLegend-BpForfu4.mjs → component-YCHomeLegend-DzDo8zz6.mjs} +2 -2
- package/dist/chunks/{component-YCLoginNew-BsQr4jFy.mjs → component-YCLoginNew-IfVsyv0t.mjs} +23 -23
- package/dist/chunks/{component-YCServiceSummary-CnnEfTaE.mjs → component-YCServiceSummary-Dy_GyJoy.mjs} +161 -161
- package/dist/nxd-plugin.mjs +73 -73
- package/dist/styles/component-Agent.css +1 -1
- package/dist/styles/component-RadarShortTerm.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/YCServiceSummary-tHEqhFHj.mjs +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./component-AqiMonitor-
|
|
2
|
-
import {
|
|
1
|
+
import "./component-AqiMonitor-buvqeOgY.mjs";
|
|
2
|
+
import { g as e, p as t } from "./component-Agent-Cm2BEfcV.mjs";
|
|
3
3
|
import { createElementBlock as n, createElementVNode as r, createTextVNode as i, defineComponent as a, onBeforeUnmount as o, onMounted as s, openBlock as c, ref as l, toDisplayString as u } from "vue";
|
|
4
4
|
//#region src/components/YCHighWaySummary/YCHighWaySummary.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var d = { class: "YCHighWaySummary" }, f = { class: "YCHighWaySummary__body" }, p = { class: "YCHighWaySummary__section" }, m = { class: "YCHighWaySummary__section" }, h = /* @__PURE__ */
|
|
5
|
+
var d = { class: "YCHighWaySummary" }, f = { class: "YCHighWaySummary__body" }, p = { class: "YCHighWaySummary__section" }, m = { class: "YCHighWaySummary__section" }, h = /* @__PURE__ */ t(/* @__PURE__ */ a({
|
|
6
6
|
__name: "YCHighWaySummary",
|
|
7
7
|
props: {
|
|
8
8
|
appKey: {
|
|
@@ -22,8 +22,8 @@ var d = { class: "YCHighWaySummary" }, f = { class: "YCHighWaySummary__body" },
|
|
|
22
22
|
default: () => ({})
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
let h = a, g =
|
|
25
|
+
setup(t, { emit: a }) {
|
|
26
|
+
let h = a, g = t, _ = l(""), v = l(""), y = l(null);
|
|
27
27
|
s(() => {
|
|
28
28
|
b(), y.value = setInterval(() => {
|
|
29
29
|
b();
|
|
@@ -32,7 +32,7 @@ var d = { class: "YCHighWaySummary" }, f = { class: "YCHighWaySummary__body" },
|
|
|
32
32
|
y.value &&= (clearInterval(y.value), null);
|
|
33
33
|
});
|
|
34
34
|
let b = async () => {
|
|
35
|
-
_.value = (await
|
|
35
|
+
_.value = (await e({
|
|
36
36
|
appKey: g.appKey,
|
|
37
37
|
appSalt: g.appSalt,
|
|
38
38
|
id: g.ids.realtime.id,
|
|
@@ -40,7 +40,7 @@ var d = { class: "YCHighWaySummary" }, f = { class: "YCHighWaySummary__body" },
|
|
|
40
40
|
baseHttp: g.baseHttp,
|
|
41
41
|
reqType: g.ids.realtime.reqType,
|
|
42
42
|
isFormData: g.ids.realtime.isFormData
|
|
43
|
-
})).data?.result?.analyzeData || "", v.value = (await
|
|
43
|
+
})).data?.result?.analyzeData || "", v.value = (await e({
|
|
44
44
|
appKey: g.appKey,
|
|
45
45
|
appSalt: g.appSalt,
|
|
46
46
|
id: g.ids.forecast.id,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./component-Forecast72h-
|
|
3
|
-
import { n } from "./component-AiChat-
|
|
4
|
-
import { n as r } from "./component-LithiumBatteryMiningArea-
|
|
1
|
+
import { g as e, p as t } from "./component-Agent-Cm2BEfcV.mjs";
|
|
2
|
+
import "./component-Forecast72h-CU8p9veB.mjs";
|
|
3
|
+
import { n } from "./component-AiChat-C0nCRTDL.mjs";
|
|
4
|
+
import { n as r } from "./component-LithiumBatteryMiningArea-CWmowyvH.mjs";
|
|
5
5
|
import { ElButton as i, ElDialog as ee, ElForm as te, ElFormItem as ne, ElIcon as re, ElInput as ie } from "element-plus/es";
|
|
6
6
|
import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createStaticVNode as u, createTextVNode as d, createVNode as f, normalizeClass as p, normalizeStyle as ae, onBeforeUnmount as m, onMounted as h, openBlock as g, reactive as _, ref as v, renderList as y, toDisplayString as b, unref as x, withCtx as S, withKeys as oe, withModifiers as se } from "vue";
|
|
7
7
|
import { ArrowLeft as ce, ArrowRight as le, Lock as ue, User as de } from "@element-plus/icons-vue";
|
|
@@ -41,7 +41,7 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
41
41
|
}, Le = { class: "main-shift-name" }, Re = {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "duty-section"
|
|
44
|
-
}, ze = ["innerHTML"], Be = { class: "dialog-footer" }, j = /* @__PURE__ */
|
|
44
|
+
}, ze = ["innerHTML"], Be = { class: "dialog-footer" }, j = /* @__PURE__ */ t({
|
|
45
45
|
__name: "YCHome",
|
|
46
46
|
props: {
|
|
47
47
|
appKey: {
|
|
@@ -94,8 +94,8 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
emits: ["toPage", "openPagePop"],
|
|
97
|
-
setup(
|
|
98
|
-
let M =
|
|
97
|
+
setup(t, { emit: j }) {
|
|
98
|
+
let M = t, N = j, P = v(!0), F = v(!1), I = v({
|
|
99
99
|
x: 0,
|
|
100
100
|
y: 0
|
|
101
101
|
}), L = v({
|
|
@@ -274,7 +274,7 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
274
274
|
document.removeEventListener("mousemove", Q), document.removeEventListener("mouseup", $), clearInterval(U.value);
|
|
275
275
|
});
|
|
276
276
|
let Ge = async () => {
|
|
277
|
-
let
|
|
277
|
+
let t = (await e({
|
|
278
278
|
appKey: M.appKey,
|
|
279
279
|
appSalt: M.appSalt,
|
|
280
280
|
id: M.ids.data.id,
|
|
@@ -283,14 +283,14 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
283
283
|
reqType: M.ids.data.reqType,
|
|
284
284
|
isFormData: M.ids.data.isFormData
|
|
285
285
|
})).data.result.output;
|
|
286
|
-
!
|
|
287
|
-
let r =
|
|
288
|
-
r && (
|
|
286
|
+
!t || t.length === 0 || (W.value.forEach((e, n) => {
|
|
287
|
+
let r = t.find((t) => t.web_page === e.url);
|
|
288
|
+
r && (e.title = r.menu_name), J && J.length > 0 ? J.find((t) => t.web_page === e.url) && (e.show = !0) : e.show = !0;
|
|
289
289
|
}), Y(), X(), M.showDutyAndFollow && (U.value = setInterval(() => {
|
|
290
290
|
Y(), X();
|
|
291
291
|
}, 1e3 * 60 * 10)));
|
|
292
292
|
}, Y = async () => {
|
|
293
|
-
K.value = (await
|
|
293
|
+
K.value = (await e({
|
|
294
294
|
appKey: M.appKey,
|
|
295
295
|
appSalt: M.appSalt,
|
|
296
296
|
id: M.ids.duty.id,
|
|
@@ -300,7 +300,7 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
300
300
|
isFormData: M.ids.duty.isFormData
|
|
301
301
|
})).data.result.output || [];
|
|
302
302
|
}, X = async () => {
|
|
303
|
-
q.value = (await
|
|
303
|
+
q.value = (await e({
|
|
304
304
|
appKey: M.appKey,
|
|
305
305
|
appSalt: M.appSalt,
|
|
306
306
|
id: M.ids.follow.id,
|
|
@@ -319,58 +319,58 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
319
319
|
}), window.sessionStorage.setItem("user", JSON.stringify({ id: 1 })), B.value = !1, N("toPage", He.value?.url);
|
|
320
320
|
}, 1e3));
|
|
321
321
|
});
|
|
322
|
-
}, Ke = (
|
|
322
|
+
}, Ke = (t) => {
|
|
323
323
|
let n = window.localStorage.getItem("uName"), i = window.localStorage.getItem("uPwd");
|
|
324
|
-
if (
|
|
324
|
+
if (e({
|
|
325
325
|
appKey: M.appKey,
|
|
326
326
|
appSalt: M.appSalt,
|
|
327
327
|
id: M.ids.log.id,
|
|
328
328
|
variables: {
|
|
329
|
-
action_name:
|
|
329
|
+
action_name: t.title,
|
|
330
330
|
action_type: "大屏系统-外网"
|
|
331
331
|
},
|
|
332
332
|
baseHttp: M.baseHttp,
|
|
333
333
|
reqType: M.ids.log.reqType,
|
|
334
334
|
isFormData: M.ids.log.isFormData
|
|
335
|
-
}),
|
|
336
|
-
let
|
|
337
|
-
n && i && (
|
|
338
|
-
title:
|
|
339
|
-
url:
|
|
335
|
+
}), t.url === "/public") {
|
|
336
|
+
let e = M.publicUrl;
|
|
337
|
+
n && i && (e += `?account=${r.decode(n)}&password=${r.decode(i)}&t=${Date.now()}`), N("openPagePop", {
|
|
338
|
+
title: t.title,
|
|
339
|
+
url: e.includes("?") ? e += "&t=" + Date.now() : e += "?t=" + Date.now()
|
|
340
340
|
});
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
|
-
if (
|
|
344
|
-
let
|
|
345
|
-
n && i && (
|
|
346
|
-
title:
|
|
347
|
-
url:
|
|
343
|
+
if (t.url === "/agriculture") {
|
|
344
|
+
let e = M.agrUrl;
|
|
345
|
+
n && i && (e += `?account=${r.decode(n)}&password=${r.decode(i)}&t=${Date.now()}`), N("openPagePop", {
|
|
346
|
+
title: t.title,
|
|
347
|
+
url: e.includes("?") ? e += "&t=" + Date.now() : e += "?t=" + Date.now()
|
|
348
348
|
});
|
|
349
349
|
return;
|
|
350
350
|
}
|
|
351
|
-
if (
|
|
352
|
-
let
|
|
353
|
-
n && i && (
|
|
354
|
-
title:
|
|
355
|
-
url:
|
|
351
|
+
if (t.url === "/decision") {
|
|
352
|
+
let e = M.decisionUrl;
|
|
353
|
+
n && i && (e += `?account=${r.decode(n)}&password=${r.decode(i)}&t=${Date.now()}`), N("openPagePop", {
|
|
354
|
+
title: t.title,
|
|
355
|
+
url: e.includes("?") ? e += "&t=" + Date.now() : e += "?t=" + Date.now()
|
|
356
356
|
});
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
|
-
if (
|
|
359
|
+
if (t.url === "/center") {
|
|
360
360
|
N("openPagePop", {
|
|
361
|
-
title:
|
|
361
|
+
title: t.title,
|
|
362
362
|
url: M.centerUrl.includes("?") ? M.centerUrl += "&t=" + Date.now() : M.centerUrl += "?t=" + Date.now()
|
|
363
363
|
});
|
|
364
364
|
return;
|
|
365
365
|
}
|
|
366
|
-
if (
|
|
366
|
+
if (t.url === "/stations") {
|
|
367
367
|
N("openPagePop", {
|
|
368
|
-
title:
|
|
368
|
+
title: t.title,
|
|
369
369
|
url: M.stationsUrl.includes("?") ? M.stationsUrl += "&t=" + Date.now() : M.stationsUrl += "?t=" + Date.now()
|
|
370
370
|
});
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
|
-
N("toPage",
|
|
373
|
+
N("toPage", t.url);
|
|
374
374
|
}, Q = (e) => {
|
|
375
375
|
if (!F.value) return;
|
|
376
376
|
let t = e.clientX - L.value.x, n = e.clientY - L.value.y;
|
package/dist/chunks/{component-YCHomeLegend-BpForfu4.mjs → component-YCHomeLegend-DzDo8zz6.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./component-AqiMonitor-
|
|
2
|
-
import {
|
|
1
|
+
import "./component-AqiMonitor-buvqeOgY.mjs";
|
|
2
|
+
import { p as e } from "./component-Agent-Cm2BEfcV.mjs";
|
|
3
3
|
import { createElementBlock as t, createElementVNode as n, createStaticVNode as r, onMounted as i, openBlock as a } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/YCHomeLegend/YCHomeLegend.vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e,
|
|
2
|
-
import { n as i } from "./component-LithiumBatteryMiningArea-
|
|
1
|
+
import { _ as e, g as t, p as n, y as r } from "./component-Agent-Cm2BEfcV.mjs";
|
|
2
|
+
import { n as i } from "./component-LithiumBatteryMiningArea-CWmowyvH.mjs";
|
|
3
3
|
import { ElButton as ee, ElForm as a, ElFormItem as o, ElIcon as s, ElInput as te } from "element-plus/es";
|
|
4
4
|
import { Fragment as ne, createBlock as c, createElementBlock as l, createElementVNode as u, createTextVNode as re, createVNode as d, defineComponent as f, onBeforeUnmount as p, onMounted as ie, openBlock as m, reactive as h, ref as g, renderList as _, toDisplayString as v, unref as y, withCtx as b, withKeys as ae } from "vue";
|
|
5
5
|
import { Lock as x, Message as oe, Platform as se, User as S } from "@element-plus/icons-vue";
|
|
@@ -11,7 +11,7 @@ import "element-plus/es/components/icon/style/css";
|
|
|
11
11
|
import "element-plus/es/components/form/style/css";
|
|
12
12
|
import "element-plus/es/components/form-item/style/css";
|
|
13
13
|
//#region src/components/YCLoginNew/YCLoginNew.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "login-container" }, de = { class: "login-wrapper" }, fe = { class: "login-box" }, w = { class: "login-header" }, T = { class: "header-icon" }, E = { class: "title" }, D = { class: "en-title" }, O = { class: "input-icon-box" }, k = { class: "input-icon-box" }, A = { class: "form-options" }, j = { class: "input-icon-box" }, M = { class: "code-input-wrapper" }, N = { class: "input-icon-box" }, P = { class: "input-icon-box" }, F = { class: "input-icon-box" }, I = { class: "split-btn-container" }, L = "yc_reset_code_expire", R = "yc_reset_code_value", z = /* @__PURE__ */
|
|
14
|
+
var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "login-container" }, de = { class: "login-wrapper" }, fe = { class: "login-box" }, w = { class: "login-header" }, T = { class: "header-icon" }, E = { class: "title" }, D = { class: "en-title" }, O = { class: "input-icon-box" }, k = { class: "input-icon-box" }, A = { class: "form-options" }, j = { class: "input-icon-box" }, M = { class: "code-input-wrapper" }, N = { class: "input-icon-box" }, P = { class: "input-icon-box" }, F = { class: "input-icon-box" }, I = { class: "split-btn-container" }, L = "yc_reset_code_expire", R = "yc_reset_code_value", z = /* @__PURE__ */ n(/* @__PURE__ */ f({
|
|
15
15
|
__name: "YCLoginNew",
|
|
16
16
|
props: {
|
|
17
17
|
appKey: {
|
|
@@ -39,8 +39,8 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
39
39
|
default: ""
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
setup(
|
|
43
|
-
let z =
|
|
42
|
+
setup(n, { emit: f }) {
|
|
43
|
+
let z = n, B = f, V = g(), H = g(!1), U = h({
|
|
44
44
|
username: "",
|
|
45
45
|
password: ""
|
|
46
46
|
}), pe = {
|
|
@@ -101,8 +101,8 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
101
101
|
q && clearInterval(q), q = setInterval(() => {
|
|
102
102
|
K.value--, K.value <= 0 && (q && clearInterval(q), q = null, window.localStorage.removeItem(L), window.localStorage.removeItem(R), J.value = "");
|
|
103
103
|
}, 1e3);
|
|
104
|
-
}, ge = () => Math.floor(Math.random() * 9e5).toString(), _e = async (
|
|
105
|
-
if (!
|
|
104
|
+
}, ge = () => Math.floor(Math.random() * 9e5).toString(), _e = async (e) => {
|
|
105
|
+
if (!e) {
|
|
106
106
|
C({
|
|
107
107
|
message: "请先输入手机号",
|
|
108
108
|
type: "warning",
|
|
@@ -111,11 +111,11 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
if (K.value > 0) return;
|
|
114
|
-
let
|
|
114
|
+
let t = ge();
|
|
115
115
|
try {
|
|
116
|
-
await e
|
|
117
|
-
let
|
|
118
|
-
window.localStorage.setItem(L,
|
|
116
|
+
await r(e, t, z.SMSUrl), J.value = t, K.value = 60;
|
|
117
|
+
let n = (/* @__PURE__ */ new Date()).getTime() + 60 * 1e3;
|
|
118
|
+
window.localStorage.setItem(L, n.toString()), window.localStorage.setItem(R, t), X(), C({
|
|
119
119
|
message: "验证码已发送",
|
|
120
120
|
type: "success",
|
|
121
121
|
zIndex: 6e3
|
|
@@ -130,10 +130,10 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
130
130
|
}, Z = () => {
|
|
131
131
|
W.value = !1, G.value?.resetFields();
|
|
132
132
|
}, Q = () => {
|
|
133
|
-
G.value && G.value.validate(async (
|
|
134
|
-
if (
|
|
135
|
-
let
|
|
136
|
-
if (!Y.code || Y.code !==
|
|
133
|
+
G.value && G.value.validate(async (t) => {
|
|
134
|
+
if (t) {
|
|
135
|
+
let t = J.value || window.localStorage.getItem(R);
|
|
136
|
+
if (!Y.code || Y.code !== t) {
|
|
137
137
|
C({
|
|
138
138
|
message: "验证码错误",
|
|
139
139
|
type: "error",
|
|
@@ -143,17 +143,17 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
143
143
|
return;
|
|
144
144
|
}
|
|
145
145
|
try {
|
|
146
|
-
let
|
|
146
|
+
let t = {
|
|
147
147
|
loginName: Y.phone,
|
|
148
148
|
password: Y.newPassword
|
|
149
|
-
},
|
|
150
|
-
|
|
149
|
+
}, n = await e(z.resetPwdUrl, t);
|
|
150
|
+
n.errorCode === 0 ? (C({
|
|
151
151
|
message: "密码重置成功",
|
|
152
152
|
type: "success",
|
|
153
153
|
zIndex: 6e3,
|
|
154
154
|
duration: 1500
|
|
155
155
|
}), Z()) : C({
|
|
156
|
-
message:
|
|
156
|
+
message: n.message,
|
|
157
157
|
type: "error",
|
|
158
158
|
zIndex: 6e3,
|
|
159
159
|
duration: 1500
|
|
@@ -174,7 +174,7 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
174
174
|
let e = {
|
|
175
175
|
name: U.username,
|
|
176
176
|
pwd: U.password
|
|
177
|
-
},
|
|
177
|
+
}, n = (await t({
|
|
178
178
|
appKey: z.appKey,
|
|
179
179
|
appSalt: z.appSalt,
|
|
180
180
|
id: z.ids.data.id,
|
|
@@ -183,7 +183,7 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
183
183
|
reqType: z.ids.data.reqType,
|
|
184
184
|
isFormData: z.ids.data.isFormData
|
|
185
185
|
})).data.result.output;
|
|
186
|
-
if (H.value = !1, !
|
|
186
|
+
if (H.value = !1, !n || n.length === 0) {
|
|
187
187
|
C({
|
|
188
188
|
message: "账号或密码错误",
|
|
189
189
|
type: "error",
|
|
@@ -197,8 +197,8 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
197
197
|
type: "success",
|
|
198
198
|
zIndex: 6e3,
|
|
199
199
|
duration: 1500
|
|
200
|
-
}), window.localStorage.setItem("user", JSON.stringify(
|
|
201
|
-
|
|
200
|
+
}), window.localStorage.setItem("user", JSON.stringify(n)), window.localStorage.setItem("uName", i.encode(U.username)), window.localStorage.setItem("uPwd", i.encode(U.password)), setTimeout(() => {
|
|
201
|
+
n.length > 1 ? B("toPage", "/home") : B("toPage", n[0].web_page);
|
|
202
202
|
}, 1e3);
|
|
203
203
|
}
|
|
204
204
|
});
|