nxd-plugin 1.7.72 → 1.7.74

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.
Files changed (53) hide show
  1. package/dist/assets/dataJson/HighQualityConfig.json.d.ts +337 -0
  2. package/dist/chunks/component-AiChat-CQMg5jup.mjs +47554 -0
  3. package/dist/chunks/{component-AqiMonitor-DbEiA-eq.mjs → component-AqiMonitor-Bnnw0FMj.mjs} +22 -18
  4. package/dist/chunks/{component-ChartCumulativePre-CqnTrs3A.mjs → component-ChartCumulativePre-C0GUFXEa.mjs} +6 -6
  5. package/dist/chunks/{component-ChartServiceMaterial-DN-uO_OP.mjs → component-ChartServiceMaterial-CNGZyHfu.mjs} +5 -5
  6. package/dist/chunks/{component-Duty-BJOz8pxV.mjs → component-Duty-8taqj71c.mjs} +5 -5
  7. package/dist/chunks/{component-EarlyWarningStatistic-DvAmY7Gh.mjs → component-EarlyWarningStatistic-CXzvMFSw.mjs} +5 -5
  8. package/dist/chunks/{component-GeologyLiveAlarm-CRRIUd2h.mjs → component-GeologyLiveAlarm-C6uBCDIM.mjs} +6 -6
  9. package/dist/chunks/component-HighQuality-CCKtA_xe.mjs +1087 -0
  10. package/dist/chunks/{component-HighWayEarlyWarningRed-DgNrFdzm.mjs → component-HighWayEarlyWarningRed-VCLYuCBe.mjs} +6 -6
  11. package/dist/chunks/{component-HighWayFreeze-DzBnVD2r.mjs → component-HighWayFreeze-B3F7d3lb.mjs} +7 -7
  12. package/dist/chunks/{component-HighwayLiveAlarm-DZM7_KsV.mjs → component-HighwayLiveAlarm-CJdM4vx6.mjs} +5 -5
  13. package/dist/chunks/{component-HighwayLiveAlarmNew-CPbcFfFw.mjs → component-HighwayLiveAlarmNew-F1sJV5h6.mjs} +9 -9
  14. package/dist/chunks/{component-HighwayStations-BQM5VnrX.mjs → component-HighwayStations-Bz6Zekf1.mjs} +5 -5
  15. package/dist/chunks/{component-HighwayWeatherForecast-jJgs1nWv.mjs → component-HighwayWeatherForecast-BvuVI9p6.mjs} +5 -5
  16. package/dist/chunks/{component-IframeWeb-2o0iO_zv.mjs → component-IframeWeb-CqORkYhs.mjs} +1 -1
  17. package/dist/chunks/{component-ImageGeneration-BpL7GGVe.mjs → component-ImageGeneration-DxvSAg0-.mjs} +1 -1
  18. package/dist/chunks/component-IntroducePic-CW0bRPyF.mjs +58 -0
  19. package/dist/chunks/{component-LithiumBatteryMiningArea-Cu4xOUMT.mjs → component-LithiumBatteryMiningArea-DRuCBQHX.mjs} +11 -11
  20. package/dist/chunks/{component-MapPopup-BKpmRiRc.mjs → component-MapPopup-5ov9bufN.mjs} +1 -1
  21. package/dist/chunks/{component-MaterialPreview-B9hPgmCc.mjs → component-MaterialPreview-BIrxdpHg.mjs} +5 -5
  22. package/dist/chunks/{component-PieLegend-oUHPJc3-.mjs → component-PieLegend-BrcbU4Hc.mjs} +1 -1
  23. package/dist/chunks/{component-RadarChart-Kv3AUHxN.mjs → component-RadarChart-BvRhuudc.mjs} +9 -9
  24. package/dist/chunks/{component-RadarLegend-CkBt4euh.mjs → component-RadarLegend-BQrNUHJu.mjs} +1 -1
  25. package/dist/chunks/{component-RadarShortTerm-sDd-YZK5.mjs → component-RadarShortTerm-DSqGlMQq.mjs} +12 -12
  26. package/dist/chunks/{component-RadarTime-B_8GIAtB.mjs → component-RadarTime-DeA11c09.mjs} +17 -17
  27. package/dist/chunks/{component-RenderMarkdown-DeNXJIM-.mjs → component-RenderMarkdown-BA6QDwis.mjs} +5 -5
  28. package/dist/chunks/{component-ReservoirLiveAlarm-BfYMEzip.mjs → component-ReservoirLiveAlarm-CwQGV2pX.mjs} +7 -7
  29. package/dist/chunks/{component-ServiceMaterial-oEiMoM8L.mjs → component-ServiceMaterial-D4na59x3.mjs} +8 -8
  30. package/dist/chunks/{component-ServiceMaterialsBtn-bkSh2Pec.mjs → component-ServiceMaterialsBtn-pvj67yYf.mjs} +1 -1
  31. package/dist/chunks/{component-TimeBasedForecast-B7joXIvV.mjs → component-TimeBasedForecast-JuvtROGA.mjs} +9 -9
  32. package/dist/chunks/{component-WarningLine-C3-1NPwv.mjs → component-WarningLine-Dcn_betl.mjs} +2 -2
  33. package/dist/chunks/{component-WarningSignal-Bj-bDMis.mjs → component-WarningSignal-q50D47rs.mjs} +16 -16
  34. package/dist/chunks/{component-WeatherForecast-Dyf8v_Fq.mjs → component-WeatherForecast-ByBdU74M.mjs} +11 -11
  35. package/dist/chunks/{component-YCDataMonitor-RyQybwIW.mjs → component-YCDataMonitor-DcWd4kcO.mjs} +19 -18
  36. package/dist/chunks/{component-YCDataService-Bb0-HTYd.mjs → component-YCDataService-mOrVZ4oo.mjs} +10 -10
  37. package/dist/chunks/{component-YCHome-CCSemcIf.mjs → component-YCHome-C-UM-oMR.mjs} +34 -34
  38. package/dist/chunks/{component-YCHomeLegend-CsgZ7ayU.mjs → component-YCHomeLegend-LI2zcDnx.mjs} +1 -1
  39. package/dist/chunks/{component-YCLoginNew-CAKG8hmF.mjs → component-YCLoginNew-DSeX5cyy.mjs} +18 -18
  40. package/dist/components/AiChat/AiChat.vue.d.ts +61 -0
  41. package/dist/components/AiChat/AiChatResponse.vue.d.ts +7 -0
  42. package/dist/components/AiChat/renderMarkdown.d.ts +1 -0
  43. package/dist/components/AiChat/types.d.ts +48 -0
  44. package/dist/components/HighQuality/HighQuality.vue.d.ts +65 -0
  45. package/dist/composables/useDraggable.d.ts +13 -0
  46. package/dist/index.d.ts +4 -1
  47. package/dist/nxd-plugin.mjs +40 -37
  48. package/dist/styles/component-AiChat.css +1 -0
  49. package/dist/styles/component-HighQuality.css +1 -0
  50. package/dist/styles/component-IntroducePic.css +1 -0
  51. package/dist/styles/component-YCDataMonitor.css +1 -1
  52. package/dist/styles/component-YCLoginNew.css +1 -1
  53. package/package.json +7 -2
