ss-component-new 1.3.301 → 1.3.302

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.
Files changed (111) hide show
  1. package/dist/{MTLLoader-RDE-ZA7R.js → MTLLoader-BrEAUYmm.js} +1 -1
  2. package/dist/{MTLLoader-CLDHKsuZ.cjs → MTLLoader-DqRiQxtb.cjs} +1 -1
  3. package/dist/{OrbitControls-BdotT7Cg.cjs → OrbitControls-DjWgA8Ek.cjs} +1 -1
  4. package/dist/{OrbitControls-BMOJWSL-.js → OrbitControls-Xm3TiWSm.js} +1 -1
  5. package/dist/{URDFLoader-Y4l_xAEg.cjs → URDFLoader-BG8UBoRV.cjs} +1 -1
  6. package/dist/{URDFLoader-emHFNLHl.js → URDFLoader-BVq4-_nm.js} +2 -2
  7. package/dist/{animationData-BHoj-1LD.js → animationData-CKnGxrwv.js} +3 -3
  8. package/dist/{animationData-CQdthirF.cjs → animationData-CvSQOLjD.cjs} +1 -1
  9. package/dist/{array-P5J-DgMu.cjs → array-BWgfvvzW.cjs} +1 -1
  10. package/dist/{array-Cio8S2Pj.js → array-BpsLG-qe.js} +4 -4
  11. package/dist/clone-BkXJ1f6m.cjs +1 -0
  12. package/dist/{clone-DlNyA_zn.js → clone-DXbbt8Hm.js} +1 -1
  13. package/dist/{dayjs.min-73fIR1V_.cjs → dayjs.min-C_98bw1w.cjs} +1 -1
  14. package/dist/{dayjs.min-E1ZLJ-8j.js → dayjs.min-DuspkzAg.js} +1 -1
  15. package/dist/{iconfont-Cp7o4QAt.cjs → iconfont-Bh5e2p75.cjs} +1 -1
  16. package/dist/{iconfont-Cg9QlUoy.js → iconfont-CI2ln_lz.js} +2 -2
  17. package/dist/{index-BdGKsSb2.cjs → index--9RSY5nc.cjs} +1 -1
  18. package/dist/{index-Co-U8J6E.cjs → index-1hSToJw_.cjs} +1 -1
  19. package/dist/{index-CQY6ageG.cjs → index-92G6p6-P.cjs} +1 -1
  20. package/dist/{index-fAnqtn_m.cjs → index-B6OWlCN4.cjs} +1 -1
  21. package/dist/{index-0hpStIBH.js → index-B7B9vl_S.js} +4 -4
  22. package/dist/{index-D1vYje_p.cjs → index-BHp_Rra2.cjs} +1 -1
  23. package/dist/{index-6teHdmr0.js → index-BMj0wGQ5.js} +1 -1
  24. package/dist/{index-tT9c2s2F.js → index-BR5mRxoX.js} +47 -38
  25. package/dist/{index-CwOB279v.cjs → index-BVbA0cHb.cjs} +1 -1
  26. package/dist/{index-H8n2KFLX.cjs → index-BY-jyYWy.cjs} +1 -1
  27. package/dist/{index-B846yqBS.js → index-BbRiCABC.js} +2 -2
  28. package/dist/{index-BkOJA3nu.cjs → index-BcTkU3nu.cjs} +1 -1
  29. package/dist/{index-CwZs4rIC.js → index-BezhZle5.js} +6 -6
  30. package/dist/{index-CEwg_zdl.js → index-Bwv7RY5s.js} +1 -1
  31. package/dist/{index-DsUMFNuA.js → index-BzX1r1DQ.js} +6 -6
  32. package/dist/index-CAHcIkx6.cjs +1 -0
  33. package/dist/{index-BEEOZ_LN.js → index-CDVaGIeb.js} +1 -1
  34. package/dist/{index-cC0isUDx.cjs → index-CNFkoqud.cjs} +1 -1
  35. package/dist/index-CR2bMJxC.js +9785 -0
  36. package/dist/index-CR4U-WNu.cjs +2 -0
  37. package/dist/{index-DXKzYxhw.js → index-CT0_6X-e.js} +2 -2
  38. package/dist/{index-rjTawDw6.js → index-C_dda12R.js} +2 -2
  39. package/dist/{index-DmMl7DkC.js → index-CbuRLwLx.js} +4 -4
  40. package/dist/index-CcybWQ0a.cjs +25 -0
  41. package/dist/{index-PAFvx19H.cjs → index-D3Lc8UUG.cjs} +1 -1
  42. package/dist/{index-CkXAOjdK.js → index-D4rNc1Ug.js} +2 -2
  43. package/dist/{index-sqfOcL_Q.cjs → index-D6rBwYFi.cjs} +1 -1
  44. package/dist/{index-Cro-IzQv.cjs → index-D9VN9VwZ.cjs} +1 -1
  45. package/dist/{index-D58LRV4j.js → index-D9jDJTOl.js} +9 -9
  46. package/dist/{index-yXqsfBiR.cjs → index-DB7w6WMF.cjs} +1 -1
  47. package/dist/{index-DoQ2DjBA.js → index-DF7jIWvH.js} +2 -2
  48. package/dist/{index-BS23fm8I.js → index-DGknSo3g.js} +9 -9
  49. package/dist/{index-BJQ12PRZ.cjs → index-DIgF229o.cjs} +1 -1
  50. package/dist/{index-8VjHjOci.cjs → index-DJEST34U.cjs} +1 -1
  51. package/dist/{index-CtBrDQiG.cjs → index-DKl62QNQ.cjs} +1 -1
  52. package/dist/{index-BGYRY71Y.cjs → index-DOou0S80.cjs} +1 -1
  53. package/dist/{index-6egNZH3a.js → index-DPbLX2EM.js} +3 -3
  54. package/dist/{index-CEuh0_6n.js → index-DRSO21bq.js} +1 -1
  55. package/dist/index-DT8J-Un0.js +481 -0
  56. package/dist/index-De7jtHBb.cjs +1 -0
  57. package/dist/{index-C3RYFBPK.cjs → index-DliVCzLT.cjs} +1 -1
  58. package/dist/{index-C4Dlzm7P.js → index-DmmlczJa.js} +4 -4
  59. package/dist/{index-CPz5Q62a.js → index-DnqpKHUZ.js} +1 -1
  60. package/dist/{index-BohJ0pIH.cjs → index-DrZ2rTX6.cjs} +1 -1
  61. package/dist/{index-CagHv4za.js → index-DvF67cFp.js} +1 -1
  62. package/dist/{index-BREFniPq.js → index-DxKAizLR.js} +4 -4
  63. package/dist/{index-Ba_o-vqP.cjs → index-DzS8TUJx.cjs} +1 -1
  64. package/dist/{index-CsBViUVV.js → index-MM7KiUTF.js} +3 -3
  65. package/dist/{index-DsIkRvPS.cjs → index-Q9XfSrZY.cjs} +1 -1
  66. package/dist/{index-BxEBUPI0.cjs → index-R66yOvAG.cjs} +1 -1
  67. package/dist/{index-CAIY8beW.js → index-SQ7v5v4-.js} +3 -3
  68. package/dist/{index-CkTFRGxB.js → index-WrlsRfB9.js} +1 -1
  69. package/dist/{index-CqiskI7e.js → index-Y6ou98p7.js} +1 -1
  70. package/dist/{index-Dkvr_yZQ.cjs → index-apX7jShx.cjs} +1 -1
  71. package/dist/{index-d3eamXNt.js → index-fChGNUaV.js} +2 -2
  72. package/dist/{index-Cq0IbX2g.cjs → index-g7Wgp9gu.cjs} +1 -1
  73. package/dist/{index-Cck4n4WY.cjs → index-ucDLs-jz.cjs} +1 -1
  74. package/dist/{index-B47-vpvz.js → index-xocA7N1o.js} +7912 -7900
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-_g-HLUBE.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CA4D5g5S.cjs} +1 -1
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dmtv1jQ3.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Ct_Gif7C.js} +4 -4
  77. package/dist/{main-C5mcsbRd.js → main-SWG15a-I.js} +4 -4
  78. package/dist/{main-D8ovrBi2.cjs → main-Yz4Oqt7r.cjs} +1 -1
  79. package/dist/{menu-BMAZOS2j.js → menu-BzDsNPVM.js} +648 -560
  80. package/dist/{menu-DopnPfbG.cjs → menu-DUkDo01b.cjs} +5 -6
  81. package/dist/{menuIndex-DhpobxSC.cjs → menuIndex-BkBrPObt.cjs} +1 -1
  82. package/dist/{menuIndex-DuWSagQ-.js → menuIndex-yuvNAovT.js} +1 -1
  83. package/dist/ss-component.cjs +1 -1
  84. package/dist/ss-component.css +1 -1
  85. package/dist/ss-component.js +12 -12
  86. package/dist/ss-component2.cjs +1 -1
  87. package/dist/ss-component2.js +12 -12
  88. package/dist/{threeModel-D3UmXNUb.cjs → threeModel-C63Sjop5.cjs} +1 -1
  89. package/dist/{threeModel-3JirGS2j.js → threeModel-b1yjN3xi.js} +4 -4
  90. package/dist/{threePreview-diIAbbKf.js → threePreview-EMOU8ESj.js} +4 -4
  91. package/dist/{threePreview-_Pa_rEAW.cjs → threePreview-T5JQIpIE.cjs} +1 -1
  92. package/dist/{threeSceneView-B5pQXPj7.cjs → threeSceneView-CVnwcWw9.cjs} +1 -1
  93. package/dist/{threeSceneView-DINMkVVz.js → threeSceneView-zDdeQECN.js} +14 -14
  94. package/dist/{threeSceneViewForCPMPIP-DqzjXWdH.js → threeSceneViewForCPMPIP-Cy9q2ndz.js} +8 -8
  95. package/dist/{threeSceneViewForCPMPIP-k5RanDHf.cjs → threeSceneViewForCPMPIP-DXVojXop.cjs} +1 -1
  96. package/dist/{threeTrackPathView-DFuI3kE-.cjs → threeTrackPathView-ewxBf_AV.cjs} +1 -1
  97. package/dist/{threeTrackPathView-CmGiZRgE.js → threeTrackPathView-jXEBNcpF.js} +4 -4
  98. package/dist/{threeViewerHost-B-HsQ66C.js → threeViewerHost-CQeDys9O.js} +3 -3
  99. package/dist/{threeViewerHost-msa4WUeH.cjs → threeViewerHost-WO0px6I6.cjs} +1 -1
  100. package/dist/{urdfTree-DwmC3WSP.js → urdfTree-BRwS94Xs.js} +1 -1
  101. package/dist/{urdfTree-CeTWjJ2Y.cjs → urdfTree-BVYJZhPX.cjs} +1 -1
  102. package/dist/{workpieceTreePanel-MbzDAYJO.js → workpieceTreePanel-D29Boj5S.js} +4 -4
  103. package/dist/{workpieceTreePanel-BjTo7Vbi.cjs → workpieceTreePanel-FDRKfo7x.cjs} +1 -1
  104. package/package.json +1 -1
  105. package/dist/clone-DZsVSfvJ.cjs +0 -1
  106. package/dist/index-5rsqoznF.cjs +0 -1
  107. package/dist/index-BWfqrsaY.cjs +0 -2
  108. package/dist/index-Br8-OQ_d.js +0 -679
  109. package/dist/index-BwyBfUCz.cjs +0 -1
  110. package/dist/index-D6yEF8Ru.js +0 -9698
  111. package/dist/index-DOCsP0-B.cjs +0 -25
