@pangu-backend-ui/apputil-core 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,109 +1,109 @@
1
- import { defineComponent as Q, ref as b, inject as z, resolveComponent as o, openBlock as s, createBlock as c, withCtx as l, createVNode as e, createTextVNode as v, createElementBlock as O, Fragment as P, renderList as W, unref as B, createCommentVNode as S, nextTick as Z, onBeforeMount as ee, resolveDirective as X, withDirectives as G, toDisplayString as R, computed as le, onMounted as re, createElementVNode as ie } from "vue";
2
- import { ElMessage as Y } from "element-plus";
1
+ import { defineComponent as G, ref as g, inject as z, resolveComponent as o, openBlock as i, createBlock as m, withCtx as l, createVNode as e, createTextVNode as c, createElementBlock as P, Fragment as $, renderList as q, unref as J, createCommentVNode as F, nextTick as ee, onBeforeMount as le, resolveDirective as X, withDirectives as Y, toDisplayString as w, computed as te, onMounted as re, createElementVNode as j } from "vue";
2
+ import { ElMessage as Z } from "element-plus";
3
3
  import { defineStore as pe } from "pinia";
4
- const de = [], te = {
4
+ const de = [], ae = {
5
5
  OPEN_WEB: { name: "打开Web页面" },
6
6
  OPEN_VIEW: { name: "打开内置页面" },
7
7
  API_REQUEST: { name: "请求API" },
8
8
  EXEC_METHOD: { name: "执行方法" },
9
9
  CUSTOM: { name: "自定义" }
10
- }, ae = {
10
+ }, ne = {
11
11
  OPEN_WEB: { name: "打开Web页面" },
12
12
  OPEN_VIEW: { name: "打开内置页面" },
13
13
  API_REQUEST: { name: "请求API" },
14
14
  EXEC_METHOD: { name: "执行方法" },
15
15
  CUSTOM: { name: "自定义" }
16
- }, ce = /* @__PURE__ */ Q({
16
+ }, ce = /* @__PURE__ */ G({
17
17
  __name: "BannerDialog",
18
18
  emits: ["success"],
19
- setup($, { expose: d, emit: f }) {
20
- const g = b(!1), u = b({
19
+ setup(B, { expose: p, emit: _ }) {
20
+ const v = g(!1), u = g({
21
21
  sceneCode: null,
22
22
  image: null,
23
23
  targetPath: null,
24
24
  clickEventType: "",
25
25
  params: null,
26
26
  shelfTimeArr: []
27
- }), V = b({
27
+ }), k = g({
28
28
  sceneCode: [{ required: !0, message: "请输入场景代码" }],
29
29
  image: [{ required: !0, message: "请上传图片" }],
30
30
  targetPath: [{ required: !0, message: "请输入目标地址" }],
31
31
  clickEventType: [{ required: !0, message: "请选择点击事件类型" }]
32
- }), C = b(!1), n = z("http"), N = b();
32
+ }), E = g(!1), s = z("http"), U = g();
33
33
  function D() {
34
- var i;
35
- (i = N.value) == null || i.validate((t) => {
34
+ var r;
35
+ (r = U.value) == null || r.validate((t) => {
36
36
  if (t) {
37
- C.value = !0;
38
- let m = `/api/app/banner/${E.value ?? ""}/${E.value ? "update" : "create"}`, y = { ...u.value };
39
- y.shelfTime = null, y.offShelfTime = null, u.value.shelfTimeArr.length && (y.shelfTime = u.value.shelfTimeArr[0], y.offShelfTime = u.value.shelfTimeArr[1]), n == null || n.post(m, y).then((_) => {
40
- var w;
41
- f("success"), (w = N.value) == null || w.resetFields(), g.value = !1;
37
+ E.value = !0;
38
+ let f = `/api/app/banner/${h.value ?? ""}/${h.value ? "update" : "create"}`, y = { ...u.value };
39
+ y.shelfTime = null, y.offShelfTime = null, u.value.shelfTimeArr.length && (y.shelfTime = u.value.shelfTimeArr[0], y.offShelfTime = u.value.shelfTimeArr[1]), s == null || s.post(f, y).then((b) => {
40
+ var T;
41
+ _("success"), (T = U.value) == null || T.resetFields(), v.value = !1;
42
42
  }).finally(() => {
43
- C.value = !1;
43
+ E.value = !1;
44
44
  });
45
45
  }
46
46
  });
47
47
  }
48
- const U = b([]), E = b(null);
49
- function x(i, t) {
50
- U.value = i, E.value = null, g.value = !0, Z(() => {
51
- t && (E.value = t.id, Object.assign(u.value, t), t.shelfTime && t.offShelfTime && (u.value.shelfTimeArr = [new Date(t.shelfTime), new Date(t.offShelfTime)]));
48
+ const A = g([]), h = g(null);
49
+ function S(r, t) {
50
+ A.value = r, h.value = null, v.value = !0, ee(() => {
51
+ t && (h.value = t.id, Object.assign(u.value, t), t.shelfTime && t.offShelfTime && (u.value.shelfTimeArr = [new Date(t.shelfTime), new Date(t.offShelfTime)]));
52
52
  });
53
53
  }
54
- function I() {
55
- var i;
56
- (i = N.value) == null || i.resetFields();
54
+ function N() {
55
+ var r;
56
+ (r = U.value) == null || r.resetFields();
57
57
  }
58
- return d({
59
- show: x
60
- }), (i, t) => {
61
- const m = o("el-option"), y = o("el-select"), _ = o("el-form-item"), w = o("pg-upload"), H = o("el-input"), r = o("el-collapse-transition"), q = o("el-date-picker"), k = o("el-form"), h = o("el-button"), M = o("el-dialog");
62
- return s(), c(M, {
63
- modelValue: g.value,
64
- "onUpdate:modelValue": t[6] || (t[6] = (p) => g.value = p),
58
+ return p({
59
+ show: S
60
+ }), (r, t) => {
61
+ const f = o("el-option"), y = o("el-select"), b = o("el-form-item"), T = o("pg-upload"), R = o("el-input"), a = o("el-collapse-transition"), O = o("el-date-picker"), V = o("el-form"), C = o("el-button"), W = o("el-dialog");
62
+ return i(), m(W, {
63
+ modelValue: v.value,
64
+ "onUpdate:modelValue": t[6] || (t[6] = (d) => v.value = d),
65
65
  width: "400",
66
- onClosed: I
66
+ onClosed: N
67
67
  }, {
68
68
  footer: l(() => [
69
- e(h, {
69
+ e(C, {
70
70
  type: "primary",
71
- disabled: C.value,
72
- loading: C.value,
71
+ disabled: E.value,
72
+ loading: E.value,
73
73
  onClick: D
74
74
  }, {
75
75
  default: l(() => [
76
- v("提交")
76
+ c("提交")
77
77
  ]),
78
78
  _: 1
79
79
  }, 8, ["disabled", "loading"])
80
80
  ]),
81
81
  default: l(() => [
82
- e(k, {
82
+ e(V, {
83
83
  ref_key: "form",
84
- ref: N,
85
- rules: V.value,
84
+ ref: U,
85
+ rules: k.value,
86
86
  model: u.value,
87
87
  "label-position": "top"
88
88
  }, {
89
89
  default: l(() => [
90
- e(_, {
90
+ e(b, {
91
91
  label: "场景代码",
92
92
  prop: "sceneCode"
93
93
  }, {
94
94
  default: l(() => [
95
95
  e(y, {
96
96
  modelValue: u.value.sceneCode,
97
- "onUpdate:modelValue": t[0] || (t[0] = (p) => u.value.sceneCode = p),
97
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => u.value.sceneCode = d),
98
98
  placeholder: "请输入/选择场景代码",
99
99
  "allow-create": "",
100
100
  filterable: ""
101
101
  }, {
102
102
  default: l(() => [
103
- (s(!0), O(P, null, W(U.value, (p) => (s(), c(m, {
104
- key: p,
105
- value: p,
106
- label: p
103
+ (i(!0), P($, null, q(A.value, (d) => (i(), m(f, {
104
+ key: d,
105
+ value: d,
106
+ label: d
107
107
  }, null, 8, ["value", "label"]))), 128))
108
108
  ]),
109
109
  _: 1
@@ -111,16 +111,16 @@ const de = [], te = {
111
111
  ]),
112
112
  _: 1
113
113
  }),
114
- e(_, {
114
+ e(b, {
115
115
  label: "图片",
116
116
  prop: "image"
117
117
  }, {
118
118
  default: l(() => [
119
- (s(), c(w, {
119
+ (i(), m(T, {
120
120
  accept: "jpg,jpeg,png",
121
121
  modelValue: u.value.image,
122
- "onUpdate:modelValue": t[1] || (t[1] = (p) => u.value.image = p),
123
- key: `img_${E.value}`,
122
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => u.value.image = d),
123
+ key: `img_${h.value}`,
124
124
  "list-type": "picture-card",
125
125
  "upload-type": "banner",
126
126
  limit: 1
@@ -128,7 +128,7 @@ const de = [], te = {
128
128
  ]),
129
129
  _: 1
130
130
  }),
131
- e(_, {
131
+ e(b, {
132
132
  label: "点击事件类型",
133
133
  prop: "clickEventType"
134
134
  }, {
@@ -136,12 +136,12 @@ const de = [], te = {
136
136
  e(y, {
137
137
  placeholder: "请选择点击事件类型",
138
138
  modelValue: u.value.clickEventType,
139
- "onUpdate:modelValue": t[2] || (t[2] = (p) => u.value.clickEventType = p)
139
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => u.value.clickEventType = d)
140
140
  }, {
141
141
  default: l(() => [
142
- (s(!0), O(P, null, W(B(te), (p, A) => (s(), c(m, {
143
- value: A,
144
- label: p.name
142
+ (i(!0), P($, null, q(J(ae), (d, x) => (i(), m(f, {
143
+ value: x,
144
+ label: d.name
145
145
  }, null, 8, ["value", "label"]))), 256))
146
146
  ]),
147
147
  _: 1
@@ -149,48 +149,48 @@ const de = [], te = {
149
149
  ]),
150
150
  _: 1
151
151
  }),
152
- e(r, null, {
152
+ e(a, null, {
153
153
  default: l(() => [
154
- ["OPEN_WEB", "OPEN_VIEW", "API_REQUEST"].indexOf(u.value.clickEventType) >= 0 ? (s(), c(_, {
154
+ ["OPEN_WEB", "OPEN_VIEW", "API_REQUEST"].indexOf(u.value.clickEventType) >= 0 ? (i(), m(b, {
155
155
  key: 0,
156
156
  label: "目标地址",
157
157
  prop: "targetPath"
158
158
  }, {
159
159
  default: l(() => [
160
- e(H, {
160
+ e(R, {
161
161
  placeholder: "请输入目标地址",
162
162
  modelValue: u.value.targetPath,
163
- "onUpdate:modelValue": t[3] || (t[3] = (p) => u.value.targetPath = p)
163
+ "onUpdate:modelValue": t[3] || (t[3] = (d) => u.value.targetPath = d)
164
164
  }, null, 8, ["modelValue"])
165
165
  ]),
166
166
  _: 1
167
- })) : S("", !0)
167
+ })) : F("", !0)
168
168
  ]),
169
169
  _: 1
170
170
  }),
171
- e(_, {
171
+ e(b, {
172
172
  label: "目标地址参数",
173
173
  prop: "params"
174
174
  }, {
175
175
  default: l(() => [
176
- e(H, {
176
+ e(R, {
177
177
  type: "textarea",
178
178
  modelValue: u.value.params,
179
- "onUpdate:modelValue": t[4] || (t[4] = (p) => u.value.params = p),
179
+ "onUpdate:modelValue": t[4] || (t[4] = (d) => u.value.params = d),
180
180
  placeholder: "请输入JSON格式的参数对象"
181
181
  }, null, 8, ["modelValue"])
182
182
  ]),
183
183
  _: 1
184
184
  }),
185
- e(_, {
185
+ e(b, {
186
186
  label: "生效时段",
187
187
  prop: "shelfTimeArr"
188
188
  }, {
189
189
  default: l(() => [
190
- e(q, {
190
+ e(O, {
191
191
  type: "datetimerange",
192
192
  modelValue: u.value.shelfTimeArr,
193
- "onUpdate:modelValue": t[5] || (t[5] = (p) => u.value.shelfTimeArr = p),
193
+ "onUpdate:modelValue": t[5] || (t[5] = (d) => u.value.shelfTimeArr = d),
194
194
  "start-placeholder": "上架时间",
195
195
  "end-placeholder": "下架时间",
196
196
  "default-time": [new Date(2e3, 1, 1, 0, 0, 0), new Date(2e3, 1, 1, 23, 59, 59)]
@@ -206,114 +206,114 @@ const de = [], te = {
206
206
  }, 8, ["modelValue"]);
207
207
  };
208
208
  }
209
- }), me = /* @__PURE__ */ Q({
209
+ }), me = /* @__PURE__ */ G({
210
210
  __name: "BannerListView",
211
- setup($) {
212
- const d = z("http"), f = b({
211
+ setup(B) {
212
+ const p = z("http"), _ = g({
213
213
  sceneCode: null,
214
214
  status: null
215
- }), g = b([]);
215
+ }), v = g([]);
216
216
  function u() {
217
- d == null || d.get("/api/app/banner/all-scene-code").then((i) => {
218
- g.value = i.data;
217
+ p == null || p.get("/api/app/banner/all-scene-code").then((r) => {
218
+ v.value = r.data;
219
219
  });
220
220
  }
221
- const V = b(), C = b(!1);
222
- function n() {
223
- C.value = !!f.value.sceneCode, V.value.search();
221
+ const k = g(), E = g(!1);
222
+ function s() {
223
+ E.value = !!_.value.sceneCode, k.value.search();
224
224
  }
225
- function N(i) {
226
- d == null || d.post(`/api/app/banner/${i}/publish`).then((t) => {
227
- n();
225
+ function U(r) {
226
+ p == null || p.post(`/api/app/banner/${r}/publish`).then((t) => {
227
+ s();
228
228
  });
229
229
  }
230
- function D(i) {
231
- d == null || d.post(`/api/app/banner/${i}/off-shelf`).then((t) => {
232
- n();
230
+ function D(r) {
231
+ p == null || p.post(`/api/app/banner/${r}/off-shelf`).then((t) => {
232
+ s();
233
233
  });
234
234
  }
235
- function U(i, t) {
236
- d == null || d.post(`/api/app/banner/${i}/move-up`).then((m) => {
237
- f.value.sceneCode = t, n();
235
+ function A(r, t) {
236
+ p == null || p.post(`/api/app/banner/${r}/move-up`).then((f) => {
237
+ _.value.sceneCode = t, s();
238
238
  });
239
239
  }
240
- function E(i, t) {
241
- d == null || d.post(`/api/app/banner/${i}/move-down`).then((m) => {
242
- f.value.sceneCode = t, n();
240
+ function h(r, t) {
241
+ p == null || p.post(`/api/app/banner/${r}/move-down`).then((f) => {
242
+ _.value.sceneCode = t, s();
243
243
  });
244
244
  }
245
- ee(() => {
245
+ le(() => {
246
246
  u();
247
247
  });
248
- const x = b();
249
- function I(i) {
250
- x.value.show(g.value, i);
248
+ const S = g();
249
+ function N(r) {
250
+ S.value.show(v.value, r);
251
251
  }
252
- return (i, t) => {
253
- const m = o("el-option"), y = o("el-select"), _ = o("el-button"), w = o("el-space"), H = o("el-card"), r = o("el-table-column"), q = o("el-image"), k = o("el-descriptions-item"), h = o("el-descriptions"), M = o("el-popover"), p = o("el-tag"), A = o("el-popconfirm"), L = o("pg-table"), J = X("permission");
254
- return s(), O(P, null, [
255
- e(H, null, {
252
+ return (r, t) => {
253
+ const f = o("el-option"), y = o("el-select"), b = o("el-button"), T = o("el-space"), R = o("el-card"), a = o("el-table-column"), O = o("el-image"), V = o("el-descriptions-item"), C = o("el-descriptions"), W = o("el-popover"), d = o("el-tag"), x = o("el-popconfirm"), H = o("pg-table"), M = X("permission");
254
+ return i(), P($, null, [
255
+ e(R, null, {
256
256
  default: l(() => [
257
- e(w, null, {
257
+ e(T, null, {
258
258
  default: l(() => [
259
259
  e(y, {
260
- modelValue: f.value.sceneCode,
261
- "onUpdate:modelValue": t[0] || (t[0] = (a) => f.value.sceneCode = a),
260
+ modelValue: _.value.sceneCode,
261
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => _.value.sceneCode = n),
262
262
  placeholder: "场景代码",
263
263
  clearable: ""
264
264
  }, {
265
265
  default: l(() => [
266
- (s(!0), O(P, null, W(g.value, (a, F) => (s(), c(m, {
267
- label: a,
268
- value: a,
269
- key: `sc_con_${F}`
266
+ (i(!0), P($, null, q(v.value, (n, L) => (i(), m(f, {
267
+ label: n,
268
+ value: n,
269
+ key: `sc_con_${L}`
270
270
  }, null, 8, ["label", "value"]))), 128))
271
271
  ]),
272
272
  _: 1
273
273
  }, 8, ["modelValue"]),
274
274
  e(y, {
275
- modelValue: f.value.status,
276
- "onUpdate:modelValue": t[1] || (t[1] = (a) => f.value.status = a),
275
+ modelValue: _.value.status,
276
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => _.value.status = n),
277
277
  placeholder: "状态",
278
278
  clearable: "",
279
279
  style: { width: "150px" }
280
280
  }, {
281
281
  default: l(() => [
282
- e(m, {
282
+ e(f, {
283
283
  label: "草稿",
284
284
  value: "DRAFT"
285
285
  }),
286
- e(m, {
286
+ e(f, {
287
287
  label: "已发布",
288
288
  value: "PUBLISH"
289
289
  }),
290
- e(m, {
290
+ e(f, {
291
291
  label: "已下架",
292
292
  value: "OFF_SHELF"
293
293
  })
294
294
  ]),
295
295
  _: 1
296
296
  }, 8, ["modelValue"]),
297
- e(_, {
297
+ e(b, {
298
298
  type: "primary",
299
299
  icon: "search",
300
- onClick: n
300
+ onClick: s
301
301
  }, {
302
302
  default: l(() => [
303
- v("搜索")
303
+ c("搜索")
304
304
  ]),
305
305
  _: 1
306
306
  }),
307
- G((s(), c(_, {
307
+ Y((i(), m(b, {
308
308
  icon: "plus",
309
- onClick: t[2] || (t[2] = (a) => I())
309
+ onClick: t[2] || (t[2] = (n) => N())
310
310
  }, {
311
311
  default: l(() => [
312
- v("创建Banner")
312
+ c("创建Banner")
313
313
  ]),
314
314
  _: 1
315
315
  })), [
316
- [J, "CREATE_BANNER"]
316
+ [M, "CREATE_BANNER"]
317
317
  ])
318
318
  ]),
319
319
  _: 1
@@ -321,196 +321,196 @@ const de = [], te = {
321
321
  ]),
322
322
  _: 1
323
323
  }),
324
- e(L, {
324
+ e(H, {
325
325
  ref_key: "table",
326
- ref: V,
326
+ ref: k,
327
327
  "data-url": "/api/app/banner/page",
328
- onRowDbClick: t[3] || (t[3] = (a) => i.$hasPer("UPDATE_BANNER") ? I(a) : null),
329
- condition: f.value,
328
+ onRowDbClick: t[3] || (t[3] = (n) => r.$hasPer("UPDATE_BANNER") ? N(n) : null),
329
+ condition: _.value,
330
330
  style: { "margin-top": "10px" }
331
331
  }, {
332
332
  default: l(() => [
333
- C.value && i.$hasPer("BANNER_SEQ_MOVE_UP_DOWN") ? (s(), c(r, {
333
+ E.value && r.$hasPer("BANNER_SEQ_MOVE_UP_DOWN") ? (i(), m(a, {
334
334
  key: 0,
335
335
  align: "center",
336
336
  width: "80"
337
337
  }, {
338
- default: l(({ row: a }) => [
339
- e(w, { direction: "vertical" }, {
338
+ default: l(({ row: n }) => [
339
+ e(T, { direction: "vertical" }, {
340
340
  default: l(() => [
341
- e(_, {
341
+ e(b, {
342
342
  icon: "ArrowUpBold",
343
- onClick: (F) => U(a.id, a.sceneCode)
343
+ onClick: (L) => A(n.id, n.sceneCode)
344
344
  }, null, 8, ["onClick"]),
345
- e(_, {
345
+ e(b, {
346
346
  icon: "ArrowDownBold",
347
- onClick: (F) => E(a.id, a.sceneCode)
347
+ onClick: (L) => h(n.id, n.sceneCode)
348
348
  }, null, 8, ["onClick"])
349
349
  ]),
350
350
  _: 2
351
351
  }, 1024)
352
352
  ]),
353
353
  _: 1
354
- })) : S("", !0),
355
- e(r, {
354
+ })) : F("", !0),
355
+ e(a, {
356
356
  label: "场景代码",
357
357
  prop: "sceneCode",
358
358
  width: "150"
359
359
  }),
360
- e(r, {
360
+ e(a, {
361
361
  label: "图片",
362
362
  width: "300",
363
363
  align: "center"
364
364
  }, {
365
- default: l(({ row: a }) => [
366
- e(q, {
367
- src: a.image,
365
+ default: l(({ row: n }) => [
366
+ e(O, {
367
+ src: n.image,
368
368
  style: { "max-width": "300px" },
369
- "preview-src-list": [a.image],
369
+ "preview-src-list": [n.image],
370
370
  "preview-teleported": ""
371
371
  }, null, 8, ["src", "preview-src-list"])
372
372
  ]),
373
373
  _: 1
374
374
  }),
375
- e(r, {
375
+ e(a, {
376
376
  label: "点击事件类型",
377
377
  prop: "clickEventType",
378
378
  width: "120"
379
379
  }, {
380
- default: l(({ row: a }) => [
381
- v(R(a.clickEventType ? B(te)[a.clickEventType].name : ""), 1)
380
+ default: l(({ row: n }) => [
381
+ c(w(n.clickEventType ? J(ae)[n.clickEventType].name : ""), 1)
382
382
  ]),
383
383
  _: 1
384
384
  }),
385
- e(r, {
385
+ e(a, {
386
386
  label: "目标地址",
387
387
  prop: "targetPath",
388
388
  "show-overflow-tooltip": ""
389
389
  }),
390
- e(r, {
390
+ e(a, {
391
391
  label: "目标参数",
392
392
  width: "120",
393
393
  "show-overflow-tooltip": ""
394
394
  }, {
395
- default: l(({ row: a }) => [
396
- a.params ? (s(), c(M, {
395
+ default: l(({ row: n }) => [
396
+ n.params ? (i(), m(W, {
397
397
  key: 0,
398
398
  trigger: "hover",
399
399
  width: "350"
400
400
  }, {
401
401
  reference: l(() => [
402
- v(R(a.params.substring(0, 100)) + R(a.params.length > 100 ? "..." : ""), 1)
402
+ c(w(n.params.substring(0, 100)) + w(n.params.length > 100 ? "..." : ""), 1)
403
403
  ]),
404
404
  default: l(() => [
405
- a.params.startsWith("{") ? (s(), c(h, {
405
+ n.params.startsWith("{") ? (i(), m(C, {
406
406
  key: 0,
407
407
  column: "1",
408
408
  border: ""
409
409
  }, {
410
410
  default: l(() => [
411
- (s(!0), O(P, null, W(JSON.parse(a.params), (F, j) => (s(), c(k, {
412
- label: j,
411
+ (i(!0), P($, null, q(JSON.parse(n.params), (L, Q) => (i(), m(V, {
412
+ label: Q,
413
413
  "min-width": "150"
414
414
  }, {
415
415
  default: l(() => [
416
- v(R(F), 1)
416
+ c(w(L), 1)
417
417
  ]),
418
418
  _: 2
419
419
  }, 1032, ["label"]))), 256))
420
420
  ]),
421
421
  _: 2
422
- }, 1024)) : (s(), O(P, { key: 1 }, [
423
- v(R(a.params), 1)
422
+ }, 1024)) : (i(), P($, { key: 1 }, [
423
+ c(w(n.params), 1)
424
424
  ], 64))
425
425
  ]),
426
426
  _: 2
427
- }, 1024)) : S("", !0)
427
+ }, 1024)) : F("", !0)
428
428
  ]),
429
429
  _: 1
430
430
  }),
431
- e(r, {
431
+ e(a, {
432
432
  label: "上架时间",
433
433
  prop: "shelfTime",
434
434
  width: "180",
435
435
  align: "center"
436
436
  }),
437
- e(r, {
437
+ e(a, {
438
438
  label: "下架时间",
439
439
  prop: "offShelfTime",
440
440
  width: "180",
441
441
  align: "center"
442
442
  }),
443
- e(r, {
443
+ e(a, {
444
444
  label: "状态",
445
445
  align: "center",
446
446
  width: "88"
447
447
  }, {
448
- default: l(({ row: a }) => [
449
- a.status == "DRAFT" ? (s(), c(p, {
448
+ default: l(({ row: n }) => [
449
+ n.status == "DRAFT" ? (i(), m(d, {
450
450
  key: 0,
451
451
  type: "danger"
452
452
  }, {
453
453
  default: l(() => [
454
- v("草稿")
454
+ c("草稿")
455
455
  ]),
456
456
  _: 1
457
- })) : S("", !0),
458
- a.status == "PUBLISH" ? (s(), c(p, {
457
+ })) : F("", !0),
458
+ n.status == "PUBLISH" ? (i(), m(d, {
459
459
  key: 1,
460
460
  type: "success"
461
461
  }, {
462
462
  default: l(() => [
463
- v("已发布")
463
+ c("已发布")
464
464
  ]),
465
465
  _: 1
466
- })) : S("", !0),
467
- a.status == "OFF_SHELF" ? (s(), c(p, {
466
+ })) : F("", !0),
467
+ n.status == "OFF_SHELF" ? (i(), m(d, {
468
468
  key: 2,
469
469
  type: "warning"
470
470
  }, {
471
471
  default: l(() => [
472
- v("已下架")
472
+ c("已下架")
473
473
  ]),
474
474
  _: 1
475
- })) : S("", !0)
475
+ })) : F("", !0)
476
476
  ]),
477
477
  _: 1
478
478
  }),
479
- e(r, {
479
+ e(a, {
480
480
  align: "center",
481
481
  width: "90"
482
482
  }, {
483
- default: l(({ row: a }) => [
484
- ["DRAFT", "OFF_SHELF"].indexOf(a.status) >= 0 && i.$hasPer("BANNER_PUBLISH") ? (s(), c(A, {
483
+ default: l(({ row: n }) => [
484
+ ["DRAFT", "OFF_SHELF"].indexOf(n.status) >= 0 && r.$hasPer("BANNER_PUBLISH") ? (i(), m(x, {
485
485
  key: 0,
486
- onConfirm: (F) => N(a.id),
487
- title: `确定要${a.status == "DRAFT" ? "发布" : "上架"}该Banner吗?`
486
+ onConfirm: (L) => U(n.id),
487
+ title: `确定要${n.status == "DRAFT" ? "发布" : "上架"}该Banner吗?`
488
488
  }, {
489
489
  reference: l(() => [
490
- e(_, { type: "success" }, {
490
+ e(b, { type: "success" }, {
491
491
  default: l(() => [
492
- v(R(a.status == "DRAFT" ? "发布" : "上架"), 1)
492
+ c(w(n.status == "DRAFT" ? "发布" : "上架"), 1)
493
493
  ]),
494
494
  _: 2
495
495
  }, 1024)
496
496
  ]),
497
497
  _: 2
498
- }, 1032, ["onConfirm", "title"])) : S("", !0),
499
- a.status == "PUBLISH" && i.$hasPer("BANNER_OFF_SHELF") ? (s(), c(A, {
498
+ }, 1032, ["onConfirm", "title"])) : F("", !0),
499
+ n.status == "PUBLISH" && r.$hasPer("BANNER_OFF_SHELF") ? (i(), m(x, {
500
500
  key: 1,
501
- onConfirm: (F) => D(a.id),
501
+ onConfirm: (L) => D(n.id),
502
502
  title: "确定要[下架]该Banner吗?"
503
503
  }, {
504
504
  reference: l(() => [
505
- e(_, { type: "warning" }, {
505
+ e(b, { type: "warning" }, {
506
506
  default: l(() => [
507
- v("下架")
507
+ c("下架")
508
508
  ]),
509
509
  _: 1
510
510
  })
511
511
  ]),
512
512
  _: 2
513
- }, 1032, ["onConfirm"])) : S("", !0)
513
+ }, 1032, ["onConfirm"])) : F("", !0)
514
514
  ]),
515
515
  _: 1
516
516
  })
@@ -519,17 +519,17 @@ const de = [], te = {
519
519
  }, 8, ["condition"]),
520
520
  e(ce, {
521
521
  ref_key: "bannerDialog",
522
- ref: x,
523
- onSuccess: n
522
+ ref: S,
523
+ onSuccess: s
524
524
  }, null, 512)
525
525
  ], 64);
526
526
  };
527
527
  }
528
- }), fe = /* @__PURE__ */ Q({
528
+ }), _e = /* @__PURE__ */ G({
529
529
  __name: "EntranceDialog",
530
530
  emits: ["success"],
531
- setup($, { expose: d, emit: f }) {
532
- const g = b(!1), u = b({
531
+ setup(B, { expose: p, emit: _ }) {
532
+ const v = g(!1), u = g({
533
533
  sceneCode: null,
534
534
  name: null,
535
535
  iconType: "NAME",
@@ -538,88 +538,88 @@ const de = [], te = {
538
538
  clickEventType: "",
539
539
  params: null,
540
540
  shelfTimeArr: []
541
- }), V = b({
541
+ }), k = g({
542
542
  sceneCode: [{ required: !0, message: "请输入场景代码" }],
543
543
  name: [{ required: !0, message: "请输入入口名称" }],
544
544
  iconType: [{ required: !0, message: "请选择图标类型" }],
545
545
  icon: [{ required: !0, message: `请${u.value.iconType == "NAME" ? "输入图标名称" : "上传图标图片"}` }],
546
546
  targetPath: [{ required: !0, message: "请输入目标地址" }],
547
547
  clickEventType: [{ required: !0, message: "请选择点击事件类型" }]
548
- }), C = b(!1), n = z("http"), N = b();
548
+ }), E = g(!1), s = z("http"), U = g();
549
549
  function D() {
550
- var i;
551
- (i = N.value) == null || i.validate((t) => {
550
+ var r;
551
+ (r = U.value) == null || r.validate((t) => {
552
552
  if (t) {
553
- C.value = !0;
554
- let m = `/api/app/entrance/${E.value ?? ""}/${E.value ? "update" : "create"}`, y = { ...u.value };
555
- y.shelfTime = null, y.offShelfTime = null, u.value.shelfTimeArr.length && (y.shelfTime = u.value.shelfTimeArr[0], y.offShelfTime = u.value.shelfTimeArr[1]), n == null || n.post(m, y).then((_) => {
556
- var w;
557
- f("success"), (w = N.value) == null || w.resetFields(), g.value = !1;
553
+ E.value = !0;
554
+ let f = `/api/app/entrance/${h.value ?? ""}/${h.value ? "update" : "create"}`, y = { ...u.value };
555
+ y.shelfTime = null, y.offShelfTime = null, u.value.shelfTimeArr.length && (y.shelfTime = u.value.shelfTimeArr[0], y.offShelfTime = u.value.shelfTimeArr[1]), s == null || s.post(f, y).then((b) => {
556
+ var T;
557
+ _("success"), (T = U.value) == null || T.resetFields(), v.value = !1;
558
558
  }).finally(() => {
559
- C.value = !1;
559
+ E.value = !1;
560
560
  });
561
561
  }
562
562
  });
563
563
  }
564
- const U = b([]), E = b(null);
565
- function x(i, t) {
566
- U.value = i, E.value = null, g.value = !0, Z(() => {
567
- t && (E.value = t.id, Object.assign(u.value, t), t.shelfTime && t.offShelfTime && (u.value.shelfTimeArr = [new Date(t.shelfTime), new Date(t.offShelfTime)]));
564
+ const A = g([]), h = g(null);
565
+ function S(r, t) {
566
+ A.value = r, h.value = null, v.value = !0, ee(() => {
567
+ t && (h.value = t.id, Object.assign(u.value, t), t.shelfTime && t.offShelfTime && (u.value.shelfTimeArr = [new Date(t.shelfTime), new Date(t.offShelfTime)]));
568
568
  });
569
569
  }
570
- function I() {
571
- var i;
572
- (i = N.value) == null || i.resetFields();
570
+ function N() {
571
+ var r;
572
+ (r = U.value) == null || r.resetFields();
573
573
  }
574
- return d({
575
- show: x
576
- }), (i, t) => {
577
- const m = o("el-option"), y = o("el-select"), _ = o("el-form-item"), w = o("el-input"), H = o("pg-upload"), r = o("el-collapse-transition"), q = o("el-date-picker"), k = o("el-form"), h = o("el-button"), M = o("el-dialog");
578
- return s(), c(M, {
579
- modelValue: g.value,
580
- "onUpdate:modelValue": t[9] || (t[9] = (p) => g.value = p),
574
+ return p({
575
+ show: S
576
+ }), (r, t) => {
577
+ const f = o("el-option"), y = o("el-select"), b = o("el-form-item"), T = o("el-input"), R = o("pg-upload"), a = o("el-collapse-transition"), O = o("el-date-picker"), V = o("el-form"), C = o("el-button"), W = o("el-dialog");
578
+ return i(), m(W, {
579
+ modelValue: v.value,
580
+ "onUpdate:modelValue": t[9] || (t[9] = (d) => v.value = d),
581
581
  width: "400",
582
- onClose: I
582
+ onClose: N
583
583
  }, {
584
584
  footer: l(() => [
585
- e(h, {
585
+ e(C, {
586
586
  type: "primary",
587
- disabled: C.value,
588
- loading: C.value,
587
+ disabled: E.value,
588
+ loading: E.value,
589
589
  onClick: D
590
590
  }, {
591
591
  default: l(() => [
592
- v("提交")
592
+ c("提交")
593
593
  ]),
594
594
  _: 1
595
595
  }, 8, ["disabled", "loading"])
596
596
  ]),
597
597
  default: l(() => [
598
- e(k, {
598
+ e(V, {
599
599
  ref_key: "form",
600
- ref: N,
601
- rules: V.value,
600
+ ref: U,
601
+ rules: k.value,
602
602
  model: u.value,
603
603
  "label-position": "top"
604
604
  }, {
605
605
  default: l(() => [
606
- e(_, {
606
+ e(b, {
607
607
  label: "场景代码",
608
608
  prop: "sceneCode"
609
609
  }, {
610
610
  default: l(() => [
611
611
  e(y, {
612
612
  modelValue: u.value.sceneCode,
613
- "onUpdate:modelValue": t[0] || (t[0] = (p) => u.value.sceneCode = p),
613
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => u.value.sceneCode = d),
614
614
  placeholder: "请输入/选择场景代码",
615
615
  "allow-create": "",
616
616
  filterable: ""
617
617
  }, {
618
618
  default: l(() => [
619
- (s(!0), O(P, null, W(U.value, (p) => (s(), c(m, {
620
- key: p,
621
- value: p,
622
- label: p
619
+ (i(!0), P($, null, q(A.value, (d) => (i(), m(f, {
620
+ key: d,
621
+ value: d,
622
+ label: d
623
623
  }, null, 8, ["value", "label"]))), 128))
624
624
  ]),
625
625
  _: 1
@@ -627,20 +627,20 @@ const de = [], te = {
627
627
  ]),
628
628
  _: 1
629
629
  }),
630
- e(_, {
630
+ e(b, {
631
631
  label: "入口名称",
632
632
  prop: "name"
633
633
  }, {
634
634
  default: l(() => [
635
- e(w, {
635
+ e(T, {
636
636
  placeholder: "请输入入口名称",
637
637
  modelValue: u.value.name,
638
- "onUpdate:modelValue": t[1] || (t[1] = (p) => u.value.name = p)
638
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => u.value.name = d)
639
639
  }, null, 8, ["modelValue"])
640
640
  ]),
641
641
  _: 1
642
642
  }),
643
- e(_, {
643
+ e(b, {
644
644
  label: "图标类型",
645
645
  prop: "iconType"
646
646
  }, {
@@ -648,14 +648,14 @@ const de = [], te = {
648
648
  e(y, {
649
649
  placeholder: "请选择图标类型",
650
650
  modelValue: u.value.iconType,
651
- "onUpdate:modelValue": t[2] || (t[2] = (p) => u.value.iconType = p)
651
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => u.value.iconType = d)
652
652
  }, {
653
653
  default: l(() => [
654
- e(m, {
654
+ e(f, {
655
655
  value: "NAME",
656
656
  label: "图标名称"
657
657
  }),
658
- e(m, {
658
+ e(f, {
659
659
  value: "URL",
660
660
  label: "图标URL"
661
661
  })
@@ -665,30 +665,30 @@ const de = [], te = {
665
665
  ]),
666
666
  _: 1
667
667
  }),
668
- e(_, {
668
+ e(b, {
669
669
  label: "图标",
670
670
  prop: "icon"
671
671
  }, {
672
672
  default: l(() => [
673
- u.value.iconType == "URL" ? (s(), c(H, {
673
+ u.value.iconType == "URL" ? (i(), m(R, {
674
674
  accept: "jpg,jpeg,png,gif",
675
675
  modelValue: u.value.icon,
676
- "onUpdate:modelValue": t[3] || (t[3] = (p) => u.value.icon = p),
677
- key: `img_${E.value}`,
676
+ "onUpdate:modelValue": t[3] || (t[3] = (d) => u.value.icon = d),
677
+ key: `img_${h.value}`,
678
678
  "list-type": "picture-card",
679
679
  "upload-type": "entrance",
680
680
  limit: 1
681
- }, null, 8, ["modelValue"])) : (s(), c(w, {
681
+ }, null, 8, ["modelValue"])) : (i(), m(T, {
682
682
  key: 1,
683
683
  modelValue: u.value.icon,
684
- "onUpdate:modelValue": t[4] || (t[4] = (p) => u.value.icon = p),
684
+ "onUpdate:modelValue": t[4] || (t[4] = (d) => u.value.icon = d),
685
685
  placeholder: "请输入图标名称",
686
686
  clearable: ""
687
687
  }, null, 8, ["modelValue"]))
688
688
  ]),
689
689
  _: 1
690
690
  }),
691
- e(_, {
691
+ e(b, {
692
692
  label: "点击事件类型",
693
693
  prop: "clickEventType"
694
694
  }, {
@@ -696,12 +696,12 @@ const de = [], te = {
696
696
  e(y, {
697
697
  placeholder: "请选择点击事件类型",
698
698
  modelValue: u.value.clickEventType,
699
- "onUpdate:modelValue": t[5] || (t[5] = (p) => u.value.clickEventType = p)
699
+ "onUpdate:modelValue": t[5] || (t[5] = (d) => u.value.clickEventType = d)
700
700
  }, {
701
701
  default: l(() => [
702
- (s(!0), O(P, null, W(B(ae), (p, A) => (s(), c(m, {
703
- value: A,
704
- label: p.name
702
+ (i(!0), P($, null, q(J(ne), (d, x) => (i(), m(f, {
703
+ value: x,
704
+ label: d.name
705
705
  }, null, 8, ["value", "label"]))), 256))
706
706
  ]),
707
707
  _: 1
@@ -709,48 +709,48 @@ const de = [], te = {
709
709
  ]),
710
710
  _: 1
711
711
  }),
712
- e(r, null, {
712
+ e(a, null, {
713
713
  default: l(() => [
714
- ["OPEN_WEB", "OPEN_VIEW", "API_REQUEST"].indexOf(u.value.clickEventType) >= 0 ? (s(), c(_, {
714
+ ["OPEN_WEB", "OPEN_VIEW", "API_REQUEST"].indexOf(u.value.clickEventType) >= 0 ? (i(), m(b, {
715
715
  key: 0,
716
716
  label: "目标地址",
717
717
  prop: "targetPath"
718
718
  }, {
719
719
  default: l(() => [
720
- e(w, {
720
+ e(T, {
721
721
  placeholder: "请输入目标地址",
722
722
  modelValue: u.value.targetPath,
723
- "onUpdate:modelValue": t[6] || (t[6] = (p) => u.value.targetPath = p)
723
+ "onUpdate:modelValue": t[6] || (t[6] = (d) => u.value.targetPath = d)
724
724
  }, null, 8, ["modelValue"])
725
725
  ]),
726
726
  _: 1
727
- })) : S("", !0)
727
+ })) : F("", !0)
728
728
  ]),
729
729
  _: 1
730
730
  }),
731
- e(_, {
731
+ e(b, {
732
732
  label: "目标地址参数",
733
733
  prop: "params"
734
734
  }, {
735
735
  default: l(() => [
736
- e(w, {
736
+ e(T, {
737
737
  type: "textarea",
738
738
  modelValue: u.value.params,
739
- "onUpdate:modelValue": t[7] || (t[7] = (p) => u.value.params = p),
739
+ "onUpdate:modelValue": t[7] || (t[7] = (d) => u.value.params = d),
740
740
  placeholder: "请输入JSON格式的参数对象"
741
741
  }, null, 8, ["modelValue"])
742
742
  ]),
743
743
  _: 1
744
744
  }),
745
- e(_, {
745
+ e(b, {
746
746
  label: "生效时段",
747
747
  prop: "shelfTimeArr"
748
748
  }, {
749
749
  default: l(() => [
750
- e(q, {
750
+ e(O, {
751
751
  type: "datetimerange",
752
752
  modelValue: u.value.shelfTimeArr,
753
- "onUpdate:modelValue": t[8] || (t[8] = (p) => u.value.shelfTimeArr = p),
753
+ "onUpdate:modelValue": t[8] || (t[8] = (d) => u.value.shelfTimeArr = d),
754
754
  "start-placeholder": "上架时间",
755
755
  "end-placeholder": "下架时间",
756
756
  "default-time": [new Date(2e3, 1, 1, 0, 0, 0), new Date(2e3, 1, 1, 23, 59, 59)]
@@ -766,114 +766,114 @@ const de = [], te = {
766
766
  }, 8, ["modelValue"]);
767
767
  };
768
768
  }
769
- }), _e = /* @__PURE__ */ Q({
769
+ }), fe = /* @__PURE__ */ G({
770
770
  __name: "EntranceListView",
771
- setup($) {
772
- const d = z("http"), f = b({
771
+ setup(B) {
772
+ const p = z("http"), _ = g({
773
773
  sceneCode: null,
774
774
  status: null
775
- }), g = b([]);
775
+ }), v = g([]);
776
776
  function u() {
777
- d == null || d.get("/api/app/entrance/all-scene-code").then((i) => {
778
- g.value = i.data;
777
+ p == null || p.get("/api/app/entrance/all-scene-code").then((r) => {
778
+ v.value = r.data;
779
779
  });
780
780
  }
781
- const V = b(), C = b(!1);
782
- function n() {
783
- C.value = !!f.value.sceneCode, V.value.search();
781
+ const k = g(), E = g(!1);
782
+ function s() {
783
+ E.value = !!_.value.sceneCode, k.value.search();
784
784
  }
785
- function N(i) {
786
- d == null || d.post(`/api/app/entrance/${i}/publish`).then((t) => {
787
- n();
785
+ function U(r) {
786
+ p == null || p.post(`/api/app/entrance/${r}/publish`).then((t) => {
787
+ s();
788
788
  });
789
789
  }
790
- function D(i) {
791
- d == null || d.post(`/api/app/entrance/${i}/off-shelf`).then((t) => {
792
- n();
790
+ function D(r) {
791
+ p == null || p.post(`/api/app/entrance/${r}/off-shelf`).then((t) => {
792
+ s();
793
793
  });
794
794
  }
795
- function U(i, t) {
796
- d == null || d.post(`/api/app/entrance/${i}/move-up`).then((m) => {
797
- f.value.sceneCode = t, n();
795
+ function A(r, t) {
796
+ p == null || p.post(`/api/app/entrance/${r}/move-up`).then((f) => {
797
+ _.value.sceneCode = t, s();
798
798
  });
799
799
  }
800
- function E(i, t) {
801
- d == null || d.post(`/api/app/entrance/${i}/move-down`).then((m) => {
802
- f.value.sceneCode = t, n();
800
+ function h(r, t) {
801
+ p == null || p.post(`/api/app/entrance/${r}/move-down`).then((f) => {
802
+ _.value.sceneCode = t, s();
803
803
  });
804
804
  }
805
- ee(() => {
805
+ le(() => {
806
806
  u();
807
807
  });
808
- const x = b();
809
- function I(i) {
810
- x.value.show(g.value, i);
808
+ const S = g();
809
+ function N(r) {
810
+ S.value.show(v.value, r);
811
811
  }
812
- return (i, t) => {
813
- const m = o("el-option"), y = o("el-select"), _ = o("el-button"), w = o("el-space"), H = o("el-card"), r = o("el-table-column"), q = o("el-image"), k = o("el-descriptions-item"), h = o("el-descriptions"), M = o("el-popover"), p = o("el-tag"), A = o("el-popconfirm"), L = o("pg-table"), J = X("permission");
814
- return s(), O(P, null, [
815
- e(H, null, {
812
+ return (r, t) => {
813
+ const f = o("el-option"), y = o("el-select"), b = o("el-button"), T = o("el-space"), R = o("el-card"), a = o("el-table-column"), O = o("el-image"), V = o("el-descriptions-item"), C = o("el-descriptions"), W = o("el-popover"), d = o("el-tag"), x = o("el-popconfirm"), H = o("pg-table"), M = X("permission");
814
+ return i(), P($, null, [
815
+ e(R, null, {
816
816
  default: l(() => [
817
- e(w, null, {
817
+ e(T, null, {
818
818
  default: l(() => [
819
819
  e(y, {
820
- modelValue: f.value.sceneCode,
821
- "onUpdate:modelValue": t[0] || (t[0] = (a) => f.value.sceneCode = a),
820
+ modelValue: _.value.sceneCode,
821
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => _.value.sceneCode = n),
822
822
  placeholder: "场景代码",
823
823
  clearable: ""
824
824
  }, {
825
825
  default: l(() => [
826
- (s(!0), O(P, null, W(g.value, (a, F) => (s(), c(m, {
827
- label: a,
828
- value: a,
829
- key: `sc_con_${F}`
826
+ (i(!0), P($, null, q(v.value, (n, L) => (i(), m(f, {
827
+ label: n,
828
+ value: n,
829
+ key: `sc_con_${L}`
830
830
  }, null, 8, ["label", "value"]))), 128))
831
831
  ]),
832
832
  _: 1
833
833
  }, 8, ["modelValue"]),
834
834
  e(y, {
835
- modelValue: f.value.status,
836
- "onUpdate:modelValue": t[1] || (t[1] = (a) => f.value.status = a),
835
+ modelValue: _.value.status,
836
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => _.value.status = n),
837
837
  placeholder: "状态",
838
838
  clearable: "",
839
839
  style: { width: "150px" }
840
840
  }, {
841
841
  default: l(() => [
842
- e(m, {
842
+ e(f, {
843
843
  label: "草稿",
844
844
  value: "DRAFT"
845
845
  }),
846
- e(m, {
846
+ e(f, {
847
847
  label: "已发布",
848
848
  value: "PUBLISH"
849
849
  }),
850
- e(m, {
850
+ e(f, {
851
851
  label: "已下架",
852
852
  value: "OFF_SHELF"
853
853
  })
854
854
  ]),
855
855
  _: 1
856
856
  }, 8, ["modelValue"]),
857
- e(_, {
857
+ e(b, {
858
858
  type: "primary",
859
859
  icon: "search",
860
- onClick: n
860
+ onClick: s
861
861
  }, {
862
862
  default: l(() => [
863
- v("搜索")
863
+ c("搜索")
864
864
  ]),
865
865
  _: 1
866
866
  }),
867
- G((s(), c(_, {
867
+ Y((i(), m(b, {
868
868
  icon: "plus",
869
- onClick: t[2] || (t[2] = (a) => I())
869
+ onClick: t[2] || (t[2] = (n) => N())
870
870
  }, {
871
871
  default: l(() => [
872
- v("创建入口")
872
+ c("创建入口")
873
873
  ]),
874
874
  _: 1
875
875
  })), [
876
- [J, "CREATE_ENTRANCE"]
876
+ [M, "CREATE_ENTRANCE"]
877
877
  ])
878
878
  ]),
879
879
  _: 1
@@ -881,229 +881,229 @@ const de = [], te = {
881
881
  ]),
882
882
  _: 1
883
883
  }),
884
- e(L, {
884
+ e(H, {
885
885
  ref_key: "table",
886
- ref: V,
886
+ ref: k,
887
887
  "data-url": "/api/app/entrance/page",
888
- onRowDbClick: t[3] || (t[3] = (a) => i.$hasPer("UPDATE_ENTRANCE") ? I(a) : null),
889
- condition: f.value,
888
+ onRowDbClick: t[3] || (t[3] = (n) => r.$hasPer("UPDATE_ENTRANCE") ? N(n) : null),
889
+ condition: _.value,
890
890
  style: { "margin-top": "10px" }
891
891
  }, {
892
892
  default: l(() => [
893
- C.value && i.$hasPer("ENTRANCE_SEQ_MOVE_UP_DOWN") ? (s(), c(r, {
893
+ E.value && r.$hasPer("ENTRANCE_SEQ_MOVE_UP_DOWN") ? (i(), m(a, {
894
894
  key: 0,
895
895
  align: "center",
896
896
  width: "80"
897
897
  }, {
898
- default: l(({ row: a }) => [
899
- e(w, { direction: "vertical" }, {
898
+ default: l(({ row: n }) => [
899
+ e(T, { direction: "vertical" }, {
900
900
  default: l(() => [
901
- e(_, {
901
+ e(b, {
902
902
  icon: "ArrowUpBold",
903
- onClick: (F) => U(a.id, a.sceneCode)
903
+ onClick: (L) => A(n.id, n.sceneCode)
904
904
  }, null, 8, ["onClick"]),
905
- e(_, {
905
+ e(b, {
906
906
  icon: "ArrowDownBold",
907
- onClick: (F) => E(a.id, a.sceneCode)
907
+ onClick: (L) => h(n.id, n.sceneCode)
908
908
  }, null, 8, ["onClick"])
909
909
  ]),
910
910
  _: 2
911
911
  }, 1024)
912
912
  ]),
913
913
  _: 1
914
- })) : S("", !0),
915
- e(r, {
914
+ })) : F("", !0),
915
+ e(a, {
916
916
  label: "场景代码",
917
917
  prop: "sceneCode",
918
918
  width: "150"
919
919
  }),
920
- e(r, {
920
+ e(a, {
921
921
  label: "图标",
922
922
  width: "200",
923
923
  align: "center"
924
924
  }, {
925
- default: l(({ row: a }) => [
926
- a.iconType == "URL" ? (s(), c(q, {
925
+ default: l(({ row: n }) => [
926
+ n.iconType == "URL" ? (i(), m(O, {
927
927
  key: 0,
928
- src: a.icon,
928
+ src: n.icon,
929
929
  style: { "max-width": "200px" },
930
- "preview-src-list": [a.icon],
930
+ "preview-src-list": [n.icon],
931
931
  "preview-teleported": ""
932
- }, null, 8, ["src", "preview-src-list"])) : (s(), O(P, { key: 1 }, [
933
- v(R(a.icon), 1)
932
+ }, null, 8, ["src", "preview-src-list"])) : (i(), P($, { key: 1 }, [
933
+ c(w(n.icon), 1)
934
934
  ], 64))
935
935
  ]),
936
936
  _: 1
937
937
  }),
938
- e(r, {
938
+ e(a, {
939
939
  label: "点击事件类型",
940
940
  prop: "clickEventType",
941
941
  width: "120"
942
942
  }, {
943
- default: l(({ row: a }) => [
944
- v(R(a.clickEventType ? B(ae)[a.clickEventType].name : ""), 1)
943
+ default: l(({ row: n }) => [
944
+ c(w(n.clickEventType ? J(ne)[n.clickEventType].name : ""), 1)
945
945
  ]),
946
946
  _: 1
947
947
  }),
948
- e(r, {
948
+ e(a, {
949
949
  label: "目标地址",
950
950
  prop: "targetPath",
951
951
  "show-overflow-tooltip": ""
952
952
  }),
953
- e(r, {
953
+ e(a, {
954
954
  label: "目标参数",
955
955
  width: "120",
956
956
  "show-overflow-tooltip": ""
957
957
  }, {
958
- default: l(({ row: a }) => [
959
- a.params ? (s(), c(M, {
958
+ default: l(({ row: n }) => [
959
+ n.params ? (i(), m(W, {
960
960
  key: 0,
961
961
  trigger: "hover",
962
962
  width: "350"
963
963
  }, {
964
964
  reference: l(() => [
965
- v(R(a.params.substring(0, 100)) + R(a.params.length > 100 ? "..." : ""), 1)
965
+ c(w(n.params.substring(0, 100)) + w(n.params.length > 100 ? "..." : ""), 1)
966
966
  ]),
967
967
  default: l(() => [
968
- a.params.startsWith("{") ? (s(), c(h, {
968
+ n.params.startsWith("{") ? (i(), m(C, {
969
969
  key: 0,
970
970
  column: "1",
971
971
  border: ""
972
972
  }, {
973
973
  default: l(() => [
974
- (s(!0), O(P, null, W(JSON.parse(a.params), (F, j) => (s(), c(k, {
975
- label: j,
974
+ (i(!0), P($, null, q(JSON.parse(n.params), (L, Q) => (i(), m(V, {
975
+ label: Q,
976
976
  "min-width": "150"
977
977
  }, {
978
978
  default: l(() => [
979
- v(R(F), 1)
979
+ c(w(L), 1)
980
980
  ]),
981
981
  _: 2
982
982
  }, 1032, ["label"]))), 256))
983
983
  ]),
984
984
  _: 2
985
- }, 1024)) : (s(), O(P, { key: 1 }, [
986
- v(R(a.params), 1)
985
+ }, 1024)) : (i(), P($, { key: 1 }, [
986
+ c(w(n.params), 1)
987
987
  ], 64))
988
988
  ]),
989
989
  _: 2
990
- }, 1024)) : S("", !0)
990
+ }, 1024)) : F("", !0)
991
991
  ]),
992
992
  _: 1
993
993
  }),
994
- e(r, {
994
+ e(a, {
995
995
  label: "上架时间",
996
996
  prop: "shelfTime",
997
997
  width: "180",
998
998
  align: "center"
999
999
  }),
1000
- e(r, {
1000
+ e(a, {
1001
1001
  label: "下架时间",
1002
1002
  prop: "offShelfTime",
1003
1003
  width: "180",
1004
1004
  align: "center"
1005
1005
  }),
1006
- e(r, {
1006
+ e(a, {
1007
1007
  label: "状态",
1008
1008
  align: "center",
1009
1009
  width: "88"
1010
1010
  }, {
1011
- default: l(({ row: a }) => [
1012
- a.status == "DRAFT" ? (s(), c(p, {
1011
+ default: l(({ row: n }) => [
1012
+ n.status == "DRAFT" ? (i(), m(d, {
1013
1013
  key: 0,
1014
1014
  type: "danger"
1015
1015
  }, {
1016
1016
  default: l(() => [
1017
- v("草稿")
1017
+ c("草稿")
1018
1018
  ]),
1019
1019
  _: 1
1020
- })) : S("", !0),
1021
- a.status == "PUBLISH" ? (s(), c(p, {
1020
+ })) : F("", !0),
1021
+ n.status == "PUBLISH" ? (i(), m(d, {
1022
1022
  key: 1,
1023
1023
  type: "success"
1024
1024
  }, {
1025
1025
  default: l(() => [
1026
- v("已发布")
1026
+ c("已发布")
1027
1027
  ]),
1028
1028
  _: 1
1029
- })) : S("", !0),
1030
- a.status == "OFF_SHELF" ? (s(), c(p, {
1029
+ })) : F("", !0),
1030
+ n.status == "OFF_SHELF" ? (i(), m(d, {
1031
1031
  key: 2,
1032
1032
  type: "warning"
1033
1033
  }, {
1034
1034
  default: l(() => [
1035
- v("已下架")
1035
+ c("已下架")
1036
1036
  ]),
1037
1037
  _: 1
1038
- })) : S("", !0)
1038
+ })) : F("", !0)
1039
1039
  ]),
1040
1040
  _: 1
1041
1041
  }),
1042
- e(r, {
1042
+ e(a, {
1043
1043
  align: "center",
1044
1044
  width: "90"
1045
1045
  }, {
1046
- default: l(({ row: a }) => [
1047
- ["DRAFT", "OFF_SHELF"].indexOf(a.status) >= 0 && i.$hasPer("ENTRANCE_PUBLISH") ? (s(), c(A, {
1046
+ default: l(({ row: n }) => [
1047
+ ["DRAFT", "OFF_SHELF"].indexOf(n.status) >= 0 && r.$hasPer("ENTRANCE_PUBLISH") ? (i(), m(x, {
1048
1048
  key: 0,
1049
- onConfirm: (F) => N(a.id),
1050
- title: `确定要${a.status == "DRAFT" ? "发布" : "上架"}该入口吗?`
1049
+ onConfirm: (L) => U(n.id),
1050
+ title: `确定要${n.status == "DRAFT" ? "发布" : "上架"}该入口吗?`
1051
1051
  }, {
1052
1052
  reference: l(() => [
1053
- e(_, { type: "success" }, {
1053
+ e(b, { type: "success" }, {
1054
1054
  default: l(() => [
1055
- v(R(a.status == "DRAFT" ? "发布" : "上架"), 1)
1055
+ c(w(n.status == "DRAFT" ? "发布" : "上架"), 1)
1056
1056
  ]),
1057
1057
  _: 2
1058
1058
  }, 1024)
1059
1059
  ]),
1060
1060
  _: 2
1061
- }, 1032, ["onConfirm", "title"])) : S("", !0),
1062
- a.status == "PUBLISH" && i.$hasPer("ENTRANCE_OFF_SHELF") ? (s(), c(A, {
1061
+ }, 1032, ["onConfirm", "title"])) : F("", !0),
1062
+ n.status == "PUBLISH" && r.$hasPer("ENTRANCE_OFF_SHELF") ? (i(), m(x, {
1063
1063
  key: 1,
1064
- onConfirm: (F) => D(a.id),
1064
+ onConfirm: (L) => D(n.id),
1065
1065
  title: "确定要[下架]该入口吗?"
1066
1066
  }, {
1067
1067
  reference: l(() => [
1068
- e(_, { type: "warning" }, {
1068
+ e(b, { type: "warning" }, {
1069
1069
  default: l(() => [
1070
- v("下架")
1070
+ c("下架")
1071
1071
  ]),
1072
1072
  _: 1
1073
1073
  })
1074
1074
  ]),
1075
1075
  _: 2
1076
- }, 1032, ["onConfirm"])) : S("", !0)
1076
+ }, 1032, ["onConfirm"])) : F("", !0)
1077
1077
  ]),
1078
1078
  _: 1
1079
1079
  })
1080
1080
  ]),
1081
1081
  _: 1
1082
1082
  }, 8, ["condition"]),
1083
- e(fe, {
1083
+ e(_e, {
1084
1084
  ref_key: "entranceDialog",
1085
- ref: x,
1086
- onSuccess: n
1085
+ ref: S,
1086
+ onSuccess: s
1087
1087
  }, null, 512)
1088
1088
  ], 64);
1089
1089
  };
1090
1090
  }
1091
1091
  }), oe = pe("pg-app-util-core-config-store", () => {
1092
- const $ = [];
1092
+ const B = [];
1093
1093
  return {
1094
- defaultTesterUserIds: le(() => $)
1094
+ defaultTesterUserIds: te(() => B)
1095
1095
  };
1096
1096
  });
1097
- const ve = ($, d) => {
1098
- const f = $.__vccOpts || $;
1099
- for (const [g, u] of d)
1100
- f[g] = u;
1101
- return f;
1097
+ const ve = (B, p) => {
1098
+ const _ = B.__vccOpts || B;
1099
+ for (const [v, u] of p)
1100
+ _[v] = u;
1101
+ return _;
1102
1102
  }, ge = { class: "dialog-footer" }, be = {
1103
1103
  __name: "VersionDialog",
1104
1104
  emits: ["success"],
1105
- setup($, { expose: d, emit: f }) {
1106
- const g = z("http"), u = b("CREATE"), V = le(() => u.value === "EDIT"), C = b(!1), n = b({
1105
+ setup(B, { expose: p, emit: _ }) {
1106
+ const v = z("http"), u = g("CREATE"), k = te(() => u.value === "EDIT"), E = g(!1), s = g({
1107
1107
  appCode: null,
1108
1108
  platform: "ANDROID",
1109
1109
  versionName: null,
@@ -1116,20 +1116,20 @@ const ve = ($, d) => {
1116
1116
  wgtUrl: null,
1117
1117
  description: null,
1118
1118
  testerIdJsonStr: ""
1119
- }), N = b(), D = oe();
1119
+ }), U = g(), D = oe();
1120
1120
  re(() => {
1121
- D.defaultTesterUserIds.length && (n.value.testerIdJsonStr = D.defaultTesterUserIds.join(","));
1121
+ D.defaultTesterUserIds.length && (s.value.testerIdJsonStr = D.defaultTesterUserIds.join(","));
1122
1122
  });
1123
- let U = null;
1124
- const E = b(!1);
1125
- async function x(k) {
1126
- C.value = !0, u.value = k ? "EDIT" : "CREATE", U = k, k && (E.value = k.status == "RELEASE", console.log(k.status), Object.assign(n.value, k), k.testerIdJsonStr && (n.value.testerIdJsonStr = JSON.parse(k.testerIdJsonStr).join(",")), N.value = k.isHot ? k.wgtUrl : k.pkgUrl), await q(), k && _(k.appCode);
1123
+ let A = null;
1124
+ const h = g(!1);
1125
+ async function S(V) {
1126
+ E.value = !0, u.value = V ? "EDIT" : "CREATE", A = V, V && (h.value = V.status == "RELEASE", console.log(V.status), Object.assign(s.value, V), V.testerIdJsonStr && (s.value.testerIdJsonStr = JSON.parse(V.testerIdJsonStr).join(",")), U.value = V.isHot ? V.wgtUrl : V.pkgUrl), await O(), V && b(V.appCode);
1127
1127
  }
1128
- function I(k) {
1129
- n.value.isHot ? n.value.wgtUrl = k.fileUrl : n.value.pkgUrl = k.fileUrl;
1128
+ function N(V) {
1129
+ s.value.isHot ? s.value.wgtUrl = V.fileUrl : s.value.pkgUrl = V.fileUrl;
1130
1130
  }
1131
- function i() {
1132
- n.value = {
1131
+ function r() {
1132
+ s.value = {
1133
1133
  appCode: null,
1134
1134
  platform: "ANDROID",
1135
1135
  versionName: null,
@@ -1143,54 +1143,54 @@ const ve = ($, d) => {
1143
1143
  };
1144
1144
  }
1145
1145
  function t() {
1146
- C.value = !C.value;
1146
+ E.value = !E.value;
1147
1147
  }
1148
- const m = b();
1148
+ const f = g();
1149
1149
  function y() {
1150
- m.value.validate((k) => {
1151
- k && (V.value ? g.post(`/api/app/version/${U.id}`, {
1152
- ...n.value,
1153
- testerIdJsonStr: n.value.testerIdJsonStr ? JSON.stringify(JSON.parse("[" + n.value.testerIdJsonStr + "]")) : null
1154
- }).then((h) => {
1155
- t(), f("success");
1156
- }) : g.post("/api/app/version", {
1157
- ...n.value,
1158
- testerIdJsonStr: n.value.testerIdJsonStr ? JSON.stringify(JSON.parse("[" + n.value.testerIdJsonStr + "]")) : null
1159
- }).then((h) => {
1160
- t(), f("success");
1150
+ f.value.validate((V) => {
1151
+ V && (k.value ? v.post(`/api/app/version/${A.id}`, {
1152
+ ...s.value,
1153
+ testerIdJsonStr: s.value.testerIdJsonStr ? JSON.stringify(JSON.parse("[" + s.value.testerIdJsonStr + "]")) : null
1154
+ }).then((C) => {
1155
+ t(), _("success");
1156
+ }) : v.post("/api/app/version", {
1157
+ ...s.value,
1158
+ testerIdJsonStr: s.value.testerIdJsonStr ? JSON.stringify(JSON.parse("[" + s.value.testerIdJsonStr + "]")) : null
1159
+ }).then((C) => {
1160
+ t(), _("success");
1161
1161
  }));
1162
1162
  });
1163
1163
  }
1164
- function _(k) {
1165
- r.value.find((M) => M.code === k).platform == "IOS" ? n.value.platform = "IOS" : n.value.platform = "ANDROID";
1164
+ function b(V) {
1165
+ a.value.find((W) => W.code === V).platform == "IOS" ? s.value.platform = "IOS" : s.value.platform = "ANDROID";
1166
1166
  }
1167
- const w = b();
1168
- function H() {
1169
- n.value.wgtUrl = null, n.value.pkgUrl = null, w.value && w.value.clearFileList();
1167
+ const T = g();
1168
+ function R() {
1169
+ s.value.wgtUrl = null, s.value.pkgUrl = null, T.value && T.value.clearFileList();
1170
1170
  }
1171
- const r = b([]);
1172
- async function q() {
1173
- if (r.value.length <= 0) {
1174
- const k = await g.get("/api/app/all");
1175
- r.value = k.data;
1171
+ const a = g([]);
1172
+ async function O() {
1173
+ if (a.value.length <= 0) {
1174
+ const V = await v.get("/api/app/all");
1175
+ a.value = V.data;
1176
1176
  }
1177
1177
  }
1178
- return d({
1179
- show: x
1180
- }), (k, h) => {
1181
- const M = o("el-option"), p = o("el-select"), A = o("el-form-item"), L = o("el-col"), J = o("el-row"), a = o("el-input"), F = o("el-date-picker"), j = o("el-checkbox"), ne = o("pg-upload"), ue = o("el-form"), K = o("el-button"), se = o("el-dialog");
1182
- return s(), c(se, {
1183
- title: B(V) ? "编辑App版本" : "发布App版本",
1184
- modelValue: C.value,
1185
- "onUpdate:modelValue": h[10] || (h[10] = (T) => C.value = T),
1178
+ return p({
1179
+ show: S
1180
+ }), (V, C) => {
1181
+ const W = o("el-option"), d = o("el-select"), x = o("el-form-item"), H = o("el-col"), M = o("el-row"), n = o("el-input"), L = o("el-date-picker"), Q = o("el-checkbox"), ue = o("pg-upload"), se = o("el-form"), K = o("el-button"), ie = o("el-dialog");
1182
+ return i(), m(ie, {
1183
+ title: J(k) ? "编辑App版本" : "发布App版本",
1184
+ modelValue: E.value,
1185
+ "onUpdate:modelValue": C[10] || (C[10] = (I) => E.value = I),
1186
1186
  width: "700px",
1187
- onClosed: i
1187
+ onClosed: r
1188
1188
  }, {
1189
1189
  footer: l(() => [
1190
- ie("div", ge, [
1190
+ j("div", ge, [
1191
1191
  e(K, { onClick: t }, {
1192
1192
  default: l(() => [
1193
- v("取 消")
1193
+ c("取 消")
1194
1194
  ]),
1195
1195
  _: 1
1196
1196
  }),
@@ -1199,43 +1199,43 @@ const ve = ($, d) => {
1199
1199
  onClick: y
1200
1200
  }, {
1201
1201
  default: l(() => [
1202
- v(R(B(V) ? "提 交" : "创 建"), 1)
1202
+ c(w(J(k) ? "提 交" : "创 建"), 1)
1203
1203
  ]),
1204
1204
  _: 1
1205
1205
  })
1206
1206
  ])
1207
1207
  ]),
1208
1208
  default: l(() => [
1209
- e(ue, {
1210
- model: n.value,
1209
+ e(se, {
1210
+ model: s.value,
1211
1211
  ref_key: "publishModalForm",
1212
- ref: m
1212
+ ref: f
1213
1213
  }, {
1214
1214
  default: l(() => [
1215
- e(J, null, {
1215
+ e(M, null, {
1216
1216
  default: l(() => [
1217
- e(L, { span: 24 }, {
1217
+ e(H, { span: 24 }, {
1218
1218
  default: l(() => [
1219
- e(A, {
1219
+ e(x, {
1220
1220
  label: "应用",
1221
1221
  "label-width": "100px",
1222
1222
  prop: "appCode",
1223
1223
  rules: [{ required: !0, message: "请选择应用", trigger: "blur" }]
1224
1224
  }, {
1225
1225
  default: l(() => [
1226
- e(p, {
1227
- modelValue: n.value.appCode,
1228
- "onUpdate:modelValue": h[0] || (h[0] = (T) => n.value.appCode = T),
1229
- disabled: B(V) && E.value,
1226
+ e(d, {
1227
+ modelValue: s.value.appCode,
1228
+ "onUpdate:modelValue": C[0] || (C[0] = (I) => s.value.appCode = I),
1229
+ disabled: J(k) && h.value,
1230
1230
  placeholder: "请选择要发布的平台",
1231
1231
  style: { width: "100%" },
1232
- onChange: _
1232
+ onChange: b
1233
1233
  }, {
1234
1234
  default: l(() => [
1235
- (s(!0), O(P, null, W(r.value, (T) => (s(), c(M, {
1236
- key: T.code,
1237
- label: T.name,
1238
- value: T.code
1235
+ (i(!0), P($, null, q(a.value, (I) => (i(), m(W, {
1236
+ key: I.code,
1237
+ label: I.name,
1238
+ value: I.code
1239
1239
  }, null, 8, ["label", "value"]))), 128))
1240
1240
  ]),
1241
1241
  _: 1
@@ -1249,21 +1249,21 @@ const ve = ($, d) => {
1249
1249
  ]),
1250
1250
  _: 1
1251
1251
  }),
1252
- e(J, null, {
1252
+ e(M, null, {
1253
1253
  default: l(() => [
1254
- e(L, { span: 12 }, {
1254
+ e(H, { span: 12 }, {
1255
1255
  default: l(() => [
1256
- e(A, {
1256
+ e(x, {
1257
1257
  label: "版本名称",
1258
1258
  "label-width": "100px",
1259
1259
  prop: "versionName",
1260
1260
  rules: [{ required: !0, message: "请输入版本名称", trigger: "blur" }]
1261
1261
  }, {
1262
1262
  default: l(() => [
1263
- e(a, {
1264
- modelValue: n.value.versionName,
1265
- "onUpdate:modelValue": h[1] || (h[1] = (T) => n.value.versionName = T),
1266
- disabled: B(V) && E.value,
1263
+ e(n, {
1264
+ modelValue: s.value.versionName,
1265
+ "onUpdate:modelValue": C[1] || (C[1] = (I) => s.value.versionName = I),
1266
+ disabled: J(k) && h.value,
1267
1267
  placeholder: "例: 1.1.2"
1268
1268
  }, null, 8, ["modelValue", "disabled"])
1269
1269
  ]),
@@ -1272,19 +1272,19 @@ const ve = ($, d) => {
1272
1272
  ]),
1273
1273
  _: 1
1274
1274
  }),
1275
- e(L, { span: 12 }, {
1275
+ e(H, { span: 12 }, {
1276
1276
  default: l(() => [
1277
- e(A, {
1277
+ e(x, {
1278
1278
  label: "版本编号",
1279
1279
  "label-width": "100px",
1280
1280
  prop: "versionNumber",
1281
1281
  rules: [{ required: !0, message: "请输入版本编号", trigger: "blur" }]
1282
1282
  }, {
1283
1283
  default: l(() => [
1284
- e(a, {
1285
- modelValue: n.value.versionNumber,
1286
- "onUpdate:modelValue": h[2] || (h[2] = (T) => n.value.versionNumber = T),
1287
- disabled: B(V) && E.value,
1284
+ e(n, {
1285
+ modelValue: s.value.versionNumber,
1286
+ "onUpdate:modelValue": C[2] || (C[2] = (I) => s.value.versionNumber = I),
1287
+ disabled: J(k) && h.value,
1288
1288
  type: "number",
1289
1289
  min: "1",
1290
1290
  placeholder: "例: 112"
@@ -1298,21 +1298,21 @@ const ve = ($, d) => {
1298
1298
  ]),
1299
1299
  _: 1
1300
1300
  }),
1301
- e(J, null, {
1301
+ e(M, null, {
1302
1302
  default: l(() => [
1303
- e(L, { span: 12 }, {
1303
+ e(H, { span: 12 }, {
1304
1304
  default: l(() => [
1305
- e(A, {
1305
+ e(x, {
1306
1306
  label: "启用时间",
1307
1307
  "label-width": "100px"
1308
1308
  }, {
1309
1309
  default: l(() => [
1310
- e(F, {
1311
- modelValue: n.value.activationTime,
1312
- "onUpdate:modelValue": h[3] || (h[3] = (T) => n.value.activationTime = T),
1310
+ e(L, {
1311
+ modelValue: s.value.activationTime,
1312
+ "onUpdate:modelValue": C[3] || (C[3] = (I) => s.value.activationTime = I),
1313
1313
  type: "datetime",
1314
1314
  placeholder: "选择启用时间",
1315
- disabled: B(V) && E.value
1315
+ disabled: J(k) && h.value
1316
1316
  }, null, 8, ["modelValue", "disabled"])
1317
1317
  ]),
1318
1318
  _: 1
@@ -1323,20 +1323,20 @@ const ve = ($, d) => {
1323
1323
  ]),
1324
1324
  _: 1
1325
1325
  }),
1326
- e(J, null, {
1326
+ e(M, null, {
1327
1327
  default: l(() => [
1328
- e(L, { span: 12 }, {
1328
+ e(H, { span: 12 }, {
1329
1329
  default: l(() => [
1330
- e(A, {
1330
+ e(x, {
1331
1331
  label: "是否热更新",
1332
1332
  "label-width": "100px"
1333
1333
  }, {
1334
1334
  default: l(() => [
1335
- e(j, {
1336
- modelValue: n.value.isHot,
1337
- "onUpdate:modelValue": h[4] || (h[4] = (T) => n.value.isHot = T),
1338
- onChange: H,
1339
- disabled: B(V) && E.value
1335
+ e(Q, {
1336
+ modelValue: s.value.isHot,
1337
+ "onUpdate:modelValue": C[4] || (C[4] = (I) => s.value.isHot = I),
1338
+ onChange: R,
1339
+ disabled: J(k) && h.value
1340
1340
  }, null, 8, ["modelValue", "disabled"])
1341
1341
  ]),
1342
1342
  _: 1
@@ -1344,18 +1344,18 @@ const ve = ($, d) => {
1344
1344
  ]),
1345
1345
  _: 1
1346
1346
  }),
1347
- e(L, { span: 12 }, {
1347
+ e(H, { span: 12 }, {
1348
1348
  default: l(() => [
1349
- e(A, {
1349
+ e(x, {
1350
1350
  label: "是否强制",
1351
1351
  "label-width": "100px"
1352
1352
  }, {
1353
1353
  default: l(() => [
1354
- e(j, {
1355
- modelValue: n.value.isForce,
1356
- "onUpdate:modelValue": h[5] || (h[5] = (T) => n.value.isForce = T),
1354
+ e(Q, {
1355
+ modelValue: s.value.isForce,
1356
+ "onUpdate:modelValue": C[5] || (C[5] = (I) => s.value.isForce = I),
1357
1357
  placeholder: "请选择是否强制",
1358
- disabled: B(V) && E.value
1358
+ disabled: J(k) && h.value
1359
1359
  }, null, 8, ["modelValue", "disabled"])
1360
1360
  ]),
1361
1361
  _: 1
@@ -1366,20 +1366,20 @@ const ve = ($, d) => {
1366
1366
  ]),
1367
1367
  _: 1
1368
1368
  }),
1369
- n.value.category == "APP_STORE" ? (s(), c(J, { key: 0 }, {
1369
+ s.value.category == "APP_STORE" ? (i(), m(M, { key: 0 }, {
1370
1370
  default: l(() => [
1371
- e(L, { span: 24 }, {
1371
+ e(H, { span: 24 }, {
1372
1372
  default: l(() => [
1373
- e(A, {
1373
+ e(x, {
1374
1374
  label: "市场地址",
1375
1375
  "label-width": "100px",
1376
1376
  prop: "pkgUrl",
1377
1377
  rules: [{ required: !0, message: "应用市场地址", trigger: "blur" }]
1378
1378
  }, {
1379
1379
  default: l(() => [
1380
- e(a, {
1381
- modelValue: n.value.pkgUrl,
1382
- "onUpdate:modelValue": h[6] || (h[6] = (T) => n.value.pkgUrl = T),
1380
+ e(n, {
1381
+ modelValue: s.value.pkgUrl,
1382
+ "onUpdate:modelValue": C[6] || (C[6] = (I) => s.value.pkgUrl = I),
1383
1383
  placeholder: "应用市场地址"
1384
1384
  }, null, 8, ["modelValue"])
1385
1385
  ]),
@@ -1390,22 +1390,22 @@ const ve = ($, d) => {
1390
1390
  })
1391
1391
  ]),
1392
1392
  _: 1
1393
- })) : S("", !0),
1394
- e(J, null, {
1393
+ })) : F("", !0),
1394
+ e(M, null, {
1395
1395
  default: l(() => [
1396
- e(L, { span: 24 }, {
1396
+ e(H, { span: 24 }, {
1397
1397
  default: l(() => [
1398
- e(A, {
1398
+ e(x, {
1399
1399
  label: "版本描述",
1400
1400
  "label-width": "100px",
1401
1401
  prop: "description",
1402
1402
  rules: [{ required: !0, message: "请输入版本描述", trigger: "blur" }]
1403
1403
  }, {
1404
1404
  default: l(() => [
1405
- e(a, {
1405
+ e(n, {
1406
1406
  type: "textarea",
1407
- modelValue: n.value.description,
1408
- "onUpdate:modelValue": h[7] || (h[7] = (T) => n.value.description = T),
1407
+ modelValue: s.value.description,
1408
+ "onUpdate:modelValue": C[7] || (C[7] = (I) => s.value.description = I),
1409
1409
  autosize: { minRows: 4 },
1410
1410
  placeholder: "请输入版本描述"
1411
1411
  }, null, 8, ["modelValue"])
@@ -1418,20 +1418,20 @@ const ve = ($, d) => {
1418
1418
  ]),
1419
1419
  _: 1
1420
1420
  }),
1421
- B(V) && E.value ? S("", !0) : (s(), c(J, { key: 1 }, {
1421
+ J(k) && h.value ? F("", !0) : (i(), m(M, { key: 1 }, {
1422
1422
  default: l(() => [
1423
- e(L, { span: 24 }, {
1423
+ e(H, { span: 24 }, {
1424
1424
  default: l(() => [
1425
- e(A, {
1425
+ e(x, {
1426
1426
  label: "测试用户",
1427
1427
  "label-width": "100px",
1428
1428
  prop: "testerIdJsonStr"
1429
1429
  }, {
1430
1430
  default: l(() => [
1431
- e(a, {
1431
+ e(n, {
1432
1432
  type: "textarea",
1433
- modelValue: n.value.testerIdJsonStr,
1434
- "onUpdate:modelValue": h[8] || (h[8] = (T) => n.value.testerIdJsonStr = T),
1433
+ modelValue: s.value.testerIdJsonStr,
1434
+ "onUpdate:modelValue": C[8] || (C[8] = (I) => s.value.testerIdJsonStr = I),
1435
1435
  autosize: { minRows: 4 },
1436
1436
  placeholder: "请输入测试用户ID。 例子: 10000, 100202, 100203"
1437
1437
  }, null, 8, ["modelValue"])
@@ -1444,29 +1444,29 @@ const ve = ($, d) => {
1444
1444
  ]),
1445
1445
  _: 1
1446
1446
  })),
1447
- n.value.platform == "ANDROID" || n.value.platform == "IOS" && n.value.isHot ? (s(), c(J, { key: 2 }, {
1447
+ s.value.platform == "ANDROID" || s.value.platform == "IOS" && s.value.isHot ? (i(), m(M, { key: 2 }, {
1448
1448
  default: l(() => [
1449
- e(L, { span: 24 }, {
1449
+ e(H, { span: 24 }, {
1450
1450
  default: l(() => [
1451
- e(A, {
1452
- label: n.value.isHot ? "上传更新包" : "上传安装包",
1451
+ e(x, {
1452
+ label: s.value.isHot ? "上传更新包" : "上传安装包",
1453
1453
  "label-width": "100px",
1454
1454
  rules: [{ required: !0, message: "请上传更新包", trigger: "blur" }]
1455
1455
  }, {
1456
1456
  default: l(() => [
1457
- e(ne, {
1457
+ e(ue, {
1458
1458
  ref_key: "appPkgUploader",
1459
- ref: w,
1460
- modelValue: N.value,
1461
- "onUpdate:modelValue": h[9] || (h[9] = (T) => N.value = T),
1459
+ ref: T,
1460
+ modelValue: U.value,
1461
+ "onUpdate:modelValue": C[9] || (C[9] = (I) => U.value = I),
1462
1462
  drag: !0,
1463
1463
  multiple: !1,
1464
1464
  tips: "热更新下只能上传wgt格式的文件,非热更新下只能上传apk格式的文件",
1465
1465
  autoUpload: !0,
1466
1466
  uploadType: "appPkg",
1467
- accept: n.value.isHot ? ".wgt" : "application/vnd.android.package-archive",
1468
- disabled: B(V) && E.value,
1469
- onOnSuccess: I
1467
+ accept: s.value.isHot ? ".wgt" : "application/vnd.android.package-archive",
1468
+ disabled: J(k) && h.value,
1469
+ onOnSuccess: N
1470
1470
  }, null, 8, ["modelValue", "accept", "disabled"])
1471
1471
  ]),
1472
1472
  _: 1
@@ -1476,7 +1476,7 @@ const ve = ($, d) => {
1476
1476
  })
1477
1477
  ]),
1478
1478
  _: 1
1479
- })) : S("", !0)
1479
+ })) : F("", !0)
1480
1480
  ]),
1481
1481
  _: 1
1482
1482
  }, 8, ["model"])
@@ -1485,96 +1485,96 @@ const ve = ($, d) => {
1485
1485
  }, 8, ["title", "modelValue"]);
1486
1486
  };
1487
1487
  }
1488
- }, he = /* @__PURE__ */ ve(be, [["__scopeId", "data-v-02170750"]]), ye = {
1488
+ }, ye = /* @__PURE__ */ ve(be, [["__scopeId", "data-v-02170750"]]), he = {
1489
1489
  __name: "VersionListView",
1490
- setup($) {
1491
- const d = b({
1490
+ setup(B) {
1491
+ const p = g({
1492
1492
  platform: null,
1493
1493
  isHot: null,
1494
1494
  status: null
1495
- }), f = z("http"), g = b();
1495
+ }), _ = z("http"), v = g();
1496
1496
  function u() {
1497
- g.value.search();
1497
+ v.value.search();
1498
1498
  }
1499
- const V = b();
1500
- function C(D) {
1501
- V.value.show(D);
1499
+ const k = g();
1500
+ function E(D) {
1501
+ k.value.show(D);
1502
1502
  }
1503
- async function n(D) {
1504
- await f.post(`/api/app/version/${D}/publish`), u(), Y.success("发布成功");
1503
+ async function s(D) {
1504
+ await _.post(`/api/app/version/${D}/publish`), u(), Z.success("发布成功");
1505
1505
  }
1506
- async function N(D) {
1507
- await f.post(`/api/app/version/${D}/offline`), u(), Y.success("下架成功");
1506
+ async function U(D) {
1507
+ await _.post(`/api/app/version/${D}/offline`), u(), Z.success("下架成功");
1508
1508
  }
1509
- return (D, U) => {
1510
- const E = o("el-option"), x = o("el-select"), I = o("el-button"), i = o("el-space"), t = o("el-card"), m = o("el-table-column"), y = o("el-tag"), _ = o("el-popconfirm"), w = o("pg-table"), H = X("permission");
1511
- return s(), O(P, null, [
1509
+ return (D, A) => {
1510
+ const h = o("el-option"), S = o("el-select"), N = o("el-button"), r = o("el-space"), t = o("el-card"), f = o("el-table-column"), y = o("el-tag"), b = o("el-popconfirm"), T = o("pg-table"), R = X("permission");
1511
+ return i(), P($, null, [
1512
1512
  e(t, null, {
1513
1513
  default: l(() => [
1514
- e(i, null, {
1514
+ e(r, null, {
1515
1515
  default: l(() => [
1516
- e(x, {
1517
- modelValue: d.value.isHot,
1518
- "onUpdate:modelValue": U[0] || (U[0] = (r) => d.value.isHot = r),
1516
+ e(S, {
1517
+ modelValue: p.value.isHot,
1518
+ "onUpdate:modelValue": A[0] || (A[0] = (a) => p.value.isHot = a),
1519
1519
  placeholder: "热更新/整包更新",
1520
1520
  style: { width: "180px" },
1521
1521
  clearable: ""
1522
1522
  }, {
1523
1523
  default: l(() => [
1524
- e(E, {
1524
+ e(h, {
1525
1525
  label: "热更新",
1526
1526
  value: "true"
1527
1527
  }),
1528
- e(E, {
1528
+ e(h, {
1529
1529
  label: "整包更新",
1530
1530
  value: "false"
1531
1531
  })
1532
1532
  ]),
1533
1533
  _: 1
1534
1534
  }, 8, ["modelValue"]),
1535
- e(x, {
1536
- modelValue: d.value.status,
1537
- "onUpdate:modelValue": U[1] || (U[1] = (r) => d.value.status = r),
1535
+ e(S, {
1536
+ modelValue: p.value.status,
1537
+ "onUpdate:modelValue": A[1] || (A[1] = (a) => p.value.status = a),
1538
1538
  placeholder: "状态",
1539
1539
  style: { width: "120px" },
1540
1540
  clearable: ""
1541
1541
  }, {
1542
1542
  default: l(() => [
1543
- e(E, {
1543
+ e(h, {
1544
1544
  label: "测试",
1545
1545
  value: "TEST"
1546
1546
  }),
1547
- e(E, {
1547
+ e(h, {
1548
1548
  label: "发布",
1549
1549
  value: "RELEASE"
1550
1550
  }),
1551
- e(E, {
1551
+ e(h, {
1552
1552
  label: "下架",
1553
1553
  value: "OFFLINE"
1554
1554
  })
1555
1555
  ]),
1556
1556
  _: 1
1557
1557
  }, 8, ["modelValue"]),
1558
- e(I, {
1558
+ e(N, {
1559
1559
  type: "primary",
1560
1560
  icon: "search",
1561
1561
  onClick: u
1562
1562
  }, {
1563
1563
  default: l(() => [
1564
- v("搜索")
1564
+ c("搜索")
1565
1565
  ]),
1566
1566
  _: 1
1567
1567
  }),
1568
- G((s(), c(I, {
1568
+ Y((i(), m(N, {
1569
1569
  icon: "plus",
1570
- onClick: U[2] || (U[2] = (r) => C())
1570
+ onClick: A[2] || (A[2] = (a) => E())
1571
1571
  }, {
1572
1572
  default: l(() => [
1573
- v("新建版本")
1573
+ c("新建版本")
1574
1574
  ]),
1575
1575
  _: 1
1576
1576
  })), [
1577
- [H, "CREATE_BANNER"]
1577
+ [R, "CREATE_BANNER"]
1578
1578
  ])
1579
1579
  ]),
1580
1580
  _: 1
@@ -1582,239 +1582,556 @@ const ve = ($, d) => {
1582
1582
  ]),
1583
1583
  _: 1
1584
1584
  }),
1585
- e(w, {
1585
+ e(T, {
1586
1586
  ref_key: "table",
1587
- ref: g,
1587
+ ref: v,
1588
1588
  "data-url": "/api/app/version/page-search",
1589
- onRowDbClick: U[3] || (U[3] = (r) => C(r)),
1590
- condition: d.value,
1589
+ onRowDbClick: A[3] || (A[3] = (a) => E(a)),
1590
+ condition: p.value,
1591
1591
  style: { "margin-top": "10px" }
1592
1592
  }, {
1593
1593
  default: l(() => [
1594
- e(m, {
1594
+ e(f, {
1595
1595
  label: "ID",
1596
1596
  prop: "id",
1597
1597
  align: "center",
1598
1598
  width: "60px"
1599
1599
  }),
1600
- e(m, {
1600
+ e(f, {
1601
1601
  label: "应用",
1602
1602
  prop: "appName",
1603
1603
  align: "center",
1604
1604
  width: "120px",
1605
1605
  "show-overflow-tooltip": ""
1606
1606
  }),
1607
- e(m, {
1607
+ e(f, {
1608
1608
  label: "应用平台",
1609
1609
  prop: "appPlatform",
1610
1610
  align: "center",
1611
1611
  width: "100px",
1612
1612
  "show-overflow-tooltip": ""
1613
1613
  }),
1614
- e(m, {
1614
+ e(f, {
1615
1615
  label: "版本名称",
1616
1616
  prop: "versionName",
1617
1617
  align: "center",
1618
1618
  width: "90",
1619
1619
  "show-overflow-tooltip": ""
1620
1620
  }),
1621
- e(m, {
1621
+ e(f, {
1622
1622
  label: "版本编号",
1623
1623
  prop: "versionNumber",
1624
1624
  align: "center",
1625
1625
  width: "90",
1626
1626
  "show-overflow-tooltip": ""
1627
1627
  }),
1628
- e(m, {
1628
+ e(f, {
1629
1629
  label: "强制更新",
1630
1630
  prop: "isForce",
1631
1631
  align: "center",
1632
1632
  width: "90",
1633
1633
  "show-overflow-tooltip": ""
1634
1634
  }, {
1635
- default: l(({ row: r }) => [
1636
- r.isForce ? (s(), c(y, {
1635
+ default: l(({ row: a }) => [
1636
+ a.isForce ? (i(), m(y, {
1637
1637
  key: 0,
1638
1638
  type: "warning",
1639
1639
  size: "small"
1640
1640
  }, {
1641
1641
  default: l(() => [
1642
- v("是")
1642
+ c("是")
1643
1643
  ]),
1644
1644
  _: 1
1645
- })) : (s(), c(y, {
1645
+ })) : (i(), m(y, {
1646
1646
  key: 1,
1647
1647
  type: "primary",
1648
1648
  size: "small"
1649
1649
  }, {
1650
1650
  default: l(() => [
1651
- v("否")
1651
+ c("否")
1652
1652
  ]),
1653
1653
  _: 1
1654
1654
  }))
1655
1655
  ]),
1656
1656
  _: 1
1657
1657
  }),
1658
- e(m, {
1658
+ e(f, {
1659
1659
  label: "整包更新",
1660
1660
  prop: "isHot",
1661
1661
  align: "center",
1662
1662
  width: "90",
1663
1663
  "show-overflow-tooltip": ""
1664
1664
  }, {
1665
- default: l(({ row: r }) => [
1666
- r.isHot ? (s(), c(y, {
1665
+ default: l(({ row: a }) => [
1666
+ a.isHot ? (i(), m(y, {
1667
1667
  key: 0,
1668
1668
  type: "warning",
1669
1669
  size: "small"
1670
1670
  }, {
1671
1671
  default: l(() => [
1672
- v("否")
1672
+ c("否")
1673
1673
  ]),
1674
1674
  _: 1
1675
- })) : (s(), c(y, {
1675
+ })) : (i(), m(y, {
1676
1676
  key: 1,
1677
1677
  type: "primary",
1678
1678
  size: "small"
1679
1679
  }, {
1680
1680
  default: l(() => [
1681
- v("是")
1681
+ c("是")
1682
1682
  ]),
1683
1683
  _: 1
1684
1684
  }))
1685
1685
  ]),
1686
1686
  _: 1
1687
1687
  }),
1688
- e(m, {
1688
+ e(f, {
1689
1689
  label: "启用时间",
1690
1690
  width: "150px",
1691
1691
  prop: "activationTime",
1692
1692
  align: "center",
1693
1693
  "show-overflow-tooltip": ""
1694
1694
  }),
1695
- e(m, {
1695
+ e(f, {
1696
1696
  label: "状态",
1697
1697
  width: "100",
1698
1698
  align: "center"
1699
1699
  }, {
1700
- default: l(({ row: r }) => [
1700
+ default: l(({ row: a }) => [
1701
1701
  e(y, {
1702
- type: r.status == "RELEASE" ? "success" : r.status == "OFFLINE" ? "danger" : "warning"
1702
+ type: a.status == "RELEASE" ? "success" : a.status == "OFFLINE" ? "danger" : "warning"
1703
1703
  }, {
1704
1704
  default: l(() => [
1705
- v(R(r.status == "RELEASE" ? "发布" : r.status == "OFFLINE" ? "下线" : "测试"), 1)
1705
+ c(w(a.status == "RELEASE" ? "发布" : a.status == "OFFLINE" ? "下线" : "测试"), 1)
1706
1706
  ]),
1707
1707
  _: 2
1708
1708
  }, 1032, ["type"])
1709
1709
  ]),
1710
1710
  _: 1
1711
1711
  }),
1712
- e(m, {
1712
+ e(f, {
1713
1713
  label: "安装包/更新包地址",
1714
1714
  prop: "pkgUrl",
1715
1715
  align: "center",
1716
1716
  "show-overflow-tooltip": ""
1717
1717
  }, {
1718
- default: l(({ row: r }) => [
1719
- v(R(r.isHot ? r.wgtUrl : r.pkgUrl), 1)
1718
+ default: l(({ row: a }) => [
1719
+ c(w(a.isHot ? a.wgtUrl : a.pkgUrl), 1)
1720
1720
  ]),
1721
1721
  _: 1
1722
1722
  }),
1723
- e(m, {
1723
+ e(f, {
1724
1724
  label: "操作",
1725
1725
  align: "center",
1726
1726
  width: "160px"
1727
1727
  }, {
1728
- default: l(({ row: r }) => [
1729
- r.status == "RELEASE" ? (s(), c(_, {
1728
+ default: l(({ row: a }) => [
1729
+ a.status == "RELEASE" ? (i(), m(b, {
1730
1730
  key: 0,
1731
- title: `确定下架版本[${r.versionName}]吗?`,
1732
- onConfirm: (q) => N(r.id)
1731
+ title: `确定下架版本[${a.versionName}]吗?`,
1732
+ onConfirm: (O) => U(a.id)
1733
1733
  }, {
1734
1734
  reference: l(() => [
1735
- e(I, { type: "danger" }, {
1735
+ e(N, { type: "danger" }, {
1736
1736
  default: l(() => [
1737
- v("下架")
1737
+ c("下架")
1738
1738
  ]),
1739
1739
  _: 1
1740
1740
  })
1741
1741
  ]),
1742
1742
  _: 2
1743
- }, 1032, ["title", "onConfirm"])) : S("", !0),
1744
- r.status == "TEST" || r.status == "OFFLINE" ? (s(), c(_, {
1743
+ }, 1032, ["title", "onConfirm"])) : F("", !0),
1744
+ a.status == "TEST" || a.status == "OFFLINE" ? (i(), m(b, {
1745
1745
  key: 1,
1746
1746
  title: "是否确定发布该版本?",
1747
- onConfirm: (q) => n(r.id)
1747
+ onConfirm: (O) => s(a.id)
1748
1748
  }, {
1749
1749
  reference: l(() => [
1750
- e(I, { type: "success" }, {
1750
+ e(N, { type: "success" }, {
1751
1751
  default: l(() => [
1752
- v("发布")
1752
+ c("发布")
1753
1753
  ]),
1754
1754
  _: 1
1755
1755
  })
1756
1756
  ]),
1757
1757
  _: 2
1758
- }, 1032, ["onConfirm"])) : S("", !0)
1758
+ }, 1032, ["onConfirm"])) : F("", !0)
1759
1759
  ]),
1760
1760
  _: 1
1761
1761
  })
1762
1762
  ]),
1763
1763
  _: 1
1764
1764
  }, 8, ["condition"]),
1765
- e(he, {
1765
+ e(ye, {
1766
1766
  ref_key: "versionDiloag",
1767
- ref: V,
1767
+ ref: k,
1768
1768
  onSuccess: u
1769
1769
  }, null, 512)
1770
1770
  ], 64);
1771
1771
  };
1772
1772
  }
1773
- }, Ee = {
1774
- install: ($, d) => {
1775
- let f = d.router, g = f.getRoutes().find((u) => u.path == "/");
1776
- g && g.meta && (f.addRoute({
1773
+ }, ke = { style: { display: "flex", "flex-direction": "column" } }, Ee = { style: { display: "flex", gap: "5px", "margin-top": "10px" } }, Ve = {
1774
+ __name: "FeedbackDialog",
1775
+ emits: ["success"],
1776
+ setup(B, { expose: p, emit: _ }) {
1777
+ const v = z("http"), u = g(!1), k = g(null), E = g({
1778
+ replyContent: null
1779
+ }), s = {
1780
+ replyContent: {
1781
+ required: !0,
1782
+ message: "请输入回复内容"
1783
+ }
1784
+ };
1785
+ function U(S) {
1786
+ k.value = S, E.value.replyContent = S.replyContent, u.value = !0;
1787
+ }
1788
+ const D = g();
1789
+ function A() {
1790
+ var S;
1791
+ (S = D.value) == null || S.validate((N) => {
1792
+ N && v.post(`/api/feedback/${k.value.id}/reply`, {
1793
+ content: E.value.replyContent
1794
+ }).then((r) => {
1795
+ var t;
1796
+ _("success"), (t = D.value) == null || t.resetFields(), u.value = !1;
1797
+ });
1798
+ });
1799
+ }
1800
+ function h() {
1801
+ E.value.replyContent = null;
1802
+ }
1803
+ return p({
1804
+ show: U
1805
+ }), (S, N) => {
1806
+ const r = o("el-image"), t = o("el-form-item"), f = o("el-input"), y = o("el-form"), b = o("el-button"), T = o("el-dialog");
1807
+ return i(), m(T, {
1808
+ title: "回复",
1809
+ modelValue: u.value,
1810
+ "onUpdate:modelValue": N[1] || (N[1] = (R) => u.value = R),
1811
+ width: "400",
1812
+ onClose: h
1813
+ }, {
1814
+ footer: l(() => [
1815
+ e(b, {
1816
+ type: "primary",
1817
+ disabled: S.handling,
1818
+ loading: S.handling,
1819
+ onClick: A
1820
+ }, {
1821
+ default: l(() => [
1822
+ c("提交")
1823
+ ]),
1824
+ _: 1
1825
+ }, 8, ["disabled", "loading"])
1826
+ ]),
1827
+ default: l(() => [
1828
+ e(y, {
1829
+ ref_key: "form",
1830
+ ref: D,
1831
+ rules: s,
1832
+ model: E.value,
1833
+ "label-position": "top"
1834
+ }, {
1835
+ default: l(() => [
1836
+ e(t, { label: "反馈内容" }, {
1837
+ default: l(() => [
1838
+ j("div", ke, [
1839
+ c(w(k.value.content) + " ", 1),
1840
+ j("div", Ee, [
1841
+ (i(!0), P($, null, q(k.value.images, (R, a) => (i(), m(r, {
1842
+ key: a,
1843
+ src: R,
1844
+ "preview-teleported": "",
1845
+ "preview-src-list": k.value.images,
1846
+ style: { width: "80px" }
1847
+ }, null, 8, ["src", "preview-src-list"]))), 128))
1848
+ ])
1849
+ ])
1850
+ ]),
1851
+ _: 1
1852
+ }),
1853
+ e(t, {
1854
+ label: "回复内容",
1855
+ prop: "replyContent"
1856
+ }, {
1857
+ default: l(() => [
1858
+ e(f, {
1859
+ type: "textarea",
1860
+ modelValue: E.value.replyContent,
1861
+ "onUpdate:modelValue": N[0] || (N[0] = (R) => E.value.replyContent = R),
1862
+ placeholder: "请输入要回复的内容"
1863
+ }, null, 8, ["modelValue"])
1864
+ ]),
1865
+ _: 1
1866
+ })
1867
+ ]),
1868
+ _: 1
1869
+ }, 8, ["model"])
1870
+ ]),
1871
+ _: 1
1872
+ }, 8, ["modelValue"]);
1873
+ };
1874
+ }
1875
+ }, Ce = /* @__PURE__ */ j("br", null, null, -1), Te = /* @__PURE__ */ j("br", null, null, -1), we = /* @__PURE__ */ j("br", null, null, -1), Ue = /* @__PURE__ */ j("br", null, null, -1), Se = { style: { display: "flex", "flex-direction": "column" } }, Ae = { style: { display: "flex", gap: "3px", "margin-top": "5px" } }, Ne = /* @__PURE__ */ j("br", null, null, -1), Ie = {
1876
+ __name: "FeedbackListView",
1877
+ setup(B) {
1878
+ const p = {
1879
+ WAITING_REPLY: {
1880
+ label: "待回复",
1881
+ tagType: "warning"
1882
+ },
1883
+ COMPLETED: {
1884
+ label: "已完成",
1885
+ tagType: "success"
1886
+ }
1887
+ }, _ = g({
1888
+ userId: null,
1889
+ status: null
1890
+ }), v = g();
1891
+ function u() {
1892
+ v.value.search();
1893
+ }
1894
+ const k = g();
1895
+ function E(s) {
1896
+ k.value.show(s);
1897
+ }
1898
+ return (s, U) => {
1899
+ const D = o("pg-user-selector"), A = o("el-option"), h = o("el-select"), S = o("el-button"), N = o("el-space"), r = o("el-card"), t = o("el-table-column"), f = o("el-avatar"), y = o("el-link"), b = o("el-image"), T = o("el-tag"), R = o("pg-table");
1900
+ return i(), P($, null, [
1901
+ e(r, null, {
1902
+ default: l(() => [
1903
+ e(N, null, {
1904
+ default: l(() => [
1905
+ e(D, {
1906
+ modelValue: _.value.userId,
1907
+ "onUpdate:modelValue": U[0] || (U[0] = (a) => _.value.userId = a),
1908
+ placeholder: "搜索用户",
1909
+ clearable: "",
1910
+ style: { width: "250px" }
1911
+ }, null, 8, ["modelValue"]),
1912
+ e(h, {
1913
+ modelValue: _.value.status,
1914
+ "onUpdate:modelValue": U[1] || (U[1] = (a) => _.value.status = a),
1915
+ placeholder: "状态",
1916
+ style: { width: "100px" },
1917
+ clearable: ""
1918
+ }, {
1919
+ default: l(() => [
1920
+ (i(), P($, null, q(p, (a, O) => e(A, {
1921
+ label: a.name,
1922
+ value: O
1923
+ }, {
1924
+ default: l(() => [
1925
+ c(w(a.name), 1)
1926
+ ]),
1927
+ _: 2
1928
+ }, 1032, ["label", "value"])), 64))
1929
+ ]),
1930
+ _: 1
1931
+ }, 8, ["modelValue"]),
1932
+ e(S, {
1933
+ type: "primary",
1934
+ icon: "search",
1935
+ onClick: u
1936
+ }, {
1937
+ default: l(() => [
1938
+ c("搜索")
1939
+ ]),
1940
+ _: 1
1941
+ })
1942
+ ]),
1943
+ _: 1
1944
+ })
1945
+ ]),
1946
+ _: 1
1947
+ }),
1948
+ e(R, {
1949
+ ref_key: "table",
1950
+ ref: v,
1951
+ style: { "margin-top": "10px" },
1952
+ "data-url": "/api/feedback/page-search",
1953
+ condition: _.value
1954
+ }, {
1955
+ default: l(() => [
1956
+ e(t, {
1957
+ label: "ID",
1958
+ prop: "id",
1959
+ width: "80",
1960
+ align: "center"
1961
+ }),
1962
+ e(t, {
1963
+ label: "用户信息",
1964
+ width: "200"
1965
+ }, {
1966
+ default: l(({ row: a }) => [
1967
+ e(f, {
1968
+ src: a.avatar
1969
+ }, null, 8, ["src"]),
1970
+ Ce,
1971
+ c(" " + w(a.nickname), 1),
1972
+ Te,
1973
+ e(y, {
1974
+ type: "primary",
1975
+ onClick: (O) => s.showUserDetail(a.userId)
1976
+ }, {
1977
+ default: l(() => [
1978
+ c(w(a.userId), 1)
1979
+ ]),
1980
+ _: 2
1981
+ }, 1032, ["onClick"])
1982
+ ]),
1983
+ _: 1
1984
+ }),
1985
+ e(t, {
1986
+ label: "应用",
1987
+ width: "120"
1988
+ }, {
1989
+ default: l(({ row: a }) => [
1990
+ c(w(a.appName), 1),
1991
+ we,
1992
+ c(" " + w(a.frontAppVersionName), 1),
1993
+ Ue,
1994
+ c(" " + w(a.frontAppVersionNumber), 1)
1995
+ ]),
1996
+ _: 1
1997
+ }),
1998
+ e(t, {
1999
+ label: "反馈内容",
2000
+ prop: "content"
2001
+ }, {
2002
+ default: l(({ row: a }) => [
2003
+ j("div", Se, [
2004
+ c(w(a.content) + " ", 1),
2005
+ j("div", Ae, [
2006
+ (i(!0), P($, null, q(a.images, (O, V) => (i(), m(b, {
2007
+ key: V,
2008
+ src: O,
2009
+ style: { width: "80px" },
2010
+ "preview-teleported": "",
2011
+ "preview-src-list": a.images
2012
+ }, null, 8, ["src", "preview-src-list"]))), 128))
2013
+ ])
2014
+ ])
2015
+ ]),
2016
+ _: 1
2017
+ }),
2018
+ e(t, {
2019
+ label: "状态",
2020
+ width: "100",
2021
+ align: "center"
2022
+ }, {
2023
+ default: l(({ row: a }) => [
2024
+ e(T, {
2025
+ type: p[a.status].tagType
2026
+ }, {
2027
+ default: l(() => [
2028
+ c(w(p[a.status].label), 1)
2029
+ ]),
2030
+ _: 2
2031
+ }, 1032, ["type"])
2032
+ ]),
2033
+ _: 1
2034
+ }),
2035
+ e(t, {
2036
+ label: "回复内容",
2037
+ prop: "replyContent"
2038
+ }),
2039
+ e(t, {
2040
+ label: "提交/回复时间",
2041
+ width: "180",
2042
+ align: "center"
2043
+ }, {
2044
+ default: l(({ row: a }) => [
2045
+ c(w(a.createdTime), 1),
2046
+ Ne,
2047
+ c(" " + w(a.replyTime ?? "/"), 1)
2048
+ ]),
2049
+ _: 1
2050
+ }),
2051
+ e(t, {
2052
+ label: "操作",
2053
+ width: "120",
2054
+ align: "center"
2055
+ }, {
2056
+ default: l(({ row: a }) => [
2057
+ e(S, {
2058
+ onClick: (O) => E(a),
2059
+ type: "primary"
2060
+ }, {
2061
+ default: l(() => [
2062
+ c(w(a.status == "WAITING_REPLY" ? "回复" : "修改回复"), 1)
2063
+ ]),
2064
+ _: 2
2065
+ }, 1032, ["onClick"])
2066
+ ]),
2067
+ _: 1
2068
+ })
2069
+ ]),
2070
+ _: 1
2071
+ }, 8, ["condition"]),
2072
+ e(Ve, {
2073
+ ref_key: "feedbackDialog",
2074
+ ref: k,
2075
+ onSuccess: u
2076
+ }, null, 512)
2077
+ ], 64);
2078
+ };
2079
+ }
2080
+ }, De = {
2081
+ install: (B, p) => {
2082
+ let _ = p.router, v = _.getRoutes().find((u) => u.path == "/");
2083
+ v && v.meta && (_.addRoute({
1777
2084
  path: "/app/banner",
1778
2085
  name: "AppBanner",
1779
2086
  redirect: "/app/banner/list",
1780
- component: g.meta.commonLayout,
2087
+ component: v.meta.commonLayout,
1781
2088
  children: [{
1782
2089
  path: "list",
1783
2090
  name: "BannerListView",
1784
2091
  component: me
1785
2092
  }]
1786
- }), f.addRoute({
2093
+ }), _.addRoute({
1787
2094
  path: "/app/entrance",
1788
2095
  name: "AppEntrance",
1789
2096
  redirect: "/app/entrance/list",
1790
- component: g.meta.commonLayout,
2097
+ component: v.meta.commonLayout,
1791
2098
  children: [{
1792
2099
  path: "list",
1793
2100
  name: "EntranceListView",
1794
- component: _e
2101
+ component: fe
1795
2102
  }]
1796
- }), f.addRoute({
2103
+ }), _.addRoute({
1797
2104
  path: "/app/version",
1798
2105
  name: "AppVersion",
1799
2106
  redirect: "/app/version/list",
1800
- component: g.meta.commonLayout,
2107
+ component: v.meta.commonLayout,
1801
2108
  children: [{
1802
2109
  path: "list",
1803
2110
  name: "AppVersionListView",
1804
- component: ye
2111
+ component: he
2112
+ }]
2113
+ }), _.addRoute({
2114
+ path: "/app/feedback",
2115
+ name: "Feedback",
2116
+ redirect: "/app/feedback/list",
2117
+ component: v.meta.commonLayout,
2118
+ children: [{
2119
+ path: "list",
2120
+ name: "FeedbackListView",
2121
+ component: Ie
1805
2122
  }]
1806
2123
  }));
1807
2124
  }
1808
- }, ke = ($, d) => {
1809
- de.forEach((g) => $.use(g)), $.use(Ee, d);
1810
- const f = oe();
1811
- if (d.defaultTesterUserIds)
1812
- for (let g of d.defaultTesterUserIds)
1813
- f.defaultTesterUserIds.push(g);
1814
- }, we = {
1815
- install: ke
2125
+ }, Fe = (B, p) => {
2126
+ de.forEach((v) => B.use(v)), B.use(De, p);
2127
+ const _ = oe();
2128
+ if (p.defaultTesterUserIds)
2129
+ for (let v of p.defaultTesterUserIds)
2130
+ _.defaultTesterUserIds.push(v);
2131
+ }, $e = {
2132
+ install: Fe
1816
2133
  };
1817
2134
  export {
1818
- we as default,
1819
- ke as install
2135
+ $e as default,
2136
+ Fe as install
1820
2137
  };