nxd-plugin 1.8.50 → 1.8.52
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/GridData-D930GI5r.mjs +2 -0
- package/dist/chunks/YCServiceSummary-5zaYlO27.mjs +2 -0
- package/dist/chunks/{component-Forecast72h-CD6eT1xe.mjs → component-Forecast72h-PgbN_y9N.mjs} +170 -161
- package/dist/chunks/component-GridData-BK4jKmO-.mjs +399 -0
- package/dist/chunks/{component-HdCameraList-DuC-_0uH.mjs → component-HdCameraList-Ch0ojKDf.mjs} +1 -1
- package/dist/chunks/{component-HdFarmStation-BtYLSMAY.mjs → component-HdFarmStation-BV_kmLzl.mjs} +1 -1
- package/dist/chunks/component-HdMajorActivity-BS7LJXLj.mjs +718 -0
- package/dist/chunks/{component-HdObservation-DmRN3dBq.mjs → component-HdObservation-DrPL7XVh.mjs} +1 -1
- package/dist/chunks/{component-HdPreSituation-KMOE4Mt_.mjs → component-HdPreSituation-D0KUf8I4.mjs} +1 -1
- package/dist/chunks/{component-HdRadarList-Cx_cRpjb.mjs → component-HdRadarList-CspWsOEW.mjs} +1 -1
- package/dist/chunks/{component-HdRisk-Cx_Wuyuy.mjs → component-HdRisk-qQ1jbMi4.mjs} +1 -1
- package/dist/chunks/{component-HdServiceMarterial-D4nik4h0.mjs → component-HdServiceMarterial-DAf5Wr6D.mjs} +1 -1
- package/dist/chunks/{component-HdServiceRequirements-CrpxYdNK.mjs → component-HdServiceRequirements-CycjsvZT.mjs} +1 -1
- package/dist/chunks/{component-HdSoil-eQTGGIkq.mjs → component-HdSoil-BKDaVRnf.mjs} +1 -1
- package/dist/chunks/{component-HdStationTem-BCls8KKc.mjs → component-HdStationTem-Cb2YV_fB.mjs} +1 -1
- package/dist/chunks/{component-HdSuggestion-BnGlQLfg.mjs → component-HdSuggestion-fajQUBiB.mjs} +1 -1
- package/dist/chunks/{component-HdThreeWeatherTrend-D_dPqael.mjs → component-HdThreeWeatherTrend-CeAHvlR3.mjs} +1 -1
- package/dist/chunks/{component-HdWaveForcast-B-RPD_5H.mjs → component-HdWaveForcast-DRuTytq8.mjs} +1 -1
- package/dist/chunks/{component-HighwayWeatherForecast-BVj7aWS1.mjs → component-HighwayWeatherForecast-CUk0YFO6.mjs} +2 -2
- package/dist/chunks/{component-PrecipitationRanking-Ct4OY0FJ.mjs → component-PrecipitationRanking-Nq_SI95N.mjs} +1 -1
- package/dist/chunks/{component-StationDialog-_pkrpDnI.mjs → component-StationDialog-B-6V3oc5.mjs} +1 -1
- package/dist/chunks/{component-StationList-D4XTo6r2.mjs → component-StationList-qtk1j-fG.mjs} +1 -1
- package/dist/chunks/{component-TimeBasedForecast-4ZZ7ZnCH.mjs → component-TimeBasedForecast-DdTGq6GE.mjs} +1 -1
- package/dist/chunks/component-WeatherForecast-g9IL5upq.mjs +219 -0
- package/dist/chunks/{component-YCHome-BNYalrzu.mjs → component-YCHome-nJZqqhcF.mjs} +1 -1
- package/dist/chunks/{component-YCServiceSummary-BQmpmZC-.mjs → component-YCServiceSummary-BKkRTMKf.mjs} +352 -229
- package/dist/components/HdMajorActivity/HdMajorActivity.vue.d.ts +6 -2
- package/dist/index.d.ts +2 -2
- package/dist/nxd-plugin.mjs +25 -26
- package/dist/styles/component-Forecast72h.css +1 -1
- package/dist/styles/component-GridData.css +1 -1
- package/dist/styles/component-HdMajorActivity.css +1 -1
- package/dist/styles/component-WeatherForecast.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/dist/styles/component-YCServiceSummary.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/YCServiceSummary-Dr7NyIZK.mjs +0 -2
- package/dist/chunks/component-GridData-o7hipw0h.mjs +0 -756
- package/dist/chunks/component-HdMajorActivity-CQ76SEKD.mjs +0 -710
- package/dist/chunks/component-WeatherForecast-DqdD9JUX.mjs +0 -208
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import "./component-AqiMonitor-CiRH3KK9.mjs";
|
|
2
|
-
import { g as e, p as t } from "./component-Agent-DwXtdLhK.mjs";
|
|
3
|
-
import { $ as n, A as r, B as i, C as a, D as o, E as s, F as c, G as l, H as u, I as ee, J as te, K as ne, L as d, M as f, N as p, O as m, P as h, Q as g, R as _, S as v, T as re, U as ie, V as ae, W as oe, X as se, Y as ce, Z as le, j as y, k as b, q as x, w as S, x as C, z as w } from "./component-Forecast72h-CD6eT1xe.mjs";
|
|
4
|
-
import { n as T } from "./component-LithiumBatteryMiningArea-BDFvxMfk.mjs";
|
|
5
|
-
import { ElLoadingDirective as E } from "element-plus/es";
|
|
6
|
-
import { Fragment as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, defineComponent as j, getCurrentInstance as M, normalizeClass as N, onMounted as P, openBlock as F, ref as I, renderList as L, toDisplayString as R, vShow as z, withDirectives as B } from "vue";
|
|
7
|
-
import "element-plus/es/components/loading/style/css";
|
|
8
|
-
//#region src/components/WeatherForecast/WeatherForecast.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var V = {
|
|
10
|
-
class: "WeatherForecast",
|
|
11
|
-
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
12
|
-
}, ue = { class: "WeatherForecast__head" }, H = { class: "WeatherForecast__head-top" }, U = { class: "WeatherForecast__body" }, de = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "WeatherForecast__area-select"
|
|
15
|
-
}, fe = { style: {
|
|
16
|
-
display: "flex",
|
|
17
|
-
"align-items": "center"
|
|
18
|
-
} }, pe = { class: "WeatherForecast__dropdown-wrapper" }, me = { class: "WeatherForecast__area-panel" }, he = ["onClick"], ge = { class: "WeatherForecast__wrap" }, _e = ["src", "alt"], W = /* @__PURE__ */ t(/* @__PURE__ */ j({
|
|
19
|
-
__name: "WeatherForecast",
|
|
20
|
-
props: {
|
|
21
|
-
appKey: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: ""
|
|
24
|
-
},
|
|
25
|
-
appSalt: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: ""
|
|
28
|
-
},
|
|
29
|
-
baseHttp: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: ""
|
|
32
|
-
},
|
|
33
|
-
ids: {
|
|
34
|
-
type: Object,
|
|
35
|
-
default: () => ({})
|
|
36
|
-
},
|
|
37
|
-
title: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: "天气预报"
|
|
40
|
-
},
|
|
41
|
-
showStationList: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: !1
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
emits: ["close"],
|
|
47
|
-
setup(t, { emit: j }) {
|
|
48
|
-
let W = M()?.appContext.config.globalProperties.$bus, G = t, ve = j, K = I(!1), q = I([]), J = I({}), Y = I([]), X = I({}), Z = I(!1);
|
|
49
|
-
P(() => {
|
|
50
|
-
W?.on("toComponent", (e) => {
|
|
51
|
-
e.componentName === "WeatherForecast" && (J.value = e.data, Q());
|
|
52
|
-
}), G.showStationList && Q();
|
|
53
|
-
}), document.addEventListener("click", (e) => {
|
|
54
|
-
e.target.closest(".WeatherForecast__area-select") || (Z.value = !1);
|
|
55
|
-
});
|
|
56
|
-
let Q = async () => {
|
|
57
|
-
G.showStationList && await ye(), await $();
|
|
58
|
-
}, ye = async () => {
|
|
59
|
-
Y.value = (await e({
|
|
60
|
-
appKey: G.appKey,
|
|
61
|
-
appSalt: G.appSalt,
|
|
62
|
-
id: G.ids.station.id,
|
|
63
|
-
variables: {},
|
|
64
|
-
baseHttp: G.baseHttp,
|
|
65
|
-
reqType: G.ids.station.reqType,
|
|
66
|
-
isFormData: G.ids.station.isFormData
|
|
67
|
-
})).data?.result?.output || [], Y.value.length > 0 && (X.value = Y.value[0]), console.log("stationList.value", Y.value);
|
|
68
|
-
}, be = () => {
|
|
69
|
-
ve("close", "WeatherForecast");
|
|
70
|
-
}, xe = () => {
|
|
71
|
-
Z.value = !Z.value;
|
|
72
|
-
}, Se = async (e) => {
|
|
73
|
-
Z.value = !1, X.value?.stationid !== e.stationid && (X.value = e, K.value = !0, await $());
|
|
74
|
-
}, $ = async () => {
|
|
75
|
-
K.value = !0;
|
|
76
|
-
let t = {};
|
|
77
|
-
if (G.showStationList) t = {
|
|
78
|
-
stationid: X.value?.stationid || "58606",
|
|
79
|
-
days: 7,
|
|
80
|
-
includeToday: 1
|
|
81
|
-
};
|
|
82
|
-
else {
|
|
83
|
-
let e = {
|
|
84
|
-
lon: J.value.longitude,
|
|
85
|
-
lat: J.value.latitude,
|
|
86
|
-
hours: 168
|
|
87
|
-
};
|
|
88
|
-
t = { str: T.encode(JSON.stringify(e)) };
|
|
89
|
-
}
|
|
90
|
-
let E = await e({
|
|
91
|
-
appKey: G.appKey,
|
|
92
|
-
appSalt: G.appSalt,
|
|
93
|
-
id: G.ids.data.id,
|
|
94
|
-
variables: t,
|
|
95
|
-
baseHttp: G.baseHttp,
|
|
96
|
-
reqType: G.ids.data.reqType,
|
|
97
|
-
isFormData: G.ids.data.isFormData
|
|
98
|
-
});
|
|
99
|
-
K.value = !1;
|
|
100
|
-
let D = G.showStationList ? JSON.parse(E.data?.result?.output || "{}") || [] : E.data?.result?.output;
|
|
101
|
-
if (!D) {
|
|
102
|
-
console.warn("天气预报接口返回为空", E), q.value = [];
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
console.log("output", D), G.showStationList && (D = D.data.days);
|
|
106
|
-
let O = typeof D == "string" ? JSON.parse(D) : D, k = G.showStationList ? O : O.ds;
|
|
107
|
-
if (!Array.isArray(k) || k.length === 0) {
|
|
108
|
-
q.value = [];
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
let A = G.showStationList, j = [
|
|
112
|
-
"日",
|
|
113
|
-
"一",
|
|
114
|
-
"二",
|
|
115
|
-
"三",
|
|
116
|
-
"四",
|
|
117
|
-
"五",
|
|
118
|
-
"六"
|
|
119
|
-
];
|
|
120
|
-
q.value = k.map((e, t) => {
|
|
121
|
-
let T = A ? new Date(e.f_time.replace(/\//g, "-")) : new Date(e.observation_time.replace(/\//g, "-"));
|
|
122
|
-
A || T.setDate(T.getDate() + t);
|
|
123
|
-
let E = `${T.getMonth() + 1}`.padStart(2, "0"), D = `${T.getDate()}`.padStart(2, "0"), O = A ? e.eda10_max : e.wind_speedinfo;
|
|
124
|
-
return {
|
|
125
|
-
...e,
|
|
126
|
-
_date: `${E}-${D}`,
|
|
127
|
-
_week: `周${j[T.getDay()]}`,
|
|
128
|
-
_icon: new URL((/* @__PURE__ */ Object.assign({
|
|
129
|
-
"../../assets/img/weatherIcon/0.gif": n,
|
|
130
|
-
"../../assets/img/weatherIcon/1.gif": g,
|
|
131
|
-
"../../assets/img/weatherIcon/10.gif": le,
|
|
132
|
-
"../../assets/img/weatherIcon/11.gif": se,
|
|
133
|
-
"../../assets/img/weatherIcon/12.gif": ce,
|
|
134
|
-
"../../assets/img/weatherIcon/13.gif": te,
|
|
135
|
-
"../../assets/img/weatherIcon/14.gif": x,
|
|
136
|
-
"../../assets/img/weatherIcon/15.gif": ne,
|
|
137
|
-
"../../assets/img/weatherIcon/16.gif": l,
|
|
138
|
-
"../../assets/img/weatherIcon/17.gif": oe,
|
|
139
|
-
"../../assets/img/weatherIcon/18.gif": ie,
|
|
140
|
-
"../../assets/img/weatherIcon/19.gif": u,
|
|
141
|
-
"../../assets/img/weatherIcon/2.gif": ae,
|
|
142
|
-
"../../assets/img/weatherIcon/20.gif": i,
|
|
143
|
-
"../../assets/img/weatherIcon/21.gif": w,
|
|
144
|
-
"../../assets/img/weatherIcon/22.gif": _,
|
|
145
|
-
"../../assets/img/weatherIcon/23.gif": d,
|
|
146
|
-
"../../assets/img/weatherIcon/24.gif": ee,
|
|
147
|
-
"../../assets/img/weatherIcon/25.gif": c,
|
|
148
|
-
"../../assets/img/weatherIcon/26.gif": h,
|
|
149
|
-
"../../assets/img/weatherIcon/27.gif": p,
|
|
150
|
-
"../../assets/img/weatherIcon/28.gif": f,
|
|
151
|
-
"../../assets/img/weatherIcon/29.gif": y,
|
|
152
|
-
"../../assets/img/weatherIcon/3.gif": r,
|
|
153
|
-
"../../assets/img/weatherIcon/30.gif": b,
|
|
154
|
-
"../../assets/img/weatherIcon/31.gif": m,
|
|
155
|
-
"../../assets/img/weatherIcon/4.gif": o,
|
|
156
|
-
"../../assets/img/weatherIcon/5.gif": s,
|
|
157
|
-
"../../assets/img/weatherIcon/53.gif": re,
|
|
158
|
-
"../../assets/img/weatherIcon/6.gif": S,
|
|
159
|
-
"../../assets/img/weatherIcon/7.gif": a,
|
|
160
|
-
"../../assets/img/weatherIcon/8.gif": v,
|
|
161
|
-
"../../assets/img/weatherIcon/9.gif": C
|
|
162
|
-
}))[`../../assets/img/weatherIcon/${A ? e.wp : e.weatherPhenomenon}.gif`], import.meta.url).href,
|
|
163
|
-
_key: A ? `${e.f_time}-${t}` : `${e.observation_time}-${e.hour}`,
|
|
164
|
-
weather: A ? e.weatherPhenomenon : e.weather,
|
|
165
|
-
temp_low: A ? e.tmp_min : e.temp_low,
|
|
166
|
-
temp_high: A ? e.tmp_max : e.temp_high,
|
|
167
|
-
wind_directinfo: A ? e.eda10_dir_max : e.wind_directinfo,
|
|
168
|
-
_windSpeed: O == null || Number(O) < 3 ? "<3级" : A ? O : `${O}级`
|
|
169
|
-
};
|
|
170
|
-
});
|
|
171
|
-
};
|
|
172
|
-
return (e, n) => {
|
|
173
|
-
let r = E;
|
|
174
|
-
return B((F(), k("div", V, [A("div", ue, [A("div", H, [A("div", null, R(t.title), 1), A("div", {
|
|
175
|
-
class: "closeBtn",
|
|
176
|
-
onClick: be,
|
|
177
|
-
title: "关闭"
|
|
178
|
-
})]), n[0] ||= A("img", {
|
|
179
|
-
class: "WeatherForecast__head-line",
|
|
180
|
-
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbsAAAASBAMAAAAwI22/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAwUExURQAAAAem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/5bu5GYAAAAPdFJOUwAFwAwc2M8ULQYDn/hGXGnV2UoAAAGZSURBVEjH7ZM/S8NAGId/JYGmmeLspptThurk0CHWRXGo0Nk/S50y6CYSHMRF7Efo4uQXEIpbwUnM6OhnEIeChXjv5ZLLXdLtLCX68vDCe0eGJ7/3AJN1VcL+UImB/SruVJwYTqSAW5V3LLyaPR1c+IIdH12OPZiLcyTAjccZEdccZ0Nn4bXpC3KpCuFu5tkdziX3FJxBSBZZdFk9HempCduMk4xSitJTpOgJSSIPrx10YAUB0tYOwrQ1g12k7ZyODIYXZmQpppLV26rtbDFOXVhua2Fn7WTWwUEyAe5Zc2hiLWTTC3jjk8Hw+jrSM9/Z8raKOAtZVmyr9jbpee4lU9hvSUStw6YvOpqwiXlK9d8IL0Oq5tuqvc3KLMs7q9uyCC0y22aKvDVp4u2SjnJ1c+Wecg7h9gV4CFV8NHpEaw7yF2wVGcIa6OBx/Ax3PI6pRWx6Am98alBbpSODNVTxgAbQUpF3KeVv0s80xMUow8N//YVaqWEV9BJDdby2PBUZ1/te0uU0YzeLa623jjrrvaLOep/+str9ACyAtv25BhHcAAAAAElFTkSuQmCC",
|
|
181
|
-
alt: ""
|
|
182
|
-
}, null, -1)]), A("div", U, [G.showStationList ? (F(), k("div", de, [A("div", fe, [n[1] ||= A("label", { style: { "font-size": "12px" } }, "站点选择:", -1), A("div", pe, [A("div", {
|
|
183
|
-
class: "WeatherForecast__area-trigger",
|
|
184
|
-
onClick: xe
|
|
185
|
-
}, [A("span", null, R(X.value?.stationname2 || X.value?.stationname || "选择站点"), 1), A("span", { class: N(["WeatherForecast__arrow", { "is-open": Z.value }]) }, "▼", 2)]), B(A("div", me, [(F(!0), k(D, null, L(Y.value, (e, t) => (F(), k("div", {
|
|
186
|
-
key: t,
|
|
187
|
-
class: N(["WeatherForecast__area-item", { "is-selected": X.value?.stationid === e.stationid }]),
|
|
188
|
-
onClick: (t) => Se(e)
|
|
189
|
-
}, R(e.stationname2 || e.stationname), 11, he))), 128))], 512), [[z, Z.value]])])])])) : O("", !0), A("div", ge, [(F(!0), k(D, null, L(q.value, (e) => (F(), k("div", {
|
|
190
|
-
class: "WeatherForecast__item",
|
|
191
|
-
key: e._key
|
|
192
|
-
}, [
|
|
193
|
-
A("div", null, R(e._date), 1),
|
|
194
|
-
A("div", null, R(e._week), 1),
|
|
195
|
-
A("img", {
|
|
196
|
-
src: e._icon,
|
|
197
|
-
alt: e.weather
|
|
198
|
-
}, null, 8, _e),
|
|
199
|
-
A("div", null, R(e.weather), 1),
|
|
200
|
-
A("div", null, R(e.temp_low) + "~" + R(e.temp_high) + "℃", 1),
|
|
201
|
-
A("div", null, R(e.wind_directinfo), 1),
|
|
202
|
-
A("div", null, R(e._windSpeed), 1)
|
|
203
|
-
]))), 128))])])])), [[r, K.value]]);
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
}), [["__scopeId", "data-v-4a645ba4"]]);
|
|
207
|
-
//#endregion
|
|
208
|
-
export { W as t };
|