ss-component-new 1.1.782 → 1.1.784
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-otX7_WGS.js → array-n3W326vB.js} +1 -1
- package/dist/index-5_Pa0FwS.cjs +1 -0
- package/dist/{index-BhcFdR5G.js → index-60O575Oz.js} +1 -1
- package/dist/{index-5whAsm67.js → index-8M57wWXn.js} +2 -2
- package/dist/{index-DGKeEzy9.cjs → index-B3SJ3ore.cjs} +1 -1
- package/dist/{index-DJQ-pOiD.js → index-B5YA-HdK.js} +16 -16
- package/dist/{index-JpOlxKAP.js → index-B6AggOjn.js} +29 -30
- package/dist/index-B7GVh3G9.cjs +32 -0
- package/dist/{index-DfVrKB8l.js → index-BBJuft4U.js} +9 -9
- package/dist/{index-RQ9sFwj5.js → index-BGLVTZqZ.js} +4 -4
- package/dist/{index-Dp8HzxFF.js → index-BKHqLYAY.js} +11 -10
- package/dist/{index-M0rNjccI.cjs → index-BUxhDIAd.cjs} +1 -1
- package/dist/{index-D0TkCwc6.js → index-BXdedSEl.js} +8 -8
- package/dist/{index-CA4qJ9wa.cjs → index-Bdzht_La.cjs} +1 -1
- package/dist/{index-BNV4po3Y.js → index-BgpiRwVn.js} +239 -235
- package/dist/{index-D_ArEIiO.js → index-BiP7EtYW.js} +10 -10
- package/dist/{index-Ce39i9Ii.js → index-BigM-S-H.js} +4 -4
- package/dist/{index-Bdxt9UIS.cjs → index-ByuxoP_X.cjs} +1 -1
- package/dist/index-C-psCif7.js +313 -0
- package/dist/{index-5k2lTdat.js → index-C1p43bs1.js} +5 -5
- package/dist/{index-DkuPLTEh.cjs → index-C37tr1ub.cjs} +1 -1
- package/dist/{index-DpgYNy5v.js → index-C7TXZRXa.js} +7 -7
- package/dist/{index-Cv9bQGSp.cjs → index-CExPp4sl.cjs} +1 -1
- package/dist/{index-BPIQJNjM.js → index-COm6aK1a.js} +4 -4
- package/dist/{index-BBgoA5MH.js → index-CeXzfKMn.js} +1 -1
- package/dist/index-Ct7VI7NJ.cjs +1 -0
- package/dist/{index-CtT-btro.js → index-DBnefO7r.js} +1 -1
- package/dist/{index-Dmo3AAKn.cjs → index-DEYTf0ma.cjs} +1 -1
- package/dist/index-DHdGy-CR.cjs +1 -0
- package/dist/{index-BPVywHkL.js → index-DHxvQnRL.js} +99 -98
- package/dist/index-DN-JRqLU.cjs +4 -0
- package/dist/index-DhPwtW55.js +5277 -0
- package/dist/{index-DRpTTZCw.cjs → index-Dhd8lDK3.cjs} +1 -1
- package/dist/{index-Sv7uCsaT.js → index-DjR1YKz8.js} +2 -2
- package/dist/{index-BnodWM4h.js → index-DjfN0OQU.js} +4 -4
- package/dist/{index-D8u2sOX_.js → index-DlLzdVnG.js} +5 -5
- package/dist/{index-7J6JsGMu.js → index-DlUDaeXK.js} +18 -18
- package/dist/{index-2pD71heh.cjs → index-Dp5hpmD9.cjs} +1 -1
- package/dist/{index-BBR0DWFl.cjs → index-Dy_442Eg.cjs} +39 -39
- package/dist/{index-Dqizbnwd.cjs → index-GnfuIvtK.cjs} +1 -1
- package/dist/{index-3S1NuxG7.js → index-KNBkZa2c.js} +1 -1
- package/dist/{index-C2ZmAJ3R.cjs → index-LsHf6jxL.cjs} +1 -1
- package/dist/{index-BfgnD_w6.cjs → index-f6_WTox7.cjs} +1 -1
- package/dist/{index-Db8_l0ZU.js → index-k2_gUj2U.js} +3 -3
- package/dist/{index-LBMopPUG.cjs → index-pKUkqRZV.cjs} +1 -1
- package/dist/{index--R1-RLXr.js → index-qX0k1Iok.js} +1 -1
- package/dist/{index-uWMsVdy3.js → index-sEMK1K_P.js} +3969 -3969
- package/dist/{index-BKc9e8YM.cjs → index-saxJYXG3.cjs} +1 -1
- package/dist/{index-C69hmqQF.cjs → index-u33T_BcH.cjs} +1 -1
- package/dist/{index-2PkTmR5x.js → index-wYk0KYhb.js} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-BRrjzB1p.js → index.vue_vue_type_script_setup_true_lang-EfnUCo4w.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-h3qUGPLW.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CQMbDFFH.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_4cdfe270_lang-BkKkNSab.cjs → index.vue_vue_type_style_index_0_scoped_4cdfe270_lang-BsX8oTPP.cjs} +11 -11
- package/dist/{index.vue_vue_type_style_index_0_scoped_4cdfe270_lang-BWra8F5S.js → index.vue_vue_type_style_index_0_scoped_4cdfe270_lang-Ds-wr6Yi.js} +33 -34
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Chq39uQx.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Bsw3J0u-.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-JA8jUb9U.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DmEKMPok.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-Q2gL38G-.js → index.vue_vue_type_style_index_1_lang-Dw2M4Q65.js} +1 -1
- package/dist/{main-Cgb2Euvj.cjs → main-CUUDqKPu.cjs} +1 -1
- package/dist/{main-DkEAkLUT.js → main-DMWO1uAr.js} +5 -5
- package/dist/{modelComp-DuCxxmWx.js → modelComp-AiyIoPqp.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-DdImMm0p.cjs → threeModel-BMoDFfrW.cjs} +1 -1
- package/dist/{threeModel-BNFA5mio.js → threeModel-BwGALPJc.js} +3 -3
- package/dist/{threePreview-DrmFue2l.js → threePreview-8q55v680.js} +1 -1
- package/dist/{threeSceneView-CdTw1Gqi.js → threeSceneView-CM2sNeC8.js} +4 -4
- package/dist/{threeSceneView-DMiE3W66.cjs → threeSceneView-w63E2vUf.cjs} +1 -1
- package/dist/{threeViewerHost-BSygNMch.cjs → threeViewerHost-BFBKHCXf.cjs} +1 -1
- package/dist/{threeViewerHost-DnA5YC82.js → threeViewerHost-M0ruFt7b.js} +3 -3
- package/package.json +1 -1
- package/dist/crypto-BRyGpjGR.js +0 -2004
- package/dist/crypto-CRbcEKIz.cjs +0 -26
- package/dist/index-B1gvLp_Q.cjs +0 -1
- package/dist/index-B2K7_DrW.cjs +0 -1
- package/dist/index-C2ncs-Mb.cjs +0 -7
- package/dist/index-CY53qdIJ.js +0 -3275
- package/dist/index-DCHNk36A.js +0 -292
- package/dist/index-DHYgL-eS.cjs +0 -1
- package/dist/index-_oBMJS-2.cjs +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=require("./index.vue_vue_type_style_index_1_lang-Do5cGYgs.cjs"),F=require("vue-router"),m=require("./index-BBB4VObc.cjs"),W=require("./index-DNoEPtDQ.cjs"),E=require("./index-B7GVh3G9.cjs"),H={},z={class:"left-wrap"},ee={class:"left-bg"};function te(_,N){return e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("div",ee,[e.renderSlot(_.$slots,"img",{},void 0,!0)])])}const ae=T._export_sfc(H,[["render",te],["__scopeId","data-v-9b7ee6c9"]]),ne={class:"right-wrap"},oe={class:"right-title"},se={class:"right-content"},re={class:"tab-content"},ce={class:"tab-tips"},le=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabClick"],setup(_,{emit:N}){const v=e.ref("account"),u=N,A=()=>{u("clickLogin",v.value)},h=()=>{u("handleTabClick",v.value)};return(p,b)=>{const i=e.resolveComponent("el-button"),y=e.resolveComponent("el-tab-pane"),w=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",oe,[e.renderSlot(p.$slots,"title",{},void 0,!0)]),e.createElementVNode("div",se,[e.createVNode(w,{modelValue:v.value,"onUpdate:modelValue":b[0]||(b[0]=I=>v.value=I),class:"right-tabs",onTabClick:h},{default:e.withCtx(()=>[e.createVNode(y,{name:"account"},{label:e.withCtx(()=>[e.renderSlot(p.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",re,[e.renderSlot(p.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:A},[e.createVNode(i,{loading:_.loading},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"tabButton2",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",ce,[e.renderSlot(p.$slots,"tabTips2",{},void 0,!0)])]),_:3})]),_:3},8,["modelValue"])])])}}}),ie=T._export_sfc(le,[["__scopeId","data-v-3ebcb6e2"]]),de={class:"account-wrap"},ue=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(_,{emit:N}){const v=_,u=e.reactive({account:"",password:""}),A=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),h=e.ref(null),p=N;return e.watch(()=>v.isClickLogin,b=>{var i;b&&((i=h.value)==null||i.validate(y=>{p("handleLoginFormChange",y,y?u:null)}))},{immediate:!0}),e.watch(()=>v.activeTabName,b=>{var i;b&&((i=h.value)==null||i.resetFields())}),(b,i)=>{const y=e.resolveComponent("svg-icon"),w=e.resolveComponent("el-input"),I=e.resolveComponent("el-form-item"),B=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",de,[e.createVNode(B,{model:u,rules:A,ref_key:"formRef",ref:h},{default:e.withCtx(()=>[e.createVNode(I,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:u.account,"onUpdate:modelValue":i[0]||(i[0]=S=>u.account=S),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(y,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(I,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:u.password,"onUpdate:modelValue":i[1]||(i[1]=S=>u.password=S),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(y,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),pe=T._export_sfc(ue,[["__scopeId","data-v-b023e8c1"]]),fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAd9JREFUWEftl71OAkEQx/97QC8XEj+iiTGexo/OnvgE0ChPIIXHQwgP4amxsYZGnkCtpbAxxiyJFEqCJie1yK7ZixhUuNtZYkLUa2/+M7+ZnbnbYTB87P3bIpi1BWCt34UEzpkUF35huWjimpmIlCbp8TMGbA7RX/uus27i2xjI9rgMC+i7jpFvI5EC+XEg2+NlSKTBMKmTuS5QlB2ApgRqz66TVXGDCmmIPhh7RxGl0bXrT15pWNLjVQZkdBuwF0i3qaPAv8StMNvjDwBmdIGQwJyfd+51xn7i4GbekvE7bd8SLQUUOi3fnElR0v3GvEPvaQOpHiIDKe9SlIQlTtq7K41BwexjPosXsQNmkWCCpjYCoqRMtP0HiirY76uQBWQRS1xalhCvnW4aQDmqCmHvR6rQsB/oKIMyClDOd53KoGxTHs8IoGpSKWOgeCI29ZhfaA0EOmpMi26n+beBAIzXkanjGLemDlpkrMbepGmjNMZTFuXY9D0dSF09wE7bhaWrsKD2IV+FgNrNtilwVKCK7zo5SgDqJY0EFJPMeSos1ilAKa++ISBruhoSUNi3Z1hA2+PqyLR/uPRLvm6qJnbqkk9dg0ziEDQV8qJIcE42DRbFnkp3lSZHiRZ8WqXfAFwe+He0YFLSAAAAAElFTkSuQmCC",ye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAx1JREFUWEfFV01oE1EQnnmpYJRGL/6gYsGLVCoUzMGLNrO1B4sYKooXQT0JWtSK4KEHEVERPCjUHgqCQlFED4raUmP3bS0UhRQKnrTorQdFBBOkBZP97AuJbNo0+2KF7GlJ3sz3zcw3M2+Z6vxwnfHJmkAqlVrT0NCwB8BepdQuAOuJaEMxgK/M/M33/UlmfpvL5cY7Ojp+2gQXSiCdTq/IZrNniOg0gM1WTplniKi/sbHxbjwe/13NpioBrXUcwB0iarUBrnBmipnPiUh6KfslCXiet9/3/af/CFxmppQ6nEgkhiv5qkhAa90N4Ob/AC/5YOZLItK30OciAlrrAwAe24Iz8yul1A0imgPQ5ft+75LpZj4qIi+D/5cRMILLZDJejTXvcRxnwDgdGxtrzufzS9abiKZisVgiKMwyAlrr8wCu2UZvzjHzgIj0mHet9fH59uyvqnrmXhG5/bc0pZehoaFYNBpN27ZaoLY/mPk1EeUAmDnRFEJgZnZ2Nt7Z2ZkpBFA6rLXeB+B5LdEXM/ARwPZa7Jg5KSJvygi4rnuFiC7aOlJKPSCiR4lEYrw4L0aIaKWl/S3HcS6XEfA8b9T3/d2WDoxORhzHmQxk0JSv2cZeKfVunnj7whJ8ALDNwkFBpMy8Q0SOBQhMA9hkYW9sv4jIzoUEvgFYbeHAEOgFcKK9vf1JUf0tAN5b2BaOMPMvETHLrEyEtgQKTmKx2NpSP7uue4GIri6XgG0JTARDInIkkP5hs6ZrILC4BLWIkJlPicigAZyYmIjOzc19twU35yqKsJY2zGazG5PJZNY4c103SUQPayFARIvb0HYQMfOoiBwMpL8PwEkiMkPMkAl9Kg4i21HMzGdF5F4JxfO8TwA+Axg33RGGzsyVR3GxnUKXETM3iUih5lrrFiK6T0TdRPQCwCoLApWXkTG0WceRSKS1ra1tugSUSqWa5397RkRbwsBD13ExqqoXEqXUYD6fvx6JRLYCOEREXQDWWYCb9q1+IQkIq35XsoC46ncpDWSiftfyEom6fpgEhVW3TzMbdS/nTOi34XKc29j+AXyzojCfNKqJAAAAAElFTkSuQmCC",ge={class:"card-wrap"},me={class:"card-icon card"},Ae={class:"card-input"},he={class:"card-icon info"},be=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""}},emits:["handleCardInput"],setup(_,{emit:N}){const v=_,u=e.ref(""),A=N,h=p=>{A("handleCardInput",p)};return e.watch(()=>v.activeTabName,p=>{p&&(u.value="")}),(p,b)=>{const i=e.resolveComponent("el-image"),y=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",me,[e.createVNode(i,{src:e.unref(fe),fit:"contain"},null,8,["src"])]),e.createElementVNode("div",Ae,[e.createVNode(y,{modelValue:u.value,"onUpdate:modelValue":b[0]||(b[0]=w=>u.value=w),onChange:h,clearable:""},null,8,["modelValue"])]),e.createElementVNode("div",he,[e.createVNode(i,{src:e.unref(ye),fit:"contain"},null,8,["src"])])])}}}),ve=T._export_sfc(be,[["__scopeId","data-v-23f91251"]]);function _e(){const _={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return m.service({url:"/api/sysAuth/login",method:"post",data:_})}const Ce={class:"login-wrap"},we={class:"login-body"},Ee={class:"login-body-item left"},Ne={class:"title"},Se={class:"login-body-item right"},ke=e.defineComponent({__name:"index",emits:["change"],setup(_,{emit:N}){const v=F.useRouter(),u=U.useLoginState(U.pinia),{systemKey:A,systemInfo:h}=U.storeToRefs(u),p=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浏览器请使用极速模式"}]}),b=e.ref(""),i=e.ref(!1),y=e.ref(!1),w=()=>{i.value=!0},I=t=>{i.value=!1,P(t)},B=(t,n)=>{i.value=!1,t&&P(n)},S=t=>E.getFirstArrayProperty(t),L=t=>{let n;const o=E.convertArrayToTree(t),s=E.addPathToTree(o),d=E.getLeafNodesRecursive(s),f=E.groupByField(d,"parentPath");return n=E.handleRowAuthorityRender(f),n},Q=(t,n)=>{var s,d,f;const o=(n==null?void 0:n.userRoles)??(n==null?void 0:n.角色名称);try{if(n.layer&&((s=n==null?void 0:n.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN")return"superAdmin";if(Array.isArray(o)){if((o==null?void 0:o.length)===1){const r=t==null?void 0:t.find(a=>(a==null?void 0:a.roleName)===(o==null?void 0:o[0])||a.角色名称===(o==null?void 0:o[0])),g=S(r),c=L(r==null?void 0:r[g]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(a=>a.checkedButtons):[]:[]}if((o==null?void 0:o.length)>1){let r=t==null?void 0:t.filter(a=>o==null?void 0:o.includes(a.roleName||(a==null?void 0:a.角色名称)));const g=S(r==null?void 0:r[0]),c=(f=(d=r==null?void 0:r.map(a=>Array.isArray(a==null?void 0:a[g])?a==null?void 0:a[g]:[]))==null?void 0:d.flat())==null?void 0:f.flatMap(a=>a.checkedButtons);return(c==null?void 0:c.length)===0?m.ElMessage.error("该用户没有权限,请联系管理员"):new Set(c)}}if(typeof o=="string"){const r=t==null?void 0:t.find(a=>(a==null?void 0:a.roleName)===o||(a==null?void 0:a.角色名称)===o),g=S(r),c=L(r==null?void 0:r[g]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(a=>a.checkedButtons):[]:[]}}catch(r){throw new Error(r)}},q=async t=>{var n,o;try{let s=[];const d=await m.getInsofDataApi({key:{systemKey:A.value?A.value:t==null?void 0:t.systemKey,pageKey:"系统管理/角色管理",type:"data"}});if(d.data.code===200){const f=(o=(n=d.data)==null?void 0:n.result)==null?void 0:o.map(r=>r.value.tableData);s=Q(f,t)}if(s)return Array.isArray(s)?Array.from(s):s;throw m.ElMessage.error("获取用户权限失败,请联系管理员"),new Error("获取用户权限失败,请联系管理员")}catch(s){throw m.ElMessage.error("获取用户权限失败,请联系管理员"),new Error(s)}},O=async t=>{var n,o,s,d,f,r,g;try{let c=[],a,k,x;A.value?x={pageKey:"系统管理/用户管理",type:"data",systemKey:A.value}:x={pageKey:"系统管理/用户管理",type:"data"};const D=await m.getInsofDataApi({key:x});let K;if(!sessionStorage.getItem("systemKey")||sessionStorage.getItem("systemKey")===""?K=await m.getInsofDataApi({key:{layer:"superAdmin"}}):K=await m.getInsofDataApi({key:{layer:"superAdmin",systemKey:sessionStorage.getItem("systemKey")}}),D.data.code===200&&K.data.code===200){const $=(o=(n=K.data)==null?void 0:n.result)==null?void 0:o.map(l=>{var C,V;return{...l.value.tableData,layer:(C=l.key)==null?void 0:C.layer,systemKey:(V=l==null?void 0:l.key)==null?void 0:V.systemKey,id:l.id}}),j=(d=(s=D.data)==null?void 0:s.result)==null?void 0:d.map(l=>{var C,V;return{...l.value.tableData,layer:(C=l.key)==null?void 0:C.layer,systemKey:(V=l==null?void 0:l.key)==null?void 0:V.systemKey,id:l.id}}),M=[...$,...j];if(a=M==null?void 0:M.find(l=>(l==null?void 0:l.account)===(t==null?void 0:t.account)||(l==null?void 0:l.账号)===(t==null?void 0:t.account)),a){if(((f=a.layer)==null?void 0:f.toUpperCase())!=="SUPERADMIN"&&(!(a!=null&&a.状态)||(a==null?void 0:a.状态)==="禁用"||(a==null?void 0:a.status)==="禁用")){m.ElMessage.error("该用户已被禁用,请联系管理员"),y.value=!1;return}c=await q(a);const{privateKey:l}=await u.getModelSecretAsync(a);let C;if(a.password?C=((r=a.layer)==null?void 0:r.toUpperCase())==="SUPERADMIN"?a.password:E.decryptData(a.password,l):C=((g=a.layer)==null?void 0:g.toUpperCase())==="SUPERADMIN"?a.password:E.resetPassword,(t==null?void 0:t.password)===C)k=a;else throw k=null,m.ElMessage.error("输入的密码错误,请重新输入"),y.value=!1,new Error("输入的密码错误,请重新输入")}}return k&&c?{matchedUser:k,userAuthority:c}:void 0}catch(c){throw new Error(c)}},J=async t=>{var o,s,d;const n=await O(t);if(n!=null&&n.matchedUser){u.setLoginUserInfo(n.matchedUser),sessionStorage.setItem("authority",JSON.stringify(n.userAuthority));const f=((s=(o=n.matchedUser)==null?void 0:o.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN";return sessionStorage.setItem("isSuperAdmin",JSON.stringify(f)),sessionStorage.setItem("systemKey",A.value?A.value:(d=n.matchedUser)==null?void 0:d.systemKey),await X(n.matchedUser),!0}else throw y.value=!1,m.ElMessage.error("该用户不存在,请重新输入"),new Error("该用户不存在,请重新输入")},X=async t=>{var o,s,d,f,r,g,c,a,k;const n=await m.getInsofDataApi({key:{layer:"superAdmin",systemKey:A.value?A.value:t==null?void 0:t.systemKey}});if(n.data.code===200&&(o=n.data)!=null&&o.result&&Array.isArray((s=n.data)==null?void 0:s.result)&&((f=(d=n.data)==null?void 0:d.result)==null?void 0:f.length)>0){const x=(k=(a=(c=(g=(r=n.data)==null?void 0:r.result)==null?void 0:g[0])==null?void 0:c.value)==null?void 0:a.tableData)==null?void 0:k.account;u.setSuperAdminInfo({account:x})}},G=async()=>{var t,n,o;try{const s=await _e();return((t=s==null?void 0:s.data)==null?void 0:t.code)===200?(sessionStorage.setItem("loginToken",(o=(n=s.data)==null?void 0:n.result)==null?void 0:o.accessToken),!0):!1}catch(s){m.ElMessage.error(s)}},Z=async()=>{var t,n,o;try{const s=await m.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});return((t=s==null?void 0:s.data)==null?void 0:t.code)===200?(sessionStorage.setItem("magicToken",(o=(n=s.data)==null?void 0:n.result)==null?void 0:o.accessToken),!0):!1}catch(s){m.ElMessage.error(s)}},P=async t=>{y.value=!0;let n=[J(t),G(),Z()];const o=await Promise.all(n);(o==null?void 0:o.every(d=>d))&&(await W.verifyStructureDataToStore(),v.push("/"),u.setLogRecordAsync({type:"登录",data:{account:t==null?void 0:t.account}},"/login","login"))},Y=t=>{b.value=t,i.value=!1,y.value=!1},R=t=>/^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(t);return(t,n)=>(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("div",we,[e.createElementVNode("div",Ee,[e.createVNode(ae,{class:"login-left-bg"},{img:e.withCtx(()=>{var o,s,d,f,r,g;return[e.createElementVNode("div",Ne,[e.createElementVNode("div",null,e.toDisplayString((o=e.unref(h))!=null&&o.EnglishName&&R((s=e.unref(h))==null?void 0:s.EnglishName)?(d=e.unref(h))==null?void 0:d.EnglishName:"INSOFWORKS"),1),e.createElementVNode("div",null,e.toDisplayString((f=e.unref(h))!=null&&f.chineseName&&R((r=e.unref(h))==null?void 0:r.chineseName)?(g=e.unref(h))==null?void 0:g.chineseName:"工业软件集成开发平台"),1)]),n[0]||(n[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",Se,[e.createVNode(ie,{loading:y.value,onClickLogin:w,onHandleTabClick:Y},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(ve,{activeTabName:b.value,onHandleCardInput:I},null,8,["activeTabName"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(pe,{activeTabName:b.value,isClickLogin:i.value,onHandleLoginFormChange:B},null,8,["activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),Ie=T._export_sfc(ke,[["__scopeId","data-v-d55345ec"]]);exports.default=Ie;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as c, onMounted as p, watch as u, onUnmounted as f, createElementBlock as v, openBlock as _ } from "vue";
|
|
2
|
-
import { o as m } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { o as m } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CQMbDFFH.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
|
-
import { g as S, E as v } from "./index-
|
|
2
|
-
import { u as P, a as k, p as K } from "./index.vue_vue_type_style_index_1_lang-
|
|
1
|
+
import { g as S, E as v } from "./index-BXdedSEl.js";
|
|
2
|
+
import { u as P, a as k, p as K } from "./index.vue_vue_type_style_index_1_lang-Dw2M4Q65.js";
|
|
3
3
|
import { ref as h } from "vue";
|
|
4
4
|
const A = P(K), E = k(K), x = h(!1), D = h(!1), j = async () => {
|
|
5
5
|
const I = S({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-DHdGy-CR.cjs");const h=require("./index.vue_vue_type_style_index_1_lang-Do5cGYgs.cjs");require("./array-BmdhSMb4.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DmEKMPok.cjs");require("./index.vue_vue_type_style_index_0_scoped_4cdfe270_lang-BsX8oTPP.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BtErQ8q2.cjs");require("./index-BBB4VObc.cjs");require("./STLLoader-BxpEhvEg.cjs");require("./index-Dy_442Eg.cjs");require("./index-Ct7VI7NJ.cjs");require("./index-B7GVh3G9.cjs");require("vue-router");require("./index-DNoEPtDQ.cjs");const S={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""},pageKey:{type:String,default:""}},emits:["buildContent","openThreeBuild","threeData"],setup(o,{emit:c}){const e=o,i=c,d=h.useLoginState();n.watch(()=>e==null?void 0:e.systemKey,t=>{d.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.systemInfo,t=>{d.setSystemInfo(t)},{immediate:!0});const l=()=>{i("buildContent")},y=()=>{i("setLoginInfo")},m=t=>{i("openThreeBuild",t)},f=t=>{i("threeData",t)},s=()=>{var a;const t=e!=null&&e.windowConfig?(a=e==null?void 0:e.windowConfig)==null?void 0:a.width:window.innerWidth,r=1920,u=16,g=t/r,w=u*g;document.documentElement.style.fontSize=`${w}px`};return n.onMounted(()=>{s(),window.addEventListener("resize",s)}),(t,r)=>{const u=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(u,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:o.windowConfig,systemInfo:o.systemInfo,"old-systemKey":o.systemKey,onBuildContent:l,onOpenThreeBuild:m,pageKey:o.pageKey,onThreeData:f,onSetLoginInfo:y},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey"])])}}},q=C._export_sfc(S,[["__scopeId","data-v-86cc249b"]]);exports.default=q;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { watch as u, onMounted as g, resolveComponent as C, createElementBlock as S, openBlock as B, createVNode as v } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { a as I } from "./index.vue_vue_type_style_index_1_lang-
|
|
4
|
-
import "./array-
|
|
2
|
+
import "./index-DHxvQnRL.js";
|
|
3
|
+
import { a as I } from "./index.vue_vue_type_style_index_1_lang-Dw2M4Q65.js";
|
|
4
|
+
import "./array-n3W326vB.js";
|
|
5
5
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-
|
|
7
|
-
import "./index.vue_vue_type_style_index_0_scoped_4cdfe270_lang-
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Bsw3J0u-.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_0_scoped_4cdfe270_lang-Ds-wr6Yi.js";
|
|
8
8
|
import "./index-BHtNKL1L.js";
|
|
9
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
10
|
-
import "./index-
|
|
9
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CQMbDFFH.js";
|
|
10
|
+
import "./index-BXdedSEl.js";
|
|
11
11
|
import "./STLLoader-DofhZbOw.js";
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
12
|
+
import "./index-sEMK1K_P.js";
|
|
13
|
+
import "./index-C-psCif7.js";
|
|
14
|
+
import "./index-DhPwtW55.js";
|
|
15
15
|
import "vue-router";
|
|
16
|
-
import "./index-
|
|
16
|
+
import "./index-8M57wWXn.js";
|
|
17
17
|
const D = {
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: {
|
|
@@ -68,9 +68,9 @@ const D = {
|
|
|
68
68
|
}, { immediate: !0 }), u(() => t == null ? void 0 : t.systemInfo, (e) => {
|
|
69
69
|
d.setSystemInfo(e);
|
|
70
70
|
}, { immediate: !0 });
|
|
71
|
-
const
|
|
71
|
+
const l = () => {
|
|
72
72
|
o("buildContent");
|
|
73
|
-
},
|
|
73
|
+
}, f = () => {
|
|
74
74
|
o("setLoginInfo");
|
|
75
75
|
}, r = (e) => {
|
|
76
76
|
o("openThreeBuild", e);
|
|
@@ -96,16 +96,16 @@ const D = {
|
|
|
96
96
|
windowConfig: n.windowConfig,
|
|
97
97
|
systemInfo: n.systemInfo,
|
|
98
98
|
"old-systemKey": n.systemKey,
|
|
99
|
-
onBuildContent:
|
|
99
|
+
onBuildContent: l,
|
|
100
100
|
onOpenThreeBuild: r,
|
|
101
101
|
pageKey: n.pageKey,
|
|
102
102
|
onThreeData: y,
|
|
103
|
-
onSetLoginInfo:
|
|
103
|
+
onSetLoginInfo: f
|
|
104
104
|
}, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey"])
|
|
105
105
|
]);
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
}, R = /* @__PURE__ */ K(D, [["__scopeId", "data-v-
|
|
108
|
+
}, R = /* @__PURE__ */ K(D, [["__scopeId", "data-v-86cc249b"]]);
|
|
109
109
|
export {
|
|
110
110
|
R as default
|
|
111
111
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { createElementBlock as O, openBlock as J, createElementVNode as g, renderSlot as M, defineComponent as X, ref as B, resolveComponent as I, createVNode as y, withCtx as f, reactive as z, watch as Z, unref as S, toDisplayString as U, createTextVNode as R } from "vue";
|
|
2
2
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { a as le, p as ie, s as de } from "./index.vue_vue_type_style_index_1_lang-
|
|
3
|
+
import { a as le, p as ie, s as de } from "./index.vue_vue_type_style_index_1_lang-Dw2M4Q65.js";
|
|
4
4
|
import { useRouter as ue } from "vue-router";
|
|
5
|
-
import { s as pe, E as k, a as fe, g as Q } from "./index-
|
|
6
|
-
import { v as ye } from "./index-
|
|
7
|
-
import { d as Ae } from "./
|
|
8
|
-
import { r as ge, g as me, c as be, a as he, b as ve, d as _e, h as we } from "./index-CY53qdIJ.js";
|
|
5
|
+
import { s as pe, E as k, a as fe, g as Q } from "./index-BXdedSEl.js";
|
|
6
|
+
import { v as ye } from "./index-8M57wWXn.js";
|
|
7
|
+
import { d as Ae, r as ge, g as be, c as me, a as he, b as ve, e as _e, h as we } from "./index-DhPwtW55.js";
|
|
9
8
|
const Ce = {}, Ie = { class: "left-wrap" }, Ee = { class: "left-bg" };
|
|
10
9
|
function ke(w, K) {
|
|
11
10
|
return J(), O("div", Ie, [
|
|
@@ -28,7 +27,7 @@ const Se = /* @__PURE__ */ V(Ce, [["render", ke], ["__scopeId", "data-v-9b7ee6c9
|
|
|
28
27
|
},
|
|
29
28
|
emits: ["clickLogin", "handleTabClick"],
|
|
30
29
|
setup(w, { emit: K }) {
|
|
31
|
-
const _ = B("account"), d = K,
|
|
30
|
+
const _ = B("account"), d = K, m = () => {
|
|
32
31
|
d("clickLogin", _.value);
|
|
33
32
|
}, h = () => {
|
|
34
33
|
d("handleTabClick", _.value);
|
|
@@ -57,7 +56,7 @@ const Se = /* @__PURE__ */ V(Ce, [["render", ke], ["__scopeId", "data-v-9b7ee6c9
|
|
|
57
56
|
]),
|
|
58
57
|
g("div", {
|
|
59
58
|
class: "tab-button special",
|
|
60
|
-
onClick:
|
|
59
|
+
onClick: m
|
|
61
60
|
}, [
|
|
62
61
|
y(l, { loading: w.loading }, {
|
|
63
62
|
default: f(() => [
|
|
@@ -96,7 +95,7 @@ const Se = /* @__PURE__ */ V(Ce, [["render", ke], ["__scopeId", "data-v-9b7ee6c9
|
|
|
96
95
|
const _ = w, d = z({
|
|
97
96
|
account: "",
|
|
98
97
|
password: ""
|
|
99
|
-
}),
|
|
98
|
+
}), m = z({
|
|
100
99
|
account: [
|
|
101
100
|
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
102
101
|
],
|
|
@@ -119,7 +118,7 @@ const Se = /* @__PURE__ */ V(Ce, [["render", ke], ["__scopeId", "data-v-9b7ee6c9
|
|
|
119
118
|
return J(), O("div", Pe, [
|
|
120
119
|
y(q, {
|
|
121
120
|
model: d,
|
|
122
|
-
rules:
|
|
121
|
+
rules: m,
|
|
123
122
|
ref_key: "formRef",
|
|
124
123
|
ref: h
|
|
125
124
|
}, {
|
|
@@ -186,8 +185,8 @@ const Se = /* @__PURE__ */ V(Ce, [["render", ke], ["__scopeId", "data-v-9b7ee6c9
|
|
|
186
185
|
},
|
|
187
186
|
emits: ["handleCardInput"],
|
|
188
187
|
setup(w, { emit: K }) {
|
|
189
|
-
const _ = w, d = B(""),
|
|
190
|
-
|
|
188
|
+
const _ = w, d = B(""), m = K, h = (u) => {
|
|
189
|
+
m("handleCardInput", u);
|
|
191
190
|
};
|
|
192
191
|
return Z(() => _.activeTabName, (u) => {
|
|
193
192
|
u && (d.value = "");
|
|
@@ -235,7 +234,7 @@ const Ye = { class: "login-wrap" }, Fe = { class: "login-body" }, We = { class:
|
|
|
235
234
|
__name: "index",
|
|
236
235
|
emits: ["change"],
|
|
237
236
|
setup(w, { emit: K }) {
|
|
238
|
-
const _ = ue(), d = le(ie), { systemKey:
|
|
237
|
+
const _ = ue(), d = le(ie), { systemKey: m, systemInfo: h } = de(d), u = B({
|
|
239
238
|
// sysCTitle: 'INSOFWORKS',
|
|
240
239
|
sysCTitle: "",
|
|
241
240
|
sysETitle: "",
|
|
@@ -259,9 +258,9 @@ const Ye = { class: "login-wrap" }, Fe = { class: "login-body" }, We = { class:
|
|
|
259
258
|
l.value = !1, F(e);
|
|
260
259
|
}, q = (e, t) => {
|
|
261
260
|
l.value = !1, e && F(t);
|
|
262
|
-
}, T = (e) =>
|
|
261
|
+
}, T = (e) => be(e), Y = (e) => {
|
|
263
262
|
let t;
|
|
264
|
-
const s =
|
|
263
|
+
const s = me(e), n = he(s), i = ve(n), p = _e(i, "parentPath");
|
|
265
264
|
return t = we(p), t;
|
|
266
265
|
}, H = (e, t) => {
|
|
267
266
|
var n, i, p;
|
|
@@ -271,17 +270,17 @@ const Ye = { class: "login-wrap" }, Fe = { class: "login-body" }, We = { class:
|
|
|
271
270
|
return "superAdmin";
|
|
272
271
|
if (Array.isArray(s)) {
|
|
273
272
|
if ((s == null ? void 0 : s.length) === 1) {
|
|
274
|
-
const o = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.roleName) === (s == null ? void 0 : s[0]) || a.角色名称 === (s == null ? void 0 : s[0])),
|
|
273
|
+
const o = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.roleName) === (s == null ? void 0 : s[0]) || a.角色名称 === (s == null ? void 0 : s[0])), b = T(o), r = Y(o == null ? void 0 : o[b]);
|
|
275
274
|
return o && r && Array.isArray(r) ? o ? r == null ? void 0 : r.flatMap((a) => a.checkedButtons) : [] : [];
|
|
276
275
|
}
|
|
277
276
|
if ((s == null ? void 0 : s.length) > 1) {
|
|
278
277
|
let o = e == null ? void 0 : e.filter((a) => s == null ? void 0 : s.includes(a.roleName || (a == null ? void 0 : a.角色名称)));
|
|
279
|
-
const
|
|
278
|
+
const b = T(o == null ? void 0 : o[0]), r = (p = (i = o == null ? void 0 : o.map((a) => Array.isArray(a == null ? void 0 : a[b]) ? a == null ? void 0 : a[b] : [])) == null ? void 0 : i.flat()) == null ? void 0 : p.flatMap((a) => a.checkedButtons);
|
|
280
279
|
return (r == null ? void 0 : r.length) === 0 ? k.error("该用户没有权限,请联系管理员") : new Set(r);
|
|
281
280
|
}
|
|
282
281
|
}
|
|
283
282
|
if (typeof s == "string") {
|
|
284
|
-
const o = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.roleName) === s || (a == null ? void 0 : a.角色名称) === s),
|
|
283
|
+
const o = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.roleName) === s || (a == null ? void 0 : a.角色名称) === s), b = T(o), r = Y(o == null ? void 0 : o[b]);
|
|
285
284
|
return o && r && Array.isArray(r) ? o ? r == null ? void 0 : r.flatMap((a) => a.checkedButtons) : [] : [];
|
|
286
285
|
}
|
|
287
286
|
} catch (o) {
|
|
@@ -294,7 +293,7 @@ const Ye = { class: "login-wrap" }, Fe = { class: "login-body" }, We = { class:
|
|
|
294
293
|
const i = await Q({
|
|
295
294
|
key: {
|
|
296
295
|
// systemKey: user?.systemKey,
|
|
297
|
-
systemKey:
|
|
296
|
+
systemKey: m.value ? m.value : e == null ? void 0 : e.systemKey,
|
|
298
297
|
// pageKey: '/系统管理/角色管理',
|
|
299
298
|
pageKey: "系统管理/角色管理",
|
|
300
299
|
type: "data"
|
|
@@ -311,15 +310,15 @@ const Ye = { class: "login-wrap" }, Fe = { class: "login-body" }, We = { class:
|
|
|
311
310
|
throw k.error("获取用户权限失败,请联系管理员"), new Error(n);
|
|
312
311
|
}
|
|
313
312
|
}, ee = async (e) => {
|
|
314
|
-
var t, s, n, i, p, o,
|
|
313
|
+
var t, s, n, i, p, o, b;
|
|
315
314
|
try {
|
|
316
315
|
let r = [], a, N, P;
|
|
317
|
-
|
|
316
|
+
m.value ? P = {
|
|
318
317
|
// pageKey: '/系统管理/用户管理',
|
|
319
318
|
pageKey: "系统管理/用户管理",
|
|
320
319
|
type: "data",
|
|
321
320
|
// 通过electron传递的值获取模型key,解决多账号导入同一模型,账号名重复权限失败问题
|
|
322
|
-
systemKey:
|
|
321
|
+
systemKey: m.value
|
|
323
322
|
} : P = {
|
|
324
323
|
// pageKey: '/系统管理/用户管理',
|
|
325
324
|
pageKey: "系统管理/用户管理",
|
|
@@ -365,7 +364,7 @@ const Ye = { class: "login-wrap" }, Fe = { class: "login-body" }, We = { class:
|
|
|
365
364
|
r = await $(a);
|
|
366
365
|
const { privateKey: c } = await d.getModelSecretAsync(a);
|
|
367
366
|
let C;
|
|
368
|
-
if (a.password ? C = ((o = a.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? a.password : Ae(a.password, c) : C = ((
|
|
367
|
+
if (a.password ? C = ((o = a.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? a.password : Ae(a.password, c) : C = ((b = a.layer) == null ? void 0 : b.toUpperCase()) === "SUPERADMIN" ? a.password : ge, (e == null ? void 0 : e.password) === C)
|
|
369
368
|
N = a;
|
|
370
369
|
else
|
|
371
370
|
throw N = null, k.error("输入的密码错误,请重新输入"), A.value = !1, new Error("输入的密码错误,请重新输入");
|
|
@@ -384,21 +383,21 @@ const Ye = { class: "login-wrap" }, Fe = { class: "login-body" }, We = { class:
|
|
|
384
383
|
if (t != null && t.matchedUser) {
|
|
385
384
|
d.setLoginUserInfo(t.matchedUser), sessionStorage.setItem("authority", JSON.stringify(t.userAuthority));
|
|
386
385
|
const p = ((n = (s = t.matchedUser) == null ? void 0 : s.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
387
|
-
return sessionStorage.setItem("isSuperAdmin", JSON.stringify(p)), sessionStorage.setItem("systemKey",
|
|
386
|
+
return sessionStorage.setItem("isSuperAdmin", JSON.stringify(p)), sessionStorage.setItem("systemKey", m.value ? m.value : (i = t.matchedUser) == null ? void 0 : i.systemKey), await te(t.matchedUser), !0;
|
|
388
387
|
} else
|
|
389
388
|
throw A.value = !1, k.error("该用户不存在,请重新输入"), new Error("该用户不存在,请重新输入");
|
|
390
389
|
}, te = async (e) => {
|
|
391
|
-
var s, n, i, p, o,
|
|
390
|
+
var s, n, i, p, o, b, r, a, N;
|
|
392
391
|
const t = await Q({
|
|
393
392
|
key: {
|
|
394
393
|
// pageKey: '/user',
|
|
395
394
|
layer: "superAdmin",
|
|
396
|
-
systemKey:
|
|
395
|
+
systemKey: m.value ? m.value : e == null ? void 0 : e.systemKey
|
|
397
396
|
// systemKey: user?.systemKey
|
|
398
397
|
}
|
|
399
398
|
});
|
|
400
399
|
if (t.data.code === 200 && (s = t.data) != null && s.result && Array.isArray((n = t.data) == null ? void 0 : n.result) && ((p = (i = t.data) == null ? void 0 : i.result) == null ? void 0 : p.length) > 0) {
|
|
401
|
-
const P = (N = (a = (r = (
|
|
400
|
+
const P = (N = (a = (r = (b = (o = t.data) == null ? void 0 : o.result) == null ? void 0 : b[0]) == null ? void 0 : r.value) == null ? void 0 : a.tableData) == null ? void 0 : N.account;
|
|
402
401
|
d.setSuperAdminInfo({
|
|
403
402
|
account: P
|
|
404
403
|
});
|
|
@@ -442,11 +441,11 @@ const Ye = { class: "login-wrap" }, Fe = { class: "login-body" }, We = { class:
|
|
|
442
441
|
g("div", We, [
|
|
443
442
|
y(Se, { class: "login-left-bg" }, {
|
|
444
443
|
img: f(() => {
|
|
445
|
-
var s, n, i, p, o,
|
|
444
|
+
var s, n, i, p, o, b;
|
|
446
445
|
return [
|
|
447
446
|
g("div", je, [
|
|
448
447
|
g("div", null, U((s = S(h)) != null && s.EnglishName && W((n = S(h)) == null ? void 0 : n.EnglishName) ? (i = S(h)) == null ? void 0 : i.EnglishName : "INSOFWORKS"), 1),
|
|
449
|
-
g("div", null, U((p = S(h)) != null && p.chineseName && W((o = S(h)) == null ? void 0 : o.chineseName) ? (
|
|
448
|
+
g("div", null, U((p = S(h)) != null && p.chineseName && W((o = S(h)) == null ? void 0 : o.chineseName) ? (b = S(h)) == null ? void 0 : b.chineseName : "工业软件集成开发平台"), 1)
|
|
450
449
|
]),
|
|
451
450
|
t[0] || (t[0] = g("div", { class: "divide-line" }, null, -1))
|
|
452
451
|
];
|
|
@@ -494,7 +493,7 @@ const Ye = { class: "login-wrap" }, Fe = { class: "login-body" }, We = { class:
|
|
|
494
493
|
])
|
|
495
494
|
]));
|
|
496
495
|
}
|
|
497
|
-
}),
|
|
496
|
+
}), ra = /* @__PURE__ */ V(He, [["__scopeId", "data-v-d55345ec"]]);
|
|
498
497
|
export {
|
|
499
|
-
|
|
498
|
+
ra as default
|
|
500
499
|
};
|