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