@@ -1,4 +1,4 @@
1
- import { n as e, r as t } from "./component-AqiMonitor-DbEiA-eq.mjs";
1
+ import { i as e, n as t } from "./component-AqiMonitor-Bnnw0FMj.mjs";
2
2
  import { ElConfigProvider as n, ElDatePicker as r, ElInput as i, ElLoadingDirective as a } from "element-plus/es";
3
3
  import { Fragment as o, Teleport as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, onBeforeUnmount as _, onMounted as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as ee, withCtx as te, withDirectives as C, withModifiers as w } from "vue";
4
4
  import { ElMessage as T } from "element-plus";
@@ -51,7 +51,7 @@ var re = {
51
51
  key: 0,
52
52
  class: "info-missing",
53
53
  style: { "margin-top": "20px" }
54
- }, Vt = { class: "missing-list url-list" }, Ht = ["title"], Ut = { class: "url-actions" }, Wt = ["onClick"], Gt = ["onClick"], O = /* @__PURE__ */ e(/* @__PURE__ */ h({
54
+ }, Vt = { class: "missing-list url-list" }, Ht = ["title"], Ut = { class: "url-actions" }, Wt = ["onClick"], Gt = ["onClick"], O = /* @__PURE__ */ t(/* @__PURE__ */ h({
55
55
  __name: "YCDataMonitor",
56
56
  props: {
57
57
  appKey: {
@@ -75,8 +75,8 @@ var re = {
75
75
  default: ""
76
76
  }
77
77
  },
78
- setup(e, { expose: h }) {
79
- let O = e, k = b(!1), A = b([]), j = b([]), M = [
78
+ setup(t, { expose: h }) {
79
+ let O = t, k = b(!1), A = b([]), j = b([]), M = [
80
80
  {
81
81
  key: "cnty",
82
82
  label: "县名",
@@ -172,25 +172,25 @@ var re = {
172
172
  type: "success",
173
173
  customClass: "high-z-index-message"
174
174
  });
175
- }, Z = async (e) => {
175
+ }, Z = async (t) => {
176
176
  let n = JSON.parse(JSON.stringify(H.value));
177
177
  k.value = !0;
178
178
  let r = {
179
- dataType: e,
179
+ dataType: t,
180
180
  stationIds: n.stationId,
181
181
  missingTimes: "",
182
182
  startDate: "",
183
183
  endDate: ""
184
184
  };
185
- e === "hourly" || n[e].missingTimes.length === 1 ? r.missingTimes = n[e].missingTimes.toString() : (r.startDate = n[e].missingTimes[0], r.endDate = n[e].missingTimes[n[e].missingTimes.length - 1]);
186
- let i = await t({
185
+ t === "hourly" || n[t].missingTimes.length === 1 ? r.missingTimes = n[t].missingTimes.toString() : (r.startDate = n[t].missingTimes[0], r.endDate = n[t].missingTimes[n[t].missingTimes.length - 1]);
186
+ let i = await e({
187
187
  appKey: O.appKey,
188
188
  appSalt: O.appSalt,
189
189
  id: O.ids.YCDataMonitor_getUrl.id,
190
190
  variables: {
191
- dataType: e,
191
+ dataType: t,
192
192
  stationIds: n.stationId,
193
- missingTimes: n[e].missingTimes.toString(),
193
+ missingTimes: n[t].missingTimes.toString(),
194
194
  startDate: "",
195
195
  endDate: ""
196
196
  },
@@ -198,7 +198,7 @@ var re = {
198
198
  reqType: O.ids.YCDataMonitor_getUrl.reqType,
199
199
  isFormData: O.ids.YCDataMonitor_getUrl.isFormData
200
200
  }), a = JSON.parse(i.data.result.output || "{}");
201
- console.log("urlList", a.data.urls), a.data && a.data.urls && (H.value[e].missingUrls = a.data.urls), k.value = !1, $();
201
+ console.log("urlList", a.data.urls), a.data && a.data.urls && (H.value[t].missingUrls = a.data.urls), k.value = !1, $();
202
202
  }, Q = (e) => {
203
203
  G.value = e, W.value = null, K.value = [], U.value = !0;
204
204
  }, Yt = async () => {
@@ -210,13 +210,13 @@ var re = {
210
210
  return;
211
211
  }
212
212
  q.value = !0;
213
- let e = H.value, n = {
213
+ let t = H.value, n = {
214
214
  appKey: O.appKey,
215
215
  appSalt: O.appSalt,
216
216
  id: O.ids.YCDataMonitor_getUrl.id,
217
217
  variables: {
218
218
  dataType: G.value,
219
- stationIds: e.stationId,
219
+ stationIds: t.stationId,
220
220
  missingTimes: "",
221
221
  startDate: W.value[0],
222
222
  endDate: W.value[1]
@@ -226,7 +226,7 @@ var re = {
226
226
  isFormData: O.ids.YCDataMonitor_getUrl.isFormData
227
227
  };
228
228
  try {
229
- let e = await t(n), r = JSON.parse(e.data.result.output || "{}");
229
+ let t = await e(n), r = JSON.parse(t.data.result.output || "{}");
230
230
  r.data && r.data.urls ? K.value = r.data.urls : K.value = [];
231
231
  } catch (e) {
232
232
  console.error(e), T.error({
@@ -238,7 +238,7 @@ var re = {
238
238
  }
239
239
  }, $ = async () => {
240
240
  console.log("查询日期", O.date), k.value = !0, A.value = [], j.value = [];
241
- let e = await t({
241
+ let t = await e({
242
242
  appKey: O.appKey,
243
243
  appSalt: O.appSalt,
244
244
  id: O.ids.YCDataMonitor_data.id,
@@ -248,7 +248,7 @@ var re = {
248
248
  isFormData: O.ids.YCDataMonitor_data.isFormData
249
249
  });
250
250
  k.value = !1;
251
- let n = JSON.parse(e.data.result.output || "{}").data || {};
251
+ let n = JSON.parse(t.data.result.output || "{}").data || {};
252
252
  console.log("list", n), A.value = n.nationalStations || [], j.value = n.regionalStations || [];
253
253
  };
254
254
  return h({ handleSearch: $ }), (e, t) => {
@@ -464,7 +464,8 @@ var re = {
464
464
  "value-format": "YYYY-MM-DD HH:mm:00",
465
465
  editable: !1,
466
466
  clearable: !1,
467
- "popper-class": "high-z-index-popper"
467
+ "popper-class": "high-z-index-popper",
468
+ "popper-style": { zIndex: 99999 }
468
469
  }, null, 8, ["modelValue"])]),
469
470
  _: 1
470
471
  }, 8, ["locale"]), f("button", {
@@ -492,6 +493,6 @@ var re = {
492
493
  ])), [[v, k.value]]);
493
494
  };
494
495
  }
495
- }), [["__scopeId", "data-v-22ca64a0"]]);
496
+ }), [["__scopeId", "data-v-34812b16"]]);
496
497
  //#endregion
497
498
  export { O as t };
@@ -1,6 +1,6 @@
1
- import { n as e, r as t } from "./component-AqiMonitor-DbEiA-eq.mjs";
2
- import { n } from "./component-HighwayWeatherForecast-jJgs1nWv.mjs";
3
- import { t as r } from "./component-YCDataMonitor-RyQybwIW.mjs";
1
+ import { i as e, n as t } from "./component-AqiMonitor-Bnnw0FMj.mjs";
2
+ import { n } from "./component-HighwayWeatherForecast-BvuVI9p6.mjs";
3
+ import { t as r } from "./component-YCDataMonitor-DcWd4kcO.mjs";
4
4
  import { ElConfigProvider as i, ElDatePicker as a, ElInput as o, ElLoadingDirective as s } from "element-plus/es";
5
5
  import { Fragment as c, computed as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, onBeforeUnmount as _, onMounted as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, vShow as w, withCtx as T, withDirectives as E } from "vue";
6
6
  import "element-plus/es/components/loading/style/css";
@@ -11,7 +11,7 @@ import "element-plus/es/components/date-picker/style/css";
11
11
  var O = {
12
12
  class: "YCRealTimeTable",
13
13
  "element-loading-background": "rgba(0, 0, 0, 0.3)"
14
- }, k = { class: "YCRealTimeTable-summary" }, A = { class: "summary-table" }, j = { class: "summary-head" }, ee = { class: "summary-body" }, te = { class: "summary-cell summary-cell-label" }, ne = { class: "YCRealTimeTable-toolbar" }, re = { class: "filter-group" }, M = { class: "YCRealTimeTable-detail" }, N = { class: "detail-table" }, P = { class: "detail-head" }, F = ["onClick"], I = { class: "detail-body" }, L = { class: "detail-cell detail-cell-index" }, R = { class: "detail-cell" }, z = { class: "detail-cell" }, B = { class: "detail-cell" }, V = { class: "detail-cell" }, H = { class: "detail-cell" }, U = { class: "detail-cell" }, W = { class: "detail-cell" }, G = { class: "detail-cell" }, K = /* @__PURE__ */ e(/* @__PURE__ */ h({
14
+ }, k = { class: "YCRealTimeTable-summary" }, A = { class: "summary-table" }, j = { class: "summary-head" }, ee = { class: "summary-body" }, te = { class: "summary-cell summary-cell-label" }, ne = { class: "YCRealTimeTable-toolbar" }, re = { class: "filter-group" }, M = { class: "YCRealTimeTable-detail" }, N = { class: "detail-table" }, P = { class: "detail-head" }, F = ["onClick"], I = { class: "detail-body" }, L = { class: "detail-cell detail-cell-index" }, R = { class: "detail-cell" }, z = { class: "detail-cell" }, B = { class: "detail-cell" }, V = { class: "detail-cell" }, H = { class: "detail-cell" }, U = { class: "detail-cell" }, W = { class: "detail-cell" }, G = { class: "detail-cell" }, K = /* @__PURE__ */ t(/* @__PURE__ */ h({
15
15
  __name: "YCRealTimeTable",
16
16
  props: {
17
17
  appKey: {
@@ -31,8 +31,8 @@ var O = {
31
31
  default: () => ({})
32
32
  }
33
33
  },
34
- setup(e) {
35
- let r = e, i = b(!1), a = b([]), h = [
34
+ setup(t) {
35
+ let r = t, i = b(!1), a = b([]), h = [
36
36
  "当前小时雨量(测试)",
37
37
  "1小时雨量",
38
38
  "3小时雨量",
@@ -151,7 +151,7 @@ var O = {
151
151
  });
152
152
  let Q = async () => {
153
153
  i.value = !0;
154
- let e = await t({
154
+ let t = await e({
155
155
  appKey: r.appKey,
156
156
  appSalt: r.appSalt,
157
157
  id: r.ids.YCRealTimeTable_data.id,
@@ -159,9 +159,9 @@ var O = {
159
159
  baseHttp: r.baseHttp,
160
160
  reqType: r.ids.YCRealTimeTable_data.reqType,
161
161
  isFormData: r.ids.YCRealTimeTable_data.isFormData
162
- }), o = e.data.result.output || "{}", s = JSON.parse(o);
162
+ }), o = t.data.result.output || "{}", s = JSON.parse(o);
163
163
  console.log("res_output", s.data);
164
- let c = e.data.result.voltage || [], l = new Map(c.map((e) => [e.station_id, e])), { nationalStations: u, otherStations: d } = s.data || {
164
+ let c = t.data.result.voltage || [], l = new Map(c.map((e) => [e.station_id, e])), { nationalStations: u, otherStations: d } = s.data || {
165
165
  nationalStations: [],
166
166
  otherStations: []
167
167
  };
@@ -314,7 +314,7 @@ var O = {
314
314
  }), [["__scopeId", "data-v-630ba040"]]), q = { class: "YCDataService" }, J = { class: "YCDataService-topbar" }, Y = { class: "page-switch" }, X = {
315
315
  key: 0,
316
316
  class: "YCDataService-filter"
317
- }, Z = /* @__PURE__ */ e(/* @__PURE__ */ h({
317
+ }, Z = /* @__PURE__ */ t(/* @__PURE__ */ h({
318
318
  __name: "YCDataService",
319
319
  props: {
320
320
  appKey: {
@@ -1,5 +1,5 @@
1
- import { n as e, r as t } from "./component-AqiMonitor-DbEiA-eq.mjs";
2
- import { n } from "./component-LithiumBatteryMiningArea-Cu4xOUMT.mjs";
1
+ import { i as e, n as t } from "./component-AqiMonitor-Bnnw0FMj.mjs";
2
+ import { n } from "./component-LithiumBatteryMiningArea-DRuCBQHX.mjs";
3
3
  import { ElButton as r, ElDialog as i, ElForm as ee, ElFormItem as te, ElIcon as ne, ElInput as re } from "element-plus/es";
4
4
  import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createStaticVNode as u, createTextVNode as d, createVNode as f, normalizeClass as p, normalizeStyle as ie, onBeforeUnmount as m, onMounted as h, openBlock as g, reactive as _, ref as v, renderList as y, toDisplayString as b, unref as x, withCtx as S, withKeys as ae, withModifiers as oe } from "vue";
5
5
  import { ArrowLeft as se, ArrowRight as ce, Lock as le, User as ue } from "@element-plus/icons-vue";
@@ -40,7 +40,7 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
40
40
  }, Le = { class: "main-shift-name" }, Re = {
41
41
  key: 0,
42
42
  class: "duty-section"
43
- }, ze = ["innerHTML"], Be = { class: "dialog-footer" }, j = /* @__PURE__ */ e({
43
+ }, ze = ["innerHTML"], Be = { class: "dialog-footer" }, j = /* @__PURE__ */ t({
44
44
  __name: "YCHome",
45
45
  props: {
46
46
  appKey: {
@@ -93,8 +93,8 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
93
93
  }
94
94
  },
95
95
  emits: ["toPage", "openPagePop"],
96
- setup(e, { emit: j }) {
97
- let M = e, N = j, P = v(!0), F = v(!1), I = v({
96
+ setup(t, { emit: j }) {
97
+ let M = t, N = j, P = v(!0), F = v(!1), I = v({
98
98
  x: 0,
99
99
  y: 0
100
100
  }), L = v({
@@ -261,7 +261,7 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
261
261
  document.removeEventListener("mousemove", Q), document.removeEventListener("mouseup", $), clearInterval(U.value);
262
262
  });
263
263
  let Ge = async () => {
264
- let e = (await t({
264
+ let t = (await e({
265
265
  appKey: M.appKey,
266
266
  appSalt: M.appSalt,
267
267
  id: M.ids.data.id,
@@ -270,14 +270,14 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
270
270
  reqType: M.ids.data.reqType,
271
271
  isFormData: M.ids.data.isFormData
272
272
  })).data.result.output;
273
- !e || e.length === 0 || (W.value.forEach((t, n) => {
274
- let r = e.find((e) => e.web_page === t.url);
275
- r && (t.title = r.menu_name), J && J.length > 0 ? J.find((e) => e.web_page === t.url) && (t.show = !0) : t.show = !0;
273
+ !t || t.length === 0 || (W.value.forEach((e, n) => {
274
+ let r = t.find((t) => t.web_page === e.url);
275
+ r && (e.title = r.menu_name), J && J.length > 0 ? J.find((t) => t.web_page === e.url) && (e.show = !0) : e.show = !0;
276
276
  }), Y(), X(), M.showDutyAndFollow && (U.value = setInterval(() => {
277
277
  Y(), X();
278
278
  }, 1e3 * 60 * 10)));
279
279
  }, Y = async () => {
280
- K.value = (await t({
280
+ K.value = (await e({
281
281
  appKey: M.appKey,
282
282
  appSalt: M.appSalt,
283
283
  id: M.ids.duty.id,
@@ -287,7 +287,7 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
287
287
  isFormData: M.ids.duty.isFormData
288
288
  })).data.result.output || [];
289
289
  }, X = async () => {
290
- q.value = (await t({
290
+ q.value = (await e({
291
291
  appKey: M.appKey,
292
292
  appSalt: M.appSalt,
293
293
  id: M.ids.follow.id,
@@ -306,58 +306,58 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
306
306
  }), window.sessionStorage.setItem("user", JSON.stringify({ id: 1 })), B.value = !1, N("toPage", He.value?.url);
307
307
  }, 1e3));
308
308
  });
309
- }, Ke = (e) => {
309
+ }, Ke = (t) => {
310
310
  let r = window.localStorage.getItem("uName"), i = window.localStorage.getItem("uPwd");
311
- if (t({
311
+ if (e({
312
312
  appKey: M.appKey,
313
313
  appSalt: M.appSalt,
314
314
  id: M.ids.log.id,
315
315
  variables: {
316
- action_name: e.title,
316
+ action_name: t.title,
317
317
  action_type: "大屏系统-外网"
318
318
  },
319
319
  baseHttp: M.baseHttp,
320
320
  reqType: M.ids.log.reqType,
321
321
  isFormData: M.ids.log.isFormData
322
- }), e.url === "/public") {
323
- let t = M.publicUrl;
324
- r && i && (t += `?account=${n.decode(r)}&password=${n.decode(i)}&t=${Date.now()}`), N("openPagePop", {
325
- title: e.title,
326
- url: t.includes("?") ? t += "&t=" + Date.now() : t += "?t=" + Date.now()
322
+ }), t.url === "/public") {
323
+ let e = M.publicUrl;
324
+ r && i && (e += `?account=${n.decode(r)}&password=${n.decode(i)}&t=${Date.now()}`), N("openPagePop", {
325
+ title: t.title,
326
+ url: e.includes("?") ? e += "&t=" + Date.now() : e += "?t=" + Date.now()
327
327
  });
328
328
  return;
329
329
  }
330
- if (e.url === "/agriculture") {
331
- let t = M.agrUrl;
332
- r && i && (t += `?account=${n.decode(r)}&password=${n.decode(i)}&t=${Date.now()}`), N("openPagePop", {
333
- title: e.title,
334
- url: t.includes("?") ? t += "&t=" + Date.now() : t += "?t=" + Date.now()
330
+ if (t.url === "/agriculture") {
331
+ let e = M.agrUrl;
332
+ r && i && (e += `?account=${n.decode(r)}&password=${n.decode(i)}&t=${Date.now()}`), N("openPagePop", {
333
+ title: t.title,
334
+ url: e.includes("?") ? e += "&t=" + Date.now() : e += "?t=" + Date.now()
335
335
  });
336
336
  return;
337
337
  }
338
- if (e.url === "/decision") {
339
- let t = M.decisionUrl;
340
- r && i && (t += `?account=${n.decode(r)}&password=${n.decode(i)}&t=${Date.now()}`), N("openPagePop", {
341
- title: e.title,
342
- url: t.includes("?") ? t += "&t=" + Date.now() : t += "?t=" + Date.now()
338
+ if (t.url === "/decision") {
339
+ let e = M.decisionUrl;
340
+ r && i && (e += `?account=${n.decode(r)}&password=${n.decode(i)}&t=${Date.now()}`), N("openPagePop", {
341
+ title: t.title,
342
+ url: e.includes("?") ? e += "&t=" + Date.now() : e += "?t=" + Date.now()
343
343
  });
344
344
  return;
345
345
  }
346
- if (e.url === "/center") {
346
+ if (t.url === "/center") {
347
347
  N("openPagePop", {
348
- title: e.title,
348
+ title: t.title,
349
349
  url: M.centerUrl.includes("?") ? M.centerUrl += "&t=" + Date.now() : M.centerUrl += "?t=" + Date.now()
350
350
  });
351
351
  return;
352
352
  }
353
- if (e.url === "/stations") {
353
+ if (t.url === "/stations") {
354
354
  N("openPagePop", {
355
- title: e.title,
355
+ title: t.title,
356
356
  url: M.stationsUrl.includes("?") ? M.stationsUrl += "&t=" + Date.now() : M.stationsUrl += "?t=" + Date.now()
357
357
  });
358
358
  return;
359
359
  }
360
- N("toPage", e.url);
360
+ N("toPage", t.url);
361
361
  }, Q = (e) => {
362
362
  if (!F.value) return;
363
363
  let t = e.clientX - L.value.x, n = e.clientY - L.value.y;
@@ -1,4 +1,4 @@
1
- import { n as e } from "./component-AqiMonitor-DbEiA-eq.mjs";
1
+ import { n as e } from "./component-AqiMonitor-Bnnw0FMj.mjs";
2
2
  import { createElementBlock as t, createElementVNode as n, createStaticVNode as r, onMounted as i, openBlock as a } from "vue";
3
3
  //#endregion
4
4
  //#region src/components/YCHomeLegend/YCHomeLegend.vue
@@ -1,5 +1,5 @@
1
- import { a as e, i as t, n, r } from "./component-AqiMonitor-DbEiA-eq.mjs";
2
- import { n as i } from "./component-LithiumBatteryMiningArea-Cu4xOUMT.mjs";
1
+ import { a as e, i as t, n, o as r } from "./component-AqiMonitor-Bnnw0FMj.mjs";
2
+ import { n as i } from "./component-LithiumBatteryMiningArea-DRuCBQHX.mjs";
3
3
  import { ElButton as ee, ElForm as a, ElFormItem as o, ElIcon as s, ElInput as te } from "element-plus/es";
4
4
  import { Fragment as ne, createBlock as c, createElementBlock as l, createElementVNode as u, createTextVNode as re, createVNode as d, defineComponent as f, onBeforeUnmount as p, onMounted as ie, openBlock as m, reactive as h, ref as g, renderList as _, toDisplayString as v, unref as y, withCtx as b, withKeys as ae } from "vue";
5
5
  import { Lock as x, Message as oe, Platform as se, User as S } from "@element-plus/icons-vue";
@@ -101,8 +101,8 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
101
101
  q && clearInterval(q), q = setInterval(() => {
102
102
  K.value--, K.value <= 0 && (q && clearInterval(q), q = null, window.localStorage.removeItem(L), window.localStorage.removeItem(R), J.value = "");
103
103
  }, 1e3);
104
- }, ge = () => Math.floor(Math.random() * 9e5).toString(), _e = async (t) => {
105
- if (!t) {
104
+ }, ge = () => Math.floor(Math.random() * 9e5).toString(), _e = async (e) => {
105
+ if (!e) {
106
106
  C({
107
107
  message: "请先输入手机号",
108
108
  type: "warning",
@@ -111,11 +111,11 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
111
111
  return;
112
112
  }
113
113
  if (K.value > 0) return;
114
- let n = ge();
114
+ let t = ge();
115
115
  try {
116
- await e(t, n, z.SMSUrl), J.value = n, K.value = 60;
117
- let r = (/* @__PURE__ */ new Date()).getTime() + 60 * 1e3;
118
- window.localStorage.setItem(L, r.toString()), window.localStorage.setItem(R, n), X(), C({
116
+ await r(e, t, z.SMSUrl), J.value = t, K.value = 60;
117
+ let n = (/* @__PURE__ */ new Date()).getTime() + 60 * 1e3;
118
+ window.localStorage.setItem(L, n.toString()), window.localStorage.setItem(R, t), X(), C({
119
119
  message: "验证码已发送",
120
120
  type: "success",
121
121
  zIndex: 6e3
@@ -130,10 +130,10 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
130
130
  }, Z = () => {
131
131
  W.value = !1, G.value?.resetFields();
132
132
  }, Q = () => {
133
- G.value && G.value.validate(async (e) => {
134
- if (e) {
135
- let e = J.value || window.localStorage.getItem(R);
136
- if (!Y.code || Y.code !== e) {
133
+ G.value && G.value.validate(async (t) => {
134
+ if (t) {
135
+ let t = J.value || window.localStorage.getItem(R);
136
+ if (!Y.code || Y.code !== t) {
137
137
  C({
138
138
  message: "验证码错误",
139
139
  type: "error",
@@ -143,10 +143,10 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
143
143
  return;
144
144
  }
145
145
  try {
146
- let e = {
146
+ let t = {
147
147
  loginName: Y.phone,
148
148
  password: Y.newPassword
149
- }, n = await t(z.resetPwdUrl, e);
149
+ }, n = await e(z.resetPwdUrl, t);
150
150
  n.errorCode === 0 ? (C({
151
151
  message: "密码重置成功",
152
152
  type: "success",
@@ -174,7 +174,7 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
174
174
  let e = {
175
175
  name: U.username,
176
176
  pwd: U.password
177
- }, t = (await r({
177
+ }, n = (await t({
178
178
  appKey: z.appKey,
179
179
  appSalt: z.appSalt,
180
180
  id: z.ids.data.id,
@@ -183,7 +183,7 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
183
183
  reqType: z.ids.data.reqType,
184
184
  isFormData: z.ids.data.isFormData
185
185
  })).data.result.output;
186
- if (H.value = !1, !t || t.length === 0) {
186
+ if (H.value = !1, !n || n.length === 0) {
187
187
  C({
188
188
  message: "账号或密码错误",
189
189
  type: "error",
@@ -197,8 +197,8 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
197
197
  type: "success",
198
198
  zIndex: 6e3,
199
199
  duration: 1500
200
- }), window.localStorage.setItem("user", JSON.stringify(t)), window.localStorage.setItem("uName", i.encode(U.username)), window.localStorage.setItem("uPwd", i.encode(U.password)), setTimeout(() => {
201
- t.length > 1 ? B("toPage", "/home") : B("toPage", t[0].web_page);
200
+ }), window.localStorage.setItem("user", JSON.stringify(n)), window.localStorage.setItem("uName", i.encode(U.username)), window.localStorage.setItem("uPwd", i.encode(U.password)), setTimeout(() => {
201
+ n.length > 1 ? B("toPage", "/home") : B("toPage", n[0].web_page);
202
202
  }, 1e3);
203
203
  }
204
204
  });
@@ -0,0 +1,61 @@
1
+ import { AiContentType, AiChatTheme, AiChatRequestPayload, AiChatResponse as AiChatResponseType } from './types';
2
+ interface Props {
3
+ baseHttp?: string;
4
+ appKey?: string;
5
+ appSalt?: string;
6
+ ids?: Record<string, {
7
+ id: string | number;
8
+ reqType: 'get' | 'post';
9
+ isFormData: boolean;
10
+ }>;
11
+ draggable?: boolean;
12
+ defaultX?: number;
13
+ defaultY?: number;
14
+ width?: number | string;
15
+ height?: number | string;
16
+ placeholder?: string;
17
+ defaultType?: AiContentType;
18
+ theme?: AiChatTheme;
19
+ stream?: boolean;
20
+ request?: (payload: AiChatRequestPayload) => Promise<AiChatResponseType>;
21
+ mock?: boolean;
22
+ }
23
+ declare const _default: import('vue').DefineComponent<Props, {
24
+ setResponse: (res: AiChatResponseType) => void;
25
+ setLoading: (val: boolean) => void;
26
+ appendStreamChunk: (chunk: string) => void;
27
+ setFullscreen: (val: boolean) => void;
28
+ clear: () => void;
29
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
+ close: () => any;
31
+ error: (error: any) => any;
32
+ send: (payload: AiChatRequestPayload) => any;
33
+ changeType: (type: AiContentType) => any;
34
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
35
+ onClose?: (() => any) | undefined;
36
+ onError?: ((error: any) => any) | undefined;
37
+ onSend?: ((payload: AiChatRequestPayload) => any) | undefined;
38
+ onChangeType?: ((type: AiContentType) => any) | undefined;
39
+ }>, {
40
+ baseHttp: string;
41
+ appKey: string;
42
+ appSalt: string;
43
+ placeholder: string;
44
+ ids: Record<string, {
45
+ id: string | number;
46
+ reqType: "get" | "post";
47
+ isFormData: boolean;
48
+ }>;
49
+ width: number | string;
50
+ theme: AiChatTheme;
51
+ draggable: boolean;
52
+ defaultX: number;
53
+ defaultY: number;
54
+ defaultType: AiContentType;
55
+ stream: boolean;
56
+ mock: boolean;
57
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
58
+ bodyRef: HTMLDivElement;
59
+ textareaRef: HTMLTextAreaElement;
60
+ }, HTMLDivElement>;
61
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { AiChatMessageAi, AiChatTheme } from './types';
2
+ interface Props {
3
+ message: AiChatMessageAi;
4
+ theme: AiChatTheme;
5
+ }
6
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare function renderMarkdown(md: string): string;
@@ -0,0 +1,48 @@
1
+ export type AiContentType = 'markdown' | 'table-image' | 'pdf';
2
+ export type AiChatTheme = 'dark' | 'light';
3
+ export interface AiChatRequestPayload {
4
+ text: string;
5
+ type: AiContentType;
6
+ }
7
+ export interface AiChatImageItem {
8
+ url: string;
9
+ caption?: string;
10
+ }
11
+ export interface AiChatPdfInfo {
12
+ title: string;
13
+ pages: number;
14
+ size: string;
15
+ author?: string;
16
+ }
17
+ export interface AiChatPdfPage {
18
+ title: string;
19
+ content: string;
20
+ }
21
+ export interface AiChatResponse {
22
+ type: AiContentType;
23
+ content?: string;
24
+ text?: string;
25
+ images?: AiChatImageItem[];
26
+ summary?: string;
27
+ pdfUrl?: string;
28
+ pdfInfo?: AiChatPdfInfo;
29
+ pages?: AiChatPdfPage[];
30
+ }
31
+ export interface AiChatMessageUser {
32
+ role: 'user';
33
+ content: string;
34
+ time: string;
35
+ }
36
+ export interface AiChatMessageAi {
37
+ role: 'ai';
38
+ type: AiContentType;
39
+ html?: string;
40
+ content?: string;
41
+ images?: AiChatImageItem[];
42
+ summary?: string;
43
+ pdfUrl?: string;
44
+ pdfInfo?: AiChatPdfInfo;
45
+ pages?: AiChatPdfPage[];
46
+ time: string;
47
+ }
48
+ export type AiChatMessage = AiChatMessageUser | AiChatMessageAi;
@@ -0,0 +1,65 @@
1
+ interface RichSegment {
2
+ text: string;
3
+ isRed: boolean;
4
+ }
5
+ interface NumItem {
6
+ richContent?: RichSegment[];
7
+ content?: string;
8
+ }
9
+ interface JingjiItem {
10
+ year: string;
11
+ all: number;
12
+ people: number;
13
+ }
14
+ interface CircleEntry {
15
+ label: string;
16
+ path?: string;
17
+ }
18
+ interface CircleItem {
19
+ label: string;
20
+ entries?: CircleEntry[];
21
+ }
22
+ interface MultiLineItem {
23
+ title: string;
24
+ content: string;
25
+ }
26
+ interface MenuItem {
27
+ id?: string;
28
+ label: string;
29
+ type: 'num' | 'multiLine' | 'custom' | 'img' | 'circle';
30
+ list?: MultiLineItem[] | string[] | CircleItem[] | NumItem[];
31
+ jingji?: JingjiItem[];
32
+ imgs?: string[];
33
+ previewImg?: string[];
34
+ showImg?: boolean;
35
+ imgUrl?: string;
36
+ isBasic?: boolean;
37
+ visible?: boolean;
38
+ isActive?: boolean;
39
+ }
40
+ interface HighQualityConfig {
41
+ content: MenuItem[];
42
+ [key: string]: any;
43
+ }
44
+ interface Props {
45
+ config?: HighQualityConfig;
46
+ baseHttp?: string;
47
+ jsonPath?: string;
48
+ title?: string;
49
+ titleStyle?: Record<string, string>;
50
+ }
51
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
52
+ navigate: (path: string, label: string) => any;
53
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
54
+ onNavigate?: ((path: string, label: string) => any) | undefined;
55
+ }>, {
56
+ baseHttp: string;
57
+ title: string;
58
+ config: HighQualityConfig;
59
+ jsonPath: string;
60
+ titleStyle: Record<string, string>;
61
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
62
+ chartRef: HTMLDivElement;
63
+ customUploadRef: unknown;
64
+ }, HTMLDivElement>;
65
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { Ref } from 'vue';
2
+ export interface UseDraggableOptions {
3
+ initialX?: number;
4
+ initialY?: number;
5
+ disabled?: boolean | Ref<boolean>;
6
+ }
7
+ export interface UseDraggableReturn {
8
+ x: Ref<number>;
9
+ y: Ref<number>;
10
+ dragging: Ref<boolean>;
11
+ onStart: (event: PointerEvent) => void;
12
+ }
13
+ export declare function useDraggable(options?: UseDraggableOptions): UseDraggableReturn;
package/dist/index.d.ts CHANGED
@@ -32,7 +32,10 @@ import { default as YCDataService } from './components/YCDataService/YCDataServi
32
32
  import { default as ChartCumulativePre } from './components/ChartCumulativePre/ChartCumulativePre.vue';
33
33
  import { default as ChartServiceMaterial } from './components/ChartServiceMaterial/ChartServiceMaterial.vue';
34
34
  import { default as YCHomeLegend } from './components/YCHomeLegend/YCHomeLegend.vue';
35
+ import { default as IntroducePic } from './components/IntroducePic/IntroducePic.vue';
36
+ import { default as HighQuality } from './components/HighQuality/HighQuality.vue';
37
+ import { default as AiChat } from './components/AiChat/AiChat.vue';
35
38
  import { Plugin } from 'vue';
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, YCDataService, ChartCumulativePre, ChartServiceMaterial, YCHomeLegend, };
39
+ 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, YCDataService, ChartCumulativePre, ChartServiceMaterial, YCHomeLegend, IntroducePic, HighQuality, AiChat, };
37
40
  declare const plugin: Plugin;
38
41
  export default plugin;