ss-component-new 1.3.7 → 1.3.8

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 (100) hide show
  1. package/dist/{MTLLoader-BDa0EA-y.cjs → MTLLoader-C_XCtjSi.cjs} +1 -1
  2. package/dist/{MTLLoader-DU2_d5qP.js → MTLLoader-YR-bfx1D.js} +37 -37
  3. package/dist/{OrbitControls-B2Ue7hdS.js → OrbitControls-BGsXD_A7.js} +1 -1
  4. package/dist/{OrbitControls-DfhmSOVW.cjs → OrbitControls-CktvE4iE.cjs} +1 -1
  5. package/dist/{URDFLoader-BRTNakjO.cjs → URDFLoader-10oVp_KW.cjs} +1 -1
  6. package/dist/{URDFLoader-BSHChj3i.js → URDFLoader-m1gMdnSQ.js} +189 -189
  7. package/dist/{animationData-Bfm5Jk8y.js → animationData-CpK8d_Vm.js} +26 -26
  8. package/dist/{animationData-CNIRMzHL.cjs → animationData-Cr2ra7rm.cjs} +1 -1
  9. package/dist/{array-B_AocUcb.js → array-Bjl-u8W4.js} +46 -46
  10. package/dist/{array-BuS832Zx.cjs → array-DeuDoE8W.cjs} +1 -1
  11. package/dist/{iconfont-D4sBppfS.js → iconfont-0yJB130V.js} +29 -29
  12. package/dist/{iconfont-kWEJenGZ.cjs → iconfont-DsF7kuG5.cjs} +1 -1
  13. package/dist/{index-jbNDRLVg.js → index--dgrdpZc.js} +5 -5
  14. package/dist/{index-DlchhCKc.js → index-B25NjO6c.js} +8 -8
  15. package/dist/{index-COvNwtxL.cjs → index-BAagNq6Y.cjs} +13 -13
  16. package/dist/{index-BLxE_tkf.cjs → index-BJPBBWWH.cjs} +1 -1
  17. package/dist/{index-BY0bG8F_.cjs → index-BJRBghrb.cjs} +1 -1
  18. package/dist/{index--gImNsHJ.js → index-BVpKugpn.js} +41 -41
  19. package/dist/{index-vCTVD7cV.cjs → index-BWCv7zxy.cjs} +1 -1
  20. package/dist/{index-DgYpyTf-.js → index-BXUByyre.js} +2 -2
  21. package/dist/{index-C3RoPY39.js → index-BhvKYyQB.js} +2 -2
  22. package/dist/index-BiT4eGKv.cjs +1 -0
  23. package/dist/{index-BPKCXbP6.cjs → index-Bl-RZAqq.cjs} +1 -1
  24. package/dist/{index-G9jqtOFo.js → index-C17c1Uft.js} +5 -5
  25. package/dist/{index-zR73jr4m.cjs → index-C765dJQT.cjs} +1 -1
  26. package/dist/{index-BUrYjzWs.js → index-CHmWdcAc.js} +2 -2
  27. package/dist/{index-Bt9rt1NQ.js → index-CL-Hx4b3.js} +3 -3
  28. package/dist/{index-DV3KiKv5.cjs → index-CLWNDZol.cjs} +1 -1
  29. package/dist/{index-sMsCzNtW.js → index-COQpDVsv.js} +1570 -1535
  30. package/dist/{index-Dm4qKk5S.js → index-CPFP3qqA.js} +7 -7
  31. package/dist/{index-MEN9vDHo.cjs → index-CVXrjDFh.cjs} +1 -1
  32. package/dist/{index-DVHBs_Vv.js → index-CWt0sQyb.js} +1948 -1952
  33. package/dist/index-CWxJ6DiY.cjs +13 -0
  34. package/dist/{index-CEzEaG0d.js → index-CXiOVgoz.js} +1 -1
  35. package/dist/{index-CIrXKpNl.cjs → index-Cjqg29ul.cjs} +1 -1
  36. package/dist/{index-C6_1MyLM.cjs → index-CmRBHqQA.cjs} +1 -1
  37. package/dist/{index-Dsh4fjDh.js → index-CnndnmiH.js} +2 -2
  38. package/dist/index-CpbBe_mV.cjs +1 -0
  39. package/dist/{index-BpwKLzrT.js → index-CrMhlZch.js} +7 -7
  40. package/dist/{index-iv5M7d4h.cjs → index-D3ixok8t.cjs} +1 -1
  41. package/dist/{index-B-wqJb1R.cjs → index-D7xMkdUC.cjs} +1 -1
  42. package/dist/{index-f_aTA7O9.js → index-D8HD14bz.js} +1 -1
  43. package/dist/{index-CN5eTGfF.js → index-DBh5Z73C.js} +1 -1
  44. package/dist/index-DIWralYr.js +67 -0
  45. package/dist/{index-CM_8lsuy.js → index-DIZWhNRG.js} +2 -2
  46. package/dist/{index-C8fMwErX.cjs → index-DRTxe12U.cjs} +13 -13
  47. package/dist/{index-R-S0AH15.cjs → index-DS-YTop9.cjs} +1 -1
  48. package/dist/{index-Cw4Pm2PQ.cjs → index-DU9e5EhS.cjs} +1 -1
  49. package/dist/{index-dD_cGWLc.cjs → index-D_Yhv_HV.cjs} +1 -1
  50. package/dist/{index-BWqkJ8tT.cjs → index-DaIE9uY1.cjs} +1 -1
  51. package/dist/index-Ddm0Ov2b.cjs +1 -0
  52. package/dist/{index-BT6DSXQW.js → index-Ddoq7kRQ.js} +9 -9
  53. package/dist/{index-C64aG76g.cjs → index-DjSK2KtV.cjs} +1 -1
  54. package/dist/{index-mpoMK_dv.cjs → index-DqrGdbHq.cjs} +1 -1
  55. package/dist/index-DykfssLt.js +11883 -0
  56. package/dist/{index-C38KGQKj.js → index-NaWMtdUV.js} +2 -2
  57. package/dist/{index-DUygJhjf.js → index-Ss6UXNlA.js} +1711 -1702
  58. package/dist/{index-DGRL8SEt.js → index-Va8AOLWi.js} +1 -1
  59. package/dist/{index-CaDwU086.js → index-eJa2wXja.js} +3 -3
  60. package/dist/{index-CDhojfAp.cjs → index-en40V0e2.cjs} +1 -1
  61. package/dist/{index-BTfRODup.js → index-gfdgTjvQ.js} +3 -3
  62. package/dist/{index-kZhbnU3-.cjs → index-idLKVQbT.cjs} +1 -1
  63. package/dist/{index-Bb7_N8kj.cjs → index-mJ0b0H2w.cjs} +1 -1
  64. package/dist/{index-CEq2QX9L.js → index-nr6V1FzX.js} +7 -7
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js} +33124 -32558
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs} +408 -398
  67. package/dist/{index.vue_vue_type_style_index_1_lang-BybP-dlR.cjs → index.vue_vue_type_style_index_1_lang--4T7j9qz.cjs} +1 -1
  68. package/dist/{index.vue_vue_type_style_index_1_lang-C6hiPOvT.js → index.vue_vue_type_style_index_1_lang-CNh42_ZH.js} +78 -78
  69. package/dist/{main-Bb6uPPmu.js → main-45SEqhTd.js} +4 -4
  70. package/dist/{main-Dms8AM6X.cjs → main-C43lTGvT.cjs} +1 -1
  71. package/dist/{menuIndex-8RF_0N_y.cjs → menuIndex-D52EAwtb.cjs} +1 -1
  72. package/dist/{menuIndex-BwWrdu20.js → menuIndex-DYaogp2R.js} +1 -1
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.css +2 -2
  75. package/dist/ss-component.js +10 -10
  76. package/dist/ss-component2.cjs +1 -1
  77. package/dist/ss-component2.js +11 -11
  78. package/dist/{threeModel-BwQqxP7B.cjs → threeModel-BogeIqke.cjs} +1 -1
  79. package/dist/{threeModel-Dw1HYePN.js → threeModel-C3r4Xf1F.js} +45 -45
  80. package/dist/{threePreview-PdofIeZV.js → threePreview-CkKl3frr.js} +103 -103
  81. package/dist/{threePreview-BlCmiK0A.cjs → threePreview-DOD9HOZn.cjs} +1 -1
  82. package/dist/{threeSceneView-QkRW8pnJ.cjs → threeSceneView-DZvOLWv6.cjs} +1 -1
  83. package/dist/{threeSceneView-aDZwf58h.js → threeSceneView-DlL9pZlj.js} +38 -38
  84. package/dist/{threeSceneViewForCPMPIP-Ds4WSe56.cjs → threeSceneViewForCPMPIP-CZvKvfDx.cjs} +1 -1
  85. package/dist/{threeSceneViewForCPMPIP-JDLX5nri.js → threeSceneViewForCPMPIP-DB0Eczbs.js} +8 -8
  86. package/dist/{threeTrackPathView-BlAgLn32.cjs → threeTrackPathView-DgyAEYfV.cjs} +1 -1
  87. package/dist/{threeTrackPathView-DOy180Fe.js → threeTrackPathView-Eb1bvUXJ.js} +66 -66
  88. package/dist/{threeViewerHost-Bk7K37-4.cjs → threeViewerHost-BMU1tg9c.cjs} +1 -1
  89. package/dist/{threeViewerHost-DNY3nOwS.js → threeViewerHost-Bdzv9iPb.js} +20 -20
  90. package/dist/{urdfTree-nxh-CAg8.cjs → urdfTree-CoK2r17Y.cjs} +1 -1
  91. package/dist/{urdfTree-CeP5yUoC.js → urdfTree-hLtm0aFY.js} +10 -10
  92. package/dist/{workpieceTreePanel-CTC2K239.js → workpieceTreePanel-Ne_ACq86.js} +56 -56
  93. package/dist/{workpieceTreePanel-CZQFw5fE.cjs → workpieceTreePanel-mWvCQyyw.cjs} +1 -1
  94. package/package.json +1 -1
  95. package/dist/index-37GjXUWs.cjs +0 -1
  96. package/dist/index-BdP1gtPp.cjs +0 -13
  97. package/dist/index-BteE57Nz.js +0 -103
  98. package/dist/index-C8FzkPpO.cjs +0 -1
  99. package/dist/index-Dao8XeQ7.js +0 -12544
  100. package/dist/index-qDSdqvf4.cjs +0 -11
