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