@huyooo/ui 0.6.6 → 0.6.7

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