ling-yun-custom-components 0.0.42 → 0.0.44
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/es/AppIntro.mjs +282 -357
- package/es/IconRenderer.mjs +1 -1
- package/es/IconSelect.mjs +1 -1
- package/es/assets/AppIntro.css +1 -1
- package/es/assets/PageNotFound.css +0 -0
- package/es/chunks/global.DLyUBjAm.js +8080 -0
- package/es/chunks/global.DpSgdQXX.js +7906 -0
- package/es/chunks/global.Ki4_q0NN.js +8823 -0
- package/es/chunks/layout.BgtHhnxJ.js +66 -0
- package/es/chunks/layout.CRtj9xK9.js +230 -0
- package/es/chunks/layout.CYgILBXq.js +592 -0
- package/es/chunks/layout.DTDMwNO7.js +231 -0
- package/es/chunks/layout.D_fCzVf0.js +39 -0
- package/es/chunks/layout.DdM4MaRr.js +149 -0
- package/es/index.mjs +81 -91
- package/lib/AppIntro.js +1 -1
- package/lib/IconRenderer.js +1 -1
- package/lib/IconSelect.js +1 -1
- package/lib/assets/AppIntro.css +1 -1
- package/lib/assets/PageNotFound.css +0 -0
- package/lib/chunks/global.3UE6pLnj.js +1 -0
- package/lib/chunks/global.CX5655fW.js +1 -0
- package/lib/chunks/global.Cmc2k3td.js +1 -0
- package/lib/chunks/layout.BCsKDB9S.js +1 -0
- package/lib/chunks/layout.BbWwZ-k5.js +1 -0
- package/lib/chunks/layout.BlY_nSey.js +1 -0
- package/lib/chunks/layout.CsWdFS5P.js +1 -0
- package/lib/chunks/layout.DE2mqrz_.js +1 -0
- package/lib/chunks/layout.YVnsUDl7.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +4 -4
package/es/AppIntro.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { createElementBlock as
|
|
3
|
-
import { ElIcon as
|
|
1
|
+
import { w as $ } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { createElementBlock as i, openBlock as n, createElementVNode as u, toDisplayString as m, renderSlot as R, createCommentVNode as _, unref as o, ref as w, resolveDirective as M, createVNode as c, Fragment as v, renderList as N, withCtx as r, createBlock as I, createTextVNode as E, withDirectives as A, onMounted as j } from "vue";
|
|
3
|
+
import { ElIcon as P, ElLink as V, ElTimeline as q, ElTimelineItem as B, ElCard as z, ElTag as U, ElTabs as J, ElTabPane as k } from "element-plus";
|
|
4
4
|
import { IconLook as H } from "color-message-lingyun-vue";
|
|
5
|
-
import { C as
|
|
6
|
-
import { _ as
|
|
7
|
-
import {
|
|
8
|
-
import './assets/AppIntro.css';const
|
|
5
|
+
import { C as K } from "./chunks/layout.DXw3haOP.js";
|
|
6
|
+
import { _ as L } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
|
+
import { pageParams as Q } from "ling-yun-methods";
|
|
8
|
+
import './assets/AppIntro.css';const W = { class: "flex w-full mg-b-10" }, X = { class: "config-item__label text-right inline-block" }, Y = {
|
|
9
9
|
class: "flex-1 flex justify-start items-flex-start flex-wrap flex-gap-row-wrap-8 fz-14",
|
|
10
10
|
style: { color: "#303133" }
|
|
11
|
-
},
|
|
11
|
+
}, Z = {
|
|
12
12
|
__name: "ConfigItem",
|
|
13
13
|
props: {
|
|
14
14
|
title: {
|
|
@@ -16,17 +16,15 @@ import './assets/AppIntro.css';const Y = { class: "flex w-full mg-b-10" }, Z = {
|
|
|
16
16
|
required: !0
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
c("div", ee, [
|
|
25
|
-
A(d.$slots, "default", {}, void 0, !0)
|
|
19
|
+
setup(l) {
|
|
20
|
+
return (s, f) => (n(), i("div", W, [
|
|
21
|
+
u("div", X, m(l.title), 1),
|
|
22
|
+
u("div", Y, [
|
|
23
|
+
R(s.$slots, "default", {}, void 0, !0)
|
|
26
24
|
])
|
|
27
25
|
]));
|
|
28
26
|
}
|
|
29
|
-
},
|
|
27
|
+
}, F = /* @__PURE__ */ L(Z, [["__scopeId", "data-v-0188f394"]]), a = {
|
|
30
28
|
LISTING: 1,
|
|
31
29
|
// 上架申请
|
|
32
30
|
DELISTING: 2,
|
|
@@ -35,259 +33,251 @@ import './assets/AppIntro.css';const Y = { class: "flex w-full mg-b-10" }, Z = {
|
|
|
35
33
|
// 上线应用
|
|
36
34
|
OFFLINE: 4
|
|
37
35
|
// 下线应用
|
|
38
|
-
},
|
|
36
|
+
}, D = {
|
|
39
37
|
PENDING: 0,
|
|
40
38
|
// 待审核
|
|
41
39
|
APPROVED: 1,
|
|
42
40
|
// 已通过
|
|
43
41
|
REJECTED: 2
|
|
44
42
|
// 已驳回
|
|
45
|
-
},
|
|
43
|
+
}, S = {
|
|
46
44
|
IMAGE: 1,
|
|
47
45
|
// 图片
|
|
48
46
|
VIDEO: 2
|
|
49
47
|
// 视频
|
|
50
|
-
},
|
|
48
|
+
}, b = {
|
|
51
49
|
INTRO: "intro",
|
|
52
50
|
// 应用介绍
|
|
53
51
|
TIMELINE: "timeline"
|
|
54
52
|
// 迭代时间轴
|
|
55
|
-
},
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
53
|
+
}, ee = {
|
|
54
|
+
[a.LISTING]: "上架申请",
|
|
55
|
+
[a.DELISTING]: "下架申请",
|
|
56
|
+
[a.ONLINE]: "上线应用",
|
|
57
|
+
[a.OFFLINE]: "下线应用"
|
|
58
|
+
}, O = {
|
|
59
|
+
[D.PENDING]: {
|
|
60
|
+
type: "warning",
|
|
61
|
+
text: "待审核"
|
|
62
|
+
},
|
|
63
|
+
[D.APPROVED]: {
|
|
64
|
+
type: "primary",
|
|
65
|
+
text: "已通过"
|
|
66
|
+
},
|
|
67
|
+
[D.REJECTED]: {
|
|
68
|
+
type: "danger",
|
|
69
|
+
text: "已驳回"
|
|
70
|
+
}
|
|
71
|
+
}, te = [
|
|
72
|
+
{ title: "申请人:", field: "appCreatorName" },
|
|
73
|
+
{ title: "应用省份:", field: "appCreatorOrg" },
|
|
74
|
+
{ title: "应用说明:", field: "appDesc" },
|
|
75
|
+
{ title: "接入系统:", field: "accessSystem" },
|
|
76
|
+
{ title: "业务背景:", field: "businessBackground" },
|
|
77
|
+
{ title: "业务目标:", field: "businessTarget" },
|
|
78
|
+
{ title: "成效数据:", field: "resultData" }
|
|
79
|
+
], ae = [
|
|
80
|
+
{
|
|
81
|
+
title: "申请人",
|
|
82
|
+
field: "creatorName",
|
|
83
|
+
showForTypes: [a.LISTING, a.DELISTING]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
title: "操作人",
|
|
87
|
+
field: "creatorName",
|
|
88
|
+
showForTypes: [a.ONLINE, a.OFFLINE]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
title: "下架原因",
|
|
92
|
+
field: "delistingReason",
|
|
93
|
+
showForTypes: [a.DELISTING]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
title: "成效数据",
|
|
97
|
+
field: "resultData",
|
|
98
|
+
showForTypes: [a.LISTING]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
title: "推荐理由",
|
|
102
|
+
field: "recommendReason",
|
|
103
|
+
showForTypes: [a.LISTING]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
title: "版本号",
|
|
107
|
+
field: "appVersionNum",
|
|
108
|
+
showForTypes: [a.ONLINE, a.OFFLINE],
|
|
109
|
+
formatter: (l) => l ? `V${l}` : "--"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
title: "配置摘要",
|
|
113
|
+
field: "configSummary",
|
|
114
|
+
showForTypes: [a.ONLINE]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
title: "版本说明",
|
|
118
|
+
field: "publishRemark",
|
|
119
|
+
showForTypes: [a.ONLINE, a.OFFLINE]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
title: "下线原因",
|
|
123
|
+
field: "offlineReason",
|
|
124
|
+
showForTypes: [a.OFFLINE]
|
|
125
|
+
}
|
|
126
|
+
], C = {
|
|
127
|
+
[a.LISTING]: {
|
|
128
|
+
text: "查看上架申请"
|
|
129
|
+
},
|
|
130
|
+
[a.DELISTING]: {
|
|
131
|
+
text: "查看下架申请"
|
|
132
|
+
}
|
|
133
|
+
}, le = {
|
|
64
134
|
key: 0,
|
|
65
135
|
class: "media-video relative w-full"
|
|
66
|
-
},
|
|
136
|
+
}, oe = ["src"], ne = {
|
|
67
137
|
key: 1,
|
|
68
138
|
class: "media-image relative w-full"
|
|
69
|
-
},
|
|
139
|
+
}, ie = ["src"], x = {
|
|
140
|
+
__name: "MediaViewer",
|
|
141
|
+
props: {
|
|
142
|
+
media: {
|
|
143
|
+
type: Object,
|
|
144
|
+
default: null
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
setup(l) {
|
|
148
|
+
return (s, f) => l.media?.type === o(S).VIDEO ? (n(), i("div", le, [
|
|
149
|
+
u("video", {
|
|
150
|
+
class: "w-full",
|
|
151
|
+
src: l.media.url,
|
|
152
|
+
controls: ""
|
|
153
|
+
}, null, 8, oe)
|
|
154
|
+
])) : l.media?.type === o(S).IMAGE ? (n(), i("div", ne, [
|
|
155
|
+
u("img", {
|
|
156
|
+
class: "w-full",
|
|
157
|
+
src: l.media.url,
|
|
158
|
+
alt: ""
|
|
159
|
+
}, null, 8, ie)
|
|
160
|
+
])) : _("", !0);
|
|
161
|
+
}
|
|
162
|
+
}, se = { class: "app-intro-content overflow-hidden h-full" }, re = {
|
|
70
163
|
key: 0,
|
|
71
|
-
class: "
|
|
72
|
-
},
|
|
73
|
-
key: 1,
|
|
74
|
-
class: "preview-content"
|
|
75
|
-
}, ve = ["src"], Ie = {
|
|
164
|
+
class: "media-section w-full pd-b-12"
|
|
165
|
+
}, de = { class: "media-content relative w-full" }, ce = ["onClick"], ue = { class: "info-section" }, pe = { class: "preview-content" }, fe = {
|
|
76
166
|
__name: "AppIntroContent",
|
|
77
167
|
props: {
|
|
78
|
-
|
|
79
|
-
type:
|
|
80
|
-
default: () =>
|
|
81
|
-
},
|
|
82
|
-
appCreatorName: {
|
|
83
|
-
type: String,
|
|
84
|
-
default: ""
|
|
85
|
-
},
|
|
86
|
-
appCreatorOrg: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: ""
|
|
89
|
-
},
|
|
90
|
-
appDesc: {
|
|
91
|
-
type: String,
|
|
92
|
-
default: ""
|
|
93
|
-
},
|
|
94
|
-
accessSystem: {
|
|
95
|
-
type: String,
|
|
96
|
-
default: ""
|
|
97
|
-
},
|
|
98
|
-
businessBackground: {
|
|
99
|
-
type: String,
|
|
100
|
-
default: ""
|
|
101
|
-
},
|
|
102
|
-
businessTarget: {
|
|
103
|
-
type: String,
|
|
104
|
-
default: ""
|
|
105
|
-
},
|
|
106
|
-
resultData: {
|
|
107
|
-
type: String,
|
|
108
|
-
default: ""
|
|
109
|
-
},
|
|
110
|
-
attachements: {
|
|
111
|
-
type: Array,
|
|
112
|
-
default: () => []
|
|
168
|
+
introData: {
|
|
169
|
+
type: Object,
|
|
170
|
+
default: () => ({})
|
|
113
171
|
}
|
|
114
172
|
},
|
|
115
|
-
setup(
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
{ title: "业务背景:", value: d.businessBackground },
|
|
122
|
-
{ title: "业务目标:", value: d.businessTarget },
|
|
123
|
-
{ title: "成效数据:", value: d.resultData }
|
|
124
|
-
]), I = E(!1), y = E(null), N = (u) => {
|
|
125
|
-
y.value = u, I.value = !0;
|
|
126
|
-
}, g = () => {
|
|
127
|
-
I.value = !1, y.value = null;
|
|
128
|
-
}, _ = (u) => {
|
|
173
|
+
setup(l) {
|
|
174
|
+
const s = w(!1), f = w(null), h = (p) => {
|
|
175
|
+
f.value = p, s.value = !0;
|
|
176
|
+
}, T = () => {
|
|
177
|
+
s.value = !1, f.value = null;
|
|
178
|
+
}, y = (p) => {
|
|
129
179
|
try {
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
} catch (
|
|
133
|
-
console.error(
|
|
180
|
+
const e = document.createElement("a");
|
|
181
|
+
e.href = p.attachementUrl, e.download = p.attachementName, e.style.display = "none", e.target = "_blank", document.body.appendChild(e), e.click(), document.body.removeChild(e);
|
|
182
|
+
} catch (e) {
|
|
183
|
+
console.error(e);
|
|
134
184
|
}
|
|
135
185
|
};
|
|
136
|
-
return (
|
|
137
|
-
const
|
|
138
|
-
return
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
(
|
|
142
|
-
key:
|
|
186
|
+
return (p, e) => {
|
|
187
|
+
const g = M("loading");
|
|
188
|
+
return n(), i("div", se, [
|
|
189
|
+
l.introData?.pics?.length > 0 ? (n(), i("div", re, [
|
|
190
|
+
u("div", de, [
|
|
191
|
+
(n(!0), i(v, null, N(l.introData.pics, (t, d) => (n(), i("div", {
|
|
192
|
+
key: d,
|
|
143
193
|
class: "media-item w-full"
|
|
144
194
|
}, [
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
class: "w-full",
|
|
148
|
-
src: r.url,
|
|
149
|
-
controls: ""
|
|
150
|
-
}, null, 8, re)
|
|
151
|
-
])) : i("", !0),
|
|
152
|
-
r.type === t(L).IMAGE ? (a(), n("div", ie, [
|
|
153
|
-
c("img", {
|
|
154
|
-
class: "w-full",
|
|
155
|
-
src: r.url,
|
|
156
|
-
alt: ""
|
|
157
|
-
}, null, 8, ue)
|
|
158
|
-
])) : i("", !0),
|
|
159
|
-
c("div", {
|
|
195
|
+
c(x, { media: t }, null, 8, ["media"]),
|
|
196
|
+
u("div", {
|
|
160
197
|
class: "hover-overlay absolute top-0 left-0 w-full h-full flex justify-center items-center",
|
|
161
|
-
onClick: (G) =>
|
|
198
|
+
onClick: (G) => h(t)
|
|
162
199
|
}, [
|
|
163
|
-
|
|
200
|
+
c(o(P), {
|
|
164
201
|
size: 24,
|
|
165
202
|
class: "view-icon"
|
|
166
203
|
}, {
|
|
167
|
-
default:
|
|
168
|
-
|
|
204
|
+
default: r(() => [
|
|
205
|
+
c(o(H))
|
|
169
206
|
]),
|
|
170
207
|
_: 1
|
|
171
208
|
})
|
|
172
209
|
], 8, ce)
|
|
173
210
|
]))), 128))
|
|
174
211
|
])
|
|
175
|
-
])) :
|
|
176
|
-
|
|
177
|
-
(
|
|
178
|
-
key:
|
|
179
|
-
title:
|
|
212
|
+
])) : _("", !0),
|
|
213
|
+
u("div", ue, [
|
|
214
|
+
(n(!0), i(v, null, N(o(te), (t) => (n(), I(F, {
|
|
215
|
+
key: t.title,
|
|
216
|
+
title: t.title
|
|
180
217
|
}, {
|
|
181
|
-
default:
|
|
182
|
-
|
|
218
|
+
default: r(() => [
|
|
219
|
+
E(m(l.introData?.[t.field] ?? "--"), 1)
|
|
183
220
|
]),
|
|
184
221
|
_: 2
|
|
185
222
|
}, 1032, ["title"]))), 128)),
|
|
186
|
-
|
|
187
|
-
default:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
])), [
|
|
208
|
-
[e, !r.attachementUrl]
|
|
209
|
-
])
|
|
210
|
-
]))), 128))
|
|
223
|
+
c(F, { title: "附件:" }, {
|
|
224
|
+
default: r(() => [
|
|
225
|
+
(n(!0), i(v, null, N(l.introData?.attachements, (t, d) => (n(), i("div", {
|
|
226
|
+
key: d,
|
|
227
|
+
class: "file-item"
|
|
228
|
+
}, [
|
|
229
|
+
A((n(), i("div", null, [
|
|
230
|
+
E(m(t.attachementName) + " ", 1),
|
|
231
|
+
t.attachementUrl ? (n(), I(o(V), {
|
|
232
|
+
key: 0,
|
|
233
|
+
type: "primary",
|
|
234
|
+
underline: !1,
|
|
235
|
+
onClick: (G) => y(t)
|
|
236
|
+
}, {
|
|
237
|
+
default: r(() => [...e[1] || (e[1] = [
|
|
238
|
+
E(" 点击查看 ", -1)
|
|
239
|
+
])]),
|
|
240
|
+
_: 1
|
|
241
|
+
}, 8, ["onClick"])) : _("", !0)
|
|
242
|
+
])), [
|
|
243
|
+
[g, !t.attachementUrl]
|
|
211
244
|
])
|
|
212
|
-
])
|
|
245
|
+
]))), 128))
|
|
213
246
|
]),
|
|
214
247
|
_: 1
|
|
215
248
|
})
|
|
216
249
|
]),
|
|
217
|
-
|
|
218
|
-
modelValue:
|
|
219
|
-
"onUpdate:modelValue":
|
|
250
|
+
c(K, {
|
|
251
|
+
modelValue: s.value,
|
|
252
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => s.value = t),
|
|
220
253
|
width: "60%",
|
|
221
254
|
"show-close": !0,
|
|
222
|
-
onClose:
|
|
255
|
+
onClose: T,
|
|
223
256
|
buttons: {
|
|
224
257
|
showCancel: !1,
|
|
225
258
|
showConfirm: !1
|
|
226
259
|
}
|
|
227
260
|
}, {
|
|
228
|
-
default:
|
|
229
|
-
|
|
230
|
-
c(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
])) : (a(), n("div", he, [
|
|
236
|
-
c("video", {
|
|
237
|
-
class: "preview-media w-full",
|
|
238
|
-
src: y.value?.url,
|
|
239
|
-
controls: ""
|
|
240
|
-
}, null, 8, ve)
|
|
241
|
-
]))
|
|
261
|
+
default: r(() => [
|
|
262
|
+
u("div", pe, [
|
|
263
|
+
c(x, {
|
|
264
|
+
media: f.value,
|
|
265
|
+
class: "preview-media"
|
|
266
|
+
}, null, 8, ["media"])
|
|
267
|
+
])
|
|
242
268
|
]),
|
|
243
269
|
_: 1
|
|
244
270
|
}, 8, ["modelValue"])
|
|
245
271
|
]);
|
|
246
272
|
};
|
|
247
273
|
}
|
|
248
|
-
},
|
|
274
|
+
}, me = /* @__PURE__ */ L(fe, [["__scopeId", "data-v-ba3ada8e"]]), ye = { class: "flex items-center flex-gap-row-nowrap-8 mg-b-12" }, Ie = {
|
|
249
275
|
class: "fz-14 weight-500",
|
|
250
276
|
style: { color: "#1d2129" }
|
|
251
|
-
},
|
|
277
|
+
}, he = {
|
|
252
278
|
class: "fz-14",
|
|
253
279
|
style: { color: "#4e5969" }
|
|
254
|
-
},
|
|
255
|
-
key: 0,
|
|
256
|
-
class: "mg-t-8 mg-b-8",
|
|
257
|
-
style: { "line-height": "1.5" }
|
|
258
|
-
}, Ee = {
|
|
259
|
-
key: 1,
|
|
260
|
-
class: "mg-t-8 mg-b-8",
|
|
261
|
-
style: { "line-height": "1.5" }
|
|
262
|
-
}, we = {
|
|
263
|
-
key: 2,
|
|
264
|
-
class: "mg-t-8 mg-b-8",
|
|
265
|
-
style: { "line-height": "1.5" }
|
|
266
|
-
}, De = {
|
|
267
|
-
key: 3,
|
|
268
|
-
class: "mg-t-8 mg-b-8",
|
|
269
|
-
style: { "line-height": "1.5" }
|
|
270
|
-
}, Se = {
|
|
271
|
-
key: 4,
|
|
272
|
-
class: "mg-t-8 mg-b-8",
|
|
273
|
-
style: { "line-height": "1.5" }
|
|
274
|
-
}, Ce = {
|
|
275
|
-
key: 5,
|
|
276
|
-
class: "mg-t-8 mg-b-8",
|
|
277
|
-
style: { "line-height": "1.5" }
|
|
278
|
-
}, Le = {
|
|
279
|
-
key: 6,
|
|
280
|
-
class: "mg-t-8 mg-b-8",
|
|
281
|
-
style: { "line-height": "1.5" }
|
|
282
|
-
}, xe = {
|
|
283
|
-
key: 7,
|
|
284
|
-
class: "mg-t-8 mg-b-8",
|
|
285
|
-
style: { "line-height": "1.5" }
|
|
286
|
-
}, Oe = {
|
|
287
|
-
key: 8,
|
|
288
|
-
class: "mg-t-8 mg-b-8",
|
|
289
|
-
style: { "line-height": "1.5" }
|
|
290
|
-
}, $e = {
|
|
280
|
+
}, _e = {
|
|
291
281
|
__name: "AppTimeline",
|
|
292
282
|
props: {
|
|
293
283
|
appId: {
|
|
@@ -302,124 +292,84 @@ import './assets/AppIntro.css';const Y = { class: "flex w-full mg-b-10" }, Z = {
|
|
|
302
292
|
type: Object,
|
|
303
293
|
default: () => ({})
|
|
304
294
|
},
|
|
305
|
-
|
|
306
|
-
type:
|
|
307
|
-
default:
|
|
295
|
+
appOperationList: {
|
|
296
|
+
type: Function,
|
|
297
|
+
default: () => {
|
|
298
|
+
}
|
|
308
299
|
}
|
|
309
300
|
},
|
|
310
|
-
setup(
|
|
311
|
-
const
|
|
312
|
-
|
|
301
|
+
setup(l) {
|
|
302
|
+
const s = l, f = async (e) => {
|
|
303
|
+
s.vueRouter.push({
|
|
313
304
|
path: "/promptTestDetail",
|
|
314
305
|
query: {
|
|
315
|
-
id:
|
|
316
|
-
type:
|
|
306
|
+
id: e.id,
|
|
307
|
+
type: e.auditStatus,
|
|
317
308
|
sourceFlag: "1",
|
|
318
|
-
operationType:
|
|
309
|
+
operationType: e.operationType,
|
|
319
310
|
sourceHistory: "1"
|
|
320
311
|
}
|
|
321
312
|
});
|
|
322
|
-
},
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
appId: d.appId,
|
|
313
|
+
}, h = (e) => [a.LISTING, a.DELISTING].includes(e), T = (e) => ae.filter((g) => g.showForTypes.includes(e)), y = w([]), p = async () => {
|
|
314
|
+
await s.appOperationList({
|
|
315
|
+
appId: s.appId,
|
|
326
316
|
operationType: [
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
317
|
+
a.LISTING,
|
|
318
|
+
a.DELISTING,
|
|
319
|
+
a.ONLINE,
|
|
320
|
+
a.OFFLINE
|
|
331
321
|
].join(","),
|
|
332
322
|
pageNum: Q.pageNum,
|
|
333
323
|
pageSize: 1e6
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
await N().then(({ data: u }) => {
|
|
337
|
-
g.value = u.list;
|
|
324
|
+
}).then(({ data: e }) => {
|
|
325
|
+
y.value = e.list;
|
|
338
326
|
});
|
|
339
327
|
};
|
|
340
|
-
return
|
|
341
|
-
|
|
342
|
-
}), (
|
|
343
|
-
default:
|
|
344
|
-
(
|
|
345
|
-
key:
|
|
346
|
-
timestamp:
|
|
328
|
+
return j(() => {
|
|
329
|
+
p();
|
|
330
|
+
}), (e, g) => (n(), I(o(q), { class: "overflow-y-auto h-full pd-l-4" }, {
|
|
331
|
+
default: r(() => [
|
|
332
|
+
(n(!0), i(v, null, N(y.value, (t) => (n(), I(o(B), {
|
|
333
|
+
key: t.id,
|
|
334
|
+
timestamp: t.createTime,
|
|
347
335
|
placement: "top",
|
|
348
|
-
color: "
|
|
336
|
+
color: "var(--primary-color-1)"
|
|
349
337
|
}, {
|
|
350
|
-
default:
|
|
351
|
-
|
|
352
|
-
default:
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
338
|
+
default: r(() => [
|
|
339
|
+
c(o(z), { shadow: "hover" }, {
|
|
340
|
+
default: r(() => [
|
|
341
|
+
u("div", ye, [
|
|
342
|
+
u("span", Ie, m(o(ee)[t.operationType] || "--"), 1),
|
|
343
|
+
h(t.operationType) ? (n(), i(v, { key: 0 }, [
|
|
344
|
+
o(O)[t.auditStatus] ? (n(), I(o(U), {
|
|
357
345
|
key: 0,
|
|
358
|
-
type:
|
|
359
|
-
size: "small",
|
|
360
|
-
class: "weight-500"
|
|
361
|
-
}, {
|
|
362
|
-
default: p(() => [...l[0] || (l[0] = [
|
|
363
|
-
T(" 待审核 ", -1)
|
|
364
|
-
])]),
|
|
365
|
-
_: 1
|
|
366
|
-
})) : e.auditStatus === t(C).APPROVED ? (a(), m(t(S), {
|
|
367
|
-
key: 1,
|
|
368
|
-
type: "primary",
|
|
369
|
-
size: "small",
|
|
370
|
-
class: "weight-500"
|
|
371
|
-
}, {
|
|
372
|
-
default: p(() => [...l[1] || (l[1] = [
|
|
373
|
-
T(" 已通过 ", -1)
|
|
374
|
-
])]),
|
|
375
|
-
_: 1
|
|
376
|
-
})) : e.auditStatus === t(C).REJECTED ? (a(), m(t(S), {
|
|
377
|
-
key: 2,
|
|
378
|
-
type: "danger",
|
|
379
|
-
size: "small",
|
|
380
|
-
class: "weight-500"
|
|
346
|
+
type: o(O)[t.auditStatus].type
|
|
381
347
|
}, {
|
|
382
|
-
default:
|
|
383
|
-
|
|
384
|
-
])
|
|
385
|
-
_:
|
|
386
|
-
})) :
|
|
387
|
-
], 64)) :
|
|
348
|
+
default: r(() => [
|
|
349
|
+
E(m(o(O)[t.auditStatus].text), 1)
|
|
350
|
+
]),
|
|
351
|
+
_: 2
|
|
352
|
+
}, 1032, ["type"])) : _("", !0)
|
|
353
|
+
], 64)) : _("", !0)
|
|
388
354
|
]),
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
e.operationType === t(o).ONLINE || e.operationType === t(o).OFFLINE ? (a(), n("p", xe, " 版本说明:" + f(e.publishRemark ?? "--"), 1)) : i("", !0),
|
|
398
|
-
e.operationType === t(o).OFFLINE ? (a(), n("p", Oe, " 下线原因:" + f(e.offlineReason ?? "--"), 1)) : i("", !0),
|
|
399
|
-
e.operationType === t(o).LISTING && !s.square ? (a(), m(t(x), {
|
|
400
|
-
key: 9,
|
|
401
|
-
type: "primary",
|
|
402
|
-
underline: !1,
|
|
403
|
-
class: "mg-t-8",
|
|
404
|
-
onClick: (r) => v(e)
|
|
405
|
-
}, {
|
|
406
|
-
default: p(() => [...l[3] || (l[3] = [
|
|
407
|
-
T(" 查看上架申请 ", -1)
|
|
408
|
-
])]),
|
|
409
|
-
_: 1
|
|
410
|
-
}, 8, ["onClick"])) : i("", !0),
|
|
411
|
-
e.operationType === t(o).DELISTING && !s.square ? (a(), m(t(x), {
|
|
412
|
-
key: 10,
|
|
355
|
+
u("div", he, [
|
|
356
|
+
(n(!0), i(v, null, N(T(t.operationType), (d) => (n(), i("div", {
|
|
357
|
+
key: d.field + d.title,
|
|
358
|
+
class: "mg-t-8 mg-b-8",
|
|
359
|
+
style: { "line-height": "1.5" }
|
|
360
|
+
}, m(d.title) + ":" + m(d.formatter ? d.formatter(t[d.field]) : t[d.field] ?? "--"), 1))), 128)),
|
|
361
|
+
o(C)[t.operationType] && !l.square ? (n(), I(o(V), {
|
|
362
|
+
key: 0,
|
|
413
363
|
type: "primary",
|
|
414
364
|
underline: !1,
|
|
415
365
|
class: "mg-t-8",
|
|
416
|
-
onClick: (
|
|
366
|
+
onClick: (d) => f(t)
|
|
417
367
|
}, {
|
|
418
|
-
default:
|
|
419
|
-
|
|
420
|
-
])
|
|
421
|
-
_:
|
|
422
|
-
},
|
|
368
|
+
default: r(() => [
|
|
369
|
+
E(m(o(C)[t.operationType].text), 1)
|
|
370
|
+
]),
|
|
371
|
+
_: 2
|
|
372
|
+
}, 1032, ["onClick"])) : _("", !0)
|
|
423
373
|
])
|
|
424
374
|
]),
|
|
425
375
|
_: 2
|
|
@@ -431,7 +381,7 @@ import './assets/AppIntro.css';const Y = { class: "flex w-full mg-b-10" }, Z = {
|
|
|
431
381
|
_: 1
|
|
432
382
|
}));
|
|
433
383
|
}
|
|
434
|
-
},
|
|
384
|
+
}, ve = /* @__PURE__ */ L(_e, [["__scopeId", "data-v-3a2170d7"]]), Te = /* @__PURE__ */ Object.assign({
|
|
435
385
|
name: "AppIntro"
|
|
436
386
|
}, {
|
|
437
387
|
__name: "layout",
|
|
@@ -444,15 +394,6 @@ import './assets/AppIntro.css';const Y = { class: "flex w-full mg-b-10" }, Z = {
|
|
|
444
394
|
type: Boolean,
|
|
445
395
|
default: !1
|
|
446
396
|
},
|
|
447
|
-
defaultTab: {
|
|
448
|
-
type: String,
|
|
449
|
-
default: "intro",
|
|
450
|
-
validator: (s) => ["intro", "timeline"].includes(s)
|
|
451
|
-
},
|
|
452
|
-
prefixUrl: {
|
|
453
|
-
type: String,
|
|
454
|
-
default: ""
|
|
455
|
-
},
|
|
456
397
|
vueRouter: {
|
|
457
398
|
type: Object,
|
|
458
399
|
default: () => ({})
|
|
@@ -460,71 +401,55 @@ import './assets/AppIntro.css';const Y = { class: "flex w-full mg-b-10" }, Z = {
|
|
|
460
401
|
appId: {
|
|
461
402
|
type: String,
|
|
462
403
|
default: ""
|
|
404
|
+
},
|
|
405
|
+
// 迭代时间轴 接口
|
|
406
|
+
appOperationList: {
|
|
407
|
+
type: Function,
|
|
408
|
+
default: () => {
|
|
409
|
+
}
|
|
463
410
|
}
|
|
464
411
|
},
|
|
465
412
|
emits: ["tab-change"],
|
|
466
|
-
setup(
|
|
467
|
-
const
|
|
468
|
-
|
|
469
|
-
() => v.defaultTab,
|
|
470
|
-
(g) => {
|
|
471
|
-
y.value = g;
|
|
472
|
-
}
|
|
473
|
-
);
|
|
474
|
-
const N = (g) => {
|
|
475
|
-
I("tab-change", g);
|
|
413
|
+
setup(l, { emit: s }) {
|
|
414
|
+
const f = s, h = w(b.INTRO), T = (y) => {
|
|
415
|
+
f("tab-change", y);
|
|
476
416
|
};
|
|
477
|
-
return (
|
|
417
|
+
return (y, p) => (n(), I(o(J), {
|
|
478
418
|
class: "overflow-hidden h-full",
|
|
479
|
-
modelValue:
|
|
480
|
-
"onUpdate:modelValue":
|
|
481
|
-
onTabChange:
|
|
419
|
+
modelValue: h.value,
|
|
420
|
+
"onUpdate:modelValue": p[0] || (p[0] = (e) => h.value = e),
|
|
421
|
+
onTabChange: T
|
|
482
422
|
}, {
|
|
483
|
-
default:
|
|
484
|
-
|
|
423
|
+
default: r(() => [
|
|
424
|
+
c(o(k), {
|
|
485
425
|
label: "应用介绍",
|
|
486
|
-
name:
|
|
426
|
+
name: o(b).INTRO
|
|
487
427
|
}, {
|
|
488
|
-
default:
|
|
489
|
-
|
|
490
|
-
pics: s.introData?.pics,
|
|
491
|
-
"app-creator-name": s.introData?.appCreatorName,
|
|
492
|
-
"app-creator-org": s.introData?.appCreatorOrg,
|
|
493
|
-
"app-desc": s.introData?.appDesc,
|
|
494
|
-
"access-system": s.introData?.accessSystem,
|
|
495
|
-
"business-background": s.introData?.businessBackground,
|
|
496
|
-
"business-target": s.introData?.businessTarget,
|
|
497
|
-
"result-data": s.introData?.resultData,
|
|
498
|
-
attachements: s.introData?.attachements
|
|
499
|
-
}, null, 8, ["pics", "app-creator-name", "app-creator-org", "app-desc", "access-system", "business-background", "business-target", "result-data", "attachements"])
|
|
428
|
+
default: r(() => [
|
|
429
|
+
c(me, { "intro-data": l.introData }, null, 8, ["intro-data"])
|
|
500
430
|
]),
|
|
501
431
|
_: 1
|
|
502
|
-
}),
|
|
503
|
-
|
|
432
|
+
}, 8, ["name"]),
|
|
433
|
+
c(o(k), {
|
|
504
434
|
label: "迭代时间轴",
|
|
505
|
-
name:
|
|
435
|
+
name: o(b).TIMELINE
|
|
506
436
|
}, {
|
|
507
|
-
default:
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
square:
|
|
511
|
-
"vue-router":
|
|
512
|
-
"app-id":
|
|
513
|
-
}, null, 8, ["
|
|
437
|
+
default: r(() => [
|
|
438
|
+
c(ve, {
|
|
439
|
+
"app-operation-list": l.appOperationList,
|
|
440
|
+
square: l.square,
|
|
441
|
+
"vue-router": l.vueRouter,
|
|
442
|
+
"app-id": l.appId
|
|
443
|
+
}, null, 8, ["app-operation-list", "square", "vue-router", "app-id"])
|
|
514
444
|
]),
|
|
515
445
|
_: 1
|
|
516
|
-
})
|
|
446
|
+
}, 8, ["name"])
|
|
517
447
|
]),
|
|
518
448
|
_: 1
|
|
519
449
|
}, 8, ["modelValue"]));
|
|
520
450
|
}
|
|
521
|
-
}),
|
|
451
|
+
}), Ne = /* @__PURE__ */ L(Te, [["__scopeId", "data-v-e0a3d317"]]), ke = $(Ne);
|
|
522
452
|
export {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
je as default,
|
|
526
|
-
L as mediaTypeMap,
|
|
527
|
-
o as operationTypeMap,
|
|
528
|
-
ae as operationTypeToTextMap,
|
|
529
|
-
Be as tabTypeMap
|
|
453
|
+
ke as AppIntro,
|
|
454
|
+
ke as default
|
|
530
455
|
};
|