nxd-plugin 1.3.7 → 1.3.8
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/{component-HighWayEarlyWarningRed-yaXptPl1.mjs → component-HighWayEarlyWarningRed-BKLHeWHr.mjs} +1490 -33432
- package/dist/chunks/{component-HighWayFreeze-ByAF7JQ7.mjs → component-HighWayFreeze-BvB-6JYi.mjs} +1539 -1523
- package/dist/chunks/{component-HighwayLiveAlarm-BrYDfT9C.mjs → component-HighwayLiveAlarm-BHOhzsUw.mjs} +79 -79
- package/dist/chunks/{component-HighwayLiveAlarmNew-Ccqk1-Nv.mjs → component-HighwayLiveAlarmNew-CIRCsfMN.mjs} +939 -954
- package/dist/chunks/{component-HighwayStations-DBsRXgHk.mjs → component-HighwayStations-C74-YZeJ.mjs} +3 -3
- package/dist/chunks/{component-HighwayWeatherForecast-DfD4TY_f.mjs → component-HighwayWeatherForecast-CT7S3N4a.mjs} +2 -2
- package/dist/chunks/component-ImageGeneration-DPxBMC0C.mjs +36199 -0
- package/dist/chunks/{component-LithiumBatteryMiningArea-CciAKE46.mjs → component-LithiumBatteryMiningArea-xte8_s0I.mjs} +228 -2277
- package/dist/chunks/{component-RadarShortTerm-BeeWDY9X.mjs → component-RadarShortTerm-DQ1z5uSp.mjs} +7 -7
- package/dist/chunks/{component-ServiceMaterialsBtn-Sj_vfugh.mjs → component-ServiceMaterialsBtn-DwTBVx4n.mjs} +229 -1137
- package/dist/chunks/component-TimeBasedForecast-CmikCSFB.mjs +238 -0
- package/dist/chunks/component-WeatherForecast-rputF8JM.mjs +136 -0
- package/dist/chunks/{component-YCHome-DskMdi13.mjs → component-YCHome-B3j5J78s.mjs} +680 -1249
- package/dist/chunks/{component-YCLogin-DeNzuZJh.mjs → component-YCLogin-D1HY0SIj.mjs} +22 -22
- package/dist/chunks/component-YCLoginNew-ToBzfPon.mjs +168 -0
- package/dist/nxd-plugin.mjs +18 -17
- package/dist/src/components/HighWayEarlyWarningRed/HighWayEarlyWarningRed.vue.d.ts +4 -34
- package/dist/src/components/HighWayFreeze/HighWayFreeze.vue.d.ts +24 -3
- package/dist/src/components/HighwayLiveAlarmNew/HighwayLiveAlarmNew.vue.d.ts +6 -60
- package/dist/src/components/LithiumBatteryMiningArea/LithiumBatteryMiningArea.vue.d.ts +24 -3
- package/dist/src/components/TimeBasedForecast/TimeBasedForecast.vue.d.ts +24 -3
- package/dist/src/components/WeatherForecast/WeatherForecast.vue.d.ts +18 -0
- package/dist/src/components/YCLoginNew/YCLoginNew.vue.d.ts +13 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/utils/request.d.ts +8 -13
- package/dist/src/utils/request/345/244/207/344/273/275.d.ts +17 -0
- package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
- package/dist/styles/component-HighWayFreeze.css +1 -1
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-ImageGeneration.css +1 -0
- package/dist/styles/component-LithiumBatteryMiningArea.css +1 -1
- package/dist/styles/component-ServiceMaterialsBtn.css +1 -1
- package/dist/styles/component-TimeBasedForecast.css +1 -1
- package/dist/styles/component-WeatherForecast.css +1 -1
- package/dist/styles/component-YCHome.css +1 -1
- package/dist/styles/component-YCLogin.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +6 -1
- package/readme.md +24 -25
- package/dist/chunks/component-TimeBasedForecast-LNK3QTFp.mjs +0 -347
- package/dist/chunks/component-WeatherForecast-Cl188OT3.mjs +0 -219
- package/dist/chunks/component-YCLoginNew-Vd0a8quF.mjs +0 -137
- package/dist/components/HighWayEarlyWarningRed/default.json.d.ts +0 -31891
- package/dist/components/LithiumBatteryMiningArea/miningArea.json.d.ts +0 -59
- package/dist/components/LithiumBatteryMiningArea/realTimeData.json.d.ts +0 -2144
- package/dist/components/TimeBasedForecast/hourForecast.json.d.ts +0 -147
- package/dist/components/WeatherForecast/weatherForecast.json.d.ts +0 -113
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nxd-plugin",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"main": "dist/nxd-plugin.mjs",
|
|
5
5
|
"module": "dist/nxd-plugin.mjs",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -43,10 +43,15 @@
|
|
|
43
43
|
"vue-tsc": "^3.0.5"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
47
|
+
"dom-to-image": "^2.6.0",
|
|
46
48
|
"echarts": "^6.0.0",
|
|
47
49
|
"element-plus": "^2.13.7",
|
|
50
|
+
"js-base64": "^3.7.8",
|
|
48
51
|
"js-cookie": "^3.0.5",
|
|
49
52
|
"moment": "^2.30.1",
|
|
53
|
+
"ol": "^10.9.0",
|
|
54
|
+
"ol-wind": "^1.1.4",
|
|
50
55
|
"qs": "^6.15.1"
|
|
51
56
|
}
|
|
52
57
|
}
|
package/readme.md
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
[toc]
|
|
1
|
+
\[toc]
|
|
2
2
|
|
|
3
3
|
# 固定参数
|
|
4
4
|
|
|
5
|
-
| 参数
|
|
6
|
-
|
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
| tokenInterfaceType | string | token接口请求方式 |
|
|
10
|
-
| tokenInterfaceIsFormData | boolean | token接口参数是否为formData |
|
|
11
|
-
| dataInterface | string | 数据接口地址 |
|
|
12
|
-
| dataInterfaceType | string | 数据接口请求方式 |
|
|
13
|
-
| dataInterfaceIsFormData | boolean | 数据接口参数是否为formData |
|
|
14
|
-
| dataInterfaceParams | object | 数据接口参数 |
|
|
5
|
+
| 参数 | 类型 | 说明 | 示例 |
|
|
6
|
+
| :------- | :----- | :----------------------------------------------------------- | ------------------------------------------------------------ |
|
|
7
|
+
| baseHttp | string | 接口根地址 | /proxyAPI |
|
|
8
|
+
| ids | object | 各个工作流的地址,子对象名为自定义,<br />其中`id`、`reqType`、`isFormData`为必传 | :ids="{<br/> data: {<br/> id: '410601566857519104',<br/> reqType: 'post',<br/> isFormData: false<br/> }<br/> } |
|
|
15
9
|
|
|
16
10
|
|
|
17
11
|
|
|
18
12
|
# 统一事件
|
|
19
13
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
emit('
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
emit('
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
- 页面相关
|
|
15
|
+
|
|
16
|
+
| 方法 | 类型 | 说明 | 示例 |
|
|
17
|
+
| :---------------- | :----- | :----------------- | ------------------------------------------------------------ |
|
|
18
|
+
| close | string | 关闭组件 | emit('close','组件名(组件最外层的class名,一般与组件名保持一致)') |
|
|
19
|
+
| openPagePop | object | 打开页面iframe弹窗 | emit('openPagePop', { title, url}) |
|
|
20
|
+
| toPage | string | 跳转页面 | emit('toPage', '/home') |
|
|
21
|
+
| changeTopBarTitle | string | 改变顶部菜单栏标题 | emit('changeTopBarTitle', title) |
|
|
22
|
+
|
|
23
|
+
- 地图相关
|
|
24
|
+
|
|
25
|
+
| 方法 | 类型 | 说明 | 示例 |
|
|
26
|
+
| :------------ | :----- | :--------- | ------------------------------------------------------------ |
|
|
27
|
+
| addMarker | object | 添加marker | emit('addMarker', { mapMarker:object, removeMarker:string }) |
|
|
28
|
+
| removeMarker | string | 移除marker | emit('removeMarker', markerName) |
|
|
29
|
+
| addLayers | object | 添加图层 | emit('addLayers', { layers:object, isRemove:boolean }) |
|
|
30
|
+
| removeLayers | array | 移除图层 | emit('removeLayers', array) |
|
|
31
|
+
| changeMapView | object | 改变视野 | emit('changeMapView', object) |
|
|
34
32
|
|
|
35
33
|
|
|
36
34
|
|
|
@@ -54,3 +52,4 @@ HighwayLiveAlarm
|
|
|
54
52
|
- addMarker
|
|
55
53
|
- addLayers
|
|
56
54
|
- removeLayers
|
|
55
|
+
|
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
-
import { n as e, r as t } from "./component-HighWayFreeze-ByAF7JQ7.mjs";
|
|
3
|
-
import { o as n, r } from "./component-HighWayEarlyWarningRed-yaXptPl1.mjs";
|
|
4
|
-
import { n as i } from "./component-HighwayLiveAlarm-BrYDfT9C.mjs";
|
|
5
|
-
import { A as a, C as o, D as s, E as c, M as l, N as ee, O as te, P as ne, S as u, T as d, _ as f, a as p, b as m, c as h, d as g, f as _, g as re, h as ie, i as ae, j as oe, k as se, l as ce, m as le, n as ue, o as de, p as fe, r as v, s as y, u as b, v as x, w as S, x as C, y as w } from "./component-HighwayWeatherForecast-DfD4TY_f.mjs";
|
|
6
|
-
import { Fragment as T, createElementBlock as E, createElementVNode as D, createVNode as O, defineComponent as k, getCurrentInstance as A, nextTick as j, normalizeStyle as M, onBeforeUnmount as N, onMounted as P, openBlock as F, ref as I, renderList as L, toDisplayString as R, unref as z, watch as B, withCtx as V, withDirectives as H } from "vue";
|
|
7
|
-
var U = {
|
|
8
|
-
msg: "success",
|
|
9
|
-
code: 0,
|
|
10
|
-
startTime: "2026/05/08 08:00:00",
|
|
11
|
-
diagonal: [
|
|
12
|
-
{
|
|
13
|
-
lng: 115,
|
|
14
|
-
lat: 28.7
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
lng: 115.05,
|
|
18
|
-
lat: 28.7
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
lng: 115.05,
|
|
22
|
-
lat: 28.650002
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
lng: 115,
|
|
26
|
-
lat: 28.650002
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
ds: [
|
|
30
|
-
{
|
|
31
|
-
temper: 25.8,
|
|
32
|
-
weather: "阴",
|
|
33
|
-
observation_time: "2026/05/10 11:00:00",
|
|
34
|
-
address: "",
|
|
35
|
-
wind_direction: 126.9,
|
|
36
|
-
wind_speed: .5,
|
|
37
|
-
rh: 58,
|
|
38
|
-
precip: 0,
|
|
39
|
-
weatherPhenomenon: "2",
|
|
40
|
-
vis: 15600,
|
|
41
|
-
wind_direction_txt: "东南风",
|
|
42
|
-
cloud: 99,
|
|
43
|
-
wind_grade: 1
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
wind_direction_txt: "西风",
|
|
47
|
-
wind_direction: 291.8,
|
|
48
|
-
weatherPhenomenon: "2",
|
|
49
|
-
address: "",
|
|
50
|
-
rh: 52,
|
|
51
|
-
precip: 0,
|
|
52
|
-
observation_time: "2026/05/10 14:00:00",
|
|
53
|
-
weather: "阴",
|
|
54
|
-
wind_grade: 1,
|
|
55
|
-
wind_speed: .5,
|
|
56
|
-
cloud: 100,
|
|
57
|
-
vis: 21700,
|
|
58
|
-
temper: 28.3
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
wind_direction_txt: "南风",
|
|
62
|
-
weather: "阴",
|
|
63
|
-
temper: 27.3,
|
|
64
|
-
precip: 0,
|
|
65
|
-
cloud: 100,
|
|
66
|
-
weatherPhenomenon: "2",
|
|
67
|
-
wind_grade: 1,
|
|
68
|
-
address: "",
|
|
69
|
-
observation_time: "2026/05/10 17:00:00",
|
|
70
|
-
vis: 16500,
|
|
71
|
-
rh: 58,
|
|
72
|
-
wind_direction: 158.2,
|
|
73
|
-
wind_speed: .5
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
observation_time: "2026/05/10 20:00:00",
|
|
77
|
-
wind_direction_txt: "西风",
|
|
78
|
-
weatherPhenomenon: "2",
|
|
79
|
-
address: "",
|
|
80
|
-
wind_grade: 1,
|
|
81
|
-
rh: 75,
|
|
82
|
-
weather: "阴",
|
|
83
|
-
wind_speed: .9,
|
|
84
|
-
temper: 20.9,
|
|
85
|
-
cloud: 100,
|
|
86
|
-
wind_direction: 276.3,
|
|
87
|
-
precip: 0,
|
|
88
|
-
vis: 11400
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
wind_speed: .7,
|
|
92
|
-
weatherPhenomenon: "2",
|
|
93
|
-
wind_direction_txt: "南风",
|
|
94
|
-
cloud: 98,
|
|
95
|
-
precip: 0,
|
|
96
|
-
address: "",
|
|
97
|
-
vis: 8400,
|
|
98
|
-
observation_time: "2026/05/10 23:00:00",
|
|
99
|
-
temper: 18.5,
|
|
100
|
-
wind_direction: 164.1,
|
|
101
|
-
wind_grade: 1,
|
|
102
|
-
weather: "阴",
|
|
103
|
-
rh: 84
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
temper: 17.1,
|
|
107
|
-
wind_speed: .4,
|
|
108
|
-
cloud: 97,
|
|
109
|
-
rh: 93,
|
|
110
|
-
wind_direction: 236.3,
|
|
111
|
-
precip: 0,
|
|
112
|
-
address: "",
|
|
113
|
-
wind_direction_txt: "西南风",
|
|
114
|
-
weatherPhenomenon: "2",
|
|
115
|
-
observation_time: "2026/05/11 02:00:00",
|
|
116
|
-
wind_grade: 1,
|
|
117
|
-
vis: 5500,
|
|
118
|
-
weather: "阴"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
wind_direction: 76,
|
|
122
|
-
precip: 0,
|
|
123
|
-
vis: 6100,
|
|
124
|
-
wind_direction_txt: "东风",
|
|
125
|
-
temper: 17,
|
|
126
|
-
wind_speed: .4,
|
|
127
|
-
wind_grade: 1,
|
|
128
|
-
weatherPhenomenon: "2",
|
|
129
|
-
observation_time: "2026/05/11 05:00:00",
|
|
130
|
-
weather: "阴",
|
|
131
|
-
cloud: 93,
|
|
132
|
-
address: "",
|
|
133
|
-
rh: 87
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
address: "",
|
|
137
|
-
weatherPhenomenon: "2",
|
|
138
|
-
wind_grade: 1,
|
|
139
|
-
wind_speed: .6,
|
|
140
|
-
precip: 0,
|
|
141
|
-
weather: "阴",
|
|
142
|
-
wind_direction_txt: "南风",
|
|
143
|
-
rh: 80,
|
|
144
|
-
vis: 6700,
|
|
145
|
-
temper: 21.3,
|
|
146
|
-
wind_direction: 189.5,
|
|
147
|
-
cloud: 88,
|
|
148
|
-
observation_time: "2026/05/11 08:00:00"
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
}, pe = {
|
|
152
|
-
class: "TimeBasedForecast",
|
|
153
|
-
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
154
|
-
}, me = { class: "TimeBasedForecast__meta" }, he = { class: "TimeBasedForecast__control" }, ge = { class: "TimeBasedForecast__time" }, _e = { class: "TimeBasedForecast__content" }, ve = { class: "TimeBasedForecast__scroll" }, ye = { class: "TimeBasedForecast__dates" }, be = { class: "TimeBasedForecast__date" }, xe = { class: "TimeBasedForecast__hour" }, Se = { class: "TimeBasedForecast__chart" }, Ce = { class: "TimeBasedForecast__table" }, we = { class: "TimeBasedForecast__row TimeBasedForecast__row--icon" }, Te = ["src", "alt"], Ee = { class: "TimeBasedForecast__row" }, De = { class: "TimeBasedForecast__row" }, Oe = { class: "TimeBasedForecast__row" }, ke = 78, W = 112, G = /* @__PURE__ */ r(/* @__PURE__ */ k({
|
|
155
|
-
__name: "TimeBasedForecast",
|
|
156
|
-
emits: ["close"],
|
|
157
|
-
setup(r, { emit: k }) {
|
|
158
|
-
let G = A()?.appContext.config.globalProperties.$bus, Ae = k, K = I(null), q = null, je = [
|
|
159
|
-
"24小时预报",
|
|
160
|
-
"48小时预报",
|
|
161
|
-
"72小时预报",
|
|
162
|
-
"96小时预报",
|
|
163
|
-
"120小时预报",
|
|
164
|
-
"144小时预报",
|
|
165
|
-
"168小时预报"
|
|
166
|
-
], J = I("24小时预报"), Me = U.startTime.slice(0, 16), Y = I([]), X = I([]), Z = I(0), Ne = I(!1);
|
|
167
|
-
P(() => {
|
|
168
|
-
G?.on("toComponent", (e) => {
|
|
169
|
-
console.log("子组件收到消息", e);
|
|
170
|
-
}), Pe();
|
|
171
|
-
}), N(() => {
|
|
172
|
-
q?.dispose(), q = null;
|
|
173
|
-
}), B(J, async () => {
|
|
174
|
-
Q(), await $();
|
|
175
|
-
});
|
|
176
|
-
let Pe = async () => {
|
|
177
|
-
await Ie(), Q(), await $();
|
|
178
|
-
}, Fe = () => {
|
|
179
|
-
Ae("close", "TimeBasedForecast");
|
|
180
|
-
}, Ie = async () => {
|
|
181
|
-
Y.value = U.ds.map((e) => {
|
|
182
|
-
let [t, n] = e.observation_time.split(" "), r = t.split("/");
|
|
183
|
-
return {
|
|
184
|
-
...e,
|
|
185
|
-
_date: `${r[2]}日`,
|
|
186
|
-
_time: n.slice(0, 5),
|
|
187
|
-
_temp: Number(e.temper),
|
|
188
|
-
_weatherIcon: new URL((/* @__PURE__ */ Object.assign({
|
|
189
|
-
"../../assets/img/weatherIcon/0.gif": ne,
|
|
190
|
-
"../../assets/img/weatherIcon/1.gif": ee,
|
|
191
|
-
"../../assets/img/weatherIcon/10.gif": l,
|
|
192
|
-
"../../assets/img/weatherIcon/11.gif": oe,
|
|
193
|
-
"../../assets/img/weatherIcon/12.gif": a,
|
|
194
|
-
"../../assets/img/weatherIcon/13.gif": se,
|
|
195
|
-
"../../assets/img/weatherIcon/14.gif": te,
|
|
196
|
-
"../../assets/img/weatherIcon/15.gif": s,
|
|
197
|
-
"../../assets/img/weatherIcon/16.gif": c,
|
|
198
|
-
"../../assets/img/weatherIcon/17.gif": d,
|
|
199
|
-
"../../assets/img/weatherIcon/18.gif": S,
|
|
200
|
-
"../../assets/img/weatherIcon/19.gif": o,
|
|
201
|
-
"../../assets/img/weatherIcon/2.gif": u,
|
|
202
|
-
"../../assets/img/weatherIcon/20.gif": C,
|
|
203
|
-
"../../assets/img/weatherIcon/21.gif": m,
|
|
204
|
-
"../../assets/img/weatherIcon/22.gif": w,
|
|
205
|
-
"../../assets/img/weatherIcon/23.gif": x,
|
|
206
|
-
"../../assets/img/weatherIcon/24.gif": f,
|
|
207
|
-
"../../assets/img/weatherIcon/25.gif": re,
|
|
208
|
-
"../../assets/img/weatherIcon/26.gif": ie,
|
|
209
|
-
"../../assets/img/weatherIcon/27.gif": le,
|
|
210
|
-
"../../assets/img/weatherIcon/28.gif": fe,
|
|
211
|
-
"../../assets/img/weatherIcon/29.gif": _,
|
|
212
|
-
"../../assets/img/weatherIcon/3.gif": g,
|
|
213
|
-
"../../assets/img/weatherIcon/30.gif": b,
|
|
214
|
-
"../../assets/img/weatherIcon/31.gif": ce,
|
|
215
|
-
"../../assets/img/weatherIcon/4.gif": h,
|
|
216
|
-
"../../assets/img/weatherIcon/5.gif": y,
|
|
217
|
-
"../../assets/img/weatherIcon/53.gif": de,
|
|
218
|
-
"../../assets/img/weatherIcon/6.gif": p,
|
|
219
|
-
"../../assets/img/weatherIcon/7.gif": ae,
|
|
220
|
-
"../../assets/img/weatherIcon/8.gif": v,
|
|
221
|
-
"../../assets/img/weatherIcon/9.gif": ue
|
|
222
|
-
}))[`../../assets/img/weatherIcon/${e.weatherPhenomenon}.gif`], import.meta.url).href,
|
|
223
|
-
_windSpeed: `${e.wind_grade}级`
|
|
224
|
-
};
|
|
225
|
-
});
|
|
226
|
-
}, Q = () => {
|
|
227
|
-
let e = Number(J.value.replace("小时预报", "")), t = Math.max(1, Math.ceil(e / 3));
|
|
228
|
-
X.value = Y.value.slice(0, t), Z.value = Math.max(X.value.length * ke, 320);
|
|
229
|
-
}, $ = async () => {
|
|
230
|
-
await j(), K.value && (q ? q.resize({
|
|
231
|
-
width: Z.value,
|
|
232
|
-
height: W
|
|
233
|
-
}) : q = i(K.value), q.setOption({
|
|
234
|
-
animation: !1,
|
|
235
|
-
grid: {
|
|
236
|
-
top: 30,
|
|
237
|
-
right: 0,
|
|
238
|
-
bottom: 8,
|
|
239
|
-
left: 0
|
|
240
|
-
},
|
|
241
|
-
xAxis: {
|
|
242
|
-
type: "category",
|
|
243
|
-
data: X.value.map((e, t) => t),
|
|
244
|
-
show: !1
|
|
245
|
-
},
|
|
246
|
-
yAxis: {
|
|
247
|
-
type: "value",
|
|
248
|
-
show: !1,
|
|
249
|
-
scale: !0
|
|
250
|
-
},
|
|
251
|
-
series: [{
|
|
252
|
-
type: "line",
|
|
253
|
-
data: X.value.map((e) => e._temp),
|
|
254
|
-
smooth: !0,
|
|
255
|
-
symbol: "circle",
|
|
256
|
-
symbolSize: 6,
|
|
257
|
-
clip: !1,
|
|
258
|
-
lineStyle: {
|
|
259
|
-
color: "#4da8ff",
|
|
260
|
-
width: 2
|
|
261
|
-
},
|
|
262
|
-
itemStyle: {
|
|
263
|
-
color: "#4da8ff",
|
|
264
|
-
borderColor: "#9ed0ff"
|
|
265
|
-
},
|
|
266
|
-
label: {
|
|
267
|
-
show: !0,
|
|
268
|
-
position: "top",
|
|
269
|
-
distance: 8,
|
|
270
|
-
color: "#d6ecff",
|
|
271
|
-
fontSize: 12,
|
|
272
|
-
formatter: ({ value: e }) => `${e}℃`
|
|
273
|
-
}
|
|
274
|
-
}]
|
|
275
|
-
}));
|
|
276
|
-
};
|
|
277
|
-
return (r, i) => {
|
|
278
|
-
let a = e, o = t, s = n;
|
|
279
|
-
return H((F(), E("div", pe, [
|
|
280
|
-
D("div", { class: "TimeBasedForecast__head" }, [D("div", { class: "TimeBasedForecast__head-top" }, [i[1] ||= D("div", null, "分时段预报", -1), D("div", {
|
|
281
|
-
class: "closeBtn",
|
|
282
|
-
onClick: Fe,
|
|
283
|
-
title: "关闭"
|
|
284
|
-
})]), i[2] ||= D("img", {
|
|
285
|
-
class: "TimeBasedForecast__head-line",
|
|
286
|
-
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",
|
|
287
|
-
alt: ""
|
|
288
|
-
}, null, -1)]),
|
|
289
|
-
D("div", me, [D("div", he, [i[3] ||= D("span", { class: "TimeBasedForecast__label" }, "预报时效:", -1), O(o, {
|
|
290
|
-
modelValue: J.value,
|
|
291
|
-
"onUpdate:modelValue": i[0] ||= (e) => J.value = e,
|
|
292
|
-
class: "dark-select",
|
|
293
|
-
"popper-class": "dark-select-popper"
|
|
294
|
-
}, {
|
|
295
|
-
default: V(() => [(F(), E(T, null, L(je, (e) => O(a, {
|
|
296
|
-
key: e,
|
|
297
|
-
label: e,
|
|
298
|
-
value: e
|
|
299
|
-
}, null, 8, ["label", "value"])), 64))]),
|
|
300
|
-
_: 1
|
|
301
|
-
}, 8, ["modelValue"])]), D("div", ge, R(z(Me)), 1)]),
|
|
302
|
-
D("div", _e, [D("div", ve, [D("div", {
|
|
303
|
-
class: "TimeBasedForecast__board",
|
|
304
|
-
style: M({ width: `${Z.value}px` })
|
|
305
|
-
}, [
|
|
306
|
-
D("div", ye, [(F(!0), E(T, null, L(X.value, (e) => (F(), E("div", {
|
|
307
|
-
key: `${e._date}-${e._time}`,
|
|
308
|
-
class: "TimeBasedForecast__dateItem"
|
|
309
|
-
}, [D("div", be, R(e._date), 1), D("div", xe, R(e._time), 1)]))), 128))]),
|
|
310
|
-
D("div", Se, [D("div", {
|
|
311
|
-
ref_key: "ref_ForecastChart",
|
|
312
|
-
ref: K,
|
|
313
|
-
class: "TimeBasedForecast__echarts",
|
|
314
|
-
style: M({
|
|
315
|
-
width: `${Z.value}px`,
|
|
316
|
-
height: `${W}px`
|
|
317
|
-
})
|
|
318
|
-
}, null, 4)]),
|
|
319
|
-
D("div", Ce, [
|
|
320
|
-
D("div", we, [(F(!0), E(T, null, L(X.value, (e) => (F(), E("div", {
|
|
321
|
-
key: `icon-${e._date}-${e._time}`,
|
|
322
|
-
class: "TimeBasedForecast__cell"
|
|
323
|
-
}, [D("img", {
|
|
324
|
-
class: "TimeBasedForecast__weatherIcon",
|
|
325
|
-
src: e._weatherIcon,
|
|
326
|
-
alt: e.weather
|
|
327
|
-
}, null, 8, Te)]))), 128))]),
|
|
328
|
-
D("div", Ee, [(F(!0), E(T, null, L(X.value, (e) => (F(), E("div", {
|
|
329
|
-
key: `weather-${e._date}-${e._time}`,
|
|
330
|
-
class: "TimeBasedForecast__cell"
|
|
331
|
-
}, R(e.weather), 1))), 128))]),
|
|
332
|
-
D("div", De, [(F(!0), E(T, null, L(X.value, (e) => (F(), E("div", {
|
|
333
|
-
key: `direction-${e._date}-${e._time}`,
|
|
334
|
-
class: "TimeBasedForecast__cell"
|
|
335
|
-
}, R(e.wind_direction_txt), 1))), 128))]),
|
|
336
|
-
D("div", Oe, [(F(!0), E(T, null, L(X.value, (e) => (F(), E("div", {
|
|
337
|
-
key: `speed-${e._date}-${e._time}`,
|
|
338
|
-
class: "TimeBasedForecast__cell"
|
|
339
|
-
}, R(e._windSpeed), 1))), 128))])
|
|
340
|
-
])
|
|
341
|
-
], 4)])])
|
|
342
|
-
])), [[s, Ne.value]]);
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
}), [["__scopeId", "data-v-642d86fd"]]);
|
|
346
|
-
//#endregion
|
|
347
|
-
export { G as t };
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
-
import { o as e, r as t } from "./component-HighWayEarlyWarningRed-yaXptPl1.mjs";
|
|
3
|
-
import { A as ee, C as n, D as r, E as i, M as a, N as o, O as s, P as c, S as l, T as u, _ as d, a as f, b as p, c as m, d as h, f as g, g as _, h as v, i as y, j as b, k as x, l as S, m as C, n as w, o as T, p as E, r as D, s as O, u as k, v as A, w as j, x as M, y as N } from "./component-HighwayWeatherForecast-DfD4TY_f.mjs";
|
|
4
|
-
import { Fragment as P, createElementBlock as F, createElementVNode as I, defineComponent as L, onMounted as R, openBlock as z, ref as B, renderList as V, toDisplayString as H, withDirectives as U } from "vue";
|
|
5
|
-
var W = {
|
|
6
|
-
msg: "success",
|
|
7
|
-
code: 0,
|
|
8
|
-
ds: [
|
|
9
|
-
{
|
|
10
|
-
temperMax: "21.6",
|
|
11
|
-
observation_time: "2026/05/08 08:00:00",
|
|
12
|
-
wind_speed_value: "2.4",
|
|
13
|
-
weatherPhenomenonTwo: "2",
|
|
14
|
-
latitude: 27.7017,
|
|
15
|
-
wind_direction: "西北风",
|
|
16
|
-
weatherPhenomenon: "7",
|
|
17
|
-
temperMin: "17.0",
|
|
18
|
-
hour: 24,
|
|
19
|
-
weather: "阴转小雨",
|
|
20
|
-
wind_speed: "<3级",
|
|
21
|
-
wind_direction_value: "323.6",
|
|
22
|
-
longitude: 114.474
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
temperMax: "23.5",
|
|
26
|
-
observation_time: "2026/05/08 08:00:00",
|
|
27
|
-
wind_speed_value: "0.6",
|
|
28
|
-
weatherPhenomenonTwo: "2",
|
|
29
|
-
latitude: 27.7017,
|
|
30
|
-
wind_direction: "北风转东风",
|
|
31
|
-
weatherPhenomenon: "2",
|
|
32
|
-
temperMin: "15.5",
|
|
33
|
-
hour: 48,
|
|
34
|
-
weather: "阴",
|
|
35
|
-
wind_speed: "<3级",
|
|
36
|
-
wind_direction_value: "80.5",
|
|
37
|
-
longitude: 114.474
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
temperMax: "28.5",
|
|
41
|
-
observation_time: "2026/05/08 08:00:00",
|
|
42
|
-
wind_speed_value: "1.6",
|
|
43
|
-
weatherPhenomenonTwo: "2",
|
|
44
|
-
latitude: 27.7017,
|
|
45
|
-
wind_direction: "西北风",
|
|
46
|
-
weatherPhenomenon: "2",
|
|
47
|
-
temperMin: "17.9",
|
|
48
|
-
hour: 72,
|
|
49
|
-
weather: "阴",
|
|
50
|
-
wind_speed: "<3级",
|
|
51
|
-
wind_direction_value: "307.6",
|
|
52
|
-
longitude: 114.474
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
temperMax: "30.0",
|
|
56
|
-
observation_time: "2026/05/08 08:00:00",
|
|
57
|
-
wind_speed_value: "0.5",
|
|
58
|
-
weatherPhenomenonTwo: "2",
|
|
59
|
-
latitude: 27.7017,
|
|
60
|
-
wind_direction: "东南风转东风",
|
|
61
|
-
weatherPhenomenon: "7",
|
|
62
|
-
temperMin: "20.3",
|
|
63
|
-
hour: 96,
|
|
64
|
-
weather: "阴转小雨",
|
|
65
|
-
wind_speed: "<3级",
|
|
66
|
-
wind_direction_value: "111.8",
|
|
67
|
-
longitude: 114.474
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
temperMax: "31.1",
|
|
71
|
-
observation_time: "2026/05/08 08:00:00",
|
|
72
|
-
wind_speed_value: "1.4",
|
|
73
|
-
weatherPhenomenonTwo: "2",
|
|
74
|
-
latitude: 27.7017,
|
|
75
|
-
wind_direction: "东南风转西北风",
|
|
76
|
-
weatherPhenomenon: "7",
|
|
77
|
-
temperMin: "20.6",
|
|
78
|
-
hour: 120,
|
|
79
|
-
weather: "阴转小雨",
|
|
80
|
-
wind_speed: "<3级",
|
|
81
|
-
wind_direction_value: "294.8",
|
|
82
|
-
longitude: 114.474
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
temperMax: "25.7",
|
|
86
|
-
observation_time: "2026/05/08 08:00:00",
|
|
87
|
-
wind_speed_value: "0.4",
|
|
88
|
-
weatherPhenomenonTwo: "7",
|
|
89
|
-
latitude: 27.7017,
|
|
90
|
-
wind_direction: "西南风",
|
|
91
|
-
weatherPhenomenon: "8",
|
|
92
|
-
temperMin: "20.7",
|
|
93
|
-
hour: 144,
|
|
94
|
-
weather: "小雨转中雨",
|
|
95
|
-
wind_speed: "<3级",
|
|
96
|
-
wind_direction_value: "236.3",
|
|
97
|
-
longitude: 114.474
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
temperMax: "27.3",
|
|
101
|
-
observation_time: "2026/05/08 08:00:00",
|
|
102
|
-
wind_speed_value: "1.9",
|
|
103
|
-
weatherPhenomenonTwo: "2",
|
|
104
|
-
latitude: 27.7017,
|
|
105
|
-
wind_direction: "西南风",
|
|
106
|
-
weatherPhenomenon: "7",
|
|
107
|
-
temperMin: "20.8",
|
|
108
|
-
hour: 168,
|
|
109
|
-
weather: "阴转小雨",
|
|
110
|
-
wind_speed: "<3级",
|
|
111
|
-
wind_direction_value: "212.0",
|
|
112
|
-
longitude: 114.474
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
}, G = {
|
|
116
|
-
class: "WeatherForecast",
|
|
117
|
-
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
118
|
-
}, K = { class: "WeatherForecast__head" }, q = { class: "WeatherForecast__head-top" }, J = { class: "WeatherForecast__body" }, Y = { class: "WeatherForecast__wrap" }, X = ["src", "alt"], Z = /* @__PURE__ */ t(/* @__PURE__ */ L({
|
|
119
|
-
__name: "WeatherForecast",
|
|
120
|
-
props: { title: {
|
|
121
|
-
type: String,
|
|
122
|
-
default: "天气预报"
|
|
123
|
-
} },
|
|
124
|
-
emits: ["close"],
|
|
125
|
-
setup(t, { emit: L }) {
|
|
126
|
-
let Z = L, Q = B(!1), $ = B([]);
|
|
127
|
-
R(() => {
|
|
128
|
-
te();
|
|
129
|
-
});
|
|
130
|
-
let te = async () => {
|
|
131
|
-
await re();
|
|
132
|
-
}, ne = () => {
|
|
133
|
-
Z("close", "WeatherForecast");
|
|
134
|
-
}, re = async () => {
|
|
135
|
-
let e = Array.isArray(W.ds) ? W.ds : [], t = [
|
|
136
|
-
"日",
|
|
137
|
-
"一",
|
|
138
|
-
"二",
|
|
139
|
-
"三",
|
|
140
|
-
"四",
|
|
141
|
-
"五",
|
|
142
|
-
"六"
|
|
143
|
-
];
|
|
144
|
-
$.value = e.map((e, P) => {
|
|
145
|
-
let F = new Date(e.observation_time.replace(/\//g, "-"));
|
|
146
|
-
F.setDate(F.getDate() + P);
|
|
147
|
-
let I = `${F.getMonth() + 1}`.padStart(2, "0"), L = `${F.getDate()}`.padStart(2, "0");
|
|
148
|
-
return {
|
|
149
|
-
...e,
|
|
150
|
-
_date: `${I}-${L}`,
|
|
151
|
-
_week: `周${t[F.getDay()]}`,
|
|
152
|
-
_icon: new URL((/* @__PURE__ */ Object.assign({
|
|
153
|
-
"../../assets/img/weatherIcon/0.gif": c,
|
|
154
|
-
"../../assets/img/weatherIcon/1.gif": o,
|
|
155
|
-
"../../assets/img/weatherIcon/10.gif": a,
|
|
156
|
-
"../../assets/img/weatherIcon/11.gif": b,
|
|
157
|
-
"../../assets/img/weatherIcon/12.gif": ee,
|
|
158
|
-
"../../assets/img/weatherIcon/13.gif": x,
|
|
159
|
-
"../../assets/img/weatherIcon/14.gif": s,
|
|
160
|
-
"../../assets/img/weatherIcon/15.gif": r,
|
|
161
|
-
"../../assets/img/weatherIcon/16.gif": i,
|
|
162
|
-
"../../assets/img/weatherIcon/17.gif": u,
|
|
163
|
-
"../../assets/img/weatherIcon/18.gif": j,
|
|
164
|
-
"../../assets/img/weatherIcon/19.gif": n,
|
|
165
|
-
"../../assets/img/weatherIcon/2.gif": l,
|
|
166
|
-
"../../assets/img/weatherIcon/20.gif": M,
|
|
167
|
-
"../../assets/img/weatherIcon/21.gif": p,
|
|
168
|
-
"../../assets/img/weatherIcon/22.gif": N,
|
|
169
|
-
"../../assets/img/weatherIcon/23.gif": A,
|
|
170
|
-
"../../assets/img/weatherIcon/24.gif": d,
|
|
171
|
-
"../../assets/img/weatherIcon/25.gif": _,
|
|
172
|
-
"../../assets/img/weatherIcon/26.gif": v,
|
|
173
|
-
"../../assets/img/weatherIcon/27.gif": C,
|
|
174
|
-
"../../assets/img/weatherIcon/28.gif": E,
|
|
175
|
-
"../../assets/img/weatherIcon/29.gif": g,
|
|
176
|
-
"../../assets/img/weatherIcon/3.gif": h,
|
|
177
|
-
"../../assets/img/weatherIcon/30.gif": k,
|
|
178
|
-
"../../assets/img/weatherIcon/31.gif": S,
|
|
179
|
-
"../../assets/img/weatherIcon/4.gif": m,
|
|
180
|
-
"../../assets/img/weatherIcon/5.gif": O,
|
|
181
|
-
"../../assets/img/weatherIcon/53.gif": T,
|
|
182
|
-
"../../assets/img/weatherIcon/6.gif": f,
|
|
183
|
-
"../../assets/img/weatherIcon/7.gif": y,
|
|
184
|
-
"../../assets/img/weatherIcon/8.gif": D,
|
|
185
|
-
"../../assets/img/weatherIcon/9.gif": w
|
|
186
|
-
}))[`../../assets/img/weatherIcon/${e.weatherPhenomenon}.gif`], import.meta.url).href
|
|
187
|
-
};
|
|
188
|
-
});
|
|
189
|
-
};
|
|
190
|
-
return (ee, n) => {
|
|
191
|
-
let r = e;
|
|
192
|
-
return U((z(), F("div", G, [I("div", K, [I("div", q, [I("div", null, H(t.title), 1), I("div", {
|
|
193
|
-
class: "closeBtn",
|
|
194
|
-
onClick: ne,
|
|
195
|
-
title: "关闭"
|
|
196
|
-
})]), n[0] ||= I("img", {
|
|
197
|
-
class: "WeatherForecast__head-line",
|
|
198
|
-
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",
|
|
199
|
-
alt: ""
|
|
200
|
-
}, null, -1)]), I("div", J, [I("div", Y, [(z(!0), F(P, null, V($.value, (e) => (z(), F("div", {
|
|
201
|
-
class: "WeatherForecast__item",
|
|
202
|
-
key: `${e.observation_time}-${e.hour}`
|
|
203
|
-
}, [
|
|
204
|
-
I("div", null, H(e._date), 1),
|
|
205
|
-
I("div", null, H(e._week), 1),
|
|
206
|
-
I("img", {
|
|
207
|
-
src: e._icon,
|
|
208
|
-
alt: e.weather
|
|
209
|
-
}, null, 8, X),
|
|
210
|
-
I("div", null, H(e.weather), 1),
|
|
211
|
-
I("div", null, H(e.temperMin) + "~" + H(e.temperMax) + "℃", 1),
|
|
212
|
-
I("div", null, H(e.wind_direction), 1),
|
|
213
|
-
I("div", null, H(e.wind_speed), 1)
|
|
214
|
-
]))), 128))])])])), [[r, Q.value]]);
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
}), [["__scopeId", "data-v-76539554"]]);
|
|
218
|
-
//#endregion
|
|
219
|
-
export { Z as t };
|