ss-component-new 1.3.21 → 1.3.23
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-YtHulNzU.cjs → MTLLoader-C_XCtjSi.cjs} +1 -1
- package/dist/{MTLLoader-CBRDqlja.js → MTLLoader-YR-bfx1D.js} +24 -24
- package/dist/{OrbitControls-CKR1ruPg.js → OrbitControls-BGsXD_A7.js} +1 -1
- package/dist/{OrbitControls-Bwzpfq8_.cjs → OrbitControls-CktvE4iE.cjs} +1 -1
- package/dist/{URDFLoader-DIvTWPgk.cjs → URDFLoader-10oVp_KW.cjs} +1 -1
- package/dist/{URDFLoader-D-0fnLWu.js → URDFLoader-m1gMdnSQ.js} +189 -189
- package/dist/{animationData-BBVNOO1d.js → animationData-CpK8d_Vm.js} +19 -19
- package/dist/{animationData-krmt7b15.cjs → animationData-Cr2ra7rm.cjs} +1 -1
- package/dist/{array-AvrqnNoJ.js → array-BmfCVZvi.js} +46 -46
- package/dist/{array-CMW4ey7w.cjs → array-COho2hZW.cjs} +1 -1
- package/dist/{iconfont-CSj9Ypb0.js → iconfont-0yJB130V.js} +29 -29
- package/dist/{iconfont-CUPzGSlt.cjs → iconfont-DsF7kuG5.cjs} +1 -1
- package/dist/{index-VF71yUkZ.js → index-5YbplPvi.js} +2 -2
- package/dist/{index-I09e-7nF.js → index-76YbJdM8.js} +2 -2
- package/dist/{index-BWb8IVmh.js → index-98Ogvz1v.js} +7 -7
- package/dist/{index-B7VKjUP4.cjs → index-B4LIBl-a.cjs} +1 -1
- package/dist/{index-NB4ig2Zg.js → index-B52TVCSg.js} +8 -8
- package/dist/{index-B1Zztqcr.cjs → index-BEBJWYp0.cjs} +1 -1
- package/dist/{index-Dx5UzB8t.js → index-BHjvJiFA.js} +5 -5
- package/dist/{index-BLxE_tkf.cjs → index-BJPBBWWH.cjs} +1 -1
- package/dist/{index-DEF8zy07.js → index-BLcFvu4u.js} +3 -3
- package/dist/{index-BPstNH4r.cjs → index-BPlHuTxE.cjs} +4 -4
- package/dist/index-BPu9kWR3.js +11883 -0
- package/dist/{index-snyYrfwK.cjs → index-BRJ1_Tfi.cjs} +1 -1
- package/dist/{index-vCTVD7cV.cjs → index-BWCv7zxy.cjs} +1 -1
- package/dist/{index-DWfxnemZ.js → index-BXUByyre.js} +2 -2
- package/dist/{index-DUt_5IeJ.js → index-Bnp6YMyE.js} +1461 -1455
- package/dist/{index-CGrJyKvT.cjs → index-BxMPyw-Y.cjs} +1 -1
- package/dist/{index-DWm4nu2G.cjs → index-CBqGrYej.cjs} +1 -1
- package/dist/{index-Dm67w52u.cjs → index-CC9drriV.cjs} +1 -1
- package/dist/{index-sMsCzNtW.js → index-COQpDVsv.js} +1570 -1535
- package/dist/{index-C4Ohl9vT.js → index-CRbfwrdV.js} +41 -41
- package/dist/{index-CuvQZsbE.cjs → index-CVXrjDFh.cjs} +1 -1
- package/dist/{index-CEzEaG0d.js → index-CXiOVgoz.js} +1 -1
- package/dist/{index-BzGHYxs2.cjs → index-CbBY3TG6.cjs} +1 -1
- package/dist/{index-DuGfBNM6.cjs → index-CgFSiyRX.cjs} +1 -1
- package/dist/{index-Cu-8pzHm.js → index-Chxt6xBv.js} +5 -5
- package/dist/{index-CIrXKpNl.cjs → index-Cjqg29ul.cjs} +1 -1
- package/dist/index-CpbBe_mV.cjs +1 -0
- package/dist/index-CuAHwR97.cjs +1 -0
- package/dist/{index-DHrb-D39.js → index-D-kqGA71.js} +7 -7
- package/dist/{index-euZWOilV.cjs → index-D3ixok8t.cjs} +1 -1
- package/dist/{index-D39AtL48.js → index-D8HD14bz.js} +1 -1
- package/dist/{index-DABBYx7H.js → index-DBh5Z73C.js} +1 -1
- package/dist/index-DIWralYr.js +67 -0
- package/dist/{index-C8fMwErX.cjs → index-DRTxe12U.cjs} +13 -13
- package/dist/{index-BFKUrR1o.cjs → index-DS-YTop9.cjs} +1 -1
- package/dist/{index-Cw4Pm2PQ.cjs → index-DU9e5EhS.cjs} +1 -1
- package/dist/{index-DN2waPoj.cjs → index-D_Yhv_HV.cjs} +1 -1
- package/dist/{index-d6tZBTSp.cjs → index-DaIE9uY1.cjs} +1 -1
- package/dist/{index-BT6DSXQW.js → index-Ddoq7kRQ.js} +9 -9
- package/dist/{index-CZKslfuq.js → index-Du1HuKYs.js} +2 -2
- package/dist/{index-Cxl9cpua.js → index-HgbCIoqo.js} +2 -2
- package/dist/index-MK7NdOmS.cjs +1 -0
- package/dist/{index-C7WQ1ky5.js → index-NaWMtdUV.js} +2 -2
- package/dist/{index-DTttfGgm.js → index-OX4hSXv6.js} +7 -7
- package/dist/{index-DXiGkaWi.cjs → index-TMUwtzAm.cjs} +1 -1
- package/dist/{index-DGRL8SEt.js → index-Va8AOLWi.js} +1 -1
- package/dist/{index-Bjsm8c8q.cjs → index-c4SVf22I.cjs} +1 -1
- package/dist/{index-CppJQDiT.js → index-gfdgTjvQ.js} +3 -3
- package/dist/{index-CEq2QX9L.js → index-nr6V1FzX.js} +7 -7
- package/dist/{index-ovqPs7X7.cjs → index-oMihgN5x.cjs} +1 -1
- package/dist/{index-DTuVgYze.cjs → index-r6HP72OA.cjs} +1 -1
- package/dist/{index-CBtxzh-u.js → index-tVVurbFz.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-n7J00Lcz.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js} +29074 -28413
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-b_9vxv2X.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs} +392 -382
- package/dist/{index.vue_vue_type_style_index_1_lang-DDedRKQj.cjs → index.vue_vue_type_style_index_1_lang--4T7j9qz.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-q8rMzh6x.js → index.vue_vue_type_style_index_1_lang-CNh42_ZH.js} +75 -75
- package/dist/{main-CmrBxQsF.cjs → main-BH4e9Of0.cjs} +1 -1
- package/dist/{main-ZLB6NnLd.js → main-DU0KTY9Z.js} +4 -4
- package/dist/{menuIndex-8RF_0N_y.cjs → menuIndex-D52EAwtb.cjs} +1 -1
- package/dist/{menuIndex-BwWrdu20.js → menuIndex-DYaogp2R.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +11 -11
- package/dist/{threeModel-DpvPVwlN.js → threeModel-AsOY6mTs.js} +45 -45
- package/dist/{threeModel-D5UnPmV3.cjs → threeModel-rcCyHi_m.cjs} +1 -1
- package/dist/{threePreview-XQG7sQy9.js → threePreview-CkKl3frr.js} +125 -125
- package/dist/{threePreview-CBFQtSls.cjs → threePreview-DOD9HOZn.cjs} +1 -1
- package/dist/{threeSceneView-D97Sc8hd.cjs → threeSceneView-DZvOLWv6.cjs} +1 -1
- package/dist/{threeSceneView-CdZFIImJ.js → threeSceneView-DlL9pZlj.js} +38 -38
- package/dist/{threeSceneViewForCPMPIP-4Cjv1ZS4.cjs → threeSceneViewForCPMPIP-CZvKvfDx.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DH__ogKh.js → threeSceneViewForCPMPIP-DB0Eczbs.js} +8 -8
- package/dist/{threeTrackPathView-s17KavQX.cjs → threeTrackPathView-DgyAEYfV.cjs} +1 -1
- package/dist/{threeTrackPathView-BFQXaw-a.js → threeTrackPathView-Eb1bvUXJ.js} +78 -78
- package/dist/{threeViewerHost-C39tiQj-.cjs → threeViewerHost-BMU1tg9c.cjs} +1 -1
- package/dist/{threeViewerHost-BgPjA_94.js → threeViewerHost-Bdzv9iPb.js} +11 -11
- package/dist/{urdfTree-HdeBG5se.cjs → urdfTree-CoK2r17Y.cjs} +1 -1
- package/dist/{urdfTree-DM6uTeXj.js → urdfTree-hLtm0aFY.js} +10 -10
- package/dist/{workpieceTreePanel-C5qUdbmi.js → workpieceTreePanel-Ne_ACq86.js} +63 -63
- package/dist/{workpieceTreePanel-BKOHDm85.cjs → workpieceTreePanel-mWvCQyyw.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BteE57Nz.js +0 -103
- package/dist/index-C8FzkPpO.cjs +0 -1
- package/dist/index-CmctAnWR.cjs +0 -11
- package/dist/index-CsbDyIb2.cjs +0 -1
- package/dist/index-DdXtt1dh.js +0 -12544
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { defineComponent as ze, defineProps as st, ref as L, computed as ee, watch as YA, onMounted as on, resolveComponent as TA, createBlock as xA, openBlock as z, withCtx as M, createElementVNode as H, toDisplayString as UA, createElementBlock as q, Fragment as ue, renderList as Ee, createCommentVNode as CA, normalizeStyle as Fe, createVNode as O, unref as a, resolveDynamicComponent as Ye, provide as fn, resolveDirective as ct, withDirectives as je, vShow as Re, createTextVNode as pe, renderSlot as We, normalizeClass as Ke, onUnmounted as St, createSlots as Jt } from "vue";
|
|
2
|
-
import { m as Sn, a as Jn, b as Ln, c as Lt } from "./array-
|
|
3
|
-
import mt from "./index-
|
|
4
|
-
import { _ as vt, s as rt, a as Ge, b as He, c as Rt, d as Kt, r as te, o as Te, e as Ze, f as ut, h as Hn, i as gt, j as pn, k as dt, l as Mt, t as Dt, m as ln, n as yn, p as Xn, q as an, u as In, v as sn, w as cn, x as vn, y as rn, z as un, A as En, D as Wt, B as Nt, C as Ut, E as lt, F as ft, G as oe, H as Tt, I as Zt, J as Yt
|
|
5
|
-
import { u as be, a as Ne, p as qA, s as MA, b as qe, c as GA } from "./index-
|
|
2
|
+
import { m as Sn, a as Jn, b as Ln, c as Lt } from "./array-BmfCVZvi.js";
|
|
3
|
+
import mt from "./index-98Ogvz1v.js";
|
|
4
|
+
import { _ as vt, s as rt, a as Ge, b as He, c as Rt, d as Kt, r as te, o as Te, e as Ze, f as ut, h as Hn, i as gt, j as pn, k as dt, l as Mt, t as Dt, m as ln, n as yn, p as Xn, q as an, u as In, v as sn, w as cn, x as vn, y as rn, z as un, A as En, D as Wt, B as Nt, C as Ut, E as lt, F as ft, G as oe, H as Tt, I as Zt, J as Yt } from "./index-BPu9kWR3.js";
|
|
5
|
+
import { u as be, a as Ne, p as qA, s as MA, b as qe, c as GA, g as it, e as Gt, l as Ft, f as Vt } from "./index-COQpDVsv.js";
|
|
6
6
|
import { useRouter as ot } from "vue-router";
|
|
7
7
|
import { a as Pt, d as Ct, e as It, f as Et, g as Bt, h as zt, t as qt, c as _t, b as $t } from "./index-CAPx0_D4.js";
|
|
8
8
|
import { u as mn, E as Oe, b as Qt, g as Be, c as Al, a as Je, d as el } from "./index-B8HqIYd5.js";
|
|
9
|
-
import { g as Bn, s as nl, _ as
|
|
10
|
-
import { u as Qn, b as Rn, d as gn, g as Me, c as yt, e as dn, o as Xt, f as tl, l as ll, h as fl, i as al } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
11
|
-
import "./index-
|
|
9
|
+
import { g as Bn, s as nl, _ as bn } from "./index-Bnp6YMyE.js";
|
|
10
|
+
import { u as Qn, b as Rn, d as gn, g as Me, c as yt, e as dn, o as Xt, f as tl, l as ll, h as fl, i as ge, j as al, k as Ot, m as sl, n as cl, s as wn, p as vl } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
|
|
11
|
+
import "./index-gfdgTjvQ.js";
|
|
12
12
|
import "./index-DFBXEIIr.js";
|
|
13
|
-
import { c as
|
|
13
|
+
import { c as jt } from "./menuIndex-DYaogp2R.js";
|
|
14
14
|
import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
import { C as
|
|
15
|
+
import { C as rl } from "./index-NaWMtdUV.js";
|
|
16
16
|
import { S as le } from "./index-BHtNKL1L.js";
|
|
17
|
-
import
|
|
17
|
+
import ul from "./threeModel-AsOY6mTs.js";
|
|
18
18
|
import { _ as De } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
19
|
-
import { s as zn } from "./index-
|
|
20
|
-
import { T as kn, u as
|
|
21
|
-
import { s as xn } from "./index-
|
|
22
|
-
import { u as
|
|
23
|
-
import { g as Ht, c as ul, m as gl, l as dl, d as il, v as ol } from "./index-BteE57Nz.js";
|
|
19
|
+
import { s as zn } from "./index-DBh5Z73C.js";
|
|
20
|
+
import { T as kn, u as gl, a as dl } from "./threeViewerHost-Bdzv9iPb.js";
|
|
21
|
+
import { s as xn } from "./index-BLcFvu4u.js";
|
|
22
|
+
import { u as Ht } from "./index-OX4hSXv6.js";
|
|
24
23
|
import { T as at } from "./svgIcon-4u4PW7Is.js";
|
|
25
|
-
import {
|
|
24
|
+
import { m as il, v as ol } from "./index-DIWralYr.js";
|
|
25
|
+
import { f as Pl, a as Cl } from "./animationData-CpK8d_Vm.js";
|
|
26
26
|
be();
|
|
27
27
|
const Il = be(), pt = async (P, j) => {
|
|
28
28
|
var s, c, I, l;
|
|
@@ -235,7 +235,7 @@ function El(P = "menu") {
|
|
|
235
235
|
if (pA.value = Bn(), A) {
|
|
236
236
|
U.value && (c.setActiveTopMenuPath(""), c.setActiveMenuPath(""), c.setAsideMenus([]));
|
|
237
237
|
const t = A;
|
|
238
|
-
jA.value = V(
|
|
238
|
+
jA.value = V(jt(t));
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
241
|
{
|
|
@@ -726,14 +726,14 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
726
726
|
console.error("加载菜单或页面时出错:", uA);
|
|
727
727
|
}
|
|
728
728
|
})(K);
|
|
729
|
-
}, hA = Qn(qA), { selectTitle: bA } = MA(hA), wA = L(!1), JA = L(), gA = L(null), V = L(), m = L(!1), EA =
|
|
729
|
+
}, hA = Qn(qA), { selectTitle: bA } = MA(hA), wA = L(!1), JA = L(), gA = L(null), V = L(), m = L(!1), EA = Ht(qA), { blobUrls: zA } = MA(EA), DA = L(), mA = L(!1), FA = L(!1), _A = L(!1), VA = L([]), D = L(!1), eA = L(null), PA = L([]), dA = L(!1), Y = L(!1), k = L();
|
|
730
730
|
fn("contentRef", eA);
|
|
731
731
|
const $A = Ne(qA), { isEdit: ne, routeToChildPath: ce } = MA($A), de = j, A = be(qA), { asideMenuLoading: t, importLoading: g, activeAsideMenu: e, contentLoading: f, platName: u, activeMenuPath: i } = MA(A), v = P, d = ee(() => e.value.isRouter), h = () => {
|
|
732
732
|
sessionStorage.clear(), window.location.reload();
|
|
733
733
|
}, C = async (K) => {
|
|
734
734
|
var Q, nA, iA, cA, T, oA, X, uA, yA, tA, OA, E, b, vA, J, BA, N, aA;
|
|
735
735
|
if ((K == null ? void 0 : K.type) === "table" && (Q = bA.value) != null && Q.every((S) => (S == null ? void 0 : S.condition) !== "parent")) {
|
|
736
|
-
let S = await
|
|
736
|
+
let S = await it({
|
|
737
737
|
platId: parseInt((nA = o == null ? void 0 : o.value) == null ? void 0 : nA.plat_id),
|
|
738
738
|
pageName: "menu"
|
|
739
739
|
});
|
|
@@ -1036,7 +1036,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1036
1036
|
return (K, Q) => {
|
|
1037
1037
|
const nA = TA("el-dialog"), iA = TA("el-button"), cA = TA("el-header"), T = TA("el-splitter-panel"), oA = TA("el-splitter"), X = TA("el-container"), uA = TA("el-tab-pane"), yA = TA("el-tabs"), tA = TA("el-aside"), OA = TA("el-image"), E = TA("router-view"), b = TA("el-step"), vA = TA("el-steps"), J = TA("el-main"), BA = ct("loading");
|
|
1038
1038
|
return z(), q(ue, null, [
|
|
1039
|
-
je(O(
|
|
1039
|
+
je(O(rl, {
|
|
1040
1040
|
ref_key: "cropperDialogRef",
|
|
1041
1041
|
ref: U,
|
|
1042
1042
|
title: "更改头像",
|
|
@@ -1229,7 +1229,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1229
1229
|
__: [9]
|
|
1230
1230
|
}, 8, ["onClick"])) : CA("", !0),
|
|
1231
1231
|
We(K.$slots, "default", {}, void 0, !0),
|
|
1232
|
-
O(
|
|
1232
|
+
O(bn, null, {
|
|
1233
1233
|
dropTitle: M(() => [
|
|
1234
1234
|
H("div", {
|
|
1235
1235
|
class: "icon-wrapper",
|
|
@@ -1316,7 +1316,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1316
1316
|
]),
|
|
1317
1317
|
_: 1
|
|
1318
1318
|
}),
|
|
1319
|
-
O(
|
|
1319
|
+
O(bn, null, {
|
|
1320
1320
|
dropTitle: M(() => [
|
|
1321
1321
|
O(xn, {
|
|
1322
1322
|
size: 35,
|
|
@@ -1694,7 +1694,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1694
1694
|
style: { height: "700px", width: "1000px" }
|
|
1695
1695
|
}, {
|
|
1696
1696
|
default: M(() => [
|
|
1697
|
-
O(
|
|
1697
|
+
O(ul, {
|
|
1698
1698
|
ref_key: "threeModelRef",
|
|
1699
1699
|
ref: gA
|
|
1700
1700
|
}, null, 512)
|
|
@@ -1921,7 +1921,7 @@ function wt(P = "menu") {
|
|
|
1921
1921
|
if (pA.value = Bn(), A) {
|
|
1922
1922
|
U.value && (c.setActiveTopMenuPath(""), c.setActiveMenuPath(""), c.setAsideMenus([]));
|
|
1923
1923
|
const t = A;
|
|
1924
|
-
jA.value = V(
|
|
1924
|
+
jA.value = V(jt(t));
|
|
1925
1925
|
}
|
|
1926
1926
|
},
|
|
1927
1927
|
{
|
|
@@ -2087,9 +2087,9 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2087
2087
|
}).length
|
|
2088
2088
|
);
|
|
2089
2089
|
ee(() => l.value > 99 ? "99+" : l.value);
|
|
2090
|
-
const r = Rn(qA), { originalPath: w } = MA(r), x = w.value, y = Qn(qA), { selectTitle: n } = MA(y), W = L(!1), p = L(null), R = L(), $ = L(!1), _ =
|
|
2090
|
+
const r = Rn(qA), { originalPath: w } = MA(r), x = w.value, y = Qn(qA), { selectTitle: n } = MA(y), W = L(!1), p = L(null), R = L(), $ = L(!1), _ = Ht(qA), { blobUrls: o } = MA(_), U = L(!1), fA = L(!1), sA = L(!1), jA = L([]), pA = L(!1), hA = L(null), bA = L([]), wA = L(!1);
|
|
2091
2091
|
fn("contentRef", hA);
|
|
2092
|
-
const JA = qe(), { loginUserInfo: gA } = MA(JA), V = Ne(qA), { isEdit: m, routeToChildPath: EA } = MA(V), zA = j, DA = be(qA), { asideMenuLoading: mA, importLoading: FA, activeAsideMenu: _A, contentLoading: VA, platName: D, activeMenuPath: eA } = MA(DA), PA =
|
|
2092
|
+
const JA = qe(), { loginUserInfo: gA } = MA(JA), V = Ne(qA), { isEdit: m, routeToChildPath: EA } = MA(V), zA = j, DA = be(qA), { asideMenuLoading: mA, importLoading: FA, activeAsideMenu: _A, contentLoading: VA, platName: D, activeMenuPath: eA } = MA(DA), PA = gl(qA), { data: dA } = MA(PA), { setData: Y } = dl(), k = ee(() => _A.value.isRouter), $A = () => {
|
|
2093
2093
|
sessionStorage.clear(), window.location.reload();
|
|
2094
2094
|
}, ne = (E) => {
|
|
2095
2095
|
if ((E == null ? void 0 : E.type) === "table") {
|
|
@@ -2675,7 +2675,7 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2675
2675
|
}
|
|
2676
2676
|
}), va = /* @__PURE__ */ Le(ca, [["__scopeId", "data-v-1864bc45"]]), ra = qe(qA), { loginUserInfo: Pe } = MA(ra), ua = be(), ga = async () => {
|
|
2677
2677
|
var j, s, c, I, l, r, w;
|
|
2678
|
-
let P = await
|
|
2678
|
+
let P = await it({
|
|
2679
2679
|
platId: parseInt((j = Pe == null ? void 0 : Pe.value) == null ? void 0 : j.plat_id),
|
|
2680
2680
|
pageName: "menu"
|
|
2681
2681
|
});
|
|
@@ -2687,11 +2687,11 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2687
2687
|
var n;
|
|
2688
2688
|
return (n = y == null ? void 0 : y.object_name) == null ? void 0 : n.replaceAll("**^", "/");
|
|
2689
2689
|
});
|
|
2690
|
-
x = [...new Set(x)], x =
|
|
2690
|
+
x = [...new Set(x)], x = il(x), ua.setRawMenus(x ?? []);
|
|
2691
2691
|
}
|
|
2692
2692
|
}, da = async (P) => {
|
|
2693
2693
|
var j, s, c;
|
|
2694
|
-
await
|
|
2694
|
+
await Gt({
|
|
2695
2695
|
platId: parseInt((j = Pe == null ? void 0 : Pe.value) == null ? void 0 : j.plat_id),
|
|
2696
2696
|
userName: (s = Pe == null ? void 0 : Pe.value) == null ? void 0 : s.user_name,
|
|
2697
2697
|
password: (c = Pe == null ? void 0 : Pe.value) == null ? void 0 : c.password,
|
|
@@ -2707,7 +2707,7 @@ const kt = (P) => {
|
|
|
2707
2707
|
var l, r, w, x, y, n, W, p, R, $, _, o, U, fA, sA, jA, pA, hA, bA, wA, JA, gA;
|
|
2708
2708
|
let I = P;
|
|
2709
2709
|
if (kt(I == null ? void 0 : I[0])) {
|
|
2710
|
-
let V =
|
|
2710
|
+
let V = al(I), m = (w = (r = (l = I == null ? void 0 : I[0]) == null ? void 0 : l.replace("@", kA)) == null ? void 0 : r.split(kA)) == null ? void 0 : w[1];
|
|
2711
2711
|
return m = (x = ge(m, ":")) == null ? void 0 : x[0], (m == null ? void 0 : m[(m == null ? void 0 : m.length) - 1]) === ":" && (m = m == null ? void 0 : m.slice(0, (m == null ? void 0 : m.length) - 1)), m = (n = (y = m == null ? void 0 : m.replace("(", kA)) == null ? void 0 : y.split(kA)) == null ? void 0 : n[1], m = m == null ? void 0 : m.slice(0, (m == null ? void 0 : m.length) - 1), m = (p = (W = ge(m, ",")) == null ? void 0 : W.map((EA) => (EA = "@" + EA, EA))) == null ? void 0 : p.join(""), {
|
|
2712
2712
|
key: "Form",
|
|
2713
2713
|
name: V == null ? void 0 : V.groupName,
|
|
@@ -2716,7 +2716,7 @@ const kt = (P) => {
|
|
|
2716
2716
|
filter: "(" + m + ")"
|
|
2717
2717
|
};
|
|
2718
2718
|
} else {
|
|
2719
|
-
let V =
|
|
2719
|
+
let V = Ot(I, c), m = (_ = ($ = (R = V == null ? void 0 : V.tableFilter) == null ? void 0 : R.replace("(", kA)) == null ? void 0 : $.split(kA)) == null ? void 0 : _[0];
|
|
2720
2720
|
return {
|
|
2721
2721
|
key: "Table",
|
|
2722
2722
|
name: V == null ? void 0 : V.groupName,
|
|
@@ -2731,7 +2731,7 @@ const kt = (P) => {
|
|
|
2731
2731
|
var c, I, l, r, w, x, y, n, W, p, R, $, _, o, U, fA, sA, jA, pA, hA, bA, wA, JA, gA, V, m, EA, zA, DA, mA, FA, _A, VA;
|
|
2732
2732
|
let s = (I = (c = ge(P, "=")) == null ? void 0 : c.filter((D) => D !== "=")) == null ? void 0 : I.map((D) => ((D == null ? void 0 : D[(D == null ? void 0 : D.length) - 1]) === "=" && (D = D == null ? void 0 : D.slice(0, (D == null ? void 0 : D.length) - 1)), D));
|
|
2733
2733
|
if (kt(s == null ? void 0 : s[1])) {
|
|
2734
|
-
let D =
|
|
2734
|
+
let D = sl(s), eA = (w = (r = (l = D == null ? void 0 : D.filter) == null ? void 0 : l.replace("@", kA)) == null ? void 0 : r.split(kA)) == null ? void 0 : w[0], PA = (n = (y = (x = D == null ? void 0 : D.filter) == null ? void 0 : x.replace("(", kA)) == null ? void 0 : y.split(kA)) == null ? void 0 : n[1];
|
|
2735
2735
|
PA = PA == null ? void 0 : PA.slice(0, (PA == null ? void 0 : PA.length) - 1), PA = (p = (W = ge(PA, ",")) == null ? void 0 : W.map((Y) => (Y = "@" + Y, Y))) == null ? void 0 : p.join("");
|
|
2736
2736
|
let dA = eA + "(" + PA + ")";
|
|
2737
2737
|
return {
|
|
@@ -2743,7 +2743,7 @@ const kt = (P) => {
|
|
|
2743
2743
|
value: []
|
|
2744
2744
|
};
|
|
2745
2745
|
} else {
|
|
2746
|
-
let D =
|
|
2746
|
+
let D = Ot(s, j, s == null ? void 0 : s[1]), eA = (JA = (wA = (bA = D == null ? void 0 : D.tableFilter) == null ? void 0 : bA.replace("(", kA)) == null ? void 0 : wA.split(kA)) == null ? void 0 : JA[0];
|
|
2747
2747
|
return {
|
|
2748
2748
|
key: "Table",
|
|
2749
2749
|
name: D == null ? void 0 : D.groupName,
|
|
@@ -2819,7 +2819,7 @@ const xt = (P, j = []) => {
|
|
|
2819
2819
|
let Ae = "$R";
|
|
2820
2820
|
const ht = (P, j, s, c) => {
|
|
2821
2821
|
var l, r, w, x, y, n, W, p, R, $;
|
|
2822
|
-
let I = ((r = (l = j.get(P == null ? void 0 : P.quotePage)) == null ? void 0 : l.contents) == null ? void 0 : r.find((_) =>
|
|
2822
|
+
let I = ((r = (l = j.get(P == null ? void 0 : P.quotePage)) == null ? void 0 : l.contents) == null ? void 0 : r.find((_) => wn((c == null ? void 0 : c.quoteGroup) ?? [], _ == null ? void 0 : _.name))) ?? ((w = j.get(P == null ? void 0 : P.quotePage)) == null ? void 0 : w.contents) ?? [];
|
|
2823
2823
|
if (!Array.isArray(I) && ((x = I == null ? void 0 : I.tableColumns) == null ? void 0 : x.length) > 0) {
|
|
2824
2824
|
let _ = GA(I);
|
|
2825
2825
|
return !(_ != null && _.filter) || (_ == null ? void 0 : _.filter) === "" ? _.filter = P == null ? void 0 : P.filter : _.filter = ((n = _.filter) == null ? void 0 : n.slice(0, ((y = _.filter) == null ? void 0 : y.length) - 1)) + "," + ((R = (p = (W = P == null ? void 0 : P.filter) == null ? void 0 : W.replace("(", Ae)) == null ? void 0 : p.split(Ae)) == null ? void 0 : R[1]), _.name = [...s, ...I == null ? void 0 : I.name], [_];
|
|
@@ -2877,7 +2877,7 @@ const ht = (P, j, s, c) => {
|
|
|
2877
2877
|
var W, p, R, $, _, o, U, fA, sA, jA, pA, hA, bA, wA, JA, gA, V, m, EA, zA, DA, mA, FA, _A, VA, D, eA, PA;
|
|
2878
2878
|
if ((n == null ? void 0 : n.filter) !== "" && (n != null && n.filter) && (n != null && n.quotePage)) {
|
|
2879
2879
|
if (((W = n == null ? void 0 : n.tableColumns) == null ? void 0 : W.length) === 0) {
|
|
2880
|
-
let dA = ((R = (p = l.get(n == null ? void 0 : n.quotePage)) == null ? void 0 : p.contents) == null ? void 0 : R.find((Y) =>
|
|
2880
|
+
let dA = ((R = (p = l.get(n == null ? void 0 : n.quotePage)) == null ? void 0 : p.contents) == null ? void 0 : R.find((Y) => wn(n == null ? void 0 : n.quoteGroup, Y == null ? void 0 : Y.name))) ?? (($ = l.get(n == null ? void 0 : n.quotePage)) == null ? void 0 : $.contents) ?? [];
|
|
2881
2881
|
if (!Array.isArray(dA) && ((_ = dA == null ? void 0 : dA.tableColumns) == null ? void 0 : _.length) > 0) {
|
|
2882
2882
|
n.tableColumns = dA == null ? void 0 : dA.tableColumns;
|
|
2883
2883
|
let Y = (fA = (U = (o = n == null ? void 0 : n.filter) == null ? void 0 : o.replace("(", Ae)) == null ? void 0 : U.split(Ae)) == null ? void 0 : fA[1];
|
|
@@ -2902,7 +2902,7 @@ const ht = (P, j, s, c) => {
|
|
|
2902
2902
|
} else if ((n == null ? void 0 : n.filter) !== "" && (n != null && n.filter) && ((pA = n == null ? void 0 : n.value) == null ? void 0 : pA.length) === 0) {
|
|
2903
2903
|
let dA = n == null ? void 0 : n.formPage;
|
|
2904
2904
|
(dA == null ? void 0 : dA[(dA == null ? void 0 : dA.length) - 1]) === "/" && (dA = dA == null ? void 0 : dA.slice(0, (dA == null ? void 0 : dA.length) - 1));
|
|
2905
|
-
let Y = (bA = (hA = l.get(dA)) == null ? void 0 : hA.contents) == null ? void 0 : bA.find((k) =>
|
|
2905
|
+
let Y = (bA = (hA = l.get(dA)) == null ? void 0 : hA.contents) == null ? void 0 : bA.find((k) => wn(n == null ? void 0 : n.formGroup, k == null ? void 0 : k.name));
|
|
2906
2906
|
!Array.isArray(Y) && (((wA = Y == null ? void 0 : Y.value) == null ? void 0 : wA.length) > 0 || ((JA = Y == null ? void 0 : Y.tableColumns) == null ? void 0 : JA.length) > 0) && (((gA = Y == null ? void 0 : Y.value) == null ? void 0 : gA.length) > 0 ? n.value = Y == null ? void 0 : Y.value : (n.value = (m = (V = GA(Y)) == null ? void 0 : V.tableColumns) == null ? void 0 : m.map((k) => {
|
|
2907
2907
|
var $A;
|
|
2908
2908
|
return k.disabled = !0, k.width = ($A = Y == null ? void 0 : Y.tableColumns) == null ? void 0 : $A.length, k;
|
|
@@ -2929,7 +2929,7 @@ const ht = (P, j, s, c) => {
|
|
|
2929
2929
|
};
|
|
2930
2930
|
}, za = (P) => {
|
|
2931
2931
|
var I, l;
|
|
2932
|
-
let j =
|
|
2932
|
+
let j = cl(P, [",", ":"]);
|
|
2933
2933
|
j = (I = j == null ? void 0 : j.filter((r) => r !== "")) == null ? void 0 : I.map((r) => r.replaceAll(",", ","));
|
|
2934
2934
|
let s = (l = j == null ? void 0 : j.filter((r) => !r.includes("/*") && !r.includes("*/"))) == null ? void 0 : l.map((r) => Ba(r));
|
|
2935
2935
|
return Ea(s);
|
|
@@ -3171,7 +3171,7 @@ const ht = (P, j, s, c) => {
|
|
|
3171
3171
|
YA(
|
|
3172
3172
|
() => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
|
|
3173
3173
|
async () => {
|
|
3174
|
-
await
|
|
3174
|
+
await vl(), I.value = s.content, w.value = s == null ? void 0 : s.jsonContents;
|
|
3175
3175
|
},
|
|
3176
3176
|
{ deep: !0, immediate: !0 }
|
|
3177
3177
|
), YA(
|
|
@@ -3225,7 +3225,7 @@ const ht = (P, j, s, c) => {
|
|
|
3225
3225
|
}, eA = async (e) => {
|
|
3226
3226
|
var f, u, i, v, d, h, C;
|
|
3227
3227
|
try {
|
|
3228
|
-
const HA = await
|
|
3228
|
+
const HA = await Ft({
|
|
3229
3229
|
platId: parseInt(e)
|
|
3230
3230
|
});
|
|
3231
3231
|
if (((f = HA == null ? void 0 : HA.data) == null ? void 0 : f.code) === 200) {
|
|
@@ -3314,7 +3314,7 @@ const ht = (P, j, s, c) => {
|
|
|
3314
3314
|
const g = async () => {
|
|
3315
3315
|
var f, u;
|
|
3316
3316
|
n.setImportLoading(!0);
|
|
3317
|
-
const e = await
|
|
3317
|
+
const e = await Vt({
|
|
3318
3318
|
platId: parseInt((f = sA == null ? void 0 : sA.value) == null ? void 0 : f.plat_id)
|
|
3319
3319
|
});
|
|
3320
3320
|
((u = e == null ? void 0 : e.data) == null ? void 0 : u.code) === 200 && (n.setRawMenus([]), y.setRefreshCurStructure(!0)), n.setImportLoading(!1);
|
|
@@ -3350,7 +3350,7 @@ const ht = (P, j, s, c) => {
|
|
|
3350
3350
|
urdfContent: U.value
|
|
3351
3351
|
}, {
|
|
3352
3352
|
default: M(() => [
|
|
3353
|
-
O(
|
|
3353
|
+
O(bn, null, {
|
|
3354
3354
|
dropTitle: M(() => {
|
|
3355
3355
|
var v;
|
|
3356
3356
|
return [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_={__name:"index",props:{optionContents:{type:Object,default:()=>{}}},setup(a){const s=a;let t=null,n=null;const r=e.ref({}),o=e.ref(null),u=()=>{o.value&&(n=new ResizeObserver(()=>{i()}),n.observe(o.value))};e.onMounted(()=>{r.value=s.optionContents,c(),window.addEventListener("resize",i),u()}),e.watch(()=>s.optionContents,()=>{r.value=s.optionContents,c()}),e.onUnmounted(()=>{n&&n.disconnect(),window.removeEventListener("resize",i)});const i=()=>{t.resize()},c=()=>{t&&t.dispose(),t=d.init(o.value);const l=r.value;t.setOption(l),t.resize()};return(l,f)=>(e.openBlock(),e.createElementBlock("div",{id:"chartModelId",class:"chart-model-class",ref_key:"chartModelRef",ref:o},null,512))}},v=p._export_sfc(_,[["__scopeId","data-v-69d6e63f"]]);exports.ssChart=v;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as v, computed as S, watch as c, onMounted as I, onUnmounted as B, resolveComponent as D, createElementBlock as K, openBlock as L, createVNode as j } from "vue";
|
|
2
|
-
import { b as x, p as z, s as _ } from "./index-
|
|
2
|
+
import { b as x, p as z, s as _ } from "./index-COQpDVsv.js";
|
|
3
3
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const E = /* @__PURE__ */ v({
|
|
5
5
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-DaIE9uY1.cjs"),_=require("./index-CBqGrYej.cjs"),m=require("./index-D_Yhv_HV.cjs"),h=require("./index-BPlHuTxE.cjs"),l=require("./index-DRTxe12U.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BJPBBWWH.cjs"),_=require("./index-c4SVf22I.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs");const h=require("./index-BPlHuTxE.cjs"),f=require("./index-DRTxe12U.cjs");require("./index-C5pQXH0_.cjs");const y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V={class:"personal-wrapper"},x={class:"personal-box left"},N={class:"base-avatar"},S={class:"center-avatar"},D={class:"base-info"},E={class:"base-signature"},k={class:"personal-box right"},B=e.defineComponent({__name:"index",setup(T){const t=e.reactive({...l.State}),b=f.useLoginState(),{loginUserInfo:n}=f.storeToRefs(b);return e.onMounted(()=>{var s;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((s=n==null?void 0:n.value)==null?void 0:s.id),l.tabKey.value++}),(s,o)=>{var c,d,u,g,p,m,v;const r=e.resolveComponent("svg-icon"),i=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",x,[e.createElementVNode("div",N,[e.createElementVNode("div",S,[e.withDirectives(e.createVNode(_.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:o[0]||(o[0]=a=>t.submitImageAsync("avatarUrl",a))},null,8,["disabled","userInfo"]),[[i,t.avatarLoading]])])]),e.createElementVNode("div",D,[e.createElementVNode("div",null,[e.createVNode(r,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(_.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=a=>t.submitImageAsync("signature",a))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[i,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(),e.createBlock(h.ssTab,{key:e.unref(l.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[i,t.loading]])])}}}),C=y._export_sfc(B,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=C;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as m, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
|
|
2
|
-
import { S as x } from "./index-
|
|
3
|
-
import { s as B } from "./index-
|
|
4
|
-
import { s as F } from "./index-
|
|
5
|
-
import { c as y } from "./index-
|
|
6
|
-
import { u as S, p as I, s as N } from "./index-
|
|
2
|
+
import { S as x } from "./index-gfdgTjvQ.js";
|
|
3
|
+
import { s as B } from "./index-OX4hSXv6.js";
|
|
4
|
+
import { s as F } from "./index-DBh5Z73C.js";
|
|
5
|
+
import { c as y } from "./index-Bnp6YMyE.js";
|
|
6
|
+
import { u as S, p as I, s as N } from "./index-COQpDVsv.js";
|
|
7
7
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const E = { class: "menu-module" }, M = {
|
|
9
9
|
class: "table-wrap",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=require("./index-C8fMwErX.cjs"),T=require("./index-C5pQXH0_.cjs"),B=require("vue-router"),I=require("./index-C8FzkPpO.cjs"),A={},R={class:"left-wrap"},K={class:"left-bg"};function M(v,b){return e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("div",K,[e.renderSlot(v.$slots,"img",{},void 0,!0)])])}const D=S._export_sfc(A,[["render",M],["__scopeId","data-v-9b7ee6c9"]]),E={ACCOUNT:"account",FACE:"face"},O={class:"right-wrap"},U={class:"tab-content"},q={class:"tab-tips"},P={class:"tab-content"},j={class:"tab-tips"},H=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(v,{emit:b}){const t=e.ref(E.ACCOUNT),c=b,y=()=>{c("clickLogin",t.value)},i=n=>{c("handleTabChange",n)};return(n,l)=>{const s=e.resolveComponent("el-button"),d=e.resolveComponent("el-tab-pane"),m=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",O,[e.createVNode(m,{modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=g=>t.value=g),class:"right-tabs",onTabChange:i},{default:e.withCtx(()=>[e.createVNode(d,{name:e.unref(E).ACCOUNT},{label:e.withCtx(()=>[e.renderSlot(n.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",U,[e.renderSlot(n.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:y},[e.createVNode(s,{loading:v.loading},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",q,[e.renderSlot(n.$slots,"tabTips1",{},void 0,!0)])]),_:3},8,["name"]),e.createVNode(d,{name:e.unref(E).FACE},{label:e.withCtx(()=>[e.renderSlot(n.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",P,[e.renderSlot(n.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",j,[e.renderSlot(n.$slots,"tabTips2",{},void 0,!0)])]),_:3},8,["name"])]),_:3},8,["modelValue"])])}}}),W=S._export_sfc(H,[["__scopeId","data-v-8b1962f0"]]),z={class:"account-wrap"},G=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(v,{emit:b}){const t=v,c=e.reactive({account:"",password:""}),y=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),i=e.ref(null),n=b;return e.watch(()=>t.isClickLogin,l=>{var s;l&&(t==null?void 0:t.activeTabName)==="account"&&((s=i.value)==null||s.validate(d=>{var m;for(let g in c)c.hasOwnProperty(g)&&(c[g]=(m=c[g])==null?void 0:m.trim());n("handleLoginFormChange",d,d?c:null)}))},{immediate:!0}),e.watch(()=>t.activeTabName,l=>{var s;l==="account"&&((s=i.value)==null||s.resetFields())}),(l,s)=>{const d=e.resolveComponent("svg-icon"),m=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(C,{model:c,rules:y,ref_key:"formRef",ref:i},{default:e.withCtx(()=>[e.createVNode(g,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(m,{class:"account-input",modelValue:c.account,"onUpdate:modelValue":s[0]||(s[0]=_=>c.account=_),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(d,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(m,{class:"account-input",modelValue:c.password,"onUpdate:modelValue":s[1]||(s[1]=_=>c.password=_),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(d,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),J=S._export_sfc(G,[["__scopeId","data-v-48037c0f"]]);function Q(v){return T.service({url:"http://139.196.154.85:20015/api/face/face-verify",method:"post",data:v})}const X={class:"account-wrap"},Y={class:"video-wrap"},Z=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(v,{emit:b}){const t=v,c=b,y=V.useLoginState(V.pinia),i=e.ref(null),n=e.ref(null);let l=!1,s=null;const d=async(o,u)=>{const{privateKey:w}=await y.getModelSecretAsync();let a=o;return u!=="superAdmin"&&(a=V.decryptData(o,w)),a},m=async o=>{if(!o)return;const u=new FormData;u.set("file",o),t.systemKey&&u.set("systemKey",t.systemKey),console.log("Face Recognition",t.systemKey);const w=await Q(u),{data:a}=w||{},{account:f,password:p,layer:r}=(a==null?void 0:a.data)||{},h=a==null?void 0:a.msg;if(!f){T.ElMessage.warning(h||"识别失败,请重新识别!");return}const N=await d(p,r);c("handleLoginFormChange",!0,{account:f,password:N})},g=()=>{if(!n.value||!i.value)return;const o=n.value,u=o.getContext("2d"),w=i.value;o.width=200,o.height=200;const a=w.videoWidth||640,f=w.videoHeight||480,p=Math.min(200/a,200/f),r=a*p,h=f*p,N=(200-r)/2,k=(200-h)/2;u==null||u.drawImage(w,0,0,a,f,N,k,r,h),o.toBlob(L=>{if(L){const $=new File([L],"face.png",{type:"image/png"});m($)}},"image/png")},C=async()=>{if(!i.value||l)return;const o=i.value;try{if(s=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1}),o){const u=o;u.srcObject=s,l=!0}}catch{T.ElMessage.warning("摄像头启动失败")}};function _(o){if(o&&(o.getTracks().forEach(u=>u.stop()),i.value)){const u=i.value;u.srcObject=null}}const x=()=>{_(s),l=!1};return e.watch(()=>t.activeTabName,o=>{if(o!==E.FACE){x();return}if(o===E.FACE&&!l){C();return}}),e.onBeforeUnmount(()=>{x()}),(o,u)=>(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",Y,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:i,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("button",{class:"face-screenshot",onClick:g},"人脸识别"),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:n,id:"canvas"},null,512)]))}}),ee=S._export_sfc(Z,[["__scopeId","data-v-0ae97a87"]]);function te(){const v={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return T.service({url:"/api/sysAuth/login",method:"post",data:v})}const F=V.useLoginState(V.pinia),ae=async v=>{var c,y,i,n,l,s,d,m,g,C,_,x,o;let b=Object.values(v),t=await I.loginPlatFormDataApi({userName:(c=b==null?void 0:b[0])==null?void 0:c.trim(),password:(y=b==null?void 0:b[1])==null?void 0:y.trim()});return((i=t==null?void 0:t.data)==null?void 0:i.status)===200&&((l=(n=t==null?void 0:t.data)==null?void 0:n.result)==null?void 0:l.length)>0?(sessionStorage.setItem("systemKey",(m=(d=(s=t==null?void 0:t.data)==null?void 0:s.result)==null?void 0:d[0])==null?void 0:m.plat_id),F.setLoginUserInfo((C=(g=t==null?void 0:t.data)==null?void 0:g.result)==null?void 0:C[0]),F.setSystemKey((o=(x=(_=t==null?void 0:t.data)==null?void 0:_.result)==null?void 0:x[0])==null?void 0:o.plat_id),!0):(T.ElMessage.error("输入的密码错误,请重新输入"),!1)},oe={class:"login-wrap"},ne={class:"login-body"},se={class:"login-body-item left"},ce={class:"title"},ie={class:"login-body-item right"},le=e.defineComponent({__name:"index",props:{oldSystemKey:{}},emits:["change"],setup(v,{emit:b}){const t=B.useRouter(),c=V.useLoginState(V.pinia),{systemKey:y,systemInfo:i,loginUserInfo:n}=V.storeToRefs(c),l=e.ref({sysCTitle:"",sysETitle:"",loginTitle:"账户密码登录",tabs:[{name:"密码登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"人脸识别",btnLabel:"人脸识别",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"刷卡登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"}]}),s=e.ref("account"),d=e.ref(!1),m=e.ref(!1),g=()=>{d.value=!0},C=(a,f)=>{d.value=!1,a&&o(f)},_=async()=>{var a,f,p;try{const r=await te();return((a=r==null?void 0:r.data)==null?void 0:a.code)===200?(sessionStorage.setItem("loginToken",(p=(f=r.data)==null?void 0:f.result)==null?void 0:p.accessToken),!0):!1}catch(r){T.ElMessage.error(r)}},x=async()=>{var a,f,p;try{const r=await T.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});return((a=r==null?void 0:r.data)==null?void 0:a.code)===200&&sessionStorage.setItem("magicToken",(p=(f=r.data)==null?void 0:f.result)==null?void 0:p.accessToken),!0}catch{return!0}};e.onMounted(async()=>{await _()});const o=async a=>{var h,N,k,L;m.value=!0;let f=[ae(a),_(),x()];const p=await Promise.all(f);(p==null?void 0:p.every($=>$))?(await I.verifyStructureDataToStore(),t.push("/"),c.setLogRecordAsync({type:"登录",data:{account:((h=n.value)==null?void 0:h.account)??((N=n.value)==null?void 0:N.账号),userName:((k=n.value)==null?void 0:k.姓名)||((L=n.value)==null?void 0:L.userName)||"未知"}},"/login","login")):m.value=!1},u=a=>{s.value=a,d.value=!1,m.value=!1},w=a=>/^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);return(a,f)=>(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ne,[e.createElementVNode("div",se,[e.createVNode(D,{class:"login-left-bg"},{img:e.withCtx(()=>{var p,r,h,N;return[e.createElementVNode("div",ce,[e.createElementVNode("div",null,e.toDisplayString(((p=e.unref(i))==null?void 0:p.EnglishName)||"INSOFWORKS"),1),e.createElementVNode("div",null,e.toDisplayString((r=e.unref(i))!=null&&r.chineseName&&w((h=e.unref(i))==null?void 0:h.chineseName)?(N=e.unref(i))==null?void 0:N.chineseName:"工业软件集成开发平台"),1)]),f[0]||(f[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",ie,[e.createVNode(W,{loading:m.value,onClickLogin:g,onHandleTabChange:u},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(J,{activeTabName:s.value,isClickLogin:d.value,onHandleLoginFormChange:C},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(ee,{systemKey:a.oldSystemKey,activeTabName:s.value,isClickLogin:d.value,onHandleLoginFormChange:C},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),re=S._export_sfc(le,[["__scopeId","data-v-8eae23a7"]]);exports.default=re;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=require("./index-DRTxe12U.cjs"),T=require("./index-C5pQXH0_.cjs"),I=require("vue-router"),B=require("./index-CpbBe_mV.cjs"),A={},R={class:"left-wrap"},K={class:"left-bg"};function M(v,b){return e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("div",K,[e.renderSlot(v.$slots,"img",{},void 0,!0)])])}const D=S._export_sfc(A,[["render",M],["__scopeId","data-v-9b7ee6c9"]]),E={ACCOUNT:"account",FACE:"face"},O={class:"right-wrap"},U={class:"tab-content"},q={class:"tab-tips"},P={class:"tab-content"},j={class:"tab-tips"},H=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(v,{emit:b}){const t=e.ref(E.ACCOUNT),c=b,y=()=>{c("clickLogin",t.value)},i=n=>{c("handleTabChange",n)};return(n,l)=>{const s=e.resolveComponent("el-button"),d=e.resolveComponent("el-tab-pane"),m=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",O,[e.createVNode(m,{modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=g=>t.value=g),class:"right-tabs",onTabChange:i},{default:e.withCtx(()=>[e.createVNode(d,{name:e.unref(E).ACCOUNT},{label:e.withCtx(()=>[e.renderSlot(n.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",U,[e.renderSlot(n.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:y},[e.createVNode(s,{loading:v.loading},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",q,[e.renderSlot(n.$slots,"tabTips1",{},void 0,!0)])]),_:3},8,["name"]),e.createVNode(d,{name:e.unref(E).FACE},{label:e.withCtx(()=>[e.renderSlot(n.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",P,[e.renderSlot(n.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",j,[e.renderSlot(n.$slots,"tabTips2",{},void 0,!0)])]),_:3},8,["name"])]),_:3},8,["modelValue"])])}}}),W=S._export_sfc(H,[["__scopeId","data-v-8b1962f0"]]),z={class:"account-wrap"},G=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(v,{emit:b}){const t=v,c=e.reactive({account:"",password:""}),y=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),i=e.ref(null),n=b;return e.watch(()=>t.isClickLogin,l=>{var s;l&&(t==null?void 0:t.activeTabName)==="account"&&((s=i.value)==null||s.validate(d=>{var m;for(let g in c)c.hasOwnProperty(g)&&(c[g]=(m=c[g])==null?void 0:m.trim());n("handleLoginFormChange",d,d?c:null)}))},{immediate:!0}),e.watch(()=>t.activeTabName,l=>{var s;l==="account"&&((s=i.value)==null||s.resetFields())}),(l,s)=>{const d=e.resolveComponent("svg-icon"),m=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(C,{model:c,rules:y,ref_key:"formRef",ref:i},{default:e.withCtx(()=>[e.createVNode(g,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(m,{class:"account-input",modelValue:c.account,"onUpdate:modelValue":s[0]||(s[0]=_=>c.account=_),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(d,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(m,{class:"account-input",modelValue:c.password,"onUpdate:modelValue":s[1]||(s[1]=_=>c.password=_),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(d,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),J=S._export_sfc(G,[["__scopeId","data-v-48037c0f"]]);function Q(v){return T.service({url:"http://139.196.154.85:20015/api/face/face-verify",method:"post",data:v})}const X={class:"account-wrap"},Y={class:"video-wrap"},Z=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(v,{emit:b}){const t=v,c=b,y=V.useLoginState(V.pinia),i=e.ref(null),n=e.ref(null);let l=!1,s=null;const d=async(o,u)=>{const{privateKey:w}=await y.getModelSecretAsync();let a=o;return u!=="superAdmin"&&(a=V.decryptData(o,w)),a},m=async o=>{if(!o)return;const u=new FormData;u.set("file",o),t.systemKey&&u.set("systemKey",t.systemKey),console.log("Face Recognition",t.systemKey);const w=await Q(u),{data:a}=w||{},{account:f,password:p,layer:r}=(a==null?void 0:a.data)||{},h=a==null?void 0:a.msg;if(!f){T.ElMessage.warning(h||"识别失败,请重新识别!");return}const N=await d(p,r);c("handleLoginFormChange",!0,{account:f,password:N})},g=()=>{if(!n.value||!i.value)return;const o=n.value,u=o.getContext("2d"),w=i.value;o.width=200,o.height=200;const a=w.videoWidth||640,f=w.videoHeight||480,p=Math.min(200/a,200/f),r=a*p,h=f*p,N=(200-r)/2,k=(200-h)/2;u==null||u.drawImage(w,0,0,a,f,N,k,r,h),o.toBlob(L=>{if(L){const $=new File([L],"face.png",{type:"image/png"});m($)}},"image/png")},C=async()=>{if(!i.value||l)return;const o=i.value;try{if(s=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1}),o){const u=o;u.srcObject=s,l=!0}}catch{T.ElMessage.warning("摄像头启动失败")}};function _(o){if(o&&(o.getTracks().forEach(u=>u.stop()),i.value)){const u=i.value;u.srcObject=null}}const x=()=>{_(s),l=!1};return e.watch(()=>t.activeTabName,o=>{if(o!==E.FACE){x();return}if(o===E.FACE&&!l){C();return}}),e.onBeforeUnmount(()=>{x()}),(o,u)=>(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",Y,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:i,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("button",{class:"face-screenshot",onClick:g},"人脸识别"),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:n,id:"canvas"},null,512)]))}}),ee=S._export_sfc(Z,[["__scopeId","data-v-0ae97a87"]]);function te(){const v={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return T.service({url:"/api/sysAuth/login",method:"post",data:v})}const F=V.useLoginState(V.pinia),ae=async v=>{var c,y,i,n,l,s,d,m,g,C,_,x,o;let b=Object.values(v),t=await V.loginPlatFormDataApi({userName:(c=b==null?void 0:b[0])==null?void 0:c.trim(),password:(y=b==null?void 0:b[1])==null?void 0:y.trim()});return((i=t==null?void 0:t.data)==null?void 0:i.status)===200&&((l=(n=t==null?void 0:t.data)==null?void 0:n.result)==null?void 0:l.length)>0?(sessionStorage.setItem("systemKey",(m=(d=(s=t==null?void 0:t.data)==null?void 0:s.result)==null?void 0:d[0])==null?void 0:m.plat_id),F.setLoginUserInfo((C=(g=t==null?void 0:t.data)==null?void 0:g.result)==null?void 0:C[0]),F.setSystemKey((o=(x=(_=t==null?void 0:t.data)==null?void 0:_.result)==null?void 0:x[0])==null?void 0:o.plat_id),!0):(T.ElMessage.error("输入的密码错误,请重新输入"),!1)},oe={class:"login-wrap"},ne={class:"login-body"},se={class:"login-body-item left"},ce={class:"title"},ie={class:"login-body-item right"},le=e.defineComponent({__name:"index",props:{oldSystemKey:{}},emits:["change"],setup(v,{emit:b}){const t=I.useRouter(),c=V.useLoginState(V.pinia),{systemKey:y,systemInfo:i,loginUserInfo:n}=V.storeToRefs(c),l=e.ref({sysCTitle:"",sysETitle:"",loginTitle:"账户密码登录",tabs:[{name:"密码登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"人脸识别",btnLabel:"人脸识别",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"刷卡登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"}]}),s=e.ref("account"),d=e.ref(!1),m=e.ref(!1),g=()=>{d.value=!0},C=(a,f)=>{d.value=!1,a&&o(f)},_=async()=>{var a,f,p;try{const r=await te();return((a=r==null?void 0:r.data)==null?void 0:a.code)===200?(sessionStorage.setItem("loginToken",(p=(f=r.data)==null?void 0:f.result)==null?void 0:p.accessToken),!0):!1}catch(r){T.ElMessage.error(r)}},x=async()=>{var a,f,p;try{const r=await T.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});return((a=r==null?void 0:r.data)==null?void 0:a.code)===200&&sessionStorage.setItem("magicToken",(p=(f=r.data)==null?void 0:f.result)==null?void 0:p.accessToken),!0}catch{return!0}};e.onMounted(async()=>{await _()});const o=async a=>{var h,N,k,L;m.value=!0;let f=[ae(a),_(),x()];const p=await Promise.all(f);(p==null?void 0:p.every($=>$))?(await B.verifyStructureDataToStore(),t.push("/"),c.setLogRecordAsync({type:"登录",data:{account:((h=n.value)==null?void 0:h.account)??((N=n.value)==null?void 0:N.账号),userName:((k=n.value)==null?void 0:k.姓名)||((L=n.value)==null?void 0:L.userName)||"未知"}},"/login","login")):m.value=!1},u=a=>{s.value=a,d.value=!1,m.value=!1},w=a=>/^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);return(a,f)=>(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ne,[e.createElementVNode("div",se,[e.createVNode(D,{class:"login-left-bg"},{img:e.withCtx(()=>{var p,r,h,N;return[e.createElementVNode("div",ce,[e.createElementVNode("div",null,e.toDisplayString(((p=e.unref(i))==null?void 0:p.EnglishName)||"INSOFWORKS"),1),e.createElementVNode("div",null,e.toDisplayString((r=e.unref(i))!=null&&r.chineseName&&w((h=e.unref(i))==null?void 0:h.chineseName)?(N=e.unref(i))==null?void 0:N.chineseName:"工业软件集成开发平台"),1)]),f[0]||(f[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",ie,[e.createVNode(W,{loading:m.value,onClickLogin:g,onHandleTabChange:u},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(J,{activeTabName:s.value,isClickLogin:d.value,onHandleLoginFormChange:C},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(ee,{systemKey:a.oldSystemKey,activeTabName:s.value,isClickLogin:d.value,onHandleLoginFormChange:C},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),re=S._export_sfc(le,[["__scopeId","data-v-8eae23a7"]]);exports.default=re;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const f=require("./index-DRTxe12U.cjs"),j=require("vue"),E=t=>{var u,o;if(Array.isArray(Object.keys(t))&&((u=Object.keys(t))==null?void 0:u.length)>0){let a=[];return(o=Object.entries(t))==null||o.forEach(([l,r])=>{var i,c;let s=[];if(s.push(l),((i=Object.keys(r))==null?void 0:i.length)>0){let e=[];(c=E(r))==null||c.forEach(n=>{e.push(n)}),e==null||e.forEach(n=>{s.push(n)})}a.push(s)}),a}},A=(t,u)=>{var a;let o=u;return Array.isArray(Object.keys(t))&&((a=Object.entries(t))==null||a.forEach(([l,r])=>{let s=[l];if(typeof r=="object"&&r!==null){let i=E(r);i==null||i.forEach(c=>{s.push(c)})}o.push(s)})),o},b=t=>{const u={};return t.forEach(a=>{const l=a.split("/");let r=u;l.forEach(s=>{r[s]||(r[s]={}),r=r[s]})}),A(u,[])},y=j.ref(!1),m=j.ref(!1),S=f.useLoginState(f.pinia),{loginUserInfo:h}=f.storeToRefs(S),g=f.useMenuState(),_=async()=>{var u,o,a,l,r,s,i;let t=await f.getPageDataApi({platId:parseInt((u=h==null?void 0:h.value)==null?void 0:u.plat_id),pageName:"menu"});if(((a=(o=t==null?void 0:t.data)==null?void 0:o.result)==null?void 0:a.length)>0){let c=(i=(s=(r=(l=t==null?void 0:t.data)==null?void 0:l.result)==null?void 0:r.filter(e=>{var n,p;return((p=e==null?void 0:e.object_name)==null?void 0:p[((n=e==null?void 0:e.object_name)==null?void 0:n.length)-1])!=="/"&&(e==null?void 0:e.is_show)}))==null?void 0:s.sort((e,n)=>(e==null?void 0:e.object_id)-(n==null?void 0:n.object_id)))==null?void 0:i.map(e=>{var n;return(n=e==null?void 0:e.object_name)==null?void 0:n.replaceAll("**^","/")});c=[...new Set(c)],c=b(c),g.setRawMenus(c??[]),y.value=!0,m.value=!0}return{menuExist:y.value,structureExist:m.value}};exports.menuArray=b;exports.verifyStructureDataToStore=_;
|