nxd-plugin 1.7.65 → 1.7.67
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-YCDataMonitor-EnSHzmp3.mjs +325 -0
- package/dist/chunks/component-YCDataService-CF5aJpCW.mjs +399 -0
- package/dist/chunks/component-YCHomeLegend-CsgZ7ayU.mjs +28 -0
- package/dist/nxd-plugin.mjs +7 -7
- package/dist/src/components/{ChartRealTimePre/ChartRealTimePre.vue.d.ts → YCDataService/YCDataService.vue.d.ts} +19 -2
- package/dist/src/index.d.ts +3 -2
- package/dist/styles/component-YCDataMonitor.css +1 -0
- package/dist/styles/component-YCDataService.css +1 -0
- package/dist/styles/component-YCHomeLegend.css +1 -0
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/component-ChartRealTimePre-6qop27YL.mjs +0 -198
- package/dist/chunks/component-YCRealTimeTable-SCMyM6ky.mjs +0 -304
- package/dist/styles/component-ChartRealTimePre.css +0 -1
- package/dist/styles/component-YCRealTimeTable.css +0 -1
- /package/dist/chunks/{component-ChartCumulativePre-B-8gpBKH.mjs → component-ChartCumulativePre-CqnTrs3A.mjs} +0 -0
- /package/dist/chunks/{component-ChartServiceMaterial-BJmsK4Yo.mjs → component-ChartServiceMaterial-DN-uO_OP.mjs} +0 -0
package/package.json
CHANGED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { n as e, r as t } from "./component-AqiMonitor-DbEiA-eq.mjs";
|
|
2
|
-
import { ElLoadingDirective as n, ElOption as r, ElSelect as i } from "element-plus/es";
|
|
3
|
-
import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, withCtx as g, withDirectives as _ } from "vue";
|
|
4
|
-
import * as v from "echarts";
|
|
5
|
-
import "element-plus/es/components/loading/style/css";
|
|
6
|
-
import "element-plus/es/components/select/style/css";
|
|
7
|
-
import "element-plus/es/components/option/style/css";
|
|
8
|
-
//#region src/components/ChartRealTimePre/ChartRealTimePre.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var y = {
|
|
10
|
-
class: "ChartRealTimePre",
|
|
11
|
-
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
12
|
-
}, b = { class: "ChartRealTimePre-filters" }, x = { class: "filter-item" }, S = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
13
|
-
__name: "ChartRealTimePre",
|
|
14
|
-
props: {
|
|
15
|
-
appKey: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: ""
|
|
18
|
-
},
|
|
19
|
-
appSalt: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: ""
|
|
22
|
-
},
|
|
23
|
-
baseHttp: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: ""
|
|
26
|
-
},
|
|
27
|
-
ids: {
|
|
28
|
-
type: Object,
|
|
29
|
-
default: () => ({})
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
setup(e, { emit: u }) {
|
|
33
|
-
let S = e, C = u, w = m(!1), T = m("precipitation1h"), E = m([
|
|
34
|
-
{
|
|
35
|
-
label: "1小时",
|
|
36
|
-
value: "precipitation1h"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: "3小时",
|
|
40
|
-
value: "precipitation3h"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: "6小时",
|
|
44
|
-
value: "precipitation6h"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: "12小时",
|
|
48
|
-
value: "precipitation12h"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
label: "24小时",
|
|
52
|
-
value: "precipitation24h"
|
|
53
|
-
}
|
|
54
|
-
]), D = m(null), O = m(null), k = m(null), A = m([]), j = null;
|
|
55
|
-
f(() => {
|
|
56
|
-
M(), D.value = setInterval(() => {
|
|
57
|
-
M();
|
|
58
|
-
}, 1e3 * 60 * 10);
|
|
59
|
-
}), d(() => {
|
|
60
|
-
D.value && clearInterval(D.value), D.value = null, O.value && clearInterval(O.value), O.value = null, j &&= (j.dispose(), null);
|
|
61
|
-
});
|
|
62
|
-
let M = async () => {
|
|
63
|
-
O.value &&= (clearInterval(O.value), null), await N(), P(), O.value = setInterval(() => {
|
|
64
|
-
let e = E.value.findIndex((e) => e.value === T.value);
|
|
65
|
-
e === E.value.length - 1 ? T.value = E.value[0].value : T.value = E.value[e + 1].value, P();
|
|
66
|
-
}, 1e3 * 10);
|
|
67
|
-
}, N = async () => {
|
|
68
|
-
w.value = !0;
|
|
69
|
-
let e = await t({
|
|
70
|
-
appKey: S.appKey,
|
|
71
|
-
appSalt: S.appSalt,
|
|
72
|
-
id: S.ids.data.id,
|
|
73
|
-
variables: {},
|
|
74
|
-
baseHttp: S.baseHttp,
|
|
75
|
-
reqType: S.ids.data.reqType,
|
|
76
|
-
isFormData: S.ids.data.isFormData
|
|
77
|
-
});
|
|
78
|
-
w.value = !1, A.value = e.data.result.output || [];
|
|
79
|
-
}, P = () => {
|
|
80
|
-
if (!k.value) return;
|
|
81
|
-
j ||= v.init(k.value);
|
|
82
|
-
let e = A.value;
|
|
83
|
-
if (!e.length) return;
|
|
84
|
-
let t = e.map((e) => e.stationName), n = e.map((e) => e[T.value] || 0), r = {
|
|
85
|
-
title: {
|
|
86
|
-
text: "单位: mm",
|
|
87
|
-
textStyle: {
|
|
88
|
-
color: "#fff",
|
|
89
|
-
fontSize: 12,
|
|
90
|
-
fontWeight: "normal"
|
|
91
|
-
},
|
|
92
|
-
top: 0,
|
|
93
|
-
left: 0
|
|
94
|
-
},
|
|
95
|
-
tooltip: {
|
|
96
|
-
trigger: "axis",
|
|
97
|
-
axisPointer: { type: "shadow" },
|
|
98
|
-
valueFormatter: (e) => e + " mm"
|
|
99
|
-
},
|
|
100
|
-
grid: {
|
|
101
|
-
left: "3%",
|
|
102
|
-
right: "4%",
|
|
103
|
-
bottom: "3%",
|
|
104
|
-
top: "30px",
|
|
105
|
-
containLabel: !0
|
|
106
|
-
},
|
|
107
|
-
xAxis: {
|
|
108
|
-
type: "category",
|
|
109
|
-
data: t,
|
|
110
|
-
axisLabel: {
|
|
111
|
-
color: "#fff",
|
|
112
|
-
interval: 0,
|
|
113
|
-
fontSize: 10
|
|
114
|
-
},
|
|
115
|
-
axisLine: { lineStyle: { color: "rgba(255, 255, 255, 0.3)" } }
|
|
116
|
-
},
|
|
117
|
-
yAxis: {
|
|
118
|
-
type: "value",
|
|
119
|
-
axisLabel: {
|
|
120
|
-
color: "#fff",
|
|
121
|
-
fontSize: 10
|
|
122
|
-
},
|
|
123
|
-
splitLine: { lineStyle: {
|
|
124
|
-
color: "rgba(255, 255, 255, 0.1)",
|
|
125
|
-
type: "dashed"
|
|
126
|
-
} }
|
|
127
|
-
},
|
|
128
|
-
series: [{
|
|
129
|
-
name: "降水量",
|
|
130
|
-
type: "bar",
|
|
131
|
-
barWidth: "40%",
|
|
132
|
-
label: {
|
|
133
|
-
show: !0,
|
|
134
|
-
position: "top",
|
|
135
|
-
color: "#fff",
|
|
136
|
-
fontSize: 10
|
|
137
|
-
},
|
|
138
|
-
itemStyle: {
|
|
139
|
-
color: new v.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
140
|
-
offset: 0,
|
|
141
|
-
color: "#0bc4e9"
|
|
142
|
-
}, {
|
|
143
|
-
offset: 1,
|
|
144
|
-
color: "#005bea"
|
|
145
|
-
}]),
|
|
146
|
-
borderRadius: [
|
|
147
|
-
4,
|
|
148
|
-
4,
|
|
149
|
-
0,
|
|
150
|
-
0
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
data: n
|
|
154
|
-
}]
|
|
155
|
-
};
|
|
156
|
-
j.clear(), j.setOption(r);
|
|
157
|
-
}, F = () => {
|
|
158
|
-
C("close", "ChartRealTimePre");
|
|
159
|
-
};
|
|
160
|
-
return (e, t) => {
|
|
161
|
-
let u = r, d = i, f = n;
|
|
162
|
-
return _((p(), s("div", y, [
|
|
163
|
-
c("div", { class: "ChartRealTimePre-head" }, [c("div", { class: "ChartRealTimePre-head-top" }, [t[1] ||= c("div", null, "降水实况", -1), c("div", {
|
|
164
|
-
class: "closeBtn",
|
|
165
|
-
onClick: F,
|
|
166
|
-
title: "关闭"
|
|
167
|
-
})]), t[2] ||= c("img", {
|
|
168
|
-
class: "ChartRealTimePre-head-line",
|
|
169
|
-
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",
|
|
170
|
-
alt: ""
|
|
171
|
-
}, null, -1)]),
|
|
172
|
-
c("div", b, [c("div", x, [t[3] ||= c("span", { class: "label" }, "小时:", -1), l(d, {
|
|
173
|
-
modelValue: T.value,
|
|
174
|
-
"onUpdate:modelValue": t[0] ||= (e) => T.value = e,
|
|
175
|
-
placeholder: "请选择",
|
|
176
|
-
class: "dark-select",
|
|
177
|
-
style: { width: "100px" },
|
|
178
|
-
size: "small",
|
|
179
|
-
onChange: P
|
|
180
|
-
}, {
|
|
181
|
-
default: g(() => [(p(!0), s(a, null, h(E.value, (e) => (p(), o(u, {
|
|
182
|
-
key: e.value,
|
|
183
|
-
label: e.label,
|
|
184
|
-
value: e.value
|
|
185
|
-
}, null, 8, ["label", "value"]))), 128))]),
|
|
186
|
-
_: 1
|
|
187
|
-
}, 8, ["modelValue"])])]),
|
|
188
|
-
c("div", {
|
|
189
|
-
ref_key: "chartRef",
|
|
190
|
-
ref: k,
|
|
191
|
-
class: "ChartRealTimePre-chart"
|
|
192
|
-
}, null, 512)
|
|
193
|
-
])), [[f, w.value]]);
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}), [["__scopeId", "data-v-ebb61765"]]);
|
|
197
|
-
//#endregion
|
|
198
|
-
export { S as t };
|
|
@@ -1,304 +0,0 @@
|
|
|
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, onBeforeUnmount as m, onMounted as h, openBlock as g, ref as _, renderList as v, toDisplayString as y, withDirectives as b } 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 x = {
|
|
9
|
-
class: "YCRealTimeTable",
|
|
10
|
-
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
11
|
-
}, S = { class: "YCRealTimeTable-summary" }, C = { class: "summary-table" }, w = { class: "summary-head" }, T = { class: "summary-body" }, E = { class: "summary-cell summary-cell-label" }, D = { class: "YCRealTimeTable-toolbar" }, O = { class: "filter-group" }, ee = { class: "YCRealTimeTable-detail" }, te = { class: "detail-table" }, ne = { class: "detail-head" }, k = ["onClick"], A = { class: "detail-body" }, j = { class: "detail-cell detail-cell-index" }, M = { class: "detail-cell" }, 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 = /* @__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, B = _(!1), V = _([]), H = [
|
|
33
|
-
"当前小时雨量(测试)",
|
|
34
|
-
"1小时雨量",
|
|
35
|
-
"3小时雨量",
|
|
36
|
-
"20时至当前雨量",
|
|
37
|
-
"24小时雨量",
|
|
38
|
-
"极大风速",
|
|
39
|
-
"能见度",
|
|
40
|
-
"最小能见度"
|
|
41
|
-
], U = _([]), W = _([]), G = [
|
|
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
|
-
], K = _(!0), q = _(""), J = _(""), Y = _(null), X = _(null), Z = _(null), re = o(() => {
|
|
113
|
-
let e = W.value;
|
|
114
|
-
K.value || (e = e.filter((e) => e.county === "袁州区"));
|
|
115
|
-
let t = q.value.trim();
|
|
116
|
-
t && (e = e.filter((e) => e.county.includes(t)));
|
|
117
|
-
let n = J.value.trim();
|
|
118
|
-
return n && (e = e.filter((e) => e.station.includes(n))), e;
|
|
119
|
-
}), ie = o(() => {
|
|
120
|
-
let e = [...re.value];
|
|
121
|
-
if (!Y.value || !X.value) return e;
|
|
122
|
-
let t = Y.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 X.value === "asc" ? s - c : c - s;
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
h(() => {
|
|
138
|
-
Q(), Z.value = setInterval(() => {
|
|
139
|
-
Q();
|
|
140
|
-
}, 1e3 * 60 * 10);
|
|
141
|
-
}), m(() => {
|
|
142
|
-
clearInterval(Z.value), Z.value = null;
|
|
143
|
-
});
|
|
144
|
-
let Q = async () => {
|
|
145
|
-
B.value = !0;
|
|
146
|
-
let e = (await t({
|
|
147
|
-
appKey: f.appKey,
|
|
148
|
-
appSalt: f.appSalt,
|
|
149
|
-
id: f.ids.data.id,
|
|
150
|
-
variables: {},
|
|
151
|
-
baseHttp: f.baseHttp,
|
|
152
|
-
reqType: f.ids.data.reqType,
|
|
153
|
-
isFormData: f.ids.data.isFormData
|
|
154
|
-
})).data.result.output || "{}", r = JSON.parse(e);
|
|
155
|
-
console.log("res", r.data);
|
|
156
|
-
let { nationalStations: i, otherStations: a } = r.data || {
|
|
157
|
-
nationalStations: [],
|
|
158
|
-
otherStations: []
|
|
159
|
-
};
|
|
160
|
-
V.value = (i || []).map((e) => e.stationName);
|
|
161
|
-
let o = (e) => e == null || e === "" ? "" : e;
|
|
162
|
-
U.value = H.map((e) => (i || []).map((t) => {
|
|
163
|
-
switch (e) {
|
|
164
|
-
case "当前小时雨量(测试)": return {
|
|
165
|
-
value: o(t.currentHourRain),
|
|
166
|
-
isWarn: t.currentHourRainThreshold === 1
|
|
167
|
-
};
|
|
168
|
-
case "1小时雨量": return {
|
|
169
|
-
value: o(t.rain1h),
|
|
170
|
-
isWarn: t.rain1hThreshold === 1
|
|
171
|
-
};
|
|
172
|
-
case "3小时雨量": return {
|
|
173
|
-
value: o(t.rain3h),
|
|
174
|
-
isWarn: t.rain3hThreshold === 1
|
|
175
|
-
};
|
|
176
|
-
case "20时至当前雨量": return {
|
|
177
|
-
value: o(t.rain20ToNow),
|
|
178
|
-
isWarn: !1
|
|
179
|
-
};
|
|
180
|
-
case "24小时雨量": return {
|
|
181
|
-
value: o(t.rain24h),
|
|
182
|
-
isWarn: !1
|
|
183
|
-
};
|
|
184
|
-
case "极大风速": return {
|
|
185
|
-
value: o(t.winSInstMax),
|
|
186
|
-
isWarn: !1
|
|
187
|
-
};
|
|
188
|
-
case "能见度": return {
|
|
189
|
-
value: o(t.visHor1mi),
|
|
190
|
-
isWarn: t.visHor1miThreshold === 1
|
|
191
|
-
};
|
|
192
|
-
case "最小能见度": return {
|
|
193
|
-
value: o(t.visMin),
|
|
194
|
-
isWarn: !1
|
|
195
|
-
};
|
|
196
|
-
default: return {
|
|
197
|
-
value: "",
|
|
198
|
-
isWarn: !1
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
})), W.value = (a || []).map((e) => {
|
|
202
|
-
let t = "";
|
|
203
|
-
if (e.datetime) {
|
|
204
|
-
let n = e.datetime.match(/(\d{2}):(\d{2}):\d{2}$/);
|
|
205
|
-
n && (t = `${n[1]}时${n[2]}分`);
|
|
206
|
-
}
|
|
207
|
-
return {
|
|
208
|
-
county: e.cnty || "",
|
|
209
|
-
station: e.stationName || "",
|
|
210
|
-
time: t,
|
|
211
|
-
rain24: o(e.rain24h),
|
|
212
|
-
rain20: o(e.rain20ToNow),
|
|
213
|
-
rain3: o(e.rain3h),
|
|
214
|
-
rain3Warn: e.rain3hThreshold === 1,
|
|
215
|
-
rain1: o(e.rain1h),
|
|
216
|
-
rain1Warn: e.rain1hThreshold === 1,
|
|
217
|
-
rainCurrent: o(e.currentHourRain),
|
|
218
|
-
rainCurrentWarn: e.currentHourRainThreshold === 1,
|
|
219
|
-
temp: o(e.tem),
|
|
220
|
-
tempWarn: e.temThreshold === 1,
|
|
221
|
-
windDir: e.winDInstMax ? n(e.winDInstMax) : "",
|
|
222
|
-
windSpeed: o(e.winSInstMax),
|
|
223
|
-
windSpeedWarn: e.winSInstMaxThreshold === 1,
|
|
224
|
-
humidity: o(e.rhu),
|
|
225
|
-
pressure: o(e.prs)
|
|
226
|
-
};
|
|
227
|
-
}), setTimeout(() => {
|
|
228
|
-
B.value = !1;
|
|
229
|
-
}, 300);
|
|
230
|
-
}, $ = (e) => {
|
|
231
|
-
if (!e) return -1;
|
|
232
|
-
let t = e.match(/(\d+)时(\d+)分/);
|
|
233
|
-
return t ? Number(t[1]) * 60 + Number(t[2]) : -1;
|
|
234
|
-
}, ae = (e, t) => t == null || t === "" ? "" : t, oe = (e) => {
|
|
235
|
-
Y.value === e ? X.value === "desc" ? X.value = "asc" : X.value === "asc" ? (Y.value = null, X.value = null) : X.value = "desc" : (Y.value = e, X.value = "desc");
|
|
236
|
-
};
|
|
237
|
-
return (e, t) => {
|
|
238
|
-
let n = r, o = i;
|
|
239
|
-
return b((g(), c("div", x, [
|
|
240
|
-
l("div", S, [l("div", C, [l("div", w, [t[3] ||= l("div", { class: "summary-cell summary-cell-label" }, "监测要素", -1), (g(!0), c(a, null, v(V.value, (e, t) => (g(), c("div", {
|
|
241
|
-
class: "summary-cell",
|
|
242
|
-
key: t
|
|
243
|
-
}, y(e), 1))), 128))]), l("div", T, [(g(), c(a, null, v(H, (e, t) => l("div", {
|
|
244
|
-
class: "summary-row",
|
|
245
|
-
key: e
|
|
246
|
-
}, [l("div", E, y(e), 1), (g(!0), c(a, null, v(V.value, (n, r) => (g(), c("div", {
|
|
247
|
-
class: p(["summary-cell", { "is-warn": U.value[t]?.[r]?.isWarn }]),
|
|
248
|
-
key: r
|
|
249
|
-
}, y(ae(e, U.value[t]?.[r]?.value)), 3))), 128))])), 64))])])]),
|
|
250
|
-
l("div", D, [l("div", O, [
|
|
251
|
-
l("button", {
|
|
252
|
-
class: p(["city-btn", { active: K.value }]),
|
|
253
|
-
onClick: t[0] ||= (e) => K.value = !K.value
|
|
254
|
-
}, "全市", 2),
|
|
255
|
-
d(n, {
|
|
256
|
-
modelValue: q.value,
|
|
257
|
-
"onUpdate:modelValue": t[1] ||= (e) => q.value = e,
|
|
258
|
-
placeholder: "县名搜索",
|
|
259
|
-
clearable: "",
|
|
260
|
-
class: "filter-input"
|
|
261
|
-
}, null, 8, ["modelValue"]),
|
|
262
|
-
d(n, {
|
|
263
|
-
modelValue: J.value,
|
|
264
|
-
"onUpdate:modelValue": t[2] ||= (e) => J.value = e,
|
|
265
|
-
placeholder: "站名搜索",
|
|
266
|
-
clearable: "",
|
|
267
|
-
class: "filter-input"
|
|
268
|
-
}, null, 8, ["modelValue"])
|
|
269
|
-
])]),
|
|
270
|
-
l("div", ee, [l("div", te, [l("div", ne, [(g(), c(a, null, v(G, (e) => l("div", {
|
|
271
|
-
class: p(["detail-cell", {
|
|
272
|
-
"is-sortable": e.sortable,
|
|
273
|
-
"is-active": Y.value === e.key
|
|
274
|
-
}]),
|
|
275
|
-
key: e.key,
|
|
276
|
-
onClick: (t) => e.sortable && oe(e.key)
|
|
277
|
-
}, [u(y(e.label) + " ", 1), e.sortable ? (g(), c("span", {
|
|
278
|
-
key: 0,
|
|
279
|
-
class: p(["sort-icon", Y.value === e.key ? X.value : ""])
|
|
280
|
-
}, null, 2)) : s("", !0)], 10, k)), 64))]), l("div", A, [(g(!0), c(a, null, v(ie.value, (e, t) => (g(), c("div", {
|
|
281
|
-
class: "detail-row",
|
|
282
|
-
key: `${e.county}-${e.station}-${t}`
|
|
283
|
-
}, [
|
|
284
|
-
l("div", j, y(t + 1), 1),
|
|
285
|
-
l("div", M, y(e.county), 1),
|
|
286
|
-
l("div", N, y(e.station), 1),
|
|
287
|
-
l("div", P, y(e.time), 1),
|
|
288
|
-
l("div", F, y(e.rain24), 1),
|
|
289
|
-
l("div", I, y(e.rain20), 1),
|
|
290
|
-
l("div", { class: p(["detail-cell", { "is-warn": e.rain3Warn }]) }, y(e.rain3), 3),
|
|
291
|
-
l("div", { class: p(["detail-cell", { "is-warn": e.rain1Warn }]) }, y(e.rain1), 3),
|
|
292
|
-
l("div", { class: p(["detail-cell", { "is-warn": e.rainCurrentWarn }]) }, y(e.rainCurrent), 3),
|
|
293
|
-
l("div", { class: p(["detail-cell", { "is-warn": e.tempWarn }]) }, y(e.temp), 3),
|
|
294
|
-
l("div", L, y(e.windDir), 1),
|
|
295
|
-
l("div", { class: p(["detail-cell", { "is-warn": e.windSpeedWarn }]) }, y(e.windSpeed), 3),
|
|
296
|
-
l("div", R, y(e.humidity), 1),
|
|
297
|
-
l("div", z, y(e.pressure), 1)
|
|
298
|
-
]))), 128))])])])
|
|
299
|
-
])), [[o, B.value]]);
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
}), [["__scopeId", "data-v-928a0ae4"]]);
|
|
303
|
-
//#endregion
|
|
304
|
-
export { B as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ChartRealTimePre[data-v-ebb61765]{color:#fff;box-sizing:border-box;background:#002140e6;border:1px solid #0bc4e9;width:360px;height:300px;padding:10px;position:relative}.ChartRealTimePre .ChartRealTimePre-head[data-v-ebb61765]{width:100%;position:relative}.ChartRealTimePre .ChartRealTimePre-head .ChartRealTimePre-head-top[data-v-ebb61765]{color:#fff;justify-content:space-between;align-items:center;width:100%;height:20px;margin-bottom:6px;font-size:16px;font-weight:700;display:flex}.ChartRealTimePre .ChartRealTimePre-head .ChartRealTimePre-head-top .closeBtn[data-v-ebb61765]{cursor:pointer;background:#b4c4d247;border:1px solid #b0d2e65c;border-radius:50%;width:16px;height:16px;transition:background-color .28s cubic-bezier(.22,1,.36,1),border-color .28s cubic-bezier(.22,1,.36,1),box-shadow .28s cubic-bezier(.22,1,.36,1),transform .22s cubic-bezier(.22,1,.36,1);position:relative;transform:scale(1);box-shadow:inset 0 1px 1px #ffffff1f}.ChartRealTimePre .ChartRealTimePre-head .ChartRealTimePre-head-top .closeBtn[data-v-ebb61765]:before,.ChartRealTimePre .ChartRealTimePre-head .ChartRealTimePre-head-top .closeBtn[data-v-ebb61765]:after{content:"";transform-origin:50%;opacity:0;background:#7a1b18;border-radius:1px;width:9px;height:1.8px;transition:opacity .2s;position:absolute;top:50%;left:50%}.ChartRealTimePre .ChartRealTimePre-head .ChartRealTimePre-head-top .closeBtn[data-v-ebb61765]:before{transform:translate(-50%,-50%)rotate(45deg)}.ChartRealTimePre .ChartRealTimePre-head .ChartRealTimePre-head-top .closeBtn[data-v-ebb61765]:after{transform:translate(-50%,-50%)rotate(-45deg)}.ChartRealTimePre .ChartRealTimePre-head .ChartRealTimePre-head-top .closeBtn[data-v-ebb61765]:hover{background:#ff5f57;border-color:#e0443e;transform:scale(1.14);box-shadow:inset 0 1px 1px #ffffff59,0 0 0 1px #0003}.ChartRealTimePre .ChartRealTimePre-head .ChartRealTimePre-head-top .closeBtn[data-v-ebb61765]:hover:before,.ChartRealTimePre .ChartRealTimePre-head .ChartRealTimePre-head-top .closeBtn[data-v-ebb61765]:hover:after{opacity:1}.ChartRealTimePre .ChartRealTimePre-head .ChartRealTimePre-head-top .closeBtn[data-v-ebb61765]:active{transform:scale(.96)}.ChartRealTimePre .ChartRealTimePre-head .ChartRealTimePre-head-line[data-v-ebb61765]{width:100%;height:10px}.ChartRealTimePre .ChartRealTimePre-filters[data-v-ebb61765]{justify-content:flex-end;align-items:center;width:100%;margin-top:8px;margin-bottom:2px;display:flex}.ChartRealTimePre .ChartRealTimePre-filters .filter-item[data-v-ebb61765]{color:#fff;align-items:center;font-size:13px;display:flex}.ChartRealTimePre .ChartRealTimePre-filters .filter-item .label[data-v-ebb61765]{flex-shrink:0}.ChartRealTimePre .ChartRealTimePre-filters .filter-item[data-v-ebb61765] .dark-select .el-select__wrapper{height:24px;min-height:24px;box-shadow:none;background:#0bc4e914;border:1px solid #0bc4e94d;padding-top:0;padding-bottom:0}.ChartRealTimePre .ChartRealTimePre-filters .filter-item[data-v-ebb61765] .dark-select .el-select__placeholder,.ChartRealTimePre .ChartRealTimePre-filters .filter-item[data-v-ebb61765] .dark-select .el-select__selected-item{color:#ffffffdb}.ChartRealTimePre .ChartRealTimePre-chart[data-v-ebb61765]{width:100%;height:calc(100% - 70px)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.YCRealTimeTable[data-v-928a0ae4]{box-sizing:border-box;color:#fff;background:#00142df2;flex-direction:column;width:100%;height:100%;padding:16px;display:flex;overflow:hidden}.YCRealTimeTable-summary[data-v-928a0ae4]{background:#002140d9;border:1px solid #0bc4e933;border-radius:8px;flex-shrink:0;margin-bottom:12px;padding:12px;overflow-x:auto;box-shadow:0 4px 16px #0000004d}.summary-table[data-v-928a0ae4]{flex-direction:column;width:100%;min-width:900px;font-size:13px;display:flex}.summary-head[data-v-928a0ae4]{background:#0bc4e924;border-bottom:1px solid #0bc4e940;display:flex}.summary-body[data-v-928a0ae4]{flex-direction:column;display:flex}.summary-row[data-v-928a0ae4]{border-bottom:1px solid #ffffff0f;display:flex}.summary-row[data-v-928a0ae4]:last-child{border-bottom:none}.summary-row[data-v-928a0ae4]:nth-child(2n){background:#ffffff08}.summary-cell[data-v-928a0ae4]{text-align:center;white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;padding:8px 4px;overflow:hidden}.summary-cell-label[data-v-928a0ae4]{text-align:left;color:#b0eaff;flex:1.6;padding-left:10px;font-weight:500}.summary-cell.is-warn[data-v-928a0ae4]{color:#ff4d4f;font-weight:600}.YCRealTimeTable-toolbar[data-v-928a0ae4]{flex-shrink:0;align-items:center;margin-bottom:10px;padding:0 2px;display:flex}.filter-group[data-v-928a0ae4]{align-items:center;gap:10px;display:flex}.city-btn[data-v-928a0ae4]{color:#fff;cursor:pointer;background:#002140b3;border:1px solid #0bc4e980;border-radius:16px;padding:6px 18px;font-size:13px;transition:all .2s}.city-btn[data-v-928a0ae4]:hover{color:#0bc4e9;border-color:#0bc4e9}.city-btn.active[data-v-928a0ae4]{color:#001529;background:#0bc4e9;border-color:#0bc4e9;box-shadow:0 2px 8px #0bc4e959}.filter-input[data-v-928a0ae4]{width:150px}.filter-input[data-v-928a0ae4] .el-input__wrapper{background:#002140b3;border-radius:16px;box-shadow:inset 0 0 0 1px #0bc4e959}.filter-input[data-v-928a0ae4] .el-input__wrapper.is-focus{box-shadow:inset 0 0 0 1px #0bc4e9}.filter-input[data-v-928a0ae4] .el-input__inner{color:#fff;font-size:13px}.filter-input[data-v-928a0ae4] .el-input__inner::placeholder{color:#ffffff73}.YCRealTimeTable-detail[data-v-928a0ae4]{background:#002140d9;border:1px solid #0bc4e933;border-radius:8px;flex:1;min-height:0;overflow:auto;box-shadow:0 4px 16px #0000004d}.detail-table[data-v-928a0ae4]{flex-direction:column;width:100%;min-width:1200px;height:100%;font-size:13px;display:flex}.detail-head[data-v-928a0ae4]{background:#0bc4e924;border-bottom:1px solid #0bc4e940;flex-shrink:0;display:flex}.detail-body[data-v-928a0ae4]{flex:1;min-height:0;overflow:hidden auto}.detail-row[data-v-928a0ae4]{border-bottom:1px solid #ffffff0d;display:flex}.detail-row[data-v-928a0ae4]:last-child{border-bottom:none}.detail-row[data-v-928a0ae4]:nth-child(2n){background:#ffffff08}.detail-row[data-v-928a0ae4]:hover{background:#0bc4e914}.detail-cell[data-v-928a0ae4]{text-align:center;white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;padding:10px 4px;overflow:hidden}.detail-cell-index[data-v-928a0ae4]{color:#0bc4e9;font-weight:600}.detail-row .detail-cell[data-v-928a0ae4]:first-child,.detail-head .detail-cell[data-v-928a0ae4]:first-child{flex:.5}.detail-row .detail-cell[data-v-928a0ae4]:nth-child(3),.detail-head .detail-cell[data-v-928a0ae4]:nth-child(3){flex:1.5}.detail-cell.is-warn[data-v-928a0ae4]{color:#ff4d4f;font-weight:600}.detail-head .detail-cell[data-v-928a0ae4]{color:#b0eaff;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:12px 4px;font-weight:600;display:flex}.detail-head .detail-cell.is-sortable[data-v-928a0ae4]{cursor:pointer}.detail-head .detail-cell.is-sortable[data-v-928a0ae4]:hover{color:#0bc4e9}.detail-head .detail-cell.is-active[data-v-928a0ae4]{color:#0bc4e9;background:#0bc4e91f}.sort-icon[data-v-928a0ae4]{border-bottom:5px solid #ffffff59;border-left:4px solid #0000;border-right:4px solid #0000;width:0;height:0;margin-left:5px;display:inline-block;position:relative}.sort-icon[data-v-928a0ae4]:after{content:"";border-top:5px solid #ffffff59;border-left:4px solid #0000;border-right:4px solid #0000;position:absolute;top:7px;left:-4px}.sort-icon.desc[data-v-928a0ae4]{border-bottom-color:#0bc4e9}.sort-icon.asc[data-v-928a0ae4]:after{border-top-color:#0bc4e9}.detail-body[data-v-928a0ae4]::-webkit-scrollbar{width:6px}.detail-body[data-v-928a0ae4]::-webkit-scrollbar-track{background:#ffffff0d}.detail-body[data-v-928a0ae4]::-webkit-scrollbar-thumb{background:#0bc4e959;border-radius:3px}.detail-body[data-v-928a0ae4]::-webkit-scrollbar-thumb:hover{background:#0bc4e98c}
|
|
File without changes
|
|
File without changes
|