nxd-plugin 1.7.75 → 1.7.76

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 (51) hide show
  1. package/dist/assets/dataJson/AiChatMock.json.d.ts +345 -0
  2. package/dist/assets/dataJson/HighQualityConfig.json.d.ts +1 -1
  3. package/dist/chunks/component-AiChat-DvOiS6XW.mjs +26690 -0
  4. package/dist/chunks/component-AqiMonitor-xtkg3YYL.mjs +138 -0
  5. package/dist/chunks/{component-ChartCumulativePre-C0GUFXEa.mjs → component-ChartCumulativePre-CrIsXxUC.mjs} +7 -6
  6. package/dist/chunks/{component-ChartServiceMaterial-CNGZyHfu.mjs → component-ChartServiceMaterial-CH2JRmXk.mjs} +6 -5
  7. package/dist/chunks/{component-Duty-8taqj71c.mjs → component-Duty-Btcizjpy.mjs} +6 -5
  8. package/dist/chunks/{component-EarlyWarningStatistic-CXzvMFSw.mjs → component-EarlyWarningStatistic-iiIJr86a.mjs} +6 -5
  9. package/dist/chunks/{component-GeologyLiveAlarm-C6uBCDIM.mjs → component-GeologyLiveAlarm-BDKH6_3N.mjs} +7 -6
  10. package/dist/chunks/{component-HighQuality-DFvbK5Vt.mjs → component-HighQuality-YqVCokC1.mjs} +374 -319
  11. package/dist/chunks/{component-HighWayEarlyWarningRed-VCLYuCBe.mjs → component-HighWayEarlyWarningRed-UpU-jUbO.mjs} +7 -6
  12. package/dist/chunks/{component-HighWayFreeze-B3F7d3lb.mjs → component-HighWayFreeze-DDt3yPAK.mjs} +8 -7
  13. package/dist/chunks/{component-HighwayLiveAlarm-CJdM4vx6.mjs → component-HighwayLiveAlarm-vaPU17Pr.mjs} +6 -5
  14. package/dist/chunks/{component-HighwayLiveAlarmNew-F1sJV5h6.mjs → component-HighwayLiveAlarmNew-CVFrU6SR.mjs} +10 -9
  15. package/dist/chunks/{component-HighwayStations-Bz6Zekf1.mjs → component-HighwayStations-Choq-MV8.mjs} +6 -5
  16. package/dist/chunks/{component-HighwayWeatherForecast-BvuVI9p6.mjs → component-HighwayWeatherForecast-CFnbV8Es.mjs} +6 -5
  17. package/dist/chunks/{component-IframeWeb-CqORkYhs.mjs → component-IframeWeb-GuGLuA4w.mjs} +1 -1
  18. package/dist/chunks/{component-ImageGeneration-DxvSAg0-.mjs → component-ImageGeneration-BMwWQhbf.mjs} +1 -1
  19. package/dist/chunks/{component-IntroducePic-CW0bRPyF.mjs → component-IntroducePic-D7aUONYj.mjs} +1 -1
  20. package/dist/chunks/{component-LithiumBatteryMiningArea-DRuCBQHX.mjs → component-LithiumBatteryMiningArea-BGAEr-4D.mjs} +12 -11
  21. package/dist/chunks/{component-MapPopup-5ov9bufN.mjs → component-MapPopup-CGpYPcYD.mjs} +1 -1
  22. package/dist/chunks/{component-MaterialPreview-BIrxdpHg.mjs → component-MaterialPreview-Z3_Z3x1C.mjs} +6 -5
  23. package/dist/chunks/{component-PieLegend-BrcbU4Hc.mjs → component-PieLegend-D2apgbNW.mjs} +1 -1
  24. package/dist/chunks/{component-RadarChart-BvRhuudc.mjs → component-RadarChart-D8eFzW4q.mjs} +10 -9
  25. package/dist/chunks/{component-RadarLegend-BQrNUHJu.mjs → component-RadarLegend-DAntSPne.mjs} +1 -1
  26. package/dist/chunks/{component-RadarShortTerm-DSqGlMQq.mjs → component-RadarShortTerm-LAv0PwHu.mjs} +13 -12
  27. package/dist/chunks/{component-RadarTime-DeA11c09.mjs → component-RadarTime-DqgZVM8j.mjs} +18 -17
  28. package/dist/chunks/{component-RenderMarkdown-BA6QDwis.mjs → component-RenderMarkdown-Bi1MnEOL.mjs} +6 -5
  29. package/dist/chunks/{component-ReservoirLiveAlarm-CwQGV2pX.mjs → component-ReservoirLiveAlarm-BalTtyVE.mjs} +8 -7
  30. package/dist/chunks/{component-ServiceMaterial-D4na59x3.mjs → component-ServiceMaterial-By9uSbYq.mjs} +9 -8
  31. package/dist/chunks/{component-ServiceMaterialsBtn-pvj67yYf.mjs → component-ServiceMaterialsBtn-9ES9CZQH.mjs} +1 -1
  32. package/dist/chunks/{component-TimeBasedForecast-JuvtROGA.mjs → component-TimeBasedForecast-DTdtBrV3.mjs} +10 -9
  33. package/dist/chunks/{component-WarningLine-Dcn_betl.mjs → component-WarningLine-2IP9h9JP.mjs} +2 -2
  34. package/dist/chunks/{component-WarningSignal-q50D47rs.mjs → component-WarningSignal-DMypm-jM.mjs} +17 -16
  35. package/dist/chunks/{component-WeatherForecast-ByBdU74M.mjs → component-WeatherForecast-BjnV3mxQ.mjs} +12 -11
  36. package/dist/chunks/{component-YCDataMonitor-DcWd4kcO.mjs → component-YCDataMonitor-LV6a6dpF.mjs} +17 -16
  37. package/dist/chunks/{component-YCDataService-mOrVZ4oo.mjs → component-YCDataService-B01UoeW1.mjs} +11 -10
  38. package/dist/chunks/{component-YCHome-C-UM-oMR.mjs → component-YCHome-BvC1CqzO.mjs} +35 -34
  39. package/dist/chunks/{component-YCHomeLegend-LI2zcDnx.mjs → component-YCHomeLegend-DFvcgNHr.mjs} +1 -1
  40. package/dist/chunks/{component-YCLoginNew-DSeX5cyy.mjs → component-YCLoginNew-CPTUpoF2.mjs} +16 -15
  41. package/dist/components/AiChat/AiChat.vue.d.ts +4 -3
  42. package/dist/components/AiChat/AiChatResponse.vue.d.ts +7 -2
  43. package/dist/components/AiChat/types.d.ts +39 -24
  44. package/dist/components/HighQuality/HighQuality.vue.d.ts +2 -0
  45. package/dist/nxd-plugin.mjs +39 -39
  46. package/dist/styles/component-AiChat.css +1 -1
  47. package/dist/styles/component-HighQuality.css +1 -1
  48. package/dist/styles/component-YCLoginNew.css +1 -1
  49. package/package.json +1 -1
  50. package/dist/chunks/component-AiChat-Q30QFcNW.mjs +0 -47618
  51. package/dist/chunks/component-AqiMonitor-Bnnw0FMj.mjs +0 -5151
