@huyooo/ui 0.6.2 → 0.6.5

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