ling-yun-custom-components 0.0.69 → 0.0.71

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.
Files changed (69) hide show
  1. package/es/AppIntro.mjs +15 -15
  2. package/es/BuildComponents.mjs +1 -1
  3. package/es/CustomDialog.mjs +1 -1
  4. package/es/CustomDropdown.mjs +15 -15
  5. package/es/CustomTab.mjs +7 -7
  6. package/es/GradientButton.mjs +10 -10
  7. package/es/PaginationTable.mjs +125 -115
  8. package/es/PluginDetail.mjs +1 -1
  9. package/es/UpdatePasswordDialog.mjs +6 -6
  10. package/es/assets/AppIntro.css +1 -1
  11. package/es/assets/BuildComponents.css +1 -1
  12. package/es/assets/CustomDropdown.css +1 -1
  13. package/es/assets/CustomTab.css +1 -1
  14. package/es/assets/GradientButton.css +1 -1
  15. package/es/assets/PaginationTable.css +1 -1
  16. package/es/assets/PluginDetail.css +1 -1
  17. package/es/assets/UpdatePasswordDialog.css +1 -1
  18. package/es/assets/layout.css +1 -1
  19. package/es/chunks/{layout.BlsXj4-t.js → layout.Co1Edcgs.js} +1 -1
  20. package/lib/AppIntro.js +1 -1
  21. package/lib/BuildComponents.js +1 -1
  22. package/lib/CustomDialog.js +1 -1
  23. package/lib/CustomDropdown.js +1 -1
  24. package/lib/CustomTab.js +1 -1
  25. package/lib/GradientButton.js +1 -1
  26. package/lib/PaginationTable.js +1 -1
  27. package/lib/PluginDetail.js +1 -1
  28. package/lib/UpdatePasswordDialog.js +1 -1
  29. package/lib/assets/AppIntro.css +1 -1
  30. package/lib/assets/BuildComponents.css +1 -1
  31. package/lib/assets/CustomDropdown.css +1 -1
  32. package/lib/assets/CustomTab.css +1 -1
  33. package/lib/assets/GradientButton.css +1 -1
  34. package/lib/assets/PaginationTable.css +1 -1
  35. package/lib/assets/PluginDetail.css +1 -1
  36. package/lib/assets/UpdatePasswordDialog.css +1 -1
  37. package/lib/assets/layout.css +1 -1
  38. package/lib/chunks/{layout._ESCIMbo.js → layout.Bh7LH0QH.js} +1 -1
  39. package/package.json +5 -5
  40. package/es/chunks/AppIntro.DubEs5q_.js +0 -431
  41. package/es/chunks/BuildComponents.Bu-jJtCo.js +0 -203
  42. package/es/chunks/CustomDialog.T0DjhxY4.js +0 -5
  43. package/es/chunks/CustomDropdown.BoSVXB8_.js +0 -132
  44. package/es/chunks/CustomPagination.D26A7iFP.js +0 -5
  45. package/es/chunks/CustomTab.BCs2BQZr.js +0 -52
  46. package/es/chunks/GradientButton.BVlXDphQ.js +0 -91
  47. package/es/chunks/PageNotFound.CLFUj6wN.js +0 -31
  48. package/es/chunks/PaginationTable.DCYPUxcZ.js +0 -357
  49. package/es/chunks/PluginDetail.CV8dYPPL.js +0 -223
  50. package/es/chunks/UpdatePasswordDialog.CkKA35QX.js +0 -110
  51. package/es/chunks/_plugin-vue_export-helper.Cf-_TWPK.js +0 -6
  52. package/es/chunks/layout.BqQQsRMO.js +0 -95
  53. package/es/chunks/layout.BuyWf5hx.js +0 -189
  54. package/es/chunks/utils.BhlZXNZ6.js +0 -19
  55. package/lib/chunks/AppIntro.CIDfpAQM.js +0 -1
  56. package/lib/chunks/BuildComponents.CmF7gV_k.js +0 -1
  57. package/lib/chunks/CustomDialog.lBdGLThM.js +0 -1
  58. package/lib/chunks/CustomDropdown.DS2fIdjY.js +0 -1
  59. package/lib/chunks/CustomPagination.Cyej-_3r.js +0 -1
  60. package/lib/chunks/CustomTab.DccrszIL.js +0 -1
  61. package/lib/chunks/GradientButton.DVbHjYJL.js +0 -1
  62. package/lib/chunks/PageNotFound.DWUdrtNX.js +0 -1
  63. package/lib/chunks/PaginationTable.BfbaK5Og.js +0 -1
  64. package/lib/chunks/PluginDetail.BUfKJRob.js +0 -1
  65. package/lib/chunks/UpdatePasswordDialog.B-POajDC.js +0 -1
  66. package/lib/chunks/_plugin-vue_export-helper.C55-DZV2.js +0 -1
  67. package/lib/chunks/layout.C5f-mOl4.js +0 -1
  68. package/lib/chunks/layout.uCgAET3T.js +0 -1
  69. package/lib/chunks/utils.BT5Uuz2Q.js +0 -1
