ss-component-new 1.3.296 → 1.3.298
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/dist/{MTLLoader-BOBkrSfe.js → MTLLoader-QOhYCFfg.js} +1 -1
- package/dist/{OrbitControls-Dv9oFyLz.js → OrbitControls-BYkzMsSX.js} +1 -1
- package/dist/{URDFLoader-CkLxRSym.js → URDFLoader-0Z7i50uS.js} +2 -2
- package/dist/{animationData-B4mCFW0Z.js → animationData-B2ukhquH.js} +1 -1
- package/dist/{array-Dyq4XhuN.js → array-DqQ10pgf.js} +56 -56
- package/dist/{array-B92nmZ3e.cjs → array-T9nqLG8-.cjs} +1 -1
- package/dist/{iconfont-Dd30Cjr5.js → iconfont-T5Fea0KO.js} +2 -2
- package/dist/{index-DIHCeGuk.cjs → index-4EJ5L5Xz.cjs} +1 -1
- package/dist/index-AOAI-kQ6.cjs +1 -0
- package/dist/{index-C32uAsQO.js → index-B7SicFCg.js} +4 -4
- package/dist/{index-QP6pNDrh.cjs → index-B7uNKUJO.cjs} +1 -1
- package/dist/index-BWXeV0Xd.js +494 -0
- package/dist/{index-BpzCJnoT.js → index-BfuVz3K9.js} +1 -1
- package/dist/index-BgfmfNPA.js +9698 -0
- package/dist/{index-UWPwt-jl.js → index-Bn7knDwT.js} +3 -3
- package/dist/{index-DLJBDAUp.js → index-C7GJL6z-.js} +1 -1
- package/dist/{index-DmOH3yXH.cjs → index-CBcfU3m6.cjs} +1 -1
- package/dist/{index-tT9c2s2F.js → index-CCr9nElf.js} +37 -34
- package/dist/index-CKTsZdkH.cjs +1 -0
- package/dist/{index-zuL3t5Wr.cjs → index-CNNvnXL-.cjs} +1 -1
- package/dist/{index-ElpZs-E-.cjs → index-CcukUQFg.cjs} +1 -1
- package/dist/index-CgJcqeX6.cjs +2 -0
- package/dist/{index-CUyRzcId.js → index-Ck4FzhK5.js} +1 -1
- package/dist/{index-D4w4YErl.cjs → index-D19XK7TO.cjs} +1 -1
- package/dist/{index-B8Aon_1a.js → index-DEyzTMWb.js} +8914 -8905
- package/dist/{index-10cIo1OB.cjs → index-DRwDJR5N.cjs} +1 -1
- package/dist/{index-BILc9IPu.cjs → index-D_gRgix8.cjs} +1 -1
- package/dist/{index-fZgBoSVt.js → index-Dai4JO2O.js} +1 -1
- package/dist/{index-C8liwVWm.js → index-DoKZdFff.js} +3 -3
- package/dist/{index-CsHESydV.js → index-DsrGHWEC.js} +2 -2
- package/dist/{index-CFsqIG7u.cjs → index-GO1Lz7Zt.cjs} +1 -1
- package/dist/{index-Bp3b_ow5.js → index-_-BYjVt0.js} +1 -1
- package/dist/{index-DFvG0KxB.cjs → index-ejX66qtQ.cjs} +1 -1
- package/dist/{index-BdM1fkpo.js → index-fUAdrzUM.js} +1 -1
- package/dist/index-mssdamNL.cjs +25 -0
- package/dist/{index-Drb_dYeM.js → index-oQh1Uggj.js} +1 -1
- package/dist/{index-B2EKs9L9.js → index-q95IIhgh.js} +6 -6
- package/dist/{index-DXpl-sR-.js → index-xffrXm5v.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-C92zyRB7.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DLhSjOxx.js} +2 -2
- package/dist/{main-Cq2fWzA_.cjs → main-BZlQ_ZJE.cjs} +1 -1
- package/dist/{main-BDJzFbLL.js → main-lz6P4Grc.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-DIdIJ99Q.cjs → threeModel-B8eFQDHt.cjs} +1 -1
- package/dist/{threeModel-CrdhZxJh.js → threeModel-CwmK2TwD.js} +35 -35
- package/dist/{threePreview-BfNy0TQL.js → threePreview-DtTo1E4j.js} +3 -3
- package/dist/{threeSceneView-B8Os_D7c.js → threeSceneView-Cqbj-LVO.js} +8 -8
- package/dist/{threeSceneView-3p0o71BQ.cjs → threeSceneView-DTG1bI4T.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DAYNTC7g.cjs → threeSceneViewForCPMPIP-CbvF6hkZ.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-Dn50xIWm.js → threeSceneViewForCPMPIP-yD2zYzyp.js} +7 -7
- package/dist/{threeTrackPathView-DaPoMzkC.js → threeTrackPathView-CMukJRgd.js} +3 -3
- package/dist/{threeViewerHost-CKFQOVbT.js → threeViewerHost-DDYA5LuC.js} +2 -2
- package/dist/{threeViewerHost-BkgI8zZM.cjs → threeViewerHost-tSqOUmM_.cjs} +1 -1
- package/dist/{urdfTree-dQ-2fOQE.js → urdfTree-Cfw6km7X.js} +1 -1
- package/dist/{workpieceTreePanel-Di20N5y6.js → workpieceTreePanel-D3uYkSze.js} +4 -4
- package/package.json +1 -1
- package/dist/index-BwyBfUCz.cjs +0 -1
- package/dist/index-CAM7iYGV.js +0 -9611
- package/dist/index-CJlApKvn.cjs +0 -25
- package/dist/index-Cxujb_7E.js +0 -494
- package/dist/index-D-RfdXBa.cjs +0 -1
- package/dist/index-DdtEeDTm.cjs +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as Z, Z as Y, x as D, C as P, f as S, a3 as H, V as O, _ as A, v as ie, a4 as N, aK as K, a0 as B, m as ne, aO as X, a1 as W, j as $, ap as ae, a6 as oe, aH as le, a$ as q, ar as Q, bb as ce, ay as he } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
1
|
+
import { Y as Z, Z as Y, x as D, C as P, f as S, a3 as H, V as O, _ as A, v as ie, a4 as N, aK as K, a0 as B, m as ne, aO as X, a1 as W, j as $, ap as ae, a6 as oe, aH as le, a$ as q, ar as Q, bb as ce, ay as he } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DLhSjOxx.js";
|
|
2
2
|
class xe extends Z {
|
|
3
3
|
/**
|
|
4
4
|
* Constructs a new STL loader.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bl as S, V as p, M as u, bm as _, av as E, bn as P, ar as c, bo as w, o as O, q as R } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
1
|
+
import { bl as S, V as p, M as u, bm as _, av as E, bn as P, ar as c, bo as w, o as O, q as R } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DLhSjOxx.js";
|
|
2
2
|
const D = { type: "change" }, b = { type: "start" }, M = { type: "end" }, f = new w(), T = new O(), j = Math.cos(70 * R.DEG2RAD), n = new p(), r = 2 * Math.PI, o = {
|
|
3
3
|
NONE: -1,
|
|
4
4
|
ROTATE: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Ln } from "./MTLLoader-
|
|
2
|
-
import { b9 as vn, aB as Rn, Y as lt, ap as At, Z as In, V as pe, p as he, aL as dt, S as Mn, ay as Tt, C as ut, q as Le, aS as ft, ba as Sn, m as ve, a$ as Se, f as me, ar as On, n as Gn, a6 as qn, P as ht, aQ as Pn, k as jn, at as Fn, l as Un, D as Hn, v as pt, av as Et, aY as mt, a_ as Bn, x as zn, _ as ye, aT as Dn, a4 as bt, aN as Vn, j as Ce, z as Jn, aO as Kn, aR as Wn, aH as Oe, aJ as gt, bb as Yn, bc as Xn, bd as yt, be as $n, bf as Zn, bg as Qn, bh as ei, a2 as ti, bi as ni, bj as ii, E as si } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
1
|
+
import { S as Ln } from "./MTLLoader-QOhYCFfg.js";
|
|
2
|
+
import { b9 as vn, aB as Rn, Y as lt, ap as At, Z as In, V as pe, p as he, aL as dt, S as Mn, ay as Tt, C as ut, q as Le, aS as ft, ba as Sn, m as ve, a$ as Se, f as me, ar as On, n as Gn, a6 as qn, P as ht, aQ as Pn, k as jn, at as Fn, l as Un, D as Hn, v as pt, av as Et, aY as mt, a_ as Bn, x as zn, _ as ye, aT as Dn, a4 as bt, aN as Vn, j as Ce, z as Jn, aO as Kn, aR as Wn, aH as Oe, aJ as gt, bb as Yn, bc as Xn, bd as yt, be as $n, bf as Zn, bg as Qn, bh as ei, a2 as ti, bi as ni, bj as ii, E as si } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DLhSjOxx.js";
|
|
3
3
|
class wt extends vn {
|
|
4
4
|
/**
|
|
5
5
|
* Constructs a new TGA loader.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as K, m as C, d as x } from "./index-B846yqBS.js";
|
|
2
|
-
import { u as N, b8 as S } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
2
|
+
import { u as N, b8 as S } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DLhSjOxx.js";
|
|
3
3
|
import { c as O } from "./menu-BMAZOS2j.js";
|
|
4
4
|
const g = async (n) => {
|
|
5
5
|
const e = n.join("/"), c = sessionStorage.getItem("systemKey");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as k, computed as ae, resolveComponent as te, createElementBlock as M, openBlock as p, Fragment as ue, renderList as ce, createElementVNode as w, toDisplayString as re, createVNode as R, reactive as la, watch as be, createBlock as j, resolveDynamicComponent as le, unref as _, withCtx as L, isRef as
|
|
2
|
-
import {
|
|
1
|
+
import { ref as k, computed as ae, resolveComponent as te, createElementBlock as M, openBlock as p, Fragment as ue, renderList as ce, createElementVNode as w, toDisplayString as re, createVNode as R, reactive as la, watch as be, createBlock as j, resolveDynamicComponent as le, unref as _, withCtx as L, isRef as Ye, createTextVNode as de, createCommentVNode as q, normalizeStyle as ta, withModifiers as ve, normalizeClass as qe, nextTick as na } from "vue";
|
|
2
|
+
import { Y as Ie, g as aa, D as oa, F as sa, G as Je, c as ra } from "./index-DEyzTMWb.js";
|
|
3
3
|
import { a as Ce, p as he, s as ie, c as K, u as ke } from "./menu-BMAZOS2j.js";
|
|
4
4
|
import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import ua from "./index-rlStojTL.js";
|
|
6
|
-
import { d as ca, c as ia } from "./index-
|
|
6
|
+
import { d as ca, c as ia } from "./index-q95IIhgh.js";
|
|
7
7
|
import { s as da } from "./index-CnjGqJZS.js";
|
|
8
8
|
import { E as va } from "./index-CkXAOjdK.js";
|
|
9
9
|
import { E as pa } from "./request-CoGtW0Ux.js";
|
|
@@ -83,7 +83,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
83
83
|
]);
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
}, ul = /* @__PURE__ */ we(ba, [["__scopeId", "data-v-951fb5b4"]]), ye = Ce(he), { pageMapState: _a } = ie(ye), Ca = ke(), { activeMenuPath: ge } = ie(Ca),
|
|
86
|
+
}, ul = /* @__PURE__ */ we(ba, [["__scopeId", "data-v-951fb5b4"]]), ye = Ce(he), { pageMapState: _a } = ie(ye), Ca = ke(), { activeMenuPath: ge } = ie(Ca), J = k([
|
|
87
87
|
// [
|
|
88
88
|
// {
|
|
89
89
|
// "id": 732285669982280
|
|
@@ -203,7 +203,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
key: "tableContents",
|
|
206
|
-
contents:
|
|
206
|
+
contents: J.value
|
|
207
207
|
}
|
|
208
208
|
]
|
|
209
209
|
}
|
|
@@ -293,13 +293,13 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
293
293
|
]
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
]), N = k([]),
|
|
296
|
+
]), N = k([]), Xe = ae(() => {
|
|
297
297
|
var a;
|
|
298
298
|
return (a = N.value) == null ? void 0 : a.map((n, i) => ({
|
|
299
299
|
value: n == null ? void 0 : n.id,
|
|
300
300
|
label: n == null ? void 0 : n.name
|
|
301
301
|
}));
|
|
302
|
-
}), _e = k("data"), oe = k("任务配置"), fe = k({}),
|
|
302
|
+
}), _e = k("data"), oe = k("任务配置"), fe = k({}), X = k(null), W = la({
|
|
303
303
|
width: "30%",
|
|
304
304
|
title: "任务配置",
|
|
305
305
|
type: "创建",
|
|
@@ -309,29 +309,29 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
309
309
|
}, Ia = (a, n) => {
|
|
310
310
|
var s, C, r, x, f, H, $, O, F;
|
|
311
311
|
if (fe.value = K(n), a === "删除")
|
|
312
|
-
return oe.value === "任务配置" ?
|
|
312
|
+
return oe.value === "任务配置" ? J.value = (s = J.value) == null ? void 0 : s.filter((D) => (D == null ? void 0 : D.id) !== (n == null ? void 0 : n.id)) : oe.value === "任务关联" && (ne.value = (C = ne.value) == null ? void 0 : C.filter((D) => (D == null ? void 0 : D.id) !== (n == null ? void 0 : n.id))), ye.setItemExtendData({
|
|
313
313
|
任务配置: {
|
|
314
314
|
pageKey: ge.value,
|
|
315
|
-
compId: (r =
|
|
316
|
-
results:
|
|
315
|
+
compId: (r = X.value) == null ? void 0 : r.id,
|
|
316
|
+
results: J.value
|
|
317
317
|
},
|
|
318
318
|
任务关联: {
|
|
319
319
|
pageKey: ge.value,
|
|
320
|
-
compId: (x =
|
|
320
|
+
compId: (x = X.value) == null ? void 0 : x.id,
|
|
321
321
|
results: ne.value
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
const i = n ? (f = Object.keys(n)) == null ? void 0 : f[1] : "";
|
|
325
|
-
oe.value === "任务配置" ? W.title = `当前配置:${(H =
|
|
325
|
+
oe.value === "任务配置" ? W.title = `当前配置:${(H = X.value) == null ? void 0 : H.name}>任务配置>【${(n == null ? void 0 : n[i]) || a}】` : oe.value === "任务关联" && (W.title = `当前配置:${($ = X.value) == null ? void 0 : $.name}>任务关联>【${(n == null ? void 0 : n[i]) || a}】`), W.type = typeof ((O = fe.value) == null ? void 0 : O.id) == "string" || !((F = fe.value) != null && F.id) ? "创建" : "编辑", W.show = a === "创建" || a === "访问";
|
|
326
326
|
}, ka = (a) => {
|
|
327
327
|
var n;
|
|
328
|
-
typeof a == "number" && (
|
|
328
|
+
typeof a == "number" && (X.value = (n = N.value) == null ? void 0 : n[a], Sa()), _e.value = "data";
|
|
329
329
|
}, wa = (a) => {
|
|
330
330
|
}, xa = (a) => {
|
|
331
331
|
var n, i;
|
|
332
332
|
switch (oe.value) {
|
|
333
333
|
case "任务配置":
|
|
334
|
-
W.type === "创建" ?
|
|
334
|
+
W.type === "创建" ? J.value.push(a == null ? void 0 : a.data) : J.value = (n = J.value) == null ? void 0 : n.map((s) => {
|
|
335
335
|
var C;
|
|
336
336
|
return (s == null ? void 0 : s.id) === ((C = a == null ? void 0 : a.data) == null ? void 0 : C.id) ? {
|
|
337
337
|
...s,
|
|
@@ -349,11 +349,11 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
349
349
|
});
|
|
350
350
|
break;
|
|
351
351
|
}
|
|
352
|
-
console.log("handleTableData:",
|
|
352
|
+
console.log("handleTableData:", J.value, a, W.type), ye.setItemExtendData({
|
|
353
353
|
任务配置: {
|
|
354
354
|
pageKey: ge.value,
|
|
355
355
|
compId: a == null ? void 0 : a.compId,
|
|
356
|
-
results:
|
|
356
|
+
results: J.value
|
|
357
357
|
},
|
|
358
358
|
任务关联: {
|
|
359
359
|
pageKey: ge.value,
|
|
@@ -367,7 +367,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
367
367
|
W.show = !1;
|
|
368
368
|
else if ((a == null ? void 0 : a.buttonName) === "保存") {
|
|
369
369
|
const s = {
|
|
370
|
-
compId: (n =
|
|
370
|
+
compId: (n = X.value) == null ? void 0 : n.id,
|
|
371
371
|
data: {
|
|
372
372
|
...a == null ? void 0 : a.content,
|
|
373
373
|
id: (i = fe.value) == null ? void 0 : i.id
|
|
@@ -392,7 +392,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
392
392
|
var i;
|
|
393
393
|
return (i = a == null ? void 0 : a.filter((s) => {
|
|
394
394
|
var C, r, x, f, H;
|
|
395
|
-
return ((r = (C = s == null ? void 0 : s.key) == null ? void 0 : C.relatedInfo) == null ? void 0 : r.target) === n && ((f = (x = s == null ? void 0 : s.key) == null ? void 0 : x.relatedInfo) == null ? void 0 : f.compId) === ((H =
|
|
395
|
+
return ((r = (C = s == null ? void 0 : s.key) == null ? void 0 : C.relatedInfo) == null ? void 0 : r.target) === n && ((f = (x = s == null ? void 0 : s.key) == null ? void 0 : x.relatedInfo) == null ? void 0 : f.compId) === ((H = X.value) == null ? void 0 : H.id);
|
|
396
396
|
})) == null ? void 0 : i.map((s) => {
|
|
397
397
|
var C;
|
|
398
398
|
return {
|
|
@@ -406,7 +406,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
406
406
|
var C;
|
|
407
407
|
return ((C = s == null ? void 0 : s.key) == null ? void 0 : C.type) === "extend";
|
|
408
408
|
});
|
|
409
|
-
(a == null ? void 0 : a.length) !== 0 && (
|
|
409
|
+
(a == null ? void 0 : a.length) !== 0 && (J.value = ea(a, "任务配置"), ne.value = ea(a, "任务关联"));
|
|
410
410
|
}, Ra = { class: "fill-content" }, La = { class: "overall-config-wrapper" }, Ma = { class: "operate-content" }, $a = ["onClick"], Ha = {
|
|
411
411
|
class: "collapse-title-item",
|
|
412
412
|
title: "编辑"
|
|
@@ -462,8 +462,8 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
462
462
|
let h = K(i.value);
|
|
463
463
|
h = (V = h == null ? void 0 : h.map((u, y) => {
|
|
464
464
|
if (v && y === g) {
|
|
465
|
-
const { compData: d, itemChildData:
|
|
466
|
-
return u.compData = d, u.itemChildData =
|
|
465
|
+
const { compData: d, itemChildData: Y } = c;
|
|
466
|
+
return u.compData = d, u.itemChildData = Y, u;
|
|
467
467
|
}
|
|
468
468
|
return y === g && (u.compData = c), u;
|
|
469
469
|
})) == null ? void 0 : V.filter((u) => (u == null ? void 0 : u.comp) !== "methodButton"), f.value = (G = K(h)) == null ? void 0 : G.map((u, y) => ({
|
|
@@ -500,7 +500,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
500
500
|
w("div", La, [
|
|
501
501
|
(p(), j(le(B($.value + "style")), {
|
|
502
502
|
target: "overall",
|
|
503
|
-
optionItems: _(
|
|
503
|
+
optionItems: _(Xe),
|
|
504
504
|
compType: $.value,
|
|
505
505
|
comp: (G = _(N)) == null ? void 0 : G[0],
|
|
506
506
|
onChange: _(Qe)
|
|
@@ -516,14 +516,14 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
516
516
|
ref: P
|
|
517
517
|
}, {
|
|
518
518
|
title: L(({ item: u, index: y, isActive: d }) => {
|
|
519
|
-
var
|
|
519
|
+
var Y, E, z, l, o, m, I, b, Q, se;
|
|
520
520
|
return [
|
|
521
521
|
w("div", {
|
|
522
522
|
class: "collapse-title-content",
|
|
523
523
|
onClick: (T) => U(y, d)
|
|
524
524
|
}, [
|
|
525
525
|
w("div", Ha, [
|
|
526
|
-
(E = (
|
|
526
|
+
(E = (Y = f.value) == null ? void 0 : Y.find((T) => T.id === y)) != null && E.content ? q("", !0) : (p(), M("div", {
|
|
527
527
|
key: 0,
|
|
528
528
|
class: "collapse-title",
|
|
529
529
|
style: ta({ marginRight: u.name && u.name !== "" ? "8px" : "0px" })
|
|
@@ -535,8 +535,8 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
535
535
|
onClick: t[0] || (t[0] = ve(() => {
|
|
536
536
|
}, ["stop"]))
|
|
537
537
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
538
|
-
])) :
|
|
539
|
-
(m = (o = f.value) == null ? void 0 : o.find((T) => T.id === y)) != null && m.content ?
|
|
538
|
+
])) : q("", !0),
|
|
539
|
+
(m = (o = f.value) == null ? void 0 : o.find((T) => T.id === y)) != null && m.content ? q("", !0) : (p(), M("div", {
|
|
540
540
|
key: 2,
|
|
541
541
|
onClick: ve((T) => O(y), ["stop"]),
|
|
542
542
|
class: "icon-content"
|
|
@@ -561,8 +561,8 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
561
561
|
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
562
562
|
class: "icon-content"
|
|
563
563
|
}, null, 8, ["onClick"])
|
|
564
|
-
])) :
|
|
565
|
-
(se = (Q = f.value) == null ? void 0 : Q.find((T) => T.id === y)) != null && se.content ?
|
|
564
|
+
])) : q("", !0),
|
|
565
|
+
(se = (Q = f.value) == null ? void 0 : Q.find((T) => T.id === y)) != null && se.content ? q("", !0) : (p(), M("div", {
|
|
566
566
|
key: 1,
|
|
567
567
|
onClick: ve((T) => A(y), ["stop"]),
|
|
568
568
|
class: "icon-content"
|
|
@@ -579,7 +579,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
579
579
|
content: L(({ item: u, index: y }) => [
|
|
580
580
|
R(V, {
|
|
581
581
|
modelValue: _(_e),
|
|
582
|
-
"onUpdate:modelValue": t[2] || (t[2] = (d) =>
|
|
582
|
+
"onUpdate:modelValue": t[2] || (t[2] = (d) => Ye(_e) ? _e.value = d : null),
|
|
583
583
|
class: "config-tabs",
|
|
584
584
|
onTabClick: U
|
|
585
585
|
}, {
|
|
@@ -598,7 +598,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
598
598
|
])
|
|
599
599
|
]),
|
|
600
600
|
default: L(() => {
|
|
601
|
-
var d,
|
|
601
|
+
var d, Y;
|
|
602
602
|
return [
|
|
603
603
|
w("div", {
|
|
604
604
|
class: "comp-child",
|
|
@@ -606,7 +606,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
606
606
|
}, [
|
|
607
607
|
(p(), j(le(B(u.comp + "Operate")), {
|
|
608
608
|
itemContents: u == null ? void 0 : u.compData,
|
|
609
|
-
originalItemContents: (
|
|
609
|
+
originalItemContents: (Y = (d = x.value) == null ? void 0 : d.find((E, z) => z === y)) == null ? void 0 : Y.compData,
|
|
610
610
|
itemChildData: u == null ? void 0 : u.itemChildData,
|
|
611
611
|
onChange: (E, z) => ee(E, u, y, z)
|
|
612
612
|
}, null, 40, ["itemContents", "originalItemContents", "itemChildData", "onChange"]))
|
|
@@ -646,7 +646,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
646
646
|
target: "alone",
|
|
647
647
|
compType: u == null ? void 0 : u.comp,
|
|
648
648
|
comp: u,
|
|
649
|
-
optionItems: _(
|
|
649
|
+
optionItems: _(Xe),
|
|
650
650
|
onChange: (d) => _(Qe)(d, u)
|
|
651
651
|
}, null, 40, ["compType", "comp", "optionItems", "onChange"]))
|
|
652
652
|
]),
|
|
@@ -688,12 +688,12 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
688
688
|
R(V, {
|
|
689
689
|
"tab-position": "left",
|
|
690
690
|
modelValue: _(oe),
|
|
691
|
-
"onUpdate:modelValue": t[1] || (t[1] = (d) =>
|
|
691
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => Ye(oe) ? oe.value = d : null),
|
|
692
692
|
class: "extend-tabs",
|
|
693
693
|
onTabChange: _(wa)
|
|
694
694
|
}, {
|
|
695
695
|
default: L(() => [
|
|
696
|
-
(p(!0), M(ue, null, ce(_(ya), (d,
|
|
696
|
+
(p(!0), M(ue, null, ce(_(ya), (d, Y) => (p(), j(v, {
|
|
697
697
|
key: d == null ? void 0 : d.name,
|
|
698
698
|
label: d == null ? void 0 : d.label,
|
|
699
699
|
name: d == null ? void 0 : d.name
|
|
@@ -707,7 +707,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
707
707
|
compItem: d == null ? void 0 : d.component,
|
|
708
708
|
itemData: (z = d == null ? void 0 : d.component) == null ? void 0 : z.compData,
|
|
709
709
|
childItemData: (l = d == null ? void 0 : d.component) == null ? void 0 : l.itemChildData,
|
|
710
|
-
key:
|
|
710
|
+
key: Y,
|
|
711
711
|
level: 1,
|
|
712
712
|
onChange: _(Ze),
|
|
713
713
|
onOnButtonClick: _(Ia)
|
|
@@ -743,17 +743,17 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
743
743
|
var u, y;
|
|
744
744
|
return [
|
|
745
745
|
w("div", Pa, [
|
|
746
|
-
_(
|
|
746
|
+
_(X) ? (p(), j(le(B(((u = _(X)) == null ? void 0 : u.comp) + "extend")), {
|
|
747
747
|
key: 0,
|
|
748
748
|
target: "alone",
|
|
749
|
-
comp: _(
|
|
749
|
+
comp: _(X),
|
|
750
750
|
extendItem: _(fe),
|
|
751
|
-
compType: (y = _(
|
|
751
|
+
compType: (y = _(X)) == null ? void 0 : y.comp,
|
|
752
752
|
activeTabName: _(oe),
|
|
753
|
-
relatedData: _(
|
|
753
|
+
relatedData: _(J),
|
|
754
754
|
onChange: _(Ze),
|
|
755
755
|
onOnButtonClick: _(Ta)
|
|
756
|
-
}, null, 40, ["comp", "extendItem", "compType", "activeTabName", "relatedData", "onChange", "onOnButtonClick"])) :
|
|
756
|
+
}, null, 40, ["comp", "extendItem", "compType", "activeTabName", "relatedData", "onChange", "onOnButtonClick"])) : q("", !0)
|
|
757
757
|
])
|
|
758
758
|
];
|
|
759
759
|
}),
|
|
@@ -762,7 +762,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
762
762
|
]);
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
}, cl = /* @__PURE__ */ we(Wa, [["__scopeId", "data-v-0ecba574"]]),
|
|
765
|
+
}, cl = /* @__PURE__ */ we(Wa, [["__scopeId", "data-v-0ecba574"]]), Ya = { style: { display: "flex" } }, qa = { style: { display: "flex" } }, Ja = { key: 2 }, Xa = {
|
|
766
766
|
key: 4,
|
|
767
767
|
style: { "margin-top": "30px" }
|
|
768
768
|
}, Qa = {
|
|
@@ -820,9 +820,9 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
820
820
|
const o = l.dataTransfer.getData("application/json");
|
|
821
821
|
if (!o) return;
|
|
822
822
|
const m = JSON.parse(o), I = await u(l), b = y(m, I);
|
|
823
|
-
await na(), d(b), h(JSON.parse(o || "")), console.log("drop"),
|
|
823
|
+
await na(), d(b), h(JSON.parse(o || "")), console.log("drop"), Y();
|
|
824
824
|
} catch (o) {
|
|
825
|
-
console.error("Drop error:", o),
|
|
825
|
+
console.error("Drop error:", o), Y();
|
|
826
826
|
}
|
|
827
827
|
}, u = async (l) => O.value ? new Promise((o) => {
|
|
828
828
|
requestAnimationFrame(() => {
|
|
@@ -850,7 +850,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
850
850
|
};
|
|
851
851
|
}, d = (l) => {
|
|
852
852
|
E([...B.value, l], !0);
|
|
853
|
-
},
|
|
853
|
+
}, Y = () => {
|
|
854
854
|
document.querySelectorAll(".dragging").forEach((l) => {
|
|
855
855
|
l.classList.remove("dragging");
|
|
856
856
|
});
|
|
@@ -889,7 +889,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
889
889
|
class: "item-content",
|
|
890
890
|
key: S
|
|
891
891
|
}, [
|
|
892
|
-
w("div",
|
|
892
|
+
w("div", Ya, re(e.name), 1),
|
|
893
893
|
(p(), j(le(z(e.comp)), {
|
|
894
894
|
itemData: e == null ? void 0 : e.compData,
|
|
895
895
|
childItemData: e == null ? void 0 : e.itemChildData,
|
|
@@ -904,7 +904,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
904
904
|
children: e == null ? void 0 : e.children,
|
|
905
905
|
level: 1
|
|
906
906
|
}, null, 8, ["itemData", "childItemData", "config", "pageLayout", "parentTableId", "children"]))
|
|
907
|
-
]))), 128)) :
|
|
907
|
+
]))), 128)) : q("", !0),
|
|
908
908
|
(T = P.value) != null && T.grid ? (p(), j(_(oa), {
|
|
909
909
|
key: 1,
|
|
910
910
|
ref_key: "gridLayoutRef",
|
|
@@ -929,17 +929,17 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
929
929
|
"max-h": e.maxH,
|
|
930
930
|
"min-w": e.minW,
|
|
931
931
|
w: e.w,
|
|
932
|
-
h: _(
|
|
932
|
+
h: _(Je)((De = r.value[S]) == null ? void 0 : De.comp) ? 0 : e.h,
|
|
933
933
|
i: e.i,
|
|
934
|
-
class:
|
|
934
|
+
class: qe(_(Je)((Ee = r.value[S]) == null ? void 0 : Ee.comp) ? "grid-method-button" : "")
|
|
935
935
|
}, {
|
|
936
936
|
default: L(() => {
|
|
937
937
|
var Oe, Fe, Ae, Ve, Ne, Ue, Ge, ze, Ke, je, Pe, We;
|
|
938
938
|
return [
|
|
939
939
|
w("div", {
|
|
940
|
-
class:
|
|
940
|
+
class: qe((Fe = ee.value) != null && Fe.includes((Oe = e == null ? void 0 : e.component) == null ? void 0 : Oe.id) ? "comp-wrapper affix-content" : "comp-wrapper")
|
|
941
941
|
}, [
|
|
942
|
-
w("div",
|
|
942
|
+
w("div", qa, re((Ae = r.value[S]) == null ? void 0 : Ae.name), 1),
|
|
943
943
|
(p(), j(le(z((Ve = r.value[S]) == null ? void 0 : Ve.comp)), {
|
|
944
944
|
pageLayout: U.value,
|
|
945
945
|
itemData: (Ne = r.value[S]) == null ? void 0 : Ne.compData,
|
|
@@ -962,8 +962,8 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
962
962
|
}), 128))
|
|
963
963
|
]),
|
|
964
964
|
_: 1
|
|
965
|
-
}, 8, ["layout"])) :
|
|
966
|
-
(me = P.value) != null && me.tab ? (p(), M("div",
|
|
965
|
+
}, 8, ["layout"])) : q("", !0),
|
|
966
|
+
(me = P.value) != null && me.tab ? (p(), M("div", Ja, [
|
|
967
967
|
R(I, {
|
|
968
968
|
modelValue: g.value,
|
|
969
969
|
"onUpdate:modelValue": o[1] || (o[1] = (e) => g.value = e),
|
|
@@ -994,7 +994,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
994
994
|
]),
|
|
995
995
|
_: 1
|
|
996
996
|
}, 8, ["modelValue"])
|
|
997
|
-
])) :
|
|
997
|
+
])) : q("", !0),
|
|
998
998
|
(xe = P.value) != null && xe.step ? (p(), j(Q, {
|
|
999
999
|
key: 3,
|
|
1000
1000
|
direction: "horizontal",
|
|
@@ -1016,8 +1016,8 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
1016
1016
|
}, 1032, ["status", "onClick"]))), 128))
|
|
1017
1017
|
]),
|
|
1018
1018
|
_: 1
|
|
1019
|
-
}, 8, ["active"])) :
|
|
1020
|
-
(Te = P.value) != null && Te.step ? (p(), M("div",
|
|
1019
|
+
}, 8, ["active"])) : q("", !0),
|
|
1020
|
+
(Te = P.value) != null && Te.step ? (p(), M("div", Xa, [
|
|
1021
1021
|
(p(), j(le(z((Se = t.value) == null ? void 0 : Se.comp)), {
|
|
1022
1022
|
pageLayout: U.value,
|
|
1023
1023
|
itemData: (Re = t.value) == null ? void 0 : Re.compData,
|
|
@@ -1029,7 +1029,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
|
|
|
1029
1029
|
viewport: (Be = t.value) == null ? void 0 : Be.viewport
|
|
1030
1030
|
}
|
|
1031
1031
|
}, null, 8, ["pageLayout", "itemData", "childItemData", "config"]))
|
|
1032
|
-
])) :
|
|
1032
|
+
])) : q("", !0)
|
|
1033
1033
|
], 544);
|
|
1034
1034
|
};
|
|
1035
1035
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),K=require("./index-CJlApKvn.cjs"),f=require("./menu-DopnPfbG.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=require("./index-BVaHwt5f.cjs"),Ie=require("./index-zuL3t5Wr.cjs"),Re=require("./index-CUw6nGTo.cjs"),Le=require("./index-CQY6ageG.cjs"),Me=require("./request-BC2w2vGr.cjs"),$e={class:"type-select"},Fe={class:"group-label"},He={class:"group-items"},Oe=["onDragstart"],Ae={__name:"index",props:{compContainerRef:Object},emits:[""],setup(l,{emit:n}){const d=f.useModelComp(f.pinia),{itemData:r,activeItemIndex:y}=f.storeToRefs(d),c=n,w=e.ref(null),h=e.computed(()=>{var P,O,$;const I={label:"布局",items:["TABS","LAYOUT"]},E={label:"常用",items:["FORM","TABLE"]},S={label:"高级",items:["STEP","TIMELINE","CHART","SIGNATURE","AVATAR","FOLD"]},b=(P=K.slotContent.value)==null?void 0:P.filter(R=>{var i,o;return(o=I==null?void 0:I.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),j=(O=K.slotContent.value)==null?void 0:O.filter(R=>{var i,o;return(o=E==null?void 0:E.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),N=($=K.slotContent.value)==null?void 0:$.filter(R=>{var i,o;return(o=S==null?void 0:S.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())});return[{...I,items:b},{...E,items:j},{...S,items:N}]}),V=(I,E)=>{try{I.dataTransfer.clearData();const S={...E,timestamp:Date.now()};I.dataTransfer.setData("application/json",JSON.stringify(S)),I.dataTransfer.effectAllowed="copyMove",I.target.classList.add("dragging"),c("handleDragStart",E)}catch(S){console.error("Drag start error:",S)}};return(I,E)=>{const S=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,b=>(e.openBlock(),e.createElementBlock("div",{class:"group-item",key:b==null?void 0:b.label},[e.createElementVNode("div",Fe,e.toDisplayString(b==null?void 0:b.label),1),e.createElementVNode("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b==null?void 0:b.items,(j,N)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",title:"鼠标拖动",ref_for:!0,ref_key:"dragItem",ref:w,key:N,draggable:!0,onDragstart:P=>V(P,j)},[e.createVNode(S,{name:j.icon,style:{width:"15px",height:"15px"}},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(j.name),1)],40,Oe))),128))])]))),128))])}}},qe=oe._export_sfc(Ae,[["__scopeId","data-v-951fb5b4"]]),le=f.useModelComp(f.pinia),{pageMapState:Ue}=f.storeToRefs(le),ze=f.useMenuState(),{activeMenuPath:Z}=f.storeToRefs(ze),U=e.ref([]),W=e.ref([]),Ge=e.computed(()=>[{label:"任务配置",name:"任务配置",component:{comp:"Table",name:"任务配置",isShow:!0,compData:[{key:"header",contents:[{prop:"任务名称",align:"center",isRun:!1,label:"任务名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务关键词",align:"center",isRun:!1,label:"任务关键词",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行任务",align:"center",isRun:!1,label:"执行任务",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行交互",align:"center",isRun:!1,label:"执行交互",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务状态",align:"center",isRun:!1,label:"任务状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"创建时间",align:"center",isRun:!1,label:"创建时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:U.value}]}},{label:"任务关联",name:"任务关联",component:{comp:"Table",name:"任务关联",isShow:!0,compData:[{key:"header",contents:[{prop:"关联名称",align:"center",isRun:!1,label:"关联名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联形式",align:"center",isRun:!1,label:"关联形式",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联任务集合",align:"center",isRun:!1,label:"关联任务集合",isRoute:!1,isTableColHidden:!0,isFormColHidden:!1},{prop:"关联状态",align:"center",isRun:!1,label:"关联状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:W.value}]}}]),M=e.ref([]),Ve=e.computed(()=>{var l;return(l=M.value)==null?void 0:l.map((n,d)=>({value:n==null?void 0:n.id,label:n==null?void 0:n.name}))}),te=e.ref("data"),Y=e.ref("任务配置"),Q=e.ref({}),z=e.ref(null),A=e.reactive({width:"30%",title:"任务配置",type:"创建",show:!1}),Ke=()=>{A.show=!1},je=(l,n)=>{var r,y,c,w,h,V,I,E,S;if(Q.value=f.cloneDeep(n),l==="删除")return Y.value==="任务配置"?U.value=(r=U.value)==null?void 0:r.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id)):Y.value==="任务关联"&&(W.value=(y=W.value)==null?void 0:y.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id))),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:(c=z.value)==null?void 0:c.id,results:U.value},任务关联:{pageKey:Z.value,compId:(w=z.value)==null?void 0:w.id,results:W.value}});const d=n?(h=Object.keys(n))==null?void 0:h[1]:"";Y.value==="任务配置"?A.title=`当前配置:${(V=z.value)==null?void 0:V.name}>任务配置>【${(n==null?void 0:n[d])||l}】`:Y.value==="任务关联"&&(A.title=`当前配置:${(I=z.value)==null?void 0:I.name}>任务关联>【${(n==null?void 0:n[d])||l}】`),A.type=typeof((E=Q.value)==null?void 0:E.id)=="string"||!((S=Q.value)!=null&&S.id)?"创建":"编辑",A.show=l==="创建"||l==="访问"},Pe=l=>{var n;typeof l=="number"&&(z.value=(n=M.value)==null?void 0:n[l],Xe()),te.value="data"},We=l=>{},Ye=l=>{var n,d;switch(Y.value){case"任务配置":A.type==="创建"?U.value.push(l==null?void 0:l.data):U.value=(n=U.value)==null?void 0:n.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break;case"任务关联":A.type==="创建"?W.value.push(l==null?void 0:l.data):W.value=(d=W.value)==null?void 0:d.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break}console.log("handleTableData:",U.value,l,A.type),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:U.value},任务关联:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:W.value}}),A.show=!1},Je=l=>{var n,d;if((l==null?void 0:l.buttonName)==="取消")A.show=!1;else if((l==null?void 0:l.buttonName)==="保存"){const r={compId:(n=z.value)==null?void 0:n.id,data:{...l==null?void 0:l.content,id:(d=Q.value)==null?void 0:d.id}};Ye(r)}},Ne=(l,n)=>{var c,w;const{target:d,styleConfigs:r}=l;if(!r)return;const y=r==null?void 0:r.reduce((h,V)=>(h[V.prop]=V.value,h),{});n?M.value=(w=M.value)==null?void 0:w.map(h=>(h==null?void 0:h.id)===(n==null?void 0:n.id)?{...h,...y}:h):M.value=(c=M.value)==null?void 0:c.map(h=>({...h,...y})),le.setItemData(M.value)},Te=l=>{},Ee=(l,n)=>{var d;return(d=l==null?void 0:l.filter(r=>{var y,c,w,h,V;return((c=(y=r==null?void 0:r.key)==null?void 0:y.relatedInfo)==null?void 0:c.target)===n&&((h=(w=r==null?void 0:r.key)==null?void 0:w.relatedInfo)==null?void 0:h.compId)===((V=z.value)==null?void 0:V.id)}))==null?void 0:d.map(r=>{var y;return{...(y=r==null?void 0:r.value)==null?void 0:y.tableData,id:r==null?void 0:r.id}})},Xe=()=>{var n,d;const l=(d=(n=Ue.value)==null?void 0:n[Z.value])==null?void 0:d.filter(r=>{var y;return((y=r==null?void 0:r.key)==null?void 0:y.type)==="extend"});(l==null?void 0:l.length)!==0&&(U.value=Ee(l,"任务配置"),W.value=Ee(l,"任务关联"))},Qe={class:"fill-content"},Ze={class:"overall-config-wrapper"},et={class:"operate-content"},tt=["onClick"],lt={class:"collapse-title-item",title:"编辑"},at={key:1},ot=["onClick"],nt={class:"icon-content"},st={key:0,class:"edit-content"},rt=["onClick"],ct={title:"设置"},ut=["onClick"],it={class:"parent-main"},dt={style:{display:"flex","justify-content":"space-between"}},pt={title:"样式"},vt={title:"交互"},ft={title:"扩展"},ht={style:{width:"100%","max-height":"500px",overflow:"auto"}},mt={__name:"index",setup(l){const n=f.useModelComp(f.pinia),{itemData:d,originalData:r}=f.storeToRefs(n),y=f.useMenuState(),{activeMenuPath:c}=f.storeToRefs(y);e.ref([]);const w=e.ref([]),h=e.ref([]),V=e.ref([]),I=e.computed(()=>{var i,o,g,v;return((i=M.value)==null?void 0:i.length)>0&&(o=M.value)!=null&&o.every(m=>{var L,F;return(m==null?void 0:m.comp)===((F=(L=M.value)==null?void 0:L[0])==null?void 0:F.comp)})?(v=(g=M.value)==null?void 0:g[0])==null?void 0:v.comp:null}),E=i=>{var g;let o=(g=f.cloneDeep(h.value))==null?void 0:g.map((v,m)=>(i===m&&(v.content=!0),v));h.value=o},S=i=>{var g;let o=(g=f.cloneDeep(h.value))==null?void 0:g.map((v,m)=>(i===m&&(v.content=!1),v));h.value=o,M.value=f.cloneDeep(d.value)},b=(i,o)=>{var L;let g=(L=f.cloneDeep(h.value))==null?void 0:L.map((F,u)=>(i===u&&(F.content=!1),F));h.value=g;const v=f.cloneDeep(d.value),m=v==null?void 0:v.filter((F,u)=>(u===i&&(F.name=o),F));n.setOriginalData(m),n.setItemData(m)},j=i=>{const o=f.cloneDeep(d.value),g=o==null?void 0:o.map((v,m)=>((v==null?void 0:v.name)===(i==null?void 0:i.name)?v.isShow=!(i!=null&&i.isShow):v.isShow=v.isShow,v));d.value=g};e.watch(()=>d.value,()=>{var i,o,g,v;!d.value||((i=d.value)==null?void 0:i.length)===0?M.value=[]:M.value=(o=d.value)==null?void 0:o.filter(m=>(m==null?void 0:m.comp)!=="methodButton"),w.value=M.value,h.value=(g=f.cloneDeep(w.value))==null?void 0:g.map((m,L)=>({id:L,content:!1})),V.value=(v=f.cloneDeep(w.value))==null?void 0:v.map((m,L)=>({id:L,isShow:m==null?void 0:m.isShow}))},{deep:!0,immediate:!0});const N=i=>K.getComponent(i),P=(i,o,g,v)=>{var L,F;if(!i)return;let m=f.cloneDeep(d.value);m=(L=m==null?void 0:m.map((u,_)=>{if(v&&_===g){const{compData:p,itemChildData:q}=i;return u.compData=p,u.itemChildData=q,u}return _===g&&(u.compData=i),u}))==null?void 0:L.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),h.value=(F=f.cloneDeep(m))==null?void 0:F.map((u,_)=>({id:_,content:!1})),n.setOriginalData(m),n.setItemData(m)},O=e.ref(null),$=(i,o)=>{if(!o){n.setActiveItemIndex(i);return}n.setActiveItemIndex(-1)},R=i=>{Le.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=f.cloneDeep(d.value),g=o==null?void 0:o.filter((v,m)=>m!==i);n.setOriginalData(g),n.setItemData(g),n.setActiveItemIndex(-1),Me.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(i,o)=>{var F;const g=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-tab-pane"),m=e.resolveComponent("el-card"),L=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",Qe,[o[10]||(o[10]=e.createElementVNode("div",{class:"fill-operate"},"操作栏",-1)),e.createElementVNode("div",Ze,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(I.value+"style")),{target:"overall",optionItems:e.unref(Ve),compType:I.value,comp:(F=e.unref(M))==null?void 0:F[0],onChange:e.unref(Ne)},null,40,["optionItems","compType","comp","onChange"]))]),e.createElementVNode("div",et,[e.createVNode(Se.default,{class:"collapse-content",collapseContents:e.unref(M),accordion:!0,onChange:e.unref(Pe),ref_key:"ssCollapseRef",ref:O},{title:e.withCtx(({item:u,index:_,isActive:p})=>{var q,T,H,a,s,C,D,k,G,J;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:x=>$(_,p)},[e.createElementVNode("div",lt,[(T=(q=h.value)==null?void 0:q.find(x=>x.id===_))!=null&&T.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:u.name&&u.name!==""?"8px":"0px"})},e.toDisplayString(u.name),5)),(a=(H=h.value)==null?void 0:H.find(x=>x.id===_))!=null&&a.content?(e.openBlock(),e.createElementBlock("div",at,[e.createVNode(Ie.ssInput,{modelValue:u.name,"onUpdate:modelValue":x=>u.name=x,onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(C=(s=h.value)==null?void 0:s.find(x=>x.id===_))!=null&&C.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(x=>E(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Edit",style:{width:"13px",height:"13px"}})],8,ot))]),e.createElementVNode("div",nt,[(k=(D=h.value)==null?void 0:D.find(x=>x.id===_))!=null&&k.content?(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(g,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(x=>S(_),["stop"])},null,8,["onClick"]),e.createVNode(g,{name:"Save",onClick:e.withModifiers(x=>b(_,u.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(J=(G=h.value)==null?void 0:G.find(x=>x.id===_))!=null&&J.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(x=>R(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,rt))])],8,tt)]}),content:e.withCtx(({item:u,index:_})=>[e.createVNode(L,{modelValue:e.unref(te),"onUpdate:modelValue":o[2]||(o[2]=p=>e.isRef(te)?te.value=p:null),class:"config-tabs",onTabClick:$},{default:e.withCtx(()=>[e.createVNode(v,{label:"设置",name:"data"},{label:e.withCtx(()=>[e.createElementVNode("span",ct,[e.createVNode(g,{name:"LowCodeSetting",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[3]||(o[3]=e.createTextVNode("设置"))])]),default:e.withCtx(()=>{var p,q;return[e.createElementVNode("div",{class:"comp-child",onClick:T=>$(_)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(u.comp+"Operate")),{itemContents:u==null?void 0:u.compData,originalItemContents:(q=(p=w.value)==null?void 0:p.find((T,H)=>H===_))==null?void 0:q.compData,itemChildData:u==null?void 0:u.itemChildData,onChange:(T,H)=>P(T,u,_,H)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,ut),e.createElementVNode("div",it,[o[5]||(o[5]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",dt,[o[4]||(o[4]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(Ie._sfc_main$1,{value:V.value.find(T=>T.id===_).isShow,"onUpdate:value":T=>V.value.find(H=>H.id===_).isShow=T,onClick:T=>j(u)},null,8,["value","onUpdate:value","onClick"])])])]}),_:2},1024),e.createVNode(v,{label:"样式",name:"style"},{label:e.withCtx(()=>[e.createElementVNode("span",pt,[e.createVNode(g,{name:"LowCodeStyle",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[6]||(o[6]=e.createTextVNode("样式"))])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((u==null?void 0:u.comp)+"style")),{target:"alone",compType:u==null?void 0:u.comp,comp:u,optionItems:e.unref(Ve),onChange:p=>e.unref(Ne)(p,u)},null,40,["compType","comp","optionItems","onChange"]))]),_:2},1024),e.createVNode(v,{label:"交互",name:"event"},{label:e.withCtx(()=>[e.createElementVNode("span",vt,[e.createVNode(g,{name:"LowCodeEvent",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[7]||(o[7]=e.createTextVNode("交互"))])]),default:e.withCtx(()=>[o[8]||(o[8]=e.createTextVNode(" 交互 "))]),_:1,__:[8]}),e.createVNode(v,{label:"扩展",name:"extend"},{label:e.withCtx(()=>[e.createElementVNode("span",ft,[e.createVNode(g,{name:"LowCodeExtend",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[9]||(o[9]=e.createTextVNode("扩展"))])]),default:e.withCtx(()=>[e.createVNode(L,{"tab-position":"left",modelValue:e.unref(Y),"onUpdate:modelValue":o[1]||(o[1]=p=>e.isRef(Y)?Y.value=p:null),class:"extend-tabs",onTabChange:e.unref(We)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ge),(p,q)=>(e.openBlock(),e.createBlock(v,{key:p==null?void 0:p.name,label:p==null?void 0:p.label,name:p==null?void 0:p.name},{default:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>{var T,H,a;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((T=p==null?void 0:p.component)==null?void 0:T.comp)),{compItem:p==null?void 0:p.component,itemData:(H=p==null?void 0:p.component)==null?void 0:H.compData,childItemData:(a=p==null?void 0:p.component)==null?void 0:a.itemChildData,key:q,level:1,onChange:e.unref(Te),onOnButtonClick:e.unref(je)},null,40,["compItem","itemData","childItemData","onChange","onOnButtonClick"]))]}),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onTabChange"])]),_:1})]),_:2},1032,["modelValue"])]),_:1},8,["collapseContents","onChange"])]),e.createVNode(Re.ssDialog,{class:"task-dialog-wrapper",visible:e.unref(A).show,title:e.unref(A).title,dialogWidth:e.unref(A).width,onBeforeDestroy:e.unref(Ke)},{default:e.withCtx(()=>{var u,_;return[e.createElementVNode("div",ht,[e.unref(z)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(((u=e.unref(z))==null?void 0:u.comp)+"extend")),{key:0,target:"alone",comp:e.unref(z),extendItem:e.unref(Q),compType:(_=e.unref(z))==null?void 0:_.comp,activeTabName:e.unref(Y),relatedData:e.unref(U),onChange:e.unref(Te),onOnButtonClick:e.unref(Je)},null,40,["comp","extendItem","compType","activeTabName","relatedData","onChange","onOnButtonClick"])):e.createCommentVNode("",!0)])]}),_:1},8,["visible","title","dialogWidth","onBeforeDestroy"])])}}},gt=oe._export_sfc(mt,[["__scopeId","data-v-0ecba574"]]),Ct={style:{display:"flex"}},kt={style:{display:"flex"}},yt={key:2},_t={key:4,style:{"margin-top":"30px"}},bt={__name:"index",setup(l){const n=f.useModelComp(f.pinia),{itemData:d,activeItemIndex:r,pageMapState:y}=f.storeToRefs(n),c=e.ref([]),w=e.ref(0),h=e.ref(""),V=f.useMenuState(f.pinia),{activeMenuPath:I}=f.storeToRefs(V),E=e.ref(null),S=e.ref(null),b=e.ref(24),j=e.ref(2),N=e.ref([]),P=e.ref([]),O=e.computed(()=>{var a,s,C;return{default:!i.value&&!R.value&&$.value==="vertical"&&((a=c.value)==null?void 0:a.length)>0,grid:i.value&&!R.value&&$.value==="vertical",tab:$.value==="horizontal"&&((s=c.value)==null?void 0:s.length)>0,step:R.value&&$.value==="vertical"&&((C=c.value)==null?void 0:C.length)>0}}),$=e.computed(()=>{var a,s,C,D;return((a=c.value)==null?void 0:a.length)>0&&((s=c.value)!=null&&s.every(k=>k==null?void 0:k.layout))?(D=(C=c.value)==null?void 0:C[0])==null?void 0:D.layout:"vertical"}),R=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isStepLayout}),i=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isGridLayout}),o=e.ref(null),g=e.computed(()=>{var a,s,C;return((a=c.value)==null?void 0:a.length)>0&&$.value==="horizontal"?(C=(s=c.value)==null?void 0:s[0])==null?void 0:C.name:""}),v=(a,s)=>{w.value=s,o.value=a},m=a=>{var k;if(!a)return;let s=null;const C=f.cloneDeep(c.value);if(r.value>=0&&(s=C==null?void 0:C[r.value]),s&&s.comp==="Layout"){const{compData:G=[]}=s;((k=G==null?void 0:G.find(x=>{const{key:ee}=x;return ee==="children"}))==null?void 0:k.contents).push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(C);return}const D=f.cloneDeep(c.value);D.push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(D),T(D)},L=a=>{a.preventDefault(),a.dataTransfer.dropEffect="copy"},F=async a=>{try{const s=a.dataTransfer.getData("application/json");if(!s)return;const C=JSON.parse(s),D=await u(a),k=_(C,D);await e.nextTick(),p(k),m(JSON.parse(s||"")),console.log("drop"),q()}catch(s){console.error("Drop error:",s),q()}},u=async a=>E.value?new Promise(s=>{requestAnimationFrame(()=>{const C=E.value.getBoundingClientRect(),D=a.clientX-C.left,k=a.clientY,G=Math.floor(D/(C.width/b.value)),J=Math.floor(k/(C.width/b.value));s({x:Math.max(0,G),y:Math.max(0,J),w:b.value,h:j.value})})}):{x:0,y:0},_=(a,s)=>{var D,k;const C=`item_${Date.now()}_${(k=(D=Math.random())==null?void 0:D.toString(36))==null?void 0:k.substring(2,9)}`;return{i:C,id:C,x:s.x,y:s.y,w:s.w,h:s.h,component:a,minW:2,minH:2}},p=a=>{T([...N.value,a],!0)},q=()=>{document.querySelectorAll(".dragging").forEach(a=>{a.classList.remove("dragging")})},T=(a,s)=>{N.value=s?a:K.generateLayouts(a),n.setItemGridData({pageKey:I.value,results:N.value}),V.setContentLoading(!1)};e.watch(()=>O.value.step,a=>{var s;a&&v((s=c.value)==null?void 0:s[0],1)},{immediate:!0}),e.watch(()=>O.value.grid,a=>{var s,C;!a&&((s=N.value)==null?void 0:s.length)>0&&n.setItemGridData({pageKey:I.value,results:(C=N.value)==null?void 0:C.map(D=>D==null?void 0:D.id),isDelete:!0})},{immediate:!0}),e.watch(()=>d.value,a=>{var s,C,D;V.setContentLoading(!0),c.value=!a||(a==null?void 0:a.length)===0?[]:(s=f.cloneDeep(a))==null?void 0:s.filter(k=>!(k!=null&&k.affix)||(k==null?void 0:k.affix)==="default"),P.value=!a||(a==null?void 0:a.length)===0?[]:(C=f.cloneDeep(a))==null?void 0:C.filter(k=>(k==null?void 0:k.affix)&&(k==null?void 0:k.affix)!=="default"),(D=O.value)!=null&&D.grid&&T(c.value)},{deep:!0,immediate:!0});const H=a=>K.getComponent(a);return(a,s)=>{var J,x,ee,ne,se,re,ce,ue,ie,de,pe,ve;const C=e.resolveComponent("el-tab-pane"),D=e.resolveComponent("el-tabs"),k=e.resolveComponent("el-step"),G=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:E,class:"low-code-wrapper",onDragover:L,onDrop:F},[(J=O.value)!=null&&J.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,(t,B)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:B},[e.createElementVNode("div",Ct,e.toDisplayString(t.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t.comp)),{itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport},pageLayout:$.value,parentTableId:t==null?void 0:t.tableId,children:t==null?void 0:t.children,level:1},null,8,["itemData","childItemData","config","pageLayout","parentTableId","children"]))]))),128)):e.createCommentVNode("",!0),(x=O.value)!=null&&x.grid?(e.openBlock(),e.createBlock(e.unref(K.De),{key:1,ref_key:"gridLayoutRef",ref:S,layout:N.value,"onUpdate:layout":s[0]||(s[0]=t=>N.value=t),"prevent-collision":!1,"is-draggable":!0,"is-resizable":!0,responsive:!1,"col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(t,B)=>{var ae,fe;return e.openBlock(),e.createBlock(e.unref(K.st),{key:t.i,x:t.x,y:t.y,"min-h":t.minH,"max-h":t.maxH,"min-w":t.minW,w:t.w,h:e.unref(K.verifyButton)((ae=c.value[B])==null?void 0:ae.comp)?0:t.h,i:t.i,class:e.normalizeClass(e.unref(K.verifyButton)((fe=c.value[B])==null?void 0:fe.comp)?"grid-method-button":"")},{default:e.withCtx(()=>{var he,me,ge,Ce,ke,ye,_e,be,De,we,xe,Be;return[e.createElementVNode("div",{class:e.normalizeClass((me=P.value)!=null&&me.includes((he=t==null?void 0:t.component)==null?void 0:he.id)?"comp-wrapper affix-content":"comp-wrapper")},[e.createElementVNode("div",kt,e.toDisplayString((ge=c.value[B])==null?void 0:ge.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((Ce=c.value[B])==null?void 0:Ce.comp)),{pageLayout:$.value,itemData:(ke=c.value[B])==null?void 0:ke.compData,childItemData:(ye=c.value[B])==null?void 0:ye.itemChildData,index:((_e=c.value[B])==null?void 0:_e.id)??B,parentTableId:(be=c.value[B])==null?void 0:be.tableId,children:(De=c.value[B])==null?void 0:De.children,level:1,config:{showIndex:(we=c.value[B])==null?void 0:we.showIndex,allowMove:(xe=c.value[B])==null?void 0:xe.allowMove,viewport:(Be=c.value[B])==null?void 0:Be.viewport}},null,8,["pageLayout","itemData","childItemData","index","parentTableId","children","config"]))],2)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i","class"])}),128))]),_:1},8,["layout"])):e.createCommentVNode("",!0),(ee=O.value)!=null&&ee.tab?(e.openBlock(),e.createElementBlock("div",yt,[e.createVNode(D,{modelValue:g.value,"onUpdate:modelValue":s[1]||(s[1]=t=>g.value=t),type:"card",class:"display-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(C,{key:t.i,label:t==null?void 0:t.name,name:t==null?void 0:t.name},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t==null?void 0:t.comp)),{pageLayout:$.value,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(ne=O.value)!=null&&ne.step?(e.openBlock(),e.createBlock(G,{key:3,direction:"horizontal",active:w.value,"align-center":!0,class:"display-steps"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(k,{key:B,class:"step-item",status:h.value,onClick:ae=>v(t,B+1)},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t==null?void 0:t.name),1)]),_:2},1032,["status","onClick"]))),128))]),_:1},8,["active"])):e.createCommentVNode("",!0),(se=O.value)!=null&&se.step?(e.openBlock(),e.createElementBlock("div",_t,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((re=o.value)==null?void 0:re.comp)),{pageLayout:$.value,itemData:(ce=o.value)==null?void 0:ce.compData,childItemData:(ue=o.value)==null?void 0:ue.itemChildData,key:(ie=o.value)==null?void 0:ie.id,config:{showIndex:(de=o.value)==null?void 0:de.showIndex,allowMove:(pe=o.value)==null?void 0:pe.allowMove,viewport:(ve=o.value)==null?void 0:ve.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))])):e.createCommentVNode("",!0)],544)}}},Dt=oe._export_sfc(bt,[["__scopeId","data-v-fda67a9b"]]),X=e.ref(0),wt=l=>l.reduce((d,r)=>{var c,w;const y=Object.values(d);return(((c=Object.keys(d))==null?void 0:c.length)===0||y[y.length-1].length>=(r==null?void 0:r.width))&&(d[X.value]=[],X.value++),d[X.value-1].push(r),((w=Object.keys(d))==null?void 0:w.length)===(r==null?void 0:r.width)&&(d[X.value]=[],X.value++),d},{});exports.arrayToNumberArray=wt;exports.modelFill=gt;exports.modelSelect=qe;exports.modelShow=Dt;
|
|
1
|
+
"use strict";const e=require("vue"),K=require("./index-mssdamNL.cjs"),f=require("./menu-DopnPfbG.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=require("./index-BVaHwt5f.cjs"),Ie=require("./index-CNNvnXL-.cjs"),Re=require("./index-CUw6nGTo.cjs"),Le=require("./index-CQY6ageG.cjs"),Me=require("./request-BC2w2vGr.cjs"),$e={class:"type-select"},Fe={class:"group-label"},He={class:"group-items"},Oe=["onDragstart"],Ae={__name:"index",props:{compContainerRef:Object},emits:[""],setup(l,{emit:n}){const d=f.useModelComp(f.pinia),{itemData:r,activeItemIndex:y}=f.storeToRefs(d),c=n,w=e.ref(null),h=e.computed(()=>{var P,O,$;const I={label:"布局",items:["TABS","LAYOUT"]},E={label:"常用",items:["FORM","TABLE"]},S={label:"高级",items:["STEP","TIMELINE","CHART","SIGNATURE","AVATAR","FOLD"]},b=(P=K.slotContent.value)==null?void 0:P.filter(R=>{var i,o;return(o=I==null?void 0:I.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),j=(O=K.slotContent.value)==null?void 0:O.filter(R=>{var i,o;return(o=E==null?void 0:E.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),N=($=K.slotContent.value)==null?void 0:$.filter(R=>{var i,o;return(o=S==null?void 0:S.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())});return[{...I,items:b},{...E,items:j},{...S,items:N}]}),V=(I,E)=>{try{I.dataTransfer.clearData();const S={...E,timestamp:Date.now()};I.dataTransfer.setData("application/json",JSON.stringify(S)),I.dataTransfer.effectAllowed="copyMove",I.target.classList.add("dragging"),c("handleDragStart",E)}catch(S){console.error("Drag start error:",S)}};return(I,E)=>{const S=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,b=>(e.openBlock(),e.createElementBlock("div",{class:"group-item",key:b==null?void 0:b.label},[e.createElementVNode("div",Fe,e.toDisplayString(b==null?void 0:b.label),1),e.createElementVNode("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b==null?void 0:b.items,(j,N)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",title:"鼠标拖动",ref_for:!0,ref_key:"dragItem",ref:w,key:N,draggable:!0,onDragstart:P=>V(P,j)},[e.createVNode(S,{name:j.icon,style:{width:"15px",height:"15px"}},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(j.name),1)],40,Oe))),128))])]))),128))])}}},qe=oe._export_sfc(Ae,[["__scopeId","data-v-951fb5b4"]]),le=f.useModelComp(f.pinia),{pageMapState:Ue}=f.storeToRefs(le),ze=f.useMenuState(),{activeMenuPath:Z}=f.storeToRefs(ze),U=e.ref([]),W=e.ref([]),Ge=e.computed(()=>[{label:"任务配置",name:"任务配置",component:{comp:"Table",name:"任务配置",isShow:!0,compData:[{key:"header",contents:[{prop:"任务名称",align:"center",isRun:!1,label:"任务名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务关键词",align:"center",isRun:!1,label:"任务关键词",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行任务",align:"center",isRun:!1,label:"执行任务",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行交互",align:"center",isRun:!1,label:"执行交互",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务状态",align:"center",isRun:!1,label:"任务状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"创建时间",align:"center",isRun:!1,label:"创建时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:U.value}]}},{label:"任务关联",name:"任务关联",component:{comp:"Table",name:"任务关联",isShow:!0,compData:[{key:"header",contents:[{prop:"关联名称",align:"center",isRun:!1,label:"关联名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联形式",align:"center",isRun:!1,label:"关联形式",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联任务集合",align:"center",isRun:!1,label:"关联任务集合",isRoute:!1,isTableColHidden:!0,isFormColHidden:!1},{prop:"关联状态",align:"center",isRun:!1,label:"关联状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:W.value}]}}]),M=e.ref([]),Ve=e.computed(()=>{var l;return(l=M.value)==null?void 0:l.map((n,d)=>({value:n==null?void 0:n.id,label:n==null?void 0:n.name}))}),te=e.ref("data"),Y=e.ref("任务配置"),Q=e.ref({}),z=e.ref(null),A=e.reactive({width:"30%",title:"任务配置",type:"创建",show:!1}),Ke=()=>{A.show=!1},je=(l,n)=>{var r,y,c,w,h,V,I,E,S;if(Q.value=f.cloneDeep(n),l==="删除")return Y.value==="任务配置"?U.value=(r=U.value)==null?void 0:r.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id)):Y.value==="任务关联"&&(W.value=(y=W.value)==null?void 0:y.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id))),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:(c=z.value)==null?void 0:c.id,results:U.value},任务关联:{pageKey:Z.value,compId:(w=z.value)==null?void 0:w.id,results:W.value}});const d=n?(h=Object.keys(n))==null?void 0:h[1]:"";Y.value==="任务配置"?A.title=`当前配置:${(V=z.value)==null?void 0:V.name}>任务配置>【${(n==null?void 0:n[d])||l}】`:Y.value==="任务关联"&&(A.title=`当前配置:${(I=z.value)==null?void 0:I.name}>任务关联>【${(n==null?void 0:n[d])||l}】`),A.type=typeof((E=Q.value)==null?void 0:E.id)=="string"||!((S=Q.value)!=null&&S.id)?"创建":"编辑",A.show=l==="创建"||l==="访问"},Pe=l=>{var n;typeof l=="number"&&(z.value=(n=M.value)==null?void 0:n[l],Xe()),te.value="data"},We=l=>{},Ye=l=>{var n,d;switch(Y.value){case"任务配置":A.type==="创建"?U.value.push(l==null?void 0:l.data):U.value=(n=U.value)==null?void 0:n.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break;case"任务关联":A.type==="创建"?W.value.push(l==null?void 0:l.data):W.value=(d=W.value)==null?void 0:d.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break}console.log("handleTableData:",U.value,l,A.type),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:U.value},任务关联:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:W.value}}),A.show=!1},Je=l=>{var n,d;if((l==null?void 0:l.buttonName)==="取消")A.show=!1;else if((l==null?void 0:l.buttonName)==="保存"){const r={compId:(n=z.value)==null?void 0:n.id,data:{...l==null?void 0:l.content,id:(d=Q.value)==null?void 0:d.id}};Ye(r)}},Ne=(l,n)=>{var c,w;const{target:d,styleConfigs:r}=l;if(!r)return;const y=r==null?void 0:r.reduce((h,V)=>(h[V.prop]=V.value,h),{});n?M.value=(w=M.value)==null?void 0:w.map(h=>(h==null?void 0:h.id)===(n==null?void 0:n.id)?{...h,...y}:h):M.value=(c=M.value)==null?void 0:c.map(h=>({...h,...y})),le.setItemData(M.value)},Te=l=>{},Ee=(l,n)=>{var d;return(d=l==null?void 0:l.filter(r=>{var y,c,w,h,V;return((c=(y=r==null?void 0:r.key)==null?void 0:y.relatedInfo)==null?void 0:c.target)===n&&((h=(w=r==null?void 0:r.key)==null?void 0:w.relatedInfo)==null?void 0:h.compId)===((V=z.value)==null?void 0:V.id)}))==null?void 0:d.map(r=>{var y;return{...(y=r==null?void 0:r.value)==null?void 0:y.tableData,id:r==null?void 0:r.id}})},Xe=()=>{var n,d;const l=(d=(n=Ue.value)==null?void 0:n[Z.value])==null?void 0:d.filter(r=>{var y;return((y=r==null?void 0:r.key)==null?void 0:y.type)==="extend"});(l==null?void 0:l.length)!==0&&(U.value=Ee(l,"任务配置"),W.value=Ee(l,"任务关联"))},Qe={class:"fill-content"},Ze={class:"overall-config-wrapper"},et={class:"operate-content"},tt=["onClick"],lt={class:"collapse-title-item",title:"编辑"},at={key:1},ot=["onClick"],nt={class:"icon-content"},st={key:0,class:"edit-content"},rt=["onClick"],ct={title:"设置"},ut=["onClick"],it={class:"parent-main"},dt={style:{display:"flex","justify-content":"space-between"}},pt={title:"样式"},vt={title:"交互"},ft={title:"扩展"},ht={style:{width:"100%","max-height":"500px",overflow:"auto"}},mt={__name:"index",setup(l){const n=f.useModelComp(f.pinia),{itemData:d,originalData:r}=f.storeToRefs(n),y=f.useMenuState(),{activeMenuPath:c}=f.storeToRefs(y);e.ref([]);const w=e.ref([]),h=e.ref([]),V=e.ref([]),I=e.computed(()=>{var i,o,g,v;return((i=M.value)==null?void 0:i.length)>0&&(o=M.value)!=null&&o.every(m=>{var L,F;return(m==null?void 0:m.comp)===((F=(L=M.value)==null?void 0:L[0])==null?void 0:F.comp)})?(v=(g=M.value)==null?void 0:g[0])==null?void 0:v.comp:null}),E=i=>{var g;let o=(g=f.cloneDeep(h.value))==null?void 0:g.map((v,m)=>(i===m&&(v.content=!0),v));h.value=o},S=i=>{var g;let o=(g=f.cloneDeep(h.value))==null?void 0:g.map((v,m)=>(i===m&&(v.content=!1),v));h.value=o,M.value=f.cloneDeep(d.value)},b=(i,o)=>{var L;let g=(L=f.cloneDeep(h.value))==null?void 0:L.map((F,u)=>(i===u&&(F.content=!1),F));h.value=g;const v=f.cloneDeep(d.value),m=v==null?void 0:v.filter((F,u)=>(u===i&&(F.name=o),F));n.setOriginalData(m),n.setItemData(m)},j=i=>{const o=f.cloneDeep(d.value),g=o==null?void 0:o.map((v,m)=>((v==null?void 0:v.name)===(i==null?void 0:i.name)?v.isShow=!(i!=null&&i.isShow):v.isShow=v.isShow,v));d.value=g};e.watch(()=>d.value,()=>{var i,o,g,v;!d.value||((i=d.value)==null?void 0:i.length)===0?M.value=[]:M.value=(o=d.value)==null?void 0:o.filter(m=>(m==null?void 0:m.comp)!=="methodButton"),w.value=M.value,h.value=(g=f.cloneDeep(w.value))==null?void 0:g.map((m,L)=>({id:L,content:!1})),V.value=(v=f.cloneDeep(w.value))==null?void 0:v.map((m,L)=>({id:L,isShow:m==null?void 0:m.isShow}))},{deep:!0,immediate:!0});const N=i=>K.getComponent(i),P=(i,o,g,v)=>{var L,F;if(!i)return;let m=f.cloneDeep(d.value);m=(L=m==null?void 0:m.map((u,_)=>{if(v&&_===g){const{compData:p,itemChildData:q}=i;return u.compData=p,u.itemChildData=q,u}return _===g&&(u.compData=i),u}))==null?void 0:L.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),h.value=(F=f.cloneDeep(m))==null?void 0:F.map((u,_)=>({id:_,content:!1})),n.setOriginalData(m),n.setItemData(m)},O=e.ref(null),$=(i,o)=>{if(!o){n.setActiveItemIndex(i);return}n.setActiveItemIndex(-1)},R=i=>{Le.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=f.cloneDeep(d.value),g=o==null?void 0:o.filter((v,m)=>m!==i);n.setOriginalData(g),n.setItemData(g),n.setActiveItemIndex(-1),Me.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(i,o)=>{var F;const g=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-tab-pane"),m=e.resolveComponent("el-card"),L=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",Qe,[o[10]||(o[10]=e.createElementVNode("div",{class:"fill-operate"},"操作栏",-1)),e.createElementVNode("div",Ze,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(I.value+"style")),{target:"overall",optionItems:e.unref(Ve),compType:I.value,comp:(F=e.unref(M))==null?void 0:F[0],onChange:e.unref(Ne)},null,40,["optionItems","compType","comp","onChange"]))]),e.createElementVNode("div",et,[e.createVNode(Se.default,{class:"collapse-content",collapseContents:e.unref(M),accordion:!0,onChange:e.unref(Pe),ref_key:"ssCollapseRef",ref:O},{title:e.withCtx(({item:u,index:_,isActive:p})=>{var q,T,H,a,s,C,D,k,G,J;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:x=>$(_,p)},[e.createElementVNode("div",lt,[(T=(q=h.value)==null?void 0:q.find(x=>x.id===_))!=null&&T.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:u.name&&u.name!==""?"8px":"0px"})},e.toDisplayString(u.name),5)),(a=(H=h.value)==null?void 0:H.find(x=>x.id===_))!=null&&a.content?(e.openBlock(),e.createElementBlock("div",at,[e.createVNode(Ie.ssInput,{modelValue:u.name,"onUpdate:modelValue":x=>u.name=x,onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(C=(s=h.value)==null?void 0:s.find(x=>x.id===_))!=null&&C.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(x=>E(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Edit",style:{width:"13px",height:"13px"}})],8,ot))]),e.createElementVNode("div",nt,[(k=(D=h.value)==null?void 0:D.find(x=>x.id===_))!=null&&k.content?(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(g,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(x=>S(_),["stop"])},null,8,["onClick"]),e.createVNode(g,{name:"Save",onClick:e.withModifiers(x=>b(_,u.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(J=(G=h.value)==null?void 0:G.find(x=>x.id===_))!=null&&J.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(x=>R(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,rt))])],8,tt)]}),content:e.withCtx(({item:u,index:_})=>[e.createVNode(L,{modelValue:e.unref(te),"onUpdate:modelValue":o[2]||(o[2]=p=>e.isRef(te)?te.value=p:null),class:"config-tabs",onTabClick:$},{default:e.withCtx(()=>[e.createVNode(v,{label:"设置",name:"data"},{label:e.withCtx(()=>[e.createElementVNode("span",ct,[e.createVNode(g,{name:"LowCodeSetting",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[3]||(o[3]=e.createTextVNode("设置"))])]),default:e.withCtx(()=>{var p,q;return[e.createElementVNode("div",{class:"comp-child",onClick:T=>$(_)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(u.comp+"Operate")),{itemContents:u==null?void 0:u.compData,originalItemContents:(q=(p=w.value)==null?void 0:p.find((T,H)=>H===_))==null?void 0:q.compData,itemChildData:u==null?void 0:u.itemChildData,onChange:(T,H)=>P(T,u,_,H)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,ut),e.createElementVNode("div",it,[o[5]||(o[5]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",dt,[o[4]||(o[4]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(Ie._sfc_main$1,{value:V.value.find(T=>T.id===_).isShow,"onUpdate:value":T=>V.value.find(H=>H.id===_).isShow=T,onClick:T=>j(u)},null,8,["value","onUpdate:value","onClick"])])])]}),_:2},1024),e.createVNode(v,{label:"样式",name:"style"},{label:e.withCtx(()=>[e.createElementVNode("span",pt,[e.createVNode(g,{name:"LowCodeStyle",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[6]||(o[6]=e.createTextVNode("样式"))])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((u==null?void 0:u.comp)+"style")),{target:"alone",compType:u==null?void 0:u.comp,comp:u,optionItems:e.unref(Ve),onChange:p=>e.unref(Ne)(p,u)},null,40,["compType","comp","optionItems","onChange"]))]),_:2},1024),e.createVNode(v,{label:"交互",name:"event"},{label:e.withCtx(()=>[e.createElementVNode("span",vt,[e.createVNode(g,{name:"LowCodeEvent",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[7]||(o[7]=e.createTextVNode("交互"))])]),default:e.withCtx(()=>[o[8]||(o[8]=e.createTextVNode(" 交互 "))]),_:1,__:[8]}),e.createVNode(v,{label:"扩展",name:"extend"},{label:e.withCtx(()=>[e.createElementVNode("span",ft,[e.createVNode(g,{name:"LowCodeExtend",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[9]||(o[9]=e.createTextVNode("扩展"))])]),default:e.withCtx(()=>[e.createVNode(L,{"tab-position":"left",modelValue:e.unref(Y),"onUpdate:modelValue":o[1]||(o[1]=p=>e.isRef(Y)?Y.value=p:null),class:"extend-tabs",onTabChange:e.unref(We)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ge),(p,q)=>(e.openBlock(),e.createBlock(v,{key:p==null?void 0:p.name,label:p==null?void 0:p.label,name:p==null?void 0:p.name},{default:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>{var T,H,a;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((T=p==null?void 0:p.component)==null?void 0:T.comp)),{compItem:p==null?void 0:p.component,itemData:(H=p==null?void 0:p.component)==null?void 0:H.compData,childItemData:(a=p==null?void 0:p.component)==null?void 0:a.itemChildData,key:q,level:1,onChange:e.unref(Te),onOnButtonClick:e.unref(je)},null,40,["compItem","itemData","childItemData","onChange","onOnButtonClick"]))]}),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onTabChange"])]),_:1})]),_:2},1032,["modelValue"])]),_:1},8,["collapseContents","onChange"])]),e.createVNode(Re.ssDialog,{class:"task-dialog-wrapper",visible:e.unref(A).show,title:e.unref(A).title,dialogWidth:e.unref(A).width,onBeforeDestroy:e.unref(Ke)},{default:e.withCtx(()=>{var u,_;return[e.createElementVNode("div",ht,[e.unref(z)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(((u=e.unref(z))==null?void 0:u.comp)+"extend")),{key:0,target:"alone",comp:e.unref(z),extendItem:e.unref(Q),compType:(_=e.unref(z))==null?void 0:_.comp,activeTabName:e.unref(Y),relatedData:e.unref(U),onChange:e.unref(Te),onOnButtonClick:e.unref(Je)},null,40,["comp","extendItem","compType","activeTabName","relatedData","onChange","onOnButtonClick"])):e.createCommentVNode("",!0)])]}),_:1},8,["visible","title","dialogWidth","onBeforeDestroy"])])}}},gt=oe._export_sfc(mt,[["__scopeId","data-v-0ecba574"]]),Ct={style:{display:"flex"}},kt={style:{display:"flex"}},yt={key:2},_t={key:4,style:{"margin-top":"30px"}},bt={__name:"index",setup(l){const n=f.useModelComp(f.pinia),{itemData:d,activeItemIndex:r,pageMapState:y}=f.storeToRefs(n),c=e.ref([]),w=e.ref(0),h=e.ref(""),V=f.useMenuState(f.pinia),{activeMenuPath:I}=f.storeToRefs(V),E=e.ref(null),S=e.ref(null),b=e.ref(24),j=e.ref(2),N=e.ref([]),P=e.ref([]),O=e.computed(()=>{var a,s,C;return{default:!i.value&&!R.value&&$.value==="vertical"&&((a=c.value)==null?void 0:a.length)>0,grid:i.value&&!R.value&&$.value==="vertical",tab:$.value==="horizontal"&&((s=c.value)==null?void 0:s.length)>0,step:R.value&&$.value==="vertical"&&((C=c.value)==null?void 0:C.length)>0}}),$=e.computed(()=>{var a,s,C,D;return((a=c.value)==null?void 0:a.length)>0&&((s=c.value)!=null&&s.every(k=>k==null?void 0:k.layout))?(D=(C=c.value)==null?void 0:C[0])==null?void 0:D.layout:"vertical"}),R=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isStepLayout}),i=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isGridLayout}),o=e.ref(null),g=e.computed(()=>{var a,s,C;return((a=c.value)==null?void 0:a.length)>0&&$.value==="horizontal"?(C=(s=c.value)==null?void 0:s[0])==null?void 0:C.name:""}),v=(a,s)=>{w.value=s,o.value=a},m=a=>{var k;if(!a)return;let s=null;const C=f.cloneDeep(c.value);if(r.value>=0&&(s=C==null?void 0:C[r.value]),s&&s.comp==="Layout"){const{compData:G=[]}=s;((k=G==null?void 0:G.find(x=>{const{key:ee}=x;return ee==="children"}))==null?void 0:k.contents).push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(C);return}const D=f.cloneDeep(c.value);D.push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(D),T(D)},L=a=>{a.preventDefault(),a.dataTransfer.dropEffect="copy"},F=async a=>{try{const s=a.dataTransfer.getData("application/json");if(!s)return;const C=JSON.parse(s),D=await u(a),k=_(C,D);await e.nextTick(),p(k),m(JSON.parse(s||"")),console.log("drop"),q()}catch(s){console.error("Drop error:",s),q()}},u=async a=>E.value?new Promise(s=>{requestAnimationFrame(()=>{const C=E.value.getBoundingClientRect(),D=a.clientX-C.left,k=a.clientY,G=Math.floor(D/(C.width/b.value)),J=Math.floor(k/(C.width/b.value));s({x:Math.max(0,G),y:Math.max(0,J),w:b.value,h:j.value})})}):{x:0,y:0},_=(a,s)=>{var D,k;const C=`item_${Date.now()}_${(k=(D=Math.random())==null?void 0:D.toString(36))==null?void 0:k.substring(2,9)}`;return{i:C,id:C,x:s.x,y:s.y,w:s.w,h:s.h,component:a,minW:2,minH:2}},p=a=>{T([...N.value,a],!0)},q=()=>{document.querySelectorAll(".dragging").forEach(a=>{a.classList.remove("dragging")})},T=(a,s)=>{N.value=s?a:K.generateLayouts(a),n.setItemGridData({pageKey:I.value,results:N.value}),V.setContentLoading(!1)};e.watch(()=>O.value.step,a=>{var s;a&&v((s=c.value)==null?void 0:s[0],1)},{immediate:!0}),e.watch(()=>O.value.grid,a=>{var s,C;!a&&((s=N.value)==null?void 0:s.length)>0&&n.setItemGridData({pageKey:I.value,results:(C=N.value)==null?void 0:C.map(D=>D==null?void 0:D.id),isDelete:!0})},{immediate:!0}),e.watch(()=>d.value,a=>{var s,C,D;V.setContentLoading(!0),c.value=!a||(a==null?void 0:a.length)===0?[]:(s=f.cloneDeep(a))==null?void 0:s.filter(k=>!(k!=null&&k.affix)||(k==null?void 0:k.affix)==="default"),P.value=!a||(a==null?void 0:a.length)===0?[]:(C=f.cloneDeep(a))==null?void 0:C.filter(k=>(k==null?void 0:k.affix)&&(k==null?void 0:k.affix)!=="default"),(D=O.value)!=null&&D.grid&&T(c.value)},{deep:!0,immediate:!0});const H=a=>K.getComponent(a);return(a,s)=>{var J,x,ee,ne,se,re,ce,ue,ie,de,pe,ve;const C=e.resolveComponent("el-tab-pane"),D=e.resolveComponent("el-tabs"),k=e.resolveComponent("el-step"),G=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:E,class:"low-code-wrapper",onDragover:L,onDrop:F},[(J=O.value)!=null&&J.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,(t,B)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:B},[e.createElementVNode("div",Ct,e.toDisplayString(t.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t.comp)),{itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport},pageLayout:$.value,parentTableId:t==null?void 0:t.tableId,children:t==null?void 0:t.children,level:1},null,8,["itemData","childItemData","config","pageLayout","parentTableId","children"]))]))),128)):e.createCommentVNode("",!0),(x=O.value)!=null&&x.grid?(e.openBlock(),e.createBlock(e.unref(K.De),{key:1,ref_key:"gridLayoutRef",ref:S,layout:N.value,"onUpdate:layout":s[0]||(s[0]=t=>N.value=t),"prevent-collision":!1,"is-draggable":!0,"is-resizable":!0,responsive:!1,"col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(t,B)=>{var ae,fe;return e.openBlock(),e.createBlock(e.unref(K.st),{key:t.i,x:t.x,y:t.y,"min-h":t.minH,"max-h":t.maxH,"min-w":t.minW,w:t.w,h:e.unref(K.verifyButton)((ae=c.value[B])==null?void 0:ae.comp)?0:t.h,i:t.i,class:e.normalizeClass(e.unref(K.verifyButton)((fe=c.value[B])==null?void 0:fe.comp)?"grid-method-button":"")},{default:e.withCtx(()=>{var he,me,ge,Ce,ke,ye,_e,be,De,we,xe,Be;return[e.createElementVNode("div",{class:e.normalizeClass((me=P.value)!=null&&me.includes((he=t==null?void 0:t.component)==null?void 0:he.id)?"comp-wrapper affix-content":"comp-wrapper")},[e.createElementVNode("div",kt,e.toDisplayString((ge=c.value[B])==null?void 0:ge.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((Ce=c.value[B])==null?void 0:Ce.comp)),{pageLayout:$.value,itemData:(ke=c.value[B])==null?void 0:ke.compData,childItemData:(ye=c.value[B])==null?void 0:ye.itemChildData,index:((_e=c.value[B])==null?void 0:_e.id)??B,parentTableId:(be=c.value[B])==null?void 0:be.tableId,children:(De=c.value[B])==null?void 0:De.children,level:1,config:{showIndex:(we=c.value[B])==null?void 0:we.showIndex,allowMove:(xe=c.value[B])==null?void 0:xe.allowMove,viewport:(Be=c.value[B])==null?void 0:Be.viewport}},null,8,["pageLayout","itemData","childItemData","index","parentTableId","children","config"]))],2)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i","class"])}),128))]),_:1},8,["layout"])):e.createCommentVNode("",!0),(ee=O.value)!=null&&ee.tab?(e.openBlock(),e.createElementBlock("div",yt,[e.createVNode(D,{modelValue:g.value,"onUpdate:modelValue":s[1]||(s[1]=t=>g.value=t),type:"card",class:"display-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(C,{key:t.i,label:t==null?void 0:t.name,name:t==null?void 0:t.name},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t==null?void 0:t.comp)),{pageLayout:$.value,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(ne=O.value)!=null&&ne.step?(e.openBlock(),e.createBlock(G,{key:3,direction:"horizontal",active:w.value,"align-center":!0,class:"display-steps"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(k,{key:B,class:"step-item",status:h.value,onClick:ae=>v(t,B+1)},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t==null?void 0:t.name),1)]),_:2},1032,["status","onClick"]))),128))]),_:1},8,["active"])):e.createCommentVNode("",!0),(se=O.value)!=null&&se.step?(e.openBlock(),e.createElementBlock("div",_t,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((re=o.value)==null?void 0:re.comp)),{pageLayout:$.value,itemData:(ce=o.value)==null?void 0:ce.compData,childItemData:(ue=o.value)==null?void 0:ue.itemChildData,key:(ie=o.value)==null?void 0:ie.id,config:{showIndex:(de=o.value)==null?void 0:de.showIndex,allowMove:(pe=o.value)==null?void 0:pe.allowMove,viewport:(ve=o.value)==null?void 0:ve.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))])):e.createCommentVNode("",!0)],544)}}},Dt=oe._export_sfc(bt,[["__scopeId","data-v-fda67a9b"]]),X=e.ref(0),wt=l=>l.reduce((d,r)=>{var c,w;const y=Object.values(d);return(((c=Object.keys(d))==null?void 0:c.length)===0||y[y.length-1].length>=(r==null?void 0:r.width))&&(d[X.value]=[],X.value++),d[X.value-1].push(r),((w=Object.keys(d))==null?void 0:w.length)===(r==null?void 0:r.width)&&(d[X.value]=[],X.value++),d},{});exports.arrayToNumberArray=wt;exports.modelFill=gt;exports.modelSelect=qe;exports.modelShow=Dt;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef as i2, ref as T, defineComponent as c2, computed as Z, createElementBlock as o2, openBlock as n2, createElementVNode as B } from "vue";
|
|
2
|
-
import { V as r, av as h2, E as Y, B as k, j as S, ax as s2, G as p2, h as j, i as r2, S as d2, C as v2, P as z2, W as f2, e as A2, A as m2, f as M2, M as t2, bk as u2, X as F2, k as g2, D as J, H as y2, l as l2, b1 as w2, m as B2, n as b2, o as K } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
3
|
-
import { O as H2 } from "./OrbitControls-
|
|
2
|
+
import { V as r, av as h2, E as Y, B as k, j as S, ax as s2, G as p2, h as j, i as r2, S as d2, C as v2, P as z2, W as f2, e as A2, A as m2, f as M2, M as t2, bk as u2, X as F2, k as g2, D as J, H as y2, l as l2, b1 as w2, m as B2, n as b2, o as K } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DLhSjOxx.js";
|
|
3
|
+
import { O as H2 } from "./OrbitControls-BYkzMsSX.js";
|
|
4
4
|
import { _ as V2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const n1 = (i, a = "YZX") => {
|
|
6
6
|
const t = new r(), o = new h2(), h = new r(), p = new Y();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-ejX66qtQ.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-6F-e2GJs.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index-CNNvnXL-.cjs");require("./index-BkOJA3nu.cjs");const _=require("./menu-DopnPfbG.cjs");require("./request-BC2w2vGr.cjs");require("./dayjs.min-73fIR1V_.cjs");;/* empty css */const h=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y={class:"personal-wrapper"},V={class:"personal-box left"},N={class:"base-avatar"},x={class:"center-avatar"},S={class:"base-info"},D={class:"base-signature"},E={class:"personal-box right"},k=e.defineComponent({__name:"index",setup(C){const t=e.reactive({...r.State}),f=_.useLoginState(),{loginUserInfo:n}=_.storeToRefs(f);return e.onMounted(()=>{var i;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((i=n==null?void 0:n.value)==null?void 0:i.id),r.tabKey.value++}),(i,o)=>{var c,d,u,g,p,m,v;const s=e.resolveComponent("svg-icon"),a=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",V,[e.createElementVNode("div",N,[e.createElementVNode("div",x,[e.withDirectives(e.createVNode(r.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:o[0]||(o[0]=l=>t.submitImageAsync("avatarUrl",l))},null,8,["disabled","userInfo"]),[[a,t.avatarLoading]])])]),e.createElementVNode("div",S,[e.createElementVNode("div",null,[e.createVNode(s,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",D,[e.withDirectives(e.createVNode(r.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=l=>t.submitImageAsync("signature",l))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[a,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(),e.createBlock(b.ssTab,{key:e.unref(r.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[a,t.loading]])])}}}),B=h._export_sfc(k,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=B;
|