ss-component-new 1.2.59 → 1.2.61
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/{animationData-FLuoH13j.cjs → animationData-BduUBmUR.cjs} +1 -1
- package/dist/{animationData-CEkMmPAJ.js → animationData-ksWjRBya.js} +1 -1
- package/dist/{index-DkNldOC0.cjs → index-01wgxMDL.cjs} +1 -1
- package/dist/{index-BTwRUubF.js → index-B0wbu4Yi.js} +2 -2
- package/dist/{index-DLU6Qv3w.cjs → index-B7Qvtv0u.cjs} +1 -1
- package/dist/{index-LVKvj2hU.cjs → index-B9v5hZgH.cjs} +1 -1
- package/dist/{index-DuamAhUi.cjs → index-BBuy5K5J.cjs} +1 -1
- package/dist/{index-DXGiAs1G.cjs → index-BGRk7yKa.cjs} +1 -1
- package/dist/{index-BgwYXT31.cjs → index-BZ_4uOOn.cjs} +1 -1
- package/dist/{index--qwZeW47.js → index-Bay7I9Bm.js} +1 -1
- package/dist/{index-FUWILZwY.js → index-Bmu2x9mX.js} +22 -19
- package/dist/{index-CWG2zhJZ.cjs → index-BpuhfaBg.cjs} +1 -1
- package/dist/{index-ChyicQIl.js → index-C2Eyvf5V.js} +1 -1
- package/dist/{index-BxEjroD6.cjs → index-C3gW2PyS.cjs} +1 -1
- package/dist/{index-rPWz6KHn.js → index-CBkHg1j7.js} +2 -2
- package/dist/index-CCWTxFmY.cjs +1 -0
- package/dist/{index-YoJfAd5X.js → index-CK30KLFM.js} +1 -1
- package/dist/index-CKeQA94a.cjs +1 -0
- package/dist/{index-CDW8XzWT.cjs → index-CVmhjMww.cjs} +1 -1
- package/dist/{index-C9C84gkB.cjs → index-CXn5smWf.cjs} +1 -1
- package/dist/{index-DN40xEbb.js → index-CkC7f2YA.js} +2 -2
- package/dist/{index-DNs7ujiq.js → index-CoQ-IzJk.js} +1 -1
- package/dist/{index-DIpWkFjh.cjs → index-Cs5rVLDE.cjs} +1 -1
- package/dist/{index-BiUFu7a_.js → index-D1NeHiNE.js} +334 -339
- package/dist/{index-BFHCLxvz.js → index-D2-lClm5.js} +1 -1
- package/dist/{index-DAJoy_Z5.js → index-D7QHwREN.js} +1 -1
- package/dist/{index-JXXdn01K.cjs → index-DIc7XjOi.cjs} +1 -1
- package/dist/{index-B1U77nyf.cjs → index-DLSVySRQ.cjs} +1 -1
- package/dist/{index-BNES2eKm.js → index-DQs8vKMu.js} +1 -1
- package/dist/{index-gcSJbApQ.cjs → index-DRlQXINk.cjs} +1 -1
- package/dist/{index-DvgAOa6m.js → index-DaJktADu.js} +3 -3
- package/dist/{index-bcbWOGXs.js → index-DhUpDiKd.js} +3 -3
- package/dist/{index-BooTgcW2.js → index-DlMveOaQ.js} +1 -1
- package/dist/{index-BN4opOSk.cjs → index-DlYhArOW.cjs} +1 -1
- package/dist/{index-OLQpbvuS.js → index-Dq1hvZtX.js} +5 -5
- package/dist/{index-DZQjq0ZR.js → index-DqZAVSNH.js} +1 -1
- package/dist/{index-BYIlecoJ.cjs → index-DyiVOF0A.cjs} +1 -1
- package/dist/{index-C8IFPtAJ.js → index-aBQ2sEfI.js} +5 -5
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BypjxmMI.cjs +37 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-D6uh0ooh.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-GWvj-CP4.js} +10159 -10096
- package/dist/index.vue_vue_type_style_index_0_scoped_46e2f5ea_lang-C7FUrOoA.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_46e2f5ea_lang-DvMhRFrq.js +256 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-BUhvhTqt.js → index.vue_vue_type_style_index_1_lang-DqQPBn21.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DDYxgdQk.cjs → index.vue_vue_type_style_index_1_lang-Qv4smhed.cjs} +1 -1
- package/dist/{main-D-bdppOV.cjs → main-DVHpLepU.cjs} +1 -1
- package/dist/{main-ChUyYPuq.js → main-DVImlHpP.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-DcuAlWjb.js → threeModel-C-_-1kt1.js} +2 -2
- package/dist/{threeModel-CDFo3As-.cjs → threeModel-D7w_6Pj0.cjs} +1 -1
- package/dist/{threeSceneView-CAsVH82L.cjs → threeSceneView-CgL4kV3p.cjs} +1 -1
- package/dist/{threeSceneView-Dav7AGkH.js → threeSceneView-DGTBY2Ny.js} +4 -4
- package/dist/{threeSceneViewForCPMPIP-9__8NGa5.cjs → threeSceneViewForCPMPIP-CJCwiWY-.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DxFYivgN.js → threeSceneViewForCPMPIP-evlwiSv-.js} +4 -4
- package/dist/{threeTrackPathView-DXCMl3aZ.js → threeTrackPathView-BDOUYCiU.js} +1 -1
- package/dist/{threeTrackPathView-B7yrSLKq.cjs → threeTrackPathView-DopwJzcl.cjs} +1 -1
- package/dist/{threeViewerHost-D70yS3z2.cjs → threeViewerHost-CUT-oKqD.cjs} +1 -1
- package/dist/{threeViewerHost-BNnzz6WM.js → threeViewerHost-Cl30BkDb.js} +1 -1
- package/dist/{workpieceTreePanel-KdP9UaVe.cjs → workpieceTreePanel-CtfU-Ro2.cjs} +1 -1
- package/dist/{workpieceTreePanel-CCbVIIlm.js → workpieceTreePanel-yp3E4Dho.js} +2 -2
- package/package.json +1 -1
- package/dist/index-CHzlphv9.cjs +0 -1
- package/dist/index-lP-_9Gsb.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bff2sYnQ.cjs +0 -37
- package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-DlyCfLDJ.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-Dt5lXvbN.js +0 -195
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { resolveComponent as oA, createBlock as aA, openBlock as v, withCtx as C, createElementVNode as u, toDisplayString as CA, ref as o, onMounted as rn, watch as kA, createElementBlock as X, Fragment as hA, renderList as FA, createCommentVNode as W, normalizeStyle as Ke, defineComponent as dn, resolveDynamicComponent as he, unref as A, computed as RA, provide as Ve, resolveDirective as Vn, withDirectives as ee, createVNode as a, vShow as ye, createTextVNode as ne, renderSlot as ke, normalizeClass as He, onUnmounted as ut, createSlots as st } from "vue";
|
|
2
|
-
import { m as Qn, a as Xn, b as On } from "./index-
|
|
3
|
-
import "./index.
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as gt, a as rt, b as dt, e as Pt, s as Ct } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-
|
|
6
|
-
import { c as fn, p as XA, s as BA, u as jn, b as
|
|
2
|
+
import { m as Qn, a as Xn, b as On } from "./index-CBkHg1j7.js";
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_46e2f5ea_lang-DvMhRFrq.js";
|
|
4
|
+
import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import { _ as gt, a as rt, b as dt, e as Pt, s as Ct } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-GWvj-CP4.js";
|
|
6
|
+
import { c as fn, p as XA, s as BA, u as jn, b as oe, g as ue, d as qn, E as je, e as Zn, f as ot } from "./index-DsSA-OiE.js";
|
|
7
7
|
import { a as ln, u as vn } from "./index-Ce_gZ72y.js";
|
|
8
8
|
import { S as wA } from "./index-BHtNKL1L.js";
|
|
9
|
-
import { a as Re, s as se, b as Et, c as It, r as HA, o as Se, d as Le, e as _n, f as $n, h as At, i as En, j as et, k as it, t as Bt, l as Fe, m as Pn, n as Cn, p as qe, q as un, u as _e, v as $e, w as An, x as en, y as nn, z as sn, D as zt, A as Qt, B as Xt, C as Yn, E as Gn, F as GA, G as Ot, H as jt, I as nt } from "./index-
|
|
9
|
+
import { a as Re, s as se, b as Et, c as It, r as HA, o as Se, d as Le, e as _n, f as $n, h as At, i as En, j as et, k as it, t as Bt, l as Fe, m as Pn, n as Cn, p as qe, q as un, u as _e, v as $e, w as An, x as en, y as nn, z as sn, D as zt, A as Qt, B as Xt, C as Yn, E as Gn, F as GA, G as Ot, H as jt, I as nt } from "./index-aBQ2sEfI.js";
|
|
10
10
|
import { a as yt } from "./array-BkvrJ2GR.js";
|
|
11
11
|
import { u as yn, g as we, a as tt, l as Ht, b as ft } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZPnZF-N.js";
|
|
12
|
-
import { u as Hn, a as lt } from "./index-
|
|
13
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
12
|
+
import { u as Hn, a as lt } from "./index-DaJktADu.js";
|
|
13
|
+
import "./index.vue_vue_type_style_index_1_lang-DqQPBn21.js";
|
|
14
14
|
import "./index-BIHEqwHC.js";
|
|
15
15
|
import { useRouter as wt } from "vue-router";
|
|
16
|
-
import bt from "./index-
|
|
16
|
+
import bt from "./index-Bmu2x9mX.js";
|
|
17
17
|
import { C as kt } from "./index-NUzOUiu0.js";
|
|
18
|
-
import xt from "./threeModel-
|
|
18
|
+
import xt from "./threeModel-C-_-1kt1.js";
|
|
19
19
|
import { s as gn, _ as be } from "./index-DlClEW8i.js";
|
|
20
|
-
import { d as tn, T as In, g as De, u as pt, a as mt, b as Jt } from "./threeViewerHost-
|
|
21
|
-
import { _ as Bn } from "./index-
|
|
22
|
-
import { s as zn } from "./index-
|
|
20
|
+
import { d as tn, T as In, g as De, u as pt, a as mt, b as Jt } from "./threeViewerHost-Cl30BkDb.js";
|
|
21
|
+
import { _ as Bn } from "./index-DlMveOaQ.js";
|
|
22
|
+
import { s as zn } from "./index-B0wbu4Yi.js";
|
|
23
23
|
import { T as Fn } from "./svgIcon-D-_fXUBL.js";
|
|
24
24
|
import "./index-BEfSpHE6.js";
|
|
25
|
-
import { c as vt, f as St, g as Lt, a as ht, b as Rt } from "./animationData-
|
|
25
|
+
import { c as vt, f as St, g as Lt, a as ht, b as Rt } from "./animationData-ksWjRBya.js";
|
|
26
26
|
import { g as Kt } from "./index-C14Eek69.js";
|
|
27
27
|
import { t as Dt, c as Nt, b as Wt } from "./index-CAPx0_D4.js";
|
|
28
28
|
import { v as Ut } from "./index-CUqOGOM4.js";
|
|
29
29
|
const Mt = (H, lA) => {
|
|
30
30
|
var eA;
|
|
31
|
-
const e = H == null ? void 0 : H.compData,
|
|
32
|
-
return
|
|
31
|
+
const e = H == null ? void 0 : H.compData, k = (eA = e == null ? void 0 : e.find((P) => (P == null ? void 0 : P.key) === "header")) == null ? void 0 : eA.contents;
|
|
32
|
+
return k == null ? void 0 : k.find((P) => {
|
|
33
33
|
const { directiveLabel: nA } = P;
|
|
34
34
|
return nA === lA;
|
|
35
35
|
});
|
|
36
36
|
}, Tt = (H, lA) => {
|
|
37
|
-
const e = Kt(H),
|
|
38
|
-
return
|
|
39
|
-
label:
|
|
37
|
+
const e = Kt(H), k = Mt(H, lA);
|
|
38
|
+
return k ? {
|
|
39
|
+
label: k == null ? void 0 : k.label,
|
|
40
40
|
tableData: e
|
|
41
41
|
} : null;
|
|
42
42
|
}, Zt = (H, lA) => {
|
|
@@ -47,13 +47,13 @@ const Mt = (H, lA) => {
|
|
|
47
47
|
return Tt(H, lA);
|
|
48
48
|
}, Yt = (H, lA) => {
|
|
49
49
|
let e = null;
|
|
50
|
-
for (let
|
|
51
|
-
const AA = H == null ? void 0 : H[
|
|
50
|
+
for (let k = 0; k < H.length && !e; k++) {
|
|
51
|
+
const AA = H == null ? void 0 : H[k], eA = Zt(AA, lA);
|
|
52
52
|
eA && (e = eA);
|
|
53
53
|
}
|
|
54
54
|
return e;
|
|
55
55
|
}, Gt = { class: "menu-title" };
|
|
56
|
-
function Ft(H, lA, e,
|
|
56
|
+
function Ft(H, lA, e, k, AA, eA) {
|
|
57
57
|
const P = oA("ssMenu");
|
|
58
58
|
return v(), aA(P, {
|
|
59
59
|
mode: H.mode,
|
|
@@ -68,7 +68,7 @@ function Ft(H, lA, e, x, AA, eA) {
|
|
|
68
68
|
_: 1
|
|
69
69
|
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
70
70
|
}
|
|
71
|
-
const Vt = /* @__PURE__ */
|
|
71
|
+
const Vt = /* @__PURE__ */ Ee(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421d"]]), qt = { class: "bread-content" }, _t = ["onClick"], $t = {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: "split-title"
|
|
74
74
|
}, Af = {
|
|
@@ -81,13 +81,13 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
81
81
|
},
|
|
82
82
|
emits: ["click"],
|
|
83
83
|
setup(H, { emit: lA }) {
|
|
84
|
-
const e = H,
|
|
84
|
+
const e = H, k = o([]), AA = lA;
|
|
85
85
|
rn(() => {
|
|
86
|
-
|
|
86
|
+
k.value = e == null ? void 0 : e.breadArray;
|
|
87
87
|
}), kA(
|
|
88
88
|
() => e == null ? void 0 : e.breadArray,
|
|
89
89
|
() => {
|
|
90
|
-
|
|
90
|
+
k.value = e == null ? void 0 : e.breadArray;
|
|
91
91
|
},
|
|
92
92
|
{ deep: !0, immediate: !0 }
|
|
93
93
|
);
|
|
@@ -95,7 +95,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
95
95
|
AA("click", P);
|
|
96
96
|
};
|
|
97
97
|
return (P, nA) => (v(), X("div", qt, [
|
|
98
|
-
(v(!0), X(hA, null, FA(
|
|
98
|
+
(v(!0), X(hA, null, FA(k.value, (Y, vA) => {
|
|
99
99
|
var I;
|
|
100
100
|
return v(), X("div", {
|
|
101
101
|
key: vA,
|
|
@@ -104,14 +104,14 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
104
104
|
u("div", {
|
|
105
105
|
class: "bread-title",
|
|
106
106
|
onClick: (iA) => eA(Y),
|
|
107
|
-
style: Ke({ opacity: ((I =
|
|
107
|
+
style: Ke({ opacity: ((I = k.value) == null ? void 0 : I.length) - 1 === vA ? "0.7" : "1" })
|
|
108
108
|
}, CA(Y.value), 13, _t),
|
|
109
|
-
vA !==
|
|
109
|
+
vA !== k.value.length - 1 && Array.isArray(k.value) ? (v(), X("div", $t, CA("/"))) : W("", !0)
|
|
110
110
|
]);
|
|
111
111
|
}), 128))
|
|
112
112
|
]));
|
|
113
113
|
}
|
|
114
|
-
}, at = /* @__PURE__ */
|
|
114
|
+
}, at = /* @__PURE__ */ Ee(Af, [["__scopeId", "data-v-ded7e2bd"]]), Ne = [
|
|
115
115
|
{
|
|
116
116
|
key: "型线生成",
|
|
117
117
|
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"
|
|
@@ -156,13 +156,13 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
156
156
|
},
|
|
157
157
|
emits: ["change", "contentChange"],
|
|
158
158
|
setup(H, { emit: lA }) {
|
|
159
|
-
const e = H,
|
|
159
|
+
const e = H, k = lA, AA = o([]), eA = (nA, Y = "data") => {
|
|
160
160
|
var vA;
|
|
161
|
-
|
|
161
|
+
k("change", nA, Y, {
|
|
162
162
|
url: (vA = e == null ? void 0 : e.componentParam) == null ? void 0 : vA.routerUrl
|
|
163
163
|
});
|
|
164
164
|
}, P = (nA) => {
|
|
165
|
-
|
|
165
|
+
k("contentChange", nA);
|
|
166
166
|
};
|
|
167
167
|
return kA(
|
|
168
168
|
() => e == null ? void 0 : e.dialogItem,
|
|
@@ -171,14 +171,14 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
171
171
|
((nA = e == null ? void 0 : e.componentParam) == null ? void 0 : nA.isEdit) === !0 ? AA.value = (Y = fn(e == null ? void 0 : e.dialogItem)) == null ? void 0 : Y.map((I) => {
|
|
172
172
|
var iA;
|
|
173
173
|
return (I == null ? void 0 : I.comp) === "Form" && (I.compData = (iA = I.compData) == null ? void 0 : iA.map((Z) => {
|
|
174
|
-
var
|
|
175
|
-
return (Z == null ? void 0 : Z.key) === "formContent" && (Z.contents = (
|
|
174
|
+
var G;
|
|
175
|
+
return (Z == null ? void 0 : Z.key) === "formContent" && (Z.contents = (G = Z.contents) == null ? void 0 : G.map((gA) => (gA.type = "Upload", gA))), Z;
|
|
176
176
|
})), I;
|
|
177
177
|
}) : AA.value = (vA = fn(e == null ? void 0 : e.dialogItem)) == null ? void 0 : vA.map((I) => {
|
|
178
178
|
var iA, Z;
|
|
179
|
-
return (I == null ? void 0 : I.comp) === "Table" && (I.compData = (iA = I.compData) == null ? void 0 : iA.filter((
|
|
180
|
-
var
|
|
181
|
-
return (
|
|
179
|
+
return (I == null ? void 0 : I.comp) === "Table" && (I.compData = (iA = I.compData) == null ? void 0 : iA.filter((G) => (G == null ? void 0 : G.key) !== "rowButton" && (G == null ? void 0 : G.key) !== "extraButton"), I.compData = (Z = I.compData) == null ? void 0 : Z.map((G) => {
|
|
180
|
+
var gA;
|
|
181
|
+
return (G == null ? void 0 : G.key) === "header" && (G.contents = (gA = G.contents) == null ? void 0 : gA.filter((zA) => (zA == null ? void 0 : zA.prop) !== "操作")), G;
|
|
182
182
|
})), I;
|
|
183
183
|
});
|
|
184
184
|
},
|
|
@@ -219,37 +219,37 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
219
219
|
emits: ["onExtendTaskEnd"],
|
|
220
220
|
setup(H, { emit: lA }) {
|
|
221
221
|
var zA;
|
|
222
|
-
const e = ln(XA), { pageMapState:
|
|
223
|
-
var OA, JA, KA,
|
|
222
|
+
const e = ln(XA), { pageMapState: k } = BA(e), AA = vn(XA), { activeMenuPath: eA } = BA(AA), P = yn(XA), { originalPath: nA } = BA(P), Y = H, vA = lA, I = o(""), iA = () => {
|
|
223
|
+
var OA, JA, KA, q, te, fe, DA, ge, QA, VA, xA;
|
|
224
224
|
if (!eA.value) return;
|
|
225
|
-
const
|
|
225
|
+
const p = ((JA = (OA = eA.value) == null ? void 0 : OA.split(nA.value)) == null ? void 0 : JA[0]) + nA.value + ((KA = Y == null ? void 0 : Y.toolBar) == null ? void 0 : KA.mainKeyPropValue), PA = (DA = (fe = (te = (q = k.value) == null ? void 0 : q[p]) == null ? void 0 : te.find(($) => {
|
|
226
226
|
var tA, NA, le;
|
|
227
227
|
return ((le = (NA = (tA = $ == null ? void 0 : $.value) == null ? void 0 : tA.pageData) == null ? void 0 : NA.comp) == null ? void 0 : le.toUpperCase()) === "FORM";
|
|
228
228
|
})) == null ? void 0 : fe.value) == null ? void 0 : DA.pageData;
|
|
229
|
-
I.value = (xA = (VA = (QA = (ge =
|
|
229
|
+
I.value = (xA = (VA = (QA = (ge = PA == null ? void 0 : PA.compData) == null ? void 0 : ge.find(($) => ($ == null ? void 0 : $.key) === "formContent")) == null ? void 0 : QA.contents) == null ? void 0 : VA.find(($) => {
|
|
230
230
|
var tA;
|
|
231
231
|
return ($ == null ? void 0 : $.prop) === ((tA = Y == null ? void 0 : Y.toolBar) == null ? void 0 : tA.prop);
|
|
232
232
|
})) == null ? void 0 : xA.value, I.value && Z(Number(I.value));
|
|
233
|
-
}, Z = (
|
|
234
|
-
let
|
|
233
|
+
}, Z = (p) => {
|
|
234
|
+
let PA = p * 60;
|
|
235
235
|
const OA = setInterval(() => {
|
|
236
|
-
if (
|
|
236
|
+
if (PA <= 0)
|
|
237
237
|
clearInterval(OA), vA("onExtendTaskEnd");
|
|
238
238
|
else {
|
|
239
|
-
|
|
240
|
-
const JA = Math.floor(
|
|
241
|
-
|
|
239
|
+
PA--;
|
|
240
|
+
const JA = Math.floor(PA / 3600), KA = Math.floor(PA % 3600 / 60), q = PA % 60;
|
|
241
|
+
gA.value = `${String(JA).padStart(2, "0")}:${String(KA).padStart(2, "0")}:${String(q).padStart(2, "0")}`;
|
|
242
242
|
}
|
|
243
243
|
}, 1e3);
|
|
244
244
|
};
|
|
245
245
|
rn(() => {
|
|
246
246
|
iA();
|
|
247
247
|
});
|
|
248
|
-
const
|
|
249
|
-
return (
|
|
250
|
-
u("span", null, CA(
|
|
251
|
-
|
|
252
|
-
u("span", null, CA(
|
|
248
|
+
const G = o((zA = Y == null ? void 0 : Y.toolBar) == null ? void 0 : zA.title), gA = o("");
|
|
249
|
+
return (p, PA) => (v(), X("div", null, [
|
|
250
|
+
u("span", null, CA(G.value), 1),
|
|
251
|
+
gA.value ? (v(), X("span", vf, ":")) : W("", !0),
|
|
252
|
+
u("span", null, CA(gA.value), 1)
|
|
253
253
|
]));
|
|
254
254
|
}
|
|
255
255
|
}), cf = { class: "structure-buttons" }, uf = { class: "structure-paths" }, sf = { class: "client-header-user" }, gf = { class: "model-select" }, rf = { class: "model-show" }, df = { class: "model-fill" }, Pf = { class: "client-header-menu" }, Cf = { class: "client-header-user" }, of = {
|
|
@@ -335,12 +335,12 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
335
335
|
setup(H, { emit: lA }) {
|
|
336
336
|
const e = (r, l) => {
|
|
337
337
|
console.log(r, l);
|
|
338
|
-
},
|
|
338
|
+
}, k = o(), AA = o(""), eA = o(), P = o(!1), nA = o([]), Y = o([]), vA = o([]), I = RA(
|
|
339
339
|
() => nA.value.filter((r) => {
|
|
340
340
|
var l;
|
|
341
341
|
return ((l = r.find((w) => w.prop === "状态")) == null ? void 0 : l.value) === "未读";
|
|
342
342
|
}).length
|
|
343
|
-
), iA = RA(() => I.value > 99 ? "99+" : I.value), Z = yn(XA), { originalPath:
|
|
343
|
+
), iA = RA(() => I.value > 99 ? "99+" : I.value), Z = yn(XA), { originalPath: G } = BA(Z), gA = G.value, zA = jn(), { loginUserInfo: p } = BA(zA), PA = o();
|
|
344
344
|
async function OA() {
|
|
345
345
|
var r, l, w, h, R, z;
|
|
346
346
|
try {
|
|
@@ -352,13 +352,13 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
352
352
|
};
|
|
353
353
|
const c = sessionStorage.getItem("systemKey"), [D] = await Promise.all([
|
|
354
354
|
we(on, c, "")
|
|
355
|
-
]),
|
|
356
|
-
let
|
|
357
|
-
Array.isArray(
|
|
355
|
+
]), V = (w = (l = (r = D == null ? void 0 : D[0]) == null ? void 0 : r.compData) == null ? void 0 : l.find((d) => (d == null ? void 0 : d.key) === "tableContents")) == null ? void 0 : w.contents, x = (z = (R = (h = D == null ? void 0 : D[0]) == null ? void 0 : h.compData) == null ? void 0 : R.find((d) => (d == null ? void 0 : d.key) === "header")) == null ? void 0 : z.contents;
|
|
356
|
+
let _ = [], n = [], s = [], K = [];
|
|
357
|
+
Array.isArray(V) && Array.isArray(x) ? (s = V.filter(
|
|
358
358
|
(d) => d.includes("未读")
|
|
359
|
-
), K =
|
|
359
|
+
), K = V.filter(
|
|
360
360
|
(d) => d.includes("已读")
|
|
361
|
-
),
|
|
361
|
+
), _ = [...s, ...K], n = [...V]) : (s = [], K = [], n = [], console.warn("messagesContents 或 messagesHeader 不是数组")), Y.value = U(x, n), nA.value = U(x, _), vA.value = U(x, s);
|
|
362
362
|
} catch (U) {
|
|
363
363
|
console.error("获取消息数据失败:", U);
|
|
364
364
|
}
|
|
@@ -367,7 +367,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
367
367
|
const KA = () => {
|
|
368
368
|
const r = Date.now();
|
|
369
369
|
r - JA < 1200 || (JA = r, OA(), console.log("获取消息中心数据成功"));
|
|
370
|
-
},
|
|
370
|
+
}, q = async (r) => {
|
|
371
371
|
if (!r) return;
|
|
372
372
|
(async (w) => {
|
|
373
373
|
var R, z, U, c;
|
|
@@ -396,21 +396,21 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
396
396
|
// }
|
|
397
397
|
];
|
|
398
398
|
try {
|
|
399
|
-
const D = w.find((n) => n.prop === "状态"),
|
|
400
|
-
if (!
|
|
399
|
+
const D = w.find((n) => n.prop === "状态"), V = Array.isArray(w) ? w.find((n) => n.isMainKey) : void 0;
|
|
400
|
+
if (!V) {
|
|
401
401
|
console.warn("该消息没有主键", w);
|
|
402
402
|
return;
|
|
403
403
|
}
|
|
404
404
|
qA.setAsideMenus(h), (D == null ? void 0 : D.value) === "未读" && (D.value = "已读", qA.setActiveMenuPath(on));
|
|
405
|
-
const
|
|
406
|
-
await Ht(
|
|
405
|
+
const x = g.value + gA + V.value, _ = g.value;
|
|
406
|
+
await Ht(x, x + gA + `updateLoading${((R = p.value) == null ? void 0 : R.account) || ((z = p.value) == null ? void 0 : z.账号)}`), xe.setRouteToChildPath(_), qA.setActiveMenuPath(x + gA + `updateLoading${((U = p.value) == null ? void 0 : U.account) || ((c = p.value) == null ? void 0 : c.账号)}`), qA.setActiveTopMenuPath("消息中心"), console.log("444showItems.value", se.value);
|
|
407
407
|
} catch (D) {
|
|
408
408
|
console.error("加载菜单或页面时出错:", D);
|
|
409
409
|
}
|
|
410
410
|
})(r);
|
|
411
|
-
}, te = Hn(XA), { selectTitle: fe } = BA(te), DA = o(!1), ge = o(), QA = o(null), VA = o(), xA = o(!1), $ = lt(XA), { blobUrls: tA } = BA($), NA = o(), le = o(!1),
|
|
411
|
+
}, te = Hn(XA), { selectTitle: fe } = BA(te), DA = o(!1), ge = o(), QA = o(null), VA = o(), xA = o(!1), $ = lt(XA), { blobUrls: tA } = BA($), NA = o(), le = o(!1), Ie = o(!1), ie = o(!1), Be = o([]), We = o(!1), bA = o(null), WA = o([]), ze = o(!1), Qe = o(!1), re = o();
|
|
412
412
|
Ve("contentRef", bA);
|
|
413
|
-
const xe = ln(XA), { isEdit: de, routeToChildPath: pe } = BA(xe), me = lA, qA = vn(XA), { asideMenuLoading: UA, importLoading: Je, activeAsideMenu: Ue, contentLoading: MA, platName: t, activeMenuPath: g } = BA(qA), i = H, j = RA(() => Ue.value.isRouter),
|
|
413
|
+
const xe = ln(XA), { isEdit: de, routeToChildPath: pe } = BA(xe), me = lA, qA = vn(XA), { asideMenuLoading: UA, importLoading: Je, activeAsideMenu: Ue, contentLoading: MA, platName: t, activeMenuPath: g } = BA(qA), i = H, j = RA(() => Ue.value.isRouter), F = () => {
|
|
414
414
|
sessionStorage.clear(), window.location.reload();
|
|
415
415
|
}, y = (r) => {
|
|
416
416
|
if ((r == null ? void 0 : r.type) === "table") {
|
|
@@ -434,14 +434,14 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
434
434
|
var U;
|
|
435
435
|
(z == null ? void 0 : z.comp) === "Form" && ((U = z == null ? void 0 : z.compData) == null || U.forEach((c) => {
|
|
436
436
|
var D;
|
|
437
|
-
(c == null ? void 0 : c.key) === "formContent" && ((D = c == null ? void 0 : c.contents) == null || D.forEach((
|
|
438
|
-
h.includes(
|
|
437
|
+
(c == null ? void 0 : c.key) === "formContent" && ((D = c == null ? void 0 : c.contents) == null || D.forEach((V) => {
|
|
438
|
+
h.includes(V == null ? void 0 : V.key) && (R[V.key] = V.value);
|
|
439
439
|
}));
|
|
440
440
|
}));
|
|
441
441
|
}), l == null || l.forEach((z) => {
|
|
442
|
-
var U, c, D,
|
|
442
|
+
var U, c, D, V, x, _;
|
|
443
443
|
if ((z == null ? void 0 : z.comp) === "Table") {
|
|
444
|
-
let n = [], s = (D = (c = (U = z == null ? void 0 : z.compData) == null ? void 0 : U.find((d) => (d == null ? void 0 : d.key) === "header")) == null ? void 0 : c.contents) == null ? void 0 : D.map((d) => d == null ? void 0 : d.label), K = (
|
|
444
|
+
let n = [], s = (D = (c = (U = z == null ? void 0 : z.compData) == null ? void 0 : U.find((d) => (d == null ? void 0 : d.key) === "header")) == null ? void 0 : c.contents) == null ? void 0 : D.map((d) => d == null ? void 0 : d.label), K = (_ = (x = (V = z == null ? void 0 : z.compData) == null ? void 0 : V.find((d) => (d == null ? void 0 : d.key) === "tableContents")) == null ? void 0 : x.contents) == null ? void 0 : _.map((d) => (d = d == null ? void 0 : d.filter((M) => !(M != null && M.id)), d));
|
|
445
445
|
K == null || K.forEach((d) => {
|
|
446
446
|
n.push(
|
|
447
447
|
tt(
|
|
@@ -463,11 +463,11 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
463
463
|
let D = [];
|
|
464
464
|
if (typeof (c == null ? void 0 : c.url) == "string")
|
|
465
465
|
if ((h = c == null ? void 0 : c.url) != null && h.includes(",")) {
|
|
466
|
-
const
|
|
467
|
-
url:
|
|
468
|
-
extension: De(
|
|
466
|
+
const x = ((R = c == null ? void 0 : c.url) == null ? void 0 : R.split(",")).map((_) => ({
|
|
467
|
+
url: _,
|
|
468
|
+
extension: De(_)
|
|
469
469
|
}));
|
|
470
|
-
WA.value =
|
|
470
|
+
WA.value = x;
|
|
471
471
|
} else
|
|
472
472
|
WA.value = [{
|
|
473
473
|
url: c == null ? void 0 : c.url,
|
|
@@ -475,7 +475,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
475
475
|
}];
|
|
476
476
|
(z = QA.value) == null || z.loadModelByDefaultPath(D);
|
|
477
477
|
}
|
|
478
|
-
|
|
478
|
+
ze.value = (U = WA.value) == null ? void 0 : U.every((c) => c.url.toUpperCase().includes(".URDF"));
|
|
479
479
|
}
|
|
480
480
|
}, jA = () => {
|
|
481
481
|
xA.value = !1, QA.value = null;
|
|
@@ -483,7 +483,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
483
483
|
kA(
|
|
484
484
|
() => g.value,
|
|
485
485
|
async (r) => {
|
|
486
|
-
r && (
|
|
486
|
+
r && (Ie.value = !0), r === "弯管仿真加工分析/仿真动画生成" ? ie.value = !0 : ie.value = !1, r === "弯管仿真加工分析/程序输出" ? We.value = !0 : We.value = !1, Ne != null && Ne.find((l) => {
|
|
487
487
|
var w;
|
|
488
488
|
return (l == null ? void 0 : l.key) === ((w = r == null ? void 0 : r.split("/")) == null ? void 0 : w[(r == null ? void 0 : r.split("/").length) - 1]);
|
|
489
489
|
}) ? le.value = !0 : le.value = !1;
|
|
@@ -498,22 +498,22 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
498
498
|
let z = [];
|
|
499
499
|
const U = await ((h = fn(tA == null ? void 0 : tA.value)) == null ? void 0 : h.map(async (c) => {
|
|
500
500
|
var n, s, K, d, M, B, m, E, T, N;
|
|
501
|
-
let D,
|
|
502
|
-
c != null && c.blob.includes("undefined") ?
|
|
503
|
-
let
|
|
504
|
-
if ((
|
|
505
|
-
let Q = await (
|
|
506
|
-
var
|
|
507
|
-
D = await
|
|
501
|
+
let D, V, x;
|
|
502
|
+
c != null && c.blob.includes("undefined") ? x = (s = (n = c == null ? void 0 : c.blob) == null ? void 0 : n.split("undefined,")) == null ? void 0 : s[1] : x = c == null ? void 0 : c.blob;
|
|
503
|
+
let _ = x == null ? void 0 : x.split(",");
|
|
504
|
+
if ((_ == null ? void 0 : _.length) > 1) {
|
|
505
|
+
let Q = await (_ == null ? void 0 : _.map(async (O) => {
|
|
506
|
+
var uA, IA, L, pA, mA, ZA;
|
|
507
|
+
D = await oe.get(O, {
|
|
508
508
|
responseType: "blob",
|
|
509
509
|
headers: {
|
|
510
510
|
"Content-Type": "application/json"
|
|
511
511
|
}
|
|
512
512
|
});
|
|
513
513
|
let cA = [];
|
|
514
|
-
if (((
|
|
514
|
+
if (((uA = c == null ? void 0 : c.mtlBlobs) == null ? void 0 : uA.length) > 0) {
|
|
515
515
|
let YA = await ((IA = c == null ? void 0 : c.mtlBlobs) == null ? void 0 : IA.map(async (ae) => {
|
|
516
|
-
let Ae = await
|
|
516
|
+
let Ae = await oe.get(ae, {
|
|
517
517
|
responseType: "blob",
|
|
518
518
|
headers: {
|
|
519
519
|
"Content-Type": "application/json"
|
|
@@ -536,33 +536,33 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
536
536
|
}), D;
|
|
537
537
|
}));
|
|
538
538
|
await Promise.all(Q);
|
|
539
|
-
} else if (!(
|
|
539
|
+
} else if (!(x != null && x.includes("https://")) && !(x != null && x.includes("http://"))) {
|
|
540
540
|
D = await tn({
|
|
541
|
-
url:
|
|
541
|
+
url: x
|
|
542
542
|
});
|
|
543
543
|
let Q = [];
|
|
544
544
|
if (((K = c == null ? void 0 : c.mtlBlobs) == null ? void 0 : K.length) > 0) {
|
|
545
545
|
let O = await ((d = c == null ? void 0 : c.mtlBlobs) == null ? void 0 : d.map(async (cA) => {
|
|
546
|
-
let
|
|
546
|
+
let uA = await tn({
|
|
547
547
|
url: cA
|
|
548
548
|
});
|
|
549
549
|
return Q.push(
|
|
550
|
-
new Blob([
|
|
550
|
+
new Blob([uA.data], {
|
|
551
551
|
type: "application/octet-stream;charset=UTF-8"
|
|
552
552
|
})
|
|
553
|
-
),
|
|
553
|
+
), uA;
|
|
554
554
|
}));
|
|
555
555
|
await Promise.all(O);
|
|
556
556
|
}
|
|
557
|
-
|
|
558
|
-
suffix: "." + ((B =
|
|
557
|
+
V = {
|
|
558
|
+
suffix: "." + ((B = x == null ? void 0 : x.split(".")) == null ? void 0 : B[((M = x == null ? void 0 : x.split(".")) == null ? void 0 : M.length) - 1]),
|
|
559
559
|
blob: new Blob([D.data], {
|
|
560
560
|
type: "application/octet-stream;charset=UTF-8"
|
|
561
561
|
}),
|
|
562
562
|
mtlBlobs: Q
|
|
563
563
|
};
|
|
564
564
|
} else {
|
|
565
|
-
D = await
|
|
565
|
+
D = await oe.get(x, {
|
|
566
566
|
responseType: "blob",
|
|
567
567
|
headers: {
|
|
568
568
|
"Content-Type": "application/json"
|
|
@@ -571,29 +571,29 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
571
571
|
let Q = [];
|
|
572
572
|
if (((m = c == null ? void 0 : c.mtlBlobs) == null ? void 0 : m.length) > 0) {
|
|
573
573
|
let O = await ((E = c == null ? void 0 : c.mtlBlobs) == null ? void 0 : E.map(async (cA) => {
|
|
574
|
-
let
|
|
574
|
+
let uA = await oe.get(cA, {
|
|
575
575
|
responseType: "blob",
|
|
576
576
|
headers: {
|
|
577
577
|
"Content-Type": "application/json"
|
|
578
578
|
}
|
|
579
579
|
});
|
|
580
580
|
return Q.push(
|
|
581
|
-
new Blob([
|
|
581
|
+
new Blob([uA.data], {
|
|
582
582
|
type: "application/octet-stream;charset=UTF-8"
|
|
583
583
|
})
|
|
584
|
-
),
|
|
584
|
+
), uA;
|
|
585
585
|
}));
|
|
586
586
|
await Promise.all(O);
|
|
587
587
|
}
|
|
588
|
-
|
|
589
|
-
suffix: c != null && c.suffix ? c == null ? void 0 : c.suffix : "." + ((N =
|
|
588
|
+
V = {
|
|
589
|
+
suffix: c != null && c.suffix ? c == null ? void 0 : c.suffix : "." + ((N = x == null ? void 0 : x.split(".")) == null ? void 0 : N[((T = x == null ? void 0 : x.split(".")) == null ? void 0 : T.length) - 1]),
|
|
590
590
|
blob: new Blob([D.data], {
|
|
591
591
|
type: "application/octet-stream;charset=UTF-8"
|
|
592
592
|
}),
|
|
593
593
|
mtlBlobs: Q
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
|
-
|
|
596
|
+
V && z.push(V);
|
|
597
597
|
}));
|
|
598
598
|
await Promise.all(U), (z == null ? void 0 : z.length) !== 0 && ((R = QA.value) == null || R.loadModelByDefaultPath(z));
|
|
599
599
|
}
|
|
@@ -601,19 +601,19 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
601
601
|
{ immediate: !0, deep: !0 }
|
|
602
602
|
);
|
|
603
603
|
const EA = (r, l) => {
|
|
604
|
-
|
|
604
|
+
Qe.value = !0, re.value = l, (l == null ? void 0 : l.isEdit) === !0 ? Be.value = r : Be.value = r == null ? void 0 : r.map((w) => {
|
|
605
605
|
var h;
|
|
606
606
|
return w.compData = (h = w.compData) == null ? void 0 : h.map((R) => {
|
|
607
607
|
var z;
|
|
608
608
|
return (R == null ? void 0 : R.key) === "formContent" && (R.contents = (z = R.contents) == null ? void 0 : z.map((U) => (U.disabled = !0, U))), R;
|
|
609
609
|
}), w;
|
|
610
610
|
});
|
|
611
|
-
},
|
|
611
|
+
}, rA = async () => {
|
|
612
612
|
await nt();
|
|
613
613
|
};
|
|
614
614
|
rn(async () => {
|
|
615
615
|
var h, R, z, U;
|
|
616
|
-
me("setLoginInfo",
|
|
616
|
+
me("setLoginInfo", p.value), await OA();
|
|
617
617
|
let r = await ue({
|
|
618
618
|
key: {
|
|
619
619
|
layer: "superAdmin",
|
|
@@ -628,14 +628,14 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
628
628
|
});
|
|
629
629
|
r = [...(h = r == null ? void 0 : r.data) == null ? void 0 : h.result, ...(R = l == null ? void 0 : l.data) == null ? void 0 : R.result];
|
|
630
630
|
let w = (U = (z = r == null ? void 0 : r.find((c) => {
|
|
631
|
-
var D,
|
|
632
|
-
return ((
|
|
631
|
+
var D, V, x, _, n, s, K, d;
|
|
632
|
+
return ((V = (D = c == null ? void 0 : c.value) == null ? void 0 : D.tableData) == null ? void 0 : V.account) === (((x = p.value) == null ? void 0 : x.account) ?? ((_ = p.value) == null ? void 0 : _.账号)) || ((s = (n = c == null ? void 0 : c.value) == null ? void 0 : n.tableData) == null ? void 0 : s.账号) === (((K = p.value) == null ? void 0 : K.account) ?? ((d = p.value) == null ? void 0 : d.账号));
|
|
633
633
|
})) == null ? void 0 : z.value) == null ? void 0 : U.tableData;
|
|
634
|
-
AA.value = ve.value + "/" + (w == null ? void 0 : w.authorityPhoto),
|
|
634
|
+
AA.value = ve.value + "/" + (w == null ? void 0 : w.authorityPhoto), k.value = "first";
|
|
635
635
|
});
|
|
636
636
|
const yA = () => {
|
|
637
637
|
var w, h;
|
|
638
|
-
if (pe.value === "" || ((h = g.value) == null ? void 0 : h[((w = g.value) == null ? void 0 : w.length) - 1]) ===
|
|
638
|
+
if (pe.value === "" || ((h = g.value) == null ? void 0 : h[((w = g.value) == null ? void 0 : w.length) - 1]) === gA) return !1;
|
|
639
639
|
const r = sessionStorage.getItem("authority"), l = JSON.parse(r || "");
|
|
640
640
|
if (Array.isArray(l)) {
|
|
641
641
|
const R = Array.isArray(l) && (l == null ? void 0 : l.filter((U) => U == null ? void 0 : U.includes(pe.value))), z = R == null ? void 0 : R.map((U) => {
|
|
@@ -645,7 +645,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
645
645
|
return !!(z != null && z.includes("新增") || z != null && z.includes("新建"));
|
|
646
646
|
} else return typeof l == "string" && (l == null ? void 0 : l.toUpperCase()) === "SUPERADMIN";
|
|
647
647
|
}, _A = async () => {
|
|
648
|
-
},
|
|
648
|
+
}, Xe = async () => {
|
|
649
649
|
var w, h, R;
|
|
650
650
|
P.value = !0;
|
|
651
651
|
let r = (h = (w = AA.value) == null ? void 0 : w.split(ve.value + "/")) == null ? void 0 : h[1];
|
|
@@ -653,14 +653,14 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
653
653
|
url: r
|
|
654
654
|
// url: props.avatarUrl
|
|
655
655
|
});
|
|
656
|
-
eA.value = l == null ? void 0 : l.data, (R =
|
|
656
|
+
eA.value = l == null ? void 0 : l.data, (R = PA.value) == null || R.openDialog(eA.value);
|
|
657
657
|
}, ve = RA(() => "http://222.92.178.198:62001"), Pe = async (r) => {
|
|
658
|
-
var l, w, h, R, z, U, c, D,
|
|
658
|
+
var l, w, h, R, z, U, c, D, V, x;
|
|
659
659
|
try {
|
|
660
|
-
const
|
|
661
|
-
if (((l =
|
|
662
|
-
AA.value = ve.value + "/" + ((h = (w =
|
|
663
|
-
let n = (z = (R =
|
|
660
|
+
const _ = await pt(r);
|
|
661
|
+
if (((l = _ == null ? void 0 : _.data) == null ? void 0 : l.code) === 200) {
|
|
662
|
+
AA.value = ve.value + "/" + ((h = (w = _.data) == null ? void 0 : w.result) == null ? void 0 : h.url);
|
|
663
|
+
let n = (z = (R = _.data) == null ? void 0 : R.result) == null ? void 0 : z.url, s = await ue({
|
|
664
664
|
key: {
|
|
665
665
|
layer: "superAdmin",
|
|
666
666
|
systemKey: sessionStorage.getItem("systemKey")
|
|
@@ -674,12 +674,12 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
674
674
|
});
|
|
675
675
|
s = [...(U = s == null ? void 0 : s.data) == null ? void 0 : U.result, ...(c = K == null ? void 0 : K.data) == null ? void 0 : c.result];
|
|
676
676
|
let d = (D = s == null ? void 0 : s.find((m) => {
|
|
677
|
-
var E, T, N, Q, O, cA,
|
|
678
|
-
return ((T = (E = m == null ? void 0 : m.value) == null ? void 0 : E.tableData) == null ? void 0 : T.account) === (((N =
|
|
679
|
-
})) == null ? void 0 : D.id, B = (
|
|
680
|
-
var E, T, N, Q, O, cA,
|
|
681
|
-
return ((T = (E = m == null ? void 0 : m.value) == null ? void 0 : E.tableData) == null ? void 0 : T.account) === (((N =
|
|
682
|
-
})) == null ? void 0 :
|
|
677
|
+
var E, T, N, Q, O, cA, uA, IA;
|
|
678
|
+
return ((T = (E = m == null ? void 0 : m.value) == null ? void 0 : E.tableData) == null ? void 0 : T.account) === (((N = p.value) == null ? void 0 : N.account) ?? ((Q = p.value) == null ? void 0 : Q.账号)) || ((cA = (O = m == null ? void 0 : m.value) == null ? void 0 : O.tableData) == null ? void 0 : cA.账号) === (((uA = p.value) == null ? void 0 : uA.account) ?? ((IA = p.value) == null ? void 0 : IA.账号));
|
|
679
|
+
})) == null ? void 0 : D.id, B = (x = (V = s == null ? void 0 : s.find((m) => {
|
|
680
|
+
var E, T, N, Q, O, cA, uA, IA;
|
|
681
|
+
return ((T = (E = m == null ? void 0 : m.value) == null ? void 0 : E.tableData) == null ? void 0 : T.account) === (((N = p.value) == null ? void 0 : N.account) ?? ((Q = p.value) == null ? void 0 : Q.账号)) || ((cA = (O = m == null ? void 0 : m.value) == null ? void 0 : O.tableData) == null ? void 0 : cA.账号) === (((uA = p.value) == null ? void 0 : uA.account) ?? ((IA = p.value) == null ? void 0 : IA.账号));
|
|
682
|
+
})) == null ? void 0 : V.value) == null ? void 0 : x.tableData;
|
|
683
683
|
B.authorityPhoto = n, await qn({
|
|
684
684
|
id: d,
|
|
685
685
|
value: {
|
|
@@ -687,8 +687,8 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
687
687
|
}
|
|
688
688
|
});
|
|
689
689
|
}
|
|
690
|
-
} catch (
|
|
691
|
-
|
|
690
|
+
} catch (_) {
|
|
691
|
+
je.error(_);
|
|
692
692
|
}
|
|
693
693
|
}, $A = RA(() => Et(HA.value, It.value)), fA = RA(() => {
|
|
694
694
|
var r, l, w, h;
|
|
@@ -698,11 +698,11 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
698
698
|
return ((r = HA.value) == null ? void 0 : r.length) > 0 && (fA == null ? void 0 : fA.value) === "horizontal" ? (w = (l = HA.value) == null ? void 0 : l[0]) == null ? void 0 : w.name : "";
|
|
699
699
|
});
|
|
700
700
|
return (r, l) => {
|
|
701
|
-
const w = oA("el-dialog"), h = oA("el-button"), R = oA("el-header"), z = oA("el-splitter-panel"), U = oA("el-splitter"), c = oA("el-container"), D = oA("el-tab-pane"),
|
|
701
|
+
const w = oA("el-dialog"), h = oA("el-button"), R = oA("el-header"), z = oA("el-splitter-panel"), U = oA("el-splitter"), c = oA("el-container"), D = oA("el-tab-pane"), V = oA("el-tabs"), x = oA("el-aside"), _ = oA("el-image"), n = oA("router-view"), s = oA("el-step"), K = oA("el-steps"), d = oA("el-main"), M = Vn("loading");
|
|
702
702
|
return v(), X(hA, null, [
|
|
703
703
|
ee(a(kt, {
|
|
704
704
|
ref_key: "cropperDialogRef",
|
|
705
|
-
ref:
|
|
705
|
+
ref: PA,
|
|
706
706
|
title: "更改头像",
|
|
707
707
|
avatarUrl: AA.value,
|
|
708
708
|
onSubmitImage: Pe
|
|
@@ -710,13 +710,13 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
710
710
|
[ye, P.value]
|
|
711
711
|
]),
|
|
712
712
|
a(gn, {
|
|
713
|
-
visible:
|
|
714
|
-
onBeforeDestroy: l[0] || (l[0] = (B) =>
|
|
713
|
+
visible: Qe.value,
|
|
714
|
+
onBeforeDestroy: l[0] || (l[0] = (B) => Qe.value = !1),
|
|
715
715
|
fullScreen: !0
|
|
716
716
|
}, {
|
|
717
717
|
default: C(() => [
|
|
718
718
|
a(ct, {
|
|
719
|
-
dialogItem:
|
|
719
|
+
dialogItem: Be.value,
|
|
720
720
|
componentParam: re.value,
|
|
721
721
|
onChange: A(Le),
|
|
722
722
|
onContentChange: A(Se)
|
|
@@ -904,9 +904,9 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
904
904
|
], 32)
|
|
905
905
|
]),
|
|
906
906
|
dropMenu: C(() => [
|
|
907
|
-
a(
|
|
908
|
-
modelValue:
|
|
909
|
-
"onUpdate:modelValue": l[3] || (l[3] = (B) =>
|
|
907
|
+
a(V, {
|
|
908
|
+
modelValue: k.value,
|
|
909
|
+
"onUpdate:modelValue": l[3] || (l[3] = (B) => k.value = B),
|
|
910
910
|
class: "drop-menu1 message-dropdown",
|
|
911
911
|
onTabClick: e
|
|
912
912
|
}, {
|
|
@@ -928,7 +928,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
928
928
|
return v(), X("div", {
|
|
929
929
|
class: "message-item",
|
|
930
930
|
key: m,
|
|
931
|
-
onClick: (O) =>
|
|
931
|
+
onClick: (O) => q(B)
|
|
932
932
|
}, [
|
|
933
933
|
u("div", Qf, [
|
|
934
934
|
((E = B.find((O) => O.prop === "状态")) == null ? void 0 : E.value) === "未读" ? (v(), X("span", Xf, "[未读]")) : (v(), X("span", Of, "[已读]")),
|
|
@@ -959,7 +959,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
959
959
|
return v(), X("div", {
|
|
960
960
|
class: "message-item",
|
|
961
961
|
key: m,
|
|
962
|
-
onClick: (O) =>
|
|
962
|
+
onClick: (O) => q(B)
|
|
963
963
|
}, [
|
|
964
964
|
u("div", xf, [
|
|
965
965
|
((E = B.find((O) => O.prop === "状态")) == null ? void 0 : E.value) === "未读" ? (v(), X("span", pf, "[未读]")) : (v(), X("span", mf, "[已读]")),
|
|
@@ -985,7 +985,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
985
985
|
a(zn, {
|
|
986
986
|
size: 35,
|
|
987
987
|
disabled: !0,
|
|
988
|
-
userInfo: A(
|
|
988
|
+
userInfo: A(p),
|
|
989
989
|
clickStop: !1
|
|
990
990
|
}, null, 8, ["userInfo"])
|
|
991
991
|
]),
|
|
@@ -997,14 +997,14 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
997
997
|
a(zn, {
|
|
998
998
|
size: 35,
|
|
999
999
|
disabled: !0,
|
|
1000
|
-
userInfo: A(
|
|
1000
|
+
userInfo: A(p)
|
|
1001
1001
|
}, null, 8, ["userInfo"]),
|
|
1002
1002
|
u("div", Df, [
|
|
1003
1003
|
u("div", null, [
|
|
1004
|
-
u("span", null, CA(((B = A(
|
|
1005
|
-
u("span", null, CA(((T = (E = A(
|
|
1004
|
+
u("span", null, CA(((B = A(p)) == null ? void 0 : B.account) || ((m = A(p)) == null ? void 0 : m.账号) || "未知"), 1),
|
|
1005
|
+
u("span", null, CA(((T = (E = A(p)) == null ? void 0 : E.layer) == null ? void 0 : T.toUpperCase()) === "SUPERADMIN" ? "超级管理员" : ((N = A(p)) == null ? void 0 : N.角色名称) ?? "未知"), 1)
|
|
1006
1006
|
]),
|
|
1007
|
-
u("div", null, CA(((Q = A(
|
|
1007
|
+
u("div", null, CA(((Q = A(p)) == null ? void 0 : Q.工号) || "未知"), 1)
|
|
1008
1008
|
])
|
|
1009
1009
|
]),
|
|
1010
1010
|
u("div", Nf, [
|
|
@@ -1022,7 +1022,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1022
1022
|
}),
|
|
1023
1023
|
l[13] || (l[13] = u("span", null, "消息中心", -1))
|
|
1024
1024
|
]),
|
|
1025
|
-
u("div", { onClick:
|
|
1025
|
+
u("div", { onClick: Xe }, [
|
|
1026
1026
|
a(wA, {
|
|
1027
1027
|
name: "人像",
|
|
1028
1028
|
style: { width: "15px", height: "15px" }
|
|
@@ -1039,7 +1039,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1039
1039
|
a(be, {
|
|
1040
1040
|
emptyColor: !0,
|
|
1041
1041
|
class: "menu-button",
|
|
1042
|
-
onClickTrigger:
|
|
1042
|
+
onClickTrigger: F,
|
|
1043
1043
|
modelValue: "退出登录",
|
|
1044
1044
|
buttonType: "",
|
|
1045
1045
|
style: { color: "#eb503d" }
|
|
@@ -1059,9 +1059,9 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1059
1059
|
default: C(() => [
|
|
1060
1060
|
a(d, { class: "client-main" }, {
|
|
1061
1061
|
default: C(() => {
|
|
1062
|
-
var B, m, E, T, N, Q, O, cA,
|
|
1062
|
+
var B, m, E, T, N, Q, O, cA, uA, IA, L, pA, mA, ZA, YA, ae, Ae, sA, dA, SA, LA, Oe, Me, Te, Ze, Ye, an, cn, Ge, wn, bn;
|
|
1063
1063
|
return [
|
|
1064
|
-
ee((v(), aA(
|
|
1064
|
+
ee((v(), aA(x, {
|
|
1065
1065
|
class: "client-aside",
|
|
1066
1066
|
style: Ke({ backgroundImage: H.platform === "client" ? `url(${A(ff)})` : `url(${A(lf)})` }),
|
|
1067
1067
|
"element-loading-text": "正在加载数据...",
|
|
@@ -1080,7 +1080,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1080
1080
|
ref: bA,
|
|
1081
1081
|
"element-loading-text": "正在加载页面数据..."
|
|
1082
1082
|
}, [
|
|
1083
|
-
((m = A(g)) == null ? void 0 : m[((B = A(g)) == null ? void 0 : B.length) - 1]) === A(
|
|
1083
|
+
((m = A(g)) == null ? void 0 : m[((B = A(g)) == null ? void 0 : B.length) - 1]) === A(gA) || (E = A(g)) != null && E.includes("updateLoading") || (T = A(g)) != null && T.includes("loading") ? (v(), X("div", Uf, [
|
|
1084
1084
|
a(be, {
|
|
1085
1085
|
class: "calculator-content back-content",
|
|
1086
1086
|
onClickTrigger: l[4] || (l[4] = (f) => A(et)()),
|
|
@@ -1094,17 +1094,17 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1094
1094
|
])
|
|
1095
1095
|
])) : W("", !0),
|
|
1096
1096
|
(N = A(g)) != null && N.includes("首页") ? (v(), X("div", Tf, [
|
|
1097
|
-
a(
|
|
1097
|
+
a(_, {
|
|
1098
1098
|
src: A(tf),
|
|
1099
1099
|
fit: "contain"
|
|
1100
1100
|
}, null, 8, ["src"])
|
|
1101
1101
|
])) : (v(), X("div", Zf, [
|
|
1102
1102
|
j.value ? (v(), aA(n, { key: 0 })) : (v(), X("div", Yf, [
|
|
1103
|
-
!A(Fe) && fA.value === "vertical" && (((Q = A(Pn)) == null ? void 0 : Q.length) === 0 || !A(Pn)) ? (v(!0), X(hA, { key: 0 }, FA((O = A(HA)) == null ? void 0 : O.filter((f) => f.comp !== "FormTop"), (f,
|
|
1103
|
+
!A(Fe) && fA.value === "vertical" && (((Q = A(Pn)) == null ? void 0 : Q.length) === 0 || !A(Pn)) ? (v(!0), X(hA, { key: 0 }, FA((O = A(HA)) == null ? void 0 : O.filter((f) => f.comp !== "FormTop"), (f, b) => {
|
|
1104
1104
|
var ce, Ce;
|
|
1105
1105
|
return v(), X("div", {
|
|
1106
1106
|
class: He((ce = A(Cn)) != null && ce.includes(f == null ? void 0 : f.name) ? "item-view-content affix-content" : "item-view-content"),
|
|
1107
|
-
key:
|
|
1107
|
+
key: b,
|
|
1108
1108
|
style: Ke({ display: (f == null ? void 0 : f.isShow) === !1 ? "none" : "flex" })
|
|
1109
1109
|
}, [
|
|
1110
1110
|
((Ce = f == null ? void 0 : f.comp) == null ? void 0 : Ce.toUpperCase()) !== "TABLE" && f.name ? (v(), X("div", Gf, [
|
|
@@ -1119,7 +1119,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1119
1119
|
childItemData: f == null ? void 0 : f.itemChildData,
|
|
1120
1120
|
key: A(en),
|
|
1121
1121
|
onChange: A(Le),
|
|
1122
|
-
index: (f == null ? void 0 : f.id) ??
|
|
1122
|
+
index: (f == null ? void 0 : f.id) ?? b,
|
|
1123
1123
|
config: {
|
|
1124
1124
|
showIndex: f == null ? void 0 : f.showIndex,
|
|
1125
1125
|
allowMove: f == null ? void 0 : f.allowMove,
|
|
@@ -1149,7 +1149,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1149
1149
|
"row-height": A(Qt)
|
|
1150
1150
|
}, {
|
|
1151
1151
|
default: C(() => [
|
|
1152
|
-
(v(!0), X(hA, null, FA($A.value, (f,
|
|
1152
|
+
(v(!0), X(hA, null, FA($A.value, (f, b) => {
|
|
1153
1153
|
var ce, Ce;
|
|
1154
1154
|
return v(), aA(A(Xt), {
|
|
1155
1155
|
key: f.i,
|
|
@@ -1175,25 +1175,25 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1175
1175
|
A(qe) ? (v(), aA(he(A(Re)((Ln = f == null ? void 0 : f.component) == null ? void 0 : Ln.comp)), {
|
|
1176
1176
|
pageLayout: fA.value,
|
|
1177
1177
|
config: {
|
|
1178
|
-
showIndex: (hn = A(HA)[
|
|
1179
|
-
allowMove: (Rn = A(HA)[
|
|
1180
|
-
viewport: (Kn = A(HA)[
|
|
1178
|
+
showIndex: (hn = A(HA)[b]) == null ? void 0 : hn.showIndex,
|
|
1179
|
+
allowMove: (Rn = A(HA)[b]) == null ? void 0 : Rn.allowMove,
|
|
1180
|
+
viewport: (Kn = A(HA)[b]) == null ? void 0 : Kn.viewport
|
|
1181
1181
|
},
|
|
1182
1182
|
compName: (Dn = f == null ? void 0 : f.component) == null ? void 0 : Dn.name,
|
|
1183
1183
|
compNames: A(sn),
|
|
1184
1184
|
isDevMode: H.showButton,
|
|
1185
|
-
itemData: (Nn = A(HA)[
|
|
1186
|
-
childItemData: (Wn = A(HA)[
|
|
1185
|
+
itemData: (Nn = A(HA)[b]) == null ? void 0 : Nn.compData,
|
|
1186
|
+
childItemData: (Wn = A(HA)[b]) == null ? void 0 : Wn.itemChildData,
|
|
1187
1187
|
key: A(en),
|
|
1188
1188
|
onChange: A(Le),
|
|
1189
|
-
index: ((Un = A(HA)[
|
|
1189
|
+
index: ((Un = A(HA)[b]) == null ? void 0 : Un.id) ?? b,
|
|
1190
1190
|
onContentChange: A(Se),
|
|
1191
1191
|
onPageChange: A(An),
|
|
1192
1192
|
onRowClick: y,
|
|
1193
1193
|
onRouteUrl: EA,
|
|
1194
|
-
parentTableId: (Mn = A(HA)[
|
|
1194
|
+
parentTableId: (Mn = A(HA)[b]) == null ? void 0 : Mn.tableId,
|
|
1195
1195
|
allMapContents: A($e),
|
|
1196
|
-
children: (Tn = A(HA)[
|
|
1196
|
+
children: (Tn = A(HA)[b]) == null ? void 0 : Tn.children,
|
|
1197
1197
|
level: 1,
|
|
1198
1198
|
cacheNewData: A(nn),
|
|
1199
1199
|
onClickTrigger: A(_e),
|
|
@@ -1210,7 +1210,7 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1210
1210
|
_: 1
|
|
1211
1211
|
}, 8, ["layout", "row-height"])) : W("", !0),
|
|
1212
1212
|
!A(Fe) && fA.value === "horizontal" ? (v(), X("div", _f, [
|
|
1213
|
-
a(
|
|
1213
|
+
a(V, {
|
|
1214
1214
|
modelValue: TA.value,
|
|
1215
1215
|
"onUpdate:modelValue": l[6] || (l[6] = (f) => TA.value = f),
|
|
1216
1216
|
type: "card",
|
|
@@ -1220,41 +1220,41 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1220
1220
|
default: C(() => {
|
|
1221
1221
|
var f;
|
|
1222
1222
|
return [
|
|
1223
|
-
(v(!0), X(hA, null, FA((f = A(HA)) == null ? void 0 : f.filter((
|
|
1223
|
+
(v(!0), X(hA, null, FA((f = A(HA)) == null ? void 0 : f.filter((b) => b.comp !== "FormTop"), (b, ce) => (v(), aA(D, {
|
|
1224
1224
|
key: ce,
|
|
1225
|
-
label:
|
|
1226
|
-
name:
|
|
1225
|
+
label: b.name,
|
|
1226
|
+
name: b.name
|
|
1227
1227
|
}, {
|
|
1228
1228
|
default: C(() => {
|
|
1229
1229
|
var Ce;
|
|
1230
1230
|
return [
|
|
1231
1231
|
u("div", $f, [
|
|
1232
|
-
((Ce =
|
|
1233
|
-
u("div", el, CA(
|
|
1232
|
+
((Ce = b == null ? void 0 : b.comp) == null ? void 0 : Ce.toUpperCase()) !== "TABLE" && b.name ? (v(), X("div", Al, [
|
|
1233
|
+
u("div", el, CA(b.name), 1)
|
|
1234
1234
|
])) : W("", !0),
|
|
1235
|
-
A(qe) ? (v(), aA(he(A(Re)(
|
|
1235
|
+
A(qe) ? (v(), aA(he(A(Re)(b.comp)), {
|
|
1236
1236
|
pageLayout: fA.value,
|
|
1237
|
-
compName:
|
|
1237
|
+
compName: b.name,
|
|
1238
1238
|
compNames: A(sn),
|
|
1239
1239
|
isDevMode: H.showButton,
|
|
1240
|
-
itemData:
|
|
1241
|
-
childItemData:
|
|
1240
|
+
itemData: b == null ? void 0 : b.compData,
|
|
1241
|
+
childItemData: b == null ? void 0 : b.itemChildData,
|
|
1242
1242
|
key: A(en),
|
|
1243
1243
|
onChange: A(Le),
|
|
1244
|
-
index: (
|
|
1244
|
+
index: (b == null ? void 0 : b.id) ?? ce,
|
|
1245
1245
|
onContentChange: A(Se),
|
|
1246
1246
|
onPageChange: A(An),
|
|
1247
1247
|
onRowClick: y,
|
|
1248
1248
|
onRouteUrl: EA,
|
|
1249
|
-
parentTableId:
|
|
1249
|
+
parentTableId: b == null ? void 0 : b.tableId,
|
|
1250
1250
|
allMapContents: A($e),
|
|
1251
|
-
children:
|
|
1251
|
+
children: b == null ? void 0 : b.children,
|
|
1252
1252
|
level: 1,
|
|
1253
1253
|
cacheNewData: A(nn),
|
|
1254
1254
|
config: {
|
|
1255
|
-
showIndex:
|
|
1256
|
-
allowMove:
|
|
1257
|
-
viewport:
|
|
1255
|
+
showIndex: b == null ? void 0 : b.showIndex,
|
|
1256
|
+
allowMove: b == null ? void 0 : b.allowMove,
|
|
1257
|
+
viewport: b == null ? void 0 : b.viewport
|
|
1258
1258
|
},
|
|
1259
1259
|
onClickTrigger: A(_e),
|
|
1260
1260
|
onClickMainKey: A(un),
|
|
@@ -1273,16 +1273,16 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1273
1273
|
A(Fe) ? (v(), aA(K, {
|
|
1274
1274
|
key: 3,
|
|
1275
1275
|
direction: "horizontal",
|
|
1276
|
-
active: (
|
|
1276
|
+
active: (uA = A(GA)) == null ? void 0 : uA.index,
|
|
1277
1277
|
"align-center": !0,
|
|
1278
1278
|
class: "display-steps"
|
|
1279
1279
|
}, {
|
|
1280
1280
|
default: C(() => [
|
|
1281
|
-
(v(!0), X(hA, null, FA(A(Ot), (f,
|
|
1281
|
+
(v(!0), X(hA, null, FA(A(Ot), (f, b) => (v(), aA(s, {
|
|
1282
1282
|
key: f == null ? void 0 : f.id,
|
|
1283
1283
|
class: "step-item",
|
|
1284
1284
|
status: f == null ? void 0 : f.status,
|
|
1285
|
-
onClick: (ce) => A(jt)(
|
|
1285
|
+
onClick: (ce) => A(jt)(b)
|
|
1286
1286
|
}, {
|
|
1287
1287
|
title: C(() => [
|
|
1288
1288
|
ne(CA(f == null ? void 0 : f.name), 1)
|
|
@@ -1300,11 +1300,11 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1300
1300
|
A(qe) ? (v(), aA(he(A(Re)((ae = (YA = A(GA)) == null ? void 0 : YA.comp) == null ? void 0 : ae.comp)), {
|
|
1301
1301
|
compItem: (Ae = A(GA)) == null ? void 0 : Ae.comp,
|
|
1302
1302
|
compNames: A(sn),
|
|
1303
|
-
compName: (
|
|
1303
|
+
compName: (dA = (sA = A(GA)) == null ? void 0 : sA.comp) == null ? void 0 : dA.name,
|
|
1304
1304
|
cacheNewData: A(nn),
|
|
1305
1305
|
isDevMode: H.showButton,
|
|
1306
1306
|
itemData: (LA = (SA = A(GA)) == null ? void 0 : SA.comp) == null ? void 0 : LA.compData,
|
|
1307
|
-
childItemData: (Me = (
|
|
1307
|
+
childItemData: (Me = (Oe = A(GA)) == null ? void 0 : Oe.comp) == null ? void 0 : Me.itemChildData,
|
|
1308
1308
|
key: A(en),
|
|
1309
1309
|
onChange: A(Le),
|
|
1310
1310
|
index: (Ze = (Te = A(GA)) == null ? void 0 : Te.comp) == null ? void 0 : Ze.id,
|
|
@@ -1320,11 +1320,11 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1320
1320
|
onClickMainKey: A(un)
|
|
1321
1321
|
}, null, 40, ["compItem", "compNames", "compName", "cacheNewData", "isDevMode", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange", "parentTableId", "allMapContents", "children", "onClickTrigger", "onClickMainKey"])) : W("", !0)
|
|
1322
1322
|
], 6)) : W("", !0),
|
|
1323
|
-
!((wn = A(se)) != null && wn.find((f) => f.comp === "methodButton")) && ((bn = A(g)) != null && bn.includes(A(
|
|
1323
|
+
!((wn = A(se)) != null && wn.find((f) => f.comp === "methodButton")) && ((bn = A(g)) != null && bn.includes(A(G))) ? (v(), X("div", nl, [
|
|
1324
1324
|
yA() ? (v(), aA(be, {
|
|
1325
1325
|
key: 0,
|
|
1326
1326
|
class: "calculator-content",
|
|
1327
|
-
onClickTrigger:
|
|
1327
|
+
onClickTrigger: rA,
|
|
1328
1328
|
modelValue: "保存"
|
|
1329
1329
|
})) : W("", !0)
|
|
1330
1330
|
])) : W("", !0)
|
|
@@ -1364,8 +1364,8 @@ const Vt = /* @__PURE__ */ Ie(gt, [["render", Ft], ["__scopeId", "data-v-0cbc421
|
|
|
1364
1364
|
], 64);
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
|
-
}), fl = /* @__PURE__ */
|
|
1368
|
-
function vl(H, lA, e,
|
|
1367
|
+
}), fl = /* @__PURE__ */ Ee(tl, [["__scopeId", "data-v-07aa4d3d"]]), ll = { class: "menu-tree" };
|
|
1368
|
+
function vl(H, lA, e, k, AA, eA) {
|
|
1369
1369
|
const P = oA("el-tree");
|
|
1370
1370
|
return v(), X("div", ll, [
|
|
1371
1371
|
a(P, {
|
|
@@ -1380,8 +1380,8 @@ function vl(H, lA, e, x, AA, eA) {
|
|
|
1380
1380
|
}, null, 8, ["data", "onNodeClick"])
|
|
1381
1381
|
]);
|
|
1382
1382
|
}
|
|
1383
|
-
const al = /* @__PURE__ */
|
|
1384
|
-
function sl(H, lA, e,
|
|
1383
|
+
const al = /* @__PURE__ */ Ee(rt, [["render", vl], ["__scopeId", "data-v-83196ea8"]]), cl = { class: "three-menu" }, ul = ["onClick"];
|
|
1384
|
+
function sl(H, lA, e, k, AA, eA) {
|
|
1385
1385
|
return v(), X("div", cl, [
|
|
1386
1386
|
(v(!0), X(hA, null, FA(H.renderMenuList, (P) => (v(), X("div", {
|
|
1387
1387
|
onClick: (nA) => H.clickMenu(P)
|
|
@@ -1391,12 +1391,12 @@ function sl(H, lA, e, x, AA, eA) {
|
|
|
1391
1391
|
ke(H.$slots, "extraIcon", {}, void 0, !0)
|
|
1392
1392
|
]);
|
|
1393
1393
|
}
|
|
1394
|
-
const gl = /* @__PURE__ */
|
|
1394
|
+
const gl = /* @__PURE__ */ Ee(dt, [["render", sl], ["__scopeId", "data-v-94d06d52"]]), rl = "@model", dl = (H) => {
|
|
1395
1395
|
try {
|
|
1396
|
-
const lA = St(H), e = Lt(lA, vt.TABLE),
|
|
1397
|
-
if (!
|
|
1396
|
+
const lA = St(H), e = Lt(lA, vt.TABLE), k = Yt(e, rl);
|
|
1397
|
+
if (!k)
|
|
1398
1398
|
return null;
|
|
1399
|
-
const { label: AA, tableData: eA } =
|
|
1399
|
+
const { label: AA, tableData: eA } = k, P = eA == null ? void 0 : eA[0], nA = P == null ? void 0 : P[AA], Y = De(nA);
|
|
1400
1400
|
return {
|
|
1401
1401
|
url: nA,
|
|
1402
1402
|
extension: Y
|
|
@@ -1438,16 +1438,16 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1438
1438
|
},
|
|
1439
1439
|
emits: ["showChild", "buildContent", "setLoginInfo"],
|
|
1440
1440
|
setup(H, { emit: lA }) {
|
|
1441
|
-
const e = o(),
|
|
1442
|
-
() =>
|
|
1441
|
+
const e = o(), k = o([]), AA = o([]), eA = RA(
|
|
1442
|
+
() => k.value.filter((n) => {
|
|
1443
1443
|
var s;
|
|
1444
1444
|
return ((s = n.find((K) => K.prop === "状态")) == null ? void 0 : s.value) === "未读";
|
|
1445
1445
|
}).length
|
|
1446
1446
|
);
|
|
1447
1447
|
RA(() => eA.value > 99 ? "99+" : eA.value);
|
|
1448
|
-
const P = yn(XA), { originalPath: nA } = BA(P), Y = nA.value, vA = Hn(XA), { selectTitle: I } = BA(vA), iA = o(!1), Z = o(null),
|
|
1448
|
+
const P = yn(XA), { originalPath: nA } = BA(P), Y = nA.value, vA = Hn(XA), { selectTitle: I } = BA(vA), iA = o(!1), Z = o(null), G = o(), gA = o(!1), zA = lt(XA), { blobUrls: p } = BA(zA), PA = o(!1), OA = o(!1), JA = o(!1), KA = o([]), q = o(!1), te = o(null), fe = o([]), DA = o(!1);
|
|
1449
1449
|
Ve("contentRef", te);
|
|
1450
|
-
const ge = jn(), { loginUserInfo: QA } = BA(ge), VA = ln(XA), { isEdit: xA, routeToChildPath: $ } = BA(VA), tA = lA, NA = vn(XA), { asideMenuLoading: le, importLoading:
|
|
1450
|
+
const ge = jn(), { loginUserInfo: QA } = BA(ge), VA = ln(XA), { isEdit: xA, routeToChildPath: $ } = BA(VA), tA = lA, NA = vn(XA), { asideMenuLoading: le, importLoading: Ie, activeAsideMenu: ie, contentLoading: Be, platName: We, activeMenuPath: bA } = BA(NA), WA = mt(XA), { data: ze } = BA(WA), { setData: Qe } = Jt(), re = RA(() => ie.value.isRouter), xe = () => {
|
|
1451
1451
|
sessionStorage.clear(), window.location.reload();
|
|
1452
1452
|
}, de = (n) => {
|
|
1453
1453
|
if ((n == null ? void 0 : n.type) === "table") {
|
|
@@ -1455,7 +1455,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1455
1455
|
const K = n == null ? void 0 : n.rowData;
|
|
1456
1456
|
let d = s;
|
|
1457
1457
|
if (d) {
|
|
1458
|
-
|
|
1458
|
+
G.value = {
|
|
1459
1459
|
url: d,
|
|
1460
1460
|
row: n == null ? void 0 : n.row
|
|
1461
1461
|
};
|
|
@@ -1476,28 +1476,28 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1476
1476
|
kA(
|
|
1477
1477
|
() => bA.value,
|
|
1478
1478
|
async (n) => {
|
|
1479
|
-
n && (OA.value = !0), n === "弯管仿真加工分析/仿真动画生成" ? JA.value = !0 : JA.value = !1, n === "弯管仿真加工分析/程序输出" ?
|
|
1479
|
+
n && (OA.value = !0), n === "弯管仿真加工分析/仿真动画生成" ? JA.value = !0 : JA.value = !1, n === "弯管仿真加工分析/程序输出" ? q.value = !0 : q.value = !1, Ne != null && Ne.find((s) => {
|
|
1480
1480
|
var K;
|
|
1481
1481
|
return (s == null ? void 0 : s.key) === ((K = n == null ? void 0 : n.split("/")) == null ? void 0 : K[(n == null ? void 0 : n.split("/").length) - 1]);
|
|
1482
|
-
}) ?
|
|
1482
|
+
}) ? PA.value = !0 : PA.value = !1;
|
|
1483
1483
|
},
|
|
1484
1484
|
{ immediate: !0 }
|
|
1485
1485
|
), kA(
|
|
1486
|
-
() => [
|
|
1486
|
+
() => [p == null ? void 0 : p.value],
|
|
1487
1487
|
async () => {
|
|
1488
1488
|
var n, s, K, d, M;
|
|
1489
|
-
if (
|
|
1490
|
-
|
|
1489
|
+
if (p != null && p.value && ((n = p == null ? void 0 : p.value) == null ? void 0 : n.length) > 0 && !PA.value && !((s = se.value) != null && s.find((B) => (B == null ? void 0 : B.name) === "输入") && ((K = se.value) != null && K.find((B) => (B == null ? void 0 : B.name) === "输出")))) {
|
|
1490
|
+
gA.value = !0;
|
|
1491
1491
|
let B = [];
|
|
1492
|
-
const m = await ((d = fn(
|
|
1493
|
-
var cA,
|
|
1492
|
+
const m = await ((d = fn(p == null ? void 0 : p.value)) == null ? void 0 : d.map(async (E) => {
|
|
1493
|
+
var cA, uA, IA, L, pA, mA, ZA, YA, ae, Ae;
|
|
1494
1494
|
let T, N, Q;
|
|
1495
|
-
E != null && E.blob.includes("undefined") ? Q = (
|
|
1495
|
+
E != null && E.blob.includes("undefined") ? Q = (uA = (cA = E == null ? void 0 : E.blob) == null ? void 0 : cA.split("undefined,")) == null ? void 0 : uA[1] : Q = E == null ? void 0 : E.blob;
|
|
1496
1496
|
let O = Q == null ? void 0 : Q.split(",");
|
|
1497
1497
|
if ((O == null ? void 0 : O.length) > 1) {
|
|
1498
|
-
let
|
|
1499
|
-
var LA,
|
|
1500
|
-
T = await
|
|
1498
|
+
let sA = await (O == null ? void 0 : O.map(async (dA) => {
|
|
1499
|
+
var LA, Oe, Me, Te, Ze, Ye;
|
|
1500
|
+
T = await oe.get(dA, {
|
|
1501
1501
|
responseType: "blob",
|
|
1502
1502
|
headers: {
|
|
1503
1503
|
"Content-Type": "application/json"
|
|
@@ -1505,8 +1505,8 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1505
1505
|
});
|
|
1506
1506
|
let SA = [];
|
|
1507
1507
|
if (((LA = E == null ? void 0 : E.mtlBlobs) == null ? void 0 : LA.length) > 0) {
|
|
1508
|
-
let an = await ((
|
|
1509
|
-
let Ge = await
|
|
1508
|
+
let an = await ((Oe = E == null ? void 0 : E.mtlBlobs) == null ? void 0 : Oe.map(async (cn) => {
|
|
1509
|
+
let Ge = await oe.get(cn, {
|
|
1510
1510
|
responseType: "blob",
|
|
1511
1511
|
headers: {
|
|
1512
1512
|
"Content-Type": "application/json"
|
|
@@ -1520,70 +1520,70 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1520
1520
|
}));
|
|
1521
1521
|
await Promise.all(an);
|
|
1522
1522
|
}
|
|
1523
|
-
return ((Te =
|
|
1524
|
-
suffix: "." + ((Ye =
|
|
1523
|
+
return ((Te = dA == null ? void 0 : dA.split(".")) == null ? void 0 : Te[((Me = dA == null ? void 0 : dA.split(".")) == null ? void 0 : Me.length) - 1]) !== "undefined" && B.push({
|
|
1524
|
+
suffix: "." + ((Ye = dA == null ? void 0 : dA.split(".")) == null ? void 0 : Ye[((Ze = dA == null ? void 0 : dA.split(".")) == null ? void 0 : Ze.length) - 1]),
|
|
1525
1525
|
blob: new Blob([T.data], {
|
|
1526
1526
|
type: "application/octet-stream;charset=UTF-8"
|
|
1527
1527
|
}),
|
|
1528
1528
|
mtlBlobs: SA
|
|
1529
1529
|
}), T;
|
|
1530
1530
|
}));
|
|
1531
|
-
await Promise.all(
|
|
1531
|
+
await Promise.all(sA);
|
|
1532
1532
|
} else if (!(Q != null && Q.includes("https://")) && !(Q != null && Q.includes("http://"))) {
|
|
1533
1533
|
T = await tn({
|
|
1534
1534
|
url: Q
|
|
1535
1535
|
});
|
|
1536
|
-
let
|
|
1536
|
+
let sA = [];
|
|
1537
1537
|
if (((IA = E == null ? void 0 : E.mtlBlobs) == null ? void 0 : IA.length) > 0) {
|
|
1538
|
-
let
|
|
1538
|
+
let dA = await ((L = E == null ? void 0 : E.mtlBlobs) == null ? void 0 : L.map(async (SA) => {
|
|
1539
1539
|
let LA = await tn({
|
|
1540
1540
|
url: SA
|
|
1541
1541
|
});
|
|
1542
|
-
return
|
|
1542
|
+
return sA.push(
|
|
1543
1543
|
new Blob([LA.data], {
|
|
1544
1544
|
type: "application/octet-stream;charset=UTF-8"
|
|
1545
1545
|
})
|
|
1546
1546
|
), LA;
|
|
1547
1547
|
}));
|
|
1548
|
-
await Promise.all(
|
|
1548
|
+
await Promise.all(dA);
|
|
1549
1549
|
}
|
|
1550
1550
|
N = {
|
|
1551
1551
|
suffix: "." + ((mA = Q == null ? void 0 : Q.split(".")) == null ? void 0 : mA[((pA = Q == null ? void 0 : Q.split(".")) == null ? void 0 : pA.length) - 1]),
|
|
1552
1552
|
blob: new Blob([T.data], {
|
|
1553
1553
|
type: "application/octet-stream;charset=UTF-8"
|
|
1554
1554
|
}),
|
|
1555
|
-
mtlBlobs:
|
|
1555
|
+
mtlBlobs: sA
|
|
1556
1556
|
};
|
|
1557
1557
|
} else {
|
|
1558
|
-
T = await
|
|
1558
|
+
T = await oe.get(Q, {
|
|
1559
1559
|
responseType: "blob",
|
|
1560
1560
|
headers: {
|
|
1561
1561
|
"Content-Type": "application/json"
|
|
1562
1562
|
}
|
|
1563
1563
|
});
|
|
1564
|
-
let
|
|
1564
|
+
let sA = [];
|
|
1565
1565
|
if (((ZA = E == null ? void 0 : E.mtlBlobs) == null ? void 0 : ZA.length) > 0) {
|
|
1566
|
-
let
|
|
1567
|
-
let LA = await
|
|
1566
|
+
let dA = await ((YA = E == null ? void 0 : E.mtlBlobs) == null ? void 0 : YA.map(async (SA) => {
|
|
1567
|
+
let LA = await oe.get(SA, {
|
|
1568
1568
|
responseType: "blob",
|
|
1569
1569
|
headers: {
|
|
1570
1570
|
"Content-Type": "application/json"
|
|
1571
1571
|
}
|
|
1572
1572
|
});
|
|
1573
|
-
return
|
|
1573
|
+
return sA.push(
|
|
1574
1574
|
new Blob([LA.data], {
|
|
1575
1575
|
type: "application/octet-stream;charset=UTF-8"
|
|
1576
1576
|
})
|
|
1577
1577
|
), LA;
|
|
1578
1578
|
}));
|
|
1579
|
-
await Promise.all(
|
|
1579
|
+
await Promise.all(dA);
|
|
1580
1580
|
}
|
|
1581
1581
|
N = {
|
|
1582
1582
|
suffix: E != null && E.suffix ? E == null ? void 0 : E.suffix : "." + ((Ae = Q == null ? void 0 : Q.split(".")) == null ? void 0 : Ae[((ae = Q == null ? void 0 : Q.split(".")) == null ? void 0 : ae.length) - 1]),
|
|
1583
1583
|
blob: new Blob([T.data], {
|
|
1584
1584
|
type: "application/octet-stream;charset=UTF-8"
|
|
1585
1585
|
}),
|
|
1586
|
-
mtlBlobs:
|
|
1586
|
+
mtlBlobs: sA
|
|
1587
1587
|
};
|
|
1588
1588
|
}
|
|
1589
1589
|
N && B.push(N);
|
|
@@ -1617,7 +1617,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1617
1617
|
qA.value = n;
|
|
1618
1618
|
}, j = (n) => {
|
|
1619
1619
|
t(), UA.value = n;
|
|
1620
|
-
},
|
|
1620
|
+
}, F = () => {
|
|
1621
1621
|
j(!(UA != null && UA.value));
|
|
1622
1622
|
}, y = RA(() => {
|
|
1623
1623
|
const n = `${MA.value.x}px`, s = `${MA.value.y}px`;
|
|
@@ -1632,22 +1632,22 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1632
1632
|
};
|
|
1633
1633
|
Ve("managementPageVisible", UA), Ve("setManagementPageTitle", i), Ve("setManagementPageVisible", j);
|
|
1634
1634
|
let jA = 0, EA = 0;
|
|
1635
|
-
function
|
|
1635
|
+
function rA(n) {
|
|
1636
1636
|
const s = EA - (n.clientX - jA);
|
|
1637
1637
|
g.value.width = `${s}px`;
|
|
1638
1638
|
}
|
|
1639
1639
|
function yA() {
|
|
1640
|
-
document.removeEventListener("mousemove",
|
|
1640
|
+
document.removeEventListener("mousemove", rA), document.removeEventListener("mouseup", yA);
|
|
1641
1641
|
}
|
|
1642
1642
|
const _A = (n) => {
|
|
1643
|
-
jA = n.clientX, EA = parseInt(getComputedStyle(Je.value).width, 10), document.addEventListener("mousemove",
|
|
1643
|
+
jA = n.clientX, EA = parseInt(getComputedStyle(Je.value).width, 10), document.addEventListener("mousemove", rA), document.addEventListener("mouseup", yA);
|
|
1644
1644
|
};
|
|
1645
|
-
let
|
|
1645
|
+
let Xe = 0, ve = 0, Pe = 0, $A = 0;
|
|
1646
1646
|
function fA(n) {
|
|
1647
|
-
|
|
1647
|
+
Xe = n.clientX, ve = n.clientY, Pe = MA.value.x, $A = MA.value.y, document.addEventListener("mousemove", TA), document.addEventListener("mouseup", r);
|
|
1648
1648
|
}
|
|
1649
1649
|
function TA(n) {
|
|
1650
|
-
MA.value.x = Pe + (n.clientX -
|
|
1650
|
+
MA.value.x = Pe + (n.clientX - Xe), MA.value.y = $A + (n.clientY - ve);
|
|
1651
1651
|
}
|
|
1652
1652
|
function r() {
|
|
1653
1653
|
document.removeEventListener("mousemove", TA), document.removeEventListener("mouseup", r);
|
|
@@ -1662,23 +1662,23 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1662
1662
|
R(!1);
|
|
1663
1663
|
}, c = o(), D = (n) => {
|
|
1664
1664
|
c.value = n;
|
|
1665
|
-
},
|
|
1665
|
+
}, V = (n) => {
|
|
1666
1666
|
const s = dl(n);
|
|
1667
1667
|
if (!s)
|
|
1668
1668
|
return;
|
|
1669
|
-
|
|
1669
|
+
Qe({
|
|
1670
1670
|
files: [s],
|
|
1671
1671
|
data: {}
|
|
1672
1672
|
});
|
|
1673
1673
|
};
|
|
1674
1674
|
kA(se, (n) => {
|
|
1675
1675
|
const { isLeaf: s } = c.value || {};
|
|
1676
|
-
!s || !n || !n.length ||
|
|
1676
|
+
!s || !n || !n.length || V(n);
|
|
1677
1677
|
}, {
|
|
1678
1678
|
immediate: !0,
|
|
1679
1679
|
deep: !0
|
|
1680
1680
|
});
|
|
1681
|
-
const
|
|
1681
|
+
const x = (n, s) => {
|
|
1682
1682
|
const K = n == null ? void 0 : n.label;
|
|
1683
1683
|
i(K), j(!0);
|
|
1684
1684
|
const { isLeaf: d } = s, M = {
|
|
@@ -1692,23 +1692,23 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1692
1692
|
async function n() {
|
|
1693
1693
|
var s, K, d, M, B, m, E, T, N, Q, O;
|
|
1694
1694
|
try {
|
|
1695
|
-
let cA = function(
|
|
1696
|
-
return
|
|
1695
|
+
let cA = function(sA, dA) {
|
|
1696
|
+
return dA.map((SA) => sA.map((LA, Oe) => ({
|
|
1697
1697
|
...LA,
|
|
1698
|
-
value: SA[
|
|
1698
|
+
value: SA[Oe] ?? ""
|
|
1699
1699
|
// 每个 header 加入 value
|
|
1700
1700
|
})));
|
|
1701
1701
|
};
|
|
1702
|
-
const
|
|
1703
|
-
we(kl,
|
|
1704
|
-
we(xl,
|
|
1705
|
-
]), pA = (d = (K = (s = IA == null ? void 0 : IA[0]) == null ? void 0 : s.compData) == null ? void 0 : K.find((
|
|
1702
|
+
const uA = sessionStorage.getItem("systemKey"), [IA, L] = await Promise.all([
|
|
1703
|
+
we(kl, uA, ""),
|
|
1704
|
+
we(xl, uA, "")
|
|
1705
|
+
]), pA = (d = (K = (s = IA == null ? void 0 : IA[0]) == null ? void 0 : s.compData) == null ? void 0 : K.find((sA) => (sA == null ? void 0 : sA.key) === "tableContents")) == null ? void 0 : d.contents, mA = (m = (B = (M = L == null ? void 0 : L[0]) == null ? void 0 : M.compData) == null ? void 0 : B.find((sA) => (sA == null ? void 0 : sA.key) === "tableContents")) == null ? void 0 : m.contents, ZA = (N = (T = (E = L == null ? void 0 : L[0]) == null ? void 0 : E.compData) == null ? void 0 : T.find((sA) => (sA == null ? void 0 : sA.key) === "header")) == null ? void 0 : N.contents;
|
|
1706
1706
|
console.log("555readData", ZA);
|
|
1707
1707
|
let YA = [];
|
|
1708
|
-
Array.isArray(pA) && Array.isArray(mA) ? YA = [...pA, ...mA] : (YA = [], console.warn("unreadMessagesContents 或 readMessagesContents 不是数组")),
|
|
1709
|
-
const ae = ((Q = QA == null ? void 0 : QA.value) == null ? void 0 : Q.account) || ((O = QA == null ? void 0 : QA.value) == null ? void 0 : O.收件人) || "未知", Ae =
|
|
1710
|
-
var
|
|
1711
|
-
return ((
|
|
1708
|
+
Array.isArray(pA) && Array.isArray(mA) ? YA = [...pA, ...mA] : (YA = [], console.warn("unreadMessagesContents 或 readMessagesContents 不是数组")), k.value = cA(ZA, YA), console.log("555allReadMessages.value", k.value);
|
|
1709
|
+
const ae = ((Q = QA == null ? void 0 : QA.value) == null ? void 0 : Q.account) || ((O = QA == null ? void 0 : QA.value) == null ? void 0 : O.收件人) || "未知", Ae = k.value.filter((sA) => {
|
|
1710
|
+
var dA;
|
|
1711
|
+
return ((dA = sA.find((SA) => SA.prop === "收件人")) == null ? void 0 : dA.value) === ae;
|
|
1712
1712
|
});
|
|
1713
1713
|
AA.value = Ae;
|
|
1714
1714
|
} catch (cA) {
|
|
@@ -1720,7 +1720,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1720
1720
|
const n = window.messageIntervalId;
|
|
1721
1721
|
n && clearInterval(n);
|
|
1722
1722
|
});
|
|
1723
|
-
const
|
|
1723
|
+
const _ = () => {
|
|
1724
1724
|
var K, d;
|
|
1725
1725
|
if ($.value === "" || ((d = bA.value) == null ? void 0 : d[((K = bA.value) == null ? void 0 : K.length) - 1]) === Y) return !1;
|
|
1726
1726
|
const n = sessionStorage.getItem("authority"), s = JSON.parse(n || "");
|
|
@@ -1835,8 +1835,8 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1835
1835
|
default: C(() => [
|
|
1836
1836
|
a(In, {
|
|
1837
1837
|
class: "client-body",
|
|
1838
|
-
files: A(
|
|
1839
|
-
"three-data": A(
|
|
1838
|
+
files: A(ze).files,
|
|
1839
|
+
"three-data": A(ze)
|
|
1840
1840
|
}, {
|
|
1841
1841
|
"top-menu": C(() => [
|
|
1842
1842
|
a(gl, null, st({
|
|
@@ -1899,7 +1899,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1899
1899
|
a(Fn, {
|
|
1900
1900
|
name: "yemian",
|
|
1901
1901
|
size: "24",
|
|
1902
|
-
onClick:
|
|
1902
|
+
onClick: F,
|
|
1903
1903
|
active: UA.value,
|
|
1904
1904
|
title: "数据管理"
|
|
1905
1905
|
}, null, 8, ["active"])
|
|
@@ -1910,7 +1910,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1910
1910
|
_: 3
|
|
1911
1911
|
})), [
|
|
1912
1912
|
[ye, A(xA) === "view"],
|
|
1913
|
-
[T, A(
|
|
1913
|
+
[T, A(Ie)]
|
|
1914
1914
|
]),
|
|
1915
1915
|
ee(u("div", {
|
|
1916
1916
|
class: "management-page-panel",
|
|
@@ -1943,7 +1943,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1943
1943
|
default: C(() => [
|
|
1944
1944
|
a(E, { class: "client-main" }, {
|
|
1945
1945
|
default: C(() => {
|
|
1946
|
-
var N, Q, O, cA,
|
|
1946
|
+
var N, Q, O, cA, uA, IA;
|
|
1947
1947
|
return [
|
|
1948
1948
|
ee((v(), X("div", {
|
|
1949
1949
|
class: "client-main-operate",
|
|
@@ -1960,7 +1960,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1960
1960
|
])) : W("", !0),
|
|
1961
1961
|
u("div", Ol, [
|
|
1962
1962
|
re.value ? (v(), aA(m, { key: 0 })) : W("", !0),
|
|
1963
|
-
re.value ? W("", !0) : (v(!0), X(hA, { key: 1 }, FA((
|
|
1963
|
+
re.value ? W("", !0) : (v(!0), X(hA, { key: 1 }, FA((uA = A(se)) == null ? void 0 : uA.filter((L) => L.comp !== "FormTop"), (L, pA) => {
|
|
1964
1964
|
var mA;
|
|
1965
1965
|
return v(), X("div", {
|
|
1966
1966
|
class: "item-view-content",
|
|
@@ -1992,7 +1992,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
1992
1992
|
], 4);
|
|
1993
1993
|
}), 128)),
|
|
1994
1994
|
!re.value && !((IA = A(se)) != null && IA.find((L) => L.comp === "methodButton")) ? (v(), X("div", Hl, [
|
|
1995
|
-
|
|
1995
|
+
_() ? (v(), aA(be, {
|
|
1996
1996
|
key: 0,
|
|
1997
1997
|
class: "calculator-content",
|
|
1998
1998
|
onClickTrigger: me,
|
|
@@ -2001,7 +2001,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2001
2001
|
])) : W("", !0)
|
|
2002
2002
|
])
|
|
2003
2003
|
])), [
|
|
2004
|
-
[T, A(
|
|
2004
|
+
[T, A(Be)]
|
|
2005
2005
|
])
|
|
2006
2006
|
];
|
|
2007
2007
|
}),
|
|
@@ -2025,7 +2025,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2025
2025
|
u("div", bl, [
|
|
2026
2026
|
a(B, { class: "client-body" }, {
|
|
2027
2027
|
default: C(() => [
|
|
2028
|
-
a(al, { onNodeClick:
|
|
2028
|
+
a(al, { onNodeClick: x })
|
|
2029
2029
|
]),
|
|
2030
2030
|
_: 1
|
|
2031
2031
|
})
|
|
@@ -2036,7 +2036,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2036
2036
|
], 64);
|
|
2037
2037
|
};
|
|
2038
2038
|
}
|
|
2039
|
-
}), ml = /* @__PURE__ */
|
|
2039
|
+
}), ml = /* @__PURE__ */ Ee(pl, [["__scopeId", "data-v-61f6f2d4"]]), Jl = { class: "system-wrap" }, Sl = {
|
|
2040
2040
|
__name: "index",
|
|
2041
2041
|
props: {
|
|
2042
2042
|
windowConfig: {
|
|
@@ -2062,7 +2062,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2062
2062
|
},
|
|
2063
2063
|
emits: ["buildContent", "showChild"],
|
|
2064
2064
|
setup(H, { emit: lA }) {
|
|
2065
|
-
const e = ln(XA),
|
|
2065
|
+
const e = ln(XA), k = Hn(XA), AA = vn();
|
|
2066
2066
|
o(!1);
|
|
2067
2067
|
const eA = o(!0), P = H, nA = lA, Y = (Z) => {
|
|
2068
2068
|
nA("showChild", Z);
|
|
@@ -2076,12 +2076,12 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2076
2076
|
return Dt;
|
|
2077
2077
|
}
|
|
2078
2078
|
}), I = (Z) => {
|
|
2079
|
-
const
|
|
2080
|
-
Z == null || Z.forEach((
|
|
2081
|
-
|
|
2079
|
+
const G = document.documentElement;
|
|
2080
|
+
Z == null || Z.forEach((gA) => {
|
|
2081
|
+
G.style.setProperty(gA.name, gA.value);
|
|
2082
2082
|
});
|
|
2083
2083
|
};
|
|
2084
|
-
kA(() => P.platform, (Z,
|
|
2084
|
+
kA(() => P.platform, (Z, G) => {
|
|
2085
2085
|
Z && I(vA.value);
|
|
2086
2086
|
}, { immediate: !0 });
|
|
2087
2087
|
const iA = () => {
|
|
@@ -2090,25 +2090,20 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2090
2090
|
return kA(
|
|
2091
2091
|
() => [P == null ? void 0 : P.content, P == null ? void 0 : P.jsonContents],
|
|
2092
2092
|
async () => {
|
|
2093
|
-
var
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
return;
|
|
2098
|
-
}
|
|
2099
|
-
if (!(P != null && P.content) || ((_ = P == null ? void 0 : P.content) == null ? void 0 : _.length) === 0) return;
|
|
2100
|
-
eA.value = !0, AA.setImportLoading(!0);
|
|
2101
|
-
let b = [], uA = [];
|
|
2102
|
-
x.setSelectTitle([]), x.setSelectIndex(""), x.setSelectMenu(""), (zA = (rA = P == null ? void 0 : P.content) == null ? void 0 : rA.filter((OA) => OA !== "")) == null || zA.forEach((OA) => {
|
|
2103
|
-
uA.push(Pt(OA));
|
|
2104
|
-
}), b = uA == null ? void 0 : uA[0], await Ct(b), await ft(), e.setOriginalData(b);
|
|
2105
|
-
} catch {
|
|
2106
|
-
oe.error("模型内容错误");
|
|
2093
|
+
var gA, zA, p, PA;
|
|
2094
|
+
if (((gA = P == null ? void 0 : P.jsonContents) == null ? void 0 : gA.length) > 0) {
|
|
2095
|
+
e.setOriginalData(P == null ? void 0 : P.jsonContents);
|
|
2096
|
+
return;
|
|
2107
2097
|
}
|
|
2108
|
-
|
|
2098
|
+
if (!(P != null && P.content) || ((zA = P == null ? void 0 : P.content) == null ? void 0 : zA.length) === 0) return;
|
|
2099
|
+
eA.value = !0, AA.setImportLoading(!0);
|
|
2100
|
+
let Z = [], G = [];
|
|
2101
|
+
k.setSelectTitle([]), k.setSelectIndex(""), k.setSelectMenu(""), (PA = (p = P == null ? void 0 : P.content) == null ? void 0 : p.filter((OA) => OA !== "")) == null || PA.forEach((OA) => {
|
|
2102
|
+
G.push(Pt(OA));
|
|
2103
|
+
}), Z = G == null ? void 0 : G[0], await Ct(Z), await ft(), e.setOriginalData(Z), AA.setImportLoading(!1);
|
|
2109
2104
|
},
|
|
2110
2105
|
{ deep: !0, immediate: !0 }
|
|
2111
|
-
), (Z,
|
|
2106
|
+
), (Z, G) => (v(), X("div", Jl, [
|
|
2112
2107
|
H.platform === "three" ? (v(), aA(ml, {
|
|
2113
2108
|
key: 0,
|
|
2114
2109
|
windowConfig: H.windowConfig,
|
|
@@ -2137,7 +2132,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2137
2132
|
}, 8, ["windowConfig", "showButton", "platform", "taskContent"]))
|
|
2138
2133
|
]));
|
|
2139
2134
|
}
|
|
2140
|
-
}, Ll = /* @__PURE__ */
|
|
2135
|
+
}, Ll = /* @__PURE__ */ Ee(Sl, [["__scopeId", "data-v-d9b62b8b"]]), hl = { class: "add-model-content" }, Rl = {
|
|
2141
2136
|
key: 0,
|
|
2142
2137
|
class: "model-operate"
|
|
2143
2138
|
}, Kl = { class: "model-select" }, Dl = { class: "model-fill" }, Nl = {
|
|
@@ -2183,12 +2178,12 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2183
2178
|
},
|
|
2184
2179
|
emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
|
|
2185
2180
|
setup(H, { emit: lA }) {
|
|
2186
|
-
const e = H,
|
|
2181
|
+
const e = H, k = lA;
|
|
2187
2182
|
wt();
|
|
2188
|
-
const AA = o([]), eA = o(0), P = o([]), nA = o([]), Y = o(0), vA = ln(XA), I = vn(XA), { itemData: iA, originalData: Z } = BA(vA), { activeMenuPath:
|
|
2183
|
+
const AA = o([]), eA = o(0), P = o([]), nA = o([]), Y = o(0), vA = ln(XA), I = vn(XA), { itemData: iA, originalData: Z } = BA(vA), { activeMenuPath: G, platform: gA } = BA(I), zA = o(null), p = o(0), PA = o([]);
|
|
2189
2184
|
o("");
|
|
2190
|
-
const OA = o(0), JA = o([]), KA = jn(), { loginUserInfo:
|
|
2191
|
-
|
|
2185
|
+
const OA = o(0), JA = o([]), KA = jn(), { loginUserInfo: q, systemKey: te } = BA(KA), fe = () => {
|
|
2186
|
+
k("buildContent");
|
|
2192
2187
|
};
|
|
2193
2188
|
kA(
|
|
2194
2189
|
() => e == null ? void 0 : e.pageKey,
|
|
@@ -2196,32 +2191,32 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2196
2191
|
let t = {};
|
|
2197
2192
|
if ((e == null ? void 0 : e.pageKey) !== "") {
|
|
2198
2193
|
const g = await we(e == null ? void 0 : e.pageKey, sessionStorage.getItem("systemKey"), ""), i = await we("弯管仿真加工分析/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
2199
|
-
let j = ["管长", "外径"],
|
|
2194
|
+
let j = ["管长", "外径"], F = {};
|
|
2200
2195
|
i == null || i.forEach((S) => {
|
|
2201
2196
|
var jA;
|
|
2202
2197
|
(S == null ? void 0 : S.comp) === "Form" && ((jA = S == null ? void 0 : S.compData) == null || jA.forEach((EA) => {
|
|
2203
|
-
var
|
|
2204
|
-
(EA == null ? void 0 : EA.key) === "formContent" && ((
|
|
2205
|
-
j.includes(yA == null ? void 0 : yA.key) && (
|
|
2198
|
+
var rA;
|
|
2199
|
+
(EA == null ? void 0 : EA.key) === "formContent" && ((rA = EA == null ? void 0 : EA.contents) == null || rA.forEach((yA) => {
|
|
2200
|
+
j.includes(yA == null ? void 0 : yA.key) && (F[yA.key] = yA.value);
|
|
2206
2201
|
}));
|
|
2207
2202
|
}));
|
|
2208
2203
|
}), g == null || g.forEach((S) => {
|
|
2209
|
-
var jA, EA,
|
|
2204
|
+
var jA, EA, rA, yA, _A, Xe;
|
|
2210
2205
|
if ((S == null ? void 0 : S.comp) === "Table") {
|
|
2211
|
-
let ve = [], Pe = (
|
|
2206
|
+
let ve = [], Pe = (rA = (EA = (jA = S == null ? void 0 : S.compData) == null ? void 0 : jA.find((fA) => (fA == null ? void 0 : fA.key) === "header")) == null ? void 0 : EA.contents) == null ? void 0 : rA.map((fA) => fA == null ? void 0 : fA.label), $A = (Xe = (_A = (yA = S == null ? void 0 : S.compData) == null ? void 0 : yA.find((fA) => (fA == null ? void 0 : fA.key) === "tableContents")) == null ? void 0 : _A.contents) == null ? void 0 : Xe.map((fA) => (fA = fA == null ? void 0 : fA.filter((TA) => !(TA != null && TA.id)), fA));
|
|
2212
2207
|
$A == null || $A.forEach((fA) => {
|
|
2213
2208
|
ve.push(tt(fA, Pe == null ? void 0 : Pe.filter((TA) => TA !== "操作")));
|
|
2214
2209
|
}), t[S.name] = ve, t[S.name + "Content"] = S;
|
|
2215
2210
|
}
|
|
2216
|
-
}), t.extra =
|
|
2211
|
+
}), t.extra = F;
|
|
2217
2212
|
const y = await ht(), J = await Rt();
|
|
2218
|
-
t.singleRobotData = y, t.doubleRobotData = J,
|
|
2213
|
+
t.singleRobotData = y, t.doubleRobotData = J, k("threeData", t);
|
|
2219
2214
|
}
|
|
2220
2215
|
},
|
|
2221
2216
|
{ deep: !0, immediate: !0 }
|
|
2222
2217
|
);
|
|
2223
2218
|
const DA = (t) => {
|
|
2224
|
-
JA.value = t,
|
|
2219
|
+
JA.value = t, k("openThreeBuild", t);
|
|
2225
2220
|
};
|
|
2226
2221
|
kA(
|
|
2227
2222
|
() => e == null ? void 0 : e.pathContent,
|
|
@@ -2234,14 +2229,14 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2234
2229
|
}
|
|
2235
2230
|
);
|
|
2236
2231
|
const ge = (t) => {
|
|
2237
|
-
|
|
2232
|
+
k("contentChange", t);
|
|
2238
2233
|
}, QA = (t) => {
|
|
2239
2234
|
var i;
|
|
2240
2235
|
const g = (i = fn(t == null ? void 0 : t.wholeValue)) == null ? void 0 : i.map((j) => {
|
|
2241
|
-
var
|
|
2242
|
-
return (j == null ? void 0 : j.comp) === "Form" && (j.compData = (
|
|
2236
|
+
var F;
|
|
2237
|
+
return (j == null ? void 0 : j.comp) === "Form" && (j.compData = (F = j.compData) == null ? void 0 : F.map((y) => ((y == null ? void 0 : y.key) === "formContent" && (y.contents = yt(y == null ? void 0 : y.contents)), y))), j;
|
|
2243
2238
|
});
|
|
2244
|
-
|
|
2239
|
+
k("change", {
|
|
2245
2240
|
originalContents: Z.value,
|
|
2246
2241
|
currentContents: t == null ? void 0 : t.wholeValue,
|
|
2247
2242
|
editContent: t == null ? void 0 : t.editValue,
|
|
@@ -2262,16 +2257,16 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2262
2257
|
const g = t.target.files;
|
|
2263
2258
|
if (!g) return;
|
|
2264
2259
|
new FileReader(), AA.value = [], P.value = [], OA.value = g.length;
|
|
2265
|
-
const i = Array.from(g).map(async (j) => await new Promise((
|
|
2260
|
+
const i = Array.from(g).map(async (j) => await new Promise((F) => {
|
|
2266
2261
|
const y = new FileReader();
|
|
2267
2262
|
y.onload = (J) => {
|
|
2268
2263
|
try {
|
|
2269
|
-
P.value.push(J.target.result),
|
|
2264
|
+
P.value.push(J.target.result), p.value++;
|
|
2270
2265
|
} catch (S) {
|
|
2271
2266
|
console.error("解析失败:", S);
|
|
2272
2267
|
return;
|
|
2273
2268
|
}
|
|
2274
|
-
}, y.onerror = () =>
|
|
2269
|
+
}, y.onerror = () => F(`读取 ${j.name} 失败`), y.readAsText(j), t.target.value = "", zA.value = null, eA.value++;
|
|
2275
2270
|
}));
|
|
2276
2271
|
await Promise.all(i);
|
|
2277
2272
|
};
|
|
@@ -2282,10 +2277,10 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2282
2277
|
},
|
|
2283
2278
|
{ deep: !0, immediate: !0 }
|
|
2284
2279
|
), kA(
|
|
2285
|
-
() =>
|
|
2280
|
+
() => p.value,
|
|
2286
2281
|
() => {
|
|
2287
2282
|
var t;
|
|
2288
|
-
((t =
|
|
2283
|
+
((t = PA.value) == null ? void 0 : t.length) !== 0 && (vA.setOriginalData(PA.value), vA.setItemData(PA.value));
|
|
2289
2284
|
},
|
|
2290
2285
|
{ deep: !0, immediate: !0 }
|
|
2291
2286
|
), o(""), o("");
|
|
@@ -2298,11 +2293,11 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2298
2293
|
return !1;
|
|
2299
2294
|
const g = t == null ? void 0 : t[0], i = g == null ? void 0 : g.name;
|
|
2300
2295
|
return !(t.length === 1 && !i);
|
|
2301
|
-
}),
|
|
2296
|
+
}), Ie = () => {
|
|
2302
2297
|
NA.value = !1;
|
|
2303
|
-
},
|
|
2304
|
-
var
|
|
2305
|
-
const t = (
|
|
2298
|
+
}, ie = async () => {
|
|
2299
|
+
var F, y, J;
|
|
2300
|
+
const t = (F = q == null ? void 0 : q.value) == null ? void 0 : F.account, g = (y = q == null ? void 0 : q.value) == null ? void 0 : y.password;
|
|
2306
2301
|
if (!t)
|
|
2307
2302
|
return;
|
|
2308
2303
|
const i = await ue({
|
|
@@ -2313,11 +2308,11 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2313
2308
|
});
|
|
2314
2309
|
let j = ((J = i == null ? void 0 : i.data) == null ? void 0 : J.result) || [];
|
|
2315
2310
|
return j = j == null ? void 0 : j.filter((S) => {
|
|
2316
|
-
var EA,
|
|
2317
|
-
return ((
|
|
2311
|
+
var EA, rA;
|
|
2312
|
+
return ((rA = (EA = S == null ? void 0 : S.value) == null ? void 0 : EA.tableData) == null ? void 0 : rA.account) === t;
|
|
2318
2313
|
}), j;
|
|
2319
|
-
},
|
|
2320
|
-
const t = await
|
|
2314
|
+
}, Be = async () => {
|
|
2315
|
+
const t = await ie(), g = t == null ? void 0 : t.map((i) => i == null ? void 0 : i.key);
|
|
2321
2316
|
tA.value = g;
|
|
2322
2317
|
}, We = () => {
|
|
2323
2318
|
if (!$.value.targetModel) {
|
|
@@ -2326,40 +2321,40 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2326
2321
|
}
|
|
2327
2322
|
}, bA = async () => {
|
|
2328
2323
|
var g;
|
|
2329
|
-
(g =
|
|
2324
|
+
(g = q == null ? void 0 : q.value) != null && g.account && (NA.value = !0, await Be(), We());
|
|
2330
2325
|
}, WA = (t) => {
|
|
2331
2326
|
sessionStorage.setItem("systemKey", t), KA.setSystemKey(t), Ut();
|
|
2332
|
-
},
|
|
2333
|
-
var g, i, j,
|
|
2327
|
+
}, ze = async (t) => {
|
|
2328
|
+
var g, i, j, F, y, J, S, jA, EA;
|
|
2334
2329
|
try {
|
|
2335
|
-
const
|
|
2330
|
+
const rA = await ue({
|
|
2336
2331
|
key: {
|
|
2337
2332
|
systemKey: t,
|
|
2338
2333
|
layer: "superAdmin"
|
|
2339
2334
|
}
|
|
2340
2335
|
});
|
|
2341
|
-
if (((g =
|
|
2342
|
-
const yA = (y = (
|
|
2336
|
+
if (((g = rA == null ? void 0 : rA.data) == null ? void 0 : g.code) === 200) {
|
|
2337
|
+
const yA = (y = (F = (j = (i = rA == null ? void 0 : rA.data) == null ? void 0 : i.result) == null ? void 0 : j[0]) == null ? void 0 : F.key) == null ? void 0 : y.systemType;
|
|
2343
2338
|
let _A = "browser";
|
|
2344
|
-
yA === "制造系统" && (_A = "client"), yA === "三维系统" && (_A = "three"), I.setPlatform(_A), I.setPlatName(((EA = (jA = (S = (J =
|
|
2339
|
+
yA === "制造系统" && (_A = "client"), yA === "三维系统" && (_A = "three"), I.setPlatform(_A), I.setPlatName(((EA = (jA = (S = (J = rA == null ? void 0 : rA.data) == null ? void 0 : J.result) == null ? void 0 : S[0]) == null ? void 0 : jA.key) == null ? void 0 : EA.name) ?? "");
|
|
2345
2340
|
}
|
|
2346
|
-
} catch (
|
|
2347
|
-
return Promise.reject(
|
|
2341
|
+
} catch (rA) {
|
|
2342
|
+
return Promise.reject(rA);
|
|
2348
2343
|
}
|
|
2349
|
-
},
|
|
2344
|
+
}, Qe = (t) => {
|
|
2350
2345
|
$.value.targetModel = t;
|
|
2351
2346
|
}, re = async () => {
|
|
2352
2347
|
var t;
|
|
2353
2348
|
if (le.value) {
|
|
2354
2349
|
if (!((t = $ == null ? void 0 : $.value) != null && t.targetModel)) {
|
|
2355
|
-
|
|
2350
|
+
je.warning("请先选择模型");
|
|
2356
2351
|
return;
|
|
2357
2352
|
}
|
|
2358
|
-
|
|
2353
|
+
Ie(), WA($.value.targetModel), ze($.value.targetModel);
|
|
2359
2354
|
}
|
|
2360
2355
|
}, xe = async () => {
|
|
2361
2356
|
var g, i, j;
|
|
2362
|
-
(g =
|
|
2357
|
+
(g = q == null ? void 0 : q.value) == null || g.account, (i = q == null ? void 0 : q.value) == null || i.password;
|
|
2363
2358
|
const t = await ue({
|
|
2364
2359
|
key: {
|
|
2365
2360
|
pageKey: "/user"
|
|
@@ -2370,18 +2365,18 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2370
2365
|
const t = await xe();
|
|
2371
2366
|
return t == null ? void 0 : t.reduce((i, j) => {
|
|
2372
2367
|
var J;
|
|
2373
|
-
const
|
|
2368
|
+
const F = ((J = j == null ? void 0 : j.key) == null ? void 0 : J.systemKey) || -1, y = Number(F);
|
|
2374
2369
|
return Math.max(y, i);
|
|
2375
2370
|
}, 0);
|
|
2376
2371
|
}, pe = async () => {
|
|
2377
2372
|
const t = await me();
|
|
2378
|
-
WA(t),
|
|
2373
|
+
WA(t), ze(t), Ie();
|
|
2379
2374
|
}, me = async () => {
|
|
2380
2375
|
var y, J, S;
|
|
2381
2376
|
const t = await de();
|
|
2382
2377
|
if (!t)
|
|
2383
2378
|
return;
|
|
2384
|
-
const g = t + 1, i = g.toString(), j = (y =
|
|
2379
|
+
const g = t + 1, i = g.toString(), j = (y = q == null ? void 0 : q.value) == null ? void 0 : y.account, F = (J = q == null ? void 0 : q.value) == null ? void 0 : J.password;
|
|
2385
2380
|
return (S = $ == null ? void 0 : $.value) == null || S.modelName, await ot({
|
|
2386
2381
|
key: {
|
|
2387
2382
|
pageKey: "/user",
|
|
@@ -2391,7 +2386,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2391
2386
|
value: {
|
|
2392
2387
|
tableData: {
|
|
2393
2388
|
account: j,
|
|
2394
|
-
password:
|
|
2389
|
+
password: F
|
|
2395
2390
|
}
|
|
2396
2391
|
}
|
|
2397
2392
|
}), g;
|
|
@@ -2415,31 +2410,31 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2415
2410
|
}, Je = async () => {
|
|
2416
2411
|
$.value.targetModel = "", await bA();
|
|
2417
2412
|
}, Ue = async (t) => {
|
|
2418
|
-
var j,
|
|
2413
|
+
var j, F;
|
|
2419
2414
|
I.setImportLoading(!0);
|
|
2420
|
-
const g = await
|
|
2415
|
+
const g = await ie().catch((y) => (I.setImportLoading(!1), je.error("删除失败"), Promise.reject(y))), i = g == null ? void 0 : g.find((y) => {
|
|
2421
2416
|
var S;
|
|
2422
2417
|
const J = (S = y == null ? void 0 : y.key) == null ? void 0 : S.systemKey;
|
|
2423
2418
|
return t === J;
|
|
2424
2419
|
});
|
|
2425
|
-
if (i && (g == null ? void 0 : g.length) === 1 && await qA(i).catch((y) => (I.setImportLoading(!1),
|
|
2420
|
+
if (i && (g == null ? void 0 : g.length) === 1 && await qA(i).catch((y) => (I.setImportLoading(!1), je.error("删除失败"), Promise.reject(y))), i && (g == null ? void 0 : g.length) > 1) {
|
|
2426
2421
|
const y = await ue({
|
|
2427
2422
|
key: {
|
|
2428
2423
|
systemKey: t
|
|
2429
2424
|
}
|
|
2430
|
-
}).catch((J) => (I.setImportLoading(!1),
|
|
2425
|
+
}).catch((J) => (I.setImportLoading(!1), je.error("删除失败"), Promise.reject(J)));
|
|
2431
2426
|
if (((j = y == null ? void 0 : y.data) == null ? void 0 : j.code) === 200) {
|
|
2432
|
-
const J = (
|
|
2433
|
-
await UA(J).catch((S) => (I.setImportLoading(!1),
|
|
2427
|
+
const J = (F = y == null ? void 0 : y.data) == null ? void 0 : F.result;
|
|
2428
|
+
await UA(J).catch((S) => (I.setImportLoading(!1), je.error("删除失败"), Promise.reject(S)));
|
|
2434
2429
|
}
|
|
2435
2430
|
}
|
|
2436
|
-
await Je(), I.setImportLoading(!1),
|
|
2431
|
+
await Je(), I.setImportLoading(!1), je.success("删除成功");
|
|
2437
2432
|
};
|
|
2438
2433
|
kA(() => te.value, (t) => {
|
|
2439
2434
|
(e == null ? void 0 : e.oldSystemKey) === "" && ($.value.targetModel = t, t || bA());
|
|
2440
2435
|
}, { deep: !0, immediate: !0 });
|
|
2441
2436
|
const MA = async () => {
|
|
2442
|
-
var g, i, j,
|
|
2437
|
+
var g, i, j, F;
|
|
2443
2438
|
I.setImportLoading(!0);
|
|
2444
2439
|
const t = await ue({
|
|
2445
2440
|
key: {
|
|
@@ -2447,11 +2442,11 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2447
2442
|
}
|
|
2448
2443
|
});
|
|
2449
2444
|
if (((g = t == null ? void 0 : t.data) == null ? void 0 : g.code) === 200) {
|
|
2450
|
-
let y = (
|
|
2445
|
+
let y = (F = (j = (i = t == null ? void 0 : t.data) == null ? void 0 : i.result) == null ? void 0 : j.map((J) => {
|
|
2451
2446
|
var S;
|
|
2452
2447
|
if (((S = J == null ? void 0 : J.key) == null ? void 0 : S.layer) !== "superAdmin")
|
|
2453
2448
|
return J == null ? void 0 : J.id;
|
|
2454
|
-
})) == null ? void 0 :
|
|
2449
|
+
})) == null ? void 0 : F.filter((J) => J);
|
|
2455
2450
|
(y == null ? void 0 : y.length) > 0 && await Zn({
|
|
2456
2451
|
ids: y
|
|
2457
2452
|
}), I.setRawMenus([]), vA.setRefreshCurStructure(!0);
|
|
@@ -2478,7 +2473,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2478
2473
|
(e == null ? void 0 : e.mode) === "view" ? (v(), X("div", Nl, [
|
|
2479
2474
|
(v(), aA(Ll, {
|
|
2480
2475
|
showButton: e == null ? void 0 : e.showButton,
|
|
2481
|
-
platform: A(
|
|
2476
|
+
platform: A(gA),
|
|
2482
2477
|
content: AA.value,
|
|
2483
2478
|
onChange: QA,
|
|
2484
2479
|
jsonContents: nA.value,
|
|
@@ -2491,9 +2486,9 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2491
2486
|
default: C(() => [
|
|
2492
2487
|
a(Bn, null, {
|
|
2493
2488
|
dropTitle: C(() => {
|
|
2494
|
-
var
|
|
2489
|
+
var F;
|
|
2495
2490
|
return [
|
|
2496
|
-
((
|
|
2491
|
+
((F = e == null ? void 0 : e.jsonContents) == null ? void 0 : F.length) === 0 && (e != null && e.showButton) ? (v(), aA(j, {
|
|
2497
2492
|
key: 0,
|
|
2498
2493
|
class: "system-default-button"
|
|
2499
2494
|
}, {
|
|
@@ -2567,7 +2562,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2567
2562
|
a(gn, {
|
|
2568
2563
|
class: "select-model-dialog",
|
|
2569
2564
|
visible: NA.value && (e == null ? void 0 : e.oldSystemKey) === "",
|
|
2570
|
-
onBeforeDestroy:
|
|
2565
|
+
onBeforeDestroy: Ie,
|
|
2571
2566
|
showClose: !1,
|
|
2572
2567
|
closeOnClickModal: !1,
|
|
2573
2568
|
closeOnPressEscape: !1,
|
|
@@ -2576,7 +2571,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2576
2571
|
appendToBody: !1
|
|
2577
2572
|
}, {
|
|
2578
2573
|
default: C(() => {
|
|
2579
|
-
var
|
|
2574
|
+
var F, y;
|
|
2580
2575
|
return [
|
|
2581
2576
|
u("div", Ul, [
|
|
2582
2577
|
u("div", Ml, [
|
|
@@ -2592,14 +2587,14 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2592
2587
|
]),
|
|
2593
2588
|
u("div", Zl, [
|
|
2594
2589
|
g[5] || (g[5] = u("div", { class: "enter-project-title" }, "项目列表", -1)),
|
|
2595
|
-
(
|
|
2590
|
+
(F = tA.value) != null && F.length ? (v(), X("div", Yl, [
|
|
2596
2591
|
(v(!0), X(hA, null, FA(tA.value, (J) => {
|
|
2597
2592
|
var S;
|
|
2598
2593
|
return v(), X("div", {
|
|
2599
2594
|
class: He(["project-item", {
|
|
2600
2595
|
"project-item-active": (J == null ? void 0 : J.systemKey) == $.value.targetModel
|
|
2601
2596
|
}]),
|
|
2602
|
-
onClick: (jA) =>
|
|
2597
|
+
onClick: (jA) => Qe(J == null ? void 0 : J.systemKey)
|
|
2603
2598
|
}, [
|
|
2604
2599
|
u("div", Fl, CA(`${J.name ?? ""}(${J.systemKey})`), 1),
|
|
2605
2600
|
u("div", Vl, [
|
|
@@ -2631,7 +2626,7 @@ const gl = /* @__PURE__ */ Ie(dt, [["render", sl], ["__scopeId", "data-v-94d06d5
|
|
|
2631
2626
|
]);
|
|
2632
2627
|
};
|
|
2633
2628
|
}
|
|
2634
|
-
}, Hv = /* @__PURE__ */
|
|
2629
|
+
}, Hv = /* @__PURE__ */ Ee(_l, [["__scopeId", "data-v-0b6f1a18"]]);
|
|
2635
2630
|
export {
|
|
2636
2631
|
Hv as default
|
|
2637
2632
|
};
|