ss-component-new 1.3.2 → 1.3.4
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-xrJPpi4c.cjs → MTLLoader-BDa0EA-y.cjs} +1 -1
- package/dist/{MTLLoader-Dv2EVTWB.js → MTLLoader-DU2_d5qP.js} +37 -37
- package/dist/{OrbitControls-B_seM-IP.js → OrbitControls-B2Ue7hdS.js} +1 -1
- package/dist/{OrbitControls-DeFoKJp9.cjs → OrbitControls-DfhmSOVW.cjs} +1 -1
- package/dist/{URDFLoader-B6g0hxRm.cjs → URDFLoader-BRTNakjO.cjs} +1 -1
- package/dist/{URDFLoader-BT60rQtD.js → URDFLoader-BSHChj3i.js} +189 -189
- package/dist/{animationData-Beth8tFS.js → animationData-Bfm5Jk8y.js} +26 -26
- package/dist/{animationData-CXbG057x.cjs → animationData-CNIRMzHL.cjs} +1 -1
- package/dist/{array-C6jYq2-o.js → array-BqZSVRH0.js} +46 -46
- package/dist/{array-QkdkoOAY.cjs → array-MgT_0IYR.cjs} +1 -1
- package/dist/{iconfont-h3lSsHxO.js → iconfont-D4sBppfS.js} +29 -29
- package/dist/{iconfont-UNojnhH2.cjs → iconfont-kWEJenGZ.cjs} +1 -1
- package/dist/{index-Cjqg29ul.cjs → index-0sI9GpjG.cjs} +1 -1
- package/dist/index-7WRVFebE.cjs +1 -0
- package/dist/{index-7tMW9vmz.js → index-7bddXiMZ.js} +723 -723
- package/dist/{index-CgR9iYFA.cjs → index-B-wqJb1R.cjs} +1 -1
- package/dist/{index-B3jquljw.js → index-BCQ-ZrNS.js} +7 -7
- package/dist/{index-BJPBBWWH.cjs → index-BLxE_tkf.cjs} +1 -1
- package/dist/{index-CaXg2zO6.cjs → index-BPKCXbP6.cjs} +1 -1
- package/dist/index-BR7I_Z6b.cjs +1 -0
- package/dist/{index-Ddoq7kRQ.js → index-BT6DSXQW.js} +9 -9
- package/dist/{index-BYdJgNnt.js → index-BTfRODup.js} +3 -3
- package/dist/{index-DRybfiC9.js → index-BUrYjzWs.js} +2 -2
- package/dist/{index-TxlM0xFu.cjs → index-BWqkJ8tT.cjs} +1 -1
- package/dist/{index-CCn_Pa7c.cjs → index-BY0bG8F_.cjs} +1 -1
- package/dist/{index-CDYSTy2C.cjs → index-Bb7_N8kj.cjs} +1 -1
- package/dist/index-BdP1gtPp.cjs +13 -0
- package/dist/{index-BqqRuoo3.js → index-Bt9rt1NQ.js} +3 -3
- package/dist/index-BtuZ5Zx4.js +103 -0
- package/dist/{index-BBo5mPL3.js → index-C38KGQKj.js} +2 -2
- package/dist/{index-CPk9g8p3.js → index-C3RoPY39.js} +2 -2
- package/dist/{index-Bv-gTP_t.cjs → index-C3suNMi3.cjs} +1 -1
- package/dist/{index-hnHfOKW9.cjs → index-C6_1MyLM.cjs} +1 -1
- package/dist/{index-DRTxe12U.cjs → index-C8fMwErX.cjs} +13 -13
- package/dist/{index-r5JlBAZk.cjs → index-CDhojfAp.cjs} +1 -1
- package/dist/{index-nr6V1FzX.js → index-CEoo5NuF.js} +7 -7
- package/dist/{index-CXiOVgoz.js → index-CEzEaG0d.js} +1 -1
- package/dist/{index-NAekmm6C.js → index-CM_8lsuy.js} +2 -2
- package/dist/{index-CuKYtSif.js → index-CN5eTGfF.js} +1 -1
- package/dist/{index-BR5J0fXr.cjs → index-COvNwtxL.cjs} +13 -13
- package/dist/{index-BF9Y0y6z.js → index-CaDwU086.js} +3 -3
- package/dist/{index-DU9e5EhS.cjs → index-Cw4Pm2PQ.cjs} +1 -1
- package/dist/{index-Va8AOLWi.js → index-DGRL8SEt.js} +1 -1
- package/dist/index-DIqYHU20.cjs +11 -0
- package/dist/{index-DzadQQ41.js → index-DUygJhjf.js} +1703 -1712
- package/dist/{index-VcjIgkLE.cjs → index-DV3KiKv5.cjs} +1 -1
- package/dist/{index-DRLogw4i.js → index-DVHBs_Vv.js} +1952 -1948
- package/dist/{index-B7RJnzyb.js → index-DgYpyTf-.js} +2 -2
- package/dist/index-DgyyXNFj.js +12535 -0
- package/dist/{index-4FJEY4G5.js → index-DlchhCKc.js} +8 -8
- package/dist/{index-BJaAtaqN.js → index-Dm4qKk5S.js} +7 -7
- package/dist/{index-Da5iE_ab.js → index-Dsh4fjDh.js} +2 -2
- package/dist/{index-CVGCFimV.js → index-G9jqtOFo.js} +5 -5
- package/dist/{index-DzAoltDQ.cjs → index-MEN9vDHo.cjs} +1 -1
- package/dist/{index-wpbqbw-8.cjs → index-R-S0AH15.cjs} +1 -1
- package/dist/{index-De3Zh_5B.cjs → index-dD_cGWLc.cjs} +1 -1
- package/dist/{index-B1deFmCB.js → index-f_aTA7O9.js} +1 -1
- package/dist/{index-DtkLwSCK.cjs → index-iv5M7d4h.cjs} +1 -1
- package/dist/{index-BbdTn4Wu.js → index-jbNDRLVg.js} +5 -5
- package/dist/{index-DkzIAhpA.cjs → index-kZhbnU3-.cjs} +1 -1
- package/dist/{index-DAeGe9R9.cjs → index-mpoMK_dv.cjs} +1 -1
- package/dist/{index-COQpDVsv.js → index-sMsCzNtW.js} +1535 -1570
- package/dist/{index-BWCv7zxy.cjs → index-vCTVD7cV.cjs} +1 -1
- package/dist/{index-DPNECOKG.cjs → index-zR73jr4m.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BYHbVlRN.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs} +398 -408
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DuyXGUSZ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js} +32428 -32989
- package/dist/{index.vue_vue_type_style_index_1_lang-JNXKF-5g.cjs → index.vue_vue_type_style_index_1_lang-BybP-dlR.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-CPOQHkRi.js → index.vue_vue_type_style_index_1_lang-C6hiPOvT.js} +78 -78
- package/dist/{main-II23mGYX.cjs → main-DODePLfq.cjs} +1 -1
- package/dist/{main-ClpfURp9.js → main-nyWYROsL.js} +4 -4
- package/dist/{menuIndex-D52EAwtb.cjs → menuIndex-8RF_0N_y.cjs} +1 -1
- package/dist/{menuIndex-DYaogp2R.js → menuIndex-BwWrdu20.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +11 -11
- package/dist/{threeModel-Bdx25CW5.cjs → threeModel-BwQqxP7B.cjs} +1 -1
- package/dist/{threeModel-1StgfJTN.js → threeModel-Dw1HYePN.js} +45 -45
- package/dist/{threePreview-BNAELyED.cjs → threePreview-BlCmiK0A.cjs} +1 -1
- package/dist/{threePreview-Bf5gN_fI.js → threePreview-PdofIeZV.js} +103 -103
- package/dist/{threeSceneView-u0zqKHWX.cjs → threeSceneView-QkRW8pnJ.cjs} +1 -1
- package/dist/{threeSceneView-Boc1QaDR.js → threeSceneView-aDZwf58h.js} +38 -38
- package/dist/{threeSceneViewForCPMPIP-CYkIXtPP.cjs → threeSceneViewForCPMPIP-Ds4WSe56.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-gnFSbkip.js → threeSceneViewForCPMPIP-JDLX5nri.js} +8 -8
- package/dist/{threeTrackPathView-CBsHliC3.cjs → threeTrackPathView-BlAgLn32.cjs} +1 -1
- package/dist/{threeTrackPathView-B1OFwlLh.js → threeTrackPathView-DOy180Fe.js} +66 -66
- package/dist/{threeViewerHost-BSxl-4d-.cjs → threeViewerHost-Bk7K37-4.cjs} +1 -1
- package/dist/{threeViewerHost-B9z6zHUh.js → threeViewerHost-DNY3nOwS.js} +20 -20
- package/dist/{urdfTree-CGZUqrH4.js → urdfTree-CeP5yUoC.js} +10 -10
- package/dist/{urdfTree-C1KFI7et.cjs → urdfTree-nxh-CAg8.cjs} +1 -1
- package/dist/{workpieceTreePanel-Bb9foDnf.js → workpieceTreePanel-CTC2K239.js} +56 -56
- package/dist/{workpieceTreePanel-BFsf-BrP.cjs → workpieceTreePanel-CZQFw5fE.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-C8qPBadE.cjs +0 -13
- package/dist/index-CUtrk2F2.cjs +0 -1
- package/dist/index-CpbBe_mV.cjs +0 -1
- package/dist/index-DIWralYr.js +0 -67
- package/dist/index-DJFQljsX.cjs +0 -1
- package/dist/index-SvdMxP5R.js +0 -11899
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as ze, defineProps as st, ref as
|
|
2
|
-
import { m as Sn, a as Jn, b as Ln, c as Lt } from "./array-
|
|
3
|
-
import mt from "./index-
|
|
4
|
-
import { _ as vt, s as rt, a as Ge, b as He, c as Rt, d as Kt, r as te, o as Te, e as Ze, f as ut, h as Hn, i as gt, j as pn, k as dt, l as Mt, t as Dt, m as ln, n as yn, p as Xn, q as an, u as In, v as sn, w as cn, x as vn, y as rn, z as un, A as En, D as Wt, B as Nt, C as Ut, E as lt, F as ft, G as oe, H as Tt, I as Zt, J as Yt } from "./index-
|
|
5
|
-
import { u as be, a as Ne, p as qA, s as MA, b as qe, c as GA
|
|
1
|
+
import { defineComponent as ze, defineProps as st, ref as J, computed as ee, watch as YA, onMounted as on, resolveComponent as TA, createBlock as xA, openBlock as z, withCtx as M, createElementVNode as H, toDisplayString as UA, createElementBlock as q, Fragment as ue, renderList as Ee, createCommentVNode as CA, normalizeStyle as Fe, createVNode as X, unref as a, resolveDynamicComponent as Ye, provide as fn, resolveDirective as ct, withDirectives as je, vShow as Re, createTextVNode as pe, renderSlot as We, normalizeClass as Ke, onUnmounted as St, createSlots as Jt } from "vue";
|
|
2
|
+
import { m as Sn, a as Jn, b as Ln, c as Lt } from "./array-BqZSVRH0.js";
|
|
3
|
+
import mt from "./index-BCQ-ZrNS.js";
|
|
4
|
+
import { _ as vt, s as rt, a as Ge, b as He, c as Rt, d as Kt, r as te, o as Te, e as Ze, f as ut, h as Hn, i as gt, j as pn, k as dt, l as Mt, t as Dt, m as ln, n as yn, p as Xn, q as an, u as In, v as sn, w as cn, x as vn, y as rn, z as un, A as En, D as Wt, B as Nt, C as Ut, E as lt, F as ft, G as oe, H as Tt, I as Zt, J as Yt, K as ge, L as Gt, M as it, N as Ft, O as Vt, P as bn } from "./index-DgyyXNFj.js";
|
|
5
|
+
import { u as be, a as Ne, p as qA, s as MA, b as qe, c as GA } from "./index-sMsCzNtW.js";
|
|
6
6
|
import { useRouter as ot } from "vue-router";
|
|
7
7
|
import { a as Pt, d as Ct, e as It, f as Et, g as Bt, h as zt, t as qt, c as _t, b as $t } from "./index-CAPx0_D4.js";
|
|
8
8
|
import { u as mn, E as Oe, b as Qt, g as Be, c as Al, a as Je, d as el } from "./index-B8HqIYd5.js";
|
|
9
|
-
import { g as Bn, s as nl, _ as
|
|
10
|
-
import { u as Qn, b as Rn, d as gn, g as Me, c as yt, e as dn, o as Xt, f as tl, l as ll, h as fl, i as
|
|
11
|
-
import "./index-
|
|
9
|
+
import { g as Bn, s as nl, _ as wn } from "./index-DUygJhjf.js";
|
|
10
|
+
import { u as Qn, b as Rn, d as gn, g as Me, c as yt, e as dn, o as Xt, f as tl, l as ll, h as fl, i as al } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js";
|
|
11
|
+
import "./index-BTfRODup.js";
|
|
12
12
|
import "./index-DFBXEIIr.js";
|
|
13
|
-
import { c as
|
|
13
|
+
import { c as Ot } from "./menuIndex-BwWrdu20.js";
|
|
14
14
|
import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
import { C as
|
|
15
|
+
import { C as sl } from "./index-C38KGQKj.js";
|
|
16
16
|
import { S as le } from "./index-BHtNKL1L.js";
|
|
17
|
-
import
|
|
17
|
+
import cl from "./threeModel-Dw1HYePN.js";
|
|
18
18
|
import { _ as De } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
19
|
-
import { s as zn } from "./index-
|
|
20
|
-
import { T as kn, u as
|
|
21
|
-
import { s as xn } from "./index-
|
|
22
|
-
import { u as
|
|
19
|
+
import { s as zn } from "./index-CN5eTGfF.js";
|
|
20
|
+
import { T as kn, u as vl, a as rl } from "./threeViewerHost-DNY3nOwS.js";
|
|
21
|
+
import { s as xn } from "./index-Bt9rt1NQ.js";
|
|
22
|
+
import { u as jt } from "./index-DVHBs_Vv.js";
|
|
23
|
+
import { g as Ht, c as ul, m as gl, l as dl, d as il, v as ol } from "./index-BtuZ5Zx4.js";
|
|
23
24
|
import { T as at } from "./svgIcon-4u4PW7Is.js";
|
|
24
|
-
import {
|
|
25
|
-
import { f as Pl, a as Cl } from "./animationData-Beth8tFS.js";
|
|
25
|
+
import { f as Pl, a as Cl } from "./animationData-Bfm5Jk8y.js";
|
|
26
26
|
be();
|
|
27
27
|
const Il = be(), pt = async (P, j) => {
|
|
28
28
|
var s, c, I, l;
|
|
@@ -34,8 +34,8 @@ const Il = be(), pt = async (P, j) => {
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
if (((s = r == null ? void 0 : r.data) == null ? void 0 : s.code) === 200) {
|
|
37
|
-
const
|
|
38
|
-
Il.setRawMenus(
|
|
37
|
+
const p = (I = (c = j == null ? void 0 : j.compData) == null ? void 0 : c[0]) == null ? void 0 : I.contents;
|
|
38
|
+
Il.setRawMenus(p ?? []);
|
|
39
39
|
}
|
|
40
40
|
return (l = r == null ? void 0 : r.data) == null ? void 0 : l.code;
|
|
41
41
|
} catch (r) {
|
|
@@ -55,27 +55,27 @@ function El(P = "menu") {
|
|
|
55
55
|
type: String,
|
|
56
56
|
default: "vertical"
|
|
57
57
|
}
|
|
58
|
-
}), s =
|
|
59
|
-
rawMenus:
|
|
60
|
-
activeTopMenuPath:
|
|
61
|
-
isRefreshMenus:
|
|
62
|
-
menuTriggerType:
|
|
63
|
-
permissionSideMenus:
|
|
64
|
-
platform:
|
|
58
|
+
}), s = J("sub-menu-more"), c = be(), I = Ne(qA), l = J(0), r = ot(), {
|
|
59
|
+
rawMenus: p,
|
|
60
|
+
activeTopMenuPath: O,
|
|
61
|
+
isRefreshMenus: L,
|
|
62
|
+
menuTriggerType: t,
|
|
63
|
+
permissionSideMenus: Z,
|
|
64
|
+
platform: b,
|
|
65
65
|
cacheInputMenu: R,
|
|
66
66
|
activeMainMenu: $,
|
|
67
67
|
activeMenuPath: _,
|
|
68
68
|
linkMenuInfo: o,
|
|
69
|
-
updateMenuStatus:
|
|
70
|
-
} = MA(c), fA = qe(), { structureData: sA } = MA(fA), jA =
|
|
71
|
-
...
|
|
69
|
+
updateMenuStatus: N
|
|
70
|
+
} = MA(c), fA = qe(), { structureData: sA } = MA(fA), jA = J([]), pA = J([]), hA = ee(() => j == null ? void 0 : j.mode), bA = J({}), wA = (A) => A == null ? void 0 : A.map((n) => n.children && n.children.length > 0 ? {
|
|
71
|
+
...n,
|
|
72
72
|
// 水平菜单仅显示一层
|
|
73
|
-
children:
|
|
74
|
-
childMenus: wA(
|
|
75
|
-
} :
|
|
73
|
+
children: n.level === 0 ? [] : n.children ?? [],
|
|
74
|
+
childMenus: wA(n.children)
|
|
75
|
+
} : n), JA = (A, n) => {
|
|
76
76
|
var g, e;
|
|
77
|
-
return (e = (g = pA.value) == null ? void 0 : g.find((f) => (A.title +
|
|
78
|
-
}, gA = ["系统管理/角色管理", "系统管理/用户管理", "系统管理/个人中心"], V = (A,
|
|
77
|
+
return (e = (g = pA.value) == null ? void 0 : g.find((f) => (A.title + n).includes(f.value))) == null ? void 0 : e.value;
|
|
78
|
+
}, gA = ["系统管理/角色管理", "系统管理/用户管理", "系统管理/个人中心"], V = (A, n = "", g = 0) => {
|
|
79
79
|
var i;
|
|
80
80
|
let e = GA(A);
|
|
81
81
|
const f = Array.from(/* @__PURE__ */ new Set([...(i = sA.value) == null ? void 0 : i.map((v) => {
|
|
@@ -83,8 +83,8 @@ function El(P = "menu") {
|
|
|
83
83
|
return (d = v == null ? void 0 : v.key) == null ? void 0 : d.pageKey;
|
|
84
84
|
})]));
|
|
85
85
|
return Array.isArray(e) || (e = [e]), e == null ? void 0 : e.map((v) => {
|
|
86
|
-
let d,
|
|
87
|
-
gA != null && gA.includes(
|
|
86
|
+
let d, x = n ? `${n}/${v.title}` : v.title;
|
|
87
|
+
gA != null && gA.includes(x) ? d = n ? `/${n}/${v.title}` : v.title : d = x;
|
|
88
88
|
const C = {
|
|
89
89
|
...v,
|
|
90
90
|
path: d,
|
|
@@ -93,10 +93,10 @@ function El(P = "menu") {
|
|
|
93
93
|
// icon: Icon[`${level}`],
|
|
94
94
|
// icon: platform.value === 'client' ? handleStaticIcon(menu, level) : handleDynamicIcon(menu, level),
|
|
95
95
|
icon: JA(v, g),
|
|
96
|
-
carryData: f == null ? void 0 : f.includes(
|
|
96
|
+
carryData: f == null ? void 0 : f.includes(x),
|
|
97
97
|
//便于角色授权菜单那里给叶子节点添加按钮节点
|
|
98
98
|
isPenultimate: !v.children,
|
|
99
|
-
isRouter: gA == null ? void 0 : gA.includes(
|
|
99
|
+
isRouter: gA == null ? void 0 : gA.includes(x),
|
|
100
100
|
// 便于自定义新增菜单
|
|
101
101
|
children: [],
|
|
102
102
|
childMenus: []
|
|
@@ -105,14 +105,14 @@ function El(P = "menu") {
|
|
|
105
105
|
});
|
|
106
106
|
}, m = ee(() => {
|
|
107
107
|
let A = GA(jA.value);
|
|
108
|
-
if (A = [...A, ...
|
|
108
|
+
if (A = [...A, ...Z.value], (A == null ? void 0 : A.length) === 0)
|
|
109
109
|
return r.push("/"), [];
|
|
110
110
|
Y(A, dA.value);
|
|
111
|
-
const
|
|
112
|
-
return c.setMenus(
|
|
111
|
+
const n = wA(A);
|
|
112
|
+
return c.setMenus(n), n;
|
|
113
113
|
}), EA = async (A) => {
|
|
114
114
|
var f, u, i;
|
|
115
|
-
let
|
|
115
|
+
let n, g;
|
|
116
116
|
(A == null ? void 0 : A.level) === 0 ? g = {
|
|
117
117
|
key: {
|
|
118
118
|
type: "menuConfigData",
|
|
@@ -129,20 +129,20 @@ function El(P = "menu") {
|
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
const e = await Be(g);
|
|
132
|
-
return ((f = e == null ? void 0 : e.data) == null ? void 0 : f.code) === 200 && (
|
|
132
|
+
return ((f = e == null ? void 0 : e.data) == null ? void 0 : f.code) === 200 && (n = (i = (u = e.data) == null ? void 0 : u.result) == null ? void 0 : i.map((v) => {
|
|
133
133
|
var d;
|
|
134
134
|
return {
|
|
135
135
|
id: v == null ? void 0 : v.id,
|
|
136
136
|
...(d = v == null ? void 0 : v.value) == null ? void 0 : d.tableData
|
|
137
137
|
};
|
|
138
|
-
}), (A == null ? void 0 : A.level) === 0 && (bA.value = GA(
|
|
139
|
-
}, zA = (A,
|
|
138
|
+
}), (A == null ? void 0 : A.level) === 0 && (bA.value = GA(n))), (n == null ? void 0 : n.length) > 0 ? n : null;
|
|
139
|
+
}, zA = (A, n) => {
|
|
140
140
|
var e, f;
|
|
141
141
|
const g = A == null ? void 0 : A.find((u) => (u == null ? void 0 : u.operateType) === "新增");
|
|
142
|
-
return ((f = (e = R.value) == null ? void 0 : e.data) == null ? void 0 : f.path) === (
|
|
143
|
-
}, DA = async (A,
|
|
144
|
-
if (!Array.isArray(
|
|
145
|
-
for (const g of
|
|
142
|
+
return ((f = (e = R.value) == null ? void 0 : e.data) == null ? void 0 : f.path) === (n == null ? void 0 : n.path) ? g == null ? void 0 : g.menuIcon : JA(n, n == null ? void 0 : n.level);
|
|
143
|
+
}, DA = async (A, n) => {
|
|
144
|
+
if (!Array.isArray(n)) return A;
|
|
145
|
+
for (const g of n)
|
|
146
146
|
if ((g == null ? void 0 : g.path) === A.path)
|
|
147
147
|
return {
|
|
148
148
|
...A,
|
|
@@ -150,18 +150,18 @@ function El(P = "menu") {
|
|
|
150
150
|
// icon: temp?.data?.menuConfig?.menuIcon
|
|
151
151
|
};
|
|
152
152
|
return A;
|
|
153
|
-
}, mA =
|
|
153
|
+
}, mA = J(null), FA = async (A, n = null) => await Promise.all(
|
|
154
154
|
A == null ? void 0 : A.map(async (g) => {
|
|
155
155
|
var u;
|
|
156
156
|
let e = await DA(g, bA.value);
|
|
157
|
-
const f = (e == null ? void 0 : e.config) ?? ((u =
|
|
157
|
+
const f = (e == null ? void 0 : e.config) ?? ((u = n == null ? void 0 : n.filter((i) => i.allowInherit)) == null ? void 0 : u.map((i) => {
|
|
158
158
|
var v;
|
|
159
159
|
return {
|
|
160
160
|
...i,
|
|
161
161
|
// structureIds: parentConfig?.find((p: any) => p?.structureIds?.length > 0)?.structureIds?.filter((item: any) => item?.key === 'contentConfig')
|
|
162
|
-
structureIds: (v =
|
|
163
|
-
var
|
|
164
|
-
return ((
|
|
162
|
+
structureIds: (v = n == null ? void 0 : n.find((d) => {
|
|
163
|
+
var x;
|
|
164
|
+
return ((x = d == null ? void 0 : d.structureIds) == null ? void 0 : x.length) > 0;
|
|
165
165
|
})) == null ? void 0 : v.structureIds
|
|
166
166
|
//弹窗和内容的结构都继承
|
|
167
167
|
};
|
|
@@ -184,20 +184,20 @@ function El(P = "menu") {
|
|
|
184
184
|
(A) => {
|
|
185
185
|
var g, e, f;
|
|
186
186
|
if (!A) return;
|
|
187
|
-
const
|
|
188
|
-
if (
|
|
189
|
-
const u = (f = jA.value) == null ? void 0 : f.find((i) => (i == null ? void 0 : i.path) ===
|
|
190
|
-
if (!u || (c.setActiveTopMenuPath(
|
|
187
|
+
const n = (e = (g = A == null ? void 0 : A.path) == null ? void 0 : g.split("/")) == null ? void 0 : e[0];
|
|
188
|
+
if (n) {
|
|
189
|
+
const u = (f = jA.value) == null ? void 0 : f.find((i) => (i == null ? void 0 : i.path) === n);
|
|
190
|
+
if (!u || (c.setActiveTopMenuPath(n), !(u != null && u.children))) return;
|
|
191
191
|
c.setAsideMenus(u == null ? void 0 : u.children), c.setActiveMenuPath(A == null ? void 0 : A.path), I.setRouteToChildPath(A == null ? void 0 : A.path);
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
194
|
{ immediate: !0 }
|
|
195
195
|
);
|
|
196
196
|
const VA = async (A) => {
|
|
197
|
-
var
|
|
198
|
-
if (c.setLinkMenuInfo(null), c.setAsideMenuLoading(!0), I.setRouteToChildPath(""), c.setActiveTopMenuPath(A == null ? void 0 : A.path), c.setActiveMainMenu(A), mA.value = null, A != null && A.childMenus && ((
|
|
197
|
+
var n, g, e, f;
|
|
198
|
+
if (c.setLinkMenuInfo(null), c.setAsideMenuLoading(!0), I.setRouteToChildPath(""), c.setActiveTopMenuPath(A == null ? void 0 : A.path), c.setActiveMainMenu(A), mA.value = null, A != null && A.childMenus && ((n = A == null ? void 0 : A.childMenus) == null ? void 0 : n.length) > 0) {
|
|
199
199
|
const u = await _A(A), i = (u == null ? void 0 : u.length) === 0 ? A == null ? void 0 : A.childMenus : u;
|
|
200
|
-
if (c.setAsideMenus(i),
|
|
200
|
+
if (c.setAsideMenus(i), N.value) {
|
|
201
201
|
const v = (e = (g = A == null ? void 0 : A.childMenus) == null ? void 0 : g[0]) == null ? void 0 : e.path;
|
|
202
202
|
c.setActiveMenuPath(v);
|
|
203
203
|
} else
|
|
@@ -207,13 +207,13 @@ function El(P = "menu") {
|
|
|
207
207
|
c.setAsideMenus([]);
|
|
208
208
|
A.isRouter ? r.push(A.path) : r.push("/"), c.setAsideMenuLoading(!1);
|
|
209
209
|
}, D = (A) => {
|
|
210
|
-
I.setRouteToChildPath(""),
|
|
210
|
+
I.setRouteToChildPath(""), t.value === "click" ? l.value === 1 ? c.setActiveMenuPath(sessionStorage.getItem("pageKey")) : A !== s.value && c.setActiveMenuPath(A) : c.setMenuTriggerType("click"), A != null && A.startsWith("/") ? r.push(A) : r.push("/"), l.value++;
|
|
211
211
|
}, eA = (A) => {
|
|
212
212
|
A !== s.value && c.setActiveMenuPath(A);
|
|
213
213
|
}, PA = (A) => {
|
|
214
|
-
const
|
|
214
|
+
const n = document.documentElement;
|
|
215
215
|
A == null || A.forEach((g) => {
|
|
216
|
-
|
|
216
|
+
n.style.setProperty(g.name, g.value);
|
|
217
217
|
});
|
|
218
218
|
};
|
|
219
219
|
on(() => {
|
|
@@ -224,76 +224,76 @@ function El(P = "menu") {
|
|
|
224
224
|
return A ? JSON.parse(A) : [];
|
|
225
225
|
});
|
|
226
226
|
YA(
|
|
227
|
-
() =>
|
|
227
|
+
() => b.value,
|
|
228
228
|
(A) => {
|
|
229
229
|
A === "browser" ? (PA(Pt), PA(Ct)) : A === "client" ? (PA(It), PA(Et)) : A === "three" && (PA(Bt), PA(zt));
|
|
230
230
|
},
|
|
231
231
|
{ immediate: !0 }
|
|
232
232
|
), YA(
|
|
233
|
-
() =>
|
|
233
|
+
() => p.value,
|
|
234
234
|
(A) => {
|
|
235
235
|
if (pA.value = Bn(), A) {
|
|
236
|
-
|
|
237
|
-
const
|
|
238
|
-
jA.value = V(
|
|
236
|
+
N.value && (c.setActiveTopMenuPath(""), c.setActiveMenuPath(""), c.setAsideMenus([]));
|
|
237
|
+
const n = A;
|
|
238
|
+
jA.value = V(Ot(n));
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
immediate: !0
|
|
243
243
|
}
|
|
244
244
|
);
|
|
245
|
-
const Y = (A,
|
|
245
|
+
const Y = (A, n) => ({
|
|
246
246
|
isFlag: !0
|
|
247
247
|
}), k = (A) => {
|
|
248
248
|
var g;
|
|
249
|
-
const
|
|
249
|
+
const n = [A == null ? void 0 : A.title];
|
|
250
250
|
if (A != null && A.children && ((g = A == null ? void 0 : A.children) == null ? void 0 : g.length) > 0) {
|
|
251
251
|
const e = A.children.map((f) => k(f));
|
|
252
|
-
|
|
252
|
+
n.push(...e);
|
|
253
253
|
}
|
|
254
|
-
return
|
|
255
|
-
}, $A = (A,
|
|
254
|
+
return n;
|
|
255
|
+
}, $A = (A, n, g, e) => A.map((f) => {
|
|
256
256
|
var u, i;
|
|
257
257
|
if (f.path === g) {
|
|
258
258
|
const v = { ...f };
|
|
259
|
-
return e === "create" ? v.children.push(
|
|
260
|
-
(d) => (d == null ? void 0 : d.path) === (
|
|
261
|
-
) : e === "delete" && (v.children = (i = v.children) == null ? void 0 : i.filter((d) => (d == null ? void 0 : d.path) !== (
|
|
259
|
+
return e === "create" ? v.children.push(n) : e === "update" ? v.children = (u = v.children) == null ? void 0 : u.map(
|
|
260
|
+
(d) => (d == null ? void 0 : d.path) === (n == null ? void 0 : n.path) ? n : d
|
|
261
|
+
) : e === "delete" && (v.children = (i = v.children) == null ? void 0 : i.filter((d) => (d == null ? void 0 : d.path) !== (n == null ? void 0 : n.path))), v;
|
|
262
262
|
} else
|
|
263
263
|
return {
|
|
264
264
|
...f,
|
|
265
|
-
children: $A(f.children,
|
|
265
|
+
children: $A(f.children, n, g, e)
|
|
266
266
|
// 递归更新子节点
|
|
267
267
|
};
|
|
268
268
|
}), ne = async (A) => {
|
|
269
269
|
var g, e, f, u, i, v;
|
|
270
|
-
const
|
|
271
|
-
var
|
|
272
|
-
return ((
|
|
270
|
+
const n = (g = sA.value) == null ? void 0 : g.find((d) => {
|
|
271
|
+
var x;
|
|
272
|
+
return ((x = d == null ? void 0 : d.key) == null ? void 0 : x.pageKey) === "menu";
|
|
273
273
|
});
|
|
274
|
-
if (
|
|
274
|
+
if (n) {
|
|
275
275
|
const d = {
|
|
276
|
-
...(e =
|
|
277
|
-
compData: (i = (u = (f =
|
|
276
|
+
...(e = n.value) == null ? void 0 : e.pageData,
|
|
277
|
+
compData: (i = (u = (f = n.value) == null ? void 0 : f.pageData) == null ? void 0 : u.compData) == null ? void 0 : i.map((C) => C.key === "menuContents" ? {
|
|
278
278
|
...C,
|
|
279
279
|
contents: A
|
|
280
280
|
} : C)
|
|
281
281
|
};
|
|
282
|
-
await pt(
|
|
283
|
-
const
|
|
284
|
-
|
|
282
|
+
await pt(n == null ? void 0 : n.id, d);
|
|
283
|
+
const x = (v = m.value) == null ? void 0 : v.find((C) => (C == null ? void 0 : C.path) === O.value);
|
|
284
|
+
x && await VA(x), c.setAsideMenuLoading(!1), c.setIsRefreshMenus(!1);
|
|
285
285
|
} else
|
|
286
286
|
c.setAsideMenuLoading(!1);
|
|
287
287
|
}, ce = async (A) => {
|
|
288
288
|
var e, f, u, i, v;
|
|
289
|
-
const
|
|
289
|
+
const n = await Be({
|
|
290
290
|
id: A
|
|
291
291
|
});
|
|
292
292
|
let g;
|
|
293
|
-
return ((e =
|
|
293
|
+
return ((e = n == null ? void 0 : n.data) == null ? void 0 : e.code) === 200 && (g = (v = (i = (u = (f = n == null ? void 0 : n.data) == null ? void 0 : f.result) == null ? void 0 : u[0]) == null ? void 0 : i.value) == null ? void 0 : v.pageData), g;
|
|
294
294
|
}, de = async (A) => {
|
|
295
|
-
var v, d,
|
|
296
|
-
const
|
|
295
|
+
var v, d, x;
|
|
296
|
+
const n = (x = (d = (v = A == null ? void 0 : A.config) == null ? void 0 : v.find((C) => (C == null ? void 0 : C.operateType) === "新增")) == null ? void 0 : d.structureIds) == null ? void 0 : x.filter((C) => (C == null ? void 0 : C.key) === "contentConfig"), g = n == null ? void 0 : n.map((C) => C == null ? void 0 : C.id);
|
|
297
297
|
let e = [];
|
|
298
298
|
g == null || g.forEach((C) => {
|
|
299
299
|
C && e.push(ce(C));
|
|
@@ -318,22 +318,22 @@ function El(P = "menu") {
|
|
|
318
318
|
});
|
|
319
319
|
};
|
|
320
320
|
return YA(
|
|
321
|
-
() =>
|
|
321
|
+
() => L.value,
|
|
322
322
|
async (A) => {
|
|
323
|
-
var
|
|
323
|
+
var n, g, e, f, u, i, v, d;
|
|
324
324
|
if (A)
|
|
325
325
|
try {
|
|
326
|
-
const
|
|
326
|
+
const x = (e = (g = (n = R.value) == null ? void 0 : n.data) == null ? void 0 : g.path) == null ? void 0 : e.split("/").slice(0, -1).join("/"), C = $A(
|
|
327
327
|
jA.value,
|
|
328
328
|
(f = R.value) == null ? void 0 : f.data,
|
|
329
|
-
|
|
329
|
+
x,
|
|
330
330
|
(u = R.value) == null ? void 0 : u.type
|
|
331
331
|
), HA = (i = C == null ? void 0 : C.filter((SA) => SA.path !== "平台管理")) == null ? void 0 : i.map((SA) => k(SA));
|
|
332
332
|
await de((v = R.value) == null ? void 0 : v.data), c.setAsideMenuLoading(!0), await ne(HA);
|
|
333
333
|
const QA = await _A($.value), WA = (QA == null ? void 0 : QA.length) === 0 ? (d = $.value) == null ? void 0 : d.childMenus : QA;
|
|
334
334
|
c.setAsideMenus(WA);
|
|
335
|
-
} catch (
|
|
336
|
-
throw Oe.error(
|
|
335
|
+
} catch (x) {
|
|
336
|
+
throw Oe.error(x), new Error(x);
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
339
|
{ immediate: !0 }
|
|
@@ -358,8 +358,8 @@ function Ql(P, j, s, c, I, l) {
|
|
|
358
358
|
onOpenMenu: P.openMenu,
|
|
359
359
|
onCloseMenu: P.closeMenu
|
|
360
360
|
}, {
|
|
361
|
-
title: M(({ menu:
|
|
362
|
-
H("span", zl, UA(
|
|
361
|
+
title: M(({ menu: p }) => [
|
|
362
|
+
H("span", zl, UA(p.title ?? ""), 1)
|
|
363
363
|
]),
|
|
364
364
|
_: 1
|
|
365
365
|
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
@@ -381,48 +381,48 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
381
381
|
},
|
|
382
382
|
emits: ["click"],
|
|
383
383
|
setup(P, { emit: j }) {
|
|
384
|
-
const s = Qn(qA), { chooseTitle: c } = MA(s), I = P, l =
|
|
384
|
+
const s = Qn(qA), { chooseTitle: c } = MA(s), I = P, l = J([]), r = j;
|
|
385
385
|
YA(
|
|
386
386
|
() => I == null ? void 0 : I.breadArray,
|
|
387
387
|
() => {
|
|
388
|
-
var
|
|
389
|
-
l.value = (
|
|
388
|
+
var L;
|
|
389
|
+
l.value = (L = I == null ? void 0 : I.breadArray) == null ? void 0 : L.filter((t) => t == null ? void 0 : t.isShow);
|
|
390
390
|
},
|
|
391
391
|
{ deep: !0, immediate: !0 }
|
|
392
392
|
);
|
|
393
|
-
const
|
|
394
|
-
r("click",
|
|
395
|
-
},
|
|
396
|
-
var
|
|
397
|
-
let
|
|
398
|
-
|
|
393
|
+
const p = (L) => {
|
|
394
|
+
r("click", L);
|
|
395
|
+
}, O = (L) => {
|
|
396
|
+
var Z;
|
|
397
|
+
let t = c.value;
|
|
398
|
+
t = (Z = t == null ? void 0 : t.filter((b) => b == null ? void 0 : b.isShow)) == null ? void 0 : Z.map((b) => ((b == null ? void 0 : b.parentContent) === (L == null ? void 0 : L.parentContent) && (b.value = L.value), b)), s.setChooseTitle(t);
|
|
399
399
|
};
|
|
400
|
-
return (
|
|
401
|
-
(z(!0), q(ue, null, Ee(l.value, (
|
|
402
|
-
var R, $, _, o,
|
|
400
|
+
return (L, t) => (z(), q("div", Xl, [
|
|
401
|
+
(z(!0), q(ue, null, Ee(l.value, (Z, b) => {
|
|
402
|
+
var R, $, _, o, N, fA;
|
|
403
403
|
return z(), q("div", {
|
|
404
|
-
key:
|
|
404
|
+
key: b,
|
|
405
405
|
class: "bread-item"
|
|
406
406
|
}, [
|
|
407
407
|
H("div", {
|
|
408
408
|
class: "bread-title",
|
|
409
|
-
style: Fe({ opacity: ((R = l.value) == null ? void 0 : R.length) - 1 ===
|
|
409
|
+
style: Fe({ opacity: ((R = l.value) == null ? void 0 : R.length) - 1 === b ? "0.7" : "1", fontWeight: (($ = l.value) == null ? void 0 : $.length) - 1 === b ? 400 : 600, fontSize: "var(--ssbutton-fontSize)" })
|
|
410
410
|
}, [
|
|
411
|
-
(
|
|
411
|
+
(Z == null ? void 0 : Z.condition) !== "child" ? (z(), q("div", {
|
|
412
412
|
key: 0,
|
|
413
|
-
onClick: (sA) =>
|
|
414
|
-
}, UA(
|
|
413
|
+
onClick: (sA) => p(Z)
|
|
414
|
+
}, UA(Z.value), 9, Ol)) : (z(), xA(nl, {
|
|
415
415
|
key: 1,
|
|
416
|
-
modelValue:
|
|
417
|
-
"onUpdate:modelValue": (sA) =>
|
|
418
|
-
content:
|
|
416
|
+
modelValue: Z.value,
|
|
417
|
+
"onUpdate:modelValue": (sA) => Z.value = sA,
|
|
418
|
+
content: Z.options ?? [],
|
|
419
419
|
clearable: !1,
|
|
420
|
-
onChange: (sA) =>
|
|
420
|
+
onChange: (sA) => O(Z)
|
|
421
421
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "content", "onChange"]))
|
|
422
422
|
], 4),
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
])) : ((fA = (
|
|
423
|
+
b !== l.value.length - 1 && Array.isArray(l.value) && ((o = (_ = l.value) == null ? void 0 : _[b + 1]) == null ? void 0 : o.condition) !== "child" ? (z(), q("div", jl, [
|
|
424
|
+
X(a(Al), { style: { width: "14px" } })
|
|
425
|
+
])) : ((fA = (N = l.value) == null ? void 0 : N[b + 1]) == null ? void 0 : fA.condition) === "child" ? (z(), q("div", Hl, t[0] || (t[0] = [
|
|
426
426
|
H("div", null, UA(":"), -1)
|
|
427
427
|
]))) : CA("", !0)
|
|
428
428
|
]);
|
|
@@ -441,50 +441,50 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
441
441
|
},
|
|
442
442
|
emits: ["change", "contentChange"],
|
|
443
443
|
setup(P, { emit: j }) {
|
|
444
|
-
const s = P, c = j, I =
|
|
445
|
-
var
|
|
446
|
-
c("change",
|
|
447
|
-
url: (
|
|
444
|
+
const s = P, c = j, I = J([]), l = (p, O = "data") => {
|
|
445
|
+
var L;
|
|
446
|
+
c("change", p, O, {
|
|
447
|
+
url: (L = s == null ? void 0 : s.componentParam) == null ? void 0 : L.routerUrl
|
|
448
448
|
});
|
|
449
|
-
}, r = (
|
|
450
|
-
c("contentChange",
|
|
449
|
+
}, r = (p) => {
|
|
450
|
+
c("contentChange", p);
|
|
451
451
|
};
|
|
452
452
|
return YA(
|
|
453
453
|
() => s == null ? void 0 : s.dialogItem,
|
|
454
454
|
() => {
|
|
455
|
-
var
|
|
456
|
-
((
|
|
457
|
-
var
|
|
458
|
-
return (
|
|
455
|
+
var p, O, L;
|
|
456
|
+
((p = s == null ? void 0 : s.componentParam) == null ? void 0 : p.isEdit) === !0 ? I.value = (O = GA(s == null ? void 0 : s.dialogItem)) == null ? void 0 : O.map((t) => {
|
|
457
|
+
var Z;
|
|
458
|
+
return (t == null ? void 0 : t.comp) === "Form" && (t.compData = (Z = t.compData) == null ? void 0 : Z.map((b) => {
|
|
459
459
|
var R;
|
|
460
|
-
return (
|
|
461
|
-
})),
|
|
462
|
-
}) : I.value = (
|
|
463
|
-
var
|
|
464
|
-
return (
|
|
460
|
+
return (b == null ? void 0 : b.key) === "formContent" && (b.contents = (R = b.contents) == null ? void 0 : R.map(($) => ($.type = "Upload", $))), b;
|
|
461
|
+
})), t;
|
|
462
|
+
}) : I.value = (L = GA(s == null ? void 0 : s.dialogItem)) == null ? void 0 : L.map((t) => {
|
|
463
|
+
var Z, b;
|
|
464
|
+
return (t == null ? void 0 : t.comp) === "Table" && (t.compData = (Z = t.compData) == null ? void 0 : Z.filter((R) => (R == null ? void 0 : R.key) !== "rowButton" && (R == null ? void 0 : R.key) !== "extraButton"), t.compData = (b = t.compData) == null ? void 0 : b.map((R) => {
|
|
465
465
|
var $;
|
|
466
466
|
return (R == null ? void 0 : R.key) === "header" && (R.contents = ($ = R.contents) == null ? void 0 : $.filter((_) => (_ == null ? void 0 : _.prop) !== "操作")), R;
|
|
467
|
-
})),
|
|
467
|
+
})), t;
|
|
468
468
|
});
|
|
469
469
|
},
|
|
470
470
|
{ deep: !0, immediate: !0 }
|
|
471
|
-
), (
|
|
472
|
-
var
|
|
471
|
+
), (p, O) => {
|
|
472
|
+
var L;
|
|
473
473
|
return z(), q("div", null, [
|
|
474
|
-
(z(!0), q(ue, null, Ee((
|
|
475
|
-
var
|
|
474
|
+
(z(!0), q(ue, null, Ee((L = I.value) == null ? void 0 : L.filter((t) => t.comp !== "FormTop"), (t, Z) => {
|
|
475
|
+
var b;
|
|
476
476
|
return z(), q("div", {
|
|
477
477
|
class: "item-view-content",
|
|
478
|
-
key:
|
|
478
|
+
key: Z
|
|
479
479
|
}, [
|
|
480
|
-
((
|
|
481
|
-
H("div", wl, UA(
|
|
480
|
+
((b = t == null ? void 0 : t.comp) == null ? void 0 : b.toUpperCase()) !== "TABLE" && (t != null && t.name) ? (z(), q("div", bl, [
|
|
481
|
+
H("div", wl, UA(t.name), 1)
|
|
482
482
|
])) : CA("", !0),
|
|
483
|
-
(z(), xA(Ye(a(Ge)(
|
|
484
|
-
compName:
|
|
485
|
-
itemData:
|
|
486
|
-
childItemData:
|
|
487
|
-
index: (
|
|
483
|
+
(z(), xA(Ye(a(Ge)(t.comp)), {
|
|
484
|
+
compName: t.name,
|
|
485
|
+
itemData: t == null ? void 0 : t.compData,
|
|
486
|
+
childItemData: t == null ? void 0 : t.itemChildData,
|
|
487
|
+
index: (t == null ? void 0 : t.id) ?? Z,
|
|
488
488
|
onChange: l,
|
|
489
489
|
onContentChange: r
|
|
490
490
|
}, null, 40, ["compName", "itemData", "childItemData", "index"]))
|
|
@@ -537,34 +537,34 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
537
537
|
emits: ["onExtendTaskEnd"],
|
|
538
538
|
setup(P, { emit: j }) {
|
|
539
539
|
var _;
|
|
540
|
-
const s = Ne(qA), { pageMapState: c } = MA(s), I = be(qA), { activeMenuPath: l } = MA(I), r = Rn(qA), { originalPath:
|
|
540
|
+
const s = Ne(qA), { pageMapState: c } = MA(s), I = be(qA), { activeMenuPath: l } = MA(I), r = Rn(qA), { originalPath: p } = MA(r), O = P, L = j, t = J(""), Z = () => {
|
|
541
541
|
var fA, sA, jA, pA, hA, bA, wA, JA, gA, V, m;
|
|
542
542
|
if (!l.value) return;
|
|
543
|
-
const o = ((sA = (fA = l.value) == null ? void 0 : fA.split(
|
|
543
|
+
const o = ((sA = (fA = l.value) == null ? void 0 : fA.split(p.value)) == null ? void 0 : sA[0]) + p.value + ((jA = O == null ? void 0 : O.toolBar) == null ? void 0 : jA.mainKeyPropValue), N = (wA = (bA = (hA = (pA = c.value) == null ? void 0 : pA[o]) == null ? void 0 : hA.find((EA) => {
|
|
544
544
|
var zA, DA, mA;
|
|
545
545
|
return ((mA = (DA = (zA = EA == null ? void 0 : EA.value) == null ? void 0 : zA.pageData) == null ? void 0 : DA.comp) == null ? void 0 : mA.toUpperCase()) === "FORM";
|
|
546
546
|
})) == null ? void 0 : bA.value) == null ? void 0 : wA.pageData;
|
|
547
|
-
|
|
547
|
+
t.value = (m = (V = (gA = (JA = N == null ? void 0 : N.compData) == null ? void 0 : JA.find((EA) => (EA == null ? void 0 : EA.key) === "formContent")) == null ? void 0 : gA.contents) == null ? void 0 : V.find((EA) => {
|
|
548
548
|
var zA;
|
|
549
|
-
return (EA == null ? void 0 : EA.prop) === ((zA =
|
|
550
|
-
})) == null ? void 0 : m.value,
|
|
551
|
-
},
|
|
552
|
-
let
|
|
549
|
+
return (EA == null ? void 0 : EA.prop) === ((zA = O == null ? void 0 : O.toolBar) == null ? void 0 : zA.prop);
|
|
550
|
+
})) == null ? void 0 : m.value, t.value && b(Number(t.value));
|
|
551
|
+
}, b = (o) => {
|
|
552
|
+
let N = o * 60;
|
|
553
553
|
const fA = setInterval(() => {
|
|
554
|
-
if (
|
|
555
|
-
clearInterval(fA),
|
|
554
|
+
if (N <= 0)
|
|
555
|
+
clearInterval(fA), L("onExtendTaskEnd");
|
|
556
556
|
else {
|
|
557
|
-
|
|
558
|
-
const sA = Math.floor(
|
|
557
|
+
N--;
|
|
558
|
+
const sA = Math.floor(N / 3600), jA = Math.floor(N % 3600 / 60), pA = N % 60;
|
|
559
559
|
$.value = `${String(sA).padStart(2, "0")}:${String(jA).padStart(2, "0")}:${String(pA).padStart(2, "0")}`;
|
|
560
560
|
}
|
|
561
561
|
}, 1e3);
|
|
562
562
|
};
|
|
563
563
|
on(() => {
|
|
564
|
-
|
|
564
|
+
Z();
|
|
565
565
|
});
|
|
566
|
-
const R =
|
|
567
|
-
return (o,
|
|
566
|
+
const R = J((_ = O == null ? void 0 : O.toolBar) == null ? void 0 : _.title), $ = J("");
|
|
567
|
+
return (o, N) => (z(), q("div", null, [
|
|
568
568
|
H("span", null, UA(R.value), 1),
|
|
569
569
|
$.value ? (z(), q("span", Sl, ":")) : CA("", !0),
|
|
570
570
|
H("span", null, UA($.value), 1)
|
|
@@ -653,30 +653,30 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
653
653
|
setup(P, { emit: j }) {
|
|
654
654
|
const s = (K, Q) => {
|
|
655
655
|
console.log(K, Q);
|
|
656
|
-
}, c =
|
|
657
|
-
() =>
|
|
656
|
+
}, c = J(), I = J(""), l = J(), r = J(!1), p = J([]), O = J([]), L = J([]), t = ee(
|
|
657
|
+
() => p.value.filter((K) => {
|
|
658
658
|
var Q;
|
|
659
659
|
return ((Q = K.find((nA) => nA.prop === "状态")) == null ? void 0 : Q.value) === "未读";
|
|
660
660
|
}).length
|
|
661
|
-
),
|
|
661
|
+
), Z = ee(() => t.value > 99 ? "99+" : t.value), b = Rn(qA), { originalPath: R } = MA(b), $ = R.value, _ = qe(), { loginUserInfo: o } = MA(_), N = J();
|
|
662
662
|
async function fA() {
|
|
663
|
-
var K, Q, nA, iA, cA,
|
|
663
|
+
var K, Q, nA, iA, cA, U;
|
|
664
664
|
try {
|
|
665
|
-
let oA = function(
|
|
666
|
-
return BA.map((
|
|
665
|
+
let oA = function(S, BA) {
|
|
666
|
+
return BA.map((W) => S.map((aA, h) => ({
|
|
667
667
|
...aA,
|
|
668
|
-
value:
|
|
668
|
+
value: W[h] ?? ""
|
|
669
669
|
})));
|
|
670
670
|
};
|
|
671
|
-
const
|
|
672
|
-
Me(On,
|
|
673
|
-
]), yA = (nA = (Q = (K = uA == null ? void 0 : uA[0]) == null ? void 0 : K.compData) == null ? void 0 : Q.find((
|
|
674
|
-
let OA = [], E = [],
|
|
675
|
-
Array.isArray(yA) && Array.isArray(tA) ? (
|
|
676
|
-
(
|
|
671
|
+
const y = sessionStorage.getItem("systemKey"), [uA] = await Promise.all([
|
|
672
|
+
Me(On, y, "")
|
|
673
|
+
]), yA = (nA = (Q = (K = uA == null ? void 0 : uA[0]) == null ? void 0 : K.compData) == null ? void 0 : Q.find((S) => (S == null ? void 0 : S.key) === "tableContents")) == null ? void 0 : nA.contents, tA = (U = (cA = (iA = uA == null ? void 0 : uA[0]) == null ? void 0 : iA.compData) == null ? void 0 : cA.find((S) => (S == null ? void 0 : S.key) === "header")) == null ? void 0 : U.contents;
|
|
674
|
+
let OA = [], E = [], w = [], vA = [];
|
|
675
|
+
Array.isArray(yA) && Array.isArray(tA) ? (w = yA.filter(
|
|
676
|
+
(S) => S.includes("未读")
|
|
677
677
|
), vA = yA.filter(
|
|
678
|
-
(
|
|
679
|
-
), OA = [...
|
|
678
|
+
(S) => S.includes("已读")
|
|
679
|
+
), OA = [...w, ...vA], E = [...yA]) : (w = [], vA = [], E = [], console.warn("messagesContents 或 messagesHeader 不是数组")), O.value = oA(tA, E), p.value = oA(tA, OA), L.value = oA(tA, w);
|
|
680
680
|
} catch (oA) {
|
|
681
681
|
console.error("获取消息数据失败:", oA);
|
|
682
682
|
}
|
|
@@ -688,7 +688,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
688
688
|
}, pA = async (K) => {
|
|
689
689
|
if (!K) return;
|
|
690
690
|
(async (nA) => {
|
|
691
|
-
var cA,
|
|
691
|
+
var cA, U, oA, y;
|
|
692
692
|
const iA = [
|
|
693
693
|
{
|
|
694
694
|
title: "我的消息",
|
|
@@ -721,32 +721,32 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
721
721
|
}
|
|
722
722
|
A.setAsideMenus(iA), (uA == null ? void 0 : uA.value) === "未读" && (uA.value = "已读", A.setActiveMenuPath(On));
|
|
723
723
|
const tA = i.value + $ + yA.value, OA = i.value;
|
|
724
|
-
await ll(tA, tA + $ + `updateLoading${((cA = o.value) == null ? void 0 : cA.account) || ((
|
|
724
|
+
await ll(tA, tA + $ + `updateLoading${((cA = o.value) == null ? void 0 : cA.account) || ((U = o.value) == null ? void 0 : U.账号)}`), $A.setRouteToChildPath(OA), A.setActiveMenuPath(tA + $ + `updateLoading${((oA = o.value) == null ? void 0 : oA.account) || ((y = o.value) == null ? void 0 : y.账号)}`), A.setActiveTopMenuPath("消息中心"), console.log("444showItems.value", He.value);
|
|
725
725
|
} catch (uA) {
|
|
726
726
|
console.error("加载菜单或页面时出错:", uA);
|
|
727
727
|
}
|
|
728
728
|
})(K);
|
|
729
|
-
}, hA = Qn(qA), { selectTitle: bA } = MA(hA), wA =
|
|
729
|
+
}, hA = Qn(qA), { selectTitle: bA } = MA(hA), wA = J(!1), JA = J(), gA = J(null), V = J(), m = J(!1), EA = jt(qA), { blobUrls: zA } = MA(EA), DA = J(), mA = J(!1), FA = J(!1), _A = J(!1), VA = J([]), D = J(!1), eA = J(null), PA = J([]), dA = J(!1), Y = J(!1), k = J();
|
|
730
730
|
fn("contentRef", eA);
|
|
731
|
-
const $A = Ne(qA), { isEdit: ne, routeToChildPath: ce } = MA($A), de = j, A = be(qA), { asideMenuLoading:
|
|
731
|
+
const $A = Ne(qA), { isEdit: ne, routeToChildPath: ce } = MA($A), de = j, A = be(qA), { asideMenuLoading: n, importLoading: g, activeAsideMenu: e, contentLoading: f, platName: u, activeMenuPath: i } = MA(A), v = P, d = ee(() => e.value.isRouter), x = () => {
|
|
732
732
|
sessionStorage.clear(), window.location.reload();
|
|
733
733
|
}, C = async (K) => {
|
|
734
|
-
var Q, nA, iA, cA,
|
|
735
|
-
if ((K == null ? void 0 : K.type) === "table" && (Q = bA.value) != null && Q.every((
|
|
736
|
-
let
|
|
734
|
+
var Q, nA, iA, cA, U, oA, y, uA, yA, tA, OA, E, w, vA, S, BA, W, aA;
|
|
735
|
+
if ((K == null ? void 0 : K.type) === "table" && (Q = bA.value) != null && Q.every((h) => (h == null ? void 0 : h.condition) !== "parent")) {
|
|
736
|
+
let h = await Ht({
|
|
737
737
|
platId: parseInt((nA = o == null ? void 0 : o.value) == null ? void 0 : nA.plat_id),
|
|
738
738
|
pageName: "menu"
|
|
739
739
|
});
|
|
740
|
-
if (((cA = (iA =
|
|
741
|
-
let IA = (
|
|
740
|
+
if (((cA = (iA = h == null ? void 0 : h.data) == null ? void 0 : iA.result) == null ? void 0 : cA.length) > 0) {
|
|
741
|
+
let IA = (U = h == null ? void 0 : h.data) == null ? void 0 : U.result;
|
|
742
742
|
if (((oA = IA == null ? void 0 : IA.filter((lA) => (lA == null ? void 0 : lA.father_name) === i.value || (lA == null ? void 0 : lA.father_name) === i.value + "/")) == null ? void 0 : oA.length) > 0) {
|
|
743
|
-
let lA = (yA = K == null ? void 0 : K.row) == null ? void 0 : yA[(uA = (
|
|
743
|
+
let lA = (yA = K == null ? void 0 : K.row) == null ? void 0 : yA[(uA = (y = K == null ? void 0 : K.usingRow) == null ? void 0 : y[0]) == null ? void 0 : uA.prop], T = GA(bA).value, G;
|
|
744
744
|
if ((tA = bA.value) != null && tA.find((rA) => (rA == null ? void 0 : rA.condition) === "child"))
|
|
745
|
-
|
|
745
|
+
T = T == null ? void 0 : T.map((rA) => ((rA == null ? void 0 : rA.condition) === "child" && (rA.value = lA, rA.isShow = !0, G = rA), rA));
|
|
746
746
|
else {
|
|
747
|
-
let rA = (
|
|
748
|
-
XA = ((
|
|
749
|
-
let ZA = (aA = (
|
|
747
|
+
let rA = (w = (E = (OA = He) == null ? void 0 : OA.value) == null ? void 0 : E[0]) == null ? void 0 : w.compData, XA = (vA = rA == null ? void 0 : rA.find((F) => (F == null ? void 0 : F.key) === "header")) == null ? void 0 : vA.contents;
|
|
748
|
+
XA = ((S = XA == null ? void 0 : XA.find((F) => F == null ? void 0 : F.isMainKey)) == null ? void 0 : S.prop) ?? ((BA = XA == null ? void 0 : XA[0]) == null ? void 0 : BA.prop);
|
|
749
|
+
let ZA = (aA = (W = rA == null ? void 0 : rA.find((F) => (F == null ? void 0 : F.key) === "tableContents")) == null ? void 0 : W.contents) == null ? void 0 : aA.map((F) => ({
|
|
750
750
|
label: F == null ? void 0 : F[XA],
|
|
751
751
|
value: F == null ? void 0 : F[XA]
|
|
752
752
|
}));
|
|
@@ -756,9 +756,9 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
756
756
|
options: ZA,
|
|
757
757
|
parentContent: i.value,
|
|
758
758
|
isShow: !0
|
|
759
|
-
},
|
|
759
|
+
}, T.push(G);
|
|
760
760
|
}
|
|
761
|
-
hA.setSelectTitle(
|
|
761
|
+
hA.setSelectTitle(T), hA.setChooseTitle([G]);
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
}
|
|
@@ -766,52 +766,52 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
766
766
|
let K = {};
|
|
767
767
|
const Q = await Me("弯管仿真加工分析/仿真动画生成", sessionStorage.getItem("systemKey"), ""), nA = await Me("弯管仿真加工分析/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
768
768
|
let iA = ["管长", "外径"], cA = {};
|
|
769
|
-
nA == null || nA.forEach((
|
|
769
|
+
nA == null || nA.forEach((U) => {
|
|
770
770
|
var oA;
|
|
771
|
-
(
|
|
771
|
+
(U == null ? void 0 : U.comp) === "Form" && ((oA = U == null ? void 0 : U.compData) == null || oA.forEach((y) => {
|
|
772
772
|
var uA;
|
|
773
|
-
(
|
|
773
|
+
(y == null ? void 0 : y.key) === "formContent" && ((uA = y == null ? void 0 : y.contents) == null || uA.forEach((yA) => {
|
|
774
774
|
iA.includes(yA == null ? void 0 : yA.key) && (cA[yA.key] = yA.value);
|
|
775
775
|
}));
|
|
776
776
|
}));
|
|
777
|
-
}), Q == null || Q.forEach((
|
|
778
|
-
var oA,
|
|
779
|
-
if ((
|
|
780
|
-
let E = [],
|
|
781
|
-
vA == null || vA.forEach((
|
|
777
|
+
}), Q == null || Q.forEach((U) => {
|
|
778
|
+
var oA, y, uA, yA, tA, OA;
|
|
779
|
+
if ((U == null ? void 0 : U.comp) === "Table") {
|
|
780
|
+
let E = [], w = (uA = (y = (oA = U == null ? void 0 : U.compData) == null ? void 0 : oA.find((S) => (S == null ? void 0 : S.key) === "header")) == null ? void 0 : y.contents) == null ? void 0 : uA.map((S) => S == null ? void 0 : S.label), vA = (OA = (tA = (yA = U == null ? void 0 : U.compData) == null ? void 0 : yA.find((S) => (S == null ? void 0 : S.key) === "tableContents")) == null ? void 0 : tA.contents) == null ? void 0 : OA.map((S) => (S = S == null ? void 0 : S.filter((BA) => !(BA != null && BA.id)), S));
|
|
781
|
+
vA == null || vA.forEach((S) => {
|
|
782
782
|
E.push(
|
|
783
783
|
yt(
|
|
784
|
-
|
|
785
|
-
|
|
784
|
+
S,
|
|
785
|
+
w == null ? void 0 : w.filter((BA) => BA !== "操作")
|
|
786
786
|
)
|
|
787
787
|
);
|
|
788
|
-
}), K[
|
|
788
|
+
}), K[U.name] = E, K[U.name + "Content"] = U;
|
|
789
789
|
}
|
|
790
790
|
}), K.extra = cA, JA.value = K;
|
|
791
791
|
}, QA = async () => {
|
|
792
|
-
var K, Q, nA, iA, cA,
|
|
792
|
+
var K, Q, nA, iA, cA, U, oA;
|
|
793
793
|
if ((v == null ? void 0 : v.platform) !== "browser") {
|
|
794
794
|
if (wA.value = !0, DA.value = (K = v == null ? void 0 : v.taskContent) == null ? void 0 : K.sceneType, PA.value = [{
|
|
795
795
|
url: (Q = v == null ? void 0 : v.taskContent) == null ? void 0 : Q.url,
|
|
796
796
|
extension: dn((nA = v == null ? void 0 : v.taskContent) == null ? void 0 : nA.url)
|
|
797
797
|
}], V.value) {
|
|
798
|
-
const
|
|
798
|
+
const y = V.value;
|
|
799
799
|
let uA = [];
|
|
800
|
-
if (typeof (
|
|
801
|
-
if ((iA =
|
|
802
|
-
const tA = ((cA =
|
|
800
|
+
if (typeof (y == null ? void 0 : y.url) == "string")
|
|
801
|
+
if ((iA = y == null ? void 0 : y.url) != null && iA.includes(",")) {
|
|
802
|
+
const tA = ((cA = y == null ? void 0 : y.url) == null ? void 0 : cA.split(",")).map((OA) => ({
|
|
803
803
|
url: OA,
|
|
804
804
|
extension: dn(OA)
|
|
805
805
|
}));
|
|
806
806
|
PA.value = tA;
|
|
807
807
|
} else
|
|
808
808
|
PA.value = [{
|
|
809
|
-
url:
|
|
810
|
-
extension: dn(
|
|
809
|
+
url: y == null ? void 0 : y.url,
|
|
810
|
+
extension: dn(y == null ? void 0 : y.url)
|
|
811
811
|
}];
|
|
812
|
-
(
|
|
812
|
+
(U = gA.value) == null || U.loadModelByDefaultPath(uA);
|
|
813
813
|
}
|
|
814
|
-
dA.value = (oA = PA.value) == null ? void 0 : oA.every((
|
|
814
|
+
dA.value = (oA = PA.value) == null ? void 0 : oA.every((y) => y.url.toUpperCase().includes(".URDF"));
|
|
815
815
|
}
|
|
816
816
|
}, WA = () => {
|
|
817
817
|
m.value = !1, gA.value = null;
|
|
@@ -829,16 +829,16 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
829
829
|
() => [zA == null ? void 0 : zA.value],
|
|
830
830
|
async () => {
|
|
831
831
|
var K, Q, nA, iA, cA;
|
|
832
|
-
if (zA != null && zA.value && ((K = zA == null ? void 0 : zA.value) == null ? void 0 : K.length) > 0 && !mA.value && !((Q = He.value) != null && Q.find((
|
|
832
|
+
if (zA != null && zA.value && ((K = zA == null ? void 0 : zA.value) == null ? void 0 : K.length) > 0 && !mA.value && !((Q = He.value) != null && Q.find((U) => (U == null ? void 0 : U.name) === "输入") && ((nA = He.value) != null && nA.find((U) => (U == null ? void 0 : U.name) === "输出")))) {
|
|
833
833
|
m.value = !0;
|
|
834
|
-
let
|
|
835
|
-
const oA = await ((iA = GA(zA == null ? void 0 : zA.value)) == null ? void 0 : iA.map(async (
|
|
836
|
-
var E,
|
|
834
|
+
let U = [];
|
|
835
|
+
const oA = await ((iA = GA(zA == null ? void 0 : zA.value)) == null ? void 0 : iA.map(async (y) => {
|
|
836
|
+
var E, w, vA, S, BA, W, aA, h, IA, lA;
|
|
837
837
|
let uA, yA, tA;
|
|
838
|
-
|
|
838
|
+
y != null && y.blob.includes("undefined") ? tA = (w = (E = y == null ? void 0 : y.blob) == null ? void 0 : E.split("undefined,")) == null ? void 0 : w[1] : tA = y == null ? void 0 : y.blob;
|
|
839
839
|
let OA = tA == null ? void 0 : tA.split(",");
|
|
840
840
|
if ((OA == null ? void 0 : OA.length) > 1) {
|
|
841
|
-
let
|
|
841
|
+
let T = await (OA == null ? void 0 : OA.map(async (G) => {
|
|
842
842
|
var XA, ZA, F, ae, se, Ce;
|
|
843
843
|
uA = await Je.get(G, {
|
|
844
844
|
responseType: "blob",
|
|
@@ -847,8 +847,8 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
847
847
|
}
|
|
848
848
|
});
|
|
849
849
|
let rA = [];
|
|
850
|
-
if (((XA =
|
|
851
|
-
let Ie = await ((ZA =
|
|
850
|
+
if (((XA = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : XA.length) > 0) {
|
|
851
|
+
let Ie = await ((ZA = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : ZA.map(async (we) => {
|
|
852
852
|
let Xe = await Je.get(we, {
|
|
853
853
|
responseType: "blob",
|
|
854
854
|
headers: {
|
|
@@ -863,7 +863,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
863
863
|
}));
|
|
864
864
|
await Promise.all(Ie);
|
|
865
865
|
}
|
|
866
|
-
return ((ae = G == null ? void 0 : G.split(".")) == null ? void 0 : ae[((F = G == null ? void 0 : G.split(".")) == null ? void 0 : F.length) - 1]) !== "undefined" &&
|
|
866
|
+
return ((ae = G == null ? void 0 : G.split(".")) == null ? void 0 : ae[((F = G == null ? void 0 : G.split(".")) == null ? void 0 : F.length) - 1]) !== "undefined" && U.push({
|
|
867
867
|
suffix: "." + ((Ce = G == null ? void 0 : G.split(".")) == null ? void 0 : Ce[((se = G == null ? void 0 : G.split(".")) == null ? void 0 : se.length) - 1]),
|
|
868
868
|
blob: new Blob([uA.data], {
|
|
869
869
|
type: "application/octet-stream;charset=UTF-8"
|
|
@@ -871,18 +871,18 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
871
871
|
mtlBlobs: rA
|
|
872
872
|
}), uA;
|
|
873
873
|
}));
|
|
874
|
-
await Promise.all(
|
|
874
|
+
await Promise.all(T);
|
|
875
875
|
} else if (!(tA != null && tA.includes("https://")) && !(tA != null && tA.includes("http://"))) {
|
|
876
876
|
uA = await gn({
|
|
877
877
|
url: tA
|
|
878
878
|
});
|
|
879
|
-
let
|
|
880
|
-
if (((vA =
|
|
881
|
-
let G = await ((
|
|
879
|
+
let T = [];
|
|
880
|
+
if (((vA = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : vA.length) > 0) {
|
|
881
|
+
let G = await ((S = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : S.map(async (rA) => {
|
|
882
882
|
let XA = await gn({
|
|
883
883
|
url: rA
|
|
884
884
|
});
|
|
885
|
-
return
|
|
885
|
+
return T.push(
|
|
886
886
|
new Blob([XA.data], {
|
|
887
887
|
type: "application/octet-stream;charset=UTF-8"
|
|
888
888
|
})
|
|
@@ -891,11 +891,11 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
891
891
|
await Promise.all(G);
|
|
892
892
|
}
|
|
893
893
|
yA = {
|
|
894
|
-
suffix: "." + ((
|
|
894
|
+
suffix: "." + ((W = tA == null ? void 0 : tA.split(".")) == null ? void 0 : W[((BA = tA == null ? void 0 : tA.split(".")) == null ? void 0 : BA.length) - 1]),
|
|
895
895
|
blob: new Blob([uA.data], {
|
|
896
896
|
type: "application/octet-stream;charset=UTF-8"
|
|
897
897
|
}),
|
|
898
|
-
mtlBlobs:
|
|
898
|
+
mtlBlobs: T
|
|
899
899
|
};
|
|
900
900
|
} else {
|
|
901
901
|
uA = await Je.get(tA, {
|
|
@@ -904,16 +904,16 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
904
904
|
"Content-Type": "application/json"
|
|
905
905
|
}
|
|
906
906
|
});
|
|
907
|
-
let
|
|
908
|
-
if (((aA =
|
|
909
|
-
let G = await ((
|
|
907
|
+
let T = [];
|
|
908
|
+
if (((aA = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : aA.length) > 0) {
|
|
909
|
+
let G = await ((h = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : h.map(async (rA) => {
|
|
910
910
|
let XA = await Je.get(rA, {
|
|
911
911
|
responseType: "blob",
|
|
912
912
|
headers: {
|
|
913
913
|
"Content-Type": "application/json"
|
|
914
914
|
}
|
|
915
915
|
});
|
|
916
|
-
return
|
|
916
|
+
return T.push(
|
|
917
917
|
new Blob([XA.data], {
|
|
918
918
|
type: "application/octet-stream;charset=UTF-8"
|
|
919
919
|
})
|
|
@@ -922,16 +922,16 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
922
922
|
await Promise.all(G);
|
|
923
923
|
}
|
|
924
924
|
yA = {
|
|
925
|
-
suffix:
|
|
925
|
+
suffix: y != null && y.suffix ? y == null ? void 0 : y.suffix : "." + ((lA = tA == null ? void 0 : tA.split(".")) == null ? void 0 : lA[((IA = tA == null ? void 0 : tA.split(".")) == null ? void 0 : IA.length) - 1]),
|
|
926
926
|
blob: new Blob([uA.data], {
|
|
927
927
|
type: "application/octet-stream;charset=UTF-8"
|
|
928
928
|
}),
|
|
929
|
-
mtlBlobs:
|
|
929
|
+
mtlBlobs: T
|
|
930
930
|
};
|
|
931
931
|
}
|
|
932
|
-
yA &&
|
|
932
|
+
yA && U.push(yA);
|
|
933
933
|
}));
|
|
934
|
-
await Promise.all(oA), (
|
|
934
|
+
await Promise.all(oA), (U == null ? void 0 : U.length) !== 0 && ((cA = gA.value) == null || cA.loadModelByDefaultPath(U));
|
|
935
935
|
}
|
|
936
936
|
},
|
|
937
937
|
{ immediate: !0, deep: !0 }
|
|
@@ -940,15 +940,15 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
940
940
|
Y.value = !0, k.value = Q, (Q == null ? void 0 : Q.isEdit) === !0 ? VA.value = K : VA.value = K == null ? void 0 : K.map((nA) => {
|
|
941
941
|
var iA;
|
|
942
942
|
return nA.compData = (iA = nA.compData) == null ? void 0 : iA.map((cA) => {
|
|
943
|
-
var
|
|
944
|
-
return (cA == null ? void 0 : cA.key) === "formContent" && (cA.contents = (
|
|
943
|
+
var U;
|
|
944
|
+
return (cA == null ? void 0 : cA.key) === "formContent" && (cA.contents = (U = cA.contents) == null ? void 0 : U.map((oA) => (oA.disabled = !0, oA))), cA;
|
|
945
945
|
}), nA;
|
|
946
946
|
});
|
|
947
947
|
}, RA = async () => {
|
|
948
948
|
await Xt();
|
|
949
949
|
};
|
|
950
950
|
on(async () => {
|
|
951
|
-
var iA, cA,
|
|
951
|
+
var iA, cA, U, oA;
|
|
952
952
|
de("setLoginInfo", o.value), await fA();
|
|
953
953
|
let K = await Be({
|
|
954
954
|
key: {
|
|
@@ -963,10 +963,10 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
963
963
|
}
|
|
964
964
|
});
|
|
965
965
|
K = [...(iA = K == null ? void 0 : K.data) == null ? void 0 : iA.result, ...(cA = Q == null ? void 0 : Q.data) == null ? void 0 : cA.result];
|
|
966
|
-
let nA = (oA = (
|
|
967
|
-
var uA, yA, tA, OA, E,
|
|
968
|
-
return ((yA = (uA =
|
|
969
|
-
})) == null ? void 0 :
|
|
966
|
+
let nA = (oA = (U = K == null ? void 0 : K.find((y) => {
|
|
967
|
+
var uA, yA, tA, OA, E, w, vA, S;
|
|
968
|
+
return ((yA = (uA = y == null ? void 0 : y.value) == null ? void 0 : uA.tableData) == null ? void 0 : yA.account) === (((tA = o.value) == null ? void 0 : tA.account) ?? ((OA = o.value) == null ? void 0 : OA.账号)) || ((w = (E = y == null ? void 0 : y.value) == null ? void 0 : E.tableData) == null ? void 0 : w.账号) === (((vA = o.value) == null ? void 0 : vA.account) ?? ((S = o.value) == null ? void 0 : S.账号));
|
|
969
|
+
})) == null ? void 0 : U.value) == null ? void 0 : oA.tableData;
|
|
970
970
|
I.value = Qe.value + "/" + (nA == null ? void 0 : nA.authorityPhoto), c.value = "first";
|
|
971
971
|
});
|
|
972
972
|
const fe = () => {
|
|
@@ -974,11 +974,11 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
974
974
|
if (ce.value === "" || ((iA = i.value) == null ? void 0 : iA[((nA = i.value) == null ? void 0 : nA.length) - 1]) === $) return !1;
|
|
975
975
|
const K = sessionStorage.getItem("authority"), Q = JSON.parse(K || "");
|
|
976
976
|
if (Array.isArray(Q)) {
|
|
977
|
-
const cA = Array.isArray(Q) && (Q == null ? void 0 : Q.filter((oA) => oA == null ? void 0 : oA.includes(ce.value))),
|
|
978
|
-
var
|
|
979
|
-
return ((
|
|
977
|
+
const cA = Array.isArray(Q) && (Q == null ? void 0 : Q.filter((oA) => oA == null ? void 0 : oA.includes(ce.value))), U = cA == null ? void 0 : cA.map((oA) => {
|
|
978
|
+
var y;
|
|
979
|
+
return ((y = oA == null ? void 0 : oA.split("/")) == null ? void 0 : y.pop()) || "";
|
|
980
980
|
});
|
|
981
|
-
return !!(
|
|
981
|
+
return !!(U != null && U.includes("新增") || U != null && U.includes("新建"));
|
|
982
982
|
} else return typeof Q == "string" && (Q == null ? void 0 : Q.toUpperCase()) === "SUPERADMIN";
|
|
983
983
|
}, Ue = async () => {
|
|
984
984
|
}, he = async () => {
|
|
@@ -989,14 +989,14 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
989
989
|
url: K
|
|
990
990
|
// url: props.avatarUrl
|
|
991
991
|
});
|
|
992
|
-
l.value = Q == null ? void 0 : Q.data, (cA =
|
|
992
|
+
l.value = Q == null ? void 0 : Q.data, (cA = N.value) == null || cA.openDialog(l.value);
|
|
993
993
|
}, Qe = ee(() => "http://222.92.178.198:62001"), NA = async (K) => {
|
|
994
|
-
var Q, nA, iA, cA,
|
|
994
|
+
var Q, nA, iA, cA, U, oA, y, uA, yA, tA;
|
|
995
995
|
try {
|
|
996
996
|
const OA = await tl(K);
|
|
997
997
|
if (((Q = OA == null ? void 0 : OA.data) == null ? void 0 : Q.code) === 200) {
|
|
998
998
|
I.value = Qe.value + "/" + ((iA = (nA = OA.data) == null ? void 0 : nA.result) == null ? void 0 : iA.url);
|
|
999
|
-
let E = (
|
|
999
|
+
let E = (U = (cA = OA.data) == null ? void 0 : cA.result) == null ? void 0 : U.url, w = await Be({
|
|
1000
1000
|
key: {
|
|
1001
1001
|
layer: "superAdmin",
|
|
1002
1002
|
systemKey: sessionStorage.getItem("systemKey")
|
|
@@ -1008,18 +1008,18 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1008
1008
|
type: "data"
|
|
1009
1009
|
}
|
|
1010
1010
|
});
|
|
1011
|
-
|
|
1012
|
-
let
|
|
1013
|
-
var
|
|
1014
|
-
return ((IA = (
|
|
1015
|
-
})) == null ? void 0 : uA.id,
|
|
1016
|
-
var
|
|
1017
|
-
return ((IA = (
|
|
1011
|
+
w = [...(oA = w == null ? void 0 : w.data) == null ? void 0 : oA.result, ...(y = vA == null ? void 0 : vA.data) == null ? void 0 : y.result];
|
|
1012
|
+
let S = (uA = w == null ? void 0 : w.find((aA) => {
|
|
1013
|
+
var h, IA, lA, T, G, rA, XA, ZA;
|
|
1014
|
+
return ((IA = (h = aA == null ? void 0 : aA.value) == null ? void 0 : h.tableData) == null ? void 0 : IA.account) === (((lA = o.value) == null ? void 0 : lA.account) ?? ((T = o.value) == null ? void 0 : T.账号)) || ((rA = (G = aA == null ? void 0 : aA.value) == null ? void 0 : G.tableData) == null ? void 0 : rA.账号) === (((XA = o.value) == null ? void 0 : XA.account) ?? ((ZA = o.value) == null ? void 0 : ZA.账号));
|
|
1015
|
+
})) == null ? void 0 : uA.id, W = (tA = (yA = w == null ? void 0 : w.find((aA) => {
|
|
1016
|
+
var h, IA, lA, T, G, rA, XA, ZA;
|
|
1017
|
+
return ((IA = (h = aA == null ? void 0 : aA.value) == null ? void 0 : h.tableData) == null ? void 0 : IA.account) === (((lA = o.value) == null ? void 0 : lA.account) ?? ((T = o.value) == null ? void 0 : T.账号)) || ((rA = (G = aA == null ? void 0 : aA.value) == null ? void 0 : G.tableData) == null ? void 0 : rA.账号) === (((XA = o.value) == null ? void 0 : XA.account) ?? ((ZA = o.value) == null ? void 0 : ZA.账号));
|
|
1018
1018
|
})) == null ? void 0 : yA.value) == null ? void 0 : tA.tableData;
|
|
1019
|
-
|
|
1020
|
-
id:
|
|
1019
|
+
W.authorityPhoto = E, await mn({
|
|
1020
|
+
id: S,
|
|
1021
1021
|
value: {
|
|
1022
|
-
tableData:
|
|
1022
|
+
tableData: W
|
|
1023
1023
|
}
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
@@ -1034,24 +1034,24 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1034
1034
|
return ((K = te.value) == null ? void 0 : K.length) > 0 && (ye == null ? void 0 : ye.value) === "horizontal" ? (nA = (Q = te.value) == null ? void 0 : Q[0]) == null ? void 0 : nA.name : "";
|
|
1035
1035
|
});
|
|
1036
1036
|
return (K, Q) => {
|
|
1037
|
-
const nA = TA("el-dialog"), iA = TA("el-button"), cA = TA("el-header"),
|
|
1037
|
+
const nA = TA("el-dialog"), iA = TA("el-button"), cA = TA("el-header"), U = TA("el-splitter-panel"), oA = TA("el-splitter"), y = TA("el-container"), uA = TA("el-tab-pane"), yA = TA("el-tabs"), tA = TA("el-aside"), OA = TA("el-image"), E = TA("router-view"), w = TA("el-step"), vA = TA("el-steps"), S = TA("el-main"), BA = ct("loading");
|
|
1038
1038
|
return z(), q(ue, null, [
|
|
1039
|
-
je(
|
|
1039
|
+
je(X(sl, {
|
|
1040
1040
|
ref_key: "cropperDialogRef",
|
|
1041
|
-
ref:
|
|
1041
|
+
ref: N,
|
|
1042
1042
|
title: "更改头像",
|
|
1043
1043
|
avatarUrl: I.value,
|
|
1044
1044
|
onSubmitImage: NA
|
|
1045
1045
|
}, null, 8, ["avatarUrl"]), [
|
|
1046
1046
|
[Re, r.value]
|
|
1047
1047
|
]),
|
|
1048
|
-
|
|
1048
|
+
X(zn, {
|
|
1049
1049
|
visible: Y.value,
|
|
1050
|
-
onBeforeDestroy: Q[0] || (Q[0] = (
|
|
1050
|
+
onBeforeDestroy: Q[0] || (Q[0] = (W) => Y.value = !1),
|
|
1051
1051
|
fullScreen: !0
|
|
1052
1052
|
}, {
|
|
1053
1053
|
default: M(() => [
|
|
1054
|
-
|
|
1054
|
+
X(bt, {
|
|
1055
1055
|
dialogItem: VA.value,
|
|
1056
1056
|
componentParam: k.value,
|
|
1057
1057
|
onChange: a(Ze),
|
|
@@ -1060,14 +1060,14 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1060
1060
|
]),
|
|
1061
1061
|
_: 1
|
|
1062
1062
|
}, 8, ["visible"]),
|
|
1063
|
-
|
|
1063
|
+
X(nA, {
|
|
1064
1064
|
"append-to-body": "",
|
|
1065
1065
|
modelValue: wA.value,
|
|
1066
|
-
"onUpdate:modelValue": Q[1] || (Q[1] = (
|
|
1066
|
+
"onUpdate:modelValue": Q[1] || (Q[1] = (W) => wA.value = W),
|
|
1067
1067
|
style: { height: "700px", width: "1800px" }
|
|
1068
1068
|
}, {
|
|
1069
1069
|
default: M(() => [
|
|
1070
|
-
|
|
1070
|
+
X(kn, {
|
|
1071
1071
|
files: PA.value,
|
|
1072
1072
|
componentType: DA.value,
|
|
1073
1073
|
onGetAnimationData: HA
|
|
@@ -1075,17 +1075,17 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1075
1075
|
]),
|
|
1076
1076
|
_: 1
|
|
1077
1077
|
}, 8, ["modelValue"]),
|
|
1078
|
-
je(
|
|
1078
|
+
je(X(y, { class: "client-container" }, {
|
|
1079
1079
|
default: M(() => [
|
|
1080
|
-
|
|
1080
|
+
X(cA, { class: "client-structure-header" }, {
|
|
1081
1081
|
default: M(() => [
|
|
1082
1082
|
H("div", Ll, [
|
|
1083
|
-
|
|
1083
|
+
X(iA, {
|
|
1084
1084
|
id: "transparentBgButton",
|
|
1085
1085
|
onClick: a(ut)
|
|
1086
1086
|
}, {
|
|
1087
1087
|
icon: M(() => [
|
|
1088
|
-
|
|
1088
|
+
X(le, { name: "Back" })
|
|
1089
1089
|
]),
|
|
1090
1090
|
default: M(() => [
|
|
1091
1091
|
Q[7] || (Q[7] = pe(" 返回页面 "))
|
|
@@ -1095,21 +1095,21 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1095
1095
|
}, 8, ["onClick"])
|
|
1096
1096
|
]),
|
|
1097
1097
|
H("div", ml, [
|
|
1098
|
-
|
|
1098
|
+
X(hn, {
|
|
1099
1099
|
breadArray: a(bA),
|
|
1100
1100
|
onClick: a(Hn)
|
|
1101
1101
|
}, null, 8, ["breadArray", "onClick"])
|
|
1102
1102
|
]),
|
|
1103
1103
|
H("div", Rl, [
|
|
1104
|
-
|
|
1104
|
+
X(iA, {
|
|
1105
1105
|
id: "themeButton",
|
|
1106
|
-
onClick: Q[2] || (Q[2] = (
|
|
1107
|
-
var aA,
|
|
1108
|
-
return a(gt)((
|
|
1106
|
+
onClick: Q[2] || (Q[2] = (W) => {
|
|
1107
|
+
var aA, h;
|
|
1108
|
+
return a(gt)((h = (aA = a(bA)) == null ? void 0 : aA.map((IA) => IA.value)) == null ? void 0 : h.join("/"));
|
|
1109
1109
|
})
|
|
1110
1110
|
}, {
|
|
1111
1111
|
icon: M(() => [
|
|
1112
|
-
|
|
1112
|
+
X(le, { name: "Store" })
|
|
1113
1113
|
]),
|
|
1114
1114
|
default: M(() => [
|
|
1115
1115
|
Q[8] || (Q[8] = pe(" 保存页面 "))
|
|
@@ -1121,69 +1121,69 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1121
1121
|
]),
|
|
1122
1122
|
_: 1
|
|
1123
1123
|
}),
|
|
1124
|
-
a(ne) === "edit" ? (z(), xA(
|
|
1124
|
+
a(ne) === "edit" ? (z(), xA(y, {
|
|
1125
1125
|
key: 0,
|
|
1126
1126
|
class: "model-operate"
|
|
1127
1127
|
}, {
|
|
1128
1128
|
default: M(() => [
|
|
1129
|
-
|
|
1129
|
+
X(oA, null, {
|
|
1130
1130
|
default: M(() => [
|
|
1131
|
-
|
|
1131
|
+
X(U, {
|
|
1132
1132
|
size: 240,
|
|
1133
1133
|
min: 240,
|
|
1134
1134
|
resizable: !1,
|
|
1135
1135
|
collapsible: !0
|
|
1136
1136
|
}, {
|
|
1137
1137
|
"start-collapsible": M(() => [
|
|
1138
|
-
|
|
1138
|
+
X(le, {
|
|
1139
1139
|
name: "Left",
|
|
1140
1140
|
style: { width: "15px", height: "15px" }
|
|
1141
1141
|
})
|
|
1142
1142
|
]),
|
|
1143
1143
|
"end-collapsible": M(() => [
|
|
1144
|
-
|
|
1144
|
+
X(le, {
|
|
1145
1145
|
name: "Right",
|
|
1146
1146
|
style: { width: "15px", height: "15px" }
|
|
1147
1147
|
})
|
|
1148
1148
|
]),
|
|
1149
1149
|
default: M(() => [
|
|
1150
1150
|
H("div", Kl, [
|
|
1151
|
-
|
|
1151
|
+
X(Sn)
|
|
1152
1152
|
])
|
|
1153
1153
|
]),
|
|
1154
1154
|
_: 1
|
|
1155
1155
|
}),
|
|
1156
|
-
|
|
1156
|
+
X(U, {
|
|
1157
1157
|
min: 200,
|
|
1158
1158
|
collapsible: !0
|
|
1159
1159
|
}, {
|
|
1160
1160
|
"start-collapsible": M(() => [
|
|
1161
|
-
|
|
1161
|
+
X(le, {
|
|
1162
1162
|
name: "Left",
|
|
1163
1163
|
style: { width: "15px", height: "15px" }
|
|
1164
1164
|
})
|
|
1165
1165
|
]),
|
|
1166
1166
|
"end-collapsible": M(() => [
|
|
1167
|
-
|
|
1167
|
+
X(le, {
|
|
1168
1168
|
name: "Right",
|
|
1169
1169
|
style: { width: "15px", height: "15px" }
|
|
1170
1170
|
})
|
|
1171
1171
|
]),
|
|
1172
1172
|
default: M(() => [
|
|
1173
1173
|
H("div", Ml, [
|
|
1174
|
-
|
|
1174
|
+
X(Jn)
|
|
1175
1175
|
])
|
|
1176
1176
|
]),
|
|
1177
1177
|
_: 1
|
|
1178
1178
|
}),
|
|
1179
|
-
|
|
1179
|
+
X(U, {
|
|
1180
1180
|
size: 350,
|
|
1181
1181
|
min: 350,
|
|
1182
1182
|
collapsible: !0
|
|
1183
1183
|
}, {
|
|
1184
1184
|
default: M(() => [
|
|
1185
1185
|
H("div", Dl, [
|
|
1186
|
-
|
|
1186
|
+
X(Ln)
|
|
1187
1187
|
])
|
|
1188
1188
|
]),
|
|
1189
1189
|
_: 1
|
|
@@ -1199,19 +1199,19 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1199
1199
|
}, 512), [
|
|
1200
1200
|
[Re, a(ne) === "edit"]
|
|
1201
1201
|
]),
|
|
1202
|
-
je((z(), xA(
|
|
1202
|
+
je((z(), xA(y, {
|
|
1203
1203
|
class: "client-container",
|
|
1204
1204
|
"element-loading-text": "正在加载页面数据..."
|
|
1205
1205
|
}, {
|
|
1206
1206
|
default: M(() => [
|
|
1207
|
-
|
|
1207
|
+
X(cA, { class: "client-header" }, {
|
|
1208
1208
|
default: M(() => [
|
|
1209
1209
|
H("div", {
|
|
1210
1210
|
class: "client-header-logo",
|
|
1211
1211
|
onClick: QA
|
|
1212
1212
|
}, UA(a(u) === "" ? "ISIP" : a(u)), 1),
|
|
1213
1213
|
H("div", Wl, [
|
|
1214
|
-
|
|
1214
|
+
X(yl, { mode: "horizontal" })
|
|
1215
1215
|
]),
|
|
1216
1216
|
H("div", Nl, [
|
|
1217
1217
|
v != null && v.showButton && a(ne) === "view" ? (z(), xA(iA, {
|
|
@@ -1220,7 +1220,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1220
1220
|
onClick: a(pn)
|
|
1221
1221
|
}, {
|
|
1222
1222
|
icon: M(() => [
|
|
1223
|
-
|
|
1223
|
+
X(le, { name: "write" })
|
|
1224
1224
|
]),
|
|
1225
1225
|
default: M(() => [
|
|
1226
1226
|
Q[9] || (Q[9] = pe(" 界面修改 "))
|
|
@@ -1229,57 +1229,57 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1229
1229
|
__: [9]
|
|
1230
1230
|
}, 8, ["onClick"])) : CA("", !0),
|
|
1231
1231
|
We(K.$slots, "default", {}, void 0, !0),
|
|
1232
|
-
|
|
1232
|
+
X(wn, null, {
|
|
1233
1233
|
dropTitle: M(() => [
|
|
1234
1234
|
H("div", {
|
|
1235
1235
|
class: "icon-wrapper",
|
|
1236
1236
|
onMouseenter: jA
|
|
1237
1237
|
}, [
|
|
1238
|
-
|
|
1239
|
-
|
|
1238
|
+
X(le, { name: "系统消息" }),
|
|
1239
|
+
t.value > 0 ? (z(), q("span", Ul)) : CA("", !0)
|
|
1240
1240
|
], 32)
|
|
1241
1241
|
]),
|
|
1242
1242
|
dropMenu: M(() => [
|
|
1243
|
-
|
|
1243
|
+
X(yA, {
|
|
1244
1244
|
modelValue: c.value,
|
|
1245
|
-
"onUpdate:modelValue": Q[3] || (Q[3] = (
|
|
1245
|
+
"onUpdate:modelValue": Q[3] || (Q[3] = (W) => c.value = W),
|
|
1246
1246
|
class: "drop-menu1 message-dropdown",
|
|
1247
1247
|
onTabClick: s
|
|
1248
1248
|
}, {
|
|
1249
1249
|
default: M(() => [
|
|
1250
|
-
|
|
1250
|
+
X(uA, {
|
|
1251
1251
|
label: "我的消息",
|
|
1252
1252
|
name: "first"
|
|
1253
1253
|
}, {
|
|
1254
1254
|
label: M(() => [
|
|
1255
1255
|
H("div", Tl, [
|
|
1256
1256
|
Q[10] || (Q[10] = H("span", null, "我的消息", -1)),
|
|
1257
|
-
|
|
1257
|
+
t.value > 0 ? (z(), q("span", Zl, UA(Z.value), 1)) : CA("", !0)
|
|
1258
1258
|
])
|
|
1259
1259
|
]),
|
|
1260
1260
|
default: M(() => [
|
|
1261
1261
|
H("div", Yl, [
|
|
1262
|
-
(z(!0), q(ue, null, Ee(
|
|
1263
|
-
var
|
|
1262
|
+
(z(!0), q(ue, null, Ee(O.value, (W, aA) => {
|
|
1263
|
+
var h, IA, lA, T;
|
|
1264
1264
|
return z(), q("div", {
|
|
1265
1265
|
class: "message-item",
|
|
1266
1266
|
key: aA,
|
|
1267
|
-
onClick: (G) => pA(
|
|
1267
|
+
onClick: (G) => pA(W)
|
|
1268
1268
|
}, [
|
|
1269
1269
|
H("div", Fl, [
|
|
1270
|
-
((
|
|
1271
|
-
H("div", _l, UA((IA =
|
|
1272
|
-
H("div", $l, UA((lA =
|
|
1270
|
+
((h = W.find((G) => G.prop === "状态")) == null ? void 0 : h.value) === "未读" ? (z(), q("span", Vl, "[未读]")) : (z(), q("span", ql, "[已读]")),
|
|
1271
|
+
H("div", _l, UA((IA = W.find((G) => G.prop === "消息类别")) == null ? void 0 : IA.value), 1),
|
|
1272
|
+
H("div", $l, UA((lA = W.find((G) => G.prop === "发送时间")) == null ? void 0 : lA.value), 1)
|
|
1273
1273
|
]),
|
|
1274
|
-
H("div", Af, UA((
|
|
1274
|
+
H("div", Af, UA((T = W.find((G) => G.prop === "内容")) == null ? void 0 : T.value), 1)
|
|
1275
1275
|
], 8, Gl);
|
|
1276
1276
|
}), 128)),
|
|
1277
|
-
|
|
1277
|
+
O.value.length === 0 ? (z(), q("div", ef, "暂无消息")) : CA("", !0)
|
|
1278
1278
|
])
|
|
1279
1279
|
]),
|
|
1280
1280
|
_: 1
|
|
1281
1281
|
}),
|
|
1282
|
-
|
|
1282
|
+
X(uA, {
|
|
1283
1283
|
label: "未读消息",
|
|
1284
1284
|
name: "second"
|
|
1285
1285
|
}, {
|
|
@@ -1290,22 +1290,22 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1290
1290
|
])),
|
|
1291
1291
|
default: M(() => [
|
|
1292
1292
|
H("div", nf, [
|
|
1293
|
-
(z(!0), q(ue, null, Ee(
|
|
1294
|
-
var
|
|
1293
|
+
(z(!0), q(ue, null, Ee(L.value, (W, aA) => {
|
|
1294
|
+
var h, IA, lA, T;
|
|
1295
1295
|
return z(), q("div", {
|
|
1296
1296
|
class: "message-item",
|
|
1297
1297
|
key: aA,
|
|
1298
|
-
onClick: (G) => pA(
|
|
1298
|
+
onClick: (G) => pA(W)
|
|
1299
1299
|
}, [
|
|
1300
1300
|
H("div", lf, [
|
|
1301
|
-
((
|
|
1302
|
-
H("div", sf, UA((IA =
|
|
1303
|
-
H("div", cf, UA((lA =
|
|
1301
|
+
((h = W.find((G) => G.prop === "状态")) == null ? void 0 : h.value) === "未读" ? (z(), q("span", ff, "[未读]")) : (z(), q("span", af, "[已读]")),
|
|
1302
|
+
H("div", sf, UA((IA = W.find((G) => G.prop === "消息类别")) == null ? void 0 : IA.value), 1),
|
|
1303
|
+
H("div", cf, UA((lA = W.find((G) => G.prop === "发送时间")) == null ? void 0 : lA.value), 1)
|
|
1304
1304
|
]),
|
|
1305
|
-
H("div", vf, UA((
|
|
1305
|
+
H("div", vf, UA((T = W.find((G) => G.prop === "内容")) == null ? void 0 : T.value), 1)
|
|
1306
1306
|
], 8, tf);
|
|
1307
1307
|
}), 128)),
|
|
1308
|
-
|
|
1308
|
+
L.value.length === 0 ? (z(), q("div", rf, "暂无消息")) : CA("", !0)
|
|
1309
1309
|
])
|
|
1310
1310
|
]),
|
|
1311
1311
|
_: 1
|
|
@@ -1316,9 +1316,9 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1316
1316
|
]),
|
|
1317
1317
|
_: 1
|
|
1318
1318
|
}),
|
|
1319
|
-
|
|
1319
|
+
X(wn, null, {
|
|
1320
1320
|
dropTitle: M(() => [
|
|
1321
|
-
|
|
1321
|
+
X(xn, {
|
|
1322
1322
|
size: 35,
|
|
1323
1323
|
disabled: !0,
|
|
1324
1324
|
userInfo: a(o),
|
|
@@ -1326,40 +1326,40 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1326
1326
|
}, null, 8, ["userInfo"])
|
|
1327
1327
|
]),
|
|
1328
1328
|
dropMenu: M(() => {
|
|
1329
|
-
var
|
|
1329
|
+
var W, aA, h, IA, lA, T;
|
|
1330
1330
|
return [
|
|
1331
1331
|
H("div", uf, [
|
|
1332
1332
|
H("div", gf, [
|
|
1333
|
-
|
|
1333
|
+
X(xn, {
|
|
1334
1334
|
size: 35,
|
|
1335
1335
|
disabled: !0,
|
|
1336
1336
|
userInfo: a(o)
|
|
1337
1337
|
}, null, 8, ["userInfo"]),
|
|
1338
1338
|
H("div", df, [
|
|
1339
1339
|
H("div", null, [
|
|
1340
|
-
H("span", null, UA(((
|
|
1341
|
-
H("span", null, UA(((IA = (
|
|
1340
|
+
H("span", null, UA(((W = a(o)) == null ? void 0 : W.account) || ((aA = a(o)) == null ? void 0 : aA.账号) || "未知"), 1),
|
|
1341
|
+
H("span", null, UA(((IA = (h = a(o)) == null ? void 0 : h.layer) == null ? void 0 : IA.toUpperCase()) === "SUPERADMIN" ? "超级管理员" : ((lA = a(o)) == null ? void 0 : lA.角色名称) ?? "未知"), 1)
|
|
1342
1342
|
]),
|
|
1343
|
-
H("div", null, UA(((
|
|
1343
|
+
H("div", null, UA(((T = a(o)) == null ? void 0 : T.工号) || "未知"), 1)
|
|
1344
1344
|
])
|
|
1345
1345
|
]),
|
|
1346
1346
|
H("div", of, [
|
|
1347
1347
|
H("div", { onClick: Ue }, [
|
|
1348
|
-
|
|
1348
|
+
X(le, {
|
|
1349
1349
|
name: "personal",
|
|
1350
1350
|
style: { width: "15px", height: "15px" }
|
|
1351
1351
|
}),
|
|
1352
1352
|
Q[12] || (Q[12] = H("span", null, "个人主页", -1))
|
|
1353
1353
|
]),
|
|
1354
1354
|
H("div", null, [
|
|
1355
|
-
|
|
1355
|
+
X(le, {
|
|
1356
1356
|
name: "message",
|
|
1357
1357
|
style: { width: "15px", height: "15px" }
|
|
1358
1358
|
}),
|
|
1359
1359
|
Q[13] || (Q[13] = H("span", null, "消息中心", -1))
|
|
1360
1360
|
]),
|
|
1361
1361
|
H("div", { onClick: he }, [
|
|
1362
|
-
|
|
1362
|
+
X(le, {
|
|
1363
1363
|
name: "人像",
|
|
1364
1364
|
style: { width: "15px", height: "15px" }
|
|
1365
1365
|
}),
|
|
@@ -1368,14 +1368,14 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1368
1368
|
]),
|
|
1369
1369
|
H("div", Pf, [
|
|
1370
1370
|
H("div", null, [
|
|
1371
|
-
|
|
1371
|
+
X(le, {
|
|
1372
1372
|
name: "exit",
|
|
1373
1373
|
style: { width: "15px", height: "15px", color: "#eb503d" }
|
|
1374
1374
|
}),
|
|
1375
|
-
|
|
1375
|
+
X(De, {
|
|
1376
1376
|
emptyColor: !0,
|
|
1377
1377
|
class: "menu-button",
|
|
1378
|
-
onClickTrigger:
|
|
1378
|
+
onClickTrigger: x,
|
|
1379
1379
|
modelValue: "退出登录",
|
|
1380
1380
|
buttonType: "",
|
|
1381
1381
|
style: { color: "#eb503d" }
|
|
@@ -1391,11 +1391,11 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1391
1391
|
]),
|
|
1392
1392
|
_: 3
|
|
1393
1393
|
}),
|
|
1394
|
-
|
|
1394
|
+
X(y, { class: "client-body" }, {
|
|
1395
1395
|
default: M(() => [
|
|
1396
|
-
|
|
1396
|
+
X(S, { class: "client-main" }, {
|
|
1397
1397
|
default: M(() => {
|
|
1398
|
-
var
|
|
1398
|
+
var W, aA, h, IA, lA, T, G, rA, XA, ZA, F, ae, se, Ce, Ie, we, Xe, LA, KA, ve, re, me, $e, An, en, nn, Pn, Cn, tn, Kn, Mn, Dn;
|
|
1399
1399
|
return [
|
|
1400
1400
|
je((z(), xA(tA, {
|
|
1401
1401
|
class: "client-aside",
|
|
@@ -1404,15 +1404,15 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1404
1404
|
width: "auto"
|
|
1405
1405
|
}, {
|
|
1406
1406
|
default: M(() => [
|
|
1407
|
-
|
|
1407
|
+
X(mt, { mode: "vertical" })
|
|
1408
1408
|
]),
|
|
1409
1409
|
_: 1
|
|
1410
1410
|
}, 8, ["style"])), [
|
|
1411
|
-
[BA, a(
|
|
1411
|
+
[BA, a(n)]
|
|
1412
1412
|
]),
|
|
1413
1413
|
H("div", Cf, [
|
|
1414
1414
|
H("div", If, [
|
|
1415
|
-
|
|
1415
|
+
X(hn, {
|
|
1416
1416
|
breadArray: a(bA),
|
|
1417
1417
|
onClick: a(Hn)
|
|
1418
1418
|
}, null, 8, ["breadArray", "onClick"])
|
|
@@ -1423,27 +1423,27 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1423
1423
|
ref: eA,
|
|
1424
1424
|
"element-loading-text": "正在加载页面数据..."
|
|
1425
1425
|
}, [
|
|
1426
|
-
((aA = a(i)) == null ? void 0 : aA[((
|
|
1427
|
-
|
|
1426
|
+
((aA = a(i)) == null ? void 0 : aA[((W = a(i)) == null ? void 0 : W.length) - 1]) === a($) || (h = a(i)) != null && h.includes("updateLoading") || (IA = a(i)) != null && IA.includes("loading") ? (z(), q("div", Ef, [
|
|
1427
|
+
X(De, {
|
|
1428
1428
|
class: "calculator-content back-content",
|
|
1429
1429
|
onClickTrigger: Q[4] || (Q[4] = (B) => a(dt)()),
|
|
1430
1430
|
modelValue: "返回"
|
|
1431
1431
|
}),
|
|
1432
1432
|
H("div", Bf, [
|
|
1433
|
-
|
|
1433
|
+
X(Jl, {
|
|
1434
1434
|
toolBar: a(Dt),
|
|
1435
1435
|
onOnExtendTaskEnd: a(Mt)
|
|
1436
1436
|
}, null, 8, ["toolBar", "onOnExtendTaskEnd"])
|
|
1437
1437
|
])
|
|
1438
1438
|
])) : CA("", !0),
|
|
1439
1439
|
(lA = a(i)) != null && lA.includes("首页") ? (z(), q("div", zf, [
|
|
1440
|
-
|
|
1440
|
+
X(OA, {
|
|
1441
1441
|
src: a(kl),
|
|
1442
1442
|
fit: "contain"
|
|
1443
1443
|
}, null, 8, ["src"])
|
|
1444
1444
|
])) : (z(), q("div", Qf, [
|
|
1445
1445
|
d.value ? (z(), xA(E, { key: 0 })) : (z(), q("div", yf, [
|
|
1446
|
-
!a(ln) && ye.value === "vertical" && (((
|
|
1446
|
+
!a(ln) && ye.value === "vertical" && (((T = a(yn)) == null ? void 0 : T.length) === 0 || !a(yn)) ? (z(!0), q(ue, { key: 0 }, Ee((G = a(te)) == null ? void 0 : G.filter((B) => B.comp !== "FormTop"), (B, AA) => {
|
|
1447
1447
|
var ke, Se;
|
|
1448
1448
|
return z(), q("div", {
|
|
1449
1449
|
class: Ke((ke = a(Xn)) != null && ke.includes(B == null ? void 0 : B.name) ? "item-view-content affix-content" : "item-view-content"),
|
|
@@ -1554,7 +1554,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1554
1554
|
_: 1
|
|
1555
1555
|
}, 8, ["layout", "row-height"])) : CA("", !0),
|
|
1556
1556
|
!a(ln) && ye.value === "horizontal" ? (z(), q("div", pf, [
|
|
1557
|
-
|
|
1557
|
+
X(yA, {
|
|
1558
1558
|
modelValue: _e.value,
|
|
1559
1559
|
"onUpdate:modelValue": Q[6] || (Q[6] = (B) => _e.value = B),
|
|
1560
1560
|
type: "card",
|
|
@@ -1623,7 +1623,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1623
1623
|
class: "display-steps"
|
|
1624
1624
|
}, {
|
|
1625
1625
|
default: M(() => [
|
|
1626
|
-
(z(!0), q(ue, null, Ee(a(Tt), (B, AA) => (z(), xA(
|
|
1626
|
+
(z(!0), q(ue, null, Ee(a(Tt), (B, AA) => (z(), xA(w, {
|
|
1627
1627
|
key: B == null ? void 0 : B.id,
|
|
1628
1628
|
class: "step-item",
|
|
1629
1629
|
status: B == null ? void 0 : B.status,
|
|
@@ -1688,13 +1688,13 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1688
1688
|
_: 1
|
|
1689
1689
|
}),
|
|
1690
1690
|
H("div", null, [
|
|
1691
|
-
|
|
1691
|
+
X(zn, {
|
|
1692
1692
|
visible: m.value,
|
|
1693
1693
|
onBeforeDestroy: WA,
|
|
1694
1694
|
style: { height: "700px", width: "1000px" }
|
|
1695
1695
|
}, {
|
|
1696
1696
|
default: M(() => [
|
|
1697
|
-
|
|
1697
|
+
X(cl, {
|
|
1698
1698
|
ref_key: "threeModelRef",
|
|
1699
1699
|
ref: gA
|
|
1700
1700
|
}, null, 512)
|
|
@@ -1715,7 +1715,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1715
1715
|
function mf(P, j, s, c, I, l) {
|
|
1716
1716
|
const r = TA("el-tree");
|
|
1717
1717
|
return z(), q("div", Lf, [
|
|
1718
|
-
|
|
1718
|
+
X(r, {
|
|
1719
1719
|
data: P.renderMenuList,
|
|
1720
1720
|
props: {
|
|
1721
1721
|
children: "children",
|
|
@@ -1741,27 +1741,27 @@ function wt(P = "menu") {
|
|
|
1741
1741
|
type: String,
|
|
1742
1742
|
default: "vertical"
|
|
1743
1743
|
}
|
|
1744
|
-
}), s =
|
|
1745
|
-
rawMenus:
|
|
1746
|
-
activeTopMenuPath:
|
|
1747
|
-
isRefreshMenus:
|
|
1748
|
-
menuTriggerType:
|
|
1749
|
-
permissionSideMenus:
|
|
1750
|
-
platform:
|
|
1744
|
+
}), s = J("sub-menu-more"), c = be(), I = Ne(qA), l = J(0), r = ot(), {
|
|
1745
|
+
rawMenus: p,
|
|
1746
|
+
activeTopMenuPath: O,
|
|
1747
|
+
isRefreshMenus: L,
|
|
1748
|
+
menuTriggerType: t,
|
|
1749
|
+
permissionSideMenus: Z,
|
|
1750
|
+
platform: b,
|
|
1751
1751
|
cacheInputMenu: R,
|
|
1752
1752
|
activeMainMenu: $,
|
|
1753
1753
|
activeMenuPath: _,
|
|
1754
1754
|
linkMenuInfo: o,
|
|
1755
|
-
updateMenuStatus:
|
|
1756
|
-
} = MA(c), fA = qe(), { structureData: sA } = MA(fA), jA =
|
|
1757
|
-
...
|
|
1755
|
+
updateMenuStatus: N
|
|
1756
|
+
} = MA(c), fA = qe(), { structureData: sA } = MA(fA), jA = J([]), pA = J([]), hA = ee(() => j == null ? void 0 : j.mode), bA = J({}), wA = (A) => A == null ? void 0 : A.map((n) => n.children && n.children.length > 0 ? {
|
|
1757
|
+
...n,
|
|
1758
1758
|
// 水平菜单仅显示一层
|
|
1759
|
-
children:
|
|
1760
|
-
childMenus: wA(
|
|
1761
|
-
} :
|
|
1759
|
+
children: n.level === 0 ? [] : n.children ?? [],
|
|
1760
|
+
childMenus: wA(n.children)
|
|
1761
|
+
} : n), JA = (A, n) => {
|
|
1762
1762
|
var g, e;
|
|
1763
|
-
return (e = (g = pA.value) == null ? void 0 : g.find((f) => (A.title +
|
|
1764
|
-
}, gA = ["系统管理/角色管理", "系统管理/用户管理", "系统管理/个人中心"], V = (A,
|
|
1763
|
+
return (e = (g = pA.value) == null ? void 0 : g.find((f) => (A.title + n).includes(f.value))) == null ? void 0 : e.value;
|
|
1764
|
+
}, gA = ["系统管理/角色管理", "系统管理/用户管理", "系统管理/个人中心"], V = (A, n = "", g = 0) => {
|
|
1765
1765
|
var i;
|
|
1766
1766
|
let e = GA(A);
|
|
1767
1767
|
const f = Array.from(/* @__PURE__ */ new Set([...(i = sA.value) == null ? void 0 : i.map((v) => {
|
|
@@ -1769,8 +1769,8 @@ function wt(P = "menu") {
|
|
|
1769
1769
|
return (d = v == null ? void 0 : v.key) == null ? void 0 : d.pageKey;
|
|
1770
1770
|
})]));
|
|
1771
1771
|
return Array.isArray(e) || (e = [e]), e == null ? void 0 : e.map((v) => {
|
|
1772
|
-
let d,
|
|
1773
|
-
gA != null && gA.includes(
|
|
1772
|
+
let d, x = n ? `${n}/${v.title}` : v.title;
|
|
1773
|
+
gA != null && gA.includes(x) ? d = n ? `/${n}/${v.title}` : v.title : d = x;
|
|
1774
1774
|
const C = {
|
|
1775
1775
|
...v,
|
|
1776
1776
|
path: d,
|
|
@@ -1779,10 +1779,10 @@ function wt(P = "menu") {
|
|
|
1779
1779
|
// icon: Icon[`${level}`],
|
|
1780
1780
|
// icon: platform.value === 'client' ? handleStaticIcon(menu, level) : handleDynamicIcon(menu, level),
|
|
1781
1781
|
icon: JA(v, g),
|
|
1782
|
-
carryData: f == null ? void 0 : f.includes(
|
|
1782
|
+
carryData: f == null ? void 0 : f.includes(x),
|
|
1783
1783
|
//便于角色授权菜单那里给叶子节点添加按钮节点
|
|
1784
1784
|
isPenultimate: !v.children,
|
|
1785
|
-
isRouter: gA == null ? void 0 : gA.includes(
|
|
1785
|
+
isRouter: gA == null ? void 0 : gA.includes(x),
|
|
1786
1786
|
// 便于自定义新增菜单
|
|
1787
1787
|
children: [],
|
|
1788
1788
|
childMenus: []
|
|
@@ -1791,14 +1791,14 @@ function wt(P = "menu") {
|
|
|
1791
1791
|
});
|
|
1792
1792
|
}, m = ee(() => {
|
|
1793
1793
|
let A = GA(jA.value);
|
|
1794
|
-
if (A = [...A, ...
|
|
1794
|
+
if (A = [...A, ...Z.value], (A == null ? void 0 : A.length) === 0)
|
|
1795
1795
|
return r.push("/"), [];
|
|
1796
1796
|
Y(A, dA.value);
|
|
1797
|
-
const
|
|
1798
|
-
return c.setMenus(
|
|
1797
|
+
const n = wA(A);
|
|
1798
|
+
return c.setMenus(n), n;
|
|
1799
1799
|
}), EA = async (A) => {
|
|
1800
1800
|
var f, u, i;
|
|
1801
|
-
let
|
|
1801
|
+
let n, g;
|
|
1802
1802
|
(A == null ? void 0 : A.level) === 0 ? g = {
|
|
1803
1803
|
key: {
|
|
1804
1804
|
type: "menuConfigData",
|
|
@@ -1815,20 +1815,20 @@ function wt(P = "menu") {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
};
|
|
1817
1817
|
const e = await Be(g);
|
|
1818
|
-
return ((f = e == null ? void 0 : e.data) == null ? void 0 : f.code) === 200 && (
|
|
1818
|
+
return ((f = e == null ? void 0 : e.data) == null ? void 0 : f.code) === 200 && (n = (i = (u = e.data) == null ? void 0 : u.result) == null ? void 0 : i.map((v) => {
|
|
1819
1819
|
var d;
|
|
1820
1820
|
return {
|
|
1821
1821
|
id: v == null ? void 0 : v.id,
|
|
1822
1822
|
...(d = v == null ? void 0 : v.value) == null ? void 0 : d.tableData
|
|
1823
1823
|
};
|
|
1824
|
-
}), (A == null ? void 0 : A.level) === 0 && (bA.value = GA(
|
|
1825
|
-
}, zA = (A,
|
|
1824
|
+
}), (A == null ? void 0 : A.level) === 0 && (bA.value = GA(n))), (n == null ? void 0 : n.length) > 0 ? n : null;
|
|
1825
|
+
}, zA = (A, n) => {
|
|
1826
1826
|
var e, f;
|
|
1827
1827
|
const g = A == null ? void 0 : A.find((u) => (u == null ? void 0 : u.operateType) === "新增");
|
|
1828
|
-
return ((f = (e = R.value) == null ? void 0 : e.data) == null ? void 0 : f.path) === (
|
|
1829
|
-
}, DA = async (A,
|
|
1830
|
-
if (!Array.isArray(
|
|
1831
|
-
for (const g of
|
|
1828
|
+
return ((f = (e = R.value) == null ? void 0 : e.data) == null ? void 0 : f.path) === (n == null ? void 0 : n.path) ? g == null ? void 0 : g.menuIcon : JA(n, n == null ? void 0 : n.level);
|
|
1829
|
+
}, DA = async (A, n) => {
|
|
1830
|
+
if (!Array.isArray(n)) return A;
|
|
1831
|
+
for (const g of n)
|
|
1832
1832
|
if ((g == null ? void 0 : g.path) === A.path)
|
|
1833
1833
|
return {
|
|
1834
1834
|
...A,
|
|
@@ -1836,18 +1836,18 @@ function wt(P = "menu") {
|
|
|
1836
1836
|
// icon: temp?.data?.menuConfig?.menuIcon
|
|
1837
1837
|
};
|
|
1838
1838
|
return A;
|
|
1839
|
-
}, mA =
|
|
1839
|
+
}, mA = J(null), FA = async (A, n = null) => await Promise.all(
|
|
1840
1840
|
A == null ? void 0 : A.map(async (g) => {
|
|
1841
1841
|
var u;
|
|
1842
1842
|
let e = await DA(g, bA.value);
|
|
1843
|
-
const f = (e == null ? void 0 : e.config) ?? ((u =
|
|
1843
|
+
const f = (e == null ? void 0 : e.config) ?? ((u = n == null ? void 0 : n.filter((i) => i.allowInherit)) == null ? void 0 : u.map((i) => {
|
|
1844
1844
|
var v;
|
|
1845
1845
|
return {
|
|
1846
1846
|
...i,
|
|
1847
1847
|
// structureIds: parentConfig?.find((p: any) => p?.structureIds?.length > 0)?.structureIds?.filter((item: any) => item?.key === 'contentConfig')
|
|
1848
|
-
structureIds: (v =
|
|
1849
|
-
var
|
|
1850
|
-
return ((
|
|
1848
|
+
structureIds: (v = n == null ? void 0 : n.find((d) => {
|
|
1849
|
+
var x;
|
|
1850
|
+
return ((x = d == null ? void 0 : d.structureIds) == null ? void 0 : x.length) > 0;
|
|
1851
1851
|
})) == null ? void 0 : v.structureIds
|
|
1852
1852
|
//弹窗和内容的结构都继承
|
|
1853
1853
|
};
|
|
@@ -1870,20 +1870,20 @@ function wt(P = "menu") {
|
|
|
1870
1870
|
(A) => {
|
|
1871
1871
|
var g, e, f;
|
|
1872
1872
|
if (!A) return;
|
|
1873
|
-
const
|
|
1874
|
-
if (
|
|
1875
|
-
const u = (f = jA.value) == null ? void 0 : f.find((i) => (i == null ? void 0 : i.path) ===
|
|
1876
|
-
if (!u || (c.setActiveTopMenuPath(
|
|
1873
|
+
const n = (e = (g = A == null ? void 0 : A.path) == null ? void 0 : g.split("/")) == null ? void 0 : e[0];
|
|
1874
|
+
if (n) {
|
|
1875
|
+
const u = (f = jA.value) == null ? void 0 : f.find((i) => (i == null ? void 0 : i.path) === n);
|
|
1876
|
+
if (!u || (c.setActiveTopMenuPath(n), !(u != null && u.children))) return;
|
|
1877
1877
|
c.setAsideMenus(u == null ? void 0 : u.children), c.setActiveMenuPath(A == null ? void 0 : A.path), I.setRouteToChildPath(A == null ? void 0 : A.path);
|
|
1878
1878
|
}
|
|
1879
1879
|
},
|
|
1880
1880
|
{ immediate: !0 }
|
|
1881
1881
|
);
|
|
1882
1882
|
const VA = async (A) => {
|
|
1883
|
-
var
|
|
1884
|
-
if (c.setLinkMenuInfo(null), c.setAsideMenuLoading(!0), I.setRouteToChildPath(""), c.setActiveTopMenuPath(A == null ? void 0 : A.path), c.setActiveMainMenu(A), mA.value = null, A != null && A.childMenus && ((
|
|
1883
|
+
var n, g, e, f;
|
|
1884
|
+
if (c.setLinkMenuInfo(null), c.setAsideMenuLoading(!0), I.setRouteToChildPath(""), c.setActiveTopMenuPath(A == null ? void 0 : A.path), c.setActiveMainMenu(A), mA.value = null, A != null && A.childMenus && ((n = A == null ? void 0 : A.childMenus) == null ? void 0 : n.length) > 0) {
|
|
1885
1885
|
const u = await _A(A), i = (u == null ? void 0 : u.length) === 0 ? A == null ? void 0 : A.childMenus : u;
|
|
1886
|
-
if (c.setAsideMenus(i),
|
|
1886
|
+
if (c.setAsideMenus(i), N.value) {
|
|
1887
1887
|
const v = (e = (g = A == null ? void 0 : A.childMenus) == null ? void 0 : g[0]) == null ? void 0 : e.path;
|
|
1888
1888
|
c.setActiveMenuPath(v);
|
|
1889
1889
|
} else
|
|
@@ -1893,13 +1893,13 @@ function wt(P = "menu") {
|
|
|
1893
1893
|
c.setAsideMenus([]);
|
|
1894
1894
|
A.isRouter ? r.push(A.path) : r.push("/"), c.setAsideMenuLoading(!1);
|
|
1895
1895
|
}, D = (A) => {
|
|
1896
|
-
I.setRouteToChildPath(""),
|
|
1896
|
+
I.setRouteToChildPath(""), t.value === "click" ? l.value === 1 ? c.setActiveMenuPath(sessionStorage.getItem("pageKey")) : A !== s.value && c.setActiveMenuPath(A) : c.setMenuTriggerType("click"), A != null && A.startsWith("/") ? r.push(A) : r.push("/"), l.value++;
|
|
1897
1897
|
}, eA = (A) => {
|
|
1898
1898
|
A !== s.value && c.setActiveMenuPath(A);
|
|
1899
1899
|
}, PA = (A) => {
|
|
1900
|
-
const
|
|
1900
|
+
const n = document.documentElement;
|
|
1901
1901
|
A == null || A.forEach((g) => {
|
|
1902
|
-
|
|
1902
|
+
n.style.setProperty(g.name, g.value);
|
|
1903
1903
|
});
|
|
1904
1904
|
};
|
|
1905
1905
|
on(() => {
|
|
@@ -1910,76 +1910,76 @@ function wt(P = "menu") {
|
|
|
1910
1910
|
return A ? JSON.parse(A) : [];
|
|
1911
1911
|
});
|
|
1912
1912
|
YA(
|
|
1913
|
-
() =>
|
|
1913
|
+
() => b.value,
|
|
1914
1914
|
(A) => {
|
|
1915
1915
|
A === "browser" ? (PA(Pt), PA(Ct)) : A === "client" ? (PA(It), PA(Et)) : A === "three" && (PA(Bt), PA(zt));
|
|
1916
1916
|
},
|
|
1917
1917
|
{ immediate: !0 }
|
|
1918
1918
|
), YA(
|
|
1919
|
-
() =>
|
|
1919
|
+
() => p.value,
|
|
1920
1920
|
(A) => {
|
|
1921
1921
|
if (pA.value = Bn(), A) {
|
|
1922
|
-
|
|
1923
|
-
const
|
|
1924
|
-
jA.value = V(
|
|
1922
|
+
N.value && (c.setActiveTopMenuPath(""), c.setActiveMenuPath(""), c.setAsideMenus([]));
|
|
1923
|
+
const n = A;
|
|
1924
|
+
jA.value = V(Ot(n));
|
|
1925
1925
|
}
|
|
1926
1926
|
},
|
|
1927
1927
|
{
|
|
1928
1928
|
immediate: !0
|
|
1929
1929
|
}
|
|
1930
1930
|
);
|
|
1931
|
-
const Y = (A,
|
|
1931
|
+
const Y = (A, n) => ({
|
|
1932
1932
|
isFlag: !0
|
|
1933
1933
|
}), k = (A) => {
|
|
1934
1934
|
var g;
|
|
1935
|
-
const
|
|
1935
|
+
const n = [A == null ? void 0 : A.title];
|
|
1936
1936
|
if (A != null && A.children && ((g = A == null ? void 0 : A.children) == null ? void 0 : g.length) > 0) {
|
|
1937
1937
|
const e = A.children.map((f) => k(f));
|
|
1938
|
-
|
|
1938
|
+
n.push(...e);
|
|
1939
1939
|
}
|
|
1940
|
-
return
|
|
1941
|
-
}, $A = (A,
|
|
1940
|
+
return n;
|
|
1941
|
+
}, $A = (A, n, g, e) => A.map((f) => {
|
|
1942
1942
|
var u, i;
|
|
1943
1943
|
if (f.path === g) {
|
|
1944
1944
|
const v = { ...f };
|
|
1945
|
-
return e === "create" ? v.children.push(
|
|
1946
|
-
(d) => (d == null ? void 0 : d.path) === (
|
|
1947
|
-
) : e === "delete" && (v.children = (i = v.children) == null ? void 0 : i.filter((d) => (d == null ? void 0 : d.path) !== (
|
|
1945
|
+
return e === "create" ? v.children.push(n) : e === "update" ? v.children = (u = v.children) == null ? void 0 : u.map(
|
|
1946
|
+
(d) => (d == null ? void 0 : d.path) === (n == null ? void 0 : n.path) ? n : d
|
|
1947
|
+
) : e === "delete" && (v.children = (i = v.children) == null ? void 0 : i.filter((d) => (d == null ? void 0 : d.path) !== (n == null ? void 0 : n.path))), v;
|
|
1948
1948
|
} else
|
|
1949
1949
|
return {
|
|
1950
1950
|
...f,
|
|
1951
|
-
children: $A(f.children,
|
|
1951
|
+
children: $A(f.children, n, g, e)
|
|
1952
1952
|
// 递归更新子节点
|
|
1953
1953
|
};
|
|
1954
1954
|
}), ne = async (A) => {
|
|
1955
1955
|
var g, e, f, u, i, v;
|
|
1956
|
-
const
|
|
1957
|
-
var
|
|
1958
|
-
return ((
|
|
1956
|
+
const n = (g = sA.value) == null ? void 0 : g.find((d) => {
|
|
1957
|
+
var x;
|
|
1958
|
+
return ((x = d == null ? void 0 : d.key) == null ? void 0 : x.pageKey) === "menu";
|
|
1959
1959
|
});
|
|
1960
|
-
if (
|
|
1960
|
+
if (n) {
|
|
1961
1961
|
const d = {
|
|
1962
|
-
...(e =
|
|
1963
|
-
compData: (i = (u = (f =
|
|
1962
|
+
...(e = n.value) == null ? void 0 : e.pageData,
|
|
1963
|
+
compData: (i = (u = (f = n.value) == null ? void 0 : f.pageData) == null ? void 0 : u.compData) == null ? void 0 : i.map((C) => C.key === "menuContents" ? {
|
|
1964
1964
|
...C,
|
|
1965
1965
|
contents: A
|
|
1966
1966
|
} : C)
|
|
1967
1967
|
};
|
|
1968
|
-
await pt(
|
|
1969
|
-
const
|
|
1970
|
-
|
|
1968
|
+
await pt(n == null ? void 0 : n.id, d);
|
|
1969
|
+
const x = (v = m.value) == null ? void 0 : v.find((C) => (C == null ? void 0 : C.path) === O.value);
|
|
1970
|
+
x && await VA(x), c.setAsideMenuLoading(!1), c.setIsRefreshMenus(!1);
|
|
1971
1971
|
} else
|
|
1972
1972
|
c.setAsideMenuLoading(!1);
|
|
1973
1973
|
}, ce = async (A) => {
|
|
1974
1974
|
var e, f, u, i, v;
|
|
1975
|
-
const
|
|
1975
|
+
const n = await Be({
|
|
1976
1976
|
id: A
|
|
1977
1977
|
});
|
|
1978
1978
|
let g;
|
|
1979
|
-
return ((e =
|
|
1979
|
+
return ((e = n == null ? void 0 : n.data) == null ? void 0 : e.code) === 200 && (g = (v = (i = (u = (f = n == null ? void 0 : n.data) == null ? void 0 : f.result) == null ? void 0 : u[0]) == null ? void 0 : i.value) == null ? void 0 : v.pageData), g;
|
|
1980
1980
|
}, de = async (A) => {
|
|
1981
|
-
var v, d,
|
|
1982
|
-
const
|
|
1981
|
+
var v, d, x;
|
|
1982
|
+
const n = (x = (d = (v = A == null ? void 0 : A.config) == null ? void 0 : v.find((C) => (C == null ? void 0 : C.operateType) === "新增")) == null ? void 0 : d.structureIds) == null ? void 0 : x.filter((C) => (C == null ? void 0 : C.key) === "contentConfig"), g = n == null ? void 0 : n.map((C) => C == null ? void 0 : C.id);
|
|
1983
1983
|
let e = [];
|
|
1984
1984
|
g == null || g.forEach((C) => {
|
|
1985
1985
|
C && e.push(ce(C));
|
|
@@ -2004,22 +2004,22 @@ function wt(P = "menu") {
|
|
|
2004
2004
|
});
|
|
2005
2005
|
};
|
|
2006
2006
|
return YA(
|
|
2007
|
-
() =>
|
|
2007
|
+
() => L.value,
|
|
2008
2008
|
async (A) => {
|
|
2009
|
-
var
|
|
2009
|
+
var n, g, e, f, u, i, v, d;
|
|
2010
2010
|
if (A)
|
|
2011
2011
|
try {
|
|
2012
|
-
const
|
|
2012
|
+
const x = (e = (g = (n = R.value) == null ? void 0 : n.data) == null ? void 0 : g.path) == null ? void 0 : e.split("/").slice(0, -1).join("/"), C = $A(
|
|
2013
2013
|
jA.value,
|
|
2014
2014
|
(f = R.value) == null ? void 0 : f.data,
|
|
2015
|
-
|
|
2015
|
+
x,
|
|
2016
2016
|
(u = R.value) == null ? void 0 : u.type
|
|
2017
2017
|
), HA = (i = C == null ? void 0 : C.filter((SA) => SA.path !== "平台管理")) == null ? void 0 : i.map((SA) => k(SA));
|
|
2018
2018
|
await de((v = R.value) == null ? void 0 : v.data), c.setAsideMenuLoading(!0), await ne(HA);
|
|
2019
2019
|
const QA = await _A($.value), WA = (QA == null ? void 0 : QA.length) === 0 ? (d = $.value) == null ? void 0 : d.childMenus : QA;
|
|
2020
2020
|
c.setAsideMenus(WA);
|
|
2021
|
-
} catch (
|
|
2022
|
-
throw Oe.error(
|
|
2021
|
+
} catch (x) {
|
|
2022
|
+
throw Oe.error(x), new Error(x);
|
|
2023
2023
|
}
|
|
2024
2024
|
},
|
|
2025
2025
|
{ immediate: !0 }
|
|
@@ -2039,7 +2039,7 @@ const Kf = ze(wt("ThreeMenu")), Mf = { class: "three-menu" }, Df = ["onClick"];
|
|
|
2039
2039
|
function Wf(P, j, s, c, I, l) {
|
|
2040
2040
|
return z(), q("div", Mf, [
|
|
2041
2041
|
(z(!0), q(ue, null, Ee(P.renderMenuList, (r) => (z(), q("div", {
|
|
2042
|
-
onClick: (
|
|
2042
|
+
onClick: (p) => P.clickMenu(r)
|
|
2043
2043
|
}, [
|
|
2044
2044
|
We(P.$slots, "menu", { menu: r }, void 0, !0)
|
|
2045
2045
|
], 8, Df))), 256)),
|
|
@@ -2080,34 +2080,34 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2080
2080
|
},
|
|
2081
2081
|
emits: ["showChild", "buildContent", "setLoginInfo"],
|
|
2082
2082
|
setup(P, { emit: j }) {
|
|
2083
|
-
const s =
|
|
2083
|
+
const s = J(), c = J([]), I = J([]), l = ee(
|
|
2084
2084
|
() => c.value.filter((E) => {
|
|
2085
|
-
var
|
|
2086
|
-
return ((
|
|
2085
|
+
var w;
|
|
2086
|
+
return ((w = E.find((vA) => vA.prop === "状态")) == null ? void 0 : w.value) === "未读";
|
|
2087
2087
|
}).length
|
|
2088
2088
|
);
|
|
2089
2089
|
ee(() => l.value > 99 ? "99+" : l.value);
|
|
2090
|
-
const r = Rn(qA), { originalPath:
|
|
2090
|
+
const r = Rn(qA), { originalPath: p } = MA(r), O = p.value, L = Qn(qA), { selectTitle: t } = MA(L), Z = J(!1), b = J(null), R = J(), $ = J(!1), _ = jt(qA), { blobUrls: o } = MA(_), N = J(!1), fA = J(!1), sA = J(!1), jA = J([]), pA = J(!1), hA = J(null), bA = J([]), wA = J(!1);
|
|
2091
2091
|
fn("contentRef", hA);
|
|
2092
|
-
const JA = qe(), { loginUserInfo: gA } = MA(JA), V = Ne(qA), { isEdit: m, routeToChildPath: EA } = MA(V), zA = j, DA = be(qA), { asideMenuLoading: mA, importLoading: FA, activeAsideMenu: _A, contentLoading: VA, platName: D, activeMenuPath: eA } = MA(DA), PA =
|
|
2092
|
+
const JA = qe(), { loginUserInfo: gA } = MA(JA), V = Ne(qA), { isEdit: m, routeToChildPath: EA } = MA(V), zA = j, DA = be(qA), { asideMenuLoading: mA, importLoading: FA, activeAsideMenu: _A, contentLoading: VA, platName: D, activeMenuPath: eA } = MA(DA), PA = vl(qA), { data: dA } = MA(PA), { setData: Y } = rl(), k = ee(() => _A.value.isRouter), $A = () => {
|
|
2093
2093
|
sessionStorage.clear(), window.location.reload();
|
|
2094
2094
|
}, ne = (E) => {
|
|
2095
2095
|
if ((E == null ? void 0 : E.type) === "table") {
|
|
2096
|
-
let
|
|
2096
|
+
let w = E == null ? void 0 : E.row;
|
|
2097
2097
|
const vA = E == null ? void 0 : E.rowData;
|
|
2098
|
-
let
|
|
2099
|
-
if (
|
|
2098
|
+
let S = w;
|
|
2099
|
+
if (S) {
|
|
2100
2100
|
R.value = {
|
|
2101
|
-
url:
|
|
2101
|
+
url: S,
|
|
2102
2102
|
row: E == null ? void 0 : E.row
|
|
2103
2103
|
};
|
|
2104
2104
|
let BA = [];
|
|
2105
|
-
typeof
|
|
2105
|
+
typeof S == "string" && (S != null && S.includes(",") ? BA = (S == null ? void 0 : S.split(",")).map((h) => ({
|
|
2106
|
+
url: h,
|
|
2107
|
+
extension: dn(h)
|
|
2108
|
+
})) : BA = [{
|
|
2106
2109
|
url: S,
|
|
2107
2110
|
extension: dn(S)
|
|
2108
|
-
})) : BA = [{
|
|
2109
|
-
url: J,
|
|
2110
|
-
extension: dn(J)
|
|
2111
2111
|
}]), PA.setData({
|
|
2112
2112
|
files: BA,
|
|
2113
2113
|
data: vA
|
|
@@ -2118,24 +2118,24 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2118
2118
|
YA(
|
|
2119
2119
|
() => eA.value,
|
|
2120
2120
|
async (E) => {
|
|
2121
|
-
E && (fA.value = !0), E === "弯管仿真加工分析/仿真动画生成" ? sA.value = !0 : sA.value = !1, E === "弯管仿真加工分析/程序输出" ? pA.value = !0 : pA.value = !1, Ve != null && Ve.find((
|
|
2121
|
+
E && (fA.value = !0), E === "弯管仿真加工分析/仿真动画生成" ? sA.value = !0 : sA.value = !1, E === "弯管仿真加工分析/程序输出" ? pA.value = !0 : pA.value = !1, Ve != null && Ve.find((w) => {
|
|
2122
2122
|
var vA;
|
|
2123
|
-
return (
|
|
2124
|
-
}) ?
|
|
2123
|
+
return (w == null ? void 0 : w.key) === ((vA = E == null ? void 0 : E.split("/")) == null ? void 0 : vA[(E == null ? void 0 : E.split("/").length) - 1]);
|
|
2124
|
+
}) ? N.value = !0 : N.value = !1;
|
|
2125
2125
|
},
|
|
2126
2126
|
{ immediate: !0 }
|
|
2127
2127
|
), YA(
|
|
2128
2128
|
() => [o == null ? void 0 : o.value],
|
|
2129
2129
|
async () => {
|
|
2130
|
-
var E,
|
|
2131
|
-
if (o != null && o.value && ((E = o == null ? void 0 : o.value) == null ? void 0 : E.length) > 0 && !
|
|
2130
|
+
var E, w, vA, S, BA;
|
|
2131
|
+
if (o != null && o.value && ((E = o == null ? void 0 : o.value) == null ? void 0 : E.length) > 0 && !N.value && !((w = He.value) != null && w.find((W) => (W == null ? void 0 : W.name) === "输入") && ((vA = He.value) != null && vA.find((W) => (W == null ? void 0 : W.name) === "输出")))) {
|
|
2132
2132
|
$.value = !0;
|
|
2133
|
-
let
|
|
2134
|
-
const aA = await ((
|
|
2133
|
+
let W = [];
|
|
2134
|
+
const aA = await ((S = GA(o == null ? void 0 : o.value)) == null ? void 0 : S.map(async (h) => {
|
|
2135
2135
|
var rA, XA, ZA, F, ae, se, Ce, Ie, we, Xe;
|
|
2136
|
-
let IA, lA,
|
|
2137
|
-
|
|
2138
|
-
let G =
|
|
2136
|
+
let IA, lA, T;
|
|
2137
|
+
h != null && h.blob.includes("undefined") ? T = (XA = (rA = h == null ? void 0 : h.blob) == null ? void 0 : rA.split("undefined,")) == null ? void 0 : XA[1] : T = h == null ? void 0 : h.blob;
|
|
2138
|
+
let G = T == null ? void 0 : T.split(",");
|
|
2139
2139
|
if ((G == null ? void 0 : G.length) > 1) {
|
|
2140
2140
|
let LA = await (G == null ? void 0 : G.map(async (KA) => {
|
|
2141
2141
|
var re, me, $e, An, en, nn;
|
|
@@ -2146,8 +2146,8 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2146
2146
|
}
|
|
2147
2147
|
});
|
|
2148
2148
|
let ve = [];
|
|
2149
|
-
if (((re =
|
|
2150
|
-
let Pn = await ((me =
|
|
2149
|
+
if (((re = h == null ? void 0 : h.mtlBlobs) == null ? void 0 : re.length) > 0) {
|
|
2150
|
+
let Pn = await ((me = h == null ? void 0 : h.mtlBlobs) == null ? void 0 : me.map(async (Cn) => {
|
|
2151
2151
|
let tn = await Je.get(Cn, {
|
|
2152
2152
|
responseType: "blob",
|
|
2153
2153
|
headers: {
|
|
@@ -2162,7 +2162,7 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2162
2162
|
}));
|
|
2163
2163
|
await Promise.all(Pn);
|
|
2164
2164
|
}
|
|
2165
|
-
return ((An = KA == null ? void 0 : KA.split(".")) == null ? void 0 : An[(($e = KA == null ? void 0 : KA.split(".")) == null ? void 0 : $e.length) - 1]) !== "undefined" &&
|
|
2165
|
+
return ((An = KA == null ? void 0 : KA.split(".")) == null ? void 0 : An[(($e = KA == null ? void 0 : KA.split(".")) == null ? void 0 : $e.length) - 1]) !== "undefined" && W.push({
|
|
2166
2166
|
suffix: "." + ((nn = KA == null ? void 0 : KA.split(".")) == null ? void 0 : nn[((en = KA == null ? void 0 : KA.split(".")) == null ? void 0 : en.length) - 1]),
|
|
2167
2167
|
blob: new Blob([IA.data], {
|
|
2168
2168
|
type: "application/octet-stream;charset=UTF-8"
|
|
@@ -2171,13 +2171,13 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2171
2171
|
}), IA;
|
|
2172
2172
|
}));
|
|
2173
2173
|
await Promise.all(LA);
|
|
2174
|
-
} else if (!(
|
|
2174
|
+
} else if (!(T != null && T.includes("https://")) && !(T != null && T.includes("http://"))) {
|
|
2175
2175
|
IA = await gn({
|
|
2176
|
-
url:
|
|
2176
|
+
url: T
|
|
2177
2177
|
});
|
|
2178
2178
|
let LA = [];
|
|
2179
|
-
if (((ZA =
|
|
2180
|
-
let KA = await ((F =
|
|
2179
|
+
if (((ZA = h == null ? void 0 : h.mtlBlobs) == null ? void 0 : ZA.length) > 0) {
|
|
2180
|
+
let KA = await ((F = h == null ? void 0 : h.mtlBlobs) == null ? void 0 : F.map(async (ve) => {
|
|
2181
2181
|
let re = await gn({
|
|
2182
2182
|
url: ve
|
|
2183
2183
|
});
|
|
@@ -2190,22 +2190,22 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2190
2190
|
await Promise.all(KA);
|
|
2191
2191
|
}
|
|
2192
2192
|
lA = {
|
|
2193
|
-
suffix: "." + ((se =
|
|
2193
|
+
suffix: "." + ((se = T == null ? void 0 : T.split(".")) == null ? void 0 : se[((ae = T == null ? void 0 : T.split(".")) == null ? void 0 : ae.length) - 1]),
|
|
2194
2194
|
blob: new Blob([IA.data], {
|
|
2195
2195
|
type: "application/octet-stream;charset=UTF-8"
|
|
2196
2196
|
}),
|
|
2197
2197
|
mtlBlobs: LA
|
|
2198
2198
|
};
|
|
2199
2199
|
} else {
|
|
2200
|
-
IA = await Je.get(
|
|
2200
|
+
IA = await Je.get(T, {
|
|
2201
2201
|
responseType: "blob",
|
|
2202
2202
|
headers: {
|
|
2203
2203
|
"Content-Type": "application/json"
|
|
2204
2204
|
}
|
|
2205
2205
|
});
|
|
2206
2206
|
let LA = [];
|
|
2207
|
-
if (((Ce =
|
|
2208
|
-
let KA = await ((Ie =
|
|
2207
|
+
if (((Ce = h == null ? void 0 : h.mtlBlobs) == null ? void 0 : Ce.length) > 0) {
|
|
2208
|
+
let KA = await ((Ie = h == null ? void 0 : h.mtlBlobs) == null ? void 0 : Ie.map(async (ve) => {
|
|
2209
2209
|
let re = await Je.get(ve, {
|
|
2210
2210
|
responseType: "blob",
|
|
2211
2211
|
headers: {
|
|
@@ -2221,31 +2221,31 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2221
2221
|
await Promise.all(KA);
|
|
2222
2222
|
}
|
|
2223
2223
|
lA = {
|
|
2224
|
-
suffix:
|
|
2224
|
+
suffix: h != null && h.suffix ? h == null ? void 0 : h.suffix : "." + ((Xe = T == null ? void 0 : T.split(".")) == null ? void 0 : Xe[((we = T == null ? void 0 : T.split(".")) == null ? void 0 : we.length) - 1]),
|
|
2225
2225
|
blob: new Blob([IA.data], {
|
|
2226
2226
|
type: "application/octet-stream;charset=UTF-8"
|
|
2227
2227
|
}),
|
|
2228
2228
|
mtlBlobs: LA
|
|
2229
2229
|
};
|
|
2230
2230
|
}
|
|
2231
|
-
lA &&
|
|
2231
|
+
lA && W.push(lA);
|
|
2232
2232
|
}));
|
|
2233
|
-
await Promise.all(aA), (
|
|
2233
|
+
await Promise.all(aA), (W == null ? void 0 : W.length) !== 0 && ((BA = b.value) == null || BA.loadModelByDefaultPath(W));
|
|
2234
2234
|
}
|
|
2235
2235
|
},
|
|
2236
2236
|
{ immediate: !0, deep: !0 }
|
|
2237
2237
|
);
|
|
2238
2238
|
const ce = (E) => {
|
|
2239
|
-
wA.value = !0, jA.value = E == null ? void 0 : E.map((
|
|
2239
|
+
wA.value = !0, jA.value = E == null ? void 0 : E.map((w) => {
|
|
2240
2240
|
var vA;
|
|
2241
|
-
return
|
|
2241
|
+
return w.compData = (vA = w.compData) == null ? void 0 : vA.map((S) => {
|
|
2242
2242
|
var BA;
|
|
2243
|
-
return (
|
|
2244
|
-
}),
|
|
2243
|
+
return (S == null ? void 0 : S.key) === "formContent" && (S.contents = (BA = S.contents) == null ? void 0 : BA.map((W) => (W.disabled = !0, W))), S;
|
|
2244
|
+
}), w;
|
|
2245
2245
|
});
|
|
2246
2246
|
}, de = async () => {
|
|
2247
2247
|
await Xt();
|
|
2248
|
-
}, A =
|
|
2248
|
+
}, A = J("数据管理"), n = J(!1), g = J(), e = J(), f = J({
|
|
2249
2249
|
x: 0,
|
|
2250
2250
|
y: 0
|
|
2251
2251
|
}), u = () => {
|
|
@@ -2253,14 +2253,14 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2253
2253
|
x: 0,
|
|
2254
2254
|
y: 0
|
|
2255
2255
|
};
|
|
2256
|
-
}, i =
|
|
2256
|
+
}, i = J({
|
|
2257
2257
|
width: "20vw"
|
|
2258
2258
|
}), v = (E) => {
|
|
2259
2259
|
A.value = E;
|
|
2260
2260
|
}, d = (E) => {
|
|
2261
|
-
u(),
|
|
2262
|
-
},
|
|
2263
|
-
d(!(
|
|
2261
|
+
u(), n.value = E;
|
|
2262
|
+
}, x = () => {
|
|
2263
|
+
d(!(n != null && n.value));
|
|
2264
2264
|
}, C = ee(() => ({
|
|
2265
2265
|
right: `${80 - f.value.x}px`,
|
|
2266
2266
|
// transform: `translate(${resTranslateX}, ${resTranslateY})`,
|
|
@@ -2270,11 +2270,11 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2270
2270
|
}, QA = () => {
|
|
2271
2271
|
d(!1);
|
|
2272
2272
|
};
|
|
2273
|
-
fn("managementPageVisible",
|
|
2273
|
+
fn("managementPageVisible", n), fn("setManagementPageTitle", v), fn("setManagementPageVisible", d);
|
|
2274
2274
|
let WA = 0, SA = 0;
|
|
2275
2275
|
function RA(E) {
|
|
2276
|
-
const
|
|
2277
|
-
i.value.width = `${
|
|
2276
|
+
const w = SA - (E.clientX - WA);
|
|
2277
|
+
i.value.width = `${w}px`;
|
|
2278
2278
|
}
|
|
2279
2279
|
function fe() {
|
|
2280
2280
|
document.removeEventListener("mousemove", RA), document.removeEventListener("mouseup", fe);
|
|
@@ -2292,42 +2292,42 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2292
2292
|
function K() {
|
|
2293
2293
|
document.removeEventListener("mousemove", _e), document.removeEventListener("mouseup", K);
|
|
2294
2294
|
}
|
|
2295
|
-
const Q =
|
|
2295
|
+
const Q = J(""), nA = (E) => {
|
|
2296
2296
|
Q.value = E;
|
|
2297
|
-
}, iA =
|
|
2297
|
+
}, iA = J(!1), cA = (E) => {
|
|
2298
2298
|
iA.value = E;
|
|
2299
|
-
},
|
|
2299
|
+
}, U = () => {
|
|
2300
2300
|
iA.value = !iA.value;
|
|
2301
2301
|
}, oA = () => {
|
|
2302
2302
|
cA(!1);
|
|
2303
|
-
},
|
|
2304
|
-
|
|
2303
|
+
}, y = J(), uA = (E) => {
|
|
2304
|
+
y.value = E;
|
|
2305
2305
|
}, yA = (E) => {
|
|
2306
|
-
const
|
|
2307
|
-
if (!
|
|
2306
|
+
const w = fl(E);
|
|
2307
|
+
if (!w)
|
|
2308
2308
|
return;
|
|
2309
|
-
Y(
|
|
2309
|
+
Y(w);
|
|
2310
2310
|
};
|
|
2311
2311
|
YA(He, (E) => {
|
|
2312
|
-
const { isLeaf:
|
|
2313
|
-
!
|
|
2312
|
+
const { isLeaf: w } = y.value || {};
|
|
2313
|
+
!w || !E || !E.length || yA(E);
|
|
2314
2314
|
}, {
|
|
2315
2315
|
immediate: !0,
|
|
2316
2316
|
deep: !0
|
|
2317
2317
|
});
|
|
2318
|
-
const tA = (E,
|
|
2318
|
+
const tA = (E, w) => {
|
|
2319
2319
|
const vA = E == null ? void 0 : E.label;
|
|
2320
2320
|
v(vA), d(!0);
|
|
2321
|
-
const { isLeaf:
|
|
2321
|
+
const { isLeaf: S } = w, BA = {
|
|
2322
2322
|
...E,
|
|
2323
|
-
isLeaf:
|
|
2323
|
+
isLeaf: S
|
|
2324
2324
|
};
|
|
2325
2325
|
uA(BA);
|
|
2326
2326
|
};
|
|
2327
2327
|
on(async () => {
|
|
2328
2328
|
zA("setLoginInfo", gA.value);
|
|
2329
2329
|
async function E() {
|
|
2330
|
-
var
|
|
2330
|
+
var w, vA, S, BA, W, aA, h, IA, lA, T, G;
|
|
2331
2331
|
try {
|
|
2332
2332
|
let rA = function(LA, KA) {
|
|
2333
2333
|
return KA.map((ve) => LA.map((re, me) => ({
|
|
@@ -2339,11 +2339,11 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2339
2339
|
const XA = sessionStorage.getItem("systemKey"), [ZA, F] = await Promise.all([
|
|
2340
2340
|
Me(aa, XA, ""),
|
|
2341
2341
|
Me(sa, XA, "")
|
|
2342
|
-
]), ae = (
|
|
2342
|
+
]), ae = (S = (vA = (w = ZA == null ? void 0 : ZA[0]) == null ? void 0 : w.compData) == null ? void 0 : vA.find((LA) => (LA == null ? void 0 : LA.key) === "tableContents")) == null ? void 0 : S.contents, se = (aA = (W = (BA = F == null ? void 0 : F[0]) == null ? void 0 : BA.compData) == null ? void 0 : W.find((LA) => (LA == null ? void 0 : LA.key) === "tableContents")) == null ? void 0 : aA.contents, Ce = (lA = (IA = (h = F == null ? void 0 : F[0]) == null ? void 0 : h.compData) == null ? void 0 : IA.find((LA) => (LA == null ? void 0 : LA.key) === "header")) == null ? void 0 : lA.contents;
|
|
2343
2343
|
console.log("555readData", Ce);
|
|
2344
2344
|
let Ie = [];
|
|
2345
2345
|
Array.isArray(ae) && Array.isArray(se) ? Ie = [...ae, ...se] : (Ie = [], console.warn("unreadMessagesContents 或 readMessagesContents 不是数组")), c.value = rA(Ce, Ie), console.log("555allReadMessages.value", c.value);
|
|
2346
|
-
const we = ((
|
|
2346
|
+
const we = ((T = gA == null ? void 0 : gA.value) == null ? void 0 : T.account) || ((G = gA == null ? void 0 : gA.value) == null ? void 0 : G.收件人) || "未知", Xe = c.value.filter((LA) => {
|
|
2347
2347
|
var KA;
|
|
2348
2348
|
return ((KA = LA.find((ve) => ve.prop === "收件人")) == null ? void 0 : KA.value) === we;
|
|
2349
2349
|
});
|
|
@@ -2358,82 +2358,82 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2358
2358
|
E && clearInterval(E);
|
|
2359
2359
|
});
|
|
2360
2360
|
const OA = () => {
|
|
2361
|
-
var vA,
|
|
2362
|
-
if (EA.value === "" || ((
|
|
2363
|
-
const E = sessionStorage.getItem("authority"),
|
|
2364
|
-
if (Array.isArray(
|
|
2365
|
-
const BA = Array.isArray(
|
|
2366
|
-
var
|
|
2367
|
-
return ((
|
|
2361
|
+
var vA, S;
|
|
2362
|
+
if (EA.value === "" || ((S = eA.value) == null ? void 0 : S[((vA = eA.value) == null ? void 0 : vA.length) - 1]) === O) return !1;
|
|
2363
|
+
const E = sessionStorage.getItem("authority"), w = JSON.parse(E || "");
|
|
2364
|
+
if (Array.isArray(w)) {
|
|
2365
|
+
const BA = Array.isArray(w) && (w == null ? void 0 : w.filter((aA) => aA == null ? void 0 : aA.includes(EA.value))), W = BA == null ? void 0 : BA.map((aA) => {
|
|
2366
|
+
var h;
|
|
2367
|
+
return ((h = aA == null ? void 0 : aA.split("/")) == null ? void 0 : h.pop()) || "";
|
|
2368
2368
|
});
|
|
2369
|
-
return !!(
|
|
2370
|
-
} else return typeof
|
|
2369
|
+
return !!(W != null && W.includes("新增") || W != null && W.includes("新建"));
|
|
2370
|
+
} else return typeof w == "string" && (w == null ? void 0 : w.toUpperCase()) === "SUPERADMIN";
|
|
2371
2371
|
};
|
|
2372
|
-
return (E,
|
|
2373
|
-
const vA = TA("el-dialog"),
|
|
2372
|
+
return (E, w) => {
|
|
2373
|
+
const vA = TA("el-dialog"), S = TA("el-button"), BA = TA("el-header"), W = TA("el-container"), aA = TA("router-view"), h = TA("el-main"), IA = ct("loading");
|
|
2374
2374
|
return z(), q(ue, null, [
|
|
2375
|
-
|
|
2375
|
+
X(zn, {
|
|
2376
2376
|
visible: wA.value,
|
|
2377
|
-
onBeforeDestroy:
|
|
2377
|
+
onBeforeDestroy: w[0] || (w[0] = (lA) => wA.value = !1),
|
|
2378
2378
|
fullScreen: !0
|
|
2379
2379
|
}, {
|
|
2380
2380
|
default: M(() => [
|
|
2381
|
-
|
|
2381
|
+
X(bt, { dialogItem: jA.value }, null, 8, ["dialogItem"])
|
|
2382
2382
|
]),
|
|
2383
2383
|
_: 1
|
|
2384
2384
|
}, 8, ["visible"]),
|
|
2385
|
-
|
|
2385
|
+
X(vA, {
|
|
2386
2386
|
"append-to-body": "",
|
|
2387
|
-
modelValue:
|
|
2388
|
-
"onUpdate:modelValue":
|
|
2387
|
+
modelValue: Z.value,
|
|
2388
|
+
"onUpdate:modelValue": w[1] || (w[1] = (lA) => Z.value = lA),
|
|
2389
2389
|
style: { height: "700px", width: "1800px" }
|
|
2390
2390
|
}, {
|
|
2391
2391
|
default: M(() => [
|
|
2392
|
-
|
|
2392
|
+
X(kn, { files: bA.value }, null, 8, ["files"])
|
|
2393
2393
|
]),
|
|
2394
2394
|
_: 1
|
|
2395
2395
|
}, 8, ["modelValue"]),
|
|
2396
|
-
je(
|
|
2396
|
+
je(X(W, { class: "client-container" }, {
|
|
2397
2397
|
default: M(() => [
|
|
2398
|
-
|
|
2398
|
+
X(BA, { class: "client-structure-header" }, {
|
|
2399
2399
|
default: M(() => [
|
|
2400
2400
|
H("div", Uf, [
|
|
2401
|
-
|
|
2401
|
+
X(S, {
|
|
2402
2402
|
id: "transparentBgButton",
|
|
2403
2403
|
onClick: a(ut)
|
|
2404
2404
|
}, {
|
|
2405
|
-
default: M(() =>
|
|
2405
|
+
default: M(() => w[5] || (w[5] = [
|
|
2406
2406
|
pe(" 返回页面 ")
|
|
2407
2407
|
])),
|
|
2408
2408
|
_: 1,
|
|
2409
2409
|
__: [5]
|
|
2410
2410
|
}, 8, ["onClick"]),
|
|
2411
|
-
|
|
2411
|
+
X(S, {
|
|
2412
2412
|
id: "transparentBgButton",
|
|
2413
|
-
onClick:
|
|
2414
|
-
var
|
|
2415
|
-
return a(gt)((G = (
|
|
2413
|
+
onClick: w[2] || (w[2] = (lA) => {
|
|
2414
|
+
var T, G;
|
|
2415
|
+
return a(gt)((G = (T = a(t)) == null ? void 0 : T.map((rA) => rA.value)) == null ? void 0 : G.join("/"));
|
|
2416
2416
|
})
|
|
2417
2417
|
}, {
|
|
2418
2418
|
icon: M(() => [
|
|
2419
|
-
|
|
2419
|
+
X(le, { name: "Store" })
|
|
2420
2420
|
]),
|
|
2421
2421
|
default: M(() => [
|
|
2422
|
-
|
|
2422
|
+
w[6] || (w[6] = pe(" 保存页面 "))
|
|
2423
2423
|
]),
|
|
2424
2424
|
_: 1,
|
|
2425
2425
|
__: [6]
|
|
2426
2426
|
})
|
|
2427
2427
|
]),
|
|
2428
2428
|
H("div", Tf, [
|
|
2429
|
-
|
|
2430
|
-
breadArray: a(
|
|
2429
|
+
X(hn, {
|
|
2430
|
+
breadArray: a(t),
|
|
2431
2431
|
onClick: a(Hn)
|
|
2432
2432
|
}, null, 8, ["breadArray", "onClick"])
|
|
2433
2433
|
]),
|
|
2434
2434
|
H("div", Zf, [
|
|
2435
2435
|
We(E.$slots, "default", {}, void 0, !0),
|
|
2436
|
-
|
|
2436
|
+
X(xn, {
|
|
2437
2437
|
size: 35,
|
|
2438
2438
|
disabled: !0,
|
|
2439
2439
|
userInfo: a(gA)
|
|
@@ -2442,20 +2442,20 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2442
2442
|
]),
|
|
2443
2443
|
_: 3
|
|
2444
2444
|
}),
|
|
2445
|
-
a(m) === "edit" ? (z(), xA(
|
|
2445
|
+
a(m) === "edit" ? (z(), xA(W, {
|
|
2446
2446
|
key: 0,
|
|
2447
2447
|
class: "model-operate",
|
|
2448
2448
|
style: { "margin-top": "10px", height: "0px" }
|
|
2449
2449
|
}, {
|
|
2450
2450
|
default: M(() => [
|
|
2451
2451
|
H("div", Yf, [
|
|
2452
|
-
|
|
2452
|
+
X(Sn)
|
|
2453
2453
|
]),
|
|
2454
2454
|
H("div", Gf, [
|
|
2455
|
-
|
|
2455
|
+
X(Jn)
|
|
2456
2456
|
]),
|
|
2457
2457
|
H("div", Ff, [
|
|
2458
|
-
|
|
2458
|
+
X(Ln)
|
|
2459
2459
|
])
|
|
2460
2460
|
]),
|
|
2461
2461
|
_: 1
|
|
@@ -2465,25 +2465,25 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2465
2465
|
}, 512), [
|
|
2466
2466
|
[Re, a(m) === "edit"]
|
|
2467
2467
|
]),
|
|
2468
|
-
je((z(), xA(
|
|
2468
|
+
je((z(), xA(W, {
|
|
2469
2469
|
class: "client-container",
|
|
2470
2470
|
"element-loading-text": "正在加载页面数据..."
|
|
2471
2471
|
}, {
|
|
2472
2472
|
default: M(() => [
|
|
2473
|
-
|
|
2473
|
+
X(kn, {
|
|
2474
2474
|
class: "client-body",
|
|
2475
2475
|
files: a(dA).files,
|
|
2476
2476
|
"three-data": a(dA)
|
|
2477
2477
|
}, {
|
|
2478
2478
|
"top-menu": M(() => [
|
|
2479
|
-
|
|
2479
|
+
X(Nf, null, Jt({
|
|
2480
2480
|
menu: M(({ menu: lA }) => [
|
|
2481
2481
|
H("div", {
|
|
2482
2482
|
class: "top-icon",
|
|
2483
2483
|
title: lA.title,
|
|
2484
|
-
onClick: (
|
|
2484
|
+
onClick: (T) => HA(lA)
|
|
2485
2485
|
}, [
|
|
2486
|
-
|
|
2486
|
+
X(le, {
|
|
2487
2487
|
name: lA.icon,
|
|
2488
2488
|
class: Ke(["menu-icon", { active: lA.title === Q.value }])
|
|
2489
2489
|
}, null, 8, ["name", "class"])
|
|
@@ -2498,10 +2498,10 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2498
2498
|
key: 0,
|
|
2499
2499
|
class: "top-icon",
|
|
2500
2500
|
title: "界面修改",
|
|
2501
|
-
onClick:
|
|
2501
|
+
onClick: w[3] || (w[3] = //@ts-ignore
|
|
2502
2502
|
(...lA) => a(pn) && a(pn)(...lA))
|
|
2503
2503
|
}, [
|
|
2504
|
-
|
|
2504
|
+
X(le, {
|
|
2505
2505
|
name: "界面修改",
|
|
2506
2506
|
class: "menu-icon"
|
|
2507
2507
|
})
|
|
@@ -2511,7 +2511,7 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2511
2511
|
title: "登出",
|
|
2512
2512
|
onClick: $A
|
|
2513
2513
|
}, [
|
|
2514
|
-
|
|
2514
|
+
X(le, {
|
|
2515
2515
|
name: "退出",
|
|
2516
2516
|
size: 24,
|
|
2517
2517
|
class: "menu-icon"
|
|
@@ -2524,20 +2524,20 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2524
2524
|
]), 1024)
|
|
2525
2525
|
]),
|
|
2526
2526
|
"management-menu": M(() => [
|
|
2527
|
-
|
|
2527
|
+
X(at, {
|
|
2528
2528
|
name: "子菜单",
|
|
2529
2529
|
size: "24",
|
|
2530
|
-
onClick:
|
|
2530
|
+
onClick: U,
|
|
2531
2531
|
active: iA.value,
|
|
2532
2532
|
title: "菜单"
|
|
2533
2533
|
}, null, 8, ["active"])
|
|
2534
2534
|
]),
|
|
2535
2535
|
"management-page": M(() => [
|
|
2536
|
-
|
|
2536
|
+
X(at, {
|
|
2537
2537
|
name: "yemian",
|
|
2538
2538
|
size: "24",
|
|
2539
|
-
onClick:
|
|
2540
|
-
active:
|
|
2539
|
+
onClick: x,
|
|
2540
|
+
active: n.value,
|
|
2541
2541
|
title: "数据管理"
|
|
2542
2542
|
}, null, 8, ["active"])
|
|
2543
2543
|
]),
|
|
@@ -2573,14 +2573,14 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2573
2573
|
ref: e,
|
|
2574
2574
|
onMousedown: Ue
|
|
2575
2575
|
}, null, 544),
|
|
2576
|
-
a(eA) ? (z(), xA(
|
|
2576
|
+
a(eA) ? (z(), xA(W, {
|
|
2577
2577
|
key: 1,
|
|
2578
2578
|
class: "client-body"
|
|
2579
2579
|
}, {
|
|
2580
2580
|
default: M(() => [
|
|
2581
|
-
|
|
2581
|
+
X(h, { class: "client-main" }, {
|
|
2582
2582
|
default: M(() => {
|
|
2583
|
-
var lA,
|
|
2583
|
+
var lA, T, G, rA, XA, ZA;
|
|
2584
2584
|
return [
|
|
2585
2585
|
je((z(), q("div", {
|
|
2586
2586
|
class: "client-main-operate",
|
|
@@ -2588,10 +2588,10 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2588
2588
|
ref: hA,
|
|
2589
2589
|
"element-loading-text": "正在加载页面数据..."
|
|
2590
2590
|
}, [
|
|
2591
|
-
((
|
|
2592
|
-
|
|
2591
|
+
((T = a(eA)) == null ? void 0 : T[((lA = a(eA)) == null ? void 0 : lA.length) - 1]) === a(O) || (G = a(eA)) != null && G.includes("updateLoading") || (rA = a(eA)) != null && rA.includes("loading") ? (z(), q("div", $f, [
|
|
2592
|
+
X(De, {
|
|
2593
2593
|
class: "calculator-content back-content",
|
|
2594
|
-
onClickTrigger:
|
|
2594
|
+
onClickTrigger: w[4] || (w[4] = (F) => a(dt)()),
|
|
2595
2595
|
modelValue: "返回"
|
|
2596
2596
|
})
|
|
2597
2597
|
])) : CA("", !0),
|
|
@@ -2649,20 +2649,20 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2649
2649
|
})) : CA("", !0)
|
|
2650
2650
|
])
|
|
2651
2651
|
], 4), [
|
|
2652
|
-
[Re,
|
|
2652
|
+
[Re, n.value]
|
|
2653
2653
|
]),
|
|
2654
2654
|
je(H("div", la, [
|
|
2655
2655
|
H("div", { class: "panel-header" }, [
|
|
2656
|
-
|
|
2656
|
+
w[7] || (w[7] = H("span", null, " 菜单树 ", -1)),
|
|
2657
2657
|
H("span", {
|
|
2658
2658
|
class: "close",
|
|
2659
2659
|
onClick: oA
|
|
2660
2660
|
}, " X ")
|
|
2661
2661
|
]),
|
|
2662
2662
|
H("div", fa, [
|
|
2663
|
-
|
|
2663
|
+
X(W, { class: "client-body" }, {
|
|
2664
2664
|
default: M(() => [
|
|
2665
|
-
|
|
2665
|
+
X(Rf, { onNodeClick: tA })
|
|
2666
2666
|
]),
|
|
2667
2667
|
_: 1
|
|
2668
2668
|
})
|
|
@@ -2674,24 +2674,24 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2674
2674
|
};
|
|
2675
2675
|
}
|
|
2676
2676
|
}), va = /* @__PURE__ */ Le(ca, [["__scopeId", "data-v-1864bc45"]]), ra = qe(qA), { loginUserInfo: Pe } = MA(ra), ua = be(), ga = async () => {
|
|
2677
|
-
var j, s, c, I, l, r
|
|
2678
|
-
let P = await
|
|
2677
|
+
var j, s, c, I, l, r;
|
|
2678
|
+
let P = await Ht({
|
|
2679
2679
|
platId: parseInt((j = Pe == null ? void 0 : Pe.value) == null ? void 0 : j.plat_id),
|
|
2680
2680
|
pageName: "menu"
|
|
2681
2681
|
});
|
|
2682
2682
|
if (((c = (s = P == null ? void 0 : P.data) == null ? void 0 : s.result) == null ? void 0 : c.length) > 0) {
|
|
2683
|
-
let
|
|
2684
|
-
var
|
|
2685
|
-
return ((
|
|
2686
|
-
})) == null ? void 0 : r.
|
|
2687
|
-
var
|
|
2688
|
-
return (
|
|
2683
|
+
let p = (r = (l = (I = P == null ? void 0 : P.data) == null ? void 0 : I.result) == null ? void 0 : l.filter((O) => {
|
|
2684
|
+
var L, t;
|
|
2685
|
+
return ((t = O == null ? void 0 : O.object_name) == null ? void 0 : t[((L = O == null ? void 0 : O.object_name) == null ? void 0 : L.length) - 1]) !== "/" && (O == null ? void 0 : O.is_show);
|
|
2686
|
+
})) == null ? void 0 : r.map((O) => {
|
|
2687
|
+
var L;
|
|
2688
|
+
return (L = O == null ? void 0 : O.object_name) == null ? void 0 : L.replaceAll("**^", "/");
|
|
2689
2689
|
});
|
|
2690
|
-
|
|
2690
|
+
p = [...new Set(p)], p = gl(p), ua.setRawMenus(p ?? []);
|
|
2691
2691
|
}
|
|
2692
2692
|
}, da = async (P) => {
|
|
2693
2693
|
var j, s, c;
|
|
2694
|
-
await
|
|
2694
|
+
await ul({
|
|
2695
2695
|
platId: parseInt((j = Pe == null ? void 0 : Pe.value) == null ? void 0 : j.plat_id),
|
|
2696
2696
|
userName: (s = Pe == null ? void 0 : Pe.value) == null ? void 0 : s.user_name,
|
|
2697
2697
|
password: (c = Pe == null ? void 0 : Pe.value) == null ? void 0 : c.password,
|
|
@@ -2704,11 +2704,11 @@ const kt = (P) => {
|
|
|
2704
2704
|
var j, s, c;
|
|
2705
2705
|
return !!((c = (s = ge(P, "@")) == null ? void 0 : s[((j = ge(P, "@")) == null ? void 0 : j.length) - 1]) != null && c.includes("Form"));
|
|
2706
2706
|
}, ia = (P, j, s, c) => {
|
|
2707
|
-
var l, r,
|
|
2707
|
+
var l, r, p, O, L, t, Z, b, R, $, _, o, N, fA, sA, jA, pA, hA, bA, wA, JA, gA;
|
|
2708
2708
|
let I = P;
|
|
2709
2709
|
if (kt(I == null ? void 0 : I[0])) {
|
|
2710
|
-
let V =
|
|
2711
|
-
return m = (
|
|
2710
|
+
let V = Gt(I), m = (p = (r = (l = I == null ? void 0 : I[0]) == null ? void 0 : l.replace("@", kA)) == null ? void 0 : r.split(kA)) == null ? void 0 : p[1];
|
|
2711
|
+
return m = (O = ge(m, ":")) == null ? void 0 : O[0], (m == null ? void 0 : m[(m == null ? void 0 : m.length) - 1]) === ":" && (m = m == null ? void 0 : m.slice(0, (m == null ? void 0 : m.length) - 1)), m = (t = (L = m == null ? void 0 : m.replace("(", kA)) == null ? void 0 : L.split(kA)) == null ? void 0 : t[1], m = m == null ? void 0 : m.slice(0, (m == null ? void 0 : m.length) - 1), m = (b = (Z = ge(m, ",")) == null ? void 0 : Z.map((EA) => (EA = "@" + EA, EA))) == null ? void 0 : b.join(""), {
|
|
2712
2712
|
key: "Form",
|
|
2713
2713
|
name: V == null ? void 0 : V.groupName,
|
|
2714
2714
|
value: V == null ? void 0 : V.formContents,
|
|
@@ -2716,34 +2716,34 @@ const kt = (P) => {
|
|
|
2716
2716
|
filter: "(" + m + ")"
|
|
2717
2717
|
};
|
|
2718
2718
|
} else {
|
|
2719
|
-
let V =
|
|
2719
|
+
let V = it(I, c), m = (_ = ($ = (R = V == null ? void 0 : V.tableFilter) == null ? void 0 : R.replace("(", kA)) == null ? void 0 : $.split(kA)) == null ? void 0 : _[0];
|
|
2720
2720
|
return {
|
|
2721
2721
|
key: "Table",
|
|
2722
2722
|
name: V == null ? void 0 : V.groupName,
|
|
2723
2723
|
tableColumns: V == null ? void 0 : V.tableColumns,
|
|
2724
2724
|
tableContents: j === 1 ? V == null ? void 0 : V.tableContents : [(o = V == null ? void 0 : V.tableContents) == null ? void 0 : o[s]],
|
|
2725
2725
|
filter: V == null ? void 0 : V.tableFilter,
|
|
2726
|
-
quotePage: m !== "" ? ((sA = (fA = (
|
|
2726
|
+
quotePage: m !== "" ? ((sA = (fA = (N = m == null ? void 0 : m.replace("*", kA)) == null ? void 0 : N.split(kA)) == null ? void 0 : fA[0]) == null ? void 0 : sA.replaceAll(":", "/")) ?? "" : void 0,
|
|
2727
2727
|
quoteGroup: m !== "" ? ((gA = (JA = (wA = (bA = (hA = (pA = (jA = m == null ? void 0 : m.replace("*", kA)) == null ? void 0 : jA.split(kA)) == null ? void 0 : pA[1]) == null ? void 0 : hA.replace("{", kA)) == null ? void 0 : bA.split(kA)) == null ? void 0 : wA[0]) == null ? void 0 : JA.split(":")) == null ? void 0 : gA.filter((EA) => EA !== "")) ?? [] : []
|
|
2728
2728
|
};
|
|
2729
2729
|
}
|
|
2730
2730
|
}, oa = (P, j) => {
|
|
2731
|
-
var c, I, l, r,
|
|
2731
|
+
var c, I, l, r, p, O, L, t, Z, b, R, $, _, o, N, fA, sA, jA, pA, hA, bA, wA, JA, gA, V, m, EA, zA, DA, mA, FA, _A, VA;
|
|
2732
2732
|
let s = (I = (c = ge(P, "=")) == null ? void 0 : c.filter((D) => D !== "=")) == null ? void 0 : I.map((D) => ((D == null ? void 0 : D[(D == null ? void 0 : D.length) - 1]) === "=" && (D = D == null ? void 0 : D.slice(0, (D == null ? void 0 : D.length) - 1)), D));
|
|
2733
2733
|
if (kt(s == null ? void 0 : s[1])) {
|
|
2734
|
-
let D =
|
|
2735
|
-
PA = PA == null ? void 0 : PA.slice(0, (PA == null ? void 0 : PA.length) - 1), PA = (
|
|
2734
|
+
let D = Ft(s), eA = (p = (r = (l = D == null ? void 0 : D.filter) == null ? void 0 : l.replace("@", kA)) == null ? void 0 : r.split(kA)) == null ? void 0 : p[0], PA = (t = (L = (O = D == null ? void 0 : D.filter) == null ? void 0 : O.replace("(", kA)) == null ? void 0 : L.split(kA)) == null ? void 0 : t[1];
|
|
2735
|
+
PA = PA == null ? void 0 : PA.slice(0, (PA == null ? void 0 : PA.length) - 1), PA = (b = (Z = ge(PA, ",")) == null ? void 0 : Z.map((Y) => (Y = "@" + Y, Y))) == null ? void 0 : b.join("");
|
|
2736
2736
|
let dA = eA + "(" + PA + ")";
|
|
2737
2737
|
return {
|
|
2738
2738
|
key: "Form",
|
|
2739
2739
|
name: D == null ? void 0 : D.group,
|
|
2740
2740
|
filter: dA,
|
|
2741
2741
|
formPage: ((_ = ($ = (R = eA == null ? void 0 : eA.replace("*", kA)) == null ? void 0 : R.split(kA)) == null ? void 0 : $[0]) == null ? void 0 : _.replaceAll(":", "/")) ?? "",
|
|
2742
|
-
formGroup: ((hA = (pA = (jA = (sA = (fA = (
|
|
2742
|
+
formGroup: ((hA = (pA = (jA = (sA = (fA = (N = (o = eA == null ? void 0 : eA.replace("*", kA)) == null ? void 0 : o.split(kA)) == null ? void 0 : N[1]) == null ? void 0 : fA.replace("{", kA)) == null ? void 0 : sA.split(kA)) == null ? void 0 : jA[0]) == null ? void 0 : pA.split(":")) == null ? void 0 : hA.filter((Y) => Y !== "")) ?? [],
|
|
2743
2743
|
value: []
|
|
2744
2744
|
};
|
|
2745
2745
|
} else {
|
|
2746
|
-
let D =
|
|
2746
|
+
let D = it(s, j, s == null ? void 0 : s[1]), eA = (JA = (wA = (bA = D == null ? void 0 : D.tableFilter) == null ? void 0 : bA.replace("(", kA)) == null ? void 0 : wA.split(kA)) == null ? void 0 : JA[0];
|
|
2747
2747
|
return {
|
|
2748
2748
|
key: "Table",
|
|
2749
2749
|
name: D == null ? void 0 : D.groupName,
|
|
@@ -2757,33 +2757,33 @@ const kt = (P) => {
|
|
|
2757
2757
|
let s = [], c = j == null ? void 0 : j.length;
|
|
2758
2758
|
return j == null || j.forEach((I, l) => {
|
|
2759
2759
|
let r = [];
|
|
2760
|
-
I == null || I.forEach((
|
|
2761
|
-
var
|
|
2762
|
-
r.push(
|
|
2760
|
+
I == null || I.forEach((p) => {
|
|
2761
|
+
var O, L;
|
|
2762
|
+
r.push(p), ((O = ge(P, "=")) == null ? void 0 : O.length) <= 2 ? ((L = ge(P, "=")) == null ? void 0 : L.length) === 0 || r.push(ia(ge(P, "="), c, l, p)) : r.push(oa(P, p));
|
|
2763
2763
|
}), s.push(r);
|
|
2764
2764
|
}), s;
|
|
2765
2765
|
};
|
|
2766
2766
|
let xe = "/", jn = "$";
|
|
2767
2767
|
const xt = (P, j = []) => {
|
|
2768
2768
|
let s = (P == null ? void 0 : P.map((l) => {
|
|
2769
|
-
var r,
|
|
2770
|
-
return (
|
|
2769
|
+
var r, p;
|
|
2770
|
+
return (p = l == null ? void 0 : l.key) == null ? void 0 : p.slice(1, (r = l == null ? void 0 : l.key) == null ? void 0 : r.length);
|
|
2771
2771
|
})) ?? [], c = [];
|
|
2772
2772
|
s == null || s.forEach((l) => {
|
|
2773
|
-
var r,
|
|
2773
|
+
var r, p, O, L, t, Z, b, R, $, _, o;
|
|
2774
2774
|
if (l != null && l.includes(jn)) {
|
|
2775
|
-
l = (
|
|
2776
|
-
let
|
|
2777
|
-
(
|
|
2778
|
-
path: ((
|
|
2779
|
-
fatherPath:
|
|
2775
|
+
l = (O = (p = (r = l == null ? void 0 : l.replaceAll(":", "/")) == null ? void 0 : r.replaceAll("{", "")) == null ? void 0 : p.replaceAll("}", "")) == null ? void 0 : O.replaceAll("[Any]", "");
|
|
2776
|
+
let N = (L = l == null ? void 0 : l.split(jn)) == null ? void 0 : L[0];
|
|
2777
|
+
(N == null ? void 0 : N[(N == null ? void 0 : N.length) - 1]) === "/" && (N = N == null ? void 0 : N.slice(0, (N == null ? void 0 : N.length) - 1), N = N + xe), c == null || c.push({
|
|
2778
|
+
path: ((t = N == null ? void 0 : N.split("/")) == null ? void 0 : t[0]) + "/" + ((b = (Z = l == null ? void 0 : l.split(jn)) == null ? void 0 : Z[1]) == null ? void 0 : b.replaceAll("==", xe)),
|
|
2779
|
+
fatherPath: N
|
|
2780
2780
|
});
|
|
2781
2781
|
} else
|
|
2782
|
-
(l == null ? void 0 : l[(l == null ? void 0 : l.length) - 1]) === ":" && (l = l == null ? void 0 : l.slice(0, (l == null ? void 0 : l.length) - 1)), l = (R = l == null ? void 0 : l.replaceAll(":", "/")) == null ? void 0 : R.replaceAll("[Any]", ""), l != null && l.includes("[") ? (l = l == null ? void 0 : l.replaceAll("]", ""), (o = (_ = ($ = l == null ? void 0 : l.split("[")) == null ? void 0 : $[1]) == null ? void 0 : _.split(",")) == null || o.forEach((
|
|
2782
|
+
(l == null ? void 0 : l[(l == null ? void 0 : l.length) - 1]) === ":" && (l = l == null ? void 0 : l.slice(0, (l == null ? void 0 : l.length) - 1)), l = (R = l == null ? void 0 : l.replaceAll(":", "/")) == null ? void 0 : R.replaceAll("[Any]", ""), l != null && l.includes("[") ? (l = l == null ? void 0 : l.replaceAll("]", ""), (o = (_ = ($ = l == null ? void 0 : l.split("[")) == null ? void 0 : $[1]) == null ? void 0 : _.split(",")) == null || o.forEach((N) => {
|
|
2783
2783
|
var sA;
|
|
2784
2784
|
let fA = (sA = l == null ? void 0 : l.split("[")) == null ? void 0 : sA[0];
|
|
2785
2785
|
(fA == null ? void 0 : fA[(fA == null ? void 0 : fA.length) - 1]) === "/" && (fA = fA == null ? void 0 : fA.slice(0, (fA == null ? void 0 : fA.length) - 1)), c == null || c.push({
|
|
2786
|
-
path: fA + xe +
|
|
2786
|
+
path: fA + xe + N
|
|
2787
2787
|
});
|
|
2788
2788
|
})) : ((l == null ? void 0 : l[(l == null ? void 0 : l.length) - 1]) === "/" && (l = l == null ? void 0 : l.slice(0, (l == null ? void 0 : l.length) - 1), l = l + xe), c == null || c.push({
|
|
2789
2789
|
path: l
|
|
@@ -2791,18 +2791,18 @@ const xt = (P, j = []) => {
|
|
|
2791
2791
|
});
|
|
2792
2792
|
let I = GA(c);
|
|
2793
2793
|
return (j == null ? void 0 : j.length) > 0 && (I = j), I = I == null ? void 0 : I.filter((l) => {
|
|
2794
|
-
var r,
|
|
2795
|
-
return !(l != null && l.fatherPath) && ((
|
|
2794
|
+
var r, p, O, L;
|
|
2795
|
+
return !(l != null && l.fatherPath) && ((p = (r = l == null ? void 0 : l.path) == null ? void 0 : r.split(xe)) == null ? void 0 : p.length) > 1 && ((L = (O = l == null ? void 0 : l.path) == null ? void 0 : O.split(xe)) == null ? void 0 : L[1]) === "";
|
|
2796
2796
|
}), I = I == null ? void 0 : I.map((l) => {
|
|
2797
2797
|
var r;
|
|
2798
2798
|
return l.path = (r = l.path) == null ? void 0 : r.replace(xe, ""), l.path;
|
|
2799
2799
|
}), (I == null ? void 0 : I.length) > 0 && (c = c == null ? void 0 : c.map((l) => {
|
|
2800
|
-
var
|
|
2800
|
+
var p, O, L, t, Z, b, R;
|
|
2801
2801
|
let r = I == null ? void 0 : I.find(($) => {
|
|
2802
2802
|
var _;
|
|
2803
2803
|
return (_ = l == null ? void 0 : l.path) == null ? void 0 : _.includes($);
|
|
2804
2804
|
});
|
|
2805
|
-
return !(l != null && l.fatherPath) && r && !((
|
|
2805
|
+
return !(l != null && l.fatherPath) && r && !((p = l == null ? void 0 : l.path) != null && p.includes(xe)) && !(I != null && I.find(($) => (l == null ? void 0 : l.path) === $)) && (l.path = r + xe + ((R = (L = (O = l == null ? void 0 : l.path) == null ? void 0 : O.split(r)) == null ? void 0 : L[1]) == null ? void 0 : R.slice(1, (b = (Z = (t = l == null ? void 0 : l.path) == null ? void 0 : t.split(r)) == null ? void 0 : Z[1]) == null ? void 0 : b.length))), l;
|
|
2806
2806
|
})), c;
|
|
2807
2807
|
}, Ca = (P, j) => xt([{
|
|
2808
2808
|
key: P
|
|
@@ -2818,17 +2818,17 @@ const xt = (P, j = []) => {
|
|
|
2818
2818
|
};
|
|
2819
2819
|
let Ae = "$R";
|
|
2820
2820
|
const ht = (P, j, s, c) => {
|
|
2821
|
-
var l, r,
|
|
2822
|
-
let I = ((r = (l = j.get(P == null ? void 0 : P.quotePage)) == null ? void 0 : l.contents) == null ? void 0 : r.find((_) =>
|
|
2823
|
-
if (!Array.isArray(I) && ((
|
|
2821
|
+
var l, r, p, O, L, t, Z, b, R, $;
|
|
2822
|
+
let I = ((r = (l = j.get(P == null ? void 0 : P.quotePage)) == null ? void 0 : l.contents) == null ? void 0 : r.find((_) => bn((c == null ? void 0 : c.quoteGroup) ?? [], _ == null ? void 0 : _.name))) ?? ((p = j.get(P == null ? void 0 : P.quotePage)) == null ? void 0 : p.contents) ?? [];
|
|
2823
|
+
if (!Array.isArray(I) && ((O = I == null ? void 0 : I.tableColumns) == null ? void 0 : O.length) > 0) {
|
|
2824
2824
|
let _ = GA(I);
|
|
2825
|
-
return !(_ != null && _.filter) || (_ == null ? void 0 : _.filter) === "" ? _.filter = P == null ? void 0 : P.filter : _.filter = ((
|
|
2825
|
+
return !(_ != null && _.filter) || (_ == null ? void 0 : _.filter) === "" ? _.filter = P == null ? void 0 : P.filter : _.filter = ((t = _.filter) == null ? void 0 : t.slice(0, ((L = _.filter) == null ? void 0 : L.length) - 1)) + "," + ((R = (b = (Z = P == null ? void 0 : P.filter) == null ? void 0 : Z.replace("(", Ae)) == null ? void 0 : b.split(Ae)) == null ? void 0 : R[1]), _.name = [...s, ...I == null ? void 0 : I.name], [_];
|
|
2826
2826
|
} else if (I) {
|
|
2827
2827
|
Array.isArray(I) || (I = [I]);
|
|
2828
2828
|
let _ = [];
|
|
2829
2829
|
return ($ = GA(I)) == null || $.forEach((o) => {
|
|
2830
|
-
var
|
|
2831
|
-
if (!(o != null && o.filter) || ((
|
|
2830
|
+
var N, fA, sA, jA, pA, hA, bA, wA, JA, gA, V, m, EA, zA, DA, mA, FA, _A, VA;
|
|
2831
|
+
if (!(o != null && o.filter) || ((N = o == null ? void 0 : o.tableColumns) == null ? void 0 : N.length) > 0 || ((fA = o == null ? void 0 : o.value) == null ? void 0 : fA.length) > 0) {
|
|
2832
2832
|
!(o != null && o.filter) || (o == null ? void 0 : o.filter) === "" ? o.filter = P == null ? void 0 : P.filter : o.filter = ((jA = o.filter) == null ? void 0 : jA.slice(0, ((sA = o.filter) == null ? void 0 : sA.length) - 1)) + "," + ((bA = (hA = (pA = P == null ? void 0 : P.filter) == null ? void 0 : pA.replace("(", Ae)) == null ? void 0 : hA.split(Ae)) == null ? void 0 : bA[1]);
|
|
2833
2833
|
let D = (gA = (JA = (wA = o == null ? void 0 : o.filter) == null ? void 0 : wA.replace("(", Ae)) == null ? void 0 : JA.split(Ae)) == null ? void 0 : gA[1];
|
|
2834
2834
|
D = D == null ? void 0 : D.slice(0, (D == null ? void 0 : D.length) - 1), D = ge(D, ","), ((V = o == null ? void 0 : o.tableContents) == null ? void 0 : V.length) > 0 && (D != null && D.filter((eA) => eA == null ? void 0 : eA.includes("@Type"))) && ((EA = (m = D == null ? void 0 : D.filter((eA) => eA == null ? void 0 : eA.includes("@Type"))) == null ? void 0 : m.filter((eA) => eA == null ? void 0 : eA.includes("Manual"))) == null ? void 0 : EA.length) > 0 && (o.tableContents = []), o.name = [...s, ...o == null ? void 0 : o.name], _.push(GA(o));
|
|
@@ -2841,95 +2841,95 @@ const ht = (P, j, s, c) => {
|
|
|
2841
2841
|
return [];
|
|
2842
2842
|
}, Ea = (P) => {
|
|
2843
2843
|
let j = [], s = xt(P), c = /* @__PURE__ */ new Map();
|
|
2844
|
-
s == null || s.forEach((
|
|
2845
|
-
c != null && c.has(
|
|
2844
|
+
s == null || s.forEach((p) => {
|
|
2845
|
+
c != null && c.has(p.path) || c.set(p.path, p);
|
|
2846
2846
|
}), s = [...c.values()], j.push({
|
|
2847
2847
|
key: "menuPath",
|
|
2848
2848
|
contents: s
|
|
2849
2849
|
});
|
|
2850
|
-
const I = P.map((
|
|
2850
|
+
const I = P.map((p) => Ia(p, GA(s)));
|
|
2851
2851
|
let l = /* @__PURE__ */ new Map();
|
|
2852
|
-
I == null || I.forEach((
|
|
2853
|
-
|
|
2854
|
-
var
|
|
2855
|
-
let
|
|
2856
|
-
if (l.has(
|
|
2857
|
-
let
|
|
2858
|
-
|
|
2859
|
-
(
|
|
2860
|
-
}), l.get(
|
|
2852
|
+
I == null || I.forEach((p) => {
|
|
2853
|
+
p == null || p.forEach((O) => {
|
|
2854
|
+
var t;
|
|
2855
|
+
let L = (t = O == null ? void 0 : O.find((Z) => (Z == null ? void 0 : Z.key) === "path")) == null ? void 0 : t.value;
|
|
2856
|
+
if (l.has(L)) {
|
|
2857
|
+
let Z = l.get(L).contents;
|
|
2858
|
+
O == null || O.forEach((b) => {
|
|
2859
|
+
(b == null ? void 0 : b.key) !== "path" && (Z == null || Z.push(b));
|
|
2860
|
+
}), l.get(L).contents = Z;
|
|
2861
2861
|
} else {
|
|
2862
|
-
let
|
|
2863
|
-
|
|
2864
|
-
(R == null ? void 0 : R.key) !== "path" && (
|
|
2865
|
-
}), l.set(
|
|
2866
|
-
key:
|
|
2867
|
-
contents:
|
|
2862
|
+
let Z = L, b = [];
|
|
2863
|
+
O == null || O.forEach((R) => {
|
|
2864
|
+
(R == null ? void 0 : R.key) !== "path" && (b == null || b.push(R));
|
|
2865
|
+
}), l.set(L, {
|
|
2866
|
+
key: Z,
|
|
2867
|
+
contents: b
|
|
2868
2868
|
});
|
|
2869
2869
|
}
|
|
2870
2870
|
});
|
|
2871
2871
|
});
|
|
2872
2872
|
let r = [...l.values()];
|
|
2873
|
-
return r = r == null ? void 0 : r.map((
|
|
2874
|
-
var
|
|
2875
|
-
let
|
|
2876
|
-
return (
|
|
2877
|
-
var
|
|
2878
|
-
if ((
|
|
2879
|
-
if (((
|
|
2880
|
-
let dA = ((R = (
|
|
2873
|
+
return r = r == null ? void 0 : r.map((p) => {
|
|
2874
|
+
var L;
|
|
2875
|
+
let O = [];
|
|
2876
|
+
return (L = p.contents) == null || L.forEach((t) => {
|
|
2877
|
+
var Z, b, R, $, _, o, N, fA, sA, jA, pA, hA, bA, wA, JA, gA, V, m, EA, zA, DA, mA, FA, _A, VA, D, eA, PA;
|
|
2878
|
+
if ((t == null ? void 0 : t.filter) !== "" && (t != null && t.filter) && (t != null && t.quotePage)) {
|
|
2879
|
+
if (((Z = t == null ? void 0 : t.tableColumns) == null ? void 0 : Z.length) === 0) {
|
|
2880
|
+
let dA = ((R = (b = l.get(t == null ? void 0 : t.quotePage)) == null ? void 0 : b.contents) == null ? void 0 : R.find((Y) => bn(t == null ? void 0 : t.quoteGroup, Y == null ? void 0 : Y.name))) ?? (($ = l.get(t == null ? void 0 : t.quotePage)) == null ? void 0 : $.contents) ?? [];
|
|
2881
2881
|
if (!Array.isArray(dA) && ((_ = dA == null ? void 0 : dA.tableColumns) == null ? void 0 : _.length) > 0) {
|
|
2882
|
-
|
|
2883
|
-
let Y = (fA = (
|
|
2884
|
-
Y = Y == null ? void 0 : Y.slice(0, (Y == null ? void 0 : Y.length) - 1), Y = ge(Y, ","), Y != null && Y.find((k) => k == null ? void 0 : k.includes("@Type")) && !((sA = Y == null ? void 0 : Y.find((k) => k == null ? void 0 : k.includes("@Type"))) != null && sA.includes("Manual")) && (
|
|
2882
|
+
t.tableColumns = dA == null ? void 0 : dA.tableColumns;
|
|
2883
|
+
let Y = (fA = (N = (o = t == null ? void 0 : t.filter) == null ? void 0 : o.replace("(", Ae)) == null ? void 0 : N.split(Ae)) == null ? void 0 : fA[1];
|
|
2884
|
+
Y = Y == null ? void 0 : Y.slice(0, (Y == null ? void 0 : Y.length) - 1), Y = ge(Y, ","), Y != null && Y.find((k) => k == null ? void 0 : k.includes("@Type")) && !((sA = Y == null ? void 0 : Y.find((k) => k == null ? void 0 : k.includes("@Type"))) != null && sA.includes("Manual")) && (t.tableContents = dA == null ? void 0 : dA.tableContents), O.push(t);
|
|
2885
2885
|
} else {
|
|
2886
2886
|
let Y = [];
|
|
2887
2887
|
Array.isArray(dA) || (dA = [dA]), (jA = GA(dA)) == null || jA.forEach((k) => {
|
|
2888
|
-
var $A, ne, ce, de, A,
|
|
2888
|
+
var $A, ne, ce, de, A, n, g, e, f, u, i, v, d, x, C, HA, QA, WA, SA;
|
|
2889
2889
|
if (!(k != null && k.filter) || (($A = k == null ? void 0 : k.tableColumns) == null ? void 0 : $A.length) > 0 || ((ne = k == null ? void 0 : k.value) == null ? void 0 : ne.length) > 0) {
|
|
2890
|
-
k.name = [...
|
|
2890
|
+
k.name = [...t == null ? void 0 : t.name, ...k == null ? void 0 : k.name], !(k != null && k.filter) || (k == null ? void 0 : k.filter) === "" ? k.filter = t == null ? void 0 : t.filter : k.filter = ((de = k.filter) == null ? void 0 : de.slice(0, ((ce = k.filter) == null ? void 0 : ce.length) - 1)) + "," + ((g = (n = (A = t == null ? void 0 : t.filter) == null ? void 0 : A.replace("(", Ae)) == null ? void 0 : n.split(Ae)) == null ? void 0 : g[1]);
|
|
2891
2891
|
let RA = (u = (f = (e = k == null ? void 0 : k.filter) == null ? void 0 : e.replace("(", Ae)) == null ? void 0 : f.split(Ae)) == null ? void 0 : u[1];
|
|
2892
2892
|
RA = RA == null ? void 0 : RA.slice(0, (RA == null ? void 0 : RA.length) - 1), RA = ge(RA, ","), ((i = k == null ? void 0 : k.tableContents) == null ? void 0 : i.length) > 0 && (RA != null && RA.find((fe) => fe == null ? void 0 : fe.includes("@Type"))) && ((v = RA == null ? void 0 : RA.find((fe) => fe == null ? void 0 : fe.includes("@Type"))) != null && v.includes("Manual")) && (k.tableContents = []), Y.push(k);
|
|
2893
2893
|
} else
|
|
2894
|
-
!(k != null && k.filter) || (k == null ? void 0 : k.filter) === "" ? k.filter =
|
|
2894
|
+
!(k != null && k.filter) || (k == null ? void 0 : k.filter) === "" ? k.filter = t == null ? void 0 : t.filter : k.filter = ((x = k.filter) == null ? void 0 : x.slice(0, ((d = k.filter) == null ? void 0 : d.length) - 1)) + "," + ((QA = (HA = (C = t == null ? void 0 : t.filter) == null ? void 0 : C.replace("(", Ae)) == null ? void 0 : HA.split(Ae)) == null ? void 0 : QA[1]), (SA = ht(k, l, ((WA = t == null ? void 0 : t.name) == null ? void 0 : WA.length) > 0 ? t == null ? void 0 : t.name : [...t == null ? void 0 : t.name, ...k == null ? void 0 : k.name], t)) == null || SA.forEach((RA) => {
|
|
2895
2895
|
Y.push(GA(RA));
|
|
2896
2896
|
});
|
|
2897
2897
|
}), Y == null || Y.forEach((k) => {
|
|
2898
|
-
|
|
2898
|
+
O.push(k);
|
|
2899
2899
|
});
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
|
-
} else if ((
|
|
2903
|
-
let dA =
|
|
2902
|
+
} else if ((t == null ? void 0 : t.filter) !== "" && (t != null && t.filter) && ((pA = t == null ? void 0 : t.value) == null ? void 0 : pA.length) === 0) {
|
|
2903
|
+
let dA = t == null ? void 0 : t.formPage;
|
|
2904
2904
|
(dA == null ? void 0 : dA[(dA == null ? void 0 : dA.length) - 1]) === "/" && (dA = dA == null ? void 0 : dA.slice(0, (dA == null ? void 0 : dA.length) - 1));
|
|
2905
|
-
let Y = (bA = (hA = l.get(dA)) == null ? void 0 : hA.contents) == null ? void 0 : bA.find((k) =>
|
|
2906
|
-
!Array.isArray(Y) && (((wA = Y == null ? void 0 : Y.value) == null ? void 0 : wA.length) > 0 || ((JA = Y == null ? void 0 : Y.tableColumns) == null ? void 0 : JA.length) > 0) && (((gA = Y == null ? void 0 : Y.value) == null ? void 0 : gA.length) > 0 ?
|
|
2905
|
+
let Y = (bA = (hA = l.get(dA)) == null ? void 0 : hA.contents) == null ? void 0 : bA.find((k) => bn(t == null ? void 0 : t.formGroup, k == null ? void 0 : k.name));
|
|
2906
|
+
!Array.isArray(Y) && (((wA = Y == null ? void 0 : Y.value) == null ? void 0 : wA.length) > 0 || ((JA = Y == null ? void 0 : Y.tableColumns) == null ? void 0 : JA.length) > 0) && (((gA = Y == null ? void 0 : Y.value) == null ? void 0 : gA.length) > 0 ? t.value = Y == null ? void 0 : Y.value : (t.value = (m = (V = GA(Y)) == null ? void 0 : V.tableColumns) == null ? void 0 : m.map((k) => {
|
|
2907
2907
|
var $A;
|
|
2908
2908
|
return k.disabled = !0, k.width = ($A = Y == null ? void 0 : Y.tableColumns) == null ? void 0 : $A.length, k;
|
|
2909
|
-
}),
|
|
2910
|
-
} else if (((DA =
|
|
2911
|
-
let dA = ((VA = (_A = (FA =
|
|
2909
|
+
}), t.filter = t.filter === "" ? "(@Related: true)" : ((zA = t.filter) == null ? void 0 : zA.slice(0, ((EA = t.filter) == null ? void 0 : EA.length) - 1)) + ",@Related: true)")), O.push(t);
|
|
2910
|
+
} else if (((DA = t == null ? void 0 : t.tableContents) == null ? void 0 : DA.length) > 0 && ((mA = t == null ? void 0 : t.tableColumns) == null ? void 0 : mA.length) === 0) {
|
|
2911
|
+
let dA = ((VA = (_A = (FA = p == null ? void 0 : p.key) == null ? void 0 : FA.split("/")) == null ? void 0 : _A.filter((Y, k) => {
|
|
2912
2912
|
var $A, ne;
|
|
2913
|
-
return k !== ((ne = ($A =
|
|
2913
|
+
return k !== ((ne = ($A = p == null ? void 0 : p.key) == null ? void 0 : $A.split("/")) == null ? void 0 : ne.length) - 1;
|
|
2914
2914
|
})) == null ? void 0 : VA.join("/")) + "/";
|
|
2915
|
-
|
|
2915
|
+
t.tableColumns = (PA = (eA = (D = l == null ? void 0 : l.get(dA)) == null ? void 0 : D.contents) == null ? void 0 : eA.find((Y) => {
|
|
2916
2916
|
var k;
|
|
2917
2917
|
return ((k = Y == null ? void 0 : Y.tableColumns) == null ? void 0 : k.length) > 0;
|
|
2918
|
-
})) == null ? void 0 : PA.tableColumns,
|
|
2918
|
+
})) == null ? void 0 : PA.tableColumns, O.push(t);
|
|
2919
2919
|
} else
|
|
2920
|
-
|
|
2921
|
-
}),
|
|
2920
|
+
O.push(t);
|
|
2921
|
+
}), p.contents = O, p;
|
|
2922
2922
|
}), j = [...j, ...r], j;
|
|
2923
2923
|
}, Ba = (P) => {
|
|
2924
|
-
var I, l, r,
|
|
2924
|
+
var I, l, r, p, O, L, t;
|
|
2925
2925
|
let j = ge(P, "*"), s, c;
|
|
2926
|
-
return (j == null ? void 0 : j.length) > 1 || !((I = j == null ? void 0 : j[0]) != null && I.includes("==")) ? (s = j == null ? void 0 : j[0], (s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1]) === "*" && (s = s == null ? void 0 : s.slice(0, (s == null ? void 0 : s.length) - 1)), c = (l = j == null ? void 0 : j.filter((
|
|
2926
|
+
return (j == null ? void 0 : j.length) > 1 || !((I = j == null ? void 0 : j[0]) != null && I.includes("==")) ? (s = j == null ? void 0 : j[0], (s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1]) === "*" && (s = s == null ? void 0 : s.slice(0, (s == null ? void 0 : s.length) - 1)), c = (l = j == null ? void 0 : j.filter((Z, b) => b !== 0)) == null ? void 0 : l.join(""), c = c ? "*" + c : "") : (s = (p = (r = P == null ? void 0 : P.replace("==", Ae)) == null ? void 0 : r.split(Ae)) == null ? void 0 : p[0], c = (L = (O = P == null ? void 0 : P.replace("==", Ae)) == null ? void 0 : O.split(Ae)) == null ? void 0 : L[1]), s = (t = s == null ? void 0 : s.replaceAll("{", "")) == null ? void 0 : t.replaceAll("}", ""), (s == null ? void 0 : s[0]) !== "$" && (c = GA(s) + (c ?? ""), s = ""), {
|
|
2927
2927
|
key: s,
|
|
2928
2928
|
value: c
|
|
2929
2929
|
};
|
|
2930
2930
|
}, za = (P) => {
|
|
2931
2931
|
var I, l;
|
|
2932
|
-
let j =
|
|
2932
|
+
let j = Vt(P, [",", ":"]);
|
|
2933
2933
|
j = (I = j == null ? void 0 : j.filter((r) => r !== "")) == null ? void 0 : I.map((r) => r.replaceAll(",", ","));
|
|
2934
2934
|
let s = (l = j == null ? void 0 : j.filter((r) => !r.includes("/*") && !r.includes("*/"))) == null ? void 0 : l.map((r) => Ba(r));
|
|
2935
2935
|
return Ea(s);
|
|
@@ -2965,9 +2965,9 @@ const ht = (P, j, s, c) => {
|
|
|
2965
2965
|
},
|
|
2966
2966
|
emits: ["buildContent", "showChild"],
|
|
2967
2967
|
setup(P, { emit: j }) {
|
|
2968
|
-
const s = Ne(qA), c = Qn(qA), I = be(), l =
|
|
2969
|
-
|
|
2970
|
-
},
|
|
2968
|
+
const s = Ne(qA), c = Qn(qA), I = be(), l = J(!0), r = P, p = j, O = (b) => {
|
|
2969
|
+
p("showChild", b);
|
|
2970
|
+
}, L = ee(() => {
|
|
2971
2971
|
switch (r == null ? void 0 : r.platform) {
|
|
2972
2972
|
case "browser":
|
|
2973
2973
|
return $t;
|
|
@@ -2976,59 +2976,59 @@ const ht = (P, j, s, c) => {
|
|
|
2976
2976
|
case "three":
|
|
2977
2977
|
return qt;
|
|
2978
2978
|
}
|
|
2979
|
-
}),
|
|
2979
|
+
}), t = (b) => {
|
|
2980
2980
|
const R = document.documentElement;
|
|
2981
|
-
|
|
2981
|
+
b == null || b.forEach(($) => {
|
|
2982
2982
|
R.style.setProperty($.name, $.value);
|
|
2983
2983
|
});
|
|
2984
2984
|
};
|
|
2985
|
-
YA(() => r.platform, (
|
|
2986
|
-
|
|
2985
|
+
YA(() => r.platform, (b, R) => {
|
|
2986
|
+
b && t(L.value);
|
|
2987
2987
|
}, { immediate: !0 });
|
|
2988
|
-
const
|
|
2989
|
-
|
|
2988
|
+
const Z = () => {
|
|
2989
|
+
p("buildContent");
|
|
2990
2990
|
};
|
|
2991
2991
|
return YA(
|
|
2992
2992
|
() => [r == null ? void 0 : r.content, r == null ? void 0 : r.jsonContents],
|
|
2993
2993
|
async () => {
|
|
2994
|
-
var
|
|
2994
|
+
var b, R, $, _;
|
|
2995
2995
|
try {
|
|
2996
|
-
if (((
|
|
2996
|
+
if (((b = r == null ? void 0 : r.jsonContents) == null ? void 0 : b.length) > 0 || !(r != null && r.content) || ((R = r == null ? void 0 : r.content) == null ? void 0 : R.length) === 0) return;
|
|
2997
2997
|
l.value = !0, I.setImportLoading(!0);
|
|
2998
|
-
let o = [],
|
|
2998
|
+
let o = [], N = [];
|
|
2999
2999
|
c.setSelectTitle([]), c.setSelectIndex(""), c.setSelectMenu(""), (_ = ($ = r == null ? void 0 : r.content) == null ? void 0 : $.filter((fA) => fA !== "")) == null || _.forEach((fA) => {
|
|
3000
|
-
|
|
3001
|
-
}), o =
|
|
3000
|
+
N.push(za(fA));
|
|
3001
|
+
}), o = N == null ? void 0 : N[0], await da(o), s.setOriginalData(o);
|
|
3002
3002
|
} catch {
|
|
3003
3003
|
Oe.error("模型内容错误");
|
|
3004
3004
|
}
|
|
3005
3005
|
I.setImportLoading(!1);
|
|
3006
3006
|
},
|
|
3007
3007
|
{ deep: !0, immediate: !0 }
|
|
3008
|
-
), (
|
|
3008
|
+
), (b, R) => (z(), q("div", Qa, [
|
|
3009
3009
|
P.platform === "three" ? (z(), xA(va, {
|
|
3010
3010
|
key: 0,
|
|
3011
3011
|
windowConfig: P.windowConfig,
|
|
3012
3012
|
showButton: r == null ? void 0 : r.showButton,
|
|
3013
|
-
onBuildContent:
|
|
3014
|
-
onShowChild:
|
|
3013
|
+
onBuildContent: Z,
|
|
3014
|
+
onShowChild: O,
|
|
3015
3015
|
platform: r == null ? void 0 : r.platform
|
|
3016
3016
|
}, {
|
|
3017
3017
|
default: M(() => [
|
|
3018
|
-
We(
|
|
3018
|
+
We(b.$slots, "default", {}, void 0, !0)
|
|
3019
3019
|
]),
|
|
3020
3020
|
_: 3
|
|
3021
3021
|
}, 8, ["windowConfig", "showButton", "platform"])) : (z(), xA(Sf, {
|
|
3022
3022
|
key: 1,
|
|
3023
3023
|
windowConfig: P.windowConfig,
|
|
3024
3024
|
showButton: r == null ? void 0 : r.showButton,
|
|
3025
|
-
onBuildContent:
|
|
3026
|
-
onShowChild:
|
|
3025
|
+
onBuildContent: Z,
|
|
3026
|
+
onShowChild: O,
|
|
3027
3027
|
platform: r == null ? void 0 : r.platform,
|
|
3028
3028
|
taskContent: r.urdfContent
|
|
3029
3029
|
}, {
|
|
3030
3030
|
default: M(() => [
|
|
3031
|
-
We(
|
|
3031
|
+
We(b.$slots, "default", {}, void 0, !0)
|
|
3032
3032
|
]),
|
|
3033
3033
|
_: 3
|
|
3034
3034
|
}, 8, ["windowConfig", "showButton", "platform", "taskContent"]))
|
|
@@ -3080,7 +3080,7 @@ const ht = (P, j, s, c) => {
|
|
|
3080
3080
|
},
|
|
3081
3081
|
emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
|
|
3082
3082
|
setup(P, { emit: j }) {
|
|
3083
|
-
const s = P, c = j, I =
|
|
3083
|
+
const s = P, c = j, I = J([]), l = J(0), r = J([]), p = J([]), O = J(0), L = Ne(qA), t = be(qA), { originalData: Z } = MA(L), { platform: b } = MA(t), R = J(null), $ = J(0), _ = J([]), o = J(0), N = J([]), fA = qe(), { loginUserInfo: sA, systemKey: jA } = MA(fA), pA = () => {
|
|
3084
3084
|
c("buildContent");
|
|
3085
3085
|
};
|
|
3086
3086
|
YA(
|
|
@@ -3107,19 +3107,19 @@ const ht = (P, j, s, c) => {
|
|
|
3107
3107
|
}), e[C.name] = Ue, e[C.name + "Content"] = C;
|
|
3108
3108
|
}
|
|
3109
3109
|
}), e.extra = v;
|
|
3110
|
-
const d = await Pl(),
|
|
3111
|
-
e.singleRobotData = d, e.doubleRobotData =
|
|
3110
|
+
const d = await Pl(), x = await Cl();
|
|
3111
|
+
e.singleRobotData = d, e.doubleRobotData = x, c("threeData", e);
|
|
3112
3112
|
}
|
|
3113
3113
|
},
|
|
3114
3114
|
{ deep: !0, immediate: !0 }
|
|
3115
3115
|
);
|
|
3116
3116
|
const hA = (e) => {
|
|
3117
|
-
|
|
3117
|
+
N.value = e, c("openThreeBuild", e);
|
|
3118
3118
|
};
|
|
3119
3119
|
YA(
|
|
3120
3120
|
() => s == null ? void 0 : s.pathContent,
|
|
3121
3121
|
() => {
|
|
3122
|
-
(s == null ? void 0 : s.pathContent) !== "" &&
|
|
3122
|
+
(s == null ? void 0 : s.pathContent) !== "" && L.setSystemPath(s == null ? void 0 : s.pathContent);
|
|
3123
3123
|
},
|
|
3124
3124
|
{
|
|
3125
3125
|
deep: !0,
|
|
@@ -3135,7 +3135,7 @@ const ht = (P, j, s, c) => {
|
|
|
3135
3135
|
return (i == null ? void 0 : i.comp) === "Form" && (i.compData = (v = i.compData) == null ? void 0 : v.map((d) => ((d == null ? void 0 : d.key) === "formContent" && (d.contents = Lt(d == null ? void 0 : d.contents)), d))), i;
|
|
3136
3136
|
});
|
|
3137
3137
|
c("change", {
|
|
3138
|
-
originalContents:
|
|
3138
|
+
originalContents: Z.value,
|
|
3139
3139
|
currentContents: e == null ? void 0 : e.wholeValue,
|
|
3140
3140
|
editContent: e == null ? void 0 : e.editValue,
|
|
3141
3141
|
arrayToContents: f
|
|
@@ -3151,15 +3151,15 @@ const ht = (P, j, s, c) => {
|
|
|
3151
3151
|
const JA = () => {
|
|
3152
3152
|
R.value !== null && R.value.click();
|
|
3153
3153
|
}, gA = async (e) => {
|
|
3154
|
-
|
|
3154
|
+
t.setActiveMenuPath(""), t.setActiveTopMenuPath(""), t.setAsideMenus([]);
|
|
3155
3155
|
const f = e.target.files;
|
|
3156
3156
|
if (!f) return;
|
|
3157
3157
|
I.value = [], r.value = [], o.value = f.length;
|
|
3158
3158
|
const u = Array.from(f).map(async (i) => await new Promise((v) => {
|
|
3159
3159
|
const d = new FileReader();
|
|
3160
|
-
d.onload = (
|
|
3160
|
+
d.onload = (x) => {
|
|
3161
3161
|
try {
|
|
3162
|
-
r.value.push(
|
|
3162
|
+
r.value.push(x.target.result), $.value++;
|
|
3163
3163
|
} catch (C) {
|
|
3164
3164
|
console.error("解析失败:", C);
|
|
3165
3165
|
return;
|
|
@@ -3171,21 +3171,21 @@ const ht = (P, j, s, c) => {
|
|
|
3171
3171
|
YA(
|
|
3172
3172
|
() => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
|
|
3173
3173
|
async () => {
|
|
3174
|
-
await
|
|
3174
|
+
await al(), I.value = s.content, p.value = s == null ? void 0 : s.jsonContents;
|
|
3175
3175
|
},
|
|
3176
3176
|
{ deep: !0, immediate: !0 }
|
|
3177
3177
|
), YA(
|
|
3178
3178
|
() => $.value,
|
|
3179
3179
|
() => {
|
|
3180
3180
|
var e;
|
|
3181
|
-
((e = _.value) == null ? void 0 : e.length) !== 0 && (
|
|
3181
|
+
((e = _.value) == null ? void 0 : e.length) !== 0 && (L.setOriginalData(_.value), L.setItemData(_.value));
|
|
3182
3182
|
},
|
|
3183
3183
|
{ deep: !0, immediate: !0 }
|
|
3184
3184
|
);
|
|
3185
|
-
const V =
|
|
3185
|
+
const V = J({
|
|
3186
3186
|
targetModel: "",
|
|
3187
3187
|
modelName: ""
|
|
3188
|
-
}), m =
|
|
3188
|
+
}), m = J([]), EA = J(!1), zA = ee(() => {
|
|
3189
3189
|
const e = (m == null ? void 0 : m.value) || [];
|
|
3190
3190
|
if (!e.length)
|
|
3191
3191
|
return !1;
|
|
@@ -3194,7 +3194,7 @@ const ht = (P, j, s, c) => {
|
|
|
3194
3194
|
}), DA = () => {
|
|
3195
3195
|
EA.value = !1;
|
|
3196
3196
|
}, mA = async () => {
|
|
3197
|
-
var v, d,
|
|
3197
|
+
var v, d, x;
|
|
3198
3198
|
const e = (v = sA == null ? void 0 : sA.value) == null ? void 0 : v.account, f = (d = sA == null ? void 0 : sA.value) == null ? void 0 : d.password;
|
|
3199
3199
|
if (!e)
|
|
3200
3200
|
return;
|
|
@@ -3204,7 +3204,7 @@ const ht = (P, j, s, c) => {
|
|
|
3204
3204
|
"tableData.password": f
|
|
3205
3205
|
}
|
|
3206
3206
|
});
|
|
3207
|
-
let i = ((
|
|
3207
|
+
let i = ((x = u == null ? void 0 : u.data) == null ? void 0 : x.result) || [];
|
|
3208
3208
|
return i = i == null ? void 0 : i.filter((C) => {
|
|
3209
3209
|
var QA, WA;
|
|
3210
3210
|
return ((WA = (QA = C == null ? void 0 : C.value) == null ? void 0 : QA.tableData) == null ? void 0 : WA.account) === e;
|
|
@@ -3223,15 +3223,15 @@ const ht = (P, j, s, c) => {
|
|
|
3223
3223
|
}, D = (e) => {
|
|
3224
3224
|
sessionStorage.setItem("systemKey", e), fA.setSystemKey(e), ol();
|
|
3225
3225
|
}, eA = async (e) => {
|
|
3226
|
-
var f, u, i, v, d,
|
|
3226
|
+
var f, u, i, v, d, x, C;
|
|
3227
3227
|
try {
|
|
3228
|
-
const HA = await
|
|
3228
|
+
const HA = await dl({
|
|
3229
3229
|
platId: parseInt(e)
|
|
3230
3230
|
});
|
|
3231
3231
|
if (((f = HA == null ? void 0 : HA.data) == null ? void 0 : f.code) === 200) {
|
|
3232
3232
|
const QA = (v = (i = (u = HA == null ? void 0 : HA.data) == null ? void 0 : u.result) == null ? void 0 : i[0]) == null ? void 0 : v.plat_type;
|
|
3233
3233
|
let WA = "browser";
|
|
3234
|
-
QA === "制造系统" && (WA = "client"), QA === "三维系统" && (WA = "three"),
|
|
3234
|
+
QA === "制造系统" && (WA = "client"), QA === "三维系统" && (WA = "three"), t.setPlatform(WA), t.setPlatName(((C = (x = (d = HA == null ? void 0 : HA.data) == null ? void 0 : d.result) == null ? void 0 : x[0]) == null ? void 0 : C.plat_name) ?? "");
|
|
3235
3235
|
}
|
|
3236
3236
|
} catch (HA) {
|
|
3237
3237
|
return Promise.reject(HA);
|
|
@@ -3258,8 +3258,8 @@ const ht = (P, j, s, c) => {
|
|
|
3258
3258
|
}, k = async () => {
|
|
3259
3259
|
const e = await Y();
|
|
3260
3260
|
return e == null ? void 0 : e.reduce((u, i) => {
|
|
3261
|
-
var
|
|
3262
|
-
const v = ((
|
|
3261
|
+
var x;
|
|
3262
|
+
const v = ((x = i == null ? void 0 : i.key) == null ? void 0 : x.systemKey) || -1, d = Number(v);
|
|
3263
3263
|
return Math.max(d, u);
|
|
3264
3264
|
}, 0);
|
|
3265
3265
|
}, $A = async () => {
|
|
@@ -3287,70 +3287,70 @@ const ht = (P, j, s, c) => {
|
|
|
3287
3287
|
});
|
|
3288
3288
|
}, A = async () => {
|
|
3289
3289
|
V.value.targetModel = "", await VA();
|
|
3290
|
-
},
|
|
3290
|
+
}, n = async (e) => {
|
|
3291
3291
|
var i, v;
|
|
3292
|
-
|
|
3293
|
-
const f = await mA().catch((d) => (
|
|
3292
|
+
t.setImportLoading(!0);
|
|
3293
|
+
const f = await mA().catch((d) => (t.setImportLoading(!1), Oe.error("删除失败"), Promise.reject(d))), u = f == null ? void 0 : f.find((d) => {
|
|
3294
3294
|
var C;
|
|
3295
|
-
const
|
|
3296
|
-
return e ===
|
|
3295
|
+
const x = (C = d == null ? void 0 : d.key) == null ? void 0 : C.systemKey;
|
|
3296
|
+
return e === x;
|
|
3297
3297
|
});
|
|
3298
|
-
if (u && (f == null ? void 0 : f.length) === 1 && await ce(u).catch((d) => (
|
|
3298
|
+
if (u && (f == null ? void 0 : f.length) === 1 && await ce(u).catch((d) => (t.setImportLoading(!1), Oe.error("删除失败"), Promise.reject(d))), u && (f == null ? void 0 : f.length) > 1) {
|
|
3299
3299
|
const d = await Be({
|
|
3300
3300
|
key: {
|
|
3301
3301
|
systemKey: e
|
|
3302
3302
|
}
|
|
3303
3303
|
});
|
|
3304
|
-
if (d.catch((
|
|
3305
|
-
const
|
|
3306
|
-
await de(
|
|
3304
|
+
if (d.catch((x) => (t.setImportLoading(!1), Oe.error("删除失败"), Promise.reject(x))), ((i = d == null ? void 0 : d.data) == null ? void 0 : i.code) === 200) {
|
|
3305
|
+
const x = (v = d == null ? void 0 : d.data) == null ? void 0 : v.result;
|
|
3306
|
+
await de(x).catch((C) => (t.setImportLoading(!1), Oe.error("删除失败"), Promise.reject(C)));
|
|
3307
3307
|
}
|
|
3308
3308
|
}
|
|
3309
|
-
await A(),
|
|
3309
|
+
await A(), t.setImportLoading(!1), Oe.success("删除成功");
|
|
3310
3310
|
};
|
|
3311
3311
|
YA(() => jA.value, (e) => {
|
|
3312
3312
|
(s == null ? void 0 : s.oldSystemKey) === "" && (V.value.targetModel = e, eA(e));
|
|
3313
3313
|
}, { deep: !0, immediate: !0 });
|
|
3314
3314
|
const g = async () => {
|
|
3315
3315
|
var f, u;
|
|
3316
|
-
|
|
3317
|
-
const e = await
|
|
3316
|
+
t.setImportLoading(!0);
|
|
3317
|
+
const e = await il({
|
|
3318
3318
|
platId: parseInt((f = sA == null ? void 0 : sA.value) == null ? void 0 : f.plat_id)
|
|
3319
3319
|
});
|
|
3320
|
-
((u = e == null ? void 0 : e.data) == null ? void 0 : u.code) === 200 && (
|
|
3320
|
+
((u = e == null ? void 0 : e.data) == null ? void 0 : u.code) === 200 && (t.setRawMenus([]), L.setRefreshCurStructure(!0)), t.setImportLoading(!1);
|
|
3321
3321
|
};
|
|
3322
3322
|
return (e, f) => {
|
|
3323
3323
|
const u = TA("svg-icon"), i = TA("el-button");
|
|
3324
3324
|
return z(), q("div", Oa, [
|
|
3325
3325
|
(s == null ? void 0 : s.mode) === "edit" ? (z(), q("div", ja, [
|
|
3326
3326
|
H("div", Ha, [
|
|
3327
|
-
|
|
3327
|
+
X(Sn)
|
|
3328
3328
|
]),
|
|
3329
3329
|
(z(), q("div", {
|
|
3330
3330
|
class: "model-show",
|
|
3331
|
-
key:
|
|
3331
|
+
key: O.value
|
|
3332
3332
|
}, [
|
|
3333
|
-
|
|
3333
|
+
X(Jn)
|
|
3334
3334
|
])),
|
|
3335
3335
|
H("div", pa, [
|
|
3336
|
-
|
|
3336
|
+
X(Ln)
|
|
3337
3337
|
])
|
|
3338
3338
|
])) : CA("", !0),
|
|
3339
3339
|
(s == null ? void 0 : s.mode) === "view" ? (z(), q("div", ba, [
|
|
3340
3340
|
(z(), xA(Xa, {
|
|
3341
3341
|
showButton: s == null ? void 0 : s.showButton,
|
|
3342
|
-
platform: a(
|
|
3342
|
+
platform: a(b),
|
|
3343
3343
|
content: I.value,
|
|
3344
3344
|
onChange: wA,
|
|
3345
|
-
jsonContents:
|
|
3345
|
+
jsonContents: p.value,
|
|
3346
3346
|
onContentChange: bA,
|
|
3347
3347
|
onBuildContent: pA,
|
|
3348
|
-
key:
|
|
3348
|
+
key: O.value,
|
|
3349
3349
|
onShowChild: hA,
|
|
3350
|
-
urdfContent:
|
|
3350
|
+
urdfContent: N.value
|
|
3351
3351
|
}, {
|
|
3352
3352
|
default: M(() => [
|
|
3353
|
-
|
|
3353
|
+
X(wn, null, {
|
|
3354
3354
|
dropTitle: M(() => {
|
|
3355
3355
|
var v;
|
|
3356
3356
|
return [
|
|
@@ -3359,7 +3359,7 @@ const ht = (P, j, s, c) => {
|
|
|
3359
3359
|
class: "system-default-button"
|
|
3360
3360
|
}, {
|
|
3361
3361
|
icon: M(() => [
|
|
3362
|
-
|
|
3362
|
+
X(u, { name: "model" })
|
|
3363
3363
|
]),
|
|
3364
3364
|
default: M(() => [
|
|
3365
3365
|
f[0] || (f[0] = pe(" 模型 "))
|
|
@@ -3371,12 +3371,12 @@ const ht = (P, j, s, c) => {
|
|
|
3371
3371
|
}),
|
|
3372
3372
|
dropMenu: M(() => [
|
|
3373
3373
|
H("div", wa, [
|
|
3374
|
-
|
|
3374
|
+
X(i, {
|
|
3375
3375
|
onClick: JA,
|
|
3376
3376
|
style: { width: "100%", margin: "0" }
|
|
3377
3377
|
}, {
|
|
3378
3378
|
icon: M(() => [
|
|
3379
|
-
|
|
3379
|
+
X(u, { name: "import" })
|
|
3380
3380
|
]),
|
|
3381
3381
|
default: M(() => [
|
|
3382
3382
|
(z(), q("input", {
|
|
@@ -3394,9 +3394,9 @@ const ht = (P, j, s, c) => {
|
|
|
3394
3394
|
_: 1,
|
|
3395
3395
|
__: [1]
|
|
3396
3396
|
}),
|
|
3397
|
-
|
|
3397
|
+
X(i, { style: { width: "100%", margin: "0" } }, {
|
|
3398
3398
|
icon: M(() => [
|
|
3399
|
-
|
|
3399
|
+
X(u, { name: "export" })
|
|
3400
3400
|
]),
|
|
3401
3401
|
default: M(() => [
|
|
3402
3402
|
f[2] || (f[2] = pe(" 导出模型 "))
|
|
@@ -3404,12 +3404,12 @@ const ht = (P, j, s, c) => {
|
|
|
3404
3404
|
_: 1,
|
|
3405
3405
|
__: [2]
|
|
3406
3406
|
}),
|
|
3407
|
-
|
|
3407
|
+
X(i, {
|
|
3408
3408
|
onClick: g,
|
|
3409
3409
|
style: { width: "100%", margin: "0" }
|
|
3410
3410
|
}, {
|
|
3411
3411
|
icon: M(() => [
|
|
3412
|
-
|
|
3412
|
+
X(u, { name: "clear" })
|
|
3413
3413
|
]),
|
|
3414
3414
|
default: M(() => [
|
|
3415
3415
|
f[3] || (f[3] = pe(" 清空模型 "))
|
|
@@ -3425,7 +3425,7 @@ const ht = (P, j, s, c) => {
|
|
|
3425
3425
|
_: 1
|
|
3426
3426
|
}, 8, ["showButton", "platform", "content", "jsonContents", "urdfContent"]))
|
|
3427
3427
|
])) : CA("", !0),
|
|
3428
|
-
|
|
3428
|
+
X(zn, {
|
|
3429
3429
|
class: "select-model-dialog",
|
|
3430
3430
|
visible: EA.value && (s == null ? void 0 : s.oldSystemKey) === "",
|
|
3431
3431
|
onBeforeDestroy: DA,
|
|
@@ -3443,7 +3443,7 @@ const ht = (P, j, s, c) => {
|
|
|
3443
3443
|
H("div", xa, [
|
|
3444
3444
|
f[4] || (f[4] = H("div", { class: "create-project-title" }, " 新建项目 ", -1)),
|
|
3445
3445
|
H("div", ha, [
|
|
3446
|
-
|
|
3446
|
+
X(De, {
|
|
3447
3447
|
emptyColor: !0,
|
|
3448
3448
|
onClickTrigger: $A,
|
|
3449
3449
|
modelValue: "创建项目",
|
|
@@ -3454,28 +3454,28 @@ const ht = (P, j, s, c) => {
|
|
|
3454
3454
|
H("div", Sa, [
|
|
3455
3455
|
f[5] || (f[5] = H("div", { class: "enter-project-title" }, "项目列表", -1)),
|
|
3456
3456
|
(v = m.value) != null && v.length ? (z(), q("div", Ja, [
|
|
3457
|
-
(z(!0), q(ue, null, Ee(m.value, (
|
|
3457
|
+
(z(!0), q(ue, null, Ee(m.value, (x) => {
|
|
3458
3458
|
var C;
|
|
3459
3459
|
return z(), q("div", {
|
|
3460
3460
|
class: Ke(["project-item", {
|
|
3461
|
-
"project-item-active": (
|
|
3461
|
+
"project-item-active": (x == null ? void 0 : x.systemKey) == V.value.targetModel
|
|
3462
3462
|
}]),
|
|
3463
|
-
onClick: (HA) => PA(
|
|
3463
|
+
onClick: (HA) => PA(x == null ? void 0 : x.systemKey)
|
|
3464
3464
|
}, [
|
|
3465
|
-
H("div", ma, UA(`${
|
|
3465
|
+
H("div", ma, UA(`${x.name ?? ""}(${x.systemKey})`), 1),
|
|
3466
3466
|
H("div", Ra, [
|
|
3467
3467
|
((C = m.value) == null ? void 0 : C.length) > 1 ? (z(), xA(u, {
|
|
3468
3468
|
key: 0,
|
|
3469
3469
|
class: "project-delete",
|
|
3470
3470
|
name: "shanchu1",
|
|
3471
|
-
onClick: (HA) =>
|
|
3471
|
+
onClick: (HA) => n(x == null ? void 0 : x.systemKey)
|
|
3472
3472
|
}, null, 8, ["onClick"])) : CA("", !0)
|
|
3473
3473
|
])
|
|
3474
3474
|
], 10, La);
|
|
3475
3475
|
}), 256))
|
|
3476
3476
|
])) : CA("", !0),
|
|
3477
3477
|
H("div", Ka, [
|
|
3478
|
-
|
|
3478
|
+
X(De, {
|
|
3479
3479
|
class: Ke({ "enter-button-disable": !((d = m.value) != null && d.length) }),
|
|
3480
3480
|
emptyColor: !0,
|
|
3481
3481
|
onClickTrigger: dA,
|