@@ -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;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-C8fMwErX.cjs"),_=require("./index-BdP1gtPp.cjs"),r=require("./index-DHdrBDP4.cjs"),C=require("./index-C5pQXH0_.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(_.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-DRTxe12U.cjs"),_=require("./index-CWxJ6DiY.cjs"),r=require("./index-DHdrBDP4.cjs"),C=require("./index-C5pQXH0_.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(_.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
2
- import { S as m } from "./index-DGRL8SEt.js";
3
- import { s as _ } from "./index-DVHBs_Vv.js";
2
+ import { S as m } from "./index-Va8AOLWi.js";
3
+ import { s as _ } from "./index-CWt0sQyb.js";
4
4
  import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
6
6
  __name: "index",
@@ -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=_;
@@ -1,15 +1,15 @@
1
- import { _ as Et, s as Bt, g as Lt } from "./index-Dao8XeQ7.js";
1
+ import { _ as Et, s as Bt, g as Lt } from "./index-DykfssLt.js";
2
2
  import { defineComponent as Ft, defineProps as Ut, ref as z, computed as Ge, onMounted as jt, watch as At, reactive as Pt, resolveComponent as te, createElementBlock as q, openBlock as O, Fragment as Ne, createVNode as J, createCommentVNode as Je, withCtx as V, normalizeStyle as $t, toDisplayString as lt, createElementVNode as We, renderList as st, createTextVNode as at, createBlock as Rt, resolveDynamicComponent as Ot } from "vue";
3
- import { u as zt, a as qt, p as ot, b as Jt, s as Qe, c as xe } from "./index-sMsCzNtW.js";
4
- import { s as Wt } from "./index-CN5eTGfF.js";
5
- import { b as Gt } from "./index-DUygJhjf.js";
3
+ import { u as zt, a as qt, p as ot, b as Jt, s as Qe, c as xe } from "./index-COQpDVsv.js";
4
+ import { s as Wt } from "./index-DBh5Z73C.js";
5
+ import { b as Gt } from "./index-Ss6UXNlA.js";
6
6
  import { useRouter as Nt } from "vue-router";
7
7
  import { a as Qt, e as Xt, f as Yt, g as Zt, h as xt } from "./index-CAPx0_D4.js";
8
8
  import { g as $e, u as Xe, e as it, f as Vt, d as rt } from "./index-B8HqIYd5.js";
9
- import { f as Ht } from "./menuIndex-BwWrdu20.js";
9
+ import { f as Ht } from "./menuIndex-DYaogp2R.js";
10
10
  import { S as ut } from "./index-BHtNKL1L.js";
11
- import { g as Ye, c as pt, n as mt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js";
12
- import { v as Ze } from "./index-BteE57Nz.js";
11
+ import { g as Ye, c as pt, q as mt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
12
+ import { v as Ze } from "./index-DIWralYr.js";
13
13
  import { _ as el } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const ct = (c, p, E = 0) => {
15
15
  let n = c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-MEN9vDHo.cjs"),r=require("./index-C8fMwErX.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-CVXrjDFh.cjs"),r=require("./index-DRTxe12U.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),I=require("./index-R-S0AH15.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs"),x=require("./index-C5pQXH0_.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-COvNwtxL.cjs"),k=require("./index-BpPyaNFa.cjs"),N={class:"avatar-model-wrap"},V={key:0},E=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(i,{emit:b}){const s=i,u=b,h=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),p=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=s.userInfo)==null?void 0:o.头像},o=>{p.value=o?h.value+"/"+o:""},{immediate:!0});const w=async()=>{if(!(s!=null&&s.disabled))try{const o=await B.downloadAvatarApi({url:d.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});_.value=f}catch(o){throw new Error(o)}},S=async o=>{var f,g,t,n,c;try{const r=await B.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(p.value=h.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),d.value=(c=(n=r.data)==null?void 0:n.result)==null?void 0:c.url,u("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},y=async()=>{try{if(!p.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(I.Avatar,{avatarUrl:p.value??"",avatarBlob:_.value,size:i.size,onClickAvatar:w,onSubmitImage:S,onDeleteImage:y,clickStop:s==null?void 0:s.clickStop},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=i.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=i.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),i.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",V,e.toDisplayString(((g=i.userInfo)==null?void 0:g.account)||((t=i.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),T=C._export_sfc(E,[["__scopeId","data-v-e466982c"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:b}){const s=i,u=e.ref({}),h=e.ref([]),d=b,p=t=>{u.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},_=()=>{u.value.dialogShow=!1,d("beforeDestroy")},w=e.computed(()=>"http://222.92.178.198:62001"),S=t=>{var a;const n=t.split(","),c=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let l=r.length;const v=new Uint8Array(l);for(;l--;)v[l]=r.charCodeAt(l);return new Blob([v],{type:c})},y=async t=>{var n,c,r;try{const l=await B.uploadFile(t);((n=l==null?void 0:l.data)==null?void 0:n.code)===200&&d("clickSubmitSign",(r=(c=l.data)==null?void 0:c.result)==null?void 0:r.url)}catch(l){x.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,u.value.dialogShow=!1;const n=new FormData,c=S(t);n.append("file",c,"image.png"),y(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),y(n)};return e.watch(()=>s==null?void 0:s.itemData,t=>{var c,r,l,v;o.value="",(c=u.value)!=null&&c.dialogShow&&(u.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),u.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,h.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const c=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),l=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:u.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=u.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:w.value+"/"+((m=i.userInfo)==null?void 0:m.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:$=>p(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=C._export_sfc(U,[["__scopeId","data-v-ce5a2314"]]);exports.ssAvatar=T;exports.ssSignature=q;
1
+ "use strict";const e=require("vue"),I=require("./index-DS-YTop9.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs"),x=require("./index-C5pQXH0_.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-BAagNq6Y.cjs"),k=require("./index-BpPyaNFa.cjs"),N={class:"avatar-model-wrap"},V={key:0},E=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(i,{emit:b}){const s=i,u=b,h=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),p=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=s.userInfo)==null?void 0:o.头像},o=>{p.value=o?h.value+"/"+o:""},{immediate:!0});const w=async()=>{if(!(s!=null&&s.disabled))try{const o=await B.downloadAvatarApi({url:d.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});_.value=f}catch(o){throw new Error(o)}},S=async o=>{var f,g,t,n,c;try{const r=await B.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(p.value=h.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),d.value=(c=(n=r.data)==null?void 0:n.result)==null?void 0:c.url,u("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},y=async()=>{try{if(!p.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(I.Avatar,{avatarUrl:p.value??"",avatarBlob:_.value,size:i.size,onClickAvatar:w,onSubmitImage:S,onDeleteImage:y,clickStop:s==null?void 0:s.clickStop},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=i.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=i.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),i.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",V,e.toDisplayString(((g=i.userInfo)==null?void 0:g.account)||((t=i.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),T=C._export_sfc(E,[["__scopeId","data-v-e466982c"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:b}){const s=i,u=e.ref({}),h=e.ref([]),d=b,p=t=>{u.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},_=()=>{u.value.dialogShow=!1,d("beforeDestroy")},w=e.computed(()=>"http://222.92.178.198:62001"),S=t=>{var a;const n=t.split(","),c=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let l=r.length;const v=new Uint8Array(l);for(;l--;)v[l]=r.charCodeAt(l);return new Blob([v],{type:c})},y=async t=>{var n,c,r;try{const l=await B.uploadFile(t);((n=l==null?void 0:l.data)==null?void 0:n.code)===200&&d("clickSubmitSign",(r=(c=l.data)==null?void 0:c.result)==null?void 0:r.url)}catch(l){x.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,u.value.dialogShow=!1;const n=new FormData,c=S(t);n.append("file",c,"image.png"),y(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),y(n)};return e.watch(()=>s==null?void 0:s.itemData,t=>{var c,r,l,v;o.value="",(c=u.value)!=null&&c.dialogShow&&(u.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),u.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,h.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const c=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),l=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:u.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=u.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:w.value+"/"+((m=i.userInfo)==null?void 0:m.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:$=>p(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=C._export_sfc(U,[["__scopeId","data-v-ce5a2314"]]);exports.ssAvatar=T;exports.ssSignature=q;
@@ -1,5 +1,5 @@
1
1
  import { ref as c, onMounted as p, watch as u, onUnmounted as f, createElementBlock as v, openBlock as m } from "vue";
2
- import { H as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js";
2
+ import { N as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
3
3
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const z = {
5
5
  __name: "index",
@@ -1,5 +1,5 @@
1
1
  import { ref as O, reactive as I, watch as X, resolveComponent as Y, createBlock as P, openBlock as s, normalizeStyle as U, withCtx as S, renderSlot as B, createElementBlock as a, createCommentVNode as r, withModifiers as u, createElementVNode as j, toDisplayString as q } from "vue";
2
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js";
2
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
3
3
  import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const F = { class: "dialog-title" }, G = {
5
5
  __name: "index",
@@ -0,0 +1,67 @@
1
+ import { g as b, s as E, u as g, b as A, p as S } from "./index-COQpDVsv.js";
2
+ import { ref as y } from "vue";
3
+ const j = (t) => {
4
+ var n, o;
5
+ if (Array.isArray(Object.keys(t)) && ((n = Object.keys(t)) == null ? void 0 : n.length) > 0) {
6
+ let u = [];
7
+ return (o = Object.entries(t)) == null || o.forEach(([i, s]) => {
8
+ var l, c;
9
+ let r = [];
10
+ if (r.push(i), ((l = Object.keys(s)) == null ? void 0 : l.length) > 0) {
11
+ let e = [];
12
+ (c = j(s)) == null || c.forEach((a) => {
13
+ e.push(a);
14
+ }), e == null || e.forEach((a) => {
15
+ r.push(a);
16
+ });
17
+ }
18
+ u.push(r);
19
+ }), u;
20
+ }
21
+ }, _ = (t, n) => {
22
+ var u;
23
+ let o = n;
24
+ return Array.isArray(Object.keys(t)) && ((u = Object.entries(t)) == null || u.forEach(([i, s]) => {
25
+ let r = [i];
26
+ if (typeof s == "object" && s !== null) {
27
+ let l = j(s);
28
+ l == null || l.forEach((c) => {
29
+ r.push(c);
30
+ });
31
+ }
32
+ o.push(r);
33
+ })), o;
34
+ }, O = (t) => {
35
+ const n = {};
36
+ return t.forEach((u) => {
37
+ const i = u.split("/");
38
+ let s = n;
39
+ i.forEach((r) => {
40
+ s[r] || (s[r] = {}), s = s[r];
41
+ });
42
+ }), _(n, []);
43
+ }, h = y(!1), m = y(!1), d = A(S), { loginUserInfo: f } = E(d), v = g(), w = async () => {
44
+ var n, o, u, i, s, r, l;
45
+ let t = await b({
46
+ platId: parseInt((n = f == null ? void 0 : f.value) == null ? void 0 : n.plat_id),
47
+ pageName: "menu"
48
+ });
49
+ if (((u = (o = t == null ? void 0 : t.data) == null ? void 0 : o.result) == null ? void 0 : u.length) > 0) {
50
+ let c = (l = (r = (s = (i = t == null ? void 0 : t.data) == null ? void 0 : i.result) == null ? void 0 : s.filter((e) => {
51
+ var a, p;
52
+ return ((p = e == null ? void 0 : e.object_name) == null ? void 0 : p[((a = e == null ? void 0 : e.object_name) == null ? void 0 : a.length) - 1]) !== "/" && (e == null ? void 0 : e.is_show);
53
+ })) == null ? void 0 : r.sort((e, a) => (e == null ? void 0 : e.object_id) - (a == null ? void 0 : a.object_id))) == null ? void 0 : l.map((e) => {
54
+ var a;
55
+ return (a = e == null ? void 0 : e.object_name) == null ? void 0 : a.replaceAll("**^", "/");
56
+ });
57
+ c = [...new Set(c)], c = O(c), v.setRawMenus(c ?? []), h.value = !0, m.value = !0;
58
+ }
59
+ return {
60
+ menuExist: h.value,
61
+ structureExist: m.value
62
+ };
63
+ };
64
+ export {
65
+ O as m,
66
+ w as v
67
+ };
@@ -1,6 +1,6 @@
1
1
  import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
- import { s as m } from "./index-DVHBs_Vv.js";
3
- import { g as d, c as _ } from "./index-DGRL8SEt.js";
2
+ import { s as m } from "./index-CWt0sQyb.js";
3
+ import { g as d, c as _ } from "./index-Va8AOLWi.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
6
6
  {