nxd-plugin 1.7.88 → 1.7.89
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-EarlyWarningStatistic2-BStW2Xsz.mjs → component-EarlyWarningStatistic2-BZ6Xbs8K.mjs} +40 -40
- package/dist/chunks/{component-HighQuality-pp_4lHN_.mjs → component-HighQuality-D771XcpI.mjs} +2 -5
- package/dist/chunks/{component-HighwayLiveAlarmNew-_OLfGJ_V.mjs → component-HighwayLiveAlarmNew-8su9mRUD.mjs} +259 -256
- package/dist/chunks/component-RadarShortTerm-DpXuwtc6.mjs +463 -0
- package/dist/chunks/{component-StationList-BVrF2FB9.mjs → component-StationList-zjwlJg41.mjs} +3 -3
- package/dist/nxd-plugin.mjs +9 -9
- package/dist/styles/component-EarlyWarningStatistic2.css +1 -1
- package/dist/styles/component-HighQuality.css +1 -1
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-RadarShortTerm.css +1 -1
- package/dist/styles/component-StationList.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/component-RadarShortTerm-bhfG_pGu.mjs +0 -361
- package/dist/chunks/{component-HdPreSituation-CjWE4U3Z.mjs → component-HdPreSituation-CpZnlGJv.mjs} +1 -1
- package/dist/chunks/{component-HdRadarList-BeweWRve.mjs → component-HdRadarList-DuBiBRVc.mjs} +1 -1
- package/dist/chunks/{component-HdServiceMarterial-AUSyf9Mh.mjs → component-HdServiceMarterial-DwVtOltt.mjs} +1 -1
- package/dist/chunks/{component-PrecipitationRanking-B9PiOW6V.mjs → component-PrecipitationRanking-CCZpk2tu.mjs} +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as e } from "./component-AqiMonitor-DOK4C-xg.mjs";
|
|
2
2
|
import { i as t } from "./component-AiChat-BnEFgV35.mjs";
|
|
3
3
|
import { ElLoadingDirective as n } from "element-plus/es";
|
|
4
|
-
import { Fragment as r, computed as i, createElementBlock as a, createElementVNode as o, defineComponent as s,
|
|
4
|
+
import { Fragment as r, computed as i, createElementBlock as a, createElementVNode as o, defineComponent as s, nextTick as c, normalizeStyle as l, onBeforeUnmount as u, onMounted as d, openBlock as f, ref as p, renderList as m, toDisplayString as h, vShow as g, withDirectives as _ } from "vue";
|
|
5
5
|
import "element-plus/es/components/loading/style/css";
|
|
6
6
|
//#region src/components/EarlyWarningStatistic2/EarlyWarningStatistic2.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var v = {
|
|
8
8
|
class: "EarlyWarningStatistic2",
|
|
9
9
|
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
10
|
-
},
|
|
10
|
+
}, y = { class: "EarlyWarningStatistic2-head" }, b = { class: "EarlyWarningStatistic2-head-top" }, x = { class: "EarlyWarningStatistic2-body" }, S = { class: "EarlyWarningStatistic2-label" }, C = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
11
11
|
__name: "EarlyWarningStatistic2",
|
|
12
12
|
props: {
|
|
13
13
|
title: { default: "预警信号" },
|
|
@@ -19,90 +19,90 @@ var _ = {
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["close"],
|
|
21
21
|
setup(e, { emit: s }) {
|
|
22
|
-
let
|
|
22
|
+
let C = e, w = s, T = p(!1), E = p(!1), D = p(null), O = p({});
|
|
23
23
|
i(() => (/* @__PURE__ */ new Date()).getFullYear());
|
|
24
|
-
let
|
|
24
|
+
let k = {
|
|
25
25
|
红色: "#ff4d4f",
|
|
26
26
|
橙色: "#fa8c16",
|
|
27
27
|
黄色: "#fadb14",
|
|
28
28
|
蓝色: "#1890ff"
|
|
29
|
-
},
|
|
30
|
-
let e =
|
|
31
|
-
if (!e) return
|
|
29
|
+
}, A = i(() => {
|
|
30
|
+
let e = O.value;
|
|
31
|
+
if (!e) return j({});
|
|
32
32
|
if (Array.isArray(e)) {
|
|
33
33
|
let t = {};
|
|
34
34
|
return e.forEach((e) => {
|
|
35
35
|
let n = e.grade || e.color;
|
|
36
36
|
n && (t[n] = (t[n] || 0) + 1);
|
|
37
|
-
}),
|
|
37
|
+
}), j(t);
|
|
38
38
|
}
|
|
39
39
|
if (e.gradeData && Array.isArray(e.gradeData)) {
|
|
40
40
|
let t = {};
|
|
41
41
|
return e.gradeData.forEach((e) => {
|
|
42
42
|
t[e.color] = e.count || 0;
|
|
43
|
-
}),
|
|
43
|
+
}), j(t);
|
|
44
44
|
}
|
|
45
|
-
return
|
|
46
|
-
}),
|
|
45
|
+
return j({});
|
|
46
|
+
}), j = (e) => Object.keys(k).map((t) => ({
|
|
47
47
|
grade: t,
|
|
48
48
|
count: e[t] || 0,
|
|
49
|
-
color:
|
|
50
|
-
glow: `${
|
|
51
|
-
})),
|
|
52
|
-
if (!
|
|
49
|
+
color: k[t],
|
|
50
|
+
glow: `${k[t]}66`
|
|
51
|
+
})), M = async () => {
|
|
52
|
+
if (!C.ids.data?.id) {
|
|
53
53
|
console.warn("EarlyWarningStatistic2 缺少数据工作流配置");
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
E.value = !0;
|
|
57
57
|
let e = {
|
|
58
|
-
appKey:
|
|
59
|
-
appSalt:
|
|
60
|
-
id:
|
|
58
|
+
appKey: C.appKey,
|
|
59
|
+
appSalt: C.appSalt,
|
|
60
|
+
id: C.ids.data.id,
|
|
61
61
|
variables: {},
|
|
62
|
-
baseHttp:
|
|
63
|
-
reqType:
|
|
64
|
-
isFormData:
|
|
62
|
+
baseHttp: C.baseHttp,
|
|
63
|
+
reqType: C.ids.data.reqType,
|
|
64
|
+
isFormData: C.ids.data.isFormData
|
|
65
65
|
};
|
|
66
66
|
try {
|
|
67
67
|
let n = await t(e);
|
|
68
|
-
|
|
68
|
+
O.value = n.data?.result.output ?? n.data?.result ?? n.data ?? [], console.log(O.value, "list.value");
|
|
69
69
|
} catch (e) {
|
|
70
70
|
console.error("EarlyWarningStatistic2 加载失败", e);
|
|
71
71
|
} finally {
|
|
72
|
-
|
|
72
|
+
T.value = !0, O.value.length == 0 && (await c(), N()), E.value = !1;
|
|
73
73
|
}
|
|
74
|
-
},
|
|
75
|
-
|
|
74
|
+
}, N = () => {
|
|
75
|
+
w("close", "EarlyWarningStatistic2");
|
|
76
76
|
};
|
|
77
|
-
return
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
return d(() => {
|
|
78
|
+
M(), D.value = setInterval(() => {
|
|
79
|
+
M();
|
|
80
80
|
}, 1e3 * 60 * 10);
|
|
81
|
-
}),
|
|
82
|
-
|
|
81
|
+
}), u(() => {
|
|
82
|
+
D.value &&= (clearInterval(D.value), null);
|
|
83
83
|
}), (t, i) => {
|
|
84
84
|
let s = n;
|
|
85
|
-
return
|
|
85
|
+
return _((f(), a("div", v, [o("div", y, [o("div", b, [o("div", null, h(e.title), 1), o("div", {
|
|
86
86
|
class: "closeBtn",
|
|
87
|
-
onClick:
|
|
87
|
+
onClick: N,
|
|
88
88
|
title: "关闭"
|
|
89
89
|
})]), i[0] ||= o("img", {
|
|
90
90
|
class: "EarlyWarningStatistic2-head-line",
|
|
91
91
|
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",
|
|
92
92
|
alt: ""
|
|
93
|
-
}, null, -1)]), o("div",
|
|
93
|
+
}, null, -1)]), o("div", x, [(f(!0), a(r, null, m(A.value, (t) => (f(), a("div", {
|
|
94
94
|
key: t.grade,
|
|
95
95
|
class: "EarlyWarningStatistic2-card",
|
|
96
|
-
style:
|
|
96
|
+
style: l({
|
|
97
97
|
"--card-color": t.color,
|
|
98
98
|
"--card-glow": t.glow
|
|
99
99
|
})
|
|
100
100
|
}, [o("div", {
|
|
101
101
|
class: "EarlyWarningStatistic2-count",
|
|
102
|
-
style:
|
|
103
|
-
},
|
|
102
|
+
style: l({ "font-size": e.countSize })
|
|
103
|
+
}, h(t.count), 5), o("div", S, h(t.grade), 1)], 4))), 128))])])), [[g, T.value], [s, E.value]]);
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
}), [["__scopeId", "data-v-
|
|
106
|
+
}), [["__scopeId", "data-v-9b83e9ba"]]);
|
|
107
107
|
//#endregion
|
|
108
|
-
export {
|
|
108
|
+
export { C as t };
|
package/dist/chunks/{component-HighQuality-pp_4lHN_.mjs → component-HighQuality-D771XcpI.mjs}
RENAMED
|
@@ -5,6 +5,7 @@ import { Fragment as s, Teleport as c, computed as l, createBlock as u, createCo
|
|
|
5
5
|
import { ArrowLeft as de, ArrowRight as fe, Close as D, Plus as pe } from "@element-plus/icons-vue";
|
|
6
6
|
import * as me from "echarts";
|
|
7
7
|
import { ElMessage as O, ElMessageBox as he } from "element-plus";
|
|
8
|
+
import "element-plus/dist/index.css";
|
|
8
9
|
//#endregion
|
|
9
10
|
//#region src/assets/dataJson/HighQualityConfig.json
|
|
10
11
|
var ge = {
|
|
@@ -711,10 +712,6 @@ var ge = {
|
|
|
711
712
|
}), (t, n) => {
|
|
712
713
|
let o = ne, l = re, g = i, _ = r, ce = a, v = ie, b = te, w = ae, me = ee;
|
|
713
714
|
return y(), f("div", xe, [
|
|
714
|
-
(y(), u(c, { to: "body" }, [p("div", {
|
|
715
|
-
class: "HighQuality-title",
|
|
716
|
-
style: se(e.titleStyle)
|
|
717
|
-
}, S(e.title), 5)])),
|
|
718
715
|
p("div", { class: oe(["HighQuality-win", { "is-scrollable": A.value === "multiLine" || A.value === "custom" }]) }, [
|
|
719
716
|
ue(p("div", Se, [(y(!0), f(s, null, x(Wt.value, (e, t) => (y(), f("div", {
|
|
720
717
|
key: t,
|
|
@@ -1183,6 +1180,6 @@ var ge = {
|
|
|
1183
1180
|
]);
|
|
1184
1181
|
};
|
|
1185
1182
|
}
|
|
1186
|
-
}), [["__scopeId", "data-v-
|
|
1183
|
+
}), [["__scopeId", "data-v-f48e8074"]]);
|
|
1187
1184
|
//#endregion
|
|
1188
1185
|
export { I as t };
|