@@ -1,18 +1,18 @@
1
1
  import { ref as L, resolveComponent as Q, createBlock as q, openBlock as y, defineComponent as t0, computed as i2, watch as W2, createElementBlock as A, createVNode as t2, withCtx as H, createElementVNode as n2, Fragment as O2, renderList as V2, withModifiers as we, normalizeClass as Ze, toDisplayString as I2, createSlots as _e, renderSlot as S2, nextTick as O0, onMounted as de, createTextVNode as H0, isRef as ur, isReactive as fr, toRaw as pr, createCommentVNode as c2, onBeforeUnmount as L4, normalizeStyle as B0, withDirectives as Kt, resolveDynamicComponent as p3, vShow as t3, normalizeProps as gr, guardReactiveProps as mr, unref as L0, mergeProps as x1, reactive as U3, inject as l6, watchEffect as Le, onUnmounted as Pt, resolveDirective as vr, h as Vi, toRefs as wr } from "vue";
2
- import { aa as xr, ab as br, U as Ws, g as _r, ac as yr, ad as Sr, ae as Cr, a8 as Ai, af as kr, ag as Dr, ah as Or, ai as Mr, aj as Ei, ak as Bi } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dmtv1jQ3.js";
2
+ import { aa as xr, ab as br, U as Ws, g as _r, ac as yr, ad as Sr, ae as Cr, a8 as Ai, af as kr, ag as Dr, ah as Or, ai as Mr, aj as Ei, ak as Bi } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Ct_Gif7C.js";
3
3
  import { _ as A2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { S as yt } from "./index-BHtNKL1L.js";
5
5
  import { m as Us, n as Fs, E as ze, i as H6, K as Tr, s as zr, N as Pr, z as Vr, A as Ar, J as Er, b as Br } from "./request-CoGtW0Ux.js";
6
- import { d as ge } from "./dayjs.min-E1ZLJ-8j.js";
6
+ import { d as ge } from "./dayjs.min-DuspkzAg.js";
7
7
  import { _ as xe } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
8
- import { h as Li, K as qs } from "./index-B846yqBS.js";
9
- import { R as Lr, T as Hi, a as H4, p as gt, s as St, u as I4, c as I0, h as Ys, N as g3, f as Hr } from "./menu-BMAZOS2j.js";
8
+ import { h as Li, K as qs } from "./index-BbRiCABC.js";
9
+ import { R as Lr, T as Hi, a as H4, p as gt, s as St, u as I4, c as I0, h as Ys, N as g3, f as Hr } from "./menu-BzDsNPVM.js";
10
10
  /* empty css */
11
11
  import { u as I6 } from "./index-BIV-s4QY.js";
12
12
  import { s as G4 } from "./index-CnjGqJZS.js";
13
- import { T as Ii, a as Ir } from "./threeViewerHost-B-HsQ66C.js";
13
+ import { T as Ii, a as Ir } from "./threeViewerHost-CQeDys9O.js";
14
14
  import { E as Gr } from "./index-C81Qb0f2.js";
15
- import { A as Nr } from "./index-CPz5Q62a.js";
15
+ import { A as Nr } from "./index-DnqpKHUZ.js";
16
16
  var Rr = "[object Date]";
17
17
  function $r(n) {
18
18
  return Us(n) && Fs(n) == Rr;
@@ -1,6 +1,6 @@
1
1
  import { ref as E, reactive as Bt, computed as rt, watch as At } from "vue";
2
2
  import { E as pt } from "./request-CoGtW0Ux.js";
3
- import { L as _t, u as Ot, p as P, s as L, b as Vt, a as It, c as kt } from "./menu-BMAZOS2j.js";
3
+ import { L as _t, u as Ot, p as P, s as L, b as Vt, a as It, c as kt } from "./menu-BzDsNPVM.js";
4
4
  const Nt = _t("authorityState", {
5
5
  state: () => ({
6
6
  routerPageStructures: []
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as p, createElementVNode as t, withDirectives as u, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
2
- import { S as I, t as x, s as w, a as L } from "./index-BREFniPq.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dmtv1jQ3.js";
2
+ import { S as I, t as x, s as w, a as L } from "./index-DxKAizLR.js";
3
+ import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Ct_Gif7C.js";
4
4
  import "./index-BHtNKL1L.js";
5
- import { e as E } from "./index-CwZs4rIC.js";
6
- import "./index-B846yqBS.js";
7
- import { b as N, s as U } from "./menu-BMAZOS2j.js";
5
+ import { e as E } from "./index-BezhZle5.js";
6
+ import "./index-BbRiCABC.js";
7
+ import { b as N, s as U } from "./menu-BzDsNPVM.js";
8
8
  import "./request-CoGtW0Ux.js";
9
- import "./dayjs.min-E1ZLJ-8j.js";
9
+ import "./dayjs.min-DuspkzAg.js";
10
10
  /* empty css */
11
11
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const z = { class: "personal-wrapper" }, F = { class: "personal-box left" }, H = { class: "base-avatar" }, K = { class: "center-avatar" }, M = { class: "base-info" }, R = { class: "base-signature" }, j = { class: "personal-box right" }, q = /* @__PURE__ */ C({
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),h=require("./menu-DUkDo01b.cjs");require("./index-BVbA0cHb.cjs");const U=require("./index-CNFkoqud.cjs"),$=require("./request-BC2w2vGr.cjs"),K=require("vue-router"),B=require("./index-92G6p6-P.cjs"),D={},H={class:"left-wrap"},P={class:"left-bg"};function J(b,u){return e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("div",P,[e.renderSlot(b.$slots,"img",{},void 0,!0)])])}const W=k._export_sfc(D,[["render",J],["__scopeId","data-v-9b7ee6c9"]]),x={ACCOUNT:"account",FACE:"face"},z={class:"right-wrap"},G={class:"tab-content"},Q={class:"tab-tips"},X={class:"tab-content"},Y={class:"tab-tips"},Z=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(b,{emit:u}){const o=e.ref(x.ACCOUNT),t=u,C=()=>{t("clickLogin",o.value)},r=i=>{t("handleTabChange",i)};return(i,m)=>{const a=e.resolveComponent("el-button"),l=e.resolveComponent("el-tab-pane"),p=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(p,{modelValue:o.value,"onUpdate:modelValue":m[0]||(m[0]=c=>o.value=c),class:"right-tabs",onTabChange:r},{default:e.withCtx(()=>[e.createVNode(l,{name:e.unref(x).ACCOUNT},{label:e.withCtx(()=>[e.renderSlot(i.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",G,[e.renderSlot(i.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:C},[e.createVNode(a,{loading:b.loading},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",Q,[e.renderSlot(i.$slots,"tabTips1",{},void 0,!0)])]),_:3},8,["name"]),e.createVNode(l,{name:e.unref(x).FACE},{label:e.withCtx(()=>[e.renderSlot(i.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",X,[e.renderSlot(i.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",Y,[e.renderSlot(i.$slots,"tabTips2",{},void 0,!0)])]),_:3},8,["name"])]),_:3},8,["modelValue"])])}}}),ee=k._export_sfc(Z,[["__scopeId","data-v-8b1962f0"]]),te={class:"account-wrap"},oe=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(b,{emit:u}){const o=b,t=e.reactive({account:"",password:""}),C=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),r=e.ref(null),i=u;return e.watch(()=>o.isClickLogin,m=>{var a;m&&(o==null?void 0:o.activeTabName)==="account"&&((a=r.value)==null||a.validate(l=>{var p;for(let c in t)t.hasOwnProperty(c)&&(t[c]=(p=t[c])==null?void 0:p.trim());i("handleLoginFormChange",l,l?t:null)}))},{immediate:!0}),e.watch(()=>o.activeTabName,m=>{var a;m==="account"&&((a=r.value)==null||a.resetFields())}),(m,a)=>{const l=e.resolveComponent("svg-icon"),p=e.resolveComponent("el-input"),c=e.resolveComponent("el-form-item"),y=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",te,[e.createVNode(y,{model:t,rules:C,ref_key:"formRef",ref:r},{default:e.withCtx(()=>[e.createVNode(c,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(p,{class:"account-input",modelValue:t.account,"onUpdate:modelValue":a[0]||(a[0]=f=>t.account=f),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(l,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(c,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(p,{class:"account-input",modelValue:t.password,"onUpdate:modelValue":a[1]||(a[1]=f=>t.password=f),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(l,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),ne=k._export_sfc(oe,[["__scopeId","data-v-48037c0f"]]),ae={class:"account-wrap"},se={class:"video-wrap"},ie=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(b,{emit:u}){const o=b,t=u;h.useLoginState(h.pinia);const{initVerify:C}=U.useFaceRecognition(),r=e.ref(null),i=e.ref(null);let m=!1,a=null;const l=async n=>{if(!n)return;const d=await C(n),{data:g}=d||{},{account:v,password:N}=(g==null?void 0:g.data)||{},_=g==null?void 0:g.msg;if(!v){$.ElMessage.warning(_||"识别失败,请重新识别!");return}t("handleLoginFormChange",!0,{account:v,password:N})},p=()=>{if(!i.value||!r.value)return;const n=i.value,d=n.getContext("2d"),g=r.value;n.width=200,n.height=200;const v=g.videoWidth||640,N=g.videoHeight||480,_=Math.min(200/v,200/N),w=v*_,s=N*_,V=(200-w)/2,E=(200-s)/2;d==null||d.drawImage(g,0,0,v,N,V,E,w,s),n.toBlob(L=>{if(L){const S=new File([L],"face.png",{type:"image/png"});l(S)}},"image/png")},c=async()=>{if(!r.value||m)return;const n=r.value;try{if(a=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1}),n){const d=n;d.srcObject=a,m=!0}}catch{$.ElMessage.warning("摄像头启动失败")}};function y(n){if(n&&(n.getTracks().forEach(d=>d.stop()),r.value)){const d=r.value;d.srcObject=null}}const f=()=>{y(a),m=!1};return e.watch(()=>o.activeTabName,n=>{if(n!==x.FACE){f();return}if(n===x.FACE&&!m){c();return}}),e.onBeforeUnmount(()=>{f()}),(n,d)=>(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",se,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:r,id:"v",autoplay:"",playsinline:""},null,512)]),e.renderSlot(n.$slots,"default",{},()=>[e.createElementVNode("button",{class:"face-screenshot",onClick:p},"人脸识别")],!0),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:i,id:"canvas"},null,512)]))}}),le=k._export_sfc(ie,[["__scopeId","data-v-b64bc91c"]]),O=h.useLoginState(h.pinia),{isDefaultModel:ce}=B.useModelManagement(),re=async(b,u)=>{var C,r,i,m,a,l,p,c,y,f,n,d,g,v;let o=Object.values(b),t=await h.loginPlatFormDataApi({userName:(C=o==null?void 0:o[0])==null?void 0:C.trim(),password:(r=o==null?void 0:o[1])==null?void 0:r.trim()});if(((i=t==null?void 0:t.data)==null?void 0:i.status)===200&&((a=(m=t==null?void 0:t.data)==null?void 0:m.result)==null?void 0:a.length)<=0&&(t=await h.loginCommonAccount({userName:(l=o==null?void 0:o[0])==null?void 0:l.trim(),password:(p=o==null?void 0:o[1])==null?void 0:p.trim(),path:"系统管理/用户管理",platId:u})),((c=t==null?void 0:t.data)==null?void 0:c.status)===200&&((f=(y=t==null?void 0:t.data)==null?void 0:y.result)==null?void 0:f.length)>0){const _=((d=(n=t==null?void 0:t.data)==null?void 0:n.result)==null?void 0:d.find(s=>ce(s)))||((v=(g=t==null?void 0:t.data)==null?void 0:g.result)==null?void 0:v[0]);sessionStorage.setItem("systemKey",u&&u!==""?u:_==null?void 0:_.plat_id);let w=_;return w.plat_id=w.plat_id??u,O.setLoginUserInfo(w),O.setSystemKey(u&&u!==""?u:_==null?void 0:_.plat_id),!0}else return $.ElMessage.error("输入的密码错误,请重新输入"),!1},de={class:"login-wrap"},ue={class:"login-body"},me={class:"login-body-item left"},ge={class:"title"},pe={class:"first-level"},fe={key:0,class:"logo"},_e=["src"],ve={class:"english-name"},he={class:"login-body-item right"},be=e.defineComponent({__name:"index",props:{oldSystemKey:{},loginContent:{}},emits:["change","projectLogin"],setup(b,{emit:u}){const o=b,t=K.useRouter(),C=u,r=h.useMenuState(h.pinia),i=h.useLoginState(h.pinia),{systemKey:m,systemInfo:a,loginUserInfo:l}=h.storeToRefs(i),p=e.computed(()=>{var s;return((s=a.value)==null?void 0:s.logo)||B.logo}),c=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浏览器请使用极速模式"}]}),y=e.ref("account"),f=e.ref(!1),n=e.ref(!1),d=()=>{f.value=!0},g=(s,V)=>{f.value=!1,s&&_(V)},v=async()=>(sessionStorage.setItem("loginToken","111"),!0),N=async()=>(sessionStorage.setItem("magicToken","123456"),!0);e.onMounted(async()=>{await v()});const _=async s=>{var F,q,A,R,M,I,j;n.value=!0;let V=[re(s,(F=a.value)==null?void 0:F.plat_id),v(),N()];const E=await Promise.all(V),L=E==null?void 0:E.every(T=>T);let S=[{id:"1",request_method:"Post",request_url:"/platform/getdata",request_param:JSON.stringify({userName:"hjj",password:"1"}),request_result:"{}",is_delete:!1,request_table:"admin_user",request_type:"login"}];try{const T=((q=l==null?void 0:l.value)==null?void 0:q.plat_id)||((A=a.value)==null?void 0:A.plat_id);await h.pageBatchAddApi({platId:parseInt(T),changeContents:[{tableName:"log",tableContents:S}]})}catch{}L?(C("projectLogin",s),await B.verifyStructureDataToStore(),t.push("/"),i.setLogRecordAsync({type:"登录",data:{account:((R=l.value)==null?void 0:R.account)??((M=l.value)==null?void 0:M.账号),userName:((I=l.value)==null?void 0:I.姓名)||((j=l.value)==null?void 0:j.userName)||"未知"}},"/login","login"),r.setHasClickEditComp(!1)):n.value=!1,n.value=!1};e.watch(()=>o==null?void 0:o.loginContent,()=>{let s=o==null?void 0:o.loginContent;s!=null&&s.account&&(s!=null&&s.password)&&_(s)},{deep:!0,immediate:!0});const w=s=>{y.value=s,f.value=!1,n.value=!1};return(s,V)=>(e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("div",ue,[e.createElementVNode("div",me,[e.createVNode(W,{class:"login-left-bg"},{img:e.withCtx(()=>{var E,L;return[e.createElementVNode("div",ge,[e.createElementVNode("div",pe,[p.value?(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("img",{src:p.value,alt:""},null,8,_e)])):e.createCommentVNode("",!0),e.createElementVNode("div",ve,e.toDisplayString(((E=e.unref(a))==null?void 0:E.EnglishName)||"Insofworks"),1)]),e.createElementVNode("div",null,e.toDisplayString(((L=e.unref(a))==null?void 0:L.chineseName)||"工业软件建模与开发系统"),1)]),V[0]||(V[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",he,[e.createVNode(ee,{loading:n.value,onClickLogin:d,onHandleTabChange:w},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(ne,{activeTabName:y.value,isClickLogin:f.value,onHandleLoginFormChange:g},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(le,{systemKey:s.oldSystemKey,activeTabName:y.value,isClickLogin:f.value,onHandleLoginFormChange:g},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),Ce=k._export_sfc(be,[["__scopeId","data-v-233316bd"]]);exports.default=Ce;
@@ -1,6 +1,6 @@
1
1
  import { ref as _, computed as A } from "vue";
2
2
  import { d as I, g as M } from "./index-BsDMamej.js";
3
- import { E as N } from "./index-CkXAOjdK.js";
3
+ import { E as N } from "./index-D4rNc1Ug.js";
4
4
  import { E as s } from "./request-CoGtW0Ux.js";
5
5
  const K = _([]), T = A(() => [
6
6
  {
@@ -1 +1 @@
1
- "use strict";const r=require("./menu-DopnPfbG.cjs"),l=require("./request-BC2w2vGr.cjs"),g=require("vue"),I=r.useLoginState(r.pinia),{systemUrl:s}=r.storeToRefs(I);let f=s.value===""||!s.value?"http://222.92.178.198:63002":s.value;g.watch(()=>s.value,()=>{f=s.value===""||!s.value?"http://222.92.178.198:63002":s.value},{deep:!0,immediate:!0});function w(a){return l.service({url:"http://139.196.154.85:20015/api/face/face-verify",method:"post",data:a})}function h(a){return l.service({url:f+"/platform/updatedata_faceURL",method:"post",data:a})}const F=()=>{const a=r.useLoginState(),{platId:d,userName:p,account:c,isSuperAdmin:m}=r.useUserInfo(),i=async t=>{if(!t)return;const e=new FormData;e.set("file",t);const n=a.systemInfo.plat_id;return e.set("systemKey",n),await w(e)};return{updateFacePhoto:async t=>{const e=a.loginUserInfo,{password:n}=e||{},o={platId:d.value,userName:p.value,password:n,faceURL:t};m.value&&(o.platId=""),await h(o)},initVerifySelf:async t=>{var u;const e=await i(t),{account:n,password:o}=((u=e==null?void 0:e.data)==null?void 0:u.data)||{};if(!c)return!1;const v=a.loginUserInfo,{password:y}=v||{};return n===c.value&&o===y},initVerify:async t=>await i(t)}};exports.useFaceRecognition=F;
1
+ "use strict";const r=require("./menu-DUkDo01b.cjs"),l=require("./request-BC2w2vGr.cjs"),g=require("vue"),I=r.useLoginState(r.pinia),{systemUrl:s}=r.storeToRefs(I);let f=s.value===""||!s.value?"http://222.92.178.198:63002":s.value;g.watch(()=>s.value,()=>{f=s.value===""||!s.value?"http://222.92.178.198:63002":s.value},{deep:!0,immediate:!0});function w(a){return l.service({url:"http://139.196.154.85:20015/api/face/face-verify",method:"post",data:a})}function h(a){return l.service({url:f+"/platform/updatedata_faceURL",method:"post",data:a})}const F=()=>{const a=r.useLoginState(),{platId:d,userName:p,account:c,isSuperAdmin:m}=r.useUserInfo(),i=async t=>{if(!t)return;const e=new FormData;e.set("file",t);const n=a.systemInfo.plat_id;return e.set("systemKey",n),await w(e)};return{updateFacePhoto:async t=>{const e=a.loginUserInfo,{password:n}=e||{},o={platId:d.value,userName:p.value,password:n,faceURL:t};m.value&&(o.platId=""),await h(o)},initVerifySelf:async t=>{var u;const e=await i(t),{account:n,password:o}=((u=e==null?void 0:e.data)==null?void 0:u.data)||{};if(!c)return!1;const v=a.loginUserInfo,{password:y}=v||{};return n===c.value&&o===y},initVerify:async t=>await i(t)}};exports.useFaceRecognition=F;