nxd-plugin 1.7.57 → 1.7.59
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-ChartCumulativePre-Cr-xtvoD.mjs → component-ChartCumulativePre-DoHaZpbA.mjs} +38 -54
- package/dist/chunks/{component-ChartRealTimePre-Dedm8f3C.mjs → component-ChartRealTimePre-6t8zWBXn.mjs} +25 -46
- package/dist/chunks/component-ChartServiceMaterial-gomQX5M2.mjs +231 -0
- package/dist/chunks/component-EarlyWarningStatistic-DobAcmD3.mjs +168 -0
- package/dist/chunks/{component-HighwayLiveAlarmNew-Cl29luSl.mjs → component-HighwayLiveAlarmNew-Dkyj6kWQ.mjs} +39 -17
- package/dist/nxd-plugin.mjs +8 -7
- package/dist/src/components/ChartServiceMaterial/ChartServiceMaterial.vue.d.ts +26 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/styles/component-ChartCumulativePre.css +1 -1
- package/dist/styles/component-ChartRealTimePre.css +1 -1
- package/dist/styles/component-ChartServiceMaterial.css +1 -0
- package/dist/styles/component-EarlyWarningStatistic.css +1 -1
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/component-EarlyWarningStatistic-B9G9xcDS.mjs +0 -185
package/package.json
CHANGED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./component-AqiMonitor-BUy1MSaP.mjs";
|
|
2
|
-
import { ElLoadingDirective as t, ElOption as n, ElSelect as r } from "element-plus/es";
|
|
3
|
-
import { Fragment as i, createBlock as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, onBeforeUnmount as u, onMounted as d, openBlock as f, ref as p, renderList as m, toDisplayString 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/EarlyWarningStatistic/EarlyWarningStatistic.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var y = {
|
|
10
|
-
class: "EarlyWarningStatistic",
|
|
11
|
-
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
12
|
-
}, b = { class: "EarlyWarningStatistic-head" }, x = { class: "EarlyWarningStatistic-head-top" }, S = { class: "EarlyWarningStatistic-filters" }, C = { class: "filter-item" }, w = /* @__PURE__ */ e(/* @__PURE__ */ l({
|
|
13
|
-
__name: "EarlyWarningStatistic",
|
|
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: l }) {
|
|
33
|
-
let w = l, T = p(!1), E = p("预警等级"), D = p([{
|
|
34
|
-
value: "预警等级",
|
|
35
|
-
label: "预警等级"
|
|
36
|
-
}, {
|
|
37
|
-
value: "灾害类别",
|
|
38
|
-
label: "灾害类别"
|
|
39
|
-
}]), O = p(null), k = p(null), A = null;
|
|
40
|
-
d(() => {
|
|
41
|
-
j(), O.value = setInterval(() => {
|
|
42
|
-
E.value === "预警等级" ? E.value = "灾害类别" : E.value = "预警等级", j();
|
|
43
|
-
}, 1e3 * 60 * 10);
|
|
44
|
-
}), u(() => {
|
|
45
|
-
O.value &&= (clearInterval(O.value), null), A &&= (A.dispose(), null);
|
|
46
|
-
});
|
|
47
|
-
let j = async () => {
|
|
48
|
-
M();
|
|
49
|
-
}, M = () => {
|
|
50
|
-
if (!k.value) return;
|
|
51
|
-
A ||= v.init(k.value);
|
|
52
|
-
let e = [];
|
|
53
|
-
e = E.value === "预警等级" ? [
|
|
54
|
-
{
|
|
55
|
-
value: 5,
|
|
56
|
-
name: "红色",
|
|
57
|
-
itemStyle: { color: "#ff4d4f" }
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
value: 5,
|
|
61
|
-
name: "橙色",
|
|
62
|
-
itemStyle: { color: "#fa8c16" }
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
value: 5,
|
|
66
|
-
name: "黄色",
|
|
67
|
-
itemStyle: { color: "#fadb14" }
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
value: 5,
|
|
71
|
-
name: "蓝色",
|
|
72
|
-
itemStyle: { color: "#1890ff" }
|
|
73
|
-
}
|
|
74
|
-
] : [
|
|
75
|
-
{
|
|
76
|
-
value: 5,
|
|
77
|
-
name: "大风"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
value: 5,
|
|
81
|
-
name: "大雨"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
value: 5,
|
|
85
|
-
name: "能见度"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
value: 5,
|
|
89
|
-
name: "温度"
|
|
90
|
-
}
|
|
91
|
-
];
|
|
92
|
-
let t = {
|
|
93
|
-
color: [
|
|
94
|
-
"#0bc4e9",
|
|
95
|
-
"#005bea",
|
|
96
|
-
"#fadb14",
|
|
97
|
-
"#1890ff",
|
|
98
|
-
"#52c41a",
|
|
99
|
-
"#eb2f96"
|
|
100
|
-
],
|
|
101
|
-
tooltip: { trigger: "item" },
|
|
102
|
-
legend: {
|
|
103
|
-
orient: "vertical",
|
|
104
|
-
right: "10%",
|
|
105
|
-
top: "center",
|
|
106
|
-
itemGap: 15,
|
|
107
|
-
formatter: (t) => {
|
|
108
|
-
let n = e.find((e) => e.name === t);
|
|
109
|
-
return `{name|${t}} {value|${n ? n.value : 0}个}`;
|
|
110
|
-
},
|
|
111
|
-
textStyle: { rich: {
|
|
112
|
-
name: {
|
|
113
|
-
color: "#fff",
|
|
114
|
-
fontSize: 12,
|
|
115
|
-
width: 40
|
|
116
|
-
},
|
|
117
|
-
value: {
|
|
118
|
-
color: "#0bc4e9",
|
|
119
|
-
fontSize: 14,
|
|
120
|
-
fontWeight: "bold"
|
|
121
|
-
}
|
|
122
|
-
} }
|
|
123
|
-
},
|
|
124
|
-
series: [{
|
|
125
|
-
name: "预警统计",
|
|
126
|
-
type: "pie",
|
|
127
|
-
radius: ["45%", "75%"],
|
|
128
|
-
center: ["28%", "50%"],
|
|
129
|
-
avoidLabelOverlap: !1,
|
|
130
|
-
label: {
|
|
131
|
-
show: !1,
|
|
132
|
-
position: "center"
|
|
133
|
-
},
|
|
134
|
-
emphasis: { label: {
|
|
135
|
-
show: !0,
|
|
136
|
-
fontSize: 14,
|
|
137
|
-
fontWeight: "bold"
|
|
138
|
-
} },
|
|
139
|
-
labelLine: { show: !1 },
|
|
140
|
-
data: e
|
|
141
|
-
}]
|
|
142
|
-
};
|
|
143
|
-
A.setOption(t);
|
|
144
|
-
}, N = () => {
|
|
145
|
-
w("close", "EarlyWarningStatistic");
|
|
146
|
-
};
|
|
147
|
-
return (e, l) => {
|
|
148
|
-
let u = n, d = r, p = t;
|
|
149
|
-
return _((f(), o("div", y, [
|
|
150
|
-
s("div", b, [s("div", x, [s("div", null, h((/* @__PURE__ */ new Date()).getFullYear()) + "年预警统计", 1), s("div", {
|
|
151
|
-
class: "closeBtn",
|
|
152
|
-
onClick: N,
|
|
153
|
-
title: "关闭"
|
|
154
|
-
})]), l[1] ||= s("img", {
|
|
155
|
-
class: "EarlyWarningStatistic-head-line",
|
|
156
|
-
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",
|
|
157
|
-
alt: ""
|
|
158
|
-
}, null, -1)]),
|
|
159
|
-
s("div", S, [s("div", C, [l[2] ||= s("span", { class: "label" }, "类别:", -1), c(d, {
|
|
160
|
-
modelValue: E.value,
|
|
161
|
-
"onUpdate:modelValue": l[0] ||= (e) => E.value = e,
|
|
162
|
-
placeholder: "请选择",
|
|
163
|
-
class: "dark-select",
|
|
164
|
-
style: { width: "100px" },
|
|
165
|
-
size: "small",
|
|
166
|
-
onChange: M
|
|
167
|
-
}, {
|
|
168
|
-
default: g(() => [(f(!0), o(i, null, m(D.value, (e) => (f(), a(u, {
|
|
169
|
-
key: e.value,
|
|
170
|
-
label: e.label,
|
|
171
|
-
value: e.value
|
|
172
|
-
}, null, 8, ["label", "value"]))), 128))]),
|
|
173
|
-
_: 1
|
|
174
|
-
}, 8, ["modelValue"])])]),
|
|
175
|
-
s("div", {
|
|
176
|
-
ref_key: "chartRef",
|
|
177
|
-
ref: k,
|
|
178
|
-
class: "EarlyWarningStatistic-chart"
|
|
179
|
-
}, null, 512)
|
|
180
|
-
])), [[p, T.value]]);
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
}), [["__scopeId", "data-v-4aac6723"]]);
|
|
184
|
-
//#endregion
|
|
185
|
-
export { w as t };
|