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