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