ss-component-new 1.3.622 → 1.3.623
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-5pQpbMEZ.js → MTLLoader-DMhnklB_.js} +2 -2
- package/dist/{URDFLoader-BO26K5-d.js → URDFLoader-BAD5outO.js} +589 -584
- package/dist/{animationData-rL2nYHqW.js → animationData-BivNXwi8.js} +3 -3
- package/dist/{array-DuZM66_g.js → array-DVFpR3i6.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-BIrta5vE.js → iconfont-CtG24-bX.js} +91 -91
- package/dist/{index-B0LBEDkm.js → index-1I7eukQf.js} +7683 -7235
- package/dist/{index-BvkIoiVW.js → index-6qXeMn6b.js} +3 -3
- package/dist/{index-BXh02EAd.js → index-B2LYEScO.js} +4 -4
- package/dist/{index-YvUJL9Us.js → index-B4NcYIuS.js} +1 -1
- package/dist/{index-D8UY4uNQ.js → index-B8NQAdR4.js} +966 -967
- package/dist/{index-rlStojTL.js → index-BFqUz4pN.js} +1 -1
- package/dist/{index-ZdNvgZn9.js → index-BJmov708.js} +3 -3
- package/dist/{index-B1mQwlvc.js → index-BRSmS6mX.js} +574 -609
- package/dist/{index-C2C4Xubh.js → index-BU9xRmBn.js} +5 -5
- package/dist/{index-D9xMYIes.js → index-BfM_hH1v.js} +3 -3
- package/dist/{index-CEdE_NSq.js → index-BjEiOqAI.js} +4 -4
- package/dist/{index-CPW7tdrA.js → index-BkkvdZXm.js} +17 -20
- package/dist/{index-CX8Apbo7.js → index-BybrpYzx.js} +1 -1
- package/dist/{index-CsgdODAE.js → index-C7U5HDoF.js} +6 -6
- package/dist/{index-B0M1YCUY.js → index-CFniuDkF.js} +7 -7
- package/dist/{index-tMqKF2l6.js → index-CM6aWexA.js} +2 -2
- package/dist/{index-CQUr9J0Q.js → index-COpc0s4t.js} +60 -62
- package/dist/{index-BBBCr4Oo.js → index-CT1LWsrT.js} +2 -2
- package/dist/{index-CTGB1BcX.js → index-CjRltPMx.js} +26770 -26595
- 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-C1AGWEl0.js → index-D2Nbhdyp.js} +18 -20
- package/dist/{index-XvX6TMzr.js → index-DCY5J8nu.js} +1 -1
- package/dist/{index-B8XrhVMF.js → index-DErPB-d8.js} +36 -40
- package/dist/{index-C3pboX9W.js → index-DIVct0z6.js} +5 -5
- package/dist/{index-11kpzK0A.js → index-DJrzqi4-.js} +17 -17
- package/dist/{index-DsdWSuDi.js → index-D_PRj4Vs.js} +2335 -2332
- package/dist/{index-D1E8EPxn.js → index-DmILGKv9.js} +57 -61
- package/dist/{index-D8ybTjwW.js → index-Dr6UVDuO.js} +8 -8
- package/dist/index-DwXNsgEY.js +2623 -0
- package/dist/{index-BHtNKL1L.js → index-dD-mKgue.js} +2 -2
- package/dist/{index-BUqviBFi.js → index-dmrMsEJn.js} +29 -35
- package/dist/{index-CAzlTHKw.js → index-eHRjbFnR.js} +148 -157
- package/dist/{index-BRe_6GdA.js → index-nKrk42el.js} +4 -4
- package/dist/{index-BfOy5Rro.js → index-yipj2id1.js} +3 -3
- 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-CoMb-4Xy.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DrICHBhu.js} +27760 -27735
- package/dist/isString-Dxm3W5iX.js +8 -0
- package/dist/{localIcon-D5UoFBU5.js → localIcon-CoJHw5ss.js} +1 -1
- package/dist/{main-C4Ocxkhh.js → main-DK4IZx7n.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/{threeModel-eP_5lGNi.js → threeModel-DyfwUZBe.js} +174 -174
- package/dist/{threePreview-DMxYjkgP.js → threePreview-VgYHwBPZ.js} +12 -12
- package/dist/{threeSceneView-BCi9Iy7Y.js → threeSceneView-B741OdNa.js} +23 -24
- package/dist/{threeSceneViewForCPMPIP-C-O6XT9G.js → threeSceneViewForCPMPIP-UjEFfPgg.js} +16 -17
- package/dist/{threeTrackPathView-DB61-HKo.js → threeTrackPathView-B_uPNM5T.js} +7 -7
- package/dist/{threeViewerHost-CZUXimUc.js → threeViewerHost-BEGDV6UB.js} +4 -4
- package/dist/{urdfTree-BTnijMjA.js → urdfTree-DFTtpJ1T.js} +9 -9
- package/dist/{workpieceTreePanel-Cmcj8MOA.js → workpieceTreePanel-D5BfZ6Fw.js} +56 -60
- package/package.json +1 -1
- package/dist/JSEncrypt-B36c1iN5.js +0 -1983
- package/dist/index-l27pYXil.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/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { computed as wl, defineComponent as Bl, defineProps as At, ref as B, watch as fl, onMounted as Wl, onUnmounted as Na, resolveComponent as ee,
|
|
2
|
-
import { m as It, a as Mt, b as
|
|
3
|
-
import { u as jl, p as yl, s as hl, c as ml, a as Zl, b as zl, j as Ma, d as tt, l as vs, k as ha, e as ka, m as hs, E as ga, n as ft, o as ja, v as Oa, q as Pn, r as gs, t as Rn, i as ys, w as nt, x as ra, y as hn, z as bs, A as xn, B as Cs, C as ms, D as Vn, F as gn, G as ws, H as ks } from "./index-
|
|
4
|
-
import { _ as Wa, s as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { a as Ya, d as Tt, e as Ha, f as Fa, g as Ja, h as za, t as Is, c as Ms, b as
|
|
7
|
-
import { g as Ia, s as
|
|
8
|
-
import { u as jn, g as bn, b as Cn, c as Ps, a as Rs } from "./index-
|
|
9
|
-
import { E as
|
|
10
|
-
import { b as Ks, g as qn, c as Ns, u as Bt, d as ta, e as Ka, o as Wn, l as qs, n as Ws, f as Ys, h as pa, s as lt, t as Hs, i as Fs } from "./index-
|
|
11
|
-
import { d as Js, g as La, a as zs } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-
|
|
12
|
-
import { a as Yn, b as ma, u as Hn, s as aa, n as Xs, r as Ol, o as ba, c as Ca, d as Fn, e as ht, f as Jn, h as Et, i as Gs, t as Zs, j as Ta, k as st, l as ot, m as Da, p as Za, q as Pa, v as $s, w as Ra, x as xa, y as eo, z as Va, A as Ua, B as $a, D as lo, C as ao, E as to, F as mn, G as wn, H as Xl, I as no, J as so, K as it, L as oo, M as io, N as ro, g as zn, O as co, P as kn, Q as uo, R as po } from "./index-
|
|
13
|
-
import "./
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./
|
|
16
|
-
import { c as Dt, f as Ql, b as Xn, a as fo, g as vo, d as An } from "./menuIndex-DAW9B-9g.js";
|
|
1
|
+
import { computed as wl, defineComponent as Bl, defineProps as At, ref as B, watch as fl, onMounted as Wl, onUnmounted as Na, resolveComponent as ee, openBlock as f, createBlock as ye, withCtx as o, createElementVNode as V, toDisplayString as ol, createElementBlock as $, Fragment as ll, renderList as dl, normalizeStyle as Dl, createCommentVNode as Ue, createVNode as n, unref as c, resolveDynamicComponent as ua, provide as Ea, shallowRef as ds, resolveDirective as qa, withDirectives as Yl, vShow as da, createTextVNode as cl, renderSlot as ql, normalizeClass as Hl, createSlots as at, mergeProps as Dn, withModifiers as Ul, defineAsyncComponent as vn, reactive as Rl, nextTick as Fl, withKeys as ps } from "vue";
|
|
2
|
+
import { m as It, a as Mt, b as St, c as fs } from "./array-DVFpR3i6.js";
|
|
3
|
+
import { u as jl, p as yl, s as hl, c as ml, a as Zl, b as zl, j as Ma, d as tt, l as vs, k as ha, e as ka, m as hs, E as ga, n as ft, o as ja, v as Oa, q as Pn, r as gs, t as Rn, i as ys, w as nt, x as ra, y as hn, z as bs, A as xn, B as Cs, C as ms, D as Vn, F as gn, G as ws, H as ks } from "./index-B8NQAdR4.js";
|
|
4
|
+
import { _ as Wa, s as _t, a as As } from "./index-COpc0s4t.js";
|
|
5
|
+
import { useRouter as Sa } from "vue-router";
|
|
6
|
+
import { a as Ya, d as Tt, e as Ha, f as Fa, g as Ja, h as za, t as Is, c as Ms, b as Ss } from "./index-ChNfRlIP.js";
|
|
7
|
+
import { g as Ia, s as _s, a as yn, _ as vt, b as Ts, u as Bs, c as Un, X as Es, Q as Ds } from "./index-1I7eukQf.js";
|
|
8
|
+
import { u as jn, g as bn, b as Cn, c as Ps, a as Rs } from "./index-B4NcYIuS.js";
|
|
9
|
+
import { E as _l, d as On, b as ia, I as xs, s as $l, e as Ln, a as Qn, c as Kn, g as Vs, h as Us, p as Nn, m as js, i as Os, j as Ls, f as Qs } from "./request-BfrhYBTM.js";
|
|
10
|
+
import { b as Ks, g as qn, c as Ns, u as Bt, d as ta, e as Ka, o as Wn, l as qs, n as Ws, f as Ys, h as pa, s as lt, t as Hs, i as Fs } from "./index-D_PRj4Vs.js";
|
|
11
|
+
import { d as Js, g as La, a as zs } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DrICHBhu.js";
|
|
12
|
+
import { a as Yn, b as ma, u as Hn, s as aa, n as Xs, r as Ol, o as ba, c as Ca, d as Fn, e as ht, f as Jn, h as Et, i as Gs, t as Zs, j as Ta, k as st, l as ot, m as Da, p as Za, q as Pa, v as $s, w as Ra, x as xa, y as eo, z as Va, A as Ua, B as $a, D as lo, C as ao, E as to, F as mn, G as wn, H as Xl, I as no, J as so, K as it, L as oo, M as io, N as ro, g as zn, O as co, P as kn, Q as uo, R as po } from "./index-CjRltPMx.js";
|
|
13
|
+
import "./index-CFniuDkF.js";
|
|
14
|
+
import "./index-DCY5J8nu.js";
|
|
15
|
+
import { c as Dt, f as Ql, b as Xn, a as fo, g as vo, d as An } from "./menuIndex-BiUB7t5q.js";
|
|
17
16
|
import { _ as Kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
import { C as ho } from "./index-
|
|
19
|
-
import { S as Tl } from "./index-
|
|
20
|
-
import go from "./threeModel-
|
|
21
|
-
import { _ as na } from "./index.vue_vue_type_script_setup_true_lang-
|
|
22
|
-
import { s as la } from "./index-
|
|
23
|
-
import { T as gt, u as yo, a as bo } from "./threeViewerHost-
|
|
24
|
-
import { s as yt } from "./index-
|
|
25
|
-
import { u as Co } from "./index-
|
|
26
|
-
import { u as mo } from "./index-
|
|
27
|
-
import { u as Gn } from "./index-
|
|
28
|
-
import { T as In } from "./iconfont-
|
|
29
|
-
import { f as wo, a as ko } from "./animationData-
|
|
17
|
+
import { C as ho } from "./index-DErPB-d8.js";
|
|
18
|
+
import { S as Tl } from "./index-dD-mKgue.js";
|
|
19
|
+
import go from "./threeModel-DyfwUZBe.js";
|
|
20
|
+
import { _ as na } from "./index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js";
|
|
21
|
+
import { s as la } from "./index-DJrzqi4-.js";
|
|
22
|
+
import { T as gt, u as yo, a as bo } from "./threeViewerHost-BEGDV6UB.js";
|
|
23
|
+
import { s as yt } from "./index-DwXNsgEY.js";
|
|
24
|
+
import { u as Co } from "./index-CT1LWsrT.js";
|
|
25
|
+
import { u as mo } from "./index-BybrpYzx.js";
|
|
26
|
+
import { u as Gn } from "./index-BfM_hH1v.js";
|
|
27
|
+
import { T as In } from "./iconfont-CtG24-bX.js";
|
|
28
|
+
import { f as wo, a as ko } from "./animationData-BivNXwi8.js";
|
|
30
29
|
jl();
|
|
31
30
|
const Ao = jl(), Zn = async (l, b) => {
|
|
32
31
|
var r, v, M, U;
|
|
@@ -94,7 +93,7 @@ const Ao = jl(), Zn = async (l, b) => {
|
|
|
94
93
|
children: [],
|
|
95
94
|
childMenus: []
|
|
96
95
|
}
|
|
97
|
-
}, $n = "系统管理", Io = "系统管理/角色管理", Mo = "系统管理/部门管理",
|
|
96
|
+
}, $n = "系统管理", Io = "系统管理/角色管理", Mo = "系统管理/部门管理", So = "系统管理/职位管理", Pt = (l) => {
|
|
98
97
|
for (let b = 0; b < l.length; b++) {
|
|
99
98
|
const r = (l == null ? void 0 : l[b]) || {}, { path: v } = r;
|
|
100
99
|
if (v === $n) {
|
|
@@ -102,8 +101,8 @@ const Ao = jl(), Zn = async (l, b) => {
|
|
|
102
101
|
break;
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
|
-
},
|
|
106
|
-
const l =
|
|
104
|
+
}, _o = () => {
|
|
105
|
+
const l = Sa(), b = jl(yl), { menus: r } = hl(b), v = wl(() => {
|
|
107
106
|
var P;
|
|
108
107
|
const R = (P = r.value) == null ? void 0 : P.find((u) => {
|
|
109
108
|
const { path: oe } = u || {};
|
|
@@ -112,7 +111,7 @@ const Ao = jl(), Zn = async (l, b) => {
|
|
|
112
111
|
D && D.childMenus && e !== -1 && (D.childMenus.splice(e, 1), D.childMenus.push(Ba.ROLE));
|
|
113
112
|
const E = ce.findIndex((u) => u.path === Mo);
|
|
114
113
|
D && D.childMenus && E !== -1 && (D.childMenus.splice(E, 1), D.childMenus.push(Ba.DEPARTMENT));
|
|
115
|
-
const T = ce.findIndex((u) => u.path ===
|
|
114
|
+
const T = ce.findIndex((u) => u.path === So);
|
|
116
115
|
return D && D.childMenus && T !== -1 && (D.childMenus.splice(T, 1), D.childMenus.push(Ba.POSITION)), D;
|
|
117
116
|
});
|
|
118
117
|
return {
|
|
@@ -141,7 +140,7 @@ function To(l = "menu") {
|
|
|
141
140
|
return {
|
|
142
141
|
name: l,
|
|
143
142
|
components: {
|
|
144
|
-
ssMenu:
|
|
143
|
+
ssMenu: _t,
|
|
145
144
|
DynamicIcon: Wa
|
|
146
145
|
},
|
|
147
146
|
setup() {
|
|
@@ -150,7 +149,7 @@ function To(l = "menu") {
|
|
|
150
149
|
type: String,
|
|
151
150
|
default: "vertical"
|
|
152
151
|
}
|
|
153
|
-
}), r = B("sub-menu-more"), v = jl(), M = Zl(yl), U = B(0), I =
|
|
152
|
+
}), r = B("sub-menu-more"), v = jl(), M = Zl(yl), U = B(0), I = Sa(), {
|
|
154
153
|
rawMenus: x,
|
|
155
154
|
activeTopMenuPath: R,
|
|
156
155
|
isRefreshMenus: D,
|
|
@@ -168,16 +167,16 @@ function To(l = "menu") {
|
|
|
168
167
|
children: p.level === 0 ? [] : p.children ?? [],
|
|
169
168
|
childMenus: me(p.children)
|
|
170
169
|
} : p), L = (a, p) => {
|
|
171
|
-
var h,
|
|
172
|
-
return (
|
|
170
|
+
var h, S;
|
|
171
|
+
return (S = (h = C.value) == null ? void 0 : h.find((W) => (a.title + p).includes(W.value))) == null ? void 0 : S.value;
|
|
173
172
|
}, J = (a, p = "", h = 0) => {
|
|
174
173
|
var O;
|
|
175
|
-
let
|
|
174
|
+
let S = ml(a);
|
|
176
175
|
const W = Array.from(/* @__PURE__ */ new Set([...(O = Z.value) == null ? void 0 : O.map((s) => {
|
|
177
176
|
var k;
|
|
178
177
|
return (k = s == null ? void 0 : s.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((s) => {
|
|
181
180
|
let k, N = p ? `${p}/${s.title}` : s.title;
|
|
182
181
|
k = N;
|
|
183
182
|
const X = {
|
|
@@ -207,9 +206,9 @@ function To(l = "menu") {
|
|
|
207
206
|
const p = me(a);
|
|
208
207
|
return Pt(p), v.setMenus(p), p;
|
|
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), ke = (a, p) => {
|
|
210
|
-
var
|
|
209
|
+
var S, W;
|
|
211
210
|
const h = a == null ? void 0 : a.find((de) => (de == null ? void 0 : de.operateType) === "新增");
|
|
212
|
-
return ((W = (
|
|
211
|
+
return ((W = (S = T.value) == null ? void 0 : S.data) == null ? void 0 : W.path) === (p == null ? void 0 : p.path) ? h == null ? void 0 : h.menuIcon : L(p, p == null ? void 0 : p.level);
|
|
213
212
|
}, Ve = async (a, p) => {
|
|
214
213
|
if (!Array.isArray(p)) return a;
|
|
215
214
|
for (const h of p)
|
|
@@ -223,8 +222,8 @@ function To(l = "menu") {
|
|
|
223
222
|
}, $e = B(null), il = async (a, p = null) => await Promise.all(
|
|
224
223
|
a == null ? void 0 : a.map(async (h) => {
|
|
225
224
|
var de;
|
|
226
|
-
let
|
|
227
|
-
const W = (
|
|
225
|
+
let S = await Ve(h, Ee.value);
|
|
226
|
+
const W = (S == null ? void 0 : S.config) ?? ((de = p == null ? void 0 : p.filter((O) => O.allowInherit)) == null ? void 0 : de.map((O) => {
|
|
228
227
|
var s;
|
|
229
228
|
return {
|
|
230
229
|
...O,
|
|
@@ -236,14 +235,14 @@ function To(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: ke(W, h),
|
|
242
241
|
config: W,
|
|
243
242
|
children: await il(h == null ? void 0 : h.childMenus, W),
|
|
244
243
|
childMenus: await il(h == null ? void 0 : h.childMenus, W)
|
|
245
244
|
}), {
|
|
246
|
-
...
|
|
245
|
+
...S,
|
|
247
246
|
icon: ke(W, h),
|
|
248
247
|
config: W
|
|
249
248
|
};
|
|
@@ -252,9 +251,9 @@ function To(l = "menu") {
|
|
|
252
251
|
fl(
|
|
253
252
|
() => u.value,
|
|
254
253
|
(a) => {
|
|
255
|
-
var h,
|
|
254
|
+
var h, S, W;
|
|
256
255
|
if (!a) return;
|
|
257
|
-
const p = (
|
|
256
|
+
const p = (S = (h = a == null ? void 0 : a.path) == null ? void 0 : h.split("/")) == null ? void 0 : S[0];
|
|
258
257
|
if (p) {
|
|
259
258
|
const de = (W = w.value) == null ? void 0 : W.find((O) => (O == null ? void 0 : O.path) === p);
|
|
260
259
|
if (!de || (v.setActiveTopMenuPath(p), !(de != null && de.children))) return;
|
|
@@ -266,7 +265,7 @@ function To(l = "menu") {
|
|
|
266
265
|
const pl = async (a) => {
|
|
267
266
|
var p, h;
|
|
268
267
|
if (v.setLinkMenuInfo(null), v.setAsideMenuLoading(!0), M.setRouteToChildPath(""), v.setActiveTopMenuPath(a == null ? void 0 : a.path), v.setActiveMainMenu(a), $e.value = null, a != null && a.childMenus && ((p = a == null ? void 0 : a.childMenus) == null ? void 0 : p.length) > 0) {
|
|
269
|
-
const
|
|
268
|
+
const S = await ul(a), W = (S == null ? void 0 : S.length) === 0 ? a == null ? void 0 : a.childMenus : S;
|
|
270
269
|
v.setAsideMenus(W), oe.value || v.setUpdateMenuStatus(!0), v.setActiveAsideMenu((h = a == null ? void 0 : a.childMenus) == null ? void 0 : h[0]);
|
|
271
270
|
} else
|
|
272
271
|
v.setAsideMenus([]), v.setActiveMenuPath(a == null ? void 0 : a.path);
|
|
@@ -318,32 +317,32 @@ function To(l = "menu") {
|
|
|
318
317
|
var h;
|
|
319
318
|
const p = [a == null ? void 0 : a.title];
|
|
320
319
|
if (a != null && a.children && ((h = a == null ? void 0 : a.children) == null ? void 0 : h.length) > 0) {
|
|
321
|
-
const
|
|
322
|
-
p.push(...
|
|
320
|
+
const S = a.children.map((W) => Te(W));
|
|
321
|
+
p.push(...S);
|
|
323
322
|
}
|
|
324
323
|
return p;
|
|
325
|
-
}, el = (a, p, h,
|
|
324
|
+
}, el = (a, p, h, S) => a.map((W) => {
|
|
326
325
|
var de, O;
|
|
327
326
|
if (W.path === h) {
|
|
328
327
|
const s = { ...W };
|
|
329
|
-
return
|
|
328
|
+
return S === "create" ? s.children.push(p) : S === "update" ? s.children = (de = s.children) == null ? void 0 : de.map(
|
|
330
329
|
(k) => (k == null ? void 0 : k.path) === (p == null ? void 0 : p.path) ? p : k
|
|
331
|
-
) :
|
|
330
|
+
) : S === "delete" && (s.children = (O = s.children) == null ? void 0 : O.filter((k) => (k == null ? void 0 : k.path) !== (p == null ? void 0 : p.path))), s;
|
|
332
331
|
} else
|
|
333
332
|
return {
|
|
334
333
|
...W,
|
|
335
|
-
children: el(W.children, p, h,
|
|
334
|
+
children: el(W.children, p, h, S)
|
|
336
335
|
// 递归更新子节点
|
|
337
336
|
};
|
|
338
337
|
}), Ne = async (a) => {
|
|
339
|
-
var h,
|
|
338
|
+
var h, S, W, de, O, s;
|
|
340
339
|
const p = (h = Z.value) == null ? void 0 : h.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 (p) {
|
|
345
344
|
const k = {
|
|
346
|
-
...(
|
|
345
|
+
...(S = p.value) == null ? void 0 : S.pageData,
|
|
347
346
|
compData: (O = (de = (W = p.value) == null ? void 0 : W.pageData) == null ? void 0 : de.compData) == null ? void 0 : O.map((X) => X.key === "menuContents" ? {
|
|
348
347
|
...X,
|
|
349
348
|
contents: a
|
|
@@ -357,18 +356,18 @@ function To(l = "menu") {
|
|
|
357
356
|
}, al = async (a) => void 0, Ze = async (a) => {
|
|
358
357
|
var W, de, O;
|
|
359
358
|
const p = (O = (de = (W = a == null ? void 0 : a.config) == null ? void 0 : W.find((s) => (s == null ? void 0 : s.operateType) === "新增")) == null ? void 0 : de.structureIds) == null ? void 0 : O.filter((s) => (s == null ? void 0 : s.key) === "contentConfig"), h = p == null ? void 0 : p.map((s) => s == null ? void 0 : s.id);
|
|
360
|
-
let
|
|
359
|
+
let S = [];
|
|
361
360
|
h == null || h.forEach((s) => {
|
|
362
|
-
s &&
|
|
361
|
+
s && S.push(al());
|
|
363
362
|
});
|
|
364
363
|
};
|
|
365
364
|
return fl(
|
|
366
365
|
() => D.value,
|
|
367
366
|
async (a) => {
|
|
368
|
-
var p, h,
|
|
367
|
+
var p, h, S, W, de, O, s, k;
|
|
369
368
|
if (a)
|
|
370
369
|
try {
|
|
371
|
-
const N = (
|
|
370
|
+
const N = (S = (h = (p = T.value) == null ? void 0 : p.data) == null ? void 0 : h.path) == null ? void 0 : S.split("/").slice(0, -1).join("/"), X = el(
|
|
372
371
|
w.value,
|
|
373
372
|
(W = T.value) == null ? void 0 : W.data,
|
|
374
373
|
N,
|
|
@@ -378,7 +377,7 @@ function To(l = "menu") {
|
|
|
378
377
|
const d = await ul(P.value), A = (d == null ? void 0 : d.length) === 0 ? (k = P.value) == null ? void 0 : k.childMenus : d;
|
|
379
378
|
v.setAsideMenus(A);
|
|
380
379
|
} catch (N) {
|
|
381
|
-
throw
|
|
380
|
+
throw _l.error(N), new Error(N);
|
|
382
381
|
}
|
|
383
382
|
},
|
|
384
383
|
{ immediate: !0 }
|
|
@@ -468,7 +467,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
468
467
|
key: 0,
|
|
469
468
|
onClick: (me) => D(P)
|
|
470
469
|
}, ol(P.value), 9, xo)) : Ue("", !0),
|
|
471
|
-
(P == null ? void 0 : P.condition) === "child" ? (f(), ye(
|
|
470
|
+
(P == null ? void 0 : P.condition) === "child" ? (f(), ye(_s, {
|
|
472
471
|
style: Dl({ width: R.value((P == null ? void 0 : P.value) ?? "") + "px" }),
|
|
473
472
|
class: "bread-ss-select",
|
|
474
473
|
"popper-class": "bread-ss-select-popper",
|
|
@@ -484,9 +483,9 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
484
483
|
], 4),
|
|
485
484
|
u !== I.value.length - 1 && Array.isArray(I.value) && ((C = (w = I.value) == null ? void 0 : w[u + 1]) == null ? void 0 : C.condition) !== "child" ? (f(), $("div", Vo, [
|
|
486
485
|
n(c(On), { style: { width: "14px" } })
|
|
487
|
-
])) : ((Ee = (i = I.value) == null ? void 0 : i[u + 1]) == null ? void 0 : Ee.condition) === "child" ? (f(), $("div", Uo, T[0] || (T[0] = [
|
|
486
|
+
])) : ((Ee = (i = I.value) == null ? void 0 : i[u + 1]) == null ? void 0 : Ee.condition) === "child" ? (f(), $("div", Uo, [...T[0] || (T[0] = [
|
|
488
487
|
V("div", null, ol(":"), -1)
|
|
489
|
-
]))) : Ue("", !0)
|
|
488
|
+
])])) : Ue("", !0)
|
|
490
489
|
]);
|
|
491
490
|
}), 128))
|
|
492
491
|
]));
|
|
@@ -673,10 +672,10 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
673
672
|
}, hi = { class: "message-title" }, gi = { class: "message-time" }, yi = { class: "message-content" }, bi = {
|
|
674
673
|
key: 0,
|
|
675
674
|
class: "no-messages"
|
|
676
|
-
}, Ci = { class: "drop-menu" }, mi = { class: "user-base-info" }, wi = { class: "base-info" }, ki = { class: "group-item" }, Ai = { class: "sys-button" }, Ii = { class: "whole-main" }, Mi = { class: "structure-paths" },
|
|
675
|
+
}, Ci = { class: "drop-menu" }, mi = { class: "user-base-info" }, wi = { class: "base-info" }, ki = { class: "group-item" }, Ai = { class: "sys-button" }, Ii = { class: "whole-main" }, Mi = { class: "structure-paths" }, Si = {
|
|
677
676
|
key: 0,
|
|
678
677
|
class: "main-back-btn"
|
|
679
|
-
},
|
|
678
|
+
}, _i = { class: "custom-extend-wrapper" }, Ti = {
|
|
680
679
|
key: 1,
|
|
681
680
|
class: "main-body"
|
|
682
681
|
}, Bi = { key: 1 }, Ei = {
|
|
@@ -741,11 +740,11 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
741
740
|
var q;
|
|
742
741
|
return ((q = j.find((m) => m.prop === "状态")) == null ? void 0 : q.value) === "未读";
|
|
743
742
|
}).length
|
|
744
|
-
), C = wl(() => w.value > 99 ? "99+" : w.value), i = Bt(yl), { originalPath: Ee } = hl(i), me = Ee.value, L = zl(), { loginUserInfo: J } = hl(L), { hasSystemManagement: be, toSystemManagement: z } =
|
|
743
|
+
), C = wl(() => w.value > 99 ? "99+" : w.value), i = Bt(yl), { originalPath: Ee } = hl(i), me = Ee.value, L = zl(), { loginUserInfo: J } = hl(L), { hasSystemManagement: be, toSystemManagement: z } = _o(), { updateFacePhoto: Be } = Co();
|
|
745
744
|
async function ke() {
|
|
746
745
|
var j, q, m, re, he, ae;
|
|
747
746
|
try {
|
|
748
|
-
let
|
|
747
|
+
let _e = function(Ke, Le) {
|
|
749
748
|
return Le.map((He) => Ke.map((De, fe) => ({
|
|
750
749
|
...De,
|
|
751
750
|
value: He[fe] ?? ""
|
|
@@ -759,9 +758,9 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
759
758
|
(Ke) => Ke.includes("未读")
|
|
760
759
|
), Il = Oe.filter(
|
|
761
760
|
(Ke) => Ke.includes("已读")
|
|
762
|
-
), bl = [...Ml, ...Il], tl = [...Oe]) : (Ml = [], Il = [], tl = [], console.warn("messagesContents 或 messagesHeader 不是数组")), oe.value =
|
|
763
|
-
} catch (
|
|
764
|
-
console.error("获取消息数据失败:",
|
|
761
|
+
), bl = [...Ml, ...Il], tl = [...Oe]) : (Ml = [], Il = [], tl = [], console.warn("messagesContents 或 messagesHeader 不是数组")), oe.value = _e(ne, tl), u.value = _e(ne, bl), Q.value = _e(ne, Ml);
|
|
762
|
+
} catch (_e) {
|
|
763
|
+
console.error("获取消息数据失败:", _e);
|
|
765
764
|
}
|
|
766
765
|
}
|
|
767
766
|
let Ve = 0;
|
|
@@ -771,7 +770,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
771
770
|
}, il = async (j) => {
|
|
772
771
|
if (!j) return;
|
|
773
772
|
(async (m) => {
|
|
774
|
-
var he, ae,
|
|
773
|
+
var he, ae, _e, K;
|
|
775
774
|
const re = [
|
|
776
775
|
{
|
|
777
776
|
title: "我的消息",
|
|
@@ -804,12 +803,12 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
804
803
|
}
|
|
805
804
|
x.setAsideMenus(re), (ze == null ? void 0 : ze.value) === "未读" && (ze.value = "已读", x.setActiveMenuPath(rt));
|
|
806
805
|
const ne = E.value + me + Oe.value, bl = E.value;
|
|
807
|
-
await qs(ne, ne + me + `updateLoading${((he = J.value) == null ? void 0 : he.account) || ((ae = J.value) == null ? void 0 : ae.账号)}`), O.setRouteToChildPath(bl), x.setActiveMenuPath(ne + me + `updateLoading${((
|
|
806
|
+
await qs(ne, ne + me + `updateLoading${((he = J.value) == null ? void 0 : he.account) || ((ae = J.value) == null ? void 0 : ae.账号)}`), O.setRouteToChildPath(bl), x.setActiveMenuPath(ne + me + `updateLoading${((_e = J.value) == null ? void 0 : _e.account) || ((K = J.value) == null ? void 0 : K.账号)}`), x.setActiveTopMenuPath("消息中心");
|
|
808
807
|
} catch (ze) {
|
|
809
808
|
console.error("加载菜单或页面时出错:", ze);
|
|
810
809
|
}
|
|
811
810
|
})(j);
|
|
812
|
-
}, ul = Ma(yl), { selectTitle: pl } = hl(ul), Xe = B(!1), Cl = B(), ve = B(null), g = B(), We = B(!1), Ce = Hn(yl), { blobUrls: Te } = hl(Ce), el = B(), Ne = B(!1), al = B(!1), Ze = B(!1), a = B(!1), p = B(null), h = B([]),
|
|
811
|
+
}, ul = Ma(yl), { selectTitle: pl } = hl(ul), Xe = B(!1), Cl = B(), ve = B(null), g = B(), We = B(!1), Ce = Hn(yl), { blobUrls: Te } = hl(Ce), el = B(), Ne = B(!1), al = B(!1), Ze = B(!1), a = B(!1), p = B(null), h = B([]), S = B(!1), W = B(!1), de = B();
|
|
813
812
|
Ea("contentRef", p);
|
|
814
813
|
const O = Zl(yl), { isEdit: s, routeToChildPath: k } = hl(O), N = b, { logoUrl: X, platNameEn: t, getPreviousModel: d, rememberPreviousModelByPlatId: A } = tt(), { toPersonalCenter: Y } = mo(), ue = l, qe = ds(/* @__PURE__ */ new Map()), rl = wl(() => ce.value.isRouter), we = B(""), se = async (j) => {
|
|
815
814
|
const q = await ka({
|
|
@@ -834,7 +833,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
834
833
|
const j = E.value;
|
|
835
834
|
return qe.value.get(j);
|
|
836
835
|
}), pe = Js(async (j) => {
|
|
837
|
-
var re, he, ae,
|
|
836
|
+
var re, he, ae, _e, K, ze, Oe, ne, bl, tl, Ml, Il, Ke, Le, He, De;
|
|
838
837
|
if ((j == null ? void 0 : j.type) !== "table") return;
|
|
839
838
|
const q = (re = pl.value) == null ? void 0 : re.some((fe) => (fe == null ? void 0 : fe.condition) === "parent"), m = (he = j == null ? void 0 : j.usingRow) == null ? void 0 : he.some((fe) => fe == null ? void 0 : fe.isExistChild);
|
|
840
839
|
if (!(q || m))
|
|
@@ -845,16 +844,16 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
845
844
|
platId: parseInt((ae = J == null ? void 0 : J.value) == null ? void 0 : ae.plat_id),
|
|
846
845
|
pageName: "menu"
|
|
847
846
|
});
|
|
848
|
-
((K = (
|
|
847
|
+
((K = (_e = gl == null ? void 0 : gl.data) == null ? void 0 : _e.result) == null ? void 0 : K.length) > 0 && (fe = gl.data.result, qe.value.set(E.value, fe));
|
|
849
848
|
}
|
|
850
849
|
if (!(fe != null && fe.length)) return;
|
|
851
850
|
const Fe = E.value;
|
|
852
851
|
if (!fe.some(
|
|
853
852
|
(gl) => (gl == null ? void 0 : gl.father_name) === Fe || (gl == null ? void 0 : gl.father_name) === Fe + "/"
|
|
854
853
|
)) return;
|
|
855
|
-
const kl = (ne = j == null ? void 0 : j.row) == null ? void 0 : ne[(Oe = (ze = j == null ? void 0 : j.usingRow) == null ? void 0 : ze[0]) == null ? void 0 : Oe.prop],
|
|
854
|
+
const kl = (ne = j == null ? void 0 : j.row) == null ? void 0 : ne[(Oe = (ze = j == null ? void 0 : j.usingRow) == null ? void 0 : ze[0]) == null ? void 0 : Oe.prop], Sl = (bl = pl.value) == null ? void 0 : bl.find((gl) => (gl == null ? void 0 : gl.condition) === "child");
|
|
856
855
|
let El, xl;
|
|
857
|
-
if (
|
|
856
|
+
if (Sl)
|
|
858
857
|
El = pl.value.map(
|
|
859
858
|
(gl) => (gl == null ? void 0 : gl.condition) === "child" ? { ...gl, value: kl, isShow: !0 } : gl
|
|
860
859
|
), xl = El.find((gl) => (gl == null ? void 0 : gl.condition) === "child");
|
|
@@ -894,17 +893,17 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
894
893
|
const q = await ta("弯管仿真加工分析/仿真动画生成", sessionStorage.getItem("systemKey"), ""), m = await ta("弯管仿真加工分析/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
895
894
|
let re = ["管长", "外径"], he = {};
|
|
896
895
|
m == null || m.forEach((ae) => {
|
|
897
|
-
var
|
|
898
|
-
(ae == null ? void 0 : ae.comp) === "Form" && ((
|
|
896
|
+
var _e;
|
|
897
|
+
(ae == null ? void 0 : ae.comp) === "Form" && ((_e = ae == null ? void 0 : ae.compData) == null || _e.forEach((K) => {
|
|
899
898
|
var ze;
|
|
900
899
|
(K == null ? void 0 : K.key) === "formContent" && ((ze = K == null ? void 0 : K.contents) == null || ze.forEach((Oe) => {
|
|
901
900
|
re.includes(Oe == null ? void 0 : Oe.key) && (he[Oe.key] = Oe.value);
|
|
902
901
|
}));
|
|
903
902
|
}));
|
|
904
903
|
}), q == null || q.forEach((ae) => {
|
|
905
|
-
var
|
|
904
|
+
var _e, K, ze, Oe, ne, bl;
|
|
906
905
|
if ((ae == null ? void 0 : ae.comp) === "Table") {
|
|
907
|
-
let tl = [], Ml = (ze = (K = (
|
|
906
|
+
let tl = [], Ml = (ze = (K = (_e = ae == null ? void 0 : ae.compData) == null ? void 0 : _e.find((Ke) => (Ke == null ? void 0 : Ke.key) === "header")) == null ? void 0 : K.contents) == null ? void 0 : ze.map((Ke) => Ke == null ? void 0 : Ke.label), Il = (bl = (ne = (Oe = ae == null ? void 0 : ae.compData) == null ? void 0 : Oe.find((Ke) => (Ke == null ? void 0 : Ke.key) === "tableContents")) == null ? void 0 : ne.contents) == null ? void 0 : bl.map((Ke) => (Ke = Ke == null ? void 0 : Ke.filter((Le) => !(Le != null && Le.id)), Ke));
|
|
908
907
|
Il == null || Il.forEach((Ke) => {
|
|
909
908
|
tl.push(
|
|
910
909
|
Ka(
|
|
@@ -916,7 +915,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
916
915
|
}
|
|
917
916
|
}), j.extra = he, Cl.value = j;
|
|
918
917
|
}, Ye = async () => {
|
|
919
|
-
var j, q, m, re, he, ae,
|
|
918
|
+
var j, q, m, re, he, ae, _e;
|
|
920
919
|
if ((ue == null ? void 0 : ue.platform) !== "browser") {
|
|
921
920
|
if (Xe.value = !0, el.value = (j = ue == null ? void 0 : ue.taskContent) == null ? void 0 : j.sceneType, h.value = [{
|
|
922
921
|
url: (q = ue == null ? void 0 : ue.taskContent) == null ? void 0 : q.url,
|
|
@@ -938,7 +937,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
938
937
|
}];
|
|
939
938
|
(ae = ve.value) == null || ae.loadModelByDefaultPath(ze);
|
|
940
939
|
}
|
|
941
|
-
|
|
940
|
+
S.value = (_e = h.value) == null ? void 0 : _e.every((K) => K.url.toUpperCase().includes(".URDF"));
|
|
942
941
|
}
|
|
943
942
|
}, Ge = () => {
|
|
944
943
|
We.value = !1, ve.value = null;
|
|
@@ -959,15 +958,15 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
959
958
|
if (Te != null && Te.value && ((j = Te == null ? void 0 : Te.value) == null ? void 0 : j.length) > 0 && !Ne.value && !((q = aa.value) != null && q.find((ae) => (ae == null ? void 0 : ae.name) === "输入") && ((m = aa.value) != null && m.find((ae) => (ae == null ? void 0 : ae.name) === "输出")))) {
|
|
960
959
|
We.value = !0;
|
|
961
960
|
let ae = [];
|
|
962
|
-
const
|
|
961
|
+
const _e = await ((re = ml(Te == null ? void 0 : Te.value)) == null ? void 0 : re.map(async (K) => {
|
|
963
962
|
var tl, Ml, Il, Ke, Le, He, De, fe, Fe, Pl;
|
|
964
963
|
let ze, Oe, ne;
|
|
965
964
|
K != null && K.blob.includes("undefined") ? ne = (Ml = (tl = K == null ? void 0 : K.blob) == null ? void 0 : tl.split("undefined,")) == null ? void 0 : Ml[1] : ne = K == null ? void 0 : K.blob;
|
|
966
965
|
let bl = ne == null ? void 0 : ne.split(",");
|
|
967
966
|
if ((bl == null ? void 0 : bl.length) > 1) {
|
|
968
|
-
let kl = await (bl == null ? void 0 : bl.map(async (
|
|
967
|
+
let kl = await (bl == null ? void 0 : bl.map(async (Sl) => {
|
|
969
968
|
var xl, gl, Vl, Al, Jl, ca;
|
|
970
|
-
ze = await ia.get(
|
|
969
|
+
ze = await ia.get(Sl, {
|
|
971
970
|
responseType: "blob",
|
|
972
971
|
headers: {
|
|
973
972
|
"Content-Type": "application/json"
|
|
@@ -976,22 +975,22 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
976
975
|
let El = [];
|
|
977
976
|
if (((xl = K == null ? void 0 : K.mtlBlobs) == null ? void 0 : xl.length) > 0) {
|
|
978
977
|
let Ll = await ((gl = K == null ? void 0 : K.mtlBlobs) == null ? void 0 : gl.map(async (Ga) => {
|
|
979
|
-
let
|
|
978
|
+
let _a = await ia.get(Ga, {
|
|
980
979
|
responseType: "blob",
|
|
981
980
|
headers: {
|
|
982
981
|
"Content-Type": "application/json"
|
|
983
982
|
}
|
|
984
983
|
});
|
|
985
984
|
return El.push(
|
|
986
|
-
new Blob([
|
|
985
|
+
new Blob([_a.data], {
|
|
987
986
|
type: "application/octet-stream;charset=UTF-8"
|
|
988
987
|
})
|
|
989
|
-
),
|
|
988
|
+
), _a;
|
|
990
989
|
}));
|
|
991
990
|
await Promise.all(Ll);
|
|
992
991
|
}
|
|
993
|
-
return ((Al =
|
|
994
|
-
suffix: "." + ((ca =
|
|
992
|
+
return ((Al = Sl == null ? void 0 : Sl.split(".")) == null ? void 0 : Al[((Vl = Sl == null ? void 0 : Sl.split(".")) == null ? void 0 : Vl.length) - 1]) !== "undefined" && ae.push({
|
|
993
|
+
suffix: "." + ((ca = Sl == null ? void 0 : Sl.split(".")) == null ? void 0 : ca[((Jl = Sl == null ? void 0 : Sl.split(".")) == null ? void 0 : Jl.length) - 1]),
|
|
995
994
|
blob: new Blob([ze.data], {
|
|
996
995
|
type: "application/octet-stream;charset=UTF-8"
|
|
997
996
|
}),
|
|
@@ -1005,7 +1004,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1005
1004
|
});
|
|
1006
1005
|
let kl = [];
|
|
1007
1006
|
if (((Il = K == null ? void 0 : K.mtlBlobs) == null ? void 0 : Il.length) > 0) {
|
|
1008
|
-
let
|
|
1007
|
+
let Sl = await ((Ke = K == null ? void 0 : K.mtlBlobs) == null ? void 0 : Ke.map(async (El) => {
|
|
1009
1008
|
let xl = await ka({
|
|
1010
1009
|
url: El
|
|
1011
1010
|
});
|
|
@@ -1015,7 +1014,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1015
1014
|
})
|
|
1016
1015
|
), xl;
|
|
1017
1016
|
}));
|
|
1018
|
-
await Promise.all(
|
|
1017
|
+
await Promise.all(Sl);
|
|
1019
1018
|
}
|
|
1020
1019
|
Oe = {
|
|
1021
1020
|
suffix: "." + ((He = ne == null ? void 0 : ne.split(".")) == null ? void 0 : He[((Le = ne == null ? void 0 : ne.split(".")) == null ? void 0 : Le.length) - 1]),
|
|
@@ -1033,7 +1032,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1033
1032
|
});
|
|
1034
1033
|
let kl = [];
|
|
1035
1034
|
if (((De = K == null ? void 0 : K.mtlBlobs) == null ? void 0 : De.length) > 0) {
|
|
1036
|
-
let
|
|
1035
|
+
let Sl = await ((fe = K == null ? void 0 : K.mtlBlobs) == null ? void 0 : fe.map(async (El) => {
|
|
1037
1036
|
let xl = await ia.get(El, {
|
|
1038
1037
|
responseType: "blob",
|
|
1039
1038
|
headers: {
|
|
@@ -1046,7 +1045,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1046
1045
|
})
|
|
1047
1046
|
), xl;
|
|
1048
1047
|
}));
|
|
1049
|
-
await Promise.all(
|
|
1048
|
+
await Promise.all(Sl);
|
|
1050
1049
|
}
|
|
1051
1050
|
Oe = {
|
|
1052
1051
|
suffix: K != null && K.suffix ? K == null ? void 0 : K.suffix : "." + ((Pl = ne == null ? void 0 : ne.split(".")) == null ? void 0 : Pl[((Fe = ne == null ? void 0 : ne.split(".")) == null ? void 0 : Fe.length) - 1]),
|
|
@@ -1058,7 +1057,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1058
1057
|
}
|
|
1059
1058
|
Oe && ae.push(Oe);
|
|
1060
1059
|
}));
|
|
1061
|
-
await Promise.all(
|
|
1060
|
+
await Promise.all(_e), (ae == null ? void 0 : ae.length) !== 0 && ((he = ve.value) == null || he.loadModelByDefaultPath(ae));
|
|
1062
1061
|
}
|
|
1063
1062
|
},
|
|
1064
1063
|
{ immediate: !0, deep: !0 }
|
|
@@ -1077,32 +1076,32 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1077
1076
|
if (k.value === "" || ((re = E.value) == null ? void 0 : re[((m = E.value) == null ? void 0 : m.length) - 1]) === me) return !1;
|
|
1078
1077
|
const j = sessionStorage.getItem("authority"), q = JSON.parse(j || "");
|
|
1079
1078
|
if (Array.isArray(q)) {
|
|
1080
|
-
const he = Array.isArray(q) && (q == null ? void 0 : q.filter((
|
|
1079
|
+
const he = Array.isArray(q) && (q == null ? void 0 : q.filter((_e) => _e == null ? void 0 : _e.includes(k.value))), ae = he == null ? void 0 : he.map((_e) => {
|
|
1081
1080
|
var K;
|
|
1082
|
-
return ((K =
|
|
1081
|
+
return ((K = _e == null ? void 0 : _e.split("/")) == null ? void 0 : K.pop()) || "";
|
|
1083
1082
|
});
|
|
1084
1083
|
return !!(ae != null && ae.includes("新增") || ae != null && ae.includes("新建"));
|
|
1085
1084
|
} else return typeof q == "string" && (q == null ? void 0 : q.toUpperCase()) === "SUPERADMIN";
|
|
1086
|
-
},
|
|
1085
|
+
}, Se = async () => {
|
|
1087
1086
|
Y();
|
|
1088
|
-
},
|
|
1087
|
+
}, _ = () => {
|
|
1089
1088
|
N("updateVersion");
|
|
1090
1089
|
}, ie = wl(() => "http://222.92.178.198:62001"), Ae = async (j) => {
|
|
1091
1090
|
var q, m, re, he, ae;
|
|
1092
1091
|
try {
|
|
1093
|
-
const
|
|
1094
|
-
if (((q =
|
|
1095
|
-
I.value = ie.value + "/" + ((re = (m =
|
|
1096
|
-
let K = (ae = (he =
|
|
1092
|
+
const _e = await Bs(j);
|
|
1093
|
+
if (((q = _e == null ? void 0 : _e.data) == null ? void 0 : q.code) === 200) {
|
|
1094
|
+
I.value = ie.value + "/" + ((re = (m = _e.data) == null ? void 0 : m.result) == null ? void 0 : re.url);
|
|
1095
|
+
let K = (ae = (he = _e.data) == null ? void 0 : he.result) == null ? void 0 : ae.url;
|
|
1097
1096
|
await Be(K);
|
|
1098
1097
|
}
|
|
1099
|
-
} catch (
|
|
1100
|
-
|
|
1098
|
+
} catch (_e) {
|
|
1099
|
+
_l.error(_e);
|
|
1101
1100
|
}
|
|
1102
1101
|
}, Ie = wl(() => {
|
|
1103
1102
|
const q = Xs(Ol.value, 100) || [];
|
|
1104
1103
|
let m = 0, re = 0, he = 0;
|
|
1105
|
-
return q == null ? void 0 : q.map((
|
|
1104
|
+
return q == null ? void 0 : q.map((_e) => (he = he + (_e == null ? void 0 : _e.arrowGap), (_e == null ? void 0 : _e.arrowGap) + m <= 100 && (_e.x = m), _e.y = re, (_e == null ? void 0 : _e.arrowGap) !== 0 && he < 100 ? m = m + (_e == null ? void 0 : _e.w) : m = 0, (he >= 100 || (_e == null ? void 0 : _e.arrowGap) === 0) && (he = 0, re = re + (_e == null ? void 0 : _e.h)), _e));
|
|
1106
1105
|
}), Qe = wl(() => {
|
|
1107
1106
|
var j, q, m, re;
|
|
1108
1107
|
return ((j = Ol.value) == null ? void 0 : j.length) > 0 && ((q = Ol.value) != null && q.every((he) => he == null ? void 0 : he.layout)) ? (re = (m = Ol.value) == null ? void 0 : m[0]) == null ? void 0 : re.layout : "vertical";
|
|
@@ -1130,7 +1129,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1130
1129
|
}
|
|
1131
1130
|
};
|
|
1132
1131
|
return (j, q) => {
|
|
1133
|
-
const m = ee("el-dialog"), re = ee("el-button"), he = ee("el-header"), ae = ee("el-splitter-panel"),
|
|
1132
|
+
const m = ee("el-dialog"), re = ee("el-button"), he = ee("el-header"), ae = ee("el-splitter-panel"), _e = ee("el-splitter"), K = ee("el-container"), ze = ee("el-tab-pane"), Oe = ee("el-tabs"), ne = ee("el-aside"), bl = ee("router-view"), tl = ee("el-step"), Ml = ee("el-steps"), Il = ee("el-main"), Ke = qa("loading");
|
|
1134
1133
|
return f(), $(ll, null, [
|
|
1135
1134
|
Yl(n(ho, {
|
|
1136
1135
|
ref: "cropperDialogRef",
|
|
@@ -1182,10 +1181,9 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1182
1181
|
n(Tl, { name: "Back" })
|
|
1183
1182
|
]),
|
|
1184
1183
|
default: o(() => [
|
|
1185
|
-
q[9] || (q[9] = cl(" 返回页面 "))
|
|
1184
|
+
q[9] || (q[9] = cl(" 返回页面 ", -1))
|
|
1186
1185
|
]),
|
|
1187
|
-
_: 1
|
|
1188
|
-
__: [9]
|
|
1186
|
+
_: 1
|
|
1189
1187
|
}, 8, ["onClick"])
|
|
1190
1188
|
]),
|
|
1191
1189
|
V("div", qo, [
|
|
@@ -1206,10 +1204,9 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1206
1204
|
n(Tl, { name: "Store" })
|
|
1207
1205
|
]),
|
|
1208
1206
|
default: o(() => [
|
|
1209
|
-
q[10] || (q[10] = cl(" 保存页面 "))
|
|
1207
|
+
q[10] || (q[10] = cl(" 保存页面 ", -1))
|
|
1210
1208
|
]),
|
|
1211
|
-
_: 1
|
|
1212
|
-
__: [10]
|
|
1209
|
+
_: 1
|
|
1213
1210
|
})
|
|
1214
1211
|
])
|
|
1215
1212
|
]),
|
|
@@ -1220,7 +1217,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1220
1217
|
class: "model-operate"
|
|
1221
1218
|
}, {
|
|
1222
1219
|
default: o(() => [
|
|
1223
|
-
n(
|
|
1220
|
+
n(_e, null, {
|
|
1224
1221
|
default: o(() => [
|
|
1225
1222
|
n(ae, {
|
|
1226
1223
|
size: 240,
|
|
@@ -1277,7 +1274,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1277
1274
|
}, {
|
|
1278
1275
|
default: o(() => [
|
|
1279
1276
|
V("div", Fo, [
|
|
1280
|
-
n(
|
|
1277
|
+
n(St)
|
|
1281
1278
|
])
|
|
1282
1279
|
]),
|
|
1283
1280
|
_: 1
|
|
@@ -1325,10 +1322,9 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1325
1322
|
n(Tl, { name: "系统管理" })
|
|
1326
1323
|
]),
|
|
1327
1324
|
default: o(() => [
|
|
1328
|
-
q[11] || (q[11] = cl(" 系统管理 "))
|
|
1325
|
+
q[11] || (q[11] = cl(" 系统管理 ", -1))
|
|
1329
1326
|
]),
|
|
1330
|
-
_: 1
|
|
1331
|
-
__: [11]
|
|
1327
|
+
_: 1
|
|
1332
1328
|
})) : Ue("", !0),
|
|
1333
1329
|
ql(j.$slots, "default", {}, void 0, !0),
|
|
1334
1330
|
n(vt, null, {
|
|
@@ -1385,11 +1381,11 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1385
1381
|
label: "未读消息",
|
|
1386
1382
|
name: "second"
|
|
1387
1383
|
}, {
|
|
1388
|
-
label: o(() => q[13] || (q[13] = [
|
|
1384
|
+
label: o(() => [...q[13] || (q[13] = [
|
|
1389
1385
|
V("div", { class: "message-tab-label" }, [
|
|
1390
1386
|
V("span", null, "未读消息")
|
|
1391
1387
|
], -1)
|
|
1392
|
-
])),
|
|
1388
|
+
])]),
|
|
1393
1389
|
default: o(() => [
|
|
1394
1390
|
V("div", ui, [
|
|
1395
1391
|
(f(!0), $(ll, null, dl(Q.value, (Le, He) => {
|
|
@@ -1446,7 +1442,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1446
1442
|
])
|
|
1447
1443
|
]),
|
|
1448
1444
|
V("div", ki, [
|
|
1449
|
-
V("div", { onClick:
|
|
1445
|
+
V("div", { onClick: Se }, [
|
|
1450
1446
|
n(Tl, {
|
|
1451
1447
|
name: "personal",
|
|
1452
1448
|
style: { width: "15px", height: "15px" }
|
|
@@ -1460,7 +1456,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1460
1456
|
}),
|
|
1461
1457
|
q[15] || (q[15] = V("span", null, "消息中心", -1))
|
|
1462
1458
|
]),
|
|
1463
|
-
V("div", { onClick:
|
|
1459
|
+
V("div", { onClick: _ }, [
|
|
1464
1460
|
n(Tl, {
|
|
1465
1461
|
name: "Update",
|
|
1466
1462
|
style: { width: "15px", height: "15px" }
|
|
@@ -1507,7 +1503,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1507
1503
|
style: Dl({ paddingLeft: Z.value ? "16px" : "0px" })
|
|
1508
1504
|
}, {
|
|
1509
1505
|
default: o(() => {
|
|
1510
|
-
var Le, He, De, fe, Fe, Pl, kl,
|
|
1506
|
+
var Le, He, De, fe, Fe, Pl, kl, Sl, El, xl, gl, Vl, Al, Jl, ca, Ll, Ga, _a, Vt, Ut, jt, Ot, Lt, Qt, Kt, Nt, qt, Wt, Yt, Ht, Ft, Jt, zt;
|
|
1511
1507
|
return [
|
|
1512
1508
|
Z.value ? Ue("", !0) : Yl((f(), ye(ne, {
|
|
1513
1509
|
key: 0,
|
|
@@ -1536,13 +1532,13 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1536
1532
|
ref: p,
|
|
1537
1533
|
"element-loading-text": "正在加载页面数据..."
|
|
1538
1534
|
}, [
|
|
1539
|
-
((He = c(E)) == null ? void 0 : He[((Le = c(E)) == null ? void 0 : Le.length) - 1]) === c(me) || (De = c(E)) != null && De.includes("updateLoading") || (fe = c(E)) != null && fe.includes("loading") ? (f(), $("div",
|
|
1535
|
+
((He = c(E)) == null ? void 0 : He[((Le = c(E)) == null ? void 0 : Le.length) - 1]) === c(me) || (De = c(E)) != null && De.includes("updateLoading") || (fe = c(E)) != null && fe.includes("loading") ? (f(), $("div", Si, [
|
|
1540
1536
|
n(na, {
|
|
1541
1537
|
class: "calculator-content back-content",
|
|
1542
1538
|
onClickTrigger: q[4] || (q[4] = (ge) => c(Et)()),
|
|
1543
1539
|
modelValue: "返回"
|
|
1544
1540
|
}),
|
|
1545
|
-
V("div",
|
|
1541
|
+
V("div", _i, [
|
|
1546
1542
|
n(Ko, {
|
|
1547
1543
|
toolBar: c(Zs),
|
|
1548
1544
|
onOnExtendTaskEnd: c(Gs)
|
|
@@ -1593,7 +1589,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1593
1589
|
onClickMainKey: c(Za)
|
|
1594
1590
|
}, null, 40, ["related", "compNames", "compName", "groupNames", "cacheNewData", "isDevMode", "itemData", "calculator", "childItemData", "onChange", "onClickStep", "index", "config", "onContentChange", "onPageChange", "onRowClick", "parentTableId", "allMapContents", "onRadioChange", "children", "onClickTrigger", "onClickMainKey"])) : Ue("", !0)
|
|
1595
1591
|
], 6);
|
|
1596
|
-
}), 128)) : !c(Ta) && Qe.value === "vertical" && ((
|
|
1592
|
+
}), 128)) : !c(Ta) && Qe.value === "vertical" && ((Sl = c(E)) != null && Sl.includes("首页") || ((El = c(st)) == null ? void 0 : El.length) > 0) ? (f(), ye(c(lo), {
|
|
1597
1593
|
key: 1,
|
|
1598
1594
|
layout: Ie.value,
|
|
1599
1595
|
"is-draggable": !1,
|
|
@@ -1763,7 +1759,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1763
1759
|
style: Dl({ display: ((ca = (Jl = c(Xl)) == null ? void 0 : Jl.comp) == null ? void 0 : ca.isShow) === !1 ? "none" : "flex" })
|
|
1764
1760
|
}, [
|
|
1765
1761
|
c(Da) ? (f(), ye(ua(c(ma)((Ga = (Ll = c(Xl)) == null ? void 0 : Ll.comp) == null ? void 0 : Ga.comp)), {
|
|
1766
|
-
compItem: (
|
|
1762
|
+
compItem: (_a = c(Xl)) == null ? void 0 : _a.comp,
|
|
1767
1763
|
compNames: c($a),
|
|
1768
1764
|
compName: (Ut = (Vt = c(Xl)) == null ? void 0 : Vt.comp) == null ? void 0 : Ut.name,
|
|
1769
1765
|
related: (jt = c(Xl)) == null ? void 0 : jt.relatedTables,
|
|
@@ -1858,22 +1854,20 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
1858
1854
|
onClick: q[6] || (q[6] = (Le) => it.value = !1),
|
|
1859
1855
|
id: "themeBorderButton"
|
|
1860
1856
|
}, {
|
|
1861
|
-
default: o(() => q[18] || (q[18] = [
|
|
1862
|
-
cl(ol("取消"))
|
|
1863
|
-
])),
|
|
1864
|
-
_: 1
|
|
1865
|
-
__: [18]
|
|
1857
|
+
default: o(() => [...q[18] || (q[18] = [
|
|
1858
|
+
cl(ol("取消"), -1)
|
|
1859
|
+
])]),
|
|
1860
|
+
_: 1
|
|
1866
1861
|
}),
|
|
1867
1862
|
n(re, {
|
|
1868
1863
|
class: "ok-button",
|
|
1869
1864
|
onClick: q[7] || (q[7] = (Le) => c(oo)()),
|
|
1870
1865
|
id: "themeButton"
|
|
1871
1866
|
}, {
|
|
1872
|
-
default: o(() => q[19] || (q[19] = [
|
|
1873
|
-
cl(ol("确认"))
|
|
1874
|
-
])),
|
|
1875
|
-
_: 1
|
|
1876
|
-
__: [19]
|
|
1867
|
+
default: o(() => [...q[19] || (q[19] = [
|
|
1868
|
+
cl(ol("确认"), -1)
|
|
1869
|
+
])]),
|
|
1870
|
+
_: 1
|
|
1877
1871
|
})
|
|
1878
1872
|
])
|
|
1879
1873
|
]),
|
|
@@ -2101,7 +2095,7 @@ const Po = /* @__PURE__ */ Kl(Bo, [["render", Do], ["__scopeId", "data-v-ca3f1fb
|
|
|
2101
2095
|
},
|
|
2102
2096
|
emits: ["update:modelValue", "get", "clear"],
|
|
2103
2097
|
setup(l, { emit: b }) {
|
|
2104
|
-
const r = l, v = b, M = vn(() => import("./localIcon-
|
|
2098
|
+
const r = l, v = b, M = vn(() => import("./localIcon-CoJHw5ss.js")), U = vn(() => import("./eleIcon-BoKZ_PzU.js")), I = B(), x = Rl({
|
|
2105
2099
|
fontIconPrefix: "",
|
|
2106
2100
|
fontIconWidth: 0,
|
|
2107
2101
|
fontIconSearch: "",
|
|
@@ -2377,7 +2371,7 @@ function $i(l = "menu") {
|
|
|
2377
2371
|
},
|
|
2378
2372
|
emits: ["closeEditing", "closePlusDialog"],
|
|
2379
2373
|
setup(b, { emit: r }) {
|
|
2380
|
-
const v = B("sub-menu-more"), M = jl(yl), U = Zl(yl), I = B(0), x =
|
|
2374
|
+
const v = B("sub-menu-more"), M = jl(yl), U = Zl(yl), I = B(0), x = Sa(), {
|
|
2381
2375
|
rawMenus: R,
|
|
2382
2376
|
menuTriggerType: D,
|
|
2383
2377
|
permissionSideMenus: ce,
|
|
@@ -2529,7 +2523,7 @@ function $i(l = "menu") {
|
|
|
2529
2523
|
}), Cl = B(null), ve = () => {
|
|
2530
2524
|
Xe.show = !1, h();
|
|
2531
2525
|
}, g = (s) => {
|
|
2532
|
-
|
|
2526
|
+
S.title = "", S.icon = "", Xe.type = "create", Xe.show = !0;
|
|
2533
2527
|
}, We = async (s) => {
|
|
2534
2528
|
var N, X, t;
|
|
2535
2529
|
let k;
|
|
@@ -2545,7 +2539,7 @@ function $i(l = "menu") {
|
|
|
2545
2539
|
order_no: "",
|
|
2546
2540
|
isShow: !0
|
|
2547
2541
|
}, A = await Gi(Xe.type, d);
|
|
2548
|
-
((N = A == null ? void 0 : A.data) == null ? void 0 : N.code) === 200 && (k = (t = (X = A == null ? void 0 : A.data) == null ? void 0 : X.result) == null ? void 0 : t.object_id,
|
|
2542
|
+
((N = A == null ? void 0 : A.data) == null ? void 0 : N.code) === 200 && (k = (t = (X = A == null ? void 0 : A.data) == null ? void 0 : X.result) == null ? void 0 : t.object_id, _l.success("新增成功"));
|
|
2549
2543
|
} catch (d) {
|
|
2550
2544
|
throw new Error(d);
|
|
2551
2545
|
} finally {
|
|
@@ -2560,19 +2554,19 @@ function $i(l = "menu") {
|
|
|
2560
2554
|
}
|
|
2561
2555
|
function Te(s, k) {
|
|
2562
2556
|
if (!k) return [];
|
|
2563
|
-
const N = [], X = new RegExp(`(^|/)${k}(/|$)`), t = ml(Z.value), d = Ql(t, "path",
|
|
2557
|
+
const N = [], X = new RegExp(`(^|/)${k}(/|$)`), t = ml(Z.value), d = Ql(t, "path", S == null ? void 0 : S.path);
|
|
2564
2558
|
for (const [A, Y] of s.entries())
|
|
2565
2559
|
X.test(Y == null ? void 0 : Y.object_name) && N.push({
|
|
2566
2560
|
id: A,
|
|
2567
2561
|
//批量替换匹配项的path
|
|
2568
|
-
path: Ce(Y == null ? void 0 : Y.object_name, d == null ? void 0 : d.level,
|
|
2562
|
+
path: Ce(Y == null ? void 0 : Y.object_name, d == null ? void 0 : d.level, S == null ? void 0 : S.title),
|
|
2569
2563
|
//同步修改fatherName同步点击行面包屑下拉触发
|
|
2570
2564
|
father_name: Y == null ? void 0 : Y.father_name
|
|
2571
2565
|
}), X.test(Y == null ? void 0 : Y.father_name) && (Y != null && Y.father_name) && N.push({
|
|
2572
2566
|
id: A,
|
|
2573
2567
|
path: Y == null ? void 0 : Y.object_name,
|
|
2574
2568
|
//同步修改fatherName同步点击行面包屑下拉触发
|
|
2575
|
-
father_name: Ce(Y == null ? void 0 : Y.father_name, d == null ? void 0 : d.level,
|
|
2569
|
+
father_name: Ce(Y == null ? void 0 : Y.father_name, d == null ? void 0 : d.level, S == null ? void 0 : S.title)
|
|
2576
2570
|
});
|
|
2577
2571
|
return N;
|
|
2578
2572
|
}
|
|
@@ -2580,7 +2574,7 @@ function $i(l = "menu") {
|
|
|
2580
2574
|
var s, k, N, X;
|
|
2581
2575
|
el.value = !0;
|
|
2582
2576
|
try {
|
|
2583
|
-
const t = Te(u.value,
|
|
2577
|
+
const t = Te(u.value, S == null ? void 0 : S.path);
|
|
2584
2578
|
if (!(t != null && t.length)) return;
|
|
2585
2579
|
const d = {
|
|
2586
2580
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
@@ -2595,12 +2589,12 @@ function $i(l = "menu") {
|
|
|
2595
2589
|
}
|
|
2596
2590
|
]
|
|
2597
2591
|
}, A = await ja(d);
|
|
2598
|
-
((s = A == null ? void 0 : A.data) == null ? void 0 : s.code) === 200 && ((N = (k = A == null ? void 0 : A.data) == null ? void 0 : k.message) != null && N.includes("成功")) && (Z.value = (X = Z.value) == null ? void 0 : X.map((Y) => (Y == null ? void 0 : Y.path) === (
|
|
2592
|
+
((s = A == null ? void 0 : A.data) == null ? void 0 : s.code) === 200 && ((N = (k = A == null ? void 0 : A.data) == null ? void 0 : k.message) != null && N.includes("成功")) && (Z.value = (X = Z.value) == null ? void 0 : X.map((Y) => (Y == null ? void 0 : Y.path) === (S == null ? void 0 : S.path) ? {
|
|
2599
2593
|
...Y,
|
|
2600
|
-
title:
|
|
2601
|
-
icon:
|
|
2602
|
-
path:
|
|
2603
|
-
} : Y),
|
|
2594
|
+
title: S == null ? void 0 : S.title,
|
|
2595
|
+
icon: S == null ? void 0 : S.icon,
|
|
2596
|
+
path: S == null ? void 0 : S.title
|
|
2597
|
+
} : Y), _l.success("修改成功"));
|
|
2604
2598
|
} catch (t) {
|
|
2605
2599
|
throw new Error(t);
|
|
2606
2600
|
} finally {
|
|
@@ -2613,8 +2607,8 @@ function $i(l = "menu") {
|
|
|
2613
2607
|
switch (Xe.type) {
|
|
2614
2608
|
case "create":
|
|
2615
2609
|
Z.value.push({
|
|
2616
|
-
...
|
|
2617
|
-
path:
|
|
2610
|
+
...S,
|
|
2611
|
+
path: S == null ? void 0 : S.title,
|
|
2618
2612
|
level: 0,
|
|
2619
2613
|
carryData: !1,
|
|
2620
2614
|
children: [],
|
|
@@ -2648,7 +2642,7 @@ function $i(l = "menu") {
|
|
|
2648
2642
|
}
|
|
2649
2643
|
]
|
|
2650
2644
|
}, t = await ft(X);
|
|
2651
|
-
((d = t == null ? void 0 : t.data) == null ? void 0 : d.code) === 200 && ((Y = (A = t == null ? void 0 : t.data) == null ? void 0 : A.message) != null && Y.includes("成功")) && (Z.value = (ue = be.value) == null ? void 0 : ue.filter((qe) => (qe == null ? void 0 : qe.path) !== (s == null ? void 0 : s.path)), Ze.value = Date.now(), Xe.show = !1, h(), M.setAsideEditMenus([]),
|
|
2645
|
+
((d = t == null ? void 0 : t.data) == null ? void 0 : d.code) === 200 && ((Y = (A = t == null ? void 0 : t.data) == null ? void 0 : A.message) != null && Y.includes("成功")) && (Z.value = (ue = be.value) == null ? void 0 : ue.filter((qe) => (qe == null ? void 0 : qe.path) !== (s == null ? void 0 : s.path)), Ze.value = Date.now(), Xe.show = !1, h(), M.setAsideEditMenus([]), _l.success("删除成功"));
|
|
2652
2646
|
});
|
|
2653
2647
|
} catch (k) {
|
|
2654
2648
|
throw new Error(k);
|
|
@@ -2656,9 +2650,9 @@ function $i(l = "menu") {
|
|
|
2656
2650
|
el.value = !1;
|
|
2657
2651
|
}
|
|
2658
2652
|
}, h = () => {
|
|
2659
|
-
for (const s in
|
|
2660
|
-
|
|
2661
|
-
},
|
|
2653
|
+
for (const s in S)
|
|
2654
|
+
S[s] = "";
|
|
2655
|
+
}, S = Rl({
|
|
2662
2656
|
title: "",
|
|
2663
2657
|
icon: "",
|
|
2664
2658
|
path: ""
|
|
@@ -2667,7 +2661,7 @@ function $i(l = "menu") {
|
|
|
2667
2661
|
{ required: !0, message: "请输入", trigger: "blur" }
|
|
2668
2662
|
]
|
|
2669
2663
|
}), de = (s) => {
|
|
2670
|
-
|
|
2664
|
+
S.title = s == null ? void 0 : s.title, S.icon = s == null ? void 0 : s.icon, S.path = s == null ? void 0 : s.path, Xe.type = "update", Xe.show = !1, r("closePlusDialog"), Fl(() => {
|
|
2671
2665
|
var k;
|
|
2672
2666
|
(k = Ne.value) == null || k.focus();
|
|
2673
2667
|
});
|
|
@@ -2693,7 +2687,7 @@ function $i(l = "menu") {
|
|
|
2693
2687
|
create_time: (t = /* @__PURE__ */ new Date()) == null ? void 0 : t.getTime()
|
|
2694
2688
|
}), r("closeEditing"), (d = O.value) == null || d.handleResize(), el.value = !1;
|
|
2695
2689
|
}
|
|
2696
|
-
|
|
2690
|
+
S.title = k == null ? void 0 : k.title, S.icon = k == null ? void 0 : k.icon, S.path = k == null ? void 0 : k.path;
|
|
2697
2691
|
}, { immediate: !0, deep: !0 }), {
|
|
2698
2692
|
menuRef: O,
|
|
2699
2693
|
onDbClickMenu: de,
|
|
@@ -2708,7 +2702,7 @@ function $i(l = "menu") {
|
|
|
2708
2702
|
onCloseMenuPlusDialog: ve,
|
|
2709
2703
|
onConfirmMenu: a,
|
|
2710
2704
|
onDeleteMenu: p,
|
|
2711
|
-
menuForm:
|
|
2705
|
+
menuForm: S,
|
|
2712
2706
|
menuRules: W,
|
|
2713
2707
|
menuFormRef: Cl,
|
|
2714
2708
|
refreshKey: Ze,
|
|
@@ -2859,34 +2853,34 @@ function ir(l = "menu") {
|
|
|
2859
2853
|
operateType: "修改菜单名",
|
|
2860
2854
|
operateIcon: "FixedMenu"
|
|
2861
2855
|
}
|
|
2862
|
-
]), M = jl(yl), U = Zl(yl), I = zl(yl), { loginUserInfo: x } = hl(I), R = B(0), D =
|
|
2856
|
+
]), M = jl(yl), U = Zl(yl), I = zl(yl), { loginUserInfo: x } = hl(I), R = B(0), D = Sa(), ce = B(), {
|
|
2863
2857
|
menuMap: e,
|
|
2864
2858
|
activeAsideEditMenuPath: E,
|
|
2865
2859
|
activeMainEditMenuPath: T,
|
|
2866
2860
|
asideEditMenus: P,
|
|
2867
2861
|
menuTriggerType: u,
|
|
2868
2862
|
platform: oe
|
|
2869
|
-
} = hl(M), { fixMenuStatus: Q } = hl(U), { isSuperAdmin: Z } = Gn(), w = wl(() => b == null ? void 0 : b.mode), C = (
|
|
2863
|
+
} = hl(M), { fixMenuStatus: Q } = hl(U), { isSuperAdmin: Z } = Gn(), w = wl(() => b == null ? void 0 : b.mode), C = (_) => _ == null ? void 0 : _.map((Ae) => {
|
|
2870
2864
|
var Ie, Qe;
|
|
2871
2865
|
return !(Ae != null && Ae.children) || ((Ie = Ae == null ? void 0 : Ae.children) == null ? void 0 : Ie.length) === 0 ? Ae.config = v.value : Ae != null && Ae.children && ((Qe = Ae == null ? void 0 : Ae.children) == null ? void 0 : Qe.length) > 0 && (Ae.children = C(Ae.children)), Ae;
|
|
2872
2866
|
}), i = wl(() => {
|
|
2873
|
-
let
|
|
2874
|
-
return (
|
|
2867
|
+
let _ = [...P.value];
|
|
2868
|
+
return (_ == null ? void 0 : _.length) === 0 ? (D.push("/"), []) : (il(_, $e.value), _ = _ == null ? void 0 : _.map((ie) => {
|
|
2875
2869
|
var Ae, Ie;
|
|
2876
2870
|
return !(ie != null && ie.children) || ((Ae = ie == null ? void 0 : ie.children) == null ? void 0 : Ae.length) === 0 ? ie.config = v.value : ie != null && ie.children && ((Ie = ie == null ? void 0 : ie.children) == null ? void 0 : Ie.length) > 0 && (ie.children = C(ie.children)), ie;
|
|
2877
|
-
}),
|
|
2878
|
-
}), Ee = (
|
|
2871
|
+
}), _);
|
|
2872
|
+
}), Ee = (_) => {
|
|
2879
2873
|
var Re, xe;
|
|
2880
2874
|
const ie = (G) => {
|
|
2881
2875
|
const j = [...G.groups].sort().join("|");
|
|
2882
2876
|
return `${G.menus}|${j}`;
|
|
2883
2877
|
}, Ae = /* @__PURE__ */ new Map();
|
|
2884
|
-
(Re =
|
|
2878
|
+
(Re = _ == null ? void 0 : _.sonSyncs) == null || Re.forEach((G) => {
|
|
2885
2879
|
const j = ie(G);
|
|
2886
2880
|
Ae != null && Ae.has(j) || Ae.set(j, G);
|
|
2887
2881
|
});
|
|
2888
2882
|
const Ie = /* @__PURE__ */ new Map();
|
|
2889
|
-
(xe =
|
|
2883
|
+
(xe = _ == null ? void 0 : _.fatherSyncs) == null || xe.forEach((G) => {
|
|
2890
2884
|
const j = ie(G);
|
|
2891
2885
|
Ie != null && Ie.has(j) || Ie.set(j, G);
|
|
2892
2886
|
});
|
|
@@ -2918,13 +2912,13 @@ function ir(l = "menu") {
|
|
|
2918
2912
|
};
|
|
2919
2913
|
})
|
|
2920
2914
|
];
|
|
2921
|
-
}, me = B([]), L = B([]), J = async (
|
|
2922
|
-
var ie, Ae, Ie, Qe, H, te, Re, xe, G, j, q, m, re, he, ae,
|
|
2915
|
+
}, me = B([]), L = B([]), J = async (_) => {
|
|
2916
|
+
var ie, Ae, Ie, Qe, H, te, Re, xe, G, j, q, m, re, he, ae, _e, K, ze, Oe, ne, bl, tl;
|
|
2923
2917
|
try {
|
|
2924
2918
|
if (!e.value) return;
|
|
2925
2919
|
const Ml = /* @__PURE__ */ new Map(), Il = /* @__PURE__ */ new Map(), Ke = await ha({
|
|
2926
2920
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
2927
|
-
pageName:
|
|
2921
|
+
pageName: _ == null ? void 0 : _.path
|
|
2928
2922
|
});
|
|
2929
2923
|
if (((ie = Ke == null ? void 0 : Ke.data) == null ? void 0 : ie.code) === 200) {
|
|
2930
2924
|
const Le = (Ie = (Ae = Ke == null ? void 0 : Ke.data) == null ? void 0 : Ae.result) == null ? void 0 : Ie.filter((fe) => fe == null ? void 0 : fe.property_name);
|
|
@@ -2937,14 +2931,14 @@ function ir(l = "menu") {
|
|
|
2937
2931
|
})) == null ? void 0 : te.value) == null ? void 0 : Re[0], Pl = (G = (xe = fe == null ? void 0 : fe.contents) == null ? void 0 : xe.find((Al) => {
|
|
2938
2932
|
var Jl;
|
|
2939
2933
|
return (Jl = Al == null ? void 0 : Al.key) == null ? void 0 : Jl.includes("content");
|
|
2940
|
-
})) == null ? void 0 : G.value, kl = Array.isArray(((q = (j = Fe == null ? void 0 : Fe.结构) == null ? void 0 : j.contents) == null ? void 0 : q[0]) || ""),
|
|
2934
|
+
})) == null ? void 0 : G.value, kl = Array.isArray(((q = (j = Fe == null ? void 0 : Fe.结构) == null ? void 0 : j.contents) == null ? void 0 : q[0]) || ""), Sl = kl ? (re = (m = Fe == null ? void 0 : Fe.结构) == null ? void 0 : m.contents) == null ? void 0 : re.flatMap((Al) => Al) : (he = Fe == null ? void 0 : Fe.结构) == null ? void 0 : he.contents, El = ["sort", "disabled", "relatedId"], xl = [
|
|
2941
2935
|
{
|
|
2942
2936
|
key: "tableContents",
|
|
2943
2937
|
contents: Pl
|
|
2944
2938
|
},
|
|
2945
2939
|
{
|
|
2946
2940
|
key: "header",
|
|
2947
|
-
contents:
|
|
2941
|
+
contents: Sl == null ? void 0 : Sl.filter((Al) => !(El != null && El.includes(Al == null ? void 0 : Al.prop)))
|
|
2948
2942
|
},
|
|
2949
2943
|
{
|
|
2950
2944
|
key: "filter",
|
|
@@ -2956,8 +2950,8 @@ function ir(l = "menu") {
|
|
|
2956
2950
|
groupName: fe == null ? void 0 : fe.property_name,
|
|
2957
2951
|
groupType: (Fe == null ? void 0 : Fe.类型) || "",
|
|
2958
2952
|
//注意多级表头处理
|
|
2959
|
-
columns: (
|
|
2960
|
-
hiddenColumns:
|
|
2953
|
+
columns: (_e = Vl == null ? void 0 : Vl.contents) != null && _e.length ? Vl == null ? void 0 : Vl.contents : Sl,
|
|
2954
|
+
hiddenColumns: Sl == null ? void 0 : Sl.filter((Al) => El == null ? void 0 : El.includes(Al == null ? void 0 : Al.prop)),
|
|
2961
2955
|
namePath: ((K = Object.values(fe == null ? void 0 : fe.name)) == null ? void 0 : K.length) > 0 ? (ze = Object.values(fe == null ? void 0 : fe.name)) == null ? void 0 : ze.join("/") : "",
|
|
2962
2956
|
hasMultiHeader: kl,
|
|
2963
2957
|
hasContent: (fe == null ? void 0 : fe.contents) && ((Oe = fe == null ? void 0 : fe.contents) == null ? void 0 : Oe.length),
|
|
@@ -2972,7 +2966,7 @@ function ir(l = "menu") {
|
|
|
2972
2966
|
id: Fe == null ? void 0 : Fe.id,
|
|
2973
2967
|
content: (tl = Fe == null ? void 0 : Fe.引用) == null ? void 0 : tl.contents
|
|
2974
2968
|
},
|
|
2975
|
-
menuId:
|
|
2969
|
+
menuId: _ == null ? void 0 : _.id
|
|
2976
2970
|
});
|
|
2977
2971
|
}
|
|
2978
2972
|
let He = [];
|
|
@@ -2984,17 +2978,17 @@ function ir(l = "menu") {
|
|
|
2984
2978
|
} catch (Ml) {
|
|
2985
2979
|
throw new Error(Ml);
|
|
2986
2980
|
}
|
|
2987
|
-
}, be = B({}), z = async (
|
|
2988
|
-
M.setActiveAsideEditMenuPath(
|
|
2989
|
-
}, Be = async (
|
|
2990
|
-
Q.value ? U.setFixMenuStatus(!1) : (h.value && (u.value = "open"), u.value === "click" ? R.value === 1 ? M.setActiveAsideEditMenuPath(sessionStorage.getItem("pageKey")) : M.setActiveAsideEditMenuPath(
|
|
2991
|
-
const ie = Ql(i.value, "path",
|
|
2981
|
+
}, be = B({}), z = async (_) => {
|
|
2982
|
+
M.setActiveAsideEditMenuPath(_ == null ? void 0 : _.path), be.value = ml(_), await J(_);
|
|
2983
|
+
}, Be = async (_) => {
|
|
2984
|
+
Q.value ? U.setFixMenuStatus(!1) : (h.value && (u.value = "open"), u.value === "click" ? R.value === 1 ? M.setActiveAsideEditMenuPath(sessionStorage.getItem("pageKey")) : M.setActiveAsideEditMenuPath(_) : h.value || (M.setMenuTriggerType("click"), M.setActiveAsideEditMenuPath(_))), _ != null && _.startsWith("/") ? D.push(_) : D.push("/"), R.value++;
|
|
2985
|
+
const ie = Ql(i.value, "path", _);
|
|
2992
2986
|
ie && (be.value = ml(ie), await J(ie));
|
|
2993
|
-
}, ke = (
|
|
2994
|
-
h.value || M.setActiveMenuPath(
|
|
2995
|
-
}, Ve = (
|
|
2987
|
+
}, ke = (_) => {
|
|
2988
|
+
h.value || M.setActiveMenuPath(_);
|
|
2989
|
+
}, Ve = (_) => {
|
|
2996
2990
|
const ie = document.documentElement;
|
|
2997
|
-
|
|
2991
|
+
_ == null || _.forEach((Ae) => {
|
|
2998
2992
|
ie.style.setProperty(Ae.name, Ae.value);
|
|
2999
2993
|
});
|
|
3000
2994
|
};
|
|
@@ -3002,44 +2996,44 @@ function ir(l = "menu") {
|
|
|
3002
2996
|
R.value = 1;
|
|
3003
2997
|
});
|
|
3004
2998
|
const $e = wl(() => {
|
|
3005
|
-
const
|
|
3006
|
-
return
|
|
2999
|
+
const _ = sessionStorage.getItem("authority");
|
|
3000
|
+
return _ ? JSON.parse(_) : [];
|
|
3007
3001
|
});
|
|
3008
3002
|
fl(
|
|
3009
3003
|
() => oe.value,
|
|
3010
|
-
(
|
|
3011
|
-
|
|
3004
|
+
(_) => {
|
|
3005
|
+
_ === "browser" ? Ve(Ya) : _ === "client" ? (Ve(Ha), Ve(Fa)) : _ === "three" && (Ve(Ja), Ve(za));
|
|
3012
3006
|
},
|
|
3013
3007
|
{ immediate: !0 }
|
|
3014
|
-
), fl(() => b == null ? void 0 : b.isRefreshGroups, async (
|
|
3008
|
+
), fl(() => b == null ? void 0 : b.isRefreshGroups, async (_) => {
|
|
3015
3009
|
be.value && await z(be.value);
|
|
3016
3010
|
}, { immediate: !0 });
|
|
3017
|
-
const il = (
|
|
3011
|
+
const il = (_, ie) => ({
|
|
3018
3012
|
isFlag: !0
|
|
3019
3013
|
}), ul = Rl({
|
|
3020
3014
|
show: !1,
|
|
3021
3015
|
title: "菜单配置",
|
|
3022
3016
|
width: "30%",
|
|
3023
3017
|
type: "create"
|
|
3024
|
-
}), pl = (
|
|
3018
|
+
}), pl = (_) => zn(_), Xe = B({}), Cl = B([]), ve = B({}), g = B({}), We = B({}), Ce = (_) => {
|
|
3025
3019
|
M.setCacheInputMenu({
|
|
3026
3020
|
type: ul.type,
|
|
3027
|
-
data:
|
|
3021
|
+
data: _
|
|
3028
3022
|
}), M.setIsRefreshMenus(!0);
|
|
3029
|
-
}, Te = async (
|
|
3023
|
+
}, Te = async (_, ie) => {
|
|
3030
3024
|
M.setIsRefreshMenus(!1), M.setIsRefreshMenus(!0), ce.value = void 0;
|
|
3031
|
-
}, el = (
|
|
3025
|
+
}, el = (_) => {
|
|
3032
3026
|
y.value = !0;
|
|
3033
3027
|
try {
|
|
3034
|
-
ga.confirm(`确认删除【${
|
|
3028
|
+
ga.confirm(`确认删除【${_ == null ? void 0 : _.title}】?将会同步删除其关联的所有数据`, "温馨提示", {
|
|
3035
3029
|
confirmButtonText: "确认",
|
|
3036
3030
|
cancelButtonText: "取消",
|
|
3037
3031
|
type: "warning"
|
|
3038
3032
|
}).then(async () => {
|
|
3039
3033
|
var H, te, Re, xe, G, j, q;
|
|
3040
|
-
const ie = se(e.value,
|
|
3034
|
+
const ie = se(e.value, _ == null ? void 0 : _.path), Ae = ie != null && ie.length ? ie == null ? void 0 : ie.map((m) => ({
|
|
3041
3035
|
object_id: m == null ? void 0 : m.id
|
|
3042
|
-
})) : [{ object_id:
|
|
3036
|
+
})) : [{ object_id: _ == null ? void 0 : _.id }], Ie = {
|
|
3043
3037
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
3044
3038
|
changeContents: [
|
|
3045
3039
|
{
|
|
@@ -3049,14 +3043,14 @@ function ir(l = "menu") {
|
|
|
3049
3043
|
]
|
|
3050
3044
|
}, Qe = await ft(Ie);
|
|
3051
3045
|
if (((H = Qe == null ? void 0 : Qe.data) == null ? void 0 : H.code) === 200 && ((Re = (te = Qe == null ? void 0 : Qe.data) == null ? void 0 : te.message) != null && Re.includes("成功"))) {
|
|
3052
|
-
const m = (xe =
|
|
3046
|
+
const m = (xe = _ == null ? void 0 : _.path) == null ? void 0 : xe.split("/"), re = (G = m == null ? void 0 : m.slice(0, -1)) == null ? void 0 : G.join("/"), he = Ql(i.value, "path", re);
|
|
3053
3047
|
if (he)
|
|
3054
|
-
he.children = (j = he.children) == null ? void 0 : j.filter((ae) => (ae == null ? void 0 : ae.path) !== (
|
|
3048
|
+
he.children = (j = he.children) == null ? void 0 : j.filter((ae) => (ae == null ? void 0 : ae.path) !== (_ == null ? void 0 : _.path));
|
|
3055
3049
|
else {
|
|
3056
|
-
const ae = (q = i.value) == null ? void 0 : q.filter((
|
|
3050
|
+
const ae = (q = i.value) == null ? void 0 : q.filter((_e) => (_e == null ? void 0 : _e.path) !== (_ == null ? void 0 : _.path));
|
|
3057
3051
|
M.setAsideEditMenus(ae);
|
|
3058
3052
|
}
|
|
3059
|
-
await Oa(), Y.value = Date.now(), X(), W.show = !1,
|
|
3053
|
+
await Oa(), Y.value = Date.now(), X(), W.show = !1, _l.success("删除成功");
|
|
3060
3054
|
}
|
|
3061
3055
|
});
|
|
3062
3056
|
} catch (ie) {
|
|
@@ -3064,13 +3058,13 @@ function ir(l = "menu") {
|
|
|
3064
3058
|
} finally {
|
|
3065
3059
|
y.value = !1;
|
|
3066
3060
|
}
|
|
3067
|
-
}, Ne = (
|
|
3068
|
-
switch (z(
|
|
3061
|
+
}, Ne = (_, ie) => {
|
|
3062
|
+
switch (z(_), ie == null ? void 0 : ie.value) {
|
|
3069
3063
|
case "delete":
|
|
3070
|
-
el(
|
|
3064
|
+
el(_);
|
|
3071
3065
|
break;
|
|
3072
3066
|
case "create":
|
|
3073
|
-
d(
|
|
3067
|
+
d(_);
|
|
3074
3068
|
break;
|
|
3075
3069
|
case "createCompName":
|
|
3076
3070
|
de.type = "create", de.show = !0;
|
|
@@ -3078,10 +3072,10 @@ function ir(l = "menu") {
|
|
|
3078
3072
|
}
|
|
3079
3073
|
}, al = () => {
|
|
3080
3074
|
ul.show = !1;
|
|
3081
|
-
}, Ze = (
|
|
3075
|
+
}, Ze = (_) => _ == null ? void 0 : _.filter((ie) => ie.allowInherit), a = () => {
|
|
3082
3076
|
var Ae, Ie, Qe, H, te;
|
|
3083
|
-
let
|
|
3084
|
-
ul.type === "create" && (
|
|
3077
|
+
let _;
|
|
3078
|
+
ul.type === "create" && (_ = ((Ae = g.value) == null ? void 0 : Ae.path) + "/" + ve.value[(Ie = ve.value) == null ? void 0 : Ie.prop]), ul.type === "update" && (_ = (Qe = g.value) == null ? void 0 : Qe.path);
|
|
3085
3079
|
const ie = {
|
|
3086
3080
|
...g.value,
|
|
3087
3081
|
//是否继承父菜单的配置
|
|
@@ -3089,17 +3083,17 @@ function ir(l = "menu") {
|
|
|
3089
3083
|
children: [],
|
|
3090
3084
|
childMenus: [],
|
|
3091
3085
|
title: ve.value[(te = ve.value) == null ? void 0 : te.prop],
|
|
3092
|
-
path:
|
|
3086
|
+
path: _
|
|
3093
3087
|
};
|
|
3094
3088
|
console.log("clickSubmitForm", We.value, g.value, ie), Ce(ie), ul.show = !1;
|
|
3095
|
-
}, p = (
|
|
3089
|
+
}, p = (_) => {
|
|
3096
3090
|
var Ae, Ie;
|
|
3097
|
-
const ie = (Ae =
|
|
3091
|
+
const ie = (Ae = _ == null ? void 0 : _.contents) == null ? void 0 : Ae.find((Qe) => Qe.key === "formContent");
|
|
3098
3092
|
ie && (ve.value = (Ie = ie == null ? void 0 : ie.contents) == null ? void 0 : Ie.reduce(
|
|
3099
3093
|
(Qe, H) => (Qe[H.key] = H.value, Qe.prop = H.key, Qe),
|
|
3100
3094
|
{}
|
|
3101
3095
|
));
|
|
3102
|
-
}, h = B(!1),
|
|
3096
|
+
}, h = B(!1), S = () => {
|
|
3103
3097
|
h.value = !h.value;
|
|
3104
3098
|
}, W = Rl({
|
|
3105
3099
|
show: !1,
|
|
@@ -3117,24 +3111,24 @@ function ir(l = "menu") {
|
|
|
3117
3111
|
}, N = () => {
|
|
3118
3112
|
de.show = !1, t(), be.value && z(be.value);
|
|
3119
3113
|
}, X = () => {
|
|
3120
|
-
for (const
|
|
3121
|
-
pe[
|
|
3114
|
+
for (const _ in pe)
|
|
3115
|
+
pe[_] = "";
|
|
3122
3116
|
}, t = () => {
|
|
3123
|
-
for (const
|
|
3124
|
-
F[
|
|
3125
|
-
}, d = (
|
|
3126
|
-
X(), W.parentPath =
|
|
3117
|
+
for (const _ in F)
|
|
3118
|
+
F[_] = "";
|
|
3119
|
+
}, d = (_) => {
|
|
3120
|
+
X(), W.parentPath = _ == null ? void 0 : _.path, W.type = "create", W.show = !0, Fl(() => {
|
|
3127
3121
|
var ie;
|
|
3128
3122
|
(ie = nl.value) == null || ie.focus();
|
|
3129
3123
|
});
|
|
3130
|
-
}, A = async (
|
|
3124
|
+
}, A = async (_) => {
|
|
3131
3125
|
var Ae, Ie, Qe;
|
|
3132
3126
|
let ie;
|
|
3133
3127
|
try {
|
|
3134
3128
|
const H = {
|
|
3135
3129
|
//新增
|
|
3136
3130
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
3137
|
-
objectName:
|
|
3131
|
+
objectName: _ == null ? void 0 : _.path,
|
|
3138
3132
|
//path
|
|
3139
3133
|
// propertyName: data?.title,//title,框架设计,该字段是自动获取name生成的,不需要传
|
|
3140
3134
|
// fatherObjectId: "",
|
|
@@ -3142,7 +3136,7 @@ function ir(l = "menu") {
|
|
|
3142
3136
|
order_no: "",
|
|
3143
3137
|
isShow: !0
|
|
3144
3138
|
}, te = await Zi(W.type, H);
|
|
3145
|
-
((Ae = te == null ? void 0 : te.data) == null ? void 0 : Ae.code) === 200 && (ie = (Qe = (Ie = te == null ? void 0 : te.data) == null ? void 0 : Ie.result) == null ? void 0 : Qe.object_id,
|
|
3139
|
+
((Ae = te == null ? void 0 : te.data) == null ? void 0 : Ae.code) === 200 && (ie = (Qe = (Ie = te == null ? void 0 : te.data) == null ? void 0 : Ie.result) == null ? void 0 : Qe.object_id, _l.success("新增成功"));
|
|
3146
3140
|
} catch (H) {
|
|
3147
3141
|
throw new Error(H);
|
|
3148
3142
|
} finally {
|
|
@@ -3150,10 +3144,10 @@ function ir(l = "menu") {
|
|
|
3150
3144
|
}
|
|
3151
3145
|
return ie;
|
|
3152
3146
|
}, Y = B(0), ue = B(""), qe = () => {
|
|
3153
|
-
var
|
|
3147
|
+
var _;
|
|
3154
3148
|
y.value = !0, ue.value = "";
|
|
3155
3149
|
try {
|
|
3156
|
-
(
|
|
3150
|
+
(_ = O.value) == null || _.validate(async (ie) => {
|
|
3157
3151
|
if (ie) {
|
|
3158
3152
|
switch (W.type) {
|
|
3159
3153
|
case "create":
|
|
@@ -3201,16 +3195,16 @@ function ir(l = "menu") {
|
|
|
3201
3195
|
} finally {
|
|
3202
3196
|
y.value = !1;
|
|
3203
3197
|
}
|
|
3204
|
-
}, rl = async (
|
|
3198
|
+
}, rl = async (_) => {
|
|
3205
3199
|
try {
|
|
3206
|
-
ga.confirm(`确认删除【${
|
|
3200
|
+
ga.confirm(`确认删除【${_ == null ? void 0 : _.title}】?将会同步删除其关联的所有数据`, "温馨提示", {
|
|
3207
3201
|
confirmButtonText: "确认",
|
|
3208
3202
|
cancelButtonText: "取消",
|
|
3209
3203
|
type: "warning"
|
|
3210
3204
|
}).then(async () => {
|
|
3211
3205
|
var Qe, H, te, Re;
|
|
3212
3206
|
W.type = "delete";
|
|
3213
|
-
const ie = se(e.value,
|
|
3207
|
+
const ie = se(e.value, _ == null ? void 0 : _.path), Ae = {
|
|
3214
3208
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
3215
3209
|
changeContents: [
|
|
3216
3210
|
{
|
|
@@ -3222,24 +3216,24 @@ function ir(l = "menu") {
|
|
|
3222
3216
|
]
|
|
3223
3217
|
}, Ie = await ft(Ae);
|
|
3224
3218
|
if (((Qe = Ie == null ? void 0 : Ie.data) == null ? void 0 : Qe.code) === 200 && ((te = (H = Ie == null ? void 0 : Ie.data) == null ? void 0 : H.message) != null && te.includes("成功"))) {
|
|
3225
|
-
const xe = (Re = i.value) == null ? void 0 : Re.filter((G) => (G == null ? void 0 : G.path) !== (
|
|
3226
|
-
M.setAsideEditMenus(xe), Y.value = Date.now(), W.show = !1, X(),
|
|
3219
|
+
const xe = (Re = i.value) == null ? void 0 : Re.filter((G) => (G == null ? void 0 : G.path) !== (_ == null ? void 0 : _.path));
|
|
3220
|
+
M.setAsideEditMenus(xe), Y.value = Date.now(), W.show = !1, X(), _l.success("删除成功");
|
|
3227
3221
|
}
|
|
3228
3222
|
});
|
|
3229
3223
|
} catch (ie) {
|
|
3230
3224
|
throw new Error(ie);
|
|
3231
3225
|
} finally {
|
|
3232
|
-
await J(
|
|
3226
|
+
await J(_);
|
|
3233
3227
|
}
|
|
3234
3228
|
};
|
|
3235
|
-
function we(
|
|
3236
|
-
if (!
|
|
3237
|
-
const Ie =
|
|
3238
|
-
return ie < 0 || ie >= Ie.length ? (console.warn(`索引 ${ie} 超出范围,路径共有 ${Ie.length} 个片段`),
|
|
3229
|
+
function we(_, ie, Ae) {
|
|
3230
|
+
if (!_) return _;
|
|
3231
|
+
const Ie = _.split("/");
|
|
3232
|
+
return ie < 0 || ie >= Ie.length ? (console.warn(`索引 ${ie} 超出范围,路径共有 ${Ie.length} 个片段`), _) : (Ie[ie] = Ae, Ie.join("/"));
|
|
3239
3233
|
}
|
|
3240
|
-
function se(
|
|
3234
|
+
function se(_, ie) {
|
|
3241
3235
|
const Ae = [], Ie = new RegExp(`(^|/)${ie}(/|$)`), Qe = ml(i.value), H = Ql(Qe, "path", pe == null ? void 0 : pe.path);
|
|
3242
|
-
for (const [te, Re] of
|
|
3236
|
+
for (const [te, Re] of _.entries())
|
|
3243
3237
|
Ie.test(Re == null ? void 0 : Re.object_name) && Ae.push({
|
|
3244
3238
|
id: te,
|
|
3245
3239
|
//批量替换匹配项的path
|
|
@@ -3255,7 +3249,7 @@ function ir(l = "menu") {
|
|
|
3255
3249
|
return Ae;
|
|
3256
3250
|
}
|
|
3257
3251
|
const y = B(!1), Me = async () => {
|
|
3258
|
-
var
|
|
3252
|
+
var _, ie, Ae;
|
|
3259
3253
|
try {
|
|
3260
3254
|
const Ie = se(e.value, pe == null ? void 0 : pe.path);
|
|
3261
3255
|
if (!(Ie != null && Ie.length)) return;
|
|
@@ -3272,22 +3266,22 @@ function ir(l = "menu") {
|
|
|
3272
3266
|
}
|
|
3273
3267
|
]
|
|
3274
3268
|
}, H = await ja(Qe);
|
|
3275
|
-
if (((
|
|
3269
|
+
if (((_ = H == null ? void 0 : H.data) == null ? void 0 : _.code) === 200 && ((Ae = (ie = H == null ? void 0 : H.data) == null ? void 0 : ie.message) != null && Ae.includes("成功"))) {
|
|
3276
3270
|
const te = Ql(i.value, "path", pe.path);
|
|
3277
3271
|
if (!te) return;
|
|
3278
|
-
te.icon = pe == null ? void 0 : pe.icon, te.title = pe == null ? void 0 : pe.title, te.path = pe == null ? void 0 : pe.path,
|
|
3272
|
+
te.icon = pe == null ? void 0 : pe.icon, te.title = pe == null ? void 0 : pe.title, te.path = pe == null ? void 0 : pe.path, _l.success("修改成功");
|
|
3279
3273
|
}
|
|
3280
3274
|
} catch (Ie) {
|
|
3281
3275
|
throw new Error(Ie);
|
|
3282
3276
|
}
|
|
3283
3277
|
}, Pe = () => {
|
|
3284
|
-
var
|
|
3278
|
+
var _;
|
|
3285
3279
|
y.value = !0;
|
|
3286
3280
|
try {
|
|
3287
|
-
(
|
|
3281
|
+
(_ = s.value) == null || _.validate(async (ie) => {
|
|
3288
3282
|
var Ae, Ie, Qe, H, te, Re, xe;
|
|
3289
3283
|
if (ie) {
|
|
3290
|
-
if (!((Ae = be.value) != null && Ae.path)) return
|
|
3284
|
+
if (!((Ae = be.value) != null && Ae.path)) return _l.warning("请先选择所属菜单");
|
|
3291
3285
|
const G = Ql(L.value, "groupId", F == null ? void 0 : F.pid);
|
|
3292
3286
|
let j;
|
|
3293
3287
|
G ? j = [...((Ie = G == null ? void 0 : G.namePath) == null ? void 0 : Ie.split("/")) ?? [], F == null ? void 0 : F.title] : j = [F == null ? void 0 : F.title];
|
|
@@ -3306,7 +3300,7 @@ function ir(l = "menu") {
|
|
|
3306
3300
|
order_no: Number(((Re = (te = me.value) == null ? void 0 : te[((H = me.value) == null ? void 0 : H.length) - 1]) == null ? void 0 : Re.order_no) || 0) + 1,
|
|
3307
3301
|
isShow: !0
|
|
3308
3302
|
}, m = await Ct(de.type, q);
|
|
3309
|
-
((xe = m == null ? void 0 : m.data) == null ? void 0 : xe.code) === 200 && (r("getCompForm", F), t(), await J(be.value),
|
|
3303
|
+
((xe = m == null ? void 0 : m.data) == null ? void 0 : xe.code) === 200 && (r("getCompForm", F), t(), await J(be.value), _l.success("新增成功"), be.value && z(be.value), de.show = !1);
|
|
3310
3304
|
}
|
|
3311
3305
|
});
|
|
3312
3306
|
} catch (ie) {
|
|
@@ -3356,28 +3350,28 @@ function ir(l = "menu") {
|
|
|
3356
3350
|
value: "delete",
|
|
3357
3351
|
icon: "DeleteMenu"
|
|
3358
3352
|
}
|
|
3359
|
-
], nl = B(null), Je = (
|
|
3360
|
-
pe.title =
|
|
3353
|
+
], nl = B(null), Je = (_) => {
|
|
3354
|
+
pe.title = _ == null ? void 0 : _.title, pe.icon = _ == null ? void 0 : _.icon, pe.path = _ == null ? void 0 : _.path, W.type = "update", W.show = !1, Fl(() => {
|
|
3361
3355
|
var ie;
|
|
3362
3356
|
(ie = nl.value) == null || ie.focus();
|
|
3363
3357
|
});
|
|
3364
|
-
},
|
|
3365
|
-
return fl(() => P.value, async (
|
|
3358
|
+
}, Se = B(null);
|
|
3359
|
+
return fl(() => P.value, async (_) => {
|
|
3366
3360
|
var ie, Ae;
|
|
3367
|
-
if (
|
|
3361
|
+
if (_) {
|
|
3368
3362
|
await Fl();
|
|
3369
|
-
const Ie =
|
|
3363
|
+
const Ie = _ == null ? void 0 : _[0];
|
|
3370
3364
|
if (((ie = Ie == null ? void 0 : Ie.children) == null ? void 0 : ie.length) > 0) {
|
|
3371
3365
|
const Qe = Ie == null ? void 0 : Ie.path;
|
|
3372
|
-
if (!
|
|
3373
|
-
(Ae =
|
|
3366
|
+
if (!Se.value) return;
|
|
3367
|
+
(Ae = Se.value) == null || Ae.openMenuRefByIndex(Qe), M.setActiveAsideEditMenuPath(Qe ?? "");
|
|
3374
3368
|
} else
|
|
3375
3369
|
M.setActiveAsideEditMenuPath((Ie == null ? void 0 : Ie.path) ?? "");
|
|
3376
3370
|
}
|
|
3377
3371
|
}, { immediate: !0 }), {
|
|
3378
|
-
menuRef:
|
|
3372
|
+
menuRef: Se,
|
|
3379
3373
|
isCollapse: h,
|
|
3380
|
-
handleMenuCollapse:
|
|
3374
|
+
handleMenuCollapse: S,
|
|
3381
3375
|
handleCompChange: p,
|
|
3382
3376
|
dialogForm: Xe,
|
|
3383
3377
|
dialogRenderComps: Cl,
|
|
@@ -3626,21 +3620,19 @@ function mr(l, b, r, v, M, U) {
|
|
|
3626
3620
|
footer: o(() => [
|
|
3627
3621
|
V("div", Cr, [
|
|
3628
3622
|
n(oe, { onClick: l.onCloseGroupDialog }, {
|
|
3629
|
-
default: o(() => b[7] || (b[7] = [
|
|
3630
|
-
cl("取消")
|
|
3631
|
-
])),
|
|
3632
|
-
_: 1
|
|
3633
|
-
__: [7]
|
|
3623
|
+
default: o(() => [...b[7] || (b[7] = [
|
|
3624
|
+
cl("取消", -1)
|
|
3625
|
+
])]),
|
|
3626
|
+
_: 1
|
|
3634
3627
|
}, 8, ["onClick"]),
|
|
3635
3628
|
n(oe, {
|
|
3636
3629
|
type: "primary",
|
|
3637
3630
|
onClick: l.onConfirmGroup
|
|
3638
3631
|
}, {
|
|
3639
|
-
default: o(() => b[8] || (b[8] = [
|
|
3640
|
-
cl("确认")
|
|
3641
|
-
])),
|
|
3642
|
-
_: 1
|
|
3643
|
-
__: [8]
|
|
3632
|
+
default: o(() => [...b[8] || (b[8] = [
|
|
3633
|
+
cl("确认", -1)
|
|
3634
|
+
])]),
|
|
3635
|
+
_: 1
|
|
3644
3636
|
}, 8, ["onClick"])
|
|
3645
3637
|
])
|
|
3646
3638
|
]),
|
|
@@ -3859,10 +3851,10 @@ const wr = /* @__PURE__ */ Kl(rr, [["render", mr], ["__scopeId", "data-v-7f84f44
|
|
|
3859
3851
|
}, 8, ["data"]);
|
|
3860
3852
|
};
|
|
3861
3853
|
}
|
|
3862
|
-
}),
|
|
3854
|
+
}), Sr = {
|
|
3863
3855
|
key: 0,
|
|
3864
3856
|
style: { "margin-right": "8px" }
|
|
3865
|
-
},
|
|
3857
|
+
}, _r = ["onClick"], Tr = ["onClick"], Br = {
|
|
3866
3858
|
key: 2,
|
|
3867
3859
|
title: "双击编辑",
|
|
3868
3860
|
style: { display: "inline-block", "min-width": "80px" }
|
|
@@ -3938,7 +3930,7 @@ const wr = /* @__PURE__ */ Kl(rr, [["render", mr], ["__scopeId", "data-v-7f84f44
|
|
|
3938
3930
|
return (z = String(be == null ? void 0 : be.id)) == null ? void 0 : z.includes("new");
|
|
3939
3931
|
});
|
|
3940
3932
|
if (i == "create" && ((J = U.value) == null ? void 0 : J.find((z) => (z == null ? void 0 : z.prop) === w)))
|
|
3941
|
-
return
|
|
3933
|
+
return _l.error("请勿创建重复参数名称");
|
|
3942
3934
|
v("onClickOperateData", i, {
|
|
3943
3935
|
...C,
|
|
3944
3936
|
label: w,
|
|
@@ -3984,7 +3976,7 @@ const wr = /* @__PURE__ */ Kl(rr, [["render", mr], ["__scopeId", "data-v-7f84f44
|
|
|
3984
3976
|
label: o(() => {
|
|
3985
3977
|
var Be;
|
|
3986
3978
|
return [
|
|
3987
|
-
z != null && z.children && ((Be = z == null ? void 0 : z.children) != null && Be.length) ? (f(), $("span",
|
|
3979
|
+
z != null && z.children && ((Be = z == null ? void 0 : z.children) != null && Be.length) ? (f(), $("span", Sr, [
|
|
3988
3980
|
M.value === (z == null ? void 0 : z.id) ? (f(), ye(i, { key: 0 }, {
|
|
3989
3981
|
default: o(() => [
|
|
3990
3982
|
n(c(Vs))
|
|
@@ -4017,7 +4009,7 @@ const wr = /* @__PURE__ */ Kl(rr, [["render", mr], ["__scopeId", "data-v-7f84f44
|
|
|
4017
4009
|
name: "softEdit",
|
|
4018
4010
|
style: { width: "16px", height: "16px", color: "var(--el-color-primary)" }
|
|
4019
4011
|
})
|
|
4020
|
-
], 8,
|
|
4012
|
+
], 8, _r),
|
|
4021
4013
|
V("span", {
|
|
4022
4014
|
class: "tab-del-wrapper",
|
|
4023
4015
|
title: "删除",
|
|
@@ -4141,7 +4133,7 @@ const wr = /* @__PURE__ */ Kl(rr, [["render", mr], ["__scopeId", "data-v-7f84f44
|
|
|
4141
4133
|
label: "编辑",
|
|
4142
4134
|
value: "Edit"
|
|
4143
4135
|
}
|
|
4144
|
-
],
|
|
4136
|
+
], Sn = [
|
|
4145
4137
|
{
|
|
4146
4138
|
label: "Tab",
|
|
4147
4139
|
value: "Tab"
|
|
@@ -4167,7 +4159,7 @@ const wr = /* @__PURE__ */ Kl(rr, [["render", mr], ["__scopeId", "data-v-7f84f44
|
|
|
4167
4159
|
label: "Random",
|
|
4168
4160
|
value: "Random"
|
|
4169
4161
|
}
|
|
4170
|
-
],
|
|
4162
|
+
], _n = [
|
|
4171
4163
|
{
|
|
4172
4164
|
label: "表格",
|
|
4173
4165
|
value: "Table"
|
|
@@ -4289,7 +4281,7 @@ const Nl = (l, b) => {
|
|
|
4289
4281
|
const r = jl(yl), { activeAsideEditMenuPath: v } = hl(r), M = l, U = b, I = B({}), x = (ve, g) => {
|
|
4290
4282
|
ve && (I.value[g] = ve);
|
|
4291
4283
|
}, R = (ve) => {
|
|
4292
|
-
var We, Ce, Te, el, Ne, al, Ze, a, p, h,
|
|
4284
|
+
var We, Ce, Te, el, Ne, al, Ze, a, p, h, S, W, de, O, s, k, N, X, t, d, A, Y;
|
|
4293
4285
|
const g = JSON.parse(JSON.stringify(ve));
|
|
4294
4286
|
if (e && typeof e == "object" && ((We = Object.keys(g)) == null || We.forEach((ue) => {
|
|
4295
4287
|
ue in e && (e[ue] = g[ue]);
|
|
@@ -4298,10 +4290,10 @@ const Nl = (l, b) => {
|
|
|
4298
4290
|
label: ue == null ? void 0 : ue.name,
|
|
4299
4291
|
configInfo: ue == null ? void 0 : ue.configInfo
|
|
4300
4292
|
})), (el = g == null ? void 0 : g.configInfo) != null && el.content) {
|
|
4301
|
-
e.linkSource = Lr((Ne = g == null ? void 0 : g.configInfo) == null ? void 0 : Ne.content), e.formType = Nl((al = g == null ? void 0 : g.configInfo) == null ? void 0 : al.content, "SubType") || "", e.view = Nl((Ze = g == null ? void 0 : g.configInfo) == null ? void 0 : Ze.content, "EditRead") || "Read", e.maxRow = Nl((a = g == null ? void 0 : g.configInfo) == null ? void 0 : a.content, "MaxRow") || "", e.maxColumn = Nl((p = g == null ? void 0 : g.configInfo) == null ? void 0 : p.content, "MaxColumn") || "", e.showHide = Nl((h = g == null ? void 0 : g.configInfo) == null ? void 0 : h.content, "ShowHide") || "Show", e.textSize = Nl((
|
|
4293
|
+
e.linkSource = Lr((Ne = g == null ? void 0 : g.configInfo) == null ? void 0 : Ne.content), e.formType = Nl((al = g == null ? void 0 : g.configInfo) == null ? void 0 : al.content, "SubType") || "", e.view = Nl((Ze = g == null ? void 0 : g.configInfo) == null ? void 0 : Ze.content, "EditRead") || "Read", e.maxRow = Nl((a = g == null ? void 0 : g.configInfo) == null ? void 0 : a.content, "MaxRow") || "", e.maxColumn = Nl((p = g == null ? void 0 : g.configInfo) == null ? void 0 : p.content, "MaxColumn") || "", e.showHide = Nl((h = g == null ? void 0 : g.configInfo) == null ? void 0 : h.content, "ShowHide") || "Show", e.textSize = Nl((S = g == null ? void 0 : g.configInfo) == null ? void 0 : S.content, "TextSize") || "", e.textColor = Tn(Nl((W = g == null ? void 0 : g.configInfo) == null ? void 0 : W.content, "TextRGBA")) || "", e.textBackground = Tn(Nl((de = g == null ? void 0 : g.configInfo) == null ? void 0 : de.content, "TextBackRGBA")) || "";
|
|
4302
4294
|
const ue = Nl((O = g == null ? void 0 : g.configInfo) == null ? void 0 : O.content, "Type") || "", qe = et == null ? void 0 : et.find((y) => ue == null ? void 0 : ue.includes(y == null ? void 0 : y.value));
|
|
4303
4295
|
qe && (e.quoteType = qe == null ? void 0 : qe.value);
|
|
4304
|
-
const rl =
|
|
4296
|
+
const rl = Sn.map((y) => y == null ? void 0 : y.value), we = rl == null ? void 0 : rl.reduce((y, Me) => {
|
|
4305
4297
|
var pe;
|
|
4306
4298
|
const Pe = Nl((pe = g == null ? void 0 : g.configInfo) == null ? void 0 : pe.content, Me);
|
|
4307
4299
|
return Pe && (y.comp = Me || "", y.value = Pe || ""), y;
|
|
@@ -4542,7 +4534,7 @@ const Nl = (l, b) => {
|
|
|
4542
4534
|
}, { immediate: !0 }), fl(() => v.value, (ve) => {
|
|
4543
4535
|
ve && e.id && ke();
|
|
4544
4536
|
}, { immediate: !0 }), (ve, g) => {
|
|
4545
|
-
const We = ee("el-input"), Ce = ee("el-form-item"), Te = ee("el-form"), el = ee("group-index"), Ne = ee("el-option"), al = ee("el-select"), Ze = ee("el-radio"), a = ee("el-radio-group"), p = ee("el-icon"), h = ee("el-cascader"),
|
|
4537
|
+
const We = ee("el-input"), Ce = ee("el-form-item"), Te = ee("el-form"), el = ee("group-index"), Ne = ee("el-option"), al = ee("el-select"), Ze = ee("el-radio"), a = ee("el-radio-group"), p = ee("el-icon"), h = ee("el-cascader"), S = ee("el-tag"), W = ee("el-button"), de = ee("el-color-picker"), O = ee("el-col"), s = ee("el-row"), k = ee("el-text"), N = ee("el-tab-pane"), X = ee("el-tabs");
|
|
4546
4538
|
return f(), $(ll, null, [
|
|
4547
4539
|
(f(!0), $(ll, null, dl(l.children, (t) => {
|
|
4548
4540
|
var d, A, Y;
|
|
@@ -4668,21 +4660,19 @@ const Nl = (l, b) => {
|
|
|
4668
4660
|
footer: o(() => [
|
|
4669
4661
|
V("div", Fr, [
|
|
4670
4662
|
n(W, { onClick: $e }, {
|
|
4671
|
-
default: o(() => g[36] || (g[36] = [
|
|
4672
|
-
cl("取消")
|
|
4673
|
-
])),
|
|
4674
|
-
_: 1
|
|
4675
|
-
__: [36]
|
|
4663
|
+
default: o(() => [...g[36] || (g[36] = [
|
|
4664
|
+
cl("取消", -1)
|
|
4665
|
+
])]),
|
|
4666
|
+
_: 1
|
|
4676
4667
|
}),
|
|
4677
4668
|
n(W, {
|
|
4678
4669
|
type: "primary",
|
|
4679
4670
|
onClick: Z
|
|
4680
4671
|
}, {
|
|
4681
|
-
default: o(() => g[37] || (g[37] = [
|
|
4682
|
-
cl("确认")
|
|
4683
|
-
])),
|
|
4684
|
-
_: 1
|
|
4685
|
-
__: [37]
|
|
4672
|
+
default: o(() => [...g[37] || (g[37] = [
|
|
4673
|
+
cl("确认", -1)
|
|
4674
|
+
])]),
|
|
4675
|
+
_: 1
|
|
4686
4676
|
})
|
|
4687
4677
|
])
|
|
4688
4678
|
]),
|
|
@@ -4734,7 +4724,7 @@ const Nl = (l, b) => {
|
|
|
4734
4724
|
onChange: Cl
|
|
4735
4725
|
}, {
|
|
4736
4726
|
default: o(() => [
|
|
4737
|
-
(f(!0), $(ll, null, dl(c(
|
|
4727
|
+
(f(!0), $(ll, null, dl(c(_n), (t) => (f(), ye(Ne, {
|
|
4738
4728
|
key: t == null ? void 0 : t.value,
|
|
4739
4729
|
label: t == null ? void 0 : t.label,
|
|
4740
4730
|
value: t == null ? void 0 : t.value
|
|
@@ -4775,7 +4765,7 @@ const Nl = (l, b) => {
|
|
|
4775
4765
|
default: o(() => {
|
|
4776
4766
|
var t, d;
|
|
4777
4767
|
return [
|
|
4778
|
-
(f(!0), $(ll, null, dl(((d = (t = c(
|
|
4768
|
+
(f(!0), $(ll, null, dl(((d = (t = c(_n)) == null ? void 0 : t.find((A) => (A == null ? void 0 : A.value) === c(e).type)) == null ? void 0 : d.subOptions) || [], (A) => (f(), ye(Ne, {
|
|
4779
4769
|
key: A == null ? void 0 : A.value,
|
|
4780
4770
|
label: A == null ? void 0 : A.label,
|
|
4781
4771
|
value: A == null ? void 0 : A.value
|
|
@@ -4983,7 +4973,7 @@ const Nl = (l, b) => {
|
|
|
4983
4973
|
}, 1024),
|
|
4984
4974
|
n(Ce, { label: "按钮内容:" }, {
|
|
4985
4975
|
default: o(() => [
|
|
4986
|
-
(f(!0), $(ll, null, dl(t == null ? void 0 : t.data, (ue) => (f(), ye(
|
|
4976
|
+
(f(!0), $(ll, null, dl(t == null ? void 0 : t.data, (ue) => (f(), ye(S, {
|
|
4987
4977
|
key: ue,
|
|
4988
4978
|
"disable-transitions": !1,
|
|
4989
4979
|
closable: "",
|
|
@@ -5010,12 +5000,11 @@ const Nl = (l, b) => {
|
|
|
5010
5000
|
size: "small",
|
|
5011
5001
|
onClick: (ue) => C(t)
|
|
5012
5002
|
}, {
|
|
5013
|
-
default: o(() => g[32] || (g[32] = [
|
|
5014
|
-
cl(" + ")
|
|
5015
|
-
])),
|
|
5016
|
-
_:
|
|
5017
|
-
|
|
5018
|
-
}, 1032, ["onClick"]))
|
|
5003
|
+
default: o(() => [...g[32] || (g[32] = [
|
|
5004
|
+
cl(" + ", -1)
|
|
5005
|
+
])]),
|
|
5006
|
+
_: 1
|
|
5007
|
+
}, 8, ["onClick"]))
|
|
5019
5008
|
]),
|
|
5020
5009
|
_: 2
|
|
5021
5010
|
}, 1024)
|
|
@@ -5058,7 +5047,7 @@ const Nl = (l, b) => {
|
|
|
5058
5047
|
clearable: ""
|
|
5059
5048
|
}, {
|
|
5060
5049
|
default: o(() => [
|
|
5061
|
-
(f(!0), $(ll, null, dl(c(
|
|
5050
|
+
(f(!0), $(ll, null, dl(c(Sn), (t) => (f(), ye(Ne, {
|
|
5062
5051
|
key: t.value,
|
|
5063
5052
|
label: t.label,
|
|
5064
5053
|
value: t.value
|
|
@@ -5220,13 +5209,12 @@ const Nl = (l, b) => {
|
|
|
5220
5209
|
size: "small",
|
|
5221
5210
|
type: "danger"
|
|
5222
5211
|
}, {
|
|
5223
|
-
default: o(() => g[33] || (g[33] = [
|
|
5224
|
-
cl(" 注意事项:"),
|
|
5212
|
+
default: o(() => [...g[33] || (g[33] = [
|
|
5213
|
+
cl(" 注意事项:", -1),
|
|
5225
5214
|
V("br", null, null, -1),
|
|
5226
|
-
cl(" 组合关键字: 用于关键字一致的配置组合,应用于组合容器中 ")
|
|
5227
|
-
])),
|
|
5228
|
-
_: 1
|
|
5229
|
-
__: [33]
|
|
5215
|
+
cl(" 组合关键字: 用于关键字一致的配置组合,应用于组合容器中 ", -1)
|
|
5216
|
+
])]),
|
|
5217
|
+
_: 1
|
|
5230
5218
|
})) : Ue("", !0)
|
|
5231
5219
|
]),
|
|
5232
5220
|
_: 1
|
|
@@ -5273,18 +5261,16 @@ const Nl = (l, b) => {
|
|
|
5273
5261
|
n(s, { class: "cascader-title-wrapper" }, {
|
|
5274
5262
|
default: o(() => [
|
|
5275
5263
|
n(O, { span: 12 }, {
|
|
5276
|
-
default: o(() => g[34] || (g[34] = [
|
|
5277
|
-
cl("已选选项")
|
|
5278
|
-
])),
|
|
5279
|
-
_: 1
|
|
5280
|
-
__: [34]
|
|
5264
|
+
default: o(() => [...g[34] || (g[34] = [
|
|
5265
|
+
cl("已选选项", -1)
|
|
5266
|
+
])]),
|
|
5267
|
+
_: 1
|
|
5281
5268
|
}),
|
|
5282
5269
|
n(O, { span: 12 }, {
|
|
5283
|
-
default: o(() => g[35] || (g[35] = [
|
|
5284
|
-
cl("同步方式")
|
|
5285
|
-
])),
|
|
5286
|
-
_: 1
|
|
5287
|
-
__: [35]
|
|
5270
|
+
default: o(() => [...g[35] || (g[35] = [
|
|
5271
|
+
cl("同步方式", -1)
|
|
5272
|
+
])]),
|
|
5273
|
+
_: 1
|
|
5288
5274
|
})
|
|
5289
5275
|
]),
|
|
5290
5276
|
_: 1
|
|
@@ -5325,8 +5311,8 @@ const Nl = (l, b) => {
|
|
|
5325
5311
|
_: 2
|
|
5326
5312
|
}, 1032, ["value"]))), 128))
|
|
5327
5313
|
]),
|
|
5328
|
-
_:
|
|
5329
|
-
},
|
|
5314
|
+
_: 1
|
|
5315
|
+
}, 8, ["model-value", "onUpdate:modelValue"])
|
|
5330
5316
|
]),
|
|
5331
5317
|
_: 2
|
|
5332
5318
|
}, 1024)
|
|
@@ -5715,20 +5701,20 @@ const os = (l, b = 0) => {
|
|
|
5715
5701
|
if (Q.value = !1, t) {
|
|
5716
5702
|
if ((d = Object.keys(t)) == null || d.forEach((Y) => {
|
|
5717
5703
|
Y in e && (e[Y] = t[Y]);
|
|
5718
|
-
}), !(e != null && e.id)) return
|
|
5704
|
+
}), !(e != null && e.id)) return _l.error("获取节点信息出错了");
|
|
5719
5705
|
const A = vo(h.value, e == null ? void 0 : e.id, "groupId");
|
|
5720
5706
|
e.pid = (A == null ? void 0 : A.groupId) || (e == null ? void 0 : e.menuId) || "", Z();
|
|
5721
5707
|
}
|
|
5722
5708
|
}, Q = B(!1), Z = async () => {
|
|
5723
|
-
var t, d, A, Y, ue, qe, rl, we, se, y, Me, Pe, pe, le, F, Ye, Ge, je, nl, Je,
|
|
5709
|
+
var t, d, A, Y, ue, qe, rl, we, se, y, Me, Pe, pe, le, F, Ye, Ge, je, nl, Je, Se, _, ie, Ae, Ie, Qe, H, te, Re;
|
|
5724
5710
|
T.value = !0;
|
|
5725
5711
|
try {
|
|
5726
|
-
if (!U.value) return
|
|
5712
|
+
if (!U.value) return _l.warning("请先选择所属菜单");
|
|
5727
5713
|
if (!(e != null && e.id)) return;
|
|
5728
5714
|
let xe = [], G = [];
|
|
5729
5715
|
if (Array.isArray(e == null ? void 0 : e.quotes)) {
|
|
5730
|
-
const he = (d = (t = e == null ? void 0 : e.quoteWays) == null ? void 0 : t.filter((K) => (K == null ? void 0 : K.value) === "fatherSync")) == null ? void 0 : d.map((K) => K == null ? void 0 : K.key), ae = (Y = (A = e == null ? void 0 : e.quoteWays) == null ? void 0 : A.filter((K) => (K == null ? void 0 : K.value) === "sonSync")) == null ? void 0 : Y.map((K) => K == null ? void 0 : K.key),
|
|
5731
|
-
xe = (we = (rl = e == null ? void 0 : e.quotes) == null ? void 0 : rl.filter((K) => (he == null ? void 0 : he.includes(K == null ? void 0 : K.join("/"))) || (
|
|
5716
|
+
const he = (d = (t = e == null ? void 0 : e.quoteWays) == null ? void 0 : t.filter((K) => (K == null ? void 0 : K.value) === "fatherSync")) == null ? void 0 : d.map((K) => K == null ? void 0 : K.key), ae = (Y = (A = e == null ? void 0 : e.quoteWays) == null ? void 0 : A.filter((K) => (K == null ? void 0 : K.value) === "sonSync")) == null ? void 0 : Y.map((K) => K == null ? void 0 : K.key), _e = (qe = (ue = e == null ? void 0 : e.quoteWays) == null ? void 0 : ue.filter((K) => (K == null ? void 0 : K.value) === "bothSync")) == null ? void 0 : qe.map((K) => K == null ? void 0 : K.key);
|
|
5717
|
+
xe = (we = (rl = e == null ? void 0 : e.quotes) == null ? void 0 : rl.filter((K) => (he == null ? void 0 : he.includes(K == null ? void 0 : K.join("/"))) || (_e == null ? void 0 : _e.includes(K == null ? void 0 : K.join("/"))))) == null ? void 0 : we.map((K) => {
|
|
5732
5718
|
var ze;
|
|
5733
5719
|
return {
|
|
5734
5720
|
menus: K == null ? void 0 : K[0],
|
|
@@ -5736,7 +5722,7 @@ const os = (l, b = 0) => {
|
|
|
5736
5722
|
groups: (ze = K == null ? void 0 : K[1]) == null ? void 0 : ze.split("/")
|
|
5737
5723
|
//嵌套特性使用,分割,传值数组
|
|
5738
5724
|
};
|
|
5739
|
-
}), G = (y = (se = e == null ? void 0 : e.quotes) == null ? void 0 : se.filter((K) => (ae == null ? void 0 : ae.includes(K == null ? void 0 : K.join("/"))) || (
|
|
5725
|
+
}), G = (y = (se = e == null ? void 0 : e.quotes) == null ? void 0 : se.filter((K) => (ae == null ? void 0 : ae.includes(K == null ? void 0 : K.join("/"))) || (_e == null ? void 0 : _e.includes(K == null ? void 0 : K.join("/"))))) == null ? void 0 : y.map((K) => {
|
|
5740
5726
|
var ze;
|
|
5741
5727
|
return {
|
|
5742
5728
|
menus: K == null ? void 0 : K[0],
|
|
@@ -5759,7 +5745,7 @@ const os = (l, b = 0) => {
|
|
|
5759
5745
|
filter: {
|
|
5760
5746
|
fatherSyncs: xe,
|
|
5761
5747
|
sonSyncs: G,
|
|
5762
|
-
quotes: [...xe, ...G].filter((he, ae,
|
|
5748
|
+
quotes: [...xe, ...G].filter((he, ae, _e) => ae === _e.findIndex(
|
|
5763
5749
|
(K) => K.menus === he.menus && JSON.stringify(K.groups) === JSON.stringify(he.groups)
|
|
5764
5750
|
))
|
|
5765
5751
|
},
|
|
@@ -5772,7 +5758,7 @@ const os = (l, b = 0) => {
|
|
|
5772
5758
|
const he = Ql(a.value, "id", e == null ? void 0 : e.id);
|
|
5773
5759
|
if ((le = he == null ? void 0 : he.configInfo) != null && le.id) {
|
|
5774
5760
|
let ae = "";
|
|
5775
|
-
const
|
|
5761
|
+
const _e = [
|
|
5776
5762
|
//按照框架需求,根据fatherSyncs和sonSyncs是否有值,往引用里面新增 @QuoteSonSync=No,@QuoteFatherSync=Yes,便于模型导出
|
|
5777
5763
|
// {
|
|
5778
5764
|
// key: 'QuoteFatherSync',
|
|
@@ -5865,17 +5851,17 @@ const os = (l, b = 0) => {
|
|
|
5865
5851
|
//"Tab"...
|
|
5866
5852
|
value: e == null ? void 0 : e.combineKey
|
|
5867
5853
|
}
|
|
5868
|
-
)), (Je = e == null ? void 0 : e.buttonData) != null && Je.length && ((
|
|
5854
|
+
)), (Je = e == null ? void 0 : e.buttonData) != null && Je.length && ((Se = e == null ? void 0 : e.buttonData) == null || Se.forEach((Oe) => {
|
|
5869
5855
|
var ne;
|
|
5870
5856
|
Oe != null && Oe.key && (K == null || K.push({
|
|
5871
5857
|
key: "Button",
|
|
5872
5858
|
value: `((${Oe == null ? void 0 : Oe.value}),${(ne = Oe == null ? void 0 : Oe.key) == null ? void 0 : ne.join(",")})`,
|
|
5873
5859
|
allowRepeat: !0
|
|
5874
5860
|
}));
|
|
5875
|
-
})),
|
|
5876
|
-
let ze =
|
|
5861
|
+
})), _e.push(...K);
|
|
5862
|
+
let ze = _e == null ? void 0 : _e.reduce((Oe, ne) => ne != null && ne.value ? mt(Oe, ne == null ? void 0 : ne.key, ne == null ? void 0 : ne.value, ne == null ? void 0 : ne.allowRepeat) : Oe, ae);
|
|
5877
5863
|
if (e != null && e.filterProp) {
|
|
5878
|
-
const Oe = (
|
|
5864
|
+
const Oe = (_ = e == null ? void 0 : e.dataSource) == null ? void 0 : _.split("/"), ne = "$" + ((ie = Oe == null ? void 0 : Oe.slice(0, -1)) == null ? void 0 : ie.join("$")), bl = Oe == null ? void 0 : Oe[(Oe == null ? void 0 : Oe.length) - 1], tl = (Ae = e == null ? void 0 : e.applyEle) == null ? void 0 : Ae.split("/"), Ml = "$" + ((Ie = tl == null ? void 0 : tl.slice(0, -1)) == null ? void 0 : Ie.join("$")), Il = tl == null ? void 0 : tl[(tl == null ? void 0 : tl.length) - 1], Ke = `(*${e == null ? void 0 : e.name}:${e == null ? void 0 : e.filterProp}=${ne}:{${bl}}${Ml}:${Il})`;
|
|
5879
5865
|
ze = `(${(ze == null ? void 0 : ze.slice(1, -1)) + ",If" + Ke})`;
|
|
5880
5866
|
}
|
|
5881
5867
|
if (console.log("resConfigs", ze), e != null && e.linkSource && (console.log("链接自定义", ze, e == null ? void 0 : e.linkSource), ze = (e == null ? void 0 : e.linkSource) + ze), q.push(ja({
|
|
@@ -5925,7 +5911,7 @@ const os = (l, b = 0) => {
|
|
|
5925
5911
|
}) && (a.value = (Re = a.value) == null ? void 0 : Re.map((he) => (he == null ? void 0 : he.id) === (e == null ? void 0 : e.id) ? {
|
|
5926
5912
|
...he,
|
|
5927
5913
|
name: e == null ? void 0 : e.name
|
|
5928
|
-
} : he), Q.value = !0,
|
|
5914
|
+
} : he), Q.value = !0, _l.success("修改成功"));
|
|
5929
5915
|
} catch (xe) {
|
|
5930
5916
|
throw new Error(xe);
|
|
5931
5917
|
} finally {
|
|
@@ -5964,7 +5950,7 @@ const os = (l, b = 0) => {
|
|
|
5964
5950
|
var t, d, A, Y, ue, qe, rl, we, se, y;
|
|
5965
5951
|
Q.value = !1, T.value = !0;
|
|
5966
5952
|
try {
|
|
5967
|
-
if (!i.groupId || !i.groupType) return
|
|
5953
|
+
if (!i.groupId || !i.groupType) return _l.error("特性信息获取出错了");
|
|
5968
5954
|
const Me = Ql(a.value, "id", i.groupId), Pe = ml(Me), pe = {
|
|
5969
5955
|
groups: i != null && i.related ? [(t = i == null ? void 0 : i.related) == null ? void 0 : t[1]] : [],
|
|
5970
5956
|
menus: i != null && i.related ? (A = (d = i == null ? void 0 : i.related) == null ? void 0 : d[0]) == null ? void 0 : A.split("/") : [],
|
|
@@ -5977,9 +5963,9 @@ const os = (l, b = 0) => {
|
|
|
5977
5963
|
if (i != null && i.parentProp) {
|
|
5978
5964
|
const nl = Ql(Pe == null ? void 0 : Pe.data, "id", i == null ? void 0 : i.parentProp);
|
|
5979
5965
|
if (nl && ((ue = nl == null ? void 0 : nl.children) != null && ue.length)) {
|
|
5980
|
-
const Je = (qe = nl.children) == null ? void 0 : qe.filter((
|
|
5981
|
-
var
|
|
5982
|
-
return !((
|
|
5966
|
+
const Je = (qe = nl.children) == null ? void 0 : qe.filter((Se) => {
|
|
5967
|
+
var _;
|
|
5968
|
+
return !((_ = String(Se == null ? void 0 : Se.id)) != null && _.includes("new"));
|
|
5983
5969
|
});
|
|
5984
5970
|
nl.children = [...Je, {
|
|
5985
5971
|
prop: i.parentProp ? i.parentProp + "." + le : le,
|
|
@@ -6005,8 +5991,8 @@ const os = (l, b = 0) => {
|
|
|
6005
5991
|
F = Pe == null ? void 0 : Pe.data;
|
|
6006
5992
|
} else {
|
|
6007
5993
|
const nl = (rl = Pe == null ? void 0 : Pe.data) == null ? void 0 : rl.filter((Je) => {
|
|
6008
|
-
var
|
|
6009
|
-
return !((
|
|
5994
|
+
var Se;
|
|
5995
|
+
return !((Se = String(Je == null ? void 0 : Je.id)) != null && Se.includes("new"));
|
|
6010
5996
|
});
|
|
6011
5997
|
F = [...nl == null ? void 0 : nl.map((Je) => ({
|
|
6012
5998
|
...Je,
|
|
@@ -6030,7 +6016,7 @@ const os = (l, b = 0) => {
|
|
|
6030
6016
|
tableColumns: C != null && C.hasMultiHeader ? [Ye] : Ye,
|
|
6031
6017
|
quoteFilter: ""
|
|
6032
6018
|
}, je = await ct("save", Ge);
|
|
6033
|
-
((we = je == null ? void 0 : je.data) == null ? void 0 : we.code) === 200 && (Me.data = Pe.data, Q.value = !0,
|
|
6019
|
+
((we = je == null ? void 0 : je.data) == null ? void 0 : we.code) === 200 && (Me.data = Pe.data, Q.value = !0, _l.success("新增成功"));
|
|
6034
6020
|
} else {
|
|
6035
6021
|
if (!W.value) return;
|
|
6036
6022
|
const le = Ql(Pe == null ? void 0 : Pe.data, "id", i == null ? void 0 : i.id);
|
|
@@ -6045,7 +6031,7 @@ const os = (l, b = 0) => {
|
|
|
6045
6031
|
tableColumns: C != null && C.hasMultiHeader ? [F] : F,
|
|
6046
6032
|
quoteFilter: ""
|
|
6047
6033
|
}, Ge = await ct("save", Ye);
|
|
6048
|
-
((y = Ge == null ? void 0 : Ge.data) == null ? void 0 : y.code) === 200 && (Me.data = Pe == null ? void 0 : Pe.data, Q.value = !0,
|
|
6034
|
+
((y = Ge == null ? void 0 : Ge.data) == null ? void 0 : y.code) === 200 && (Me.data = Pe == null ? void 0 : Pe.data, Q.value = !0, _l.success("编辑成功"));
|
|
6049
6035
|
}
|
|
6050
6036
|
} catch (Me) {
|
|
6051
6037
|
throw new Error(Me);
|
|
@@ -6086,12 +6072,12 @@ const os = (l, b = 0) => {
|
|
|
6086
6072
|
if ($e.value = (ue = (Y = F == null ? void 0 : F.data) == null ? void 0 : Y.result) == null ? void 0 : ue.includes("错误"), ((qe = F == null ? void 0 : F.data) == null ? void 0 : qe.code) === 200 && !((we = (rl = F == null ? void 0 : F.data) == null ? void 0 : rl.result) != null && we.includes("错误"))) {
|
|
6087
6073
|
const Ye = ml((se = F == null ? void 0 : F.data) == null ? void 0 : se.result);
|
|
6088
6074
|
Me = (y = Ye == null ? void 0 : Ye.flatMap((je) => je)) == null ? void 0 : y.map((je) => {
|
|
6089
|
-
var
|
|
6090
|
-
const nl = Array.isArray((ie = (
|
|
6075
|
+
var _, ie, Ae, Ie, Qe, H, te, Re, xe;
|
|
6076
|
+
const nl = Array.isArray((ie = (_ = je == null ? void 0 : je.结构) == null ? void 0 : _.contents) == null ? void 0 : ie[0]), Je = (Ie = (Ae = je == null ? void 0 : je.source_table) == null ? void 0 : Ae.split("_")) == null ? void 0 : Ie[1], Se = Ql((Qe = Pe == null ? void 0 : Pe.data) == null ? void 0 : Qe.result, "object_id", Je);
|
|
6091
6077
|
return {
|
|
6092
|
-
name:
|
|
6093
|
-
object_name:
|
|
6094
|
-
property_name:
|
|
6078
|
+
name: Se == null ? void 0 : Se.name,
|
|
6079
|
+
object_name: Se == null ? void 0 : Se.object_name,
|
|
6080
|
+
property_name: Se == null ? void 0 : Se.property_name,
|
|
6095
6081
|
children: (xe = nl ? (te = (H = je == null ? void 0 : je.结构) == null ? void 0 : H.contents) == null ? void 0 : te.flatMap((G) => G) : (Re = je == null ? void 0 : je.结构) == null ? void 0 : Re.contents) == null ? void 0 : xe.filter((G) => !(pt != null && pt.includes(G == null ? void 0 : G.prop)))
|
|
6096
6082
|
};
|
|
6097
6083
|
}), ke.value = Bn(Me);
|
|
@@ -6156,7 +6142,7 @@ const os = (l, b = 0) => {
|
|
|
6156
6142
|
tableColumns: Me == null ? void 0 : Me.data,
|
|
6157
6143
|
quoteFilter: ""
|
|
6158
6144
|
}, le = await ct("save", pe);
|
|
6159
|
-
((Ge = le == null ? void 0 : le.data) == null ? void 0 : Ge.code) === 200 && (y.data = Me.data, Q.value = !0,
|
|
6145
|
+
((Ge = le == null ? void 0 : le.data) == null ? void 0 : Ge.code) === 200 && (y.data = Me.data, Q.value = !0, _l.success("删除成功"));
|
|
6160
6146
|
});
|
|
6161
6147
|
break;
|
|
6162
6148
|
}
|
|
@@ -6188,9 +6174,9 @@ const os = (l, b = 0) => {
|
|
|
6188
6174
|
]
|
|
6189
6175
|
}, Ne = B(!1), al = () => {
|
|
6190
6176
|
var t;
|
|
6191
|
-
(t = We.value) == null || t.validate((d) => {
|
|
6177
|
+
(t = We.value) == null || t.validate(((d) => {
|
|
6192
6178
|
Ne.value = d;
|
|
6193
|
-
});
|
|
6179
|
+
}));
|
|
6194
6180
|
}, Ze = () => {
|
|
6195
6181
|
g.show = !1, Ce();
|
|
6196
6182
|
}, a = B([]), p = wl(() => {
|
|
@@ -6200,7 +6186,7 @@ const os = (l, b = 0) => {
|
|
|
6200
6186
|
// data: item?.data?.filter((child: any) => !hiddenProps?.includes(child?.prop || child?.label))
|
|
6201
6187
|
data: d == null ? void 0 : d.data
|
|
6202
6188
|
}));
|
|
6203
|
-
}), h = B([]),
|
|
6189
|
+
}), h = B([]), S = (t) => {
|
|
6204
6190
|
h.value = t;
|
|
6205
6191
|
}, W = B(null), de = B(""), O = (t) => {
|
|
6206
6192
|
var A, Y, ue, qe, rl, we;
|
|
@@ -6241,7 +6227,7 @@ const os = (l, b = 0) => {
|
|
|
6241
6227
|
platId: Number(sessionStorage.getItem("systemKey")),
|
|
6242
6228
|
objectId: d == null ? void 0 : d.id
|
|
6243
6229
|
});
|
|
6244
|
-
((Y = A == null ? void 0 : A.data) == null ? void 0 : Y.code) === 200 && (a.value = (ue = a.value) == null ? void 0 : ue.filter((qe) => (qe == null ? void 0 : qe.id) !== (d == null ? void 0 : d.id)),
|
|
6230
|
+
((Y = A == null ? void 0 : A.data) == null ? void 0 : Y.code) === 200 && (a.value = (ue = a.value) == null ? void 0 : ue.filter((qe) => (qe == null ? void 0 : qe.id) !== (d == null ? void 0 : d.id)), _l.success("删除成功"), Q.value = !0);
|
|
6245
6231
|
});
|
|
6246
6232
|
} catch (d) {
|
|
6247
6233
|
throw new Error(d);
|
|
@@ -6320,7 +6306,7 @@ const os = (l, b = 0) => {
|
|
|
6320
6306
|
ref_key: "hMenuInputRef",
|
|
6321
6307
|
ref: Cl,
|
|
6322
6308
|
modelValue: Te.title,
|
|
6323
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
6309
|
+
"onUpdate:modelValue": d[1] || (d[1] = (Se) => Te.title = Se),
|
|
6324
6310
|
placeholder: "请输入",
|
|
6325
6311
|
style: { "min-width": "200px" },
|
|
6326
6312
|
onChange: al
|
|
@@ -6328,25 +6314,25 @@ const os = (l, b = 0) => {
|
|
|
6328
6314
|
prepend: o(() => [
|
|
6329
6315
|
n(Rt, {
|
|
6330
6316
|
modelValue: Te.icon,
|
|
6331
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
6317
|
+
"onUpdate:modelValue": d[0] || (d[0] = (Se) => Te.icon = Se),
|
|
6332
6318
|
placeholder: "菜单图标",
|
|
6333
6319
|
style: { width: "200px" },
|
|
6334
6320
|
type: "all"
|
|
6335
6321
|
}, null, 8, ["modelValue"])
|
|
6336
6322
|
]),
|
|
6337
6323
|
append: o(() => {
|
|
6338
|
-
var
|
|
6324
|
+
var Se, _;
|
|
6339
6325
|
return [
|
|
6340
6326
|
V("span", cc, [
|
|
6341
6327
|
n(Tl, {
|
|
6342
|
-
style: Dl({ color: (
|
|
6328
|
+
style: Dl({ color: (Se = Te.title) != null && Se.length ? "var(--el-color-success)" : "var(--el-color-info)" }),
|
|
6343
6329
|
name: "softConfirm",
|
|
6344
6330
|
onClick: Ul(al, ["stop"])
|
|
6345
6331
|
}, null, 8, ["style"])
|
|
6346
6332
|
]),
|
|
6347
6333
|
V("span", uc, [
|
|
6348
6334
|
n(Tl, {
|
|
6349
|
-
style: Dl({ color: (
|
|
6335
|
+
style: Dl({ color: (_ = Te.title) != null && _.length ? "var(--el-color-warning)" : "var(--el-color-info)" }),
|
|
6350
6336
|
name: "softCancel",
|
|
6351
6337
|
onClick: Ul(Ze, ["stop"])
|
|
6352
6338
|
}, null, 8, ["style"])
|
|
@@ -6394,7 +6380,7 @@ const os = (l, b = 0) => {
|
|
|
6394
6380
|
isRefreshGroups: Q.value,
|
|
6395
6381
|
mode: "vertical",
|
|
6396
6382
|
onGetCompForm: ce,
|
|
6397
|
-
onGetGroupOptions:
|
|
6383
|
+
onGetGroupOptions: S,
|
|
6398
6384
|
onGetIsRefresh: N,
|
|
6399
6385
|
onGetPageStructure: O
|
|
6400
6386
|
}, null, 8, ["isRefreshGroups"])
|
|
@@ -6406,11 +6392,11 @@ const os = (l, b = 0) => {
|
|
|
6406
6392
|
V("div", fc, [
|
|
6407
6393
|
n(y, { "separator-icon": c(On) }, {
|
|
6408
6394
|
default: o(() => {
|
|
6409
|
-
var
|
|
6395
|
+
var Se;
|
|
6410
6396
|
return [
|
|
6411
|
-
(f(!0), $(ll, null, dl((
|
|
6397
|
+
(f(!0), $(ll, null, dl((Se = c(U)) == null ? void 0 : Se.split("/"), (_) => (f(), ye(se, { key: _ }, {
|
|
6412
6398
|
default: o(() => [
|
|
6413
|
-
cl(ol(
|
|
6399
|
+
cl(ol(_), 1)
|
|
6414
6400
|
]),
|
|
6415
6401
|
_: 2
|
|
6416
6402
|
}, 1024))), 128))
|
|
@@ -6457,21 +6443,19 @@ const os = (l, b = 0) => {
|
|
|
6457
6443
|
footer: o(() => [
|
|
6458
6444
|
V("div", vc, [
|
|
6459
6445
|
n(nl, { onClick: L }, {
|
|
6460
|
-
default: o(() => d[13] || (d[13] = [
|
|
6461
|
-
cl("取消")
|
|
6462
|
-
])),
|
|
6463
|
-
_: 1
|
|
6464
|
-
__: [13]
|
|
6446
|
+
default: o(() => [...d[13] || (d[13] = [
|
|
6447
|
+
cl("取消", -1)
|
|
6448
|
+
])]),
|
|
6449
|
+
_: 1
|
|
6465
6450
|
}),
|
|
6466
6451
|
n(nl, {
|
|
6467
6452
|
type: "primary",
|
|
6468
6453
|
onClick: be
|
|
6469
6454
|
}, {
|
|
6470
|
-
default: o(() => d[14] || (d[14] = [
|
|
6471
|
-
cl("确认")
|
|
6472
|
-
])),
|
|
6473
|
-
_: 1
|
|
6474
|
-
__: [14]
|
|
6455
|
+
default: o(() => [...d[14] || (d[14] = [
|
|
6456
|
+
cl("确认", -1)
|
|
6457
|
+
])]),
|
|
6458
|
+
_: 1
|
|
6475
6459
|
})
|
|
6476
6460
|
])
|
|
6477
6461
|
]),
|
|
@@ -6492,7 +6476,7 @@ const os = (l, b = 0) => {
|
|
|
6492
6476
|
default: o(() => [
|
|
6493
6477
|
n(le, {
|
|
6494
6478
|
modelValue: i.parentProp,
|
|
6495
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
6479
|
+
"onUpdate:modelValue": d[2] || (d[2] = (Se) => i.parentProp = Se),
|
|
6496
6480
|
options: Be.value,
|
|
6497
6481
|
props: { checkStrictly: !0, emitPath: !1 },
|
|
6498
6482
|
clearable: "",
|
|
@@ -6508,7 +6492,7 @@ const os = (l, b = 0) => {
|
|
|
6508
6492
|
default: o(() => [
|
|
6509
6493
|
n(Y, {
|
|
6510
6494
|
modelValue: i.label,
|
|
6511
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
6495
|
+
"onUpdate:modelValue": d[3] || (d[3] = (Se) => i.label = Se),
|
|
6512
6496
|
clearable: "",
|
|
6513
6497
|
placeholder: "请输入"
|
|
6514
6498
|
}, null, 8, ["modelValue"])
|
|
@@ -6522,7 +6506,7 @@ const os = (l, b = 0) => {
|
|
|
6522
6506
|
default: o(() => [
|
|
6523
6507
|
n(Y, {
|
|
6524
6508
|
modelValue: i.prop,
|
|
6525
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
6509
|
+
"onUpdate:modelValue": d[4] || (d[4] = (Se) => i.prop = Se),
|
|
6526
6510
|
disabled: C.type === "update",
|
|
6527
6511
|
placeholder: "请输入"
|
|
6528
6512
|
}, null, 8, ["modelValue", "disabled"])
|
|
@@ -6536,22 +6520,20 @@ const os = (l, b = 0) => {
|
|
|
6536
6520
|
default: o(() => [
|
|
6537
6521
|
n(Ye, {
|
|
6538
6522
|
modelValue: i.mainKey,
|
|
6539
|
-
"onUpdate:modelValue": d[5] || (d[5] = (
|
|
6523
|
+
"onUpdate:modelValue": d[5] || (d[5] = (Se) => i.mainKey = Se)
|
|
6540
6524
|
}, {
|
|
6541
6525
|
default: o(() => [
|
|
6542
6526
|
n(F, { value: !0 }, {
|
|
6543
|
-
default: o(() => d[11] || (d[11] = [
|
|
6544
|
-
cl("是")
|
|
6545
|
-
])),
|
|
6546
|
-
_: 1
|
|
6547
|
-
__: [11]
|
|
6527
|
+
default: o(() => [...d[11] || (d[11] = [
|
|
6528
|
+
cl("是", -1)
|
|
6529
|
+
])]),
|
|
6530
|
+
_: 1
|
|
6548
6531
|
}),
|
|
6549
6532
|
n(F, { value: !1 }, {
|
|
6550
|
-
default: o(() => d[12] || (d[12] = [
|
|
6551
|
-
cl("否")
|
|
6552
|
-
])),
|
|
6553
|
-
_: 1
|
|
6554
|
-
__: [12]
|
|
6533
|
+
default: o(() => [...d[12] || (d[12] = [
|
|
6534
|
+
cl("否", -1)
|
|
6535
|
+
])]),
|
|
6536
|
+
_: 1
|
|
6555
6537
|
})
|
|
6556
6538
|
]),
|
|
6557
6539
|
_: 1
|
|
@@ -6566,14 +6548,14 @@ const os = (l, b = 0) => {
|
|
|
6566
6548
|
default: o(() => [
|
|
6567
6549
|
n(je, {
|
|
6568
6550
|
modelValue: i.propType,
|
|
6569
|
-
"onUpdate:modelValue": d[6] || (d[6] = (
|
|
6551
|
+
"onUpdate:modelValue": d[6] || (d[6] = (Se) => i.propType = Se),
|
|
6570
6552
|
clearable: ""
|
|
6571
6553
|
}, {
|
|
6572
6554
|
default: o(() => [
|
|
6573
|
-
(f(!0), $(ll, null, dl(c(ec), (
|
|
6574
|
-
key:
|
|
6575
|
-
label:
|
|
6576
|
-
value:
|
|
6555
|
+
(f(!0), $(ll, null, dl(c(ec), (Se) => (f(), ye(Ge, {
|
|
6556
|
+
key: Se.value,
|
|
6557
|
+
label: Se.label,
|
|
6558
|
+
value: Se.value
|
|
6577
6559
|
}, null, 8, ["label", "value"]))), 128))
|
|
6578
6560
|
]),
|
|
6579
6561
|
_: 1
|
|
@@ -6588,14 +6570,14 @@ const os = (l, b = 0) => {
|
|
|
6588
6570
|
default: o(() => [
|
|
6589
6571
|
n(je, {
|
|
6590
6572
|
modelValue: i.compType,
|
|
6591
|
-
"onUpdate:modelValue": d[7] || (d[7] = (
|
|
6573
|
+
"onUpdate:modelValue": d[7] || (d[7] = (Se) => i.compType = Se),
|
|
6592
6574
|
clearable: ""
|
|
6593
6575
|
}, {
|
|
6594
6576
|
default: o(() => [
|
|
6595
|
-
(f(!0), $(ll, null, dl(c(lc), (
|
|
6596
|
-
key:
|
|
6597
|
-
label:
|
|
6598
|
-
value:
|
|
6577
|
+
(f(!0), $(ll, null, dl(c(lc), (Se) => (f(), ye(Ge, {
|
|
6578
|
+
key: Se.value,
|
|
6579
|
+
label: Se.label,
|
|
6580
|
+
value: Se.value
|
|
6599
6581
|
}, null, 8, ["label", "value"]))), 128))
|
|
6600
6582
|
]),
|
|
6601
6583
|
_: 1
|
|
@@ -6610,7 +6592,7 @@ const os = (l, b = 0) => {
|
|
|
6610
6592
|
default: o(() => [
|
|
6611
6593
|
n(Y, {
|
|
6612
6594
|
modelValue: i.defaultValue,
|
|
6613
|
-
"onUpdate:modelValue": d[8] || (d[8] = (
|
|
6595
|
+
"onUpdate:modelValue": d[8] || (d[8] = (Se) => i.defaultValue = Se),
|
|
6614
6596
|
placeholder: i.compType === "Select" ? "请输入选项,以/分割" : "请输入",
|
|
6615
6597
|
clearable: "",
|
|
6616
6598
|
onChange: pl
|
|
@@ -6625,15 +6607,15 @@ const os = (l, b = 0) => {
|
|
|
6625
6607
|
default: o(() => [
|
|
6626
6608
|
n(Ye, {
|
|
6627
6609
|
modelValue: i.view,
|
|
6628
|
-
"onUpdate:modelValue": d[9] || (d[9] = (
|
|
6610
|
+
"onUpdate:modelValue": d[9] || (d[9] = (Se) => i.view = Se)
|
|
6629
6611
|
}, {
|
|
6630
6612
|
default: o(() => [
|
|
6631
|
-
(f(!0), $(ll, null, dl(c(ss), (
|
|
6632
|
-
key:
|
|
6633
|
-
value:
|
|
6613
|
+
(f(!0), $(ll, null, dl(c(ss), (Se) => (f(), ye(F, {
|
|
6614
|
+
key: Se == null ? void 0 : Se.value,
|
|
6615
|
+
value: Se == null ? void 0 : Se.value
|
|
6634
6616
|
}, {
|
|
6635
6617
|
default: o(() => [
|
|
6636
|
-
cl(ol(
|
|
6618
|
+
cl(ol(Se == null ? void 0 : Se.label), 1)
|
|
6637
6619
|
]),
|
|
6638
6620
|
_: 2
|
|
6639
6621
|
}, 1032, ["value"]))), 128))
|
|
@@ -6651,7 +6633,7 @@ const os = (l, b = 0) => {
|
|
|
6651
6633
|
default: o(() => [
|
|
6652
6634
|
n(le, {
|
|
6653
6635
|
modelValue: i.related,
|
|
6654
|
-
"onUpdate:modelValue": d[10] || (d[10] = (
|
|
6636
|
+
"onUpdate:modelValue": d[10] || (d[10] = (Se) => i.related = Se),
|
|
6655
6637
|
options: ke.value,
|
|
6656
6638
|
props: {
|
|
6657
6639
|
multiple: !1,
|
|
@@ -6698,7 +6680,7 @@ function rs(l = "menu") {
|
|
|
6698
6680
|
name: l,
|
|
6699
6681
|
components: {
|
|
6700
6682
|
SvgIcon: Tl,
|
|
6701
|
-
ssMenu:
|
|
6683
|
+
ssMenu: _t,
|
|
6702
6684
|
DynamicIcon: Wa,
|
|
6703
6685
|
ssDialog: la,
|
|
6704
6686
|
ssInput: Un
|
|
@@ -6725,17 +6707,17 @@ function rs(l = "menu") {
|
|
|
6725
6707
|
operateType: "修改菜单名",
|
|
6726
6708
|
operateIcon: "FixedMenu"
|
|
6727
6709
|
}
|
|
6728
|
-
]), U = jl(), I = Zl(yl), x = zl(yl), { loginUserInfo: R } = hl(x), D = B(0), ce =
|
|
6729
|
-
var
|
|
6730
|
-
return !(h != null && h.children) || ((
|
|
6710
|
+
]), U = jl(), I = Zl(yl), x = zl(yl), { loginUserInfo: R } = hl(x), D = B(0), ce = Sa(), e = B(), { asideMenus: E, menuTriggerType: T, platform: P, jumpMenuInform: u } = hl(U), { fixMenuStatus: oe } = hl(I), { isSuperAdmin: Q } = Gn(), Z = wl(() => v == null ? void 0 : v.mode), w = (a) => a == null ? void 0 : a.map((h) => {
|
|
6711
|
+
var S, W;
|
|
6712
|
+
return !(h != null && h.children) || ((S = h == null ? void 0 : h.children) == null ? void 0 : S.length) === 0 ? h.config = M.value : h != null && h.children && ((W = h == null ? void 0 : h.children) == null ? void 0 : W.length) > 0 && (h.children = w(h.children)), h;
|
|
6731
6713
|
}), C = wl(() => {
|
|
6732
6714
|
let a = [...E.value];
|
|
6733
6715
|
if ((a == null ? void 0 : a.length) === 0)
|
|
6734
6716
|
return ce.push("/"), [];
|
|
6735
6717
|
const p = be(a, J.value);
|
|
6736
6718
|
return p.isFlag || (a = p == null ? void 0 : p.data), a = a == null ? void 0 : a.map((h) => {
|
|
6737
|
-
var
|
|
6738
|
-
return !(h != null && h.children) || ((
|
|
6719
|
+
var S, W;
|
|
6720
|
+
return !(h != null && h.children) || ((S = h == null ? void 0 : h.children) == null ? void 0 : S.length) === 0 ? h.config = M.value : h != null && h.children && ((W = h == null ? void 0 : h.children) == null ? void 0 : W.length) > 0 && (h.children = w(h.children)), h;
|
|
6739
6721
|
}), a;
|
|
6740
6722
|
}), i = async (a, p) => {
|
|
6741
6723
|
I.setRouteToChildPath(""), U.setMenuTriggerType("click"), U.setActiveMenuPath(a == null ? void 0 : a.path), U.setActiveAsideMenu(a), a.isRouter ? ce.push(a.path) : ce.push("/"), r("node-click", a, p);
|
|
@@ -6786,12 +6768,12 @@ function rs(l = "menu") {
|
|
|
6786
6768
|
data: a
|
|
6787
6769
|
}), U.setIsRefreshMenus(!0);
|
|
6788
6770
|
}, Cl = async (a, p, h) => {
|
|
6789
|
-
var
|
|
6771
|
+
var S, W, de, O, s, k, N, X, t, d, A, Y, ue, qe, rl, we, se, y, Me, Pe, pe, le, F, Ye, Ge, je, nl;
|
|
6790
6772
|
if (p === "create") {
|
|
6791
|
-
let Je = (h == null ? void 0 : h.title) + "(1)",
|
|
6773
|
+
let Je = (h == null ? void 0 : h.title) + "(1)", Se = (W = (S = h == null ? void 0 : h.path) == null ? void 0 : S.split("/")) == null ? void 0 : W.filter((ie, Ae) => {
|
|
6792
6774
|
var Ie, Qe;
|
|
6793
6775
|
return Ae !== ((Qe = (Ie = h == null ? void 0 : h.path) == null ? void 0 : Ie.split("/")) == null ? void 0 : Qe.length) - 1;
|
|
6794
|
-
}),
|
|
6776
|
+
}), _ = await ta(
|
|
6795
6777
|
(s = (O = (de = h == null ? void 0 : h.path) == null ? void 0 : de.split("/")) == null ? void 0 : O.filter((ie, Ae) => {
|
|
6796
6778
|
var Ie, Qe;
|
|
6797
6779
|
return Ae !== ((Qe = (Ie = h == null ? void 0 : h.path) == null ? void 0 : Ie.split("/")) == null ? void 0 : Qe.length) - 1;
|
|
@@ -6799,8 +6781,8 @@ function rs(l = "menu") {
|
|
|
6799
6781
|
sessionStorage.getItem("systemKey"),
|
|
6800
6782
|
""
|
|
6801
6783
|
);
|
|
6802
|
-
if (
|
|
6803
|
-
let ie =
|
|
6784
|
+
if (Se.push(Je), Se = Se == null ? void 0 : Se.join("/"), (_ == null ? void 0 : _.length) > 0) {
|
|
6785
|
+
let ie = _ == null ? void 0 : _[0], Ae = (N = (k = ie == null ? void 0 : ie.compData) == null ? void 0 : k.find((Ie) => (Ie == null ? void 0 : Ie.key) === "header")) == null ? void 0 : N.contents;
|
|
6804
6786
|
if (((X = Ae == null ? void 0 : Ae[0]) == null ? void 0 : X.directiveLabel) === "#isMain") {
|
|
6805
6787
|
let Ie = (t = Ae == null ? void 0 : Ae[0]) == null ? void 0 : t.prop, Qe = (A = (d = ie == null ? void 0 : ie.compData) == null ? void 0 : d.find(
|
|
6806
6788
|
(te) => (te == null ? void 0 : te.key) === "tableContents"
|
|
@@ -6831,7 +6813,7 @@ function rs(l = "menu") {
|
|
|
6831
6813
|
});
|
|
6832
6814
|
}
|
|
6833
6815
|
}
|
|
6834
|
-
await Ws(h == null ? void 0 : h.path,
|
|
6816
|
+
await Ws(h == null ? void 0 : h.path, Se), U.setUpdateMenuStatus(!1), await Oa(), U.setActiveMenuPath(
|
|
6835
6817
|
(Pe = (Me = (y = h == null ? void 0 : h.path) == null ? void 0 : y.split("/")) == null ? void 0 : Me.filter((ie, Ae) => {
|
|
6836
6818
|
var Ie, Qe;
|
|
6837
6819
|
return Ae !== ((Qe = (Ie = h == null ? void 0 : h.path) == null ? void 0 : Ie.split("/")) == null ? void 0 : Qe.length) - 1;
|
|
@@ -6844,25 +6826,25 @@ function rs(l = "menu") {
|
|
|
6844
6826
|
(Je == null ? void 0 : Je.length) > 0 && await Rs({
|
|
6845
6827
|
ids: Je
|
|
6846
6828
|
}), U.setUpdateMenuStatus(!1), await Oa(), U.setActiveMenuPath(
|
|
6847
|
-
(Ge = (Ye = (F = h == null ? void 0 : h.path) == null ? void 0 : F.split("/")) == null ? void 0 : Ye.filter((
|
|
6829
|
+
(Ge = (Ye = (F = h == null ? void 0 : h.path) == null ? void 0 : F.split("/")) == null ? void 0 : Ye.filter((Se, _) => {
|
|
6848
6830
|
var ie, Ae;
|
|
6849
|
-
return
|
|
6831
|
+
return _ !== ((Ae = (ie = h == null ? void 0 : h.path) == null ? void 0 : ie.split("/")) == null ? void 0 : Ae.length) - 1;
|
|
6850
6832
|
})) == null ? void 0 : Ge.join("/")
|
|
6851
6833
|
), U.setActiveTopMenuPath((nl = (je = h == null ? void 0 : h.path) == null ? void 0 : je.split("/")) == null ? void 0 : nl[0]), U.setIsRefreshMenus(!1), U.setIsRefreshMenus(!0);
|
|
6852
6834
|
}
|
|
6853
6835
|
}, ve = async (a, p) => {
|
|
6854
|
-
var X, t, d, A, Y, ue, qe, rl, we, se, y, Me, Pe, pe, le, F, Ye, Ge, je, nl, Je,
|
|
6836
|
+
var X, t, d, A, Y, ue, qe, rl, we, se, y, Me, Pe, pe, le, F, Ye, Ge, je, nl, Je, Se, _, ie, Ae, Ie, Qe, H, te, Re, xe;
|
|
6855
6837
|
let h = await bn({
|
|
6856
6838
|
key: {
|
|
6857
6839
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
6858
6840
|
pageKey: "menu"
|
|
6859
6841
|
}
|
|
6860
|
-
}),
|
|
6842
|
+
}), S = (t = (X = h == null ? void 0 : h.data) == null ? void 0 : X.result) == null ? void 0 : t[0], W = (d = S == null ? void 0 : S.value) == null ? void 0 : d.pageData;
|
|
6861
6843
|
W.compData = (A = W.compData) == null ? void 0 : A.map((G) => {
|
|
6862
6844
|
var j, q;
|
|
6863
6845
|
return (G == null ? void 0 : G.key) === "menuContents" && (G.contents = is(G.contents, (j = p == null ? void 0 : p.path) == null ? void 0 : j.split("/"), p == null ? void 0 : p.title, (q = a == null ? void 0 : a.target) == null ? void 0 : q.value)), G;
|
|
6864
|
-
}),
|
|
6865
|
-
id:
|
|
6846
|
+
}), S != null && S.id && await jn({
|
|
6847
|
+
id: S == null ? void 0 : S.id,
|
|
6866
6848
|
value: {
|
|
6867
6849
|
pageData: W
|
|
6868
6850
|
}
|
|
@@ -6876,7 +6858,7 @@ function rs(l = "menu") {
|
|
|
6876
6858
|
if (((Me = (y = (se = (we = (rl = s == null ? void 0 : s[0]) == null ? void 0 : rl.compData) == null ? void 0 : we.find((G) => (G == null ? void 0 : G.key) === "header")) == null ? void 0 : se.contents) == null ? void 0 : y[0]) == null ? void 0 : Me.directiveLabel) === "#isMain") {
|
|
6877
6859
|
let G = (Ye = (F = (le = (pe = (Pe = s == null ? void 0 : s[0]) == null ? void 0 : Pe.compData) == null ? void 0 : pe.find((re) => (re == null ? void 0 : re.key) === "header")) == null ? void 0 : le.contents) == null ? void 0 : F[0]) == null ? void 0 : Ye.prop, j = (nl = (je = (Ge = s == null ? void 0 : s[0]) == null ? void 0 : Ge.compData) == null ? void 0 : je.find(
|
|
6878
6860
|
(re) => (re == null ? void 0 : re.key) === "tableContents"
|
|
6879
|
-
)) == null ? void 0 : nl.contents, q = (ie = (
|
|
6861
|
+
)) == null ? void 0 : nl.contents, q = (ie = (_ = (Se = (Je = s == null ? void 0 : s[0]) == null ? void 0 : Je.compData) == null ? void 0 : Se.find((re) => (re == null ? void 0 : re.key) === "header")) == null ? void 0 : _.contents) == null ? void 0 : ie.map((re) => re == null ? void 0 : re.prop), m;
|
|
6880
6862
|
if (j == null || j.forEach((re) => {
|
|
6881
6863
|
var ae;
|
|
6882
6864
|
let he = Ka(re, q);
|
|
@@ -6920,9 +6902,9 @@ function rs(l = "menu") {
|
|
|
6920
6902
|
}, We = () => {
|
|
6921
6903
|
z.show = !1;
|
|
6922
6904
|
}, Ce = (a) => a == null ? void 0 : a.filter((p) => p.allowInherit), Te = () => {
|
|
6923
|
-
var h,
|
|
6905
|
+
var h, S, W, de, O;
|
|
6924
6906
|
let a;
|
|
6925
|
-
z.type === "create" && (a = ((h = il.value) == null ? void 0 : h.path) + "/" + $e.value[(
|
|
6907
|
+
z.type === "create" && (a = ((h = il.value) == null ? void 0 : h.path) + "/" + $e.value[(S = $e.value) == null ? void 0 : S.prop]), z.type === "update" && (a = (W = il.value) == null ? void 0 : W.path);
|
|
6926
6908
|
const p = {
|
|
6927
6909
|
...il.value,
|
|
6928
6910
|
//是否继承父菜单的配置
|
|
@@ -6934,9 +6916,9 @@ function rs(l = "menu") {
|
|
|
6934
6916
|
};
|
|
6935
6917
|
console.log("clickSubmitForm", pl.value, il.value, p), Xe(p), z.show = !1;
|
|
6936
6918
|
}, el = (a) => {
|
|
6937
|
-
var h,
|
|
6919
|
+
var h, S;
|
|
6938
6920
|
const p = (h = a == null ? void 0 : a.contents) == null ? void 0 : h.find((W) => W.key === "formContent");
|
|
6939
|
-
p && ($e.value = (
|
|
6921
|
+
p && ($e.value = (S = p == null ? void 0 : p.contents) == null ? void 0 : S.reduce(
|
|
6940
6922
|
(W, de) => (W[de.key] = de.value, W.prop = de.key, W),
|
|
6941
6923
|
{}
|
|
6942
6924
|
));
|
|
@@ -6947,12 +6929,12 @@ function rs(l = "menu") {
|
|
|
6947
6929
|
var p, h;
|
|
6948
6930
|
if (a) {
|
|
6949
6931
|
await Fl();
|
|
6950
|
-
const
|
|
6951
|
-
if (((p =
|
|
6952
|
-
const W =
|
|
6932
|
+
const S = a == null ? void 0 : a[0];
|
|
6933
|
+
if (((p = S == null ? void 0 : S.children) == null ? void 0 : p.length) > 0) {
|
|
6934
|
+
const W = S == null ? void 0 : S.path;
|
|
6953
6935
|
Ze.value && ((h = Ze.value) == null || h.openMenuRefByIndex(W));
|
|
6954
6936
|
} else
|
|
6955
|
-
u != null && u.value ? U.setJumpMenuInform(!1) : U.setActiveMenuPath((
|
|
6937
|
+
u != null && u.value ? U.setJumpMenuInform(!1) : U.setActiveMenuPath((S == null ? void 0 : S.path) ?? "");
|
|
6956
6938
|
}
|
|
6957
6939
|
}, { immediate: !0 }), {
|
|
6958
6940
|
menuRef: Ze,
|
|
@@ -7001,7 +6983,7 @@ function cs(l = "menu") {
|
|
|
7001
6983
|
return {
|
|
7002
6984
|
name: l,
|
|
7003
6985
|
components: {
|
|
7004
|
-
ssMenu:
|
|
6986
|
+
ssMenu: _t,
|
|
7005
6987
|
DynamicIcon: Wa
|
|
7006
6988
|
},
|
|
7007
6989
|
setup() {
|
|
@@ -7010,7 +6992,7 @@ function cs(l = "menu") {
|
|
|
7010
6992
|
type: String,
|
|
7011
6993
|
default: "vertical"
|
|
7012
6994
|
}
|
|
7013
|
-
}), r = B("sub-menu-more"), v = jl(), M = Zl(yl), U = B(0), I =
|
|
6995
|
+
}), r = B("sub-menu-more"), v = jl(), M = Zl(yl), U = B(0), I = Sa(), {
|
|
7014
6996
|
rawMenus: x,
|
|
7015
6997
|
activeTopMenuPath: R,
|
|
7016
6998
|
isRefreshMenus: D,
|
|
@@ -7028,16 +7010,16 @@ function cs(l = "menu") {
|
|
|
7028
7010
|
children: p.level === 0 ? [] : p.children ?? [],
|
|
7029
7011
|
childMenus: me(p.children)
|
|
7030
7012
|
} : p), L = (a, p) => {
|
|
7031
|
-
var h,
|
|
7032
|
-
return (
|
|
7013
|
+
var h, S;
|
|
7014
|
+
return (S = (h = C.value) == null ? void 0 : h.find((W) => (a.title + p).includes(W.value))) == null ? void 0 : S.value;
|
|
7033
7015
|
}, J = (a, p = "", h = 0) => {
|
|
7034
7016
|
var O;
|
|
7035
|
-
let
|
|
7017
|
+
let S = ml(a);
|
|
7036
7018
|
const W = Array.from(/* @__PURE__ */ new Set([...(O = Z.value) == null ? void 0 : O.map((s) => {
|
|
7037
7019
|
var k;
|
|
7038
7020
|
return (k = s == null ? void 0 : s.key) == null ? void 0 : k.pageKey;
|
|
7039
7021
|
})]));
|
|
7040
|
-
return Array.isArray(
|
|
7022
|
+
return Array.isArray(S) || (S = [S]), S == null ? void 0 : S.map((s) => {
|
|
7041
7023
|
let k, N = p ? `${p}/${s.title}` : s.title;
|
|
7042
7024
|
k = N;
|
|
7043
7025
|
const X = {
|
|
@@ -7067,9 +7049,9 @@ function cs(l = "menu") {
|
|
|
7067
7049
|
const p = me(a);
|
|
7068
7050
|
return Pt(p), v.setMenus(p), p;
|
|
7069
7051
|
}), 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), ke = (a, p) => {
|
|
7070
|
-
var
|
|
7052
|
+
var S, W;
|
|
7071
7053
|
const h = a == null ? void 0 : a.find((de) => (de == null ? void 0 : de.operateType) === "新增");
|
|
7072
|
-
return ((W = (
|
|
7054
|
+
return ((W = (S = T.value) == null ? void 0 : S.data) == null ? void 0 : W.path) === (p == null ? void 0 : p.path) ? h == null ? void 0 : h.menuIcon : L(p, p == null ? void 0 : p.level);
|
|
7073
7055
|
}, Ve = async (a, p) => {
|
|
7074
7056
|
if (!Array.isArray(p)) return a;
|
|
7075
7057
|
for (const h of p)
|
|
@@ -7083,8 +7065,8 @@ function cs(l = "menu") {
|
|
|
7083
7065
|
}, $e = B(null), il = async (a, p = null) => await Promise.all(
|
|
7084
7066
|
a == null ? void 0 : a.map(async (h) => {
|
|
7085
7067
|
var de;
|
|
7086
|
-
let
|
|
7087
|
-
const W = (
|
|
7068
|
+
let S = await Ve(h, Ee.value);
|
|
7069
|
+
const W = (S == null ? void 0 : S.config) ?? ((de = p == null ? void 0 : p.filter((O) => O.allowInherit)) == null ? void 0 : de.map((O) => {
|
|
7088
7070
|
var s;
|
|
7089
7071
|
return {
|
|
7090
7072
|
...O,
|
|
@@ -7096,14 +7078,14 @@ function cs(l = "menu") {
|
|
|
7096
7078
|
//弹窗和内容的结构都继承
|
|
7097
7079
|
};
|
|
7098
7080
|
}));
|
|
7099
|
-
return
|
|
7100
|
-
...
|
|
7081
|
+
return S != null && S.childMenus && (S == null ? void 0 : S.childMenus.length) > 0 && (S = {
|
|
7082
|
+
...S,
|
|
7101
7083
|
icon: ke(W, h),
|
|
7102
7084
|
config: W,
|
|
7103
7085
|
children: await il(h == null ? void 0 : h.childMenus, W),
|
|
7104
7086
|
childMenus: await il(h == null ? void 0 : h.childMenus, W)
|
|
7105
7087
|
}), {
|
|
7106
|
-
...
|
|
7088
|
+
...S,
|
|
7107
7089
|
icon: ke(W, h),
|
|
7108
7090
|
config: W
|
|
7109
7091
|
};
|
|
@@ -7112,9 +7094,9 @@ function cs(l = "menu") {
|
|
|
7112
7094
|
fl(
|
|
7113
7095
|
() => u.value,
|
|
7114
7096
|
(a) => {
|
|
7115
|
-
var h,
|
|
7097
|
+
var h, S, W;
|
|
7116
7098
|
if (!a) return;
|
|
7117
|
-
const p = (
|
|
7099
|
+
const p = (S = (h = a == null ? void 0 : a.path) == null ? void 0 : h.split("/")) == null ? void 0 : S[0];
|
|
7118
7100
|
if (p) {
|
|
7119
7101
|
const de = (W = w.value) == null ? void 0 : W.find((O) => (O == null ? void 0 : O.path) === p);
|
|
7120
7102
|
if (!de || (v.setActiveTopMenuPath(p), !(de != null && de.children))) return;
|
|
@@ -7126,7 +7108,7 @@ function cs(l = "menu") {
|
|
|
7126
7108
|
const pl = async (a) => {
|
|
7127
7109
|
var p, h;
|
|
7128
7110
|
if (v.setLinkMenuInfo(null), v.setAsideMenuLoading(!0), M.setRouteToChildPath(""), v.setActiveTopMenuPath(a == null ? void 0 : a.path), v.setActiveMainMenu(a), $e.value = null, a != null && a.childMenus && ((p = a == null ? void 0 : a.childMenus) == null ? void 0 : p.length) > 0) {
|
|
7129
|
-
const
|
|
7111
|
+
const S = await ul(a), W = (S == null ? void 0 : S.length) === 0 ? a == null ? void 0 : a.childMenus : S;
|
|
7130
7112
|
v.setAsideMenus(W), oe.value || v.setUpdateMenuStatus(!0), v.setActiveAsideMenu((h = a == null ? void 0 : a.childMenus) == null ? void 0 : h[0]);
|
|
7131
7113
|
} else
|
|
7132
7114
|
v.setAsideMenus([]), v.setActiveMenuPath(a == null ? void 0 : a.path);
|
|
@@ -7178,32 +7160,32 @@ function cs(l = "menu") {
|
|
|
7178
7160
|
var h;
|
|
7179
7161
|
const p = [a == null ? void 0 : a.title];
|
|
7180
7162
|
if (a != null && a.children && ((h = a == null ? void 0 : a.children) == null ? void 0 : h.length) > 0) {
|
|
7181
|
-
const
|
|
7182
|
-
p.push(...
|
|
7163
|
+
const S = a.children.map((W) => Te(W));
|
|
7164
|
+
p.push(...S);
|
|
7183
7165
|
}
|
|
7184
7166
|
return p;
|
|
7185
|
-
}, el = (a, p, h,
|
|
7167
|
+
}, el = (a, p, h, S) => a.map((W) => {
|
|
7186
7168
|
var de, O;
|
|
7187
7169
|
if (W.path === h) {
|
|
7188
7170
|
const s = { ...W };
|
|
7189
|
-
return
|
|
7171
|
+
return S === "create" ? s.children.push(p) : S === "update" ? s.children = (de = s.children) == null ? void 0 : de.map(
|
|
7190
7172
|
(k) => (k == null ? void 0 : k.path) === (p == null ? void 0 : p.path) ? p : k
|
|
7191
|
-
) :
|
|
7173
|
+
) : S === "delete" && (s.children = (O = s.children) == null ? void 0 : O.filter((k) => (k == null ? void 0 : k.path) !== (p == null ? void 0 : p.path))), s;
|
|
7192
7174
|
} else
|
|
7193
7175
|
return {
|
|
7194
7176
|
...W,
|
|
7195
|
-
children: el(W.children, p, h,
|
|
7177
|
+
children: el(W.children, p, h, S)
|
|
7196
7178
|
// 递归更新子节点
|
|
7197
7179
|
};
|
|
7198
7180
|
}), Ne = async (a) => {
|
|
7199
|
-
var h,
|
|
7181
|
+
var h, S, W, de, O, s;
|
|
7200
7182
|
const p = (h = Z.value) == null ? void 0 : h.find((k) => {
|
|
7201
7183
|
var N;
|
|
7202
7184
|
return ((N = k == null ? void 0 : k.key) == null ? void 0 : N.pageKey) === "menu";
|
|
7203
7185
|
});
|
|
7204
7186
|
if (p) {
|
|
7205
7187
|
const k = {
|
|
7206
|
-
...(
|
|
7188
|
+
...(S = p.value) == null ? void 0 : S.pageData,
|
|
7207
7189
|
compData: (O = (de = (W = p.value) == null ? void 0 : W.pageData) == null ? void 0 : de.compData) == null ? void 0 : O.map((X) => X.key === "menuContents" ? {
|
|
7208
7190
|
...X,
|
|
7209
7191
|
contents: a
|
|
@@ -7217,18 +7199,18 @@ function cs(l = "menu") {
|
|
|
7217
7199
|
}, al = async (a) => void 0, Ze = async (a) => {
|
|
7218
7200
|
var W, de, O;
|
|
7219
7201
|
const p = (O = (de = (W = a == null ? void 0 : a.config) == null ? void 0 : W.find((s) => (s == null ? void 0 : s.operateType) === "新增")) == null ? void 0 : de.structureIds) == null ? void 0 : O.filter((s) => (s == null ? void 0 : s.key) === "contentConfig"), h = p == null ? void 0 : p.map((s) => s == null ? void 0 : s.id);
|
|
7220
|
-
let
|
|
7202
|
+
let S = [];
|
|
7221
7203
|
h == null || h.forEach((s) => {
|
|
7222
|
-
s &&
|
|
7204
|
+
s && S.push(al());
|
|
7223
7205
|
});
|
|
7224
7206
|
};
|
|
7225
7207
|
return fl(
|
|
7226
7208
|
() => D.value,
|
|
7227
7209
|
async (a) => {
|
|
7228
|
-
var p, h,
|
|
7210
|
+
var p, h, S, W, de, O, s, k;
|
|
7229
7211
|
if (a)
|
|
7230
7212
|
try {
|
|
7231
|
-
const N = (
|
|
7213
|
+
const N = (S = (h = (p = T.value) == null ? void 0 : p.data) == null ? void 0 : h.path) == null ? void 0 : S.split("/").slice(0, -1).join("/"), X = el(
|
|
7232
7214
|
w.value,
|
|
7233
7215
|
(W = T.value) == null ? void 0 : W.data,
|
|
7234
7216
|
N,
|
|
@@ -7238,7 +7220,7 @@ function cs(l = "menu") {
|
|
|
7238
7220
|
const d = await ul(P.value), A = (d == null ? void 0 : d.length) === 0 ? (k = P.value) == null ? void 0 : k.childMenus : d;
|
|
7239
7221
|
v.setAsideMenus(A);
|
|
7240
7222
|
} catch (N) {
|
|
7241
|
-
throw
|
|
7223
|
+
throw _l.error(N), new Error(N);
|
|
7242
7224
|
}
|
|
7243
7225
|
},
|
|
7244
7226
|
{ immediate: !0 }
|
|
@@ -7266,7 +7248,7 @@ function Ic(l, b, r, v, M, U) {
|
|
|
7266
7248
|
ql(l.$slots, "extraIcon", {}, void 0, !0)
|
|
7267
7249
|
]);
|
|
7268
7250
|
}
|
|
7269
|
-
const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d52"]]),
|
|
7251
|
+
const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d52"]]), Sc = { class: "structure-buttons" }, _c = { class: "structure-paths" }, Tc = { class: "client-header-user" }, Bc = { class: "model-select" }, Ec = { class: "model-show" }, Dc = { class: "model-fill" }, Pc = ["title", "onClick"], Rc = { class: "panel-body client-container" }, xc = {
|
|
7270
7252
|
key: 0,
|
|
7271
7253
|
class: "menu-empty"
|
|
7272
7254
|
}, Vc = {
|
|
@@ -7362,10 +7344,10 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7362
7344
|
var K, ze, Oe, ne, bl, tl, Ml, Il, Ke, Le;
|
|
7363
7345
|
let re, he, ae;
|
|
7364
7346
|
m != null && m.blob.includes("undefined") ? ae = (ze = (K = m == null ? void 0 : m.blob) == null ? void 0 : K.split("undefined,")) == null ? void 0 : ze[1] : ae = m == null ? void 0 : m.blob;
|
|
7365
|
-
let
|
|
7366
|
-
if ((
|
|
7367
|
-
let He = await (
|
|
7368
|
-
var Fe, Pl, kl,
|
|
7347
|
+
let _e = ae == null ? void 0 : ae.split(",");
|
|
7348
|
+
if ((_e == null ? void 0 : _e.length) > 1) {
|
|
7349
|
+
let He = await (_e == null ? void 0 : _e.map(async (De) => {
|
|
7350
|
+
var Fe, Pl, kl, Sl, El, xl;
|
|
7369
7351
|
re = await ia.get(De, {
|
|
7370
7352
|
responseType: "blob",
|
|
7371
7353
|
headers: {
|
|
@@ -7389,7 +7371,7 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7389
7371
|
}));
|
|
7390
7372
|
await Promise.all(gl);
|
|
7391
7373
|
}
|
|
7392
|
-
return ((
|
|
7374
|
+
return ((Sl = De == null ? void 0 : De.split(".")) == null ? void 0 : Sl[((kl = De == null ? void 0 : De.split(".")) == null ? void 0 : kl.length) - 1]) !== "undefined" && j.push({
|
|
7393
7375
|
suffix: "." + ((xl = De == null ? void 0 : De.split(".")) == null ? void 0 : xl[((El = De == null ? void 0 : De.split(".")) == null ? void 0 : El.length) - 1]),
|
|
7394
7376
|
blob: new Blob([re.data], {
|
|
7395
7377
|
type: "application/octet-stream;charset=UTF-8"
|
|
@@ -7472,7 +7454,7 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7472
7454
|
});
|
|
7473
7455
|
}, a = async () => {
|
|
7474
7456
|
await Wn();
|
|
7475
|
-
}, p = B("数据管理"), h = B(!1),
|
|
7457
|
+
}, p = B("数据管理"), h = B(!1), S = B(), W = B(), de = B({
|
|
7476
7458
|
x: 0,
|
|
7477
7459
|
y: 0
|
|
7478
7460
|
}), O = () => {
|
|
@@ -7507,7 +7489,7 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7507
7489
|
document.removeEventListener("mousemove", qe), document.removeEventListener("mouseup", rl);
|
|
7508
7490
|
}
|
|
7509
7491
|
const we = (H) => {
|
|
7510
|
-
Y = H.clientX, ue = parseInt(getComputedStyle(
|
|
7492
|
+
Y = H.clientX, ue = parseInt(getComputedStyle(S.value).width, 10), document.addEventListener("mousemove", qe), document.addEventListener("mouseup", rl);
|
|
7511
7493
|
};
|
|
7512
7494
|
let se = 0, y = 0, Me = 0, Pe = 0;
|
|
7513
7495
|
function pe(H) {
|
|
@@ -7525,10 +7507,10 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7525
7507
|
je.value = H;
|
|
7526
7508
|
}, Je = () => {
|
|
7527
7509
|
je.value = !je.value;
|
|
7528
|
-
},
|
|
7510
|
+
}, Se = () => {
|
|
7529
7511
|
nl(!1);
|
|
7530
|
-
},
|
|
7531
|
-
|
|
7512
|
+
}, _ = B(), ie = (H) => {
|
|
7513
|
+
_.value = H;
|
|
7532
7514
|
}, Ae = (H) => {
|
|
7533
7515
|
const te = zs(H);
|
|
7534
7516
|
if (!te)
|
|
@@ -7536,7 +7518,7 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7536
7518
|
Te(te);
|
|
7537
7519
|
};
|
|
7538
7520
|
fl(aa, (H) => {
|
|
7539
|
-
const { isLeaf: te } =
|
|
7521
|
+
const { isLeaf: te } = _.value || {};
|
|
7540
7522
|
!te || !H || !H.length || Ae(H);
|
|
7541
7523
|
}, {
|
|
7542
7524
|
immediate: !0,
|
|
@@ -7554,7 +7536,7 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7554
7536
|
Wl(async () => {
|
|
7555
7537
|
$e("setLoginInfo", z.value);
|
|
7556
7538
|
async function H() {
|
|
7557
|
-
var te, Re, xe, G, j, q, m, re, he, ae,
|
|
7539
|
+
var te, Re, xe, G, j, q, m, re, he, ae, _e;
|
|
7558
7540
|
try {
|
|
7559
7541
|
let K = function(He, De) {
|
|
7560
7542
|
return De.map((fe) => He.map((Fe, Pl) => ({
|
|
@@ -7570,7 +7552,7 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7570
7552
|
console.log("555readData", Ml);
|
|
7571
7553
|
let Il = [];
|
|
7572
7554
|
Array.isArray(bl) && Array.isArray(tl) ? Il = [...bl, ...tl] : (Il = [], console.warn("unreadMessagesContents 或 readMessagesContents 不是数组")), v.value = K(Ml, Il), console.log("555allReadMessages.value", v.value);
|
|
7573
|
-
const Ke = ((ae = z == null ? void 0 : z.value) == null ? void 0 : ae.account) || ((
|
|
7555
|
+
const Ke = ((ae = z == null ? void 0 : z.value) == null ? void 0 : ae.account) || ((_e = z == null ? void 0 : z.value) == null ? void 0 : _e.收件人) || "未知", Le = v.value.filter((He) => {
|
|
7574
7556
|
var De;
|
|
7575
7557
|
return ((De = He.find((fe) => fe.prop === "收件人")) == null ? void 0 : De.value) === Ke;
|
|
7576
7558
|
});
|
|
@@ -7624,35 +7606,33 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7624
7606
|
default: o(() => [
|
|
7625
7607
|
n(G, { class: "client-structure-header" }, {
|
|
7626
7608
|
default: o(() => [
|
|
7627
|
-
V("div",
|
|
7609
|
+
V("div", Sc, [
|
|
7628
7610
|
n(xe, {
|
|
7629
7611
|
id: "transparentBgButton",
|
|
7630
7612
|
onClick: c(Fn)
|
|
7631
7613
|
}, {
|
|
7632
|
-
default: o(() => te[5] || (te[5] = [
|
|
7633
|
-
cl(" 返回页面 ")
|
|
7634
|
-
])),
|
|
7635
|
-
_: 1
|
|
7636
|
-
__: [5]
|
|
7614
|
+
default: o(() => [...te[5] || (te[5] = [
|
|
7615
|
+
cl(" 返回页面 ", -1)
|
|
7616
|
+
])]),
|
|
7617
|
+
_: 1
|
|
7637
7618
|
}, 8, ["onClick"]),
|
|
7638
7619
|
n(xe, {
|
|
7639
7620
|
id: "transparentBgButton",
|
|
7640
7621
|
onClick: te[2] || (te[2] = (he) => {
|
|
7641
|
-
var ae,
|
|
7642
|
-
return c(Jn)((
|
|
7622
|
+
var ae, _e;
|
|
7623
|
+
return c(Jn)((_e = (ae = c(ce)) == null ? void 0 : ae.map((K) => K.value)) == null ? void 0 : _e.join("/"));
|
|
7643
7624
|
})
|
|
7644
7625
|
}, {
|
|
7645
7626
|
icon: o(() => [
|
|
7646
7627
|
n(Tl, { name: "Store" })
|
|
7647
7628
|
]),
|
|
7648
7629
|
default: o(() => [
|
|
7649
|
-
te[6] || (te[6] = cl(" 保存页面 "))
|
|
7630
|
+
te[6] || (te[6] = cl(" 保存页面 ", -1))
|
|
7650
7631
|
]),
|
|
7651
|
-
_: 1
|
|
7652
|
-
__: [6]
|
|
7632
|
+
_: 1
|
|
7653
7633
|
})
|
|
7654
7634
|
]),
|
|
7655
|
-
V("div",
|
|
7635
|
+
V("div", _c, [
|
|
7656
7636
|
n(bt, {
|
|
7657
7637
|
breadArray: c(ce),
|
|
7658
7638
|
onClick: c(ht)
|
|
@@ -7682,7 +7662,7 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7682
7662
|
n(Mt)
|
|
7683
7663
|
]),
|
|
7684
7664
|
V("div", Dc, [
|
|
7685
|
-
n(
|
|
7665
|
+
n(St)
|
|
7686
7666
|
])
|
|
7687
7667
|
]),
|
|
7688
7668
|
_: 1
|
|
@@ -7779,7 +7759,7 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7779
7759
|
Yl(V("div", {
|
|
7780
7760
|
class: "management-page-panel",
|
|
7781
7761
|
ref_key: "managementPagePanel",
|
|
7782
|
-
ref:
|
|
7762
|
+
ref: S,
|
|
7783
7763
|
style: Dl(t.value)
|
|
7784
7764
|
}, [
|
|
7785
7765
|
V("div", {
|
|
@@ -7807,7 +7787,7 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7807
7787
|
default: o(() => [
|
|
7808
7788
|
n(m, { class: "client-main" }, {
|
|
7809
7789
|
default: o(() => {
|
|
7810
|
-
var he, ae,
|
|
7790
|
+
var he, ae, _e, K, ze, Oe;
|
|
7811
7791
|
return [
|
|
7812
7792
|
Yl((f(), $("div", {
|
|
7813
7793
|
class: "client-main-operate",
|
|
@@ -7815,7 +7795,7 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7815
7795
|
ref: Ee,
|
|
7816
7796
|
"element-loading-text": "正在加载页面数据..."
|
|
7817
7797
|
}, [
|
|
7818
|
-
((ae = c(g)) == null ? void 0 : ae[((he = c(g)) == null ? void 0 : he.length) - 1]) === c(R) || (
|
|
7798
|
+
((ae = c(g)) == null ? void 0 : ae[((he = c(g)) == null ? void 0 : he.length) - 1]) === c(R) || (_e = c(g)) != null && _e.includes("updateLoading") || (K = c(g)) != null && K.includes("loading") ? (f(), $("div", Vc, [
|
|
7819
7799
|
n(na, {
|
|
7820
7800
|
class: "calculator-content back-content",
|
|
7821
7801
|
onClickTrigger: te[4] || (te[4] = (ne) => c(Et)()),
|
|
@@ -7883,7 +7863,7 @@ const Mc = /* @__PURE__ */ Kl(wc, [["render", Ic], ["__scopeId", "data-v-94d06d5
|
|
|
7883
7863
|
te[7] || (te[7] = V("span", null, " 菜单树 ", -1)),
|
|
7884
7864
|
V("span", {
|
|
7885
7865
|
class: "close",
|
|
7886
|
-
onClick:
|
|
7866
|
+
onClick: Se
|
|
7887
7867
|
}, " X ")
|
|
7888
7868
|
]),
|
|
7889
7869
|
V("div", Kc, [
|
|
@@ -8204,7 +8184,7 @@ const us = (l, b, r, v) => {
|
|
|
8204
8184
|
Array.isArray(M) || (M = [M]);
|
|
8205
8185
|
let me = [];
|
|
8206
8186
|
return (Ee = ml(M)) == null || Ee.forEach((L) => {
|
|
8207
|
-
var J, be, z, Be, ke, Ve, $e, il, ul, pl, Xe, Cl, ve, g, We, Ce, Te, el, Ne, al, Ze, a, p, h,
|
|
8187
|
+
var J, be, z, Be, ke, Ve, $e, il, ul, pl, Xe, Cl, ve, g, We, Ce, Te, el, Ne, al, Ze, a, p, h, S, W;
|
|
8208
8188
|
if (!(L != null && L.filter) || ((J = L == null ? void 0 : L.tableColumns) == null ? void 0 : J.length) > 0 || ((be = L == null ? void 0 : L.value) == null ? void 0 : be.length) > 0) {
|
|
8209
8189
|
let de = (ke = (Be = (z = l == null ? void 0 : l.filter) == null ? void 0 : z.replace("(", vl)) == null ? void 0 : Be.split(vl)) == null ? void 0 : ke[0], O = (il = ($e = (Ve = L.filter) == null ? void 0 : Ve.replace("(", vl)) == null ? void 0 : $e.split(vl)) == null ? void 0 : il[1];
|
|
8210
8190
|
O = "(" + (O == null ? void 0 : O.slice(0, (O == null ? void 0 : O.length) - 1)), !(L != null && L.filter) || (L == null ? void 0 : L.filter) === "" ? L.filter = l == null ? void 0 : l.filter : L.filter = de + O + "," + ((Xe = (pl = (ul = l == null ? void 0 : l.filter) == null ? void 0 : ul.replace("(", vl)) == null ? void 0 : pl.split(vl)) == null ? void 0 : Xe[1]);
|
|
@@ -8214,7 +8194,7 @@ const us = (l, b, r, v) => {
|
|
|
8214
8194
|
((We = L == null ? void 0 : L.tableContents) == null ? void 0 : We.length) > 0 && (s != null && s.filter((N) => N == null ? void 0 : N.includes("@Type"))) && ((Ce = k == null ? void 0 : k[(k == null ? void 0 : k.length) - 1]) != null && Ce.includes("Manual")) && (L.tableContents = []), L.calculatorFilters = v.calculatorFilters, L.name = [...r, ...L == null ? void 0 : L.name], me.push(ml(L));
|
|
8215
8195
|
} else {
|
|
8216
8196
|
let de = (Ne = (el = (Te = l == null ? void 0 : l.filter) == null ? void 0 : Te.replace("(", vl)) == null ? void 0 : el.split(vl)) == null ? void 0 : Ne[0], O = (a = (Ze = (al = L.filter) == null ? void 0 : al.replace("(", vl)) == null ? void 0 : Ze.split(vl)) == null ? void 0 : a[1];
|
|
8217
|
-
O = "(" + (O == null ? void 0 : O.slice(0, (O == null ? void 0 : O.length) - 1)), !(L != null && L.filter) || (L == null ? void 0 : L.filter) === "" ? L.filter = l == null ? void 0 : l.filter : L.filter = de + O + "," + ((
|
|
8197
|
+
O = "(" + (O == null ? void 0 : O.slice(0, (O == null ? void 0 : O.length) - 1)), !(L != null && L.filter) || (L == null ? void 0 : L.filter) === "" ? L.filter = l == null ? void 0 : l.filter : L.filter = de + O + "," + ((S = (h = (p = l == null ? void 0 : l.filter) == null ? void 0 : p.replace("(", vl)) == null ? void 0 : h.split(vl)) == null ? void 0 : S[1]), L.calculatorFilters = v.calculatorFilters, (W = us(ml(L), b, (r == null ? void 0 : r.length) > 0 ? r : [...r, ...L == null ? void 0 : L.name], v)) == null || W.forEach((s) => {
|
|
8218
8198
|
me.push(ml(s));
|
|
8219
8199
|
});
|
|
8220
8200
|
}
|
|
@@ -8280,7 +8260,7 @@ const us = (l, b, r, v) => {
|
|
|
8280
8260
|
return ((Z = (Q = R == null ? void 0 : R.key) == null ? void 0 : Q.split("/")) == null ? void 0 : Z.length) - 1 !== oe;
|
|
8281
8261
|
})) == null ? void 0 : T.join("/")) + "/";
|
|
8282
8262
|
return (P = R.contents) == null || P.forEach((u, oe) => {
|
|
8283
|
-
var C, i, Ee, me, L, J, be, z, Be, ke, Ve, $e, il, ul, pl, Xe, Cl, ve, g, We, Ce, Te, el, Ne, al, Ze, a, p, h,
|
|
8263
|
+
var C, i, Ee, me, L, J, be, z, Be, ke, Ve, $e, il, ul, pl, Xe, Cl, ve, g, We, Ce, Te, el, Ne, al, Ze, a, p, h, S, W, de, O, s, k, N, X, t, d, A, Y, ue, qe, rl;
|
|
8284
8264
|
const Q = u == null ? void 0 : u.isShow, Z = (u == null ? void 0 : u.menuFilter) ?? [], w = Array.isArray(Z) && (Z == null ? void 0 : Z.some((we) => {
|
|
8285
8265
|
const se = typeof we == "string" ? we : JSON.stringify(we);
|
|
8286
8266
|
return (se == null ? void 0 : se.includes("@Hide")) && (se == null ? void 0 : se.includes("Yes"));
|
|
@@ -8300,11 +8280,11 @@ const us = (l, b, r, v) => {
|
|
|
8300
8280
|
} else {
|
|
8301
8281
|
let se = [];
|
|
8302
8282
|
Array.isArray(we) || (we = [we]), (il = ml(we)) == null || il.forEach((y) => {
|
|
8303
|
-
var Me, Pe, pe, le, F, Ye, Ge, je, nl, Je,
|
|
8283
|
+
var Me, Pe, pe, le, F, Ye, Ge, je, nl, Je, Se, _, ie, Ae, Ie, Qe, H, te, Re, xe, G, j, q, m, re, he, ae, _e, K, ze, Oe, ne, bl, tl, Ml;
|
|
8304
8284
|
if (!(y != null && y.filter) || ((Me = y == null ? void 0 : y.tableColumns) == null ? void 0 : Me.length) > 0 || ((Pe = y == null ? void 0 : y.value) == null ? void 0 : Pe.length) > 0) {
|
|
8305
8285
|
y.name = [...u == null ? void 0 : u.name, ...(y == null ? void 0 : y.name) ?? []];
|
|
8306
8286
|
let Il = (F = (le = (pe = u == null ? void 0 : u.filter) == null ? void 0 : pe.replace("(", vl)) == null ? void 0 : le.split(vl)) == null ? void 0 : F[0], Ke = (je = (Ge = (Ye = y.filter) == null ? void 0 : Ye.replace("(", vl)) == null ? void 0 : Ge.split(vl)) == null ? void 0 : je[1];
|
|
8307
|
-
Ke = "(" + (Ke == null ? void 0 : Ke.slice(0, (Ke == null ? void 0 : Ke.length) - 1)), !(y != null && y.filter) || (y == null ? void 0 : y.filter) === "" ? y.filter = u == null ? void 0 : u.filter : y.filter = Il + Ke + "," + ((
|
|
8287
|
+
Ke = "(" + (Ke == null ? void 0 : Ke.slice(0, (Ke == null ? void 0 : Ke.length) - 1)), !(y != null && y.filter) || (y == null ? void 0 : y.filter) === "" ? y.filter = u == null ? void 0 : u.filter : y.filter = Il + Ke + "," + ((Se = (Je = (nl = u == null ? void 0 : u.filter) == null ? void 0 : nl.replace("(", vl)) == null ? void 0 : Je.split(vl)) == null ? void 0 : Se[1]), y.calculatorFilters = u.calculatorFilters, y.fatherSyncContents = (u == null ? void 0 : u.fatherSyncContents) ?? [], y.sonSyncContents = u.sonSyncContents ?? [], y.fatherSyncContents = (_ = y == null ? void 0 : y.fatherSyncContents) == null ? void 0 : _.map((De) => {
|
|
8308
8288
|
var fe, Fe;
|
|
8309
8289
|
return De != null && De.groups ? { ...De } : Object.assign({}, De, {
|
|
8310
8290
|
groups: (Fe = y.name) == null ? void 0 : Fe[((fe = y.name) == null ? void 0 : fe.length) - 1]
|
|
@@ -8322,7 +8302,7 @@ const us = (l, b, r, v) => {
|
|
|
8322
8302
|
} else {
|
|
8323
8303
|
let Il = (G = (xe = (Re = u == null ? void 0 : u.filter) == null ? void 0 : Re.replace("(", vl)) == null ? void 0 : xe.split(vl)) == null ? void 0 : G[0], Ke = (m = (q = (j = y.filter) == null ? void 0 : j.replace("(", vl)) == null ? void 0 : q.split(vl)) == null ? void 0 : m[1];
|
|
8324
8304
|
Ke = "(" + (Ke == null ? void 0 : Ke.slice(0, (Ke == null ? void 0 : Ke.length) - 1)), !(y != null && y.filter) || (y == null ? void 0 : y.filter) === "" ? y.filter = u == null ? void 0 : u.filter : y.filter = Il + Ke + "," + ((ae = (he = (re = u == null ? void 0 : u.filter) == null ? void 0 : re.replace("(", vl)) == null ? void 0 : he.split(vl)) == null ? void 0 : ae[1]);
|
|
8325
|
-
let Le = (ze = (K = (
|
|
8305
|
+
let Le = (ze = (K = (_e = y.filter) == null ? void 0 : _e.replace("(", vl)) == null ? void 0 : K.split(vl)) == null ? void 0 : ze[1];
|
|
8326
8306
|
Le = Le == null ? void 0 : Le.slice(0, (Le == null ? void 0 : Le.length) - 1), Le = pa(Le, ","), y.calculatorFilters = u.calculatorFilters, y.fatherSyncContents = (u == null ? void 0 : u.fatherSyncContents) ?? [], y.sonSyncContents = u.sonSyncContents ?? [], y.fatherSyncContents = (Oe = y == null ? void 0 : y.fatherSyncContents) == null ? void 0 : Oe.map((De) => {
|
|
8327
8307
|
var fe, Fe;
|
|
8328
8308
|
return De != null && De.groups || (De.groups = (Fe = u.name) == null ? void 0 : Fe[((fe = u.name) == null ? void 0 : fe.length) - 1]), De;
|
|
@@ -8364,7 +8344,7 @@ const us = (l, b, r, v) => {
|
|
|
8364
8344
|
!Array.isArray(se) && (((al = se == null ? void 0 : se.value) == null ? void 0 : al.length) > 0 || ((Ze = se == null ? void 0 : se.tableColumns) == null ? void 0 : Ze.length) > 0) && (((a = se == null ? void 0 : se.value) == null ? void 0 : a.length) > 0 ? u.value = se == null ? void 0 : se.value : (u.value = (h = (p = ml(se)) == null ? void 0 : p.tableColumns) == null ? void 0 : h.map((y) => {
|
|
8365
8345
|
var Me;
|
|
8366
8346
|
return y.disabled = !0, y.width = (Me = se == null ? void 0 : se.tableColumns) == null ? void 0 : Me.length, y;
|
|
8367
|
-
}), u.filter = u.filter === "" ? "(@Related: true)" : ((W = u.filter) == null ? void 0 : W.slice(0, ((
|
|
8347
|
+
}), u.filter = u.filter === "" ? "(@Related: true)" : ((W = u.filter) == null ? void 0 : W.slice(0, ((S = u.filter) == null ? void 0 : S.length) - 1)) + ",@Related: true)")), D.push(u);
|
|
8368
8348
|
} else if (((de = u == null ? void 0 : u.tableContents) == null ? void 0 : de.length) > 0 && ((O = u == null ? void 0 : u.tableColumns) == null ? void 0 : O.length) === 0) {
|
|
8369
8349
|
let we = ((N = (k = (s = R == null ? void 0 : R.key) == null ? void 0 : s.split("/")) == null ? void 0 : k.filter((se, y) => {
|
|
8370
8350
|
var Me, Pe;
|
|
@@ -8468,7 +8448,7 @@ const us = (l, b, r, v) => {
|
|
|
8468
8448
|
}, P = wl(() => {
|
|
8469
8449
|
switch (D == null ? void 0 : D.platform) {
|
|
8470
8450
|
case "browser":
|
|
8471
|
-
return
|
|
8451
|
+
return Ss;
|
|
8472
8452
|
case "client":
|
|
8473
8453
|
return Ms;
|
|
8474
8454
|
case "three":
|
|
@@ -8568,7 +8548,7 @@ const us = (l, b, r, v) => {
|
|
|
8568
8548
|
var el;
|
|
8569
8549
|
let Te = Xe.get(Ce == null ? void 0 : Ce.key) ?? [];
|
|
8570
8550
|
(Te == null ? void 0 : Te.length) > 0 && ((el = Ce.contents) == null || el.forEach((Ne) => {
|
|
8571
|
-
var h,
|
|
8551
|
+
var h, S;
|
|
8572
8552
|
let al = Te == null ? void 0 : Te.find(
|
|
8573
8553
|
(W) => {
|
|
8574
8554
|
var de, O;
|
|
@@ -8580,7 +8560,7 @@ const us = (l, b, r, v) => {
|
|
|
8580
8560
|
let de = Ka(W, a);
|
|
8581
8561
|
return de.id = "1", de;
|
|
8582
8562
|
});
|
|
8583
|
-
((
|
|
8563
|
+
((S = Ne == null ? void 0 : Ne.tableContents) == null ? void 0 : S.length) > 0 && We.push({
|
|
8584
8564
|
tableName: Ze,
|
|
8585
8565
|
tableContents: p
|
|
8586
8566
|
});
|
|
@@ -8594,7 +8574,7 @@ const us = (l, b, r, v) => {
|
|
|
8594
8574
|
const ul = await Q(), pl = (ke = (Be = (z = ul == null ? void 0 : ul.data) == null ? void 0 : z.result) == null ? void 0 : Be[0]) == null ? void 0 : ke.object_id;
|
|
8595
8575
|
r.setHomepageBackgroundTableId(pl);
|
|
8596
8576
|
} catch (Ve) {
|
|
8597
|
-
console.error(Ve),
|
|
8577
|
+
console.error(Ve), _l.error("模型内容错误");
|
|
8598
8578
|
}
|
|
8599
8579
|
M.setImportLoading(!1);
|
|
8600
8580
|
},
|
|
@@ -8785,7 +8765,7 @@ const cu = (l) => {
|
|
|
8785
8765
|
initExecute: P,
|
|
8786
8766
|
initAssignMethodToPlatform: async (Q) => await u(Q)
|
|
8787
8767
|
};
|
|
8788
|
-
}, vu = { class: "method-library" }, hu = { class: "method-list" }, gu = ["onClick", "title"], yu = { class: "method-name" }, bu = { class: "operate" }, Cu = { class: "library-right-card" }, mu = { class: "method-operate" }, wu = { class: "operate-right" }, ku = { class: "method-detail" }, Au = { class: "detail-form-wrapper" }, Iu = { class: "detail-footer" }, Mu = { class: "footer-right" },
|
|
8768
|
+
}, vu = { class: "method-library" }, hu = { class: "method-list" }, gu = ["onClick", "title"], yu = { class: "method-name" }, bu = { class: "operate" }, Cu = { class: "library-right-card" }, mu = { class: "method-operate" }, wu = { class: "operate-right" }, ku = { class: "method-detail" }, Au = { class: "detail-form-wrapper" }, Iu = { class: "detail-footer" }, Mu = { class: "footer-right" }, Su = /* @__PURE__ */ Bl({
|
|
8789
8769
|
__name: "index",
|
|
8790
8770
|
setup(l) {
|
|
8791
8771
|
const { isSuperAdmin: b, initMethodItem: r, initMethodList: v, initCreate: M, initUpdate: U, initDelete: I, initExecute: x } = xt(), R = B([]), D = async (Be) => {
|
|
@@ -8885,7 +8865,7 @@ const cu = (l) => {
|
|
|
8885
8865
|
const Ve = await x(ke);
|
|
8886
8866
|
await be(Ve);
|
|
8887
8867
|
} catch {
|
|
8888
|
-
|
|
8868
|
+
_l.error("执行失败");
|
|
8889
8869
|
} finally {
|
|
8890
8870
|
Be.close();
|
|
8891
8871
|
}
|
|
@@ -8898,11 +8878,11 @@ const cu = (l) => {
|
|
|
8898
8878
|
class: "library-left-card",
|
|
8899
8879
|
"body-class": "library-left-card-body"
|
|
8900
8880
|
}, {
|
|
8901
|
-
header: o(() => ke[7] || (ke[7] = [
|
|
8881
|
+
header: o(() => [...ke[7] || (ke[7] = [
|
|
8902
8882
|
V("div", { class: "method-list-header" }, [
|
|
8903
8883
|
V("div", { class: "title" }, "方法列表")
|
|
8904
8884
|
], -1)
|
|
8905
|
-
])),
|
|
8885
|
+
])]),
|
|
8906
8886
|
default: o(() => [
|
|
8907
8887
|
V("div", hu, [
|
|
8908
8888
|
(f(!0), $(ll, null, dl(R.value, (g) => {
|
|
@@ -8936,11 +8916,10 @@ const cu = (l) => {
|
|
|
8936
8916
|
type: "primary",
|
|
8937
8917
|
onClick: ke[0] || (ke[0] = (g) => e())
|
|
8938
8918
|
}, {
|
|
8939
|
-
default: o(() => ke[8] || (ke[8] = [
|
|
8940
|
-
cl("创建方法")
|
|
8941
|
-
])),
|
|
8942
|
-
_: 1
|
|
8943
|
-
__: [8]
|
|
8919
|
+
default: o(() => [...ke[8] || (ke[8] = [
|
|
8920
|
+
cl("创建方法", -1)
|
|
8921
|
+
])]),
|
|
8922
|
+
_: 1
|
|
8944
8923
|
})
|
|
8945
8924
|
])
|
|
8946
8925
|
]),
|
|
@@ -9102,22 +9081,20 @@ const cu = (l) => {
|
|
|
9102
9081
|
type: "primary",
|
|
9103
9082
|
onClick: w
|
|
9104
9083
|
}, {
|
|
9105
|
-
default: o(() => ke[10] || (ke[10] = [
|
|
9106
|
-
cl("保存")
|
|
9107
|
-
])),
|
|
9108
|
-
_: 1
|
|
9109
|
-
__: [10]
|
|
9084
|
+
default: o(() => [...ke[10] || (ke[10] = [
|
|
9085
|
+
cl("保存", -1)
|
|
9086
|
+
])]),
|
|
9087
|
+
_: 1
|
|
9110
9088
|
}),
|
|
9111
9089
|
u.value.id ? (f(), ye(il, {
|
|
9112
9090
|
key: 0,
|
|
9113
9091
|
type: "primary",
|
|
9114
9092
|
onClick: ke[6] || (ke[6] = (g) => z())
|
|
9115
9093
|
}, {
|
|
9116
|
-
default: o(() => ke[11] || (ke[11] = [
|
|
9117
|
-
cl("执行")
|
|
9118
|
-
])),
|
|
9119
|
-
_: 1
|
|
9120
|
-
__: [11]
|
|
9094
|
+
default: o(() => [...ke[11] || (ke[11] = [
|
|
9095
|
+
cl("执行", -1)
|
|
9096
|
+
])]),
|
|
9097
|
+
_: 1
|
|
9121
9098
|
})) : Ue("", !0)
|
|
9122
9099
|
])
|
|
9123
9100
|
])
|
|
@@ -9126,7 +9103,7 @@ const cu = (l) => {
|
|
|
9126
9103
|
]);
|
|
9127
9104
|
};
|
|
9128
9105
|
}
|
|
9129
|
-
}),
|
|
9106
|
+
}), _u = { class: "body-wrapper" }, Tu = { class: "method-library-dialog-header" }, Bu = { class: "back" }, Eu = /* @__PURE__ */ Bl({
|
|
9130
9107
|
__name: "index",
|
|
9131
9108
|
setup(l, { expose: b }) {
|
|
9132
9109
|
const r = B(!1), v = () => {
|
|
@@ -9150,9 +9127,9 @@ const cu = (l) => {
|
|
|
9150
9127
|
"destroy-on-close": "",
|
|
9151
9128
|
"show-close": !1
|
|
9152
9129
|
}, {
|
|
9153
|
-
header: o(() => x[1] || (x[1] = [])),
|
|
9130
|
+
header: o(() => [...x[1] || (x[1] = [])]),
|
|
9154
9131
|
default: o(() => [
|
|
9155
|
-
V("div",
|
|
9132
|
+
V("div", _u, [
|
|
9156
9133
|
V("div", Tu, [
|
|
9157
9134
|
V("div", Bu, [
|
|
9158
9135
|
n(R, {
|
|
@@ -9161,10 +9138,10 @@ const cu = (l) => {
|
|
|
9161
9138
|
})
|
|
9162
9139
|
])
|
|
9163
9140
|
]),
|
|
9164
|
-
n(
|
|
9141
|
+
n(Su)
|
|
9165
9142
|
])
|
|
9166
9143
|
]),
|
|
9167
|
-
footer: o(() => x[2] || (x[2] = [])),
|
|
9144
|
+
footer: o(() => [...x[2] || (x[2] = [])]),
|
|
9168
9145
|
_: 1
|
|
9169
9146
|
}, 8, ["modelValue"]);
|
|
9170
9147
|
};
|
|
@@ -9260,9 +9237,9 @@ const cu = (l) => {
|
|
|
9260
9237
|
"destroy-on-close": "",
|
|
9261
9238
|
modalClass: "allocation-modal"
|
|
9262
9239
|
}, {
|
|
9263
|
-
header: o(() => T[1] || (T[1] = [
|
|
9240
|
+
header: o(() => [...T[1] || (T[1] = [
|
|
9264
9241
|
V("div", null, "方法分配", -1)
|
|
9265
|
-
])),
|
|
9242
|
+
])]),
|
|
9266
9243
|
default: o(() => [
|
|
9267
9244
|
V("div", xu, [
|
|
9268
9245
|
n(Ru, {
|
|
@@ -9413,7 +9390,7 @@ const cu = (l) => {
|
|
|
9413
9390
|
value: ""
|
|
9414
9391
|
});
|
|
9415
9392
|
if (!F || (F == null ? void 0 : F.length) <= 1) {
|
|
9416
|
-
|
|
9393
|
+
_l.warning("不能删除唯一模型");
|
|
9417
9394
|
return;
|
|
9418
9395
|
}
|
|
9419
9396
|
const Ye = ra.service({
|
|
@@ -9440,9 +9417,9 @@ const cu = (l) => {
|
|
|
9440
9417
|
}, nl = await Promise.all([bs(je), xn({
|
|
9441
9418
|
platId: parseInt((Je = Q == null ? void 0 : Q.value) == null ? void 0 : Je.plat_id)
|
|
9442
9419
|
})]);
|
|
9443
|
-
Ge = nl == null ? void 0 : nl.every((
|
|
9444
|
-
var
|
|
9445
|
-
return ((
|
|
9420
|
+
Ge = nl == null ? void 0 : nl.every((Se) => {
|
|
9421
|
+
var _;
|
|
9422
|
+
return ((_ = Se == null ? void 0 : Se.data) == null ? void 0 : _.code) === 200;
|
|
9446
9423
|
}), Ge && await Me();
|
|
9447
9424
|
});
|
|
9448
9425
|
} catch (je) {
|
|
@@ -9485,7 +9462,7 @@ const cu = (l) => {
|
|
|
9485
9462
|
fullscreen: !0
|
|
9486
9463
|
}), h = async () => {
|
|
9487
9464
|
M("open"), Me();
|
|
9488
|
-
},
|
|
9465
|
+
}, S = () => {
|
|
9489
9466
|
p.show = !1, M("close");
|
|
9490
9467
|
};
|
|
9491
9468
|
fl(() => U == null ? void 0 : U.modelValue, (le) => {
|
|
@@ -9648,16 +9625,16 @@ const cu = (l) => {
|
|
|
9648
9625
|
// 业务类型字段
|
|
9649
9626
|
} = F;
|
|
9650
9627
|
return Array.isArray(le) ? le == null ? void 0 : le.map((Je) => {
|
|
9651
|
-
const
|
|
9628
|
+
const Se = {
|
|
9652
9629
|
[Ye]: Je[Ye] || Je[je] || "管理系统",
|
|
9653
9630
|
value: Je[Ye] || Je[je] || "管理系统",
|
|
9654
9631
|
isPlat: !!(Je != null && Je.platType)
|
|
9655
9632
|
};
|
|
9656
|
-
return Je[nl] && Array.isArray(Je[nl]) && (
|
|
9657
|
-
[Ye]:
|
|
9658
|
-
value:
|
|
9659
|
-
isPlat: !!(
|
|
9660
|
-
}))),
|
|
9633
|
+
return Je[nl] && Array.isArray(Je[nl]) && (Se[Ge] = Je[nl].map((_) => ({
|
|
9634
|
+
[Ye]: _[Ye] || _.businessType || "",
|
|
9635
|
+
value: _[Ye] || _.businessType || "",
|
|
9636
|
+
isPlat: !!(_ != null && _.platType)
|
|
9637
|
+
}))), Se;
|
|
9661
9638
|
}) : [];
|
|
9662
9639
|
}
|
|
9663
9640
|
const ue = async () => {
|
|
@@ -9678,14 +9655,14 @@ const cu = (l) => {
|
|
|
9678
9655
|
let F;
|
|
9679
9656
|
try {
|
|
9680
9657
|
if (!((Ye = Q == null ? void 0 : Q.value) != null && Ye.user_id)) return;
|
|
9681
|
-
const Je = (le == null ? void 0 : le.value) === "管理系统" ? "" : le == null ? void 0 : le.value,
|
|
9658
|
+
const Je = (le == null ? void 0 : le.value) === "管理系统" ? "" : le == null ? void 0 : le.value, Se = await Cs({
|
|
9682
9659
|
userId: (Ge = Q == null ? void 0 : Q.value) == null ? void 0 : Ge.user_id,
|
|
9683
9660
|
platType: le != null && le.isPlat ? Je : "",
|
|
9684
9661
|
businessType: le != null && le.isPlat ? "" : Je
|
|
9685
9662
|
});
|
|
9686
|
-
if (((je =
|
|
9687
|
-
const
|
|
9688
|
-
t.value =
|
|
9663
|
+
if (((je = Se == null ? void 0 : Se.data) == null ? void 0 : je.code) === 200) {
|
|
9664
|
+
const _ = ((nl = Se == null ? void 0 : Se.data) == null ? void 0 : nl.result) || [];
|
|
9665
|
+
t.value = _, F = _;
|
|
9689
9666
|
}
|
|
9690
9667
|
} catch (Je) {
|
|
9691
9668
|
throw Je;
|
|
@@ -9708,7 +9685,7 @@ const cu = (l) => {
|
|
|
9708
9685
|
(le = Pe.value) == null || le.openDialog();
|
|
9709
9686
|
};
|
|
9710
9687
|
return b({ openDialog: w }), (le, F) => {
|
|
9711
|
-
const Ye = ee("svg-icon"), Ge = ee("el-button"), je = ee("el-tree"), nl = ee("el-card"), Je = ee("el-input"),
|
|
9688
|
+
const Ye = ee("svg-icon"), Ge = ee("el-button"), je = ee("el-tree"), nl = ee("el-card"), Je = ee("el-input"), Se = ee("el-table-column"), _ = ee("el-icon"), ie = ee("el-image"), Ae = ee("el-tag"), Ie = ee("el-link"), Qe = ee("el-table"), H = ee("el-dialog"), te = ee("el-cascader"), Re = ee("el-form-item"), xe = ee("el-col"), G = ee("el-row"), j = ee("el-upload"), q = ee("el-form");
|
|
9712
9689
|
return f(), $(ll, null, [
|
|
9713
9690
|
n(H, {
|
|
9714
9691
|
class: "model-management-dialog",
|
|
@@ -9716,9 +9693,9 @@ const cu = (l) => {
|
|
|
9716
9693
|
"onUpdate:modelValue": F[2] || (F[2] = (m) => p.show = m),
|
|
9717
9694
|
title: p.title,
|
|
9718
9695
|
fullscreen: p.fullscreen,
|
|
9719
|
-
"before-close":
|
|
9696
|
+
"before-close": S,
|
|
9720
9697
|
onOpen: h,
|
|
9721
|
-
onClose:
|
|
9698
|
+
onClose: S,
|
|
9722
9699
|
"destroy-on-close": "",
|
|
9723
9700
|
"show-close": !1,
|
|
9724
9701
|
style: { "background-color": "#f3f3f3" }
|
|
@@ -9741,11 +9718,10 @@ const cu = (l) => {
|
|
|
9741
9718
|
type: "primary",
|
|
9742
9719
|
onClick: se
|
|
9743
9720
|
}, {
|
|
9744
|
-
default: o(() => F[8] || (F[8] = [
|
|
9745
|
-
cl("查看所有")
|
|
9746
|
-
])),
|
|
9747
|
-
_: 1
|
|
9748
|
-
__: [8]
|
|
9721
|
+
default: o(() => [...F[8] || (F[8] = [
|
|
9722
|
+
cl("查看所有", -1)
|
|
9723
|
+
])]),
|
|
9724
|
+
_: 1
|
|
9749
9725
|
})
|
|
9750
9726
|
]),
|
|
9751
9727
|
default: o(() => [
|
|
@@ -9785,21 +9761,19 @@ const cu = (l) => {
|
|
|
9785
9761
|
type: "primary",
|
|
9786
9762
|
onClick: pe
|
|
9787
9763
|
}, {
|
|
9788
|
-
default: o(() => F[10] || (F[10] = [
|
|
9789
|
-
cl("方法库")
|
|
9790
|
-
])),
|
|
9791
|
-
_: 1
|
|
9792
|
-
__: [10]
|
|
9764
|
+
default: o(() => [...F[10] || (F[10] = [
|
|
9765
|
+
cl("方法库", -1)
|
|
9766
|
+
])]),
|
|
9767
|
+
_: 1
|
|
9793
9768
|
}),
|
|
9794
9769
|
n(Ge, {
|
|
9795
9770
|
type: "primary",
|
|
9796
9771
|
onClick: F[1] || (F[1] = (m) => il())
|
|
9797
9772
|
}, {
|
|
9798
|
-
default: o(() => F[11] || (F[11] = [
|
|
9799
|
-
cl("创建系统")
|
|
9800
|
-
])),
|
|
9801
|
-
_: 1
|
|
9802
|
-
__: [11]
|
|
9773
|
+
default: o(() => [...F[11] || (F[11] = [
|
|
9774
|
+
cl("创建系统", -1)
|
|
9775
|
+
])]),
|
|
9776
|
+
_: 1
|
|
9803
9777
|
})
|
|
9804
9778
|
])
|
|
9805
9779
|
])
|
|
@@ -9817,13 +9791,13 @@ const cu = (l) => {
|
|
|
9817
9791
|
onRowDblclick: W
|
|
9818
9792
|
}, {
|
|
9819
9793
|
default: o(() => [
|
|
9820
|
-
n(
|
|
9794
|
+
n(Se, {
|
|
9821
9795
|
type: "index",
|
|
9822
9796
|
label: "序号",
|
|
9823
9797
|
width: "70",
|
|
9824
9798
|
align: "center"
|
|
9825
9799
|
}),
|
|
9826
|
-
(f(!0), $(ll, null, dl(A.value, (m) => (f(), ye(
|
|
9800
|
+
(f(!0), $(ll, null, dl(A.value, (m) => (f(), ye(Se, {
|
|
9827
9801
|
"min-width": m == null ? void 0 : m.minWidth,
|
|
9828
9802
|
key: m == null ? void 0 : m.prop,
|
|
9829
9803
|
prop: m == null ? void 0 : m.prop,
|
|
@@ -9839,7 +9813,7 @@ const cu = (l) => {
|
|
|
9839
9813
|
style: { width: "40px", height: "40px", "border-radius": "4px", cursor: "pointer" }
|
|
9840
9814
|
}, {
|
|
9841
9815
|
error: o(() => [
|
|
9842
|
-
n(
|
|
9816
|
+
n(_, {
|
|
9843
9817
|
style: { width: "100%", height: "100%" },
|
|
9844
9818
|
title: "暂无图片"
|
|
9845
9819
|
}, {
|
|
@@ -9849,8 +9823,8 @@ const cu = (l) => {
|
|
|
9849
9823
|
_: 1
|
|
9850
9824
|
})
|
|
9851
9825
|
]),
|
|
9852
|
-
_:
|
|
9853
|
-
},
|
|
9826
|
+
_: 1
|
|
9827
|
+
}, 8, ["src"])) : Ue("", !0),
|
|
9854
9828
|
(m == null ? void 0 : m.render) === "tag" && (re != null && re[m == null ? void 0 : m.prop]) ? (f(), ye(Ae, {
|
|
9855
9829
|
key: 1,
|
|
9856
9830
|
style: { color: "#fff" },
|
|
@@ -9865,7 +9839,7 @@ const cu = (l) => {
|
|
|
9865
9839
|
]),
|
|
9866
9840
|
_: 2
|
|
9867
9841
|
}, 1032, ["min-width", "prop", "label", "fixed"]))), 128)),
|
|
9868
|
-
n(
|
|
9842
|
+
n(Se, {
|
|
9869
9843
|
fixed: "right",
|
|
9870
9844
|
prop: "operate",
|
|
9871
9845
|
label: "操作",
|
|
@@ -10084,7 +10058,7 @@ const cu = (l) => {
|
|
|
10084
10058
|
class: "logo",
|
|
10085
10059
|
src: be.value.logoBlobUrl
|
|
10086
10060
|
}, null, 8, Gu)
|
|
10087
|
-
])) : (f(), ye(
|
|
10061
|
+
])) : (f(), ye(_, {
|
|
10088
10062
|
key: 1,
|
|
10089
10063
|
class: "logo-uploader-icon"
|
|
10090
10064
|
}, {
|
|
@@ -10277,7 +10251,7 @@ const cu = (l) => {
|
|
|
10277
10251
|
], -1)),
|
|
10278
10252
|
V("div", vd, [
|
|
10279
10253
|
V("div", hd, [
|
|
10280
|
-
(f(!0), $(ll, null, dl(
|
|
10254
|
+
(f(!0), $(ll, null, dl(l.historyData, (oe) => (f(), $("div", {
|
|
10281
10255
|
class: "history-item",
|
|
10282
10256
|
key: oe.path,
|
|
10283
10257
|
onDblclick: (Q) => e(oe)
|
|
@@ -10311,10 +10285,10 @@ const cu = (l) => {
|
|
|
10311
10285
|
}, Ad = { class: "model-select" }, Id = { class: "model-fill" }, Md = {
|
|
10312
10286
|
key: 1,
|
|
10313
10287
|
class: "model-view"
|
|
10314
|
-
},
|
|
10288
|
+
}, Sd = {
|
|
10315
10289
|
class: "drop-menu",
|
|
10316
10290
|
style: { width: "120px" }
|
|
10317
|
-
},
|
|
10291
|
+
}, _d = { style: { display: "flex", gap: "12px", "justify-content": "flex-end", "flex-wrap": "wrap" } }, Td = /* @__PURE__ */ Bl({
|
|
10318
10292
|
__name: "index",
|
|
10319
10293
|
props: {
|
|
10320
10294
|
mode: {
|
|
@@ -10499,7 +10473,7 @@ const cu = (l) => {
|
|
|
10499
10473
|
var s;
|
|
10500
10474
|
const O = (s = w == null ? void 0 : w.value) == null ? void 0 : s.plat_id;
|
|
10501
10475
|
if (!O) {
|
|
10502
|
-
|
|
10476
|
+
_l.error("无法获取系统ID");
|
|
10503
10477
|
return;
|
|
10504
10478
|
}
|
|
10505
10479
|
Be.value = !1, ce.setImportLoading(!0);
|
|
@@ -10511,9 +10485,9 @@ const cu = (l) => {
|
|
|
10511
10485
|
const A = t.match(/filename="?([^"]+)"?/);
|
|
10512
10486
|
A && A.length === 2 && (X = A[1].replace(".txt", ".ild"));
|
|
10513
10487
|
}
|
|
10514
|
-
await el(N, X, ".ild") &&
|
|
10488
|
+
await el(N, X, ".ild") && _l.success("导出成功");
|
|
10515
10489
|
} catch {
|
|
10516
|
-
|
|
10490
|
+
_l.error("导出失败");
|
|
10517
10491
|
} finally {
|
|
10518
10492
|
ce.setImportLoading(!1);
|
|
10519
10493
|
}
|
|
@@ -10521,7 +10495,7 @@ const cu = (l) => {
|
|
|
10521
10495
|
var s;
|
|
10522
10496
|
const O = (s = w == null ? void 0 : w.value) == null ? void 0 : s.plat_id;
|
|
10523
10497
|
if (!O) {
|
|
10524
|
-
|
|
10498
|
+
_l.error("无法获取系统ID");
|
|
10525
10499
|
return;
|
|
10526
10500
|
}
|
|
10527
10501
|
Be.value = !1, ce.setImportLoading(!0);
|
|
@@ -10533,9 +10507,9 @@ const cu = (l) => {
|
|
|
10533
10507
|
const A = t.match(/filename="?([^"]+)"?/);
|
|
10534
10508
|
A && A.length === 2 && (X = A[1].replace(".txt", ".ild"));
|
|
10535
10509
|
}
|
|
10536
|
-
await el(N, X, ".ild") &&
|
|
10510
|
+
await el(N, X, ".ild") && _l.success("导出成功");
|
|
10537
10511
|
} catch {
|
|
10538
|
-
|
|
10512
|
+
_l.error("导出失败");
|
|
10539
10513
|
} finally {
|
|
10540
10514
|
ce.setImportLoading(!1);
|
|
10541
10515
|
}
|
|
@@ -10572,7 +10546,7 @@ const cu = (l) => {
|
|
|
10572
10546
|
v("executeWorkspace", {
|
|
10573
10547
|
type: Qa.GET_HISTORY_DATA
|
|
10574
10548
|
}), (O = p.value) == null || O.openDialog();
|
|
10575
|
-
},
|
|
10549
|
+
}, S = async (O) => {
|
|
10576
10550
|
const { type: s } = O;
|
|
10577
10551
|
if (s === Qa.SAVE) {
|
|
10578
10552
|
const k = ra.service({
|
|
@@ -10596,9 +10570,9 @@ const cu = (l) => {
|
|
|
10596
10570
|
background: "rgba(0, 0, 0, 0.7)"
|
|
10597
10571
|
});
|
|
10598
10572
|
try {
|
|
10599
|
-
await a(), W(), (s = p.value) == null || s.closeDialog(),
|
|
10573
|
+
await a(), W(), (s = p.value) == null || s.closeDialog(), _l.success("打开成功");
|
|
10600
10574
|
} catch {
|
|
10601
|
-
|
|
10575
|
+
_l.error("打开失败");
|
|
10602
10576
|
} finally {
|
|
10603
10577
|
O.close();
|
|
10604
10578
|
}
|
|
@@ -10619,7 +10593,7 @@ const cu = (l) => {
|
|
|
10619
10593
|
n(Mt)
|
|
10620
10594
|
])),
|
|
10621
10595
|
V("div", Id, [
|
|
10622
|
-
n(
|
|
10596
|
+
n(St)
|
|
10623
10597
|
])
|
|
10624
10598
|
])) : Ue("", !0),
|
|
10625
10599
|
(r == null ? void 0 : r.mode) === "view" ? (f(), $("div", Md, [
|
|
@@ -10651,15 +10625,14 @@ const cu = (l) => {
|
|
|
10651
10625
|
n(k, { name: "model" })
|
|
10652
10626
|
]),
|
|
10653
10627
|
default: o(() => [
|
|
10654
|
-
s[2] || (s[2] = cl(" 模型 "))
|
|
10628
|
+
s[2] || (s[2] = cl(" 模型 ", -1))
|
|
10655
10629
|
]),
|
|
10656
|
-
_: 1
|
|
10657
|
-
__: [2]
|
|
10630
|
+
_: 1
|
|
10658
10631
|
})) : Ue("", !0)
|
|
10659
10632
|
];
|
|
10660
10633
|
}),
|
|
10661
10634
|
dropMenu: o(() => [
|
|
10662
|
-
V("div",
|
|
10635
|
+
V("div", Sd, [
|
|
10663
10636
|
n(N, {
|
|
10664
10637
|
onClick: Ce,
|
|
10665
10638
|
style: { width: "100%", margin: "0" }
|
|
@@ -10668,10 +10641,9 @@ const cu = (l) => {
|
|
|
10668
10641
|
n(k, { name: "模板管理" })
|
|
10669
10642
|
]),
|
|
10670
10643
|
default: o(() => [
|
|
10671
|
-
s[3] || (s[3] = cl(" 模型列表 "))
|
|
10644
|
+
s[3] || (s[3] = cl(" 模型列表 ", -1))
|
|
10672
10645
|
]),
|
|
10673
|
-
_: 1
|
|
10674
|
-
__: [3]
|
|
10646
|
+
_: 1
|
|
10675
10647
|
}),
|
|
10676
10648
|
n(N, {
|
|
10677
10649
|
onClick: g,
|
|
@@ -10691,10 +10663,9 @@ const cu = (l) => {
|
|
|
10691
10663
|
style: { display: "none" },
|
|
10692
10664
|
multiple: ""
|
|
10693
10665
|
}, null, 32)),
|
|
10694
|
-
s[4] || (s[4] = cl(" 导入模型 "))
|
|
10666
|
+
s[4] || (s[4] = cl(" 导入模型 ", -1))
|
|
10695
10667
|
]),
|
|
10696
|
-
_: 1
|
|
10697
|
-
__: [4]
|
|
10668
|
+
_: 1
|
|
10698
10669
|
}),
|
|
10699
10670
|
n(N, {
|
|
10700
10671
|
onClick: Te,
|
|
@@ -10704,10 +10675,9 @@ const cu = (l) => {
|
|
|
10704
10675
|
n(k, { name: "export" })
|
|
10705
10676
|
]),
|
|
10706
10677
|
default: o(() => [
|
|
10707
|
-
s[5] || (s[5] = cl(" 导出模型 "))
|
|
10678
|
+
s[5] || (s[5] = cl(" 导出模型 ", -1))
|
|
10708
10679
|
]),
|
|
10709
|
-
_: 1
|
|
10710
|
-
__: [5]
|
|
10680
|
+
_: 1
|
|
10711
10681
|
}),
|
|
10712
10682
|
n(N, {
|
|
10713
10683
|
onClick: a,
|
|
@@ -10717,10 +10687,9 @@ const cu = (l) => {
|
|
|
10717
10687
|
n(k, { name: "clear" })
|
|
10718
10688
|
]),
|
|
10719
10689
|
default: o(() => [
|
|
10720
|
-
s[6] || (s[6] = cl(" 清空模型 "))
|
|
10690
|
+
s[6] || (s[6] = cl(" 清空模型 ", -1))
|
|
10721
10691
|
]),
|
|
10722
|
-
_: 1
|
|
10723
|
-
__: [6]
|
|
10692
|
+
_: 1
|
|
10724
10693
|
})
|
|
10725
10694
|
])
|
|
10726
10695
|
]),
|
|
@@ -10735,10 +10704,9 @@ const cu = (l) => {
|
|
|
10735
10704
|
n(k, { name: "工作台" })
|
|
10736
10705
|
]),
|
|
10737
10706
|
default: o(() => [
|
|
10738
|
-
s[7] || (s[7] = cl(" 工作区 "))
|
|
10707
|
+
s[7] || (s[7] = cl(" 工作区 ", -1))
|
|
10739
10708
|
]),
|
|
10740
|
-
_: 1
|
|
10741
|
-
__: [7]
|
|
10709
|
+
_: 1
|
|
10742
10710
|
})) : Ue("", !0)
|
|
10743
10711
|
]),
|
|
10744
10712
|
_: 1
|
|
@@ -10755,7 +10723,7 @@ const cu = (l) => {
|
|
|
10755
10723
|
ref_key: "workspaceDialog",
|
|
10756
10724
|
ref: p,
|
|
10757
10725
|
"history-data": l.workspaceHistoryData,
|
|
10758
|
-
onExecuteWorkspace:
|
|
10726
|
+
onExecuteWorkspace: S
|
|
10759
10727
|
}, null, 8, ["history-data"]),
|
|
10760
10728
|
n(X, {
|
|
10761
10729
|
modelValue: Be.value,
|
|
@@ -10765,33 +10733,30 @@ const cu = (l) => {
|
|
|
10765
10733
|
"append-to-body": ""
|
|
10766
10734
|
}, {
|
|
10767
10735
|
default: o(() => [
|
|
10768
|
-
V("div",
|
|
10736
|
+
V("div", _d, [
|
|
10769
10737
|
n(N, {
|
|
10770
10738
|
type: "primary",
|
|
10771
10739
|
onClick: Ne
|
|
10772
10740
|
}, {
|
|
10773
|
-
default: o(() => s[8] || (s[8] = [
|
|
10774
|
-
cl("导出模型")
|
|
10775
|
-
])),
|
|
10776
|
-
_: 1
|
|
10777
|
-
__: [8]
|
|
10741
|
+
default: o(() => [...s[8] || (s[8] = [
|
|
10742
|
+
cl("导出模型", -1)
|
|
10743
|
+
])]),
|
|
10744
|
+
_: 1
|
|
10778
10745
|
}),
|
|
10779
10746
|
n(N, { disabled: "" }, {
|
|
10780
|
-
default: o(() => s[9] || (s[9] = [
|
|
10781
|
-
cl("导出数据")
|
|
10782
|
-
])),
|
|
10783
|
-
_: 1
|
|
10784
|
-
__: [9]
|
|
10747
|
+
default: o(() => [...s[9] || (s[9] = [
|
|
10748
|
+
cl("导出数据", -1)
|
|
10749
|
+
])]),
|
|
10750
|
+
_: 1
|
|
10785
10751
|
}),
|
|
10786
10752
|
n(N, {
|
|
10787
10753
|
type: "primary",
|
|
10788
10754
|
onClick: al
|
|
10789
10755
|
}, {
|
|
10790
|
-
default: o(() => s[10] || (s[10] = [
|
|
10791
|
-
cl("导出模型数据")
|
|
10792
|
-
])),
|
|
10793
|
-
_: 1
|
|
10794
|
-
__: [10]
|
|
10756
|
+
default: o(() => [...s[10] || (s[10] = [
|
|
10757
|
+
cl("导出模型数据", -1)
|
|
10758
|
+
])]),
|
|
10759
|
+
_: 1
|
|
10795
10760
|
})
|
|
10796
10761
|
])
|
|
10797
10762
|
]),
|
|
@@ -10800,7 +10765,7 @@ const cu = (l) => {
|
|
|
10800
10765
|
]);
|
|
10801
10766
|
};
|
|
10802
10767
|
}
|
|
10803
|
-
}),
|
|
10768
|
+
}), tp = /* @__PURE__ */ Kl(Td, [["__scopeId", "data-v-a8c2fe98"]]);
|
|
10804
10769
|
export {
|
|
10805
|
-
|
|
10770
|
+
tp as default
|
|
10806
10771
|
};
|