nxd-plugin 1.7.62 → 1.7.63
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-HighwayWeatherForecast-B1LZnIqH.mjs → component-HighwayWeatherForecast-jJgs1nWv.mjs} +176 -154
- package/dist/chunks/{component-TimeBasedForecast-CcmHiO2S.mjs → component-TimeBasedForecast-B7joXIvV.mjs} +33 -33
- package/dist/chunks/{component-WeatherForecast-doLrwvh9.mjs → component-WeatherForecast-Dyf8v_Fq.mjs} +33 -33
- package/dist/chunks/component-YCRealTimeTable-BCE5fGsG.mjs +300 -0
- package/dist/nxd-plugin.mjs +7 -6
- package/dist/src/components/YCRealTimeTable/YCRealTimeTable.vue.d.ts +41 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/dist/styles/component-YCRealTimeTable.css +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, r as t } from "./component-AqiMonitor-DbEiA-eq.mjs";
|
|
2
|
-
import { A as n, C as r, D as i, E as ee,
|
|
2
|
+
import { A as n, C as r, D as i, E as ee, F as a, M as o, N as s, O as c, P as l, S as u, T as d, _ as f, a as p, b as m, c as te, d as ne, f as re, g as ie, h as ae, i as oe, j as se, k as ce, l as le, m as ue, o as h, p as g, r as _, s as de, u as fe, v as pe, w as me, x as he, y as ge } from "./component-HighwayWeatherForecast-jJgs1nWv.mjs";
|
|
3
3
|
import { n as v } from "./component-LithiumBatteryMiningArea-Cu4xOUMT.mjs";
|
|
4
4
|
import { ElLoadingDirective as y, ElOption as b, ElSelect as x } from "element-plus/es";
|
|
5
5
|
import { Fragment as S, createElementBlock as C, createElementVNode as w, createVNode as T, defineComponent as E, getCurrentInstance as D, nextTick as O, normalizeStyle as k, onBeforeUnmount as A, onMounted as j, openBlock as M, ref as N, renderList as P, toDisplayString as F, watch as I, withCtx as L, withDirectives as _e } from "vue";
|
|
@@ -88,39 +88,39 @@ var ye = {
|
|
|
88
88
|
_time: y,
|
|
89
89
|
_temp: Number.isFinite(b) ? b : 0,
|
|
90
90
|
_weatherIcon: new URL((/* @__PURE__ */ Object.assign({
|
|
91
|
-
"../../assets/img/weatherIcon/0.gif":
|
|
92
|
-
"../../assets/img/weatherIcon/1.gif":
|
|
93
|
-
"../../assets/img/weatherIcon/10.gif":
|
|
94
|
-
"../../assets/img/weatherIcon/11.gif":
|
|
95
|
-
"../../assets/img/weatherIcon/12.gif":
|
|
96
|
-
"../../assets/img/weatherIcon/13.gif":
|
|
97
|
-
"../../assets/img/weatherIcon/14.gif":
|
|
98
|
-
"../../assets/img/weatherIcon/15.gif":
|
|
99
|
-
"../../assets/img/weatherIcon/16.gif":
|
|
100
|
-
"../../assets/img/weatherIcon/17.gif":
|
|
101
|
-
"../../assets/img/weatherIcon/18.gif":
|
|
102
|
-
"../../assets/img/weatherIcon/19.gif":
|
|
103
|
-
"../../assets/img/weatherIcon/2.gif":
|
|
104
|
-
"../../assets/img/weatherIcon/20.gif":
|
|
105
|
-
"../../assets/img/weatherIcon/21.gif":
|
|
106
|
-
"../../assets/img/weatherIcon/22.gif":
|
|
107
|
-
"../../assets/img/weatherIcon/23.gif":
|
|
108
|
-
"../../assets/img/weatherIcon/24.gif":
|
|
109
|
-
"../../assets/img/weatherIcon/25.gif":
|
|
91
|
+
"../../assets/img/weatherIcon/0.gif": a,
|
|
92
|
+
"../../assets/img/weatherIcon/1.gif": l,
|
|
93
|
+
"../../assets/img/weatherIcon/10.gif": s,
|
|
94
|
+
"../../assets/img/weatherIcon/11.gif": o,
|
|
95
|
+
"../../assets/img/weatherIcon/12.gif": se,
|
|
96
|
+
"../../assets/img/weatherIcon/13.gif": n,
|
|
97
|
+
"../../assets/img/weatherIcon/14.gif": ce,
|
|
98
|
+
"../../assets/img/weatherIcon/15.gif": c,
|
|
99
|
+
"../../assets/img/weatherIcon/16.gif": i,
|
|
100
|
+
"../../assets/img/weatherIcon/17.gif": ee,
|
|
101
|
+
"../../assets/img/weatherIcon/18.gif": d,
|
|
102
|
+
"../../assets/img/weatherIcon/19.gif": me,
|
|
103
|
+
"../../assets/img/weatherIcon/2.gif": r,
|
|
104
|
+
"../../assets/img/weatherIcon/20.gif": u,
|
|
105
|
+
"../../assets/img/weatherIcon/21.gif": he,
|
|
106
|
+
"../../assets/img/weatherIcon/22.gif": m,
|
|
107
|
+
"../../assets/img/weatherIcon/23.gif": ge,
|
|
108
|
+
"../../assets/img/weatherIcon/24.gif": pe,
|
|
109
|
+
"../../assets/img/weatherIcon/25.gif": f,
|
|
110
110
|
"../../assets/img/weatherIcon/26.gif": ie,
|
|
111
|
-
"../../assets/img/weatherIcon/27.gif":
|
|
112
|
-
"../../assets/img/weatherIcon/28.gif":
|
|
113
|
-
"../../assets/img/weatherIcon/29.gif":
|
|
114
|
-
"../../assets/img/weatherIcon/3.gif":
|
|
115
|
-
"../../assets/img/weatherIcon/30.gif":
|
|
116
|
-
"../../assets/img/weatherIcon/31.gif":
|
|
117
|
-
"../../assets/img/weatherIcon/4.gif":
|
|
118
|
-
"../../assets/img/weatherIcon/5.gif":
|
|
119
|
-
"../../assets/img/weatherIcon/53.gif":
|
|
120
|
-
"../../assets/img/weatherIcon/6.gif":
|
|
121
|
-
"../../assets/img/weatherIcon/7.gif":
|
|
122
|
-
"../../assets/img/weatherIcon/8.gif":
|
|
123
|
-
"../../assets/img/weatherIcon/9.gif":
|
|
111
|
+
"../../assets/img/weatherIcon/27.gif": ae,
|
|
112
|
+
"../../assets/img/weatherIcon/28.gif": ue,
|
|
113
|
+
"../../assets/img/weatherIcon/29.gif": g,
|
|
114
|
+
"../../assets/img/weatherIcon/3.gif": re,
|
|
115
|
+
"../../assets/img/weatherIcon/30.gif": ne,
|
|
116
|
+
"../../assets/img/weatherIcon/31.gif": fe,
|
|
117
|
+
"../../assets/img/weatherIcon/4.gif": le,
|
|
118
|
+
"../../assets/img/weatherIcon/5.gif": te,
|
|
119
|
+
"../../assets/img/weatherIcon/53.gif": de,
|
|
120
|
+
"../../assets/img/weatherIcon/6.gif": h,
|
|
121
|
+
"../../assets/img/weatherIcon/7.gif": p,
|
|
122
|
+
"../../assets/img/weatherIcon/8.gif": oe,
|
|
123
|
+
"../../assets/img/weatherIcon/9.gif": _
|
|
124
124
|
}))[`../../assets/img/weatherIcon/${x}.gif`], import.meta.url).href,
|
|
125
125
|
_windSpeed: `${w}级`
|
|
126
126
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, r as t } from "./component-AqiMonitor-DbEiA-eq.mjs";
|
|
2
|
-
import { A as n, C as r, D as i, E as a,
|
|
2
|
+
import { A as n, C as r, D as i, E as a, F as o, M as s, N as ee, O as c, P as l, S as u, T as d, _ as f, a as te, b as ne, c as re, d as ie, f as ae, g as p, h as m, i as h, j as g, k as _, l as v, m as y, o as b, p as x, r as S, s as C, u as w, v as T, w as E, x as D, y as O } from "./component-HighwayWeatherForecast-jJgs1nWv.mjs";
|
|
3
3
|
import { n as k } from "./component-LithiumBatteryMiningArea-Cu4xOUMT.mjs";
|
|
4
4
|
import { ElLoadingDirective as A } from "element-plus/es";
|
|
5
5
|
import { Fragment as j, createElementBlock as M, createElementVNode as N, defineComponent as P, getCurrentInstance as F, onMounted as I, openBlock as L, ref as R, renderList as z, toDisplayString as B, withDirectives as V } from "vue";
|
|
@@ -140,39 +140,39 @@ var H = {
|
|
|
140
140
|
_date: `${A}-${j}`,
|
|
141
141
|
_week: `周${N[k.getDay()]}`,
|
|
142
142
|
_icon: new URL((/* @__PURE__ */ Object.assign({
|
|
143
|
-
"../../assets/img/weatherIcon/0.gif":
|
|
144
|
-
"../../assets/img/weatherIcon/1.gif":
|
|
145
|
-
"../../assets/img/weatherIcon/10.gif":
|
|
146
|
-
"../../assets/img/weatherIcon/11.gif":
|
|
147
|
-
"../../assets/img/weatherIcon/12.gif":
|
|
148
|
-
"../../assets/img/weatherIcon/13.gif":
|
|
149
|
-
"../../assets/img/weatherIcon/14.gif":
|
|
150
|
-
"../../assets/img/weatherIcon/15.gif":
|
|
151
|
-
"../../assets/img/weatherIcon/16.gif":
|
|
152
|
-
"../../assets/img/weatherIcon/17.gif":
|
|
153
|
-
"../../assets/img/weatherIcon/18.gif":
|
|
154
|
-
"../../assets/img/weatherIcon/19.gif":
|
|
155
|
-
"../../assets/img/weatherIcon/2.gif":
|
|
156
|
-
"../../assets/img/weatherIcon/20.gif":
|
|
157
|
-
"../../assets/img/weatherIcon/21.gif":
|
|
158
|
-
"../../assets/img/weatherIcon/22.gif":
|
|
159
|
-
"../../assets/img/weatherIcon/23.gif":
|
|
160
|
-
"../../assets/img/weatherIcon/24.gif":
|
|
161
|
-
"../../assets/img/weatherIcon/25.gif":
|
|
143
|
+
"../../assets/img/weatherIcon/0.gif": o,
|
|
144
|
+
"../../assets/img/weatherIcon/1.gif": l,
|
|
145
|
+
"../../assets/img/weatherIcon/10.gif": ee,
|
|
146
|
+
"../../assets/img/weatherIcon/11.gif": s,
|
|
147
|
+
"../../assets/img/weatherIcon/12.gif": g,
|
|
148
|
+
"../../assets/img/weatherIcon/13.gif": n,
|
|
149
|
+
"../../assets/img/weatherIcon/14.gif": _,
|
|
150
|
+
"../../assets/img/weatherIcon/15.gif": c,
|
|
151
|
+
"../../assets/img/weatherIcon/16.gif": i,
|
|
152
|
+
"../../assets/img/weatherIcon/17.gif": a,
|
|
153
|
+
"../../assets/img/weatherIcon/18.gif": d,
|
|
154
|
+
"../../assets/img/weatherIcon/19.gif": E,
|
|
155
|
+
"../../assets/img/weatherIcon/2.gif": r,
|
|
156
|
+
"../../assets/img/weatherIcon/20.gif": u,
|
|
157
|
+
"../../assets/img/weatherIcon/21.gif": D,
|
|
158
|
+
"../../assets/img/weatherIcon/22.gif": ne,
|
|
159
|
+
"../../assets/img/weatherIcon/23.gif": O,
|
|
160
|
+
"../../assets/img/weatherIcon/24.gif": T,
|
|
161
|
+
"../../assets/img/weatherIcon/25.gif": f,
|
|
162
162
|
"../../assets/img/weatherIcon/26.gif": p,
|
|
163
|
-
"../../assets/img/weatherIcon/27.gif":
|
|
164
|
-
"../../assets/img/weatherIcon/28.gif":
|
|
165
|
-
"../../assets/img/weatherIcon/29.gif":
|
|
166
|
-
"../../assets/img/weatherIcon/3.gif":
|
|
167
|
-
"../../assets/img/weatherIcon/30.gif":
|
|
168
|
-
"../../assets/img/weatherIcon/31.gif":
|
|
169
|
-
"../../assets/img/weatherIcon/4.gif":
|
|
170
|
-
"../../assets/img/weatherIcon/5.gif":
|
|
171
|
-
"../../assets/img/weatherIcon/53.gif":
|
|
172
|
-
"../../assets/img/weatherIcon/6.gif":
|
|
173
|
-
"../../assets/img/weatherIcon/7.gif":
|
|
174
|
-
"../../assets/img/weatherIcon/8.gif":
|
|
175
|
-
"../../assets/img/weatherIcon/9.gif":
|
|
163
|
+
"../../assets/img/weatherIcon/27.gif": m,
|
|
164
|
+
"../../assets/img/weatherIcon/28.gif": y,
|
|
165
|
+
"../../assets/img/weatherIcon/29.gif": x,
|
|
166
|
+
"../../assets/img/weatherIcon/3.gif": ae,
|
|
167
|
+
"../../assets/img/weatherIcon/30.gif": ie,
|
|
168
|
+
"../../assets/img/weatherIcon/31.gif": w,
|
|
169
|
+
"../../assets/img/weatherIcon/4.gif": v,
|
|
170
|
+
"../../assets/img/weatherIcon/5.gif": re,
|
|
171
|
+
"../../assets/img/weatherIcon/53.gif": C,
|
|
172
|
+
"../../assets/img/weatherIcon/6.gif": b,
|
|
173
|
+
"../../assets/img/weatherIcon/7.gif": te,
|
|
174
|
+
"../../assets/img/weatherIcon/8.gif": h,
|
|
175
|
+
"../../assets/img/weatherIcon/9.gif": S
|
|
176
176
|
}))[`../../assets/img/weatherIcon/${e.weatherPhenomenon}.gif`], import.meta.url).href
|
|
177
177
|
};
|
|
178
178
|
});
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { n as e, r as t } from "./component-AqiMonitor-DbEiA-eq.mjs";
|
|
2
|
+
import { n } from "./component-HighwayWeatherForecast-jJgs1nWv.mjs";
|
|
3
|
+
import { ElInput as r, ElLoadingDirective as i } from "element-plus/es";
|
|
4
|
+
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, onMounted as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, withDirectives as y } from "vue";
|
|
5
|
+
import "element-plus/es/components/loading/style/css";
|
|
6
|
+
import "element-plus/es/components/input/style/css";
|
|
7
|
+
//#region src/components/YCRealTimeTable/YCRealTimeTable.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var b = {
|
|
9
|
+
class: "YCRealTimeTable",
|
|
10
|
+
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
11
|
+
}, x = { class: "YCRealTimeTable-summary" }, S = { class: "summary-table" }, C = { class: "summary-head" }, w = { class: "summary-body" }, T = { class: "summary-cell summary-cell-label" }, E = { class: "YCRealTimeTable-toolbar" }, D = { class: "filter-group" }, O = { class: "YCRealTimeTable-detail" }, ee = { class: "detail-table" }, k = { class: "detail-head" }, A = ["onClick"], j = { class: "detail-body" }, M = { class: "detail-cell detail-cell-index" }, N = { class: "detail-cell" }, P = { class: "detail-cell" }, F = { class: "detail-cell" }, I = { class: "detail-cell" }, L = { class: "detail-cell" }, R = { class: "detail-cell" }, z = { class: "detail-cell" }, B = { class: "detail-cell" }, V = /* @__PURE__ */ e(/* @__PURE__ */ f({
|
|
12
|
+
__name: "YCRealTimeTable",
|
|
13
|
+
props: {
|
|
14
|
+
appKey: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
appSalt: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
baseHttp: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
26
|
+
ids: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default: () => ({})
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
setup(e) {
|
|
32
|
+
let f = e, V = g(!1), H = g([]), U = [
|
|
33
|
+
"当前小时雨量(测试)",
|
|
34
|
+
"1小时雨量",
|
|
35
|
+
"3小时雨量",
|
|
36
|
+
"20时至当前雨量",
|
|
37
|
+
"24小时雨量",
|
|
38
|
+
"极大风速",
|
|
39
|
+
"能见度",
|
|
40
|
+
"最小能见度"
|
|
41
|
+
], W = g([]), G = g([]), K = [
|
|
42
|
+
{
|
|
43
|
+
key: "index",
|
|
44
|
+
label: "序号",
|
|
45
|
+
sortable: !1
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
key: "county",
|
|
49
|
+
label: "县名",
|
|
50
|
+
sortable: !1
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
key: "station",
|
|
54
|
+
label: "站名",
|
|
55
|
+
sortable: !1
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
key: "time",
|
|
59
|
+
label: "时间",
|
|
60
|
+
sortable: !0
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
key: "rain24",
|
|
64
|
+
label: "24小时雨量",
|
|
65
|
+
sortable: !0
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
key: "rain20",
|
|
69
|
+
label: "20时至现在雨量",
|
|
70
|
+
sortable: !0
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: "rain3",
|
|
74
|
+
label: "3小时雨量",
|
|
75
|
+
sortable: !0
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
key: "rain1",
|
|
79
|
+
label: "1小时雨量",
|
|
80
|
+
sortable: !0
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: "rainCurrent",
|
|
84
|
+
label: "当前小时雨量",
|
|
85
|
+
sortable: !0
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: "temp",
|
|
89
|
+
label: "气温",
|
|
90
|
+
sortable: !0
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: "windDir",
|
|
94
|
+
label: "极大风向",
|
|
95
|
+
sortable: !1
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
key: "windSpeed",
|
|
99
|
+
label: "极大风速",
|
|
100
|
+
sortable: !0
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
key: "humidity",
|
|
104
|
+
label: "湿度",
|
|
105
|
+
sortable: !0
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
key: "pressure",
|
|
109
|
+
label: "气压",
|
|
110
|
+
sortable: !0
|
|
111
|
+
}
|
|
112
|
+
], q = g(!0), J = g(""), Y = g(""), X = g(null), Z = g(null), Q = o(() => {
|
|
113
|
+
let e = G.value;
|
|
114
|
+
q.value || (e = e.filter((e) => e.county === "袁州区"));
|
|
115
|
+
let t = J.value.trim();
|
|
116
|
+
t && (e = e.filter((e) => e.county.includes(t)));
|
|
117
|
+
let n = Y.value.trim();
|
|
118
|
+
return n && (e = e.filter((e) => e.station.includes(n))), e;
|
|
119
|
+
}), te = o(() => {
|
|
120
|
+
let e = [...Q.value];
|
|
121
|
+
if (!X.value || !Z.value) return e;
|
|
122
|
+
let t = X.value;
|
|
123
|
+
return e.sort((e, n) => {
|
|
124
|
+
let r = e[t], i = n[t], a = r === null || r === "" || r === void 0, o = i === null || i === "" || i === void 0;
|
|
125
|
+
if (a && o) return 0;
|
|
126
|
+
if (a) return 1;
|
|
127
|
+
if (o) return -1;
|
|
128
|
+
let s, c;
|
|
129
|
+
if (t === "time") {
|
|
130
|
+
if (s = $(String(r)), c = $(String(i)), s < 0 && c < 0) return 0;
|
|
131
|
+
if (s < 0) return 1;
|
|
132
|
+
if (c < 0) return -1;
|
|
133
|
+
} else s = Number(r), c = Number(i);
|
|
134
|
+
return Z.value === "asc" ? s - c : c - s;
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
m(() => {
|
|
138
|
+
ne();
|
|
139
|
+
});
|
|
140
|
+
let ne = async () => {
|
|
141
|
+
V.value = !0;
|
|
142
|
+
let e = (await t({
|
|
143
|
+
appKey: f.appKey,
|
|
144
|
+
appSalt: f.appSalt,
|
|
145
|
+
id: f.ids.data.id,
|
|
146
|
+
variables: {},
|
|
147
|
+
baseHttp: f.baseHttp,
|
|
148
|
+
reqType: f.ids.data.reqType,
|
|
149
|
+
isFormData: f.ids.data.isFormData
|
|
150
|
+
})).data.result.output || "{}", r = JSON.parse(e);
|
|
151
|
+
console.log("res", r.data);
|
|
152
|
+
let { nationalStations: i, otherStations: a } = r.data || {
|
|
153
|
+
nationalStations: [],
|
|
154
|
+
otherStations: []
|
|
155
|
+
};
|
|
156
|
+
H.value = (i || []).map((e) => e.stationName);
|
|
157
|
+
let o = (e) => e == null || e === "" ? "" : e;
|
|
158
|
+
W.value = U.map((e) => (i || []).map((t) => {
|
|
159
|
+
switch (e) {
|
|
160
|
+
case "当前小时雨量(测试)": return {
|
|
161
|
+
value: o(t.currentHourRain),
|
|
162
|
+
isWarn: t.currentHourRainThreshold === 1
|
|
163
|
+
};
|
|
164
|
+
case "1小时雨量": return {
|
|
165
|
+
value: o(t.rain1h),
|
|
166
|
+
isWarn: t.rain1hThreshold === 1
|
|
167
|
+
};
|
|
168
|
+
case "3小时雨量": return {
|
|
169
|
+
value: o(t.rain3h),
|
|
170
|
+
isWarn: t.rain3hThreshold === 1
|
|
171
|
+
};
|
|
172
|
+
case "20时至当前雨量": return {
|
|
173
|
+
value: o(t.rain20ToNow),
|
|
174
|
+
isWarn: !1
|
|
175
|
+
};
|
|
176
|
+
case "24小时雨量": return {
|
|
177
|
+
value: o(t.rain24h),
|
|
178
|
+
isWarn: !1
|
|
179
|
+
};
|
|
180
|
+
case "极大风速": return {
|
|
181
|
+
value: o(t.winSInstMax),
|
|
182
|
+
isWarn: !1
|
|
183
|
+
};
|
|
184
|
+
case "能见度": return {
|
|
185
|
+
value: o(t.visHor1mi),
|
|
186
|
+
isWarn: t.visHor1miThreshold === 1
|
|
187
|
+
};
|
|
188
|
+
case "最小能见度": return {
|
|
189
|
+
value: o(t.visMin),
|
|
190
|
+
isWarn: !1
|
|
191
|
+
};
|
|
192
|
+
default: return {
|
|
193
|
+
value: "",
|
|
194
|
+
isWarn: !1
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
})), G.value = (a || []).map((e) => {
|
|
198
|
+
let t = "";
|
|
199
|
+
if (e.datetime) {
|
|
200
|
+
let n = e.datetime.match(/(\d{2}):(\d{2}):\d{2}$/);
|
|
201
|
+
n && (t = `${n[1]}时${n[2]}分`);
|
|
202
|
+
}
|
|
203
|
+
return {
|
|
204
|
+
county: e.cnty || "",
|
|
205
|
+
station: e.stationName || "",
|
|
206
|
+
time: t,
|
|
207
|
+
rain24: o(e.rain24h),
|
|
208
|
+
rain20: o(e.rain20ToNow),
|
|
209
|
+
rain3: o(e.rain3h),
|
|
210
|
+
rain3Warn: e.rain3hThreshold === 1,
|
|
211
|
+
rain1: o(e.rain1h),
|
|
212
|
+
rain1Warn: e.rain1hThreshold === 1,
|
|
213
|
+
rainCurrent: o(e.currentHourRain),
|
|
214
|
+
rainCurrentWarn: e.currentHourRainThreshold === 1,
|
|
215
|
+
temp: o(e.tem),
|
|
216
|
+
tempWarn: e.temThreshold === 1,
|
|
217
|
+
windDir: e.winDInstMax ? n(e.winDInstMax) : "",
|
|
218
|
+
windSpeed: o(e.winSInstMax),
|
|
219
|
+
windSpeedWarn: e.winSInstMaxThreshold === 1,
|
|
220
|
+
humidity: o(e.rhu),
|
|
221
|
+
pressure: o(e.prs)
|
|
222
|
+
};
|
|
223
|
+
}), setTimeout(() => {
|
|
224
|
+
V.value = !1;
|
|
225
|
+
}, 300);
|
|
226
|
+
}, $ = (e) => {
|
|
227
|
+
if (!e) return -1;
|
|
228
|
+
let t = e.match(/(\d+)时(\d+)分/);
|
|
229
|
+
return t ? Number(t[1]) * 60 + Number(t[2]) : -1;
|
|
230
|
+
}, re = (e, t) => t == null || t === "" ? "" : t, ie = (e) => {
|
|
231
|
+
X.value === e ? Z.value === "desc" ? Z.value = "asc" : Z.value === "asc" ? (X.value = null, Z.value = null) : Z.value = "desc" : (X.value = e, Z.value = "desc");
|
|
232
|
+
};
|
|
233
|
+
return (e, t) => {
|
|
234
|
+
let n = r, o = i;
|
|
235
|
+
return y((h(), c("div", b, [
|
|
236
|
+
l("div", x, [l("div", S, [l("div", C, [t[3] ||= l("div", { class: "summary-cell summary-cell-label" }, "监测要素", -1), (h(!0), c(a, null, _(H.value, (e, t) => (h(), c("div", {
|
|
237
|
+
class: "summary-cell",
|
|
238
|
+
key: t
|
|
239
|
+
}, v(e), 1))), 128))]), l("div", w, [(h(), c(a, null, _(U, (e, t) => l("div", {
|
|
240
|
+
class: "summary-row",
|
|
241
|
+
key: e
|
|
242
|
+
}, [l("div", T, v(e), 1), (h(!0), c(a, null, _(H.value, (n, r) => (h(), c("div", {
|
|
243
|
+
class: p(["summary-cell", { "is-warn": W.value[t]?.[r]?.isWarn }]),
|
|
244
|
+
key: r
|
|
245
|
+
}, v(re(e, W.value[t]?.[r]?.value)), 3))), 128))])), 64))])])]),
|
|
246
|
+
l("div", E, [l("div", D, [
|
|
247
|
+
l("button", {
|
|
248
|
+
class: p(["city-btn", { active: q.value }]),
|
|
249
|
+
onClick: t[0] ||= (e) => q.value = !q.value
|
|
250
|
+
}, "全市", 2),
|
|
251
|
+
d(n, {
|
|
252
|
+
modelValue: J.value,
|
|
253
|
+
"onUpdate:modelValue": t[1] ||= (e) => J.value = e,
|
|
254
|
+
placeholder: "县名搜索",
|
|
255
|
+
clearable: "",
|
|
256
|
+
class: "filter-input"
|
|
257
|
+
}, null, 8, ["modelValue"]),
|
|
258
|
+
d(n, {
|
|
259
|
+
modelValue: Y.value,
|
|
260
|
+
"onUpdate:modelValue": t[2] ||= (e) => Y.value = e,
|
|
261
|
+
placeholder: "站名搜索",
|
|
262
|
+
clearable: "",
|
|
263
|
+
class: "filter-input"
|
|
264
|
+
}, null, 8, ["modelValue"])
|
|
265
|
+
])]),
|
|
266
|
+
l("div", O, [l("div", ee, [l("div", k, [(h(), c(a, null, _(K, (e) => l("div", {
|
|
267
|
+
class: p(["detail-cell", {
|
|
268
|
+
"is-sortable": e.sortable,
|
|
269
|
+
"is-active": X.value === e.key
|
|
270
|
+
}]),
|
|
271
|
+
key: e.key,
|
|
272
|
+
onClick: (t) => e.sortable && ie(e.key)
|
|
273
|
+
}, [u(v(e.label) + " ", 1), e.sortable ? (h(), c("span", {
|
|
274
|
+
key: 0,
|
|
275
|
+
class: p(["sort-icon", X.value === e.key ? Z.value : ""])
|
|
276
|
+
}, null, 2)) : s("", !0)], 10, A)), 64))]), l("div", j, [(h(!0), c(a, null, _(te.value, (e, t) => (h(), c("div", {
|
|
277
|
+
class: "detail-row",
|
|
278
|
+
key: `${e.county}-${e.station}-${t}`
|
|
279
|
+
}, [
|
|
280
|
+
l("div", M, v(t + 1), 1),
|
|
281
|
+
l("div", N, v(e.county), 1),
|
|
282
|
+
l("div", P, v(e.station), 1),
|
|
283
|
+
l("div", F, v(e.time), 1),
|
|
284
|
+
l("div", I, v(e.rain24), 1),
|
|
285
|
+
l("div", L, v(e.rain20), 1),
|
|
286
|
+
l("div", { class: p(["detail-cell", { "is-warn": e.rain3Warn }]) }, v(e.rain3), 3),
|
|
287
|
+
l("div", { class: p(["detail-cell", { "is-warn": e.rain1Warn }]) }, v(e.rain1), 3),
|
|
288
|
+
l("div", { class: p(["detail-cell", { "is-warn": e.rainCurrentWarn }]) }, v(e.rainCurrent), 3),
|
|
289
|
+
l("div", { class: p(["detail-cell", { "is-warn": e.tempWarn }]) }, v(e.temp), 3),
|
|
290
|
+
l("div", R, v(e.windDir), 1),
|
|
291
|
+
l("div", { class: p(["detail-cell", { "is-warn": e.windSpeedWarn }]) }, v(e.windSpeed), 3),
|
|
292
|
+
l("div", z, v(e.humidity), 1),
|
|
293
|
+
l("div", B, v(e.pressure), 1)
|
|
294
|
+
]))), 128))])])])
|
|
295
|
+
])), [[o, V.value]]);
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
}), [["__scopeId", "data-v-9c273507"]]);
|
|
299
|
+
//#endregion
|
|
300
|
+
export { V as t };
|
package/dist/nxd-plugin.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { t as n } from "./chunks/component-GeologyLiveAlarm-CRRIUd2h.mjs";
|
|
|
4
4
|
import { t as r } from "./chunks/component-HighwayLiveAlarmNew-CPbcFfFw.mjs";
|
|
5
5
|
import { t as i } from "./chunks/component-HighwayStations-BQM5VnrX.mjs";
|
|
6
6
|
import { t as a } from "./chunks/component-HighWayEarlyWarningRed-DgNrFdzm.mjs";
|
|
7
|
-
import { t as o } from "./chunks/component-HighwayWeatherForecast-
|
|
7
|
+
import { t as o } from "./chunks/component-HighwayWeatherForecast-jJgs1nWv.mjs";
|
|
8
8
|
import { t as s } from "./chunks/component-ServiceMaterialsBtn-bkSh2Pec.mjs";
|
|
9
9
|
import { t as c } from "./chunks/component-YCHome-DHw2wL4Y.mjs";
|
|
10
10
|
import { t as l } from "./chunks/component-LithiumBatteryMiningArea-Cu4xOUMT.mjs";
|
|
@@ -12,8 +12,8 @@ import { t as u } from "./chunks/component-YCLoginNew-CAKG8hmF.mjs";
|
|
|
12
12
|
import { t as d } from "./chunks/component-HighWayFreeze-DzBnVD2r.mjs";
|
|
13
13
|
import { t as f } from "./chunks/component-RadarLegend-CkBt4euh.mjs";
|
|
14
14
|
import { t as p } from "./chunks/component-RadarShortTerm-sDd-YZK5.mjs";
|
|
15
|
-
import { t as m } from "./chunks/component-TimeBasedForecast-
|
|
16
|
-
import { t as h } from "./chunks/component-WeatherForecast-
|
|
15
|
+
import { t as m } from "./chunks/component-TimeBasedForecast-B7joXIvV.mjs";
|
|
16
|
+
import { t as h } from "./chunks/component-WeatherForecast-Dyf8v_Fq.mjs";
|
|
17
17
|
import { t as g } from "./chunks/component-ImageGeneration-BpL7GGVe.mjs";
|
|
18
18
|
import { t as _ } from "./chunks/component-WarningSignal-Bj-bDMis.mjs";
|
|
19
19
|
import { t as v } from "./chunks/component-RadarChart-Kv3AUHxN.mjs";
|
|
@@ -31,9 +31,10 @@ import { t as k } from "./chunks/component-EarlyWarningStatistic-DvAmY7Gh.mjs";
|
|
|
31
31
|
import { t as A } from "./chunks/component-ChartRealTimePre-6qop27YL.mjs";
|
|
32
32
|
import { t as j } from "./chunks/component-ChartCumulativePre-B-8gpBKH.mjs";
|
|
33
33
|
import { t as M } from "./chunks/component-ChartServiceMaterial-BJmsK4Yo.mjs";
|
|
34
|
+
import { t as N } from "./chunks/component-YCRealTimeTable-BCE5fGsG.mjs";
|
|
34
35
|
//#region src/index.ts
|
|
35
|
-
var
|
|
36
|
-
|
|
36
|
+
var P = { install(P) {
|
|
37
|
+
P.component("HighwayLiveAlarm", t), P.component("HighwayLiveAlarmNew", r), P.component("HighwayStations", i), P.component("HighWayEarlyWarningRed", a), P.component("HighwayWeatherForecast", o), P.component("ServiceMaterialsBtn", s), P.component("YCHome", c), P.component("YCLoginNew", u), P.component("HighWayFreeze", d), P.component("RadarShortTerm", p), P.component("LithiumBatteryMiningArea", l), P.component("TimeBasedForecast", m), P.component("WeatherForecast", h), P.component("ImageGeneration", g), P.component("WarningSignal", _), P.component("RadarChart", v), P.component("AqiMonitor", e), P.component("MapPopup", y), P.component("RadarTime", b), P.component("ServiceMaterial", x), P.component("WarningLine", S), P.component("RadarLegend", f), P.component("PieLegend", C), P.component("GeologyLiveAlarm", n), P.component("MaterialPreview", w), P.component("ReservoirLiveAlarm", T), P.component("IframeWeb", E), P.component("Duty", D), P.component("RenderMarkdown", O), P.component("EarlyWarningStatistic", k), P.component("ChartRealTimePre", A), P.component("ChartCumulativePre", j), P.component("ChartServiceMaterial", M), P.component("YCRealTimeTable", N);
|
|
37
38
|
} };
|
|
38
39
|
//#endregion
|
|
39
|
-
export { e as AqiMonitor, j as ChartCumulativePre, A as ChartRealTimePre, M as ChartServiceMaterial, D as Duty, k as EarlyWarningStatistic, n as GeologyLiveAlarm, a as HighWayEarlyWarningRed, d as HighWayFreeze, t as HighwayLiveAlarm, r as HighwayLiveAlarmNew, i as HighwayStations, o as HighwayWeatherForecast, E as IframeWeb, g as ImageGeneration, l as LithiumBatteryMiningArea, y as MapPopup, w as MaterialPreview, C as PieLegend, v as RadarChart, f as RadarLegend, p as RadarShortTerm, b as RadarTime, O as RenderMarkdown, T as ReservoirLiveAlarm, x as ServiceMaterial, s as ServiceMaterialsBtn, m as TimeBasedForecast, S as WarningLine, _ as WarningSignal, h as WeatherForecast, c as YCHome, u as YCLoginNew, N as default };
|
|
40
|
+
export { e as AqiMonitor, j as ChartCumulativePre, A as ChartRealTimePre, M as ChartServiceMaterial, D as Duty, k as EarlyWarningStatistic, n as GeologyLiveAlarm, a as HighWayEarlyWarningRed, d as HighWayFreeze, t as HighwayLiveAlarm, r as HighwayLiveAlarmNew, i as HighwayStations, o as HighwayWeatherForecast, E as IframeWeb, g as ImageGeneration, l as LithiumBatteryMiningArea, y as MapPopup, w as MaterialPreview, C as PieLegend, v as RadarChart, f as RadarLegend, p as RadarShortTerm, b as RadarTime, O as RenderMarkdown, T as ReservoirLiveAlarm, x as ServiceMaterial, s as ServiceMaterialsBtn, m as TimeBasedForecast, S as WarningLine, _ as WarningSignal, h as WeatherForecast, c as YCHome, u as YCLoginNew, N as YCRealTimeTable, P as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
appKey: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
appSalt: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
baseHttp: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
ids: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: () => {};
|
|
17
|
+
};
|
|
18
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
19
|
+
appKey: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
appSalt: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
baseHttp: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
ids: {
|
|
32
|
+
type: ObjectConstructor;
|
|
33
|
+
default: () => {};
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
36
|
+
baseHttp: string;
|
|
37
|
+
appKey: string;
|
|
38
|
+
appSalt: string;
|
|
39
|
+
ids: Record<string, any>;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
41
|
+
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -31,7 +31,8 @@ import { default as EarlyWarningStatistic } from './components/EarlyWarningStati
|
|
|
31
31
|
import { default as ChartRealTimePre } from './components/ChartRealTimePre/ChartRealTimePre.vue';
|
|
32
32
|
import { default as ChartCumulativePre } from './components/ChartCumulativePre/ChartCumulativePre.vue';
|
|
33
33
|
import { default as ChartServiceMaterial } from './components/ChartServiceMaterial/ChartServiceMaterial.vue';
|
|
34
|
+
import { default as YCRealTimeTable } from './components/YCRealTimeTable/YCRealTimeTable.vue';
|
|
34
35
|
import { Plugin } from 'vue';
|
|
35
|
-
export { HighwayLiveAlarm, HighwayLiveAlarmNew, HighwayStations, HighWayEarlyWarningRed, HighwayWeatherForecast, ServiceMaterialsBtn, YCHome, YCLoginNew, HighWayFreeze, RadarShortTerm, LithiumBatteryMiningArea, TimeBasedForecast, WeatherForecast, ImageGeneration, WarningSignal, RadarChart, AqiMonitor, MapPopup, RadarTime, ServiceMaterial, WarningLine, RadarLegend, PieLegend, GeologyLiveAlarm, MaterialPreview, ReservoirLiveAlarm, IframeWeb, Duty, RenderMarkdown, EarlyWarningStatistic, ChartRealTimePre, ChartCumulativePre, ChartServiceMaterial, };
|
|
36
|
+
export { HighwayLiveAlarm, HighwayLiveAlarmNew, HighwayStations, HighWayEarlyWarningRed, HighwayWeatherForecast, ServiceMaterialsBtn, YCHome, YCLoginNew, HighWayFreeze, RadarShortTerm, LithiumBatteryMiningArea, TimeBasedForecast, WeatherForecast, ImageGeneration, WarningSignal, RadarChart, AqiMonitor, MapPopup, RadarTime, ServiceMaterial, WarningLine, RadarLegend, PieLegend, GeologyLiveAlarm, MaterialPreview, ReservoirLiveAlarm, IframeWeb, Duty, RenderMarkdown, EarlyWarningStatistic, ChartRealTimePre, ChartCumulativePre, ChartServiceMaterial, YCRealTimeTable, };
|
|
36
37
|
declare const plugin: Plugin;
|
|
37
38
|
export default plugin;
|