ss-component-new 1.3.286 → 1.3.288

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 (121) hide show
  1. package/dist/{MTLLoader-Bsogql70.cjs → MTLLoader-CdxYhBAE.cjs} +1 -1
  2. package/dist/{MTLLoader-CdsFGQF-.js → MTLLoader-RsaYZtZ_.js} +1 -1
  3. package/dist/{OrbitControls-DWoCUvy4.cjs → OrbitControls-BNTHZN2P.cjs} +1 -1
  4. package/dist/{OrbitControls-C2_UxiUE.js → OrbitControls-D4mDZcDl.js} +1 -1
  5. package/dist/{URDFLoader-BsZKAKIo.cjs → URDFLoader-B56WRl4z.cjs} +1 -1
  6. package/dist/{URDFLoader-Dz9DW7vE.js → URDFLoader-BPNyxykV.js} +2 -2
  7. package/dist/{animationData-DnGVHraX.js → animationData-D4Q3av_t.js} +3 -3
  8. package/dist/{animationData-oN-nuDkg.cjs → animationData-DiyxzUT8.cjs} +1 -1
  9. package/dist/{array-BkvdBkjB.cjs → array-DHHdihdS.cjs} +1 -1
  10. package/dist/{array-MoA3Ri4g.js → array-jbOhhf4v.js} +4 -4
  11. package/dist/{clone-fE05POOC.js → clone-BrrxU6_J.js} +1 -1
  12. package/dist/clone-Dn6v3xp6.cjs +1 -0
  13. package/dist/{dayjs.min-D4NpYk_n.cjs → dayjs.min-DRU3LNcy.cjs} +1 -1
  14. package/dist/{dayjs.min-Dnlx1ZBx.js → dayjs.min-Dx_LN6Bu.js} +1 -1
  15. package/dist/{iconfont-DOzv_3Zg.js → iconfont-DkmQztG1.js} +2 -2
  16. package/dist/{iconfont-Dmx62o41.cjs → iconfont-Dq-DsQsx.cjs} +1 -1
  17. package/dist/{index-C2WU_Ec1.js → index--PidpjSy.js} +2 -2
  18. package/dist/{index-sIKBEcpI.js → index--ZVD8xbU.js} +16 -26
  19. package/dist/{index-BYz3b7aZ.js → index-1rE9nGn_.js} +2 -2
  20. package/dist/{index-2xd8WpWE.js → index-B6b9Lr8M.js} +3 -3
  21. package/dist/{index-B4tCIr_z.cjs → index-BOHy6XZd.cjs} +1 -1
  22. package/dist/index-BVOdzNfr.js +9371 -0
  23. package/dist/{index-DyzZBKOp.cjs → index-BbZoRc6B.cjs} +1 -1
  24. package/dist/index-BdyYMxx4.cjs +1 -0
  25. package/dist/{index-BZ-4my22.cjs → index-Big-I9pF.cjs} +1 -1
  26. package/dist/index-BlAISTfa.cjs +1 -0
  27. package/dist/index-Bs0qreV1.cjs +1 -0
  28. package/dist/{index-Xa-cp7US.js → index-C-z63B9f.js} +9 -9
  29. package/dist/{index-B-U8MdmI.cjs → index-C0A0y_84.cjs} +1 -1
  30. package/dist/{index-DsoXkrYI.js → index-C1dVsNLG.js} +1 -1
  31. package/dist/{index-D1z8j4eV.js → index-C7-Idrnv.js} +1 -1
  32. package/dist/{index-CkgTi0gb.js → index-C9smrIfQ.js} +6 -6
  33. package/dist/{index-jkznII6r.cjs → index-CAcP6bx_.cjs} +1 -1
  34. package/dist/{index-BsOgskIp.js → index-CF4yVz1d.js} +2 -2
  35. package/dist/{index-CTwVZFcK.cjs → index-CQcXApCn.cjs} +1 -1
  36. package/dist/{index-BFrBIvIE.js → index-CTtBV5bC.js} +2 -2
  37. package/dist/{index-BECHZzKg.cjs → index-CUJ_cdPT.cjs} +1 -1
  38. package/dist/{index-BQDdBzrY.js → index-CV8QlXGI.js} +1 -1
  39. package/dist/{index-Yj1Oc3ZA.cjs → index-CXgZFuTt.cjs} +1 -1
  40. package/dist/{index-Dqh2QdZw.js → index-Cbb4eaBp.js} +3 -3
  41. package/dist/{index-_15_kR9u.cjs → index-CdrBTtcu.cjs} +1 -1
  42. package/dist/{index-C4-xNXhM.js → index-Cg7Mpfpj.js} +1 -1
  43. package/dist/{index-Cm9kN1Xu.cjs → index-CiZrZ3Xv.cjs} +1 -1
  44. package/dist/index-CliKgPns.cjs +1 -0
  45. package/dist/{index-BeOgfY4E.js → index-Cml5XnKL.js} +6 -6
  46. package/dist/{index-BRNEBbrZ.cjs → index-CuHxF23O.cjs} +1 -1
  47. package/dist/index-Cxv5DW4K.cjs +2 -0
  48. package/dist/{index-CU99CuPT.cjs → index-D1NTpDPS.cjs} +1 -1
  49. package/dist/{index-C4MvqsS3.js → index-D21dwfqO.js} +1 -1
  50. package/dist/{index-sE0VWxJ7.cjs → index-D3Lvzu_0.cjs} +1 -1
  51. package/dist/{index-BhPO2DCU.cjs → index-DAwnZFmG.cjs} +1 -1
  52. package/dist/{index-DO-1hTj2.cjs → index-DLN6R2tJ.cjs} +1 -1
  53. package/dist/{index-CnTP5O4m.js → index-DSOG6EEa.js} +4 -4
  54. package/dist/{index-DGBPHiex.cjs → index-DTiolIgS.cjs} +1 -1
  55. package/dist/index-DTsHI5xQ.js +30 -0
  56. package/dist/{index-0KXR_hwR.cjs → index-DUAnjHxe.cjs} +1 -1
  57. package/dist/{index-CAZZzLQo.cjs → index-DXWN-UJr.cjs} +1 -1
  58. package/dist/{index-Dz6vpfgy.js → index-DXjgumn5.js} +3 -3
  59. package/dist/{index-B6ql3Xm0.js → index-Df8bxCwR.js} +29 -29
  60. package/dist/{index-CJc4ev1k.cjs → index-Dm_u-SjZ.cjs} +1 -1
  61. package/dist/index-Drj3FBfd.js +1058 -0
  62. package/dist/{index-FA5lLYx0.js → index-H_NM-ZF-.js} +2 -2
  63. package/dist/{index-CbGFrsD8.cjs → index-NnqT8oEL.cjs} +1 -1
  64. package/dist/{index-Baf8WN5y.js → index-QG4F5kTH.js} +2 -2
  65. package/dist/{index-3-c8Ohjp.js → index-RSaGZhb3.js} +2 -2
  66. package/dist/{index-DLQ3bwtv.cjs → index-WTaP_KDd.cjs} +1 -1
  67. package/dist/index-cFt1QbzL.js +308 -0
  68. package/dist/{index-BHelG7C7.js → index-csCFl4vZ.js} +7531 -7517
  69. package/dist/index-gFBtUdzh.js +494 -0
  70. package/dist/{index-V_-cMWsl.cjs → index-mHmXlK2R.cjs} +1 -1
  71. package/dist/{index-DiBR8QS7.js → index-tjDz6s0y.js} +1 -1
  72. package/dist/{index-BIZJ7GKJ.js → index-uBjJS7MI.js} +4 -4
  73. package/dist/index-uSfvbTe3.cjs +25 -0
  74. package/dist/index-vbxWL2yo.cjs +1 -0
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B6Se_JzC.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DBQ_-V1_.js} +1850 -1845
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-C9SIThm3.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyDtD61.cjs} +62 -62
  77. package/dist/{main-CBC6ubO_.cjs → main-CJWCDw-y.cjs} +1 -1
  78. package/dist/{main-C7oFJi1Q.js → main-DQB2eKuh.js} +4 -4
  79. package/dist/{menu-BxHhjSbR.js → menu-CtG1loFf.js} +109 -113
  80. package/dist/{menu-Dl3Jfk-c.cjs → menu-Hdw0L-Y2.cjs} +6 -6
  81. package/dist/{menuIndex-C9SCNvTX.js → menuIndex-DmS5cMwB.js} +1 -1
  82. package/dist/{menuIndex-_ho29ItI.cjs → menuIndex-DqY0uteo.cjs} +1 -1
  83. package/dist/obj/model.mtl +42 -0
  84. package/dist/obj/model.obj +26110 -0
  85. package/dist/ss-component.cjs +1 -1
  86. package/dist/ss-component.css +1 -1
  87. package/dist/ss-component.js +12 -12
  88. package/dist/ss-component2.cjs +1 -1
  89. package/dist/ss-component2.js +12 -12
  90. package/dist/{threeModel-NJj9qUh_.js → threeModel-BV7PfpCu.js} +4 -4
  91. package/dist/{threeModel-BzGOMEcf.cjs → threeModel-BY867mnV.cjs} +1 -1
  92. package/dist/{threePreview-B5IIrseu.js → threePreview-BwElOyqr.js} +4 -4
  93. package/dist/{threePreview-CAyxqtke.cjs → threePreview-CWRtmSvh.cjs} +1 -1
  94. package/dist/{threeSceneView-nFy-ZMDh.js → threeSceneView-BytYkSfT.js} +14 -14
  95. package/dist/{threeSceneView-DmyZ6JVk.cjs → threeSceneView-ff0CsUxF.cjs} +1 -1
  96. package/dist/{threeSceneViewForCPMPIP-5AFgwENl.js → threeSceneViewForCPMPIP-Bp2-YrZL.js} +8 -8
  97. package/dist/{threeSceneViewForCPMPIP-CagUxEZ7.cjs → threeSceneViewForCPMPIP-DDWR6FSl.cjs} +1 -1
  98. package/dist/{threeTrackPathView-DzteP02y.js → threeTrackPathView-BckFDqUs.js} +4 -4
  99. package/dist/{threeTrackPathView-Dmry9hlD.cjs → threeTrackPathView-CamXHHnK.cjs} +1 -1
  100. package/dist/{threeViewerHost-B5IEEj6S.js → threeViewerHost-5ThpQYP3.js} +3 -3
  101. package/dist/{threeViewerHost-Dtrx4MAi.cjs → threeViewerHost-Cuo7oQGW.cjs} +1 -1
  102. package/dist/{urdfTree-DwRiqRR9.js → urdfTree-B6GL3kgV.js} +1 -1
  103. package/dist/{urdfTree-C62b4s3t.cjs → urdfTree-DDQw6tEb.cjs} +1 -1
  104. package/dist/{workpieceTreePanel-5IQMEHLR.cjs → workpieceTreePanel-B6AVU13A.cjs} +1 -1
  105. package/dist/{workpieceTreePanel-B-ueTwVy.js → workpieceTreePanel-BvO881iH.js} +4 -4
  106. package/package.json +1 -1
  107. package/public/obj/model.mtl +42 -0
  108. package/public/obj/model.obj +26110 -0
  109. package/dist/clone-BeaG_uby.cjs +0 -1
  110. package/dist/index-A3W3n1yI.js +0 -9393
  111. package/dist/index-B0Ay1p_8.cjs +0 -1
  112. package/dist/index-Bq07pl6z.js +0 -55
  113. package/dist/index-CTJIAikw.cjs +0 -1
  114. package/dist/index-CdbYspWB.js +0 -494
  115. package/dist/index-D7ANep-L.cjs +0 -1
  116. package/dist/index-DEUqbjst.js +0 -448
  117. package/dist/index-DLHRv2Jb.cjs +0 -25
  118. package/dist/index-DRfDSXeI.js +0 -875
  119. package/dist/index-QYUIqsbh.cjs +0 -1
  120. package/dist/index-cHplSoU4.cjs +0 -2
  121. package/dist/index-uzigFRcN.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),D=require("./menu-Dl3Jfk-c.cjs"),f=require("./index-D7ANep-L.cjs"),F=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),z=require("./index-CUw6nGTo.cjs"),J=require("./index-CTJIAikw.cjs"),M=require("./request-BC2w2vGr.cjs"),$=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=require("./clone-BeaG_uby.cjs"),Q=require("./index-W8p89C7t.cjs"),X={class:"account-wrap"},Z={class:"video-wrap"},ee=e.defineComponent({__name:"index",emits:["startVerify","completeVerify","verifyResult"],setup(j,{expose:b,emit:h}){const V=h,{initVerifySelf:O}=J.useFaceRecognition(),r=e.ref(null),c=e.ref(null);let N=!1,w=null;const l=async a=>{if(!a)return;const o=await O(a).finally(()=>{V("completeVerify")});V("verifyResult",o)},I=()=>{if(!c.value||!r.value)return;const a=c.value,o=a.getContext("2d"),_=r.value;a.width=200,a.height=200;const C=_.videoWidth||640,E=_.videoHeight||480,x=Math.min(200/C,200/E),k=C*x,S=E*x,T=(200-k)/2,d=(200-S)/2;o==null||o.drawImage(_,0,0,C,E,T,d,k,S),a.toBlob(async B=>{if(B){const y=new File([B],"face.png",{type:"image/png"});V("startVerify"),await l(y)}},"image/png")},v=async()=>{if(!r.value||N)return;const a=r.value;try{if(w=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1}),a){const o=a;o.srcObject=w,N=!0}}catch{M.ElMessage.warning("摄像头启动失败")}};function A(a){if(a&&(a.getTracks().forEach(o=>o.stop()),r.value)){const o=r.value;o.srcObject=null}}const R=()=>{A(w),N=!1};return e.onBeforeUnmount(()=>{R()}),b({initFaceRecognition:v,cleanup:R}),(a,o)=>(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",Z,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:r,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("div",{class:"face-screenshot-wrapper",onClick:I},[e.renderSlot(a.$slots,"default",{},()=>[o[0]||(o[0]=e.createElementVNode("button",{class:""},"人脸识别",-1))],!0)]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:c,id:"canvas"},null,512)]))}}),te=$._export_sfc(ee,[["__scopeId","data-v-d48749db"]]),oe={class:"personal-center"},ae={class:"body"},le={class:"body-left"},ne={class:"personal-profile"},se={class:"avatar"},re=["src"],ie={key:1,class:"downgrade-avatar"},ce={class:"base-info"},de={class:"permission"},ue={class:"personal-form-wrapper"},pe={class:"password-input-wrapper"},me={class:"edit-wrapper"},fe={class:"edit-body"},ve={class:"edit-form-wrapper"},_e={class:"edit-footer"},Ve={class:"footer-right"},ge=e.defineComponent({__name:"index",setup(j){const{isSuperAdmin:b,initEditForm:h,isAllowReplacePassword:V,initReplacePassword:O}=f.usePersonalCenter(),r=D.useLoginState(),{loginUserInfo:c}=D.storeToRefs(r),N=e.computed(()=>b.value?"超级管理员":"普通用户"),w=e.computed(()=>{var n,t;return((t=(n=c.value)==null?void 0:n.account)==null?void 0:t.charAt(0))||""}),l=e.ref({}),I=()=>{l.value=K.clone(c.value)||{}},v=e.ref(""),A=async()=>{var p,m,g;const n=(g=(m=(p=c.value)==null?void 0:p.face_photo_url)==null?void 0:m[0])==null?void 0:g.url;if(!n)return;const t=await D.platformDownloadFile({url:n}),u=new Blob([t==null?void 0:t.data],{type:t==null?void 0:t.headers["content-type"]}),i=URL.createObjectURL(u);v.value=i},R=()=>{v.value&&URL.revokeObjectURL(v.value)};e.onMounted(()=>{I(),A()}),e.onUnmounted(()=>{R()});const a=e.ref(f.tabConstants.BASE.value),o=e.ref(),_=e.ref(!1),C=()=>{_.value=!0},E=()=>{_.value=!1},x=n=>{if(n){P();return}M.ElMessage.error("验证失败")},k=n=>{o.value&&(n===f.tabConstants.RESET_PASSWORD_BY_FACE_RECOGNITION.value?o.value.initFaceRecognition():o.value.cleanup())},S=n=>{const t=n.paneName;k(t)},T=e.ref(),d=e.ref(h(c.value)),B=e.reactive({password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),y=e.ref(!1),W=()=>{y.value=!0},U=()=>{y.value=!1},P=()=>{d.value=h(c.value),W()},G=()=>a.value===f.tabConstants.RESET_PASSWORD_BY_FACE_RECOGNITION.value?!0:!V(l.value),Y=async()=>{var u,i;if(await((i=(u=T.value)==null?void 0:u.validate)==null?void 0:i.call(u)),!G())return;const t=Q.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});await O(d.value).finally(()=>{t.close()}),l.value={...l.value,...d.value},r.setLoginUserInfo(l.value),U()};return(n,t)=>{const u=e.resolveComponent("el-avatar"),i=e.resolveComponent("el-input"),p=e.resolveComponent("el-form-item"),m=e.resolveComponent("el-col"),g=e.resolveComponent("el-row"),q=e.resolveComponent("el-form"),L=e.resolveComponent("el-tab-pane"),H=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",oe,[t[7]||(t[7]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",ae,[e.createElementVNode("div",le,[e.createElementVNode("div",ne,[e.createElementVNode("div",se,[e.createVNode(u,{fit:"cover",size:96,ref:"avatarRef",alt:"头像查找失败"},{default:e.withCtx(()=>[v.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"face-img",src:v.value},null,8,re)):(e.openBlock(),e.createElementBlock("div",ie,e.toDisplayString(w.value),1))]),_:1},512)]),e.createElementVNode("div",ce,[e.createElementVNode("div",de,e.toDisplayString(N.value),1)])])]),t[6]||(t[6]=e.createElementVNode("div",{class:"divide"},null,-1)),e.createVNode(H,{class:"user-tabs",modelValue:a.value,"onUpdate:modelValue":t[4]||(t[4]=s=>a.value=s),onTabClick:S},{default:e.withCtx(()=>[e.createVNode(L,{label:e.unref(f.tabConstants).BASE.label,name:e.unref(f.tabConstants).BASE.value},{default:e.withCtx(()=>[e.createElementVNode("div",ue,[e.createVNode(q,{class:"personal-form",model:l.value},{default:e.withCtx(()=>[e.createVNode(g,{gutter:20},{default:e.withCtx(()=>[e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"user_name",label:"姓名","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:l.value.user_name,"onUpdate:modelValue":t[0]||(t[0]=s=>l.value.user_name=s),"aria-label":"姓名",placeholder:"姓名",readonly:""},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"employee_no",label:"工号","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:l.value.employee_no,"onUpdate:modelValue":t[1]||(t[1]=s=>l.value.employee_no=s),"aria-label":"工号",placeholder:"工号",readonly:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(g,{gutter:20},{default:e.withCtx(()=>[e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"account",label:"账号","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:l.value.account,"onUpdate:modelValue":t[2]||(t[2]=s=>l.value.account=s),"aria-label":"账号",placeholder:"账号",readonly:""},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"password",label:"密码","label-position":"top"},{default:e.withCtx(()=>[e.createElementVNode("div",pe,[e.createVNode(i,{modelValue:l.value.password,"onUpdate:modelValue":t[3]||(t[3]=s=>l.value.password=s),type:"password","show-password":"",readonly:"","aria-label":"密码",placeholder:"密码"},null,8,["modelValue"]),!e.unref(b)&&e.unref(V)(l.value)?(e.openBlock(),e.createBlock(F._sfc_main,{key:0,class:"replace-password",emptyColor:!0,onClickTrigger:P,modelValue:"修改密码",buttonType:"primary"})):e.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])]),_:1},8,["label","name"]),e.createVNode(L,{label:e.unref(f.tabConstants).RESET_PASSWORD_BY_FACE_RECOGNITION.label,name:e.unref(f.tabConstants).RESET_PASSWORD_BY_FACE_RECOGNITION.value},{default:e.withCtx(()=>[e.createVNode(te,{ref_key:"faceRecognitionRef",ref:o,onStartVerify:C,onCompleteVerify:E,onVerifyResult:x},{default:e.withCtx(()=>[e.createVNode(F._sfc_main,{class:"verify-button",loading:_.value,emptyColor:!0,modelValue:"人脸识别",buttonType:"primary"},null,8,["loading"])]),_:1},512)]),_:1},8,["label","name"])]),_:1},8,["modelValue"])]),t[8]||(t[8]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]),e.createVNode(z.ssDialog,{class:"edit-dialog",visible:y.value,title:"用户信息",onBeforeDestroy:U,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",me,[t[9]||(t[9]=e.createElementVNode("div",{class:"edit-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",fe,[e.createElementVNode("div",ve,[e.createVNode(q,{class:"edit-form",ref_key:"editFormRef",ref:T,model:d.value,rules:B},{default:e.withCtx(()=>[e.createVNode(g,{gutter:20},{default:e.withCtx(()=>[e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"password",label:"密码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:d.value.password,"onUpdate:modelValue":t[5]||(t[5]=s=>d.value.password=s),"aria-label":"密码",placeholder:"密码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",_e,[t[10]||(t[10]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Ve,[e.createVNode(F._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:U,modelValue:"取消",buttonType:"info"}),e.createVNode(F._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:Y,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])],64)}}}),Ne=$._export_sfc(ge,[["__scopeId","data-v-e4017c10"]]);exports.default=Ne;
