ss-component-new 1.1.629 → 1.1.630
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y=require("./menu-CcabvNj6.cjs"),X=require("vue-router"),G=require("./login-C7jVTvUQ.cjs"),Z=require("./index-BwU7Nmc_.cjs"),Y=require("./crypto-CRbcEKIz.cjs"),k=require("./index-DecdMM1v.cjs"),j={},z={class:"header-wrapper"},H={class:"header-horizontal"},F={class:"header-logo"},W={class:"header-cTitle"},ee={class:"header-horizontal"},te={class:"header-eTitle"};function ae(g,E){return e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("div",H,[e.createElementVNode("span",F,[e.renderSlot(g.$slots,"logo",{},void 0,!0)]),e.createElementVNode("span",W,[e.renderSlot(g.$slots,"cTitle",{},void 0,!0)])]),e.createElementVNode("div",ee,[e.createElementVNode("span",te,[e.renderSlot(g.$slots,"eTitle",{},void 0,!0)])])])}const oe=I._export_sfc(j,[["render",ae],["__scopeId","data-v-0498c988"]]),ne={},se={class:"left-wrap"},re={class:"left-bg"};function ce(g,E){return e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",re,[e.renderSlot(g.$slots,"img",{},void 0,!0)])])}const le=I._export_sfc(ne,[["render",ce],["__scopeId","data-v-c517996e"]]),ie={class:"right-wrap"},de={class:"right-title"},ue={class:"right-content"},pe={class:"tab-content"},fe={class:"tab-tips"},he=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabClick"],setup(g,{emit:E}){const b=e.ref("account"),i=E,p=()=>{i("clickLogin",b.value)},_=()=>{i("handleTabClick",b.value)};return(d,f)=>{const h=e.resolveComponent("el-button"),v=e.resolveComponent("el-tab-pane"),w=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("div",de,[e.renderSlot(d.$slots,"title",{},void 0,!0)]),e.createElementVNode("div",ue,[e.createVNode(w,{modelValue:b.value,"onUpdate:modelValue":f[0]||(f[0]=N=>b.value=N),class:"right-tabs",onTabClick:_},{default:e.withCtx(()=>[e.createVNode(v,{name:"account"},{label:e.withCtx(()=>[e.renderSlot(d.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",pe,[e.renderSlot(d.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:p},[e.createVNode(h,{loading:g.loading},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"tabButton2",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",fe,[e.renderSlot(d.$slots,"tabTips2",{},void 0,!0)])]),_:3})]),_:3},8,["modelValue"])])])}}}),ye=I._export_sfc(he,[["__scopeId","data-v-98f45317"]]),ge={class:"account-wrap"},Ae=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(g,{emit:E}){const b=g,i=e.reactive({account:"",password:""}),p=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),_=e.ref(null),d=E;return e.watch(()=>b.isClickLogin,f=>{var h;f&&((h=_.value)==null||h.validate(v=>{d("handleLoginFormChange",v,v?i:null)}))},{immediate:!0}),e.watch(()=>b.activeTabName,f=>{var h;f&&((h=_.value)==null||h.resetFields())}),(f,h)=>{const v=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),N=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ge,[e.createVNode(N,{model:i,rules:p,ref_key:"formRef",ref:_},{default:e.withCtx(()=>[e.createVNode(w,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(v,{modelValue:i.account,"onUpdate:modelValue":h[0]||(h[0]=T=>i.account=T),placeholder:"请输入账号","prefix-icon":e.unref(y.user_default),clearable:""},null,8,["modelValue","prefix-icon"])]),_:1}),e.createVNode(w,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(v,{modelValue:i.password,"onUpdate:modelValue":h[1]||(h[1]=T=>i.password=T),type:"password",placeholder:"请输入密码","show-password":"","prefix-icon":e.unref(y.lock_default),clearable:""},null,8,["modelValue","prefix-icon"])]),_:1})]),_:1},8,["model","rules"])])}}}),me=I._export_sfc(Ae,[["__scopeId","data-v-38ad2a96"]]),be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAd9JREFUWEftl71OAkEQx/97QC8XEj+iiTGexo/OnvgE0ChPIIXHQwgP4amxsYZGnkCtpbAxxiyJFEqCJie1yK7ZixhUuNtZYkLUa2/+M7+ZnbnbYTB87P3bIpi1BWCt34UEzpkUF35huWjimpmIlCbp8TMGbA7RX/uus27i2xjI9rgMC+i7jpFvI5EC+XEg2+NlSKTBMKmTuS5QlB2ApgRqz66TVXGDCmmIPhh7RxGl0bXrT15pWNLjVQZkdBuwF0i3qaPAv8StMNvjDwBmdIGQwJyfd+51xn7i4GbekvE7bd8SLQUUOi3fnElR0v3GvEPvaQOpHiIDKe9SlIQlTtq7K41BwexjPosXsQNmkWCCpjYCoqRMtP0HiirY76uQBWQRS1xalhCvnW4aQDmqCmHvR6rQsB/oKIMyClDOd53KoGxTHs8IoGpSKWOgeCI29ZhfaA0EOmpMi26n+beBAIzXkanjGLemDlpkrMbepGmjNMZTFuXY9D0dSF09wE7bhaWrsKD2IV+FgNrNtilwVKCK7zo5SgDqJY0EFJPMeSos1ilAKa++ISBruhoSUNi3Z1hA2+PqyLR/uPRLvm6qJnbqkk9dg0ziEDQV8qJIcE42DRbFnkp3lSZHiRZ8WqXfAFwe+He0YFLSAAAAAElFTkSuQmCC",_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA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3TzMbdS/nTOi34XKc29j+AXyzojCfNKqJAAAAAElFTkSuQmCC",ve={class:"card-wrap"},Ce={class:"card-icon card"},Ee={class:"card-input"},we={class:"card-icon info"},Ne=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""}},emits:["handleCardInput"],setup(g,{emit:E}){const b=g,i=e.ref(""),p=E,_=d=>{p("handleCardInput",d)};return e.watch(()=>b.activeTabName,d=>{d&&(i.value="")}),(d,f)=>{const h=e.resolveComponent("el-image"),v=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",Ce,[e.createVNode(h,{src:e.unref(be),fit:"contain"},null,8,["src"])]),e.createElementVNode("div",Ee,[e.createVNode(v,{modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=w=>i.value=w),onChange:_,clearable:""},null,8,["modelValue"])]),e.createElementVNode("div",we,[e.createVNode(h,{src:e.unref(_e),fit:"contain"},null,8,["src"])])])}}}),Se=I._export_sfc(Ne,[["__scopeId","data-v-23f91251"]]);function ke(){const g={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return y.service({url:"/api/sysAuth/login",method:"post",data:g})}const Te={class:"login-wrap"},Ie={class:"login-header"},Ve={class:"login-body"},xe={class:"login-body-item left"},Be={class:"login-body-item right"},Ke=["title"],Me=["title"],Ue=e.defineComponent({__name:"index",emits:["change"],setup(g,{emit:E}){const b=X.useRouter(),i=G.useLoginState(y.pinia),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浏览器请使用极速模式"}]}),_=e.ref(""),d=e.ref(!1),f=e.ref(!1),h=()=>{d.value=!0},v=a=>{d.value=!1,K(a)},w=(a,o)=>{d.value=!1,a&&K(o)},N=a=>k.getFirstArrayProperty(a),T=a=>{let o;const n=k.convertArrayToTree(a),s=k.addPathToTree(n),u=k.getLeafNodesRecursive(s),A=k.groupByField(u,"parentPath");return o=k.handleRowAuthorityRender(A),o},U=(a,o)=>{var s,u,A;const n=(o==null?void 0:o.userRoles)??(o==null?void 0:o.角色名称);try{if(o.layer&&((s=o==null?void 0:o.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN")return"superAdmin";if(Array.isArray(n)){if((n==null?void 0:n.length)===1){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===(n==null?void 0:n[0])||t.角色名称===(n==null?void 0:n[0])),m=N(r),c=T(r==null?void 0:r[m]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}if((n==null?void 0:n.length)>1){let r=a==null?void 0:a.filter(t=>n==null?void 0:n.includes(t.roleName||(t==null?void 0:t.角色名称)));const m=N(r==null?void 0:r[0]),c=(A=(u=r==null?void 0:r.map(t=>Array.isArray(t==null?void 0:t[m])?t==null?void 0:t[m]:[]))==null?void 0:u.flat())==null?void 0:A.flatMap(t=>t.checkedButtons);return(c==null?void 0:c.length)===0?y.ElMessage.error("该用户没有权限,请联系管理员"):new Set(c)}}if(typeof n=="string"){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===n||(t==null?void 0:t.角色名称)===n),m=N(r),c=T(r==null?void 0:r[m]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}}catch(r){throw new Error(r)}},L=async a=>{var o,n;try{let s=[];const u=await y.getInsofDataApi({key:{systemKey:a==null?void 0:a.systemKey,pageKey:"系统管理/角色管理",type:"data"}});if(u.data.code===200){const A=(n=(o=u.data)==null?void 0:o.result)==null?void 0:n.map(r=>r.value.tableData);s=U(A,a)}if(s)return Array.isArray(s)?Array.from(s):s;throw y.ElMessage.error("获取用户权限失败,请联系管理员"),new Error("获取用户权限失败,请联系管理员")}catch(s){throw y.ElMessage.error("获取用户权限失败,请联系管理员"),new Error(s)}},P=async a=>{var o,n,s,u,A,r,m;try{let c=[],t,S;const x=await y.getInsofDataApi({key:{pageKey:"系统管理/用户管理",type:"data"}}),M=await y.getInsofDataApi({keyLikes:{layer:"superAdmin"}});if(x.data.code===200&&M.data.code===200){const J=(n=(o=M.data)==null?void 0:o.result)==null?void 0:n.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}}),O=(u=(s=x.data)==null?void 0:s.result)==null?void 0:u.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}}),B=[...J,...O];if(t=B==null?void 0:B.find(l=>(l==null?void 0:l.account)===(a==null?void 0:a.account)||(l==null?void 0:l.账号)===(a==null?void 0:a.account)),t){if(((A=t.layer)==null?void 0:A.toUpperCase())!=="SUPERADMIN"&&(!(t!=null&&t.状态)||(t==null?void 0:t.状态)==="禁用"||(t==null?void 0:t.status)==="禁用")){y.ElMessage.error("该用户已被禁用,请联系管理员"),f.value=!1;return}c=await L(t);const{privateKey:l}=await i.getModelSecretAsync(t);let C;if(t.password?C=((r=t.layer)==null?void 0:r.toUpperCase())==="SUPERADMIN"?t.password:Y.decryptData(t.password,l):C=((m=t.layer)==null?void 0:m.toUpperCase())==="SUPERADMIN"?t.password:k.resetPassword,(a==null?void 0:a.password)===C)S=t;else throw S=null,y.ElMessage.error("输入的密码错误,请重新输入"),f.value=!1,new Error("输入的密码错误,请重新输入")}}return S&&c?{matchedUser:S,userAuthority:c}:void 0}catch(c){throw new Error(c)}},D=async a=>{var n,s,u;const o=await P(a);if(o!=null&&o.matchedUser){i.setLoginUserInfo(o.matchedUser),sessionStorage.setItem("authority",JSON.stringify(o.userAuthority));const A=((s=(n=o.matchedUser)==null?void 0:n.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN";return sessionStorage.setItem("isSuperAdmin",JSON.stringify(A)),sessionStorage.setItem("systemKey",(u=o.matchedUser)==null?void 0:u.systemKey),await R(o.matchedUser),!0}else throw f.value=!1,y.ElMessage.error("该用户不存在,请重新输入"),new Error("该用户不存在,请重新输入")},R=async a=>{var n,s,u,A,r,m,c,t,S;const o=await y.getInsofDataApi({key:{layer:"superAdmin",systemKey:a==null?void 0:a.systemKey}});if(o.data.code===200&&(n=o.data)!=null&&n.result&&Array.isArray((s=o.data)==null?void 0:s.result)&&((A=(u=o.data)==null?void 0:u.result)==null?void 0:A.length)>0){const x=(S=(t=(c=(m=(r=o.data)==null?void 0:r.result)==null?void 0:m[0])==null?void 0:c.value)==null?void 0:t.tableData)==null?void 0:S.account;i.setSuperAdminInfo({account:x})}},Q=async()=>{var a,o,n;try{const s=await ke();return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("loginToken",(n=(o=s.data)==null?void 0:o.result)==null?void 0:n.accessToken),!0):!1}catch(s){y.ElMessage.error(s)}},q=async()=>{var a,o,n;try{const s=await y.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("magicToken",(n=(o=s.data)==null?void 0:o.result)==null?void 0:n.accessToken),!0):!1}catch(s){y.ElMessage.error(s)}},K=a=>{f.value=!0;let o=[D(a),Q(),q()];Promise.all(o).then(n=>{(n==null?void 0:n.every(u=>u))&&(Z.verifyStructureDataToStore(),b.push("/"),i.setLogRecordAsync({type:"登录",data:{account:a==null?void 0:a.account}},"/login","login"))})},$=a=>{_.value=a,d.value=!1,f.value=!1};return(a,o)=>(e.openBlock(),e.createElementBlock("div",Te,[e.createElementVNode("div",Ie,[e.createVNode(oe,null,{logo:e.withCtx(()=>o[0]||(o[0]=[])),cTitle:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(p.value.sysCTitle),1)]),eTitle:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(p.value.sysETitle),1)]),_:1})]),e.createElementVNode("div",Ve,[e.createElementVNode("div",xe,[e.createVNode(le,{class:"login-left-bg"})]),e.createElementVNode("div",Be,[e.createVNode(ye,{loading:f.value,onClickLogin:h,onHandleTabClick:$},{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(Se,{activeTabName:_.value,onHandleCardInput:v},null,8,["activeTabName"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value.tabs[0].btnLabel),1)]),tabTips1:e.withCtx(()=>[e.createElementVNode("span",{title:p.value.tabs[0].tips},e.toDisplayString(p.value.tabs[0].tips),9,Ke)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(me,{activeTabName:_.value,isClickLogin:d.value,onHandleLoginFormChange:w},null,8,["activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value.tabs[1].btnLabel),1)]),tabTips2:e.withCtx(()=>[e.createElementVNode("span",{title:p.value.tabs[1].tips},e.toDisplayString(p.value.tabs[1].tips),9,Me)]),_:1},8,["loading"])])])]))}}),Le=I._export_sfc(Ue,[["__scopeId","data-v-a3fad461"]]);exports.default=Le;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y=require("./menu-CcabvNj6.cjs"),X=require("vue-router"),G=require("./login-C7jVTvUQ.cjs"),Z=require("./index-BwU7Nmc_.cjs"),Y=require("./crypto-CRbcEKIz.cjs"),k=require("./index-DecdMM1v.cjs"),j={},z={class:"header-wrapper"},H={class:"header-horizontal"},F={class:"header-logo"},W={class:"header-cTitle"},ee={class:"header-horizontal"},te={class:"header-eTitle"};function ae(g,E){return e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("div",H,[e.createElementVNode("span",F,[e.renderSlot(g.$slots,"logo",{},void 0,!0)]),e.createElementVNode("span",W,[e.renderSlot(g.$slots,"cTitle",{},void 0,!0)])]),e.createElementVNode("div",ee,[e.createElementVNode("span",te,[e.renderSlot(g.$slots,"eTitle",{},void 0,!0)])])])}const oe=I._export_sfc(j,[["render",ae],["__scopeId","data-v-0498c988"]]),ne={},se={class:"left-wrap"},re={class:"left-bg"};function ce(g,E){return e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",re,[e.renderSlot(g.$slots,"img",{},void 0,!0)])])}const le=I._export_sfc(ne,[["render",ce],["__scopeId","data-v-c517996e"]]),ie={class:"right-wrap"},de={class:"right-title"},ue={class:"right-content"},pe={class:"tab-content"},fe={class:"tab-tips"},he=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabClick"],setup(g,{emit:E}){const m=e.ref("account"),i=E,p=()=>{i("clickLogin",m.value)},_=()=>{i("handleTabClick",m.value)};return(d,f)=>{const h=e.resolveComponent("el-button"),v=e.resolveComponent("el-tab-pane"),w=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("div",de,[e.renderSlot(d.$slots,"title",{},void 0,!0)]),e.createElementVNode("div",ue,[e.createVNode(w,{modelValue:m.value,"onUpdate:modelValue":f[0]||(f[0]=N=>m.value=N),class:"right-tabs",onTabClick:_},{default:e.withCtx(()=>[e.createVNode(v,{name:"account"},{label:e.withCtx(()=>[e.renderSlot(d.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",pe,[e.renderSlot(d.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:p},[e.createVNode(h,{loading:g.loading},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"tabButton2",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",fe,[e.renderSlot(d.$slots,"tabTips2",{},void 0,!0)])]),_:3})]),_:3},8,["modelValue"])])])}}}),ye=I._export_sfc(he,[["__scopeId","data-v-98f45317"]]),ge={class:"account-wrap"},Ae=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(g,{emit:E}){const m=g,i=e.reactive({account:"",password:""}),p=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),_=e.ref(null),d=E;return e.watch(()=>m.isClickLogin,f=>{var h;f&&((h=_.value)==null||h.validate(v=>{d("handleLoginFormChange",v,v?i:null)}))},{immediate:!0}),e.watch(()=>m.activeTabName,f=>{var h;f&&((h=_.value)==null||h.resetFields())}),(f,h)=>{const v=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),N=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ge,[e.createVNode(N,{model:i,rules:p,ref_key:"formRef",ref:_},{default:e.withCtx(()=>[e.createVNode(w,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(v,{modelValue:i.account,"onUpdate:modelValue":h[0]||(h[0]=T=>i.account=T),placeholder:"请输入账号","prefix-icon":e.unref(y.user_default),clearable:""},null,8,["modelValue","prefix-icon"])]),_:1}),e.createVNode(w,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(v,{modelValue:i.password,"onUpdate:modelValue":h[1]||(h[1]=T=>i.password=T),type:"password",placeholder:"请输入密码","show-password":"","prefix-icon":e.unref(y.lock_default),clearable:""},null,8,["modelValue","prefix-icon"])]),_:1})]),_:1},8,["model","rules"])])}}}),be=I._export_sfc(Ae,[["__scopeId","data-v-8b5acd23"]]),me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAd9JREFUWEftl71OAkEQx/97QC8XEj+iiTGexo/OnvgE0ChPIIXHQwgP4amxsYZGnkCtpbAxxiyJFEqCJie1yK7ZixhUuNtZYkLUa2/+M7+ZnbnbYTB87P3bIpi1BWCt34UEzpkUF35huWjimpmIlCbp8TMGbA7RX/uus27i2xjI9rgMC+i7jpFvI5EC+XEg2+NlSKTBMKmTuS5QlB2ApgRqz66TVXGDCmmIPhh7RxGl0bXrT15pWNLjVQZkdBuwF0i3qaPAv8StMNvjDwBmdIGQwJyfd+51xn7i4GbekvE7bd8SLQUUOi3fnElR0v3GvEPvaQOpHiIDKe9SlIQlTtq7K41BwexjPosXsQNmkWCCpjYCoqRMtP0HiirY76uQBWQRS1xalhCvnW4aQDmqCmHvR6rQsB/oKIMyClDOd53KoGxTHs8IoGpSKWOgeCI29ZhfaA0EOmpMi26n+beBAIzXkanjGLemDlpkrMbepGmjNMZTFuXY9D0dSF09wE7bhaWrsKD2IV+FgNrNtilwVKCK7zo5SgDqJY0EFJPMeSos1ilAKa++ISBruhoSUNi3Z1hA2+PqyLR/uPRLvm6qJnbqkk9dg0ziEDQV8qJIcE42DRbFnkp3lSZHiRZ8WqXfAFwe+He0YFLSAAAAAElFTkSuQmCC",_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAx1JREFUWEfFV01oE1EQnnmpYJRGL/6gYsGLVCoUzMGLNrO1B4s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={class:"card-icon info"},Ne=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""}},emits:["handleCardInput"],setup(g,{emit:E}){const m=g,i=e.ref(""),p=E,_=d=>{p("handleCardInput",d)};return e.watch(()=>m.activeTabName,d=>{d&&(i.value="")}),(d,f)=>{const h=e.resolveComponent("el-image"),v=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",Ce,[e.createVNode(h,{src:e.unref(me),fit:"contain"},null,8,["src"])]),e.createElementVNode("div",Ee,[e.createVNode(v,{modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=w=>i.value=w),onChange:_,clearable:""},null,8,["modelValue"])]),e.createElementVNode("div",we,[e.createVNode(h,{src:e.unref(_e),fit:"contain"},null,8,["src"])])])}}}),Se=I._export_sfc(Ne,[["__scopeId","data-v-23f91251"]]);function ke(){const g={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return y.service({url:"/api/sysAuth/login",method:"post",data:g})}const Te={class:"login-wrap"},Ie={class:"login-header"},Ve={class:"login-body"},xe={class:"login-body-item left"},Be={class:"login-body-item right"},Ke=["title"],Me=["title"],Ue=e.defineComponent({__name:"index",emits:["change"],setup(g,{emit:E}){const m=X.useRouter(),i=G.useLoginState(y.pinia),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浏览器请使用极速模式"}]}),_=e.ref(""),d=e.ref(!1),f=e.ref(!1),h=()=>{d.value=!0},v=a=>{d.value=!1,K(a)},w=(a,o)=>{d.value=!1,a&&K(o)},N=a=>k.getFirstArrayProperty(a),T=a=>{let o;const n=k.convertArrayToTree(a),s=k.addPathToTree(n),u=k.getLeafNodesRecursive(s),A=k.groupByField(u,"parentPath");return o=k.handleRowAuthorityRender(A),o},U=(a,o)=>{var s,u,A;const n=(o==null?void 0:o.userRoles)??(o==null?void 0:o.角色名称);try{if(o.layer&&((s=o==null?void 0:o.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN")return"superAdmin";if(Array.isArray(n)){if((n==null?void 0:n.length)===1){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===(n==null?void 0:n[0])||t.角色名称===(n==null?void 0:n[0])),b=N(r),c=T(r==null?void 0:r[b]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}if((n==null?void 0:n.length)>1){let r=a==null?void 0:a.filter(t=>n==null?void 0:n.includes(t.roleName||(t==null?void 0:t.角色名称)));const b=N(r==null?void 0:r[0]),c=(A=(u=r==null?void 0:r.map(t=>Array.isArray(t==null?void 0:t[b])?t==null?void 0:t[b]:[]))==null?void 0:u.flat())==null?void 0:A.flatMap(t=>t.checkedButtons);return(c==null?void 0:c.length)===0?y.ElMessage.error("该用户没有权限,请联系管理员"):new Set(c)}}if(typeof n=="string"){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===n||(t==null?void 0:t.角色名称)===n),b=N(r),c=T(r==null?void 0:r[b]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}}catch(r){throw new Error(r)}},L=async a=>{var o,n;try{let s=[];const u=await y.getInsofDataApi({key:{systemKey:a==null?void 0:a.systemKey,pageKey:"系统管理/角色管理",type:"data"}});if(u.data.code===200){const A=(n=(o=u.data)==null?void 0:o.result)==null?void 0:n.map(r=>r.value.tableData);s=U(A,a)}if(s)return Array.isArray(s)?Array.from(s):s;throw y.ElMessage.error("获取用户权限失败,请联系管理员"),new Error("获取用户权限失败,请联系管理员")}catch(s){throw y.ElMessage.error("获取用户权限失败,请联系管理员"),new Error(s)}},P=async a=>{var o,n,s,u,A,r,b;try{let c=[],t,S;const x=await y.getInsofDataApi({key:{pageKey:"系统管理/用户管理",type:"data"}}),M=await y.getInsofDataApi({keyLikes:{layer:"superAdmin"}});if(x.data.code===200&&M.data.code===200){const J=(n=(o=M.data)==null?void 0:o.result)==null?void 0:n.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}}),O=(u=(s=x.data)==null?void 0:s.result)==null?void 0:u.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}}),B=[...J,...O];if(t=B==null?void 0:B.find(l=>(l==null?void 0:l.account)===(a==null?void 0:a.account)||(l==null?void 0:l.账号)===(a==null?void 0:a.account)),t){if(((A=t.layer)==null?void 0:A.toUpperCase())!=="SUPERADMIN"&&(!(t!=null&&t.状态)||(t==null?void 0:t.状态)==="禁用"||(t==null?void 0:t.status)==="禁用")){y.ElMessage.error("该用户已被禁用,请联系管理员"),f.value=!1;return}c=await L(t);const{privateKey:l}=await i.getModelSecretAsync(t);let C;if(t.password?C=((r=t.layer)==null?void 0:r.toUpperCase())==="SUPERADMIN"?t.password:Y.decryptData(t.password,l):C=((b=t.layer)==null?void 0:b.toUpperCase())==="SUPERADMIN"?t.password:k.resetPassword,(a==null?void 0:a.password)===C)S=t;else throw S=null,y.ElMessage.error("输入的密码错误,请重新输入"),f.value=!1,new Error("输入的密码错误,请重新输入")}}return S&&c?{matchedUser:S,userAuthority:c}:void 0}catch(c){throw new Error(c)}},D=async a=>{var n,s,u;const o=await P(a);if(o!=null&&o.matchedUser){i.setLoginUserInfo(o.matchedUser),sessionStorage.setItem("authority",JSON.stringify(o.userAuthority));const A=((s=(n=o.matchedUser)==null?void 0:n.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN";return sessionStorage.setItem("isSuperAdmin",JSON.stringify(A)),sessionStorage.setItem("systemKey",(u=o.matchedUser)==null?void 0:u.systemKey),await R(o.matchedUser),!0}else throw f.value=!1,y.ElMessage.error("该用户不存在,请重新输入"),new Error("该用户不存在,请重新输入")},R=async a=>{var n,s,u,A,r,b,c,t,S;const o=await y.getInsofDataApi({key:{layer:"superAdmin",systemKey:a==null?void 0:a.systemKey}});if(o.data.code===200&&(n=o.data)!=null&&n.result&&Array.isArray((s=o.data)==null?void 0:s.result)&&((A=(u=o.data)==null?void 0:u.result)==null?void 0:A.length)>0){const x=(S=(t=(c=(b=(r=o.data)==null?void 0:r.result)==null?void 0:b[0])==null?void 0:c.value)==null?void 0:t.tableData)==null?void 0:S.account;i.setSuperAdminInfo({account:x})}},Q=async()=>{var a,o,n;try{const s=await ke();return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("loginToken",(n=(o=s.data)==null?void 0:o.result)==null?void 0:n.accessToken),!0):!1}catch(s){y.ElMessage.error(s)}},q=async()=>{var a,o,n;try{const s=await y.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("magicToken",(n=(o=s.data)==null?void 0:o.result)==null?void 0:n.accessToken),!0):!1}catch(s){y.ElMessage.error(s)}},K=a=>{f.value=!0;let o=[D(a),Q(),q()];Promise.all(o).then(n=>{(n==null?void 0:n.every(u=>u))&&(Z.verifyStructureDataToStore(),m.push("/"),i.setLogRecordAsync({type:"登录",data:{account:a==null?void 0:a.account}},"/login","login"))})},$=a=>{_.value=a,d.value=!1,f.value=!1};return(a,o)=>(e.openBlock(),e.createElementBlock("div",Te,[e.createElementVNode("div",Ie,[e.createVNode(oe,null,{logo:e.withCtx(()=>o[0]||(o[0]=[])),cTitle:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(p.value.sysCTitle),1)]),eTitle:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(p.value.sysETitle),1)]),_:1})]),e.createElementVNode("div",Ve,[e.createElementVNode("div",xe,[e.createVNode(le,{class:"login-left-bg"})]),e.createElementVNode("div",Be,[e.createVNode(ye,{loading:f.value,onClickLogin:h,onHandleTabClick:$},{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(Se,{activeTabName:_.value,onHandleCardInput:v},null,8,["activeTabName"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value.tabs[0].btnLabel),1)]),tabTips1:e.withCtx(()=>[e.createElementVNode("span",{title:p.value.tabs[0].tips},e.toDisplayString(p.value.tabs[0].tips),9,Ke)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(be,{activeTabName:_.value,isClickLogin:d.value,onHandleLoginFormChange:w},null,8,["activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value.tabs[1].btnLabel),1)]),tabTips2:e.withCtx(()=>[e.createElementVNode("span",{title:p.value.tabs[1].tips},e.toDisplayString(p.value.tabs[1].tips),9,Me)]),_:1},8,["loading"])])])]))}}),Le=I._export_sfc(Ue,[["__scopeId","data-v-a3fad461"]]);exports.default=Le;
|
|
@@ -5,7 +5,7 @@ import { useRouter as ie } from "vue-router";
|
|
|
5
5
|
import { u as de } from "./login-wUTWXQ7u.js";
|
|
6
6
|
import { v as ue } from "./index-boQYixno.js";
|
|
7
7
|
import { d as pe } from "./crypto-BRyGpjGR.js";
|
|
8
|
-
import { r as fe, g as
|
|
8
|
+
import { r as fe, g as be, c as Ae, a as ye, b as he, d as ge, h as _e } from "./index-r5L5PJP9.js";
|
|
9
9
|
const me = {}, ve = { class: "header-wrapper" }, Ce = { class: "header-horizontal" }, we = { class: "header-logo" }, ke = { class: "header-cTitle" }, Te = { class: "header-horizontal" }, Ie = { class: "header-eTitle" };
|
|
10
10
|
function Ee(g, I) {
|
|
11
11
|
return P(), M("div", ve, [
|
|
@@ -51,8 +51,8 @@ const Le = /* @__PURE__ */ R(Ke, [["render", Be], ["__scopeId", "data-v-c517996e
|
|
|
51
51
|
}, v = () => {
|
|
52
52
|
d("handleTabClick", m.value);
|
|
53
53
|
};
|
|
54
|
-
return (u,
|
|
55
|
-
const
|
|
54
|
+
return (u, b) => {
|
|
55
|
+
const A = K("el-button"), C = K("el-tab-pane"), E = K("el-tabs");
|
|
56
56
|
return P(), M("div", Me, [
|
|
57
57
|
l("div", Pe, [
|
|
58
58
|
T(u.$slots, "title", {}, void 0, !0)
|
|
@@ -60,7 +60,7 @@ const Le = /* @__PURE__ */ R(Ke, [["render", Be], ["__scopeId", "data-v-c517996e
|
|
|
60
60
|
l("div", Re, [
|
|
61
61
|
y(E, {
|
|
62
62
|
modelValue: m.value,
|
|
63
|
-
"onUpdate:modelValue":
|
|
63
|
+
"onUpdate:modelValue": b[0] || (b[0] = (N) => m.value = N),
|
|
64
64
|
class: "right-tabs",
|
|
65
65
|
onTabClick: v
|
|
66
66
|
}, {
|
|
@@ -77,7 +77,7 @@ const Le = /* @__PURE__ */ R(Ke, [["render", Be], ["__scopeId", "data-v-c517996e
|
|
|
77
77
|
class: "tab-button special",
|
|
78
78
|
onClick: f
|
|
79
79
|
}, [
|
|
80
|
-
y(
|
|
80
|
+
y(A, { loading: g.loading }, {
|
|
81
81
|
default: i(() => [
|
|
82
82
|
T(u.$slots, "tabButton2", {}, void 0, !0)
|
|
83
83
|
]),
|
|
@@ -122,17 +122,17 @@ const Le = /* @__PURE__ */ R(Ke, [["render", Be], ["__scopeId", "data-v-c517996e
|
|
|
122
122
|
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
123
123
|
]
|
|
124
124
|
}), v = B(null), u = I;
|
|
125
|
-
return X(() => m.isClickLogin, (
|
|
126
|
-
var
|
|
127
|
-
|
|
125
|
+
return X(() => m.isClickLogin, (b) => {
|
|
126
|
+
var A;
|
|
127
|
+
b && ((A = v.value) == null || A.validate((C) => {
|
|
128
128
|
u("handleLoginFormChange", C, C ? d : null);
|
|
129
129
|
}));
|
|
130
130
|
}, {
|
|
131
131
|
immediate: !0
|
|
132
|
-
}), X(() => m.activeTabName, (
|
|
133
|
-
var
|
|
134
|
-
|
|
135
|
-
}), (
|
|
132
|
+
}), X(() => m.activeTabName, (b) => {
|
|
133
|
+
var A;
|
|
134
|
+
b && ((A = v.value) == null || A.resetFields());
|
|
135
|
+
}), (b, A) => {
|
|
136
136
|
const C = K("el-input"), E = K("el-form-item"), N = K("el-form");
|
|
137
137
|
return P(), M("div", Oe, [
|
|
138
138
|
y(N, {
|
|
@@ -149,7 +149,7 @@ const Le = /* @__PURE__ */ R(Ke, [["render", Be], ["__scopeId", "data-v-c517996e
|
|
|
149
149
|
default: i(() => [
|
|
150
150
|
y(C, {
|
|
151
151
|
modelValue: d.account,
|
|
152
|
-
"onUpdate:modelValue":
|
|
152
|
+
"onUpdate:modelValue": A[0] || (A[0] = (L) => d.account = L),
|
|
153
153
|
placeholder: "请输入账号",
|
|
154
154
|
"prefix-icon": O(ne),
|
|
155
155
|
clearable: ""
|
|
@@ -164,7 +164,7 @@ const Le = /* @__PURE__ */ R(Ke, [["render", Be], ["__scopeId", "data-v-c517996e
|
|
|
164
164
|
default: i(() => [
|
|
165
165
|
y(C, {
|
|
166
166
|
modelValue: d.password,
|
|
167
|
-
"onUpdate:modelValue":
|
|
167
|
+
"onUpdate:modelValue": A[1] || (A[1] = (L) => d.password = L),
|
|
168
168
|
type: "password",
|
|
169
169
|
placeholder: "请输入密码",
|
|
170
170
|
"show-password": "",
|
|
@@ -180,7 +180,7 @@ const Le = /* @__PURE__ */ R(Ke, [["render", Be], ["__scopeId", "data-v-c517996e
|
|
|
180
180
|
]);
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
}), Ve = /* @__PURE__ */ R(De, [["__scopeId", "data-v-
|
|
183
|
+
}), Ve = /* @__PURE__ */ R(De, [["__scopeId", "data-v-8b5acd23"]]), Xe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAd9JREFUWEftl71OAkEQx/97QC8XEj+iiTGexo/OnvgE0ChPIIXHQwgP4amxsYZGnkCtpbAxxiyJFEqCJie1yK7ZixhUuNtZYkLUa2/+M7+ZnbnbYTB87P3bIpi1BWCt34UEzpkUF35huWjimpmIlCbp8TMGbA7RX/uus27i2xjI9rgMC+i7jpFvI5EC+XEg2+NlSKTBMKmTuS5QlB2ApgRqz66TVXGDCmmIPhh7RxGl0bXrT15pWNLjVQZkdBuwF0i3qaPAv8StMNvjDwBmdIGQwJyfd+51xn7i4GbekvE7bd8SLQUUOi3fnElR0v3GvEPvaQOpHiIDKe9SlIQlTtq7K41BwexjPosXsQNmkWCCpjYCoqRMtP0HiirY76uQBWQRS1xalhCvnW4aQDmqCmHvR6rQsB/oKIMyClDOd53KoGxTHs8IoGpSKWOgeCI29ZhfaA0EOmpMi26n+beBAIzXkanjGLemDlpkrMbepGmjNMZTFuXY9D0dSF09wE7bhaWrsKD2IV+FgNrNtilwVKCK7zo5SgDqJY0EFJPMeSos1ilAKa++ISBruhoSUNi3Z1hA2+PqyLR/uPRLvm6qJnbqkk9dg0ziEDQV8qJIcE42DRbFnkp3lSZHiRZ8WqXfAFwe+He0YFLSAAAAAElFTkSuQmCC", qe = "data:image/png;base64,iVBORw0KG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ftfyEom6fpgEhVW3TzMbdS/nTOi34XKc29j+AXyzojCfNKqJAAAAAElFTkSuQmCC", Ge = { class: "card-wrap" }, Ze = { class: "card-icon card" }, Ye = { class: "card-input" }, ze = { class: "card-icon info" }, je = /* @__PURE__ */ D({
|
|
184
184
|
__name: "index",
|
|
185
185
|
props: {
|
|
186
186
|
activeTabName: {
|
|
@@ -195,11 +195,11 @@ const Le = /* @__PURE__ */ R(Ke, [["render", Be], ["__scopeId", "data-v-c517996e
|
|
|
195
195
|
};
|
|
196
196
|
return X(() => m.activeTabName, (u) => {
|
|
197
197
|
u && (d.value = "");
|
|
198
|
-
}), (u,
|
|
199
|
-
const
|
|
198
|
+
}), (u, b) => {
|
|
199
|
+
const A = K("el-image"), C = K("el-input");
|
|
200
200
|
return P(), M("div", Ge, [
|
|
201
201
|
l("div", Ze, [
|
|
202
|
-
y(
|
|
202
|
+
y(A, {
|
|
203
203
|
src: O(Xe),
|
|
204
204
|
fit: "contain"
|
|
205
205
|
}, null, 8, ["src"])
|
|
@@ -207,13 +207,13 @@ const Le = /* @__PURE__ */ R(Ke, [["render", Be], ["__scopeId", "data-v-c517996e
|
|
|
207
207
|
l("div", Ye, [
|
|
208
208
|
y(C, {
|
|
209
209
|
modelValue: d.value,
|
|
210
|
-
"onUpdate:modelValue":
|
|
210
|
+
"onUpdate:modelValue": b[0] || (b[0] = (E) => d.value = E),
|
|
211
211
|
onChange: v,
|
|
212
212
|
clearable: ""
|
|
213
213
|
}, null, 8, ["modelValue"])
|
|
214
214
|
]),
|
|
215
215
|
l("div", ze, [
|
|
216
|
-
y(
|
|
216
|
+
y(A, {
|
|
217
217
|
src: O(qe),
|
|
218
218
|
fit: "contain"
|
|
219
219
|
}, null, 8, ["src"])
|
|
@@ -257,15 +257,15 @@ const We = { class: "login-wrap" }, ea = { class: "login-header" }, aa = { class
|
|
|
257
257
|
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
258
258
|
}
|
|
259
259
|
]
|
|
260
|
-
}), v = B(""), u = B(!1),
|
|
260
|
+
}), v = B(""), u = B(!1), b = B(!1), A = () => {
|
|
261
261
|
u.value = !0;
|
|
262
262
|
}, C = (a) => {
|
|
263
263
|
u.value = !1, q(a);
|
|
264
264
|
}, E = (a, t) => {
|
|
265
265
|
u.value = !1, a && q(t);
|
|
266
|
-
}, N = (a) =>
|
|
266
|
+
}, N = (a) => be(a), L = (a) => {
|
|
267
267
|
let t;
|
|
268
|
-
const s =
|
|
268
|
+
const s = Ae(a), n = ye(s), p = he(n), h = ge(p, "parentPath");
|
|
269
269
|
return t = _e(h), t;
|
|
270
270
|
}, Y = (a, t) => {
|
|
271
271
|
var n, p, h;
|
|
@@ -348,7 +348,7 @@ const We = { class: "login-wrap" }, ea = { class: "login-header" }, aa = { class
|
|
|
348
348
|
}), V = [...te, ...se];
|
|
349
349
|
if (e = V == null ? void 0 : V.find((c) => (c == null ? void 0 : c.account) === (a == null ? void 0 : a.account) || (c == null ? void 0 : c.账号) === (a == null ? void 0 : a.account)), e) {
|
|
350
350
|
if (((h = e.layer) == null ? void 0 : h.toUpperCase()) !== "SUPERADMIN" && (!(e != null && e.状态) || (e == null ? void 0 : e.状态) === "禁用" || (e == null ? void 0 : e.status) === "禁用")) {
|
|
351
|
-
S.error("该用户已被禁用,请联系管理员"),
|
|
351
|
+
S.error("该用户已被禁用,请联系管理员"), b.value = !1;
|
|
352
352
|
return;
|
|
353
353
|
}
|
|
354
354
|
r = await z(e);
|
|
@@ -357,7 +357,7 @@ const We = { class: "login-wrap" }, ea = { class: "login-header" }, aa = { class
|
|
|
357
357
|
if (e.password ? w = ((o = e.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? e.password : pe(e.password, c) : w = ((_ = e.layer) == null ? void 0 : _.toUpperCase()) === "SUPERADMIN" ? e.password : fe, (a == null ? void 0 : a.password) === w)
|
|
358
358
|
U = e;
|
|
359
359
|
else
|
|
360
|
-
throw U = null, S.error("输入的密码错误,请重新输入"),
|
|
360
|
+
throw U = null, S.error("输入的密码错误,请重新输入"), b.value = !1, new Error("输入的密码错误,请重新输入");
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
return U && r ? {
|
|
@@ -375,7 +375,7 @@ const We = { class: "login-wrap" }, ea = { class: "login-header" }, aa = { class
|
|
|
375
375
|
const h = ((n = (s = t.matchedUser) == null ? void 0 : s.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
376
376
|
return sessionStorage.setItem("isSuperAdmin", JSON.stringify(h)), sessionStorage.setItem("systemKey", (p = t.matchedUser) == null ? void 0 : p.systemKey), await H(t.matchedUser), !0;
|
|
377
377
|
} else
|
|
378
|
-
throw
|
|
378
|
+
throw b.value = !1, S.error("该用户不存在,请重新输入"), new Error("该用户不存在,请重新输入");
|
|
379
379
|
}, H = async (a) => {
|
|
380
380
|
var s, n, p, h, o, _, r, e, U;
|
|
381
381
|
const t = await J({
|
|
@@ -413,7 +413,7 @@ const We = { class: "login-wrap" }, ea = { class: "login-header" }, aa = { class
|
|
|
413
413
|
S.error(n);
|
|
414
414
|
}
|
|
415
415
|
}, q = (a) => {
|
|
416
|
-
|
|
416
|
+
b.value = !0;
|
|
417
417
|
let t = [F(a), W(), ee()];
|
|
418
418
|
Promise.all(t).then((s) => {
|
|
419
419
|
(s == null ? void 0 : s.every((p) => p)) && (ue(), m.push("/"), d.setLogRecordAsync({
|
|
@@ -424,7 +424,7 @@ const We = { class: "login-wrap" }, ea = { class: "login-header" }, aa = { class
|
|
|
424
424
|
}, "/login", "login"));
|
|
425
425
|
});
|
|
426
426
|
}, ae = (a) => {
|
|
427
|
-
v.value = a, u.value = !1,
|
|
427
|
+
v.value = a, u.value = !1, b.value = !1;
|
|
428
428
|
};
|
|
429
429
|
return (a, t) => (P(), M("div", We, [
|
|
430
430
|
l("div", ea, [
|
|
@@ -445,8 +445,8 @@ const We = { class: "login-wrap" }, ea = { class: "login-header" }, aa = { class
|
|
|
445
445
|
]),
|
|
446
446
|
l("div", sa, [
|
|
447
447
|
y(Je, {
|
|
448
|
-
loading:
|
|
449
|
-
onClickLogin:
|
|
448
|
+
loading: b.value,
|
|
449
|
+
onClickLogin: A,
|
|
450
450
|
onHandleTabClick: ae
|
|
451
451
|
}, {
|
|
452
452
|
title: i(() => [
|
|
@@ -493,7 +493,7 @@ const We = { class: "login-wrap" }, ea = { class: "login-header" }, aa = { class
|
|
|
493
493
|
])
|
|
494
494
|
]));
|
|
495
495
|
}
|
|
496
|
-
}),
|
|
496
|
+
}), Aa = /* @__PURE__ */ R(ra, [["__scopeId", "data-v-a3fad461"]]);
|
|
497
497
|
export {
|
|
498
|
-
|
|
498
|
+
Aa as default
|
|
499
499
|
};
|