@@ -1,4 +1,5 @@
1
- import { i as e, n as t } from "./component-AqiMonitor-Bnnw0FMj.mjs";
1
+ import { n as e } from "./component-AqiMonitor-xtkg3YYL.mjs";
2
+ import { i as t } from "./component-AiChat-DvOiS6XW.mjs";
2
3
  import { ElConfigProvider as n, ElDatePicker as r, ElInput as i, ElLoadingDirective as a } from "element-plus/es";
3
4
  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
5
  import { ElMessage as T } from "element-plus";
@@ -51,7 +52,7 @@ var re = {
51
52
  key: 0,
52
53
  class: "info-missing",
53
54
  style: { "margin-top": "20px" }
54
- }, Vt = { class: "missing-list url-list" }, Ht = ["title"], Ut = { class: "url-actions" }, Wt = ["onClick"], Gt = ["onClick"], O = /* @__PURE__ */ t(/* @__PURE__ */ h({
55
+ }, Vt = { class: "missing-list url-list" }, Ht = ["title"], Ut = { class: "url-actions" }, Wt = ["onClick"], Gt = ["onClick"], O = /* @__PURE__ */ e(/* @__PURE__ */ h({
55
56
  __name: "YCDataMonitor",
56
57
  props: {
57
58
  appKey: {
@@ -75,8 +76,8 @@ var re = {
75
76
  default: ""
76
77
  }
77
78
  },
78
- setup(t, { expose: h }) {
79
- let O = t, k = b(!1), A = b([]), j = b([]), M = [
79
+ setup(e, { expose: h }) {
80
+ let O = e, k = b(!1), A = b([]), j = b([]), M = [
80
81
  {
81
82
  key: "cnty",
82
83
  label: "县名",
@@ -172,25 +173,25 @@ var re = {
172
173
  type: "success",
173
174
  customClass: "high-z-index-message"
174
175
  });
175
- }, Z = async (t) => {
176
+ }, Z = async (e) => {
176
177
  let n = JSON.parse(JSON.stringify(H.value));
177
178
  k.value = !0;
178
179
  let r = {
179
- dataType: t,
180
+ dataType: e,
180
181
  stationIds: n.stationId,
181
182
  missingTimes: "",
182
183
  startDate: "",
183
184
  endDate: ""
184
185
  };
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({
186
+ 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]);
187
+ let i = await t({
187
188
  appKey: O.appKey,
188
189
  appSalt: O.appSalt,
189
190
  id: O.ids.YCDataMonitor_getUrl.id,
190
191
  variables: {
191
- dataType: t,
192
+ dataType: e,
192
193
  stationIds: n.stationId,
193
- missingTimes: n[t].missingTimes.toString(),
194
+ missingTimes: n[e].missingTimes.toString(),
194
195
  startDate: "",
195
196
  endDate: ""
196
197
  },
@@ -198,7 +199,7 @@ var re = {
198
199
  reqType: O.ids.YCDataMonitor_getUrl.reqType,
199
200
  isFormData: O.ids.YCDataMonitor_getUrl.isFormData
200
201
  }), a = JSON.parse(i.data.result.output || "{}");
201
- console.log("urlList", a.data.urls), a.data && a.data.urls && (H.value[t].missingUrls = a.data.urls), k.value = !1, $();
202
+ console.log("urlList", a.data.urls), a.data && a.data.urls && (H.value[e].missingUrls = a.data.urls), k.value = !1, $();
202
203
  }, Q = (e) => {
203
204
  G.value = e, W.value = null, K.value = [], U.value = !0;
204
205
  }, Yt = async () => {
@@ -210,13 +211,13 @@ var re = {
210
211
  return;
211
212
  }
212
213
  q.value = !0;
213
- let t = H.value, n = {
214
+ let e = H.value, n = {
214
215
  appKey: O.appKey,
215
216
  appSalt: O.appSalt,
216
217
  id: O.ids.YCDataMonitor_getUrl.id,
217
218
  variables: {
218
219
  dataType: G.value,
219
- stationIds: t.stationId,
220
+ stationIds: e.stationId,
220
221
  missingTimes: "",
221
222
  startDate: W.value[0],
222
223
  endDate: W.value[1]
@@ -226,7 +227,7 @@ var re = {
226
227
  isFormData: O.ids.YCDataMonitor_getUrl.isFormData
227
228
  };
228
229
  try {
229
- let t = await e(n), r = JSON.parse(t.data.result.output || "{}");
230
+ let e = await t(n), r = JSON.parse(e.data.result.output || "{}");
230
231
  r.data && r.data.urls ? K.value = r.data.urls : K.value = [];
231
232
  } catch (e) {
232
233
  console.error(e), T.error({
@@ -238,7 +239,7 @@ var re = {
238
239
  }
239
240
  }, $ = async () => {
240
241
  console.log("查询日期", O.date), k.value = !0, A.value = [], j.value = [];
241
- let t = await e({
242
+ let e = await t({
242
243
  appKey: O.appKey,
243
244
  appSalt: O.appSalt,
244
245
  id: O.ids.YCDataMonitor_data.id,
@@ -248,7 +249,7 @@ var re = {
248
249
  isFormData: O.ids.YCDataMonitor_data.isFormData
249
250
  });
250
251
  k.value = !1;
251
- let n = JSON.parse(t.data.result.output || "{}").data || {};
252
+ let n = JSON.parse(e.data.result.output || "{}").data || {};
252
253
  console.log("list", n), A.value = n.nationalStations || [], j.value = n.regionalStations || [];
253
254
  };
254
255
  return h({ handleSearch: $ }), (e, t) => {
@@ -1,6 +1,7 @@
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";
1
+ import { n as e } from "./component-AqiMonitor-xtkg3YYL.mjs";
2
+ import { i as t } from "./component-AiChat-DvOiS6XW.mjs";
3
+ import { n } from "./component-HighwayWeatherForecast-CFnbV8Es.mjs";
4
+ import { t as r } from "./component-YCDataMonitor-LV6a6dpF.mjs";
4
5
  import { ElConfigProvider as i, ElDatePicker as a, ElInput as o, ElLoadingDirective as s } from "element-plus/es";
5
6
  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
7
  import "element-plus/es/components/loading/style/css";
@@ -11,7 +12,7 @@ import "element-plus/es/components/date-picker/style/css";
11
12
  var O = {
12
13
  class: "YCRealTimeTable",
13
14
  "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__ */ t(/* @__PURE__ */ h({
15
+ }, 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({
15
16
  __name: "YCRealTimeTable",
16
17
  props: {
17
18
  appKey: {
@@ -31,8 +32,8 @@ var O = {
31
32
  default: () => ({})
32
33
  }
33
34
  },
34
- setup(t) {
35
- let r = t, i = b(!1), a = b([]), h = [
35
+ setup(e) {
36
+ let r = e, i = b(!1), a = b([]), h = [
36
37
  "当前小时雨量(测试)",
37
38
  "1小时雨量",
38
39
  "3小时雨量",
@@ -151,7 +152,7 @@ var O = {
151
152
  });
152
153
  let Q = async () => {
153
154
  i.value = !0;
154
- let t = await e({
155
+ let e = await t({
155
156
  appKey: r.appKey,
156
157
  appSalt: r.appSalt,
157
158
  id: r.ids.YCRealTimeTable_data.id,
@@ -159,9 +160,9 @@ var O = {
159
160
  baseHttp: r.baseHttp,
160
161
  reqType: r.ids.YCRealTimeTable_data.reqType,
161
162
  isFormData: r.ids.YCRealTimeTable_data.isFormData
162
- }), o = t.data.result.output || "{}", s = JSON.parse(o);
163
+ }), o = e.data.result.output || "{}", s = JSON.parse(o);
163
164
  console.log("res_output", 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
+ let c = e.data.result.voltage || [], l = new Map(c.map((e) => [e.station_id, e])), { nationalStations: u, otherStations: d } = s.data || {
165
166
  nationalStations: [],
166
167
  otherStations: []
167
168
  };
@@ -314,7 +315,7 @@ var O = {
314
315
  }), [["__scopeId", "data-v-630ba040"]]), q = { class: "YCDataService" }, J = { class: "YCDataService-topbar" }, Y = { class: "page-switch" }, X = {
315
316
  key: 0,
316
317
  class: "YCDataService-filter"
317
- }, Z = /* @__PURE__ */ t(/* @__PURE__ */ h({
318
+ }, Z = /* @__PURE__ */ e(/* @__PURE__ */ h({
318
319
  __name: "YCDataService",
319
320
  props: {
320
321
  appKey: {
@@ -1,5 +1,6 @@
1
- import { i as e, n as t } from "./component-AqiMonitor-Bnnw0FMj.mjs";
2
- import { n } from "./component-LithiumBatteryMiningArea-DRuCBQHX.mjs";
1
+ import { n as e } from "./component-AqiMonitor-xtkg3YYL.mjs";
2
+ import { i as t } from "./component-AiChat-DvOiS6XW.mjs";
3
+ import { n } from "./component-LithiumBatteryMiningArea-BGAEr-4D.mjs";
3
4
  import { ElButton as r, ElDialog as i, ElForm as ee, ElFormItem as te, ElIcon as ne, ElInput as re } from "element-plus/es";
4
5
  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
6
  import { ArrowLeft as se, ArrowRight as ce, Lock as le, User as ue } from "@element-plus/icons-vue";
@@ -40,7 +41,7 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
40
41
  }, Le = { class: "main-shift-name" }, Re = {
41
42
  key: 0,
42
43
  class: "duty-section"
43
- }, ze = ["innerHTML"], Be = { class: "dialog-footer" }, j = /* @__PURE__ */ t({
44
+ }, ze = ["innerHTML"], Be = { class: "dialog-footer" }, j = /* @__PURE__ */ e({
44
45
  __name: "YCHome",
45
46
  props: {
46
47
  appKey: {
@@ -93,8 +94,8 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
93
94
  }
94
95
  },
95
96
  emits: ["toPage", "openPagePop"],
96
- setup(t, { emit: j }) {
97
- let M = t, N = j, P = v(!0), F = v(!1), I = v({
97
+ setup(e, { emit: j }) {
98
+ let M = e, N = j, P = v(!0), F = v(!1), I = v({
98
99
  x: 0,
99
100
  y: 0
100
101
  }), L = v({
@@ -261,7 +262,7 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
261
262
  document.removeEventListener("mousemove", Q), document.removeEventListener("mouseup", $), clearInterval(U.value);
262
263
  });
263
264
  let Ge = async () => {
264
- let t = (await e({
265
+ let e = (await t({
265
266
  appKey: M.appKey,
266
267
  appSalt: M.appSalt,
267
268
  id: M.ids.data.id,
@@ -270,14 +271,14 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
270
271
  reqType: M.ids.data.reqType,
271
272
  isFormData: M.ids.data.isFormData
272
273
  })).data.result.output;
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;
274
+ !e || e.length === 0 || (W.value.forEach((t, n) => {
275
+ let r = e.find((e) => e.web_page === t.url);
276
+ r && (t.title = r.menu_name), J && J.length > 0 ? J.find((e) => e.web_page === t.url) && (t.show = !0) : t.show = !0;
276
277
  }), Y(), X(), M.showDutyAndFollow && (U.value = setInterval(() => {
277
278
  Y(), X();
278
279
  }, 1e3 * 60 * 10)));
279
280
  }, Y = async () => {
280
- K.value = (await e({
281
+ K.value = (await t({
281
282
  appKey: M.appKey,
282
283
  appSalt: M.appSalt,
283
284
  id: M.ids.duty.id,
@@ -287,7 +288,7 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
287
288
  isFormData: M.ids.duty.isFormData
288
289
  })).data.result.output || [];
289
290
  }, X = async () => {
290
- q.value = (await e({
291
+ q.value = (await t({
291
292
  appKey: M.appKey,
292
293
  appSalt: M.appSalt,
293
294
  id: M.ids.follow.id,
@@ -306,58 +307,58 @@ var de = "data:image/gif;base64,R0lGODlhIAMgA/dWAAEAAAgHBwsKChUTExgXFxsZGSMYFSIe
306
307
  }), window.sessionStorage.setItem("user", JSON.stringify({ id: 1 })), B.value = !1, N("toPage", He.value?.url);
307
308
  }, 1e3));
308
309
  });
309
- }, Ke = (t) => {
310
+ }, Ke = (e) => {
310
311
  let r = window.localStorage.getItem("uName"), i = window.localStorage.getItem("uPwd");
311
- if (e({
312
+ if (t({
312
313
  appKey: M.appKey,
313
314
  appSalt: M.appSalt,
314
315
  id: M.ids.log.id,
315
316
  variables: {
316
- action_name: t.title,
317
+ action_name: e.title,
317
318
  action_type: "大屏系统-外网"
318
319
  },
319
320
  baseHttp: M.baseHttp,
320
321
  reqType: M.ids.log.reqType,
321
322
  isFormData: M.ids.log.isFormData
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()
323
+ }), e.url === "/public") {
324
+ let t = M.publicUrl;
325
+ r && i && (t += `?account=${n.decode(r)}&password=${n.decode(i)}&t=${Date.now()}`), N("openPagePop", {
326
+ title: e.title,
327
+ url: t.includes("?") ? t += "&t=" + Date.now() : t += "?t=" + Date.now()
327
328
  });
328
329
  return;
329
330
  }
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()
331
+ if (e.url === "/agriculture") {
332
+ let t = M.agrUrl;
333
+ r && i && (t += `?account=${n.decode(r)}&password=${n.decode(i)}&t=${Date.now()}`), N("openPagePop", {
334
+ title: e.title,
335
+ url: t.includes("?") ? t += "&t=" + Date.now() : t += "?t=" + Date.now()
335
336
  });
336
337
  return;
337
338
  }
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()
339
+ if (e.url === "/decision") {
340
+ let t = M.decisionUrl;
341
+ r && i && (t += `?account=${n.decode(r)}&password=${n.decode(i)}&t=${Date.now()}`), N("openPagePop", {
342
+ title: e.title,
343
+ url: t.includes("?") ? t += "&t=" + Date.now() : t += "?t=" + Date.now()
343
344
  });
344
345
  return;
345
346
  }
346
- if (t.url === "/center") {
347
+ if (e.url === "/center") {
347
348
  N("openPagePop", {
348
- title: t.title,
349
+ title: e.title,
349
350
  url: M.centerUrl.includes("?") ? M.centerUrl += "&t=" + Date.now() : M.centerUrl += "?t=" + Date.now()
350
351
  });
351
352
  return;
352
353
  }
353
- if (t.url === "/stations") {
354
+ if (e.url === "/stations") {
354
355
  N("openPagePop", {
355
- title: t.title,
356
+ title: e.title,
356
357
  url: M.stationsUrl.includes("?") ? M.stationsUrl += "&t=" + Date.now() : M.stationsUrl += "?t=" + Date.now()
357
358
  });
358
359
  return;
359
360
  }
360
- N("toPage", t.url);
361
+ N("toPage", e.url);
361
362
  }, Q = (e) => {
362
363
  if (!F.value) return;
363
364
  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-Bnnw0FMj.mjs";
1
+ import { n as e } from "./component-AqiMonitor-xtkg3YYL.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,6 @@
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";
1
+ import { n as e } from "./component-AqiMonitor-xtkg3YYL.mjs";
2
+ import { a as t, i as n, o as r } from "./component-AiChat-DvOiS6XW.mjs";
3
+ import { n as i } from "./component-LithiumBatteryMiningArea-BGAEr-4D.mjs";
3
4
  import { ElButton as ee, ElForm as a, ElFormItem as o, ElIcon as s, ElInput as te } from "element-plus/es";
4
5
  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
6
  import { Lock as x, Message as oe, Platform as se, User as S } from "@element-plus/icons-vue";
@@ -11,7 +12,7 @@ import "element-plus/es/components/form-item/style/css";
11
12
  import "element-plus/es/components/input/style/css";
12
13
  import "element-plus/es/components/message/style/css";
13
14
  //#region src/components/YCLoginNew/YCLoginNew.vue?vue&type=script&setup=true&lang.ts
14
- var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "login-container" }, de = { class: "login-wrapper" }, fe = { class: "login-box" }, w = { class: "login-header" }, T = { class: "header-icon" }, E = { class: "title" }, D = { class: "en-title" }, O = { class: "input-icon-box" }, k = { class: "input-icon-box" }, A = { class: "form-options" }, j = { class: "input-icon-box" }, M = { class: "code-input-wrapper" }, N = { class: "input-icon-box" }, P = { class: "input-icon-box" }, F = { class: "input-icon-box" }, I = { class: "split-btn-container" }, L = "yc_reset_code_expire", R = "yc_reset_code_value", z = /* @__PURE__ */ n(/* @__PURE__ */ f({
15
+ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "login-container" }, de = { class: "login-wrapper" }, fe = { class: "login-box" }, w = { class: "login-header" }, T = { class: "header-icon" }, E = { class: "title" }, D = { class: "en-title" }, O = { class: "input-icon-box" }, k = { class: "input-icon-box" }, A = { class: "form-options" }, j = { class: "input-icon-box" }, M = { class: "code-input-wrapper" }, N = { class: "input-icon-box" }, P = { class: "input-icon-box" }, F = { class: "input-icon-box" }, I = { class: "split-btn-container" }, L = "yc_reset_code_expire", R = "yc_reset_code_value", z = /* @__PURE__ */ e(/* @__PURE__ */ f({
15
16
  __name: "YCLoginNew",
16
17
  props: {
17
18
  appKey: {
@@ -39,8 +40,8 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
39
40
  default: ""
40
41
  }
41
42
  },
42
- setup(n, { emit: f }) {
43
- let z = n, B = f, V = g(), H = g(!1), U = h({
43
+ setup(e, { emit: f }) {
44
+ let z = e, B = f, V = g(), H = g(!1), U = h({
44
45
  username: "",
45
46
  password: ""
46
47
  }), pe = {
@@ -130,10 +131,10 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
130
131
  }, Z = () => {
131
132
  W.value = !1, G.value?.resetFields();
132
133
  }, Q = () => {
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) {
134
+ G.value && G.value.validate(async (e) => {
135
+ if (e) {
136
+ let e = J.value || window.localStorage.getItem(R);
137
+ if (!Y.code || Y.code !== e) {
137
138
  C({
138
139
  message: "验证码错误",
139
140
  type: "error",
@@ -143,10 +144,10 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
143
144
  return;
144
145
  }
145
146
  try {
146
- let t = {
147
+ let e = {
147
148
  loginName: Y.phone,
148
149
  password: Y.newPassword
149
- }, n = await e(z.resetPwdUrl, t);
150
+ }, n = await t(z.resetPwdUrl, e);
150
151
  n.errorCode === 0 ? (C({
151
152
  message: "密码重置成功",
152
153
  type: "success",
@@ -174,7 +175,7 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
174
175
  let e = {
175
176
  name: U.username,
176
177
  pwd: U.password
177
- }, n = (await t({
178
+ }, t = (await n({
178
179
  appKey: z.appKey,
179
180
  appSalt: z.appSalt,
180
181
  id: z.ids.data.id,
@@ -183,7 +184,7 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
183
184
  reqType: z.ids.data.reqType,
184
185
  isFormData: z.ids.data.isFormData
185
186
  })).data.result.output;
186
- if (H.value = !1, !n || n.length === 0) {
187
+ if (H.value = !1, !t || t.length === 0) {
187
188
  C({
188
189
  message: "账号或密码错误",
189
190
  type: "error",
@@ -197,8 +198,8 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
197
198
  type: "success",
198
199
  zIndex: 6e3,
199
200
  duration: 1500
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);
201
+ }), window.localStorage.setItem("user", JSON.stringify(t)), window.localStorage.setItem("uName", i.encode(U.username)), window.localStorage.setItem("uPwd", i.encode(U.password)), setTimeout(() => {
202
+ t.length > 1 ? B("toPage", "/home") : B("toPage", t[0].web_page);
202
203
  }, 1e3);
203
204
  }
204
205
  });
@@ -1,4 +1,4 @@
1
- import { AiContentType, AiChatTheme, AiChatRequestPayload, AiChatResponse as AiChatResponseType } from './types';
1
+ import { AiContentType, AiChatTheme, AiChatRequestPayload, AiChatResponse as AiChatResponseType, AiChatMockData } from './types';
2
2
  interface Props {
3
3
  baseHttp?: string;
4
4
  appKey?: string;
@@ -19,6 +19,7 @@ interface Props {
19
19
  stream?: boolean;
20
20
  request?: (payload: AiChatRequestPayload) => Promise<AiChatResponseType>;
21
21
  mock?: boolean;
22
+ mockData?: string | AiChatMockData;
22
23
  }
23
24
  declare const _default: import('vue').DefineComponent<Props, {
24
25
  setResponse: (res: AiChatResponseType) => void;
@@ -30,12 +31,12 @@ declare const _default: import('vue').DefineComponent<Props, {
30
31
  close: () => any;
31
32
  error: (error: any) => any;
32
33
  send: (payload: AiChatRequestPayload) => any;
33
- changeType: (type: AiContentType) => any;
34
+ changeType: (type: string) => any;
34
35
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
35
36
  onClose?: (() => any) | undefined;
36
37
  onError?: ((error: any) => any) | undefined;
37
38
  onSend?: ((payload: AiChatRequestPayload) => any) | undefined;
38
- onChangeType?: ((type: AiContentType) => any) | undefined;
39
+ onChangeType?: ((type: string) => any) | undefined;
39
40
  }>, {
40
41
  baseHttp: string;
41
42
  appKey: string;
@@ -1,7 +1,12 @@
1
- import { AiChatMessageAi, AiChatTheme } from './types';
1
+ import { AiChatTheme, AiChatMessageAi } from './types';
2
2
  interface Props {
3
3
  message: AiChatMessageAi;
4
4
  theme: AiChatTheme;
5
+ isFullscreen?: boolean;
6
+ baseHttp?: string;
5
7
  }
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>;
8
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
9
+ baseHttp: string;
10
+ isFullscreen: boolean;
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
7
12
  export default _default;
@@ -1,32 +1,53 @@
1
- export type AiContentType = 'markdown' | 'table-image' | 'pdf';
1
+ export type AiContentType = string;
2
2
  export type AiChatTheme = 'dark' | 'light';
3
3
  export interface AiChatRequestPayload {
4
4
  text: string;
5
5
  type: AiContentType;
6
6
  }
7
- export interface AiChatImageItem {
7
+ export type AiChatBlockType = 'markdown' | 'text' | 'table' | 'echarts' | 'image' | 'list' | 'fileList' | 'thinking' | 'file';
8
+ export interface AiChatFileItem {
9
+ name: string;
8
10
  url: string;
9
- caption?: string;
11
+ size?: string;
12
+ ext?: string;
13
+ description?: string;
10
14
  }
11
- export interface AiChatPdfInfo {
15
+ export interface AiChatTableColumn {
16
+ key: string;
12
17
  title: string;
13
- pages: number;
14
- size: string;
15
- author?: string;
18
+ align?: 'left' | 'center' | 'right';
16
19
  }
17
- export interface AiChatPdfPage {
18
- title: string;
19
- content: string;
20
+ export interface AiChatBlock {
21
+ sort: number;
22
+ type: AiChatBlockType;
23
+ title?: string;
24
+ content?: string;
25
+ columns?: AiChatTableColumn[];
26
+ data?: Record<string, any>[];
27
+ option?: any;
28
+ url?: string;
29
+ caption?: string;
30
+ items?: string[];
31
+ files?: AiChatFileItem[];
32
+ fileUrl?: string;
33
+ name?: string;
34
+ ext?: string;
35
+ }
36
+ export interface AiChatCategoryResponse {
37
+ keywords?: string[];
38
+ default?: boolean;
39
+ blocks: AiChatBlock[];
40
+ }
41
+ export interface AiChatCategoryConfig {
42
+ label: string;
43
+ responses: AiChatCategoryResponse[];
44
+ }
45
+ export interface AiChatMockData {
46
+ categories: Record<string, AiChatCategoryConfig>;
20
47
  }
21
48
  export interface AiChatResponse {
22
49
  type: AiContentType;
23
- content?: string;
24
- text?: string;
25
- images?: AiChatImageItem[];
26
- summary?: string;
27
- pdfUrl?: string;
28
- pdfInfo?: AiChatPdfInfo;
29
- pages?: AiChatPdfPage[];
50
+ blocks: AiChatBlock[];
30
51
  }
31
52
  export interface AiChatMessageUser {
32
53
  role: 'user';
@@ -36,13 +57,7 @@ export interface AiChatMessageUser {
36
57
  export interface AiChatMessageAi {
37
58
  role: 'ai';
38
59
  type: AiContentType;
39
- html?: string;
40
- content?: string;
41
- images?: AiChatImageItem[];
42
- summary?: string;
43
- pdfUrl?: string;
44
- pdfInfo?: AiChatPdfInfo;
45
- pages?: AiChatPdfPage[];
60
+ blocks: AiChatBlock[];
46
61
  time: string;
47
62
  }
48
63
  export type AiChatMessage = AiChatMessageUser | AiChatMessageAi;
@@ -46,6 +46,7 @@ interface HighQualityConfig {
46
46
  interface Props {
47
47
  config?: HighQualityConfig;
48
48
  baseHttp?: string;
49
+ imgBaseUrl?: string;
49
50
  jsonPath?: string;
50
51
  title?: string;
51
52
  titleStyle?: Record<string, string>;
@@ -58,6 +59,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
58
59
  baseHttp: string;
59
60
  title: string;
60
61
  config: HighQualityConfig;
62
+ imgBaseUrl: string;
61
63
  jsonPath: string;
62
64
  titleStyle: Record<string, string>;
63
65
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {