sooyie-pgss 0.0.7 → 0.0.8
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-DC2jf7oH.mjs} +1 -1
- package/dist/{edit-CONEPS6o.mjs → edit-DPZ2KRCd.mjs} +1 -1
- package/dist/history-xRxkIYRN.mjs +186 -0
- package/dist/{index-BjyqkRSF.mjs → index-BP4jibk6.mjs} +1 -1
- package/dist/{index-BzcWIZeM.mjs → index-BhzzZN5S.mjs} +1 -1
- package/dist/{index-gj9-Uezz.mjs → index-C0DLTypb.mjs} +2 -2
- package/dist/{index-CkVsz6yH.mjs → index-DMVIfzsH.mjs} +86 -26
- package/dist/{index-CLmQf2ec.mjs → index-DRytYmLN.mjs} +1 -1
- package/dist/index-Dew2HmWi.mjs +401 -0
- package/dist/index.mjs +239 -197
- package/dist/{info-Cf-H4Nq1.mjs → info-CkB6TQua.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-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 +21 -0
- package/dts/src/lang/pgss/en.js +134 -0
- package/dts/src/lang/pgss/zh-cn.d.ts +21 -0
- package/dts/src/lang/pgss/zh-cn.js +187 -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/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 +258 -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-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-DMVIfzsH.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-DMVIfzsH.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-DMVIfzsH.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";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as Z, getCurrentInstance as x, ref as w, reactive as R,
|
|
|
2
2
|
import { useTableHooks as te } from "jmash-core";
|
|
3
3
|
import { useI18n as le } from "vue-i18n";
|
|
4
4
|
import { D as v, p as ae } from "./index-Cc_rS2lk.mjs";
|
|
5
|
-
import oe from "./edit-
|
|
5
|
+
import oe from "./edit-DPZ2KRCd.mjs";
|
|
6
6
|
import "./constant-KIlcvlH7.mjs";
|
|
7
7
|
import { u as ne } from "./index-CeyTmMNJ.mjs";
|
|
8
8
|
import { useRoute as pe } from "vue-router";
|
|
@@ -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-DMVIfzsH.mjs";
|
|
5
5
|
import { u as pe } from "./index-CeyTmMNJ.mjs";
|
|
6
|
-
import ce from "./info-
|
|
6
|
+
import ce from "./info-CkB6TQua.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";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as e, openBlock as t, createElementBlock as r, createElementVNode as a } from "vue";
|
|
2
2
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
3
|
-
var
|
|
3
|
+
var o = /* @__PURE__ */ e({
|
|
4
4
|
name: "ChatDotRound",
|
|
5
5
|
__name: "chat-dot-round",
|
|
6
6
|
setup(l) {
|
|
7
|
-
return (_,
|
|
7
|
+
return (_, s) => (t(), r("svg", {
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
viewBox: "0 0 1024 1024"
|
|
10
10
|
}, [
|
|
@@ -18,11 +18,11 @@ var c = /* @__PURE__ */ t({
|
|
|
18
18
|
})
|
|
19
19
|
]));
|
|
20
20
|
}
|
|
21
|
-
}),
|
|
21
|
+
}), x = o, n = /* @__PURE__ */ e({
|
|
22
22
|
name: "Clock",
|
|
23
23
|
__name: "clock",
|
|
24
24
|
setup(l) {
|
|
25
|
-
return (_,
|
|
25
|
+
return (_, s) => (t(), r("svg", {
|
|
26
26
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27
27
|
viewBox: "0 0 1024 1024"
|
|
28
28
|
}, [
|
|
@@ -40,11 +40,25 @@ var c = /* @__PURE__ */ t({
|
|
|
40
40
|
})
|
|
41
41
|
]));
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
43
|
+
}), z = n, m = /* @__PURE__ */ e({
|
|
44
|
+
name: "Delete",
|
|
45
|
+
__name: "delete",
|
|
46
|
+
setup(l) {
|
|
47
|
+
return (_, s) => (t(), r("svg", {
|
|
48
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
49
|
+
viewBox: "0 0 1024 1024"
|
|
50
|
+
}, [
|
|
51
|
+
a("path", {
|
|
52
|
+
fill: "currentColor",
|
|
53
|
+
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
|
|
54
|
+
})
|
|
55
|
+
]));
|
|
56
|
+
}
|
|
57
|
+
}), H = m, c = /* @__PURE__ */ e({
|
|
44
58
|
name: "Document",
|
|
45
59
|
__name: "document",
|
|
46
60
|
setup(l) {
|
|
47
|
-
return (_,
|
|
61
|
+
return (_, s) => (t(), r("svg", {
|
|
48
62
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49
63
|
viewBox: "0 0 1024 1024"
|
|
50
64
|
}, [
|
|
@@ -54,11 +68,39 @@ var c = /* @__PURE__ */ t({
|
|
|
54
68
|
})
|
|
55
69
|
]));
|
|
56
70
|
}
|
|
57
|
-
}),
|
|
71
|
+
}), C = c, h = /* @__PURE__ */ e({
|
|
72
|
+
name: "EditPen",
|
|
73
|
+
__name: "edit-pen",
|
|
74
|
+
setup(l) {
|
|
75
|
+
return (_, s) => (t(), r("svg", {
|
|
76
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
77
|
+
viewBox: "0 0 1024 1024"
|
|
78
|
+
}, [
|
|
79
|
+
a("path", {
|
|
80
|
+
fill: "currentColor",
|
|
81
|
+
d: "m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"
|
|
82
|
+
})
|
|
83
|
+
]));
|
|
84
|
+
}
|
|
85
|
+
}), M = h, v = /* @__PURE__ */ e({
|
|
86
|
+
name: "MoreFilled",
|
|
87
|
+
__name: "more-filled",
|
|
88
|
+
setup(l) {
|
|
89
|
+
return (_, s) => (t(), r("svg", {
|
|
90
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
91
|
+
viewBox: "0 0 1024 1024"
|
|
92
|
+
}, [
|
|
93
|
+
a("path", {
|
|
94
|
+
fill: "currentColor",
|
|
95
|
+
d: "M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"
|
|
96
|
+
})
|
|
97
|
+
]));
|
|
98
|
+
}
|
|
99
|
+
}), V = v, p = /* @__PURE__ */ e({
|
|
58
100
|
name: "OfficeBuilding",
|
|
59
101
|
__name: "office-building",
|
|
60
102
|
setup(l) {
|
|
61
|
-
return (_,
|
|
103
|
+
return (_, s) => (t(), r("svg", {
|
|
62
104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
63
105
|
viewBox: "0 0 1024 1024"
|
|
64
106
|
}, [
|
|
@@ -76,11 +118,25 @@ var c = /* @__PURE__ */ t({
|
|
|
76
118
|
})
|
|
77
119
|
]));
|
|
78
120
|
}
|
|
79
|
-
}),
|
|
121
|
+
}), B = p, u = /* @__PURE__ */ e({
|
|
122
|
+
name: "Refresh",
|
|
123
|
+
__name: "refresh",
|
|
124
|
+
setup(l) {
|
|
125
|
+
return (_, s) => (t(), r("svg", {
|
|
126
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
127
|
+
viewBox: "0 0 1024 1024"
|
|
128
|
+
}, [
|
|
129
|
+
a("path", {
|
|
130
|
+
fill: "currentColor",
|
|
131
|
+
d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
|
|
132
|
+
})
|
|
133
|
+
]));
|
|
134
|
+
}
|
|
135
|
+
}), k = u, i = /* @__PURE__ */ e({
|
|
80
136
|
name: "Share",
|
|
81
137
|
__name: "share",
|
|
82
138
|
setup(l) {
|
|
83
|
-
return (_,
|
|
139
|
+
return (_, s) => (t(), r("svg", {
|
|
84
140
|
xmlns: "http://www.w3.org/2000/svg",
|
|
85
141
|
viewBox: "0 0 1024 1024"
|
|
86
142
|
}, [
|
|
@@ -90,11 +146,11 @@ var c = /* @__PURE__ */ t({
|
|
|
90
146
|
})
|
|
91
147
|
]));
|
|
92
148
|
}
|
|
93
|
-
}),
|
|
149
|
+
}), L = i, w = /* @__PURE__ */ e({
|
|
94
150
|
name: "Star",
|
|
95
151
|
__name: "star",
|
|
96
152
|
setup(l) {
|
|
97
|
-
return (_,
|
|
153
|
+
return (_, s) => (t(), r("svg", {
|
|
98
154
|
xmlns: "http://www.w3.org/2000/svg",
|
|
99
155
|
viewBox: "0 0 1024 1024"
|
|
100
156
|
}, [
|
|
@@ -104,11 +160,11 @@ var c = /* @__PURE__ */ t({
|
|
|
104
160
|
})
|
|
105
161
|
]));
|
|
106
162
|
}
|
|
107
|
-
}),
|
|
163
|
+
}), A = w, f = /* @__PURE__ */ e({
|
|
108
164
|
name: "Tickets",
|
|
109
165
|
__name: "tickets",
|
|
110
166
|
setup(l) {
|
|
111
|
-
return (_,
|
|
167
|
+
return (_, s) => (t(), r("svg", {
|
|
112
168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
113
169
|
viewBox: "0 0 1024 1024"
|
|
114
170
|
}, [
|
|
@@ -118,11 +174,11 @@ var c = /* @__PURE__ */ t({
|
|
|
118
174
|
})
|
|
119
175
|
]));
|
|
120
176
|
}
|
|
121
|
-
}),
|
|
177
|
+
}), b = f, d = /* @__PURE__ */ e({
|
|
122
178
|
name: "User",
|
|
123
179
|
__name: "user",
|
|
124
180
|
setup(l) {
|
|
125
|
-
return (_,
|
|
181
|
+
return (_, s) => (t(), r("svg", {
|
|
126
182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
127
183
|
viewBox: "0 0 1024 1024"
|
|
128
184
|
}, [
|
|
@@ -132,14 +188,18 @@ var c = /* @__PURE__ */ t({
|
|
|
132
188
|
})
|
|
133
189
|
]));
|
|
134
190
|
}
|
|
135
|
-
}),
|
|
191
|
+
}), D = d;
|
|
136
192
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
d,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
193
|
+
C as a,
|
|
194
|
+
A as b,
|
|
195
|
+
x as c,
|
|
196
|
+
H as d,
|
|
197
|
+
M as e,
|
|
198
|
+
z as f,
|
|
199
|
+
V as m,
|
|
200
|
+
B as o,
|
|
201
|
+
k as r,
|
|
202
|
+
L as s,
|
|
203
|
+
b as t,
|
|
204
|
+
D as u
|
|
145
205
|
};
|
|
@@ -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-DC2jf7oH.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";
|