@@ -1,9 +1,9 @@
1
- import { w as Be } from "./chunks/index.bCzIhWFw.js";
2
- import { useSlots as Ee, computed as m, ref as h, watch as oe, onMounted as Re, nextTick as ze, createElementBlock as E, openBlock as y, createElementVNode as S, createCommentVNode as R, unref as v, renderSlot as I, Fragment as Ne, createBlock as re, withCtx as j, createTextVNode as de, toDisplayString as Pe, createVNode as U, createSlots as Ae, renderList as We, normalizeProps as De, guardReactiveProps as _e, h as H } from "vue";
3
- import { ElButton as ce, ElAutoResizer as Ie, ElTableV2 as je, ElCheckbox as Oe } from "element-plus";
4
- import { emitsMap as fe, paginationConfig as qe, calculateScale as Ke } from "color-star-custom-methods";
5
- import { _ as Fe } from "./chunks/layout.BOupEsmd.js";
6
- import { cloneDeep as Ve } from "lodash";
1
+ import { w as ke } from "./chunks/index.bCzIhWFw.js";
2
+ import { useSlots as Ee, computed as m, ref as v, watch as oe, onMounted as Re, nextTick as ze, createElementBlock as E, openBlock as S, createElementVNode as y, createCommentVNode as R, unref as p, renderSlot as j, Fragment as Ne, createBlock as de, withCtx as O, createTextVNode as re, toDisplayString as Pe, createVNode as U, createSlots as Ae, renderList as We, normalizeProps as De, guardReactiveProps as Ie, h as H } from "vue";
3
+ import { ElButton as ce, ElAutoResizer as je, ElTableV2 as Oe, ElCheckbox as qe } from "element-plus";
4
+ import { emitsMap as fe, paginationConfig as Ke, calculateScale as Fe } from "color-star-custom-methods";
5
+ import { _ as Ve } from "./chunks/layout.BOupEsmd.js";
6
+ import { cloneDeep as _e } from "lodash";
7
7
  import { _ as $e } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
8
  import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col" }, Me = {
9
9
  class: "w-full flex justify-between overflow-hidden",
@@ -31,6 +31,14 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
31
31
  type: Boolean,
32
32
  default: !0
33
33
  },
34
+ disableBatchSelect: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ disableBatchSelectText: {
39
+ type: String,
40
+ default: ""
41
+ },
34
42
  // 总数
