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