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.
@@ -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, normalizeStyle as c, onBeforeUnmount as l, onMounted as u, openBlock as d, ref as f, renderList as p, toDisplayString as m, vShow as h, withDirectives as g } from "vue";
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
- }, v = { class: "EarlyWarningStatistic2-head" }, y = { class: "EarlyWarningStatistic2-head-top" }, b = { class: "EarlyWarningStatistic2-body" }, x = { class: "EarlyWarningStatistic2-label" }, S = /* @__PURE__ */ e(/* @__PURE__ */ s({
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 S = e, C = s, w = f(!1), T = f(null), E = f({});
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 D = {
24
+ let k = {
25
25
  红色: "#ff4d4f",
26
26
  橙色: "#fa8c16",
27
27
  黄色: "#fadb14",
28
28
  蓝色: "#1890ff"
29
- }, O = i(() => {
30
- let e = E.value;
31
- if (!e) return k({});
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
- }), k(t);
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
- }), k(t);
43
+ }), j(t);
44
44
  }
45
- return k({});
46
- }), k = (e) => Object.keys(D).map((t) => ({
45
+ return j({});
46
+ }), j = (e) => Object.keys(k).map((t) => ({
47
47
  grade: t,
48
48
  count: e[t] || 0,
49
- color: D[t],
50
- glow: `${D[t]}66`
51
- })), A = async () => {
52
- if (!S.ids.data?.id) {
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
- w.value = !0;
56
+ E.value = !0;
57
57
  let e = {
58
- appKey: S.appKey,
59
- appSalt: S.appSalt,
60
- id: S.ids.data.id,
58
+ appKey: C.appKey,
59
+ appSalt: C.appSalt,
60
+ id: C.ids.data.id,
61
61
  variables: {},
62
- baseHttp: S.baseHttp,
63
- reqType: S.ids.data.reqType,
64
- isFormData: S.ids.data.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
- E.value = n.data?.result.output ?? n.data?.result ?? n.data ?? [], console.log(E.value, "list.value");
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
- w.value = !1;
72
+ T.value = !0, O.value.length == 0 && (await c(), N()), E.value = !1;
73
73
  }
74
- }, j = () => {
75
- C("close", "EarlyWarningStatistic2");
74
+ }, N = () => {
75
+ w("close", "EarlyWarningStatistic2");
76
76
  };
77
- return u(() => {
78
- A(), T.value = setInterval(() => {
79
- A();
77
+ return d(() => {
78
+ M(), D.value = setInterval(() => {
79
+ M();
80
80
  }, 1e3 * 60 * 10);
81
- }), l(() => {
82
- T.value &&= (clearInterval(T.value), null);
81
+ }), u(() => {
82
+ D.value &&= (clearInterval(D.value), null);
83
83
  }), (t, i) => {
84
84
  let s = n;
85
- return g((d(), a("div", _, [o("div", v, [o("div", y, [o("div", null, m(e.title), 1), o("div", {
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: j,
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", b, [(d(!0), a(r, null, p(O.value, (t) => (d(), a("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: c({
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: c({ "font-size": e.countSize })
103
- }, m(t.count), 5), o("div", x, m(t.grade), 1)], 4))), 128))])])), [[h, E.value.length], [s, w.value]]);
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-d7074b08"]]);
106
+ }), [["__scopeId", "data-v-9b83e9ba"]]);
107
107
  //#endregion
108
- export { S as t };
108
+ export { C as t };
@@ -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-6d4721c4"]]);
1183
+ }), [["__scopeId", "data-v-f48e8074"]]);
1187
1184
  //#endregion
1188
1185
  export { I as t };