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