ling-yun-custom-components 0.0.42 → 0.0.44

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