@huyooo/ui 0.6.2 → 0.6.5
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/{FeedbackItem-DBP-TlCh.js → FeedbackItem-57GR5jv5.js} +1 -1
- package/dist/{FeedbackModal-CZeOsekW.js → FeedbackModal-F6rSoNQv.js} +347 -315
- package/dist/{UserAccountMenu-CdHSeVU2.js → UserAccountMenu-CpdqiICW.js} +1 -1
- package/dist/{WidthContainer-aHNjMwSp.js → WidthContainer-Csql15Ne.js} +1 -1
- package/dist/common/MessageCenterOptions.d.ts +0 -4
- package/dist/common/feedbackOptions.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/feedback.js +2 -2
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { Space as
|
|
4
|
+
import { defineComponent as V, createElementBlock as _, openBlock as o, normalizeStyle as W, normalizeClass as de, createElementVNode as $, computed as E, createBlock as y, unref as a, withCtx as r, createVNode as u, createCommentVNode as L, Fragment as B, createTextVNode as F, toDisplayString as z, ref as v, onUnmounted as $e, h as te, renderList as J, nextTick as O } from "vue";
|
|
5
|
+
import { Space as pe, Image as fe, Avatar as me, Descriptions as Fe, DescriptionsItem as H, Tag as M, Spin as Ue, Button as Q, Form as Re, FormItem as j, Input as Le, Select as le, Option as ae, Textarea as Be, Message as ze, Breadcrumb as Ve, BreadcrumbItem as ne, Modal as qe, Drawer as Ae } from "@arco-design/web-vue";
|
|
6
6
|
import { M as De } from "./Menu-BjWB9hre.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
|
-
import { c as
|
|
11
|
+
import { c as N, g as q } from "./auth-bwwc2iT8.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
import { u as Ne } from "./useUploadCos-EWMNJjRf.js";
|
|
15
|
-
import { _ as
|
|
15
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
/* empty css */
|
|
17
|
-
import { f as
|
|
17
|
+
import { f as T } from "./index-Bb-d5pBq.js";
|
|
18
18
|
import { C as Oe } from "./CustomTable-BCOwLyRJ.js";
|
|
19
|
-
import { Bubble as
|
|
20
|
-
import { C as
|
|
19
|
+
import { Bubble as ve, Prompts as Ee, Sender as Pe } from "ant-design-x-vue";
|
|
20
|
+
import { C as ye } from "./Clipboard-BAn3vQlX.js";
|
|
21
21
|
import { Icon as je } from "@iconify/vue";
|
|
22
|
-
import { _ as
|
|
23
|
-
const Me =
|
|
22
|
+
import { _ as ge, g as be, i as ke } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
23
|
+
const Me = V({
|
|
24
24
|
name: "IconExclamationCircle",
|
|
25
25
|
props: {
|
|
26
26
|
size: {
|
|
@@ -49,9 +49,9 @@ const Me = B({
|
|
|
49
49
|
setup(e, {
|
|
50
50
|
emit: l
|
|
51
51
|
}) {
|
|
52
|
-
const t =
|
|
52
|
+
const t = be("icon"), n = E(() => [t, `${t}-exclamation-circle`, {
|
|
53
53
|
[`${t}-spin`]: e.spin
|
|
54
|
-
}]), p =
|
|
54
|
+
}]), p = E(() => {
|
|
55
55
|
const s = {};
|
|
56
56
|
return e.size && (s.fontSize = ke(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
|
|
57
57
|
});
|
|
@@ -64,14 +64,14 @@ const Me = B({
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
}), Te = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
67
|
-
function We(e, l, t, n, p,
|
|
68
|
-
return
|
|
67
|
+
function We(e, l, t, n, p, i) {
|
|
68
|
+
return o(), _("svg", {
|
|
69
69
|
viewBox: "0 0 48 48",
|
|
70
70
|
fill: "none",
|
|
71
71
|
xmlns: "http://www.w3.org/2000/svg",
|
|
72
72
|
stroke: "currentColor",
|
|
73
|
-
class:
|
|
74
|
-
style:
|
|
73
|
+
class: de(e.cls),
|
|
74
|
+
style: W(e.innerStyle),
|
|
75
75
|
"stroke-width": e.strokeWidth,
|
|
76
76
|
"stroke-linecap": e.strokeLinecap,
|
|
77
77
|
"stroke-linejoin": e.strokeLinejoin,
|
|
@@ -80,14 +80,14 @@ function We(e, l, t, n, p, c) {
|
|
|
80
80
|
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"
|
|
81
81
|
}, null, -1)]), 14, Te);
|
|
82
82
|
}
|
|
83
|
-
var
|
|
84
|
-
const
|
|
83
|
+
var Y = /* @__PURE__ */ ge(Me, [["render", We]]);
|
|
84
|
+
const se = Object.assign(Y, {
|
|
85
85
|
install: (e, l) => {
|
|
86
86
|
var t;
|
|
87
87
|
const n = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
|
|
88
|
-
e.component(n +
|
|
88
|
+
e.component(n + Y.name, Y);
|
|
89
89
|
}
|
|
90
|
-
}), Ke =
|
|
90
|
+
}), Ke = V({
|
|
91
91
|
name: "IconLink",
|
|
92
92
|
props: {
|
|
93
93
|
size: {
|
|
@@ -116,9 +116,9 @@ const ae = Object.assign(Z, {
|
|
|
116
116
|
setup(e, {
|
|
117
117
|
emit: l
|
|
118
118
|
}) {
|
|
119
|
-
const t =
|
|
119
|
+
const t = be("icon"), n = E(() => [t, `${t}-link`, {
|
|
120
120
|
[`${t}-spin`]: e.spin
|
|
121
|
-
}]), p =
|
|
121
|
+
}]), p = E(() => {
|
|
122
122
|
const s = {};
|
|
123
123
|
return e.size && (s.fontSize = ke(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
|
|
124
124
|
});
|
|
@@ -131,14 +131,14 @@ const ae = Object.assign(Z, {
|
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
}), He = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
134
|
-
function Ye(e, l, t, n, p,
|
|
135
|
-
return
|
|
134
|
+
function Ye(e, l, t, n, p, i) {
|
|
135
|
+
return o(), _("svg", {
|
|
136
136
|
viewBox: "0 0 48 48",
|
|
137
137
|
fill: "none",
|
|
138
138
|
xmlns: "http://www.w3.org/2000/svg",
|
|
139
139
|
stroke: "currentColor",
|
|
140
|
-
class:
|
|
141
|
-
style:
|
|
140
|
+
class: de(e.cls),
|
|
141
|
+
style: W(e.innerStyle),
|
|
142
142
|
"stroke-width": e.strokeWidth,
|
|
143
143
|
"stroke-linecap": e.strokeLinecap,
|
|
144
144
|
"stroke-linejoin": e.strokeLinejoin,
|
|
@@ -147,22 +147,22 @@ function Ye(e, l, t, n, p, c) {
|
|
|
147
147
|
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"
|
|
148
148
|
}, null, -1)]), 14, He);
|
|
149
149
|
}
|
|
150
|
-
var
|
|
151
|
-
const Ze = Object.assign(
|
|
150
|
+
var Z = /* @__PURE__ */ ge(Ke, [["render", Ye]]);
|
|
151
|
+
const Ze = Object.assign(Z, {
|
|
152
152
|
install: (e, l) => {
|
|
153
153
|
var t;
|
|
154
154
|
const n = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
|
|
155
|
-
e.component(n +
|
|
155
|
+
e.component(n + Z.name, Z);
|
|
156
156
|
}
|
|
157
|
-
}), Ge = /* @__PURE__ */
|
|
157
|
+
}), Ge = /* @__PURE__ */ V({
|
|
158
158
|
__name: "FeedbackRefresh",
|
|
159
159
|
setup(e) {
|
|
160
|
-
return (l, t) => (
|
|
160
|
+
return (l, t) => (o(), y(a(je), {
|
|
161
161
|
class: "icon",
|
|
162
162
|
icon: "mingcute:refresh-2-line"
|
|
163
163
|
}));
|
|
164
164
|
}
|
|
165
|
-
}), Je = /* @__PURE__ */
|
|
165
|
+
}), Je = /* @__PURE__ */ A(Ge, [["__scopeId", "data-v-33249ffb"]]), Qe = ["src"], Xe = /* @__PURE__ */ V({
|
|
166
166
|
__name: "FeedbackBubbleEnd",
|
|
167
167
|
props: {
|
|
168
168
|
value: {
|
|
@@ -202,35 +202,35 @@ const Ze = Object.assign(G, {
|
|
|
202
202
|
function p() {
|
|
203
203
|
n("refresh");
|
|
204
204
|
}
|
|
205
|
-
return (
|
|
205
|
+
return (i, s) => (o(), y(a(ve), {
|
|
206
206
|
placement: "end",
|
|
207
|
-
style:
|
|
207
|
+
style: W(t.bubbleStyle),
|
|
208
208
|
styles: {
|
|
209
209
|
content: {
|
|
210
210
|
padding: t.type === "image" ? "0px" : void 0
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
}, {
|
|
214
|
-
avatar:
|
|
215
|
-
default:
|
|
214
|
+
avatar: r(() => [u(a(me), null, {
|
|
215
|
+
default: r(() => [$("img", {
|
|
216
216
|
alt: "avatar",
|
|
217
217
|
src: t.avatarUrl
|
|
218
218
|
}, null, 8, Qe)]),
|
|
219
219
|
_: 1
|
|
220
220
|
})]),
|
|
221
|
-
message:
|
|
221
|
+
message: r(() => [t.type === "text" ? (o(), _(B, {
|
|
222
222
|
key: 0
|
|
223
|
-
}, [F(
|
|
223
|
+
}, [F(z(t.value), 1)], 64)) : t.type === "image" ? (o(), y(a(fe), {
|
|
224
224
|
key: 1,
|
|
225
225
|
width: "100",
|
|
226
226
|
src: t.value,
|
|
227
227
|
"show-loader": ""
|
|
228
228
|
}, null, 8, ["src"])) : L("", !0)]),
|
|
229
|
-
footer:
|
|
230
|
-
default:
|
|
229
|
+
footer: r(() => [u(a(pe), null, {
|
|
230
|
+
default: r(() => [t.showClipboard && t.type === "text" ? (o(), y(ye, {
|
|
231
231
|
key: 0,
|
|
232
232
|
value: e.value
|
|
233
|
-
}, null, 8, ["value"])) : L("", !0), t.showRefresh ? (
|
|
233
|
+
}, null, 8, ["value"])) : L("", !0), t.showRefresh ? (o(), y(Je, {
|
|
234
234
|
key: 1,
|
|
235
235
|
onClick: p
|
|
236
236
|
})) : L("", !0)]),
|
|
@@ -239,7 +239,7 @@ const Ze = Object.assign(G, {
|
|
|
239
239
|
_: 1
|
|
240
240
|
}, 8, ["style", "styles"]));
|
|
241
241
|
}
|
|
242
|
-
}), Xe = ["src"],
|
|
242
|
+
}), re = /* @__PURE__ */ A(Xe, [["__scopeId", "data-v-2e1b7acf"]]), et = ["src"], tt = /* @__PURE__ */ V({
|
|
243
243
|
__name: "FeedbackBubbleStart",
|
|
244
244
|
props: {
|
|
245
245
|
value: {
|
|
@@ -272,32 +272,32 @@ const Ze = Object.assign(G, {
|
|
|
272
272
|
emit: l
|
|
273
273
|
}) {
|
|
274
274
|
const t = e;
|
|
275
|
-
return (n, p) => (
|
|
275
|
+
return (n, p) => (o(), y(a(ve), {
|
|
276
276
|
placement: "start",
|
|
277
|
-
style:
|
|
277
|
+
style: W(t.bubbleStyle),
|
|
278
278
|
styles: {
|
|
279
279
|
content: {
|
|
280
280
|
padding: t.type === "image" ? "0px" : void 0
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
}, {
|
|
284
|
-
avatar:
|
|
285
|
-
default:
|
|
284
|
+
avatar: r(() => [u(a(me), null, {
|
|
285
|
+
default: r(() => [$("img", {
|
|
286
286
|
alt: "avatar",
|
|
287
287
|
src: t.avatarUrl
|
|
288
|
-
}, null, 8,
|
|
288
|
+
}, null, 8, et)]),
|
|
289
289
|
_: 1
|
|
290
290
|
})]),
|
|
291
|
-
message:
|
|
291
|
+
message: r(() => [t.type === "text" ? (o(), _(B, {
|
|
292
292
|
key: 0
|
|
293
|
-
}, [F(
|
|
293
|
+
}, [F(z(t.value), 1)], 64)) : t.type === "image" ? (o(), y(a(fe), {
|
|
294
294
|
key: 1,
|
|
295
295
|
width: "100",
|
|
296
296
|
src: t.value,
|
|
297
297
|
"show-loader": ""
|
|
298
298
|
}, null, 8, ["src"])) : L("", !0)]),
|
|
299
|
-
footer:
|
|
300
|
-
default:
|
|
299
|
+
footer: r(() => [u(a(pe), null, {
|
|
300
|
+
default: r(() => [t.showClipboard && t.type === "text" ? (o(), y(ye, {
|
|
301
301
|
key: 0,
|
|
302
302
|
value: t.value
|
|
303
303
|
}, null, 8, ["value"])) : L("", !0)]),
|
|
@@ -306,109 +306,109 @@ const Ze = Object.assign(G, {
|
|
|
306
306
|
_: 1
|
|
307
307
|
}, 8, ["style", "styles"]));
|
|
308
308
|
}
|
|
309
|
-
}),
|
|
309
|
+
}), oe = /* @__PURE__ */ A(tt, [["__scopeId", "data-v-37150f19"]]), b = [];
|
|
310
310
|
for (let e = 0; e < 256; ++e)
|
|
311
|
-
|
|
312
|
-
function
|
|
313
|
-
return (
|
|
311
|
+
b.push((e + 256).toString(16).slice(1));
|
|
312
|
+
function lt(e, l = 0) {
|
|
313
|
+
return (b[e[l + 0]] + b[e[l + 1]] + b[e[l + 2]] + b[e[l + 3]] + "-" + b[e[l + 4]] + b[e[l + 5]] + "-" + b[e[l + 6]] + b[e[l + 7]] + "-" + b[e[l + 8]] + b[e[l + 9]] + "-" + b[e[l + 10]] + b[e[l + 11]] + b[e[l + 12]] + b[e[l + 13]] + b[e[l + 14]] + b[e[l + 15]]).toLowerCase();
|
|
314
314
|
}
|
|
315
|
-
let
|
|
316
|
-
const
|
|
317
|
-
function
|
|
318
|
-
if (!
|
|
315
|
+
let G;
|
|
316
|
+
const at = new Uint8Array(16);
|
|
317
|
+
function nt() {
|
|
318
|
+
if (!G) {
|
|
319
319
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
320
320
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
321
|
-
|
|
321
|
+
G = crypto.getRandomValues.bind(crypto);
|
|
322
322
|
}
|
|
323
|
-
return
|
|
323
|
+
return G(at);
|
|
324
324
|
}
|
|
325
|
-
const
|
|
326
|
-
randomUUID:
|
|
325
|
+
const st = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ie = {
|
|
326
|
+
randomUUID: st
|
|
327
327
|
};
|
|
328
|
-
function
|
|
328
|
+
function ue(e, l, t) {
|
|
329
329
|
var p;
|
|
330
|
-
if (
|
|
331
|
-
return
|
|
330
|
+
if (ie.randomUUID && !e)
|
|
331
|
+
return ie.randomUUID();
|
|
332
332
|
e = e || {};
|
|
333
|
-
const n = e.random ?? ((p = e.rng) == null ? void 0 : p.call(e)) ??
|
|
333
|
+
const n = e.random ?? ((p = e.rng) == null ? void 0 : p.call(e)) ?? nt();
|
|
334
334
|
if (n.length < 16)
|
|
335
335
|
throw new Error("Random bytes length must be >= 16");
|
|
336
|
-
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128,
|
|
336
|
+
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, lt(n);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function rt(e, l = {}) {
|
|
339
339
|
const {
|
|
340
340
|
interval: t = 2e3,
|
|
341
341
|
immediate: n = !1,
|
|
342
342
|
autoStart: p = !1
|
|
343
|
-
} = l,
|
|
343
|
+
} = l, i = v(!1);
|
|
344
344
|
let s = null;
|
|
345
|
-
async function
|
|
345
|
+
async function h() {
|
|
346
346
|
try {
|
|
347
347
|
await e();
|
|
348
|
-
} catch (
|
|
349
|
-
console.error("轮询回调执行失败:",
|
|
348
|
+
} catch (C) {
|
|
349
|
+
console.error("轮询回调执行失败:", C);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
function
|
|
353
|
-
if (
|
|
352
|
+
function c() {
|
|
353
|
+
if (i.value) {
|
|
354
354
|
console.warn("轮询已在运行中");
|
|
355
355
|
return;
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
i.value = !0, n && h(), s = setInterval(h, t);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
s && (clearInterval(s), s = null),
|
|
359
|
+
function m() {
|
|
360
|
+
s && (clearInterval(s), s = null), i.value = !1;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
|
|
362
|
+
function g() {
|
|
363
|
+
m(), c();
|
|
364
364
|
}
|
|
365
|
-
return p &&
|
|
366
|
-
|
|
365
|
+
return p && c(), $e(() => {
|
|
366
|
+
m();
|
|
367
367
|
}), {
|
|
368
|
-
isPolling:
|
|
369
|
-
start:
|
|
370
|
-
stop:
|
|
371
|
-
restart:
|
|
368
|
+
isPolling: i,
|
|
369
|
+
start: c,
|
|
370
|
+
stop: m,
|
|
371
|
+
restart: g
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return
|
|
376
|
-
url: `${
|
|
374
|
+
function ot(e) {
|
|
375
|
+
return N({
|
|
376
|
+
url: `${q.prefixUrl}/restfulApi/feedbackCenter/create`,
|
|
377
377
|
method: "post",
|
|
378
378
|
data: e
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
return
|
|
383
|
-
url: `${
|
|
381
|
+
function it(e) {
|
|
382
|
+
return N({
|
|
383
|
+
url: `${q.prefixUrl}/restfulApi/feedbackCenter/findOne`,
|
|
384
384
|
method: "post",
|
|
385
385
|
data: e
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return
|
|
390
|
-
url: `${
|
|
388
|
+
function ut(e) {
|
|
389
|
+
return N({
|
|
390
|
+
url: `${q.prefixUrl}/restfulApi/feedbackCenter/own`,
|
|
391
391
|
method: "post",
|
|
392
392
|
data: e
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
return
|
|
397
|
-
url: `${
|
|
395
|
+
function ce(e) {
|
|
396
|
+
return N({
|
|
397
|
+
url: `${q.prefixUrl}/restfulApi/feedbackCenter/update/messages`,
|
|
398
398
|
method: "post",
|
|
399
399
|
data: e
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
return
|
|
404
|
-
url: `${
|
|
402
|
+
function ct(e) {
|
|
403
|
+
return N({
|
|
404
|
+
url: `${q.prefixUrl}/restfulApi/messages/list/incremental`,
|
|
405
405
|
method: "post",
|
|
406
406
|
data: e
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
return
|
|
411
|
-
url: `${
|
|
409
|
+
function dt(e) {
|
|
410
|
+
return N({
|
|
411
|
+
url: `${q.prefixUrl}/restfulApi/messages/list`,
|
|
412
412
|
method: "post",
|
|
413
413
|
data: e
|
|
414
414
|
});
|
|
@@ -425,7 +425,19 @@ const X = [{
|
|
|
425
425
|
}, {
|
|
426
426
|
key: "generalOpinions",
|
|
427
427
|
label: "一般意见"
|
|
428
|
-
}],
|
|
428
|
+
}], pt = [{
|
|
429
|
+
key: "urgent",
|
|
430
|
+
label: "紧急"
|
|
431
|
+
}, {
|
|
432
|
+
key: "high",
|
|
433
|
+
label: "高"
|
|
434
|
+
}, {
|
|
435
|
+
key: "normal",
|
|
436
|
+
label: "普通"
|
|
437
|
+
}, {
|
|
438
|
+
key: "low",
|
|
439
|
+
label: "低"
|
|
440
|
+
}], _e = [{
|
|
429
441
|
key: "newFeedback",
|
|
430
442
|
label: "新建反馈"
|
|
431
443
|
}, {
|
|
@@ -434,16 +446,16 @@ const X = [{
|
|
|
434
446
|
}, {
|
|
435
447
|
key: "done",
|
|
436
448
|
label: "已解决"
|
|
437
|
-
}],
|
|
449
|
+
}], ft = {
|
|
438
450
|
class: "FeedBackDetails"
|
|
439
|
-
},
|
|
451
|
+
}, mt = {
|
|
440
452
|
class: "content"
|
|
441
|
-
},
|
|
453
|
+
}, vt = {
|
|
442
454
|
key: 1,
|
|
443
455
|
class: "Bubbles"
|
|
444
|
-
},
|
|
456
|
+
}, yt = {
|
|
445
457
|
class: "sender-container"
|
|
446
|
-
},
|
|
458
|
+
}, gt = /* @__PURE__ */ V({
|
|
447
459
|
__name: "FeedbackDetails",
|
|
448
460
|
props: {
|
|
449
461
|
id: {
|
|
@@ -461,12 +473,12 @@ const X = [{
|
|
|
461
473
|
function l(d) {
|
|
462
474
|
return d === "inProgress" ? "orangered" : d === "done" ? "green" : "arcoblue";
|
|
463
475
|
}
|
|
464
|
-
const t =
|
|
476
|
+
const t = v(""), n = v(!1), p = [{
|
|
465
477
|
key: "1",
|
|
466
478
|
label: "如何补充更多信息",
|
|
467
479
|
description: "请详细描述您的问题或需求,以便我们更好地为您服务。",
|
|
468
480
|
disabled: !0,
|
|
469
|
-
icon: te(
|
|
481
|
+
icon: te(se, {
|
|
470
482
|
style: {
|
|
471
483
|
color: "#722ED1"
|
|
472
484
|
}
|
|
@@ -476,22 +488,22 @@ const X = [{
|
|
|
476
488
|
label: "如何补充附件",
|
|
477
489
|
description: "如有相关附件(如日志、截图等),请一并上传以便加快处理速度。",
|
|
478
490
|
disabled: !0,
|
|
479
|
-
icon: te(
|
|
491
|
+
icon: te(se, {
|
|
480
492
|
style: {
|
|
481
493
|
color: "#722ED1"
|
|
482
494
|
}
|
|
483
495
|
})
|
|
484
|
-
}],
|
|
496
|
+
}], i = v(null), s = v(null), h = () => {
|
|
485
497
|
var d;
|
|
486
|
-
(d =
|
|
498
|
+
(d = i.value) == null || d.focus({
|
|
487
499
|
cursor: "end"
|
|
488
|
-
}),
|
|
500
|
+
}), O(() => {
|
|
489
501
|
s.value && (s.value.scrollTop = s.value.scrollHeight);
|
|
490
502
|
});
|
|
491
|
-
},
|
|
492
|
-
function
|
|
503
|
+
}, c = e;
|
|
504
|
+
function m() {
|
|
493
505
|
}
|
|
494
|
-
const
|
|
506
|
+
const g = v(!1), C = v([]), R = v(void 0), U = v({
|
|
495
507
|
id: void 0,
|
|
496
508
|
title: "",
|
|
497
509
|
description: "",
|
|
@@ -499,140 +511,140 @@ const X = [{
|
|
|
499
511
|
status: "done",
|
|
500
512
|
reply: "",
|
|
501
513
|
createAt: ""
|
|
502
|
-
}),
|
|
514
|
+
}), k = () => {
|
|
503
515
|
const {
|
|
504
516
|
uploadFile: d
|
|
505
517
|
} = Ne(), w = document.createElement("input");
|
|
506
518
|
w.type = "file", w.accept = "image/*", w.style.display = "none", document.body.append(w), w.addEventListener("change", async (f) => {
|
|
507
519
|
var ee;
|
|
508
|
-
const
|
|
509
|
-
if (
|
|
520
|
+
const D = (ee = f.target.files) == null ? void 0 : ee[0];
|
|
521
|
+
if (D) {
|
|
510
522
|
n.value = !0;
|
|
511
523
|
try {
|
|
512
524
|
d({
|
|
513
|
-
bucketId:
|
|
514
|
-
file:
|
|
515
|
-
onFileFinish(
|
|
516
|
-
const
|
|
517
|
-
messageId:
|
|
518
|
-
senderRole:
|
|
525
|
+
bucketId: q.feedbackBucketId,
|
|
526
|
+
file: D,
|
|
527
|
+
onFileFinish(xe, Rt, we) {
|
|
528
|
+
const Se = {
|
|
529
|
+
messageId: ue(),
|
|
530
|
+
senderRole: c.senderRole,
|
|
519
531
|
type: "image",
|
|
520
|
-
key:
|
|
521
|
-
},
|
|
522
|
-
id:
|
|
523
|
-
message:
|
|
532
|
+
key: we.Key
|
|
533
|
+
}, Ie = {
|
|
534
|
+
id: c.id,
|
|
535
|
+
message: Se
|
|
524
536
|
};
|
|
525
|
-
|
|
537
|
+
ce(Ie).then(({
|
|
526
538
|
data: K
|
|
527
539
|
}) => {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}), n.value = !1,
|
|
540
|
+
C.value.push(K.message), typeof K.message.seq == "number" && (R.value = K.message.seq), O(() => {
|
|
541
|
+
h();
|
|
542
|
+
}), n.value = !1, c.senderRole === "support" && U.value.status === "newFeedback" && I();
|
|
531
543
|
}).catch(() => {
|
|
532
544
|
n.value = !1;
|
|
533
545
|
});
|
|
534
546
|
},
|
|
535
|
-
onError(
|
|
536
|
-
|
|
547
|
+
onError(xe) {
|
|
548
|
+
n.value = !1;
|
|
537
549
|
}
|
|
538
550
|
});
|
|
539
|
-
} catch
|
|
540
|
-
|
|
551
|
+
} catch {
|
|
552
|
+
n.value = !1;
|
|
541
553
|
}
|
|
542
554
|
}
|
|
543
555
|
w.remove();
|
|
544
556
|
}), w.click();
|
|
545
557
|
};
|
|
546
|
-
function
|
|
558
|
+
function S(d) {
|
|
547
559
|
n.value = !0;
|
|
548
560
|
const f = {
|
|
549
|
-
messageId:
|
|
550
|
-
senderRole:
|
|
561
|
+
messageId: ue(),
|
|
562
|
+
senderRole: c.senderRole,
|
|
551
563
|
type: "text",
|
|
552
564
|
content: d
|
|
553
565
|
}, P = {
|
|
554
|
-
id:
|
|
566
|
+
id: c.id,
|
|
555
567
|
message: f
|
|
556
568
|
};
|
|
557
|
-
|
|
558
|
-
data:
|
|
569
|
+
ce(P).then(({
|
|
570
|
+
data: D
|
|
559
571
|
}) => {
|
|
560
|
-
n.value = !1,
|
|
561
|
-
|
|
562
|
-
}), t.value = "",
|
|
572
|
+
n.value = !1, C.value.push(D.message), typeof D.message.seq == "number" && (R.value = D.message.seq), O(() => {
|
|
573
|
+
h();
|
|
574
|
+
}), t.value = "", c.senderRole === "support" && U.value.status === "newFeedback" && I();
|
|
563
575
|
}).catch(() => {
|
|
564
576
|
n.value = !1;
|
|
565
577
|
});
|
|
566
578
|
}
|
|
567
|
-
function
|
|
568
|
-
|
|
579
|
+
function x() {
|
|
580
|
+
S(t.value);
|
|
569
581
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
572
|
-
id:
|
|
582
|
+
function I() {
|
|
583
|
+
g.value = !0, it({
|
|
584
|
+
id: c.id
|
|
573
585
|
}).then(async ({
|
|
574
586
|
data: d
|
|
575
587
|
}) => {
|
|
576
|
-
|
|
588
|
+
g.value = !1, U.value = d, d.messages && d.messages.length > 0 && (C.value = d.messages, R.value = d.messages.at(-1).seq);
|
|
577
589
|
}).catch(() => {
|
|
578
|
-
|
|
590
|
+
g.value = !1;
|
|
579
591
|
});
|
|
580
592
|
}
|
|
581
|
-
function
|
|
582
|
-
|
|
583
|
-
id:
|
|
593
|
+
function he() {
|
|
594
|
+
ct({
|
|
595
|
+
id: c.id,
|
|
584
596
|
lastSeq: R.value
|
|
585
597
|
}).then(async ({
|
|
586
598
|
data: d
|
|
587
599
|
}) => {
|
|
588
|
-
d && d.messages && d.messages.length > 0 && (
|
|
589
|
-
|
|
600
|
+
d && d.messages && d.messages.length > 0 && (C.value.push(...d.messages), R.value = d.messages.at(-1).seq, O(() => {
|
|
601
|
+
h();
|
|
590
602
|
}));
|
|
591
603
|
}).catch(() => {
|
|
592
604
|
});
|
|
593
605
|
}
|
|
594
|
-
function
|
|
595
|
-
|
|
596
|
-
id:
|
|
606
|
+
function Ce() {
|
|
607
|
+
g.value = !0, dt({
|
|
608
|
+
id: c.id
|
|
597
609
|
}).then(async ({
|
|
598
610
|
data: d
|
|
599
611
|
}) => {
|
|
600
|
-
|
|
601
|
-
|
|
612
|
+
g.value = !1, d && d.messages && d.messages.length > 0 && (C.value.push(...d.messages), R.value = d.messages.at(-1).seq, O(() => {
|
|
613
|
+
h();
|
|
602
614
|
}));
|
|
603
615
|
}).catch(() => {
|
|
604
|
-
|
|
616
|
+
g.value = !1;
|
|
605
617
|
});
|
|
606
618
|
}
|
|
607
|
-
return
|
|
619
|
+
return rt(he, {
|
|
608
620
|
interval: 2e3,
|
|
609
621
|
autoStart: !0
|
|
610
|
-
}),
|
|
622
|
+
}), I(), Ce(), (d, w) => (o(), _("div", ft, [$("div", {
|
|
611
623
|
ref_key: "scrollableContentRef",
|
|
612
624
|
ref: s,
|
|
613
625
|
class: "scrollable-content"
|
|
614
|
-
}, [u(a(
|
|
626
|
+
}, [u(a(Fe), {
|
|
615
627
|
title: "基本信息"
|
|
616
628
|
}, {
|
|
617
|
-
title:
|
|
629
|
+
title: r(() => [...w[1] || (w[1] = [$("div", {
|
|
618
630
|
class: "title"
|
|
619
631
|
}, "基本信息", -1)])]),
|
|
620
|
-
default:
|
|
632
|
+
default: r(() => [u(a(H), {
|
|
621
633
|
label: "标题:",
|
|
622
634
|
span: 3
|
|
623
635
|
}, {
|
|
624
|
-
default:
|
|
636
|
+
default: r(() => [F(z(U.value.title), 1)]),
|
|
625
637
|
_: 1
|
|
626
638
|
}), u(a(H), {
|
|
627
639
|
label: "反馈类型:",
|
|
628
640
|
span: 1
|
|
629
641
|
}, {
|
|
630
|
-
default:
|
|
642
|
+
default: r(() => [u(a(M), {
|
|
631
643
|
color: "arcoblue"
|
|
632
644
|
}, {
|
|
633
|
-
default:
|
|
645
|
+
default: r(() => {
|
|
634
646
|
var f;
|
|
635
|
-
return [F(
|
|
647
|
+
return [F(z((f = a(T)(a(X), U.value.type)) == null ? void 0 : f.label), 1)];
|
|
636
648
|
}),
|
|
637
649
|
_: 1
|
|
638
650
|
})]),
|
|
@@ -641,124 +653,122 @@ const X = [{
|
|
|
641
653
|
label: "状态:",
|
|
642
654
|
span: 1
|
|
643
655
|
}, {
|
|
644
|
-
default:
|
|
656
|
+
default: r(() => [u(a(M), {
|
|
645
657
|
color: l(U.value.status)
|
|
646
658
|
}, {
|
|
647
|
-
default:
|
|
659
|
+
default: r(() => {
|
|
648
660
|
var f;
|
|
649
|
-
return [F(
|
|
661
|
+
return [F(z((f = a(T)(a(_e), U.value.status)) == null ? void 0 : f.label), 1)];
|
|
650
662
|
}),
|
|
651
663
|
_: 1
|
|
652
664
|
}, 8, ["color"])]),
|
|
653
665
|
_: 1
|
|
654
666
|
})]),
|
|
655
667
|
_: 1
|
|
656
|
-
}), $("div",
|
|
668
|
+
}), $("div", mt, [w[2] || (w[2] = $("div", {
|
|
657
669
|
class: "title"
|
|
658
|
-
}, "沟通记录", -1)), u(a(
|
|
670
|
+
}, "沟通记录", -1)), u(a(Ue), {
|
|
659
671
|
class: "messageContent",
|
|
660
|
-
loading:
|
|
672
|
+
loading: g.value
|
|
661
673
|
}, {
|
|
662
|
-
default:
|
|
674
|
+
default: r(() => [C.value.length == 0 ? (o(), y(a(Ee), {
|
|
663
675
|
key: 0,
|
|
664
676
|
title: "☕️ 温馨提示!",
|
|
665
677
|
items: p,
|
|
666
678
|
wrap: "",
|
|
667
679
|
vertical: !1,
|
|
668
|
-
onOnItemClick:
|
|
669
|
-
})) : (
|
|
680
|
+
onOnItemClick: m
|
|
681
|
+
})) : (o(), _("div", vt, [(o(!0), _(B, null, J(C.value, (f, P) => (o(), _(B, {
|
|
670
682
|
key: P
|
|
671
|
-
}, [f.type === "text" ? (
|
|
683
|
+
}, [f.type === "text" ? (o(), _(B, {
|
|
672
684
|
key: 0
|
|
673
|
-
}, [f.senderRole !==
|
|
685
|
+
}, [f.senderRole !== c.senderRole ? (o(), y(oe, {
|
|
674
686
|
key: 0,
|
|
675
687
|
value: f.content,
|
|
676
688
|
type: f.type,
|
|
677
689
|
"avatar-url": f.senderInfo.avatarUrl
|
|
678
|
-
}, null, 8, ["value", "type", "avatar-url"])) : (
|
|
690
|
+
}, null, 8, ["value", "type", "avatar-url"])) : (o(), y(re, {
|
|
679
691
|
key: 1,
|
|
680
692
|
value: f.content,
|
|
681
693
|
"avatar-url": f.senderInfo.avatarUrl,
|
|
682
694
|
type: f.type
|
|
683
|
-
}, null, 8, ["value", "avatar-url", "type"]))], 64)) : (
|
|
695
|
+
}, null, 8, ["value", "avatar-url", "type"]))], 64)) : (o(), _(B, {
|
|
684
696
|
key: 1
|
|
685
|
-
}, [f.senderRole !==
|
|
697
|
+
}, [f.senderRole !== c.senderRole ? (o(), y(oe, {
|
|
686
698
|
key: 0,
|
|
687
699
|
type: f.type,
|
|
688
700
|
value: f.url,
|
|
689
701
|
"avatar-text": "S",
|
|
690
702
|
"avatar-url": f.senderInfo.avatarUrl
|
|
691
|
-
}, null, 8, ["type", "value", "avatar-url"])) : (
|
|
703
|
+
}, null, 8, ["type", "value", "avatar-url"])) : (o(), y(re, {
|
|
692
704
|
key: 1,
|
|
693
705
|
type: f.type,
|
|
694
706
|
value: f.url,
|
|
695
707
|
"avatar-url": f.senderInfo.avatarUrl
|
|
696
708
|
}, null, 8, ["type", "value", "avatar-url"]))], 64))], 64))), 128))]))]),
|
|
697
709
|
_: 1
|
|
698
|
-
}, 8, ["loading"])])], 512), $("div",
|
|
710
|
+
}, 8, ["loading"])])], 512), $("div", yt, [u(a(Pe), {
|
|
699
711
|
ref_key: "senderRef",
|
|
700
|
-
ref:
|
|
712
|
+
ref: i,
|
|
701
713
|
value: t.value,
|
|
702
714
|
"onUpdate:value": w[0] || (w[0] = (f) => t.value = f),
|
|
703
715
|
placeholder: "请输入你要咨询的问题?",
|
|
704
716
|
loading: n.value,
|
|
705
717
|
"allow-speech": !1,
|
|
706
718
|
"read-only": n.value,
|
|
707
|
-
onSubmit:
|
|
719
|
+
onSubmit: x
|
|
708
720
|
}, {
|
|
709
|
-
prefix:
|
|
721
|
+
prefix: r(() => [u(a(Q), {
|
|
710
722
|
type: "text",
|
|
711
723
|
class: "IconLink",
|
|
712
|
-
onClick:
|
|
724
|
+
onClick: k
|
|
713
725
|
}, {
|
|
714
|
-
icon:
|
|
726
|
+
icon: r(() => [u(a(Ze))]),
|
|
715
727
|
_: 1
|
|
716
728
|
})]),
|
|
717
729
|
_: 1
|
|
718
730
|
}, 8, ["value", "loading", "read-only"])])]));
|
|
719
731
|
}
|
|
720
|
-
}),
|
|
732
|
+
}), bt = /* @__PURE__ */ A(gt, [["__scopeId", "data-v-c946a3a1"]]), kt = {
|
|
721
733
|
class: "FeedBackFrom"
|
|
722
|
-
},
|
|
734
|
+
}, _t = /* @__PURE__ */ V({
|
|
723
735
|
__name: "FeedbackForm",
|
|
724
736
|
emits: ["confirm"],
|
|
725
737
|
setup(e, {
|
|
726
738
|
emit: l
|
|
727
739
|
}) {
|
|
728
|
-
const t = l, n =
|
|
740
|
+
const t = l, n = v(), p = v(!1), i = v({
|
|
729
741
|
id: void 0,
|
|
730
742
|
title: "",
|
|
731
743
|
type: "bugReports",
|
|
744
|
+
priority: "normal",
|
|
732
745
|
description: "",
|
|
733
746
|
screenshots: []
|
|
734
747
|
});
|
|
735
|
-
|
|
748
|
+
v([]);
|
|
736
749
|
function s() {
|
|
737
|
-
n.value.validate().then((
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
p.value = !1;
|
|
750
|
-
});
|
|
751
|
-
}
|
|
750
|
+
n.value.validate().then((h) => {
|
|
751
|
+
h || (p.value = !0, ot({
|
|
752
|
+
title: i.value.title,
|
|
753
|
+
type: i.value.type,
|
|
754
|
+
priority: i.value.priority,
|
|
755
|
+
description: i.value.description,
|
|
756
|
+
screenshots: i.value.screenshots
|
|
757
|
+
}).then(() => {
|
|
758
|
+
p.value = !1, ze.success("新建反馈成功"), t("confirm");
|
|
759
|
+
}).catch(() => {
|
|
760
|
+
p.value = !1;
|
|
761
|
+
}));
|
|
752
762
|
});
|
|
753
763
|
}
|
|
754
|
-
return (
|
|
764
|
+
return (h, c) => (o(), _("div", kt, [u(a(Re), {
|
|
755
765
|
ref_key: "formRef",
|
|
756
766
|
ref: n,
|
|
757
|
-
model:
|
|
767
|
+
model: i.value,
|
|
758
768
|
"auto-label-width": "",
|
|
759
769
|
layout: "vertical"
|
|
760
770
|
}, {
|
|
761
|
-
default:
|
|
771
|
+
default: r(() => [u(a(j), {
|
|
762
772
|
field: "title",
|
|
763
773
|
label: "标题",
|
|
764
774
|
rules: [{
|
|
@@ -766,13 +776,13 @@ const X = [{
|
|
|
766
776
|
message: "请输入标题"
|
|
767
777
|
}]
|
|
768
778
|
}, {
|
|
769
|
-
default:
|
|
770
|
-
modelValue:
|
|
771
|
-
"onUpdate:modelValue":
|
|
779
|
+
default: r(() => [u(a(Le), {
|
|
780
|
+
modelValue: i.value.title,
|
|
781
|
+
"onUpdate:modelValue": c[0] || (c[0] = (m) => i.value.title = m),
|
|
772
782
|
placeholder: "请输入标题"
|
|
773
783
|
}, null, 8, ["modelValue"])]),
|
|
774
784
|
_: 1
|
|
775
|
-
}), u(a(
|
|
785
|
+
}), u(a(j), {
|
|
776
786
|
field: "type",
|
|
777
787
|
label: "反馈类型",
|
|
778
788
|
rules: [{
|
|
@@ -780,22 +790,45 @@ const X = [{
|
|
|
780
790
|
message: "请选择反馈类型"
|
|
781
791
|
}]
|
|
782
792
|
}, {
|
|
783
|
-
default:
|
|
784
|
-
modelValue:
|
|
785
|
-
"onUpdate:modelValue":
|
|
793
|
+
default: r(() => [u(a(le), {
|
|
794
|
+
modelValue: i.value.type,
|
|
795
|
+
"onUpdate:modelValue": c[1] || (c[1] = (m) => i.value.type = m),
|
|
786
796
|
placeholder: "请选择反馈类型"
|
|
787
797
|
}, {
|
|
788
|
-
default:
|
|
789
|
-
key:
|
|
790
|
-
value:
|
|
798
|
+
default: r(() => [(o(!0), _(B, null, J(a(X), (m, g) => (o(), y(a(ae), {
|
|
799
|
+
key: g,
|
|
800
|
+
value: m.key
|
|
791
801
|
}, {
|
|
792
|
-
default:
|
|
802
|
+
default: r(() => [F(z(m.label), 1)]),
|
|
793
803
|
_: 2
|
|
794
804
|
}, 1032, ["value"]))), 128))]),
|
|
795
805
|
_: 1
|
|
796
806
|
}, 8, ["modelValue"])]),
|
|
797
807
|
_: 1
|
|
798
|
-
}), u(a(
|
|
808
|
+
}), u(a(j), {
|
|
809
|
+
field: "priority",
|
|
810
|
+
label: "优先级",
|
|
811
|
+
rules: [{
|
|
812
|
+
required: !0,
|
|
813
|
+
message: "请选择优先级"
|
|
814
|
+
}]
|
|
815
|
+
}, {
|
|
816
|
+
default: r(() => [u(a(le), {
|
|
817
|
+
modelValue: i.value.priority,
|
|
818
|
+
"onUpdate:modelValue": c[2] || (c[2] = (m) => i.value.priority = m),
|
|
819
|
+
placeholder: "请选择优先级"
|
|
820
|
+
}, {
|
|
821
|
+
default: r(() => [(o(!0), _(B, null, J(a(pt), (m, g) => (o(), y(a(ae), {
|
|
822
|
+
key: g,
|
|
823
|
+
value: m.key
|
|
824
|
+
}, {
|
|
825
|
+
default: r(() => [F(z(m.label), 1)]),
|
|
826
|
+
_: 2
|
|
827
|
+
}, 1032, ["value"]))), 128))]),
|
|
828
|
+
_: 1
|
|
829
|
+
}, 8, ["modelValue"])]),
|
|
830
|
+
_: 1
|
|
831
|
+
}), u(a(j), {
|
|
799
832
|
field: "description",
|
|
800
833
|
label: "问题描述",
|
|
801
834
|
rules: [{
|
|
@@ -803,9 +836,9 @@ const X = [{
|
|
|
803
836
|
message: "请输入问题描述"
|
|
804
837
|
}]
|
|
805
838
|
}, {
|
|
806
|
-
default:
|
|
807
|
-
modelValue:
|
|
808
|
-
"onUpdate:modelValue":
|
|
839
|
+
default: r(() => [u(a(Be), {
|
|
840
|
+
modelValue: i.value.description,
|
|
841
|
+
"onUpdate:modelValue": c[3] || (c[3] = (m) => i.value.description = m),
|
|
809
842
|
placeholder: "请输入问题描述",
|
|
810
843
|
"allow-clear": "",
|
|
811
844
|
"auto-size": {
|
|
@@ -818,35 +851,35 @@ const X = [{
|
|
|
818
851
|
type: "primary",
|
|
819
852
|
onClick: s
|
|
820
853
|
}, {
|
|
821
|
-
default:
|
|
854
|
+
default: r(() => [...c[4] || (c[4] = [F(" 提交 ", -1)])]),
|
|
822
855
|
_: 1
|
|
823
856
|
}, 8, ["loading"])]),
|
|
824
857
|
_: 1
|
|
825
858
|
}, 8, ["model"])]));
|
|
826
859
|
}
|
|
827
|
-
}),
|
|
860
|
+
}), ht = /* @__PURE__ */ A(_t, [["__scopeId", "data-v-2f79c0a9"]]), Ct = {
|
|
828
861
|
class: "messages"
|
|
829
|
-
},
|
|
862
|
+
}, xt = {
|
|
830
863
|
key: 1,
|
|
831
864
|
class: "list"
|
|
832
|
-
},
|
|
865
|
+
}, wt = /* @__PURE__ */ V({
|
|
833
866
|
__name: "FeedbackList",
|
|
834
867
|
emits: ["toDetail"],
|
|
835
868
|
setup(e, {
|
|
836
869
|
emit: l
|
|
837
870
|
}) {
|
|
838
|
-
const t =
|
|
871
|
+
const t = v(!0), n = v([]), p = v(!1), i = v(""), s = v({
|
|
839
872
|
total: 0,
|
|
840
873
|
current: 1,
|
|
841
874
|
pageSize: 10
|
|
842
875
|
});
|
|
843
|
-
function
|
|
876
|
+
function h() {
|
|
844
877
|
t.value = !0;
|
|
845
878
|
}
|
|
846
|
-
function
|
|
847
|
-
|
|
879
|
+
function c(k) {
|
|
880
|
+
i.value = k.id, t.value = !1;
|
|
848
881
|
}
|
|
849
|
-
const
|
|
882
|
+
const m = [{
|
|
850
883
|
dataIndex: "id",
|
|
851
884
|
slotName: "id",
|
|
852
885
|
title: "ID",
|
|
@@ -886,114 +919,114 @@ const X = [{
|
|
|
886
919
|
fixed: "right",
|
|
887
920
|
minWidth: 80
|
|
888
921
|
}];
|
|
889
|
-
function
|
|
890
|
-
return
|
|
922
|
+
function g(k) {
|
|
923
|
+
return k === "inProgress" ? "orangered" : k === "done" ? "green" : "arcoblue";
|
|
891
924
|
}
|
|
892
|
-
function
|
|
893
|
-
p.value = !0,
|
|
925
|
+
function C() {
|
|
926
|
+
p.value = !0, ut({
|
|
894
927
|
current: s.value.current,
|
|
895
928
|
pageSize: s.value.pageSize
|
|
896
929
|
}).then(async ({
|
|
897
|
-
data:
|
|
930
|
+
data: k
|
|
898
931
|
}) => {
|
|
899
|
-
p.value = !1, n.value =
|
|
932
|
+
p.value = !1, n.value = k.items, s.value.total = k.count;
|
|
900
933
|
}).catch(() => {
|
|
901
934
|
p.value = !1;
|
|
902
935
|
});
|
|
903
936
|
}
|
|
904
|
-
const R = (
|
|
905
|
-
s.value.current =
|
|
906
|
-
}, U = (
|
|
907
|
-
s.value.current = 1, s.value.pageSize =
|
|
937
|
+
const R = (k) => {
|
|
938
|
+
s.value.current = k, C();
|
|
939
|
+
}, U = (k) => {
|
|
940
|
+
s.value.current = 1, s.value.pageSize = k, C();
|
|
908
941
|
};
|
|
909
|
-
return
|
|
942
|
+
return C(), (k, S) => (o(), _("div", Ct, [t.value ? L("", !0) : (o(), y(a(Ve), {
|
|
910
943
|
key: 0,
|
|
911
944
|
style: {
|
|
912
945
|
"margin-bottom": "10px",
|
|
913
946
|
cursor: "pointer"
|
|
914
947
|
}
|
|
915
948
|
}, {
|
|
916
|
-
default:
|
|
949
|
+
default: r(() => [u(a(ne), {
|
|
917
950
|
style: {
|
|
918
951
|
padding: "0px"
|
|
919
952
|
},
|
|
920
|
-
onClick:
|
|
953
|
+
onClick: h
|
|
921
954
|
}, {
|
|
922
|
-
default:
|
|
955
|
+
default: r(() => [...S[0] || (S[0] = [F("我的反馈", -1)])]),
|
|
923
956
|
_: 1
|
|
924
|
-
}), u(a(
|
|
957
|
+
}), u(a(ne), {
|
|
925
958
|
style: {
|
|
926
959
|
padding: "0px"
|
|
927
960
|
}
|
|
928
961
|
}, {
|
|
929
|
-
default:
|
|
962
|
+
default: r(() => [...S[1] || (S[1] = [F("反馈详情", -1)])]),
|
|
930
963
|
_: 1
|
|
931
964
|
})]),
|
|
932
965
|
_: 1
|
|
933
|
-
})), t.value ? (
|
|
934
|
-
columns:
|
|
966
|
+
})), t.value ? (o(), _("div", xt, [u(Oe, {
|
|
967
|
+
columns: m,
|
|
935
968
|
data: n.value,
|
|
936
969
|
loading: p.value,
|
|
937
970
|
pagination: s.value,
|
|
938
971
|
onPageChange: R,
|
|
939
972
|
onPageSizeChange: U
|
|
940
973
|
}, {
|
|
941
|
-
type:
|
|
942
|
-
record:
|
|
943
|
-
}) => [u(a(
|
|
974
|
+
type: r(({
|
|
975
|
+
record: x
|
|
976
|
+
}) => [u(a(M), {
|
|
944
977
|
color: "arcoblue"
|
|
945
978
|
}, {
|
|
946
|
-
default:
|
|
947
|
-
var
|
|
948
|
-
return [F(
|
|
979
|
+
default: r(() => {
|
|
980
|
+
var I;
|
|
981
|
+
return [F(z((I = a(T)(a(X), x.type)) == null ? void 0 : I.label), 1)];
|
|
949
982
|
}),
|
|
950
983
|
_: 2
|
|
951
984
|
}, 1024)]),
|
|
952
|
-
status:
|
|
953
|
-
record:
|
|
954
|
-
}) => [u(a(
|
|
955
|
-
color:
|
|
985
|
+
status: r(({
|
|
986
|
+
record: x
|
|
987
|
+
}) => [u(a(M), {
|
|
988
|
+
color: g(x.status)
|
|
956
989
|
}, {
|
|
957
|
-
default:
|
|
958
|
-
var
|
|
959
|
-
return [F(
|
|
990
|
+
default: r(() => {
|
|
991
|
+
var I;
|
|
992
|
+
return [F(z((I = a(T)(a(_e), x.status)) == null ? void 0 : I.label), 1)];
|
|
960
993
|
}),
|
|
961
994
|
_: 2
|
|
962
995
|
}, 1032, ["color"])]),
|
|
963
|
-
actions:
|
|
964
|
-
record:
|
|
996
|
+
actions: r(({
|
|
997
|
+
record: x
|
|
965
998
|
}) => [u(a(Q), {
|
|
966
999
|
type: "text",
|
|
967
|
-
onClick: (
|
|
1000
|
+
onClick: (I) => c(x)
|
|
968
1001
|
}, {
|
|
969
|
-
default:
|
|
1002
|
+
default: r(() => [...S[2] || (S[2] = [F("查看", -1)])]),
|
|
970
1003
|
_: 1
|
|
971
1004
|
}, 8, ["onClick"])]),
|
|
972
1005
|
_: 1
|
|
973
|
-
}, 8, ["data", "loading", "pagination"])])) : (
|
|
1006
|
+
}, 8, ["data", "loading", "pagination"])])) : (o(), y(bt, {
|
|
974
1007
|
key: 2,
|
|
975
|
-
id:
|
|
1008
|
+
id: i.value,
|
|
976
1009
|
"sender-role": "user"
|
|
977
1010
|
}, null, 8, ["id"]))]));
|
|
978
1011
|
}
|
|
979
|
-
}),
|
|
1012
|
+
}), St = /* @__PURE__ */ A(wt, [["__scopeId", "data-v-08318fc7"]]), It = {
|
|
980
1013
|
class: "content"
|
|
981
|
-
},
|
|
1014
|
+
}, $t = {
|
|
982
1015
|
class: "left"
|
|
983
|
-
},
|
|
1016
|
+
}, Ft = {
|
|
984
1017
|
class: "right"
|
|
985
|
-
},
|
|
1018
|
+
}, Ut = /* @__PURE__ */ V({
|
|
986
1019
|
__name: "FeedbackModal",
|
|
987
1020
|
emits: ["confirm", "cancel"],
|
|
988
1021
|
setup(e, {
|
|
989
1022
|
expose: l,
|
|
990
1023
|
emit: t
|
|
991
1024
|
}) {
|
|
992
|
-
const n =
|
|
993
|
-
function
|
|
1025
|
+
const n = v(!1), p = t;
|
|
1026
|
+
function i() {
|
|
994
1027
|
p("cancel");
|
|
995
1028
|
}
|
|
996
|
-
const s =
|
|
1029
|
+
const s = v(["FeedbackList"]), h = v("功能变更"), c = v([{
|
|
997
1030
|
name: "我的反馈",
|
|
998
1031
|
path: "FeedbackList",
|
|
999
1032
|
meta: {
|
|
@@ -1005,25 +1038,24 @@ const X = [{
|
|
|
1005
1038
|
meta: {
|
|
1006
1039
|
icon: "mingcute:cube-3d-fill"
|
|
1007
1040
|
}
|
|
1008
|
-
}]),
|
|
1009
|
-
function
|
|
1041
|
+
}]), m = v(!1), g = E(() => s.value.length !== 0 ? s.value[0] : "");
|
|
1042
|
+
function C() {
|
|
1010
1043
|
s.value = ["FeedbackList"];
|
|
1011
1044
|
}
|
|
1012
1045
|
function R() {
|
|
1013
|
-
|
|
1046
|
+
m.value = !1;
|
|
1014
1047
|
}
|
|
1015
|
-
function U(
|
|
1016
|
-
|
|
1017
|
-
console.log(b, k, "lokokoko"), s.value = [b], C.value = I.name;
|
|
1048
|
+
function U(S) {
|
|
1049
|
+
s.value = [S.path], h.value = S.name;
|
|
1018
1050
|
}
|
|
1019
|
-
function
|
|
1020
|
-
n.value =
|
|
1051
|
+
function k(S) {
|
|
1052
|
+
n.value = S;
|
|
1021
1053
|
}
|
|
1022
1054
|
return l({
|
|
1023
|
-
setData:
|
|
1024
|
-
}), (
|
|
1055
|
+
setData: k
|
|
1056
|
+
}), (S, x) => (o(), y(a(qe), {
|
|
1025
1057
|
visible: n.value,
|
|
1026
|
-
"onUpdate:visible":
|
|
1058
|
+
"onUpdate:visible": x[1] || (x[1] = (I) => n.value = I),
|
|
1027
1059
|
loading: !1,
|
|
1028
1060
|
"body-class": "AppMessagebodyClass",
|
|
1029
1061
|
"mask-closable": !1,
|
|
@@ -1031,41 +1063,41 @@ const X = [{
|
|
|
1031
1063
|
width: "auto",
|
|
1032
1064
|
title: "用户反馈",
|
|
1033
1065
|
"hide-title": !1,
|
|
1034
|
-
onCancel:
|
|
1066
|
+
onCancel: i
|
|
1035
1067
|
}, {
|
|
1036
|
-
default:
|
|
1068
|
+
default: r(() => [n.value ? (o(), _(B, {
|
|
1037
1069
|
key: 0
|
|
1038
|
-
}, [$("div",
|
|
1070
|
+
}, [$("div", It, [$("div", $t, [u(De, {
|
|
1039
1071
|
"selected-keys": s.value,
|
|
1040
|
-
"onUpdate:selectedKeys":
|
|
1041
|
-
menus:
|
|
1072
|
+
"onUpdate:selectedKeys": x[0] || (x[0] = (I) => s.value = I),
|
|
1073
|
+
menus: c.value,
|
|
1042
1074
|
onChange: U
|
|
1043
|
-
}, null, 8, ["selected-keys", "menus"])]), $("div",
|
|
1075
|
+
}, null, 8, ["selected-keys", "menus"])]), $("div", Ft, [g.value === "FeedbackList" ? (o(), y(St, {
|
|
1044
1076
|
key: 0
|
|
1045
|
-
})) : L("", !0),
|
|
1077
|
+
})) : L("", !0), g.value === "CreateFeedback" ? (o(), y(ht, {
|
|
1046
1078
|
key: 1,
|
|
1047
|
-
onConfirm:
|
|
1079
|
+
onConfirm: C
|
|
1048
1080
|
})) : L("", !0)])]), u(a(Ae), {
|
|
1049
1081
|
width: 400,
|
|
1050
|
-
visible:
|
|
1082
|
+
visible: m.value,
|
|
1051
1083
|
"unmount-on-close": "",
|
|
1052
1084
|
footer: !1,
|
|
1053
|
-
title: `${
|
|
1085
|
+
title: `${h.value}详情`,
|
|
1054
1086
|
onCancel: R
|
|
1055
1087
|
}, {
|
|
1056
|
-
default:
|
|
1088
|
+
default: r(() => [...x[2] || (x[2] = [$("div", null, " You can customize modal body text by the current situation. This modal will be closed immediately once you press the OK button. ", -1)])]),
|
|
1057
1089
|
_: 1
|
|
1058
1090
|
}, 8, ["visible", "title"])], 64)) : L("", !0)]),
|
|
1059
1091
|
_: 1
|
|
1060
1092
|
}, 8, ["visible"]));
|
|
1061
1093
|
}
|
|
1062
|
-
}),
|
|
1094
|
+
}), el = /* @__PURE__ */ A(Ut, [["__scopeId", "data-v-fac2fc97"]]);
|
|
1063
1095
|
export {
|
|
1064
|
-
|
|
1096
|
+
re as B,
|
|
1097
|
+
bt as F,
|
|
1065
1098
|
Je as R,
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
Jt as d
|
|
1099
|
+
oe as a,
|
|
1100
|
+
ht as b,
|
|
1101
|
+
St as c,
|
|
1102
|
+
el as d
|
|
1071
1103
|
};
|