ss-component-new 1.3.606 → 1.3.608
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MTLLoader-BL2uYkTJ.js → MTLLoader-B6ottYFV.js} +2 -2
- package/dist/{OrbitControls-Zyj23qrC.js → OrbitControls-BFVKU7s-.js} +1 -1
- package/dist/{URDFLoader-CRx5L75v.js → URDFLoader-CH-7Pzmq.js} +589 -584
- package/dist/{animationData-CJQE6_nu.js → animationData-F0z3GN7j.js} +3 -3
- package/dist/{array-BkavaXXQ.js → array-Clho0aNm.js} +13 -14
- package/dist/{clone-ESeDvnJv.js → clone-MyfSNInd.js} +1 -1
- package/dist/{eleIcon-C7Pz9jha.js → eleIcon-BoKZ_PzU.js} +2 -2
- package/dist/{iconfont-BnmSp7qc.js → iconfont-BJYdStg5.js} +4 -4
- package/dist/{index-BvkIoiVW.js → index-6qXeMn6b.js} +3 -3
- package/dist/{index-DIC1IjU6.js → index-B1pggnuk.js} +60 -62
- package/dist/{index-BXh02EAd.js → index-B2LYEScO.js} +4 -4
- package/dist/{index-YvUJL9Us.js → index-B4NcYIuS.js} +1 -1
- package/dist/{index-ClbVbnpS.js → index-B4xzD-6v.js} +18 -20
- package/dist/{index-D8UY4uNQ.js → index-B8NQAdR4.js} +966 -967
- package/dist/{index-rlStojTL.js → index-BFqUz4pN.js} +1 -1
- package/dist/{index-Bdlw5PXG.js → index-BPpFNODf.js} +5 -5
- package/dist/{index-C5QKOpfx.js → index-BWPIkFPn.js} +9227 -8773
- package/dist/{index-CPW7tdrA.js → index-BkkvdZXm.js} +17 -20
- package/dist/{index-BG89B83e.js → index-Bqqhe316.js} +148 -157
- package/dist/{index-B0M1YCUY.js → index-BvtOLltL.js} +7 -7
- package/dist/{index-DsdWSuDi.js → index-BvyM6d06.js} +482 -483
- package/dist/{index-CX8Apbo7.js → index-BybrpYzx.js} +1 -1
- package/dist/{index-tMqKF2l6.js → index-CM6aWexA.js} +2 -2
- package/dist/{index-C31Pm35-.js → index-CQHLe7l6.js} +573 -608
- package/dist/{index-BBBCr4Oo.js → index-CT1LWsrT.js} +2 -2
- package/dist/{index-CTicGWoS.js → index-CXqqIuf-.js} +3 -3
- package/dist/{index-D9xMYIes.js → index-CYjsE5Gs.js} +3 -3
- package/dist/index-CjNWVVhm.js +2623 -0
- package/dist/{index-B_fRppeJ.js → index-CkO7j_i1.js} +8 -8
- package/dist/{index-DlQXFCw8.js → index-CvZcm-Tt.js} +7 -8
- package/dist/{index-XvX6TMzr.js → index-DCY5J8nu.js} +1 -1
- package/dist/{index-C3pboX9W.js → index-DIVct0z6.js} +5 -5
- package/dist/{index-11kpzK0A.js → index-DJrzqi4-.js} +17 -17
- package/dist/{index-DADd4cmS.js → index-DK9-eF24.js} +21851 -21873
- package/dist/{index-BUqviBFi.js → index-DcPtyCDm.js} +29 -35
- package/dist/{index-D1E8EPxn.js → index-DmILGKv9.js} +57 -61
- package/dist/{index-B4-GD2HP.js → index-DpdwR2O0.js} +3 -3
- package/dist/{index-BOqo9XDw.js → index-S5AsqKOU.js} +6 -6
- package/dist/{index-BA1kJZth.js → index-aTEfnfYn.js} +36 -40
- package/dist/{index-BHtNKL1L.js → index-dD-mKgue.js} +2 -2
- package/dist/{index-UC3celFR.js → index-gAcMQttx.js} +8 -8
- package/dist/{index-DkumSU1-.js → index-hg0CdgKe.js} +4 -4
- package/dist/{index-CC5AxngM.js → index-meZOiovI.js} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-DRzriV-s.js → index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_39e1db95_lang-X_k372gl.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-Dp7tIi0S.js} +27760 -27735
- package/dist/isString-Dxm3W5iX.js +8 -0
- package/dist/{localIcon-D5UoFBU5.js → localIcon-CoJHw5ss.js} +1 -1
- package/dist/{main-CmzE3HuC.js → main-cZ53HaDl.js} +9 -9
- package/dist/{menuIndex-DAW9B-9g.js → menuIndex-BiUB7t5q.js} +1 -1
- package/dist/{request-B1c8BUkR.js → request-BfrhYBTM.js} +3480 -3062
- package/dist/ss-component.css +3 -3
- package/dist/ss-component.js +14 -14
- package/dist/ss-component2.js +13 -13
- package/dist/ss-component3.js +1 -1
- package/dist/svgIcon-4m2zaZkj.js +42 -0
- package/dist/{threeModel-DDlWUHsN.js → threeModel-D5dzjyJO.js} +174 -174
- package/dist/{threePreview-CVO6XMIe.js → threePreview-CpcrqmFS.js} +13 -13
- package/dist/{threeSceneView-BQXSPHMu.js → threeSceneView-BbM1FFcc.js} +24 -25
- package/dist/{threeSceneViewForCPMPIP-BYUnvSDz.js → threeSceneViewForCPMPIP-4bANk0sU.js} +17 -18
- package/dist/{threeTrackPathView-7_x3jeap.js → threeTrackPathView-Bw6e-quT.js} +8 -8
- package/dist/{threeViewerHost-DTWrmIQy.js → threeViewerHost-BMUhfp_Z.js} +4 -4
- package/dist/{urdfTree-D0Iom75E.js → urdfTree-DU02c_91.js} +9 -9
- package/dist/{workpieceTreePanel-DEEMKY1v.js → workpieceTreePanel-XH9mYAT2.js} +56 -60
- package/package.json +1 -1
- package/dist/JSEncrypt-B36c1iN5.js +0 -1983
- package/dist/index-iD7cVTqr.js +0 -572
- package/dist/isString-BlNsHiyU.js +0 -8
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/svgIcon-4u4PW7Is.js +0 -42
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import { computed as kl, defineComponent as Bl, defineProps as Kt, ref as B, watch as vl, onMounted as Hl, onUnmounted as it, resolveComponent as le,
|
|
2
|
-
import { m as qt, a as Wt, b as Ht, c as gs } from "./array-
|
|
3
|
-
import { u as jl, p as bl, s as yl, c as Al, a as la, b as Xl, j as Ra, d as kt, l as ys, k as Ca, e as Ea, m as bs, E as ma, n as Pt, o as at, v as tt, q as Vn, r as Cs, t as Un, i as ms, w as At, x as ca, y as bn, z as ws, A as jn, B as ks, C as As, D as On, F as Cn, G as Is, H as Ms } from "./index-
|
|
4
|
-
import { _ as ct, s as Yt, a as
|
|
1
|
+
import { computed as kl, defineComponent as Bl, defineProps as Kt, ref as B, watch as vl, onMounted as Hl, onUnmounted as it, resolveComponent as le, openBlock as f, createBlock as fe, withCtx as o, createElementVNode as V, toDisplayString as ol, createElementBlock as $, Fragment as tl, renderList as ul, normalizeStyle as Pl, createCommentVNode as je, createVNode as s, unref as n, resolveDynamicComponent as ia, provide as lt, shallowRef as vs, resolveDirective as rt, withDirectives as Yl, vShow as ha, createTextVNode as cl, renderSlot as Wl, normalizeClass as Nl, createSlots as wt, mergeProps as xn, withModifiers as Ul, defineAsyncComponent as yn, reactive as xl, nextTick as Fl, withKeys as hs } from "vue";
|
|
2
|
+
import { m as qt, a as Wt, b as Ht, c as gs } from "./array-Clho0aNm.js";
|
|
3
|
+
import { u as jl, p as bl, s as yl, c as Al, a as la, b as Xl, j as Ra, d as kt, l as ys, k as Ca, e as Ea, m as bs, E as ma, n as Pt, o as at, v as tt, q as Vn, r as Cs, t as Un, i as ms, w as At, x as ca, y as bn, z as ws, A as jn, B as ks, C as As, D as On, F as Cn, G as Is, H as Ms } from "./index-B8NQAdR4.js";
|
|
4
|
+
import { _ as ct, s as Yt, a as Ss } from "./index-B1pggnuk.js";
|
|
5
5
|
import { useRouter as xa } from "vue-router";
|
|
6
|
-
import { a as ut, d as Ft, e as dt, f as pt, g as ft, h as vt, t as
|
|
7
|
-
import { g as Pa, s as Es, a as mn, _ as Rt, b as Ds, u as Ps, c as Ln, X as Rs, Q as xs } from "./index-
|
|
8
|
-
import { u as Qn, g as wn, b as kn, c as Vs, a as Us } from "./index-
|
|
9
|
-
import { E as
|
|
10
|
-
import { b as Ws, g as Yn, c as Hs, u as Jt, d as sa, e as ot, o as Fn, l as Ys, n as Fs, f as Js, h as ga, s as mt, t as zs, i as Xs } from "./index-
|
|
11
|
-
import { d as Gs, g as nt, a as Zs } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-
|
|
12
|
-
import { a as Jn, b as va, u as zn, s as na, c as $s, d as eo, r as Dl, n as lo, o as pa, e as fa, f as Xn, h as xt, i as Gn, j as zt, k as ao, t as to, l as ka, m as It, p as yt, q as Aa, v as Za, w as Ia, x as no, y as Ma, z as
|
|
13
|
-
import "./
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./
|
|
16
|
-
import { c as Xt, f as Ql, b as $n, a as yo, g as bo, d as _n } from "./menuIndex-DAW9B-9g.js";
|
|
6
|
+
import { a as ut, d as Ft, e as dt, f as pt, g as ft, h as vt, t as _s, c as Ts, b as Bs } from "./index-ChNfRlIP.js";
|
|
7
|
+
import { g as Pa, s as Es, a as mn, _ as Rt, b as Ds, u as Ps, c as Ln, X as Rs, Q as xs } from "./index-BWPIkFPn.js";
|
|
8
|
+
import { u as Qn, g as wn, b as kn, c as Vs, a as Us } from "./index-B4NcYIuS.js";
|
|
9
|
+
import { E as _l, d as Nn, b as ra, I as js, s as aa, e as Kn, a as qn, c as Wn, g as Os, h as Ls, p as Hn, m as Qs, i as Ns, j as Ks, f as qs } from "./request-BfrhYBTM.js";
|
|
10
|
+
import { b as Ws, g as Yn, c as Hs, u as Jt, d as sa, e as ot, o as Fn, l as Ys, n as Fs, f as Js, h as ga, s as mt, t as zs, i as Xs } from "./index-BvyM6d06.js";
|
|
11
|
+
import { d as Gs, g as nt, a as Zs } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-Dp7tIi0S.js";
|
|
12
|
+
import { a as Jn, b as va, u as zn, s as na, c as $s, d as eo, r as Dl, n as lo, o as pa, e as fa, f as Xn, h as xt, i as Gn, j as zt, k as ao, t as to, l as ka, m as It, p as yt, q as Aa, v as Za, w as Ia, x as no, y as Ma, z as Sa, A as so, B as _a, C as Ta, D as $a, E as An, F as oo, G as In, H as bt, I as Mt, J as io, K as Gl, L as ro, M as co, N as St, O as uo, P as po, Q as fo, g as Zn, R as vo, S as Mn, T as ho, U as go } from "./index-DK9-eF24.js";
|
|
13
|
+
import "./index-BvtOLltL.js";
|
|
14
|
+
import "./index-DCY5J8nu.js";
|
|
15
|
+
import { c as Xt, f as Ql, b as $n, a as yo, g as bo, d as Sn } from "./menuIndex-BiUB7t5q.js";
|
|
17
16
|
import { _ as Kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
import { C as Co } from "./index-
|
|
19
|
-
import { S as Tl } from "./index-
|
|
20
|
-
import mo from "./threeModel-
|
|
21
|
-
import { _ as oa } from "./index.vue_vue_type_script_setup_true_lang-
|
|
22
|
-
import { s as ta } from "./index-
|
|
23
|
-
import { T as Vt, u as wo, a as ko } from "./threeViewerHost-
|
|
24
|
-
import { s as Ut } from "./index-
|
|
25
|
-
import { u as Ao } from "./index-
|
|
26
|
-
import { u as Io } from "./index-
|
|
27
|
-
import { u as es } from "./index-
|
|
28
|
-
import { T as
|
|
29
|
-
import { f as Mo, a as
|
|
17
|
+
import { C as Co } from "./index-aTEfnfYn.js";
|
|
18
|
+
import { S as Tl } from "./index-dD-mKgue.js";
|
|
19
|
+
import mo from "./threeModel-D5dzjyJO.js";
|
|
20
|
+
import { _ as oa } from "./index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js";
|
|
21
|
+
import { s as ta } from "./index-DJrzqi4-.js";
|
|
22
|
+
import { T as Vt, u as wo, a as ko } from "./threeViewerHost-BMUhfp_Z.js";
|
|
23
|
+
import { s as Ut } from "./index-CjNWVVhm.js";
|
|
24
|
+
import { u as Ao } from "./index-CT1LWsrT.js";
|
|
25
|
+
import { u as Io } from "./index-BybrpYzx.js";
|
|
26
|
+
import { u as es } from "./index-CYjsE5Gs.js";
|
|
27
|
+
import { T as _n } from "./svgIcon-4m2zaZkj.js";
|
|
28
|
+
import { f as Mo, a as So } from "./animationData-F0z3GN7j.js";
|
|
30
29
|
jl();
|
|
31
|
-
const
|
|
30
|
+
const _o = jl(), ls = async (l, C) => {
|
|
32
31
|
var c, h, M, U;
|
|
33
32
|
try {
|
|
34
33
|
const I = await Qn({
|
|
@@ -39,7 +38,7 @@ const So = jl(), ls = async (l, C) => {
|
|
|
39
38
|
});
|
|
40
39
|
if (((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 200) {
|
|
41
40
|
const x = (M = (h = C == null ? void 0 : C.compData) == null ? void 0 : h[0]) == null ? void 0 : M.contents;
|
|
42
|
-
|
|
41
|
+
_o.setRawMenus(x ?? []);
|
|
43
42
|
}
|
|
44
43
|
return (U = I == null ? void 0 : I.data) == null ? void 0 : U.code;
|
|
45
44
|
} catch (I) {
|
|
@@ -168,16 +167,16 @@ function Po(l = "menu") {
|
|
|
168
167
|
children: v.level === 0 ? [] : v.children ?? [],
|
|
169
168
|
childMenus: ye(v.children)
|
|
170
169
|
} : v), O = (a, v) => {
|
|
171
|
-
var g,
|
|
172
|
-
return (
|
|
170
|
+
var g, S;
|
|
171
|
+
return (S = (g = m.value) == null ? void 0 : g.find((q) => (a.title + v).includes(q.value))) == null ? void 0 : S.value;
|
|
173
172
|
}, F = (a, v = "", g = 0) => {
|
|
174
173
|
var j;
|
|
175
|
-
let
|
|
174
|
+
let S = Al(a);
|
|
176
175
|
const q = Array.from(/* @__PURE__ */ new Set([...(j = ee.value) == null ? void 0 : j.map((i) => {
|
|
177
176
|
var k;
|
|
178
177
|
return (k = i == null ? void 0 : i.key) == null ? void 0 : k.pageKey;
|
|
179
178
|
})]));
|
|
180
|
-
return Array.isArray(
|
|
179
|
+
return Array.isArray(S) || (S = [S]), S == null ? void 0 : S.map((i) => {
|
|
181
180
|
let k, N = v ? `${v}/${i.title}` : i.title;
|
|
182
181
|
k = N;
|
|
183
182
|
const G = {
|
|
@@ -207,9 +206,9 @@ function Po(l = "menu") {
|
|
|
207
206
|
const v = ye(a);
|
|
208
207
|
return Gt(v), h.setMenus(v), v;
|
|
209
208
|
}), Be = async (a) => ((a == null ? void 0 : a.level) === 0 ? (sessionStorage.getItem("systemKey"), a == null || a.path) : (sessionStorage.getItem("systemKey"), "" + (a == null ? void 0 : a.path)), null), me = (a, v) => {
|
|
210
|
-
var
|
|
209
|
+
var S, q;
|
|
211
210
|
const g = a == null ? void 0 : a.find((ce) => (ce == null ? void 0 : ce.operateType) === "新增");
|
|
212
|
-
return ((q = (
|
|
211
|
+
return ((q = (S = T.value) == null ? void 0 : S.data) == null ? void 0 : q.path) === (v == null ? void 0 : v.path) ? g == null ? void 0 : g.menuIcon : O(v, v == null ? void 0 : v.level);
|
|
213
212
|
}, Oe = async (a, v) => {
|
|
214
213
|
if (!Array.isArray(v)) return a;
|
|
215
214
|
for (const g of v)
|
|
@@ -223,8 +222,8 @@ function Po(l = "menu") {
|
|
|
223
222
|
}, ll = B(null), il = async (a, v = null) => await Promise.all(
|
|
224
223
|
a == null ? void 0 : a.map(async (g) => {
|
|
225
224
|
var ce;
|
|
226
|
-
let
|
|
227
|
-
const q = (
|
|
225
|
+
let S = await Oe(g, Ee.value);
|
|
226
|
+
const q = (S == null ? void 0 : S.config) ?? ((ce = v == null ? void 0 : v.filter((j) => j.allowInherit)) == null ? void 0 : ce.map((j) => {
|
|
228
227
|
var i;
|
|
229
228
|
return {
|
|
230
229
|
...j,
|
|
@@ -236,14 +235,14 @@ function Po(l = "menu") {
|
|
|
236
235
|
//弹窗和内容的结构都继承
|
|
237
236
|
};
|
|
238
237
|
}));
|
|
239
|
-
return
|
|
240
|
-
...
|
|
238
|
+
return S != null && S.childMenus && (S == null ? void 0 : S.childMenus.length) > 0 && (S = {
|
|
239
|
+
...S,
|
|
241
240
|
icon: me(q, g),
|
|
242
241
|
config: q,
|
|
243
242
|
children: await il(g == null ? void 0 : g.childMenus, q),
|
|
244
243
|
childMenus: await il(g == null ? void 0 : g.childMenus, q)
|
|
245
244
|
}), {
|
|
246
|
-
...
|
|
245
|
+
...S,
|
|
247
246
|
icon: me(q, g),
|
|
248
247
|
config: q
|
|
249
248
|
};
|
|
@@ -252,9 +251,9 @@ function Po(l = "menu") {
|
|
|
252
251
|
vl(
|
|
253
252
|
() => u.value,
|
|
254
253
|
(a) => {
|
|
255
|
-
var g,
|
|
254
|
+
var g, S, q;
|
|
256
255
|
if (!a) return;
|
|
257
|
-
const v = (
|
|
256
|
+
const v = (S = (g = a == null ? void 0 : a.path) == null ? void 0 : g.split("/")) == null ? void 0 : S[0];
|
|
258
257
|
if (v) {
|
|
259
258
|
const ce = (q = w.value) == null ? void 0 : q.find((j) => (j == null ? void 0 : j.path) === v);
|
|
260
259
|
if (!ce || (h.setActiveTopMenuPath(v), !(ce != null && ce.children))) return;
|
|
@@ -266,7 +265,7 @@ function Po(l = "menu") {
|
|
|
266
265
|
const fl = async (a) => {
|
|
267
266
|
var v, g;
|
|
268
267
|
if (h.setLinkMenuInfo(null), h.setAsideMenuLoading(!0), M.setRouteToChildPath(""), h.setActiveTopMenuPath(a == null ? void 0 : a.path), h.setActiveMainMenu(a), ll.value = null, a != null && a.childMenus && ((v = a == null ? void 0 : a.childMenus) == null ? void 0 : v.length) > 0) {
|
|
269
|
-
const
|
|
268
|
+
const S = await dl(a), q = (S == null ? void 0 : S.length) === 0 ? a == null ? void 0 : a.childMenus : S;
|
|
270
269
|
h.setAsideMenus(q), se.value || h.setUpdateMenuStatus(!0), h.setActiveAsideMenu((g = a == null ? void 0 : a.childMenus) == null ? void 0 : g[0]);
|
|
271
270
|
} else
|
|
272
271
|
h.setAsideMenus([]), h.setActiveMenuPath(a == null ? void 0 : a.path);
|
|
@@ -318,32 +317,32 @@ function Po(l = "menu") {
|
|
|
318
317
|
var g;
|
|
319
318
|
const v = [a == null ? void 0 : a.title];
|
|
320
319
|
if (a != null && a.children && ((g = a == null ? void 0 : a.children) == null ? void 0 : g.length) > 0) {
|
|
321
|
-
const
|
|
322
|
-
v.push(...
|
|
320
|
+
const S = a.children.map((q) => Te(q));
|
|
321
|
+
v.push(...S);
|
|
323
322
|
}
|
|
324
323
|
return v;
|
|
325
|
-
}, al = (a, v, g,
|
|
324
|
+
}, al = (a, v, g, S) => a.map((q) => {
|
|
326
325
|
var ce, j;
|
|
327
326
|
if (q.path === g) {
|
|
328
327
|
const i = { ...q };
|
|
329
|
-
return
|
|
328
|
+
return S === "create" ? i.children.push(v) : S === "update" ? i.children = (ce = i.children) == null ? void 0 : ce.map(
|
|
330
329
|
(k) => (k == null ? void 0 : k.path) === (v == null ? void 0 : v.path) ? v : k
|
|
331
|
-
) :
|
|
330
|
+
) : S === "delete" && (i.children = (j = i.children) == null ? void 0 : j.filter((k) => (k == null ? void 0 : k.path) !== (v == null ? void 0 : v.path))), i;
|
|
332
331
|
} else
|
|
333
332
|
return {
|
|
334
333
|
...q,
|
|
335
|
-
children: al(q.children, v, g,
|
|
334
|
+
children: al(q.children, v, g, S)
|
|
336
335
|
// 递归更新子节点
|
|
337
336
|
};
|
|
338
337
|
}), qe = async (a) => {
|
|
339
|
-
var g,
|
|
338
|
+
var g, S, q, ce, j, i;
|
|
340
339
|
const v = (g = ee.value) == null ? void 0 : g.find((k) => {
|
|
341
340
|
var N;
|
|
342
341
|
return ((N = k == null ? void 0 : k.key) == null ? void 0 : N.pageKey) === "menu";
|
|
343
342
|
});
|
|
344
343
|
if (v) {
|
|
345
344
|
const k = {
|
|
346
|
-
...(
|
|
345
|
+
...(S = v.value) == null ? void 0 : S.pageData,
|
|
347
346
|
compData: (j = (ce = (q = v.value) == null ? void 0 : q.pageData) == null ? void 0 : ce.compData) == null ? void 0 : j.map((G) => G.key === "menuContents" ? {
|
|
348
347
|
...G,
|
|
349
348
|
contents: a
|
|
@@ -357,18 +356,18 @@ function Po(l = "menu") {
|
|
|
357
356
|
}, nl = async (a) => void 0, Ze = async (a) => {
|
|
358
357
|
var q, ce, j;
|
|
359
358
|
const v = (j = (ce = (q = a == null ? void 0 : a.config) == null ? void 0 : q.find((i) => (i == null ? void 0 : i.operateType) === "新增")) == null ? void 0 : ce.structureIds) == null ? void 0 : j.filter((i) => (i == null ? void 0 : i.key) === "contentConfig"), g = v == null ? void 0 : v.map((i) => i == null ? void 0 : i.id);
|
|
360
|
-
let
|
|
359
|
+
let S = [];
|
|
361
360
|
g == null || g.forEach((i) => {
|
|
362
|
-
i &&
|
|
361
|
+
i && S.push(nl());
|
|
363
362
|
});
|
|
364
363
|
};
|
|
365
364
|
return vl(
|
|
366
365
|
() => D.value,
|
|
367
366
|
async (a) => {
|
|
368
|
-
var v, g,
|
|
367
|
+
var v, g, S, q, ce, j, i, k;
|
|
369
368
|
if (a)
|
|
370
369
|
try {
|
|
371
|
-
const N = (
|
|
370
|
+
const N = (S = (g = (v = T.value) == null ? void 0 : v.data) == null ? void 0 : g.path) == null ? void 0 : S.split("/").slice(0, -1).join("/"), G = al(
|
|
372
371
|
w.value,
|
|
373
372
|
(q = T.value) == null ? void 0 : q.data,
|
|
374
373
|
N,
|
|
@@ -378,7 +377,7 @@ function Po(l = "menu") {
|
|
|
378
377
|
const d = await dl(P.value), A = (d == null ? void 0 : d.length) === 0 ? (k = P.value) == null ? void 0 : k.childMenus : d;
|
|
379
378
|
h.setAsideMenus(A);
|
|
380
379
|
} catch (N) {
|
|
381
|
-
throw
|
|
380
|
+
throw _l.error(N), new Error(N);
|
|
382
381
|
}
|
|
383
382
|
},
|
|
384
383
|
{ immediate: !0 }
|
|
@@ -484,9 +483,9 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
484
483
|
], 4),
|
|
485
484
|
u !== I.value.length - 1 && Array.isArray(I.value) && ((m = (w = I.value) == null ? void 0 : w[u + 1]) == null ? void 0 : m.condition) !== "child" ? (f(), $("div", Lo, [
|
|
486
485
|
s(n(Nn), { style: { width: "14px" } })
|
|
487
|
-
])) : ((Ee = (r = I.value) == null ? void 0 : r[u + 1]) == null ? void 0 : Ee.condition) === "child" ? (f(), $("div", Qo, T[0] || (T[0] = [
|
|
486
|
+
])) : ((Ee = (r = I.value) == null ? void 0 : r[u + 1]) == null ? void 0 : Ee.condition) === "child" ? (f(), $("div", Qo, [...T[0] || (T[0] = [
|
|
488
487
|
V("div", null, ol(":"), -1)
|
|
489
|
-
]))) : je("", !0)
|
|
488
|
+
])])) : je("", !0)
|
|
490
489
|
]);
|
|
491
490
|
}), 128))
|
|
492
491
|
]));
|
|
@@ -673,7 +672,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
673
672
|
}, Ci = { class: "message-title" }, mi = { class: "message-time" }, wi = { class: "message-content" }, ki = {
|
|
674
673
|
key: 0,
|
|
675
674
|
class: "no-messages"
|
|
676
|
-
}, Ai = { class: "drop-menu" }, Ii = { class: "user-base-info" }, Mi = { class: "base-info" },
|
|
675
|
+
}, Ai = { class: "drop-menu" }, Ii = { class: "user-base-info" }, Mi = { class: "base-info" }, Si = { class: "group-item" }, _i = { class: "sys-button" }, Ti = { class: "whole-main" }, Bi = { class: "structure-paths" }, Ei = {
|
|
677
676
|
key: 0,
|
|
678
677
|
class: "main-back-btn"
|
|
679
678
|
}, Di = { class: "custom-extend-wrapper" }, Pi = {
|
|
@@ -709,7 +708,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
709
708
|
}, Wi = {
|
|
710
709
|
key: 6,
|
|
711
710
|
class: "item-view-child-content"
|
|
712
|
-
}, Hi = { class: "form-content" }, Yi = { class: "dialog-footer" },
|
|
711
|
+
}, Hi = { class: "form-content" }, Yi = { class: "dialog-footer" }, _t = "消息中心/我的消息", Fi = /* @__PURE__ */ Bl({
|
|
713
712
|
__name: "index",
|
|
714
713
|
props: {
|
|
715
714
|
windowConfig: {
|
|
@@ -749,7 +748,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
749
748
|
}).length
|
|
750
749
|
), m = kl(() => w.value > 99 ? "99+" : w.value), r = Jt(bl), { originalPath: Ee } = yl(r), ye = Ee.value, O = Xl(), { loginUserInfo: F } = yl(O), { hasSystemManagement: ve, toSystemManagement: X } = Do(), { updateFacePhoto: Be } = Ao();
|
|
751
750
|
async function me() {
|
|
752
|
-
var z, p, Y, Ce, pe,
|
|
751
|
+
var z, p, Y, Ce, pe, _e;
|
|
753
752
|
try {
|
|
754
753
|
let J = function(Ke, Ue) {
|
|
755
754
|
return Ue.map((Re) => Ke.map((Ie, Qe) => ({
|
|
@@ -758,8 +757,8 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
758
757
|
})));
|
|
759
758
|
};
|
|
760
759
|
const we = sessionStorage.getItem("systemKey"), [Pe] = await Promise.all([
|
|
761
|
-
sa(
|
|
762
|
-
]), ge = (Y = (p = (z = Pe == null ? void 0 : Pe[0]) == null ? void 0 : z.compData) == null ? void 0 : p.find((Ke) => (Ke == null ? void 0 : Ke.key) === "tableContents")) == null ? void 0 : Y.contents, $e = (
|
|
760
|
+
sa(_t, we, "")
|
|
761
|
+
]), ge = (Y = (p = (z = Pe == null ? void 0 : Pe[0]) == null ? void 0 : z.compData) == null ? void 0 : p.find((Ke) => (Ke == null ? void 0 : Ke.key) === "tableContents")) == null ? void 0 : Y.contents, $e = (_e = (pe = (Ce = Pe == null ? void 0 : Pe[0]) == null ? void 0 : Ce.compData) == null ? void 0 : pe.find((Ke) => (Ke == null ? void 0 : Ke.key) === "header")) == null ? void 0 : _e.contents;
|
|
763
762
|
let el = [], Il = [], Ml = [], pl = [];
|
|
764
763
|
Array.isArray(ge) && Array.isArray($e) ? (Ml = ge.filter(
|
|
765
764
|
(Ke) => Ke.includes("未读")
|
|
@@ -777,11 +776,11 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
777
776
|
}, il = async (z) => {
|
|
778
777
|
if (!z) return;
|
|
779
778
|
(async (Y) => {
|
|
780
|
-
var pe,
|
|
779
|
+
var pe, _e, J, we;
|
|
781
780
|
const Ce = [
|
|
782
781
|
{
|
|
783
782
|
title: "我的消息",
|
|
784
|
-
path:
|
|
783
|
+
path: _t,
|
|
785
784
|
level: 1,
|
|
786
785
|
show: !0,
|
|
787
786
|
carryData: !0,
|
|
@@ -808,14 +807,14 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
808
807
|
console.warn("该消息没有主键", Y);
|
|
809
808
|
return;
|
|
810
809
|
}
|
|
811
|
-
x.setAsideMenus(Ce), (Pe == null ? void 0 : Pe.value) === "未读" && (Pe.value = "已读", x.setActiveMenuPath(
|
|
810
|
+
x.setAsideMenus(Ce), (Pe == null ? void 0 : Pe.value) === "未读" && (Pe.value = "已读", x.setActiveMenuPath(_t));
|
|
812
811
|
const $e = E.value + ye + ge.value, el = E.value;
|
|
813
|
-
await Ys($e, $e + ye + `updateLoading${((pe = F.value) == null ? void 0 : pe.account) || ((
|
|
812
|
+
await Ys($e, $e + ye + `updateLoading${((pe = F.value) == null ? void 0 : pe.account) || ((_e = F.value) == null ? void 0 : _e.账号)}`), j.setRouteToChildPath(el), x.setActiveMenuPath($e + ye + `updateLoading${((J = F.value) == null ? void 0 : J.account) || ((we = F.value) == null ? void 0 : we.账号)}`), x.setActiveTopMenuPath("消息中心");
|
|
814
813
|
} catch (Pe) {
|
|
815
814
|
console.error("加载菜单或页面时出错:", Pe);
|
|
816
815
|
}
|
|
817
816
|
})(z);
|
|
818
|
-
}, dl = Ra(bl), { selectTitle: fl } = yl(dl), ze = B(!1), wl = B(), de = B(null), y = B(), Ye = B(!1), he = zn(bl), { blobUrls: Te } = yl(he), al = B(), qe = B(!1), nl = B(!1), Ze = B(!1), a = B(!1), v = B(null), g = B([]),
|
|
817
|
+
}, dl = Ra(bl), { selectTitle: fl } = yl(dl), ze = B(!1), wl = B(), de = B(null), y = B(), Ye = B(!1), he = zn(bl), { blobUrls: Te } = yl(he), al = B(), qe = B(!1), nl = B(!1), Ze = B(!1), a = B(!1), v = B(null), g = B([]), S = B(!1), q = B(!1), ce = B();
|
|
819
818
|
lt("contentRef", v);
|
|
820
819
|
const j = la(bl), { isEdit: i, routeToChildPath: k } = yl(j), N = C, { logoUrl: G, platNameEn: t, getPreviousModel: d, rememberPreviousModelByPlatId: A } = kt(), { toPersonalCenter: W } = Io(), re = l, We = vs(/* @__PURE__ */ new Map()), rl = kl(() => ie.value.isRouter), be = B(""), ne = async (z) => {
|
|
821
820
|
const p = await Ea({
|
|
@@ -840,7 +839,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
840
839
|
const z = E.value;
|
|
841
840
|
return We.value.get(z);
|
|
842
841
|
}), ue = Gs(async (z) => {
|
|
843
|
-
var Ce, pe,
|
|
842
|
+
var Ce, pe, _e, J, we, Pe, ge, $e, el, Il, Ml, pl, Ke, Ue, Re, Ie;
|
|
844
843
|
if ((z == null ? void 0 : z.type) !== "table") return;
|
|
845
844
|
const p = (Ce = fl.value) == null ? void 0 : Ce.some((Qe) => (Qe == null ? void 0 : Qe.condition) === "parent"), Y = (pe = z == null ? void 0 : z.usingRow) == null ? void 0 : pe.some((Qe) => Qe == null ? void 0 : Qe.isExistChild);
|
|
846
845
|
if (!(p || Y))
|
|
@@ -848,7 +847,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
848
847
|
let Qe = De.value;
|
|
849
848
|
if (!Qe) {
|
|
850
849
|
const hl = await Ca({
|
|
851
|
-
platId: parseInt((
|
|
850
|
+
platId: parseInt((_e = F == null ? void 0 : F.value) == null ? void 0 : _e.plat_id),
|
|
852
851
|
pageName: "menu"
|
|
853
852
|
});
|
|
854
853
|
((we = (J = hl == null ? void 0 : hl.data) == null ? void 0 : J.result) == null ? void 0 : we.length) > 0 && (Qe = hl.data.result, We.value.set(E.value, Qe));
|
|
@@ -858,9 +857,9 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
858
857
|
if (!Qe.some(
|
|
859
858
|
(hl) => (hl == null ? void 0 : hl.father_name) === El || (hl == null ? void 0 : hl.father_name) === El + "/"
|
|
860
859
|
)) return;
|
|
861
|
-
const Cl = ($e = z == null ? void 0 : z.row) == null ? void 0 : $e[(ge = (Pe = z == null ? void 0 : z.usingRow) == null ? void 0 : Pe[0]) == null ? void 0 : ge.prop],
|
|
860
|
+
const Cl = ($e = z == null ? void 0 : z.row) == null ? void 0 : $e[(ge = (Pe = z == null ? void 0 : z.usingRow) == null ? void 0 : Pe[0]) == null ? void 0 : ge.prop], Sl = (el = fl.value) == null ? void 0 : el.find((hl) => (hl == null ? void 0 : hl.condition) === "child");
|
|
862
861
|
let Ol, Rl;
|
|
863
|
-
if (
|
|
862
|
+
if (Sl)
|
|
864
863
|
Ol = fl.value.map(
|
|
865
864
|
(hl) => (hl == null ? void 0 : hl.condition) === "child" ? { ...hl, value: Cl, isShow: !0 } : hl
|
|
866
865
|
), Rl = Ol.find((hl) => (hl == null ? void 0 : hl.condition) === "child");
|
|
@@ -891,7 +890,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
891
890
|
yield {
|
|
892
891
|
label: (Y = z[pe]) == null ? void 0 : Y[p],
|
|
893
892
|
value: (Ce = z[pe]) == null ? void 0 : Ce[p]
|
|
894
|
-
}, pe % 100 === 0 && await new Promise((
|
|
893
|
+
}, pe % 100 === 0 && await new Promise((_e) => setTimeout(_e, 0));
|
|
895
894
|
}
|
|
896
895
|
};
|
|
897
896
|
}
|
|
@@ -899,18 +898,18 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
899
898
|
let z = {};
|
|
900
899
|
const p = await sa("弯管仿真加工分析/仿真动画生成", sessionStorage.getItem("systemKey"), ""), Y = await sa("弯管仿真加工分析/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
901
900
|
let Ce = ["管长", "外径"], pe = {};
|
|
902
|
-
Y == null || Y.forEach((
|
|
901
|
+
Y == null || Y.forEach((_e) => {
|
|
903
902
|
var J;
|
|
904
|
-
(
|
|
903
|
+
(_e == null ? void 0 : _e.comp) === "Form" && ((J = _e == null ? void 0 : _e.compData) == null || J.forEach((we) => {
|
|
905
904
|
var Pe;
|
|
906
905
|
(we == null ? void 0 : we.key) === "formContent" && ((Pe = we == null ? void 0 : we.contents) == null || Pe.forEach((ge) => {
|
|
907
906
|
Ce.includes(ge == null ? void 0 : ge.key) && (pe[ge.key] = ge.value);
|
|
908
907
|
}));
|
|
909
908
|
}));
|
|
910
|
-
}), p == null || p.forEach((
|
|
909
|
+
}), p == null || p.forEach((_e) => {
|
|
911
910
|
var J, we, Pe, ge, $e, el;
|
|
912
|
-
if ((
|
|
913
|
-
let Il = [], Ml = (Pe = (we = (J =
|
|
911
|
+
if ((_e == null ? void 0 : _e.comp) === "Table") {
|
|
912
|
+
let Il = [], Ml = (Pe = (we = (J = _e == null ? void 0 : _e.compData) == null ? void 0 : J.find((Ke) => (Ke == null ? void 0 : Ke.key) === "header")) == null ? void 0 : we.contents) == null ? void 0 : Pe.map((Ke) => Ke == null ? void 0 : Ke.label), pl = (el = ($e = (ge = _e == null ? void 0 : _e.compData) == null ? void 0 : ge.find((Ke) => (Ke == null ? void 0 : Ke.key) === "tableContents")) == null ? void 0 : $e.contents) == null ? void 0 : el.map((Ke) => (Ke = Ke == null ? void 0 : Ke.filter((Ue) => !(Ue != null && Ue.id)), Ke));
|
|
914
913
|
pl == null || pl.forEach((Ke) => {
|
|
915
914
|
Il.push(
|
|
916
915
|
ot(
|
|
@@ -918,11 +917,11 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
918
917
|
Ml == null ? void 0 : Ml.filter((Ue) => Ue !== "操作")
|
|
919
918
|
)
|
|
920
919
|
);
|
|
921
|
-
}), z[
|
|
920
|
+
}), z[_e.name] = Il, z[_e.name + "Content"] = _e;
|
|
922
921
|
}
|
|
923
922
|
}), z.extra = pe, wl.value = z;
|
|
924
923
|
}, Fe = async () => {
|
|
925
|
-
var z, p, Y, Ce, pe,
|
|
924
|
+
var z, p, Y, Ce, pe, _e, J;
|
|
926
925
|
if ((re == null ? void 0 : re.platform) !== "browser") {
|
|
927
926
|
if (ze.value = !0, al.value = (z = re == null ? void 0 : re.taskContent) == null ? void 0 : z.sceneType, g.value = [{
|
|
928
927
|
url: (p = re == null ? void 0 : re.taskContent) == null ? void 0 : p.url,
|
|
@@ -942,9 +941,9 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
942
941
|
url: we == null ? void 0 : we.url,
|
|
943
942
|
extension: nt(we == null ? void 0 : we.url)
|
|
944
943
|
}];
|
|
945
|
-
(
|
|
944
|
+
(_e = de.value) == null || _e.loadModelByDefaultPath(Pe);
|
|
946
945
|
}
|
|
947
|
-
|
|
946
|
+
S.value = (J = g.value) == null ? void 0 : J.every((we) => we.url.toUpperCase().includes(".URDF"));
|
|
948
947
|
}
|
|
949
948
|
}, Xe = () => {
|
|
950
949
|
Ye.value = !1, de.value = null;
|
|
@@ -962,18 +961,18 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
962
961
|
() => [Te == null ? void 0 : Te.value],
|
|
963
962
|
async () => {
|
|
964
963
|
var z, p, Y, Ce, pe;
|
|
965
|
-
if (Te != null && Te.value && ((z = Te == null ? void 0 : Te.value) == null ? void 0 : z.length) > 0 && !qe.value && !((p = na.value) != null && p.find((
|
|
964
|
+
if (Te != null && Te.value && ((z = Te == null ? void 0 : Te.value) == null ? void 0 : z.length) > 0 && !qe.value && !((p = na.value) != null && p.find((_e) => (_e == null ? void 0 : _e.name) === "输入") && ((Y = na.value) != null && Y.find((_e) => (_e == null ? void 0 : _e.name) === "输出")))) {
|
|
966
965
|
Ye.value = !0;
|
|
967
|
-
let
|
|
966
|
+
let _e = [];
|
|
968
967
|
const J = await ((Ce = Al(Te == null ? void 0 : Te.value)) == null ? void 0 : Ce.map(async (we) => {
|
|
969
968
|
var Il, Ml, pl, Ke, Ue, Re, Ie, Qe, El, Vl;
|
|
970
969
|
let Pe, ge, $e;
|
|
971
970
|
we != null && we.blob.includes("undefined") ? $e = (Ml = (Il = we == null ? void 0 : we.blob) == null ? void 0 : Il.split("undefined,")) == null ? void 0 : Ml[1] : $e = we == null ? void 0 : we.blob;
|
|
972
971
|
let el = $e == null ? void 0 : $e.split(",");
|
|
973
972
|
if ((el == null ? void 0 : el.length) > 1) {
|
|
974
|
-
let Cl = await (el == null ? void 0 : el.map(async (
|
|
973
|
+
let Cl = await (el == null ? void 0 : el.map(async (Sl) => {
|
|
975
974
|
var Rl, hl, ml, Jl, ua, da;
|
|
976
|
-
Pe = await ra.get(
|
|
975
|
+
Pe = await ra.get(Sl, {
|
|
977
976
|
responseType: "blob",
|
|
978
977
|
headers: {
|
|
979
978
|
"Content-Type": "application/json"
|
|
@@ -996,8 +995,8 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
996
995
|
}));
|
|
997
996
|
await Promise.all(Ll);
|
|
998
997
|
}
|
|
999
|
-
return ((Jl =
|
|
1000
|
-
suffix: "." + ((da =
|
|
998
|
+
return ((Jl = Sl == null ? void 0 : Sl.split(".")) == null ? void 0 : Jl[((ml = Sl == null ? void 0 : Sl.split(".")) == null ? void 0 : ml.length) - 1]) !== "undefined" && _e.push({
|
|
999
|
+
suffix: "." + ((da = Sl == null ? void 0 : Sl.split(".")) == null ? void 0 : da[((ua = Sl == null ? void 0 : Sl.split(".")) == null ? void 0 : ua.length) - 1]),
|
|
1001
1000
|
blob: new Blob([Pe.data], {
|
|
1002
1001
|
type: "application/octet-stream;charset=UTF-8"
|
|
1003
1002
|
}),
|
|
@@ -1011,7 +1010,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1011
1010
|
});
|
|
1012
1011
|
let Cl = [];
|
|
1013
1012
|
if (((pl = we == null ? void 0 : we.mtlBlobs) == null ? void 0 : pl.length) > 0) {
|
|
1014
|
-
let
|
|
1013
|
+
let Sl = await ((Ke = we == null ? void 0 : we.mtlBlobs) == null ? void 0 : Ke.map(async (Ol) => {
|
|
1015
1014
|
let Rl = await Ea({
|
|
1016
1015
|
url: Ol
|
|
1017
1016
|
});
|
|
@@ -1021,7 +1020,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1021
1020
|
})
|
|
1022
1021
|
), Rl;
|
|
1023
1022
|
}));
|
|
1024
|
-
await Promise.all(
|
|
1023
|
+
await Promise.all(Sl);
|
|
1025
1024
|
}
|
|
1026
1025
|
ge = {
|
|
1027
1026
|
suffix: "." + ((Re = $e == null ? void 0 : $e.split(".")) == null ? void 0 : Re[((Ue = $e == null ? void 0 : $e.split(".")) == null ? void 0 : Ue.length) - 1]),
|
|
@@ -1039,7 +1038,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1039
1038
|
});
|
|
1040
1039
|
let Cl = [];
|
|
1041
1040
|
if (((Ie = we == null ? void 0 : we.mtlBlobs) == null ? void 0 : Ie.length) > 0) {
|
|
1042
|
-
let
|
|
1041
|
+
let Sl = await ((Qe = we == null ? void 0 : we.mtlBlobs) == null ? void 0 : Qe.map(async (Ol) => {
|
|
1043
1042
|
let Rl = await ra.get(Ol, {
|
|
1044
1043
|
responseType: "blob",
|
|
1045
1044
|
headers: {
|
|
@@ -1052,7 +1051,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1052
1051
|
})
|
|
1053
1052
|
), Rl;
|
|
1054
1053
|
}));
|
|
1055
|
-
await Promise.all(
|
|
1054
|
+
await Promise.all(Sl);
|
|
1056
1055
|
}
|
|
1057
1056
|
ge = {
|
|
1058
1057
|
suffix: we != null && we.suffix ? we == null ? void 0 : we.suffix : "." + ((Vl = $e == null ? void 0 : $e.split(".")) == null ? void 0 : Vl[((El = $e == null ? void 0 : $e.split(".")) == null ? void 0 : El.length) - 1]),
|
|
@@ -1062,9 +1061,9 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1062
1061
|
mtlBlobs: Cl
|
|
1063
1062
|
};
|
|
1064
1063
|
}
|
|
1065
|
-
ge &&
|
|
1064
|
+
ge && _e.push(ge);
|
|
1066
1065
|
}));
|
|
1067
|
-
await Promise.all(J), (
|
|
1066
|
+
await Promise.all(J), (_e == null ? void 0 : _e.length) !== 0 && ((pe = de.value) == null || pe.loadModelByDefaultPath(_e));
|
|
1068
1067
|
}
|
|
1069
1068
|
},
|
|
1070
1069
|
{ immediate: !0, deep: !0 }
|
|
@@ -1083,27 +1082,27 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1083
1082
|
if (k.value === "" || ((Ce = E.value) == null ? void 0 : Ce[((Y = E.value) == null ? void 0 : Y.length) - 1]) === ye) return !1;
|
|
1084
1083
|
const z = sessionStorage.getItem("authority"), p = JSON.parse(z || "");
|
|
1085
1084
|
if (Array.isArray(p)) {
|
|
1086
|
-
const pe = Array.isArray(p) && (p == null ? void 0 : p.filter((J) => J == null ? void 0 : J.includes(k.value))),
|
|
1085
|
+
const pe = Array.isArray(p) && (p == null ? void 0 : p.filter((J) => J == null ? void 0 : J.includes(k.value))), _e = pe == null ? void 0 : pe.map((J) => {
|
|
1087
1086
|
var we;
|
|
1088
1087
|
return ((we = J == null ? void 0 : J.split("/")) == null ? void 0 : we.pop()) || "";
|
|
1089
1088
|
});
|
|
1090
|
-
return !!(
|
|
1089
|
+
return !!(_e != null && _e.includes("新增") || _e != null && _e.includes("新建"));
|
|
1091
1090
|
} else return typeof p == "string" && (p == null ? void 0 : p.toUpperCase()) === "SUPERADMIN";
|
|
1092
|
-
},
|
|
1091
|
+
}, Se = async () => {
|
|
1093
1092
|
W();
|
|
1094
|
-
},
|
|
1093
|
+
}, _ = () => {
|
|
1095
1094
|
N("updateVersion");
|
|
1096
1095
|
}, oe = kl(() => "http://222.92.178.198:62001"), ke = async (z) => {
|
|
1097
|
-
var p, Y, Ce, pe,
|
|
1096
|
+
var p, Y, Ce, pe, _e;
|
|
1098
1097
|
try {
|
|
1099
1098
|
const J = await Ps(z);
|
|
1100
1099
|
if (((p = J == null ? void 0 : J.data) == null ? void 0 : p.code) === 200) {
|
|
1101
1100
|
I.value = oe.value + "/" + ((Ce = (Y = J.data) == null ? void 0 : Y.result) == null ? void 0 : Ce.url);
|
|
1102
|
-
let we = (
|
|
1101
|
+
let we = (_e = (pe = J.data) == null ? void 0 : pe.result) == null ? void 0 : _e.url;
|
|
1103
1102
|
await Be(we);
|
|
1104
1103
|
}
|
|
1105
1104
|
} catch (J) {
|
|
1106
|
-
|
|
1105
|
+
_l.error(J);
|
|
1107
1106
|
}
|
|
1108
1107
|
}, Ae = kl(() => $s(Dl.value, eo.value)), He = kl(() => {
|
|
1109
1108
|
const p = lo(Dl.value, 100) || [];
|
|
@@ -1136,7 +1135,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1136
1135
|
}
|
|
1137
1136
|
};
|
|
1138
1137
|
return (z, p) => {
|
|
1139
|
-
const Y = le("el-dialog"), Ce = le("el-button"), pe = le("el-header"),
|
|
1138
|
+
const Y = le("el-dialog"), Ce = le("el-button"), pe = le("el-header"), _e = le("el-splitter-panel"), J = le("el-splitter"), we = le("el-container"), Pe = le("el-tab-pane"), ge = le("el-tabs"), $e = le("el-aside"), el = le("router-view"), Il = le("el-step"), Ml = le("el-steps"), pl = le("el-main"), Ke = rt("loading");
|
|
1140
1139
|
return f(), $(tl, null, [
|
|
1141
1140
|
Yl(s(Co, {
|
|
1142
1141
|
ref: "cropperDialogRef",
|
|
@@ -1188,10 +1187,9 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1188
1187
|
s(Tl, { name: "Back" })
|
|
1189
1188
|
]),
|
|
1190
1189
|
default: o(() => [
|
|
1191
|
-
p[9] || (p[9] = cl(" 返回页面 "))
|
|
1190
|
+
p[9] || (p[9] = cl(" 返回页面 ", -1))
|
|
1192
1191
|
]),
|
|
1193
|
-
_: 1
|
|
1194
|
-
__: [9]
|
|
1192
|
+
_: 1
|
|
1195
1193
|
}, 8, ["onClick"])
|
|
1196
1194
|
]),
|
|
1197
1195
|
V("div", Fo, [
|
|
@@ -1212,10 +1210,9 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1212
1210
|
s(Tl, { name: "Store" })
|
|
1213
1211
|
]),
|
|
1214
1212
|
default: o(() => [
|
|
1215
|
-
p[10] || (p[10] = cl(" 保存页面 "))
|
|
1213
|
+
p[10] || (p[10] = cl(" 保存页面 ", -1))
|
|
1216
1214
|
]),
|
|
1217
|
-
_: 1
|
|
1218
|
-
__: [10]
|
|
1215
|
+
_: 1
|
|
1219
1216
|
})
|
|
1220
1217
|
])
|
|
1221
1218
|
]),
|
|
@@ -1228,7 +1225,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1228
1225
|
default: o(() => [
|
|
1229
1226
|
s(J, null, {
|
|
1230
1227
|
default: o(() => [
|
|
1231
|
-
s(
|
|
1228
|
+
s(_e, {
|
|
1232
1229
|
size: 240,
|
|
1233
1230
|
min: 240,
|
|
1234
1231
|
resizable: !1,
|
|
@@ -1253,7 +1250,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1253
1250
|
]),
|
|
1254
1251
|
_: 1
|
|
1255
1252
|
}),
|
|
1256
|
-
s(
|
|
1253
|
+
s(_e, {
|
|
1257
1254
|
min: 200,
|
|
1258
1255
|
collapsible: !0
|
|
1259
1256
|
}, {
|
|
@@ -1276,7 +1273,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1276
1273
|
]),
|
|
1277
1274
|
_: 1
|
|
1278
1275
|
}),
|
|
1279
|
-
s(
|
|
1276
|
+
s(_e, {
|
|
1280
1277
|
size: 350,
|
|
1281
1278
|
min: 350,
|
|
1282
1279
|
collapsible: !0
|
|
@@ -1331,10 +1328,9 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1331
1328
|
s(Tl, { name: "系统管理" })
|
|
1332
1329
|
]),
|
|
1333
1330
|
default: o(() => [
|
|
1334
|
-
p[11] || (p[11] = cl(" 系统管理 "))
|
|
1331
|
+
p[11] || (p[11] = cl(" 系统管理 ", -1))
|
|
1335
1332
|
]),
|
|
1336
|
-
_: 1
|
|
1337
|
-
__: [11]
|
|
1333
|
+
_: 1
|
|
1338
1334
|
})) : je("", !0),
|
|
1339
1335
|
Wl(z.$slots, "default", {}, void 0, !0),
|
|
1340
1336
|
s(Rt, null, {
|
|
@@ -1391,11 +1387,11 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1391
1387
|
label: "未读消息",
|
|
1392
1388
|
name: "second"
|
|
1393
1389
|
}, {
|
|
1394
|
-
label: o(() => p[13] || (p[13] = [
|
|
1390
|
+
label: o(() => [...p[13] || (p[13] = [
|
|
1395
1391
|
V("div", { class: "message-tab-label" }, [
|
|
1396
1392
|
V("span", null, "未读消息")
|
|
1397
1393
|
], -1)
|
|
1398
|
-
])),
|
|
1394
|
+
])]),
|
|
1399
1395
|
default: o(() => [
|
|
1400
1396
|
V("div", vi, [
|
|
1401
1397
|
(f(!0), $(tl, null, ul(L.value, (Ue, Re) => {
|
|
@@ -1451,8 +1447,8 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1451
1447
|
V("div", null, ol(((Vl = n(F)) == null ? void 0 : Vl.工号) || "未知"), 1)
|
|
1452
1448
|
])
|
|
1453
1449
|
]),
|
|
1454
|
-
V("div",
|
|
1455
|
-
V("div", { onClick:
|
|
1450
|
+
V("div", Si, [
|
|
1451
|
+
V("div", { onClick: Se }, [
|
|
1456
1452
|
s(Tl, {
|
|
1457
1453
|
name: "personal",
|
|
1458
1454
|
style: { width: "15px", height: "15px" }
|
|
@@ -1466,7 +1462,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1466
1462
|
}),
|
|
1467
1463
|
p[15] || (p[15] = V("span", null, "消息中心", -1))
|
|
1468
1464
|
]),
|
|
1469
|
-
V("div", { onClick:
|
|
1465
|
+
V("div", { onClick: _ }, [
|
|
1470
1466
|
s(Tl, {
|
|
1471
1467
|
name: "Update",
|
|
1472
1468
|
style: { width: "15px", height: "15px" }
|
|
@@ -1481,7 +1477,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1481
1477
|
p[17] || (p[17] = V("span", null, "文件备份", -1))
|
|
1482
1478
|
])
|
|
1483
1479
|
]),
|
|
1484
|
-
V("div",
|
|
1480
|
+
V("div", _i, [
|
|
1485
1481
|
V("div", null, [
|
|
1486
1482
|
s(Tl, {
|
|
1487
1483
|
name: "exit",
|
|
@@ -1513,7 +1509,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1513
1509
|
style: Pl({ paddingLeft: ee.value ? "16px" : "0px" })
|
|
1514
1510
|
}, {
|
|
1515
1511
|
default: o(() => {
|
|
1516
|
-
var Ue, Re, Ie, Qe, El, Vl, Cl,
|
|
1512
|
+
var Ue, Re, Ie, Qe, El, Vl, Cl, Sl, Ol, Rl, hl, ml, Jl, ua, da, Ll, gt, Va, en, ln, an, tn, nn, sn, on, rn, cn, un, dn, pn, fn, vn, hn;
|
|
1517
1513
|
return [
|
|
1518
1514
|
ee.value ? je("", !0) : Yl((f(), fe($e, {
|
|
1519
1515
|
key: 0,
|
|
@@ -1523,7 +1519,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1523
1519
|
width: "auto"
|
|
1524
1520
|
}, {
|
|
1525
1521
|
default: o(() => [
|
|
1526
|
-
s(
|
|
1522
|
+
s(Ss, { mode: "vertical" })
|
|
1527
1523
|
]),
|
|
1528
1524
|
_: 1
|
|
1529
1525
|
}, 8, ["style"])), [
|
|
@@ -1576,7 +1572,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1576
1572
|
itemData: Q == null ? void 0 : Q.compData,
|
|
1577
1573
|
calculator: Q == null ? void 0 : Q.calculatorFilters,
|
|
1578
1574
|
childItemData: Q == null ? void 0 : Q.itemChildData,
|
|
1579
|
-
key: n(
|
|
1575
|
+
key: n(_a),
|
|
1580
1576
|
onChange: n(fa),
|
|
1581
1577
|
onClickStep: n(so),
|
|
1582
1578
|
index: (Q == null ? void 0 : Q.id) ?? Ge,
|
|
@@ -1587,7 +1583,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1587
1583
|
status: (ea = n(Dl)[Ge]) == null ? void 0 : ea.status
|
|
1588
1584
|
},
|
|
1589
1585
|
onContentChange: n(pa),
|
|
1590
|
-
onPageChange: n(
|
|
1586
|
+
onPageChange: n(Sa),
|
|
1591
1587
|
onRowClick: n(ue),
|
|
1592
1588
|
onRouteUrl: Ne,
|
|
1593
1589
|
parentTableId: Q == null ? void 0 : Q.tableId,
|
|
@@ -1600,7 +1596,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1600
1596
|
}, null, 40, ["related", "compNames", "compName", "groupNames", "cacheNewData", "isDevMode", "itemData", "calculator", "childItemData", "onChange", "onClickStep", "index", "config", "onContentChange", "onPageChange", "onRowClick", "parentTableId", "allMapContents", "onRadioChange", "children", "onClickTrigger", "onClickMainKey"])) : je("", !0)
|
|
1601
1597
|
], 6);
|
|
1602
1598
|
}), 128)) : je("", !0),
|
|
1603
|
-
!n(ka) && K.value === "vertical" && ((
|
|
1599
|
+
!n(ka) && K.value === "vertical" && ((Sl = n(It)) == null ? void 0 : Sl.length) > 0 ? (f(), fe(n(An), {
|
|
1604
1600
|
key: 1,
|
|
1605
1601
|
layout: Ae.value,
|
|
1606
1602
|
"is-draggable": !1,
|
|
@@ -1646,12 +1642,12 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1646
1642
|
isDevMode: l.showButton,
|
|
1647
1643
|
itemData: (Fa = Q == null ? void 0 : Q.component) == null ? void 0 : Fa.compData,
|
|
1648
1644
|
childItemData: (Ja = Q == null ? void 0 : Q.component) == null ? void 0 : Ja.itemChildData,
|
|
1649
|
-
key: n(
|
|
1645
|
+
key: n(_a),
|
|
1650
1646
|
compItem: Q,
|
|
1651
1647
|
onChange: n(fa),
|
|
1652
1648
|
index: ((za = n(Dl)[Ge]) == null ? void 0 : za.id) ?? Ge,
|
|
1653
1649
|
onContentChange: n(pa),
|
|
1654
|
-
onPageChange: n(
|
|
1650
|
+
onPageChange: n(Sa),
|
|
1655
1651
|
onRowClick: n(ue),
|
|
1656
1652
|
onRouteUrl: Ne,
|
|
1657
1653
|
parentTableId: (Xa = n(Dl)[Ge]) == null ? void 0 : Xa.tableId,
|
|
@@ -1722,13 +1718,13 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1722
1718
|
isDevMode: l.showButton,
|
|
1723
1719
|
itemData: (Fa = Q == null ? void 0 : Q.component) == null ? void 0 : Fa.compData,
|
|
1724
1720
|
childItemData: (Ja = Q == null ? void 0 : Q.component) == null ? void 0 : Ja.itemChildData,
|
|
1725
|
-
key: n(
|
|
1721
|
+
key: n(_a),
|
|
1726
1722
|
compItem: Q,
|
|
1727
1723
|
onChange: n(fa),
|
|
1728
1724
|
calculator: (za = Q == null ? void 0 : Q.component) == null ? void 0 : za.calculatorFilters,
|
|
1729
1725
|
index: ((Xa = n(Dl)[Ge]) == null ? void 0 : Xa.id) ?? Ge,
|
|
1730
1726
|
onContentChange: n(pa),
|
|
1731
|
-
onPageChange: n(
|
|
1727
|
+
onPageChange: n(Sa),
|
|
1732
1728
|
onRowClick: n(ue),
|
|
1733
1729
|
onRouteUrl: Ne,
|
|
1734
1730
|
parentTableId: (Ga = n(Dl)[Ge]) == null ? void 0 : Ga.tableId,
|
|
@@ -1780,12 +1776,12 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1780
1776
|
isDevMode: l.showButton,
|
|
1781
1777
|
itemData: Ge == null ? void 0 : Ge.compData,
|
|
1782
1778
|
childItemData: Ge == null ? void 0 : Ge.itemChildData,
|
|
1783
|
-
key: n(
|
|
1779
|
+
key: n(_a),
|
|
1784
1780
|
compItem: Ge,
|
|
1785
1781
|
onChange: n(fa),
|
|
1786
1782
|
index: (Ge == null ? void 0 : Ge.id) ?? zl,
|
|
1787
1783
|
onContentChange: n(pa),
|
|
1788
|
-
onPageChange: n(
|
|
1784
|
+
onPageChange: n(Sa),
|
|
1789
1785
|
onRowClick: n(ue),
|
|
1790
1786
|
onRouteUrl: Ne,
|
|
1791
1787
|
parentTableId: Ge == null ? void 0 : Ge.tableId,
|
|
@@ -1849,11 +1845,11 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1849
1845
|
isDevMode: l.showButton,
|
|
1850
1846
|
itemData: (nn = (tn = n(Gl)) == null ? void 0 : tn.comp) == null ? void 0 : nn.compData,
|
|
1851
1847
|
childItemData: (on = (sn = n(Gl)) == null ? void 0 : sn.comp) == null ? void 0 : on.itemChildData,
|
|
1852
|
-
key: n(
|
|
1848
|
+
key: n(_a),
|
|
1853
1849
|
onChange: n(fa),
|
|
1854
1850
|
index: (cn = (rn = n(Gl)) == null ? void 0 : rn.comp) == null ? void 0 : cn.id,
|
|
1855
1851
|
onContentChange: n(pa),
|
|
1856
|
-
onPageChange: n(
|
|
1852
|
+
onPageChange: n(Sa),
|
|
1857
1853
|
onRowClick: n(ue),
|
|
1858
1854
|
onRouteUrl: Ne,
|
|
1859
1855
|
parentTableId: (dn = (un = n(Gl)) == null ? void 0 : un.comp) == null ? void 0 : dn.tableId,
|
|
@@ -1916,8 +1912,8 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1916
1912
|
V("div", null, [
|
|
1917
1913
|
s(ta, {
|
|
1918
1914
|
title: "复制新增",
|
|
1919
|
-
visible: n(
|
|
1920
|
-
onBeforeDestroy: p[8] || (p[8] = (Ue) =>
|
|
1915
|
+
visible: n(St),
|
|
1916
|
+
onBeforeDestroy: p[8] || (p[8] = (Ue) => St.value = !1),
|
|
1921
1917
|
style: { height: "74%" }
|
|
1922
1918
|
}, {
|
|
1923
1919
|
default: o(() => [
|
|
@@ -1933,25 +1929,23 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
1933
1929
|
footer: o(() => [
|
|
1934
1930
|
V("div", Yi, [
|
|
1935
1931
|
s(Ce, {
|
|
1936
|
-
onClick: p[6] || (p[6] = (Ue) =>
|
|
1932
|
+
onClick: p[6] || (p[6] = (Ue) => St.value = !1),
|
|
1937
1933
|
id: "themeBorderButton"
|
|
1938
1934
|
}, {
|
|
1939
|
-
default: o(() => p[18] || (p[18] = [
|
|
1940
|
-
cl(ol("取消"))
|
|
1941
|
-
])),
|
|
1942
|
-
_: 1
|
|
1943
|
-
__: [18]
|
|
1935
|
+
default: o(() => [...p[18] || (p[18] = [
|
|
1936
|
+
cl(ol("取消"), -1)
|
|
1937
|
+
])]),
|
|
1938
|
+
_: 1
|
|
1944
1939
|
}),
|
|
1945
1940
|
s(Ce, {
|
|
1946
1941
|
class: "ok-button",
|
|
1947
1942
|
onClick: p[7] || (p[7] = (Ue) => n(uo)()),
|
|
1948
1943
|
id: "themeButton"
|
|
1949
1944
|
}, {
|
|
1950
|
-
default: o(() => p[19] || (p[19] = [
|
|
1951
|
-
cl(ol("确认"))
|
|
1952
|
-
])),
|
|
1953
|
-
_: 1
|
|
1954
|
-
__: [19]
|
|
1945
|
+
default: o(() => [...p[19] || (p[19] = [
|
|
1946
|
+
cl(ol("确认"), -1)
|
|
1947
|
+
])]),
|
|
1948
|
+
_: 1
|
|
1955
1949
|
})
|
|
1956
1950
|
])
|
|
1957
1951
|
]),
|
|
@@ -2179,7 +2173,7 @@ const Uo = /* @__PURE__ */ Kl(Ro, [["render", Vo], ["__scopeId", "data-v-ca3f1fb
|
|
|
2179
2173
|
},
|
|
2180
2174
|
emits: ["update:modelValue", "get", "clear"],
|
|
2181
2175
|
setup(l, { emit: C }) {
|
|
2182
|
-
const c = l, h = C, M = yn(() => import("./localIcon-
|
|
2176
|
+
const c = l, h = C, M = yn(() => import("./localIcon-CoJHw5ss.js")), U = yn(() => import("./eleIcon-BoKZ_PzU.js")), I = B(), x = xl({
|
|
2183
2177
|
fontIconPrefix: "",
|
|
2184
2178
|
fontIconWidth: 0,
|
|
2185
2179
|
fontIconSearch: "",
|
|
@@ -2607,7 +2601,7 @@ function sr(l = "menu") {
|
|
|
2607
2601
|
}), wl = B(null), de = () => {
|
|
2608
2602
|
ze.show = !1, g();
|
|
2609
2603
|
}, y = (i) => {
|
|
2610
|
-
|
|
2604
|
+
S.title = "", S.icon = "", ze.type = "create", ze.show = !0;
|
|
2611
2605
|
}, Ye = async (i) => {
|
|
2612
2606
|
var N, G, t;
|
|
2613
2607
|
let k;
|
|
@@ -2623,7 +2617,7 @@ function sr(l = "menu") {
|
|
|
2623
2617
|
order_no: "",
|
|
2624
2618
|
isShow: !0
|
|
2625
2619
|
}, A = await tr(ze.type, d);
|
|
2626
|
-
((N = A == null ? void 0 : A.data) == null ? void 0 : N.code) === 200 && (k = (t = (G = A == null ? void 0 : A.data) == null ? void 0 : G.result) == null ? void 0 : t.object_id,
|
|
2620
|
+
((N = A == null ? void 0 : A.data) == null ? void 0 : N.code) === 200 && (k = (t = (G = A == null ? void 0 : A.data) == null ? void 0 : G.result) == null ? void 0 : t.object_id, _l.success("新增成功"));
|
|
2627
2621
|
} catch (d) {
|
|
2628
2622
|
throw new Error(d);
|
|
2629
2623
|
} finally {
|
|
@@ -2638,19 +2632,19 @@ function sr(l = "menu") {
|
|
|
2638
2632
|
}
|
|
2639
2633
|
function Te(i, k) {
|
|
2640
2634
|
if (!k) return [];
|
|
2641
|
-
const N = [], G = new RegExp(`(^|/)${k}(/|$)`), t = Al(ee.value), d = Ql(t, "path",
|
|
2635
|
+
const N = [], G = new RegExp(`(^|/)${k}(/|$)`), t = Al(ee.value), d = Ql(t, "path", S == null ? void 0 : S.path);
|
|
2642
2636
|
for (const [A, W] of i.entries())
|
|
2643
2637
|
G.test(W == null ? void 0 : W.object_name) && N.push({
|
|
2644
2638
|
id: A,
|
|
2645
2639
|
//批量替换匹配项的path
|
|
2646
|
-
path: he(W == null ? void 0 : W.object_name, d == null ? void 0 : d.level,
|
|
2640
|
+
path: he(W == null ? void 0 : W.object_name, d == null ? void 0 : d.level, S == null ? void 0 : S.title),
|
|
2647
2641
|
//同步修改fatherName同步点击行面包屑下拉触发
|
|
2648
2642
|
father_name: W == null ? void 0 : W.father_name
|
|
2649
2643
|
}), G.test(W == null ? void 0 : W.father_name) && (W != null && W.father_name) && N.push({
|
|
2650
2644
|
id: A,
|
|
2651
2645
|
path: W == null ? void 0 : W.object_name,
|
|
2652
2646
|
//同步修改fatherName同步点击行面包屑下拉触发
|
|
2653
|
-
father_name: he(W == null ? void 0 : W.father_name, d == null ? void 0 : d.level,
|
|
2647
|
+
father_name: he(W == null ? void 0 : W.father_name, d == null ? void 0 : d.level, S == null ? void 0 : S.title)
|
|
2654
2648
|
});
|
|
2655
2649
|
return N;
|
|
2656
2650
|
}
|
|
@@ -2658,7 +2652,7 @@ function sr(l = "menu") {
|
|
|
2658
2652
|
var i, k, N, G;
|
|
2659
2653
|
al.value = !0;
|
|
2660
2654
|
try {
|
|
2661
|
-
const t = Te(u.value,
|
|
2655
|
+
const t = Te(u.value, S == null ? void 0 : S.path);
|
|
2662
2656
|
if (!(t != null && t.length)) return;
|
|
2663
2657
|
const d = {
|
|
2664
2658
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
@@ -2673,12 +2667,12 @@ function sr(l = "menu") {
|
|
|
2673
2667
|
}
|
|
2674
2668
|
]
|
|
2675
2669
|
}, A = await at(d);
|
|
2676
|
-
((i = A == null ? void 0 : A.data) == null ? void 0 : i.code) === 200 && ((N = (k = A == null ? void 0 : A.data) == null ? void 0 : k.message) != null && N.includes("成功")) && (ee.value = (G = ee.value) == null ? void 0 : G.map((W) => (W == null ? void 0 : W.path) === (
|
|
2670
|
+
((i = A == null ? void 0 : A.data) == null ? void 0 : i.code) === 200 && ((N = (k = A == null ? void 0 : A.data) == null ? void 0 : k.message) != null && N.includes("成功")) && (ee.value = (G = ee.value) == null ? void 0 : G.map((W) => (W == null ? void 0 : W.path) === (S == null ? void 0 : S.path) ? {
|
|
2677
2671
|
...W,
|
|
2678
|
-
title:
|
|
2679
|
-
icon:
|
|
2680
|
-
path:
|
|
2681
|
-
} : W),
|
|
2672
|
+
title: S == null ? void 0 : S.title,
|
|
2673
|
+
icon: S == null ? void 0 : S.icon,
|
|
2674
|
+
path: S == null ? void 0 : S.title
|
|
2675
|
+
} : W), _l.success("修改成功"));
|
|
2682
2676
|
} catch (t) {
|
|
2683
2677
|
throw new Error(t);
|
|
2684
2678
|
} finally {
|
|
@@ -2691,8 +2685,8 @@ function sr(l = "menu") {
|
|
|
2691
2685
|
switch (ze.type) {
|
|
2692
2686
|
case "create":
|
|
2693
2687
|
ee.value.push({
|
|
2694
|
-
...
|
|
2695
|
-
path:
|
|
2688
|
+
...S,
|
|
2689
|
+
path: S == null ? void 0 : S.title,
|
|
2696
2690
|
level: 0,
|
|
2697
2691
|
carryData: !1,
|
|
2698
2692
|
children: [],
|
|
@@ -2726,7 +2720,7 @@ function sr(l = "menu") {
|
|
|
2726
2720
|
}
|
|
2727
2721
|
]
|
|
2728
2722
|
}, t = await Pt(G);
|
|
2729
|
-
((d = t == null ? void 0 : t.data) == null ? void 0 : d.code) === 200 && ((W = (A = t == null ? void 0 : t.data) == null ? void 0 : A.message) != null && W.includes("成功")) && (ee.value = (re = ve.value) == null ? void 0 : re.filter((We) => (We == null ? void 0 : We.path) !== (i == null ? void 0 : i.path)), Ze.value = Date.now(), ze.show = !1, g(), M.setAsideEditMenus([]),
|
|
2723
|
+
((d = t == null ? void 0 : t.data) == null ? void 0 : d.code) === 200 && ((W = (A = t == null ? void 0 : t.data) == null ? void 0 : A.message) != null && W.includes("成功")) && (ee.value = (re = ve.value) == null ? void 0 : re.filter((We) => (We == null ? void 0 : We.path) !== (i == null ? void 0 : i.path)), Ze.value = Date.now(), ze.show = !1, g(), M.setAsideEditMenus([]), _l.success("删除成功"));
|
|
2730
2724
|
});
|
|
2731
2725
|
} catch (k) {
|
|
2732
2726
|
throw new Error(k);
|
|
@@ -2734,9 +2728,9 @@ function sr(l = "menu") {
|
|
|
2734
2728
|
al.value = !1;
|
|
2735
2729
|
}
|
|
2736
2730
|
}, g = () => {
|
|
2737
|
-
for (const i in
|
|
2738
|
-
|
|
2739
|
-
},
|
|
2731
|
+
for (const i in S)
|
|
2732
|
+
S[i] = "";
|
|
2733
|
+
}, S = xl({
|
|
2740
2734
|
title: "",
|
|
2741
2735
|
icon: "",
|
|
2742
2736
|
path: ""
|
|
@@ -2745,7 +2739,7 @@ function sr(l = "menu") {
|
|
|
2745
2739
|
{ required: !0, message: "请输入", trigger: "blur" }
|
|
2746
2740
|
]
|
|
2747
2741
|
}), ce = (i) => {
|
|
2748
|
-
|
|
2742
|
+
S.title = i == null ? void 0 : i.title, S.icon = i == null ? void 0 : i.icon, S.path = i == null ? void 0 : i.path, ze.type = "update", ze.show = !1, c("closePlusDialog"), Fl(() => {
|
|
2749
2743
|
var k;
|
|
2750
2744
|
(k = qe.value) == null || k.focus();
|
|
2751
2745
|
});
|
|
@@ -2771,7 +2765,7 @@ function sr(l = "menu") {
|
|
|
2771
2765
|
create_time: (t = /* @__PURE__ */ new Date()) == null ? void 0 : t.getTime()
|
|
2772
2766
|
}), c("closeEditing"), (d = j.value) == null || d.handleResize(), al.value = !1;
|
|
2773
2767
|
}
|
|
2774
|
-
|
|
2768
|
+
S.title = k == null ? void 0 : k.title, S.icon = k == null ? void 0 : k.icon, S.path = k == null ? void 0 : k.path;
|
|
2775
2769
|
}, { immediate: !0, deep: !0 }), {
|
|
2776
2770
|
menuRef: j,
|
|
2777
2771
|
onDbClickMenu: ce,
|
|
@@ -2786,7 +2780,7 @@ function sr(l = "menu") {
|
|
|
2786
2780
|
onCloseMenuPlusDialog: de,
|
|
2787
2781
|
onConfirmMenu: a,
|
|
2788
2782
|
onDeleteMenu: v,
|
|
2789
|
-
menuForm:
|
|
2783
|
+
menuForm: S,
|
|
2790
2784
|
menuRules: q,
|
|
2791
2785
|
menuFormRef: wl,
|
|
2792
2786
|
refreshKey: Ze,
|
|
@@ -2944,27 +2938,27 @@ function fr(l = "menu") {
|
|
|
2944
2938
|
asideEditMenus: P,
|
|
2945
2939
|
menuTriggerType: u,
|
|
2946
2940
|
platform: se
|
|
2947
|
-
} = yl(M), { fixMenuStatus: L } = yl(U), { isSuperAdmin: ee } = es(), w = kl(() => C == null ? void 0 : C.mode), m = (
|
|
2941
|
+
} = yl(M), { fixMenuStatus: L } = yl(U), { isSuperAdmin: ee } = es(), w = kl(() => C == null ? void 0 : C.mode), m = (_) => _ == null ? void 0 : _.map((ke) => {
|
|
2948
2942
|
var Ae, He;
|
|
2949
2943
|
return !(ke != null && ke.children) || ((Ae = ke == null ? void 0 : ke.children) == null ? void 0 : Ae.length) === 0 ? ke.config = h.value : ke != null && ke.children && ((He = ke == null ? void 0 : ke.children) == null ? void 0 : He.length) > 0 && (ke.children = m(ke.children)), ke;
|
|
2950
2944
|
}), r = kl(() => {
|
|
2951
|
-
let
|
|
2952
|
-
return (
|
|
2945
|
+
let _ = [...P.value];
|
|
2946
|
+
return (_ == null ? void 0 : _.length) === 0 ? (D.push("/"), []) : (il(_, ll.value), _ = _ == null ? void 0 : _.map((oe) => {
|
|
2953
2947
|
var ke, Ae;
|
|
2954
2948
|
return !(oe != null && oe.children) || ((ke = oe == null ? void 0 : oe.children) == null ? void 0 : ke.length) === 0 ? oe.config = h.value : oe != null && oe.children && ((Ae = oe == null ? void 0 : oe.children) == null ? void 0 : Ae.length) > 0 && (oe.children = m(oe.children)), oe;
|
|
2955
|
-
}),
|
|
2956
|
-
}), Ee = (
|
|
2949
|
+
}), _);
|
|
2950
|
+
}), Ee = (_) => {
|
|
2957
2951
|
var xe, Ve;
|
|
2958
2952
|
const oe = (Z) => {
|
|
2959
2953
|
const Le = [...Z.groups].sort().join("|");
|
|
2960
2954
|
return `${Z.menus}|${Le}`;
|
|
2961
2955
|
}, ke = /* @__PURE__ */ new Map();
|
|
2962
|
-
(xe =
|
|
2956
|
+
(xe = _ == null ? void 0 : _.sonSyncs) == null || xe.forEach((Z) => {
|
|
2963
2957
|
const Le = oe(Z);
|
|
2964
2958
|
ke != null && ke.has(Le) || ke.set(Le, Z);
|
|
2965
2959
|
});
|
|
2966
2960
|
const Ae = /* @__PURE__ */ new Map();
|
|
2967
|
-
(Ve =
|
|
2961
|
+
(Ve = _ == null ? void 0 : _.fatherSyncs) == null || Ve.forEach((Z) => {
|
|
2968
2962
|
const Le = oe(Z);
|
|
2969
2963
|
Ae != null && Ae.has(Le) || Ae.set(Le, Z);
|
|
2970
2964
|
});
|
|
@@ -2996,13 +2990,13 @@ function fr(l = "menu") {
|
|
|
2996
2990
|
};
|
|
2997
2991
|
})
|
|
2998
2992
|
];
|
|
2999
|
-
}, ye = B([]), O = B([]), F = async (
|
|
3000
|
-
var oe, ke, Ae, He, K, te, xe, Ve, Z, Le, z, p, Y, Ce, pe,
|
|
2993
|
+
}, ye = B([]), O = B([]), F = async (_) => {
|
|
2994
|
+
var oe, ke, Ae, He, K, te, xe, Ve, Z, Le, z, p, Y, Ce, pe, _e, J, we, Pe, ge, $e, el;
|
|
3001
2995
|
try {
|
|
3002
2996
|
if (!e.value) return;
|
|
3003
2997
|
const Il = /* @__PURE__ */ new Map(), Ml = /* @__PURE__ */ new Map(), pl = await Ca({
|
|
3004
2998
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
3005
|
-
pageName:
|
|
2999
|
+
pageName: _ == null ? void 0 : _.path
|
|
3006
3000
|
});
|
|
3007
3001
|
if (((oe = pl == null ? void 0 : pl.data) == null ? void 0 : oe.code) === 200) {
|
|
3008
3002
|
const Ke = (Ae = (ke = pl == null ? void 0 : pl.data) == null ? void 0 : ke.result) == null ? void 0 : Ae.filter((Ie) => Ie == null ? void 0 : Ie.property_name);
|
|
@@ -3015,14 +3009,14 @@ function fr(l = "menu") {
|
|
|
3015
3009
|
})) == null ? void 0 : te.value) == null ? void 0 : xe[0], El = (Z = (Ve = Ie == null ? void 0 : Ie.contents) == null ? void 0 : Ve.find((ml) => {
|
|
3016
3010
|
var Jl;
|
|
3017
3011
|
return (Jl = ml == null ? void 0 : ml.key) == null ? void 0 : Jl.includes("content");
|
|
3018
|
-
})) == null ? void 0 : Z.value, Vl = Array.isArray(((z = (Le = Qe == null ? void 0 : Qe.结构) == null ? void 0 : Le.contents) == null ? void 0 : z[0]) || ""), Cl = Vl ? (Y = (p = Qe == null ? void 0 : Qe.结构) == null ? void 0 : p.contents) == null ? void 0 : Y.flatMap((ml) => ml) : (Ce = Qe == null ? void 0 : Qe.结构) == null ? void 0 : Ce.contents,
|
|
3012
|
+
})) == null ? void 0 : Z.value, Vl = Array.isArray(((z = (Le = Qe == null ? void 0 : Qe.结构) == null ? void 0 : Le.contents) == null ? void 0 : z[0]) || ""), Cl = Vl ? (Y = (p = Qe == null ? void 0 : Qe.结构) == null ? void 0 : p.contents) == null ? void 0 : Y.flatMap((ml) => ml) : (Ce = Qe == null ? void 0 : Qe.结构) == null ? void 0 : Ce.contents, Sl = ["sort", "disabled", "relatedId"], Ol = [
|
|
3019
3013
|
{
|
|
3020
3014
|
key: "tableContents",
|
|
3021
3015
|
contents: El
|
|
3022
3016
|
},
|
|
3023
3017
|
{
|
|
3024
3018
|
key: "header",
|
|
3025
|
-
contents: Cl == null ? void 0 : Cl.filter((ml) => !(
|
|
3019
|
+
contents: Cl == null ? void 0 : Cl.filter((ml) => !(Sl != null && Sl.includes(ml == null ? void 0 : ml.prop)))
|
|
3026
3020
|
},
|
|
3027
3021
|
{
|
|
3028
3022
|
key: "filter",
|
|
@@ -3034,8 +3028,8 @@ function fr(l = "menu") {
|
|
|
3034
3028
|
groupName: Ie == null ? void 0 : Ie.property_name,
|
|
3035
3029
|
groupType: (Qe == null ? void 0 : Qe.类型) || "",
|
|
3036
3030
|
//注意多级表头处理
|
|
3037
|
-
columns: (
|
|
3038
|
-
hiddenColumns: Cl == null ? void 0 : Cl.filter((ml) =>
|
|
3031
|
+
columns: (_e = hl == null ? void 0 : hl.contents) != null && _e.length ? hl == null ? void 0 : hl.contents : Cl,
|
|
3032
|
+
hiddenColumns: Cl == null ? void 0 : Cl.filter((ml) => Sl == null ? void 0 : Sl.includes(ml == null ? void 0 : ml.prop)),
|
|
3039
3033
|
namePath: ((J = Object.values(Ie == null ? void 0 : Ie.name)) == null ? void 0 : J.length) > 0 ? (we = Object.values(Ie == null ? void 0 : Ie.name)) == null ? void 0 : we.join("/") : "",
|
|
3040
3034
|
hasMultiHeader: Vl,
|
|
3041
3035
|
hasContent: (Ie == null ? void 0 : Ie.contents) && ((Pe = Ie == null ? void 0 : Ie.contents) == null ? void 0 : Pe.length),
|
|
@@ -3050,7 +3044,7 @@ function fr(l = "menu") {
|
|
|
3050
3044
|
id: Qe == null ? void 0 : Qe.id,
|
|
3051
3045
|
content: (el = Qe == null ? void 0 : Qe.引用) == null ? void 0 : el.contents
|
|
3052
3046
|
},
|
|
3053
|
-
menuId:
|
|
3047
|
+
menuId: _ == null ? void 0 : _.id
|
|
3054
3048
|
});
|
|
3055
3049
|
}
|
|
3056
3050
|
let Ue = [];
|
|
@@ -3062,17 +3056,17 @@ function fr(l = "menu") {
|
|
|
3062
3056
|
} catch (Il) {
|
|
3063
3057
|
throw new Error(Il);
|
|
3064
3058
|
}
|
|
3065
|
-
}, ve = B({}), X = async (
|
|
3066
|
-
M.setActiveAsideEditMenuPath(
|
|
3067
|
-
}, Be = async (
|
|
3068
|
-
L.value ? U.setFixMenuStatus(!1) : (g.value && (u.value = "open"), u.value === "click" ? R.value === 1 ? M.setActiveAsideEditMenuPath(sessionStorage.getItem("pageKey")) : M.setActiveAsideEditMenuPath(
|
|
3069
|
-
const oe = Ql(r.value, "path",
|
|
3059
|
+
}, ve = B({}), X = async (_) => {
|
|
3060
|
+
M.setActiveAsideEditMenuPath(_ == null ? void 0 : _.path), ve.value = Al(_), await F(_);
|
|
3061
|
+
}, Be = async (_) => {
|
|
3062
|
+
L.value ? U.setFixMenuStatus(!1) : (g.value && (u.value = "open"), u.value === "click" ? R.value === 1 ? M.setActiveAsideEditMenuPath(sessionStorage.getItem("pageKey")) : M.setActiveAsideEditMenuPath(_) : g.value || (M.setMenuTriggerType("click"), M.setActiveAsideEditMenuPath(_))), _ != null && _.startsWith("/") ? D.push(_) : D.push("/"), R.value++;
|
|
3063
|
+
const oe = Ql(r.value, "path", _);
|
|
3070
3064
|
oe && (ve.value = Al(oe), await F(oe));
|
|
3071
|
-
}, me = (
|
|
3072
|
-
g.value || M.setActiveMenuPath(
|
|
3073
|
-
}, Oe = (
|
|
3065
|
+
}, me = (_) => {
|
|
3066
|
+
g.value || M.setActiveMenuPath(_);
|
|
3067
|
+
}, Oe = (_) => {
|
|
3074
3068
|
const oe = document.documentElement;
|
|
3075
|
-
|
|
3069
|
+
_ == null || _.forEach((ke) => {
|
|
3076
3070
|
oe.style.setProperty(ke.name, ke.value);
|
|
3077
3071
|
});
|
|
3078
3072
|
};
|
|
@@ -3080,44 +3074,44 @@ function fr(l = "menu") {
|
|
|
3080
3074
|
R.value = 1;
|
|
3081
3075
|
});
|
|
3082
3076
|
const ll = kl(() => {
|
|
3083
|
-
const
|
|
3084
|
-
return
|
|
3077
|
+
const _ = sessionStorage.getItem("authority");
|
|
3078
|
+
return _ ? JSON.parse(_) : [];
|
|
3085
3079
|
});
|
|
3086
3080
|
vl(
|
|
3087
3081
|
() => se.value,
|
|
3088
|
-
(
|
|
3089
|
-
|
|
3082
|
+
(_) => {
|
|
3083
|
+
_ === "browser" ? Oe(ut) : _ === "client" ? (Oe(dt), Oe(pt)) : _ === "three" && (Oe(ft), Oe(vt));
|
|
3090
3084
|
},
|
|
3091
3085
|
{ immediate: !0 }
|
|
3092
|
-
), vl(() => C == null ? void 0 : C.isRefreshGroups, async (
|
|
3086
|
+
), vl(() => C == null ? void 0 : C.isRefreshGroups, async (_) => {
|
|
3093
3087
|
ve.value && await X(ve.value);
|
|
3094
3088
|
}, { immediate: !0 });
|
|
3095
|
-
const il = (
|
|
3089
|
+
const il = (_, oe) => ({
|
|
3096
3090
|
isFlag: !0
|
|
3097
3091
|
}), dl = xl({
|
|
3098
3092
|
show: !1,
|
|
3099
3093
|
title: "菜单配置",
|
|
3100
3094
|
width: "30%",
|
|
3101
3095
|
type: "create"
|
|
3102
|
-
}), fl = (
|
|
3096
|
+
}), fl = (_) => Zn(_), ze = B({}), wl = B([]), de = B({}), y = B({}), Ye = B({}), he = (_) => {
|
|
3103
3097
|
M.setCacheInputMenu({
|
|
3104
3098
|
type: dl.type,
|
|
3105
|
-
data:
|
|
3099
|
+
data: _
|
|
3106
3100
|
}), M.setIsRefreshMenus(!0);
|
|
3107
|
-
}, Te = async (
|
|
3101
|
+
}, Te = async (_, oe) => {
|
|
3108
3102
|
M.setIsRefreshMenus(!1), M.setIsRefreshMenus(!0), ie.value = void 0;
|
|
3109
|
-
}, al = (
|
|
3103
|
+
}, al = (_) => {
|
|
3110
3104
|
b.value = !0;
|
|
3111
3105
|
try {
|
|
3112
|
-
ma.confirm(`确认删除【${
|
|
3106
|
+
ma.confirm(`确认删除【${_ == null ? void 0 : _.title}】?将会同步删除其关联的所有数据`, "温馨提示", {
|
|
3113
3107
|
confirmButtonText: "确认",
|
|
3114
3108
|
cancelButtonText: "取消",
|
|
3115
3109
|
type: "warning"
|
|
3116
3110
|
}).then(async () => {
|
|
3117
3111
|
var K, te, xe, Ve, Z, Le, z;
|
|
3118
|
-
const oe = ne(e.value,
|
|
3112
|
+
const oe = ne(e.value, _ == null ? void 0 : _.path), ke = oe != null && oe.length ? oe == null ? void 0 : oe.map((p) => ({
|
|
3119
3113
|
object_id: p == null ? void 0 : p.id
|
|
3120
|
-
})) : [{ object_id:
|
|
3114
|
+
})) : [{ object_id: _ == null ? void 0 : _.id }], Ae = {
|
|
3121
3115
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
3122
3116
|
changeContents: [
|
|
3123
3117
|
{
|
|
@@ -3127,14 +3121,14 @@ function fr(l = "menu") {
|
|
|
3127
3121
|
]
|
|
3128
3122
|
}, He = await Pt(Ae);
|
|
3129
3123
|
if (((K = He == null ? void 0 : He.data) == null ? void 0 : K.code) === 200 && ((xe = (te = He == null ? void 0 : He.data) == null ? void 0 : te.message) != null && xe.includes("成功"))) {
|
|
3130
|
-
const p = (Ve =
|
|
3124
|
+
const p = (Ve = _ == null ? void 0 : _.path) == null ? void 0 : Ve.split("/"), Y = (Z = p == null ? void 0 : p.slice(0, -1)) == null ? void 0 : Z.join("/"), Ce = Ql(r.value, "path", Y);
|
|
3131
3125
|
if (Ce)
|
|
3132
|
-
Ce.children = (Le = Ce.children) == null ? void 0 : Le.filter((pe) => (pe == null ? void 0 : pe.path) !== (
|
|
3126
|
+
Ce.children = (Le = Ce.children) == null ? void 0 : Le.filter((pe) => (pe == null ? void 0 : pe.path) !== (_ == null ? void 0 : _.path));
|
|
3133
3127
|
else {
|
|
3134
|
-
const pe = (z = r.value) == null ? void 0 : z.filter((
|
|
3128
|
+
const pe = (z = r.value) == null ? void 0 : z.filter((_e) => (_e == null ? void 0 : _e.path) !== (_ == null ? void 0 : _.path));
|
|
3135
3129
|
M.setAsideEditMenus(pe);
|
|
3136
3130
|
}
|
|
3137
|
-
await tt(), W.value = Date.now(), G(), q.show = !1,
|
|
3131
|
+
await tt(), W.value = Date.now(), G(), q.show = !1, _l.success("删除成功");
|
|
3138
3132
|
}
|
|
3139
3133
|
});
|
|
3140
3134
|
} catch (oe) {
|
|
@@ -3142,13 +3136,13 @@ function fr(l = "menu") {
|
|
|
3142
3136
|
} finally {
|
|
3143
3137
|
b.value = !1;
|
|
3144
3138
|
}
|
|
3145
|
-
}, qe = (
|
|
3146
|
-
switch (X(
|
|
3139
|
+
}, qe = (_, oe) => {
|
|
3140
|
+
switch (X(_), oe == null ? void 0 : oe.value) {
|
|
3147
3141
|
case "delete":
|
|
3148
|
-
al(
|
|
3142
|
+
al(_);
|
|
3149
3143
|
break;
|
|
3150
3144
|
case "create":
|
|
3151
|
-
d(
|
|
3145
|
+
d(_);
|
|
3152
3146
|
break;
|
|
3153
3147
|
case "createCompName":
|
|
3154
3148
|
ce.type = "create", ce.show = !0;
|
|
@@ -3156,10 +3150,10 @@ function fr(l = "menu") {
|
|
|
3156
3150
|
}
|
|
3157
3151
|
}, nl = () => {
|
|
3158
3152
|
dl.show = !1;
|
|
3159
|
-
}, Ze = (
|
|
3153
|
+
}, Ze = (_) => _ == null ? void 0 : _.filter((oe) => oe.allowInherit), a = () => {
|
|
3160
3154
|
var ke, Ae, He, K, te;
|
|
3161
|
-
let
|
|
3162
|
-
dl.type === "create" && (
|
|
3155
|
+
let _;
|
|
3156
|
+
dl.type === "create" && (_ = ((ke = y.value) == null ? void 0 : ke.path) + "/" + de.value[(Ae = de.value) == null ? void 0 : Ae.prop]), dl.type === "update" && (_ = (He = y.value) == null ? void 0 : He.path);
|
|
3163
3157
|
const oe = {
|
|
3164
3158
|
...y.value,
|
|
3165
3159
|
//是否继承父菜单的配置
|
|
@@ -3167,17 +3161,17 @@ function fr(l = "menu") {
|
|
|
3167
3161
|
children: [],
|
|
3168
3162
|
childMenus: [],
|
|
3169
3163
|
title: de.value[(te = de.value) == null ? void 0 : te.prop],
|
|
3170
|
-
path:
|
|
3164
|
+
path: _
|
|
3171
3165
|
};
|
|
3172
3166
|
console.log("clickSubmitForm", Ye.value, y.value, oe), he(oe), dl.show = !1;
|
|
3173
|
-
}, v = (
|
|
3167
|
+
}, v = (_) => {
|
|
3174
3168
|
var ke, Ae;
|
|
3175
|
-
const oe = (ke =
|
|
3169
|
+
const oe = (ke = _ == null ? void 0 : _.contents) == null ? void 0 : ke.find((He) => He.key === "formContent");
|
|
3176
3170
|
oe && (de.value = (Ae = oe == null ? void 0 : oe.contents) == null ? void 0 : Ae.reduce(
|
|
3177
3171
|
(He, K) => (He[K.key] = K.value, He.prop = K.key, He),
|
|
3178
3172
|
{}
|
|
3179
3173
|
));
|
|
3180
|
-
}, g = B(!1),
|
|
3174
|
+
}, g = B(!1), S = () => {
|
|
3181
3175
|
g.value = !g.value;
|
|
3182
3176
|
}, q = xl({
|
|
3183
3177
|
show: !1,
|
|
@@ -3195,24 +3189,24 @@ function fr(l = "menu") {
|
|
|
3195
3189
|
}, N = () => {
|
|
3196
3190
|
ce.show = !1, t(), ve.value && X(ve.value);
|
|
3197
3191
|
}, G = () => {
|
|
3198
|
-
for (const
|
|
3199
|
-
ue[
|
|
3192
|
+
for (const _ in ue)
|
|
3193
|
+
ue[_] = "";
|
|
3200
3194
|
}, t = () => {
|
|
3201
|
-
for (const
|
|
3202
|
-
H[
|
|
3203
|
-
}, d = (
|
|
3204
|
-
G(), q.parentPath =
|
|
3195
|
+
for (const _ in H)
|
|
3196
|
+
H[_] = "";
|
|
3197
|
+
}, d = (_) => {
|
|
3198
|
+
G(), q.parentPath = _ == null ? void 0 : _.path, q.type = "create", q.show = !0, Fl(() => {
|
|
3205
3199
|
var oe;
|
|
3206
3200
|
(oe = sl.value) == null || oe.focus();
|
|
3207
3201
|
});
|
|
3208
|
-
}, A = async (
|
|
3202
|
+
}, A = async (_) => {
|
|
3209
3203
|
var ke, Ae, He;
|
|
3210
3204
|
let oe;
|
|
3211
3205
|
try {
|
|
3212
3206
|
const K = {
|
|
3213
3207
|
//新增
|
|
3214
3208
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
3215
|
-
objectName:
|
|
3209
|
+
objectName: _ == null ? void 0 : _.path,
|
|
3216
3210
|
//path
|
|
3217
3211
|
// propertyName: data?.title,//title,框架设计,该字段是自动获取name生成的,不需要传
|
|
3218
3212
|
// fatherObjectId: "",
|
|
@@ -3220,7 +3214,7 @@ function fr(l = "menu") {
|
|
|
3220
3214
|
order_no: "",
|
|
3221
3215
|
isShow: !0
|
|
3222
3216
|
}, te = await nr(q.type, K);
|
|
3223
|
-
((ke = te == null ? void 0 : te.data) == null ? void 0 : ke.code) === 200 && (oe = (He = (Ae = te == null ? void 0 : te.data) == null ? void 0 : Ae.result) == null ? void 0 : He.object_id,
|
|
3217
|
+
((ke = te == null ? void 0 : te.data) == null ? void 0 : ke.code) === 200 && (oe = (He = (Ae = te == null ? void 0 : te.data) == null ? void 0 : Ae.result) == null ? void 0 : He.object_id, _l.success("新增成功"));
|
|
3224
3218
|
} catch (K) {
|
|
3225
3219
|
throw new Error(K);
|
|
3226
3220
|
} finally {
|
|
@@ -3228,10 +3222,10 @@ function fr(l = "menu") {
|
|
|
3228
3222
|
}
|
|
3229
3223
|
return oe;
|
|
3230
3224
|
}, W = B(0), re = B(""), We = () => {
|
|
3231
|
-
var
|
|
3225
|
+
var _;
|
|
3232
3226
|
b.value = !0, re.value = "";
|
|
3233
3227
|
try {
|
|
3234
|
-
(
|
|
3228
|
+
(_ = j.value) == null || _.validate(async (oe) => {
|
|
3235
3229
|
if (oe) {
|
|
3236
3230
|
switch (q.type) {
|
|
3237
3231
|
case "create":
|
|
@@ -3279,16 +3273,16 @@ function fr(l = "menu") {
|
|
|
3279
3273
|
} finally {
|
|
3280
3274
|
b.value = !1;
|
|
3281
3275
|
}
|
|
3282
|
-
}, rl = async (
|
|
3276
|
+
}, rl = async (_) => {
|
|
3283
3277
|
try {
|
|
3284
|
-
ma.confirm(`确认删除【${
|
|
3278
|
+
ma.confirm(`确认删除【${_ == null ? void 0 : _.title}】?将会同步删除其关联的所有数据`, "温馨提示", {
|
|
3285
3279
|
confirmButtonText: "确认",
|
|
3286
3280
|
cancelButtonText: "取消",
|
|
3287
3281
|
type: "warning"
|
|
3288
3282
|
}).then(async () => {
|
|
3289
3283
|
var He, K, te, xe;
|
|
3290
3284
|
q.type = "delete";
|
|
3291
|
-
const oe = ne(e.value,
|
|
3285
|
+
const oe = ne(e.value, _ == null ? void 0 : _.path), ke = {
|
|
3292
3286
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
3293
3287
|
changeContents: [
|
|
3294
3288
|
{
|
|
@@ -3300,24 +3294,24 @@ function fr(l = "menu") {
|
|
|
3300
3294
|
]
|
|
3301
3295
|
}, Ae = await Pt(ke);
|
|
3302
3296
|
if (((He = Ae == null ? void 0 : Ae.data) == null ? void 0 : He.code) === 200 && ((te = (K = Ae == null ? void 0 : Ae.data) == null ? void 0 : K.message) != null && te.includes("成功"))) {
|
|
3303
|
-
const Ve = (xe = r.value) == null ? void 0 : xe.filter((Z) => (Z == null ? void 0 : Z.path) !== (
|
|
3304
|
-
M.setAsideEditMenus(Ve), W.value = Date.now(), q.show = !1, G(),
|
|
3297
|
+
const Ve = (xe = r.value) == null ? void 0 : xe.filter((Z) => (Z == null ? void 0 : Z.path) !== (_ == null ? void 0 : _.path));
|
|
3298
|
+
M.setAsideEditMenus(Ve), W.value = Date.now(), q.show = !1, G(), _l.success("删除成功");
|
|
3305
3299
|
}
|
|
3306
3300
|
});
|
|
3307
3301
|
} catch (oe) {
|
|
3308
3302
|
throw new Error(oe);
|
|
3309
3303
|
} finally {
|
|
3310
|
-
await F(
|
|
3304
|
+
await F(_);
|
|
3311
3305
|
}
|
|
3312
3306
|
};
|
|
3313
|
-
function be(
|
|
3314
|
-
if (!
|
|
3315
|
-
const Ae =
|
|
3316
|
-
return oe < 0 || oe >= Ae.length ? (console.warn(`索引 ${oe} 超出范围,路径共有 ${Ae.length} 个片段`),
|
|
3307
|
+
function be(_, oe, ke) {
|
|
3308
|
+
if (!_) return _;
|
|
3309
|
+
const Ae = _.split("/");
|
|
3310
|
+
return oe < 0 || oe >= Ae.length ? (console.warn(`索引 ${oe} 超出范围,路径共有 ${Ae.length} 个片段`), _) : (Ae[oe] = ke, Ae.join("/"));
|
|
3317
3311
|
}
|
|
3318
|
-
function ne(
|
|
3312
|
+
function ne(_, oe) {
|
|
3319
3313
|
const ke = [], Ae = new RegExp(`(^|/)${oe}(/|$)`), He = Al(r.value), K = Ql(He, "path", ue == null ? void 0 : ue.path);
|
|
3320
|
-
for (const [te, xe] of
|
|
3314
|
+
for (const [te, xe] of _.entries())
|
|
3321
3315
|
Ae.test(xe == null ? void 0 : xe.object_name) && ke.push({
|
|
3322
3316
|
id: te,
|
|
3323
3317
|
//批量替换匹配项的path
|
|
@@ -3333,7 +3327,7 @@ function fr(l = "menu") {
|
|
|
3333
3327
|
return ke;
|
|
3334
3328
|
}
|
|
3335
3329
|
const b = B(!1), Me = async () => {
|
|
3336
|
-
var
|
|
3330
|
+
var _, oe, ke;
|
|
3337
3331
|
try {
|
|
3338
3332
|
const Ae = ne(e.value, ue == null ? void 0 : ue.path);
|
|
3339
3333
|
if (!(Ae != null && Ae.length)) return;
|
|
@@ -3350,22 +3344,22 @@ function fr(l = "menu") {
|
|
|
3350
3344
|
}
|
|
3351
3345
|
]
|
|
3352
3346
|
}, K = await at(He);
|
|
3353
|
-
if (((
|
|
3347
|
+
if (((_ = K == null ? void 0 : K.data) == null ? void 0 : _.code) === 200 && ((ke = (oe = K == null ? void 0 : K.data) == null ? void 0 : oe.message) != null && ke.includes("成功"))) {
|
|
3354
3348
|
const te = Ql(r.value, "path", ue.path);
|
|
3355
3349
|
if (!te) return;
|
|
3356
|
-
te.icon = ue == null ? void 0 : ue.icon, te.title = ue == null ? void 0 : ue.title, te.path = ue == null ? void 0 : ue.path,
|
|
3350
|
+
te.icon = ue == null ? void 0 : ue.icon, te.title = ue == null ? void 0 : ue.title, te.path = ue == null ? void 0 : ue.path, _l.success("修改成功");
|
|
3357
3351
|
}
|
|
3358
3352
|
} catch (Ae) {
|
|
3359
3353
|
throw new Error(Ae);
|
|
3360
3354
|
}
|
|
3361
3355
|
}, De = () => {
|
|
3362
|
-
var
|
|
3356
|
+
var _;
|
|
3363
3357
|
b.value = !0;
|
|
3364
3358
|
try {
|
|
3365
|
-
(
|
|
3359
|
+
(_ = i.value) == null || _.validate(async (oe) => {
|
|
3366
3360
|
var ke, Ae, He, K, te, xe, Ve;
|
|
3367
3361
|
if (oe) {
|
|
3368
|
-
if (!((ke = ve.value) != null && ke.path)) return
|
|
3362
|
+
if (!((ke = ve.value) != null && ke.path)) return _l.warning("请先选择所属菜单");
|
|
3369
3363
|
const Z = Ql(O.value, "groupId", H == null ? void 0 : H.pid);
|
|
3370
3364
|
let Le;
|
|
3371
3365
|
Z ? Le = [...((Ae = Z == null ? void 0 : Z.namePath) == null ? void 0 : Ae.split("/")) ?? [], H == null ? void 0 : H.title] : Le = [H == null ? void 0 : H.title];
|
|
@@ -3384,7 +3378,7 @@ function fr(l = "menu") {
|
|
|
3384
3378
|
order_no: Number(((xe = (te = ye.value) == null ? void 0 : te[((K = ye.value) == null ? void 0 : K.length) - 1]) == null ? void 0 : xe.order_no) || 0) + 1,
|
|
3385
3379
|
isShow: !0
|
|
3386
3380
|
}, p = await Ot(ce.type, z);
|
|
3387
|
-
((Ve = p == null ? void 0 : p.data) == null ? void 0 : Ve.code) === 200 && (c("getCompForm", H), t(), await F(ve.value),
|
|
3381
|
+
((Ve = p == null ? void 0 : p.data) == null ? void 0 : Ve.code) === 200 && (c("getCompForm", H), t(), await F(ve.value), _l.success("新增成功"), ve.value && X(ve.value), ce.show = !1);
|
|
3388
3382
|
}
|
|
3389
3383
|
});
|
|
3390
3384
|
} catch (oe) {
|
|
@@ -3434,28 +3428,28 @@ function fr(l = "menu") {
|
|
|
3434
3428
|
value: "delete",
|
|
3435
3429
|
icon: "DeleteMenu"
|
|
3436
3430
|
}
|
|
3437
|
-
], sl = B(null), Je = (
|
|
3438
|
-
ue.title =
|
|
3431
|
+
], sl = B(null), Je = (_) => {
|
|
3432
|
+
ue.title = _ == null ? void 0 : _.title, ue.icon = _ == null ? void 0 : _.icon, ue.path = _ == null ? void 0 : _.path, q.type = "update", q.show = !1, Fl(() => {
|
|
3439
3433
|
var oe;
|
|
3440
3434
|
(oe = sl.value) == null || oe.focus();
|
|
3441
3435
|
});
|
|
3442
|
-
},
|
|
3443
|
-
return vl(() => P.value, async (
|
|
3436
|
+
}, Se = B(null);
|
|
3437
|
+
return vl(() => P.value, async (_) => {
|
|
3444
3438
|
var oe, ke;
|
|
3445
|
-
if (
|
|
3439
|
+
if (_) {
|
|
3446
3440
|
await Fl();
|
|
3447
|
-
const Ae =
|
|
3441
|
+
const Ae = _ == null ? void 0 : _[0];
|
|
3448
3442
|
if (((oe = Ae == null ? void 0 : Ae.children) == null ? void 0 : oe.length) > 0) {
|
|
3449
3443
|
const He = Ae == null ? void 0 : Ae.path;
|
|
3450
|
-
if (!
|
|
3451
|
-
(ke =
|
|
3444
|
+
if (!Se.value) return;
|
|
3445
|
+
(ke = Se.value) == null || ke.openMenuRefByIndex(He), M.setActiveAsideEditMenuPath(He ?? "");
|
|
3452
3446
|
} else
|
|
3453
3447
|
M.setActiveAsideEditMenuPath((Ae == null ? void 0 : Ae.path) ?? "");
|
|
3454
3448
|
}
|
|
3455
3449
|
}, { immediate: !0 }), {
|
|
3456
|
-
menuRef:
|
|
3450
|
+
menuRef: Se,
|
|
3457
3451
|
isCollapse: g,
|
|
3458
|
-
handleMenuCollapse:
|
|
3452
|
+
handleMenuCollapse: S,
|
|
3459
3453
|
handleCompChange: v,
|
|
3460
3454
|
dialogForm: ze,
|
|
3461
3455
|
dialogRenderComps: wl,
|
|
@@ -3506,7 +3500,7 @@ const vr = Bl(fr()), hr = ["title", "onDblclick"], gr = { title: "确认" }, yr
|
|
|
3506
3500
|
key: 0,
|
|
3507
3501
|
title: "新建单元"
|
|
3508
3502
|
}, Ar = { title: "确认" }, Ir = { title: "取消" }, Mr = { class: "dialog-footer" };
|
|
3509
|
-
function
|
|
3503
|
+
function Sr(l, C, c, h, M, U) {
|
|
3510
3504
|
var w;
|
|
3511
3505
|
const I = le("svg-icon"), x = le("IconSelector"), R = le("el-input"), D = le("el-form-item"), ie = le("el-form"), e = le("el-popover"), E = le("ss-edit-menu"), T = le("el-cascader"), P = le("el-option"), u = le("el-select"), se = le("el-button"), L = le("ss-dialog"), ee = rt("loading");
|
|
3512
3506
|
return f(), $(tl, null, [
|
|
@@ -3704,21 +3698,19 @@ function _r(l, C, c, h, M, U) {
|
|
|
3704
3698
|
footer: o(() => [
|
|
3705
3699
|
V("div", Mr, [
|
|
3706
3700
|
s(se, { onClick: l.onCloseGroupDialog }, {
|
|
3707
|
-
default: o(() => C[7] || (C[7] = [
|
|
3708
|
-
cl("取消")
|
|
3709
|
-
])),
|
|
3710
|
-
_: 1
|
|
3711
|
-
__: [7]
|
|
3701
|
+
default: o(() => [...C[7] || (C[7] = [
|
|
3702
|
+
cl("取消", -1)
|
|
3703
|
+
])]),
|
|
3704
|
+
_: 1
|
|
3712
3705
|
}, 8, ["onClick"]),
|
|
3713
3706
|
s(se, {
|
|
3714
3707
|
type: "primary",
|
|
3715
3708
|
onClick: l.onConfirmGroup
|
|
3716
3709
|
}, {
|
|
3717
|
-
default: o(() => C[8] || (C[8] = [
|
|
3718
|
-
cl("确认")
|
|
3719
|
-
])),
|
|
3720
|
-
_: 1
|
|
3721
|
-
__: [8]
|
|
3710
|
+
default: o(() => [...C[8] || (C[8] = [
|
|
3711
|
+
cl("确认", -1)
|
|
3712
|
+
])]),
|
|
3713
|
+
_: 1
|
|
3722
3714
|
}, 8, ["onClick"])
|
|
3723
3715
|
])
|
|
3724
3716
|
]),
|
|
@@ -3791,7 +3783,7 @@ function _r(l, C, c, h, M, U) {
|
|
|
3791
3783
|
}, 8, ["title", "width", "visible", "onBeforeDestroy"])
|
|
3792
3784
|
], 64);
|
|
3793
3785
|
}
|
|
3794
|
-
const
|
|
3786
|
+
const _r = /* @__PURE__ */ Kl(vr, [["render", Sr], ["__scopeId", "data-v-7f84f446"]]), Tr = Xl(bl), { loginUserInfo: Zl } = yl(Tr), Br = jl(), is = async () => {
|
|
3795
3787
|
var C, c, h, M, U, I, x, R, D, ie;
|
|
3796
3788
|
let l = await Ca({
|
|
3797
3789
|
platId: parseInt((C = Zl == null ? void 0 : Zl.value) == null ? void 0 : C.plat_id),
|
|
@@ -4016,7 +4008,7 @@ const Sr = /* @__PURE__ */ Kl(vr, [["render", _r], ["__scopeId", "data-v-7f84f44
|
|
|
4016
4008
|
return (X = String(ve == null ? void 0 : ve.id)) == null ? void 0 : X.includes("new");
|
|
4017
4009
|
});
|
|
4018
4010
|
if (r == "create" && ((F = U.value) == null ? void 0 : F.find((X) => (X == null ? void 0 : X.prop) === w)))
|
|
4019
|
-
return
|
|
4011
|
+
return _l.error("请勿创建重复参数名称");
|
|
4020
4012
|
h("onClickOperateData", r, {
|
|
4021
4013
|
...m,
|
|
4022
4014
|
label: w,
|
|
@@ -4367,7 +4359,7 @@ const ql = (l, C) => {
|
|
|
4367
4359
|
const c = jl(bl), { activeAsideEditMenuPath: h } = yl(c), M = l, U = C, I = B({}), x = (de, y) => {
|
|
4368
4360
|
de && (I.value[y] = de);
|
|
4369
4361
|
}, R = (de) => {
|
|
4370
|
-
var Ye, he, Te, al, qe, nl, Ze, a, v, g,
|
|
4362
|
+
var Ye, he, Te, al, qe, nl, Ze, a, v, g, S, q, ce, j, i, k, N, G, t, d, A, W;
|
|
4371
4363
|
const y = JSON.parse(JSON.stringify(de));
|
|
4372
4364
|
if (e && typeof e == "object" && ((Ye = Object.keys(y)) == null || Ye.forEach((re) => {
|
|
4373
4365
|
re in e && (e[re] = y[re]);
|
|
@@ -4376,7 +4368,7 @@ const ql = (l, C) => {
|
|
|
4376
4368
|
label: re == null ? void 0 : re.name,
|
|
4377
4369
|
configInfo: re == null ? void 0 : re.configInfo
|
|
4378
4370
|
})), (al = y == null ? void 0 : y.configInfo) != null && al.content) {
|
|
4379
|
-
e.linkSource = Hr((qe = y == null ? void 0 : y.configInfo) == null ? void 0 : qe.content), e.formType = ql((nl = y == null ? void 0 : y.configInfo) == null ? void 0 : nl.content, "SubType") || "", e.view = ql((Ze = y == null ? void 0 : y.configInfo) == null ? void 0 : Ze.content, "EditRead") || "Read", e.maxRow = ql((a = y == null ? void 0 : y.configInfo) == null ? void 0 : a.content, "MaxRow") || "", e.maxColumn = ql((v = y == null ? void 0 : y.configInfo) == null ? void 0 : v.content, "MaxColumn") || "", e.showHide = ql((g = y == null ? void 0 : y.configInfo) == null ? void 0 : g.content, "ShowHide") || "Show", e.textSize = ql((
|
|
4371
|
+
e.linkSource = Hr((qe = y == null ? void 0 : y.configInfo) == null ? void 0 : qe.content), e.formType = ql((nl = y == null ? void 0 : y.configInfo) == null ? void 0 : nl.content, "SubType") || "", e.view = ql((Ze = y == null ? void 0 : y.configInfo) == null ? void 0 : Ze.content, "EditRead") || "Read", e.maxRow = ql((a = y == null ? void 0 : y.configInfo) == null ? void 0 : a.content, "MaxRow") || "", e.maxColumn = ql((v = y == null ? void 0 : y.configInfo) == null ? void 0 : v.content, "MaxColumn") || "", e.showHide = ql((g = y == null ? void 0 : y.configInfo) == null ? void 0 : g.content, "ShowHide") || "Show", e.textSize = ql((S = y == null ? void 0 : y.configInfo) == null ? void 0 : S.content, "TextSize") || "", e.textColor = Dn(ql((q = y == null ? void 0 : y.configInfo) == null ? void 0 : q.content, "TextRGBA")) || "", e.textBackground = Dn(ql((ce = y == null ? void 0 : y.configInfo) == null ? void 0 : ce.content, "TextBackRGBA")) || "";
|
|
4380
4372
|
const re = ql((j = y == null ? void 0 : y.configInfo) == null ? void 0 : j.content, "Type") || "", We = Ct == null ? void 0 : Ct.find((b) => re == null ? void 0 : re.includes(b == null ? void 0 : b.value));
|
|
4381
4373
|
We && (e.quoteType = We == null ? void 0 : We.value);
|
|
4382
4374
|
const rl = Bn.map((b) => b == null ? void 0 : b.value), be = rl == null ? void 0 : rl.reduce((b, Me) => {
|
|
@@ -4620,7 +4612,7 @@ const ql = (l, C) => {
|
|
|
4620
4612
|
}, { immediate: !0 }), vl(() => h.value, (de) => {
|
|
4621
4613
|
de && e.id && me();
|
|
4622
4614
|
}, { immediate: !0 }), (de, y) => {
|
|
4623
|
-
const Ye = le("el-input"), he = le("el-form-item"), Te = le("el-form"), al = le("group-index"), qe = le("el-option"), nl = le("el-select"), Ze = le("el-radio"), a = le("el-radio-group"), v = le("el-icon"), g = le("el-cascader"),
|
|
4615
|
+
const Ye = le("el-input"), he = le("el-form-item"), Te = le("el-form"), al = le("group-index"), qe = le("el-option"), nl = le("el-select"), Ze = le("el-radio"), a = le("el-radio-group"), v = le("el-icon"), g = le("el-cascader"), S = le("el-tag"), q = le("el-button"), ce = le("el-color-picker"), j = le("el-col"), i = le("el-row"), k = le("el-text"), N = le("el-tab-pane"), G = le("el-tabs");
|
|
4624
4616
|
return f(), $(tl, null, [
|
|
4625
4617
|
(f(!0), $(tl, null, ul(l.children, (t) => {
|
|
4626
4618
|
var d, A, W;
|
|
@@ -4746,21 +4738,19 @@ const ql = (l, C) => {
|
|
|
4746
4738
|
footer: o(() => [
|
|
4747
4739
|
V("div", $r, [
|
|
4748
4740
|
s(q, { onClick: ll }, {
|
|
4749
|
-
default: o(() => y[36] || (y[36] = [
|
|
4750
|
-
cl("取消")
|
|
4751
|
-
])),
|
|
4752
|
-
_: 1
|
|
4753
|
-
__: [36]
|
|
4741
|
+
default: o(() => [...y[36] || (y[36] = [
|
|
4742
|
+
cl("取消", -1)
|
|
4743
|
+
])]),
|
|
4744
|
+
_: 1
|
|
4754
4745
|
}),
|
|
4755
4746
|
s(q, {
|
|
4756
4747
|
type: "primary",
|
|
4757
4748
|
onClick: ee
|
|
4758
4749
|
}, {
|
|
4759
|
-
default: o(() => y[37] || (y[37] = [
|
|
4760
|
-
cl("确认")
|
|
4761
|
-
])),
|
|
4762
|
-
_: 1
|
|
4763
|
-
__: [37]
|
|
4750
|
+
default: o(() => [...y[37] || (y[37] = [
|
|
4751
|
+
cl("确认", -1)
|
|
4752
|
+
])]),
|
|
4753
|
+
_: 1
|
|
4764
4754
|
})
|
|
4765
4755
|
])
|
|
4766
4756
|
]),
|
|
@@ -5061,7 +5051,7 @@ const ql = (l, C) => {
|
|
|
5061
5051
|
}, 1024),
|
|
5062
5052
|
s(he, { label: "按钮内容:" }, {
|
|
5063
5053
|
default: o(() => [
|
|
5064
|
-
(f(!0), $(tl, null, ul(t == null ? void 0 : t.data, (re) => (f(), fe(
|
|
5054
|
+
(f(!0), $(tl, null, ul(t == null ? void 0 : t.data, (re) => (f(), fe(S, {
|
|
5065
5055
|
key: re,
|
|
5066
5056
|
"disable-transitions": !1,
|
|
5067
5057
|
closable: "",
|
|
@@ -5088,12 +5078,11 @@ const ql = (l, C) => {
|
|
|
5088
5078
|
size: "small",
|
|
5089
5079
|
onClick: (re) => m(t)
|
|
5090
5080
|
}, {
|
|
5091
|
-
default: o(() => y[32] || (y[32] = [
|
|
5092
|
-
cl(" + ")
|
|
5093
|
-
])),
|
|
5094
|
-
_:
|
|
5095
|
-
|
|
5096
|
-
}, 1032, ["onClick"]))
|
|
5081
|
+
default: o(() => [...y[32] || (y[32] = [
|
|
5082
|
+
cl(" + ", -1)
|
|
5083
|
+
])]),
|
|
5084
|
+
_: 1
|
|
5085
|
+
}, 8, ["onClick"]))
|
|
5097
5086
|
]),
|
|
5098
5087
|
_: 2
|
|
5099
5088
|
}, 1024)
|
|
@@ -5298,13 +5287,12 @@ const ql = (l, C) => {
|
|
|
5298
5287
|
size: "small",
|
|
5299
5288
|
type: "danger"
|
|
5300
5289
|
}, {
|
|
5301
|
-
default: o(() => y[33] || (y[33] = [
|
|
5302
|
-
cl(" 注意事项:"),
|
|
5290
|
+
default: o(() => [...y[33] || (y[33] = [
|
|
5291
|
+
cl(" 注意事项:", -1),
|
|
5303
5292
|
V("br", null, null, -1),
|
|
5304
|
-
cl(" 组合关键字: 用于关键字一致的配置组合,应用于组合容器中 ")
|
|
5305
|
-
])),
|
|
5306
|
-
_: 1
|
|
5307
|
-
__: [33]
|
|
5293
|
+
cl(" 组合关键字: 用于关键字一致的配置组合,应用于组合容器中 ", -1)
|
|
5294
|
+
])]),
|
|
5295
|
+
_: 1
|
|
5308
5296
|
})) : je("", !0)
|
|
5309
5297
|
]),
|
|
5310
5298
|
_: 1
|
|
@@ -5351,18 +5339,16 @@ const ql = (l, C) => {
|
|
|
5351
5339
|
s(i, { class: "cascader-title-wrapper" }, {
|
|
5352
5340
|
default: o(() => [
|
|
5353
5341
|
s(j, { span: 12 }, {
|
|
5354
|
-
default: o(() => y[34] || (y[34] = [
|
|
5355
|
-
cl("已选选项")
|
|
5356
|
-
])),
|
|
5357
|
-
_: 1
|
|
5358
|
-
__: [34]
|
|
5342
|
+
default: o(() => [...y[34] || (y[34] = [
|
|
5343
|
+
cl("已选选项", -1)
|
|
5344
|
+
])]),
|
|
5345
|
+
_: 1
|
|
5359
5346
|
}),
|
|
5360
5347
|
s(j, { span: 12 }, {
|
|
5361
|
-
default: o(() => y[35] || (y[35] = [
|
|
5362
|
-
cl("同步方式")
|
|
5363
|
-
])),
|
|
5364
|
-
_: 1
|
|
5365
|
-
__: [35]
|
|
5348
|
+
default: o(() => [...y[35] || (y[35] = [
|
|
5349
|
+
cl("同步方式", -1)
|
|
5350
|
+
])]),
|
|
5351
|
+
_: 1
|
|
5366
5352
|
})
|
|
5367
5353
|
]),
|
|
5368
5354
|
_: 1
|
|
@@ -5403,8 +5389,8 @@ const ql = (l, C) => {
|
|
|
5403
5389
|
_: 2
|
|
5404
5390
|
}, 1032, ["value"]))), 128))
|
|
5405
5391
|
]),
|
|
5406
|
-
_:
|
|
5407
|
-
},
|
|
5392
|
+
_: 1
|
|
5393
|
+
}, 8, ["model-value", "onUpdate:modelValue"])
|
|
5408
5394
|
]),
|
|
5409
5395
|
_: 2
|
|
5410
5396
|
}, 1024)
|
|
@@ -5793,20 +5779,20 @@ const cs = (l, C = 0) => {
|
|
|
5793
5779
|
if (L.value = !1, t) {
|
|
5794
5780
|
if ((d = Object.keys(t)) == null || d.forEach((W) => {
|
|
5795
5781
|
W in e && (e[W] = t[W]);
|
|
5796
|
-
}), !(e != null && e.id)) return
|
|
5782
|
+
}), !(e != null && e.id)) return _l.error("获取节点信息出错了");
|
|
5797
5783
|
const A = bo(g.value, e == null ? void 0 : e.id, "groupId");
|
|
5798
5784
|
e.pid = (A == null ? void 0 : A.groupId) || (e == null ? void 0 : e.menuId) || "", ee();
|
|
5799
5785
|
}
|
|
5800
5786
|
}, L = B(!1), ee = async () => {
|
|
5801
|
-
var t, d, A, W, re, We, rl, be, ne, b, Me, De, ue, ae, H, Fe, Xe, Ne, sl, Je,
|
|
5787
|
+
var t, d, A, W, re, We, rl, be, ne, b, Me, De, ue, ae, H, Fe, Xe, Ne, sl, Je, Se, _, oe, ke, Ae, He, K, te, xe;
|
|
5802
5788
|
T.value = !0;
|
|
5803
5789
|
try {
|
|
5804
|
-
if (!U.value) return
|
|
5790
|
+
if (!U.value) return _l.warning("请先选择所属菜单");
|
|
5805
5791
|
if (!(e != null && e.id)) return;
|
|
5806
5792
|
let Ve = [], Z = [];
|
|
5807
5793
|
if (Array.isArray(e == null ? void 0 : e.quotes)) {
|
|
5808
|
-
const Ce = (d = (t = e == null ? void 0 : e.quoteWays) == null ? void 0 : t.filter((J) => (J == null ? void 0 : J.value) === "fatherSync")) == null ? void 0 : d.map((J) => J == null ? void 0 : J.key), pe = (W = (A = e == null ? void 0 : e.quoteWays) == null ? void 0 : A.filter((J) => (J == null ? void 0 : J.value) === "sonSync")) == null ? void 0 : W.map((J) => J == null ? void 0 : J.key),
|
|
5809
|
-
Ve = (be = (rl = e == null ? void 0 : e.quotes) == null ? void 0 : rl.filter((J) => (Ce == null ? void 0 : Ce.includes(J == null ? void 0 : J.join("/"))) || (
|
|
5794
|
+
const Ce = (d = (t = e == null ? void 0 : e.quoteWays) == null ? void 0 : t.filter((J) => (J == null ? void 0 : J.value) === "fatherSync")) == null ? void 0 : d.map((J) => J == null ? void 0 : J.key), pe = (W = (A = e == null ? void 0 : e.quoteWays) == null ? void 0 : A.filter((J) => (J == null ? void 0 : J.value) === "sonSync")) == null ? void 0 : W.map((J) => J == null ? void 0 : J.key), _e = (We = (re = e == null ? void 0 : e.quoteWays) == null ? void 0 : re.filter((J) => (J == null ? void 0 : J.value) === "bothSync")) == null ? void 0 : We.map((J) => J == null ? void 0 : J.key);
|
|
5795
|
+
Ve = (be = (rl = e == null ? void 0 : e.quotes) == null ? void 0 : rl.filter((J) => (Ce == null ? void 0 : Ce.includes(J == null ? void 0 : J.join("/"))) || (_e == null ? void 0 : _e.includes(J == null ? void 0 : J.join("/"))))) == null ? void 0 : be.map((J) => {
|
|
5810
5796
|
var we;
|
|
5811
5797
|
return {
|
|
5812
5798
|
menus: J == null ? void 0 : J[0],
|
|
@@ -5814,7 +5800,7 @@ const cs = (l, C = 0) => {
|
|
|
5814
5800
|
groups: (we = J == null ? void 0 : J[1]) == null ? void 0 : we.split("/")
|
|
5815
5801
|
//嵌套特性使用,分割,传值数组
|
|
5816
5802
|
};
|
|
5817
|
-
}), Z = (b = (ne = e == null ? void 0 : e.quotes) == null ? void 0 : ne.filter((J) => (pe == null ? void 0 : pe.includes(J == null ? void 0 : J.join("/"))) || (
|
|
5803
|
+
}), Z = (b = (ne = e == null ? void 0 : e.quotes) == null ? void 0 : ne.filter((J) => (pe == null ? void 0 : pe.includes(J == null ? void 0 : J.join("/"))) || (_e == null ? void 0 : _e.includes(J == null ? void 0 : J.join("/"))))) == null ? void 0 : b.map((J) => {
|
|
5818
5804
|
var we;
|
|
5819
5805
|
return {
|
|
5820
5806
|
menus: J == null ? void 0 : J[0],
|
|
@@ -5837,7 +5823,7 @@ const cs = (l, C = 0) => {
|
|
|
5837
5823
|
filter: {
|
|
5838
5824
|
fatherSyncs: Ve,
|
|
5839
5825
|
sonSyncs: Z,
|
|
5840
|
-
quotes: [...Ve, ...Z].filter((Ce, pe,
|
|
5826
|
+
quotes: [...Ve, ...Z].filter((Ce, pe, _e) => pe === _e.findIndex(
|
|
5841
5827
|
(J) => J.menus === Ce.menus && JSON.stringify(J.groups) === JSON.stringify(Ce.groups)
|
|
5842
5828
|
))
|
|
5843
5829
|
},
|
|
@@ -5850,7 +5836,7 @@ const cs = (l, C = 0) => {
|
|
|
5850
5836
|
const Ce = Ql(a.value, "id", e == null ? void 0 : e.id);
|
|
5851
5837
|
if ((ae = Ce == null ? void 0 : Ce.configInfo) != null && ae.id) {
|
|
5852
5838
|
let pe = "";
|
|
5853
|
-
const
|
|
5839
|
+
const _e = [
|
|
5854
5840
|
//按照框架需求,根据fatherSyncs和sonSyncs是否有值,往引用里面新增 @QuoteSonSync=No,@QuoteFatherSync=Yes,便于模型导出
|
|
5855
5841
|
// {
|
|
5856
5842
|
// key: 'QuoteFatherSync',
|
|
@@ -5943,17 +5929,17 @@ const cs = (l, C = 0) => {
|
|
|
5943
5929
|
//"Tab"...
|
|
5944
5930
|
value: e == null ? void 0 : e.combineKey
|
|
5945
5931
|
}
|
|
5946
|
-
)), (Je = e == null ? void 0 : e.buttonData) != null && Je.length && ((
|
|
5932
|
+
)), (Je = e == null ? void 0 : e.buttonData) != null && Je.length && ((Se = e == null ? void 0 : e.buttonData) == null || Se.forEach((Pe) => {
|
|
5947
5933
|
var ge;
|
|
5948
5934
|
Pe != null && Pe.key && (J == null || J.push({
|
|
5949
5935
|
key: "Button",
|
|
5950
5936
|
value: `((${Pe == null ? void 0 : Pe.value}),${(ge = Pe == null ? void 0 : Pe.key) == null ? void 0 : ge.join(",")})`,
|
|
5951
5937
|
allowRepeat: !0
|
|
5952
5938
|
}));
|
|
5953
|
-
})),
|
|
5954
|
-
let we =
|
|
5939
|
+
})), _e.push(...J);
|
|
5940
|
+
let we = _e == null ? void 0 : _e.reduce((Pe, ge) => ge != null && ge.value ? Lt(Pe, ge == null ? void 0 : ge.key, ge == null ? void 0 : ge.value, ge == null ? void 0 : ge.allowRepeat) : Pe, pe);
|
|
5955
5941
|
if (e != null && e.filterProp) {
|
|
5956
|
-
const Pe = (
|
|
5942
|
+
const Pe = (_ = e == null ? void 0 : e.dataSource) == null ? void 0 : _.split("/"), ge = "$" + ((oe = Pe == null ? void 0 : Pe.slice(0, -1)) == null ? void 0 : oe.join("$")), $e = Pe == null ? void 0 : Pe[(Pe == null ? void 0 : Pe.length) - 1], el = (ke = e == null ? void 0 : e.applyEle) == null ? void 0 : ke.split("/"), Il = "$" + ((Ae = el == null ? void 0 : el.slice(0, -1)) == null ? void 0 : Ae.join("$")), Ml = el == null ? void 0 : el[(el == null ? void 0 : el.length) - 1], pl = `(*${e == null ? void 0 : e.name}:${e == null ? void 0 : e.filterProp}=${ge}:{${$e}}${Il}:${Ml})`;
|
|
5957
5943
|
we = `(${(we == null ? void 0 : we.slice(1, -1)) + ",If" + pl})`;
|
|
5958
5944
|
}
|
|
5959
5945
|
if (console.log("resConfigs", we), e != null && e.linkSource && (console.log("链接自定义", we, e == null ? void 0 : e.linkSource), we = (e == null ? void 0 : e.linkSource) + we), z.push(at({
|
|
@@ -6003,7 +5989,7 @@ const cs = (l, C = 0) => {
|
|
|
6003
5989
|
}) && (a.value = (xe = a.value) == null ? void 0 : xe.map((Ce) => (Ce == null ? void 0 : Ce.id) === (e == null ? void 0 : e.id) ? {
|
|
6004
5990
|
...Ce,
|
|
6005
5991
|
name: e == null ? void 0 : e.name
|
|
6006
|
-
} : Ce), L.value = !0,
|
|
5992
|
+
} : Ce), L.value = !0, _l.success("修改成功"));
|
|
6007
5993
|
} catch (Ve) {
|
|
6008
5994
|
throw new Error(Ve);
|
|
6009
5995
|
} finally {
|
|
@@ -6042,7 +6028,7 @@ const cs = (l, C = 0) => {
|
|
|
6042
6028
|
var t, d, A, W, re, We, rl, be, ne, b;
|
|
6043
6029
|
L.value = !1, T.value = !0;
|
|
6044
6030
|
try {
|
|
6045
|
-
if (!r.groupId || !r.groupType) return
|
|
6031
|
+
if (!r.groupId || !r.groupType) return _l.error("特性信息获取出错了");
|
|
6046
6032
|
const Me = Ql(a.value, "id", r.groupId), De = Al(Me), ue = {
|
|
6047
6033
|
groups: r != null && r.related ? [(t = r == null ? void 0 : r.related) == null ? void 0 : t[1]] : [],
|
|
6048
6034
|
menus: r != null && r.related ? (A = (d = r == null ? void 0 : r.related) == null ? void 0 : d[0]) == null ? void 0 : A.split("/") : [],
|
|
@@ -6055,9 +6041,9 @@ const cs = (l, C = 0) => {
|
|
|
6055
6041
|
if (r != null && r.parentProp) {
|
|
6056
6042
|
const sl = Ql(De == null ? void 0 : De.data, "id", r == null ? void 0 : r.parentProp);
|
|
6057
6043
|
if (sl && ((re = sl == null ? void 0 : sl.children) != null && re.length)) {
|
|
6058
|
-
const Je = (We = sl.children) == null ? void 0 : We.filter((
|
|
6059
|
-
var
|
|
6060
|
-
return !((
|
|
6044
|
+
const Je = (We = sl.children) == null ? void 0 : We.filter((Se) => {
|
|
6045
|
+
var _;
|
|
6046
|
+
return !((_ = String(Se == null ? void 0 : Se.id)) != null && _.includes("new"));
|
|
6061
6047
|
});
|
|
6062
6048
|
sl.children = [...Je, {
|
|
6063
6049
|
prop: r.parentProp ? r.parentProp + "." + ae : ae,
|
|
@@ -6083,8 +6069,8 @@ const cs = (l, C = 0) => {
|
|
|
6083
6069
|
H = De == null ? void 0 : De.data;
|
|
6084
6070
|
} else {
|
|
6085
6071
|
const sl = (rl = De == null ? void 0 : De.data) == null ? void 0 : rl.filter((Je) => {
|
|
6086
|
-
var
|
|
6087
|
-
return !((
|
|
6072
|
+
var Se;
|
|
6073
|
+
return !((Se = String(Je == null ? void 0 : Je.id)) != null && Se.includes("new"));
|
|
6088
6074
|
});
|
|
6089
6075
|
H = [...sl == null ? void 0 : sl.map((Je) => ({
|
|
6090
6076
|
...Je,
|
|
@@ -6101,14 +6087,14 @@ const cs = (l, C = 0) => {
|
|
|
6101
6087
|
...ue
|
|
6102
6088
|
}];
|
|
6103
6089
|
}
|
|
6104
|
-
const Fe = [...De == null ? void 0 : De.hiddenColumns, ...
|
|
6090
|
+
const Fe = [...De == null ? void 0 : De.hiddenColumns, ...Sn(H, Rn)], Xe = {
|
|
6105
6091
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
6106
6092
|
objectId: r.groupId,
|
|
6107
6093
|
key: r == null ? void 0 : r.groupType,
|
|
6108
6094
|
tableColumns: m != null && m.hasMultiHeader ? [Fe] : Fe,
|
|
6109
6095
|
quoteFilter: ""
|
|
6110
6096
|
}, Ne = await Tt("save", Xe);
|
|
6111
|
-
((be = Ne == null ? void 0 : Ne.data) == null ? void 0 : be.code) === 200 && (Me.data = De.data, L.value = !0,
|
|
6097
|
+
((be = Ne == null ? void 0 : Ne.data) == null ? void 0 : be.code) === 200 && (Me.data = De.data, L.value = !0, _l.success("新增成功"));
|
|
6112
6098
|
} else {
|
|
6113
6099
|
if (!q.value) return;
|
|
6114
6100
|
const ae = Ql(De == null ? void 0 : De.data, "id", r == null ? void 0 : r.id);
|
|
@@ -6116,14 +6102,14 @@ const cs = (l, C = 0) => {
|
|
|
6116
6102
|
(ne = Object.keys(r)) == null || ne.forEach((Ne) => {
|
|
6117
6103
|
Ne in ae && (ae[Ne] = r[Ne], ae.formType = r == null ? void 0 : r.compType, ae.value = r == null ? void 0 : r.defaultValue, ae.prop = r == null ? void 0 : r.id, ae.disabled = (r == null ? void 0 : r.view) === "Read", ae.mainKey = r == null ? void 0 : r.mainKey, ae.options = r != null && r.defaultValue ? r == null ? void 0 : r.options : [], ae.groups = ue == null ? void 0 : ue.groups, ae.menus = ue == null ? void 0 : ue.menus, ae.words = ue == null ? void 0 : ue.words);
|
|
6118
6104
|
});
|
|
6119
|
-
const H = [...De == null ? void 0 : De.hiddenColumns, ...
|
|
6105
|
+
const H = [...De == null ? void 0 : De.hiddenColumns, ...Sn(De == null ? void 0 : De.data, Rn)], Fe = {
|
|
6120
6106
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
6121
6107
|
objectId: r.groupId,
|
|
6122
6108
|
key: r == null ? void 0 : r.groupType,
|
|
6123
6109
|
tableColumns: m != null && m.hasMultiHeader ? [H] : H,
|
|
6124
6110
|
quoteFilter: ""
|
|
6125
6111
|
}, Xe = await Tt("save", Fe);
|
|
6126
|
-
((b = Xe == null ? void 0 : Xe.data) == null ? void 0 : b.code) === 200 && (Me.data = De == null ? void 0 : De.data, L.value = !0,
|
|
6112
|
+
((b = Xe == null ? void 0 : Xe.data) == null ? void 0 : b.code) === 200 && (Me.data = De == null ? void 0 : De.data, L.value = !0, _l.success("编辑成功"));
|
|
6127
6113
|
}
|
|
6128
6114
|
} catch (Me) {
|
|
6129
6115
|
throw new Error(Me);
|
|
@@ -6164,12 +6150,12 @@ const cs = (l, C = 0) => {
|
|
|
6164
6150
|
if (ll.value = (re = (W = H == null ? void 0 : H.data) == null ? void 0 : W.result) == null ? void 0 : re.includes("错误"), ((We = H == null ? void 0 : H.data) == null ? void 0 : We.code) === 200 && !((be = (rl = H == null ? void 0 : H.data) == null ? void 0 : rl.result) != null && be.includes("错误"))) {
|
|
6165
6151
|
const Fe = Al((ne = H == null ? void 0 : H.data) == null ? void 0 : ne.result);
|
|
6166
6152
|
Me = (b = Fe == null ? void 0 : Fe.flatMap((Ne) => Ne)) == null ? void 0 : b.map((Ne) => {
|
|
6167
|
-
var
|
|
6168
|
-
const sl = Array.isArray((oe = (
|
|
6153
|
+
var _, oe, ke, Ae, He, K, te, xe, Ve;
|
|
6154
|
+
const sl = Array.isArray((oe = (_ = Ne == null ? void 0 : Ne.结构) == null ? void 0 : _.contents) == null ? void 0 : oe[0]), Je = (Ae = (ke = Ne == null ? void 0 : Ne.source_table) == null ? void 0 : ke.split("_")) == null ? void 0 : Ae[1], Se = Ql((He = De == null ? void 0 : De.data) == null ? void 0 : He.result, "object_id", Je);
|
|
6169
6155
|
return {
|
|
6170
|
-
name:
|
|
6171
|
-
object_name:
|
|
6172
|
-
property_name:
|
|
6156
|
+
name: Se == null ? void 0 : Se.name,
|
|
6157
|
+
object_name: Se == null ? void 0 : Se.object_name,
|
|
6158
|
+
property_name: Se == null ? void 0 : Se.property_name,
|
|
6173
6159
|
children: (Ve = sl ? (te = (K = Ne == null ? void 0 : Ne.结构) == null ? void 0 : K.contents) == null ? void 0 : te.flatMap((Z) => Z) : (xe = Ne == null ? void 0 : Ne.结构) == null ? void 0 : xe.contents) == null ? void 0 : Ve.filter((Z) => !(Dt != null && Dt.includes(Z == null ? void 0 : Z.prop)))
|
|
6174
6160
|
};
|
|
6175
6161
|
}), me.value = Pn(Me);
|
|
@@ -6234,7 +6220,7 @@ const cs = (l, C = 0) => {
|
|
|
6234
6220
|
tableColumns: Me == null ? void 0 : Me.data,
|
|
6235
6221
|
quoteFilter: ""
|
|
6236
6222
|
}, ae = await Tt("save", ue);
|
|
6237
|
-
((Xe = ae == null ? void 0 : ae.data) == null ? void 0 : Xe.code) === 200 && (b.data = Me.data, L.value = !0,
|
|
6223
|
+
((Xe = ae == null ? void 0 : ae.data) == null ? void 0 : Xe.code) === 200 && (b.data = Me.data, L.value = !0, _l.success("删除成功"));
|
|
6238
6224
|
});
|
|
6239
6225
|
break;
|
|
6240
6226
|
}
|
|
@@ -6266,9 +6252,9 @@ const cs = (l, C = 0) => {
|
|
|
6266
6252
|
]
|
|
6267
6253
|
}, qe = B(!1), nl = () => {
|
|
6268
6254
|
var t;
|
|
6269
|
-
(t = Ye.value) == null || t.validate((d) => {
|
|
6255
|
+
(t = Ye.value) == null || t.validate(((d) => {
|
|
6270
6256
|
qe.value = d;
|
|
6271
|
-
});
|
|
6257
|
+
}));
|
|
6272
6258
|
}, Ze = () => {
|
|
6273
6259
|
y.show = !1, he();
|
|
6274
6260
|
}, a = B([]), v = kl(() => {
|
|
@@ -6278,7 +6264,7 @@ const cs = (l, C = 0) => {
|
|
|
6278
6264
|
// data: item?.data?.filter((child: any) => !hiddenProps?.includes(child?.prop || child?.label))
|
|
6279
6265
|
data: d == null ? void 0 : d.data
|
|
6280
6266
|
}));
|
|
6281
|
-
}), g = B([]),
|
|
6267
|
+
}), g = B([]), S = (t) => {
|
|
6282
6268
|
g.value = t;
|
|
6283
6269
|
}, q = B(null), ce = B(""), j = (t) => {
|
|
6284
6270
|
var A, W, re, We, rl, be;
|
|
@@ -6319,7 +6305,7 @@ const cs = (l, C = 0) => {
|
|
|
6319
6305
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
6320
6306
|
objectId: d == null ? void 0 : d.id
|
|
6321
6307
|
});
|
|
6322
|
-
((W = A == null ? void 0 : A.data) == null ? void 0 : W.code) === 200 && (a.value = (re = a.value) == null ? void 0 : re.filter((We) => (We == null ? void 0 : We.id) !== (d == null ? void 0 : d.id)),
|
|
6308
|
+
((W = A == null ? void 0 : A.data) == null ? void 0 : W.code) === 200 && (a.value = (re = a.value) == null ? void 0 : re.filter((We) => (We == null ? void 0 : We.id) !== (d == null ? void 0 : d.id)), _l.success("删除成功"), L.value = !0);
|
|
6323
6309
|
});
|
|
6324
6310
|
} catch (d) {
|
|
6325
6311
|
throw new Error(d);
|
|
@@ -6398,7 +6384,7 @@ const cs = (l, C = 0) => {
|
|
|
6398
6384
|
ref_key: "hMenuInputRef",
|
|
6399
6385
|
ref: wl,
|
|
6400
6386
|
modelValue: Te.title,
|
|
6401
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
6387
|
+
"onUpdate:modelValue": d[1] || (d[1] = (Se) => Te.title = Se),
|
|
6402
6388
|
placeholder: "请输入",
|
|
6403
6389
|
style: { "min-width": "200px" },
|
|
6404
6390
|
onChange: nl
|
|
@@ -6406,25 +6392,25 @@ const cs = (l, C = 0) => {
|
|
|
6406
6392
|
prepend: o(() => [
|
|
6407
6393
|
s(Zt, {
|
|
6408
6394
|
modelValue: Te.icon,
|
|
6409
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
6395
|
+
"onUpdate:modelValue": d[0] || (d[0] = (Se) => Te.icon = Se),
|
|
6410
6396
|
placeholder: "菜单图标",
|
|
6411
6397
|
style: { width: "200px" },
|
|
6412
6398
|
type: "all"
|
|
6413
6399
|
}, null, 8, ["modelValue"])
|
|
6414
6400
|
]),
|
|
6415
6401
|
append: o(() => {
|
|
6416
|
-
var
|
|
6402
|
+
var Se, _;
|
|
6417
6403
|
return [
|
|
6418
6404
|
V("span", hc, [
|
|
6419
6405
|
s(Tl, {
|
|
6420
|
-
style: Pl({ color: (
|
|
6406
|
+
style: Pl({ color: (Se = Te.title) != null && Se.length ? "var(--el-color-success)" : "var(--el-color-info)" }),
|
|
6421
6407
|
name: "softConfirm",
|
|
6422
6408
|
onClick: Ul(nl, ["stop"])
|
|
6423
6409
|
}, null, 8, ["style"])
|
|
6424
6410
|
]),
|
|
6425
6411
|
V("span", gc, [
|
|
6426
6412
|
s(Tl, {
|
|
6427
|
-
style: Pl({ color: (
|
|
6413
|
+
style: Pl({ color: (_ = Te.title) != null && _.length ? "var(--el-color-warning)" : "var(--el-color-info)" }),
|
|
6428
6414
|
name: "softCancel",
|
|
6429
6415
|
onClick: Ul(Ze, ["stop"])
|
|
6430
6416
|
}, null, 8, ["style"])
|
|
@@ -6468,11 +6454,11 @@ const cs = (l, C = 0) => {
|
|
|
6468
6454
|
width: "230px"
|
|
6469
6455
|
}, {
|
|
6470
6456
|
default: o(() => [
|
|
6471
|
-
s(
|
|
6457
|
+
s(_r, {
|
|
6472
6458
|
isRefreshGroups: L.value,
|
|
6473
6459
|
mode: "vertical",
|
|
6474
6460
|
onGetCompForm: ie,
|
|
6475
|
-
onGetGroupOptions:
|
|
6461
|
+
onGetGroupOptions: S,
|
|
6476
6462
|
onGetIsRefresh: N,
|
|
6477
6463
|
onGetPageStructure: j
|
|
6478
6464
|
}, null, 8, ["isRefreshGroups"])
|
|
@@ -6484,11 +6470,11 @@ const cs = (l, C = 0) => {
|
|
|
6484
6470
|
V("div", Cc, [
|
|
6485
6471
|
s(b, { "separator-icon": n(Nn) }, {
|
|
6486
6472
|
default: o(() => {
|
|
6487
|
-
var
|
|
6473
|
+
var Se;
|
|
6488
6474
|
return [
|
|
6489
|
-
(f(!0), $(tl, null, ul((
|
|
6475
|
+
(f(!0), $(tl, null, ul((Se = n(U)) == null ? void 0 : Se.split("/"), (_) => (f(), fe(ne, { key: _ }, {
|
|
6490
6476
|
default: o(() => [
|
|
6491
|
-
cl(ol(
|
|
6477
|
+
cl(ol(_), 1)
|
|
6492
6478
|
]),
|
|
6493
6479
|
_: 2
|
|
6494
6480
|
}, 1024))), 128))
|
|
@@ -6535,21 +6521,19 @@ const cs = (l, C = 0) => {
|
|
|
6535
6521
|
footer: o(() => [
|
|
6536
6522
|
V("div", mc, [
|
|
6537
6523
|
s(sl, { onClick: O }, {
|
|
6538
|
-
default: o(() => d[13] || (d[13] = [
|
|
6539
|
-
cl("取消")
|
|
6540
|
-
])),
|
|
6541
|
-
_: 1
|
|
6542
|
-
__: [13]
|
|
6524
|
+
default: o(() => [...d[13] || (d[13] = [
|
|
6525
|
+
cl("取消", -1)
|
|
6526
|
+
])]),
|
|
6527
|
+
_: 1
|
|
6543
6528
|
}),
|
|
6544
6529
|
s(sl, {
|
|
6545
6530
|
type: "primary",
|
|
6546
6531
|
onClick: ve
|
|
6547
6532
|
}, {
|
|
6548
|
-
default: o(() => d[14] || (d[14] = [
|
|
6549
|
-
cl("确认")
|
|
6550
|
-
])),
|
|
6551
|
-
_: 1
|
|
6552
|
-
__: [14]
|
|
6533
|
+
default: o(() => [...d[14] || (d[14] = [
|
|
6534
|
+
cl("确认", -1)
|
|
6535
|
+
])]),
|
|
6536
|
+
_: 1
|
|
6553
6537
|
})
|
|
6554
6538
|
])
|
|
6555
6539
|
]),
|
|
@@ -6570,7 +6554,7 @@ const cs = (l, C = 0) => {
|
|
|
6570
6554
|
default: o(() => [
|
|
6571
6555
|
s(ae, {
|
|
6572
6556
|
modelValue: r.parentProp,
|
|
6573
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
6557
|
+
"onUpdate:modelValue": d[2] || (d[2] = (Se) => r.parentProp = Se),
|
|
6574
6558
|
options: Be.value,
|
|
6575
6559
|
props: { checkStrictly: !0, emitPath: !1 },
|
|
6576
6560
|
clearable: "",
|
|
@@ -6586,7 +6570,7 @@ const cs = (l, C = 0) => {
|
|
|
6586
6570
|
default: o(() => [
|
|
6587
6571
|
s(W, {
|
|
6588
6572
|
modelValue: r.label,
|
|
6589
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
6573
|
+
"onUpdate:modelValue": d[3] || (d[3] = (Se) => r.label = Se),
|
|
6590
6574
|
clearable: "",
|
|
6591
6575
|
placeholder: "请输入"
|
|
6592
6576
|
}, null, 8, ["modelValue"])
|
|
@@ -6600,7 +6584,7 @@ const cs = (l, C = 0) => {
|
|
|
6600
6584
|
default: o(() => [
|
|
6601
6585
|
s(W, {
|
|
6602
6586
|
modelValue: r.prop,
|
|
6603
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
6587
|
+
"onUpdate:modelValue": d[4] || (d[4] = (Se) => r.prop = Se),
|
|
6604
6588
|
disabled: m.type === "update",
|
|
6605
6589
|
placeholder: "请输入"
|
|
6606
6590
|
}, null, 8, ["modelValue", "disabled"])
|
|
@@ -6614,22 +6598,20 @@ const cs = (l, C = 0) => {
|
|
|
6614
6598
|
default: o(() => [
|
|
6615
6599
|
s(Fe, {
|
|
6616
6600
|
modelValue: r.mainKey,
|
|
6617
|
-
"onUpdate:modelValue": d[5] || (d[5] = (
|
|
6601
|
+
"onUpdate:modelValue": d[5] || (d[5] = (Se) => r.mainKey = Se)
|
|
6618
6602
|
}, {
|
|
6619
6603
|
default: o(() => [
|
|
6620
6604
|
s(H, { value: !0 }, {
|
|
6621
|
-
default: o(() => d[11] || (d[11] = [
|
|
6622
|
-
cl("是")
|
|
6623
|
-
])),
|
|
6624
|
-
_: 1
|
|
6625
|
-
__: [11]
|
|
6605
|
+
default: o(() => [...d[11] || (d[11] = [
|
|
6606
|
+
cl("是", -1)
|
|
6607
|
+
])]),
|
|
6608
|
+
_: 1
|
|
6626
6609
|
}),
|
|
6627
6610
|
s(H, { value: !1 }, {
|
|
6628
|
-
default: o(() => d[12] || (d[12] = [
|
|
6629
|
-
cl("否")
|
|
6630
|
-
])),
|
|
6631
|
-
_: 1
|
|
6632
|
-
__: [12]
|
|
6611
|
+
default: o(() => [...d[12] || (d[12] = [
|
|
6612
|
+
cl("否", -1)
|
|
6613
|
+
])]),
|
|
6614
|
+
_: 1
|
|
6633
6615
|
})
|
|
6634
6616
|
]),
|
|
6635
6617
|
_: 1
|
|
@@ -6644,14 +6626,14 @@ const cs = (l, C = 0) => {
|
|
|
6644
6626
|
default: o(() => [
|
|
6645
6627
|
s(Ne, {
|
|
6646
6628
|
modelValue: r.propType,
|
|
6647
|
-
"onUpdate:modelValue": d[6] || (d[6] = (
|
|
6629
|
+
"onUpdate:modelValue": d[6] || (d[6] = (Se) => r.propType = Se),
|
|
6648
6630
|
clearable: ""
|
|
6649
6631
|
}, {
|
|
6650
6632
|
default: o(() => [
|
|
6651
|
-
(f(!0), $(tl, null, ul(n(oc), (
|
|
6652
|
-
key:
|
|
6653
|
-
label:
|
|
6654
|
-
value:
|
|
6633
|
+
(f(!0), $(tl, null, ul(n(oc), (Se) => (f(), fe(Xe, {
|
|
6634
|
+
key: Se.value,
|
|
6635
|
+
label: Se.label,
|
|
6636
|
+
value: Se.value
|
|
6655
6637
|
}, null, 8, ["label", "value"]))), 128))
|
|
6656
6638
|
]),
|
|
6657
6639
|
_: 1
|
|
@@ -6666,14 +6648,14 @@ const cs = (l, C = 0) => {
|
|
|
6666
6648
|
default: o(() => [
|
|
6667
6649
|
s(Ne, {
|
|
6668
6650
|
modelValue: r.compType,
|
|
6669
|
-
"onUpdate:modelValue": d[7] || (d[7] = (
|
|
6651
|
+
"onUpdate:modelValue": d[7] || (d[7] = (Se) => r.compType = Se),
|
|
6670
6652
|
clearable: ""
|
|
6671
6653
|
}, {
|
|
6672
6654
|
default: o(() => [
|
|
6673
|
-
(f(!0), $(tl, null, ul(n(ic), (
|
|
6674
|
-
key:
|
|
6675
|
-
label:
|
|
6676
|
-
value:
|
|
6655
|
+
(f(!0), $(tl, null, ul(n(ic), (Se) => (f(), fe(Xe, {
|
|
6656
|
+
key: Se.value,
|
|
6657
|
+
label: Se.label,
|
|
6658
|
+
value: Se.value
|
|
6677
6659
|
}, null, 8, ["label", "value"]))), 128))
|
|
6678
6660
|
]),
|
|
6679
6661
|
_: 1
|
|
@@ -6688,7 +6670,7 @@ const cs = (l, C = 0) => {
|
|
|
6688
6670
|
default: o(() => [
|
|
6689
6671
|
s(W, {
|
|
6690
6672
|
modelValue: r.defaultValue,
|
|
6691
|
-
"onUpdate:modelValue": d[8] || (d[8] = (
|
|
6673
|
+
"onUpdate:modelValue": d[8] || (d[8] = (Se) => r.defaultValue = Se),
|
|
6692
6674
|
placeholder: r.compType === "Select" ? "请输入选项,以/分割" : "请输入",
|
|
6693
6675
|
clearable: "",
|
|
6694
6676
|
onChange: fl
|
|
@@ -6703,15 +6685,15 @@ const cs = (l, C = 0) => {
|
|
|
6703
6685
|
default: o(() => [
|
|
6704
6686
|
s(Fe, {
|
|
6705
6687
|
modelValue: r.view,
|
|
6706
|
-
"onUpdate:modelValue": d[9] || (d[9] = (
|
|
6688
|
+
"onUpdate:modelValue": d[9] || (d[9] = (Se) => r.view = Se)
|
|
6707
6689
|
}, {
|
|
6708
6690
|
default: o(() => [
|
|
6709
|
-
(f(!0), $(tl, null, ul(n(rs), (
|
|
6710
|
-
key:
|
|
6711
|
-
value:
|
|
6691
|
+
(f(!0), $(tl, null, ul(n(rs), (Se) => (f(), fe(H, {
|
|
6692
|
+
key: Se == null ? void 0 : Se.value,
|
|
6693
|
+
value: Se == null ? void 0 : Se.value
|
|
6712
6694
|
}, {
|
|
6713
6695
|
default: o(() => [
|
|
6714
|
-
cl(ol(
|
|
6696
|
+
cl(ol(Se == null ? void 0 : Se.label), 1)
|
|
6715
6697
|
]),
|
|
6716
6698
|
_: 2
|
|
6717
6699
|
}, 1032, ["value"]))), 128))
|
|
@@ -6729,7 +6711,7 @@ const cs = (l, C = 0) => {
|
|
|
6729
6711
|
default: o(() => [
|
|
6730
6712
|
s(ae, {
|
|
6731
6713
|
modelValue: r.related,
|
|
6732
|
-
"onUpdate:modelValue": d[10] || (d[10] = (
|
|
6714
|
+
"onUpdate:modelValue": d[10] || (d[10] = (Se) => r.related = Se),
|
|
6733
6715
|
options: me.value,
|
|
6734
6716
|
props: {
|
|
6735
6717
|
multiple: !1,
|
|
@@ -6804,16 +6786,16 @@ function ds(l = "menu") {
|
|
|
6804
6786
|
operateIcon: "FixedMenu"
|
|
6805
6787
|
}
|
|
6806
6788
|
]), U = jl(), I = la(bl), x = Xl(bl), { loginUserInfo: R } = yl(x), D = B(0), ie = xa(), e = B(), { asideMenus: E, menuTriggerType: T, platform: P, jumpMenuInform: u } = yl(U), { fixMenuStatus: se } = yl(I), { isSuperAdmin: L } = es(), ee = kl(() => h == null ? void 0 : h.mode), w = (a) => a == null ? void 0 : a.map((g) => {
|
|
6807
|
-
var
|
|
6808
|
-
return !(g != null && g.children) || ((
|
|
6789
|
+
var S, q;
|
|
6790
|
+
return !(g != null && g.children) || ((S = g == null ? void 0 : g.children) == null ? void 0 : S.length) === 0 ? g.config = M.value : g != null && g.children && ((q = g == null ? void 0 : g.children) == null ? void 0 : q.length) > 0 && (g.children = w(g.children)), g;
|
|
6809
6791
|
}), m = kl(() => {
|
|
6810
6792
|
let a = [...E.value];
|
|
6811
6793
|
if ((a == null ? void 0 : a.length) === 0)
|
|
6812
6794
|
return ie.push("/"), [];
|
|
6813
6795
|
const v = ve(a, F.value);
|
|
6814
6796
|
return v.isFlag || (a = v == null ? void 0 : v.data), a = a == null ? void 0 : a.map((g) => {
|
|
6815
|
-
var
|
|
6816
|
-
return !(g != null && g.children) || ((
|
|
6797
|
+
var S, q;
|
|
6798
|
+
return !(g != null && g.children) || ((S = g == null ? void 0 : g.children) == null ? void 0 : S.length) === 0 ? g.config = M.value : g != null && g.children && ((q = g == null ? void 0 : g.children) == null ? void 0 : q.length) > 0 && (g.children = w(g.children)), g;
|
|
6817
6799
|
}), a;
|
|
6818
6800
|
}), r = async (a, v) => {
|
|
6819
6801
|
I.setRouteToChildPath(""), U.setMenuTriggerType("click"), U.setActiveMenuPath(a == null ? void 0 : a.path), U.setActiveAsideMenu(a), a.isRouter ? ie.push(a.path) : ie.push("/"), c("node-click", a, v);
|
|
@@ -6864,12 +6846,12 @@ function ds(l = "menu") {
|
|
|
6864
6846
|
data: a
|
|
6865
6847
|
}), U.setIsRefreshMenus(!0);
|
|
6866
6848
|
}, wl = async (a, v, g) => {
|
|
6867
|
-
var
|
|
6849
|
+
var S, q, ce, j, i, k, N, G, t, d, A, W, re, We, rl, be, ne, b, Me, De, ue, ae, H, Fe, Xe, Ne, sl;
|
|
6868
6850
|
if (v === "create") {
|
|
6869
|
-
let Je = (g == null ? void 0 : g.title) + "(1)",
|
|
6851
|
+
let Je = (g == null ? void 0 : g.title) + "(1)", Se = (q = (S = g == null ? void 0 : g.path) == null ? void 0 : S.split("/")) == null ? void 0 : q.filter((oe, ke) => {
|
|
6870
6852
|
var Ae, He;
|
|
6871
6853
|
return ke !== ((He = (Ae = g == null ? void 0 : g.path) == null ? void 0 : Ae.split("/")) == null ? void 0 : He.length) - 1;
|
|
6872
|
-
}),
|
|
6854
|
+
}), _ = await sa(
|
|
6873
6855
|
(i = (j = (ce = g == null ? void 0 : g.path) == null ? void 0 : ce.split("/")) == null ? void 0 : j.filter((oe, ke) => {
|
|
6874
6856
|
var Ae, He;
|
|
6875
6857
|
return ke !== ((He = (Ae = g == null ? void 0 : g.path) == null ? void 0 : Ae.split("/")) == null ? void 0 : He.length) - 1;
|
|
@@ -6877,8 +6859,8 @@ function ds(l = "menu") {
|
|
|
6877
6859
|
sessionStorage.getItem("systemKey"),
|
|
6878
6860
|
""
|
|
6879
6861
|
);
|
|
6880
|
-
if (
|
|
6881
|
-
let oe =
|
|
6862
|
+
if (Se.push(Je), Se = Se == null ? void 0 : Se.join("/"), (_ == null ? void 0 : _.length) > 0) {
|
|
6863
|
+
let oe = _ == null ? void 0 : _[0], ke = (N = (k = oe == null ? void 0 : oe.compData) == null ? void 0 : k.find((Ae) => (Ae == null ? void 0 : Ae.key) === "header")) == null ? void 0 : N.contents;
|
|
6882
6864
|
if (((G = ke == null ? void 0 : ke[0]) == null ? void 0 : G.directiveLabel) === "#isMain") {
|
|
6883
6865
|
let Ae = (t = ke == null ? void 0 : ke[0]) == null ? void 0 : t.prop, He = (A = (d = oe == null ? void 0 : oe.compData) == null ? void 0 : d.find(
|
|
6884
6866
|
(te) => (te == null ? void 0 : te.key) === "tableContents"
|
|
@@ -6909,7 +6891,7 @@ function ds(l = "menu") {
|
|
|
6909
6891
|
});
|
|
6910
6892
|
}
|
|
6911
6893
|
}
|
|
6912
|
-
await Fs(g == null ? void 0 : g.path,
|
|
6894
|
+
await Fs(g == null ? void 0 : g.path, Se), U.setUpdateMenuStatus(!1), await tt(), U.setActiveMenuPath(
|
|
6913
6895
|
(De = (Me = (b = g == null ? void 0 : g.path) == null ? void 0 : b.split("/")) == null ? void 0 : Me.filter((oe, ke) => {
|
|
6914
6896
|
var Ae, He;
|
|
6915
6897
|
return ke !== ((He = (Ae = g == null ? void 0 : g.path) == null ? void 0 : Ae.split("/")) == null ? void 0 : He.length) - 1;
|
|
@@ -6922,25 +6904,25 @@ function ds(l = "menu") {
|
|
|
6922
6904
|
(Je == null ? void 0 : Je.length) > 0 && await Us({
|
|
6923
6905
|
ids: Je
|
|
6924
6906
|
}), U.setUpdateMenuStatus(!1), await tt(), U.setActiveMenuPath(
|
|
6925
|
-
(Xe = (Fe = (H = g == null ? void 0 : g.path) == null ? void 0 : H.split("/")) == null ? void 0 : Fe.filter((
|
|
6907
|
+
(Xe = (Fe = (H = g == null ? void 0 : g.path) == null ? void 0 : H.split("/")) == null ? void 0 : Fe.filter((Se, _) => {
|
|
6926
6908
|
var oe, ke;
|
|
6927
|
-
return
|
|
6909
|
+
return _ !== ((ke = (oe = g == null ? void 0 : g.path) == null ? void 0 : oe.split("/")) == null ? void 0 : ke.length) - 1;
|
|
6928
6910
|
})) == null ? void 0 : Xe.join("/")
|
|
6929
6911
|
), U.setActiveTopMenuPath((sl = (Ne = g == null ? void 0 : g.path) == null ? void 0 : Ne.split("/")) == null ? void 0 : sl[0]), U.setIsRefreshMenus(!1), U.setIsRefreshMenus(!0);
|
|
6930
6912
|
}
|
|
6931
6913
|
}, de = async (a, v) => {
|
|
6932
|
-
var G, t, d, A, W, re, We, rl, be, ne, b, Me, De, ue, ae, H, Fe, Xe, Ne, sl, Je,
|
|
6914
|
+
var G, t, d, A, W, re, We, rl, be, ne, b, Me, De, ue, ae, H, Fe, Xe, Ne, sl, Je, Se, _, oe, ke, Ae, He, K, te, xe, Ve;
|
|
6933
6915
|
let g = await wn({
|
|
6934
6916
|
key: {
|
|
6935
6917
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
6936
6918
|
pageKey: "menu"
|
|
6937
6919
|
}
|
|
6938
|
-
}),
|
|
6920
|
+
}), S = (t = (G = g == null ? void 0 : g.data) == null ? void 0 : G.result) == null ? void 0 : t[0], q = (d = S == null ? void 0 : S.value) == null ? void 0 : d.pageData;
|
|
6939
6921
|
q.compData = (A = q.compData) == null ? void 0 : A.map((Z) => {
|
|
6940
6922
|
var Le, z;
|
|
6941
6923
|
return (Z == null ? void 0 : Z.key) === "menuContents" && (Z.contents = us(Z.contents, (Le = v == null ? void 0 : v.path) == null ? void 0 : Le.split("/"), v == null ? void 0 : v.title, (z = a == null ? void 0 : a.target) == null ? void 0 : z.value)), Z;
|
|
6942
|
-
}),
|
|
6943
|
-
id:
|
|
6924
|
+
}), S != null && S.id && await Qn({
|
|
6925
|
+
id: S == null ? void 0 : S.id,
|
|
6944
6926
|
value: {
|
|
6945
6927
|
pageData: q
|
|
6946
6928
|
}
|
|
@@ -6954,7 +6936,7 @@ function ds(l = "menu") {
|
|
|
6954
6936
|
if (((Me = (b = (ne = (be = (rl = i == null ? void 0 : i[0]) == null ? void 0 : rl.compData) == null ? void 0 : be.find((Z) => (Z == null ? void 0 : Z.key) === "header")) == null ? void 0 : ne.contents) == null ? void 0 : b[0]) == null ? void 0 : Me.directiveLabel) === "#isMain") {
|
|
6955
6937
|
let Z = (Fe = (H = (ae = (ue = (De = i == null ? void 0 : i[0]) == null ? void 0 : De.compData) == null ? void 0 : ue.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : ae.contents) == null ? void 0 : H[0]) == null ? void 0 : Fe.prop, Le = (sl = (Ne = (Xe = i == null ? void 0 : i[0]) == null ? void 0 : Xe.compData) == null ? void 0 : Ne.find(
|
|
6956
6938
|
(Y) => (Y == null ? void 0 : Y.key) === "tableContents"
|
|
6957
|
-
)) == null ? void 0 : sl.contents, z = (oe = (
|
|
6939
|
+
)) == null ? void 0 : sl.contents, z = (oe = (_ = (Se = (Je = i == null ? void 0 : i[0]) == null ? void 0 : Je.compData) == null ? void 0 : Se.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : _.contents) == null ? void 0 : oe.map((Y) => Y == null ? void 0 : Y.prop), p;
|
|
6958
6940
|
if (Le == null || Le.forEach((Y) => {
|
|
6959
6941
|
var pe;
|
|
6960
6942
|
let Ce = ot(Y, z);
|
|
@@ -6998,9 +6980,9 @@ function ds(l = "menu") {
|
|
|
6998
6980
|
}, Ye = () => {
|
|
6999
6981
|
X.show = !1;
|
|
7000
6982
|
}, he = (a) => a == null ? void 0 : a.filter((v) => v.allowInherit), Te = () => {
|
|
7001
|
-
var g,
|
|
6983
|
+
var g, S, q, ce, j;
|
|
7002
6984
|
let a;
|
|
7003
|
-
X.type === "create" && (a = ((g = il.value) == null ? void 0 : g.path) + "/" + ll.value[(
|
|
6985
|
+
X.type === "create" && (a = ((g = il.value) == null ? void 0 : g.path) + "/" + ll.value[(S = ll.value) == null ? void 0 : S.prop]), X.type === "update" && (a = (q = il.value) == null ? void 0 : q.path);
|
|
7004
6986
|
const v = {
|
|
7005
6987
|
...il.value,
|
|
7006
6988
|
//是否继承父菜单的配置
|
|
@@ -7012,9 +6994,9 @@ function ds(l = "menu") {
|
|
|
7012
6994
|
};
|
|
7013
6995
|
console.log("clickSubmitForm", fl.value, il.value, v), ze(v), X.show = !1;
|
|
7014
6996
|
}, al = (a) => {
|
|
7015
|
-
var g,
|
|
6997
|
+
var g, S;
|
|
7016
6998
|
const v = (g = a == null ? void 0 : a.contents) == null ? void 0 : g.find((q) => q.key === "formContent");
|
|
7017
|
-
v && (ll.value = (
|
|
6999
|
+
v && (ll.value = (S = v == null ? void 0 : v.contents) == null ? void 0 : S.reduce(
|
|
7018
7000
|
(q, ce) => (q[ce.key] = ce.value, q.prop = ce.key, q),
|
|
7019
7001
|
{}
|
|
7020
7002
|
));
|
|
@@ -7025,12 +7007,12 @@ function ds(l = "menu") {
|
|
|
7025
7007
|
var v, g;
|
|
7026
7008
|
if (a) {
|
|
7027
7009
|
await Fl();
|
|
7028
|
-
const
|
|
7029
|
-
if (((v =
|
|
7030
|
-
const q =
|
|
7010
|
+
const S = a == null ? void 0 : a[0];
|
|
7011
|
+
if (((v = S == null ? void 0 : S.children) == null ? void 0 : v.length) > 0) {
|
|
7012
|
+
const q = S == null ? void 0 : S.path;
|
|
7031
7013
|
Ze.value && ((g = Ze.value) == null || g.openMenuRefByIndex(q));
|
|
7032
7014
|
} else
|
|
7033
|
-
u != null && u.value ? U.setJumpMenuInform(!1) : U.setActiveMenuPath((
|
|
7015
|
+
u != null && u.value ? U.setJumpMenuInform(!1) : U.setActiveMenuPath((S == null ? void 0 : S.path) ?? "");
|
|
7034
7016
|
}
|
|
7035
7017
|
}, { immediate: !0 }), {
|
|
7036
7018
|
menuRef: Ze,
|
|
@@ -7074,7 +7056,7 @@ function Mc(l, C, c, h, M, U) {
|
|
|
7074
7056
|
}, null, 8, ["data", "onNodeClick"])
|
|
7075
7057
|
]);
|
|
7076
7058
|
}
|
|
7077
|
-
const
|
|
7059
|
+
const Sc = /* @__PURE__ */ Kl(Ac, [["render", Mc], ["__scopeId", "data-v-83196ea8"]]);
|
|
7078
7060
|
function ps(l = "menu") {
|
|
7079
7061
|
return {
|
|
7080
7062
|
name: l,
|
|
@@ -7106,16 +7088,16 @@ function ps(l = "menu") {
|
|
|
7106
7088
|
children: v.level === 0 ? [] : v.children ?? [],
|
|
7107
7089
|
childMenus: ye(v.children)
|
|
7108
7090
|
} : v), O = (a, v) => {
|
|
7109
|
-
var g,
|
|
7110
|
-
return (
|
|
7091
|
+
var g, S;
|
|
7092
|
+
return (S = (g = m.value) == null ? void 0 : g.find((q) => (a.title + v).includes(q.value))) == null ? void 0 : S.value;
|
|
7111
7093
|
}, F = (a, v = "", g = 0) => {
|
|
7112
7094
|
var j;
|
|
7113
|
-
let
|
|
7095
|
+
let S = Al(a);
|
|
7114
7096
|
const q = Array.from(/* @__PURE__ */ new Set([...(j = ee.value) == null ? void 0 : j.map((i) => {
|
|
7115
7097
|
var k;
|
|
7116
7098
|
return (k = i == null ? void 0 : i.key) == null ? void 0 : k.pageKey;
|
|
7117
7099
|
})]));
|
|
7118
|
-
return Array.isArray(
|
|
7100
|
+
return Array.isArray(S) || (S = [S]), S == null ? void 0 : S.map((i) => {
|
|
7119
7101
|
let k, N = v ? `${v}/${i.title}` : i.title;
|
|
7120
7102
|
k = N;
|
|
7121
7103
|
const G = {
|
|
@@ -7145,9 +7127,9 @@ function ps(l = "menu") {
|
|
|
7145
7127
|
const v = ye(a);
|
|
7146
7128
|
return Gt(v), h.setMenus(v), v;
|
|
7147
7129
|
}), Be = async (a) => ((a == null ? void 0 : a.level) === 0 ? (sessionStorage.getItem("systemKey"), a == null || a.path) : (sessionStorage.getItem("systemKey"), "" + (a == null ? void 0 : a.path)), null), me = (a, v) => {
|
|
7148
|
-
var
|
|
7130
|
+
var S, q;
|
|
7149
7131
|
const g = a == null ? void 0 : a.find((ce) => (ce == null ? void 0 : ce.operateType) === "新增");
|
|
7150
|
-
return ((q = (
|
|
7132
|
+
return ((q = (S = T.value) == null ? void 0 : S.data) == null ? void 0 : q.path) === (v == null ? void 0 : v.path) ? g == null ? void 0 : g.menuIcon : O(v, v == null ? void 0 : v.level);
|
|
7151
7133
|
}, Oe = async (a, v) => {
|
|
7152
7134
|
if (!Array.isArray(v)) return a;
|
|
7153
7135
|
for (const g of v)
|
|
@@ -7161,8 +7143,8 @@ function ps(l = "menu") {
|
|
|
7161
7143
|
}, ll = B(null), il = async (a, v = null) => await Promise.all(
|
|
7162
7144
|
a == null ? void 0 : a.map(async (g) => {
|
|
7163
7145
|
var ce;
|
|
7164
|
-
let
|
|
7165
|
-
const q = (
|
|
7146
|
+
let S = await Oe(g, Ee.value);
|
|
7147
|
+
const q = (S == null ? void 0 : S.config) ?? ((ce = v == null ? void 0 : v.filter((j) => j.allowInherit)) == null ? void 0 : ce.map((j) => {
|
|
7166
7148
|
var i;
|
|
7167
7149
|
return {
|
|
7168
7150
|
...j,
|
|
@@ -7174,14 +7156,14 @@ function ps(l = "menu") {
|
|
|
7174
7156
|
//弹窗和内容的结构都继承
|
|
7175
7157
|
};
|
|
7176
7158
|
}));
|
|
7177
|
-
return
|
|
7178
|
-
...
|
|
7159
|
+
return S != null && S.childMenus && (S == null ? void 0 : S.childMenus.length) > 0 && (S = {
|
|
7160
|
+
...S,
|
|
7179
7161
|
icon: me(q, g),
|
|
7180
7162
|
config: q,
|
|
7181
7163
|
children: await il(g == null ? void 0 : g.childMenus, q),
|
|
7182
7164
|
childMenus: await il(g == null ? void 0 : g.childMenus, q)
|
|
7183
7165
|
}), {
|
|
7184
|
-
...
|
|
7166
|
+
...S,
|
|
7185
7167
|
icon: me(q, g),
|
|
7186
7168
|
config: q
|
|
7187
7169
|
};
|
|
@@ -7190,9 +7172,9 @@ function ps(l = "menu") {
|
|
|
7190
7172
|
vl(
|
|
7191
7173
|
() => u.value,
|
|
7192
7174
|
(a) => {
|
|
7193
|
-
var g,
|
|
7175
|
+
var g, S, q;
|
|
7194
7176
|
if (!a) return;
|
|
7195
|
-
const v = (
|
|
7177
|
+
const v = (S = (g = a == null ? void 0 : a.path) == null ? void 0 : g.split("/")) == null ? void 0 : S[0];
|
|
7196
7178
|
if (v) {
|
|
7197
7179
|
const ce = (q = w.value) == null ? void 0 : q.find((j) => (j == null ? void 0 : j.path) === v);
|
|
7198
7180
|
if (!ce || (h.setActiveTopMenuPath(v), !(ce != null && ce.children))) return;
|
|
@@ -7204,7 +7186,7 @@ function ps(l = "menu") {
|
|
|
7204
7186
|
const fl = async (a) => {
|
|
7205
7187
|
var v, g;
|
|
7206
7188
|
if (h.setLinkMenuInfo(null), h.setAsideMenuLoading(!0), M.setRouteToChildPath(""), h.setActiveTopMenuPath(a == null ? void 0 : a.path), h.setActiveMainMenu(a), ll.value = null, a != null && a.childMenus && ((v = a == null ? void 0 : a.childMenus) == null ? void 0 : v.length) > 0) {
|
|
7207
|
-
const
|
|
7189
|
+
const S = await dl(a), q = (S == null ? void 0 : S.length) === 0 ? a == null ? void 0 : a.childMenus : S;
|
|
7208
7190
|
h.setAsideMenus(q), se.value || h.setUpdateMenuStatus(!0), h.setActiveAsideMenu((g = a == null ? void 0 : a.childMenus) == null ? void 0 : g[0]);
|
|
7209
7191
|
} else
|
|
7210
7192
|
h.setAsideMenus([]), h.setActiveMenuPath(a == null ? void 0 : a.path);
|
|
@@ -7256,32 +7238,32 @@ function ps(l = "menu") {
|
|
|
7256
7238
|
var g;
|
|
7257
7239
|
const v = [a == null ? void 0 : a.title];
|
|
7258
7240
|
if (a != null && a.children && ((g = a == null ? void 0 : a.children) == null ? void 0 : g.length) > 0) {
|
|
7259
|
-
const
|
|
7260
|
-
v.push(...
|
|
7241
|
+
const S = a.children.map((q) => Te(q));
|
|
7242
|
+
v.push(...S);
|
|
7261
7243
|
}
|
|
7262
7244
|
return v;
|
|
7263
|
-
}, al = (a, v, g,
|
|
7245
|
+
}, al = (a, v, g, S) => a.map((q) => {
|
|
7264
7246
|
var ce, j;
|
|
7265
7247
|
if (q.path === g) {
|
|
7266
7248
|
const i = { ...q };
|
|
7267
|
-
return
|
|
7249
|
+
return S === "create" ? i.children.push(v) : S === "update" ? i.children = (ce = i.children) == null ? void 0 : ce.map(
|
|
7268
7250
|
(k) => (k == null ? void 0 : k.path) === (v == null ? void 0 : v.path) ? v : k
|
|
7269
|
-
) :
|
|
7251
|
+
) : S === "delete" && (i.children = (j = i.children) == null ? void 0 : j.filter((k) => (k == null ? void 0 : k.path) !== (v == null ? void 0 : v.path))), i;
|
|
7270
7252
|
} else
|
|
7271
7253
|
return {
|
|
7272
7254
|
...q,
|
|
7273
|
-
children: al(q.children, v, g,
|
|
7255
|
+
children: al(q.children, v, g, S)
|
|
7274
7256
|
// 递归更新子节点
|
|
7275
7257
|
};
|
|
7276
7258
|
}), qe = async (a) => {
|
|
7277
|
-
var g,
|
|
7259
|
+
var g, S, q, ce, j, i;
|
|
7278
7260
|
const v = (g = ee.value) == null ? void 0 : g.find((k) => {
|
|
7279
7261
|
var N;
|
|
7280
7262
|
return ((N = k == null ? void 0 : k.key) == null ? void 0 : N.pageKey) === "menu";
|
|
7281
7263
|
});
|
|
7282
7264
|
if (v) {
|
|
7283
7265
|
const k = {
|
|
7284
|
-
...(
|
|
7266
|
+
...(S = v.value) == null ? void 0 : S.pageData,
|
|
7285
7267
|
compData: (j = (ce = (q = v.value) == null ? void 0 : q.pageData) == null ? void 0 : ce.compData) == null ? void 0 : j.map((G) => G.key === "menuContents" ? {
|
|
7286
7268
|
...G,
|
|
7287
7269
|
contents: a
|
|
@@ -7295,18 +7277,18 @@ function ps(l = "menu") {
|
|
|
7295
7277
|
}, nl = async (a) => void 0, Ze = async (a) => {
|
|
7296
7278
|
var q, ce, j;
|
|
7297
7279
|
const v = (j = (ce = (q = a == null ? void 0 : a.config) == null ? void 0 : q.find((i) => (i == null ? void 0 : i.operateType) === "新增")) == null ? void 0 : ce.structureIds) == null ? void 0 : j.filter((i) => (i == null ? void 0 : i.key) === "contentConfig"), g = v == null ? void 0 : v.map((i) => i == null ? void 0 : i.id);
|
|
7298
|
-
let
|
|
7280
|
+
let S = [];
|
|
7299
7281
|
g == null || g.forEach((i) => {
|
|
7300
|
-
i &&
|
|
7282
|
+
i && S.push(nl());
|
|
7301
7283
|
});
|
|
7302
7284
|
};
|
|
7303
7285
|
return vl(
|
|
7304
7286
|
() => D.value,
|
|
7305
7287
|
async (a) => {
|
|
7306
|
-
var v, g,
|
|
7288
|
+
var v, g, S, q, ce, j, i, k;
|
|
7307
7289
|
if (a)
|
|
7308
7290
|
try {
|
|
7309
|
-
const N = (
|
|
7291
|
+
const N = (S = (g = (v = T.value) == null ? void 0 : v.data) == null ? void 0 : g.path) == null ? void 0 : S.split("/").slice(0, -1).join("/"), G = al(
|
|
7310
7292
|
w.value,
|
|
7311
7293
|
(q = T.value) == null ? void 0 : q.data,
|
|
7312
7294
|
N,
|
|
@@ -7316,7 +7298,7 @@ function ps(l = "menu") {
|
|
|
7316
7298
|
const d = await dl(P.value), A = (d == null ? void 0 : d.length) === 0 ? (k = P.value) == null ? void 0 : k.childMenus : d;
|
|
7317
7299
|
h.setAsideMenus(A);
|
|
7318
7300
|
} catch (N) {
|
|
7319
|
-
throw
|
|
7301
|
+
throw _l.error(N), new Error(N);
|
|
7320
7302
|
}
|
|
7321
7303
|
},
|
|
7322
7304
|
{ immediate: !0 }
|
|
@@ -7333,7 +7315,7 @@ function ps(l = "menu") {
|
|
|
7333
7315
|
};
|
|
7334
7316
|
}
|
|
7335
7317
|
Bl(ps());
|
|
7336
|
-
const
|
|
7318
|
+
const _c = Bl(ps("ThreeMenu")), Tc = { class: "three-menu" }, Bc = ["onClick"];
|
|
7337
7319
|
function Ec(l, C, c, h, M, U) {
|
|
7338
7320
|
return f(), $("div", Tc, [
|
|
7339
7321
|
(f(!0), $(tl, null, ul(l.renderMenuList, (I) => (f(), $("div", {
|
|
@@ -7344,7 +7326,7 @@ function Ec(l, C, c, h, M, U) {
|
|
|
7344
7326
|
Wl(l.$slots, "extraIcon", {}, void 0, !0)
|
|
7345
7327
|
]);
|
|
7346
7328
|
}
|
|
7347
|
-
const Dc = /* @__PURE__ */ Kl(
|
|
7329
|
+
const Dc = /* @__PURE__ */ Kl(_c, [["render", Ec], ["__scopeId", "data-v-94d06d52"]]), Pc = { class: "structure-buttons" }, Rc = { class: "structure-paths" }, xc = { class: "client-header-user" }, Vc = { class: "model-select" }, Uc = { class: "model-show" }, jc = { class: "model-fill" }, Oc = ["title", "onClick"], Lc = { class: "panel-body client-container" }, Qc = {
|
|
7348
7330
|
key: 0,
|
|
7349
7331
|
class: "menu-empty"
|
|
7350
7332
|
}, Nc = {
|
|
@@ -7440,10 +7422,10 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7440
7422
|
var J, we, Pe, ge, $e, el, Il, Ml, pl, Ke;
|
|
7441
7423
|
let Y, Ce, pe;
|
|
7442
7424
|
p != null && p.blob.includes("undefined") ? pe = (we = (J = p == null ? void 0 : p.blob) == null ? void 0 : J.split("undefined,")) == null ? void 0 : we[1] : pe = p == null ? void 0 : p.blob;
|
|
7443
|
-
let
|
|
7444
|
-
if ((
|
|
7445
|
-
let Ue = await (
|
|
7446
|
-
var Qe, El, Vl, Cl,
|
|
7425
|
+
let _e = pe == null ? void 0 : pe.split(",");
|
|
7426
|
+
if ((_e == null ? void 0 : _e.length) > 1) {
|
|
7427
|
+
let Ue = await (_e == null ? void 0 : _e.map(async (Re) => {
|
|
7428
|
+
var Qe, El, Vl, Cl, Sl, Ol;
|
|
7447
7429
|
Y = await ra.get(Re, {
|
|
7448
7430
|
responseType: "blob",
|
|
7449
7431
|
headers: {
|
|
@@ -7468,7 +7450,7 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7468
7450
|
await Promise.all(Rl);
|
|
7469
7451
|
}
|
|
7470
7452
|
return ((Cl = Re == null ? void 0 : Re.split(".")) == null ? void 0 : Cl[((Vl = Re == null ? void 0 : Re.split(".")) == null ? void 0 : Vl.length) - 1]) !== "undefined" && Le.push({
|
|
7471
|
-
suffix: "." + ((Ol = Re == null ? void 0 : Re.split(".")) == null ? void 0 : Ol[((
|
|
7453
|
+
suffix: "." + ((Ol = Re == null ? void 0 : Re.split(".")) == null ? void 0 : Ol[((Sl = Re == null ? void 0 : Re.split(".")) == null ? void 0 : Sl.length) - 1]),
|
|
7472
7454
|
blob: new Blob([Y.data], {
|
|
7473
7455
|
type: "application/octet-stream;charset=UTF-8"
|
|
7474
7456
|
}),
|
|
@@ -7550,7 +7532,7 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7550
7532
|
});
|
|
7551
7533
|
}, a = async () => {
|
|
7552
7534
|
await Fn();
|
|
7553
|
-
}, v = B("数据管理"), g = B(!1),
|
|
7535
|
+
}, v = B("数据管理"), g = B(!1), S = B(), q = B(), ce = B({
|
|
7554
7536
|
x: 0,
|
|
7555
7537
|
y: 0
|
|
7556
7538
|
}), j = () => {
|
|
@@ -7585,7 +7567,7 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7585
7567
|
document.removeEventListener("mousemove", We), document.removeEventListener("mouseup", rl);
|
|
7586
7568
|
}
|
|
7587
7569
|
const be = (K) => {
|
|
7588
|
-
W = K.clientX, re = parseInt(getComputedStyle(
|
|
7570
|
+
W = K.clientX, re = parseInt(getComputedStyle(S.value).width, 10), document.addEventListener("mousemove", We), document.addEventListener("mouseup", rl);
|
|
7589
7571
|
};
|
|
7590
7572
|
let ne = 0, b = 0, Me = 0, De = 0;
|
|
7591
7573
|
function ue(K) {
|
|
@@ -7603,10 +7585,10 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7603
7585
|
Ne.value = K;
|
|
7604
7586
|
}, Je = () => {
|
|
7605
7587
|
Ne.value = !Ne.value;
|
|
7606
|
-
},
|
|
7588
|
+
}, Se = () => {
|
|
7607
7589
|
sl(!1);
|
|
7608
|
-
},
|
|
7609
|
-
|
|
7590
|
+
}, _ = B(), oe = (K) => {
|
|
7591
|
+
_.value = K;
|
|
7610
7592
|
}, ke = (K) => {
|
|
7611
7593
|
const te = Zs(K);
|
|
7612
7594
|
if (!te)
|
|
@@ -7614,7 +7596,7 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7614
7596
|
Te(te);
|
|
7615
7597
|
};
|
|
7616
7598
|
vl(na, (K) => {
|
|
7617
|
-
const { isLeaf: te } =
|
|
7599
|
+
const { isLeaf: te } = _.value || {};
|
|
7618
7600
|
!te || !K || !K.length || ke(K);
|
|
7619
7601
|
}, {
|
|
7620
7602
|
immediate: !0,
|
|
@@ -7632,7 +7614,7 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7632
7614
|
Hl(async () => {
|
|
7633
7615
|
ll("setLoginInfo", X.value);
|
|
7634
7616
|
async function K() {
|
|
7635
|
-
var te, xe, Ve, Z, Le, z, p, Y, Ce, pe,
|
|
7617
|
+
var te, xe, Ve, Z, Le, z, p, Y, Ce, pe, _e;
|
|
7636
7618
|
try {
|
|
7637
7619
|
let J = function(Ue, Re) {
|
|
7638
7620
|
return Re.map((Ie) => Ue.map((Qe, El) => ({
|
|
@@ -7648,7 +7630,7 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7648
7630
|
console.log("555readData", Il);
|
|
7649
7631
|
let Ml = [];
|
|
7650
7632
|
Array.isArray($e) && Array.isArray(el) ? Ml = [...$e, ...el] : (Ml = [], console.warn("unreadMessagesContents 或 readMessagesContents 不是数组")), h.value = J(Il, Ml), console.log("555allReadMessages.value", h.value);
|
|
7651
|
-
const pl = ((pe = X == null ? void 0 : X.value) == null ? void 0 : pe.account) || ((
|
|
7633
|
+
const pl = ((pe = X == null ? void 0 : X.value) == null ? void 0 : pe.account) || ((_e = X == null ? void 0 : X.value) == null ? void 0 : _e.收件人) || "未知", Ke = h.value.filter((Ue) => {
|
|
7652
7634
|
var Re;
|
|
7653
7635
|
return ((Re = Ue.find((Ie) => Ie.prop === "收件人")) == null ? void 0 : Re.value) === pl;
|
|
7654
7636
|
});
|
|
@@ -7707,27 +7689,25 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7707
7689
|
id: "transparentBgButton",
|
|
7708
7690
|
onClick: n(Xn)
|
|
7709
7691
|
}, {
|
|
7710
|
-
default: o(() => te[5] || (te[5] = [
|
|
7711
|
-
cl(" 返回页面 ")
|
|
7712
|
-
])),
|
|
7713
|
-
_: 1
|
|
7714
|
-
__: [5]
|
|
7692
|
+
default: o(() => [...te[5] || (te[5] = [
|
|
7693
|
+
cl(" 返回页面 ", -1)
|
|
7694
|
+
])]),
|
|
7695
|
+
_: 1
|
|
7715
7696
|
}, 8, ["onClick"]),
|
|
7716
7697
|
s(Ve, {
|
|
7717
7698
|
id: "transparentBgButton",
|
|
7718
7699
|
onClick: te[2] || (te[2] = (Ce) => {
|
|
7719
|
-
var pe,
|
|
7720
|
-
return n(Gn)((
|
|
7700
|
+
var pe, _e;
|
|
7701
|
+
return n(Gn)((_e = (pe = n(ie)) == null ? void 0 : pe.map((J) => J.value)) == null ? void 0 : _e.join("/"));
|
|
7721
7702
|
})
|
|
7722
7703
|
}, {
|
|
7723
7704
|
icon: o(() => [
|
|
7724
7705
|
s(Tl, { name: "Store" })
|
|
7725
7706
|
]),
|
|
7726
7707
|
default: o(() => [
|
|
7727
|
-
te[6] || (te[6] = cl(" 保存页面 "))
|
|
7708
|
+
te[6] || (te[6] = cl(" 保存页面 ", -1))
|
|
7728
7709
|
]),
|
|
7729
|
-
_: 1
|
|
7730
|
-
__: [6]
|
|
7710
|
+
_: 1
|
|
7731
7711
|
})
|
|
7732
7712
|
]),
|
|
7733
7713
|
V("div", Rc, [
|
|
@@ -7829,7 +7809,7 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7829
7809
|
]), 1024)
|
|
7830
7810
|
]),
|
|
7831
7811
|
"management-menu": o(() => [
|
|
7832
|
-
s(
|
|
7812
|
+
s(_n, {
|
|
7833
7813
|
name: "子菜单",
|
|
7834
7814
|
size: "24",
|
|
7835
7815
|
onClick: Je,
|
|
@@ -7838,7 +7818,7 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7838
7818
|
}, null, 8, ["active"])
|
|
7839
7819
|
]),
|
|
7840
7820
|
"management-page": o(() => [
|
|
7841
|
-
s(
|
|
7821
|
+
s(_n, {
|
|
7842
7822
|
name: "yemian",
|
|
7843
7823
|
size: "24",
|
|
7844
7824
|
onClick: G,
|
|
@@ -7857,7 +7837,7 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7857
7837
|
Yl(V("div", {
|
|
7858
7838
|
class: "management-page-panel",
|
|
7859
7839
|
ref_key: "managementPagePanel",
|
|
7860
|
-
ref:
|
|
7840
|
+
ref: S,
|
|
7861
7841
|
style: Pl(t.value)
|
|
7862
7842
|
}, [
|
|
7863
7843
|
V("div", {
|
|
@@ -7885,7 +7865,7 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7885
7865
|
default: o(() => [
|
|
7886
7866
|
s(p, { class: "client-main" }, {
|
|
7887
7867
|
default: o(() => {
|
|
7888
|
-
var Ce, pe,
|
|
7868
|
+
var Ce, pe, _e, J, we, Pe;
|
|
7889
7869
|
return [
|
|
7890
7870
|
Yl((f(), $("div", {
|
|
7891
7871
|
class: "client-main-operate",
|
|
@@ -7893,7 +7873,7 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7893
7873
|
ref: Ee,
|
|
7894
7874
|
"element-loading-text": "正在加载页面数据..."
|
|
7895
7875
|
}, [
|
|
7896
|
-
((pe = n(y)) == null ? void 0 : pe[((Ce = n(y)) == null ? void 0 : Ce.length) - 1]) === n(R) || (
|
|
7876
|
+
((pe = n(y)) == null ? void 0 : pe[((Ce = n(y)) == null ? void 0 : Ce.length) - 1]) === n(R) || (_e = n(y)) != null && _e.includes("updateLoading") || (J = n(y)) != null && J.includes("loading") ? (f(), $("div", Nc, [
|
|
7897
7877
|
s(oa, {
|
|
7898
7878
|
class: "calculator-content back-content",
|
|
7899
7879
|
onClickTrigger: te[4] || (te[4] = (ge) => n(zt)()),
|
|
@@ -7918,11 +7898,11 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7918
7898
|
isDevMode: l.showButton,
|
|
7919
7899
|
itemData: ge == null ? void 0 : ge.compData,
|
|
7920
7900
|
childItemData: ge == null ? void 0 : ge.itemChildData,
|
|
7921
|
-
key: n(
|
|
7901
|
+
key: n(_a),
|
|
7922
7902
|
onChange: n(fa),
|
|
7923
7903
|
index: (ge == null ? void 0 : ge.id) ?? $e,
|
|
7924
7904
|
onContentChange: n(pa),
|
|
7925
|
-
onPageChange: n(
|
|
7905
|
+
onPageChange: n(Sa),
|
|
7926
7906
|
onRowClick: nl,
|
|
7927
7907
|
onRouteUrl: Ze,
|
|
7928
7908
|
parentTableId: ge == null ? void 0 : ge.tableId,
|
|
@@ -7961,13 +7941,13 @@ const Dc = /* @__PURE__ */ Kl(Sc, [["render", Ec], ["__scopeId", "data-v-94d06d5
|
|
|
7961
7941
|
te[7] || (te[7] = V("span", null, " 菜单树 ", -1)),
|
|
7962
7942
|
V("span", {
|
|
7963
7943
|
class: "close",
|
|
7964
|
-
onClick:
|
|
7944
|
+
onClick: Se
|
|
7965
7945
|
}, " X ")
|
|
7966
7946
|
]),
|
|
7967
7947
|
V("div", Fc, [
|
|
7968
7948
|
s(Le, { class: "client-body" }, {
|
|
7969
7949
|
default: o(() => [
|
|
7970
|
-
s(
|
|
7950
|
+
s(Sc, { onNodeClick: Ae })
|
|
7971
7951
|
]),
|
|
7972
7952
|
_: 1
|
|
7973
7953
|
})
|
|
@@ -8282,7 +8262,7 @@ const fs = (l, C, c, h) => {
|
|
|
8282
8262
|
Array.isArray(M) || (M = [M]);
|
|
8283
8263
|
let ye = [];
|
|
8284
8264
|
return (Ee = Al(M)) == null || Ee.forEach((O) => {
|
|
8285
|
-
var F, ve, X, Be, me, Oe, ll, il, dl, fl, ze, wl, de, y, Ye, he, Te, al, qe, nl, Ze, a, v, g,
|
|
8265
|
+
var F, ve, X, Be, me, Oe, ll, il, dl, fl, ze, wl, de, y, Ye, he, Te, al, qe, nl, Ze, a, v, g, S, q;
|
|
8286
8266
|
if (!(O != null && O.filter) || ((F = O == null ? void 0 : O.tableColumns) == null ? void 0 : F.length) > 0 || ((ve = O == null ? void 0 : O.value) == null ? void 0 : ve.length) > 0) {
|
|
8287
8267
|
let ce = (me = (Be = (X = l == null ? void 0 : l.filter) == null ? void 0 : X.replace("(", gl)) == null ? void 0 : Be.split(gl)) == null ? void 0 : me[0], j = (il = (ll = (Oe = O.filter) == null ? void 0 : Oe.replace("(", gl)) == null ? void 0 : ll.split(gl)) == null ? void 0 : il[1];
|
|
8288
8268
|
j = "(" + (j == null ? void 0 : j.slice(0, (j == null ? void 0 : j.length) - 1)), !(O != null && O.filter) || (O == null ? void 0 : O.filter) === "" ? O.filter = l == null ? void 0 : l.filter : O.filter = ce + j + "," + ((ze = (fl = (dl = l == null ? void 0 : l.filter) == null ? void 0 : dl.replace("(", gl)) == null ? void 0 : fl.split(gl)) == null ? void 0 : ze[1]);
|
|
@@ -8292,7 +8272,7 @@ const fs = (l, C, c, h) => {
|
|
|
8292
8272
|
((Ye = O == null ? void 0 : O.tableContents) == null ? void 0 : Ye.length) > 0 && (i != null && i.filter((N) => N == null ? void 0 : N.includes("@Type"))) && ((he = k == null ? void 0 : k[(k == null ? void 0 : k.length) - 1]) != null && he.includes("Manual")) && (O.tableContents = []), O.calculatorFilters = h.calculatorFilters, O.name = [...c, ...O == null ? void 0 : O.name], ye.push(Al(O));
|
|
8293
8273
|
} else {
|
|
8294
8274
|
let ce = (qe = (al = (Te = l == null ? void 0 : l.filter) == null ? void 0 : Te.replace("(", gl)) == null ? void 0 : al.split(gl)) == null ? void 0 : qe[0], j = (a = (Ze = (nl = O.filter) == null ? void 0 : nl.replace("(", gl)) == null ? void 0 : Ze.split(gl)) == null ? void 0 : a[1];
|
|
8295
|
-
j = "(" + (j == null ? void 0 : j.slice(0, (j == null ? void 0 : j.length) - 1)), !(O != null && O.filter) || (O == null ? void 0 : O.filter) === "" ? O.filter = l == null ? void 0 : l.filter : O.filter = ce + j + "," + ((
|
|
8275
|
+
j = "(" + (j == null ? void 0 : j.slice(0, (j == null ? void 0 : j.length) - 1)), !(O != null && O.filter) || (O == null ? void 0 : O.filter) === "" ? O.filter = l == null ? void 0 : l.filter : O.filter = ce + j + "," + ((S = (g = (v = l == null ? void 0 : l.filter) == null ? void 0 : v.replace("(", gl)) == null ? void 0 : g.split(gl)) == null ? void 0 : S[1]), O.calculatorFilters = h.calculatorFilters, (q = fs(Al(O), C, (c == null ? void 0 : c.length) > 0 ? c : [...c, ...O == null ? void 0 : O.name], h)) == null || q.forEach((i) => {
|
|
8296
8276
|
ye.push(Al(i));
|
|
8297
8277
|
});
|
|
8298
8278
|
}
|
|
@@ -8358,7 +8338,7 @@ const fs = (l, C, c, h) => {
|
|
|
8358
8338
|
return ((ee = (L = R == null ? void 0 : R.key) == null ? void 0 : L.split("/")) == null ? void 0 : ee.length) - 1 !== se;
|
|
8359
8339
|
})) == null ? void 0 : T.join("/")) + "/";
|
|
8360
8340
|
return (P = R.contents) == null || P.forEach((u, se) => {
|
|
8361
|
-
var m, r, Ee, ye, O, F, ve, X, Be, me, Oe, ll, il, dl, fl, ze, wl, de, y, Ye, he, Te, al, qe, nl, Ze, a, v, g,
|
|
8341
|
+
var m, r, Ee, ye, O, F, ve, X, Be, me, Oe, ll, il, dl, fl, ze, wl, de, y, Ye, he, Te, al, qe, nl, Ze, a, v, g, S, q, ce, j, i, k, N, G, t, d, A, W, re, We, rl;
|
|
8362
8342
|
const L = u == null ? void 0 : u.isShow, ee = (u == null ? void 0 : u.menuFilter) ?? [], w = Array.isArray(ee) && (ee == null ? void 0 : ee.some((be) => {
|
|
8363
8343
|
const ne = typeof be == "string" ? be : JSON.stringify(be);
|
|
8364
8344
|
return (ne == null ? void 0 : ne.includes("@Hide")) && (ne == null ? void 0 : ne.includes("Yes"));
|
|
@@ -8378,11 +8358,11 @@ const fs = (l, C, c, h) => {
|
|
|
8378
8358
|
} else {
|
|
8379
8359
|
let ne = [];
|
|
8380
8360
|
Array.isArray(be) || (be = [be]), (il = Al(be)) == null || il.forEach((b) => {
|
|
8381
|
-
var Me, De, ue, ae, H, Fe, Xe, Ne, sl, Je,
|
|
8361
|
+
var Me, De, ue, ae, H, Fe, Xe, Ne, sl, Je, Se, _, oe, ke, Ae, He, K, te, xe, Ve, Z, Le, z, p, Y, Ce, pe, _e, J, we, Pe, ge, $e, el, Il;
|
|
8382
8362
|
if (!(b != null && b.filter) || ((Me = b == null ? void 0 : b.tableColumns) == null ? void 0 : Me.length) > 0 || ((De = b == null ? void 0 : b.value) == null ? void 0 : De.length) > 0) {
|
|
8383
8363
|
b.name = [...u == null ? void 0 : u.name, ...(b == null ? void 0 : b.name) ?? []];
|
|
8384
8364
|
let Ml = (H = (ae = (ue = u == null ? void 0 : u.filter) == null ? void 0 : ue.replace("(", gl)) == null ? void 0 : ae.split(gl)) == null ? void 0 : H[0], pl = (Ne = (Xe = (Fe = b.filter) == null ? void 0 : Fe.replace("(", gl)) == null ? void 0 : Xe.split(gl)) == null ? void 0 : Ne[1];
|
|
8385
|
-
pl = "(" + (pl == null ? void 0 : pl.slice(0, (pl == null ? void 0 : pl.length) - 1)), !(b != null && b.filter) || (b == null ? void 0 : b.filter) === "" ? b.filter = u == null ? void 0 : u.filter : b.filter = Ml + pl + "," + ((
|
|
8365
|
+
pl = "(" + (pl == null ? void 0 : pl.slice(0, (pl == null ? void 0 : pl.length) - 1)), !(b != null && b.filter) || (b == null ? void 0 : b.filter) === "" ? b.filter = u == null ? void 0 : u.filter : b.filter = Ml + pl + "," + ((Se = (Je = (sl = u == null ? void 0 : u.filter) == null ? void 0 : sl.replace("(", gl)) == null ? void 0 : Je.split(gl)) == null ? void 0 : Se[1]), b.calculatorFilters = u.calculatorFilters, b.fatherSyncContents = (u == null ? void 0 : u.fatherSyncContents) ?? [], b.sonSyncContents = u.sonSyncContents ?? [], b.fatherSyncContents = (_ = b == null ? void 0 : b.fatherSyncContents) == null ? void 0 : _.map((Re) => {
|
|
8386
8366
|
var Ie, Qe;
|
|
8387
8367
|
return Re != null && Re.groups ? { ...Re } : Object.assign({}, Re, {
|
|
8388
8368
|
groups: (Qe = b.name) == null ? void 0 : Qe[((Ie = b.name) == null ? void 0 : Ie.length) - 1]
|
|
@@ -8400,7 +8380,7 @@ const fs = (l, C, c, h) => {
|
|
|
8400
8380
|
} else {
|
|
8401
8381
|
let Ml = (Z = (Ve = (xe = u == null ? void 0 : u.filter) == null ? void 0 : xe.replace("(", gl)) == null ? void 0 : Ve.split(gl)) == null ? void 0 : Z[0], pl = (p = (z = (Le = b.filter) == null ? void 0 : Le.replace("(", gl)) == null ? void 0 : z.split(gl)) == null ? void 0 : p[1];
|
|
8402
8382
|
pl = "(" + (pl == null ? void 0 : pl.slice(0, (pl == null ? void 0 : pl.length) - 1)), !(b != null && b.filter) || (b == null ? void 0 : b.filter) === "" ? b.filter = u == null ? void 0 : u.filter : b.filter = Ml + pl + "," + ((pe = (Ce = (Y = u == null ? void 0 : u.filter) == null ? void 0 : Y.replace("(", gl)) == null ? void 0 : Ce.split(gl)) == null ? void 0 : pe[1]);
|
|
8403
|
-
let Ke = (we = (J = (
|
|
8383
|
+
let Ke = (we = (J = (_e = b.filter) == null ? void 0 : _e.replace("(", gl)) == null ? void 0 : J.split(gl)) == null ? void 0 : we[1];
|
|
8404
8384
|
Ke = Ke == null ? void 0 : Ke.slice(0, (Ke == null ? void 0 : Ke.length) - 1), Ke = ga(Ke, ","), b.calculatorFilters = u.calculatorFilters, b.fatherSyncContents = (u == null ? void 0 : u.fatherSyncContents) ?? [], b.sonSyncContents = u.sonSyncContents ?? [], b.fatherSyncContents = (Pe = b == null ? void 0 : b.fatherSyncContents) == null ? void 0 : Pe.map((Re) => {
|
|
8405
8385
|
var Ie, Qe;
|
|
8406
8386
|
return Re != null && Re.groups || (Re.groups = (Qe = u.name) == null ? void 0 : Qe[((Ie = u.name) == null ? void 0 : Ie.length) - 1]), Re;
|
|
@@ -8442,7 +8422,7 @@ const fs = (l, C, c, h) => {
|
|
|
8442
8422
|
!Array.isArray(ne) && (((nl = ne == null ? void 0 : ne.value) == null ? void 0 : nl.length) > 0 || ((Ze = ne == null ? void 0 : ne.tableColumns) == null ? void 0 : Ze.length) > 0) && (((a = ne == null ? void 0 : ne.value) == null ? void 0 : a.length) > 0 ? u.value = ne == null ? void 0 : ne.value : (u.value = (g = (v = Al(ne)) == null ? void 0 : v.tableColumns) == null ? void 0 : g.map((b) => {
|
|
8443
8423
|
var Me;
|
|
8444
8424
|
return b.disabled = !0, b.width = (Me = ne == null ? void 0 : ne.tableColumns) == null ? void 0 : Me.length, b;
|
|
8445
|
-
}), u.filter = u.filter === "" ? "(@Related: true)" : ((q = u.filter) == null ? void 0 : q.slice(0, ((
|
|
8425
|
+
}), u.filter = u.filter === "" ? "(@Related: true)" : ((q = u.filter) == null ? void 0 : q.slice(0, ((S = u.filter) == null ? void 0 : S.length) - 1)) + ",@Related: true)")), D.push(u);
|
|
8446
8426
|
} else if (((ce = u == null ? void 0 : u.tableContents) == null ? void 0 : ce.length) > 0 && ((j = u == null ? void 0 : u.tableColumns) == null ? void 0 : j.length) === 0) {
|
|
8447
8427
|
let be = ((N = (k = (i = R == null ? void 0 : R.key) == null ? void 0 : i.split("/")) == null ? void 0 : k.filter((ne, b) => {
|
|
8448
8428
|
var Me, De;
|
|
@@ -8550,7 +8530,7 @@ const fs = (l, C, c, h) => {
|
|
|
8550
8530
|
case "client":
|
|
8551
8531
|
return Ts;
|
|
8552
8532
|
case "three":
|
|
8553
|
-
return
|
|
8533
|
+
return _s;
|
|
8554
8534
|
}
|
|
8555
8535
|
}), u = (w) => {
|
|
8556
8536
|
const m = document.documentElement;
|
|
@@ -8642,7 +8622,7 @@ const fs = (l, C, c, h) => {
|
|
|
8642
8622
|
var al;
|
|
8643
8623
|
let Te = ze.get(he == null ? void 0 : he.key) ?? [];
|
|
8644
8624
|
(Te == null ? void 0 : Te.length) > 0 && ((al = he.contents) == null || al.forEach((qe) => {
|
|
8645
|
-
var g,
|
|
8625
|
+
var g, S;
|
|
8646
8626
|
let nl = Te == null ? void 0 : Te.find((q) => {
|
|
8647
8627
|
var ce, j;
|
|
8648
8628
|
return ((j = qe == null ? void 0 : qe.name) == null ? void 0 : j[((ce = qe == null ? void 0 : qe.name) == null ? void 0 : ce.length) - 1]) === (q == null ? void 0 : q.property_name);
|
|
@@ -8652,7 +8632,7 @@ const fs = (l, C, c, h) => {
|
|
|
8652
8632
|
let ce = ot(q, a);
|
|
8653
8633
|
return ce.id = "1", ce;
|
|
8654
8634
|
});
|
|
8655
|
-
((
|
|
8635
|
+
((S = qe == null ? void 0 : qe.tableContents) == null ? void 0 : S.length) > 0 && Ye.push({
|
|
8656
8636
|
tableName: Ze,
|
|
8657
8637
|
tableContents: v
|
|
8658
8638
|
});
|
|
@@ -8666,7 +8646,7 @@ const fs = (l, C, c, h) => {
|
|
|
8666
8646
|
const dl = await L(), fl = (me = (Be = (X = dl == null ? void 0 : dl.data) == null ? void 0 : X.result) == null ? void 0 : Be[0]) == null ? void 0 : me.object_id;
|
|
8667
8647
|
c.setHomepageBackgroundTableId(fl);
|
|
8668
8648
|
} catch (Oe) {
|
|
8669
|
-
console.error(Oe),
|
|
8649
|
+
console.error(Oe), _l.error("模型内容错误");
|
|
8670
8650
|
}
|
|
8671
8651
|
M.setImportLoading(!1);
|
|
8672
8652
|
},
|
|
@@ -8857,7 +8837,7 @@ const hu = (l) => {
|
|
|
8857
8837
|
initExecute: P,
|
|
8858
8838
|
initAssignMethodToPlatform: async (L) => await u(L)
|
|
8859
8839
|
};
|
|
8860
|
-
}, mu = { class: "method-library" }, wu = { class: "method-list" }, ku = ["onClick", "title"], Au = { class: "method-name" }, Iu = { class: "operate" }, Mu = { class: "library-right-card" },
|
|
8840
|
+
}, mu = { class: "method-library" }, wu = { class: "method-list" }, ku = ["onClick", "title"], Au = { class: "method-name" }, Iu = { class: "operate" }, Mu = { class: "library-right-card" }, Su = { class: "method-operate" }, _u = { class: "operate-right" }, Tu = { class: "method-detail" }, Bu = { class: "detail-form-wrapper" }, Eu = { class: "detail-footer" }, Du = { class: "footer-right" }, Pu = /* @__PURE__ */ Bl({
|
|
8861
8841
|
__name: "index",
|
|
8862
8842
|
setup(l) {
|
|
8863
8843
|
const { isSuperAdmin: C, initMethodItem: c, initMethodList: h, initCreate: M, initUpdate: U, initDelete: I, initExecute: x } = $t(), R = B([]), D = async (Be) => {
|
|
@@ -8957,7 +8937,7 @@ const hu = (l) => {
|
|
|
8957
8937
|
const Oe = await x(me);
|
|
8958
8938
|
await ve(Oe);
|
|
8959
8939
|
} catch {
|
|
8960
|
-
|
|
8940
|
+
_l.error("执行失败");
|
|
8961
8941
|
} finally {
|
|
8962
8942
|
Be.close();
|
|
8963
8943
|
}
|
|
@@ -8970,11 +8950,11 @@ const hu = (l) => {
|
|
|
8970
8950
|
class: "library-left-card",
|
|
8971
8951
|
"body-class": "library-left-card-body"
|
|
8972
8952
|
}, {
|
|
8973
|
-
header: o(() => me[7] || (me[7] = [
|
|
8953
|
+
header: o(() => [...me[7] || (me[7] = [
|
|
8974
8954
|
V("div", { class: "method-list-header" }, [
|
|
8975
8955
|
V("div", { class: "title" }, "方法列表")
|
|
8976
8956
|
], -1)
|
|
8977
|
-
])),
|
|
8957
|
+
])]),
|
|
8978
8958
|
default: o(() => [
|
|
8979
8959
|
V("div", wu, [
|
|
8980
8960
|
(f(!0), $(tl, null, ul(R.value, (y) => {
|
|
@@ -9001,18 +8981,17 @@ const hu = (l) => {
|
|
|
9001
8981
|
_: 1
|
|
9002
8982
|
}),
|
|
9003
8983
|
V("div", Mu, [
|
|
9004
|
-
V("div",
|
|
8984
|
+
V("div", Su, [
|
|
9005
8985
|
me[9] || (me[9] = V("div", { class: "operate-left" }, null, -1)),
|
|
9006
|
-
V("div",
|
|
8986
|
+
V("div", _u, [
|
|
9007
8987
|
s(il, {
|
|
9008
8988
|
type: "primary",
|
|
9009
8989
|
onClick: me[0] || (me[0] = (y) => e())
|
|
9010
8990
|
}, {
|
|
9011
|
-
default: o(() => me[8] || (me[8] = [
|
|
9012
|
-
cl("创建方法")
|
|
9013
|
-
])),
|
|
9014
|
-
_: 1
|
|
9015
|
-
__: [8]
|
|
8991
|
+
default: o(() => [...me[8] || (me[8] = [
|
|
8992
|
+
cl("创建方法", -1)
|
|
8993
|
+
])]),
|
|
8994
|
+
_: 1
|
|
9016
8995
|
})
|
|
9017
8996
|
])
|
|
9018
8997
|
]),
|
|
@@ -9174,22 +9153,20 @@ const hu = (l) => {
|
|
|
9174
9153
|
type: "primary",
|
|
9175
9154
|
onClick: w
|
|
9176
9155
|
}, {
|
|
9177
|
-
default: o(() => me[10] || (me[10] = [
|
|
9178
|
-
cl("保存")
|
|
9179
|
-
])),
|
|
9180
|
-
_: 1
|
|
9181
|
-
__: [10]
|
|
9156
|
+
default: o(() => [...me[10] || (me[10] = [
|
|
9157
|
+
cl("保存", -1)
|
|
9158
|
+
])]),
|
|
9159
|
+
_: 1
|
|
9182
9160
|
}),
|
|
9183
9161
|
u.value.id ? (f(), fe(il, {
|
|
9184
9162
|
key: 0,
|
|
9185
9163
|
type: "primary",
|
|
9186
9164
|
onClick: me[6] || (me[6] = (y) => X())
|
|
9187
9165
|
}, {
|
|
9188
|
-
default: o(() => me[11] || (me[11] = [
|
|
9189
|
-
cl("执行")
|
|
9190
|
-
])),
|
|
9191
|
-
_: 1
|
|
9192
|
-
__: [11]
|
|
9166
|
+
default: o(() => [...me[11] || (me[11] = [
|
|
9167
|
+
cl("执行", -1)
|
|
9168
|
+
])]),
|
|
9169
|
+
_: 1
|
|
9193
9170
|
})) : je("", !0)
|
|
9194
9171
|
])
|
|
9195
9172
|
])
|
|
@@ -9222,7 +9199,7 @@ const hu = (l) => {
|
|
|
9222
9199
|
"destroy-on-close": "",
|
|
9223
9200
|
"show-close": !1
|
|
9224
9201
|
}, {
|
|
9225
|
-
header: o(() => x[1] || (x[1] = [])),
|
|
9202
|
+
header: o(() => [...x[1] || (x[1] = [])]),
|
|
9226
9203
|
default: o(() => [
|
|
9227
9204
|
V("div", Ru, [
|
|
9228
9205
|
V("div", xu, [
|
|
@@ -9236,7 +9213,7 @@ const hu = (l) => {
|
|
|
9236
9213
|
s(Pu)
|
|
9237
9214
|
])
|
|
9238
9215
|
]),
|
|
9239
|
-
footer: o(() => x[2] || (x[2] = [])),
|
|
9216
|
+
footer: o(() => [...x[2] || (x[2] = [])]),
|
|
9240
9217
|
_: 1
|
|
9241
9218
|
}, 8, ["modelValue"]);
|
|
9242
9219
|
};
|
|
@@ -9332,9 +9309,9 @@ const hu = (l) => {
|
|
|
9332
9309
|
"destroy-on-close": "",
|
|
9333
9310
|
modalClass: "allocation-modal"
|
|
9334
9311
|
}, {
|
|
9335
|
-
header: o(() => T[1] || (T[1] = [
|
|
9312
|
+
header: o(() => [...T[1] || (T[1] = [
|
|
9336
9313
|
V("div", null, "方法分配", -1)
|
|
9337
|
-
])),
|
|
9314
|
+
])]),
|
|
9338
9315
|
default: o(() => [
|
|
9339
9316
|
V("div", Qu, [
|
|
9340
9317
|
s(Lu, {
|
|
@@ -9485,7 +9462,7 @@ const hu = (l) => {
|
|
|
9485
9462
|
value: ""
|
|
9486
9463
|
});
|
|
9487
9464
|
if (!H || (H == null ? void 0 : H.length) <= 1) {
|
|
9488
|
-
|
|
9465
|
+
_l.warning("不能删除唯一模型");
|
|
9489
9466
|
return;
|
|
9490
9467
|
}
|
|
9491
9468
|
const Fe = ca.service({
|
|
@@ -9512,9 +9489,9 @@ const hu = (l) => {
|
|
|
9512
9489
|
}, sl = await Promise.all([ws(Ne), jn({
|
|
9513
9490
|
platId: parseInt((Je = L == null ? void 0 : L.value) == null ? void 0 : Je.plat_id)
|
|
9514
9491
|
})]);
|
|
9515
|
-
Xe = sl == null ? void 0 : sl.every((
|
|
9516
|
-
var
|
|
9517
|
-
return ((
|
|
9492
|
+
Xe = sl == null ? void 0 : sl.every((Se) => {
|
|
9493
|
+
var _;
|
|
9494
|
+
return ((_ = Se == null ? void 0 : Se.data) == null ? void 0 : _.code) === 200;
|
|
9518
9495
|
}), Xe && await Me();
|
|
9519
9496
|
});
|
|
9520
9497
|
} catch (Ne) {
|
|
@@ -9557,7 +9534,7 @@ const hu = (l) => {
|
|
|
9557
9534
|
fullscreen: !0
|
|
9558
9535
|
}), g = async () => {
|
|
9559
9536
|
M("open"), Me();
|
|
9560
|
-
},
|
|
9537
|
+
}, S = () => {
|
|
9561
9538
|
v.show = !1, M("close");
|
|
9562
9539
|
};
|
|
9563
9540
|
vl(() => U == null ? void 0 : U.modelValue, (ae) => {
|
|
@@ -9720,16 +9697,16 @@ const hu = (l) => {
|
|
|
9720
9697
|
// 业务类型字段
|
|
9721
9698
|
} = H;
|
|
9722
9699
|
return Array.isArray(ae) ? ae == null ? void 0 : ae.map((Je) => {
|
|
9723
|
-
const
|
|
9700
|
+
const Se = {
|
|
9724
9701
|
[Fe]: Je[Fe] || Je[Ne] || "管理系统",
|
|
9725
9702
|
value: Je[Fe] || Je[Ne] || "管理系统",
|
|
9726
9703
|
isPlat: !!(Je != null && Je.platType)
|
|
9727
9704
|
};
|
|
9728
|
-
return Je[sl] && Array.isArray(Je[sl]) && (
|
|
9729
|
-
[Fe]:
|
|
9730
|
-
value:
|
|
9731
|
-
isPlat: !!(
|
|
9732
|
-
}))),
|
|
9705
|
+
return Je[sl] && Array.isArray(Je[sl]) && (Se[Xe] = Je[sl].map((_) => ({
|
|
9706
|
+
[Fe]: _[Fe] || _.businessType || "",
|
|
9707
|
+
value: _[Fe] || _.businessType || "",
|
|
9708
|
+
isPlat: !!(_ != null && _.platType)
|
|
9709
|
+
}))), Se;
|
|
9733
9710
|
}) : [];
|
|
9734
9711
|
}
|
|
9735
9712
|
const re = async () => {
|
|
@@ -9750,14 +9727,14 @@ const hu = (l) => {
|
|
|
9750
9727
|
let H;
|
|
9751
9728
|
try {
|
|
9752
9729
|
if (!((Fe = L == null ? void 0 : L.value) != null && Fe.user_id)) return;
|
|
9753
|
-
const Je = (ae == null ? void 0 : ae.value) === "管理系统" ? "" : ae == null ? void 0 : ae.value,
|
|
9730
|
+
const Je = (ae == null ? void 0 : ae.value) === "管理系统" ? "" : ae == null ? void 0 : ae.value, Se = await ks({
|
|
9754
9731
|
userId: (Xe = L == null ? void 0 : L.value) == null ? void 0 : Xe.user_id,
|
|
9755
9732
|
platType: ae != null && ae.isPlat ? Je : "",
|
|
9756
9733
|
businessType: ae != null && ae.isPlat ? "" : Je
|
|
9757
9734
|
});
|
|
9758
|
-
if (((Ne =
|
|
9759
|
-
const
|
|
9760
|
-
t.value =
|
|
9735
|
+
if (((Ne = Se == null ? void 0 : Se.data) == null ? void 0 : Ne.code) === 200) {
|
|
9736
|
+
const _ = ((sl = Se == null ? void 0 : Se.data) == null ? void 0 : sl.result) || [];
|
|
9737
|
+
t.value = _, H = _;
|
|
9761
9738
|
}
|
|
9762
9739
|
} catch (Je) {
|
|
9763
9740
|
throw Je;
|
|
@@ -9780,7 +9757,7 @@ const hu = (l) => {
|
|
|
9780
9757
|
(ae = De.value) == null || ae.openDialog();
|
|
9781
9758
|
};
|
|
9782
9759
|
return C({ openDialog: w }), (ae, H) => {
|
|
9783
|
-
const Fe = le("svg-icon"), Xe = le("el-button"), Ne = le("el-tree"), sl = le("el-card"), Je = le("el-input"),
|
|
9760
|
+
const Fe = le("svg-icon"), Xe = le("el-button"), Ne = le("el-tree"), sl = le("el-card"), Je = le("el-input"), Se = le("el-table-column"), _ = le("el-icon"), oe = le("el-image"), ke = le("el-tag"), Ae = le("el-link"), He = le("el-table"), K = le("el-dialog"), te = le("el-cascader"), xe = le("el-form-item"), Ve = le("el-col"), Z = le("el-row"), Le = le("el-upload"), z = le("el-form");
|
|
9784
9761
|
return f(), $(tl, null, [
|
|
9785
9762
|
s(K, {
|
|
9786
9763
|
class: "model-management-dialog",
|
|
@@ -9788,9 +9765,9 @@ const hu = (l) => {
|
|
|
9788
9765
|
"onUpdate:modelValue": H[2] || (H[2] = (p) => v.show = p),
|
|
9789
9766
|
title: v.title,
|
|
9790
9767
|
fullscreen: v.fullscreen,
|
|
9791
|
-
"before-close":
|
|
9768
|
+
"before-close": S,
|
|
9792
9769
|
onOpen: g,
|
|
9793
|
-
onClose:
|
|
9770
|
+
onClose: S,
|
|
9794
9771
|
"destroy-on-close": "",
|
|
9795
9772
|
"show-close": !1,
|
|
9796
9773
|
style: { "background-color": "#f3f3f3" }
|
|
@@ -9813,11 +9790,10 @@ const hu = (l) => {
|
|
|
9813
9790
|
type: "primary",
|
|
9814
9791
|
onClick: ne
|
|
9815
9792
|
}, {
|
|
9816
|
-
default: o(() => H[8] || (H[8] = [
|
|
9817
|
-
cl("查看所有")
|
|
9818
|
-
])),
|
|
9819
|
-
_: 1
|
|
9820
|
-
__: [8]
|
|
9793
|
+
default: o(() => [...H[8] || (H[8] = [
|
|
9794
|
+
cl("查看所有", -1)
|
|
9795
|
+
])]),
|
|
9796
|
+
_: 1
|
|
9821
9797
|
})
|
|
9822
9798
|
]),
|
|
9823
9799
|
default: o(() => [
|
|
@@ -9857,21 +9833,19 @@ const hu = (l) => {
|
|
|
9857
9833
|
type: "primary",
|
|
9858
9834
|
onClick: ue
|
|
9859
9835
|
}, {
|
|
9860
|
-
default: o(() => H[10] || (H[10] = [
|
|
9861
|
-
cl("方法库")
|
|
9862
|
-
])),
|
|
9863
|
-
_: 1
|
|
9864
|
-
__: [10]
|
|
9836
|
+
default: o(() => [...H[10] || (H[10] = [
|
|
9837
|
+
cl("方法库", -1)
|
|
9838
|
+
])]),
|
|
9839
|
+
_: 1
|
|
9865
9840
|
}),
|
|
9866
9841
|
s(Xe, {
|
|
9867
9842
|
type: "primary",
|
|
9868
9843
|
onClick: H[1] || (H[1] = (p) => il())
|
|
9869
9844
|
}, {
|
|
9870
|
-
default: o(() => H[11] || (H[11] = [
|
|
9871
|
-
cl("创建系统")
|
|
9872
|
-
])),
|
|
9873
|
-
_: 1
|
|
9874
|
-
__: [11]
|
|
9845
|
+
default: o(() => [...H[11] || (H[11] = [
|
|
9846
|
+
cl("创建系统", -1)
|
|
9847
|
+
])]),
|
|
9848
|
+
_: 1
|
|
9875
9849
|
})
|
|
9876
9850
|
])
|
|
9877
9851
|
])
|
|
@@ -9889,13 +9863,13 @@ const hu = (l) => {
|
|
|
9889
9863
|
onRowDblclick: q
|
|
9890
9864
|
}, {
|
|
9891
9865
|
default: o(() => [
|
|
9892
|
-
s(
|
|
9866
|
+
s(Se, {
|
|
9893
9867
|
type: "index",
|
|
9894
9868
|
label: "序号",
|
|
9895
9869
|
width: "70",
|
|
9896
9870
|
align: "center"
|
|
9897
9871
|
}),
|
|
9898
|
-
(f(!0), $(tl, null, ul(A.value, (p) => (f(), fe(
|
|
9872
|
+
(f(!0), $(tl, null, ul(A.value, (p) => (f(), fe(Se, {
|
|
9899
9873
|
"min-width": p == null ? void 0 : p.minWidth,
|
|
9900
9874
|
key: p == null ? void 0 : p.prop,
|
|
9901
9875
|
prop: p == null ? void 0 : p.prop,
|
|
@@ -9911,7 +9885,7 @@ const hu = (l) => {
|
|
|
9911
9885
|
style: { width: "40px", height: "40px", "border-radius": "4px", cursor: "pointer" }
|
|
9912
9886
|
}, {
|
|
9913
9887
|
error: o(() => [
|
|
9914
|
-
s(
|
|
9888
|
+
s(_, {
|
|
9915
9889
|
style: { width: "100%", height: "100%" },
|
|
9916
9890
|
title: "暂无图片"
|
|
9917
9891
|
}, {
|
|
@@ -9921,8 +9895,8 @@ const hu = (l) => {
|
|
|
9921
9895
|
_: 1
|
|
9922
9896
|
})
|
|
9923
9897
|
]),
|
|
9924
|
-
_:
|
|
9925
|
-
},
|
|
9898
|
+
_: 1
|
|
9899
|
+
}, 8, ["src"])) : je("", !0),
|
|
9926
9900
|
(p == null ? void 0 : p.render) === "tag" && (Y != null && Y[p == null ? void 0 : p.prop]) ? (f(), fe(ke, {
|
|
9927
9901
|
key: 1,
|
|
9928
9902
|
style: { color: "#fff" },
|
|
@@ -9937,7 +9911,7 @@ const hu = (l) => {
|
|
|
9937
9911
|
]),
|
|
9938
9912
|
_: 2
|
|
9939
9913
|
}, 1032, ["min-width", "prop", "label", "fixed"]))), 128)),
|
|
9940
|
-
s(
|
|
9914
|
+
s(Se, {
|
|
9941
9915
|
fixed: "right",
|
|
9942
9916
|
prop: "operate",
|
|
9943
9917
|
label: "操作",
|
|
@@ -10156,7 +10130,7 @@ const hu = (l) => {
|
|
|
10156
10130
|
class: "logo",
|
|
10157
10131
|
src: ve.value.logoBlobUrl
|
|
10158
10132
|
}, null, 8, td)
|
|
10159
|
-
])) : (f(), fe(
|
|
10133
|
+
])) : (f(), fe(_, {
|
|
10160
10134
|
key: 1,
|
|
10161
10135
|
class: "logo-uploader-icon"
|
|
10162
10136
|
}, {
|
|
@@ -10254,7 +10228,7 @@ const hu = (l) => {
|
|
|
10254
10228
|
content: h
|
|
10255
10229
|
};
|
|
10256
10230
|
} };
|
|
10257
|
-
}, ud = { class: "workspace-wrapper" }, dd = { class: "workspace-header" }, pd = { class: "model-back" }, fd = { class: "workspace-body" }, vd = { class: "body-left" }, hd = { class: "operate-wrapper" }, gd = ["icon"], yd = ["onClick"], bd = { class: "operate-label" }, Cd = { class: "body-right" }, md = { class: "right-content" }, wd = { class: "history-list" }, kd = ["onDblclick"], Ad = ["title"], Id = ["title"], Md = ["title"],
|
|
10231
|
+
}, ud = { class: "workspace-wrapper" }, dd = { class: "workspace-header" }, pd = { class: "model-back" }, fd = { class: "workspace-body" }, vd = { class: "body-left" }, hd = { class: "operate-wrapper" }, gd = ["icon"], yd = ["onClick"], bd = { class: "operate-label" }, Cd = { class: "body-right" }, md = { class: "right-content" }, wd = { class: "history-list" }, kd = ["onDblclick"], Ad = ["title"], Id = ["title"], Md = ["title"], Sd = /* @__PURE__ */ Bl({
|
|
10258
10232
|
__name: "index",
|
|
10259
10233
|
props: {
|
|
10260
10234
|
historyData: { default: () => [] }
|
|
@@ -10349,7 +10323,7 @@ const hu = (l) => {
|
|
|
10349
10323
|
], -1)),
|
|
10350
10324
|
V("div", md, [
|
|
10351
10325
|
V("div", wd, [
|
|
10352
|
-
(f(!0), $(tl, null, ul(
|
|
10326
|
+
(f(!0), $(tl, null, ul(l.historyData, (se) => (f(), $("div", {
|
|
10353
10327
|
class: "history-item",
|
|
10354
10328
|
key: se.path,
|
|
10355
10329
|
onDblclick: (L) => e(se)
|
|
@@ -10377,7 +10351,7 @@ const hu = (l) => {
|
|
|
10377
10351
|
}, 8, ["modelValue", "title", "fullscreen"]);
|
|
10378
10352
|
};
|
|
10379
10353
|
}
|
|
10380
|
-
}),
|
|
10354
|
+
}), _d = { class: "add-model-content" }, Td = {
|
|
10381
10355
|
key: 0,
|
|
10382
10356
|
class: "model-operate"
|
|
10383
10357
|
}, Bd = { class: "model-select" }, Ed = { class: "model-fill" }, Dd = {
|
|
@@ -10470,7 +10444,7 @@ const hu = (l) => {
|
|
|
10470
10444
|
}), j[A.name] = b, j[A.name + "Content"] = A;
|
|
10471
10445
|
}
|
|
10472
10446
|
}), j.extra = G;
|
|
10473
|
-
const t = await Mo(), d = await
|
|
10447
|
+
const t = await Mo(), d = await So();
|
|
10474
10448
|
j.singleRobotData = t, j.doubleRobotData = d, h("threeData", j);
|
|
10475
10449
|
}
|
|
10476
10450
|
},
|
|
@@ -10571,7 +10545,7 @@ const hu = (l) => {
|
|
|
10571
10545
|
var i;
|
|
10572
10546
|
const j = (i = w == null ? void 0 : w.value) == null ? void 0 : i.plat_id;
|
|
10573
10547
|
if (!j) {
|
|
10574
|
-
|
|
10548
|
+
_l.error("无法获取系统ID");
|
|
10575
10549
|
return;
|
|
10576
10550
|
}
|
|
10577
10551
|
Be.value = !1, ie.setImportLoading(!0);
|
|
@@ -10583,9 +10557,9 @@ const hu = (l) => {
|
|
|
10583
10557
|
const A = t.match(/filename="?([^"]+)"?/);
|
|
10584
10558
|
A && A.length === 2 && (G = A[1].replace(".txt", ".ild"));
|
|
10585
10559
|
}
|
|
10586
|
-
await al(N, G, ".ild") &&
|
|
10560
|
+
await al(N, G, ".ild") && _l.success("导出成功");
|
|
10587
10561
|
} catch {
|
|
10588
|
-
|
|
10562
|
+
_l.error("导出失败");
|
|
10589
10563
|
} finally {
|
|
10590
10564
|
ie.setImportLoading(!1);
|
|
10591
10565
|
}
|
|
@@ -10593,7 +10567,7 @@ const hu = (l) => {
|
|
|
10593
10567
|
var i;
|
|
10594
10568
|
const j = (i = w == null ? void 0 : w.value) == null ? void 0 : i.plat_id;
|
|
10595
10569
|
if (!j) {
|
|
10596
|
-
|
|
10570
|
+
_l.error("无法获取系统ID");
|
|
10597
10571
|
return;
|
|
10598
10572
|
}
|
|
10599
10573
|
Be.value = !1, ie.setImportLoading(!0);
|
|
@@ -10605,9 +10579,9 @@ const hu = (l) => {
|
|
|
10605
10579
|
const A = t.match(/filename="?([^"]+)"?/);
|
|
10606
10580
|
A && A.length === 2 && (G = A[1].replace(".txt", ".ild"));
|
|
10607
10581
|
}
|
|
10608
|
-
await al(N, G, ".ild") &&
|
|
10582
|
+
await al(N, G, ".ild") && _l.success("导出成功");
|
|
10609
10583
|
} catch {
|
|
10610
|
-
|
|
10584
|
+
_l.error("导出失败");
|
|
10611
10585
|
} finally {
|
|
10612
10586
|
ie.setImportLoading(!1);
|
|
10613
10587
|
}
|
|
@@ -10644,7 +10618,7 @@ const hu = (l) => {
|
|
|
10644
10618
|
h("executeWorkspace", {
|
|
10645
10619
|
type: st.GET_HISTORY_DATA
|
|
10646
10620
|
}), (j = v.value) == null || j.openDialog();
|
|
10647
|
-
},
|
|
10621
|
+
}, S = async (j) => {
|
|
10648
10622
|
const { type: i } = j;
|
|
10649
10623
|
if (i === st.SAVE) {
|
|
10650
10624
|
const k = ca.service({
|
|
@@ -10668,9 +10642,9 @@ const hu = (l) => {
|
|
|
10668
10642
|
background: "rgba(0, 0, 0, 0.7)"
|
|
10669
10643
|
});
|
|
10670
10644
|
try {
|
|
10671
|
-
await a(), q(), (i = v.value) == null || i.closeDialog(),
|
|
10645
|
+
await a(), q(), (i = v.value) == null || i.closeDialog(), _l.success("打开成功");
|
|
10672
10646
|
} catch {
|
|
10673
|
-
|
|
10647
|
+
_l.error("打开失败");
|
|
10674
10648
|
} finally {
|
|
10675
10649
|
j.close();
|
|
10676
10650
|
}
|
|
@@ -10679,7 +10653,7 @@ const hu = (l) => {
|
|
|
10679
10653
|
j && ce();
|
|
10680
10654
|
}, { deep: !0 }), (j, i) => {
|
|
10681
10655
|
const k = le("svg-icon"), N = le("el-button"), G = le("el-dialog");
|
|
10682
|
-
return f(), $("div",
|
|
10656
|
+
return f(), $("div", _d, [
|
|
10683
10657
|
(c == null ? void 0 : c.mode) === "edit" ? (f(), $("div", Td, [
|
|
10684
10658
|
V("div", Bd, [
|
|
10685
10659
|
s(qt)
|
|
@@ -10723,10 +10697,9 @@ const hu = (l) => {
|
|
|
10723
10697
|
s(k, { name: "model" })
|
|
10724
10698
|
]),
|
|
10725
10699
|
default: o(() => [
|
|
10726
|
-
i[2] || (i[2] = cl(" 模型 "))
|
|
10700
|
+
i[2] || (i[2] = cl(" 模型 ", -1))
|
|
10727
10701
|
]),
|
|
10728
|
-
_: 1
|
|
10729
|
-
__: [2]
|
|
10702
|
+
_: 1
|
|
10730
10703
|
})) : je("", !0)
|
|
10731
10704
|
];
|
|
10732
10705
|
}),
|
|
@@ -10740,10 +10713,9 @@ const hu = (l) => {
|
|
|
10740
10713
|
s(k, { name: "模板管理" })
|
|
10741
10714
|
]),
|
|
10742
10715
|
default: o(() => [
|
|
10743
|
-
i[3] || (i[3] = cl(" 模型列表 "))
|
|
10716
|
+
i[3] || (i[3] = cl(" 模型列表 ", -1))
|
|
10744
10717
|
]),
|
|
10745
|
-
_: 1
|
|
10746
|
-
__: [3]
|
|
10718
|
+
_: 1
|
|
10747
10719
|
}),
|
|
10748
10720
|
s(N, {
|
|
10749
10721
|
onClick: y,
|
|
@@ -10763,10 +10735,9 @@ const hu = (l) => {
|
|
|
10763
10735
|
style: { display: "none" },
|
|
10764
10736
|
multiple: ""
|
|
10765
10737
|
}, null, 32)),
|
|
10766
|
-
i[4] || (i[4] = cl(" 导入模型 "))
|
|
10738
|
+
i[4] || (i[4] = cl(" 导入模型 ", -1))
|
|
10767
10739
|
]),
|
|
10768
|
-
_: 1
|
|
10769
|
-
__: [4]
|
|
10740
|
+
_: 1
|
|
10770
10741
|
}),
|
|
10771
10742
|
s(N, {
|
|
10772
10743
|
onClick: Te,
|
|
@@ -10776,10 +10747,9 @@ const hu = (l) => {
|
|
|
10776
10747
|
s(k, { name: "export" })
|
|
10777
10748
|
]),
|
|
10778
10749
|
default: o(() => [
|
|
10779
|
-
i[5] || (i[5] = cl(" 导出模型 "))
|
|
10750
|
+
i[5] || (i[5] = cl(" 导出模型 ", -1))
|
|
10780
10751
|
]),
|
|
10781
|
-
_: 1
|
|
10782
|
-
__: [5]
|
|
10752
|
+
_: 1
|
|
10783
10753
|
}),
|
|
10784
10754
|
s(N, {
|
|
10785
10755
|
onClick: a,
|
|
@@ -10789,10 +10759,9 @@ const hu = (l) => {
|
|
|
10789
10759
|
s(k, { name: "clear" })
|
|
10790
10760
|
]),
|
|
10791
10761
|
default: o(() => [
|
|
10792
|
-
i[6] || (i[6] = cl(" 清空模型 "))
|
|
10762
|
+
i[6] || (i[6] = cl(" 清空模型 ", -1))
|
|
10793
10763
|
]),
|
|
10794
|
-
_: 1
|
|
10795
|
-
__: [6]
|
|
10764
|
+
_: 1
|
|
10796
10765
|
})
|
|
10797
10766
|
])
|
|
10798
10767
|
]),
|
|
@@ -10807,10 +10776,9 @@ const hu = (l) => {
|
|
|
10807
10776
|
s(k, { name: "工作台" })
|
|
10808
10777
|
]),
|
|
10809
10778
|
default: o(() => [
|
|
10810
|
-
i[7] || (i[7] = cl(" 工作区 "))
|
|
10779
|
+
i[7] || (i[7] = cl(" 工作区 ", -1))
|
|
10811
10780
|
]),
|
|
10812
|
-
_: 1
|
|
10813
|
-
__: [7]
|
|
10781
|
+
_: 1
|
|
10814
10782
|
})) : je("", !0)
|
|
10815
10783
|
]),
|
|
10816
10784
|
_: 1
|
|
@@ -10823,11 +10791,11 @@ const hu = (l) => {
|
|
|
10823
10791
|
onOpen: me,
|
|
10824
10792
|
onClose: Oe
|
|
10825
10793
|
}, null, 8, ["modelValue"]),
|
|
10826
|
-
s(
|
|
10794
|
+
s(Sd, {
|
|
10827
10795
|
ref_key: "workspaceDialog",
|
|
10828
10796
|
ref: v,
|
|
10829
10797
|
"history-data": l.workspaceHistoryData,
|
|
10830
|
-
onExecuteWorkspace:
|
|
10798
|
+
onExecuteWorkspace: S
|
|
10831
10799
|
}, null, 8, ["history-data"]),
|
|
10832
10800
|
s(G, {
|
|
10833
10801
|
modelValue: Be.value,
|
|
@@ -10842,28 +10810,25 @@ const hu = (l) => {
|
|
|
10842
10810
|
type: "primary",
|
|
10843
10811
|
onClick: qe
|
|
10844
10812
|
}, {
|
|
10845
|
-
default: o(() => i[8] || (i[8] = [
|
|
10846
|
-
cl("导出模型")
|
|
10847
|
-
])),
|
|
10848
|
-
_: 1
|
|
10849
|
-
__: [8]
|
|
10813
|
+
default: o(() => [...i[8] || (i[8] = [
|
|
10814
|
+
cl("导出模型", -1)
|
|
10815
|
+
])]),
|
|
10816
|
+
_: 1
|
|
10850
10817
|
}),
|
|
10851
10818
|
s(N, { disabled: "" }, {
|
|
10852
|
-
default: o(() => i[9] || (i[9] = [
|
|
10853
|
-
cl("导出数据")
|
|
10854
|
-
])),
|
|
10855
|
-
_: 1
|
|
10856
|
-
__: [9]
|
|
10819
|
+
default: o(() => [...i[9] || (i[9] = [
|
|
10820
|
+
cl("导出数据", -1)
|
|
10821
|
+
])]),
|
|
10822
|
+
_: 1
|
|
10857
10823
|
}),
|
|
10858
10824
|
s(N, {
|
|
10859
10825
|
type: "primary",
|
|
10860
10826
|
onClick: nl
|
|
10861
10827
|
}, {
|
|
10862
|
-
default: o(() => i[10] || (i[10] = [
|
|
10863
|
-
cl("导出模型数据")
|
|
10864
|
-
])),
|
|
10865
|
-
_: 1
|
|
10866
|
-
__: [10]
|
|
10828
|
+
default: o(() => [...i[10] || (i[10] = [
|
|
10829
|
+
cl("导出模型数据", -1)
|
|
10830
|
+
])]),
|
|
10831
|
+
_: 1
|
|
10867
10832
|
})
|
|
10868
10833
|
])
|
|
10869
10834
|
]),
|
|
@@ -10872,7 +10837,7 @@ const hu = (l) => {
|
|
|
10872
10837
|
]);
|
|
10873
10838
|
};
|
|
10874
10839
|
}
|
|
10875
|
-
}),
|
|
10840
|
+
}), cp = /* @__PURE__ */ Kl(xd, [["__scopeId", "data-v-a8c2fe98"]]);
|
|
10876
10841
|
export {
|
|
10877
|
-
|
|
10842
|
+
cp as default
|
|
10878
10843
|
};
|