st-comp 0.0.267 → 0.0.269
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/components.d.ts +1 -0
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +22 -22
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +26 -26
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +11 -11
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +19 -19
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +16 -16
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +10 -10
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +12 -12
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +18 -18
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +14 -14
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -2
- package/es/Table.cjs +1 -1
- package/es/Table.js +18 -18
- package/es/User.cjs +1 -1
- package/es/User.js +19 -19
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +19 -19
- package/es/VarietyAiHelper.cjs +8 -3
- package/es/VarietyAiHelper.js +485 -306
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +8 -8
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +31 -31
- package/es/{VarietySelect-639a8d9a.cjs → VarietySelect-7da473c5.cjs} +1 -1
- package/es/{VarietySelect-1ac10ec2.js → VarietySelect-b01281d3.js} +3 -3
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +10 -10
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +66 -66
- package/es/{_initCloneObject-6b8c230e.js → _initCloneObject-6243b839.js} +2 -2
- package/es/{_initCloneObject-9eddcb0c.cjs → _initCloneObject-76e116d0.cjs} +1 -1
- package/es/aiTools-275c9799.cjs +4 -0
- package/es/aiTools-9c59a74a.js +149 -0
- package/es/aiTools.js +121 -27
- package/es/{config-provider-56193d47.js → config-provider-20b05e99.js} +3 -3
- package/es/{config-provider-ea286661.cjs → config-provider-4c784baf.cjs} +1 -1
- package/es/{dropdown-f30148cc.cjs → dropdown-33c19e56.cjs} +1 -1
- package/es/{dropdown-4e541d60.js → dropdown-f8d9fe56.js} +3 -3
- package/es/{el-autocomplete-4b521c83.js → el-autocomplete-3f34a1c3.js} +6 -6
- package/es/{el-autocomplete-3949e68c.cjs → el-autocomplete-525ca867.cjs} +1 -1
- package/es/{el-button-dd065de0.cjs → el-button-13dc915f.cjs} +1 -1
- package/es/{el-button-4f201000.js → el-button-cd144ee1.js} +3 -3
- package/es/{el-checkbox-02ce40f0.cjs → el-checkbox-95325acd.cjs} +1 -1
- package/es/{el-checkbox-33cb73db.js → el-checkbox-d6c883f4.js} +3 -3
- package/es/{el-dialog-6501a151.cjs → el-dialog-4056070b.cjs} +1 -1
- package/es/{el-dialog-1939f7c5.js → el-dialog-59a23c2b.js} +4 -4
- package/es/{el-form-item-316b35d8.cjs → el-form-item-3475aaad.cjs} +1 -1
- package/es/{el-form-item-ea11211d.js → el-form-item-a9556441.js} +5 -5
- package/es/{el-input-58786d42.js → el-input-1f14a6e2.js} +33 -33
- package/es/{el-input-094afbe2.cjs → el-input-c7bf8e44.cjs} +1 -1
- package/es/{el-input-number-a7971697.js → el-input-number-411ac93d.js} +12 -12
- package/es/{el-input-number-a609a5e3.cjs → el-input-number-9d810842.cjs} +1 -1
- package/es/{el-loading-d171ce64.cjs → el-loading-84dde1a8.cjs} +1 -1
- package/es/{el-loading-f3815921.js → el-loading-cbeb3b86.js} +1 -1
- package/es/{el-menu-item-3d1e0aff.cjs → el-menu-item-18d7d869.cjs} +1 -1
- package/es/{el-menu-item-a166b997.js → el-menu-item-77152904.js} +5 -5
- package/es/{el-message-box-f2b667e9.js → el-message-box-a26e3ed4.js} +9 -9
- package/es/{el-message-box-b8ffcf34.cjs → el-message-box-e4b8cc99.cjs} +1 -1
- package/es/{el-overlay-1dfe3675.js → el-overlay-465cd11e.js} +3 -3
- package/es/{el-overlay-a94f8a98.cjs → el-overlay-d26a1b98.cjs} +1 -1
- package/es/{el-popconfirm-70e2849c.cjs → el-popconfirm-12f6f35c.cjs} +1 -1
- package/es/{el-popconfirm-ca31ceea.js → el-popconfirm-289b3e89.js} +5 -5
- package/es/{el-popper-ce575c12.cjs → el-popper-c7648df6.cjs} +1 -1
- package/es/{el-popper-db6c599f.js → el-popper-f96fc206.js} +2 -2
- package/es/{el-segmented-741f2252.js → el-segmented-598b92b0.js} +2 -2
- package/es/{el-segmented-4d50b63f.cjs → el-segmented-f0bce6f2.cjs} +1 -1
- package/es/{el-select-086bcb6c.js → el-select-d47b5923.js} +9 -9
- package/es/{el-select-2ebc8380.cjs → el-select-f3cc464f.cjs} +1 -1
- package/es/{el-table-column-2f07fbdb.cjs → el-table-column-220ae131.cjs} +1 -1
- package/es/{el-table-column-8a15378a.js → el-table-column-f1017e75.js} +10 -10
- package/es/{el-tag-65a99986.js → el-tag-0a4197f5.js} +2 -2
- package/es/{el-tag-f48b1190.cjs → el-tag-51bd491c.cjs} +1 -1
- package/es/{el-text-33359f44.cjs → el-text-abf10fdf.cjs} +1 -1
- package/es/{el-text-cbb693f2.js → el-text-c3ee80fe.js} +1 -1
- package/es/{index-18565979.cjs → index-0986e373.cjs} +1 -1
- package/es/{index-4f900527.cjs → index-09ce1753.cjs} +1 -1
- package/es/{index-8b055879.cjs → index-0ff5fe69.cjs} +2 -2
- package/es/{index-ca91ac68.js → index-1b97095f.js} +83 -68
- package/es/{index-ff26b1a6.js → index-3301d870.js} +2 -2
- package/es/{index-1e91e986.js → index-33430c9f.js} +1 -1
- package/es/{index-0f767104.cjs → index-3ed7914e.cjs} +1 -1
- package/es/index-476c4459.cjs +1 -0
- package/es/{index-072c4a65.js → index-499cf989.js} +5 -5
- package/es/{index-21e8d2bc.cjs → index-4b95bae1.cjs} +1 -1
- package/es/{index-8439d2f9.cjs → index-60c69dd1.cjs} +1 -1
- package/es/{index-57d82da0.js → index-67180968.js} +2 -2
- package/es/{index-bf98dd03.cjs → index-68798830.cjs} +1 -1
- package/es/{index-d857270a.js → index-89cc0265.js} +9 -9
- package/es/{index-1955f23d.js → index-8e88a0bd.js} +1 -1
- package/es/{index-a4e252a0.js → index-a17c90c5.js} +1 -1
- package/es/{index-b51915a2.js → index-afc4a1e5.js} +2 -2
- package/es/{index-7eb88616.cjs → index-cfcd60ca.cjs} +1 -1
- package/es/{index-5b546f7d.cjs → index-d2cfd4a3.cjs} +1 -1
- package/es/{index-7db02db7.js → index-d3e9a6f2.js} +2 -2
- package/es/{python-ad9239f9.js → python-c00abcbd.js} +18 -18
- package/es/{python-5b5c9c58.cjs → python-e528f42b.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-00ec25ac.cjs → use-form-common-props-02be4928.cjs} +1 -1
- package/es/{use-form-common-props-c14990b9.js → use-form-common-props-dd9617de.js} +12 -12
- package/es/{use-global-config-28efb416.cjs → use-global-config-31b3ec57.cjs} +1 -1
- package/es/{use-global-config-a01b5ce1.js → use-global-config-4dfc7236.js} +2 -2
- package/es/{validator-65de1caf.js → validator-029bfc98.js} +1 -1
- package/es/{validator-119fdaf4.cjs → validator-ea292506.cjs} +1 -1
- package/es/{zh-cn-9fb29a39.cjs → zh-cn-0edc7234.cjs} +1 -1
- package/es/{zh-cn-c1c28e70.js → zh-cn-89e434f9.js} +1 -1
- package/lib/aiTools.js +121 -27
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +217 -212
- package/lib/{index-7279dacd.js → index-8ba1607b.js} +22647 -22454
- package/lib/{python-60bc2922.js → python-16c6e601.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietyAiHelper/index.vue +326 -292
- package/public/aiTools.js +121 -27
- package/src/App.vue +14 -0
- package/es/aiTools-822859d6.cjs +0 -4
- package/es/aiTools-9a9c997f.js +0 -149
- package/es/index-3792552a.cjs +0 -1
package/es/VarietyAiHelper.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { E as
|
|
3
|
-
import "./el-overlay-
|
|
4
|
-
import { E as
|
|
5
|
-
import { E as
|
|
6
|
-
import { defineComponent as se, ref as
|
|
7
|
-
import { d as
|
|
8
|
-
import { V as
|
|
9
|
-
import { s as
|
|
10
|
-
import { E as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { E as
|
|
13
|
-
import { k as
|
|
14
|
-
import "./index-
|
|
1
|
+
import { b as de, p as pe, e as te, u as fe, c as oe, n as _e, _ as me, w as ve, x as ye } from "./base-29f73b05.js";
|
|
2
|
+
import { E as be } from "./el-dialog-59a23c2b.js";
|
|
3
|
+
import "./el-overlay-465cd11e.js";
|
|
4
|
+
import { E as we } from "./el-button-cd144ee1.js";
|
|
5
|
+
import { E as Te } from "./el-input-1f14a6e2.js";
|
|
6
|
+
import { defineComponent as se, ref as b, computed as f, watch as re, openBlock as i, createElementBlock as d, normalizeClass as C, unref as s, normalizeStyle as z, createBlock as q, withCtx as E, resolveDynamicComponent as ge, renderSlot as le, createElementVNode as o, toDisplayString as O, createCommentVNode as M, inject as Se, reactive as Ce, nextTick as ae, Fragment as W, createVNode as S, renderList as ue, createTextVNode as ne, pushScopeId as $e, popScopeId as Ee } from "vue";
|
|
7
|
+
import { d as X } from "./dayjs.min-8313b006.js";
|
|
8
|
+
import { V as Pe, U as De } from "./index-7ed0999e.js";
|
|
9
|
+
import { s as Fe } from "./aiTools-9c59a74a.js";
|
|
10
|
+
import { E as ie, w as Ne, o as Ve, p as Me, s as Ae, c as Ye, u as He, t as Le, v as Be, x as Ie, y as xe } from "./index-1b97095f.js";
|
|
11
|
+
import { _ as ze } from "./_plugin-vue_export-helper-dad06003.js";
|
|
12
|
+
import { E as ee } from "./index-499cf989.js";
|
|
13
|
+
import { k as Oe, i as Re } from "./use-form-common-props-dd9617de.js";
|
|
14
|
+
import "./index-8e88a0bd.js";
|
|
15
15
|
import "./index-8391a3df.js";
|
|
16
16
|
import "./index-de24705f.js";
|
|
17
17
|
import "./index-2e331d74.js";
|
|
18
18
|
import "./vnode-a83e6de8.js";
|
|
19
19
|
import "./scroll-6799bafc.js";
|
|
20
|
-
import "./use-global-config-
|
|
21
|
-
import "./index-
|
|
20
|
+
import "./use-global-config-4dfc7236.js";
|
|
21
|
+
import "./index-33430c9f.js";
|
|
22
22
|
import "./index-657047bb.js";
|
|
23
23
|
import "./typescript-7ae59c4c.js";
|
|
24
|
-
import "./index-
|
|
25
|
-
import "./config-provider-
|
|
26
|
-
const
|
|
24
|
+
import "./index-d3e9a6f2.js";
|
|
25
|
+
import "./config-provider-20b05e99.js";
|
|
26
|
+
const Ue = de({
|
|
27
27
|
size: {
|
|
28
28
|
type: [Number, String],
|
|
29
|
-
values:
|
|
29
|
+
values: Oe,
|
|
30
30
|
default: "",
|
|
31
|
-
validator: (
|
|
31
|
+
validator: (p) => pe(p)
|
|
32
32
|
},
|
|
33
33
|
shape: {
|
|
34
34
|
type: String,
|
|
@@ -36,7 +36,7 @@ const Pe = re({
|
|
|
36
36
|
default: "circle"
|
|
37
37
|
},
|
|
38
38
|
icon: {
|
|
39
|
-
type:
|
|
39
|
+
type: Re
|
|
40
40
|
},
|
|
41
41
|
src: {
|
|
42
42
|
type: String,
|
|
@@ -45,85 +45,273 @@ const Pe = re({
|
|
|
45
45
|
alt: String,
|
|
46
46
|
srcSet: String,
|
|
47
47
|
fit: {
|
|
48
|
-
type:
|
|
48
|
+
type: te(String),
|
|
49
49
|
default: "cover"
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
52
|
-
error: (
|
|
53
|
-
},
|
|
51
|
+
}), je = {
|
|
52
|
+
error: (p) => p instanceof Event
|
|
53
|
+
}, Je = se({
|
|
54
54
|
name: "ElAvatar"
|
|
55
|
-
}),
|
|
56
|
-
...
|
|
57
|
-
props:
|
|
58
|
-
emits:
|
|
59
|
-
setup(
|
|
60
|
-
const
|
|
61
|
-
const { size:
|
|
62
|
-
return
|
|
63
|
-
}),
|
|
64
|
-
const { size:
|
|
65
|
-
return
|
|
66
|
-
size:
|
|
55
|
+
}), We = /* @__PURE__ */ se({
|
|
56
|
+
...Je,
|
|
57
|
+
props: Ue,
|
|
58
|
+
emits: je,
|
|
59
|
+
setup(p, { emit: c }) {
|
|
60
|
+
const P = p, r = fe("avatar"), D = b(!1), F = f(() => {
|
|
61
|
+
const { size: u, icon: v, shape: A } = P, w = [r.b()];
|
|
62
|
+
return oe(u) && w.push(r.m(u)), v && w.push(r.m("icon")), A && w.push(r.m(A)), w;
|
|
63
|
+
}), U = f(() => {
|
|
64
|
+
const { size: u } = P;
|
|
65
|
+
return pe(u) ? r.cssVarBlock({
|
|
66
|
+
size: _e(u) || ""
|
|
67
67
|
}) : void 0;
|
|
68
|
-
}), j =
|
|
69
|
-
objectFit:
|
|
68
|
+
}), j = f(() => ({
|
|
69
|
+
objectFit: P.fit
|
|
70
70
|
}));
|
|
71
|
-
|
|
72
|
-
function
|
|
73
|
-
|
|
71
|
+
re(() => P.src, () => D.value = !1);
|
|
72
|
+
function k(u) {
|
|
73
|
+
D.value = !0, c("error", u);
|
|
74
74
|
}
|
|
75
|
-
return (
|
|
76
|
-
class:
|
|
77
|
-
style:
|
|
75
|
+
return (u, v) => (i(), d("span", {
|
|
76
|
+
class: C(s(F)),
|
|
77
|
+
style: z(s(U))
|
|
78
78
|
}, [
|
|
79
|
-
(
|
|
79
|
+
(u.src || u.srcSet) && !D.value ? (i(), d("img", {
|
|
80
80
|
key: 0,
|
|
81
|
-
src:
|
|
82
|
-
alt:
|
|
83
|
-
srcset:
|
|
84
|
-
style:
|
|
85
|
-
onError:
|
|
86
|
-
}, null, 44, ["src", "alt", "srcset"])) :
|
|
87
|
-
default:
|
|
88
|
-
(
|
|
81
|
+
src: u.src,
|
|
82
|
+
alt: u.alt,
|
|
83
|
+
srcset: u.srcSet,
|
|
84
|
+
style: z(s(j)),
|
|
85
|
+
onError: k
|
|
86
|
+
}, null, 44, ["src", "alt", "srcset"])) : u.icon ? (i(), q(s(ie), { key: 1 }, {
|
|
87
|
+
default: E(() => [
|
|
88
|
+
(i(), q(ge(u.icon)))
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
91
|
-
})) :
|
|
91
|
+
})) : le(u.$slots, "default", { key: 2 })
|
|
92
92
|
], 6));
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
|
-
var
|
|
96
|
-
const
|
|
97
|
-
|
|
95
|
+
var qe = /* @__PURE__ */ me(We, [["__file", "avatar.vue"]]);
|
|
96
|
+
const Ke = ve(qe), Ge = de({
|
|
97
|
+
type: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: "line",
|
|
100
|
+
values: ["line", "circle", "dashboard"]
|
|
101
|
+
},
|
|
102
|
+
percentage: {
|
|
103
|
+
type: Number,
|
|
104
|
+
default: 0,
|
|
105
|
+
validator: (p) => p >= 0 && p <= 100
|
|
106
|
+
},
|
|
107
|
+
status: {
|
|
108
|
+
type: String,
|
|
109
|
+
default: "",
|
|
110
|
+
values: ["", "success", "exception", "warning"]
|
|
111
|
+
},
|
|
112
|
+
indeterminate: Boolean,
|
|
113
|
+
duration: {
|
|
114
|
+
type: Number,
|
|
115
|
+
default: 3
|
|
116
|
+
},
|
|
117
|
+
strokeWidth: {
|
|
118
|
+
type: Number,
|
|
119
|
+
default: 6
|
|
120
|
+
},
|
|
121
|
+
strokeLinecap: {
|
|
122
|
+
type: te(String),
|
|
123
|
+
default: "round"
|
|
124
|
+
},
|
|
125
|
+
textInside: Boolean,
|
|
126
|
+
width: {
|
|
127
|
+
type: Number,
|
|
128
|
+
default: 126
|
|
129
|
+
},
|
|
130
|
+
showText: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: !0
|
|
133
|
+
},
|
|
134
|
+
color: {
|
|
135
|
+
type: te([
|
|
136
|
+
String,
|
|
137
|
+
Array,
|
|
138
|
+
Function
|
|
139
|
+
]),
|
|
140
|
+
default: ""
|
|
141
|
+
},
|
|
142
|
+
striped: Boolean,
|
|
143
|
+
stripedFlow: Boolean,
|
|
144
|
+
format: {
|
|
145
|
+
type: te(Function),
|
|
146
|
+
default: (p) => `${p}%`
|
|
147
|
+
}
|
|
148
|
+
}), Qe = se({
|
|
149
|
+
name: "ElProgress"
|
|
150
|
+
}), Xe = /* @__PURE__ */ se({
|
|
151
|
+
...Qe,
|
|
152
|
+
props: Ge,
|
|
153
|
+
setup(p) {
|
|
154
|
+
const c = p, P = {
|
|
155
|
+
success: "#13ce66",
|
|
156
|
+
exception: "#ff4949",
|
|
157
|
+
warning: "#e6a23c",
|
|
158
|
+
default: "#20a0ff"
|
|
159
|
+
}, r = fe("progress"), D = f(() => {
|
|
160
|
+
const e = {
|
|
161
|
+
width: `${c.percentage}%`,
|
|
162
|
+
animationDuration: `${c.duration}s`
|
|
163
|
+
}, g = K(c.percentage);
|
|
164
|
+
return g.includes("gradient") ? e.background = g : e.backgroundColor = g, e;
|
|
165
|
+
}), F = f(() => (c.strokeWidth / c.width * 100).toFixed(1)), U = f(() => ["circle", "dashboard"].includes(c.type) ? Number.parseInt(`${50 - Number.parseFloat(F.value) / 2}`, 10) : 0), j = f(() => {
|
|
166
|
+
const e = U.value, g = c.type === "dashboard";
|
|
167
|
+
return `
|
|
168
|
+
M 50 50
|
|
169
|
+
m 0 ${g ? "" : "-"}${e}
|
|
170
|
+
a ${e} ${e} 0 1 1 0 ${g ? "-" : ""}${e * 2}
|
|
171
|
+
a ${e} ${e} 0 1 1 0 ${g ? "" : "-"}${e * 2}
|
|
172
|
+
`;
|
|
173
|
+
}), k = f(() => 2 * Math.PI * U.value), u = f(() => c.type === "dashboard" ? 0.75 : 1), v = f(() => `${-1 * k.value * (1 - u.value) / 2}px`), A = f(() => ({
|
|
174
|
+
strokeDasharray: `${k.value * u.value}px, ${k.value}px`,
|
|
175
|
+
strokeDashoffset: v.value
|
|
176
|
+
})), w = f(() => ({
|
|
177
|
+
strokeDasharray: `${k.value * u.value * (c.percentage / 100)}px, ${k.value}px`,
|
|
178
|
+
strokeDashoffset: v.value,
|
|
179
|
+
transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
|
|
180
|
+
})), l = f(() => {
|
|
181
|
+
let e;
|
|
182
|
+
return c.color ? e = K(c.percentage) : e = P[c.status] || P.default, e;
|
|
183
|
+
}), N = f(() => c.status === "warning" ? Ne : c.type === "line" ? c.status === "success" ? Ve : Me : c.status === "success" ? Ae : Ye), Y = f(() => c.type === "line" ? 12 + c.strokeWidth * 0.4 : c.width * 0.111111 + 2), H = f(() => c.format(c.percentage));
|
|
184
|
+
function Z(e) {
|
|
185
|
+
const g = 100 / e.length;
|
|
186
|
+
return e.map((y, B) => oe(y) ? {
|
|
187
|
+
color: y,
|
|
188
|
+
percentage: (B + 1) * g
|
|
189
|
+
} : y).sort((y, B) => y.percentage - B.percentage);
|
|
190
|
+
}
|
|
191
|
+
const K = (e) => {
|
|
192
|
+
var g;
|
|
193
|
+
const { color: L } = c;
|
|
194
|
+
if (ye(L))
|
|
195
|
+
return L(e);
|
|
196
|
+
if (oe(L))
|
|
197
|
+
return L;
|
|
198
|
+
{
|
|
199
|
+
const y = Z(L);
|
|
200
|
+
for (const B of y)
|
|
201
|
+
if (B.percentage > e)
|
|
202
|
+
return B.color;
|
|
203
|
+
return (g = y[y.length - 1]) == null ? void 0 : g.color;
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
return (e, g) => (i(), d("div", {
|
|
207
|
+
class: C([
|
|
208
|
+
s(r).b(),
|
|
209
|
+
s(r).m(e.type),
|
|
210
|
+
s(r).is(e.status),
|
|
211
|
+
{
|
|
212
|
+
[s(r).m("without-text")]: !e.showText,
|
|
213
|
+
[s(r).m("text-inside")]: e.textInside
|
|
214
|
+
}
|
|
215
|
+
]),
|
|
216
|
+
role: "progressbar",
|
|
217
|
+
"aria-valuenow": e.percentage,
|
|
218
|
+
"aria-valuemin": "0",
|
|
219
|
+
"aria-valuemax": "100"
|
|
220
|
+
}, [
|
|
221
|
+
e.type === "line" ? (i(), d("div", {
|
|
222
|
+
key: 0,
|
|
223
|
+
class: C(s(r).b("bar"))
|
|
224
|
+
}, [
|
|
225
|
+
o("div", {
|
|
226
|
+
class: C(s(r).be("bar", "outer")),
|
|
227
|
+
style: z({ height: `${e.strokeWidth}px` })
|
|
228
|
+
}, [
|
|
229
|
+
o("div", {
|
|
230
|
+
class: C([
|
|
231
|
+
s(r).be("bar", "inner"),
|
|
232
|
+
{ [s(r).bem("bar", "inner", "indeterminate")]: e.indeterminate },
|
|
233
|
+
{ [s(r).bem("bar", "inner", "striped")]: e.striped },
|
|
234
|
+
{ [s(r).bem("bar", "inner", "striped-flow")]: e.stripedFlow }
|
|
235
|
+
]),
|
|
236
|
+
style: z(s(D))
|
|
237
|
+
}, [
|
|
238
|
+
(e.showText || e.$slots.default) && e.textInside ? (i(), d("div", {
|
|
239
|
+
key: 0,
|
|
240
|
+
class: C(s(r).be("bar", "innerText"))
|
|
241
|
+
}, [
|
|
242
|
+
le(e.$slots, "default", { percentage: e.percentage }, () => [
|
|
243
|
+
o("span", null, O(s(H)), 1)
|
|
244
|
+
])
|
|
245
|
+
], 2)) : M("v-if", !0)
|
|
246
|
+
], 6)
|
|
247
|
+
], 6)
|
|
248
|
+
], 2)) : (i(), d("div", {
|
|
249
|
+
key: 1,
|
|
250
|
+
class: C(s(r).b("circle")),
|
|
251
|
+
style: z({ height: `${e.width}px`, width: `${e.width}px` })
|
|
252
|
+
}, [
|
|
253
|
+
(i(), d("svg", { viewBox: "0 0 100 100" }, [
|
|
254
|
+
o("path", {
|
|
255
|
+
class: C(s(r).be("circle", "track")),
|
|
256
|
+
d: s(j),
|
|
257
|
+
stroke: `var(${s(r).cssVarName("fill-color-light")}, #e5e9f2)`,
|
|
258
|
+
"stroke-linecap": e.strokeLinecap,
|
|
259
|
+
"stroke-width": s(F),
|
|
260
|
+
fill: "none",
|
|
261
|
+
style: z(s(A))
|
|
262
|
+
}, null, 14, ["d", "stroke", "stroke-linecap", "stroke-width"]),
|
|
263
|
+
o("path", {
|
|
264
|
+
class: C(s(r).be("circle", "path")),
|
|
265
|
+
d: s(j),
|
|
266
|
+
stroke: s(l),
|
|
267
|
+
fill: "none",
|
|
268
|
+
opacity: e.percentage ? 1 : 0,
|
|
269
|
+
"stroke-linecap": e.strokeLinecap,
|
|
270
|
+
"stroke-width": s(F),
|
|
271
|
+
style: z(s(w))
|
|
272
|
+
}, null, 14, ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"])
|
|
273
|
+
]))
|
|
274
|
+
], 6)),
|
|
275
|
+
(e.showText || e.$slots.default) && !e.textInside ? (i(), d("div", {
|
|
276
|
+
key: 2,
|
|
277
|
+
class: C(s(r).e("text")),
|
|
278
|
+
style: z({ fontSize: `${s(Y)}px` })
|
|
279
|
+
}, [
|
|
280
|
+
le(e.$slots, "default", { percentage: e.percentage }, () => [
|
|
281
|
+
e.status ? (i(), q(s(ie), { key: 1 }, {
|
|
282
|
+
default: E(() => [
|
|
283
|
+
(i(), q(ge(s(N))))
|
|
284
|
+
]),
|
|
285
|
+
_: 1
|
|
286
|
+
})) : (i(), d("span", { key: 0 }, O(s(H)), 1))
|
|
287
|
+
])
|
|
288
|
+
], 6)) : M("v-if", !0)
|
|
289
|
+
], 10, ["aria-valuenow"]));
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
var Ze = /* @__PURE__ */ me(Xe, [["__file", "progress.vue"]]);
|
|
293
|
+
const et = ve(Ze);
|
|
294
|
+
const R = (p) => ($e("data-v-6c033243"), p = p(), Ee(), p), tt = { class: "ai-dialog-body" }, st = { class: "avatar" }, at = { class: "message-content" }, nt = {
|
|
98
295
|
key: 0,
|
|
99
296
|
class: "node-progress"
|
|
100
|
-
},
|
|
101
|
-
key: 0,
|
|
102
|
-
class: "node-progress-item next-step"
|
|
103
|
-
}, Ke = { class: "node-status-icon" }, Ue = /* @__PURE__ */ h(() => /* @__PURE__ */ s("span", { class: "node-name" }, "正在执行下一步...", -1)), qe = ["innerHTML"], We = {
|
|
297
|
+
}, ot = { class: "node-status-icon" }, rt = { class: "node-name" }, lt = { class: "progress-footer" }, it = { class: "progress-text" }, ct = ["innerHTML"], ut = {
|
|
104
298
|
key: 2,
|
|
105
299
|
class: "message-text"
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
],
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
],
|
|
300
|
+
}, dt = { class: "message-createTime" }, pt = /* @__PURE__ */ R(() => /* @__PURE__ */ o("div", { class: "message-createTime" }, "请问对本轮查询结果是否满意?", -1)), ft = { class: "feedback-buttons" }, mt = ["onClick"], vt = /* @__PURE__ */ R(() => /* @__PURE__ */ o("span", { class: "btn-emoji" }, "👍", -1)), gt = /* @__PURE__ */ R(() => /* @__PURE__ */ o("span", { class: "btn-text" }, "满意", -1)), ht = [
|
|
301
|
+
vt,
|
|
302
|
+
gt
|
|
303
|
+
], kt = ["onClick"], _t = /* @__PURE__ */ R(() => /* @__PURE__ */ o("span", { class: "btn-emoji" }, "👎", -1)), yt = /* @__PURE__ */ R(() => /* @__PURE__ */ o("span", { class: "btn-text" }, "不满意", -1)), bt = [
|
|
304
|
+
_t,
|
|
305
|
+
yt
|
|
306
|
+
], wt = {
|
|
113
307
|
key: 1,
|
|
114
308
|
class: "message-createTime"
|
|
115
|
-
},
|
|
309
|
+
}, Tt = {
|
|
116
310
|
key: 0,
|
|
117
|
-
class: "
|
|
118
|
-
},
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
|
|
121
|
-
/* @__PURE__ */ s("span"),
|
|
122
|
-
/* @__PURE__ */ s("span")
|
|
123
|
-
])
|
|
124
|
-
], -1)), dt = { class: "input-area" }, mt = { class: "input-actions" }, pt = /* @__PURE__ */ h(() => /* @__PURE__ */ s("div", { class: "input-hint" }, [
|
|
125
|
-
/* @__PURE__ */ s("span", null, "Enter 发送 | Ctrl + Enter 换行")
|
|
126
|
-
], -1)), ft = { class: "feedback-dialog-content" }, vt = /* @__PURE__ */ h(() => /* @__PURE__ */ s("div", { class: "feedback-emoji" }, "😟", -1)), _t = /* @__PURE__ */ h(() => /* @__PURE__ */ s("p", { class: "feedback-tip" }, "很抱歉没能帮到您,请告诉我们哪里需要改进:", -1)), gt = { class: "dialog-footer" }, ht = {
|
|
311
|
+
class: "thinking-placeholder"
|
|
312
|
+
}, St = { class: "input-area" }, Ct = { class: "input-actions" }, $t = /* @__PURE__ */ R(() => /* @__PURE__ */ o("div", { class: "input-hint" }, [
|
|
313
|
+
/* @__PURE__ */ o("span", null, "Enter 发送 | Ctrl + Enter 换行")
|
|
314
|
+
], -1)), Et = { class: "feedback-dialog-content" }, Pt = /* @__PURE__ */ R(() => /* @__PURE__ */ o("div", { class: "feedback-emoji" }, "😟", -1)), Dt = /* @__PURE__ */ R(() => /* @__PURE__ */ o("p", { class: "feedback-tip" }, "很抱歉没能帮到您,请告诉我们哪里需要改进:", -1)), Ft = { class: "dialog-footer" }, Nt = {
|
|
127
315
|
__name: "index",
|
|
128
316
|
props: {
|
|
129
317
|
defaultMessage: {
|
|
@@ -135,217 +323,218 @@ const h = (d) => (Te("data-v-c6a98338"), d = d(), we(), d), Ie = { class: "ai-di
|
|
|
135
323
|
}
|
|
136
324
|
},
|
|
137
325
|
emits: ["callBack"],
|
|
138
|
-
setup(
|
|
139
|
-
const
|
|
326
|
+
setup(p, { expose: c, emit: P }) {
|
|
327
|
+
const r = Se("stConfig"), D = Ce(Pe()), F = b(!1), U = P, j = p, k = b(!1), u = b(!1), v = b([]), A = b(!1), w = b(null), l = b([
|
|
140
328
|
{
|
|
141
329
|
role: "assistant",
|
|
142
330
|
content: j.defaultMessage,
|
|
143
331
|
userContent: null,
|
|
144
332
|
showFeedback: !1,
|
|
145
333
|
hasFeedback: !1,
|
|
146
|
-
createTime:
|
|
334
|
+
createTime: X().format("YYYY-MM-DD HH:mm:ss"),
|
|
147
335
|
resTime: 0,
|
|
148
336
|
firstPackageTime: 0
|
|
149
337
|
}
|
|
150
|
-
]),
|
|
151
|
-
|
|
338
|
+
]), N = b(""), Y = b(!1), H = b(""), Z = b({}), K = f(() => v.value.filter((a) => a.status === "success").length), e = f(() => v.value.length), g = f(() => e.value ? K.value / e.value * 100 : 0), L = f(() => {
|
|
339
|
+
const a = v.value.find((t) => t.status === "executing");
|
|
340
|
+
return a ? a.name : "处理中";
|
|
341
|
+
}), y = (a) => {
|
|
342
|
+
if (typeof a != "string")
|
|
152
343
|
return !1;
|
|
153
344
|
try {
|
|
154
|
-
const
|
|
155
|
-
return
|
|
345
|
+
const t = JSON.parse(a);
|
|
346
|
+
return t !== null && typeof t == "object";
|
|
156
347
|
} catch {
|
|
157
348
|
return !1;
|
|
158
349
|
}
|
|
159
|
-
},
|
|
160
|
-
if (!
|
|
350
|
+
}, B = (a) => {
|
|
351
|
+
if (!y(a))
|
|
161
352
|
return null;
|
|
162
353
|
try {
|
|
163
|
-
const
|
|
164
|
-
return { parsedConditions:
|
|
354
|
+
const t = JSON.parse(a), { parsedConditions: n, ...T } = t;
|
|
355
|
+
return { parsedConditions: n, webParams: T };
|
|
165
356
|
} catch {
|
|
166
357
|
return null;
|
|
167
358
|
}
|
|
168
|
-
},
|
|
169
|
-
var
|
|
170
|
-
if (!
|
|
359
|
+
}, he = (a) => {
|
|
360
|
+
var n;
|
|
361
|
+
if (!a)
|
|
171
362
|
return "";
|
|
172
|
-
let
|
|
173
|
-
return (
|
|
174
|
-
|
|
175
|
-
}),
|
|
176
|
-
},
|
|
177
|
-
switch (
|
|
363
|
+
let t = "";
|
|
364
|
+
return (n = a.parsedConditions) != null && n.length && (t += '<div class="parsed-conditions">', a.parsedConditions.forEach((T) => {
|
|
365
|
+
t += `<div class="parsed-conditions-item">${T}</div>`;
|
|
366
|
+
}), t += "</div>"), t;
|
|
367
|
+
}, J = async (a, t) => {
|
|
368
|
+
switch (a) {
|
|
178
369
|
case "satisfied": {
|
|
179
|
-
const
|
|
180
|
-
await
|
|
181
|
-
userName:
|
|
182
|
-
userContent:
|
|
183
|
-
aiContent:
|
|
370
|
+
const n = l.value[t];
|
|
371
|
+
await r.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
372
|
+
userName: D.username,
|
|
373
|
+
userContent: n.userContent,
|
|
374
|
+
aiContent: n.content,
|
|
184
375
|
type: 1,
|
|
185
|
-
createTime:
|
|
186
|
-
resTime:
|
|
187
|
-
firstPackageTime:
|
|
376
|
+
createTime: n.createTime,
|
|
377
|
+
resTime: n.resTime,
|
|
378
|
+
firstPackageTime: n.firstPackageTime,
|
|
188
379
|
isSolved: 1,
|
|
189
380
|
logOrigin: 1
|
|
190
|
-
}),
|
|
381
|
+
}), ee.success("感谢您的评价!"), l.value[t].hasFeedback = !0;
|
|
191
382
|
break;
|
|
192
383
|
}
|
|
193
384
|
case "open": {
|
|
194
|
-
|
|
385
|
+
Z.value = t, Y.value = !0;
|
|
195
386
|
break;
|
|
196
387
|
}
|
|
197
388
|
case "unsatisfied": {
|
|
198
|
-
const
|
|
199
|
-
await
|
|
200
|
-
userName:
|
|
201
|
-
userContent:
|
|
202
|
-
userSuggestion:
|
|
203
|
-
aiContent:
|
|
389
|
+
const n = l.value[t];
|
|
390
|
+
await r.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
391
|
+
userName: D.username,
|
|
392
|
+
userContent: n.userContent,
|
|
393
|
+
userSuggestion: H.value,
|
|
394
|
+
aiContent: n.content,
|
|
204
395
|
type: 2,
|
|
205
|
-
resTime:
|
|
206
|
-
createTime:
|
|
207
|
-
firstPackageTime:
|
|
396
|
+
resTime: n.resTime,
|
|
397
|
+
createTime: n.createTime,
|
|
398
|
+
firstPackageTime: n.firstPackageTime,
|
|
208
399
|
isSolved: 0,
|
|
209
400
|
logOrigin: 1
|
|
210
|
-
}),
|
|
401
|
+
}), ee.success("感谢您的反馈!我们将持续跟踪并进行优化"), Y.value = !1, l.value[t].hasFeedback = !0;
|
|
211
402
|
break;
|
|
212
403
|
}
|
|
213
404
|
case "default": {
|
|
214
|
-
const
|
|
215
|
-
await
|
|
216
|
-
userName:
|
|
217
|
-
userContent:
|
|
218
|
-
userSuggestion:
|
|
219
|
-
aiContent:
|
|
405
|
+
const n = l.value[t];
|
|
406
|
+
await r.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
407
|
+
userName: D.username,
|
|
408
|
+
userContent: n.userContent,
|
|
409
|
+
userSuggestion: H.value,
|
|
410
|
+
aiContent: n.content,
|
|
220
411
|
type: null,
|
|
221
|
-
resTime:
|
|
222
|
-
createTime:
|
|
223
|
-
firstPackageTime:
|
|
412
|
+
resTime: n.resTime,
|
|
413
|
+
createTime: n.createTime,
|
|
414
|
+
firstPackageTime: n.firstPackageTime,
|
|
224
415
|
isSolved: 1,
|
|
225
416
|
logOrigin: 1
|
|
226
417
|
});
|
|
227
418
|
}
|
|
228
419
|
}
|
|
229
|
-
},
|
|
230
|
-
const
|
|
231
|
-
if (!
|
|
232
|
-
return
|
|
233
|
-
if (
|
|
420
|
+
}, ce = async () => {
|
|
421
|
+
const a = N.value.trim();
|
|
422
|
+
if (!a)
|
|
423
|
+
return ee.warning("请输入消息内容");
|
|
424
|
+
if (k.value)
|
|
234
425
|
return;
|
|
235
|
-
|
|
426
|
+
v.value = [], A.value = !1, l.value.push({
|
|
236
427
|
role: "user",
|
|
237
|
-
content:
|
|
238
|
-
createTime:
|
|
239
|
-
}),
|
|
428
|
+
content: a,
|
|
429
|
+
createTime: X().format("YYYY-MM-DD HH:mm:ss")
|
|
430
|
+
}), N.value = "", await I(), l.value.push({
|
|
240
431
|
role: "assistant",
|
|
241
432
|
content: "",
|
|
242
|
-
userContent:
|
|
433
|
+
userContent: a,
|
|
243
434
|
showFeedback: !1,
|
|
244
435
|
hasFeedback: !1,
|
|
245
|
-
createTime:
|
|
436
|
+
createTime: X().format("YYYY-MM-DD HH:mm:ss"),
|
|
246
437
|
resTime: 0,
|
|
247
438
|
firstPackageTime: 0
|
|
248
|
-
}), await
|
|
249
|
-
let
|
|
439
|
+
}), await I(), k.value = !0, u.value = !0;
|
|
440
|
+
let t = "", n = (/* @__PURE__ */ new Date()).getTime(), T = !1;
|
|
250
441
|
try {
|
|
251
|
-
await
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
if (V === "error") {
|
|
259
|
-
i.value = !1, y.value = !1, o.value.pop(), o.value.push({
|
|
442
|
+
await Fe({
|
|
443
|
+
baseUrl: r.env.VITE_BASE_URL,
|
|
444
|
+
token: De(),
|
|
445
|
+
value: a,
|
|
446
|
+
callback: (x, V) => {
|
|
447
|
+
if (x === "error") {
|
|
448
|
+
u.value = !1, k.value = !1, l.value.pop(), l.value.push({
|
|
260
449
|
role: "assistant",
|
|
261
|
-
userContent:
|
|
262
|
-
content: `❌ ${
|
|
450
|
+
userContent: a,
|
|
451
|
+
content: `❌ ${V}`,
|
|
263
452
|
showFeedback: !1,
|
|
264
453
|
hasFeedback: !1,
|
|
265
|
-
createTime:
|
|
266
|
-
resTime: (/* @__PURE__ */ new Date()).getTime() -
|
|
454
|
+
createTime: X().format("YYYY-MM-DD HH:mm:ss"),
|
|
455
|
+
resTime: (/* @__PURE__ */ new Date()).getTime() - n,
|
|
267
456
|
firstPackageTime: 0
|
|
268
|
-
}),
|
|
457
|
+
}), J("default", l.value.length - 1), I();
|
|
269
458
|
return;
|
|
270
459
|
}
|
|
271
|
-
if (
|
|
272
|
-
if (!
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
|
|
460
|
+
if (x === "node") {
|
|
461
|
+
if (!T) {
|
|
462
|
+
T = !0, u.value = !1;
|
|
463
|
+
const _ = l.value[l.value.length - 1];
|
|
464
|
+
_ && _.role === "assistant" && _.firstPackageTime === 0 && (_.firstPackageTime = (/* @__PURE__ */ new Date()).getTime() - n);
|
|
276
465
|
}
|
|
277
|
-
const
|
|
278
|
-
|
|
466
|
+
const h = v.value.find((_) => _.name === V.name);
|
|
467
|
+
h ? h.status = V.status : v.value.push({ name: V.name, status: V.status }), I();
|
|
279
468
|
return;
|
|
280
469
|
}
|
|
281
|
-
if (
|
|
282
|
-
|
|
283
|
-
const
|
|
284
|
-
|
|
470
|
+
if (x === "message") {
|
|
471
|
+
t = V;
|
|
472
|
+
const h = l.value[l.value.length - 1];
|
|
473
|
+
h && h.role === "assistant" && (h.content = t, I());
|
|
285
474
|
}
|
|
286
|
-
if (
|
|
287
|
-
|
|
288
|
-
const
|
|
289
|
-
|
|
475
|
+
if (x === "finish") {
|
|
476
|
+
k.value = !1, A.value = !0;
|
|
477
|
+
const h = l.value[l.value.length - 1];
|
|
478
|
+
h && h.role === "assistant" && (h.showFeedback = !0, h.resTime = (/* @__PURE__ */ new Date()).getTime() - n, J("default", l.value.length - 1));
|
|
290
479
|
try {
|
|
291
|
-
const
|
|
292
|
-
|
|
480
|
+
const _ = JSON.parse(t);
|
|
481
|
+
_.parsedConditions && delete _.parsedConditions, U("callBack", _);
|
|
293
482
|
} catch {
|
|
294
|
-
|
|
483
|
+
U("callBack", t);
|
|
295
484
|
}
|
|
296
485
|
}
|
|
297
486
|
}
|
|
298
487
|
});
|
|
299
|
-
} catch (
|
|
300
|
-
|
|
488
|
+
} catch (x) {
|
|
489
|
+
ee.error(`AI响应异常: ${x}`), l.value.pop(), l.value.push({
|
|
301
490
|
role: "assistant",
|
|
302
|
-
userContent:
|
|
491
|
+
userContent: a,
|
|
303
492
|
content: "❌ 抱歉,AI服务响应异常,请稍后重试。",
|
|
304
493
|
showFeedback: !0,
|
|
305
494
|
hasFeedback: !1,
|
|
306
|
-
createTime:
|
|
307
|
-
resTime: (/* @__PURE__ */ new Date()).getTime() -
|
|
495
|
+
createTime: X().format("YYYY-MM-DD HH:mm:ss"),
|
|
496
|
+
resTime: (/* @__PURE__ */ new Date()).getTime() - n,
|
|
308
497
|
firstPackageTime: 0
|
|
309
|
-
}),
|
|
498
|
+
}), J("default", l.value.length - 1), await I(), k.value = !1, u.value = !1;
|
|
310
499
|
}
|
|
311
|
-
},
|
|
312
|
-
if (
|
|
313
|
-
if (
|
|
314
|
-
|
|
315
|
-
const
|
|
316
|
-
|
|
317
|
-
` +
|
|
318
|
-
|
|
500
|
+
}, ke = (a) => {
|
|
501
|
+
if (a.key === "Enter")
|
|
502
|
+
if (a.ctrlKey) {
|
|
503
|
+
a.preventDefault();
|
|
504
|
+
const t = a.target, n = t.selectionStart, T = t.selectionEnd;
|
|
505
|
+
N.value = N.value.substring(0, n) + `
|
|
506
|
+
` + N.value.substring(T), ae(() => {
|
|
507
|
+
t.selectionStart = t.selectionEnd = n + 1;
|
|
319
508
|
});
|
|
320
509
|
} else
|
|
321
|
-
|
|
322
|
-
},
|
|
323
|
-
await
|
|
510
|
+
a.preventDefault(), ce();
|
|
511
|
+
}, I = async () => {
|
|
512
|
+
await ae(), w.value && (w.value.scrollTop = w.value.scrollHeight);
|
|
324
513
|
};
|
|
325
|
-
return
|
|
326
|
-
() =>
|
|
514
|
+
return re(
|
|
515
|
+
() => l.value,
|
|
327
516
|
() => {
|
|
328
|
-
|
|
517
|
+
I();
|
|
329
518
|
},
|
|
330
519
|
{ deep: !0 }
|
|
331
|
-
),
|
|
520
|
+
), re(
|
|
332
521
|
() => Y.value,
|
|
333
|
-
(
|
|
334
|
-
|
|
522
|
+
(a) => {
|
|
523
|
+
a || (H.value = "");
|
|
335
524
|
}
|
|
336
|
-
),
|
|
525
|
+
), c({
|
|
337
526
|
open: () => {
|
|
338
|
-
|
|
339
|
-
|
|
527
|
+
F.value = !0, ae(() => {
|
|
528
|
+
I();
|
|
340
529
|
});
|
|
341
530
|
}
|
|
342
|
-
}), (
|
|
343
|
-
const
|
|
344
|
-
return
|
|
345
|
-
|
|
531
|
+
}), (a, t) => {
|
|
532
|
+
const n = Ke, T = ie, x = et, V = Te, h = we, _ = be;
|
|
533
|
+
return i(), d(W, null, [
|
|
534
|
+
S(_, {
|
|
346
535
|
class: "ai-dialog",
|
|
347
|
-
modelValue:
|
|
348
|
-
"onUpdate:modelValue":
|
|
536
|
+
modelValue: F.value,
|
|
537
|
+
"onUpdate:modelValue": t[1] || (t[1] = ($) => F.value = $),
|
|
349
538
|
title: "✨ 品种池参数解析AI助手",
|
|
350
539
|
width: "500px",
|
|
351
540
|
center: "",
|
|
@@ -354,123 +543,113 @@ const h = (d) => (Te("data-v-c6a98338"), d = d(), we(), d), Ie = { class: "ai-di
|
|
|
354
543
|
modal: !1,
|
|
355
544
|
"modal-penetrable": !0
|
|
356
545
|
}, {
|
|
357
|
-
default:
|
|
358
|
-
var
|
|
546
|
+
default: E(() => {
|
|
547
|
+
var $;
|
|
359
548
|
return [
|
|
360
|
-
|
|
361
|
-
|
|
549
|
+
o("div", tt, [
|
|
550
|
+
o("div", {
|
|
362
551
|
ref_key: "messageListRef",
|
|
363
|
-
ref:
|
|
552
|
+
ref: w,
|
|
364
553
|
class: "message-list"
|
|
365
554
|
}, [
|
|
366
|
-
(
|
|
367
|
-
key:
|
|
368
|
-
class:
|
|
555
|
+
(i(!0), d(W, null, ue(l.value, (m, G) => (i(), d("div", {
|
|
556
|
+
key: G,
|
|
557
|
+
class: C([m.role, "message-item"])
|
|
369
558
|
}, [
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
559
|
+
m.content || G === l.value.length - 1 && m.role === "assistant" && v.value.length > 0 ? (i(), d(W, { key: 0 }, [
|
|
560
|
+
o("div", st, [
|
|
561
|
+
S(n, {
|
|
373
562
|
size: 32,
|
|
374
|
-
icon:
|
|
563
|
+
icon: m.role === "user" ? s(He) : s(Le)
|
|
375
564
|
}, null, 8, ["icon"])
|
|
376
565
|
]),
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
(
|
|
380
|
-
key:
|
|
566
|
+
o("div", at, [
|
|
567
|
+
G === l.value.length - 1 && m.role === "assistant" && v.value.length > 0 && !A.value ? (i(), d("div", nt, [
|
|
568
|
+
(i(!0), d(W, null, ue(v.value, (Q) => (i(), d("div", {
|
|
569
|
+
key: Q.name,
|
|
381
570
|
class: "node-progress-item"
|
|
382
571
|
}, [
|
|
383
|
-
|
|
384
|
-
|
|
572
|
+
o("span", ot, [
|
|
573
|
+
Q.status === "success" ? (i(), q(T, {
|
|
385
574
|
key: 0,
|
|
386
575
|
class: "node-icon done"
|
|
387
576
|
}, {
|
|
388
|
-
default:
|
|
389
|
-
|
|
577
|
+
default: E(() => [
|
|
578
|
+
S(s(Be))
|
|
390
579
|
]),
|
|
391
580
|
_: 1
|
|
392
|
-
})) : (
|
|
581
|
+
})) : (i(), q(T, {
|
|
393
582
|
key: 1,
|
|
394
583
|
class: "node-icon running"
|
|
395
584
|
}, {
|
|
396
|
-
default:
|
|
397
|
-
|
|
585
|
+
default: E(() => [
|
|
586
|
+
S(s(Ie))
|
|
398
587
|
]),
|
|
399
588
|
_: 1
|
|
400
589
|
}))
|
|
401
590
|
]),
|
|
402
|
-
|
|
591
|
+
o("span", rt, O(Q.name), 1)
|
|
403
592
|
]))), 128)),
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
])) : w("", !0),
|
|
416
|
-
W(a.content) ? (l(), u("div", {
|
|
593
|
+
o("div", lt, [
|
|
594
|
+
S(x, {
|
|
595
|
+
percentage: g.value,
|
|
596
|
+
"show-text": !1,
|
|
597
|
+
"stroke-width": 4,
|
|
598
|
+
color: "#667eea"
|
|
599
|
+
}, null, 8, ["percentage"]),
|
|
600
|
+
o("span", it, "第 " + O(K.value) + "/" + O(e.value) + " 步 · " + O(L.value), 1)
|
|
601
|
+
])
|
|
602
|
+
])) : M("", !0),
|
|
603
|
+
y(m.content) ? (i(), d("div", {
|
|
417
604
|
key: 1,
|
|
418
605
|
class: "message-json",
|
|
419
|
-
innerHTML:
|
|
420
|
-
}, null, 8,
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
606
|
+
innerHTML: he(B(m.content))
|
|
607
|
+
}, null, 8, ct)) : m.content ? (i(), d("div", ut, O(m.content), 1)) : M("", !0),
|
|
608
|
+
o("div", dt, O(m.createTime), 1),
|
|
609
|
+
m.role === "assistant" ? (i(), d(W, { key: 3 }, [
|
|
610
|
+
m.showFeedback && !m.hasFeedback ? (i(), d(W, { key: 0 }, [
|
|
611
|
+
pt,
|
|
612
|
+
o("div", ft, [
|
|
613
|
+
o("button", {
|
|
427
614
|
class: "feedback-btn satisfied-btn",
|
|
428
|
-
onClick: (
|
|
429
|
-
},
|
|
430
|
-
|
|
615
|
+
onClick: (Q) => J("satisfied", G)
|
|
616
|
+
}, ht, 8, mt),
|
|
617
|
+
o("button", {
|
|
431
618
|
class: "feedback-btn unsatisfied-btn",
|
|
432
|
-
onClick: (
|
|
433
|
-
},
|
|
619
|
+
onClick: (Q) => J("open", G)
|
|
620
|
+
}, bt, 8, kt)
|
|
434
621
|
])
|
|
435
|
-
], 64)) :
|
|
436
|
-
|
|
437
|
-
], 64)) :
|
|
622
|
+
], 64)) : M("", !0),
|
|
623
|
+
m.showFeedback && m.hasFeedback ? (i(), d("div", wt, "感谢您进行的评价反馈")) : M("", !0)
|
|
624
|
+
], 64)) : M("", !0)
|
|
438
625
|
])
|
|
439
|
-
], 64)) :
|
|
626
|
+
], 64)) : M("", !0)
|
|
440
627
|
], 2))), 128)),
|
|
441
|
-
|
|
442
|
-
s("div", ct, [
|
|
443
|
-
m(t, {
|
|
444
|
-
size: 32,
|
|
445
|
-
icon: _(Z)
|
|
446
|
-
}, null, 8, ["icon"])
|
|
447
|
-
]),
|
|
448
|
-
ut
|
|
449
|
-
])) : w("", !0)
|
|
628
|
+
u.value && v.value.length === 0 && !(($ = l.value[l.value.length - 1]) != null && $.content) ? (i(), d("div", Tt, " 🤔 正在分析您的需求... ")) : M("", !0)
|
|
450
629
|
], 512),
|
|
451
|
-
|
|
452
|
-
|
|
630
|
+
o("div", St, [
|
|
631
|
+
S(V, {
|
|
453
632
|
class: "message-input",
|
|
454
|
-
modelValue:
|
|
455
|
-
"onUpdate:modelValue":
|
|
633
|
+
modelValue: N.value,
|
|
634
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => N.value = m),
|
|
456
635
|
type: "textarea",
|
|
457
636
|
rows: 4,
|
|
458
637
|
autosize: { minRows: 2, maxRows: 4 },
|
|
459
638
|
placeholder: "输入您想查询的品种条件...",
|
|
460
|
-
onKeydown:
|
|
639
|
+
onKeydown: ke
|
|
461
640
|
}, null, 8, ["modelValue"]),
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
641
|
+
o("div", Ct, [
|
|
642
|
+
$t,
|
|
643
|
+
S(h, {
|
|
465
644
|
class: "send-btn",
|
|
466
645
|
type: "primary",
|
|
467
|
-
icon:
|
|
468
|
-
loading:
|
|
469
|
-
onClick:
|
|
646
|
+
icon: s(xe),
|
|
647
|
+
loading: k.value,
|
|
648
|
+
onClick: ce,
|
|
470
649
|
round: ""
|
|
471
650
|
}, {
|
|
472
|
-
default:
|
|
473
|
-
|
|
651
|
+
default: E(() => [
|
|
652
|
+
ne(" 发送 ")
|
|
474
653
|
]),
|
|
475
654
|
_: 1
|
|
476
655
|
}, 8, ["icon", "loading"])
|
|
@@ -481,40 +660,40 @@ const h = (d) => (Te("data-v-c6a98338"), d = d(), we(), d), Ie = { class: "ai-di
|
|
|
481
660
|
}),
|
|
482
661
|
_: 1
|
|
483
662
|
}, 8, ["modelValue"]),
|
|
484
|
-
|
|
663
|
+
S(_, {
|
|
485
664
|
modelValue: Y.value,
|
|
486
|
-
"onUpdate:modelValue":
|
|
665
|
+
"onUpdate:modelValue": t[5] || (t[5] = ($) => Y.value = $),
|
|
487
666
|
title: "📝 反馈意见",
|
|
488
667
|
width: "400px"
|
|
489
668
|
}, {
|
|
490
|
-
footer:
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
onClick:
|
|
669
|
+
footer: E(() => [
|
|
670
|
+
o("span", Ft, [
|
|
671
|
+
S(h, {
|
|
672
|
+
onClick: t[3] || (t[3] = ($) => Y.value = !1)
|
|
494
673
|
}, {
|
|
495
|
-
default:
|
|
496
|
-
|
|
674
|
+
default: E(() => [
|
|
675
|
+
ne("取消")
|
|
497
676
|
]),
|
|
498
677
|
_: 1
|
|
499
678
|
}),
|
|
500
|
-
|
|
679
|
+
S(h, {
|
|
501
680
|
type: "primary",
|
|
502
|
-
onClick:
|
|
681
|
+
onClick: t[4] || (t[4] = ($) => J("unsatisfied", Z.value))
|
|
503
682
|
}, {
|
|
504
|
-
default:
|
|
505
|
-
|
|
683
|
+
default: E(() => [
|
|
684
|
+
ne("提交反馈")
|
|
506
685
|
]),
|
|
507
686
|
_: 1
|
|
508
687
|
})
|
|
509
688
|
])
|
|
510
689
|
]),
|
|
511
|
-
default:
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
modelValue:
|
|
517
|
-
"onUpdate:modelValue":
|
|
690
|
+
default: E(() => [
|
|
691
|
+
o("div", Et, [
|
|
692
|
+
Pt,
|
|
693
|
+
Dt,
|
|
694
|
+
S(V, {
|
|
695
|
+
modelValue: H.value,
|
|
696
|
+
"onUpdate:modelValue": t[2] || (t[2] = ($) => H.value = $),
|
|
518
697
|
type: "textarea",
|
|
519
698
|
rows: 4,
|
|
520
699
|
placeholder: "[非必填]例如:回答不够准确、查询结果有误、界面体验不佳..."
|
|
@@ -526,11 +705,11 @@ const h = (d) => (Te("data-v-c6a98338"), d = d(), we(), d), Ie = { class: "ai-di
|
|
|
526
705
|
], 64);
|
|
527
706
|
};
|
|
528
707
|
}
|
|
529
|
-
},
|
|
530
|
-
install(
|
|
531
|
-
|
|
708
|
+
}, Vt = /* @__PURE__ */ ze(Nt, [["__scopeId", "data-v-6c033243"]]), ns = {
|
|
709
|
+
install(p) {
|
|
710
|
+
p.component("st-varietyAiHelper", Vt);
|
|
532
711
|
}
|
|
533
712
|
};
|
|
534
713
|
export {
|
|
535
|
-
|
|
714
|
+
ns as default
|
|
536
715
|
};
|