sooyie-pgss 0.0.7 → 0.0.9
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/apiCall-BhS14qUE.mjs +194 -0
- package/dist/{edit-BWwsW4lY.mjs → edit-By9buUGg.mjs} +1 -1
- package/dist/{edit-CONEPS6o.mjs → edit-DxDpftpV.mjs} +1 -1
- package/dist/history-d-QiRe_o.mjs +186 -0
- package/dist/{index-BjyqkRSF.mjs → index-BP4jibk6.mjs} +1 -1
- package/dist/{index-gj9-Uezz.mjs → index-ByT0tywU.mjs} +2 -2
- package/dist/{index-CLmQf2ec.mjs → index-BykLuLsz.mjs} +1 -1
- package/dist/index-CTQX0yic.mjs +401 -0
- package/dist/index-D1Alu84X.mjs +191 -0
- package/dist/{index-CkVsz6yH.mjs → index-DCY0SbK2.mjs} +116 -26
- package/dist/{index-BzcWIZeM.mjs → index-HBIIK6iA.mjs} +1 -1
- package/dist/index.mjs +378 -286
- package/dist/{info-Cf-H4Nq1.mjs → info-CAk_CRho.mjs} +1 -1
- package/dist/new-conversation-BJrE2piC.mjs +181 -0
- package/dist/rename-x4dBXv7B.mjs +4 -0
- package/dist/rename.vue_vue_type_script_setup_true_lang-CAXpy7Ny.mjs +165 -0
- package/dist/style.css +1 -1
- package/dts/src/App.vue.js +39 -0
- package/dts/src/api/pgss/dict.js +44 -0
- package/dts/src/api/pgss/index.js +46 -0
- package/dts/src/api/pgss/pgss-app-info/index.js +129 -0
- package/dts/src/api/pgss/pgss-app-info/types.js +1 -0
- package/dts/src/api/pgss/pgss-chat/index.d.ts +6 -1
- package/dts/src/api/pgss/pgss-chat/index.js +68 -0
- package/dts/src/api/pgss/pgss-chat/types.d.ts +54 -0
- package/dts/src/api/pgss/pgss-chat/types.js +1 -0
- package/dts/src/api/pgss/pgss-deny-file/index.d.ts +10 -0
- package/dts/src/api/pgss/pgss-deny-file/index.js +38 -0
- package/dts/src/api/pgss/pgss-deny-file/type.d.ts +11 -0
- package/dts/src/api/pgss/pgss-deny-file/type.js +1 -0
- package/dts/src/api/pgss/pgss-message-log/index.js +87 -0
- package/dts/src/api/pgss/pgss-message-log/types.js +1 -0
- package/dts/src/api/pgss/pgss-portrait-weight/index.js +148 -0
- package/dts/src/api/pgss/pgss-portrait-weight/types.js +1 -0
- package/dts/src/api/pgss/pgss-prompt-template/index.js +100 -0
- package/dts/src/api/pgss/pgss-prompt-template/types.js +1 -0
- package/dts/src/api/pgss/pgss-user-portrait/index.js +126 -0
- package/dts/src/api/pgss/pgss-user-portrait/types.js +1 -0
- package/dts/src/components/DateRangePicker/DateRangePicker.vue.js +168 -0
- package/dts/src/constant.js +45 -0
- package/dts/src/index.js +21 -0
- package/dts/src/lang/index.js +13 -0
- package/dts/src/lang/pgss/en.d.ts +46 -0
- package/dts/src/lang/pgss/en.js +159 -0
- package/dts/src/lang/pgss/zh-cn.d.ts +46 -0
- package/dts/src/lang/pgss/zh-cn.js +212 -0
- package/dts/src/main.js +35 -0
- package/dts/src/permission.js +88 -0
- package/dts/src/router/index.js +97 -0
- package/dts/src/utils/copy.js +46 -0
- package/dts/src/utils/dateFormat.js +15 -0
- package/dts/src/utils/duration.js +24 -0
- package/dts/src/utils/fileutil.d.ts +4 -0
- package/dts/src/utils/fileutil.js +15 -0
- package/dts/src/utils/timePlugin.js +12 -0
- package/dts/src/views/pgss/pgss-app-info/app-info.vue.js +885 -0
- package/dts/src/views/pgss/pgss-app-info/edit.vue.js +690 -0
- package/dts/src/views/pgss/pgss-app-info/index.vue.js +137 -0
- package/dts/src/views/pgss/pgss-app-info/info.vue.js +395 -0
- package/dts/src/views/pgss/pgss-app-info/resetPwd.vue.js +275 -0
- package/dts/src/views/pgss/pgss-chat/history.vue.d.ts +25 -0
- package/dts/src/views/pgss/pgss-chat/history.vue.js +403 -0
- package/dts/src/views/pgss/pgss-chat/index.vue.js +829 -0
- package/dts/src/views/pgss/pgss-chat/new-conversation.vue.d.ts +17 -0
- package/dts/src/views/pgss/pgss-chat/new-conversation.vue.js +327 -0
- package/dts/src/views/pgss/pgss-chat/rename.vue.d.ts +35 -0
- package/dts/src/views/pgss/pgss-chat/rename.vue.js +250 -0
- package/dts/src/views/pgss/pgss-homepage/apiCall.vue.js +184 -0
- package/dts/src/views/pgss/pgss-homepage/image.vue.js +155 -0
- package/dts/src/views/pgss/pgss-homepage/index.vue.js +214 -0
- package/dts/src/views/pgss/pgss-login/index.vue.js +369 -0
- package/dts/src/views/pgss/pgss-message-log/index.vue.js +607 -0
- package/dts/src/views/pgss/pgss-message-log/info.vue.js +226 -0
- package/dts/src/views/pgss/pgss-portrait-weight/index.vue.js +526 -0
- package/dts/src/views/pgss/pgss-prompt-template/edit.vue.js +844 -0
- package/dts/src/views/pgss/pgss-prompt-template/index.vue.js +595 -0
- package/dts/src/views/pgss/pgss-prompt-template-custom/edit.vue.js +851 -0
- package/dts/src/views/pgss/pgss-prompt-template-custom/index.vue.js +662 -0
- package/dts/src/views/pgss/pgss-sensitive-word/index.vue.d.ts +2 -0
- package/dts/src/views/pgss/pgss-sensitive-word/index.vue.js +309 -0
- package/dts/src/views/pgss/pgss-user-portrait/index.vue.js +1034 -0
- package/dts/src/views/pgss/pgss-user-portrait/info.vue.js +484 -0
- package/dts/src/views/pgss/pgss-user-portrait/simulateNum.vue.d.ts +1 -1
- package/dts/src/views/pgss/pgss-user-portrait/simulateNum.vue.js +201 -0
- package/package.json +1 -1
- package/dist/apiCall-B-uq340z.mjs +0 -224
- package/dist/index-x65eowQY.mjs +0 -266
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { defineComponent as k, ref as p, resolveComponent as S, openBlock as y, createElementBlock as D, createElementVNode as i, Fragment as T, renderList as $, normalizeClass as A, toDisplayString as L, createVNode as C, computed as g, onMounted as Y, onUnmounted as R } from "vue";
|
|
2
|
+
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
import { i as V } from "./index-DmqVT2Yh.mjs";
|
|
4
|
+
import { a as E } from "./index-MA9jC8ZF.mjs";
|
|
5
|
+
import { a as M } from "./dateFormat-Bq1a2pSJ.mjs";
|
|
6
|
+
const z = { class: "time-filter-bar" }, I = { class: "quick-options" }, N = ["onClick"], P = /* @__PURE__ */ k({
|
|
7
|
+
__name: "DateRangePicker",
|
|
8
|
+
props: {
|
|
9
|
+
// 默认选中的快捷选项
|
|
10
|
+
defaultType: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "today"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
emits: ["change"],
|
|
16
|
+
setup(b, { emit: m }) {
|
|
17
|
+
const s = b, l = m, r = p(s.defaultType), c = p([]), f = [
|
|
18
|
+
{ label: "今天", value: "today" },
|
|
19
|
+
{ label: "近7天", value: "last7" },
|
|
20
|
+
{ label: "近30天", value: "last30" }
|
|
21
|
+
], v = (a) => {
|
|
22
|
+
const o = /* @__PURE__ */ new Date(), u = (e) => e.toString().padStart(2, "0"), n = (e) => {
|
|
23
|
+
const t = e.getFullYear(), d = e.getMonth() + 1, x = e.getDate();
|
|
24
|
+
return `${t}-${u(d)}-${u(x)}`;
|
|
25
|
+
};
|
|
26
|
+
switch (a) {
|
|
27
|
+
case "today": {
|
|
28
|
+
const e = n(o);
|
|
29
|
+
return [e, e];
|
|
30
|
+
}
|
|
31
|
+
case "last7": {
|
|
32
|
+
const e = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
|
|
33
|
+
return t.setDate(t.getDate() - 6), [n(t), n(e)];
|
|
34
|
+
}
|
|
35
|
+
case "last30": {
|
|
36
|
+
const e = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
|
|
37
|
+
return t.setDate(t.getDate() - 29), [n(t), n(e)];
|
|
38
|
+
}
|
|
39
|
+
default:
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
}, h = (a) => {
|
|
43
|
+
r.value = a;
|
|
44
|
+
const o = v(a);
|
|
45
|
+
c.value = o, l("change", o, a);
|
|
46
|
+
}, _ = (a) => {
|
|
47
|
+
if (!a || a.length === 0) {
|
|
48
|
+
r.value = "", l("change", [], "");
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
r.value = "custom", l("change", a, "custom");
|
|
52
|
+
};
|
|
53
|
+
{
|
|
54
|
+
const a = v(s.defaultType);
|
|
55
|
+
c.value = a;
|
|
56
|
+
}
|
|
57
|
+
return (a, o) => {
|
|
58
|
+
const u = S("el-date-picker");
|
|
59
|
+
return y(), D("div", z, [
|
|
60
|
+
i("div", I, [
|
|
61
|
+
(y(), D(T, null, $(f, (n) => i("span", {
|
|
62
|
+
key: n.value,
|
|
63
|
+
class: A(["option-item", { active: r.value === n.value }]),
|
|
64
|
+
onClick: (e) => h(n.value)
|
|
65
|
+
}, L(n.label), 11, N)), 64))
|
|
66
|
+
]),
|
|
67
|
+
C(u, {
|
|
68
|
+
modelValue: c.value,
|
|
69
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => c.value = n),
|
|
70
|
+
type: "daterange",
|
|
71
|
+
"start-placeholder": a.$t("liveVideo.startTime"),
|
|
72
|
+
"end-placeholder": a.$t("liveVideo.endTime"),
|
|
73
|
+
format: "YYYY-MM-DD",
|
|
74
|
+
"value-format": "YYYY-MM-DD",
|
|
75
|
+
onChange: _,
|
|
76
|
+
class: "date-picker",
|
|
77
|
+
clearable: ""
|
|
78
|
+
}, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
|
|
79
|
+
]);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}), q = /* @__PURE__ */ w(P, [["__scopeId", "data-v-e20d4afb"]]), B = { class: "chart-card" }, F = { class: "card-top" }, O = { class: "card-filter" }, U = /* @__PURE__ */ k({
|
|
83
|
+
__name: "apiCall",
|
|
84
|
+
setup(b) {
|
|
85
|
+
const m = p();
|
|
86
|
+
let s = null;
|
|
87
|
+
const l = p([]), r = p(!0), c = p(!1), f = g(
|
|
88
|
+
() => l.value.map((e) => {
|
|
89
|
+
const t = e.statDate || "";
|
|
90
|
+
return t.length >= 10 ? t.slice(5, 10) : t;
|
|
91
|
+
})
|
|
92
|
+
), v = g(
|
|
93
|
+
() => l.value.map((e) => Number(e.successTimes ?? 0))
|
|
94
|
+
), h = g(
|
|
95
|
+
() => l.value.map((e) => Number(e.errorTimes ?? 0))
|
|
96
|
+
);
|
|
97
|
+
function _() {
|
|
98
|
+
if (!m.value) return;
|
|
99
|
+
s = V(m.value);
|
|
100
|
+
const e = {
|
|
101
|
+
tooltip: { trigger: "axis", axisPointer: { type: "shadow" } },
|
|
102
|
+
legend: [{ data: ["成功调用量", "失败调用量"], left: 0 }],
|
|
103
|
+
grid: { left: "6%", right: "4%", bottom: "10%", containLabel: !0 },
|
|
104
|
+
xAxis: {
|
|
105
|
+
type: "category",
|
|
106
|
+
data: f.value,
|
|
107
|
+
axisLabel: { color: "#666" }
|
|
108
|
+
},
|
|
109
|
+
yAxis: {
|
|
110
|
+
type: "value",
|
|
111
|
+
name: "调用次数",
|
|
112
|
+
nameGap: 10,
|
|
113
|
+
splitLine: { lineStyle: { color: "#eee" } }
|
|
114
|
+
},
|
|
115
|
+
series: [
|
|
116
|
+
{
|
|
117
|
+
name: "成功调用量",
|
|
118
|
+
type: "bar",
|
|
119
|
+
stack: "total",
|
|
120
|
+
barWidth: "40%",
|
|
121
|
+
itemStyle: { color: "#74A9E8" },
|
|
122
|
+
data: v.value
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "失败调用量",
|
|
126
|
+
type: "bar",
|
|
127
|
+
stack: "total",
|
|
128
|
+
barWidth: "40%",
|
|
129
|
+
itemStyle: { color: "#E64340" },
|
|
130
|
+
data: h.value
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
};
|
|
134
|
+
s.setOption(e);
|
|
135
|
+
}
|
|
136
|
+
function a() {
|
|
137
|
+
s && (s.setOption({
|
|
138
|
+
xAxis: { data: f.value },
|
|
139
|
+
series: [{ data: v.value }, { data: h.value }]
|
|
140
|
+
}), s.dispatchAction({
|
|
141
|
+
type: "dataZoom",
|
|
142
|
+
startValue: Math.max(0, l.value.length - 7)
|
|
143
|
+
}));
|
|
144
|
+
}
|
|
145
|
+
function o(e) {
|
|
146
|
+
r.value = !0, c.value = !1, E.countStatus(e ?? {}).then((t) => {
|
|
147
|
+
var d;
|
|
148
|
+
l.value = ((d = t.data) == null ? void 0 : d.results) || [], a();
|
|
149
|
+
}).catch((t) => {
|
|
150
|
+
console.error("[apiCall] countStatus 调用失败:", t), c.value = !0, l.value = [];
|
|
151
|
+
}).finally(() => {
|
|
152
|
+
r.value = !1;
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
function u(e, t) {
|
|
156
|
+
if (!e || e.length < 2) {
|
|
157
|
+
o();
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
o({ startDate: e[0], endDate: e[1] });
|
|
161
|
+
}
|
|
162
|
+
function n() {
|
|
163
|
+
s == null || s.resize();
|
|
164
|
+
}
|
|
165
|
+
return Y(() => {
|
|
166
|
+
_(), o(M(6)), window.addEventListener("resize", n);
|
|
167
|
+
}), R(() => {
|
|
168
|
+
window.removeEventListener("resize", n), s && (s.dispose(), s = null);
|
|
169
|
+
}), (e, t) => {
|
|
170
|
+
const d = q;
|
|
171
|
+
return y(), D("div", B, [
|
|
172
|
+
i("div", F, [
|
|
173
|
+
t[0] || (t[0] = i("div", { class: "card-title-row" }, [
|
|
174
|
+
i("span", { class: "card-title" }, "API调用次数")
|
|
175
|
+
], -1)),
|
|
176
|
+
i("div", O, [
|
|
177
|
+
C(d, {
|
|
178
|
+
defaultType: "last7",
|
|
179
|
+
onChange: u
|
|
180
|
+
})
|
|
181
|
+
])
|
|
182
|
+
]),
|
|
183
|
+
i("div", {
|
|
184
|
+
class: "chart-content",
|
|
185
|
+
ref_key: "apiChartRef",
|
|
186
|
+
ref: m
|
|
187
|
+
}, null, 512)
|
|
188
|
+
]);
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}), H = /* @__PURE__ */ w(U, [["__scopeId", "data-v-a851ba60"]]);
|
|
192
|
+
export {
|
|
193
|
+
H as default
|
|
194
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as oe, ref as R, reactive as B, computed as N, useModel as ae, resolveComponent as d, openBlock as m, createBlock as P, withCtx as i, createVNode as a, unref as p, createElementVNode as o, createElementBlock as f, Fragment as h, renderList as y, createTextVNode as C, toDisplayString as _, createCommentVNode as se, mergeModels as K, nextTick as ne } from "vue";
|
|
2
2
|
import { ElMessage as H } from "element-plus";
|
|
3
|
-
import {
|
|
3
|
+
import { a as re } from "./index-DCY0SbK2.mjs";
|
|
4
4
|
import { useI18n as ie } from "vue-i18n";
|
|
5
5
|
import { D as V, p as D } from "./index-Cc_rS2lk.mjs";
|
|
6
6
|
import { u as pe } from "./index-CeyTmMNJ.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as oe, ref as $, reactive as O, computed as R, useModel as ae, resolveComponent as d, openBlock as c, createBlock as B, withCtx as s, createVNode as l, unref as i, createElementVNode as p, createElementBlock as _, Fragment as T, renderList as V, createTextVNode as v, toDisplayString as g, createCommentVNode as se, mergeModels as P, nextTick as ne } from "vue";
|
|
2
2
|
import { ElMessage as K } from "element-plus";
|
|
3
|
-
import {
|
|
3
|
+
import { a as re } from "./index-DCY0SbK2.mjs";
|
|
4
4
|
import { useI18n as pe } from "vue-i18n";
|
|
5
5
|
import { D as w, p as S } from "./index-Cc_rS2lk.mjs";
|
|
6
6
|
import { u as ie } from "./index-CeyTmMNJ.mjs";
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { defineComponent as F, getCurrentInstance as U, ref as v, onMounted as A, resolveComponent as m, resolveDirective as R, openBlock as u, createElementBlock as h, createElementVNode as l, toDisplayString as a, createVNode as t, withCtx as n, unref as r, withDirectives as j, createCommentVNode as q, Fragment as G, renderList as J, normalizeClass as K, withModifiers as x, createTextVNode as D } from "vue";
|
|
2
|
+
import { r as O, c as P, m as Q, e as W, d as X } from "./index-DCY0SbK2.mjs";
|
|
3
|
+
import { ElMessageBox as Z, ElMessage as T } from "element-plus";
|
|
4
|
+
import { useI18n as ee } from "vue-i18n";
|
|
5
|
+
import { _ as te, c as B } from "./rename.vue_vue_type_script_setup_true_lang-CAXpy7Ny.mjs";
|
|
6
|
+
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
const ne = { class: "chat-history" }, se = { class: "chat-history__head" }, le = { class: "chat-history__title" }, ae = { class: "chat-history__new" }, ie = { class: "chat-history__list" }, re = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "chat-history__empty"
|
|
10
|
+
}, ce = ["onClick"], de = { class: "chat-history__item-main" }, _e = { class: "chat-history__item-name" }, me = { class: "chat-history__item-time" }, ue = /* @__PURE__ */ F({
|
|
11
|
+
__name: "history",
|
|
12
|
+
props: {
|
|
13
|
+
// 当前选中的对话ID,用于高亮
|
|
14
|
+
conversationId: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: void 0
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: ["select", "delete", "new"],
|
|
20
|
+
setup(w, { expose: M, emit: b }) {
|
|
21
|
+
const { proxy: E } = U(), { t: i } = ee(), H = w, p = b, f = v([]), c = v(!1), y = v(!1), g = v();
|
|
22
|
+
function N(e, o) {
|
|
23
|
+
if (e === "rename") {
|
|
24
|
+
g.value = o, y.value = !0;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
e === "delete" && S(o);
|
|
28
|
+
}
|
|
29
|
+
function S(e) {
|
|
30
|
+
Z.confirm(i("chat.deleteConfirm"), i("chat.deleteTitle"), {
|
|
31
|
+
type: "warning",
|
|
32
|
+
confirmButtonText: i("chat.delete"),
|
|
33
|
+
cancelButtonText: i("common.cancel"),
|
|
34
|
+
confirmButtonClass: "chat-delete-confirm-btn"
|
|
35
|
+
}).then(
|
|
36
|
+
() => B.deleteConversation({ conversationId: e.conversationId })
|
|
37
|
+
).then(() => {
|
|
38
|
+
T.success(i("chat.deleteSuccess")), e.conversationId === H.conversationId && p("delete", e), d();
|
|
39
|
+
}).catch((o) => {
|
|
40
|
+
o === "cancel" || o === "close" || (console.error("[pgss-chat] 删除对话失败:", o), T.error(i("chat.deleteFail")));
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function d() {
|
|
44
|
+
c.value = !0, B.getHistoryList({}).then(({ data: e }) => {
|
|
45
|
+
f.value = (e == null ? void 0 : e.results) ?? [];
|
|
46
|
+
}).catch((e) => {
|
|
47
|
+
console.error("[pgss-chat] 历史对话加载失败:", e), f.value = [];
|
|
48
|
+
}).finally(() => {
|
|
49
|
+
c.value = !1;
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return A(() => {
|
|
53
|
+
d();
|
|
54
|
+
}), M({ refresh: d }), (e, o) => {
|
|
55
|
+
var k, $;
|
|
56
|
+
const _ = m("el-icon"), C = m("el-button"), I = m("el-dropdown-item"), Y = m("el-dropdown-menu"), z = m("el-dropdown"), L = R("loading");
|
|
57
|
+
return u(), h("div", ne, [
|
|
58
|
+
l("div", se, [
|
|
59
|
+
l("span", le, a(e.$t("chat.historyTitle")), 1),
|
|
60
|
+
t(C, {
|
|
61
|
+
text: "",
|
|
62
|
+
size: "small",
|
|
63
|
+
loading: c.value,
|
|
64
|
+
class: "chat-history__refresh",
|
|
65
|
+
onClick: d
|
|
66
|
+
}, {
|
|
67
|
+
default: n(() => [
|
|
68
|
+
t(_, null, {
|
|
69
|
+
default: n(() => [
|
|
70
|
+
t(r(O))
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
})
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
}, 8, ["loading"])
|
|
77
|
+
]),
|
|
78
|
+
l("div", ae, [
|
|
79
|
+
t(C, {
|
|
80
|
+
class: "chat-history__new-btn",
|
|
81
|
+
onClick: o[0] || (o[0] = (s) => p("new"))
|
|
82
|
+
}, {
|
|
83
|
+
default: n(() => [
|
|
84
|
+
t(_, null, {
|
|
85
|
+
default: n(() => [
|
|
86
|
+
t(r(P))
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
}),
|
|
90
|
+
l("span", null, a(e.$t("chat.newConversation")), 1)
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})
|
|
94
|
+
]),
|
|
95
|
+
j((u(), h("div", ie, [
|
|
96
|
+
!c.value && !f.value.length ? (u(), h("div", re, a(e.$t("chat.historyEmpty")), 1)) : q("", !0),
|
|
97
|
+
(u(!0), h(G, null, J(f.value, (s) => (u(), h("div", {
|
|
98
|
+
key: s.conversationId,
|
|
99
|
+
class: K(["chat-history__item", {
|
|
100
|
+
"chat-history__item--active": s.conversationId === w.conversationId
|
|
101
|
+
}]),
|
|
102
|
+
onClick: (V) => p("select", s)
|
|
103
|
+
}, [
|
|
104
|
+
l("div", de, [
|
|
105
|
+
l("div", _e, a(s.name || s.thirdUserId || "-"), 1),
|
|
106
|
+
l("div", me, a(r(E).$moment.formatDate(s.createTime, "YYYY-MM-DD HH:mm:ss")), 1)
|
|
107
|
+
]),
|
|
108
|
+
t(z, {
|
|
109
|
+
trigger: "click",
|
|
110
|
+
class: "chat-history__item-more",
|
|
111
|
+
onClick: o[2] || (o[2] = x(() => {
|
|
112
|
+
}, ["stop"])),
|
|
113
|
+
onCommand: (V) => N(String(V), s)
|
|
114
|
+
}, {
|
|
115
|
+
dropdown: n(() => [
|
|
116
|
+
t(Y, null, {
|
|
117
|
+
default: n(() => [
|
|
118
|
+
t(I, { command: "rename" }, {
|
|
119
|
+
default: n(() => [
|
|
120
|
+
t(_, null, {
|
|
121
|
+
default: n(() => [
|
|
122
|
+
t(r(W))
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
}),
|
|
126
|
+
D(a(e.$t("chat.rename")), 1)
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}),
|
|
130
|
+
t(I, {
|
|
131
|
+
command: "delete",
|
|
132
|
+
style: { color: "#e64340" }
|
|
133
|
+
}, {
|
|
134
|
+
default: n(() => [
|
|
135
|
+
t(_, null, {
|
|
136
|
+
default: n(() => [
|
|
137
|
+
t(r(X))
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}),
|
|
141
|
+
D(a(e.$t("chat.delete")), 1)
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
})
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
})
|
|
148
|
+
]),
|
|
149
|
+
default: n(() => [
|
|
150
|
+
t(C, {
|
|
151
|
+
text: "",
|
|
152
|
+
size: "small",
|
|
153
|
+
onClick: o[1] || (o[1] = x(() => {
|
|
154
|
+
}, ["stop"]))
|
|
155
|
+
}, {
|
|
156
|
+
default: n(() => [
|
|
157
|
+
t(_, null, {
|
|
158
|
+
default: n(() => [
|
|
159
|
+
t(r(Q))
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
})
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
})
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 8, ["onCommand"])
|
|
169
|
+
], 10, ce))), 128))
|
|
170
|
+
])), [
|
|
171
|
+
[L, c.value]
|
|
172
|
+
]),
|
|
173
|
+
t(te, {
|
|
174
|
+
modelValue: y.value,
|
|
175
|
+
"onUpdate:modelValue": o[3] || (o[3] = (s) => y.value = s),
|
|
176
|
+
"conversation-id": (k = g.value) == null ? void 0 : k.conversationId,
|
|
177
|
+
name: ($ = g.value) == null ? void 0 : $.name,
|
|
178
|
+
onRefresh: d
|
|
179
|
+
}, null, 8, ["modelValue", "conversation-id", "name"])
|
|
180
|
+
]);
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
}), Ce = /* @__PURE__ */ oe(ue, [["__scopeId", "data-v-6e3a1e33"]]);
|
|
184
|
+
export {
|
|
185
|
+
Ce as default
|
|
186
|
+
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as N, ref as p, computed as i, openBlock as S, createEl
|
|
|
2
2
|
import { u as B } from "./index-CeyTmMNJ.mjs";
|
|
3
3
|
import { useRoute as F } from "vue-router";
|
|
4
4
|
import { a as T } from "./index-MA9jC8ZF.mjs";
|
|
5
|
-
import I from "./apiCall-
|
|
5
|
+
import I from "./apiCall-BhS14qUE.mjs";
|
|
6
6
|
import V from "./image-CROZrkNB.mjs";
|
|
7
7
|
import { f as k } from "./dateFormat-Bq1a2pSJ.mjs";
|
|
8
8
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as le, ref as S, getCurrentInstance as oe, reactive as ae, resolveComponent as d, resolveDirective as se, openBlock as p, createElementBlock as N, createElementVNode as n, createVNode as a, withCtx as o, withKeys as k, unref as l, createTextVNode as f, toDisplayString as r, withDirectives as $, normalizeClass as I, normalizeStyle as ne, createBlock as y, isRef as F, createCommentVNode as E } from "vue";
|
|
2
2
|
import { useTableHooks as re } from "jmash-core";
|
|
3
3
|
import { useI18n as ie } from "vue-i18n";
|
|
4
|
-
import { u as ue, o as de, s as me } from "./index-
|
|
4
|
+
import { u as ue, o as de, s as me } from "./index-DCY0SbK2.mjs";
|
|
5
5
|
import { u as pe } from "./index-CeyTmMNJ.mjs";
|
|
6
|
-
import ce from "./info-
|
|
6
|
+
import ce from "./info-CAk_CRho.mjs";
|
|
7
7
|
import { _ as ye } from "./simulateNum.vue_vue_type_script_setup_true_lang-ALzj6Sj-.mjs";
|
|
8
8
|
import { D as m } from "./index-Cc_rS2lk.mjs";
|
|
9
9
|
import { C as fe } from "./constant-KIlcvlH7.mjs";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as W, getCurrentInstance as X, ref as T, reactive as R,
|
|
|
2
2
|
import { useTableHooks as ee } from "jmash-core";
|
|
3
3
|
import { useI18n as te } from "vue-i18n";
|
|
4
4
|
import { p as le, D as oe } from "./index-Cc_rS2lk.mjs";
|
|
5
|
-
import ae from "./edit-
|
|
5
|
+
import ae from "./edit-By9buUGg.mjs";
|
|
6
6
|
import "./constant-KIlcvlH7.mjs";
|
|
7
7
|
import { u as ne } from "./index-CeyTmMNJ.mjs";
|
|
8
8
|
import { useRoute as me } from "vue-router";
|