@huyooo/ui 0.10.1 → 0.10.3
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/{AuthkitAuthModal-CIqo_ytT.js → AuthkitAuthModal-De0eEWOC.js} +443 -443
- package/dist/{AuthkitSignInPhone-GEP_InIp.js → AuthkitSignInPhone-DEUVn3Rq.js} +4 -4
- package/dist/{Clipboard-BsST2Mjo.js → Clipboard-CMm8I4Rb.js} +1 -1
- package/dist/{CollapseItem-DN-GUAQA.js → CollapseItem-BAuejDBZ.js} +10 -10
- package/dist/{Contact-D1RLCHL7.js → Contact-Dgn8_it4.js} +1 -1
- package/dist/{FeedbackItem-BhBJPtoI.js → FeedbackItem-CRiLkWMh.js} +6 -6
- package/dist/{FeedbackModal-Ci0sZsOa.js → FeedbackModal-B8WLPCy_.js} +365 -366
- package/dist/{LandingPageSectionHeader-1h01zdKJ.js → LandingPageSectionHeader-Cs1x8i3q.js} +1 -1
- package/dist/{LandingPageSectionTabs-BRTZaLEe.js → LandingPageSectionTabs-Dv_xOLqR.js} +11 -11
- package/dist/{Menu-v8cCDSzi.js → Menu-Cy2ZPeaz.js} +18 -18
- package/dist/{MessageHandle-Dkpc4axC.js → MessageHandle-DpIUeQ7U.js} +6 -6
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DqXjEfo9.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbtfWRUD.js} +47 -47
- package/dist/{PaySubscriptions-ygmbIpWM.js → PaySubscriptions-W6GJ28uE.js} +15 -15
- package/dist/{ReferrerReferees-BlHsWD6F.js → ReferrerReferees-C5Sjn7aD.js} +7 -7
- package/dist/{UserAccountMenu-C6MK8Ulm.js → UserAccountMenu-OdwonGFa.js} +6 -6
- package/dist/{WidthContainer-IvPa1ayt.js → WidthContainer-Cpdc67hQ.js} +125 -128
- package/dist/authkit.js +2 -2
- package/dist/common.js +3 -3
- package/dist/components/Authkit/AuthkitAppSetting.vue.d.ts +1 -1
- package/dist/components/Download/DesktopDownloads.vue.d.ts +1 -6
- package/dist/components/Download/DownloadDropdown.vue.d.ts +0 -2
- package/dist/components/User/UserPanel.vue.d.ts +2 -2
- package/dist/composables/useDownloads.d.ts +1 -3
- package/dist/composables.js +1 -1
- package/dist/feedback.js +3 -3
- package/dist/landingPage.js +2 -2
- package/dist/main.js +88 -96
- package/dist/message.js +2 -2
- package/dist/pay.js +1 -1
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/useDownloads-COXmopbe.js +57 -0
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/useDownloads-CpbLR--j.js +0 -52
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { Space as pe, Image as fe, Avatar as me, Descriptions as
|
|
6
|
-
import { M as
|
|
4
|
+
import { defineComponent as V, computed as A, openBlock as o, createElementBlock as h, normalizeStyle as W, normalizeClass as ce, createElementVNode as B, createBlock as g, unref as a, withCtx as n, createVNode as d, createCommentVNode as L, Fragment as q, createTextVNode as C, toDisplayString as U, ref as y, onUnmounted as Re, h as ae, renderList as Q, nextTick as j } from "vue";
|
|
5
|
+
import { Space as pe, Image as fe, Avatar as me, Descriptions as $e, DescriptionsItem as H, Tag as E, Spin as Fe, Button as X, Form as Be, FormItem as T, Input as Le, Select as le, Option as ne, Textarea as Ue, Message as Ve, Breadcrumb as ze, BreadcrumbItem as se, Modal as qe } from "@arco-design/web-vue";
|
|
6
|
+
import { M as Ne } from "./Menu-Cy2ZPeaz.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
|
-
import { o as
|
|
11
|
+
import { o as P, g as Pe } from "./apiClients-DJchWBAG.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { u as
|
|
16
|
-
import { _ as
|
|
15
|
+
import { u as De } from "./useUploadCos-BO3W_uqs.js";
|
|
16
|
+
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
/* empty css */
|
|
18
18
|
import { f as O } from "./index-D56hUMeD.js";
|
|
19
|
-
import { C as
|
|
20
|
-
import { Bubble as ve, Prompts as
|
|
21
|
-
import { C as ye } from "./Clipboard-
|
|
22
|
-
import { Icon as
|
|
19
|
+
import { C as je } from "./CustomTable-CVZ4mFzi.js";
|
|
20
|
+
import { Bubble as ve, Prompts as Ee, Sender as Oe } from "ant-design-x-vue";
|
|
21
|
+
import { C as ye } from "./Clipboard-CMm8I4Rb.js";
|
|
22
|
+
import { Icon as Ae } from "@iconify/vue";
|
|
23
23
|
import { _ as ge, g as be, i as ke } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
24
|
-
const
|
|
24
|
+
const Me = V({
|
|
25
25
|
name: "IconExclamationCircle",
|
|
26
26
|
props: {
|
|
27
27
|
size: {
|
|
@@ -50,23 +50,23 @@ const Ae = U({
|
|
|
50
50
|
setup(e, {
|
|
51
51
|
emit: l
|
|
52
52
|
}) {
|
|
53
|
-
const t = be("icon"),
|
|
53
|
+
const t = be("icon"), r = A(() => [t, `${t}-exclamation-circle`, {
|
|
54
54
|
[`${t}-spin`]: e.spin
|
|
55
|
-
}]),
|
|
56
|
-
const
|
|
57
|
-
return e.size && (
|
|
55
|
+
}]), i = A(() => {
|
|
56
|
+
const s = {};
|
|
57
|
+
return e.size && (s.fontSize = ke(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
|
|
58
58
|
});
|
|
59
59
|
return {
|
|
60
|
-
cls:
|
|
61
|
-
innerStyle:
|
|
62
|
-
onClick: (
|
|
63
|
-
l("click",
|
|
60
|
+
cls: r,
|
|
61
|
+
innerStyle: i,
|
|
62
|
+
onClick: (s) => {
|
|
63
|
+
l("click", s);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
}),
|
|
68
|
-
function
|
|
69
|
-
return o(),
|
|
67
|
+
}), Te = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
68
|
+
function We(e, l, t, r, i, p) {
|
|
69
|
+
return o(), h("svg", {
|
|
70
70
|
viewBox: "0 0 48 48",
|
|
71
71
|
fill: "none",
|
|
72
72
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -76,19 +76,19 @@ function Te(e, l, t, s, f, d) {
|
|
|
76
76
|
"stroke-width": e.strokeWidth,
|
|
77
77
|
"stroke-linecap": e.strokeLinecap,
|
|
78
78
|
"stroke-linejoin": e.strokeLinejoin,
|
|
79
|
-
onClick: l[0] || (l[0] = (...
|
|
80
|
-
}, l[1] || (l[1] = [
|
|
79
|
+
onClick: l[0] || (l[0] = (...s) => e.onClick && e.onClick(...s))
|
|
80
|
+
}, l[1] || (l[1] = [B("path", {
|
|
81
81
|
d: "M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z"
|
|
82
|
-
}, null, -1)]), 14,
|
|
82
|
+
}, null, -1)]), 14, Te);
|
|
83
83
|
}
|
|
84
|
-
var Z = /* @__PURE__ */ ge(
|
|
84
|
+
var Z = /* @__PURE__ */ ge(Me, [["render", We]]);
|
|
85
85
|
const re = Object.assign(Z, {
|
|
86
86
|
install: (e, l) => {
|
|
87
87
|
var t;
|
|
88
|
-
const
|
|
89
|
-
e.component(
|
|
88
|
+
const r = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
|
|
89
|
+
e.component(r + Z.name, Z);
|
|
90
90
|
}
|
|
91
|
-
}),
|
|
91
|
+
}), Ke = V({
|
|
92
92
|
name: "IconLink",
|
|
93
93
|
props: {
|
|
94
94
|
size: {
|
|
@@ -117,23 +117,23 @@ const re = Object.assign(Z, {
|
|
|
117
117
|
setup(e, {
|
|
118
118
|
emit: l
|
|
119
119
|
}) {
|
|
120
|
-
const t = be("icon"),
|
|
120
|
+
const t = be("icon"), r = A(() => [t, `${t}-link`, {
|
|
121
121
|
[`${t}-spin`]: e.spin
|
|
122
|
-
}]),
|
|
123
|
-
const
|
|
124
|
-
return e.size && (
|
|
122
|
+
}]), i = A(() => {
|
|
123
|
+
const s = {};
|
|
124
|
+
return e.size && (s.fontSize = ke(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
|
|
125
125
|
});
|
|
126
126
|
return {
|
|
127
|
-
cls:
|
|
128
|
-
innerStyle:
|
|
129
|
-
onClick: (
|
|
130
|
-
l("click",
|
|
127
|
+
cls: r,
|
|
128
|
+
innerStyle: i,
|
|
129
|
+
onClick: (s) => {
|
|
130
|
+
l("click", s);
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
}),
|
|
135
|
-
function
|
|
136
|
-
return o(),
|
|
134
|
+
}), He = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
135
|
+
function Ze(e, l, t, r, i, p) {
|
|
136
|
+
return o(), h("svg", {
|
|
137
137
|
viewBox: "0 0 48 48",
|
|
138
138
|
fill: "none",
|
|
139
139
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -143,27 +143,27 @@ function He(e, l, t, s, f, d) {
|
|
|
143
143
|
"stroke-width": e.strokeWidth,
|
|
144
144
|
"stroke-linecap": e.strokeLinecap,
|
|
145
145
|
"stroke-linejoin": e.strokeLinejoin,
|
|
146
|
-
onClick: l[0] || (l[0] = (...
|
|
147
|
-
}, l[1] || (l[1] = [
|
|
146
|
+
onClick: l[0] || (l[0] = (...s) => e.onClick && e.onClick(...s))
|
|
147
|
+
}, l[1] || (l[1] = [B("path", {
|
|
148
148
|
d: "m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"
|
|
149
|
-
}, null, -1)]), 14,
|
|
149
|
+
}, null, -1)]), 14, He);
|
|
150
150
|
}
|
|
151
|
-
var G = /* @__PURE__ */ ge(
|
|
152
|
-
const
|
|
151
|
+
var G = /* @__PURE__ */ ge(Ke, [["render", Ze]]);
|
|
152
|
+
const Ge = Object.assign(G, {
|
|
153
153
|
install: (e, l) => {
|
|
154
154
|
var t;
|
|
155
|
-
const
|
|
156
|
-
e.component(
|
|
155
|
+
const r = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
|
|
156
|
+
e.component(r + G.name, G);
|
|
157
157
|
}
|
|
158
|
-
}),
|
|
158
|
+
}), Je = /* @__PURE__ */ V({
|
|
159
159
|
__name: "FeedbackRefresh",
|
|
160
160
|
setup(e) {
|
|
161
|
-
return (l, t) => (o(), g(a(
|
|
161
|
+
return (l, t) => (o(), g(a(Ae), {
|
|
162
162
|
class: "icon",
|
|
163
163
|
icon: "mingcute:refresh-2-line"
|
|
164
164
|
}));
|
|
165
165
|
}
|
|
166
|
-
}),
|
|
166
|
+
}), Qe = /* @__PURE__ */ D(Je, [["__scopeId", "data-v-64bb6fc2"]]), Xe = ["src"], Ye = /* @__PURE__ */ V({
|
|
167
167
|
__name: "FeedbackBubbleEnd",
|
|
168
168
|
props: {
|
|
169
169
|
value: {
|
|
@@ -199,11 +199,11 @@ const Ze = Object.assign(G, {
|
|
|
199
199
|
setup(e, {
|
|
200
200
|
emit: l
|
|
201
201
|
}) {
|
|
202
|
-
const t = e,
|
|
203
|
-
function
|
|
204
|
-
|
|
202
|
+
const t = e, r = l;
|
|
203
|
+
function i() {
|
|
204
|
+
r("refresh");
|
|
205
205
|
}
|
|
206
|
-
return (
|
|
206
|
+
return (p, s) => (o(), g(a(ve), {
|
|
207
207
|
placement: "end",
|
|
208
208
|
style: W(t.bubbleStyle),
|
|
209
209
|
styles: {
|
|
@@ -212,35 +212,35 @@ const Ze = Object.assign(G, {
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
}, {
|
|
215
|
-
avatar:
|
|
216
|
-
default:
|
|
215
|
+
avatar: n(() => [d(a(me), null, {
|
|
216
|
+
default: n(() => [B("img", {
|
|
217
217
|
alt: "avatar",
|
|
218
218
|
src: t.avatarUrl
|
|
219
|
-
}, null, 8,
|
|
219
|
+
}, null, 8, Xe)]),
|
|
220
220
|
_: 1
|
|
221
221
|
})]),
|
|
222
|
-
message:
|
|
222
|
+
message: n(() => [t.type === "text" ? (o(), h(q, {
|
|
223
223
|
key: 0
|
|
224
|
-
}, [
|
|
224
|
+
}, [C(U(t.value), 1)], 64)) : t.type === "image" ? (o(), g(a(fe), {
|
|
225
225
|
key: 1,
|
|
226
226
|
width: "100",
|
|
227
227
|
src: t.value,
|
|
228
228
|
"show-loader": ""
|
|
229
|
-
}, null, 8, ["src"])) :
|
|
230
|
-
footer:
|
|
231
|
-
default:
|
|
229
|
+
}, null, 8, ["src"])) : L("", !0)]),
|
|
230
|
+
footer: n(() => [d(a(pe), null, {
|
|
231
|
+
default: n(() => [t.showClipboard && t.type === "text" ? (o(), g(ye, {
|
|
232
232
|
key: 0,
|
|
233
233
|
value: e.value
|
|
234
|
-
}, null, 8, ["value"])) :
|
|
234
|
+
}, null, 8, ["value"])) : L("", !0), t.showRefresh ? (o(), g(Qe, {
|
|
235
235
|
key: 1,
|
|
236
|
-
onClick:
|
|
237
|
-
})) :
|
|
236
|
+
onClick: i
|
|
237
|
+
})) : L("", !0)]),
|
|
238
238
|
_: 1
|
|
239
239
|
})]),
|
|
240
240
|
_: 1
|
|
241
241
|
}, 8, ["style", "styles"]));
|
|
242
242
|
}
|
|
243
|
-
}), oe = /* @__PURE__ */
|
|
243
|
+
}), oe = /* @__PURE__ */ D(Ye, [["__scopeId", "data-v-2e1b7acf"]]), et = ["src"], tt = /* @__PURE__ */ V({
|
|
244
244
|
__name: "FeedbackBubbleStart",
|
|
245
245
|
props: {
|
|
246
246
|
value: {
|
|
@@ -273,7 +273,7 @@ const Ze = Object.assign(G, {
|
|
|
273
273
|
emit: l
|
|
274
274
|
}) {
|
|
275
275
|
const t = e;
|
|
276
|
-
return (
|
|
276
|
+
return (r, i) => (o(), g(a(ve), {
|
|
277
277
|
placement: "start",
|
|
278
278
|
style: W(t.bubbleStyle),
|
|
279
279
|
styles: {
|
|
@@ -282,94 +282,94 @@ const Ze = Object.assign(G, {
|
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
}, {
|
|
285
|
-
avatar:
|
|
286
|
-
default:
|
|
285
|
+
avatar: n(() => [d(a(me), null, {
|
|
286
|
+
default: n(() => [B("img", {
|
|
287
287
|
alt: "avatar",
|
|
288
288
|
src: t.avatarUrl
|
|
289
|
-
}, null, 8,
|
|
289
|
+
}, null, 8, et)]),
|
|
290
290
|
_: 1
|
|
291
291
|
})]),
|
|
292
|
-
message:
|
|
292
|
+
message: n(() => [t.type === "text" ? (o(), h(q, {
|
|
293
293
|
key: 0
|
|
294
|
-
}, [
|
|
294
|
+
}, [C(U(t.value), 1)], 64)) : t.type === "image" ? (o(), g(a(fe), {
|
|
295
295
|
key: 1,
|
|
296
296
|
width: "100",
|
|
297
297
|
src: t.value,
|
|
298
298
|
"show-loader": ""
|
|
299
|
-
}, null, 8, ["src"])) :
|
|
300
|
-
footer:
|
|
301
|
-
default:
|
|
299
|
+
}, null, 8, ["src"])) : L("", !0)]),
|
|
300
|
+
footer: n(() => [d(a(pe), null, {
|
|
301
|
+
default: n(() => [t.showClipboard && t.type === "text" ? (o(), g(ye, {
|
|
302
302
|
key: 0,
|
|
303
303
|
value: t.value
|
|
304
|
-
}, null, 8, ["value"])) :
|
|
304
|
+
}, null, 8, ["value"])) : L("", !0)]),
|
|
305
305
|
_: 1
|
|
306
306
|
})]),
|
|
307
307
|
_: 1
|
|
308
308
|
}, 8, ["style", "styles"]));
|
|
309
309
|
}
|
|
310
|
-
}), ie = /* @__PURE__ */
|
|
310
|
+
}), ie = /* @__PURE__ */ D(tt, [["__scopeId", "data-v-37150f19"]]), k = [];
|
|
311
311
|
for (let e = 0; e < 256; ++e)
|
|
312
312
|
k.push((e + 256).toString(16).slice(1));
|
|
313
|
-
function
|
|
313
|
+
function at(e, l = 0) {
|
|
314
314
|
return (k[e[l + 0]] + k[e[l + 1]] + k[e[l + 2]] + k[e[l + 3]] + "-" + k[e[l + 4]] + k[e[l + 5]] + "-" + k[e[l + 6]] + k[e[l + 7]] + "-" + k[e[l + 8]] + k[e[l + 9]] + "-" + k[e[l + 10]] + k[e[l + 11]] + k[e[l + 12]] + k[e[l + 13]] + k[e[l + 14]] + k[e[l + 15]]).toLowerCase();
|
|
315
315
|
}
|
|
316
316
|
let J;
|
|
317
|
-
const
|
|
318
|
-
function
|
|
317
|
+
const lt = new Uint8Array(16);
|
|
318
|
+
function nt() {
|
|
319
319
|
if (!J) {
|
|
320
320
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
321
321
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
322
322
|
J = crypto.getRandomValues.bind(crypto);
|
|
323
323
|
}
|
|
324
|
-
return J(
|
|
324
|
+
return J(lt);
|
|
325
325
|
}
|
|
326
|
-
const
|
|
327
|
-
randomUUID:
|
|
326
|
+
const st = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ue = {
|
|
327
|
+
randomUUID: st
|
|
328
328
|
};
|
|
329
329
|
function de(e, l, t) {
|
|
330
|
-
var
|
|
330
|
+
var i;
|
|
331
331
|
if (ue.randomUUID && !e)
|
|
332
332
|
return ue.randomUUID();
|
|
333
333
|
e = e || {};
|
|
334
|
-
const
|
|
335
|
-
if (
|
|
334
|
+
const r = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ?? nt();
|
|
335
|
+
if (r.length < 16)
|
|
336
336
|
throw new Error("Random bytes length must be >= 16");
|
|
337
|
-
return
|
|
337
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, at(r);
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function rt(e, l = {}) {
|
|
340
340
|
const {
|
|
341
341
|
interval: t = 2e3,
|
|
342
|
-
immediate:
|
|
343
|
-
autoStart:
|
|
344
|
-
} = l,
|
|
345
|
-
let
|
|
346
|
-
async function
|
|
342
|
+
immediate: r = !1,
|
|
343
|
+
autoStart: i = !1
|
|
344
|
+
} = l, p = y(!1);
|
|
345
|
+
let s = null;
|
|
346
|
+
async function w() {
|
|
347
347
|
try {
|
|
348
348
|
await e();
|
|
349
|
-
} catch (
|
|
350
|
-
console.error("轮询回调执行失败:",
|
|
349
|
+
} catch ($) {
|
|
350
|
+
console.error("轮询回调执行失败:", $);
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
if (
|
|
353
|
+
function m() {
|
|
354
|
+
if (p.value) {
|
|
355
355
|
console.warn("轮询已在运行中");
|
|
356
356
|
return;
|
|
357
357
|
}
|
|
358
|
-
|
|
358
|
+
p.value = !0, r && w(), s = setInterval(w, t);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
|
|
360
|
+
function u() {
|
|
361
|
+
s && (clearInterval(s), s = null), p.value = !1;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
|
|
363
|
+
function R() {
|
|
364
|
+
u(), m();
|
|
365
365
|
}
|
|
366
|
-
return
|
|
367
|
-
|
|
366
|
+
return i && m(), Re(() => {
|
|
367
|
+
u();
|
|
368
368
|
}), {
|
|
369
|
-
isPolling:
|
|
370
|
-
start:
|
|
371
|
-
stop:
|
|
372
|
-
restart:
|
|
369
|
+
isPolling: p,
|
|
370
|
+
start: m,
|
|
371
|
+
stop: u,
|
|
372
|
+
restart: R
|
|
373
373
|
};
|
|
374
374
|
}
|
|
375
375
|
const Y = [{
|
|
@@ -411,16 +411,16 @@ const Y = [{
|
|
|
411
411
|
}, {
|
|
412
412
|
key: "closed",
|
|
413
413
|
label: "已关闭"
|
|
414
|
-
}],
|
|
414
|
+
}], ot = {
|
|
415
415
|
class: "FeedBackDetails"
|
|
416
|
-
}, ot = {
|
|
417
|
-
class: "content"
|
|
418
416
|
}, it = {
|
|
417
|
+
class: "content"
|
|
418
|
+
}, ut = {
|
|
419
419
|
key: 1,
|
|
420
420
|
class: "Bubbles"
|
|
421
|
-
},
|
|
421
|
+
}, dt = {
|
|
422
422
|
class: "sender-container"
|
|
423
|
-
},
|
|
423
|
+
}, ct = /* @__PURE__ */ V({
|
|
424
424
|
__name: "FeedbackDetails",
|
|
425
425
|
props: {
|
|
426
426
|
id: {
|
|
@@ -435,18 +435,19 @@ const Y = [{
|
|
|
435
435
|
}
|
|
436
436
|
},
|
|
437
437
|
setup(e) {
|
|
438
|
-
|
|
438
|
+
const l = {
|
|
439
|
+
color: "var(--huyooo-accent-primary)"
|
|
440
|
+
};
|
|
441
|
+
function t(c) {
|
|
439
442
|
return c === "inProgress" ? "orangered" : c === "pending" ? "gold" : c === "resolved" ? "green" : c === "closed" ? "gray" : "arcoblue";
|
|
440
443
|
}
|
|
441
|
-
const
|
|
444
|
+
const r = y(""), i = y(!1), p = [{
|
|
442
445
|
key: "1",
|
|
443
446
|
label: "如何补充更多信息",
|
|
444
447
|
description: "请详细描述您的问题或需求,以便我们更好地为您服务。",
|
|
445
448
|
disabled: !0,
|
|
446
449
|
icon: ae(re, {
|
|
447
|
-
style:
|
|
448
|
-
color: "#722ED1"
|
|
449
|
-
}
|
|
450
|
+
style: l
|
|
450
451
|
})
|
|
451
452
|
}, {
|
|
452
453
|
key: "3",
|
|
@@ -454,21 +455,19 @@ const Y = [{
|
|
|
454
455
|
description: "如有相关附件(如日志、截图等),请一并上传以便加快处理速度。",
|
|
455
456
|
disabled: !0,
|
|
456
457
|
icon: ae(re, {
|
|
457
|
-
style:
|
|
458
|
-
color: "#722ED1"
|
|
459
|
-
}
|
|
458
|
+
style: l
|
|
460
459
|
})
|
|
461
|
-
}],
|
|
460
|
+
}], s = y(null), w = y(null), m = () => {
|
|
462
461
|
var c;
|
|
463
|
-
(c =
|
|
462
|
+
(c = s.value) == null || c.focus({
|
|
464
463
|
cursor: "end"
|
|
465
|
-
}),
|
|
466
|
-
|
|
464
|
+
}), j(() => {
|
|
465
|
+
w.value && (w.value.scrollTop = w.value.scrollHeight);
|
|
467
466
|
});
|
|
468
|
-
},
|
|
469
|
-
function
|
|
467
|
+
}, u = e;
|
|
468
|
+
function R() {
|
|
470
469
|
}
|
|
471
|
-
const
|
|
470
|
+
const $ = y(!1), _ = y([]), x = y(void 0), S = y({
|
|
472
471
|
id: void 0,
|
|
473
472
|
title: "",
|
|
474
473
|
description: "",
|
|
@@ -476,27 +475,27 @@ const Y = [{
|
|
|
476
475
|
status: "newFeedback",
|
|
477
476
|
reply: "",
|
|
478
477
|
createAt: ""
|
|
479
|
-
}),
|
|
478
|
+
}), v = () => {
|
|
480
479
|
const {
|
|
481
480
|
uploadFile: c
|
|
482
|
-
} =
|
|
483
|
-
b.type = "file", b.accept = "image/*", b.style.display = "none", document.body.append(b), b.addEventListener("change", async (
|
|
481
|
+
} = De(), b = document.createElement("input");
|
|
482
|
+
b.type = "file", b.accept = "image/*", b.style.display = "none", document.body.append(b), b.addEventListener("change", async (f) => {
|
|
484
483
|
var te;
|
|
485
|
-
const ee = (te =
|
|
484
|
+
const ee = (te = f.target.files) == null ? void 0 : te[0];
|
|
486
485
|
if (ee) {
|
|
487
|
-
|
|
486
|
+
i.value = !0;
|
|
488
487
|
try {
|
|
489
488
|
c({
|
|
490
|
-
bucketId:
|
|
489
|
+
bucketId: Pe.feedbackBucketId,
|
|
491
490
|
file: ee,
|
|
492
|
-
onFileFinish(
|
|
491
|
+
onFileFinish(xe, xt, Se) {
|
|
493
492
|
const K = {
|
|
494
493
|
messageId: de(),
|
|
495
|
-
senderRole:
|
|
494
|
+
senderRole: u.senderRole,
|
|
496
495
|
type: "image",
|
|
497
|
-
key:
|
|
498
|
-
},
|
|
499
|
-
id:
|
|
496
|
+
key: Se.Key
|
|
497
|
+
}, Ie = {
|
|
498
|
+
id: u.id,
|
|
500
499
|
message: {
|
|
501
500
|
type: K.type,
|
|
502
501
|
key: K.key,
|
|
@@ -506,199 +505,199 @@ const Y = [{
|
|
|
506
505
|
(async () => {
|
|
507
506
|
const {
|
|
508
507
|
data: M
|
|
509
|
-
} = await
|
|
510
|
-
M ? (
|
|
511
|
-
|
|
512
|
-
}),
|
|
508
|
+
} = await P.feedbackCenter.update.messages.post(Ie);
|
|
509
|
+
M ? (_.value.push(M.message), typeof M.message.seq == "number" && (x.value = M.message.seq), j(() => {
|
|
510
|
+
m();
|
|
511
|
+
}), i.value = !1, u.senderRole === "support" && S.value.status === "newFeedback" && I()) : i.value = !1;
|
|
513
512
|
})();
|
|
514
513
|
},
|
|
515
|
-
onError(
|
|
516
|
-
|
|
514
|
+
onError(xe) {
|
|
515
|
+
i.value = !1;
|
|
517
516
|
}
|
|
518
517
|
});
|
|
519
518
|
} catch {
|
|
520
|
-
|
|
519
|
+
i.value = !1;
|
|
521
520
|
}
|
|
522
521
|
}
|
|
523
522
|
b.remove();
|
|
524
523
|
}), b.click();
|
|
525
524
|
};
|
|
526
|
-
async function
|
|
527
|
-
|
|
525
|
+
async function z(c) {
|
|
526
|
+
i.value = !0, de();
|
|
528
527
|
const b = {
|
|
529
|
-
senderRole:
|
|
528
|
+
senderRole: u.senderRole,
|
|
530
529
|
type: "text",
|
|
531
530
|
content: c
|
|
532
|
-
},
|
|
533
|
-
id:
|
|
531
|
+
}, f = {
|
|
532
|
+
id: u.id,
|
|
534
533
|
message: {
|
|
535
534
|
type: b.type,
|
|
536
535
|
content: b.content,
|
|
537
536
|
senderRole: b.senderRole
|
|
538
537
|
}
|
|
539
538
|
}, {
|
|
540
|
-
data:
|
|
541
|
-
} = await
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
}),
|
|
539
|
+
data: N
|
|
540
|
+
} = await P.feedbackCenter.update.messages.post(f);
|
|
541
|
+
i.value = !1, N && (_.value.push(N.message), typeof N.message.seq == "number" && (x.value = N.message.seq), j(() => {
|
|
542
|
+
m();
|
|
543
|
+
}), r.value = "", u.senderRole === "support" && S.value.status === "newFeedback" && I());
|
|
545
544
|
}
|
|
546
|
-
function
|
|
547
|
-
|
|
545
|
+
function F() {
|
|
546
|
+
z(r.value);
|
|
548
547
|
}
|
|
549
|
-
async function
|
|
550
|
-
|
|
548
|
+
async function I() {
|
|
549
|
+
$.value = !0;
|
|
551
550
|
const {
|
|
552
551
|
data: c
|
|
553
|
-
} = await
|
|
554
|
-
id:
|
|
552
|
+
} = await P.feedbackCenter.findOne.post({
|
|
553
|
+
id: u.id
|
|
555
554
|
});
|
|
556
|
-
|
|
555
|
+
$.value = !1, c && (S.value = c, c.messages && c.messages.length > 0 && (_.value = c.messages, x.value = c.messages.at(-1).seq));
|
|
557
556
|
}
|
|
558
|
-
async function
|
|
557
|
+
async function Ce() {
|
|
559
558
|
const {
|
|
560
559
|
data: c
|
|
561
|
-
} = await
|
|
562
|
-
id:
|
|
563
|
-
lastSeq:
|
|
560
|
+
} = await P.messages.list.incremental.post({
|
|
561
|
+
id: u.id,
|
|
562
|
+
lastSeq: x.value
|
|
564
563
|
});
|
|
565
|
-
c && c.messages && c.messages.length > 0 && (
|
|
566
|
-
|
|
564
|
+
c && c.messages && c.messages.length > 0 && (_.value.push(...c.messages), x.value = c.messages.at(-1).seq, j(() => {
|
|
565
|
+
m();
|
|
567
566
|
}));
|
|
568
567
|
}
|
|
569
|
-
async function
|
|
570
|
-
|
|
568
|
+
async function we() {
|
|
569
|
+
$.value = !0;
|
|
571
570
|
const {
|
|
572
571
|
data: c
|
|
573
|
-
} = await
|
|
574
|
-
id:
|
|
572
|
+
} = await P.messages.list.post({
|
|
573
|
+
id: u.id
|
|
575
574
|
});
|
|
576
|
-
|
|
577
|
-
|
|
575
|
+
$.value = !1, c && c.messages && c.messages.length > 0 && (_.value.push(...c.messages), x.value = c.messages.at(-1).seq, j(() => {
|
|
576
|
+
m();
|
|
578
577
|
}));
|
|
579
578
|
}
|
|
580
|
-
return
|
|
579
|
+
return rt(Ce, {
|
|
581
580
|
interval: 2e3,
|
|
582
581
|
autoStart: !0
|
|
583
|
-
}),
|
|
582
|
+
}), I(), we(), (c, b) => (o(), h("div", ot, [B("div", {
|
|
584
583
|
ref_key: "scrollableContentRef",
|
|
585
|
-
ref:
|
|
584
|
+
ref: w,
|
|
586
585
|
class: "scrollable-content"
|
|
587
|
-
}, [
|
|
586
|
+
}, [d(a($e), {
|
|
588
587
|
title: "基本信息"
|
|
589
588
|
}, {
|
|
590
|
-
title:
|
|
589
|
+
title: n(() => [...b[1] || (b[1] = [B("div", {
|
|
591
590
|
class: "title"
|
|
592
591
|
}, "基本信息", -1)])]),
|
|
593
|
-
default:
|
|
592
|
+
default: n(() => [d(a(H), {
|
|
594
593
|
label: "标题:",
|
|
595
594
|
span: 3
|
|
596
595
|
}, {
|
|
597
|
-
default:
|
|
596
|
+
default: n(() => [C(U(S.value.title), 1)]),
|
|
598
597
|
_: 1
|
|
599
|
-
}),
|
|
598
|
+
}), d(a(H), {
|
|
600
599
|
label: "反馈类型:",
|
|
601
600
|
span: 1
|
|
602
601
|
}, {
|
|
603
|
-
default:
|
|
602
|
+
default: n(() => [d(a(E), {
|
|
604
603
|
color: "arcoblue"
|
|
605
604
|
}, {
|
|
606
|
-
default:
|
|
607
|
-
var
|
|
608
|
-
return [
|
|
605
|
+
default: n(() => {
|
|
606
|
+
var f;
|
|
607
|
+
return [C(U((f = a(O)(a(Y), S.value.type)) == null ? void 0 : f.label), 1)];
|
|
609
608
|
}),
|
|
610
609
|
_: 1
|
|
611
610
|
})]),
|
|
612
611
|
_: 1
|
|
613
|
-
}),
|
|
612
|
+
}), d(a(H), {
|
|
614
613
|
label: "状态:",
|
|
615
614
|
span: 1
|
|
616
615
|
}, {
|
|
617
|
-
default:
|
|
618
|
-
color:
|
|
616
|
+
default: n(() => [d(a(E), {
|
|
617
|
+
color: t(S.value.status)
|
|
619
618
|
}, {
|
|
620
|
-
default:
|
|
621
|
-
var
|
|
622
|
-
return [
|
|
619
|
+
default: n(() => {
|
|
620
|
+
var f;
|
|
621
|
+
return [C(U((f = a(O)(a(he), S.value.status)) == null ? void 0 : f.label), 1)];
|
|
623
622
|
}),
|
|
624
623
|
_: 1
|
|
625
624
|
}, 8, ["color"])]),
|
|
626
625
|
_: 1
|
|
627
626
|
})]),
|
|
628
627
|
_: 1
|
|
629
|
-
}),
|
|
628
|
+
}), B("div", it, [b[2] || (b[2] = B("div", {
|
|
630
629
|
class: "title"
|
|
631
|
-
}, "沟通记录", -1)),
|
|
630
|
+
}, "沟通记录", -1)), d(a(Fe), {
|
|
632
631
|
class: "messageContent",
|
|
633
|
-
loading:
|
|
632
|
+
loading: $.value
|
|
634
633
|
}, {
|
|
635
|
-
default:
|
|
634
|
+
default: n(() => [_.value.length == 0 ? (o(), g(a(Ee), {
|
|
636
635
|
key: 0,
|
|
637
636
|
title: "☕️ 温馨提示!",
|
|
638
|
-
items:
|
|
637
|
+
items: p,
|
|
639
638
|
wrap: "",
|
|
640
639
|
vertical: !1,
|
|
641
|
-
onOnItemClick:
|
|
642
|
-
})) : (o(),
|
|
643
|
-
key:
|
|
644
|
-
}, [
|
|
640
|
+
onOnItemClick: R
|
|
641
|
+
})) : (o(), h("div", ut, [(o(!0), h(q, null, Q(_.value, (f, N) => (o(), h(q, {
|
|
642
|
+
key: N
|
|
643
|
+
}, [f.type === "text" ? (o(), h(q, {
|
|
645
644
|
key: 0
|
|
646
|
-
}, [
|
|
645
|
+
}, [f.senderRole !== u.senderRole ? (o(), g(ie, {
|
|
647
646
|
key: 0,
|
|
648
|
-
value:
|
|
649
|
-
type:
|
|
650
|
-
"avatar-url":
|
|
647
|
+
value: f.content,
|
|
648
|
+
type: f.type,
|
|
649
|
+
"avatar-url": f.senderInfo.avatarUrl
|
|
651
650
|
}, null, 8, ["value", "type", "avatar-url"])) : (o(), g(oe, {
|
|
652
651
|
key: 1,
|
|
653
|
-
value:
|
|
654
|
-
"avatar-url":
|
|
655
|
-
type:
|
|
656
|
-
}, null, 8, ["value", "avatar-url", "type"]))], 64)) : (o(),
|
|
652
|
+
value: f.content,
|
|
653
|
+
"avatar-url": f.senderInfo.avatarUrl,
|
|
654
|
+
type: f.type
|
|
655
|
+
}, null, 8, ["value", "avatar-url", "type"]))], 64)) : (o(), h(q, {
|
|
657
656
|
key: 1
|
|
658
|
-
}, [
|
|
657
|
+
}, [f.senderRole !== u.senderRole ? (o(), g(ie, {
|
|
659
658
|
key: 0,
|
|
660
|
-
type:
|
|
661
|
-
value:
|
|
659
|
+
type: f.type,
|
|
660
|
+
value: f.url,
|
|
662
661
|
"avatar-text": "S",
|
|
663
|
-
"avatar-url":
|
|
662
|
+
"avatar-url": f.senderInfo.avatarUrl
|
|
664
663
|
}, null, 8, ["type", "value", "avatar-url"])) : (o(), g(oe, {
|
|
665
664
|
key: 1,
|
|
666
|
-
type:
|
|
667
|
-
value:
|
|
668
|
-
"avatar-url":
|
|
665
|
+
type: f.type,
|
|
666
|
+
value: f.url,
|
|
667
|
+
"avatar-url": f.senderInfo.avatarUrl
|
|
669
668
|
}, null, 8, ["type", "value", "avatar-url"]))], 64))], 64))), 128))]))]),
|
|
670
669
|
_: 1
|
|
671
|
-
}, 8, ["loading"])])], 512),
|
|
670
|
+
}, 8, ["loading"])])], 512), B("div", dt, [d(a(Oe), {
|
|
672
671
|
ref_key: "senderRef",
|
|
673
|
-
ref:
|
|
674
|
-
value:
|
|
675
|
-
"onUpdate:value": b[0] || (b[0] = (
|
|
672
|
+
ref: s,
|
|
673
|
+
value: r.value,
|
|
674
|
+
"onUpdate:value": b[0] || (b[0] = (f) => r.value = f),
|
|
676
675
|
placeholder: "请输入你要咨询的问题?",
|
|
677
|
-
loading:
|
|
676
|
+
loading: i.value,
|
|
678
677
|
"allow-speech": !1,
|
|
679
|
-
"read-only":
|
|
680
|
-
onSubmit:
|
|
678
|
+
"read-only": i.value,
|
|
679
|
+
onSubmit: F
|
|
681
680
|
}, {
|
|
682
|
-
prefix:
|
|
681
|
+
prefix: n(() => [d(a(X), {
|
|
683
682
|
type: "text",
|
|
684
683
|
class: "IconLink",
|
|
685
|
-
onClick:
|
|
684
|
+
onClick: v
|
|
686
685
|
}, {
|
|
687
|
-
icon:
|
|
686
|
+
icon: n(() => [d(a(Ge))]),
|
|
688
687
|
_: 1
|
|
689
688
|
})]),
|
|
690
689
|
_: 1
|
|
691
690
|
}, 8, ["value", "loading", "read-only"])])]));
|
|
692
691
|
}
|
|
693
|
-
}),
|
|
692
|
+
}), pt = /* @__PURE__ */ D(ct, [["__scopeId", "data-v-de790d44"]]), ft = {
|
|
694
693
|
class: "FeedBackFrom"
|
|
695
|
-
},
|
|
694
|
+
}, mt = /* @__PURE__ */ V({
|
|
696
695
|
__name: "FeedbackForm",
|
|
697
696
|
emits: ["confirm"],
|
|
698
697
|
setup(e, {
|
|
699
698
|
emit: l
|
|
700
699
|
}) {
|
|
701
|
-
const t = l,
|
|
700
|
+
const t = l, r = y(), i = y(!1), p = y({
|
|
702
701
|
id: void 0,
|
|
703
702
|
title: "",
|
|
704
703
|
type: "bugReports",
|
|
@@ -707,29 +706,29 @@ const Y = [{
|
|
|
707
706
|
screenshots: []
|
|
708
707
|
});
|
|
709
708
|
y([]);
|
|
710
|
-
async function
|
|
711
|
-
if (!await
|
|
712
|
-
|
|
709
|
+
async function s() {
|
|
710
|
+
if (!await r.value.validate()) {
|
|
711
|
+
i.value = !0;
|
|
713
712
|
const {
|
|
714
|
-
error:
|
|
715
|
-
} = await
|
|
716
|
-
title:
|
|
717
|
-
type:
|
|
718
|
-
priority:
|
|
719
|
-
description:
|
|
713
|
+
error: m
|
|
714
|
+
} = await P.feedbackCenter.create.post({
|
|
715
|
+
title: p.value.title,
|
|
716
|
+
type: p.value.type,
|
|
717
|
+
priority: p.value.priority,
|
|
718
|
+
description: p.value.description
|
|
720
719
|
// screenshots 字段暂不支持,后续可能需要通过消息发送
|
|
721
720
|
});
|
|
722
|
-
|
|
721
|
+
i.value = !1, m || (Ve.success("新建反馈成功"), t("confirm"));
|
|
723
722
|
}
|
|
724
723
|
}
|
|
725
|
-
return (
|
|
724
|
+
return (w, m) => (o(), h("div", ft, [d(a(Be), {
|
|
726
725
|
ref_key: "formRef",
|
|
727
|
-
ref:
|
|
728
|
-
model:
|
|
726
|
+
ref: r,
|
|
727
|
+
model: p.value,
|
|
729
728
|
"auto-label-width": "",
|
|
730
729
|
layout: "vertical"
|
|
731
730
|
}, {
|
|
732
|
-
default:
|
|
731
|
+
default: n(() => [d(a(T), {
|
|
733
732
|
field: "title",
|
|
734
733
|
label: "标题",
|
|
735
734
|
rules: [{
|
|
@@ -737,13 +736,13 @@ const Y = [{
|
|
|
737
736
|
message: "请输入标题"
|
|
738
737
|
}]
|
|
739
738
|
}, {
|
|
740
|
-
default:
|
|
741
|
-
modelValue:
|
|
742
|
-
"onUpdate:modelValue":
|
|
739
|
+
default: n(() => [d(a(Le), {
|
|
740
|
+
modelValue: p.value.title,
|
|
741
|
+
"onUpdate:modelValue": m[0] || (m[0] = (u) => p.value.title = u),
|
|
743
742
|
placeholder: "请输入标题"
|
|
744
743
|
}, null, 8, ["modelValue"])]),
|
|
745
744
|
_: 1
|
|
746
|
-
}),
|
|
745
|
+
}), d(a(T), {
|
|
747
746
|
field: "type",
|
|
748
747
|
label: "反馈类型",
|
|
749
748
|
rules: [{
|
|
@@ -751,22 +750,22 @@ const Y = [{
|
|
|
751
750
|
message: "请选择反馈类型"
|
|
752
751
|
}]
|
|
753
752
|
}, {
|
|
754
|
-
default:
|
|
755
|
-
modelValue:
|
|
756
|
-
"onUpdate:modelValue":
|
|
753
|
+
default: n(() => [d(a(le), {
|
|
754
|
+
modelValue: p.value.type,
|
|
755
|
+
"onUpdate:modelValue": m[1] || (m[1] = (u) => p.value.type = u),
|
|
757
756
|
placeholder: "请选择反馈类型"
|
|
758
757
|
}, {
|
|
759
|
-
default:
|
|
760
|
-
key:
|
|
761
|
-
value:
|
|
758
|
+
default: n(() => [(o(!0), h(q, null, Q(a(Y), (u, R) => (o(), g(a(ne), {
|
|
759
|
+
key: R,
|
|
760
|
+
value: u.key
|
|
762
761
|
}, {
|
|
763
|
-
default:
|
|
762
|
+
default: n(() => [C(U(u.label), 1)]),
|
|
764
763
|
_: 2
|
|
765
764
|
}, 1032, ["value"]))), 128))]),
|
|
766
765
|
_: 1
|
|
767
766
|
}, 8, ["modelValue"])]),
|
|
768
767
|
_: 1
|
|
769
|
-
}),
|
|
768
|
+
}), d(a(T), {
|
|
770
769
|
field: "priority",
|
|
771
770
|
label: "优先级",
|
|
772
771
|
rules: [{
|
|
@@ -774,22 +773,22 @@ const Y = [{
|
|
|
774
773
|
message: "请选择优先级"
|
|
775
774
|
}]
|
|
776
775
|
}, {
|
|
777
|
-
default:
|
|
778
|
-
modelValue:
|
|
779
|
-
"onUpdate:modelValue":
|
|
776
|
+
default: n(() => [d(a(le), {
|
|
777
|
+
modelValue: p.value.priority,
|
|
778
|
+
"onUpdate:modelValue": m[2] || (m[2] = (u) => p.value.priority = u),
|
|
780
779
|
placeholder: "请选择优先级"
|
|
781
780
|
}, {
|
|
782
|
-
default:
|
|
783
|
-
key:
|
|
784
|
-
value:
|
|
781
|
+
default: n(() => [(o(!0), h(q, null, Q(a(_e), (u, R) => (o(), g(a(ne), {
|
|
782
|
+
key: R,
|
|
783
|
+
value: u.key
|
|
785
784
|
}, {
|
|
786
|
-
default:
|
|
785
|
+
default: n(() => [C(U(u.label), 1)]),
|
|
787
786
|
_: 2
|
|
788
787
|
}, 1032, ["value"]))), 128))]),
|
|
789
788
|
_: 1
|
|
790
789
|
}, 8, ["modelValue"])]),
|
|
791
790
|
_: 1
|
|
792
|
-
}),
|
|
791
|
+
}), d(a(T), {
|
|
793
792
|
field: "description",
|
|
794
793
|
label: "问题描述",
|
|
795
794
|
rules: [{
|
|
@@ -797,9 +796,9 @@ const Y = [{
|
|
|
797
796
|
message: "请输入问题描述"
|
|
798
797
|
}]
|
|
799
798
|
}, {
|
|
800
|
-
default:
|
|
801
|
-
modelValue:
|
|
802
|
-
"onUpdate:modelValue":
|
|
799
|
+
default: n(() => [d(a(Ue), {
|
|
800
|
+
modelValue: p.value.description,
|
|
801
|
+
"onUpdate:modelValue": m[3] || (m[3] = (u) => p.value.description = u),
|
|
803
802
|
placeholder: "请输入问题描述",
|
|
804
803
|
"allow-clear": "",
|
|
805
804
|
"auto-size": {
|
|
@@ -807,40 +806,40 @@ const Y = [{
|
|
|
807
806
|
}
|
|
808
807
|
}, null, 8, ["modelValue"])]),
|
|
809
808
|
_: 1
|
|
810
|
-
}),
|
|
811
|
-
loading:
|
|
809
|
+
}), L("", !0), d(a(X), {
|
|
810
|
+
loading: i.value,
|
|
812
811
|
type: "primary",
|
|
813
|
-
onClick:
|
|
812
|
+
onClick: s
|
|
814
813
|
}, {
|
|
815
|
-
default:
|
|
814
|
+
default: n(() => [...m[4] || (m[4] = [C(" 提交 ", -1)])]),
|
|
816
815
|
_: 1
|
|
817
816
|
}, 8, ["loading"])]),
|
|
818
817
|
_: 1
|
|
819
818
|
}, 8, ["model"])]));
|
|
820
819
|
}
|
|
821
|
-
}),
|
|
820
|
+
}), vt = /* @__PURE__ */ D(mt, [["__scopeId", "data-v-bf24e737"]]), yt = {
|
|
822
821
|
class: "messages"
|
|
823
|
-
},
|
|
822
|
+
}, gt = {
|
|
824
823
|
key: 1,
|
|
825
824
|
class: "list"
|
|
826
|
-
},
|
|
825
|
+
}, bt = /* @__PURE__ */ V({
|
|
827
826
|
__name: "FeedbackList",
|
|
828
827
|
emits: ["toDetail"],
|
|
829
828
|
setup(e, {
|
|
830
829
|
emit: l
|
|
831
830
|
}) {
|
|
832
|
-
const t = y(!0),
|
|
831
|
+
const t = y(!0), r = y([]), i = y(!1), p = y(""), s = y({
|
|
833
832
|
total: 0,
|
|
834
833
|
current: 1,
|
|
835
834
|
pageSize: 10
|
|
836
835
|
});
|
|
837
|
-
function
|
|
836
|
+
function w() {
|
|
838
837
|
t.value = !0;
|
|
839
838
|
}
|
|
840
|
-
function
|
|
841
|
-
|
|
839
|
+
function m(v) {
|
|
840
|
+
p.value = v.id, t.value = !1;
|
|
842
841
|
}
|
|
843
|
-
const
|
|
842
|
+
const u = [{
|
|
844
843
|
dataIndex: "title",
|
|
845
844
|
title: "标题",
|
|
846
845
|
minWidth: 120,
|
|
@@ -872,127 +871,127 @@ const Y = [{
|
|
|
872
871
|
fixed: "right",
|
|
873
872
|
width: 80
|
|
874
873
|
}];
|
|
875
|
-
function
|
|
874
|
+
function R(v) {
|
|
876
875
|
return v === "inProgress" ? "orangered" : v === "pending" ? "gold" : v === "resolved" ? "green" : v === "closed" ? "gray" : "arcoblue";
|
|
877
876
|
}
|
|
878
|
-
function
|
|
877
|
+
function $(v) {
|
|
879
878
|
return v === "urgent" ? "red" : v === "high" ? "orangered" : v === "low" ? "gray" : "blue";
|
|
880
879
|
}
|
|
881
|
-
async function
|
|
882
|
-
|
|
880
|
+
async function _() {
|
|
881
|
+
i.value = !0;
|
|
883
882
|
const {
|
|
884
883
|
data: v
|
|
885
|
-
} = await
|
|
886
|
-
current:
|
|
887
|
-
pageSize:
|
|
884
|
+
} = await P.feedbackCenter.own.post({
|
|
885
|
+
current: s.value.current,
|
|
886
|
+
pageSize: s.value.pageSize
|
|
888
887
|
});
|
|
889
|
-
|
|
888
|
+
i.value = !1, v && (r.value = v.items, s.value.total = v.count);
|
|
890
889
|
}
|
|
891
|
-
const
|
|
892
|
-
|
|
893
|
-
},
|
|
894
|
-
|
|
890
|
+
const x = (v) => {
|
|
891
|
+
s.value.current = v, _();
|
|
892
|
+
}, S = (v) => {
|
|
893
|
+
s.value.current = 1, s.value.pageSize = v, _();
|
|
895
894
|
};
|
|
896
|
-
return
|
|
895
|
+
return _(), (v, z) => (o(), h("div", yt, [t.value ? L("", !0) : (o(), g(a(ze), {
|
|
897
896
|
key: 0,
|
|
898
897
|
style: {
|
|
899
898
|
"margin-bottom": "10px",
|
|
900
899
|
cursor: "pointer"
|
|
901
900
|
}
|
|
902
901
|
}, {
|
|
903
|
-
default:
|
|
902
|
+
default: n(() => [d(a(se), {
|
|
904
903
|
style: {
|
|
905
904
|
padding: "0px"
|
|
906
905
|
},
|
|
907
|
-
onClick:
|
|
906
|
+
onClick: w
|
|
908
907
|
}, {
|
|
909
|
-
default:
|
|
908
|
+
default: n(() => [...z[0] || (z[0] = [C("我的反馈", -1)])]),
|
|
910
909
|
_: 1
|
|
911
|
-
}),
|
|
910
|
+
}), d(a(se), {
|
|
912
911
|
style: {
|
|
913
912
|
padding: "0px"
|
|
914
913
|
}
|
|
915
914
|
}, {
|
|
916
|
-
default:
|
|
915
|
+
default: n(() => [...z[1] || (z[1] = [C("反馈详情", -1)])]),
|
|
917
916
|
_: 1
|
|
918
917
|
})]),
|
|
919
918
|
_: 1
|
|
920
|
-
})), t.value ? (o(),
|
|
921
|
-
columns:
|
|
922
|
-
data:
|
|
923
|
-
loading:
|
|
924
|
-
pagination:
|
|
925
|
-
onPageChange:
|
|
926
|
-
onPageSizeChange:
|
|
919
|
+
})), t.value ? (o(), h("div", gt, [d(je, {
|
|
920
|
+
columns: u,
|
|
921
|
+
data: r.value,
|
|
922
|
+
loading: i.value,
|
|
923
|
+
pagination: s.value,
|
|
924
|
+
onPageChange: x,
|
|
925
|
+
onPageSizeChange: S
|
|
927
926
|
}, {
|
|
928
|
-
type:
|
|
929
|
-
record:
|
|
930
|
-
}) => [
|
|
927
|
+
type: n(({
|
|
928
|
+
record: F
|
|
929
|
+
}) => [d(a(E), {
|
|
931
930
|
color: "arcoblue"
|
|
932
931
|
}, {
|
|
933
|
-
default:
|
|
934
|
-
var
|
|
935
|
-
return [
|
|
932
|
+
default: n(() => {
|
|
933
|
+
var I;
|
|
934
|
+
return [C(U((I = a(O)(a(Y), F.type)) == null ? void 0 : I.label), 1)];
|
|
936
935
|
}),
|
|
937
936
|
_: 2
|
|
938
937
|
}, 1024)]),
|
|
939
|
-
priority:
|
|
940
|
-
record:
|
|
941
|
-
}) => [
|
|
942
|
-
color:
|
|
938
|
+
priority: n(({
|
|
939
|
+
record: F
|
|
940
|
+
}) => [d(a(E), {
|
|
941
|
+
color: $(F.priority)
|
|
943
942
|
}, {
|
|
944
|
-
default:
|
|
945
|
-
var
|
|
946
|
-
return [
|
|
943
|
+
default: n(() => {
|
|
944
|
+
var I;
|
|
945
|
+
return [C(U(((I = a(O)(a(_e), F.priority)) == null ? void 0 : I.label) || "普通"), 1)];
|
|
947
946
|
}),
|
|
948
947
|
_: 2
|
|
949
948
|
}, 1032, ["color"])]),
|
|
950
|
-
status:
|
|
951
|
-
record:
|
|
952
|
-
}) => [
|
|
953
|
-
color:
|
|
949
|
+
status: n(({
|
|
950
|
+
record: F
|
|
951
|
+
}) => [d(a(E), {
|
|
952
|
+
color: R(F.status)
|
|
954
953
|
}, {
|
|
955
|
-
default:
|
|
956
|
-
var
|
|
957
|
-
return [
|
|
954
|
+
default: n(() => {
|
|
955
|
+
var I;
|
|
956
|
+
return [C(U((I = a(O)(a(he), F.status)) == null ? void 0 : I.label), 1)];
|
|
958
957
|
}),
|
|
959
958
|
_: 2
|
|
960
959
|
}, 1032, ["color"])]),
|
|
961
|
-
actions:
|
|
962
|
-
record:
|
|
963
|
-
}) => [
|
|
960
|
+
actions: n(({
|
|
961
|
+
record: F
|
|
962
|
+
}) => [d(a(X), {
|
|
964
963
|
type: "text",
|
|
965
|
-
onClick: (
|
|
964
|
+
onClick: (I) => m(F)
|
|
966
965
|
}, {
|
|
967
|
-
default:
|
|
966
|
+
default: n(() => [...z[2] || (z[2] = [C("查看", -1)])]),
|
|
968
967
|
_: 1
|
|
969
968
|
}, 8, ["onClick"])]),
|
|
970
969
|
_: 1
|
|
971
|
-
}, 8, ["data", "loading", "pagination"])])) : (o(), g(
|
|
970
|
+
}, 8, ["data", "loading", "pagination"])])) : (o(), g(pt, {
|
|
972
971
|
key: 2,
|
|
973
|
-
id:
|
|
972
|
+
id: p.value,
|
|
974
973
|
"sender-role": "user"
|
|
975
974
|
}, null, 8, ["id"]))]));
|
|
976
975
|
}
|
|
977
|
-
}),
|
|
976
|
+
}), kt = /* @__PURE__ */ D(bt, [["__scopeId", "data-v-5fb9e85f"]]), _t = {
|
|
978
977
|
key: 0,
|
|
979
978
|
class: "content"
|
|
980
|
-
}, _t = {
|
|
981
|
-
class: "left"
|
|
982
979
|
}, ht = {
|
|
980
|
+
class: "left"
|
|
981
|
+
}, Ct = {
|
|
983
982
|
class: "right"
|
|
984
|
-
},
|
|
983
|
+
}, wt = /* @__PURE__ */ V({
|
|
985
984
|
__name: "FeedbackModal",
|
|
986
985
|
emits: ["confirm", "cancel"],
|
|
987
986
|
setup(e, {
|
|
988
987
|
expose: l,
|
|
989
988
|
emit: t
|
|
990
989
|
}) {
|
|
991
|
-
const
|
|
992
|
-
function
|
|
993
|
-
|
|
990
|
+
const r = y(!1), i = t;
|
|
991
|
+
function p() {
|
|
992
|
+
i("cancel");
|
|
994
993
|
}
|
|
995
|
-
const
|
|
994
|
+
const s = y(["FeedbackList"]), w = y([{
|
|
996
995
|
name: "我的反馈",
|
|
997
996
|
path: "FeedbackList",
|
|
998
997
|
meta: {
|
|
@@ -1004,21 +1003,21 @@ const Y = [{
|
|
|
1004
1003
|
meta: {
|
|
1005
1004
|
icon: "mingcute:cube-3d-fill"
|
|
1006
1005
|
}
|
|
1007
|
-
}]),
|
|
1008
|
-
function
|
|
1009
|
-
|
|
1006
|
+
}]), m = A(() => s.value.length !== 0 ? s.value[0] : "");
|
|
1007
|
+
function u() {
|
|
1008
|
+
s.value = ["FeedbackList"];
|
|
1010
1009
|
}
|
|
1011
|
-
function
|
|
1012
|
-
|
|
1010
|
+
function R(_) {
|
|
1011
|
+
s.value = [_.path];
|
|
1013
1012
|
}
|
|
1014
|
-
function
|
|
1015
|
-
|
|
1013
|
+
function $(_) {
|
|
1014
|
+
r.value = _;
|
|
1016
1015
|
}
|
|
1017
1016
|
return l({
|
|
1018
|
-
setData:
|
|
1019
|
-
}), (
|
|
1020
|
-
visible:
|
|
1021
|
-
"onUpdate:visible":
|
|
1017
|
+
setData: $
|
|
1018
|
+
}), (_, x) => (o(), g(a(qe), {
|
|
1019
|
+
visible: r.value,
|
|
1020
|
+
"onUpdate:visible": x[1] || (x[1] = (S) => r.value = S),
|
|
1022
1021
|
loading: !1,
|
|
1023
1022
|
"body-class": "AppMessagebodyClass",
|
|
1024
1023
|
"mask-closable": !1,
|
|
@@ -1026,29 +1025,29 @@ const Y = [{
|
|
|
1026
1025
|
width: "auto",
|
|
1027
1026
|
title: "用户反馈",
|
|
1028
1027
|
"hide-title": !1,
|
|
1029
|
-
onCancel:
|
|
1028
|
+
onCancel: p
|
|
1030
1029
|
}, {
|
|
1031
|
-
default:
|
|
1032
|
-
"selected-keys":
|
|
1033
|
-
"onUpdate:selectedKeys":
|
|
1034
|
-
menus:
|
|
1035
|
-
onChange:
|
|
1036
|
-
}, null, 8, ["selected-keys", "menus"])]),
|
|
1030
|
+
default: n(() => [r.value ? (o(), h("div", _t, [B("div", ht, [d(Ne, {
|
|
1031
|
+
"selected-keys": s.value,
|
|
1032
|
+
"onUpdate:selectedKeys": x[0] || (x[0] = (S) => s.value = S),
|
|
1033
|
+
menus: w.value,
|
|
1034
|
+
onChange: R
|
|
1035
|
+
}, null, 8, ["selected-keys", "menus"])]), B("div", Ct, [m.value === "FeedbackList" ? (o(), g(kt, {
|
|
1037
1036
|
key: 0
|
|
1038
|
-
})) :
|
|
1037
|
+
})) : L("", !0), m.value === "CreateFeedback" ? (o(), g(vt, {
|
|
1039
1038
|
key: 1,
|
|
1040
|
-
onConfirm:
|
|
1041
|
-
})) :
|
|
1039
|
+
onConfirm: u
|
|
1040
|
+
})) : L("", !0)])])) : L("", !0)]),
|
|
1042
1041
|
_: 1
|
|
1043
1042
|
}, 8, ["visible"]));
|
|
1044
1043
|
}
|
|
1045
|
-
}),
|
|
1044
|
+
}), Gt = /* @__PURE__ */ D(wt, [["__scopeId", "data-v-7ca0cfbf"]]);
|
|
1046
1045
|
export {
|
|
1047
1046
|
oe as B,
|
|
1048
|
-
|
|
1049
|
-
|
|
1047
|
+
pt as F,
|
|
1048
|
+
Qe as R,
|
|
1050
1049
|
ie as a,
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1050
|
+
vt as b,
|
|
1051
|
+
kt as c,
|
|
1052
|
+
Gt as d
|
|
1054
1053
|
};
|