ling-yun-custom-components 0.0.41 → 0.0.42

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