ss-component-new 1.2.152 → 1.2.153
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-rr5QiHpH.js → MTLLoader-BejJP-Qs.js} +1 -1
- package/dist/{MTLLoader-CS7tCafW.cjs → MTLLoader-BtmHWOWJ.cjs} +1 -1
- package/dist/{OrbitControls-BF3SmLb0.cjs → OrbitControls-B5n4pNnY.cjs} +1 -1
- package/dist/{OrbitControls-DJK5ejeR.js → OrbitControls-D9OuWDAQ.js} +1 -1
- package/dist/{URDFLoader-GhedGy2f.js → URDFLoader-CDQ9AzDC.js} +2 -2
- package/dist/{URDFLoader-YkeuzOMY.cjs → URDFLoader-CXRFJE57.cjs} +1 -1
- package/dist/{animationData-f8DG4NvQ.cjs → animationData-C-hP9TLC.cjs} +1 -1
- package/dist/{animationData-DPvrpOI5.js → animationData-CHHAeFI3.js} +1 -1
- package/dist/{array-Fw9xDONN.cjs → array-C7BzUOR1.cjs} +1 -1
- package/dist/{array-fj93XUQy.js → array-Cn8wes9B.js} +1 -1
- package/dist/{iconfont-DaheQsG9.js → iconfont-CfQSEOs-.js} +2 -2
- package/dist/{iconfont-DduD50a_.cjs → iconfont-Z-AjJWoS.cjs} +1 -1
- package/dist/{index-DYBdWLQB.js → index--xh6iNm8.js} +7 -7
- package/dist/{index-CR2AjtrT.cjs → index-2iNXd4Ar.cjs} +1 -1
- package/dist/{index-DKvvJrTD.cjs → index-BJBnz11Q.cjs} +1 -1
- package/dist/{index-et6Sj8_h.js → index-BOhnPuY9.js} +3 -3
- package/dist/{index-zvEJ55jE.js → index-BYang6IA.js} +112 -112
- package/dist/{index-B3ltAGaY.cjs → index-Bm9eUAn_.cjs} +1 -1
- package/dist/{index-B0hNWWPQ.cjs → index-BmIq8n_F.cjs} +1 -1
- package/dist/{index-Lkx2D7iY.js → index-Bo9jr0Zi.js} +3 -3
- package/dist/{index-BKkiPOUm.cjs → index-Bx3qFbvZ.cjs} +1 -1
- package/dist/{index-BQGkc6hK.cjs → index-C782IlXk.cjs} +1 -1
- package/dist/{index-CWxQsf8s.js → index-CB8ALWj-.js} +1 -1
- package/dist/{index-7LIrILAr.cjs → index-CFgOTsvt.cjs} +1 -1
- package/dist/{index-lDahC_XO.cjs → index-CHT9f67p.cjs} +1 -1
- package/dist/{index-BD3QHmi2.js → index-CJDmIhbC.js} +16 -16
- package/dist/{index-DRCkHJv6.js → index-CJMcB4h8.js} +1 -1
- package/dist/{index-gB6pRsiR.cjs → index-CKwNwB_8.cjs} +1 -1
- package/dist/{index-ClZIL753.js → index-CL8Yzkby.js} +1 -1
- package/dist/{index-CiY3qQGB.js → index-CU6jK3Be.js} +4 -4
- package/dist/{index-Ct1B2wQp.cjs → index-CcZJE3jG.cjs} +1 -1
- package/dist/{index-CoqywjX6.js → index-CeWb_Akd.js} +1 -1
- package/dist/{index-BL8WxaPd.cjs → index-Csmw4ipZ.cjs} +1 -1
- package/dist/{index-8GKfPIWL.js → index-CyTjG5QP.js} +8 -8
- package/dist/{index-CB9ExkJX.cjs → index-D-WVNfBK.cjs} +1 -1
- package/dist/{index-CSHoEB6w.js → index-D2_gz0RZ.js} +2 -2
- package/dist/{index-Dm060Nko.js → index-D3NTZz8D.js} +4 -4
- package/dist/{index-Co-fGQmY.cjs → index-DDOJlsUW.cjs} +1 -1
- package/dist/{index-Dq-92rzL.js → index-DSRhb9Vz.js} +1 -1
- package/dist/{index-COELguaL.js → index-DTg5WplY.js} +1 -1
- package/dist/{index-DkQWdiUV.cjs → index-DZrjyG-a.cjs} +1 -1
- package/dist/{index-yYlZ6saJ.js → index-D_1vHr0J.js} +1 -1
- package/dist/{index-DJ-Ubkcc.cjs → index-DhdTc0OQ.cjs} +1 -1
- package/dist/{index-CB-Mvo0Z.cjs → index-DpyyqVn-.cjs} +1 -1
- package/dist/{index-D6QtbyQH.cjs → index-Dte3ZZke.cjs} +1 -1
- package/dist/{index-CMDAMO_8.cjs → index-DuUpWpCS.cjs} +1 -1
- package/dist/{index-CvHIDE8A.js → index-Dxk1cU3M.js} +1 -1
- package/dist/{index-T1w28E7x.js → index-ORlEJXHz.js} +1 -1
- package/dist/{index-DAW-_6kb.js → index-V1DcbN_x.js} +1 -1
- package/dist/{index-CDAcp7rJ.cjs → index-VPs5zsxn.cjs} +1 -1
- package/dist/{index-D28B2qMb.cjs → index-e3pWHaAB.cjs} +1 -1
- package/dist/{index-CxWrTyvu.js → index-fjulcdkR.js} +4 -4
- package/dist/{index-DBck8dcP.cjs → index-kX2P3zSJ.cjs} +1 -1
- package/dist/{index-CGtLqnX3.js → index-lMUbGXaB.js} +1 -1
- package/dist/{index-C571XfiP.js → index-ncZ9UeCL.js} +2 -2
- package/dist/{index-BXeRvh_y.cjs → index-yVeoEkO5.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Sg3OAnZO.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BXd4qgPk.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CK6SdpoM.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DoQnf2Xb.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLwFjtzq.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BDBlck5Z.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZDAM7UU.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CdH8DTu8.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DxIhhKdi.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-C7H7qKuZ.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CXKsTe4a.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DuEvXb33.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-Dsu6zZjp.js → index.vue_vue_type_style_index_1_lang-BPaap3zh.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-CpLBwzYm.cjs → index.vue_vue_type_style_index_1_lang-bzCyALMG.cjs} +1 -1
- package/dist/{main-CUI407g3.cjs → main-BJgGsJ1h.cjs} +1 -1
- package/dist/{main-Bvxuhx83.js → main-BiPfVLko.js} +3 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-DSJiORME.cjs → threeModel-7FXgfwHb.cjs} +1 -1
- package/dist/{threeModel-C-4qS44N.js → threeModel-DycV17xV.js} +4 -4
- package/dist/{threePreview-DQPl29N6.cjs → threePreview-CtICArJw.cjs} +1 -1
- package/dist/{threePreview-BSfotxX2.js → threePreview-s0AxB3yH.js} +3 -3
- package/dist/{threeSceneView-D7WbPEOa.js → threeSceneView-B3eaM3zv.js} +8 -8
- package/dist/{threeSceneView-wByC9Vlj.cjs → threeSceneView-CUu5Omyz.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-BtS3FkVG.js → threeSceneViewForCPMPIP-D-luCm5B.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-C3wdlamC.cjs → threeSceneViewForCPMPIP-Dg208-pk.cjs} +1 -1
- package/dist/{threeTrackPathView-TShdPDAu.js → threeTrackPathView-BmRabc3W.js} +3 -3
- package/dist/{threeTrackPathView-DZdCiZmn.cjs → threeTrackPathView-mQ-2bKju.cjs} +1 -1
- package/dist/{threeViewerHost-dVdN527Y.cjs → threeViewerHost-CCxCVdHT.cjs} +1 -1
- package/dist/{threeViewerHost-CScPmwpQ.js → threeViewerHost-C_j3oIAp.js} +2 -2
- package/dist/{urdfTree-BjNrHH4-.js → urdfTree-C4zJU99i.js} +1 -1
- package/dist/{urdfTree-NTWDKnsG.cjs → urdfTree-fsrr6ZOU.cjs} +1 -1
- package/dist/{workpieceTreePanel-DQfDiDMb.js → workpieceTreePanel-BKlndzR-.js} +4 -4
- package/dist/{workpieceTreePanel-KzdD3enP.cjs → workpieceTreePanel-DBHseqNd.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, createElementVNode as t, withDirectives as g, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
|
|
2
2
|
import { S as I, t as x } from "./index-_lg-jrRI.js";
|
|
3
|
-
import { s as w, a as L } from "./index-
|
|
3
|
+
import { s as w, a as L } from "./index-Bo9jr0Zi.js";
|
|
4
4
|
import "./index-BHtNKL1L.js";
|
|
5
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { h as E } from "./index-
|
|
5
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CdH8DTu8.js";
|
|
6
|
+
import { h as E } from "./index-CU6jK3Be.js";
|
|
7
7
|
import { u as N, s as U } from "./index-DIUrwul5.js";
|
|
8
8
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const z = { class: "personal-wrapper" }, F = { class: "personal-box left" }, H = { class: "base-avatar" }, K = { class: "center-avatar" }, M = { class: "base-info" }, R = { class: "base-signature" }, j = { class: "personal-box right" }, q = /* @__PURE__ */ C({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as Y, watch as Ze, nextTick as oa, resolveComponent as Ie, createBlock as Pe, openBlock as ae, withCtx as I, createElementVNode as ge, renderSlot as Ba, onMounted as va, createElementBlock as ke, normalizeStyle as xl, normalizeClass as ar, toDisplayString as Oe, createCommentVNode as De, createVNode as se, unref as al, Fragment as fl, renderList as hl, createTextVNode as el, defineComponent as rr, reactive as ql, inject as dn, provide as pn, onBeforeUnmount as fn, computed as Ma, onUnmounted as hn, createSlots as gn, withModifiers as Fa, withDirectives as Ka, vShow as za } from "vue";
|
|
2
2
|
import { by as Ja, ay as Wa, c as X, E as Ge, bS as nr, g as Cl, p as ml, s as Ll, u as yn, f as vn, b as Al, bK as bn, bI as Ra, e as kn, ce as Sn } from "./index-DIUrwul5.js";
|
|
3
|
-
import { V as Hl, aD as Tn, aE as Ql, aF as mn, g as Pl, b as An, a as Cn, U as xn, u as Un, aG as qa, aH as Ga, aI as _n, aJ as Dn, d as ga, R as Ha, n as Qa, l as On, aK as Xa, a1 as En, aL as jn, aM as Ln, aN as Pn, T as $n, aO as Nn } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import { d as $l, a as Ya, i as wn, e as Bn, E as Mn } from "./index-
|
|
5
|
-
import { a as Fn, T as Kn } from "./threeViewerHost-
|
|
3
|
+
import { V as Hl, aD as Tn, aE as Ql, aF as mn, g as Pl, b as An, a as Cn, U as xn, u as Un, aG as qa, aH as Ga, aI as _n, aJ as Dn, d as ga, R as Ha, n as Qa, l as On, aK as Xa, a1 as En, aL as jn, aM as Ln, aN as Pn, T as $n, aO as Nn } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CdH8DTu8.js";
|
|
4
|
+
import { d as $l, a as Ya, i as wn, e as Bn, E as Mn } from "./index-CU6jK3Be.js";
|
|
5
|
+
import { a as Fn, T as Kn } from "./threeViewerHost-C_j3oIAp.js";
|
|
6
6
|
import { u as zn, a as Jn, E as Za } from "./index-AIq5wzuR.js";
|
|
7
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
7
|
+
import "./index.vue_vue_type_style_index_1_lang-BPaap3zh.js";
|
|
8
8
|
import { _ as sa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { s as Gl } from "./index-
|
|
9
|
+
import { s as Gl } from "./index-D_1vHr0J.js";
|
|
10
10
|
import "./index-_lg-jrRI.js";
|
|
11
11
|
import { i as Ia } from "./isString-CN3i5s9o.js";
|
|
12
12
|
const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
@@ -1229,8 +1229,8 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1229
1229
|
let h = (r = a == null ? void 0 : a.columnType) == null ? void 0 : r.prop, Q = a == null ? void 0 : a.data;
|
|
1230
1230
|
if (Tl.value = await Pl(Se.value, sessionStorage.getItem("systemKey"), ""), !Tl.value) {
|
|
1231
1231
|
let N = (c = (t = (s = Se.value) == null ? void 0 : s.split("/")) == null ? void 0 : t.filter((W, y) => {
|
|
1232
|
-
var U,
|
|
1233
|
-
return y !== ((
|
|
1232
|
+
var U, b;
|
|
1233
|
+
return y !== ((b = (U = Se.value) == null ? void 0 : U.split("/")) == null ? void 0 : b.length) - 1;
|
|
1234
1234
|
})) == null ? void 0 : c.join("/");
|
|
1235
1235
|
Tl.value = await Pl(N, sessionStorage.getItem("systemKey"), "");
|
|
1236
1236
|
}
|
|
@@ -1238,8 +1238,8 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1238
1238
|
Tl.value = u == null ? void 0 : u.map((N) => {
|
|
1239
1239
|
var W;
|
|
1240
1240
|
return N.compData = (W = N.compData) == null ? void 0 : W.map((y) => {
|
|
1241
|
-
var U,
|
|
1242
|
-
return (y == null ? void 0 : y.key) === "tableContents" && (U = y == null ? void 0 : y.contents) != null && U.every((p) => p == null ? void 0 : p.find(($) => $ == null ? void 0 : $.id)) && (y.contents = (
|
|
1241
|
+
var U, b;
|
|
1242
|
+
return (y == null ? void 0 : y.key) === "tableContents" && (U = y == null ? void 0 : y.contents) != null && U.every((p) => p == null ? void 0 : p.find(($) => $ == null ? void 0 : $.id)) && (y.contents = (b = y == null ? void 0 : y.contents) == null ? void 0 : b.filter((p) => (p == null ? void 0 : p[1]) === Q)), y;
|
|
1243
1243
|
}), N;
|
|
1244
1244
|
}), V("routeUrl", Tl.value, {
|
|
1245
1245
|
isEdit: !0,
|
|
@@ -1250,13 +1250,13 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1250
1250
|
if ((a == null ? void 0 : a.data) === "查看" && (e != null && e.every((h) => (h == null ? void 0 : h.url) && (h == null ? void 0 : h.name)))) {
|
|
1251
1251
|
let h = X(e);
|
|
1252
1252
|
h = await ((f = X(h)) == null ? void 0 : f.map(async (u) => {
|
|
1253
|
-
var y, U,
|
|
1253
|
+
var y, U, b, p;
|
|
1254
1254
|
const N = await ga({
|
|
1255
1255
|
url: u == null ? void 0 : u.url
|
|
1256
1256
|
});
|
|
1257
1257
|
let W = URL.createObjectURL(N.data);
|
|
1258
1258
|
return {
|
|
1259
|
-
name: (u == null ? void 0 : u.name) + "." + ((p = (y = u == null ? void 0 : u.url) == null ? void 0 : y.split(".")) == null ? void 0 : p[((
|
|
1259
|
+
name: (u == null ? void 0 : u.name) + "." + ((p = (y = u == null ? void 0 : u.url) == null ? void 0 : y.split(".")) == null ? void 0 : p[((b = (U = u == null ? void 0 : u.url) == null ? void 0 : U.split(".")) == null ? void 0 : b.length) - 1]),
|
|
1260
1260
|
blobUrl: W
|
|
1261
1261
|
};
|
|
1262
1262
|
}));
|
|
@@ -1372,7 +1372,7 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1372
1372
|
};
|
|
1373
1373
|
return n(e), l;
|
|
1374
1374
|
}, qr = async (e, l, n) => {
|
|
1375
|
-
var _, v, C, h, Q, u, N, W, y, U,
|
|
1375
|
+
var _, v, C, h, Q, u, N, W, y, U, b;
|
|
1376
1376
|
Fe.setImportLoading(!0), Ee.setFreshContent(!1);
|
|
1377
1377
|
let a = await zr().catch((p) => (Fe.setImportLoading(!1), Promise.reject(p)));
|
|
1378
1378
|
a = a == null ? void 0 : a.filter((p) => {
|
|
@@ -1418,8 +1418,8 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1418
1418
|
return S.compData = (E = S == null ? void 0 : S.compData) == null ? void 0 : E.map((M) => {
|
|
1419
1419
|
var ie;
|
|
1420
1420
|
return (M == null ? void 0 : M.key) === "tableContents" && (M.contents = (ie = M == null ? void 0 : M.contents) == null ? void 0 : ie.filter((R) => {
|
|
1421
|
-
var te,
|
|
1422
|
-
return (R == null ? void 0 : R[1]) === (l == null ? void 0 : l[(
|
|
1421
|
+
var te, k;
|
|
1422
|
+
return (R == null ? void 0 : R[1]) === (l == null ? void 0 : l[(k = (te = q == null ? void 0 : q.value) == null ? void 0 : te[0]) == null ? void 0 : k.prop]);
|
|
1423
1423
|
})), M;
|
|
1424
1424
|
}), S;
|
|
1425
1425
|
})), A = Wr(Z);
|
|
@@ -1440,10 +1440,10 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1440
1440
|
p.push(Z);
|
|
1441
1441
|
});
|
|
1442
1442
|
if (await Promise.all(x), !jn($)) {
|
|
1443
|
-
let Z = await Ln($), S = (
|
|
1444
|
-
var M, ie, R, te,
|
|
1443
|
+
let Z = await Ln($), S = (b = (U = Z == null ? void 0 : Z.data) == null ? void 0 : U.result) == null ? void 0 : b.map((E) => {
|
|
1444
|
+
var M, ie, R, te, k, i;
|
|
1445
1445
|
return {
|
|
1446
|
-
name: (i = (
|
|
1446
|
+
name: (i = (k = (te = (M = E == null ? void 0 : E.url) == null ? void 0 : M.split("/")) == null ? void 0 : te[((R = (ie = E == null ? void 0 : E.url) == null ? void 0 : ie.split("/")) == null ? void 0 : R.length) - 1]) == null ? void 0 : k.split(".")) == null ? void 0 : i[0],
|
|
1447
1447
|
url: E == null ? void 0 : E.url
|
|
1448
1448
|
};
|
|
1449
1449
|
});
|
|
@@ -1664,12 +1664,12 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1664
1664
|
value: {
|
|
1665
1665
|
pageData: y
|
|
1666
1666
|
}
|
|
1667
|
-
},
|
|
1667
|
+
}, b = await Al.post(W.api, U, {
|
|
1668
1668
|
headers: {
|
|
1669
1669
|
"Content-Type": "application/json"
|
|
1670
1670
|
}
|
|
1671
1671
|
});
|
|
1672
|
-
return ((J =
|
|
1672
|
+
return ((J = b == null ? void 0 : b.data) == null ? void 0 : J.code) === 200 && (v = (F = (K = b == null ? void 0 : b.data) == null ? void 0 : K.result) == null ? void 0 : F.latestReportCode, C = (_ = (m = b == null ? void 0 : b.data) == null ? void 0 : m.result) == null ? void 0 : _.status), {
|
|
1673
1673
|
newMainKeyValue: v,
|
|
1674
1674
|
newStatus: C
|
|
1675
1675
|
};
|
|
@@ -1824,17 +1824,17 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1824
1824
|
let W = (j = (O = (g = u == null ? void 0 : u.content) == null ? void 0 : g.replace(":", il)) == null ? void 0 : O.split(il)) == null ? void 0 : j[1];
|
|
1825
1825
|
if (((D = W == null ? void 0 : W.trim()) == null ? void 0 : D.toUpperCase()) === "MANUAL") {
|
|
1826
1826
|
let y = (_ = (m = (J = o.itemData) == null ? void 0 : J.filter((U) => (U == null ? void 0 : U.key) === "contentTableId")) == null ? void 0 : m[((F = (K = o.itemData) == null ? void 0 : K.filter((U) => (U == null ? void 0 : U.key) === "contentTableId")) == null ? void 0 : F.length) - 1]) == null ? void 0 : _.contents;
|
|
1827
|
-
Be.value = (v = Be.value) == null ? void 0 : v.map((U,
|
|
1827
|
+
Be.value = (v = Be.value) == null ? void 0 : v.map((U, b) => {
|
|
1828
1828
|
var p, $, x, ne, Z, S, E, M, ie, R, te;
|
|
1829
|
-
return (p = U == null ? void 0 : U.optionUrl) != null && p.menuId && (U.type = "Select", ($ = U == null ? void 0 : U.optionUrl) != null && $.menuId ? (U.optionUrl.menuId = y, U.optionUrl.menuFilter = r, U.optionUrl.multiple = (Z = (ne = (x = r == null ? void 0 : r.find((
|
|
1829
|
+
return (p = U == null ? void 0 : U.optionUrl) != null && p.menuId && (U.type = "Select", ($ = U == null ? void 0 : U.optionUrl) != null && $.menuId ? (U.optionUrl.menuId = y, U.optionUrl.menuFilter = r, U.optionUrl.multiple = (Z = (ne = (x = r == null ? void 0 : r.find((k) => {
|
|
1830
1830
|
var i;
|
|
1831
|
-
return (i =
|
|
1832
|
-
})) == null ? void 0 : x.content) == null ? void 0 : ne.split(":")) != null && Z[1] && parseInt((M = (E = (S = r == null ? void 0 : r.find((
|
|
1831
|
+
return (i = k == null ? void 0 : k.content) == null ? void 0 : i.includes("@Num");
|
|
1832
|
+
})) == null ? void 0 : x.content) == null ? void 0 : ne.split(":")) != null && Z[1] && parseInt((M = (E = (S = r == null ? void 0 : r.find((k) => {
|
|
1833
1833
|
var i;
|
|
1834
|
-
return (i =
|
|
1835
|
-
})) == null ? void 0 : S.content) == null ? void 0 : E.split(":")) == null ? void 0 : M[1]) > 1 ? !0 : void 0, U.optionUrl.multipleLimit = (te = (R = (ie = r == null ? void 0 : r.find((
|
|
1834
|
+
return (i = k == null ? void 0 : k.content) == null ? void 0 : i.includes("@Num");
|
|
1835
|
+
})) == null ? void 0 : S.content) == null ? void 0 : E.split(":")) == null ? void 0 : M[1]) > 1 ? !0 : void 0, U.optionUrl.multipleLimit = (te = (R = (ie = r == null ? void 0 : r.find((k) => {
|
|
1836
1836
|
var i;
|
|
1837
|
-
return (i =
|
|
1837
|
+
return (i = k == null ? void 0 : k.content) == null ? void 0 : i.includes("@Num");
|
|
1838
1838
|
})) == null ? void 0 : ie.content) == null ? void 0 : R.split(":")) == null ? void 0 : te[1]) : U.optionUrl = {
|
|
1839
1839
|
menuId: y,
|
|
1840
1840
|
menuFilter: r
|
|
@@ -1847,8 +1847,8 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1847
1847
|
return ((y = W == null ? void 0 : W.optionUrl) == null ? void 0 : y.menuId) && ((U = W == null ? void 0 : W.optionUrl) == null ? void 0 : U.menuId) !== "";
|
|
1848
1848
|
});
|
|
1849
1849
|
if ((N == null ? void 0 : N.length) > 1) {
|
|
1850
|
-
let W = N == null ? void 0 : N.map((p) => p == null ? void 0 : p.prop), y = N == null ? void 0 : N.map((p) => p == null ? void 0 : p.label), U = N == null ? void 0 : N.map((p) => p == null ? void 0 : p.value),
|
|
1851
|
-
|
|
1850
|
+
let W = N == null ? void 0 : N.map((p) => p == null ? void 0 : p.prop), y = N == null ? void 0 : N.map((p) => p == null ? void 0 : p.label), U = N == null ? void 0 : N.map((p) => p == null ? void 0 : p.value), b = (h = X(N)) == null ? void 0 : h[0];
|
|
1851
|
+
b.label = y == null ? void 0 : y.join("·"), b.value = U == null ? void 0 : U.join(" "), b.value.trim() === "" && (b.value = ""), b.prop = W == null ? void 0 : W.join("·"), b.usingType = "parent", Be.value.unshift(b), Be.value = (Q = Be.value) == null ? void 0 : Q.map((p) => (W != null && W.find(($) => $ === (p == null ? void 0 : p.prop)) && (p.isFormColHidden = !0), p));
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
1854
|
}, Vr = () => {
|
|
@@ -1946,7 +1946,7 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1946
1946
|
return delete r.children, r;
|
|
1947
1947
|
}) : [];
|
|
1948
1948
|
}, Wl = (e = !0, l, n) => {
|
|
1949
|
-
var f, A, L, z, g, O, j, D, J, K, F, m, _, v, C, h, Q, u, N, W, y, U,
|
|
1949
|
+
var f, A, L, z, g, O, j, D, J, K, F, m, _, v, C, h, Q, u, N, W, y, U, b, p, $, x, ne, Z, S;
|
|
1950
1950
|
let a = Hl((f = X(q.value)) == null ? void 0 : f.filter((E) => (E == null ? void 0 : E.label) !== "操作")), r, s = X(le.value);
|
|
1951
1951
|
if (!Re.value) {
|
|
1952
1952
|
cl.value = !1;
|
|
@@ -1973,15 +1973,15 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1973
1973
|
var te;
|
|
1974
1974
|
let R = {};
|
|
1975
1975
|
if (Array.isArray(M)) {
|
|
1976
|
-
let
|
|
1976
|
+
let k = [];
|
|
1977
1977
|
M == null || M.filter((i) => !(i != null && i.id)).forEach((i, de) => {
|
|
1978
1978
|
var ye, oe, Ce, Ue, ze, Qe, Le;
|
|
1979
1979
|
if ((oe = (ye = ul.value) == null ? void 0 : ye[de]) != null && oe.prop && !Array.isArray(i)) {
|
|
1980
1980
|
let Ke = {};
|
|
1981
|
-
Ke[ul.value[de].column] = i, me != null && me.value && ((Ce = me == null ? void 0 : me.value) == null ? void 0 : Ce.length) > 0 && ((Ue = me == null ? void 0 : me.value) != null && Ue.find((Me) => JSON.stringify(Me == null ? void 0 : Me[0]) === JSON.stringify(Ke))) && (
|
|
1981
|
+
Ke[ul.value[de].column] = i, me != null && me.value && ((Ce = me == null ? void 0 : me.value) == null ? void 0 : Ce.length) > 0 && ((Ue = me == null ? void 0 : me.value) != null && Ue.find((Me) => JSON.stringify(Me == null ? void 0 : Me[0]) === JSON.stringify(Ke))) && (k = (ze = me == null ? void 0 : me.value) == null ? void 0 : ze.find((Me) => JSON.stringify(Me == null ? void 0 : Me[0]) === JSON.stringify(Ke))), k && k.length > 0 ? R[ul.value[de].prop] = k != null && k.find((Me) => {
|
|
1982
1982
|
var Xe;
|
|
1983
1983
|
return ((Xe = Object.keys(Me)) == null ? void 0 : Xe[0]) === ul.value[de].column;
|
|
1984
|
-
}) ? (Qe =
|
|
1984
|
+
}) ? (Qe = k == null ? void 0 : k.find((Me) => {
|
|
1985
1985
|
var Xe;
|
|
1986
1986
|
return ((Xe = Object.keys(Me)) == null ? void 0 : Xe[0]) === ul.value[de].column;
|
|
1987
1987
|
})) == null ? void 0 : Qe[ul.value[de].column] : i : R[ul.value[de].prop] = i;
|
|
@@ -1989,7 +1989,7 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
1989
1989
|
});
|
|
1990
1990
|
} else
|
|
1991
1991
|
R = M;
|
|
1992
|
-
Array.isArray(M) && M.some((
|
|
1992
|
+
Array.isArray(M) && M.some((k) => k == null ? void 0 : k.id) ? E.push(Object.assign(R, { id: (te = M == null ? void 0 : M.find((k) => k.id)) == null ? void 0 : te.id })) : R.id ? E.push(R) : E.push(Object.assign(R, { id: ie.toString() }));
|
|
1993
1993
|
}), le.value = Pa(E, t, q.value);
|
|
1994
1994
|
} else
|
|
1995
1995
|
le.value = s;
|
|
@@ -2027,13 +2027,13 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2027
2027
|
cl.value = !1;
|
|
2028
2028
|
let E = (W = o.itemData) == null ? void 0 : W.filter((M) => (M == null ? void 0 : M.key) === "filterAllType");
|
|
2029
2029
|
if ((E == null ? void 0 : E.length) > 0) {
|
|
2030
|
-
let M = E == null ? void 0 : E.map((te) => te == null ? void 0 : te.value), ie = (
|
|
2031
|
-
var
|
|
2032
|
-
return (
|
|
2033
|
-
})) == null ? void 0 : y.content) == null ? void 0 : U.split(":")) == null ? void 0 :
|
|
2030
|
+
let M = E == null ? void 0 : E.map((te) => te == null ? void 0 : te.value), ie = (b = (U = (y = M.flat().find((te) => {
|
|
2031
|
+
var k;
|
|
2032
|
+
return (k = te == null ? void 0 : te.content) == null ? void 0 : k.includes("@Num");
|
|
2033
|
+
})) == null ? void 0 : y.content) == null ? void 0 : U.split(":")) == null ? void 0 : b[1];
|
|
2034
2034
|
((x = ($ = (p = M.flat().find((te) => {
|
|
2035
|
-
var
|
|
2036
|
-
return (
|
|
2035
|
+
var k;
|
|
2036
|
+
return (k = te == null ? void 0 : te.content) == null ? void 0 : k.includes("@Select:");
|
|
2037
2037
|
})) == null ? void 0 : p.content) == null ? void 0 : $.split(":")) == null ? void 0 : x[1]) !== "Manual" && (ie = parseInt(ie), le.value = (S = le.value) == null ? void 0 : S.slice(((ne = le.value) == null ? void 0 : ne.length) - ie, (Z = le.value) == null ? void 0 : Z.length));
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
@@ -2047,15 +2047,15 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2047
2047
|
const a = X(o.itemData), r = a == null ? void 0 : a.map((m) => {
|
|
2048
2048
|
var _;
|
|
2049
2049
|
return (m == null ? void 0 : m.key) === "header" && ((_ = m.contents) == null || _.map((v, C) => {
|
|
2050
|
-
var h, Q, u, N, W, y, U,
|
|
2051
|
-
return v.type = v != null && v.type ? v.type : (N = (u = (Q = (h = v == null ? void 0 : v.key) == null ? void 0 : h.split("$")) == null ? void 0 : Q[1]) == null ? void 0 : u.split("(")) != null && N[0] ? (y = (W = Ha) == null ? void 0 : W.find((
|
|
2050
|
+
var h, Q, u, N, W, y, U, b, p, $, x, ne, Z, S, E, M, ie, R, te;
|
|
2051
|
+
return v.type = v != null && v.type ? v.type : (N = (u = (Q = (h = v == null ? void 0 : v.key) == null ? void 0 : h.split("$")) == null ? void 0 : Q[1]) == null ? void 0 : u.split("(")) != null && N[0] ? (y = (W = Ha) == null ? void 0 : W.find((k) => {
|
|
2052
2052
|
var i, de, ye, oe;
|
|
2053
|
-
return (
|
|
2054
|
-
})) == null ? void 0 : y.value : "Input", v.options = v != null && v.options ? v.options : ((p = (
|
|
2055
|
-
label:
|
|
2056
|
-
value:
|
|
2053
|
+
return (k == null ? void 0 : k.key) === ((oe = (ye = (de = (i = v == null ? void 0 : v.key) == null ? void 0 : i.split("$")) == null ? void 0 : de[1]) == null ? void 0 : ye.split("(")) == null ? void 0 : oe[0]);
|
|
2054
|
+
})) == null ? void 0 : y.value : "Input", v.options = v != null && v.options ? v.options : ((p = (b = (U = v == null ? void 0 : v.key) == null ? void 0 : U.split("$")) == null ? void 0 : b[1]) == null ? void 0 : p.length) > 0 ? (Z = (ne = Va((x = ($ = v == null ? void 0 : v.key) == null ? void 0 : $.split("$")) == null ? void 0 : x[1])) == null ? void 0 : ne.split(",")) == null ? void 0 : Z.map((k) => ({
|
|
2055
|
+
label: k,
|
|
2056
|
+
value: k
|
|
2057
2057
|
})) : [], (S = v == null ? void 0 : v.key) != null && S.includes("$") && (v.key = (M = (E = v == null ? void 0 : v.key) == null ? void 0 : E.split("$")) == null ? void 0 : M[0]), v.value = (ie = Object.values(l)) == null ? void 0 : ie[C], v.optionUrl = v != null && v.formMenuSelect && ((R = v == null ? void 0 : v.formMenuSelect) == null ? void 0 : R.length) > 0 ? {
|
|
2058
|
-
groupSelect: (te = v == null ? void 0 : v.groupSelect) == null ? void 0 : te.split(/[::]/).map((
|
|
2058
|
+
groupSelect: (te = v == null ? void 0 : v.groupSelect) == null ? void 0 : te.split(/[::]/).map((k) => k.trim()),
|
|
2059
2059
|
menuSelect: v == null ? void 0 : v.formMenuSelect,
|
|
2060
2060
|
selectRelateType: "",
|
|
2061
2061
|
type: (v == null ? void 0 : v.formType) ?? (v != null && v.groupSelect ? "Select" : "")
|
|
@@ -2077,13 +2077,13 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2077
2077
|
}), (J = d == null ? void 0 : d.optionUrl) != null && J.menuSelect) {
|
|
2078
2078
|
let m = await lr(d), _;
|
|
2079
2079
|
if (m == null || m.forEach((v) => {
|
|
2080
|
-
var C, h, Q, u, N, W, y, U,
|
|
2081
|
-
c === ((h = (C = d == null ? void 0 : d.optionUrl) == null ? void 0 : C.groupSelect) == null ? void 0 : h[1]) && ((N = (u = (Q = d == null ? void 0 : d.optionUrl) == null ? void 0 : Q.groupSelect) == null ? void 0 : u[1]) != null && N.includes("[")) && ((p = X(v)) == null ? void 0 : p[(
|
|
2080
|
+
var C, h, Q, u, N, W, y, U, b, p;
|
|
2081
|
+
c === ((h = (C = d == null ? void 0 : d.optionUrl) == null ? void 0 : C.groupSelect) == null ? void 0 : h[1]) && ((N = (u = (Q = d == null ? void 0 : d.optionUrl) == null ? void 0 : Q.groupSelect) == null ? void 0 : u[1]) != null && N.includes("[")) && ((p = X(v)) == null ? void 0 : p[(b = (U = (y = (W = d == null ? void 0 : d.optionUrl) == null ? void 0 : W.groupSelect) == null ? void 0 : y[1]) == null ? void 0 : U.replaceAll("[", "")) == null ? void 0 : b.replaceAll("]", "")]) === (d == null ? void 0 : d.value) && (_ = v);
|
|
2082
2082
|
}), _) {
|
|
2083
2083
|
let v = X(s);
|
|
2084
2084
|
v = v == null ? void 0 : v.map((h) => {
|
|
2085
|
-
var Q, u, N, W, y, U,
|
|
2086
|
-
return (_ != null && _[h == null ? void 0 : h.label] || _ != null && _[(W = (N = (u = (Q = h == null ? void 0 : h.optionUrl) == null ? void 0 : Q.groupSelect) == null ? void 0 : u[1]) == null ? void 0 : N.replaceAll("[", "")) == null ? void 0 : W.replaceAll("]", "")]) && ((
|
|
2085
|
+
var Q, u, N, W, y, U, b, p, $, x, ne;
|
|
2086
|
+
return (_ != null && _[h == null ? void 0 : h.label] || _ != null && _[(W = (N = (u = (Q = h == null ? void 0 : h.optionUrl) == null ? void 0 : Q.groupSelect) == null ? void 0 : u[1]) == null ? void 0 : N.replaceAll("[", "")) == null ? void 0 : W.replaceAll("]", "")]) && ((b = (U = (y = h == null ? void 0 : h.optionUrl) == null ? void 0 : y.groupSelect) == null ? void 0 : U[1]) != null && b.includes("[")) && (h.value = (_ == null ? void 0 : _[h == null ? void 0 : h.label]) || (_ == null ? void 0 : _[(ne = (x = ($ = (p = h == null ? void 0 : h.optionUrl) == null ? void 0 : p.groupSelect) == null ? void 0 : $[1]) == null ? void 0 : x.replaceAll("[", "")) == null ? void 0 : ne.replaceAll("]", "")])), h;
|
|
2087
2087
|
}), le.value = (K = X(le.value)) == null ? void 0 : K.map((h) => {
|
|
2088
2088
|
if ((h == null ? void 0 : h.id) === (l == null ? void 0 : l.id)) {
|
|
2089
2089
|
const Q = {};
|
|
@@ -2097,9 +2097,9 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2097
2097
|
C = C == null ? void 0 : C.map((h) => {
|
|
2098
2098
|
var Q, u, N, W;
|
|
2099
2099
|
return (u = (Q = h == null ? void 0 : h.optionUrl) == null ? void 0 : Q.menuSelect) != null && u.some((y) => y == null ? void 0 : y.includes) && (h.optionUrl.menuSelect = (W = (N = h == null ? void 0 : h.optionUrl) == null ? void 0 : N.menuSelect) == null ? void 0 : W.map((y) => {
|
|
2100
|
-
var U,
|
|
2100
|
+
var U, b, p, $;
|
|
2101
2101
|
if (y != null && y.includes("[")) {
|
|
2102
|
-
let x = (
|
|
2102
|
+
let x = (b = (U = y == null ? void 0 : y.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : U.split(":")) == null ? void 0 : b[1];
|
|
2103
2103
|
y = ($ = (p = X(v)) == null ? void 0 : p.find((ne) => (ne == null ? void 0 : ne.label) === x)) == null ? void 0 : $.value;
|
|
2104
2104
|
}
|
|
2105
2105
|
return y;
|
|
@@ -2122,20 +2122,20 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2122
2122
|
const l = X(o.itemData);
|
|
2123
2123
|
let n = l == null ? void 0 : l.map((y) => {
|
|
2124
2124
|
var U;
|
|
2125
|
-
return (y == null ? void 0 : y.key) === "header" && ((U = y.contents) == null || U.map((
|
|
2126
|
-
var $, x, ne, Z, S, E, M, ie, R, te,
|
|
2127
|
-
return
|
|
2125
|
+
return (y == null ? void 0 : y.key) === "header" && ((U = y.contents) == null || U.map((b, p) => {
|
|
2126
|
+
var $, x, ne, Z, S, E, M, ie, R, te, k, i, de, ye, oe, Ce, Ue, ze, Qe;
|
|
2127
|
+
return b.type = b != null && b.type ? b.type : (Z = (ne = (x = ($ = b == null ? void 0 : b.key) == null ? void 0 : $.split("$")) == null ? void 0 : x[1]) == null ? void 0 : ne.split("(")) != null && Z[0] ? (E = (S = Ha) == null ? void 0 : S.find((Le) => {
|
|
2128
2128
|
var Ke, Me, Xe, pl;
|
|
2129
|
-
return (Le == null ? void 0 : Le.key) === ((pl = (Xe = (Me = (Ke =
|
|
2130
|
-
})) == null ? void 0 : E.value : "Input",
|
|
2129
|
+
return (Le == null ? void 0 : Le.key) === ((pl = (Xe = (Me = (Ke = b == null ? void 0 : b.key) == null ? void 0 : Ke.split("$")) == null ? void 0 : Me[1]) == null ? void 0 : Xe.split("(")) == null ? void 0 : pl[0]);
|
|
2130
|
+
})) == null ? void 0 : E.value : "Input", b.options = b != null && b.options ? b.options : ((R = (ie = (M = b == null ? void 0 : b.key) == null ? void 0 : M.split("$")) == null ? void 0 : ie[1]) == null ? void 0 : R.length) > 0 ? (de = (i = Va((k = (te = b == null ? void 0 : b.key) == null ? void 0 : te.split("$")) == null ? void 0 : k[1])) == null ? void 0 : i.split(",")) == null ? void 0 : de.map((Le) => ({
|
|
2131
2131
|
label: Le,
|
|
2132
2132
|
value: Le
|
|
2133
|
-
})) : [], (ye =
|
|
2134
|
-
groupSelect: (Qe =
|
|
2135
|
-
menuSelect:
|
|
2133
|
+
})) : [], (ye = b == null ? void 0 : b.key) != null && ye.includes("$") && (b.key = (Ce = (oe = b == null ? void 0 : b.key) == null ? void 0 : oe.split("$")) == null ? void 0 : Ce[0]), b.value = (Ue = Object.values(e)) == null ? void 0 : Ue[p], b.optionUrl = b != null && b.formMenuSelect && ((ze = b == null ? void 0 : b.formMenuSelect) == null ? void 0 : ze.length) > 0 ? {
|
|
2134
|
+
groupSelect: (Qe = b == null ? void 0 : b.groupSelect) == null ? void 0 : Qe.split(/[::]/).map((Le) => Le.trim()),
|
|
2135
|
+
menuSelect: b == null ? void 0 : b.formMenuSelect,
|
|
2136
2136
|
selectRelateType: "",
|
|
2137
|
-
type: (
|
|
2138
|
-
} : null,
|
|
2137
|
+
type: (b == null ? void 0 : b.formType) ?? (b != null && b.groupSelect ? "Select" : "")
|
|
2138
|
+
} : null, b;
|
|
2139
2139
|
})), y;
|
|
2140
2140
|
}), a = Be.value, r = (z = (L = X(n)) == null ? void 0 : L.find((y) => (y == null ? void 0 : y.key) === "header")) == null ? void 0 : z.contents;
|
|
2141
2141
|
if (r = r == null ? void 0 : r.filter((y) => (y == null ? void 0 : y.label) !== "操作"), r.push({
|
|
@@ -2143,22 +2143,22 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2143
2143
|
type: "operate"
|
|
2144
2144
|
}), a = a == null ? void 0 : a.map((y) => {
|
|
2145
2145
|
var U;
|
|
2146
|
-
return y.value = y.value ?? ((U = r == null ? void 0 : r.find((
|
|
2146
|
+
return y.value = y.value ?? ((U = r == null ? void 0 : r.find((b, p) => (b == null ? void 0 : b.prop) === (y == null ? void 0 : y.name))) == null ? void 0 : U.value), y;
|
|
2147
2147
|
}), !Fl.value) return;
|
|
2148
2148
|
let s = "";
|
|
2149
2149
|
(g = dl.value) != null && g.includes("·") && (dl.value = (j = (O = dl.value) == null ? void 0 : O.split("·")) == null ? void 0 : j[0]);
|
|
2150
2150
|
let t = (K = (J = (D = X(n)) == null ? void 0 : D.find((y) => (y == null ? void 0 : y.key) === "header")) == null ? void 0 : J.contents) == null ? void 0 : K.find((y, U) => {
|
|
2151
|
-
var
|
|
2152
|
-
return (y == null ? void 0 : y.label) === dl.value || (U == null ? void 0 : U.toString()) === (($ = (p = (
|
|
2151
|
+
var b, p, $;
|
|
2152
|
+
return (y == null ? void 0 : y.label) === dl.value || (U == null ? void 0 : U.toString()) === (($ = (p = (b = dl.value) == null ? void 0 : b.split("a")) == null ? void 0 : p[1]) == null ? void 0 : $.toString());
|
|
2153
2153
|
}), c = (F = t == null ? void 0 : t.optionUrl) == null ? void 0 : F.menuSelect, d = !0;
|
|
2154
2154
|
(v = (_ = (m = X(n)) == null ? void 0 : m.find((y) => (y == null ? void 0 : y.key) === "header")) == null ? void 0 : _.contents) == null || v.forEach((y) => {
|
|
2155
|
-
var U,
|
|
2156
|
-
d && ((p = (
|
|
2155
|
+
var U, b, p, $, x, ne;
|
|
2156
|
+
d && ((p = (b = (U = y == null ? void 0 : y.optionUrl) == null ? void 0 : U.groupSelect) == null ? void 0 : b[1]) != null && p.includes("[")) && (s = (x = ($ = y == null ? void 0 : y.optionUrl) == null ? void 0 : $.groupSelect) == null ? void 0 : x[1], JSON.stringify(c) === JSON.stringify((ne = y == null ? void 0 : y.optionUrl) == null ? void 0 : ne.menuSelect) && (d = !1));
|
|
2157
2157
|
});
|
|
2158
2158
|
let f = X(a);
|
|
2159
2159
|
f = f == null ? void 0 : f.map((y) => {
|
|
2160
|
-
var U,
|
|
2161
|
-
return (y == null ? void 0 : y.type) === "Select" && ((
|
|
2160
|
+
var U, b;
|
|
2161
|
+
return (y == null ? void 0 : y.type) === "Select" && ((b = (U = y == null ? void 0 : y.optionUrl) == null ? void 0 : U.allSelectionContents) == null ? void 0 : b.length) > 0 && (y.optionUrl.contactValue = e), y.value = e == null ? void 0 : e[y == null ? void 0 : y.prop], y;
|
|
2162
2162
|
}), Be.value = X(f);
|
|
2163
2163
|
let A = (Q = (h = (C = Be.value) == null ? void 0 : C.find((y) => {
|
|
2164
2164
|
var U;
|
|
@@ -2166,29 +2166,29 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2166
2166
|
})) == null ? void 0 : h.optionUrl) == null ? void 0 : Q.menuId;
|
|
2167
2167
|
if ((u = t == null ? void 0 : t.optionUrl) != null && u.menuSelect && Fl.value || A) {
|
|
2168
2168
|
let y = await lr(t, A), U;
|
|
2169
|
-
if ((N = t == null ? void 0 : t.optionUrl) == null || N.menuSelect, y == null || y.forEach((
|
|
2170
|
-
var p, $, x, ne, Z, S, E, M, ie, R, te,
|
|
2171
|
-
if (s === (($ = (p = t == null ? void 0 : t.optionUrl) == null ? void 0 : p.groupSelect) == null ? void 0 : $[1]) && ((Z = (ne = (x = t == null ? void 0 : t.optionUrl) == null ? void 0 : x.groupSelect) == null ? void 0 : ne[1]) != null && Z.includes("[")) && ((R = X(
|
|
2172
|
-
let oe = (
|
|
2169
|
+
if ((N = t == null ? void 0 : t.optionUrl) == null || N.menuSelect, y == null || y.forEach((b) => {
|
|
2170
|
+
var p, $, x, ne, Z, S, E, M, ie, R, te, k, i, de, ye;
|
|
2171
|
+
if (s === (($ = (p = t == null ? void 0 : t.optionUrl) == null ? void 0 : p.groupSelect) == null ? void 0 : $[1]) && ((Z = (ne = (x = t == null ? void 0 : t.optionUrl) == null ? void 0 : x.groupSelect) == null ? void 0 : ne[1]) != null && Z.includes("[")) && ((R = X(b)) == null ? void 0 : R[(ie = (M = (E = (S = t == null ? void 0 : t.optionUrl) == null ? void 0 : S.groupSelect) == null ? void 0 : E[1]) == null ? void 0 : M.replaceAll("[", "")) == null ? void 0 : ie.replaceAll("]", "")]) === (t == null ? void 0 : t.value) && (U = b), A) {
|
|
2172
|
+
let oe = (k = (te = Be.value) == null ? void 0 : te.find((Ue) => {
|
|
2173
2173
|
var ze;
|
|
2174
2174
|
return (ze = Ue == null ? void 0 : Ue.optionUrl) == null ? void 0 : ze.menuId;
|
|
2175
|
-
})) == null ? void 0 :
|
|
2176
|
-
oe != null && oe.includes("·") && (Ce = (de = (i = e[oe]) == null ? void 0 : i.split(" ")) == null ? void 0 : de[0], oe = (ye = oe == null ? void 0 : oe.split("·")) == null ? void 0 : ye[0]),
|
|
2175
|
+
})) == null ? void 0 : k.prop, Ce = e[oe];
|
|
2176
|
+
oe != null && oe.includes("·") && (Ce = (de = (i = e[oe]) == null ? void 0 : i.split(" ")) == null ? void 0 : de[0], oe = (ye = oe == null ? void 0 : oe.split("·")) == null ? void 0 : ye[0]), b[oe] === Ce && (U = b);
|
|
2177
2177
|
}
|
|
2178
2178
|
}), U) {
|
|
2179
|
-
let
|
|
2180
|
-
|
|
2181
|
-
var ne, Z, S, E, M, ie, R, te,
|
|
2182
|
-
return (U != null && U[x == null ? void 0 : x.prop] || U != null && U[(E = (S = (Z = (ne = x == null ? void 0 : x.optionUrl) == null ? void 0 : ne.groupSelect) == null ? void 0 : Z[1]) == null ? void 0 : S.replaceAll("[", "")) == null ? void 0 : E.replaceAll("]", "")]) && ((R = (ie = (M = x == null ? void 0 : x.optionUrl) == null ? void 0 : M.groupSelect) == null ? void 0 : ie[1]) != null && R.includes("[")) && (x != null && x.relatedValueId) && (x.value = (U == null ? void 0 : U[x == null ? void 0 : x.prop]) || (U == null ? void 0 : U[(de = (i = (
|
|
2183
|
-
}), Be.value = X(
|
|
2184
|
-
let p = X(
|
|
2179
|
+
let b = X(a);
|
|
2180
|
+
b = b == null ? void 0 : b.map((x) => {
|
|
2181
|
+
var ne, Z, S, E, M, ie, R, te, k, i, de, ye, oe, Ce, Ue, ze, Qe;
|
|
2182
|
+
return (U != null && U[x == null ? void 0 : x.prop] || U != null && U[(E = (S = (Z = (ne = x == null ? void 0 : x.optionUrl) == null ? void 0 : ne.groupSelect) == null ? void 0 : Z[1]) == null ? void 0 : S.replaceAll("[", "")) == null ? void 0 : E.replaceAll("]", "")]) && ((R = (ie = (M = x == null ? void 0 : x.optionUrl) == null ? void 0 : M.groupSelect) == null ? void 0 : ie[1]) != null && R.includes("[")) && (x != null && x.relatedValueId) && (x.value = (U == null ? void 0 : U[x == null ? void 0 : x.prop]) || (U == null ? void 0 : U[(de = (i = (k = (te = x == null ? void 0 : x.optionUrl) == null ? void 0 : te.groupSelect) == null ? void 0 : k[1]) == null ? void 0 : i.replaceAll("[", "")) == null ? void 0 : de.replaceAll("]", "")])), A && (U != null && U[x == null ? void 0 : x.prop]) && (x != null && x.relatedValueId) ? x.value = (U == null ? void 0 : U[x == null ? void 0 : x.prop]) || (U == null ? void 0 : U[(Ue = (Ce = (oe = (ye = x == null ? void 0 : x.optionUrl) == null ? void 0 : ye.groupSelect) == null ? void 0 : oe[1]) == null ? void 0 : Ce.replaceAll("[", "")) == null ? void 0 : Ue.replaceAll("]", "")]) : x.value = (Qe = (ze = Be.value) == null ? void 0 : ze.find((Le) => (Le == null ? void 0 : Le.prop) === (x == null ? void 0 : x.prop))) == null ? void 0 : Qe.value, x;
|
|
2183
|
+
}), Be.value = X(b);
|
|
2184
|
+
let p = X(b);
|
|
2185
2185
|
p = p == null ? void 0 : p.map((x) => {
|
|
2186
2186
|
var ne, Z, S, E, M, ie;
|
|
2187
2187
|
return (Z = (ne = x == null ? void 0 : x.optionUrl) == null ? void 0 : ne.menuSelect) != null && Z.some((R) => R == null ? void 0 : R.includes("[")) && (x.optionUrl.oldMenuSelect = (E = (S = X(x)) == null ? void 0 : S.optionUrl) == null ? void 0 : E.menuSelect, x.optionUrl.menuSelect = (ie = (M = x == null ? void 0 : x.optionUrl) == null ? void 0 : M.menuSelect) == null ? void 0 : ie.map((R) => {
|
|
2188
|
-
var te,
|
|
2188
|
+
var te, k, i, de;
|
|
2189
2189
|
if (R != null && R.includes("[")) {
|
|
2190
|
-
let ye = (
|
|
2191
|
-
R = (de = (i = X(
|
|
2190
|
+
let ye = (k = (te = R == null ? void 0 : R.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : te.split(":")) == null ? void 0 : k[1];
|
|
2191
|
+
R = (de = (i = X(b)) == null ? void 0 : i.find((oe) => (oe == null ? void 0 : oe.label) === ye)) == null ? void 0 : de.value;
|
|
2192
2192
|
}
|
|
2193
2193
|
return R;
|
|
2194
2194
|
})), x;
|
|
@@ -2277,7 +2277,7 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2277
2277
|
let a = [];
|
|
2278
2278
|
return a = La(e, l == null ? void 0 : l.contents, 0), a;
|
|
2279
2279
|
}, $a = (e, l) => {
|
|
2280
|
-
var z, g, O, j, D, J, K, F, m, _, v, C, h, Q, u, N, W, y, U,
|
|
2280
|
+
var z, g, O, j, D, J, K, F, m, _, v, C, h, Q, u, N, W, y, U, b, p, $, x, ne, Z;
|
|
2281
2281
|
const n = e == null ? void 0 : e.filter((S) => (S == null ? void 0 : S.key) === "header");
|
|
2282
2282
|
e == null || e.filter((S) => (S == null ? void 0 : S.key) === "tableIndexColumn")[0];
|
|
2283
2283
|
const a = e == null ? void 0 : e.filter((S) => (S == null ? void 0 : S.key) === "childTree")[0];
|
|
@@ -2289,11 +2289,11 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2289
2289
|
let L = [];
|
|
2290
2290
|
if (Sl.value === "" ? L = f == null ? void 0 : f[0] : L = (f == null ? void 0 : f.find((S) => (S == null ? void 0 : S.selectLabel) === "(" + Sl.value + ")")) ?? (f == null ? void 0 : f.find((S) => !(S != null && S.selectLabel))), ((O = A == null ? void 0 : A.contents) == null ? void 0 : O.length) > 0) {
|
|
2291
2291
|
let S = [];
|
|
2292
|
-
if (A != null && A.contents.some((
|
|
2293
|
-
Ml.value === "" ? S = (D = (j = qa(A == null ? void 0 : A.contents)) == null ? void 0 : j[0]) == null ? void 0 : D.filter((
|
|
2292
|
+
if (A != null && A.contents.some((k) => Array.isArray(k) && (k == null ? void 0 : k.find((i) => i.children))))
|
|
2293
|
+
Ml.value === "" ? S = (D = (j = qa(A == null ? void 0 : A.contents)) == null ? void 0 : j[0]) == null ? void 0 : D.filter((k) => !Array.isArray(k)) : (Ml.value.split("-"), S = (J = qa(A == null ? void 0 : A.contents)) == null ? void 0 : J[0]);
|
|
2294
2294
|
else {
|
|
2295
|
-
let
|
|
2296
|
-
|
|
2295
|
+
let k = A != null && A.contents.some((i) => Array.isArray(i)) ? (K = A == null ? void 0 : A.contents) == null ? void 0 : K[0] : A == null ? void 0 : A.contents;
|
|
2296
|
+
k == null || k.forEach((i, de) => {
|
|
2297
2297
|
var Ce, Ue, ze, Qe, Le;
|
|
2298
2298
|
let ye = "";
|
|
2299
2299
|
(Ue = (Ce = Se.value) == null ? void 0 : Ce.split("/")) == null || Ue.forEach((Ke) => {
|
|
@@ -2345,33 +2345,33 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2345
2345
|
});
|
|
2346
2346
|
});
|
|
2347
2347
|
}
|
|
2348
|
-
q.value = Ga(S), we.value = Ga(S), ee.value = (F = q.value) == null ? void 0 : F.map((
|
|
2349
|
-
let E = (h = (C = _n(q.value)) == null ? void 0 : C.filter((
|
|
2350
|
-
prop: (
|
|
2351
|
-
column:
|
|
2348
|
+
q.value = Ga(S), we.value = Ga(S), ee.value = (F = q.value) == null ? void 0 : F.map((k) => k == null ? void 0 : k.label), yl.value = (m = q.value) == null ? void 0 : m.every((k) => k == null ? void 0 : k.filterable), he.value = (_ = q.value) == null ? void 0 : _.every((k) => k == null ? void 0 : k.operable), gl.value = (v = q.value) == null ? void 0 : v.every((k) => k == null ? void 0 : k.sortable);
|
|
2349
|
+
let E = (h = (C = _n(q.value)) == null ? void 0 : C.filter((k) => (k == null ? void 0 : k.type) !== "operate")) == null ? void 0 : h.map((k, i) => ({
|
|
2350
|
+
prop: (k == null ? void 0 : k.prop) ?? "a" + i,
|
|
2351
|
+
column: k.label
|
|
2352
2352
|
}));
|
|
2353
2353
|
ul.value = E;
|
|
2354
2354
|
let M = [];
|
|
2355
|
-
Sl.value === "" ? M = d == null ? void 0 : d[0] : M = (d == null ? void 0 : d.find((
|
|
2356
|
-
let ie = Array.isArray((Q = M == null ? void 0 : M.contents) == null ? void 0 : Q[0]) && ((u = M == null ? void 0 : M.contents) != null && u[0].every((
|
|
2357
|
-
L != null && L.contents && ((W = L == null ? void 0 : L.contents) == null ? void 0 : W.length) !== 0 && (ie = (y = X(ie)) == null ? void 0 : y.map((
|
|
2358
|
-
if (!Array.isArray(
|
|
2355
|
+
Sl.value === "" ? M = d == null ? void 0 : d[0] : M = (d == null ? void 0 : d.find((k) => (k == null ? void 0 : k.selectLabel) === "(" + Sl.value + ")")) ?? (d == null ? void 0 : d.find((k) => !(k != null && k.selectLabel)));
|
|
2356
|
+
let ie = Array.isArray((Q = M == null ? void 0 : M.contents) == null ? void 0 : Q[0]) && ((u = M == null ? void 0 : M.contents) != null && u[0].every((k) => Array.isArray(k))) ? (N = M == null ? void 0 : M.contents) == null ? void 0 : N[0] : M == null ? void 0 : M.contents;
|
|
2357
|
+
L != null && L.contents && ((W = L == null ? void 0 : L.contents) == null ? void 0 : W.length) !== 0 && (ie = (y = X(ie)) == null ? void 0 : y.map((k, i) => {
|
|
2358
|
+
if (!Array.isArray(k)) {
|
|
2359
2359
|
let de = {};
|
|
2360
|
-
for (let ye in
|
|
2361
|
-
ye !== "id" && ye !== "index" && (de[ye] =
|
|
2362
|
-
|
|
2360
|
+
for (let ye in k)
|
|
2361
|
+
ye !== "id" && ye !== "index" && (de[ye] = k[ye]);
|
|
2362
|
+
k = Object.values(de);
|
|
2363
2363
|
}
|
|
2364
|
-
return
|
|
2364
|
+
return k;
|
|
2365
2365
|
}));
|
|
2366
|
-
const R = !!((U = q.value) != null && U.find((
|
|
2366
|
+
const R = !!((U = q.value) != null && U.find((k) => k.prop === "index"));
|
|
2367
2367
|
ie = ur(ie, L == null ? void 0 : L.contents, R);
|
|
2368
2368
|
const te = [];
|
|
2369
|
-
ie == null || ie.forEach((
|
|
2369
|
+
ie == null || ie.forEach((k, i) => {
|
|
2370
2370
|
var ye;
|
|
2371
2371
|
let de = {};
|
|
2372
|
-
if (Array.isArray(
|
|
2372
|
+
if (Array.isArray(k)) {
|
|
2373
2373
|
let oe = [];
|
|
2374
|
-
|
|
2374
|
+
k == null || k.filter((Ce) => !(Ce != null && Ce.id)).forEach((Ce, Ue) => {
|
|
2375
2375
|
var ze, Qe, Le, Ke, Me, Xe;
|
|
2376
2376
|
if ((ze = E == null ? void 0 : E[Ue]) != null && ze.prop && !Array.isArray(Ce)) {
|
|
2377
2377
|
let pl = {};
|
|
@@ -2385,11 +2385,11 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2385
2385
|
} else Array.isArray(Ce) && ((Xe = E[Ue]) != null && Xe.prop ? de[E[Ue].prop] = Ce : de.children = ya(Ce, E));
|
|
2386
2386
|
});
|
|
2387
2387
|
} else
|
|
2388
|
-
de =
|
|
2389
|
-
Array.isArray(
|
|
2390
|
-
}), le.value = Pa(te, a, q.value), Yl.value = te, (
|
|
2388
|
+
de = k;
|
|
2389
|
+
Array.isArray(k) && k.some((oe) => oe == null ? void 0 : oe.id) ? te.push(Object.assign(de, { id: (ye = k == null ? void 0 : k.find((oe) => oe.id)) == null ? void 0 : ye.id })) : de.id ? te.push(de) : te.push(Object.assign(de, { id: i.toString() }));
|
|
2390
|
+
}), le.value = Pa(te, a, q.value), Yl.value = te, (b = Yl.value) == null || b.forEach((k) => {
|
|
2391
2391
|
var i;
|
|
2392
|
-
(i = Zl.value) == null || i.set(
|
|
2392
|
+
(i = Zl.value) == null || i.set(k.id, k);
|
|
2393
2393
|
});
|
|
2394
2394
|
} else
|
|
2395
2395
|
q.value = [], Ve.value = [], le.value = [], Yl.value = [], Zl.value = /* @__PURE__ */ new Map();
|
|
@@ -2709,7 +2709,7 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2709
2709
|
})
|
|
2710
2710
|
]),
|
|
2711
2711
|
content: I((g) => {
|
|
2712
|
-
var O, j, D, J, K, F, m, _, v, C, h, Q, u, N, W, y, U,
|
|
2712
|
+
var O, j, D, J, K, F, m, _, v, C, h, Q, u, N, W, y, U, b;
|
|
2713
2713
|
return [
|
|
2714
2714
|
tn(g) ? (ae(), Pe(a, {
|
|
2715
2715
|
key: 0,
|
|
@@ -2746,7 +2746,7 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2746
2746
|
style: xl({
|
|
2747
2747
|
color: !Array.isArray(qe(g)) && ((j = (O = qe(g)) == null ? void 0 : O.toString()) != null && j.includes(".txt") || (J = (D = qe(g)) == null ? void 0 : D.toString()) != null && J.includes(".cpt") || (F = (K = qe(g)) == null ? void 0 : K.toString()) != null && F.includes(".cyd")) ? "var(--vertical-menuitem-active-bg)" : "",
|
|
2748
2748
|
textDecoration: !Array.isArray(qe(g)) && ((_ = (m = qe(g)) == null ? void 0 : m.toString()) != null && _.includes(".txt") || (C = (v = qe(g)) == null ? void 0 : v.toString()) != null && C.includes(".cpt") || (Q = (h = qe(g)) == null ? void 0 : h.toString()) != null && Q.includes(".cyd")) ? "underline" : "",
|
|
2749
|
-
cursor: !Array.isArray(qe(g)) && ((N = (u = qe(g)) == null ? void 0 : u.toString()) != null && N.includes(".txt") || (y = (W = qe(g)) == null ? void 0 : W.toString()) != null && y.includes(".cpt") || (
|
|
2749
|
+
cursor: !Array.isArray(qe(g)) && ((N = (u = qe(g)) == null ? void 0 : u.toString()) != null && N.includes(".txt") || (y = (W = qe(g)) == null ? void 0 : W.toString()) != null && y.includes(".cpt") || (b = (U = qe(g)) == null ? void 0 : U.toString()) != null && b.includes(".cyd")) ? "pointer" : "",
|
|
2750
2750
|
marginLeft: (g == null ? void 0 : g.colIndex) === 0 ? `${((g == null ? void 0 : g.level) ?? 0) * 20}px` : 0
|
|
2751
2751
|
}),
|
|
2752
2752
|
onClick: (p) => br(qe(g))
|
|
@@ -2949,7 +2949,7 @@ const Va = (B) => B.match(/\((.*)\)/)[1], er = {
|
|
|
2949
2949
|
]);
|
|
2950
2950
|
};
|
|
2951
2951
|
}
|
|
2952
|
-
}, ao = /* @__PURE__ */ sa(Ku, [["__scopeId", "data-v-
|
|
2952
|
+
}, ao = /* @__PURE__ */ sa(Ku, [["__scopeId", "data-v-11fbb07d"]]);
|
|
2953
2953
|
export {
|
|
2954
2954
|
tu as a,
|
|
2955
2955
|
Va as f,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const g=require("vue"),O=require("./index-DOCHgBta.cjs"),i=require("./index-C8qRkCgn.cjs"),pe=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLwFjtzq.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:x,activeMenuPath:q,cacheStructures:E}=i.storeToRefs(I),j=g.ref(!1),te=g.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=i.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=g.ref([]),B=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:B.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=g.ref([]),k=g.ref({}),de=g.ref({}),H=g.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),R=e=>{var t;J.value=e?(t=H.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):H.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await i.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?B.value.splice(0):(B.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await _(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=H.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);A.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return i.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var T,M,w,N,P,o,F;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(F=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:F.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=x.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},_=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),j.value=!1},K=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{i.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(K(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(K(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(K(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await g.nextTick();const a=(n=(u=(l=E.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=E.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),O.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),_(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...x.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...x.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),k.value={},v.show=!1,await _(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:_,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
|
|
1
|
+
"use strict";const g=require("vue"),O=require("./index-DOCHgBta.cjs"),i=require("./index-C8qRkCgn.cjs"),pe=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BDBlck5Z.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:x,activeMenuPath:q,cacheStructures:E}=i.storeToRefs(I),j=g.ref(!1),te=g.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=i.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=g.ref([]),B=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:B.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=g.ref([]),k=g.ref({}),de=g.ref({}),H=g.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),R=e=>{var t;J.value=e?(t=H.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):H.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await i.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?B.value.splice(0):(B.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await _(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=H.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);A.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return i.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var T,M,w,N,P,o,F;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(F=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:F.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=x.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},_=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),j.value=!1},K=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{i.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(K(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(K(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(K(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await g.nextTick();const a=(n=(u=(l=E.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=E.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),O.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),_(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...x.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...x.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),k.value={},v.show=!1,await _(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:_,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
|