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

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