35
43
  total: {
36
44
  type: Number,
@@ -44,7 +52,7 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
44
52
  // 分页配置
45
53
  pagination: {
46
54
  type: Object,
47
- default: () => qe
55
+ default: () => Ke
48
56
  },
49
57
  // 查询参数
50
58
  params: {
@@ -102,25 +110,25 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
102
110
  "handleBatchDelete",
103
111
  "updateSortState"
104
112
  ],
105
- setup(p, { expose: he, emit: ve }) {
106
- const x = ve, u = p, O = Ee(), z = m(() => typeof u.requestFn == "function"), d = m({
113
+ setup(c, { expose: he, emit: ve }) {
114
+ const C = ve, u = c, q = Ee(), z = m(() => typeof u.requestFn == "function"), r = m({
107
115
  get: () => z.value ? b.value : u.tableData,
108
116
  set: (e) => {
109
- z.value ? b.value = e : x("updateTableData", e);
117
+ z.value ? b.value = e : C("updateTableData", e);
110
118
  }
111
- }), q = h(0), G = m(() => z.value ? q.value : u.total), w = m({
119
+ }), K = v(0), G = m(() => z.value ? K.value : u.total), w = m({
112
120
  get: () => u.sortState,
113
121
  set: (e) => {
114
- x("updateSortState", e);
122
+ C("updateSortState", e);
115
123
  }
116
124
  }), pe = ({ key: e, order: t }) => {
117
- w.value[e] = t, d.value = d.value.reverse();
118
- }, b = h([]), f = m(() => u.pageMapping.pageNum), N = m(() => u.pageMapping.pageSize), K = {
119
- [f.value]: 1,
125
+ w.value[e] = t, r.value = r.value.reverse();
126
+ }, b = v([]), h = m(() => u.pageMapping.pageNum), N = m(() => u.pageMapping.pageSize), F = {
127
+ [h.value]: 1,
120
128
  [N.value]: 20
121
- }, r = h({
122
- ...K
123
- }), g = h([]), i = h([]), J = h([]), C = h({}), Q = m(() => ge(C.value));
129
+ }, d = v({
130
+ ...F
131
+ }), g = v([]), i = v([]), J = v([]), x = v({}), Q = m(() => ge(x.value));
124
132
  function ge(e) {
125
133
  const t = /* @__PURE__ */ new Set();
126
134
  for (const l in e)
@@ -129,7 +137,7 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
129
137
  });
130
138
  return t;
131
139
  }
132
- const X = ({ value: e, intermediate: t = !1, onChange: l }) => H(Oe, {
140
+ const X = ({ value: e, intermediate: t = !1, onChange: l }) => H(qe, {
133
141
  onChange: l,
134
142
  modelValue: e,
135
143
  indeterminate: t
@@ -142,9 +150,9 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
142
150
  };
143
151
  l(e.children);
144
152
  }
145
- e.parentId && Y(e.parentId), ee(), k();
153
+ e.parentId && Y(e.parentId), ee(), T();
146
154
  }, Y = (e) => {
147
- const t = Z(d.value, e);
155
+ const t = Z(r.value, e);
148
156
  if (!t) return;
149
157
  const l = t.children.every((a) => a.selected);
150
158
  l && !t.selected ? (t.selected = !0, i.value.some((a) => a.id === t.id) || i.value.push(t)) : !l && t.selected && (t.selected = !1, i.value = i.value.filter(({ id: a }) => a !== t.id)), t.parentId && Y(t.parentId);
@@ -159,8 +167,8 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
159
167
  return null;
160
168
  };
161
169
  function ee() {
162
- C.value[r.value[f.value]] = te(
163
- d.value
170
+ x.value[d.value[h.value]] = te(
171
+ r.value
164
172
  );
165
173
  }
166
174
  function te(e) {
@@ -169,13 +177,13 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
169
177
  l.selected && t.push(l), l.children && l.children.length > 0 && (t = t.concat(te(l.children)));
170
178
  }), t;
171
179
  }
172
- function F(e, t) {
173
- e.selected = t, e.children && e.children.length > 0 && e.children.forEach((l) => F(l, t));
180
+ function V(e, t) {
181
+ e.selected = t, e.children && e.children.length > 0 && e.children.forEach((l) => V(l, t));
174
182
  }
175
- const ye = (e) => {
176
- const t = d.value.map((l) => (F(l, e), l));
177
- return d.value = [...t], ee(), i.value = e ? [...Object.values(C.value).flat()] : [], k(), [...i.value];
178
- }, Se = () => {
183
+ const Se = (e) => {
184
+ const t = r.value.map((l) => (V(l, e), l));
185
+ return r.value = [...t], ee(), i.value = e ? [...Object.values(x.value).flat()] : [], T(), [...i.value];
186
+ }, ye = () => {
179
187
  g.value.unshift({
180
188
  key: "selection",
181
189
  width: 50,
@@ -188,7 +196,7 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
188
196
  });
189
197
  },
190
198
  headerCellRenderer: () => {
191
- const e = v(d), t = e.every((a) => {
199
+ const e = p(r), t = e.every((a) => {
192
200
  const s = a.selected, o = le(a);
193
201
  return s && o;
194
202
  }), l = e.some((a) => a.selected || ae(a));
@@ -196,7 +204,7 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
196
204
  value: t,
197
205
  intermediate: l && !t,
198
206
  // 目前是当前页全选就是全选状态,也就是每页的全选状态单独的
199
- onChange: ye
207
+ onChange: Se
200
208
  });
201
209
  }
202
210
  });
@@ -218,24 +226,24 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
218
226
  return l.children && (l.children = ne(l.children)), l;
219
227
  });
220
228
  }
