nxd-plugin 1.8.22 → 1.8.23
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/YCServiceSummary-D9qP6hLO.mjs +2 -0
- package/dist/chunks/{component-AiChat-AMGDZOnM.mjs → component-AiChat-BwP3zj0h.mjs} +637 -354
- package/dist/chunks/{component-AqiMonitor-CbRqtu9p.mjs → component-AqiMonitor-Cga2wb4h.mjs} +27 -31
- package/dist/chunks/{component-ChartCumulativePre-BTqI2llc.mjs → component-ChartCumulativePre-CkQrY-fM.mjs} +2 -2
- package/dist/chunks/{component-ChartServiceMaterial-B09CYvj1.mjs → component-ChartServiceMaterial-BSfXMgj4.mjs} +2 -2
- package/dist/chunks/{component-Duty-B_xLIwLc.mjs → component-Duty-DLMdCDNu.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic-CuEZKyRd.mjs → component-EarlyWarningStatistic-CHCmDM5w.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic2-CwxVVXDz.mjs → component-EarlyWarningStatistic2-D_Uc9rbm.mjs} +2 -2
- package/dist/chunks/{component-Forecast72h-DWuJmxhN.mjs → component-Forecast72h-CwDS2BCV.mjs} +91 -92
- package/dist/chunks/{component-GeologyLiveAlarm-D0Qp3NkC.mjs → component-GeologyLiveAlarm-TXjC0N1b.mjs} +2 -2
- package/dist/chunks/{component-GridForecastMsg-CACyyiD4.mjs → component-GridForecastMsg-J7V2m_bm.mjs} +1 -2
- package/dist/chunks/{component-HDSeaLegend-BKmNgyVy.mjs → component-HDSeaLegend-BbW1vk-L.mjs} +2 -1
- package/dist/chunks/{component-HdCameraList-CjERf58T.mjs → component-HdCameraList-ya7gQWsk.mjs} +84 -101
- package/dist/chunks/{component-HdFarmStation-B7LiZJNn.mjs → component-HdFarmStation-DbvF94Z6.mjs} +76 -81
- package/dist/chunks/{component-HdFarmStationDialog-DGaloDuc.mjs → component-HdFarmStationDialog-p3vjS1JB.mjs} +1 -2
- package/dist/chunks/{component-HdForecastProducts-Cqm11AZJ.mjs → component-HdForecastProducts-2ZXLMLdw.mjs} +1 -2
- package/dist/chunks/{component-HdHeatChart-DBrkJ7wc.mjs → component-HdHeatChart-CM4uhNsK.mjs} +1 -2
- package/dist/chunks/{component-HdHeatChartDialog-COXAQ7bQ.mjs → component-HdHeatChartDialog-CxIaxIg5.mjs} +2 -3
- package/dist/chunks/{component-HdHeatService-BytLjsOH.mjs → component-HdHeatService-BNRBwLEC.mjs} +1 -2
- package/dist/chunks/{component-HdInsectDetailList-Burje-lq.mjs → component-HdInsectDetailList-CNfJip9R.mjs} +1 -2
- package/dist/chunks/{component-HdInsectList-BmvZhDkG.mjs → component-HdInsectList-D0fRM6cx.mjs} +1 -2
- package/dist/chunks/component-HdMajorActivity-C95MgI5Y.mjs +704 -0
- package/dist/chunks/{component-HdObservation-CEBvwX20.mjs → component-HdObservation-DUMGmfJN.mjs} +3 -4
- package/dist/chunks/{component-HdPreSituation-C9k5S8xb.mjs → component-HdPreSituation-IILymZ3h.mjs} +3 -4
- package/dist/chunks/{component-HdQxServiceEffects-afWY5O0D.mjs → component-HdQxServiceEffects-B-C0VBH3.mjs} +1 -2
- package/dist/chunks/{component-HdRadarList-CcQfA_IK.mjs → component-HdRadarList-DSMrSb-T.mjs} +3 -3
- package/dist/chunks/{component-HdRadarTime-BinpFlES.mjs → component-HdRadarTime-FEhuGBEg.mjs} +1 -2
- package/dist/chunks/{component-HdRadarTimeLine-DsMjdctK.mjs → component-HdRadarTimeLine-UfzKKTgp.mjs} +1 -2
- package/dist/chunks/{component-HdRisk-CtU4tAFm.mjs → component-HdRisk-B3N71NoC.mjs} +2 -3
- package/dist/chunks/{component-HdSeaCase-BSUlsIx4.mjs → component-HdSeaCase-Cim-Y8hP.mjs} +1 -2
- package/dist/chunks/{component-HdServiceMarterial-BVRAV14z.mjs → component-HdServiceMarterial-BxifbLBR.mjs} +2 -3
- package/dist/chunks/{component-HdServiceRequirements-CuKHpG2x.mjs → component-HdServiceRequirements-BawMn0jA.mjs} +2 -3
- package/dist/chunks/{component-HdSoil-Cg5eJ24C.mjs → component-HdSoil-DaGj6RPD.mjs} +2 -3
- package/dist/chunks/{component-HdSoilDetailList-BXkegoW8.mjs → component-HdSoilDetailList-fBu8i74J.mjs} +1 -2
- package/dist/chunks/{component-HdStationTem-BDWsPUTr.mjs → component-HdStationTem-DgGFJ20c.mjs} +3 -4
- package/dist/chunks/{component-HdSuggestion-Z8vAFQcx.mjs → component-HdSuggestion-BnpgzKkp.mjs} +2 -3
- package/dist/chunks/{component-HdThreeWeatherTrend-D76c14hh.mjs → component-HdThreeWeatherTrend-Bmire4sm.mjs} +3 -4
- package/dist/chunks/{component-HdWaveForcast-BqdcmF-9.mjs → component-HdWaveForcast-Bc3sB9Fn.mjs} +2 -3
- package/dist/chunks/{component-HighQuality-CxiEeJ6T.mjs → component-HighQuality-DjDZKwMT.mjs} +1 -2
- package/dist/chunks/{component-HighWayEarlyWarningRed-CXddcWf3.mjs → component-HighWayEarlyWarningRed-CzBI_AJA.mjs} +2 -2
- package/dist/chunks/{component-HighWayFreeze-Ce2mS-fo.mjs → component-HighWayFreeze-sFMx0umE.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarm-cmXVG7kx.mjs → component-HighwayLiveAlarm-Ozq7Y8qF.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-DIh8-E-a.mjs → component-HighwayLiveAlarmNew-ByL2OYk0.mjs} +3 -3
- package/dist/chunks/{component-HighwayStations-DeOsPYJ4.mjs → component-HighwayStations-DXj5h1vg.mjs} +2 -2
- package/dist/chunks/{component-HighwayWeatherForecast-OTwm4aUB.mjs → component-HighwayWeatherForecast-6I714FL1.mjs} +69 -69
- package/dist/chunks/{component-IframeWeb-DJpLhA93.mjs → component-IframeWeb-DDYUNdVl.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-CPp8qG9P.mjs → component-ImageGeneration-C0K8D1lM.mjs} +2 -1
- package/dist/chunks/{component-IntroducePic-DMbanecs.mjs → component-IntroducePic-Bzsjmjql.mjs} +1 -2
- package/dist/chunks/{component-LithiumBatteryMiningArea-BHUIxPQA.mjs → component-LithiumBatteryMiningArea-ClvF3vsD.mjs} +2 -2
- package/dist/chunks/{component-MapPopup-CG1DlFH_.mjs → component-MapPopup-BnKmR10m.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-DFtr5Zsw.mjs → component-MaterialPreview-DG5VgGJp.mjs} +1 -2
- package/dist/chunks/{component-PieLegend-CUhuvyyt.mjs → component-PieLegend-Y_AZPS0g.mjs} +1 -1
- package/dist/chunks/{component-PrecipitationRanking-CvuHO8-L.mjs → component-PrecipitationRanking-71G9U_UP.mjs} +3 -4
- package/dist/chunks/{component-RadarChart-BtV2B9NQ.mjs → component-RadarChart-u6Xs1TTB.mjs} +2 -2
- package/dist/chunks/{component-RadarLegend-uI-vbK2B.mjs → component-RadarLegend-9ahVi99l.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-C3yIFfjc.mjs → component-RadarShortTerm-wwvpXBvp.mjs} +4 -4
- package/dist/chunks/{component-RadarTime-Cy5ezbus.mjs → component-RadarTime-BqkIprmh.mjs} +2 -2
- package/dist/chunks/{component-RenderMarkdown-Cf79iCPF.mjs → component-RenderMarkdown-Cip_f4e8.mjs} +2 -2
- package/dist/chunks/{component-ReservoirLiveAlarm-DvMi5KuT.mjs → component-ReservoirLiveAlarm-D6fDm2mR.mjs} +3 -3
- package/dist/chunks/{component-ServiceMaterial-tM5xlUk5.mjs → component-ServiceMaterial-DHdRLUhG.mjs} +2 -2
- package/dist/chunks/{component-ServiceMaterialsBtn-CkBLC8_V.mjs → component-ServiceMaterialsBtn-B6fjh9Bc.mjs} +2 -1
- package/dist/chunks/{component-StationDialog-ThXd8RYz.mjs → component-StationDialog-DP9cwrI_.mjs} +2 -3
- package/dist/chunks/{component-StationList-CTE-wJJe.mjs → component-StationList-Cfmz5c3d.mjs} +3 -4
- package/dist/chunks/{component-TimeBasedForecast-BH14WI1X.mjs → component-TimeBasedForecast-DIBNCv4O.mjs} +36 -36
- package/dist/chunks/{component-Typhoon-BAh6wD79.mjs → component-Typhoon-4Oj6wl91.mjs} +16 -16
- package/dist/chunks/{component-WarningLine-DXy9x9WQ.mjs → component-WarningLine-XjCN_f4w.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-omOhQ4Oe.mjs → component-WarningSignal-DPUOC73O.mjs} +3 -3
- package/dist/chunks/{component-WeatherForecast-CdccA6XY.mjs → component-WeatherForecast-Cl3G0gZG.mjs} +36 -36
- package/dist/chunks/{component-YCDataMonitor-b_yLhnlt.mjs → component-YCDataMonitor-Cmugq2Hc.mjs} +1 -2
- package/dist/chunks/{component-YCDataService-BuXN9Hbm.mjs → component-YCDataService-Veq9EEB6.mjs} +3 -4
- package/dist/chunks/{component-YCHighWaySummary-BJ5NCRVX.mjs → component-YCHighWaySummary-BfcLGdxr.mjs} +2 -2
- package/dist/chunks/{component-YCHome-KZ-r1BIn.mjs → component-YCHome-BgGFtVlS.mjs} +3 -4
- package/dist/chunks/{component-YCHomeLegend-CI9bN8C9.mjs → component-YCHomeLegend-jG8vwIka.mjs} +2 -1
- package/dist/chunks/{component-YCLoginNew-BwaX10Om.mjs → component-YCLoginNew-BKMD-5TL.mjs} +9 -10
- package/dist/chunks/component-YCServiceSummary-C2K81UiN.mjs +869 -0
- package/dist/components/AiChat/AiChat.vue.d.ts +18 -0
- package/dist/components/AiChat/AiChatResponse.vue.d.ts +2 -0
- package/dist/components/AiChat/AiChatThinking.vue.d.ts +4 -0
- package/dist/components/AiChat/types.d.ts +1 -0
- package/dist/components/HdCameraList/HdCameraList.vue.d.ts +0 -10
- package/dist/components/HdMajorActivity/HdMajorActivity.vue.d.ts +46 -2
- package/dist/components/YCServiceSummary/YCAIChatPanel.vue.d.ts +2 -0
- package/dist/components/YCServiceSummary/YCServiceSummary.vue.d.ts +2 -0
- package/dist/components/YCServiceSummary/YCServiceSummaryGeologyRefineAnalysis.vue.d.ts +24 -0
- package/dist/components/YCServiceSummary/YCServiceSummaryGeologyTrafficAnalysis.vue.d.ts +24 -0
- package/dist/components/YCServiceSummary/YCServiceSummaryReservoirRefineAnalysis.vue.d.ts +24 -0
- package/dist/components/YCServiceSummary/YCServiceSummaryReservoirTrafficAnalysis.vue.d.ts +24 -0
- package/dist/nxd-plugin.mjs +73 -73
- package/dist/styles/component-AiChat.css +1 -1
- package/dist/styles/component-Forecast72h.css +1 -1
- package/dist/styles/component-HdCameraList.css +1 -1
- package/dist/styles/component-HdFarmStation.css +1 -1
- package/dist/styles/component-HdInsectDetailList.css +1 -1
- package/dist/styles/component-HdMajorActivity.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/dist/styles/component-YCServiceSummary.css +1 -1
- package/dist/utils/request.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunks/YCServiceSummary-PPstZeY5.mjs +0 -2
- package/dist/chunks/component-HdMajorActivity-fd-kVYVY.mjs +0 -221
- package/dist/chunks/component-YCServiceSummary-DyWhK07a.mjs +0 -509
|
@@ -1,509 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./component-AqiMonitor-CbRqtu9p.mjs";
|
|
2
|
-
import { a as t } from "./component-AiChat-AMGDZOnM.mjs";
|
|
3
|
-
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createStaticVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeProps as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, toDisplayString as x, vModelText as S, watch as C, withDirectives as w } from "vue";
|
|
4
|
-
import * as T from "echarts";
|
|
5
|
-
//#region src/components/YCServiceSummary/YCAIChatPanel.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var E = { class: "YCAIChatPanel" }, D = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "YCAIChatPanel-message-avatar"
|
|
9
|
-
}, O = { class: "YCAIChatPanel-message-body" }, k = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "YCAIChatPanel-message-tip"
|
|
12
|
-
}, A = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "YCAIChatPanel-subMenu"
|
|
15
|
-
}, j = ["onClick"], M = { class: "YCAIChatPanel-footer" }, N = { class: "YCAIChatPanel-mainMenu" }, P = ["onClick"], F = { class: "YCAIChatPanel-inputBar" }, ee = ["disabled"], I = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
16
|
-
__name: "YCAIChatPanel",
|
|
17
|
-
props: [
|
|
18
|
-
"appKey",
|
|
19
|
-
"appSalt",
|
|
20
|
-
"baseHttp",
|
|
21
|
-
"interfaceBaseHttp",
|
|
22
|
-
"onlyofficeCallbackUrl",
|
|
23
|
-
"username",
|
|
24
|
-
"password",
|
|
25
|
-
"ids"
|
|
26
|
-
],
|
|
27
|
-
setup(e) {
|
|
28
|
-
let t = y(null), c = y(null), l = y(""), u = y("data"), d = [
|
|
29
|
-
{
|
|
30
|
-
key: "data",
|
|
31
|
-
label: "查数据"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
key: "material",
|
|
35
|
-
label: "查材料"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
key: "knowledge",
|
|
39
|
-
label: "查知识"
|
|
40
|
-
}
|
|
41
|
-
], f = {
|
|
42
|
-
data: [
|
|
43
|
-
{
|
|
44
|
-
id: "d1",
|
|
45
|
-
title: "近3小时最大降水",
|
|
46
|
-
content: "查询近3小时最大降水分布"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
id: "d2",
|
|
50
|
-
title: "未来24小时降水预报",
|
|
51
|
-
content: "查询未来24小时降水预报"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
id: "d3",
|
|
55
|
-
title: "当前风速风向",
|
|
56
|
-
content: "查询当前风速风向"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
material: [
|
|
60
|
-
{
|
|
61
|
-
id: "m1",
|
|
62
|
-
title: "交通气象服务材料",
|
|
63
|
-
content: "生成交通气象服务材料"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: "m2",
|
|
67
|
-
title: "地质灾害风险材料",
|
|
68
|
-
content: "生成地质灾害风险材料"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
id: "m3",
|
|
72
|
-
title: "水库灾害风险材料",
|
|
73
|
-
content: "生成水库灾害风险材料"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
knowledge: [
|
|
77
|
-
{
|
|
78
|
-
id: "k1",
|
|
79
|
-
title: "公路气象服务规范",
|
|
80
|
-
content: "查询公路气象服务规范"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: "k2",
|
|
84
|
-
title: "预警等级定义",
|
|
85
|
-
content: "查询预警等级定义"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
id: "k3",
|
|
89
|
-
title: "气象服务流程",
|
|
90
|
-
content: "查询气象服务流程"
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}, h = r(() => f[u.value] || []), g = r(() => !!l.value.trim()), _ = y([{
|
|
94
|
-
role: "ai",
|
|
95
|
-
lines: ["已接入实况与短临预报数据,请问需要什么帮助?"]
|
|
96
|
-
}]), C = async () => {
|
|
97
|
-
await p();
|
|
98
|
-
let e = c.value;
|
|
99
|
-
e && (e.scrollTop = e.scrollHeight);
|
|
100
|
-
}, T = (e) => {
|
|
101
|
-
u.value = e;
|
|
102
|
-
}, I = (e) => {
|
|
103
|
-
l.value = e.content || "", p(() => {
|
|
104
|
-
R(), t.value?.focus();
|
|
105
|
-
});
|
|
106
|
-
}, L = () => {
|
|
107
|
-
let e = l.value.trim();
|
|
108
|
-
e && (_.value.push({
|
|
109
|
-
role: "user",
|
|
110
|
-
lines: [e]
|
|
111
|
-
}), _.value.push({
|
|
112
|
-
role: "ai",
|
|
113
|
-
lines: ["已收到您的问题,正在为您查询相关数据…"]
|
|
114
|
-
}), l.value = "", p(() => {
|
|
115
|
-
R(), C();
|
|
116
|
-
}));
|
|
117
|
-
}, R = () => {
|
|
118
|
-
let e = t.value;
|
|
119
|
-
if (!e) return;
|
|
120
|
-
e.style.height = "auto", e.style.overflowY = "hidden";
|
|
121
|
-
let n = Math.min(e.scrollHeight, 300);
|
|
122
|
-
e.style.height = `${n}px`, e.style.overflowY = e.scrollHeight > 300 ? "auto" : "hidden";
|
|
123
|
-
}, z = () => {
|
|
124
|
-
R();
|
|
125
|
-
}, B = (e) => {
|
|
126
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), L());
|
|
127
|
-
};
|
|
128
|
-
return (e, r) => (v(), a("div", E, [
|
|
129
|
-
r[4] ||= s("<div class=\"YCAIChatPanel-head\" data-v-b1d5df1f><div class=\"YCAIChatPanel-head-title\" data-v-b1d5df1f><span class=\"YCAIChatPanel-head-icon\" data-v-b1d5df1f></span><span data-v-b1d5df1f>智能助手</span></div><div class=\"YCAIChatPanel-head-status\" data-v-b1d5df1f><span class=\"YCAIChatPanel-head-dot\" data-v-b1d5df1f></span><span data-v-b1d5df1f>在线</span></div></div>", 1),
|
|
130
|
-
o("div", {
|
|
131
|
-
class: "YCAIChatPanel-messages",
|
|
132
|
-
ref_key: "messagesRef",
|
|
133
|
-
ref: c
|
|
134
|
-
}, [(v(!0), a(n, null, b(_.value, (e, t) => (v(), a("div", {
|
|
135
|
-
key: `${e.role}-${t}`,
|
|
136
|
-
class: m(["YCAIChatPanel-message", `YCAIChatPanel-message--${e.role}`])
|
|
137
|
-
}, [e.role === "ai" ? (v(), a("div", D, [...r[1] ||= [o("span", null, "AI", -1)]])) : i("", !0), o("div", O, [(v(!0), a(n, null, b(e.lines, (e, t) => (v(), a("div", {
|
|
138
|
-
key: t,
|
|
139
|
-
class: "YCAIChatPanel-message-line"
|
|
140
|
-
}, x(e), 1))), 128)), e.tip ? (v(), a("div", k, x(e.tip), 1)) : i("", !0)])], 2))), 128))], 512),
|
|
141
|
-
h.value.length ? (v(), a("div", A, [(v(!0), a(n, null, b(h.value, (e) => (v(), a("div", {
|
|
142
|
-
key: e.id || e.title,
|
|
143
|
-
class: "YCAIChatPanel-subMenu-item",
|
|
144
|
-
onClick: (t) => I(e)
|
|
145
|
-
}, [o("span", null, x(e.title), 1), r[2] ||= o("img", {
|
|
146
|
-
class: "YCAIChatPanel-subMenu-arrow",
|
|
147
|
-
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIAgMAAADQNkYNAAAACVBMVEVHcEz////////mcEUwAAAAAnRSTlMAfVgnwLkAAAD9SURBVHja7dmhDcMwAETRJmoNwks8QqcwLgrpEpnGuCjAJDdlyVXFH4RUd/yDF8WSJV+yLMuyLDtxtxUn26DFLDWYFKnDZJEGTKp08ESNJ50mGFOEMUUYM4ljNo6pwQQTTDDBBBNMMMEEE0wwp2KuK8Y8DoqZpAYxs9QBxvUOMYs0AIYkxpDEGJIYQxJjUGIMSYwhiTEkMQYlxjghGCcE44RgnCCME4JxQjBOCMYJwjghGCcE44RgnBDM0wnAvJ0AjFhSeVJ4MqHEGJ5UnhSeTE4wZiC5QDILJwtPKk+2P0oe+m3nX6yDH9Jr6HSJXBnvr+/WPANlWZZl2Yn7ANxo7eonko39AAAAAElFTkSuQmCC",
|
|
148
|
-
alt: ""
|
|
149
|
-
}, null, -1)], 8, j))), 128))])) : i("", !0),
|
|
150
|
-
o("div", M, [o("div", N, [(v(), a(n, null, b(d, (e) => o("button", {
|
|
151
|
-
key: e.key,
|
|
152
|
-
class: m(["YCAIChatPanel-mainMenu-btn", { "is-active": u.value === e.key }]),
|
|
153
|
-
onClick: (t) => T(e.key)
|
|
154
|
-
}, x(e.label), 11, P)), 64))]), o("div", F, [w(o("textarea", {
|
|
155
|
-
ref_key: "textareaRef",
|
|
156
|
-
ref: t,
|
|
157
|
-
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
158
|
-
class: "YCAIChatPanel-textarea",
|
|
159
|
-
placeholder: "请输入问题",
|
|
160
|
-
rows: "1",
|
|
161
|
-
onInput: z,
|
|
162
|
-
onKeydown: B
|
|
163
|
-
}, null, 544), [[S, l.value]]), o("button", {
|
|
164
|
-
class: "YCAIChatPanel-send",
|
|
165
|
-
disabled: !g.value,
|
|
166
|
-
onClick: L,
|
|
167
|
-
title: "发送"
|
|
168
|
-
}, [...r[3] ||= [o("svg", {
|
|
169
|
-
viewBox: "0 0 24 24",
|
|
170
|
-
width: "16",
|
|
171
|
-
height: "16",
|
|
172
|
-
fill: "currentColor"
|
|
173
|
-
}, [o("path", { d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" })], -1)]], 8, ee)])])
|
|
174
|
-
]));
|
|
175
|
-
}
|
|
176
|
-
}), [["__scopeId", "data-v-b1d5df1f"]]), L = { class: "YCServiceSummaryRefineAnalysis" }, R = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
177
|
-
__name: "YCServiceSummaryRefineAnalysis",
|
|
178
|
-
props: [
|
|
179
|
-
"appKey",
|
|
180
|
-
"appSalt",
|
|
181
|
-
"baseHttp",
|
|
182
|
-
"interfaceBaseHttp",
|
|
183
|
-
"onlyofficeCallbackUrl",
|
|
184
|
-
"username",
|
|
185
|
-
"password",
|
|
186
|
-
"ids",
|
|
187
|
-
"theme"
|
|
188
|
-
],
|
|
189
|
-
setup(e) {
|
|
190
|
-
let t = e, n = [
|
|
191
|
-
{
|
|
192
|
-
name: "沪宁高速沿线一段",
|
|
193
|
-
value: 1,
|
|
194
|
-
color: "#52c41a"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
name: "沪宁高速沿线二段",
|
|
198
|
-
value: 1,
|
|
199
|
-
color: "#52c41a"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
name: "沪宁高速沿线三段",
|
|
203
|
-
value: 1,
|
|
204
|
-
color: "#ff9b3d"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
name: "沪宁高速沿线四段",
|
|
208
|
-
value: 1,
|
|
209
|
-
color: "#ff9b3d"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
name: "一区一段",
|
|
213
|
-
value: 1,
|
|
214
|
-
color: "#52c41a"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
name: "一区二段",
|
|
218
|
-
value: 1,
|
|
219
|
-
color: "#ff9b3d"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
name: "一区三段",
|
|
223
|
-
value: 1,
|
|
224
|
-
color: "#52c41a"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
name: "一区四段",
|
|
228
|
-
value: 1,
|
|
229
|
-
color: "#ff9b3d"
|
|
230
|
-
}
|
|
231
|
-
], r = y(null), i = null, s = () => {
|
|
232
|
-
let e = r.value;
|
|
233
|
-
return e && getComputedStyle(e).getPropertyValue("--yc-chart-label").trim() || "#333";
|
|
234
|
-
}, c = () => {
|
|
235
|
-
if (!r.value) return;
|
|
236
|
-
let e = s();
|
|
237
|
-
i ||= T.init(r.value), i.setOption({
|
|
238
|
-
tooltip: {
|
|
239
|
-
trigger: "item",
|
|
240
|
-
formatter: "{b}"
|
|
241
|
-
},
|
|
242
|
-
series: [{
|
|
243
|
-
type: "pie",
|
|
244
|
-
radius: ["30%", "65%"],
|
|
245
|
-
center: ["50%", "50%"],
|
|
246
|
-
label: {
|
|
247
|
-
show: !0,
|
|
248
|
-
position: "outside",
|
|
249
|
-
fontSize: 11,
|
|
250
|
-
color: e,
|
|
251
|
-
formatter: "{b}"
|
|
252
|
-
},
|
|
253
|
-
labelLine: {
|
|
254
|
-
length: 10,
|
|
255
|
-
length2: 8
|
|
256
|
-
},
|
|
257
|
-
data: n.map((e) => ({
|
|
258
|
-
value: e.value,
|
|
259
|
-
name: e.name,
|
|
260
|
-
itemStyle: { color: e.color }
|
|
261
|
-
}))
|
|
262
|
-
}]
|
|
263
|
-
});
|
|
264
|
-
};
|
|
265
|
-
C(() => t.theme, async () => {
|
|
266
|
-
await p(), c();
|
|
267
|
-
});
|
|
268
|
-
let l = () => {
|
|
269
|
-
i?.resize();
|
|
270
|
-
};
|
|
271
|
-
return _(() => {
|
|
272
|
-
p(c), window.addEventListener("resize", l);
|
|
273
|
-
}), g(() => {
|
|
274
|
-
window.removeEventListener("resize", l), i && i.dispose();
|
|
275
|
-
}), (e, t) => (v(), a("div", L, [o("div", {
|
|
276
|
-
class: "YCServiceSummaryRefineAnalysis-chart",
|
|
277
|
-
ref_key: "chartRef",
|
|
278
|
-
ref: r
|
|
279
|
-
}, null, 512)]));
|
|
280
|
-
}
|
|
281
|
-
}), [["__scopeId", "data-v-db6111f2"]]), z = { class: "YCServiceSummaryTrafficAnalysis" }, B = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
282
|
-
__name: "YCServiceSummaryTrafficAnalysis",
|
|
283
|
-
props: [
|
|
284
|
-
"appKey",
|
|
285
|
-
"appSalt",
|
|
286
|
-
"baseHttp",
|
|
287
|
-
"interfaceBaseHttp",
|
|
288
|
-
"onlyofficeCallbackUrl",
|
|
289
|
-
"username",
|
|
290
|
-
"password",
|
|
291
|
-
"ids",
|
|
292
|
-
"theme"
|
|
293
|
-
],
|
|
294
|
-
setup(e) {
|
|
295
|
-
let t = e, n = [
|
|
296
|
-
{
|
|
297
|
-
name: "沪宁高速沿线一段",
|
|
298
|
-
value: 1,
|
|
299
|
-
color: "#52c41a"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
name: "沪宁高速沿线二段",
|
|
303
|
-
value: 1,
|
|
304
|
-
color: "#ff9b3d"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
name: "沪宁高速沿线三段",
|
|
308
|
-
value: 1,
|
|
309
|
-
color: "#52c41a"
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
name: "沪宁高速沿线四段",
|
|
313
|
-
value: 1,
|
|
314
|
-
color: "#ff9b3d"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
name: "一区一段",
|
|
318
|
-
value: 1,
|
|
319
|
-
color: "#52c41a"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
name: "一区二段",
|
|
323
|
-
value: 1,
|
|
324
|
-
color: "#ff9b3d"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
name: "一区三段",
|
|
328
|
-
value: 1,
|
|
329
|
-
color: "#52c41a"
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
name: "一区四段",
|
|
333
|
-
value: 1,
|
|
334
|
-
color: "#ff9b3d"
|
|
335
|
-
}
|
|
336
|
-
], r = y(null), i = null, s = () => {
|
|
337
|
-
let e = r.value;
|
|
338
|
-
return e && getComputedStyle(e).getPropertyValue("--yc-chart-label").trim() || "#333";
|
|
339
|
-
}, c = () => {
|
|
340
|
-
if (!r.value) return;
|
|
341
|
-
let e = s();
|
|
342
|
-
i ||= T.init(r.value), i.setOption({
|
|
343
|
-
tooltip: {
|
|
344
|
-
trigger: "item",
|
|
345
|
-
formatter: "{b}"
|
|
346
|
-
},
|
|
347
|
-
series: [{
|
|
348
|
-
type: "pie",
|
|
349
|
-
radius: ["30%", "65%"],
|
|
350
|
-
center: ["50%", "50%"],
|
|
351
|
-
label: {
|
|
352
|
-
show: !0,
|
|
353
|
-
position: "outside",
|
|
354
|
-
fontSize: 11,
|
|
355
|
-
color: e,
|
|
356
|
-
formatter: "{b}"
|
|
357
|
-
},
|
|
358
|
-
labelLine: {
|
|
359
|
-
length: 10,
|
|
360
|
-
length2: 8
|
|
361
|
-
},
|
|
362
|
-
data: n.map((e) => ({
|
|
363
|
-
value: e.value,
|
|
364
|
-
name: e.name,
|
|
365
|
-
itemStyle: { color: e.color }
|
|
366
|
-
}))
|
|
367
|
-
}]
|
|
368
|
-
});
|
|
369
|
-
};
|
|
370
|
-
C(() => t.theme, async () => {
|
|
371
|
-
await p(), c();
|
|
372
|
-
});
|
|
373
|
-
let l = () => {
|
|
374
|
-
i?.resize();
|
|
375
|
-
};
|
|
376
|
-
return _(() => {
|
|
377
|
-
p(c), window.addEventListener("resize", l);
|
|
378
|
-
}), g(() => {
|
|
379
|
-
window.removeEventListener("resize", l), i && i.dispose();
|
|
380
|
-
}), (e, t) => (v(), a("div", z, [o("div", {
|
|
381
|
-
class: "YCServiceSummaryTrafficAnalysis-chart",
|
|
382
|
-
ref_key: "chartRef",
|
|
383
|
-
ref: r
|
|
384
|
-
}, null, 512)]));
|
|
385
|
-
}
|
|
386
|
-
}), [["__scopeId", "data-v-2227475d"]]), V = { class: "YCServiceSummary-themeToggle" }, H = { class: "YCServiceSummary-left" }, U = { class: "YCServiceSummary-statPanel" }, W = { class: "YCServiceSummary-statPanel-content" }, G = ["onClick"], K = { class: "YCServiceSummary-statCard-label" }, q = { class: "YCServiceSummary-statCard-list" }, J = { class: "value" }, Y = { class: "YCServiceSummary-aiPanel" }, X = { class: "YCServiceSummary-aiPanel-head" }, Z = { class: "YCServiceSummary-aiPanel-title" }, Q = { class: "YCServiceSummary-aiPanel-summary" }, te = { class: "YCServiceSummary-aiPanel-charts" }, ne = { class: "YCServiceSummary-aiPanel-chartItem" }, re = { class: "YCServiceSummary-aiPanel-chartItem" }, ie = { class: "YCServiceSummary-material" }, ae = { class: "YCServiceSummary-material-head" }, oe = { class: "YCServiceSummary-material-title" }, $ = { class: "YCServiceSummary-material-actions" }, se = { class: "YCServiceSummary-material-body" }, ce = ["src", "alt"], le = { class: "YCServiceSummary-right" }, ue = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
387
|
-
__name: "YCServiceSummary",
|
|
388
|
-
props: [
|
|
389
|
-
"appKey",
|
|
390
|
-
"appSalt",
|
|
391
|
-
"baseHttp",
|
|
392
|
-
"interfaceBaseHttp",
|
|
393
|
-
"onlyofficeCallbackUrl",
|
|
394
|
-
"username",
|
|
395
|
-
"password",
|
|
396
|
-
"ids"
|
|
397
|
-
],
|
|
398
|
-
setup(e) {
|
|
399
|
-
let i = e, s = y([]), u = y(0), p = r(() => s.value[u.value]?.title || ""), g = r(() => s.value[u.value]?.warnInfo || ""), S = y(!1), w = y([]), T = y("交通气象服务材料"), E = (e) => e && (e.split("/").pop() || "").replace(/\.[^.]+$/, "") || "交通气象服务材料", D = (e) => !e || typeof e != "object" ? [] : Object.entries(e).map(([e, t]) => ({
|
|
400
|
-
label: e.includes(":") ? e : `${e}:`,
|
|
401
|
-
value: String(t)
|
|
402
|
-
})), O = () => {
|
|
403
|
-
let e = s.value[u.value];
|
|
404
|
-
e && (w.value = e.imgUrl ? String(e.imgUrl).split(",").map((e) => e.trim()).filter(Boolean) : [], T.value = E(e.workUrl));
|
|
405
|
-
};
|
|
406
|
-
C(u, () => {
|
|
407
|
-
O();
|
|
408
|
-
});
|
|
409
|
-
let k = async () => {
|
|
410
|
-
let e = i.ids?.baseData;
|
|
411
|
-
if (!e?.id) {
|
|
412
|
-
console.warn("[YCServiceSummary] ids.baseData 未配置");
|
|
413
|
-
return;
|
|
414
|
-
}
|
|
415
|
-
try {
|
|
416
|
-
let n = (await t({
|
|
417
|
-
appKey: i.appKey,
|
|
418
|
-
appSalt: i.appSalt,
|
|
419
|
-
id: e.id,
|
|
420
|
-
variables: {},
|
|
421
|
-
baseHttp: i.baseHttp,
|
|
422
|
-
reqType: e.reqType,
|
|
423
|
-
isFormData: e.isFormData
|
|
424
|
-
}))?.data?.result?.output;
|
|
425
|
-
if (!Array.isArray(n) || n.length === 0) {
|
|
426
|
-
console.warn("[YCServiceSummary] baseData 返回为空");
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
s.value = n.map((e) => ({
|
|
430
|
-
title: e.分类 || "",
|
|
431
|
-
rows: D(e.数据),
|
|
432
|
-
warnInfo: e.预警信息 || "",
|
|
433
|
-
workUrl: e.workUrl || "",
|
|
434
|
-
imgUrl: e.imgUrl || ""
|
|
435
|
-
})), u.value = 0, O();
|
|
436
|
-
} catch (e) {
|
|
437
|
-
console.error("[YCServiceSummary] baseData 加载失败", e);
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
_(() => {
|
|
441
|
-
k();
|
|
442
|
-
});
|
|
443
|
-
let A = (e) => {
|
|
444
|
-
console.log(`[YCServiceSummary] material action: ${e}`);
|
|
445
|
-
};
|
|
446
|
-
return (e, t) => (v(), a("div", { class: m(["YCServiceSummary", { "is-dark": S.value }]) }, [
|
|
447
|
-
o("div", V, [o("button", {
|
|
448
|
-
class: m(["YCServiceSummary-themeBtn", { "is-active": !S.value }]),
|
|
449
|
-
onClick: t[0] ||= (e) => S.value = !1,
|
|
450
|
-
title: "浅色"
|
|
451
|
-
}, [...t[4] ||= [o("svg", {
|
|
452
|
-
viewBox: "0 0 24 24",
|
|
453
|
-
width: "12",
|
|
454
|
-
height: "12",
|
|
455
|
-
fill: "currentColor"
|
|
456
|
-
}, [o("path", { d: "M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V22h-2v5.45zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z" })], -1), c(" 浅色 ", -1)]], 2), o("button", {
|
|
457
|
-
class: m(["YCServiceSummary-themeBtn", { "is-active": S.value }]),
|
|
458
|
-
onClick: t[1] ||= (e) => S.value = !0,
|
|
459
|
-
title: "深色"
|
|
460
|
-
}, [...t[5] ||= [o("svg", {
|
|
461
|
-
viewBox: "0 0 24 24",
|
|
462
|
-
width: "12",
|
|
463
|
-
height: "12",
|
|
464
|
-
fill: "currentColor"
|
|
465
|
-
}, [o("path", { d: "M9 2c-1.05 0-2.05.16-3 .46 1.69 1.2 2.86 3.06 2.86 5.21 0 3.58-2.9 6.48-6.48 6.48-.63 0-1.25-.09-1.83-.26.52 2.64 2.28 4.85 4.59 5.93C7.21 21.22 9.46 22 12 22c5.52 0 10-4.48 10-10S17.52 2 12 2c-1 0-1.97.15-2.89.42C8.43 2.15 8.73 2 9 2z" })], -1), c(" 深色 ", -1)]], 2)]),
|
|
466
|
-
o("div", H, [
|
|
467
|
-
o("div", U, [t[7] ||= o("div", { class: "YCServiceSummary-statPanel-title" }, "宜春气象服务", -1), o("div", W, [(v(!0), a(n, null, b(s.value, (e, r) => (v(), a("div", {
|
|
468
|
-
key: e.title,
|
|
469
|
-
class: m(["YCServiceSummary-statCard", { "is-active": u.value === r }]),
|
|
470
|
-
onClick: (e) => u.value = r
|
|
471
|
-
}, [o("div", K, [t[6] ||= o("span", { class: "dot" }, null, -1), c(" " + x(e.title), 1)]), o("div", q, [(v(!0), a(n, null, b(e.rows, (e) => (v(), a("div", {
|
|
472
|
-
key: e.label,
|
|
473
|
-
class: "row"
|
|
474
|
-
}, [o("span", null, x(e.label), 1), o("span", J, x(e.value), 1)]))), 128))])], 10, G))), 128))])]),
|
|
475
|
-
o("div", Y, [
|
|
476
|
-
o("div", X, [o("div", Z, [t[8] ||= o("span", { class: "icon" }, null, -1), c(" " + x(p.value) + " AI 分析 ", 1)])]),
|
|
477
|
-
t[11] ||= o("div", { class: "YCServiceSummary-aiPanel-warningTitle" }, "预警信号", -1),
|
|
478
|
-
o("div", Q, x(g.value), 1),
|
|
479
|
-
o("div", te, [o("div", ne, [t[9] ||= o("div", { class: "YCServiceSummary-aiPanel-chartTitle" }, "高速公路实况状态", -1), l(R, f(i, { theme: S.value ? "dark" : "light" }), null, 16, ["theme"])]), o("div", re, [t[10] ||= o("div", { class: "YCServiceSummary-aiPanel-chartTitle" }, "高速公路预报状态", -1), l(B, f(i, { theme: S.value ? "dark" : "light" }), null, 16, ["theme"])])])
|
|
480
|
-
]),
|
|
481
|
-
o("div", ie, [o("div", ae, [o("span", oe, x(T.value), 1), o("div", $, [o("button", {
|
|
482
|
-
class: "YCServiceSummary-material-btn YCServiceSummary-material-btn--edit",
|
|
483
|
-
onClick: t[2] ||= (e) => A("edit")
|
|
484
|
-
}, [...t[12] ||= [o("svg", {
|
|
485
|
-
viewBox: "0 0 24 24",
|
|
486
|
-
width: "12",
|
|
487
|
-
height: "12",
|
|
488
|
-
fill: "currentColor"
|
|
489
|
-
}, [o("path", { d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 000-1.41l-2.34-2.34a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z" })], -1), c(" 编辑 ", -1)]]), o("button", {
|
|
490
|
-
class: "YCServiceSummary-material-btn YCServiceSummary-material-btn--download",
|
|
491
|
-
onClick: t[3] ||= (e) => A("download")
|
|
492
|
-
}, [...t[13] ||= [o("svg", {
|
|
493
|
-
viewBox: "0 0 24 24",
|
|
494
|
-
width: "12",
|
|
495
|
-
height: "12",
|
|
496
|
-
fill: "currentColor"
|
|
497
|
-
}, [o("path", { d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" })], -1), c(" 下载 ", -1)]])])]), o("div", se, [(v(!0), a(n, null, b(w.value, (e, t) => (v(), a("img", {
|
|
498
|
-
key: t,
|
|
499
|
-
class: "YCServiceSummary-material-image",
|
|
500
|
-
src: e,
|
|
501
|
-
alt: T.value
|
|
502
|
-
}, null, 8, ce))), 128))])])
|
|
503
|
-
]),
|
|
504
|
-
o("div", le, [l(I, h(d(i)), null, 16)])
|
|
505
|
-
], 2));
|
|
506
|
-
}
|
|
507
|
-
}), [["__scopeId", "data-v-25864f80"]]);
|
|
508
|
-
//#endregion
|
|
509
|
-
export { ue as t };
|