@@ -1,55 +0,0 @@
1
- import { s as g, b as u, p as I, n as w } from "./menu-BxHhjSbR.js";
2
- import { s as l } from "./request-CoGtW0Ux.js";
3
- import { watch as h } from "vue";
4
- const U = u(I), { systemUrl: s } = g(U);
5
- let f = s.value === "" || !s.value ? "http://222.92.178.198:63002" : s.value;
6
- h(
7
- () => s.value,
8
- () => {
9
- f = s.value === "" || !s.value ? "http://222.92.178.198:63002" : s.value;
10
- },
11
- { deep: !0, immediate: !0 }
12
- );
13
- function F(a) {
14
- return l({
15
- url: "http://139.196.154.85:20015/api/face/face-verify",
16
- method: "post",
17
- data: a
18
- });
19
- }
20
- function P(a) {
21
- return l({
22
- url: f + "/platform/updatedata_faceURL",
23
- method: "post",
24
- data: a
25
- });
26
- }
27
- const _ = () => {
28
- const a = u(), { platId: p, userName: d, account: r, isSuperAdmin: m } = w(), c = async (e) => {
29
- if (!e)
30
- return;
31
- const t = new FormData();
32
- t.set("file", e);
33
- const o = a.systemInfo.plat_id;
34
- return t.set("systemKey", o), await F(t);
35
- };
36
- return { updateFacePhoto: async (e) => {
37
- const t = a.loginUserInfo, { password: o } = t || {}, n = {
38
- platId: p.value,
39
- userName: d.value,
40
- password: o,
41
- faceURL: e
42
- };
43
- m.value && (n.platId = ""), await P(n);
44
- }, initVerifySelf: async (e) => {
45
- var i;
46
- const t = await c(e), { account: o, password: n } = ((i = t == null ? void 0 : t.data) == null ? void 0 : i.data) || {};
47
- if (!r)
48
- return !1;
49
- const y = a.loginUserInfo, { password: v } = y || {};
50
- return o === r.value && n === v;
51
- }, initVerify: async (e) => await c(e) };
52
- };
53
- export {
54
- _ as u
55
- };
@@ -1 +0,0 @@
1
- "use strict";const r=require("./menu-Dl3Jfk-c.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,494 +0,0 @@
1
- import { createElementBlock as S, openBlock as E, createElementVNode as d, renderSlot as N, defineComponent as O, ref as $, resolveComponent as F, createVNode as v, withCtx as u, unref as U, reactive as Q, watch as H, onBeforeUnmount as Y, computed as Z, onMounted as ee, createCommentVNode as te, toDisplayString as A, createTextVNode as R } from "vue";
2
- import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { b as P, p as q, l as ae, d as oe, u as se, s as ne, e as ie } from "./menu-BxHhjSbR.js";
4
- import "./index-C4-xNXhM.js";
5
- import { u as le } from "./index-Bq07pl6z.js";
6
- import { E as K, s as ce } from "./request-CoGtW0Ux.js";
7
- import { useRouter as re } from "vue-router";
8
- import { u as de, l as ue, v as me } from "./index-Baf8WN5y.js";
9
- const fe = {}, ge = { class: "left-wrap" }, pe = { class: "left-bg" };
10
- function _e(y, f) {
11
- return E(), S("div", ge, [
12
- d("div", pe, [
13
- N(y.$slots, "img", {}, void 0, !0)
14
- ])
15
- ]);
16
- }
17
- const ve = /* @__PURE__ */ M(fe, [["render", _e], ["__scopeId", "data-v-9b7ee6c9"]]), I = {
18
- ACCOUNT: "account",
19
- FACE: "face"
20
- }, be = { class: "right-wrap" }, he = { class: "tab-content" }, ye = { class: "tab-tips" }, Ce = { class: "tab-content" }, we = { class: "tab-tips" }, Le = /* @__PURE__ */ O({
21
- __name: "index",
22
- props: {
23
- tabList: {
24
- type: Array,
25
- default: []
26
- },
27
- loading: {
28
- type: Boolean,
29
- default: !1
30
- }
31
- },
32
- emits: ["clickLogin", "handleTabChange"],
33
- setup(y, { emit: f }) {
34
- const t = $(I.ACCOUNT), e = f, C = () => {
35
- e("clickLogin", t.value);
36
- }, m = (o) => {
37
- e("handleTabChange", o);
38
- };
39
- return (o, n) => {
40
- const i = F("el-button"), l = F("el-tab-pane"), g = F("el-tabs");
41
- return E(), S("div", be, [
42
- v(g, {
43
- modelValue: t.value,
44
- "onUpdate:modelValue": n[0] || (n[0] = (c) => t.value = c),
45
- class: "right-tabs",
46
- onTabChange: m
47
- }, {
48
- default: u(() => [
49
- v(l, {
50
- name: U(I).ACCOUNT
51
- }, {
52
- label: u(() => [
53
- N(o.$slots, "tabLabel1", {}, void 0, !0)
54
- ]),
55
- default: u(() => [
56
- d("div", he, [
57
- N(o.$slots, "tabContent1", {}, void 0, !0)
58
- ]),
59
- d("div", {
60
- class: "tab-button special",
61
- onClick: C
62
- }, [
63
- v(i, { loading: y.loading }, {
64
- default: u(() => [
65
- N(o.$slots, "tabButton1", {}, void 0, !0)
66
- ]),
67
- _: 3
68
- }, 8, ["loading"])
69
- ]),
70
- d("div", ye, [
71
- N(o.$slots, "tabTips1", {}, void 0, !0)
72
- ])
73
- ]),
74
- _: 3
75
- }, 8, ["name"]),
76
- v(l, {
77
- name: U(I).FACE
78
- }, {
79
- label: u(() => [
80
- N(o.$slots, "tabLabel2", {}, void 0, !0)
81
- ]),
82
- default: u(() => [
83
- d("div", Ce, [
84
- N(o.$slots, "tabContent2", {}, void 0, !0)
85
- ]),
86
- d("div", we, [
87
- N(o.$slots, "tabTips2", {}, void 0, !0)
88
- ])
89
- ]),
90
- _: 3
91
- }, 8, ["name"])
92
- ]),
93
- _: 3
94
- }, 8, ["modelValue"])
95
- ]);
96
- };
97
- }
98
- }), Te = /* @__PURE__ */ M(Le, [["__scopeId", "data-v-8b1962f0"]]), ke = { class: "account-wrap" }, Ne = /* @__PURE__ */ O({
99
- __name: "index",
100
- props: {
101
- activeTabName: {
102
- type: String,
103
- default: ""
104
- },
105
- isClickLogin: {
106
- type: Boolean,
107
- default: !1
108
- }
109
- },
110
- emits: ["handleLoginFormChange"],
111
- setup(y, { emit: f }) {
112
- const t = y, e = Q({
113
- account: "",
114
- password: ""
115
- }), C = Q({
116
- account: [
117
- { required: !0, message: "请输入账号", trigger: "blur" }
118
- ],
119
- password: [
120
- { required: !0, message: "请输入密码", trigger: "blur" }
121
- ]
122
- }), m = $(null), o = f;
123
- return H(() => t.isClickLogin, (n) => {
124
- var i;
125
- n && (t == null ? void 0 : t.activeTabName) === "account" && ((i = m.value) == null || i.validate((l) => {
126
- var g;
127
- for (let c in e)
128
- e.hasOwnProperty(c) && (e[c] = (g = e[c]) == null ? void 0 : g.trim());
129
- o("handleLoginFormChange", l, l ? e : null);
130
- }));
131
- }, {
132
- immediate: !0
133
- }), H(() => t.activeTabName, (n) => {
134
- var i;
135
- n === "account" && ((i = m.value) == null || i.resetFields());
136
- }), (n, i) => {
137
- const l = F("svg-icon"), g = F("el-input"), c = F("el-form-item"), w = F("el-form");
138
- return E(), S("div", ke, [
139
- v(w, {
140
- model: e,
141
- rules: C,
142
- ref_key: "formRef",
143
- ref: m
144
- }, {
145
- default: u(() => [
146
- v(c, {
147
- label: "",
148
- prop: "account"
149
- }, {
150
- default: u(() => [
151
- v(g, {
152
- class: "account-input",
153
- modelValue: e.account,
154
- "onUpdate:modelValue": i[0] || (i[0] = (L) => e.account = L),
155
- placeholder: "请输入账号",
156
- clearable: ""
157
- }, {
158
- prefix: u(() => [
159
- v(l, {
160
- name: "account",
161
- style: { width: "15px", height: "15px" }
162
- })
163
- ]),
164
- _: 1
165
- }, 8, ["modelValue"])
166
- ]),
167
- _: 1
168
- }),
169
- v(c, {
170
- label: "",
171
- prop: "password"
172
- }, {
173
- default: u(() => [
174
- v(g, {
175
- class: "account-input",
176
- modelValue: e.password,
177
- "onUpdate:modelValue": i[1] || (i[1] = (L) => e.password = L),
178
- type: "password",
179
- placeholder: "请输入密码",
180
- "show-password": "",
181
- clearable: ""
182
- }, {
183
- prefix: u(() => [
184
- v(l, {
185
- name: "password",
186
- style: { width: "15px", height: "15px" }
187
- })
188
- ]),
189
- _: 1
190
- }, 8, ["modelValue"])
191
- ]),
192
- _: 1
193
- })
194
- ]),
195
- _: 1
196
- }, 8, ["model", "rules"])
197
- ]);
198
- };
199
- }
200
- }), $e = /* @__PURE__ */ M(Ne, [["__scopeId", "data-v-48037c0f"]]), Ae = { class: "account-wrap" }, Fe = { class: "video-wrap" }, Se = /* @__PURE__ */ O({
201
- __name: "index",
202
- props: {
203
- systemKey: { default: "" },
204
- activeTabName: { default: "" },
205
- isClickLogin: { type: Boolean, default: !1 }
206
- },
207
- emits: ["handleLoginFormChange"],
208
- setup(y, { emit: f }) {
209
- const t = y, e = f;
210
- P(q);
211
- const { initVerify: C } = le(), m = $(null), o = $(null);
212
- let n = !1, i = null;
213
- const l = async (s) => {
214
- if (!s)
215
- return;
216
- const r = await C(s), { data: _ } = r || {}, { account: T, password: k } = (_ == null ? void 0 : _.data) || {}, a = _ == null ? void 0 : _.msg;
217
- if (!T) {
218
- K.warning(a || "识别失败,请重新识别!");
219
- return;
220
- }
221
- e("handleLoginFormChange", !0, {
222
- account: T,
223
- password: k
224
- });
225
- }, g = () => {
226
- if (!o.value || !m.value)
227
- return;
228
- const s = o.value, r = s.getContext("2d"), _ = m.value;
229
- s.width = 200, s.height = 200;
230
- const T = _.videoWidth || 640, k = _.videoHeight || 480, a = Math.min(200 / T, 200 / k), p = T * a, b = k * a, h = (200 - p) / 2, j = (200 - b) / 2;
231
- r == null || r.drawImage(_, 0, 0, T, k, h, j, p, b), s.toBlob((V) => {
232
- if (V) {
233
- const x = new File([V], "face.png", { type: "image/png" });
234
- l(x);
235
- }
236
- }, "image/png");
237
- }, c = async () => {
238
- if (!m.value || n)
239
- return;
240
- const s = m.value;
241
- try {
242
- if (i = await navigator.mediaDevices.getUserMedia({
243
- video: { facingMode: "user" },
244
- // 前置;后置用 'environment'
245
- audio: !1
246
- }), s) {
247
- const r = s;
248
- r.srcObject = i, n = !0;
249
- }
250
- } catch {
251
- K.warning("摄像头启动失败");
252
- }
253
- };
254
- function w(s) {
255
- if (s && (s.getTracks().forEach((r) => r.stop()), m.value)) {
256
- const r = m.value;
257
- r.srcObject = null;
258
- }
259
- }
260
- const L = () => {
261
- w(i), n = !1;
262
- };
263
- return H(() => t.activeTabName, (s) => {
264
- if (s !== I.FACE) {
265
- L();
266
- return;
267
- }
268
- if (s === I.FACE && !n) {
269
- c();
270
- return;
271
- }
272
- }), Y(() => {
273
- L();
274
- }), (s, r) => (E(), S("div", Ae, [
275
- d("div", Fe, [
276
- d("video", {
277
- class: "face-video",
278
- ref_key: "videoRef",
279
- ref: m,
280
- id: "v",
281
- autoplay: "",
282
- playsinline: ""
283
- }, null, 512)
284
- ]),
285
- N(s.$slots, "default", {}, () => [
286
- d("button", {
287
- class: "face-screenshot",
288
- onClick: g
289
- }, "人脸识别")
290
- ], !0),
291
- d("canvas", {
292
- ref_key: "canvasRef",
293
- ref: o,
294
- id: "canvas"
295
- }, null, 512)
296
- ]));
297
- }
298
- }), Ee = /* @__PURE__ */ M(Se, [["__scopeId", "data-v-b64bc91c"]]);
299
- function Ve() {
300
- return ce({
301
- url: "/api/sysAuth/login",
302
- method: "post",
303
- data: {
304
- account: "superadmin",
305
- password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
306
- tenantId: -1,
307
- code: "",
308
- codeId: 0
309
- }
310
- });
311
- }
312
- const X = P(q), { isDefaultModel: Re } = de(), Ie = async (y, f) => {
313
- var C, m, o, n, i, l, g, c, w, L, s, r, _, T;
314
- let t = Object.values(y), e = await ae({
315
- userName: (C = t == null ? void 0 : t[0]) == null ? void 0 : C.trim(),
316
- password: (m = t == null ? void 0 : t[1]) == null ? void 0 : m.trim()
317
- });
318
- if (((o = e == null ? void 0 : e.data) == null ? void 0 : o.status) === 200 && ((i = (n = e == null ? void 0 : e.data) == null ? void 0 : n.result) == null ? void 0 : i.length) <= 0 && (e = await oe({
319
- userName: (l = t == null ? void 0 : t[0]) == null ? void 0 : l.trim(),
320
- password: (g = t == null ? void 0 : t[1]) == null ? void 0 : g.trim(),
321
- path: "系统管理/用户管理",
322
- platId: f
323
- })), ((c = e == null ? void 0 : e.data) == null ? void 0 : c.status) === 200 && ((L = (w = e == null ? void 0 : e.data) == null ? void 0 : w.result) == null ? void 0 : L.length) > 0) {
324
- const a = ((r = (s = e == null ? void 0 : e.data) == null ? void 0 : s.result) == null ? void 0 : r.find((b) => Re(b))) || ((T = (_ = e == null ? void 0 : e.data) == null ? void 0 : _.result) == null ? void 0 : T[0]);
325
- sessionStorage.setItem("systemKey", f && f !== "" ? f : a == null ? void 0 : a.plat_id);
326
- let p = a;
327
- return p.plat_id = p.plat_id ?? f, X.setLoginUserInfo(p), X.setSystemKey(f && f !== "" ? f : a == null ? void 0 : a.plat_id), !0;
328
- } else
329
- return K.error("输入的密码错误,请重新输入"), !1;
330
- }, Me = { class: "login-wrap" }, xe = { class: "login-body" }, Be = { class: "login-body-item left" }, Ue = { class: "title" }, qe = { class: "first-level" }, Ke = {
331
- key: 0,
332
- class: "logo"
333
- }, Oe = ["src"], je = { class: "english-name" }, He = { class: "login-body-item right" }, Pe = /* @__PURE__ */ O({
334
- __name: "index",
335
- props: {
336
- oldSystemKey: {}
337
- },
338
- emits: ["change"],
339
- setup(y, { emit: f }) {
340
- const t = re(), e = se(q), C = P(q), { systemKey: m, systemInfo: o, loginUserInfo: n } = ne(C), i = Z(() => {
341
- var a;
342
- return ((a = o.value) == null ? void 0 : a.logo) || ue;
343
- }), l = $({
344
- // sysCTitle: 'INSOFWORKS',
345
- sysCTitle: "",
346
- sysETitle: "",
347
- // sysETitle: 'Dynamic Test Information System',
348
- loginTitle: "账户密码登录",
349
- tabs: [
350
- {
351
- name: "密码登录",
352
- btnLabel: "登录",
353
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
354
- },
355
- {
356
- name: "人脸识别",
357
- btnLabel: "人脸识别",
358
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
359
- },
360
- {
361
- name: "刷卡登录",
362
- btnLabel: "登录",
363
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
364
- }
365
- ]
366
- }), g = $("account"), c = $(!1), w = $(!1), L = () => {
367
- c.value = !0;
368
- }, s = (a, p) => {
369
- c.value = !1, a && T(p);
370
- }, r = async () => {
371
- var a, p, b;
372
- try {
373
- const h = await Ve();
374
- return ((a = h == null ? void 0 : h.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("loginToken", (b = (p = h.data) == null ? void 0 : p.result) == null ? void 0 : b.accessToken), !0) : !1;
375
- } catch (h) {
376
- K.error(h);
377
- }
378
- return !0;
379
- }, _ = async () => (sessionStorage.setItem("magicToken", "123456"), !0);
380
- ee(async () => {
381
- await r();
382
- });
383
- const T = async (a) => {
384
- var V, x, D, J, W, z, G;
385
- w.value = !0;
386
- let p = [Ie(a, (V = o.value) == null ? void 0 : V.plat_id), r(), _()];
387
- const b = await Promise.all(p), h = b == null ? void 0 : b.every((B) => B);
388
- let j = [
389
- {
390
- id: "1",
391
- request_method: "Post",
392
- request_url: "/platform/getdata",
393
- request_param: JSON.stringify({
394
- userName: "hjj",
395
- password: "1"
396
- }),
397
- request_result: "{}",
398
- is_delete: !1,
399
- request_table: "admin_user",
400
- request_type: "login"
401
- }
402
- ];
403
- try {
404
- const B = ((x = n == null ? void 0 : n.value) == null ? void 0 : x.plat_id) || ((D = o.value) == null ? void 0 : D.plat_id);
405
- await ie({
406
- platId: parseInt(B),
407
- changeContents: [{
408
- tableName: "log",
409
- tableContents: j
410
- }]
411
- });
412
- } catch {
413
- }
414
- h ? (await me(), t.push("/"), C.setLogRecordAsync({
415
- type: "登录",
416
- data: {
417
- account: ((J = n.value) == null ? void 0 : J.account) ?? ((W = n.value) == null ? void 0 : W.账号),
418
- userName: ((z = n.value) == null ? void 0 : z.姓名) || ((G = n.value) == null ? void 0 : G.userName) || "未知"
419
- }
420
- }, "/login", "login"), e.setHasClickEditComp(!1)) : w.value = !1;
421
- }, k = (a) => {
422
- g.value = a, c.value = !1, w.value = !1;
423
- };
424
- return (a, p) => (E(), S("div", Me, [
425
- d("div", xe, [
426
- d("div", Be, [
427
- v(ve, { class: "login-left-bg" }, {
428
- img: u(() => {
429
- var b, h;
430
- return [
431
- d("div", Ue, [
432
- d("div", qe, [
433
- i.value ? (E(), S("div", Ke, [
434
- d("img", {
435
- src: i.value,
436
- alt: ""
437
- }, null, 8, Oe)
438
- ])) : te("", !0),
439
- d("div", je, A(((b = U(o)) == null ? void 0 : b.EnglishName) || "Insofworks"), 1)
440
- ]),
441
- d("div", null, A(((h = U(o)) == null ? void 0 : h.chineseName) || "工业软件建模与开发系统"), 1)
442
- ]),
443
- p[0] || (p[0] = d("div", { class: "divide-line" }, null, -1))
444
- ];
445
- }),
446
- _: 1
447
- })
448
- ]),
449
- d("div", He, [
450
- v(Te, {
451
- loading: w.value,
452
- onClickLogin: L,
453
- onHandleTabChange: k
454
- }, {
455
- title: u(() => [
456
- R(A(l.value.loginTitle), 1)
457
- ]),
458
- tabLabel1: u(() => [
459
- R(A(l.value.tabs[0].name), 1)
460
- ]),
461
- tabContent1: u(() => [
462
- v($e, {
463
- activeTabName: g.value,
464
- isClickLogin: c.value,
465
- onHandleLoginFormChange: s
466
- }, null, 8, ["activeTabName", "isClickLogin"])
467
- ]),
468
- tabButton1: u(() => [
469
- R(A(l.value.tabs[0].btnLabel), 1)
470
- ]),
471
- tabLabel2: u(() => [
472
- R(A(l.value.tabs[1].name), 1)
473
- ]),
474
- tabContent2: u(() => [
475
- v(Ee, {
476
- systemKey: a.oldSystemKey,
477
- activeTabName: g.value,
478
- isClickLogin: c.value,
479
- onHandleLoginFormChange: s
480
- }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
481
- ]),
482
- tabButton2: u(() => [
483
- R(A(l.value.tabs[1].btnLabel), 1)
484
- ]),
485
- _: 1
486
- }, 8, ["loading"])
487
- ])
488
- ])
489
- ]));
490
- }
491
- }), Ze = /* @__PURE__ */ M(Pe, [["__scopeId", "data-v-037cd151"]]);
492
- export {
493
- Ze as default
494
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("vue"),A=require("vue-router"),a=require("./menu-Dl3Jfk-c.cjs"),l={ALLOW:{value:"允许"},DENY:{value:"不允许"}},_="系统管理/用户管理",R="用户列表",b={title:"个人中心",path:"/个人中心",level:1,show:!0,icon:"个人中心",carryData:!0,isPenultimate:!0,isRouter:!0,children:[],childMenus:[]},g={BASE:{label:"基础信息",value:"base"},RESET_PASSWORD_BY_FACE_RECOGNITION:{label:"修改密码",value:"reset-password-by-face-recognition"}},h=()=>{const i=A.useRouter(),o=a.useMenuState(a.pinia),{platId:c,isSuperAdmin:d}=a.useUserInfo(),p=e=>{const{id:t}=e;return{id:t,password:"",allow_reset_password:l.DENY.value}},u=n.ref([]),w=n.computed(()=>{var t,s;const e=(s=(t=u.value)==null?void 0:t.find)==null?void 0:s.call(t,r=>r.property_name===R);return e==null?void 0:e.object_id}),y=async()=>{var s;const e={pageName:_,platId:c.value},t=await a.getPageDataApi(e);return((s=t==null?void 0:t.data)==null?void 0:s.result)||[]},f=async()=>{const e=await y();u.value=e||[]};n.onMounted(async()=>{await f()});const v=n.computed(()=>`content_${w.value}`),I=async e=>({platId:c.value,changeContents:[{tableContents:[e],tableName:v.value}]}),m=e=>{const{allow_reset_password:t}=e;return t===l.ALLOW.value},P=async e=>{const{id:t,password:s,allow_reset_password:r}=e;return I({id:t,password:s,allow_reset_password:r})},C=async e=>{const t=await P(e);return await a.pageBatchUpdateApi(t)};return{isSuperAdmin:d,toPersonalCenter:()=>{const e=a.cloneDeep(b);o.setAsideMenus([e]),o.setActiveMenuPath(e==null?void 0:e.path),o.setActiveAsideMenu(e),i.push(e.path)},isAllowReplacePassword:m,initReplacePassword:async e=>await C(e),initEditForm:p}};exports.tabConstants=g;exports.usePersonalCenter=h;