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