221
- const T = h(!1), Ce = () => {
222
- T.value = !0, Se();
223
- }, V = () => {
224
- T.value = !1, i.value = [], d.value = d.value.map((e) => (F(e, !1), e)), C.value = {}, b.value = ne(b.value), g.value.shift(), k();
225
- }, xe = () => {
226
- x("handleBatchDelete", {
227
- selectedRows: Object.values(C.value).flat(),
229
+ const B = v(!1), xe = () => {
230
+ B.value = !0, ye();
231
+ }, _ = () => {
232
+ B.value = !1, i.value = [], r.value = r.value.map((e) => (V(e, !1), e)), x.value = {}, b.value = ne(b.value), g.value.shift(), T();
233
+ }, Ce = () => {
234
+ C("handleBatchDelete", {
235
+ selectedRows: Object.values(x.value).flat(),
228
236
  // getAllSelectedNodes(finalTableData.value)
229
237
  cb: () => {
230
- V(), k();
238
+ _(), T();
231
239
  }
232
240
  });
233
241
  }, we = () => {
234
- i.value = [], k();
242
+ i.value = [], T();
235
243
  };
236
- function k() {
237
- const e = Object.values(C.value).flat();
238
- x("handleTableSelect", {
244
+ function T() {
245
+ const e = Object.values(x.value).flat();
246
+ C("handleTableSelect", {
239
247
  originNodeData: i.value,
240
248
  allSelectedNodes: e,
241
249
  // 所有选中的节点包含父节点
@@ -243,51 +251,51 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
243
251
  // 所有选中的子节点
244
252
  });
245
253
  }
246
- const B = () => {
254
+ const k = () => {
247
255
  z.value ? u.requestFn({
248
256
  ...u.params,
249
- ...r.value
257
+ ...d.value
250
258
  }).then((e) => {
251
259
  b.value = $(
252
260
  e?.data[u.tableDataKey],
253
- r.value[f.value],
261
+ d.value[h.value],
254
262
  Q.value
255
- ) || [], q.value = e?.data?.total;
263
+ ) || [], K.value = e?.data?.total;
256
264
  }) : (b.value = $(
257
265
  u.tableData,
258
- r.value[f.value],
266
+ d.value[h.value],
259
267
  Q.value
260
- ), q.value = u.total);
268
+ ), K.value = u.total);
261
269
  };
262
270
  function $(e, t, l, a = !1) {
263
271
  return e.map((s) => {
264
- const o = l.has(s.id) || a, c = {
272
+ const o = l.has(s.id) || a, f = {
265
273
  ...s,
266
274
  selected: o
267
275
  };
268
- return c.children && (c.children = $(
269
- c.children,
276
+ return f.children && (f.children = $(
277
+ f.children,
270
278
  t,
271
279
  l,
272
280
  o
273
281
  // 将当前选中状态传递给子节点
274
- )), c;
282
+ )), f;
275
283
  });
276
284
  }
277
- const Te = () => {
278
- r.value[f.value] = K[f.value], B();
279
- }, ke = () => {
280
- r.value = { ...K }, B();
285
+ const Be = () => {
286
+ d.value[h.value] = F[h.value], k();
287
+ }, Te = () => {
288
+ d.value = { ...F }, k();
281
289
  }, se = (e) => {
282
- e === "size" && (r.value[f.value] = 1), B(), x(fe.paginationChange, r.value);
283
- }, P = h(0), A = () => {
284
- let e = P.value, t = Ve(u.columns);
285
- const l = 1 / Ke(), a = t.filter((n) => n.fixedWidth), s = t.filter((n) => !n.fixedWidth);
290
+ e === "size" && (d.value[h.value] = 1), k(), C(fe.paginationChange, d.value);
291
+ }, P = v(0), A = () => {
292
+ let e = P.value, t = _e(u.columns);
293
+ const l = 1 / Fe(), a = t.filter((n) => n.fixedWidth), s = t.filter((n) => !n.fixedWidth);
286
294
  let o = 0;
287
295
  a.forEach((n) => {
288
296
  n.width && (o += n.width);
289
297
  });
290
- let c = e - o, L = 0;
298
+ let f = e - o, L = 0;
291
299
  s.forEach((n) => {
292
300
  n.width && (L += n.width);
293
301
  });
@@ -297,21 +305,21 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
297
305
  if (n.fixedWidth)
298
306
  D = n.width || 100;
299
307
  else if (n.width && L > 0) {
300
- const _ = n.width / L, M = c * _;
308
+ const I = n.width / L, M = f * I;
301
309
  D = Math.max(M, n.width);
302
310
  } else {
303
- const _ = s.filter((M) => !M.width);
304
- D = _.length > 0 ? c / _.length : c / s.length;
311
+ const I = s.filter((M) => !M.width);
312
+ D = I.length > 0 ? f / I.length : f / s.length;
305
313
  }
306
314
  ue.push(D);
307
- }), t = t.map((n, W) => (n.width = ue[W] * l, w.value && Object.keys(w.value).length && w.value[n.key] && (n.sortable = !0), n)), T.value) {
315
+ }), t = t.map((n, W) => (n.width = ue[W] * l, w.value && Object.keys(w.value).length && w.value[n.key] && (n.sortable = !0), n)), B.value) {
308
316
  const n = g.value.find((W) => W.key === "selection");
309
317
  n && (g.value = [n, ...t]);
310
318
  } else
311
319
  g.value = [...t];
312
320
  };
313
321
  oe(
314
- () => T.value,
322
+ () => B.value,
315
323
  () => {
316
324
  A();
317
325
  }
@@ -325,77 +333,79 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
325
333
  P.value = document.querySelector(".TABLE-AREA").getBoundingClientRect().width, A();
326
334
  };
327
335
  return Re(() => {
328
- B(), g.value = u.columns, P.value = document.querySelector(".TABLE-AREA").getBoundingClientRect().width, ze(() => {
336
+ k(), g.value = u.columns, P.value = document.querySelector(".TABLE-AREA").getBoundingClientRect().width, ze(() => {
329
337
  A();
330
338
  }), window.addEventListener("resize", ie);
331
339
  }), he({
332
- getTableList: B,
333
- search: Te,
334
- reset: ke,
340
+ getTableList: k,
341
+ search: Be,
342
+ reset: Te,
335
343
  initBatchSelect: we,
336
- handleCancelSelect: V,
344
+ handleCancelSelect: _,
337
345
  handleResize: ie
338
- }), (e, t) => (y(), E("div", Le, [
339
- S("div", Me, [
340
- v(O)["filter-left"] ? (y(), E("div", Ue, [
341
- I(e.$slots, "filter-left", {}, void 0, !0)
346
+ }), (e, t) => (S(), E("div", Le, [
347
+ y("div", Me, [
348
+ p(q)["filter-left"] ? (S(), E("div", Ue, [
349
+ j(e.$slots, "filter-left", {}, void 0, !0)
342
350
  ])) : R("", !0),
343
- S("div", He, [
344
- p.hasBatchSelect && d.value.length ? (y(), E(Ne, { key: 0 }, [
345
- T.value ? (y(), E("div", Ge, [
346
- S("div", Je, "已选" + Pe(i.value.length) + "条数据", 1),
347
- S("div", {
351
+ y("div", He, [
352
+ c.hasBatchSelect && r.value.length ? (S(), E(Ne, { key: 0 }, [
353
+ B.value ? (S(), E("div", Ge, [
354
+ y("div", Je, "已选" + Pe(i.value.length) + "条数据", 1),
355
+ y("div", {
348
356
  class: "fz-12 text-3b64ff mg-l-4 pointer",
349
- onClick: V
357
+ onClick: _
350
358
  }, "取消选择"),
351
- I(e.$slots, "btn-group", {}, () => [
352
- S("div", Qe, [
353
- U(v(ce), {
359
+ j(e.$slots, "btn-group", {}, () => [
360
+ y("div", Qe, [
361
+ U(p(ce), {
354
362
  type: "danger",
355
- onClick: xe,
363
+ onClick: Ce,
356
364
  disabled: !i.value.length
357
365
  }, {
358
- default: j(() => [...t[6] || (t[6] = [
359
- de(" 删除 ", -1)
366
+ default: O(() => [...t[6] || (t[6] = [
367
+ re(" 删除 ", -1)
360
368
  ])]),
361
369
  _: 1
362
370
  }, 8, ["disabled"])
363
371
  ])
364
372
  ], !0)
365
- ])) : (y(), re(v(ce), {
373
+ ])) : (S(), de(p(ce), {
366
374
  key: 0,
375
+ disabled: c.disableBatchSelect,
376
+ title: c.disableBatchSelect ? c.disableBatchSelectText : "",
367
377
  type: "default",
368
- onClick: Ce
378
+ onClick: xe
369
379
  }, {
370
- default: j(() => [...t[5] || (t[5] = [
371
- de(" 批量选择 ", -1)
380
+ default: O(() => [...t[5] || (t[5] = [
381
+ re(" 批量选择 ", -1)
372
382
  ])]),
373
383
  _: 1
374
- }))
384
+ }, 8, ["disabled", "title"]))
375
385
  ], 64)) : R("", !0),
376
- v(O)["filter-right"] ? I(e.$slots, "filter-right", { key: 1 }, void 0, !0) : R("", !0)
386
+ p(q)["filter-right"] ? j(e.$slots, "filter-right", { key: 1 }, void 0, !0) : R("", !0)
377
387
  ])
378
388
  ]),
379
- S("div", Xe, [
380
- S("div", Ye, [
381
- U(v(Ie), null, {
382
- default: j(({ width: l, height: a }) => [
383
- U(v(je), {
389
+ y("div", Xe, [
390
+ y("div", Ye, [
391
+ U(p(je), null, {
392
+ default: O(({ width: l, height: a }) => [
393
+ U(p(Oe), {
384
394
  "expanded-row-keys": J.value,
385
395
  "onUpdate:expandedRowKeys": t[0] || (t[0] = (s) => J.value = s),
386
- "expand-column-key": p.expandColumnKey,
396
+ "expand-column-key": c.expandColumnKey,
387
397
  columns: g.value,
388
- data: d.value,
398
+ data: r.value,
389
399
  width: l,
390
400
  height: a,
391
401
  fixed: "",
392
402
  "sort-state": w.value,
393
403
  onColumnSort: pe
394
404
  }, Ae({ _: 2 }, [
395
- We(v(O), (s, o) => ({
405
+ We(p(q), (s, o) => ({
396
406
  name: o,
397
- fn: j((c) => [
398
- I(e.$slots, o, De(_e(c)), void 0, !0)
407
+ fn: O((f) => [
408
+ j(e.$slots, o, De(Ie(f)), void 0, !0)
399
409
  ])
400
410
  }))
401
411
  ]), 1032, ["expanded-row-keys", "expand-column-key", "columns", "data", "width", "height", "sort-state"])
@@ -403,15 +413,15 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
403
413
  _: 3
404
414
  })
405
415
  ]),
406
- p.isPagination && G.value > r.value[N.value] ? (y(), E("div", Ze, [
407
- p.isPagination ? (y(), re(Fe, {
416
+ c.isPagination && G.value > d.value[N.value] ? (S(), E("div", Ze, [
417
+ c.isPagination ? (S(), de(Ve, {
408
418
  key: 0,
409
- "current-page": r.value[f.value],
410
- "onUpdate:currentPage": t[1] || (t[1] = (l) => r.value[f.value] = l),
411
- "page-size": r.value[N.value],
412
- "onUpdate:pageSize": t[2] || (t[2] = (l) => r.value[N.value] = l),
413
- "page-sizes": p.pagination.pageSizes,
414
- layout: p.pagination.layout,
419
+ "current-page": d.value[h.value],
420
+ "onUpdate:currentPage": t[1] || (t[1] = (l) => d.value[h.value] = l),
421
+ "page-size": d.value[N.value],
422
+ "onUpdate:pageSize": t[2] || (t[2] = (l) => d.value[N.value] = l),
423
+ "page-sizes": c.pagination.pageSizes,
424
+ layout: c.pagination.layout,
415
425
  total: G.value,
416
426
  onSizeChange: t[3] || (t[3] = (l) => se("size")),
417
427
  onCurrentChange: t[4] || (t[4] = (l) => se("page"))
@@ -420,8 +430,8 @@ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col"
420
430
  ])
421
431
  ]));
422
432
  }
423
- }), tt = /* @__PURE__ */ $e(et, [["__scopeId", "data-v-54ada1ae"]]), rt = Be(tt);
433
+ }), tt = /* @__PURE__ */ $e(et, [["__scopeId", "data-v-4c0f4397"]]), dt = ke(tt);
424
434
  export {
425
- rt as PaginationTable,
426
- rt as default
435
+ dt as PaginationTable,
436
+ dt as default
427
437
  };
@@ -267,7 +267,7 @@ import './assets/PluginDetail.css';const k = {
267
267
  v(e.$slots, "plugin-detail", {}, void 0, !0)
268
268
  ], 64));
269
269
  }
270
- }), ee = /* @__PURE__ */ L(Z, [["__scopeId", "data-v-70e5945d"]]), oe = x(ee), ue = x(O);
270
+ }), ee = /* @__PURE__ */ L(Z, [["__scopeId", "data-v-0f330248"]]), oe = x(ee), ue = x(O);
271
271
  export {
272
272
  oe as PluginDetail,
273
273
  ue as PluginDetailParamsTable,
@@ -1,6 +1,6 @@
1
1
  import { w as h } from "./chunks/index.bCzIhWFw.js";
2
- import { ref as P, computed as v, createBlock as x, openBlock as C, withCtx as b, createVNode as I, unref as c, isRef as D } from "vue";
3
- import { C as E } from "./chunks/layout.BlsXj4-t.js";
2
+ import { ref as P, computed as v, createBlock as x, openBlock as C, withCtx as I, createVNode as D, unref as c, isRef as b } from "vue";
3
+ import { C as E } from "./chunks/layout.Co1Edcgs.js";
4
4
  import { SearchBar as k } from "color-star-custom-components";
5
5
  import { componentType as w, emitsMap as u, codeMap as y, messageSuccess as A } from "color-star-custom-methods";
6
6
  import { AESCrypto as M } from "ling-yun-methods";
@@ -97,10 +97,10 @@ import './assets/UpdatePasswordDialog.css';const B = () => {
97
97
  width: "568px",
98
98
  "destroy-on-close": ""
99
99
  }, {
100
- default: b(() => [
101
- I(c(k), {
100
+ default: I(() => [
101
+ D(c(k), {
102
102
  modelValue: c(e),
103
- "onUpdate:modelValue": s[0] || (s[0] = (r) => D(e) ? e.value = r : null),
103
+ "onUpdate:modelValue": s[0] || (s[0] = (r) => b(e) ? e.value = r : null),
104
104
  ref_key: "formRef",
105
105
  ref: t,
106
106
  items: c(g),
@@ -113,7 +113,7 @@ import './assets/UpdatePasswordDialog.css';const B = () => {
113
113
  _: 1
114
114
  }, 8, ["modelValue", "buttons"]));
115
115
  }
116
- }, S = /* @__PURE__ */ U(F, [["__scopeId", "data-v-befba0a5"]]), Z = h(S);
116
+ }, S = /* @__PURE__ */ U(F, [["__scopeId", "data-v-3869794e"]]), Z = h(S);
117
117
  export {
118
118
  Z as UpdatePasswordDialog,
119
119
  Z as default
@@ -1 +1 @@
1
- .media-video[data-v-6cc88baf],.media-image[data-v-6cc88baf]{width:262px;height:148px}.media-image img[data-v-6cc88baf]{object-fit:cover}.hover-overlay[data-v-1201fcb2]{background:#00000080}.title-desc[data-v-1201fcb2]{min-width:80px;text-align:right;color:var(--text-color-4)}.value-desc[data-v-1201fcb2]{color:var(--text-color-1)}.preview-content[data-v-1201fcb2] .media-image{width:100%!important;height:100%!important}[data-v-c5a86032] .el-timeline-item__timestamp{color:#86909c}[data-v-c5a86032] .el-card{background:var(--neutral-color-18)}
1
+ .media-video[data-v-2811b983],.media-image[data-v-2811b983]{width:262px;height:148px}.media-image img[data-v-2811b983]{object-fit:cover}.hover-overlay[data-v-6fa282a2]{background:#00000080}.title-desc[data-v-6fa282a2]{min-width:80px;text-align:right;color:var(--text-color-4)}.value-desc[data-v-6fa282a2]{color:var(--text-color-1)}.preview-content[data-v-6fa282a2] .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)}
@@ -1 +1 @@
1
- .text-3d3d3d[data-v-6c740489]{color:#3d3d3d}.text-5a5a5a[data-v-6c740489]{color:#5a5a5a}.lh-38[data-v-6c740489]{line-height:38px}.lh-24[data-v-6c740489]{line-height:24px}.text-gradient-bg[data-v-6c740489]{background:linear-gradient(15.1914541017deg,#1ba3fa 0% 2%,#4520fb);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;padding-bottom:50px}.w-340[data-v-6c740489]{width:340px}.h-180[data-v-6c740489]{height:180px}.w-210[data-v-6c740489]{width:210px}.h-132[data-v-6c740489]{height:132px}.shadow[data-v-6c740489]{box-shadow:0 4px 11px #0000000d;border:1px solid rgba(255,255,255,.7)}.build-button[data-v-6c740489]{padding-top:116px}.arrow-icon[data-v-6c740489]{width:76px}.title-position[data-v-6c740489]{top:0;left:0}.desc-position[data-v-6c740489]{bottom:20px;left:0}.w-50[data-v-6c740489]{width:50px}
1
+ .text-3d3d3d[data-v-1aa8c94d]{color:#3d3d3d}.text-5a5a5a[data-v-1aa8c94d]{color:#5a5a5a}.lh-38[data-v-1aa8c94d]{line-height:38px}.lh-24[data-v-1aa8c94d]{line-height:24px}.text-gradient-bg[data-v-1aa8c94d]{background:linear-gradient(15.1914541017deg,#1ba3fa 0% 2%,#4520fb);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;padding-bottom:50px}.w-340[data-v-1aa8c94d]{width:340px}.h-180[data-v-1aa8c94d]{height:180px}.w-210[data-v-1aa8c94d]{width:210px}.h-132[data-v-1aa8c94d]{height:132px}.shadow[data-v-1aa8c94d]{box-shadow:0 4px 11px #0000000d;border:1px solid rgba(255,255,255,.7)}.build-button[data-v-1aa8c94d]{padding-top:116px}.arrow-icon[data-v-1aa8c94d]{width:76px}.title-position[data-v-1aa8c94d]{top:0;left:0}.desc-position[data-v-1aa8c94d]{bottom:20px;left:0}.w-50[data-v-1aa8c94d]{width:50px}
@@ -1 +1 @@
1
- .custom-dropdown-trigger[data-v-41e8a5ad]{display:flex;align-items:center;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background-color .3s ease}.custom-dropdown-trigger[data-v-41e8a5ad]:hover{background-color:#0000000d}
1
+ .custom-dropdown-trigger[data-v-e644416c]{display:flex;align-items:center;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background-color .3s ease}.custom-dropdown-trigger[data-v-e644416c]:hover{background-color:#0000000d}
@@ -1 +1 @@
1
- [data-v-b3162d3e] .el-tabs__item.is-active{background:linear-gradient(270deg,#6788ff,#878bff);border-radius:14px 14px 0 0;color:#fff!important}[data-v-b3162d3e] .el-tabs__item{background:#eef0f7;border-radius:14px 14px 0 0;border:1px solid #e4e6ed;padding:8px 24px;color:var(--text-color-2)!important}[data-v-b3162d3e] .el-tabs__nav.is-top{border:none!important}
1
+ [data-v-f936627f] .el-tabs__item.is-active{background:linear-gradient(270deg,#6788ff,#878bff);border-radius:14px 14px 0 0;color:#fff!important}[data-v-f936627f] .el-tabs__item{background:#eef0f7;border-radius:14px 14px 0 0;border:1px solid #e4e6ed;padding:8px 24px;color:var(--text-color-2)!important}[data-v-f936627f] .el-tabs__nav.is-top{border:none!important}
@@ -1 +1 @@
1
- .gradient-btn[data-v-340820c2]{padding:1px}
1
+ .gradient-btn[data-v-fab649f9]{padding:1px}
@@ -1 +1 @@
1
- [data-v-54ada1ae] .el-table-v2__header-cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
1
+ [data-v-4c0f4397] .el-table-v2__header-cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@@ -1 +1 @@
1
- .hide-more[data-v-70e5945d]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.border-f0f0f0[data-v-70e5945d]{border:1px solid var(--neutral-color-6)}
1
+ .hide-more[data-v-0f330248]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.border-f0f0f0[data-v-0f330248]{border:1px solid var(--neutral-color-6)}
@@ -1 +1 @@
1
- [data-v-befba0a5] .search-bar-form.el-form--inline.el-form--label-top{padding-bottom:10px}
1
+ [data-v-3869794e] .search-bar-form.el-form--inline.el-form--label-top{padding-bottom:10px}
@@ -1 +1 @@
1
- .dialog-content[data-v-09a941ae]{height:calc(100% - 230px);overflow:auto}.title-name[data-v-09a941ae]{padding:16px}.custom-dialog-page.el-dialog{height:calc(100% - 78px)!important;overflow:hidden;display:flex;flex-direction:column}.custom-dialog-page.el-dialog .el-dialog__body{flex:1;overflow-y:auto}
1
+ .dialog-content[data-v-10516be1]{height:calc(100% - 230px);overflow:auto}.title-name[data-v-10516be1]{padding:16px}.custom-dialog-page.el-dialog{height:calc(100% - 78px)!important;overflow:hidden;display:flex;flex-direction:column}.custom-dialog-page.el-dialog .el-dialog__body{flex:1;overflow-y:auto}
@@ -225,7 +225,7 @@ import '../assets/layout.css';const t = {
225
225
  _: 3
226
226
  }, 16, ["modelValue", "width", "top", "style", "modal", "modal-penetrable", "append-to-body", "class"]));
227
227
  }
228
- }), ce = /* @__PURE__ */ K(te, [["__scopeId", "data-v-09a941ae"]]);
228
+ }), ce = /* @__PURE__ */ K(te, [["__scopeId", "data-v-10516be1"]]);
229
229
  export {
230
230
  ce as C
231
231
  };
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._ESCIMbo.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-6cc88baf"]]),$={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-1201fcb2"]]),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-c5a86032"]]),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"),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;