nxd-plugin 1.8.46 → 1.8.48
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/GridData-DKQLl2Yn.mjs +2 -0
- package/dist/chunks/YCServiceSummary-BNOAFpyZ.mjs +2 -0
- package/dist/chunks/{component-Agent-CAxRiXVu.mjs → component-Agent-DwXtdLhK.mjs} +114 -106
- package/dist/chunks/{component-AiChat-go3CScRo.mjs → component-AiChat-Cj1xCAtL.mjs} +1 -1
- package/dist/chunks/{component-AqiMonitor-BJXlyOxH.mjs → component-AqiMonitor-CiRH3KK9.mjs} +1 -1
- package/dist/chunks/{component-ChartCumulativePre-CPImPMtx.mjs → component-ChartCumulativePre-jgepn88x.mjs} +2 -2
- package/dist/chunks/{component-ChartServiceMaterial-DCgeleQL.mjs → component-ChartServiceMaterial-CE9IfnBv.mjs} +2 -2
- package/dist/chunks/{component-Duty-Cj3jYko4.mjs → component-Duty-BsFsOk0K.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic-Dj7-DooY.mjs → component-EarlyWarningStatistic-8yavuyPf.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic2-CGrO7gCL.mjs → component-EarlyWarningStatistic2-DppX7jcV.mjs} +2 -2
- package/dist/chunks/{component-Forecast72h-BDEacrN0.mjs → component-Forecast72h-CD6eT1xe.mjs} +1 -1
- package/dist/chunks/{component-GeologyLiveAlarm-Ck08qE3U.mjs → component-GeologyLiveAlarm-CKdsxprI.mjs} +2 -2
- package/dist/chunks/component-GridData-o7hipw0h.mjs +756 -0
- package/dist/chunks/{component-GridForecastMsg-nkheA7h9.mjs → component-GridForecastMsg-BooZUH5C.mjs} +1 -1
- package/dist/chunks/{component-HDSeaLegend-CCiQnc3X.mjs → component-HDSeaLegend-DgPHlKXO.mjs} +2 -2
- package/dist/chunks/{component-HdCameraList-BddqV2QN.mjs → component-HdCameraList-DuC-_0uH.mjs} +2 -2
- package/dist/chunks/{component-HdFarmStation-CrNTC69J.mjs → component-HdFarmStation-BtYLSMAY.mjs} +2 -2
- package/dist/chunks/{component-HdFarmStationDialog-OU6FdHI4.mjs → component-HdFarmStationDialog-BHxuJEsh.mjs} +1 -1
- package/dist/chunks/{component-HdForecastProducts-Bkp2m76s.mjs → component-HdForecastProducts-BnI8u5s4.mjs} +1 -1
- package/dist/chunks/{component-HdHeatChart-K9XTDoxy.mjs → component-HdHeatChart-CuqWcjET.mjs} +1 -1
- package/dist/chunks/{component-HdHeatChartDialog-BWHIGeaR.mjs → component-HdHeatChartDialog-pXLf6f_w.mjs} +2 -2
- package/dist/chunks/{component-HdHeatService-DMj3UpNe.mjs → component-HdHeatService-CBo6v1T6.mjs} +1 -1
- package/dist/chunks/{component-HdInsectDetailList-CLuhOSWM.mjs → component-HdInsectDetailList-MrAoHbsv.mjs} +1 -1
- package/dist/chunks/{component-HdInsectList-SR9MrrWw.mjs → component-HdInsectList-Dswl1k3W.mjs} +1 -1
- package/dist/chunks/{component-HdMajorActivity-BbkuZ3pW.mjs → component-HdMajorActivity-Dcgr5Lp_.mjs} +2 -2
- package/dist/chunks/{component-HdObservation-Cj1TbKDr.mjs → component-HdObservation-DmRN3dBq.mjs} +3 -3
- package/dist/chunks/{component-HdPreSituation-BOjuRB8B.mjs → component-HdPreSituation-KMOE4Mt_.mjs} +3 -3
- package/dist/chunks/{component-HdQxServiceEffects-DK_FJEmE.mjs → component-HdQxServiceEffects-CZZHRjNN.mjs} +1 -1
- package/dist/chunks/{component-HdRadarList-DZmnTNTN.mjs → component-HdRadarList-Cx_cRpjb.mjs} +3 -3
- package/dist/chunks/{component-HdRadarTime-Cn8kLA9j.mjs → component-HdRadarTime-D6ZLrCfA.mjs} +1 -1
- package/dist/chunks/{component-HdRadarTimeLine-B9KzZ0sT.mjs → component-HdRadarTimeLine-CwdMMlPK.mjs} +1 -1
- package/dist/chunks/{component-HdRisk-DLvN1ReK.mjs → component-HdRisk-Cx_Wuyuy.mjs} +2 -2
- package/dist/chunks/{component-HdSeaCase-cGapDdCH.mjs → component-HdSeaCase-C9gN_sjI.mjs} +1 -1
- package/dist/chunks/{component-HdServiceMarterial-BHPhw4Za.mjs → component-HdServiceMarterial-CT_sdZkH.mjs} +2 -2
- package/dist/chunks/{component-HdServiceRequirements-D1XB4dxh.mjs → component-HdServiceRequirements-CrpxYdNK.mjs} +2 -2
- package/dist/chunks/{component-HdSoil-CRecGN33.mjs → component-HdSoil-eQTGGIkq.mjs} +2 -2
- package/dist/chunks/{component-HdSoilDetailList-DbBRfuvO.mjs → component-HdSoilDetailList-B1VZ5iDc.mjs} +1 -1
- package/dist/chunks/{component-HdStationTem-BxEvMZKy.mjs → component-HdStationTem-BCls8KKc.mjs} +3 -3
- package/dist/chunks/{component-HdSuggestion-ZF_A8QJj.mjs → component-HdSuggestion-BnGlQLfg.mjs} +2 -2
- package/dist/chunks/{component-HdThreeWeatherTrend-C-YzuGub.mjs → component-HdThreeWeatherTrend-D_dPqael.mjs} +3 -3
- package/dist/chunks/{component-HdWaveForcast-Bk3SKlnr.mjs → component-HdWaveForcast-B-RPD_5H.mjs} +2 -2
- package/dist/chunks/{component-HighQuality-Caba7jDy.mjs → component-HighQuality-BpOhQkvl.mjs} +1 -1
- package/dist/chunks/{component-HighWayEarlyWarningRed-BJCUNxvZ.mjs → component-HighWayEarlyWarningRed-BwmqvV6c.mjs} +2 -2
- package/dist/chunks/{component-HighWayFreeze-B-K-UGUx.mjs → component-HighWayFreeze-DyDyOInt.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarm-VUsOlz-6.mjs → component-HighwayLiveAlarm-DDhriJHu.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-DSJwUZjW.mjs → component-HighwayLiveAlarmNew-Dxf6DUyI.mjs} +3 -3
- package/dist/chunks/{component-HighwayStations-Bcop09xe.mjs → component-HighwayStations-B-h6dG6Y.mjs} +2 -2
- package/dist/chunks/{component-HighwayWeatherForecast-i9LhEzub.mjs → component-HighwayWeatherForecast-BVj7aWS1.mjs} +5 -5
- package/dist/chunks/{component-IframeWeb-DfNcuMhw.mjs → component-IframeWeb-B2CTwN6w.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-DVUghC8G.mjs → component-ImageGeneration-70AuumKi.mjs} +560 -321
- package/dist/chunks/{component-IntroducePic-CVSFpdsQ.mjs → component-IntroducePic-Bo227tKg.mjs} +1 -1
- package/dist/chunks/{component-LithiumBatteryMiningArea-Cypkj4BH.mjs → component-LithiumBatteryMiningArea-BDFvxMfk.mjs} +2 -2
- package/dist/chunks/{component-MapPopup-DgdHZtEE.mjs → component-MapPopup-vqI8jKFt.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-DYY0A9il.mjs → component-MaterialPreview-CUz2PkU0.mjs} +1 -1
- package/dist/chunks/{component-PieLegend-B9IbTtgM.mjs → component-PieLegend-BIImVR6x.mjs} +1 -1
- package/dist/chunks/{component-PrecipitationRanking-C1SiHePw.mjs → component-PrecipitationRanking-Ct4OY0FJ.mjs} +3 -3
- package/dist/chunks/{component-RadarChart-jfRsO_e5.mjs → component-RadarChart-7kA3pjCB.mjs} +2 -2
- package/dist/chunks/{component-RadarLegend-D8bpZUG7.mjs → component-RadarLegend-ByCdufPU.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-CPV04O7Y.mjs → component-RadarShortTerm-pixyOE-9.mjs} +4 -4
- package/dist/chunks/{component-RadarTime-DMDNBgXp.mjs → component-RadarTime-DuIABgoI.mjs} +2 -2
- package/dist/chunks/{component-RenderMarkdown-6mcPpawU.mjs → component-RenderMarkdown-Bn2qLtnE.mjs} +2 -2
- package/dist/chunks/{component-ReservoirLiveAlarm-4lhpOle1.mjs → component-ReservoirLiveAlarm-C-NS9Erh.mjs} +3 -3
- package/dist/chunks/{component-ServiceMaterial-DlkZAyjh.mjs → component-ServiceMaterial-BVatsrsj.mjs} +2 -2
- package/dist/chunks/{component-ServiceMaterialsBtn-BbDyaUrK.mjs → component-ServiceMaterialsBtn-BgMw_lBj.mjs} +2 -2
- package/dist/chunks/{component-StationDialog-BlyiU8y4.mjs → component-StationDialog-_pkrpDnI.mjs} +3 -3
- package/dist/chunks/{component-StationList-DSmfGdBz.mjs → component-StationList-D4XTo6r2.mjs} +3 -3
- package/dist/chunks/{component-TimeBasedForecast-BGDjpUnz.mjs → component-TimeBasedForecast-4ZZ7ZnCH.mjs} +4 -4
- package/dist/chunks/{component-Typhoon-BG_WfKEI.mjs → component-Typhoon-DKmZhXAu.mjs} +2 -2
- package/dist/chunks/{component-WarningLine-DSj25DNY.mjs → component-WarningLine-B-2b5J3R.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-BiKwmQVC.mjs → component-WarningSignal-Dv03xQ5u.mjs} +3 -3
- package/dist/chunks/{component-WeatherForecast-B8PrFpv0.mjs → component-WeatherForecast-DqdD9JUX.mjs} +4 -4
- package/dist/chunks/{component-YCDataMonitor-BbkgMPoo.mjs → component-YCDataMonitor-BPflVY09.mjs} +1 -1
- package/dist/chunks/component-YCDataService-CniJWhHF.mjs +580 -0
- package/dist/chunks/{component-YCHighWaySummary-CB3sEooz.mjs → component-YCHighWaySummary-CvW4Oc_G.mjs} +2 -2
- package/dist/chunks/{component-YCHome-pFXXcjjB.mjs → component-YCHome-BNYalrzu.mjs} +4 -4
- package/dist/chunks/{component-YCHomeLegend-BYmh2cQ5.mjs → component-YCHomeLegend-CpA6i_j6.mjs} +2 -2
- package/dist/chunks/{component-YCLoginNew-BnkvuCcd.mjs → component-YCLoginNew-BfAbQH6O.mjs} +2 -2
- package/dist/chunks/{component-YCServiceSummary-B7o9Xpv_.mjs → component-YCServiceSummary-_qQSJu5H.mjs} +264 -167
- package/dist/components/GridData/GridData.vue.d.ts +50 -3
- package/dist/nxd-plugin.mjs +73 -73
- package/dist/styles/component-Agent.css +1 -1
- package/dist/styles/component-GridData.css +1 -1
- package/dist/styles/component-YCDataService.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/dist/styles/component-YCServiceSummary.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/GridData-BV6wWY9y.mjs +0 -2
- package/dist/chunks/YCServiceSummary-RXbZiFJQ.mjs +0 -2
- package/dist/chunks/component-GridData-BkGj8Dsc.mjs +0 -70
- package/dist/chunks/component-YCDataService-CDMO1O3G.mjs +0 -412
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as e, o as t, p as n } from "./component-Agent-
|
|
1
|
+
import { g as e, o as t, p as n } from "./component-Agent-DwXtdLhK.mjs";
|
|
2
2
|
import { ElLoadingDirective as r } from "element-plus/es";
|
|
3
3
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createStaticVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeProps as p, nextTick as m, normalizeClass 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
4
|
import * as T from "echarts";
|
|
@@ -7,13 +7,13 @@ import E from "axios";
|
|
|
7
7
|
var D = { class: "YCAIChatPanel" }, O = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "YCAIChatPanel-message-avatar"
|
|
10
|
-
}, k = { class: "YCAIChatPanel-message-body" },
|
|
10
|
+
}, k = { class: "YCAIChatPanel-message-body" }, ee = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "YCAIChatPanel-message-line"
|
|
13
|
-
},
|
|
13
|
+
}, A = ["innerHTML"], j = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "YCAIChatPanel-subMenu"
|
|
16
|
-
},
|
|
16
|
+
}, M = ["onClick"], N = ["src"], P = { class: "YCAIChatPanel-footer" }, F = { class: "YCAIChatPanel-mainMenu" }, te = ["onClick"], ne = { class: "YCAIChatPanel-inputBar" }, re = ["placeholder"], ie = ["disabled"], I = 2e3, ae = 300 * 1e3, oe = "正在思考...", se = "做材料", L = /* @__PURE__ */ n(/* @__PURE__ */ f({
|
|
17
17
|
__name: "YCAIChatPanel",
|
|
18
18
|
props: [
|
|
19
19
|
"appKey",
|
|
@@ -41,15 +41,15 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
41
41
|
})) : u.map((e) => ({
|
|
42
42
|
key: e,
|
|
43
43
|
label: e
|
|
44
|
-
}))), W = a(() => T.value && z.value.find((e) => e.label === T.value)?.list || []), ce = a(() => !!T.value && !!p.value.trim() && !C.value),
|
|
44
|
+
}))), W = a(() => T.value && z.value.find((e) => e.label === T.value)?.list || []), ce = a(() => !!T.value && !!p.value.trim() && !C.value), G = a(() => T.value ? "请输入问题" : "请先选择类别"), K = a(() => r.theme === "dark" ? new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIAgMAAADQNkYNAAAACVBMVEVHcEz////////mcEUwAAAAAnRSTlMAfVgnwLkAAAD9SURBVHja7dmhDcMwAETRJmoNwks8QqcwLgrpEpnGuCjAJDdlyVXFH4RUd/yDF8WSJV+yLMuyLDtxtxUn26DFLDWYFKnDZJEGTKp08ESNJ50mGFOEMUUYM4ljNo6pwQQTTDDBBBNMMMEEE0wwp2KuK8Y8DoqZpAYxs9QBxvUOMYs0AIYkxpDEGJIYQxJjUGIMSYwhiTEkMQYlxjghGCcE44RgnCCME4JxQjBOCMYJwjghGCcE44RgnBDM0wnAvJ0AjFhSeVJ4MqHEGJ5UnhSeTE4wZiC5QDILJwtPKk+2P0oe+m3nX6yDH9Jr6HSJXBnvr+/WPANlWZZl2Yn7ANxo7eonko39AAAAAElFTkSuQmCC", "" + import.meta.url).href : new URL("data:image/png;base64,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", "" + import.meta.url).href);
|
|
45
45
|
_(() => {
|
|
46
|
-
|
|
46
|
+
q();
|
|
47
47
|
}), g(() => {
|
|
48
|
-
|
|
48
|
+
Q();
|
|
49
49
|
});
|
|
50
|
-
let
|
|
51
|
-
await
|
|
52
|
-
},
|
|
50
|
+
let q = async () => {
|
|
51
|
+
await le(), await ue(), !T.value && U.value.length && Y(U.value[0].key);
|
|
52
|
+
}, le = async () => {
|
|
53
53
|
if (!r.username || !r.password) {
|
|
54
54
|
console.warn("[YCAIChatPanel] 未配置 username/password,跳过登录");
|
|
55
55
|
return;
|
|
@@ -64,7 +64,7 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
64
64
|
} catch (e) {
|
|
65
65
|
console.error("[YCAIChatPanel] 登录失败:", e);
|
|
66
66
|
}
|
|
67
|
-
},
|
|
67
|
+
}, J = (e) => Array.isArray(e) ? e : !e || typeof e != "object" ? null : e.output ?? e.list ?? e.items ?? e.children ?? e.data ?? e.records ?? null, ue = async () => {
|
|
68
68
|
let t = r.ids?.subMenu;
|
|
69
69
|
if (!t?.id) {
|
|
70
70
|
console.warn("[YCAIChatPanel] 未配置 subMenu 工作流 id");
|
|
@@ -85,15 +85,15 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
85
85
|
} catch {
|
|
86
86
|
i = null;
|
|
87
87
|
}
|
|
88
|
-
let a =
|
|
88
|
+
let a = J(i);
|
|
89
89
|
if (typeof a == "string") try {
|
|
90
90
|
a = JSON.parse(a);
|
|
91
91
|
} catch {
|
|
92
92
|
a = null;
|
|
93
93
|
}
|
|
94
|
-
if (a =
|
|
94
|
+
if (a = J(a) || a, !Array.isArray(a) || !a.length) return;
|
|
95
95
|
z.value = a.map((e) => {
|
|
96
|
-
let t =
|
|
96
|
+
let t = J(e) || e?.list || [];
|
|
97
97
|
return {
|
|
98
98
|
label: (e.label || e.name || e.title || "").trim(),
|
|
99
99
|
list: (t || []).map((e) => ({
|
|
@@ -106,13 +106,13 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
106
106
|
} catch (e) {
|
|
107
107
|
console.error("[YCAIChatPanel] 获取菜单失败:", e);
|
|
108
108
|
}
|
|
109
|
-
},
|
|
109
|
+
}, Y = (e) => {
|
|
110
110
|
T.value = e, L.value = e, R.value = null, p.value = "", m(() => $());
|
|
111
|
-
},
|
|
111
|
+
}, de = (e) => {
|
|
112
112
|
R.value = e, p.value = e.content || "", m(() => {
|
|
113
113
|
$(), d.value?.focus();
|
|
114
114
|
});
|
|
115
|
-
},
|
|
115
|
+
}, fe = (e) => t(e || "").replace(/>\n+</g, "><"), pe = async () => {
|
|
116
116
|
let e = p.value.trim(), t = T.value || L.value;
|
|
117
117
|
if (!(!e || !t || C.value)) {
|
|
118
118
|
T.value = t, L.value = t, C.value = !0, H.value.push({
|
|
@@ -124,15 +124,15 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
124
124
|
content: oe,
|
|
125
125
|
status: "thinking"
|
|
126
126
|
}), p.value = "", m(() => {
|
|
127
|
-
$(),
|
|
128
|
-
}),
|
|
127
|
+
$(), _e();
|
|
128
|
+
}), Q();
|
|
129
129
|
try {
|
|
130
|
-
R.value?.id ? await
|
|
130
|
+
R.value?.id ? await me(e, R.value.id) : await he(e);
|
|
131
131
|
} catch (e) {
|
|
132
|
-
console.error("[YCAIChatPanel] 发送失败:", e),
|
|
132
|
+
console.error("[YCAIChatPanel] 发送失败:", e), Z("请求失败,请稍后重试", "error"), C.value = !1;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
},
|
|
135
|
+
}, me = async (t, n) => {
|
|
136
136
|
try {
|
|
137
137
|
let i = await e({
|
|
138
138
|
appKey: r.appKey,
|
|
@@ -143,16 +143,16 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
143
143
|
reqType: "post",
|
|
144
144
|
isFormData: !1
|
|
145
145
|
}), a = i?.data?.result || i?.data;
|
|
146
|
-
|
|
146
|
+
Z((typeof a?.output == "string" ? a.output : "") || "暂无返回结果");
|
|
147
147
|
} catch (e) {
|
|
148
|
-
console.error("[YCAIChatPanel] 工作流请求失败:", e),
|
|
148
|
+
console.error("[YCAIChatPanel] 工作流请求失败:", e), Z("请求失败,请稍后重试", "error");
|
|
149
149
|
} finally {
|
|
150
150
|
C.value = !1;
|
|
151
151
|
}
|
|
152
|
-
},
|
|
152
|
+
}, he = async (e) => {
|
|
153
153
|
let t = (r.interfaceBaseHttp || "").replace(/\/$/, "");
|
|
154
154
|
if (!t) {
|
|
155
|
-
|
|
155
|
+
Z("未配置 interfaceBaseHttp", "error"), C.value = !1;
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
158
|
let n = {};
|
|
@@ -163,17 +163,17 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
163
163
|
if (r?.errorCode !== void 0 && r?.errorCode !== 0 && r?.errorCode !== 200) throw Error(r?.message || "提交问题失败");
|
|
164
164
|
let a = r?.data?.taskId, o = r?.data?.intentName || "", s = r?.data?.status;
|
|
165
165
|
if (!a) throw Error("未获取到 taskId");
|
|
166
|
-
if (o &&
|
|
167
|
-
await
|
|
166
|
+
if (o && ge(`正在思考【${o}】...`), s === "done") {
|
|
167
|
+
await X(a, t, n, i);
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
|
-
V = setTimeout(() =>
|
|
170
|
+
V = setTimeout(() => X(a, t, n, i), I);
|
|
171
171
|
} catch (e) {
|
|
172
|
-
console.error("[YCAIChatPanel] mobileBot 对话失败:", e),
|
|
172
|
+
console.error("[YCAIChatPanel] mobileBot 对话失败:", e), Z("请求失败,请稍后重试", "error"), C.value = !1;
|
|
173
173
|
}
|
|
174
|
-
},
|
|
175
|
-
if (Date.now() - r >
|
|
176
|
-
|
|
174
|
+
}, X = async (e, t, n, r) => {
|
|
175
|
+
if (Date.now() - r > ae) {
|
|
176
|
+
Z("查询超时,请稍后重试", "error"), C.value = !1, Q();
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
179
|
try {
|
|
@@ -181,29 +181,29 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
181
181
|
if (i?.errorCode !== void 0 && i?.errorCode !== 0 && i?.errorCode !== 200) throw Error(i?.message || "查询结果失败");
|
|
182
182
|
let a = i?.data || {}, o = a.status, s = a.markdown;
|
|
183
183
|
if (o === "running") {
|
|
184
|
-
V = setTimeout(() =>
|
|
184
|
+
V = setTimeout(() => X(e, t, n, r), I);
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
if (o === "fail") {
|
|
188
|
-
|
|
188
|
+
Z(s || "查询失败", "error"), C.value = !1, Q();
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
Z(s || ""), C.value = !1, Q();
|
|
192
192
|
} catch (e) {
|
|
193
|
-
console.error("[YCAIChatPanel] 轮询结果失败:", e),
|
|
193
|
+
console.error("[YCAIChatPanel] 轮询结果失败:", e), Z("查询结果失败,请稍后重试", "error"), C.value = !1, Q();
|
|
194
194
|
}
|
|
195
|
-
},
|
|
195
|
+
}, Z = (e, t = "end") => {
|
|
196
196
|
H.value.push({
|
|
197
197
|
role: "ai",
|
|
198
198
|
content: e,
|
|
199
199
|
status: t
|
|
200
|
-
}),
|
|
201
|
-
},
|
|
200
|
+
}), _e();
|
|
201
|
+
}, ge = (e) => {
|
|
202
202
|
let t = H.value[H.value.length - 1];
|
|
203
|
-
!t || t.role !== "ai" || t.status !== "thinking" || (t.content = e,
|
|
204
|
-
},
|
|
203
|
+
!t || t.role !== "ai" || t.status !== "thinking" || (t.content = e, _e());
|
|
204
|
+
}, Q = () => {
|
|
205
205
|
V &&= (clearTimeout(V), null);
|
|
206
|
-
},
|
|
206
|
+
}, _e = async () => {
|
|
207
207
|
await m();
|
|
208
208
|
let e = f.value;
|
|
209
209
|
e && (e.scrollTop = e.scrollHeight);
|
|
@@ -214,7 +214,7 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
214
214
|
let t = Math.min(e.scrollHeight, 300);
|
|
215
215
|
e.style.height = `${t}px`, e.style.overflowY = e.scrollHeight > 300 ? "auto" : "hidden";
|
|
216
216
|
}, ve = (e) => {
|
|
217
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
217
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), pe());
|
|
218
218
|
};
|
|
219
219
|
return (e, t) => (v(), s("div", D, [
|
|
220
220
|
t[3] ||= l("<div class=\"YCAIChatPanel-head\" data-v-c958b0ae><div class=\"YCAIChatPanel-head-title\" data-v-c958b0ae><span class=\"YCAIChatPanel-head-icon\" data-v-c958b0ae></span><span data-v-c958b0ae>智能助手</span></div><div class=\"YCAIChatPanel-head-status\" data-v-c958b0ae><span class=\"YCAIChatPanel-head-dot\" data-v-c958b0ae></span><span data-v-c958b0ae>在线</span></div></div>", 1),
|
|
@@ -225,37 +225,37 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
225
225
|
}, [(v(!0), s(i, null, b(H.value, (e, n) => (v(), s("div", {
|
|
226
226
|
key: n,
|
|
227
227
|
class: h(["YCAIChatPanel-message", `YCAIChatPanel-message--${e.role}`])
|
|
228
|
-
}, [e.role === "ai" ? (v(), s("div", O, [...t[1] ||= [c("span", null, "AI", -1)]])) : o("", !0), c("div", k, [e.role === "user" ? (v(), s("div",
|
|
228
|
+
}, [e.role === "ai" ? (v(), s("div", O, [...t[1] ||= [c("span", null, "AI", -1)]])) : o("", !0), c("div", k, [e.role === "user" ? (v(), s("div", ee, x(e.content), 1)) : (v(), s("div", {
|
|
229
229
|
key: 1,
|
|
230
230
|
class: "YCAIChatPanel-message-line",
|
|
231
|
-
innerHTML:
|
|
232
|
-
}, null, 8,
|
|
233
|
-
W.value.length ? (v(), s("div",
|
|
231
|
+
innerHTML: fe(e.content)
|
|
232
|
+
}, null, 8, A))])], 2))), 128))], 512),
|
|
233
|
+
W.value.length ? (v(), s("div", j, [(v(!0), s(i, null, b(W.value, (e) => (v(), s("div", {
|
|
234
234
|
key: e.id || e.title,
|
|
235
235
|
class: "YCAIChatPanel-subMenu-item",
|
|
236
|
-
onClick: (t) =>
|
|
236
|
+
onClick: (t) => de(e)
|
|
237
237
|
}, [c("span", null, x(e.title), 1), c("img", {
|
|
238
238
|
class: "YCAIChatPanel-subMenu-arrow",
|
|
239
|
-
src:
|
|
239
|
+
src: K.value,
|
|
240
240
|
alt: ""
|
|
241
|
-
}, null, 8,
|
|
242
|
-
c("div",
|
|
241
|
+
}, null, 8, N)], 8, M))), 128))])) : o("", !0),
|
|
242
|
+
c("div", P, [c("div", F, [(v(!0), s(i, null, b(U.value, (e) => (v(), s("button", {
|
|
243
243
|
key: e.key,
|
|
244
244
|
class: h(["YCAIChatPanel-mainMenu-btn", { "is-active": T.value === e.key }]),
|
|
245
|
-
onClick: (t) =>
|
|
246
|
-
}, x(e.label), 11,
|
|
245
|
+
onClick: (t) => Y(e.key)
|
|
246
|
+
}, x(e.label), 11, te))), 128))]), c("div", ne, [w(c("textarea", {
|
|
247
247
|
ref_key: "textareaRef",
|
|
248
248
|
ref: d,
|
|
249
249
|
"onUpdate:modelValue": t[0] ||= (e) => p.value = e,
|
|
250
250
|
class: "YCAIChatPanel-textarea",
|
|
251
|
-
placeholder:
|
|
251
|
+
placeholder: G.value,
|
|
252
252
|
rows: "1",
|
|
253
253
|
onInput: $,
|
|
254
254
|
onKeydown: ve
|
|
255
255
|
}, null, 40, re), [[S, p.value]]), c("button", {
|
|
256
256
|
class: "YCAIChatPanel-send",
|
|
257
257
|
disabled: !ce.value,
|
|
258
|
-
onClick:
|
|
258
|
+
onClick: pe,
|
|
259
259
|
title: "发送"
|
|
260
260
|
}, [...t[2] ||= [c("svg", {
|
|
261
261
|
viewBox: "0 0 24 24",
|
|
@@ -505,7 +505,7 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
505
505
|
}, null, 512)], 8, H)), [[n, u.value]]);
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
}), [["__scopeId", "data-v-ec9e589d"]]),
|
|
508
|
+
}), [["__scopeId", "data-v-ec9e589d"]]), G = ["element-loading-background"], K = "#ff4d4f", q = "#52c41a", le = /* @__PURE__ */ n(/* @__PURE__ */ f({
|
|
509
509
|
__name: "YCServiceSummaryGeologyRefineAnalysis",
|
|
510
510
|
props: [
|
|
511
511
|
"appKey",
|
|
@@ -559,11 +559,11 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
559
559
|
}), i.value = [{
|
|
560
560
|
value: o - s,
|
|
561
561
|
name: "正常",
|
|
562
|
-
itemStyle: { color:
|
|
562
|
+
itemStyle: { color: q }
|
|
563
563
|
}, {
|
|
564
564
|
value: s,
|
|
565
565
|
name: "报警",
|
|
566
|
-
itemStyle: { color:
|
|
566
|
+
itemStyle: { color: K }
|
|
567
567
|
}], await m(), b();
|
|
568
568
|
} catch (e) {
|
|
569
569
|
console.error("[YCServiceSummaryGeologyRefineAnalysis] 实况数据加载失败", e);
|
|
@@ -613,10 +613,10 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
613
613
|
class: "YCServiceSummaryGeologyRefineAnalysis-chart",
|
|
614
614
|
ref_key: "chartRef",
|
|
615
615
|
ref: o
|
|
616
|
-
}, null, 512)], 8,
|
|
616
|
+
}, null, 512)], 8, G)), [[n, u.value]]);
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
}), [["__scopeId", "data-v-faed9df7"]]),
|
|
619
|
+
}), [["__scopeId", "data-v-faed9df7"]]), J = ["element-loading-background"], ue = "#ff4d4f", Y = "#52c41a", de = /* @__PURE__ */ n(/* @__PURE__ */ f({
|
|
620
620
|
__name: "YCServiceSummaryGeologyTrafficAnalysis",
|
|
621
621
|
props: [
|
|
622
622
|
"appKey",
|
|
@@ -662,7 +662,7 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
662
662
|
r = null;
|
|
663
663
|
}
|
|
664
664
|
i.value = (Array.isArray(r) ? r : []).map((e) => {
|
|
665
|
-
let t = h(e), n = t.iswarnpre1h || t.iswarnpre2h || t.iswarnpre3h ?
|
|
665
|
+
let t = h(e), n = t.iswarnpre1h || t.iswarnpre2h || t.iswarnpre3h ? ue : Y;
|
|
666
666
|
return {
|
|
667
667
|
value: 1,
|
|
668
668
|
name: e.name,
|
|
@@ -692,7 +692,7 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
692
692
|
tooltip: {
|
|
693
693
|
trigger: "item",
|
|
694
694
|
formatter: (e) => {
|
|
695
|
-
let t = e?.data?.warnTags || [], n = e?.data?.itemStyle?.color ||
|
|
695
|
+
let t = e?.data?.warnTags || [], n = e?.data?.itemStyle?.color || Y;
|
|
696
696
|
return t.length ? `${e?.name ?? ""} <span style="color:${n};">${t.join("、")}报警</span>` : `${e?.name ?? ""} <span style="color:${n};">正常</span>`;
|
|
697
697
|
}
|
|
698
698
|
},
|
|
@@ -731,10 +731,10 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
731
731
|
class: "YCServiceSummaryGeologyTrafficAnalysis-chart",
|
|
732
732
|
ref_key: "chartRef",
|
|
733
733
|
ref: o
|
|
734
|
-
}, null, 512)], 8,
|
|
734
|
+
}, null, 512)], 8, J)), [[n, u.value]]);
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
|
-
}), [["__scopeId", "data-v-32323a02"]]),
|
|
737
|
+
}), [["__scopeId", "data-v-32323a02"]]), fe = ["element-loading-background"], pe = "#ff4d4f", me = "#52c41a", he = /* @__PURE__ */ n(/* @__PURE__ */ f({
|
|
738
738
|
__name: "YCServiceSummaryReservoirRefineAnalysis",
|
|
739
739
|
props: [
|
|
740
740
|
"appKey",
|
|
@@ -788,11 +788,11 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
788
788
|
}), i.value = [{
|
|
789
789
|
value: o - s,
|
|
790
790
|
name: "正常",
|
|
791
|
-
itemStyle: { color:
|
|
791
|
+
itemStyle: { color: me }
|
|
792
792
|
}, {
|
|
793
793
|
value: s,
|
|
794
794
|
name: "报警",
|
|
795
|
-
itemStyle: { color:
|
|
795
|
+
itemStyle: { color: pe }
|
|
796
796
|
}], await m(), b();
|
|
797
797
|
} catch (e) {
|
|
798
798
|
console.error("[YCServiceSummaryReservoirRefineAnalysis] 实况数据加载失败", e);
|
|
@@ -842,10 +842,10 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
842
842
|
class: "YCServiceSummaryReservoirRefineAnalysis-chart",
|
|
843
843
|
ref_key: "chartRef",
|
|
844
844
|
ref: o
|
|
845
|
-
}, null, 512)], 8,
|
|
845
|
+
}, null, 512)], 8, fe)), [[n, u.value]]);
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
}), [["__scopeId", "data-v-8d675142"]]),
|
|
848
|
+
}), [["__scopeId", "data-v-8d675142"]]), X = ["element-loading-background"], Z = "#ff4d4f", ge = "#52c41a", Q = /* @__PURE__ */ n(/* @__PURE__ */ f({
|
|
849
849
|
__name: "YCServiceSummaryReservoirTrafficAnalysis",
|
|
850
850
|
props: [
|
|
851
851
|
"appKey",
|
|
@@ -891,7 +891,7 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
891
891
|
r = null;
|
|
892
892
|
}
|
|
893
893
|
i.value = (Array.isArray(r) ? r : []).map((e) => {
|
|
894
|
-
let t = h(e), n = t.iswarnpre1h || t.iswarnpre2h || t.iswarnpre3h ?
|
|
894
|
+
let t = h(e), n = t.iswarnpre1h || t.iswarnpre2h || t.iswarnpre3h ? Z : ge;
|
|
895
895
|
return {
|
|
896
896
|
value: 1,
|
|
897
897
|
name: e.name,
|
|
@@ -921,7 +921,7 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
921
921
|
tooltip: {
|
|
922
922
|
trigger: "item",
|
|
923
923
|
formatter: (e) => {
|
|
924
|
-
let t = e?.data?.warnTags || [], n = e?.data?.itemStyle?.color ||
|
|
924
|
+
let t = e?.data?.warnTags || [], n = e?.data?.itemStyle?.color || ge;
|
|
925
925
|
return t.length ? `${e?.name ?? ""} <span style="color:${n};">${t.join("、")}报警</span>` : `${e?.name ?? ""} <span style="color:${n};">正常</span>`;
|
|
926
926
|
}
|
|
927
927
|
},
|
|
@@ -960,10 +960,10 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
960
960
|
class: "YCServiceSummaryReservoirTrafficAnalysis-chart",
|
|
961
961
|
ref_key: "chartRef",
|
|
962
962
|
ref: o
|
|
963
|
-
}, null, 512)], 8,
|
|
963
|
+
}, null, 512)], 8, X)), [[n, u.value]]);
|
|
964
964
|
};
|
|
965
965
|
}
|
|
966
|
-
}), [["__scopeId", "data-v-56bb4ef3"]]),
|
|
966
|
+
}), [["__scopeId", "data-v-56bb4ef3"]]), _e = ["element-loading-background"], $ = "#ff4d4f", ve = "#52c41a", ye = /* @__PURE__ */ n(/* @__PURE__ */ f({
|
|
967
967
|
__name: "YCServiceSummaryMiningAreaRefineAnalysis",
|
|
968
968
|
props: [
|
|
969
969
|
"appKey",
|
|
@@ -1071,7 +1071,7 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
1071
1071
|
class: "YCServiceSummaryMiningAreaRefineAnalysis-chart",
|
|
1072
1072
|
ref_key: "chartRef",
|
|
1073
1073
|
ref: o
|
|
1074
|
-
}, null, 512)], 8,
|
|
1074
|
+
}, null, 512)], 8, _e)), [[n, u.value]]);
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
1077
|
}), [["__scopeId", "data-v-42e03332"]]), be = ["element-loading-background"], xe = "#ff4d4f", Se = "#52c41a", Ce = /* @__PURE__ */ n(/* @__PURE__ */ f({
|
|
@@ -1202,14 +1202,23 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
1202
1202
|
class: "YCServiceSummary-right"
|
|
1203
1203
|
}, tt = {
|
|
1204
1204
|
key: 1,
|
|
1205
|
+
class: "YCServiceSummary-timeRangeMask"
|
|
1206
|
+
}, nt = { class: "YCServiceSummary-timeRangeDialog" }, rt = { class: "YCServiceSummary-timeRangeDialog-body" }, it = { class: "YCServiceSummary-timeRangeDialog-field" }, at = ["disabled"], ot = { class: "YCServiceSummary-timeRangeDialog-field" }, st = ["disabled"], ct = {
|
|
1207
|
+
key: 0,
|
|
1208
|
+
class: "YCServiceSummary-timeRangeDialog-error"
|
|
1209
|
+
}, lt = { class: "YCServiceSummary-timeRangeDialog-footer" }, ut = ["disabled"], dt = ["disabled"], ft = {
|
|
1210
|
+
key: 0,
|
|
1211
|
+
class: "YCServiceSummary-timeRangeDialog-spinner"
|
|
1212
|
+
}, pt = {
|
|
1213
|
+
key: 2,
|
|
1205
1214
|
class: "YCServiceSummary-editorMask"
|
|
1206
|
-
},
|
|
1215
|
+
}, mt = { class: "YCServiceSummary-editorDialog" }, ht = { class: "YCServiceSummary-editorDialog-head" }, gt = { class: "YCServiceSummary-editorDialog-title" }, _t = { class: "YCServiceSummary-editorDialog-body" }, vt = {
|
|
1207
1216
|
key: 0,
|
|
1208
1217
|
class: "YCServiceSummary-editorDialog-loading"
|
|
1209
|
-
},
|
|
1218
|
+
}, yt = {
|
|
1210
1219
|
key: 1,
|
|
1211
1220
|
class: "YCServiceSummary-editorDialog-error"
|
|
1212
|
-
},
|
|
1221
|
+
}, bt = { class: "YCServiceSummary-editorDialog-errorText" }, xt = /* @__PURE__ */ n(/* @__PURE__ */ f({
|
|
1213
1222
|
__name: "YCServiceSummary",
|
|
1214
1223
|
props: [
|
|
1215
1224
|
"appKey",
|
|
@@ -1223,17 +1232,17 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
1223
1232
|
"showEditBtn"
|
|
1224
1233
|
],
|
|
1225
1234
|
setup(t) {
|
|
1226
|
-
let n = t, r = y([]), l = y(0), f = a(() => r.value[l.value]?.title || ""), g = a(() => r.value[l.value]?.warnInfo || ""),
|
|
1235
|
+
let n = t, r = y([]), l = y(0), f = a(() => r.value[l.value]?.title || ""), g = a(() => r.value[l.value]?.warnInfo || ""), T = y(!1), E = a(() => n.showEditBtn === !0), D = y([]), O = y("交通气象服务材料"), k = y(""), ee = y(""), A = y(!1), j = y(!1), M = y(""), N = y(null), P = null, F = a(() => k.value.split("/").pop() || `${O.value}.docx`), te = (e) => e && (e.split("/").pop() || "").replace(/\.[^.]+$/, "") || "交通气象服务材料", ne = (e) => !e || typeof e != "object" ? [] : Object.entries(e).map(([e, t]) => ({
|
|
1227
1236
|
label: e.includes(":") ? e : `${e}:`,
|
|
1228
1237
|
value: String(t)
|
|
1229
|
-
})),
|
|
1238
|
+
})), re = () => {
|
|
1230
1239
|
let e = r.value[l.value];
|
|
1231
|
-
e && (
|
|
1240
|
+
e && (D.value = e.imgUrl ? String(e.imgUrl).split(",").map((e) => e.trim()).filter(Boolean) : [], O.value = te(e.workUrl), k.value = e.workUrl || "", ee.value = e.workflowId || "");
|
|
1232
1241
|
};
|
|
1233
1242
|
C(l, () => {
|
|
1234
|
-
|
|
1243
|
+
re();
|
|
1235
1244
|
});
|
|
1236
|
-
let
|
|
1245
|
+
let ie = async () => {
|
|
1237
1246
|
let t = n.ids?.baseData;
|
|
1238
1247
|
if (!t?.id) {
|
|
1239
1248
|
console.warn("[YCServiceSummary] ids.baseData 未配置");
|
|
@@ -1255,20 +1264,20 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
1255
1264
|
}
|
|
1256
1265
|
r.value = i.map((e) => ({
|
|
1257
1266
|
title: e.分类 || "",
|
|
1258
|
-
rows:
|
|
1267
|
+
rows: ne(e.数据),
|
|
1259
1268
|
warnInfo: e.预警信息 || "",
|
|
1260
1269
|
workUrl: e.workUrl || "",
|
|
1261
1270
|
imgUrl: e.imgUrl || "",
|
|
1262
1271
|
workflowId: e.workflowId || ""
|
|
1263
|
-
})), l.value = 0,
|
|
1272
|
+
})), l.value = 0, re();
|
|
1264
1273
|
} catch (e) {
|
|
1265
1274
|
console.error("[YCServiceSummary] baseData 加载失败", e);
|
|
1266
1275
|
}
|
|
1267
1276
|
};
|
|
1268
1277
|
_(() => {
|
|
1269
|
-
|
|
1278
|
+
ie();
|
|
1270
1279
|
});
|
|
1271
|
-
let
|
|
1280
|
+
let I = (e) => e ? /^(https?:)?\/\//i.test(e) || e.startsWith("data:") || !n.baseHttp ? e : n.baseHttp.replace(/\/$/, "") + (e.startsWith("/") ? e : `/${e}`) : "", ae = (e) => {
|
|
1272
1281
|
let t = (e || "docx").toLowerCase();
|
|
1273
1282
|
return [
|
|
1274
1283
|
"xls",
|
|
@@ -1295,7 +1304,7 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
1295
1304
|
"fodp",
|
|
1296
1305
|
"otp"
|
|
1297
1306
|
].includes(t) ? "ppt" : t === "pdf" ? "pdf" : "word";
|
|
1298
|
-
},
|
|
1307
|
+
}, oe = () => new Promise((e, t) => {
|
|
1299
1308
|
if (window.DocsAPI?.DocEditor) {
|
|
1300
1309
|
e();
|
|
1301
1310
|
return;
|
|
@@ -1312,30 +1321,30 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
1312
1321
|
setTimeout(r, 100);
|
|
1313
1322
|
};
|
|
1314
1323
|
r();
|
|
1315
|
-
}),
|
|
1316
|
-
let e =
|
|
1324
|
+
}), se = async () => {
|
|
1325
|
+
let e = N.value;
|
|
1317
1326
|
if (e) {
|
|
1318
|
-
|
|
1327
|
+
j.value = !0, M.value = "";
|
|
1319
1328
|
try {
|
|
1320
|
-
await
|
|
1329
|
+
await oe();
|
|
1321
1330
|
let t = window.DocsAPI;
|
|
1322
1331
|
if (!t?.DocEditor) {
|
|
1323
|
-
|
|
1332
|
+
M.value = "OnlyOffice API 不可用,请检查服务地址和代理";
|
|
1324
1333
|
return;
|
|
1325
1334
|
}
|
|
1326
|
-
let r = encodeURI(
|
|
1335
|
+
let r = encodeURI(I(k.value));
|
|
1327
1336
|
if (!r) {
|
|
1328
|
-
|
|
1337
|
+
M.value = "文件地址为空";
|
|
1329
1338
|
return;
|
|
1330
1339
|
}
|
|
1331
|
-
let i = (
|
|
1332
|
-
if (
|
|
1340
|
+
let i = (F.value.split(".").pop() || "docx").toLowerCase(), a = `yc-onlyoffice-editor-${Date.now()}`;
|
|
1341
|
+
if (P) {
|
|
1333
1342
|
try {
|
|
1334
|
-
|
|
1343
|
+
P.destroyEditor();
|
|
1335
1344
|
} catch (e) {
|
|
1336
1345
|
console.warn("[YCServiceSummary] 销毁旧 OnlyOffice 编辑器失败:", e);
|
|
1337
1346
|
}
|
|
1338
|
-
|
|
1347
|
+
P = null;
|
|
1339
1348
|
}
|
|
1340
1349
|
e.innerHTML = "";
|
|
1341
1350
|
let o = document.createElement("div");
|
|
@@ -1344,12 +1353,12 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
1344
1353
|
type: "desktop",
|
|
1345
1354
|
width: "100%",
|
|
1346
1355
|
height: "100%",
|
|
1347
|
-
documentType:
|
|
1356
|
+
documentType: ae(i),
|
|
1348
1357
|
document: {
|
|
1349
|
-
title:
|
|
1358
|
+
title: F.value || "文档",
|
|
1350
1359
|
url: r,
|
|
1351
1360
|
fileType: i,
|
|
1352
|
-
key: `${
|
|
1361
|
+
key: `${ee.value}_${Date.now()}_${Math.random().toString(36).slice(2)}`,
|
|
1353
1362
|
permissions: {
|
|
1354
1363
|
edit: !0,
|
|
1355
1364
|
download: !0,
|
|
@@ -1408,13 +1417,13 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
1408
1417
|
},
|
|
1409
1418
|
events: {
|
|
1410
1419
|
onReady: () => {
|
|
1411
|
-
|
|
1420
|
+
j.value = !1;
|
|
1412
1421
|
},
|
|
1413
1422
|
onAppReady: () => {
|
|
1414
|
-
|
|
1423
|
+
j.value = !1;
|
|
1415
1424
|
},
|
|
1416
1425
|
onError: (e) => {
|
|
1417
|
-
|
|
1426
|
+
j.value = !1, M.value = `文档加载失败:${e?.description || e?.data?.description || e?.message || JSON.stringify(e)}`, console.error("[YCServiceSummary] OnlyOffice onError:", e);
|
|
1418
1427
|
},
|
|
1419
1428
|
onWarning: (e) => {
|
|
1420
1429
|
console.warn("[YCServiceSummary] OnlyOffice onWarning:", e);
|
|
@@ -1423,103 +1432,191 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
1423
1432
|
};
|
|
1424
1433
|
console.warn("key", s.document.key);
|
|
1425
1434
|
try {
|
|
1426
|
-
|
|
1435
|
+
P = new t.DocEditor(a, s);
|
|
1427
1436
|
} catch (e) {
|
|
1428
|
-
console.error("[YCServiceSummary] new DocEditor 抛出异常:", e),
|
|
1437
|
+
console.error("[YCServiceSummary] new DocEditor 抛出异常:", e), M.value = "OnlyOffice 编辑器创建失败";
|
|
1429
1438
|
}
|
|
1430
1439
|
} catch (e) {
|
|
1431
|
-
console.error("[YCServiceSummary] 初始化 OnlyOffice 失败:", e),
|
|
1440
|
+
console.error("[YCServiceSummary] 初始化 OnlyOffice 失败:", e), M.value = `打开文档失败:${e instanceof Error ? e.message : String(e)}`;
|
|
1432
1441
|
} finally {
|
|
1433
|
-
|
|
1442
|
+
M.value && (j.value = !1);
|
|
1434
1443
|
}
|
|
1435
1444
|
}
|
|
1436
|
-
},
|
|
1437
|
-
|
|
1438
|
-
},
|
|
1439
|
-
if (
|
|
1445
|
+
}, R = () => {
|
|
1446
|
+
A.value = !0, m(() => se());
|
|
1447
|
+
}, z = () => {
|
|
1448
|
+
if (P) {
|
|
1440
1449
|
try {
|
|
1441
|
-
|
|
1450
|
+
P.destroyEditor();
|
|
1442
1451
|
} catch (e) {
|
|
1443
1452
|
console.warn("[YCServiceSummary] 销毁 OnlyOffice 编辑器失败:", e);
|
|
1444
1453
|
}
|
|
1445
|
-
|
|
1454
|
+
P = null;
|
|
1446
1455
|
}
|
|
1447
|
-
|
|
1448
|
-
},
|
|
1449
|
-
let e =
|
|
1456
|
+
N.value && (N.value.innerHTML = ""), A.value = !1, j.value = !1, M.value = "";
|
|
1457
|
+
}, B = () => {
|
|
1458
|
+
let e = I(k.value);
|
|
1450
1459
|
if (!e) return;
|
|
1451
1460
|
let t = document.createElement("a");
|
|
1452
|
-
t.href = encodeURI(e), t.download =
|
|
1453
|
-
},
|
|
1454
|
-
e === "edit" &&
|
|
1461
|
+
t.href = encodeURI(e), t.download = F.value, t.target = "_blank", t.click();
|
|
1462
|
+
}, H = (e) => {
|
|
1463
|
+
e === "edit" && R(), e === "download" && B();
|
|
1464
|
+
}, U = y(!1), W = y(""), G = y(""), K = y(!1), q = y(""), J = (e) => e ? e.replace("T", " ").substring(0, 13) + ":00:00" : "", ue = () => {
|
|
1465
|
+
W.value = "", G.value = "", q.value = "", K.value = !1, U.value = !0;
|
|
1466
|
+
}, Y = () => {
|
|
1467
|
+
K.value || (U.value = !1, q.value = "");
|
|
1468
|
+
}, fe = async () => {
|
|
1469
|
+
if (!W.value || !G.value) {
|
|
1470
|
+
q.value = "请选择开始和结束时间";
|
|
1471
|
+
return;
|
|
1472
|
+
}
|
|
1473
|
+
if (W.value > G.value) {
|
|
1474
|
+
q.value = "结束时间不能早于开始时间";
|
|
1475
|
+
return;
|
|
1476
|
+
}
|
|
1477
|
+
let t = n.ids?.generate;
|
|
1478
|
+
if (!t?.id) {
|
|
1479
|
+
q.value = "generate 工作流未配置";
|
|
1480
|
+
return;
|
|
1481
|
+
}
|
|
1482
|
+
K.value = !0, q.value = "";
|
|
1483
|
+
try {
|
|
1484
|
+
let r = await e({
|
|
1485
|
+
appKey: n.appKey,
|
|
1486
|
+
appSalt: n.appSalt,
|
|
1487
|
+
id: t.id,
|
|
1488
|
+
variables: {
|
|
1489
|
+
startTime: J(W.value),
|
|
1490
|
+
endTime: J(G.value)
|
|
1491
|
+
},
|
|
1492
|
+
baseHttp: n.baseHttp,
|
|
1493
|
+
reqType: t.reqType,
|
|
1494
|
+
isFormData: t.isFormData
|
|
1495
|
+
});
|
|
1496
|
+
console.log("[YCServiceSummary] generate 工作流返回:", r), U.value = !1, await ie();
|
|
1497
|
+
} catch (e) {
|
|
1498
|
+
console.error("[YCServiceSummary] generate 工作流调用失败", e), q.value = `生成失败:${e instanceof Error ? e.message : String(e)}`;
|
|
1499
|
+
} finally {
|
|
1500
|
+
K.value = !1;
|
|
1501
|
+
}
|
|
1455
1502
|
};
|
|
1456
|
-
return (e, t) => (v(), s("div", { class: h(["YCServiceSummary", { "is-dark":
|
|
1503
|
+
return (e, t) => (v(), s("div", { class: h(["YCServiceSummary", { "is-dark": T.value }]) }, [
|
|
1457
1504
|
c("div", we, [c("button", {
|
|
1458
|
-
class: h(["YCServiceSummary-themeBtn", { "is-active": !
|
|
1459
|
-
onClick: t[0] ||= (e) =>
|
|
1505
|
+
class: h(["YCServiceSummary-themeBtn", { "is-active": !T.value }]),
|
|
1506
|
+
onClick: t[0] ||= (e) => T.value = !1,
|
|
1460
1507
|
title: "浅色"
|
|
1461
|
-
}, [...t[
|
|
1508
|
+
}, [...t[6] ||= [c("svg", {
|
|
1462
1509
|
viewBox: "0 0 24 24",
|
|
1463
1510
|
width: "12",
|
|
1464
1511
|
height: "12",
|
|
1465
1512
|
fill: "currentColor"
|
|
1466
1513
|
}, [c("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), u(" 浅色 ", -1)]], 2), c("button", {
|
|
1467
|
-
class: h(["YCServiceSummary-themeBtn", { "is-active":
|
|
1468
|
-
onClick: t[1] ||= (e) =>
|
|
1514
|
+
class: h(["YCServiceSummary-themeBtn", { "is-active": T.value }]),
|
|
1515
|
+
onClick: t[1] ||= (e) => T.value = !0,
|
|
1469
1516
|
title: "深色"
|
|
1470
|
-
}, [...t[
|
|
1517
|
+
}, [...t[7] ||= [c("svg", {
|
|
1471
1518
|
viewBox: "0 0 24 24",
|
|
1472
1519
|
width: "12",
|
|
1473
1520
|
height: "12",
|
|
1474
1521
|
fill: "currentColor"
|
|
1475
1522
|
}, [c("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), u(" 深色 ", -1)]], 2)]),
|
|
1476
1523
|
c("div", Te, [
|
|
1477
|
-
c("div", Ee, [t[
|
|
1524
|
+
c("div", Ee, [t[9] ||= c("div", { class: "YCServiceSummary-statPanel-title" }, "宜春气象服务", -1), c("div", De, [(v(!0), s(i, null, b(r.value, (e, n) => (v(), s("div", {
|
|
1478
1525
|
key: e.title,
|
|
1479
1526
|
class: h(["YCServiceSummary-statCard", { "is-active": l.value === n }]),
|
|
1480
1527
|
onClick: (e) => l.value = n
|
|
1481
|
-
}, [c("div", ke, [t[
|
|
1528
|
+
}, [c("div", ke, [t[8] ||= c("span", { class: "dot" }, null, -1), u(" " + x(e.title), 1)]), c("div", Ae, [(v(!0), s(i, null, b(e.rows, (e) => (v(), s("div", {
|
|
1482
1529
|
key: e.label,
|
|
1483
1530
|
class: "row"
|
|
1484
1531
|
}, [c("span", null, x(e.label), 1), c("span", je, x(e.value), 1)]))), 128))])], 10, Oe))), 128))])]),
|
|
1485
1532
|
c("div", Me, [
|
|
1486
|
-
c("div", Ne, [c("div", Pe, [t[
|
|
1487
|
-
t[
|
|
1533
|
+
c("div", Ne, [c("div", Pe, [t[10] ||= c("span", { class: "icon" }, null, -1), u(" " + x(f.value) + " AI 分析 ", 1)])]),
|
|
1534
|
+
t[19] ||= c("div", { class: "YCServiceSummary-aiPanel-warningTitle" }, "预警信号", -1),
|
|
1488
1535
|
c("div", Fe, x(g.value), 1),
|
|
1489
|
-
f.value === "公路气象服务" ? (v(), s("div", Ie, [c("div", Le, [t[
|
|
1490
|
-
f.value === "地质灾害风险分析服务" ? (v(), s("div", ze, [c("div", Be, [t[
|
|
1491
|
-
f.value === "水库灾害风险分析服务" ? (v(), s("div", He, [c("div", Ue, [t[
|
|
1492
|
-
f.value === "锂电矿区气象服务" ? (v(), s("div", Ge, [c("div", Ke, [t[
|
|
1536
|
+
f.value === "公路气象服务" ? (v(), s("div", Ie, [c("div", Le, [t[11] ||= c("div", { class: "YCServiceSummary-aiPanel-chartTitle" }, "高速公路实况状态", -1), d(V, p(n, { theme: T.value ? "dark" : "light" }), null, 16, ["theme"])]), c("div", Re, [t[12] ||= c("div", { class: "YCServiceSummary-aiPanel-chartTitle" }, "高速公路预报状态", -1), d(ce, p(n, { theme: T.value ? "dark" : "light" }), null, 16, ["theme"])])])) : o("", !0),
|
|
1537
|
+
f.value === "地质灾害风险分析服务" ? (v(), s("div", ze, [c("div", Be, [t[13] ||= c("div", { class: "YCServiceSummary-aiPanel-chartTitle" }, "地质灾害实况报警", -1), d(le, p(n, { theme: T.value ? "dark" : "light" }), null, 16, ["theme"])]), c("div", Ve, [t[14] ||= c("div", { class: "YCServiceSummary-aiPanel-chartTitle" }, "地质灾害预报报警", -1), d(de, p(n, { theme: T.value ? "dark" : "light" }), null, 16, ["theme"])])])) : o("", !0),
|
|
1538
|
+
f.value === "水库灾害风险分析服务" ? (v(), s("div", He, [c("div", Ue, [t[15] ||= c("div", { class: "YCServiceSummary-aiPanel-chartTitle" }, "水库灾害实况报警", -1), d(he, p(n, { theme: T.value ? "dark" : "light" }), null, 16, ["theme"])]), c("div", We, [t[16] ||= c("div", { class: "YCServiceSummary-aiPanel-chartTitle" }, "水库灾害预报报警", -1), d(Q, p(n, { theme: T.value ? "dark" : "light" }), null, 16, ["theme"])])])) : o("", !0),
|
|
1539
|
+
f.value === "锂电矿区气象服务" ? (v(), s("div", Ge, [c("div", Ke, [t[17] ||= c("div", { class: "YCServiceSummary-aiPanel-chartTitle" }, "锂电矿区实况预警", -1), d(ye, p(n, { theme: T.value ? "dark" : "light" }), null, 16, ["theme"])]), c("div", qe, [t[18] ||= c("div", { class: "YCServiceSummary-aiPanel-chartTitle" }, "锂电矿区预报报警", -1), d(Ce, p(n, { theme: T.value ? "dark" : "light" }), null, 16, ["theme"])])])) : o("", !0)
|
|
1493
1540
|
]),
|
|
1494
|
-
c("div", Je, [c("div", Ye, [c("span", Xe, x(
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1541
|
+
c("div", Je, [c("div", Ye, [c("span", Xe, x(O.value), 1), c("div", Ze, [
|
|
1542
|
+
E.value ? (v(), s("button", {
|
|
1543
|
+
key: 0,
|
|
1544
|
+
class: "YCServiceSummary-material-btn YCServiceSummary-material-btn--edit",
|
|
1545
|
+
onClick: t[2] ||= (e) => H("edit")
|
|
1546
|
+
}, [...t[20] ||= [c("svg", {
|
|
1547
|
+
viewBox: "0 0 24 24",
|
|
1548
|
+
width: "12",
|
|
1549
|
+
height: "12",
|
|
1550
|
+
fill: "currentColor"
|
|
1551
|
+
}, [c("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), u(" 编辑 ", -1)]])) : o("", !0),
|
|
1552
|
+
c("button", {
|
|
1553
|
+
class: "YCServiceSummary-material-btn YCServiceSummary-material-btn--download",
|
|
1554
|
+
onClick: t[3] ||= (e) => H("download")
|
|
1555
|
+
}, [...t[21] ||= [c("svg", {
|
|
1556
|
+
viewBox: "0 0 24 24",
|
|
1557
|
+
width: "12",
|
|
1558
|
+
height: "12",
|
|
1559
|
+
fill: "currentColor"
|
|
1560
|
+
}, [c("path", { d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" })], -1), u(" 下载 ", -1)]]),
|
|
1561
|
+
c("button", {
|
|
1562
|
+
class: "YCServiceSummary-material-btn YCServiceSummary-material-btn--generate",
|
|
1563
|
+
onClick: ue
|
|
1564
|
+
}, [...t[22] ||= [c("svg", {
|
|
1565
|
+
viewBox: "0 0 24 24",
|
|
1566
|
+
width: "12",
|
|
1567
|
+
height: "12",
|
|
1568
|
+
fill: "currentColor"
|
|
1569
|
+
}, [c("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), u(" 时间段生成 ", -1)]])
|
|
1570
|
+
])]), c("div", Qe, [(v(!0), s(i, null, b(D.value, (e, t) => (v(), s("img", {
|
|
1512
1571
|
key: t,
|
|
1513
1572
|
class: "YCServiceSummary-material-image",
|
|
1514
1573
|
src: e,
|
|
1515
|
-
alt:
|
|
1574
|
+
alt: O.value
|
|
1516
1575
|
}, null, 8, $e))), 128))])])
|
|
1517
1576
|
]),
|
|
1518
|
-
|
|
1519
|
-
|
|
1577
|
+
E.value ? (v(), s("div", et, [d(L, p(n, { theme: T.value ? "dark" : "light" }), null, 16, ["theme"])])) : o("", !0),
|
|
1578
|
+
U.value ? (v(), s("div", tt, [c("div", nt, [
|
|
1579
|
+
c("div", { class: "YCServiceSummary-timeRangeDialog-head" }, [t[24] ||= c("span", { class: "YCServiceSummary-timeRangeDialog-title" }, "时间段生成", -1), c("button", {
|
|
1580
|
+
class: "YCServiceSummary-timeRangeDialog-close",
|
|
1581
|
+
title: "关闭",
|
|
1582
|
+
onClick: Y
|
|
1583
|
+
}, [...t[23] ||= [c("svg", {
|
|
1584
|
+
viewBox: "0 0 24 24",
|
|
1585
|
+
width: "14",
|
|
1586
|
+
height: "14",
|
|
1587
|
+
fill: "currentColor"
|
|
1588
|
+
}, [c("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })], -1)]])]),
|
|
1589
|
+
c("div", rt, [
|
|
1590
|
+
c("div", it, [t[25] ||= c("label", { class: "YCServiceSummary-timeRangeDialog-label" }, "开始时间", -1), w(c("input", {
|
|
1591
|
+
type: "datetime-local",
|
|
1592
|
+
step: "3600",
|
|
1593
|
+
class: "YCServiceSummary-timeRangeDialog-input",
|
|
1594
|
+
"onUpdate:modelValue": t[4] ||= (e) => W.value = e,
|
|
1595
|
+
disabled: K.value
|
|
1596
|
+
}, null, 8, at), [[S, W.value]])]),
|
|
1597
|
+
c("div", ot, [t[26] ||= c("label", { class: "YCServiceSummary-timeRangeDialog-label" }, "结束时间", -1), w(c("input", {
|
|
1598
|
+
type: "datetime-local",
|
|
1599
|
+
step: "3600",
|
|
1600
|
+
class: "YCServiceSummary-timeRangeDialog-input",
|
|
1601
|
+
"onUpdate:modelValue": t[5] ||= (e) => G.value = e,
|
|
1602
|
+
disabled: K.value
|
|
1603
|
+
}, null, 8, st), [[S, G.value]])]),
|
|
1604
|
+
q.value ? (v(), s("div", ct, x(q.value), 1)) : o("", !0)
|
|
1605
|
+
]),
|
|
1606
|
+
c("div", lt, [c("button", {
|
|
1607
|
+
class: "YCServiceSummary-timeRangeDialog-btn YCServiceSummary-timeRangeDialog-btn--cancel",
|
|
1608
|
+
onClick: Y,
|
|
1609
|
+
disabled: K.value
|
|
1610
|
+
}, "取消", 8, ut), c("button", {
|
|
1611
|
+
class: "YCServiceSummary-timeRangeDialog-btn YCServiceSummary-timeRangeDialog-btn--confirm",
|
|
1612
|
+
onClick: fe,
|
|
1613
|
+
disabled: K.value
|
|
1614
|
+
}, [K.value ? (v(), s("span", ft)) : o("", !0), u(" " + x(K.value ? "生成中..." : "确认生成"), 1)], 8, dt)])
|
|
1615
|
+
])])) : o("", !0),
|
|
1616
|
+
A.value ? (v(), s("div", pt, [c("div", mt, [c("div", ht, [c("span", gt, x(F.value), 1), c("div", { class: "YCServiceSummary-editorDialog-actions" }, [c("button", {
|
|
1520
1617
|
class: "YCServiceSummary-editorDialog-btn",
|
|
1521
|
-
onClick:
|
|
1522
|
-
}, [...t[
|
|
1618
|
+
onClick: B
|
|
1619
|
+
}, [...t[27] ||= [c("svg", {
|
|
1523
1620
|
viewBox: "0 0 24 24",
|
|
1524
1621
|
width: "12",
|
|
1525
1622
|
height: "12",
|
|
@@ -1527,26 +1624,26 @@ var D = { class: "YCAIChatPanel" }, O = {
|
|
|
1527
1624
|
}, [c("path", { d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" })], -1), u(" 下载 ", -1)]]), c("button", {
|
|
1528
1625
|
class: "YCServiceSummary-editorDialog-close",
|
|
1529
1626
|
title: "关闭",
|
|
1530
|
-
onClick:
|
|
1531
|
-
}, [...t[
|
|
1627
|
+
onClick: z
|
|
1628
|
+
}, [...t[28] ||= [c("svg", {
|
|
1532
1629
|
viewBox: "0 0 24 24",
|
|
1533
1630
|
width: "14",
|
|
1534
1631
|
height: "14",
|
|
1535
1632
|
fill: "currentColor"
|
|
1536
|
-
}, [c("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })], -1)]])])]), c("div",
|
|
1633
|
+
}, [c("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })], -1)]])])]), c("div", _t, [
|
|
1537
1634
|
c("div", {
|
|
1538
1635
|
ref_key: "onlyofficeContainerRef",
|
|
1539
|
-
ref:
|
|
1636
|
+
ref: N,
|
|
1540
1637
|
class: "YCServiceSummary-editorDialog-container"
|
|
1541
1638
|
}, null, 512),
|
|
1542
|
-
|
|
1543
|
-
|
|
1639
|
+
j.value ? (v(), s("div", vt, [...t[29] ||= [c("span", { class: "YCServiceSummary-editorDialog-spinner" }, null, -1), c("span", null, "正在加载文档编辑器...", -1)]])) : o("", !0),
|
|
1640
|
+
M.value ? (v(), s("div", yt, [c("span", bt, x(M.value), 1), c("button", {
|
|
1544
1641
|
class: "YCServiceSummary-editorDialog-retryBtn",
|
|
1545
|
-
onClick:
|
|
1642
|
+
onClick: se
|
|
1546
1643
|
}, "重试")])) : o("", !0)
|
|
1547
1644
|
])])])) : o("", !0)
|
|
1548
1645
|
], 2));
|
|
1549
1646
|
}
|
|
1550
|
-
}), [["__scopeId", "data-v-
|
|
1647
|
+
}), [["__scopeId", "data-v-001ef17e"]]);
|
|
1551
1648
|
//#endregion
|
|
1552
|
-
export {
|
|
1649
|
+
export { xt as t };
|