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