st-comp 0.0.275 → 0.0.277
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/es/VarietyAiHelper.cjs +7 -7
- package/es/VarietyAiHelper.js +317 -280
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +1 -1
- package/es/aiTools-a3b095f6.js +113 -0
- package/es/aiTools-f36136a4.cjs +2 -0
- package/es/aiTools.js +8 -0
- package/es/style.css +1 -1
- package/lib/aiTools.js +8 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +74 -74
- package/lib/{index-298ca804.js → index-2a269748.js} +1112 -1075
- package/lib/{python-4b8051bd.js → python-41da18e5.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietyAiHelper/index.vue +49 -4
- package/public/aiTools.js +8 -0
- package/src/App.vue +16 -16
- package/es/aiTools-0c653fa6.js +0 -113
- package/es/aiTools-336e4de3.cjs +0 -2
package/es/VarietyAiHelper.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { b as de, p as
|
|
1
|
+
import { b as de, p as fe, e as ee, u as pe, c as ae, n as ke, _ as me, w as ve, x as we } from "./base-a5af3db3.js";
|
|
2
2
|
import { E as be } from "./el-dialog-86a3eec2.js";
|
|
3
3
|
import "./el-overlay-23de4324.js";
|
|
4
|
-
import { E as
|
|
5
|
-
import { E as
|
|
4
|
+
import { E as Te } from "./el-input-fa1445ad.js";
|
|
5
|
+
import { E as _e } from "./el-button-314171a0.js";
|
|
6
6
|
import "./el-tooltip-4ed993c7.js";
|
|
7
7
|
import { E as Se } from "./el-popper-03988662.js";
|
|
8
|
-
import { defineComponent as te, ref as
|
|
9
|
-
import { d as
|
|
8
|
+
import { defineComponent as te, ref as y, computed as v, watch as oe, openBlock as l, createElementBlock as f, normalizeClass as w, unref as a, normalizeStyle as L, createBlock as K, withCtx as k, resolveDynamicComponent as ge, renderSlot as ne, createElementVNode as d, toDisplayString as z, createCommentVNode as Q, inject as De, reactive as Ce, nextTick as se, Fragment as X, createVNode as A, renderList as ce, createTextVNode as Z, pushScopeId as Me, popScopeId as Ee } from "vue";
|
|
9
|
+
import { d as q } from "./dayjs.min-8313b006.js";
|
|
10
10
|
import { V as Ve, U as Be } from "./index-7ed0999e.js";
|
|
11
|
-
import { s as
|
|
12
|
-
import { E as re, w as
|
|
13
|
-
import { _ as
|
|
11
|
+
import { s as Ie } from "./aiTools-a3b095f6.js";
|
|
12
|
+
import { E as re, w as Ne, o as Ue, p as Qe, s as Fe, c as Pe, u as Ye, t as Je, v as Le, x as ze, y as Oe } from "./index-5c44d71a.js";
|
|
13
|
+
import { _ as He } from "./_plugin-vue_export-helper-dad06003.js";
|
|
14
14
|
import { E as W } from "./index-ce21e2ce.js";
|
|
15
|
-
import { k as
|
|
15
|
+
import { k as Ke, i as Re } from "./use-form-common-props-76a09d89.js";
|
|
16
16
|
import "./index-d77a7336.js";
|
|
17
17
|
import "./index-960806da.js";
|
|
18
18
|
import "./index-2e331d74.js";
|
|
@@ -24,12 +24,12 @@ import "./typescript-7ae59c4c.js";
|
|
|
24
24
|
import "./index-5ed42e9c.js";
|
|
25
25
|
import "./index-657047bb.js";
|
|
26
26
|
import "./config-provider-7a3aca55.js";
|
|
27
|
-
const
|
|
27
|
+
const xe = de({
|
|
28
28
|
size: {
|
|
29
29
|
type: [Number, String],
|
|
30
|
-
values:
|
|
30
|
+
values: Ke,
|
|
31
31
|
default: "",
|
|
32
|
-
validator: (p) =>
|
|
32
|
+
validator: (p) => fe(p)
|
|
33
33
|
},
|
|
34
34
|
shape: {
|
|
35
35
|
type: String,
|
|
@@ -37,7 +37,7 @@ const $e = de({
|
|
|
37
37
|
default: "circle"
|
|
38
38
|
},
|
|
39
39
|
icon: {
|
|
40
|
-
type:
|
|
40
|
+
type: Re
|
|
41
41
|
},
|
|
42
42
|
src: {
|
|
43
43
|
type: String,
|
|
@@ -49,47 +49,47 @@ const $e = de({
|
|
|
49
49
|
type: ee(String),
|
|
50
50
|
default: "cover"
|
|
51
51
|
}
|
|
52
|
-
}),
|
|
52
|
+
}), $e = {
|
|
53
53
|
error: (p) => p instanceof Event
|
|
54
|
-
},
|
|
54
|
+
}, je = te({
|
|
55
55
|
name: "ElAvatar"
|
|
56
56
|
}), qe = /* @__PURE__ */ te({
|
|
57
|
-
...
|
|
58
|
-
props:
|
|
59
|
-
emits:
|
|
57
|
+
...je,
|
|
58
|
+
props: xe,
|
|
59
|
+
emits: $e,
|
|
60
60
|
setup(p, { emit: i }) {
|
|
61
|
-
const
|
|
62
|
-
const { size:
|
|
63
|
-
return ae(
|
|
64
|
-
}), R =
|
|
65
|
-
const { size:
|
|
66
|
-
return
|
|
67
|
-
size:
|
|
61
|
+
const M = p, r = pe("avatar"), C = y(!1), E = v(() => {
|
|
62
|
+
const { size: u, icon: _, shape: V } = M, o = [r.b()];
|
|
63
|
+
return ae(u) && o.push(r.m(u)), _ && o.push(r.m("icon")), V && o.push(r.m(V)), o;
|
|
64
|
+
}), R = v(() => {
|
|
65
|
+
const { size: u } = M;
|
|
66
|
+
return fe(u) ? r.cssVarBlock({
|
|
67
|
+
size: ke(u) || ""
|
|
68
68
|
}) : void 0;
|
|
69
|
-
}),
|
|
70
|
-
objectFit:
|
|
69
|
+
}), x = v(() => ({
|
|
70
|
+
objectFit: M.fit
|
|
71
71
|
}));
|
|
72
|
-
oe(() =>
|
|
73
|
-
function
|
|
74
|
-
C.value = !0, i("error",
|
|
72
|
+
oe(() => M.src, () => C.value = !1);
|
|
73
|
+
function h(u) {
|
|
74
|
+
C.value = !0, i("error", u);
|
|
75
75
|
}
|
|
76
|
-
return (
|
|
77
|
-
class: w(
|
|
78
|
-
style:
|
|
76
|
+
return (u, _) => (l(), f("span", {
|
|
77
|
+
class: w(a(E)),
|
|
78
|
+
style: L(a(R))
|
|
79
79
|
}, [
|
|
80
|
-
(
|
|
80
|
+
(u.src || u.srcSet) && !C.value ? (l(), f("img", {
|
|
81
81
|
key: 0,
|
|
82
|
-
src:
|
|
83
|
-
alt:
|
|
84
|
-
srcset:
|
|
85
|
-
style:
|
|
86
|
-
onError:
|
|
87
|
-
}, null, 44, ["src", "alt", "srcset"])) :
|
|
88
|
-
default:
|
|
89
|
-
(l(),
|
|
82
|
+
src: u.src,
|
|
83
|
+
alt: u.alt,
|
|
84
|
+
srcset: u.srcSet,
|
|
85
|
+
style: L(a(x)),
|
|
86
|
+
onError: h
|
|
87
|
+
}, null, 44, ["src", "alt", "srcset"])) : u.icon ? (l(), K(a(re), { key: 1 }, {
|
|
88
|
+
default: k(() => [
|
|
89
|
+
(l(), K(ge(u.icon)))
|
|
90
90
|
]),
|
|
91
91
|
_: 1
|
|
92
|
-
})) : ne(
|
|
92
|
+
})) : ne(u.$slots, "default", { key: 2 })
|
|
93
93
|
], 6));
|
|
94
94
|
}
|
|
95
95
|
});
|
|
@@ -152,66 +152,66 @@ const Xe = ve(Ge), Ze = de({
|
|
|
152
152
|
...We,
|
|
153
153
|
props: Ze,
|
|
154
154
|
setup(p) {
|
|
155
|
-
const i = p,
|
|
155
|
+
const i = p, M = {
|
|
156
156
|
success: "#13ce66",
|
|
157
157
|
exception: "#ff4949",
|
|
158
158
|
warning: "#e6a23c",
|
|
159
159
|
default: "#20a0ff"
|
|
160
|
-
}, r =
|
|
160
|
+
}, r = pe("progress"), C = v(() => {
|
|
161
161
|
const e = {
|
|
162
162
|
width: `${i.percentage}%`,
|
|
163
163
|
animationDuration: `${i.duration}s`
|
|
164
|
-
},
|
|
165
|
-
return
|
|
166
|
-
}),
|
|
167
|
-
const e = R.value,
|
|
164
|
+
}, g = b(i.percentage);
|
|
165
|
+
return g.includes("gradient") ? e.background = g : e.backgroundColor = g, e;
|
|
166
|
+
}), E = v(() => (i.strokeWidth / i.width * 100).toFixed(1)), R = v(() => ["circle", "dashboard"].includes(i.type) ? Number.parseInt(`${50 - Number.parseFloat(E.value) / 2}`, 10) : 0), x = v(() => {
|
|
167
|
+
const e = R.value, g = i.type === "dashboard";
|
|
168
168
|
return `
|
|
169
169
|
M 50 50
|
|
170
|
-
m 0 ${
|
|
171
|
-
a ${e} ${e} 0 1 1 0 ${
|
|
172
|
-
a ${e} ${e} 0 1 1 0 ${
|
|
170
|
+
m 0 ${g ? "" : "-"}${e}
|
|
171
|
+
a ${e} ${e} 0 1 1 0 ${g ? "-" : ""}${e * 2}
|
|
172
|
+
a ${e} ${e} 0 1 1 0 ${g ? "" : "-"}${e * 2}
|
|
173
173
|
`;
|
|
174
|
-
}),
|
|
175
|
-
strokeDasharray: `${
|
|
174
|
+
}), h = v(() => 2 * Math.PI * R.value), u = v(() => i.type === "dashboard" ? 0.75 : 1), _ = v(() => `${-1 * h.value * (1 - u.value) / 2}px`), V = v(() => ({
|
|
175
|
+
strokeDasharray: `${h.value * u.value}px, ${h.value}px`,
|
|
176
176
|
strokeDashoffset: _.value
|
|
177
|
-
})), o =
|
|
178
|
-
strokeDasharray: `${
|
|
177
|
+
})), o = v(() => ({
|
|
178
|
+
strokeDasharray: `${h.value * u.value * (i.percentage / 100)}px, ${h.value}px`,
|
|
179
179
|
strokeDashoffset: _.value,
|
|
180
180
|
transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
|
|
181
|
-
})),
|
|
181
|
+
})), F = v(() => {
|
|
182
182
|
let e;
|
|
183
|
-
return i.color ? e = b(i.percentage) : e =
|
|
184
|
-
}),
|
|
183
|
+
return i.color ? e = b(i.percentage) : e = M[i.status] || M.default, e;
|
|
184
|
+
}), B = v(() => i.status === "warning" ? Ne : i.type === "line" ? i.status === "success" ? Ue : Qe : i.status === "success" ? Fe : Pe), P = v(() => i.type === "line" ? 12 + i.strokeWidth * 0.4 : i.width * 0.111111 + 2), O = v(() => i.format(i.percentage));
|
|
185
185
|
function G(e) {
|
|
186
|
-
const
|
|
187
|
-
return e.map((
|
|
188
|
-
color:
|
|
189
|
-
percentage: (
|
|
190
|
-
} :
|
|
186
|
+
const g = 100 / e.length;
|
|
187
|
+
return e.map((S, I) => ae(S) ? {
|
|
188
|
+
color: S,
|
|
189
|
+
percentage: (I + 1) * g
|
|
190
|
+
} : S).sort((S, I) => S.percentage - I.percentage);
|
|
191
191
|
}
|
|
192
192
|
const b = (e) => {
|
|
193
|
-
var
|
|
193
|
+
var g;
|
|
194
194
|
const { color: Y } = i;
|
|
195
195
|
if (we(Y))
|
|
196
196
|
return Y(e);
|
|
197
197
|
if (ae(Y))
|
|
198
198
|
return Y;
|
|
199
199
|
{
|
|
200
|
-
const
|
|
201
|
-
for (const
|
|
202
|
-
if (
|
|
203
|
-
return
|
|
204
|
-
return (
|
|
200
|
+
const S = G(Y);
|
|
201
|
+
for (const I of S)
|
|
202
|
+
if (I.percentage > e)
|
|
203
|
+
return I.color;
|
|
204
|
+
return (g = S[S.length - 1]) == null ? void 0 : g.color;
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
return (e,
|
|
207
|
+
return (e, g) => (l(), f("div", {
|
|
208
208
|
class: w([
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
a(r).b(),
|
|
210
|
+
a(r).m(e.type),
|
|
211
|
+
a(r).is(e.status),
|
|
212
212
|
{
|
|
213
|
-
[
|
|
214
|
-
[
|
|
213
|
+
[a(r).m("without-text")]: !e.showText,
|
|
214
|
+
[a(r).m("text-inside")]: e.textInside
|
|
215
215
|
}
|
|
216
216
|
]),
|
|
217
217
|
role: "progressbar",
|
|
@@ -219,72 +219,72 @@ const Xe = ve(Ge), Ze = de({
|
|
|
219
219
|
"aria-valuemin": "0",
|
|
220
220
|
"aria-valuemax": "100"
|
|
221
221
|
}, [
|
|
222
|
-
e.type === "line" ? (l(),
|
|
222
|
+
e.type === "line" ? (l(), f("div", {
|
|
223
223
|
key: 0,
|
|
224
|
-
class: w(
|
|
224
|
+
class: w(a(r).b("bar"))
|
|
225
225
|
}, [
|
|
226
226
|
d("div", {
|
|
227
|
-
class: w(
|
|
228
|
-
style:
|
|
227
|
+
class: w(a(r).be("bar", "outer")),
|
|
228
|
+
style: L({ height: `${e.strokeWidth}px` })
|
|
229
229
|
}, [
|
|
230
230
|
d("div", {
|
|
231
231
|
class: w([
|
|
232
|
-
|
|
233
|
-
{ [
|
|
234
|
-
{ [
|
|
235
|
-
{ [
|
|
232
|
+
a(r).be("bar", "inner"),
|
|
233
|
+
{ [a(r).bem("bar", "inner", "indeterminate")]: e.indeterminate },
|
|
234
|
+
{ [a(r).bem("bar", "inner", "striped")]: e.striped },
|
|
235
|
+
{ [a(r).bem("bar", "inner", "striped-flow")]: e.stripedFlow }
|
|
236
236
|
]),
|
|
237
|
-
style:
|
|
237
|
+
style: L(a(C))
|
|
238
238
|
}, [
|
|
239
|
-
(e.showText || e.$slots.default) && e.textInside ? (l(),
|
|
239
|
+
(e.showText || e.$slots.default) && e.textInside ? (l(), f("div", {
|
|
240
240
|
key: 0,
|
|
241
|
-
class: w(
|
|
241
|
+
class: w(a(r).be("bar", "innerText"))
|
|
242
242
|
}, [
|
|
243
243
|
ne(e.$slots, "default", { percentage: e.percentage }, () => [
|
|
244
|
-
d("span", null,
|
|
244
|
+
d("span", null, z(a(O)), 1)
|
|
245
245
|
])
|
|
246
246
|
], 2)) : Q("v-if", !0)
|
|
247
247
|
], 6)
|
|
248
248
|
], 6)
|
|
249
|
-
], 2)) : (l(),
|
|
249
|
+
], 2)) : (l(), f("div", {
|
|
250
250
|
key: 1,
|
|
251
|
-
class: w(
|
|
252
|
-
style:
|
|
251
|
+
class: w(a(r).b("circle")),
|
|
252
|
+
style: L({ height: `${e.width}px`, width: `${e.width}px` })
|
|
253
253
|
}, [
|
|
254
|
-
(l(),
|
|
254
|
+
(l(), f("svg", { viewBox: "0 0 100 100" }, [
|
|
255
255
|
d("path", {
|
|
256
|
-
class: w(
|
|
257
|
-
d:
|
|
258
|
-
stroke: `var(${
|
|
256
|
+
class: w(a(r).be("circle", "track")),
|
|
257
|
+
d: a(x),
|
|
258
|
+
stroke: `var(${a(r).cssVarName("fill-color-light")}, #e5e9f2)`,
|
|
259
259
|
"stroke-linecap": e.strokeLinecap,
|
|
260
|
-
"stroke-width":
|
|
260
|
+
"stroke-width": a(E),
|
|
261
261
|
fill: "none",
|
|
262
|
-
style:
|
|
262
|
+
style: L(a(V))
|
|
263
263
|
}, null, 14, ["d", "stroke", "stroke-linecap", "stroke-width"]),
|
|
264
264
|
d("path", {
|
|
265
|
-
class: w(
|
|
266
|
-
d:
|
|
267
|
-
stroke:
|
|
265
|
+
class: w(a(r).be("circle", "path")),
|
|
266
|
+
d: a(x),
|
|
267
|
+
stroke: a(F),
|
|
268
268
|
fill: "none",
|
|
269
269
|
opacity: e.percentage ? 1 : 0,
|
|
270
270
|
"stroke-linecap": e.strokeLinecap,
|
|
271
|
-
"stroke-width":
|
|
272
|
-
style:
|
|
271
|
+
"stroke-width": a(E),
|
|
272
|
+
style: L(a(o))
|
|
273
273
|
}, null, 14, ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"])
|
|
274
274
|
]))
|
|
275
275
|
], 6)),
|
|
276
|
-
(e.showText || e.$slots.default) && !e.textInside ? (l(),
|
|
276
|
+
(e.showText || e.$slots.default) && !e.textInside ? (l(), f("div", {
|
|
277
277
|
key: 2,
|
|
278
|
-
class: w(
|
|
279
|
-
style:
|
|
278
|
+
class: w(a(r).e("text")),
|
|
279
|
+
style: L({ fontSize: `${a(P)}px` })
|
|
280
280
|
}, [
|
|
281
281
|
ne(e.$slots, "default", { percentage: e.percentage }, () => [
|
|
282
|
-
e.status ? (l(),
|
|
283
|
-
default:
|
|
284
|
-
(l(),
|
|
282
|
+
e.status ? (l(), K(a(re), { key: 1 }, {
|
|
283
|
+
default: k(() => [
|
|
284
|
+
(l(), K(ge(a(B))))
|
|
285
285
|
]),
|
|
286
286
|
_: 1
|
|
287
|
-
})) : (l(),
|
|
287
|
+
})) : (l(), f("span", { key: 0 }, z(a(O)), 1))
|
|
288
288
|
])
|
|
289
289
|
], 6)) : Q("v-if", !0)
|
|
290
290
|
], 10, ["aria-valuenow"]));
|
|
@@ -293,18 +293,21 @@ const Xe = ve(Ge), Ze = de({
|
|
|
293
293
|
var tt = /* @__PURE__ */ me(et, [["__file", "progress.vue"]]);
|
|
294
294
|
const st = ve(tt);
|
|
295
295
|
const at = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMaSURBVHgB7ZhdbhMxEMf/9lLRN3oDlhMQTkB6AnqDlqdSVYgaDkD6zIdTKGqLkJreoD1BywnIDdiegPBWKYmH8e4mdZbAeqlTrcT+pJX8MV57dsee8QANDQ0NDf8zAgtA608tRJEGIeYZEjOmk1dqq4cFEFwBrQ9iSHzjV68UuhIYWlVqK0FAJAJDEDtzFm9hxcS51scrCEhwBYQUj6cVQ7tk6MTpjg2udhCQoAqk5gNqOU29l2prw7Ai0wmlfIGABFXAAG2n2p/Yu8RV97qZVvb3v9xHIIIqIKV4PSnzVz+blJVSAyyIYAroj0d28bHz4h5ugSAKvNVHa7xhO9MGtnn3uNRaz5w8w2H0E4G4sQJ28ZE0x05TwovvuDIjLDsbWwyUehrMpO74CqYmQtTmg74920O49oc04J28Whwr05Pp2mfqD4fH82cRAzMeX0qIU1+H5+WJecLz3xdexC7esKfd7v/b+AJSdNTzzd1SsTKBd/pgw2NyDhPwaN7iLRwLfUVVeE+lc5dQakKZ46GsQjhlM1Lp+0Fr3Kfz9uRvv5wDuQ47ucQ4p9Q8BIcgQuIJcjkZiXWUnGYee8DxrDTm02U7sUX+OpU2ovKMRlnRLpvP92w+0SqTr3QKLS3d/YFbhUoDv+DB3E0ZzZpZv0y+dgpEEGuTMkeyl2XytVMg38RZGXxolFArBbT+bDdt7DRdlI2plQIGo7ZT7ft441opIGW0PikbI068xqAmFG9zEqMLn3G1UaBwm0v+FJYUqY0CediQQgZn3uNQA1LzcQJGgXHPd6yHAjSNeYbD4QMsADafDafa9zUfS3kwJ0R/+nU4+nyjD9JoVEbyIUemuQxulKziZMDUfDiM3kMFyhXgvCZHh+2sQq07nF3LiuRKtfTeIWV/SwxsPjRvT7JblrF34IQgBwSTPmMuW4HliDMZVM15uXjdyN7rwy67+KAJqblkyYBOlSHeyV1tb0ci/dVx4Q0xQkC4UDvPVqsOC5KdzhK2V3YfxHlTbGN5Y29Y9hG4N9MnbJyfJ4B54XxxOVNqs4uGhoaGhoaK/AINQhvhDFaFYAAAAABJRU5ErkJggg==", ot = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMxSURBVHgB7ZhdbtNAEMdn1wmlTzUnIJyA9ASkNwgnaCMh0aKK1uIATV4R1bbQUlVCSrhBewLCCSg3CCfAPBFoM8PsxnHcVGHX7UZYwj/JytrecXb2a+a/ACUlJSUl/zMCPKBUNxzCMAwAQwEylAA1AAr586EM5Mq4zM9IhOPy+F3ShAtEPHwVbfXgFjg78Ea9bwaBXAeC+syrGvhAwFn0cvMp5MTJAfX2VAHRLiwYROrwSLTz2Fgd2FcnG1KKLjhBMU+TmD/LFw34QUwEP4if87QaJJX4F/m95AtDCII9HtVm0pwY8N6jKGrF4EjFVkEGQk+bBHEBOOroP0KABju2N2439KPdzTW4BUqpFsj7jfGaoBBhqEe67WovrTUIGmkZr1pR9OIsirb6MO3ROxFFUYwIh2mDAvEkh7mDAxmq1aXvsAC4Eb30hjtMqZNGDtt/D4/ogFdjf3Kvp6erbSEc0OAIzydlXlvrrnaFcUDCr17mtqbUcd3NriDoxXx9Gsmmi11hHNDgiD5Pyq67UaEcuLkbdUMHm+JgdqNMfEH4vWGzKZQDGkJIdyMB2LDVL5wDCNiflIUUj231C+dAoPOtKTVb/cI5wC5YF24WazZqMlAgE1Qu8ergtTrujDgVFhWxomO+KzotB0uPGvVG1Egf0DQuzMPqAMu9cw7t9eSDzaoMmlXzIlNJiDonYLVkF7nBvjrdlZIU2CCavf9oM7FOIaOQhK0nWONK+WVe+JcB5EqRDazOIged7KyJlZ4CQu6AoL/kKFpR4ersSPD0aafiR9chOpv7CcKvetommsPKnU8lFIt9MJJzcsrAgQiXVrOy0OT3UnxK/jKOdp4/AE/ceRfSCo2Hu5V5VEtkYYZhZmuk8Ojow0PwhJdtVDtBWVko5U42jzGZ5oLwFgcE/GybUwlDKs4XjjcHbojzjKrik4dcwSkPXiPxtXSY18JkrlNlOSsRB9vbz76BJ7w6MJsOX9JoQ7073RMIB2klh+iaB++5EB8PTqMnUttcUwYcAzrgEe8OSBgeTBfzNTg+0Nq8dOO2eDlen8WkFKLSTY7Vudf1kclyL8+ZZ0lJSUlJiQt/AOgzKhZAFyVoAAAAAElFTkSuQmCC";
|
|
296
|
-
const le = (p) => (Me("data-v-
|
|
296
|
+
const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-dialog-body" }, rt = { class: "avatar" }, lt = { class: "message-content" }, it = {
|
|
297
297
|
key: 0,
|
|
298
|
+
style: { "font-weight": "bold", "margin-bottom": "10px" }
|
|
299
|
+
}, ut = {
|
|
300
|
+
key: 1,
|
|
298
301
|
class: "node-progress"
|
|
299
|
-
}, ct = { class: "node-status-icon" },
|
|
300
|
-
key:
|
|
302
|
+
}, ct = { class: "node-status-icon" }, dt = { class: "node-name" }, ft = { class: "progress-footer" }, pt = { class: "progress-text" }, mt = ["innerHTML"], vt = {
|
|
303
|
+
key: 4,
|
|
301
304
|
class: "message-content-footer"
|
|
302
|
-
},
|
|
305
|
+
}, gt = {
|
|
303
306
|
key: 0,
|
|
304
307
|
class: "feedback-box"
|
|
305
|
-
},
|
|
308
|
+
}, ht = ["onClick"], At = ["onClick"], yt = { class: "input-area" }, kt = { class: "input-actions" }, wt = /* @__PURE__ */ le(() => /* @__PURE__ */ d("div", { class: "input-hint" }, [
|
|
306
309
|
/* @__PURE__ */ d("span", null, "Enter 发送 | Ctrl + Enter 换行")
|
|
307
|
-
], -1)),
|
|
310
|
+
], -1)), bt = { class: "feedback-dialog-content" }, Tt = /* @__PURE__ */ le(() => /* @__PURE__ */ d("div", { class: "feedback-emoji" }, "😟", -1)), _t = /* @__PURE__ */ le(() => /* @__PURE__ */ d("p", { class: "feedback-tip" }, "很抱歉没能帮到您,请告诉我们哪里需要改进:", -1)), St = { class: "dialog-footer" }, Dt = {
|
|
308
311
|
__name: "index",
|
|
309
312
|
props: {
|
|
310
313
|
defaultMessage: {
|
|
@@ -316,202 +319,235 @@ const le = (p) => (Me("data-v-652408e0"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
316
319
|
}
|
|
317
320
|
},
|
|
318
321
|
emits: ["callBack"],
|
|
319
|
-
setup(p, { expose: i, emit:
|
|
320
|
-
const r = De("stConfig"), C = Ce(Ve()),
|
|
322
|
+
setup(p, { expose: i, emit: M }) {
|
|
323
|
+
const r = De("stConfig"), C = Ce(Ve()), E = y(!1), R = M, x = p, h = y(!1), u = y(!1), _ = y(!1), V = y(null), o = y([
|
|
321
324
|
{
|
|
322
325
|
role: "defaultMessage",
|
|
323
326
|
// defaultMessage-组件内置, assistant-智能体, user-用户
|
|
324
|
-
content:
|
|
327
|
+
content: x.defaultMessage,
|
|
328
|
+
fullQuery: "",
|
|
329
|
+
historyList: [],
|
|
325
330
|
userContent: null,
|
|
326
331
|
showFeedback: !1,
|
|
327
|
-
createTime:
|
|
332
|
+
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
328
333
|
resTime: 0,
|
|
329
334
|
firstPackageTime: 0
|
|
330
335
|
}
|
|
331
|
-
]),
|
|
332
|
-
const n = b.value.find((
|
|
336
|
+
]), F = y(null), B = y(""), P = y(!1), O = y(""), G = y({}), b = y([]), e = v(() => b.value.length), g = v(() => b.value.filter((n) => n.status === "success").length), Y = v(() => e.value ? g.value / e.value * 100 : 0), S = v(() => {
|
|
337
|
+
const n = b.value.find((s) => s.status === "executing");
|
|
333
338
|
return n ? n.name : "处理中";
|
|
334
|
-
}),
|
|
335
|
-
const n =
|
|
339
|
+
}), I = async () => {
|
|
340
|
+
const n = B.value.trim();
|
|
336
341
|
if (!n)
|
|
337
342
|
return W.warning("请输入消息内容");
|
|
338
|
-
if (
|
|
343
|
+
if (h.value)
|
|
339
344
|
return;
|
|
340
345
|
b.value = [], _.value = !1, o.value.push({
|
|
341
346
|
role: "user",
|
|
342
347
|
content: n,
|
|
343
|
-
createTime:
|
|
344
|
-
}),
|
|
348
|
+
createTime: q().format("YYYY-MM-DD HH:mm:ss")
|
|
349
|
+
}), B.value = "", await J(), o.value.push({
|
|
345
350
|
role: "assistant",
|
|
346
351
|
content: "",
|
|
352
|
+
fullQuery: "",
|
|
353
|
+
historyList: [],
|
|
347
354
|
userContent: n,
|
|
348
355
|
showFeedback: !1,
|
|
349
|
-
createTime:
|
|
356
|
+
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
350
357
|
resTime: 0,
|
|
351
358
|
firstPackageTime: 0
|
|
352
|
-
}), await
|
|
353
|
-
let
|
|
359
|
+
}), await J(), h.value = !0, u.value = !0;
|
|
360
|
+
let s = "", t = (/* @__PURE__ */ new Date()).getTime(), N = !1;
|
|
354
361
|
try {
|
|
355
|
-
await
|
|
362
|
+
await Ie({
|
|
356
363
|
baseUrl: r.env.VITE_BASE_URL,
|
|
357
364
|
token: Be(),
|
|
358
365
|
value: n,
|
|
359
|
-
sessionId:
|
|
360
|
-
callback: (
|
|
361
|
-
if (
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
+
sessionId: F.value,
|
|
367
|
+
callback: (D, T) => {
|
|
368
|
+
if (D === "session" && (F.value = T), D === "historyList") {
|
|
369
|
+
const m = o.value[o.value.length - 1];
|
|
370
|
+
m.historyList = T;
|
|
371
|
+
}
|
|
372
|
+
if (D === "fullQuery") {
|
|
373
|
+
const m = o.value[o.value.length - 1];
|
|
374
|
+
m.fullQuery = T;
|
|
375
|
+
}
|
|
376
|
+
if (D === "node") {
|
|
377
|
+
if (!N) {
|
|
378
|
+
N = !0, u.value = !1;
|
|
379
|
+
const U = o.value[o.value.length - 1];
|
|
380
|
+
U && U.role === "assistant" && U.firstPackageTime === 0 && (U.firstPackageTime = (/* @__PURE__ */ new Date()).getTime() - t);
|
|
366
381
|
}
|
|
367
|
-
const
|
|
368
|
-
|
|
382
|
+
const m = b.value.find((U) => U.name === T.name);
|
|
383
|
+
m ? m.status = T.status : b.value.push({ name: T.name, status: T.status }), J();
|
|
369
384
|
return;
|
|
370
385
|
}
|
|
371
|
-
if (
|
|
372
|
-
|
|
373
|
-
const
|
|
374
|
-
|
|
386
|
+
if (D === "message") {
|
|
387
|
+
s = T;
|
|
388
|
+
const m = o.value[o.value.length - 1];
|
|
389
|
+
m && m.role === "assistant" && (m.content = s, J());
|
|
375
390
|
}
|
|
376
|
-
if (
|
|
377
|
-
|
|
378
|
-
const
|
|
379
|
-
|
|
391
|
+
if (D === "finish") {
|
|
392
|
+
h.value = !1, _.value = !0;
|
|
393
|
+
const m = o.value[o.value.length - 1];
|
|
394
|
+
m && m.role === "assistant" && (m.showFeedback = !0, m.resTime = (/* @__PURE__ */ new Date()).getTime() - t, $("default", o.value.length - 1));
|
|
380
395
|
}
|
|
381
|
-
if (
|
|
382
|
-
|
|
396
|
+
if (D === "error") {
|
|
397
|
+
u.value = !1, h.value = !1, o.value.pop(), o.value.push({
|
|
383
398
|
role: "assistant",
|
|
384
399
|
userContent: n,
|
|
385
|
-
content: `❌ ${
|
|
400
|
+
content: `❌ ${T}`,
|
|
386
401
|
showFeedback: !1,
|
|
387
|
-
createTime:
|
|
388
|
-
resTime: (/* @__PURE__ */ new Date()).getTime() -
|
|
402
|
+
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
403
|
+
resTime: (/* @__PURE__ */ new Date()).getTime() - t,
|
|
389
404
|
firstPackageTime: 0
|
|
390
|
-
}), $("default", o.value.length - 1),
|
|
405
|
+
}), $("default", o.value.length - 1), J();
|
|
391
406
|
return;
|
|
392
407
|
}
|
|
393
408
|
}
|
|
394
409
|
});
|
|
395
|
-
} catch (
|
|
396
|
-
W.error(`AI响应异常: ${
|
|
410
|
+
} catch (D) {
|
|
411
|
+
W.error(`AI响应异常: ${D}`), o.value.pop(), o.value.push({
|
|
397
412
|
role: "assistant",
|
|
398
413
|
userContent: n,
|
|
399
414
|
content: "❌ 抱歉,AI服务响应异常,请稍后重试。",
|
|
400
415
|
showFeedback: !0,
|
|
401
|
-
createTime:
|
|
402
|
-
resTime: (/* @__PURE__ */ new Date()).getTime() -
|
|
416
|
+
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
417
|
+
resTime: (/* @__PURE__ */ new Date()).getTime() - t,
|
|
403
418
|
firstPackageTime: 0
|
|
404
|
-
}), $("default", o.value.length - 1), await
|
|
419
|
+
}), $("default", o.value.length - 1), await J(), h.value = !1, u.value = !1;
|
|
405
420
|
}
|
|
406
|
-
},
|
|
407
|
-
const { parsedConditions:
|
|
408
|
-
console.log({ parsedConditions:
|
|
409
|
-
}, $ = async (n,
|
|
421
|
+
}, he = (n) => {
|
|
422
|
+
const { parsedConditions: s, ...t } = JSON.parse(n);
|
|
423
|
+
console.log({ parsedConditions: s, webParams: t }), R("callBack", t);
|
|
424
|
+
}, $ = async (n, s) => {
|
|
410
425
|
switch (n) {
|
|
411
426
|
case "satisfied": {
|
|
412
|
-
const
|
|
427
|
+
const t = o.value[s];
|
|
413
428
|
await r.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
414
429
|
userName: C.username,
|
|
415
|
-
userContent:
|
|
416
|
-
|
|
430
|
+
userContent: t.userContent,
|
|
431
|
+
sessionId: F.value,
|
|
432
|
+
fullQuery: t.fullQuery,
|
|
433
|
+
historyList: JSON.stringify(t.historyList ?? []),
|
|
434
|
+
aiContent: t.content,
|
|
417
435
|
type: 1,
|
|
418
|
-
createTime:
|
|
419
|
-
resTime:
|
|
420
|
-
firstPackageTime:
|
|
436
|
+
createTime: t.createTime,
|
|
437
|
+
resTime: t.resTime,
|
|
438
|
+
firstPackageTime: t.firstPackageTime,
|
|
421
439
|
isSolved: 1,
|
|
422
440
|
logOrigin: 1
|
|
423
|
-
}), W.success("感谢您的评价!"), o.value[
|
|
441
|
+
}), W.success("感谢您的评价!"), o.value[s].showFeedback = !1;
|
|
424
442
|
break;
|
|
425
443
|
}
|
|
426
444
|
case "open": {
|
|
427
|
-
G.value =
|
|
445
|
+
G.value = s, P.value = !0;
|
|
428
446
|
break;
|
|
429
447
|
}
|
|
430
448
|
case "unsatisfied": {
|
|
431
|
-
const
|
|
449
|
+
const t = o.value[s];
|
|
432
450
|
await r.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
433
451
|
userName: C.username,
|
|
434
|
-
userContent:
|
|
435
|
-
|
|
436
|
-
|
|
452
|
+
userContent: t.userContent,
|
|
453
|
+
sessionId: F.value,
|
|
454
|
+
fullQuery: t.fullQuery,
|
|
455
|
+
historyList: JSON.stringify(t.historyList ?? []),
|
|
456
|
+
userSuggestion: O.value,
|
|
457
|
+
aiContent: t.content,
|
|
437
458
|
type: 2,
|
|
438
|
-
resTime:
|
|
439
|
-
createTime:
|
|
440
|
-
firstPackageTime:
|
|
459
|
+
resTime: t.resTime,
|
|
460
|
+
createTime: t.createTime,
|
|
461
|
+
firstPackageTime: t.firstPackageTime,
|
|
441
462
|
isSolved: 0,
|
|
442
463
|
logOrigin: 1
|
|
443
|
-
}), W.success("感谢您的反馈!我们将持续跟踪并进行优化"),
|
|
464
|
+
}), W.success("感谢您的反馈!我们将持续跟踪并进行优化"), P.value = !1, o.value[s].showFeedback = !1;
|
|
444
465
|
break;
|
|
445
466
|
}
|
|
446
467
|
case "default": {
|
|
447
|
-
const
|
|
448
|
-
|
|
468
|
+
const t = o.value[s];
|
|
469
|
+
console.log({
|
|
449
470
|
userName: C.username,
|
|
450
|
-
userContent:
|
|
451
|
-
|
|
452
|
-
|
|
471
|
+
userContent: t.userContent,
|
|
472
|
+
sessionId: F.value,
|
|
473
|
+
fullQuery: t.fullQuery,
|
|
474
|
+
historyList: JSON.stringify(t.historyList ?? []),
|
|
475
|
+
aiContent: t.content,
|
|
453
476
|
type: null,
|
|
454
|
-
resTime:
|
|
455
|
-
createTime:
|
|
456
|
-
firstPackageTime:
|
|
477
|
+
resTime: t.resTime,
|
|
478
|
+
createTime: t.createTime,
|
|
479
|
+
firstPackageTime: t.firstPackageTime,
|
|
480
|
+
isSolved: 1,
|
|
481
|
+
logOrigin: 1
|
|
482
|
+
}), await r.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
483
|
+
userName: C.username,
|
|
484
|
+
userContent: t.userContent,
|
|
485
|
+
sessionId: F.value,
|
|
486
|
+
fullQuery: t.fullQuery,
|
|
487
|
+
historyList: JSON.stringify(t.historyList ?? []),
|
|
488
|
+
aiContent: t.content,
|
|
489
|
+
type: null,
|
|
490
|
+
resTime: t.resTime,
|
|
491
|
+
createTime: t.createTime,
|
|
492
|
+
firstPackageTime: t.firstPackageTime,
|
|
457
493
|
isSolved: 1,
|
|
458
494
|
logOrigin: 1
|
|
459
495
|
});
|
|
460
496
|
}
|
|
461
497
|
}
|
|
462
|
-
},
|
|
498
|
+
}, Ae = (n) => {
|
|
463
499
|
if (n.key === "Enter")
|
|
464
500
|
if (n.ctrlKey) {
|
|
465
501
|
n.preventDefault();
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
` +
|
|
469
|
-
|
|
502
|
+
const s = n.target, t = s.selectionStart, N = s.selectionEnd;
|
|
503
|
+
B.value = B.value.substring(0, t) + `
|
|
504
|
+
` + B.value.substring(N), se(() => {
|
|
505
|
+
s.selectionStart = s.selectionEnd = t + 1;
|
|
470
506
|
});
|
|
471
507
|
} else
|
|
472
|
-
n.preventDefault(),
|
|
473
|
-
},
|
|
474
|
-
await se(),
|
|
508
|
+
n.preventDefault(), I();
|
|
509
|
+
}, J = async () => {
|
|
510
|
+
await se(), V.value && (V.value.scrollTop = V.value.scrollHeight);
|
|
475
511
|
}, ie = (n) => {
|
|
476
512
|
if (typeof n != "string")
|
|
477
513
|
return !1;
|
|
478
514
|
try {
|
|
479
|
-
const
|
|
480
|
-
return
|
|
515
|
+
const s = JSON.parse(n);
|
|
516
|
+
return s !== null && typeof s == "object";
|
|
481
517
|
} catch {
|
|
482
518
|
return !1;
|
|
483
519
|
}
|
|
484
|
-
},
|
|
485
|
-
const { parsedConditions:
|
|
486
|
-
let
|
|
487
|
-
return
|
|
488
|
-
|
|
489
|
-
}),
|
|
520
|
+
}, ye = (n) => {
|
|
521
|
+
const { parsedConditions: s } = JSON.parse(n);
|
|
522
|
+
let t = "";
|
|
523
|
+
return s != null && s.length && (t += '<div class="parsed-conditions">', s.forEach((N) => {
|
|
524
|
+
t += `<div class="parsed-conditions-item">${N}</div>`;
|
|
525
|
+
}), t += "</div>"), t;
|
|
490
526
|
};
|
|
491
527
|
return oe(
|
|
492
528
|
() => o.value,
|
|
493
529
|
() => {
|
|
494
|
-
|
|
530
|
+
J();
|
|
495
531
|
},
|
|
496
532
|
{ deep: !0 }
|
|
497
533
|
), oe(
|
|
498
|
-
() =>
|
|
534
|
+
() => P.value,
|
|
499
535
|
(n) => {
|
|
500
|
-
n || (
|
|
536
|
+
n || (O.value = "");
|
|
501
537
|
}
|
|
502
538
|
), i({
|
|
503
539
|
open: () => {
|
|
504
|
-
|
|
505
|
-
|
|
540
|
+
E.value = !0, se(() => {
|
|
541
|
+
J();
|
|
506
542
|
});
|
|
507
543
|
}
|
|
508
|
-
}), (n,
|
|
509
|
-
const
|
|
510
|
-
return l(),
|
|
511
|
-
|
|
544
|
+
}), (n, s) => {
|
|
545
|
+
const t = Xe, N = re, D = st, T = Se, m = _e, U = Te, ue = be;
|
|
546
|
+
return l(), f(X, null, [
|
|
547
|
+
A(ue, {
|
|
512
548
|
class: "ai-dialog",
|
|
513
|
-
modelValue:
|
|
514
|
-
"onUpdate:modelValue":
|
|
549
|
+
modelValue: E.value,
|
|
550
|
+
"onUpdate:modelValue": s[1] || (s[1] = (c) => E.value = c),
|
|
515
551
|
title: "✨ 品种池参数解析AI助手",
|
|
516
552
|
width: "500px",
|
|
517
553
|
center: "",
|
|
@@ -520,89 +556,90 @@ const le = (p) => (Me("data-v-652408e0"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
520
556
|
modal: !1,
|
|
521
557
|
"modal-penetrable": !0
|
|
522
558
|
}, {
|
|
523
|
-
default:
|
|
559
|
+
default: k(() => [
|
|
524
560
|
d("div", nt, [
|
|
525
561
|
d("div", {
|
|
526
562
|
ref_key: "messageListRef",
|
|
527
|
-
ref:
|
|
563
|
+
ref: V,
|
|
528
564
|
class: "message-list"
|
|
529
565
|
}, [
|
|
530
|
-
(l(!0),
|
|
566
|
+
(l(!0), f(X, null, ce(o.value, (c, H) => (l(), f("div", {
|
|
531
567
|
key: H,
|
|
532
|
-
class: w([
|
|
568
|
+
class: w([c.role, "message-item"])
|
|
533
569
|
}, [
|
|
534
|
-
|
|
570
|
+
c.content || H === o.value.length - 1 && c.role === "assistant" && b.value.length > 0 ? (l(), f(X, { key: 0 }, [
|
|
535
571
|
d("div", rt, [
|
|
536
|
-
|
|
572
|
+
A(t, {
|
|
537
573
|
size: 32,
|
|
538
|
-
icon:
|
|
574
|
+
icon: c.role === "user" ? a(Ye) : a(Je)
|
|
539
575
|
}, null, 8, ["icon"])
|
|
540
576
|
]),
|
|
541
577
|
d("div", lt, [
|
|
542
|
-
|
|
543
|
-
|
|
578
|
+
c.fullQuery ? (l(), f("div", it, " 筛选结果: " + z(c.fullQuery), 1)) : Q("", !0),
|
|
579
|
+
H === o.value.length - 1 && c.role === "assistant" && b.value.length > 0 && !_.value ? (l(), f("div", ut, [
|
|
580
|
+
(l(!0), f(X, null, ce(b.value, (j) => (l(), f("div", {
|
|
544
581
|
key: j.name,
|
|
545
582
|
class: "node-progress-item"
|
|
546
583
|
}, [
|
|
547
584
|
d("span", ct, [
|
|
548
|
-
j.status === "success" ? (l(),
|
|
585
|
+
j.status === "success" ? (l(), K(N, {
|
|
549
586
|
key: 0,
|
|
550
587
|
class: "node-icon done"
|
|
551
588
|
}, {
|
|
552
|
-
default:
|
|
553
|
-
|
|
589
|
+
default: k(() => [
|
|
590
|
+
A(a(Le))
|
|
554
591
|
]),
|
|
555
592
|
_: 1
|
|
556
|
-
})) : (l(),
|
|
593
|
+
})) : (l(), K(N, {
|
|
557
594
|
key: 1,
|
|
558
595
|
class: "node-icon running"
|
|
559
596
|
}, {
|
|
560
|
-
default:
|
|
561
|
-
|
|
597
|
+
default: k(() => [
|
|
598
|
+
A(a(ze))
|
|
562
599
|
]),
|
|
563
600
|
_: 1
|
|
564
601
|
}))
|
|
565
602
|
]),
|
|
566
|
-
d("span",
|
|
603
|
+
d("span", dt, z(j.name), 1)
|
|
567
604
|
]))), 128)),
|
|
568
|
-
d("div",
|
|
569
|
-
|
|
605
|
+
d("div", ft, [
|
|
606
|
+
A(D, {
|
|
570
607
|
percentage: Y.value,
|
|
571
608
|
"show-text": !1,
|
|
572
609
|
"stroke-width": 4,
|
|
573
610
|
color: "#667eea"
|
|
574
611
|
}, null, 8, ["percentage"]),
|
|
575
|
-
d("span", pt, "第 " +
|
|
612
|
+
d("span", pt, "第 " + z(g.value) + "/" + z(e.value) + " 步 · " + z(S.value), 1)
|
|
576
613
|
])
|
|
577
614
|
])) : Q("", !0),
|
|
578
|
-
ie(
|
|
579
|
-
key: 1,
|
|
580
|
-
class: w(["message-content-json", { "result-animation": H === o.value.length - 1 && _.value }]),
|
|
581
|
-
innerHTML: ke(u.content)
|
|
582
|
-
}, null, 10, ft)) : u.content ? (l(), m("div", {
|
|
615
|
+
ie(c.content) ? (l(), f("div", {
|
|
583
616
|
key: 2,
|
|
617
|
+
class: w(["message-content-json", { "result-animation": H === o.value.length - 1 && _.value }]),
|
|
618
|
+
innerHTML: ye(c.content)
|
|
619
|
+
}, null, 10, mt)) : c.content ? (l(), f("div", {
|
|
620
|
+
key: 3,
|
|
584
621
|
class: w(["message-content-text", { "result-animation": H === o.value.length - 1 && _.value }])
|
|
585
|
-
},
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
622
|
+
}, z(c.content), 3)) : Q("", !0),
|
|
623
|
+
c.role === "assistant" ? (l(), f("div", vt, [
|
|
624
|
+
c.showFeedback ? (l(), f("div", gt, [
|
|
625
|
+
A(T, {
|
|
589
626
|
content: "满意",
|
|
590
627
|
placement: "bottom"
|
|
591
628
|
}, {
|
|
592
|
-
default:
|
|
629
|
+
default: k(() => [
|
|
593
630
|
d("img", {
|
|
594
631
|
src: at,
|
|
595
632
|
alt: "满意",
|
|
596
633
|
onClick: (j) => $("satisfied", H)
|
|
597
|
-
}, null, 8,
|
|
634
|
+
}, null, 8, ht)
|
|
598
635
|
]),
|
|
599
636
|
_: 2
|
|
600
637
|
}, 1024),
|
|
601
|
-
|
|
638
|
+
A(T, {
|
|
602
639
|
content: "满意",
|
|
603
640
|
placement: "bottom"
|
|
604
641
|
}, {
|
|
605
|
-
default:
|
|
642
|
+
default: k(() => [
|
|
606
643
|
d("img", {
|
|
607
644
|
src: ot,
|
|
608
645
|
alt: "不满意",
|
|
@@ -612,13 +649,13 @@ const le = (p) => (Me("data-v-652408e0"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
612
649
|
_: 2
|
|
613
650
|
}, 1024)
|
|
614
651
|
])) : Q("", !0),
|
|
615
|
-
ie(
|
|
652
|
+
ie(c.content) ? (l(), K(m, {
|
|
616
653
|
key: 1,
|
|
617
654
|
class: "confirm-btn",
|
|
618
|
-
onClick: (j) =>
|
|
655
|
+
onClick: (j) => he(c.content)
|
|
619
656
|
}, {
|
|
620
|
-
default:
|
|
621
|
-
Z("
|
|
657
|
+
default: k(() => [
|
|
658
|
+
Z(" 确认查询 ")
|
|
622
659
|
]),
|
|
623
660
|
_: 2
|
|
624
661
|
}, 1032, ["onClick"])) : Q("", !0)
|
|
@@ -627,28 +664,28 @@ const le = (p) => (Me("data-v-652408e0"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
627
664
|
], 64)) : Q("", !0)
|
|
628
665
|
], 2))), 128))
|
|
629
666
|
], 512),
|
|
630
|
-
d("div",
|
|
631
|
-
|
|
667
|
+
d("div", yt, [
|
|
668
|
+
A(U, {
|
|
632
669
|
class: "message-input",
|
|
633
|
-
modelValue:
|
|
634
|
-
"onUpdate:modelValue":
|
|
670
|
+
modelValue: B.value,
|
|
671
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => B.value = c),
|
|
635
672
|
type: "textarea",
|
|
636
673
|
rows: 4,
|
|
637
674
|
autosize: { minRows: 2, maxRows: 4 },
|
|
638
675
|
placeholder: "输入您想查询的品种条件...",
|
|
639
|
-
onKeydown:
|
|
676
|
+
onKeydown: Ae
|
|
640
677
|
}, null, 8, ["modelValue"]),
|
|
641
678
|
d("div", kt, [
|
|
642
|
-
|
|
643
|
-
|
|
679
|
+
wt,
|
|
680
|
+
A(m, {
|
|
644
681
|
class: "send-btn",
|
|
645
682
|
type: "primary",
|
|
646
|
-
icon:
|
|
647
|
-
loading:
|
|
648
|
-
onClick:
|
|
683
|
+
icon: a(Oe),
|
|
684
|
+
loading: h.value,
|
|
685
|
+
onClick: I,
|
|
649
686
|
round: ""
|
|
650
687
|
}, {
|
|
651
|
-
default:
|
|
688
|
+
default: k(() => [
|
|
652
689
|
Z(" 发送 ")
|
|
653
690
|
]),
|
|
654
691
|
_: 1
|
|
@@ -659,40 +696,40 @@ const le = (p) => (Me("data-v-652408e0"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
659
696
|
]),
|
|
660
697
|
_: 1
|
|
661
698
|
}, 8, ["modelValue"]),
|
|
662
|
-
|
|
663
|
-
modelValue:
|
|
664
|
-
"onUpdate:modelValue":
|
|
699
|
+
A(ue, {
|
|
700
|
+
modelValue: P.value,
|
|
701
|
+
"onUpdate:modelValue": s[5] || (s[5] = (c) => P.value = c),
|
|
665
702
|
title: "📝 反馈意见",
|
|
666
703
|
width: "400px"
|
|
667
704
|
}, {
|
|
668
|
-
footer:
|
|
669
|
-
d("span",
|
|
670
|
-
|
|
671
|
-
onClick:
|
|
705
|
+
footer: k(() => [
|
|
706
|
+
d("span", St, [
|
|
707
|
+
A(m, {
|
|
708
|
+
onClick: s[3] || (s[3] = (c) => P.value = !1)
|
|
672
709
|
}, {
|
|
673
|
-
default:
|
|
710
|
+
default: k(() => [
|
|
674
711
|
Z("取消")
|
|
675
712
|
]),
|
|
676
713
|
_: 1
|
|
677
714
|
}),
|
|
678
|
-
|
|
715
|
+
A(m, {
|
|
679
716
|
type: "primary",
|
|
680
|
-
onClick:
|
|
717
|
+
onClick: s[4] || (s[4] = (c) => $("unsatisfied", G.value))
|
|
681
718
|
}, {
|
|
682
|
-
default:
|
|
719
|
+
default: k(() => [
|
|
683
720
|
Z("提交反馈")
|
|
684
721
|
]),
|
|
685
722
|
_: 1
|
|
686
723
|
})
|
|
687
724
|
])
|
|
688
725
|
]),
|
|
689
|
-
default:
|
|
690
|
-
d("div",
|
|
691
|
-
|
|
726
|
+
default: k(() => [
|
|
727
|
+
d("div", bt, [
|
|
728
|
+
Tt,
|
|
692
729
|
_t,
|
|
693
|
-
|
|
694
|
-
modelValue:
|
|
695
|
-
"onUpdate:modelValue":
|
|
730
|
+
A(U, {
|
|
731
|
+
modelValue: O.value,
|
|
732
|
+
"onUpdate:modelValue": s[2] || (s[2] = (c) => O.value = c),
|
|
696
733
|
type: "textarea",
|
|
697
734
|
rows: 4,
|
|
698
735
|
placeholder: "[非必填]例如:回答不够准确、查询结果有误、界面体验不佳..."
|
|
@@ -704,11 +741,11 @@ const le = (p) => (Me("data-v-652408e0"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
704
741
|
], 64);
|
|
705
742
|
};
|
|
706
743
|
}
|
|
707
|
-
},
|
|
744
|
+
}, Ct = /* @__PURE__ */ He(Dt, [["__scopeId", "data-v-1ebca857"]]), es = {
|
|
708
745
|
install(p) {
|
|
709
|
-
p.component("st-varietyAiHelper",
|
|
746
|
+
p.component("st-varietyAiHelper", Ct);
|
|
710
747
|
}
|
|
711
748
|
};
|
|
712
749
|
export {
|
|
713
|
-
|
|
750
|
+
es as default
|
|
714
751
|
};
|