ss-component-new 1.2.33 → 1.2.34
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"),P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),i=require("./index-DEBf-IBT.cjs"),k=require("./index.vue_vue_type_style_index_1_lang-C4diM8a_.cjs"),G=require("vue-router"),Q=require("./index-DlHrVgZ8.cjs"),X={},Y={class:"left-wrap"},Z={class:"left-bg"};function ee(V,T){return e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("div",Z,[e.renderSlot(V.$slots,"img",{},void 0,!0)])])}const te=P._export_sfc(X,[["render",ee],["__scopeId","data-v-9b7ee6c9"]]),ae={class:"right-wrap"},ne={class:"tab-content"},oe={class:"tab-tips"},se={class:"tab-content"},re={class:"tab-tips"},ce=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(V,{emit:T}){const h=e.ref("account"),p=T,A=()=>{p("clickLogin",h.value)},b=f=>{p("handleTabChange",f)};return(f,m)=>{const g=e.resolveComponent("el-button"),_=e.resolveComponent("el-tab-pane"),v=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(v,{modelValue:h.value,"onUpdate:modelValue":m[0]||(m[0]=l=>h.value=l),class:"right-tabs",onTabChange:b},{default:e.withCtx(()=>[e.createVNode(_,{name:"account"},{label:e.withCtx(()=>[e.renderSlot(f.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",ne,[e.renderSlot(f.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:A},[e.createVNode(g,{loading:V.loading},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",oe,[e.renderSlot(f.$slots,"tabTips1",{},void 0,!0)])]),_:3}),e.createVNode(_,{name:"face"},{label:e.withCtx(()=>[e.renderSlot(f.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",se,[e.renderSlot(f.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",re,[e.renderSlot(f.$slots,"tabTips2",{},void 0,!0)])]),_:3})]),_:3},8,["modelValue"])])}}}),le=P._export_sfc(ce,[["__scopeId","data-v-839a9593"]]),ie={class:"account-wrap"},de=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(V,{emit:T}){const h=V,p=e.reactive({account:"",password:""}),A=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),b=e.ref(null),f=T;return e.watch(()=>h.isClickLogin,m=>{var g;m&&(h==null?void 0:h.activeTabName)==="account"&&((g=b.value)==null||g.validate(_=>{var v;for(let l in p)p.hasOwnProperty(l)&&(p[l]=(v=p[l])==null?void 0:v.trim());f("handleLoginFormChange",_,_?p:null)}))},{immediate:!0}),e.watch(()=>h.activeTabName,m=>{var g;m==="account"&&((g=b.value)==null||g.resetFields())}),(m,g)=>{const _=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-input"),l=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(w,{model:p,rules:A,ref_key:"formRef",ref:b},{default:e.withCtx(()=>[e.createVNode(l,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(v,{class:"account-input",modelValue:p.account,"onUpdate:modelValue":g[0]||(g[0]=C=>p.account=C),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(_,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(l,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(v,{class:"account-input",modelValue:p.password,"onUpdate:modelValue":g[1]||(g[1]=C=>p.password=C),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(_,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),ue=P._export_sfc(de,[["__scopeId","data-v-48037c0f"]]);function pe(V){return i.service({url:"http://139.196.154.85:20015/api/face/face-verify",method:"post",data:V})}const fe={class:"account-wrap"},ye={class:"video-wrap"},ge=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(V,{emit:T}){const h=V,p=T,A=i.useLoginState(i.pinia),b=e.ref(null),f=e.ref(null);let m=!1;const g=async l=>{if(!l)return;const w=new FormData;w.set("file",l),h.systemKey&&w.set("systemKey",h.systemKey),console.log("Face Recognition",h.systemKey);const C=await pe(w),{data:S}=C||{},{account:x,password:I,layer:M}=(S==null?void 0:S.data)||{},L=S==null?void 0:S.msg;if(!x){i.ElMessage.warning(L||"识别失败,请重新识别!");return}const{privateKey:D}=await A.getModelSecretAsync();let $=I;M!=="superAdmin"&&($=k.decryptData(I,D)),p("handleLoginFormChange",!0,{account:x,password:$})},_=()=>{if(!f.value||!b.value)return;const l=f.value,w=l.getContext("2d"),C=b.value;l.width=200,l.height=200;const S=C.videoWidth||640,x=C.videoHeight||480,I=Math.min(200/S,200/x),M=S*I,L=x*I,D=(200-M)/2,$=(200-L)/2;w==null||w.drawImage(C,0,0,S,x,D,$,M,L),l.toBlob(R=>{if(R){const O=new File([R],"face.png",{type:"image/png"});g(O)}},"image/png")},v=async()=>{if(!b.value||m)return;const l=b.value;try{const w=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1});if(l){const C=l;C.srcObject=w,m=!0}}catch{i.ElMessage.warning("摄像头启动失败")}};return e.watch(()=>h.activeTabName,l=>{l==="face"&&!m&&v()}),e.onMounted(()=>{v()}),(l,w)=>(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("div",ye,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:b,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("button",{class:"face-screenshot",onClick:_},"人脸识别"),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:f,id:"canvas"},null,512)]))}}),me=P._export_sfc(ge,[["__scopeId","data-v-5538dabd"]]);function ve(){const V={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return i.service({url:"/api/sysAuth/login",method:"post",data:V})}const he={class:"login-wrap"},be={class:"login-body"},_e={class:"login-body-item left"},we={class:"title"},Ce={class:"login-body-item right"},Ne=e.defineComponent({__name:"index",props:{oldSystemKey:{}},emits:["change"],setup(V,{emit:T}){const h=G.useRouter(),p=i.useLoginState(i.pinia),{systemKey:A,systemInfo:b,loginUserInfo:f}=i.storeToRefs(p),m=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浏览器请使用极速模式"}]}),g=e.ref("account"),_=e.ref(!1),v=e.ref(!1),l=()=>{_.value=!0},w=(a,n)=>{_.value=!1,a&&O(n)},C=a=>k.getFirstArrayProperty(a),S=a=>{let n;const o=k.convertArrayToTree(a),s=k.addPathToTree(o),d=k.getLeafNodesRecursive(s),y=k.groupByField(d,"parentPath");return n=k.handleRowAuthorityRender(y),n},x=(a,n)=>{var s,d,y;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=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===(o==null?void 0:o[0])||t.角色名称===(o==null?void 0:o[0])),N=C(r),c=S(r==null?void 0:r[N]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}if((o==null?void 0:o.length)>1){let r=a==null?void 0:a.filter(t=>o==null?void 0:o.includes(t.roleName||(t==null?void 0:t.角色名称)));const N=C(r==null?void 0:r[0]),c=(y=(d=r==null?void 0:r.map(t=>Array.isArray(t==null?void 0:t[N])?t==null?void 0:t[N]:[]))==null?void 0:d.flat())==null?void 0:y.flatMap(t=>t.checkedButtons);return(c==null?void 0:c.length)===0?i.ElMessage.error("该用户没有权限,请联系管理员"):new Set(c)}}if(typeof o=="string"){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===o||(t==null?void 0:t.角色名称)===o),N=C(r),c=S(r==null?void 0:r[N]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}}catch(r){throw new Error(r)}},I=async a=>{var n,o;try{let s=[];const d=await i.getInsofDataApi({key:{systemKey:A.value?A.value:a==null?void 0:a.systemKey,pageKey:"系统管理/角色管理",type:"data"}});if(d.data.code===200){const y=(o=(n=d.data)==null?void 0:n.result)==null?void 0:o.map(r=>r.value.tableData);s=x(y,a)}if(s)return Array.isArray(s)?Array.from(s):s;throw i.ElMessage.error("获取用户权限失败,请联系管理员"),new Error("获取用户权限失败,请联系管理员")}catch(s){throw i.ElMessage.error("获取用户权限失败,请联系管理员"),new Error(s)}},M=async a=>{var n,o,s,d,y,r,N;try{let c=[],t,K,B;A.value?B={pageKey:"系统管理/用户管理",type:"data",systemKey:A.value}:B={pageKey:"系统管理/用户管理",type:"data"};const j=await i.getInsofDataApi({key:B});let q;if(!sessionStorage.getItem("systemKey")||sessionStorage.getItem("systemKey")===""?q=await i.getInsofDataApi({key:{layer:"superAdmin"}}):q=await i.getInsofDataApi({key:{layer:"superAdmin",systemKey:sessionStorage.getItem("systemKey")}}),j.data.code===200&&q.data.code===200){const W=(o=(n=q.data)==null?void 0:n.result)==null?void 0:o.map(u=>{var E,U;return{...u.value.tableData,layer:(E=u.key)==null?void 0:E.layer,systemKey:(U=u==null?void 0:u.key)==null?void 0:U.systemKey,id:u.id}}),z=(d=(s=j.data)==null?void 0:s.result)==null?void 0:d.map(u=>{var E,U;return{...u.value.tableData,layer:(E=u.key)==null?void 0:E.layer,systemKey:(U=u==null?void 0:u.key)==null?void 0:U.systemKey,id:u.id}}),H=[...W,...z];if(t=H==null?void 0:H.find(u=>(u==null?void 0:u.account)===(a==null?void 0:a.account)||(u==null?void 0:u.账号)===(a==null?void 0:a.account)),t){if(((y=t.layer)==null?void 0:y.toUpperCase())!=="SUPERADMIN"&&(!(t!=null&&t.状态)||(t==null?void 0:t.状态)==="禁用"||(t==null?void 0:t.status)==="禁用")){i.ElMessage.error("该用户已被禁用,请联系管理员"),v.value=!1;return}c=await I(t);const{privateKey:u}=await p.getModelSecretAsync(t);let E;if(t.password?E=((r=t.layer)==null?void 0:r.toUpperCase())==="SUPERADMIN"?t.password:k.decryptData(t.password,u):E=((N=t.layer)==null?void 0:N.toUpperCase())==="SUPERADMIN"?t.password:k.resetPassword,(a==null?void 0:a.password)===E)K=t;else throw K=null,i.ElMessage.error("输入的密码错误,请重新输入"),v.value=!1,new Error("输入的密码错误,请重新输入")}else return i.ElMessage.error("该用户不存在,请重新输入")}return K&&c?{matchedUser:K,userAuthority:c}:void 0}catch(c){throw new Error(c)}},L=async a=>{var o,s,d;const n=await M(a);if(n!=null&&n.matchedUser){p.setLoginUserInfo(n.matchedUser),sessionStorage.setItem("authority",JSON.stringify(n.userAuthority));const y=((s=(o=n.matchedUser)==null?void 0:o.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN";return sessionStorage.setItem("isSuperAdmin",JSON.stringify(y)),sessionStorage.setItem("systemKey",A.value?A.value:(d=n.matchedUser)==null?void 0:d.systemKey),await D(n.matchedUser),!0}else throw v.value=!1,new Error("该用户数据处理失败,请联系管理员")},D=async a=>{var o,s,d,y,r,N,c,t,K;const n=await i.getInsofDataApi({key:{layer:"superAdmin",systemKey:A.value?A.value:a==null?void 0:a.systemKey}});if(n.data.code===200&&(o=n.data)!=null&&o.result&&Array.isArray((s=n.data)==null?void 0:s.result)&&((y=(d=n.data)==null?void 0:d.result)==null?void 0:y.length)>0){const B=(K=(t=(c=(N=(r=n.data)==null?void 0:r.result)==null?void 0:N[0])==null?void 0:c.value)==null?void 0:t.tableData)==null?void 0:K.account;p.setSuperAdminInfo({account:B})}},$=async()=>{var a,n,o;try{const s=await ve();return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("loginToken",(o=(n=s.data)==null?void 0:n.result)==null?void 0:o.accessToken),!0):!1}catch(s){i.ElMessage.error(s)}},R=async()=>{var a,n,o;try{const s=await i.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",(o=(n=s.data)==null?void 0:n.result)==null?void 0:o.accessToken),!0):!1}catch(s){i.ElMessage.error(s)}},O=async a=>{var d,y,r,N;v.value=!0;let n=[L(a),$(),R()];const o=await Promise.all(n);(o==null?void 0:o.every(c=>c))&&(await Q.verifyStructureDataToStore(),h.push("/"),p.setLogRecordAsync({type:"登录",data:{account:((d=f.value)==null?void 0:d.account)??((y=f.value)==null?void 0:y.账号),userName:((r=f.value)==null?void 0:r.姓名)||((N=f.value)==null?void 0:N.userName)||"未知"}},"/login","login"))},F=a=>{g.value=a,_.value=!1,v.value=!1},J=a=>/^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);return(a,n)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",be,[e.createElementVNode("div",_e,[e.createVNode(te,{class:"login-left-bg"},{img:e.withCtx(()=>{var o,s,d,y;return[e.createElementVNode("div",we,[e.createElementVNode("div",null,e.toDisplayString(((o=e.unref(b))==null?void 0:o.EnglishName)||"INSOFWORKS"),1),e.createElementVNode("div",null,e.toDisplayString((s=e.unref(b))!=null&&s.chineseName&&J((d=e.unref(b))==null?void 0:d.chineseName)?(y=e.unref(b))==null?void 0:y.chineseName:"工业软件集成开发平台"),1)]),n[0]||(n[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",Ce,[e.createVNode(le,{loading:v.value,onClickLogin:l,onHandleTabChange:F},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(ue,{activeTabName:g.value,isClickLogin:_.value,onHandleLoginFormChange:w},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(me,{systemKey:a.oldSystemKey,activeTabName:g.value,isClickLogin:_.value,onHandleLoginFormChange:w},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),Ae=P._export_sfc(Ne,[["__scopeId","data-v-cc09996c"]]);exports.default=Ae;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),i=require("./index-DEBf-IBT.cjs"),k=require("./index.vue_vue_type_style_index_1_lang-C4diM8a_.cjs"),G=require("vue-router"),Q=require("./index-DlHrVgZ8.cjs"),X={},Y={class:"left-wrap"},Z={class:"left-bg"};function ee(V,T){return e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("div",Z,[e.renderSlot(V.$slots,"img",{},void 0,!0)])])}const te=P._export_sfc(X,[["render",ee],["__scopeId","data-v-9b7ee6c9"]]),ae={class:"right-wrap"},ne={class:"tab-content"},oe={class:"tab-tips"},se={class:"tab-content"},re={class:"tab-tips"},ce=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(V,{emit:T}){const h=e.ref("account"),p=T,A=()=>{p("clickLogin",h.value)},b=f=>{p("handleTabChange",f)};return(f,m)=>{const g=e.resolveComponent("el-button"),_=e.resolveComponent("el-tab-pane"),v=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(v,{modelValue:h.value,"onUpdate:modelValue":m[0]||(m[0]=l=>h.value=l),class:"right-tabs",onTabChange:b},{default:e.withCtx(()=>[e.createVNode(_,{name:"account"},{label:e.withCtx(()=>[e.renderSlot(f.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",ne,[e.renderSlot(f.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:A},[e.createVNode(g,{loading:V.loading},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",oe,[e.renderSlot(f.$slots,"tabTips1",{},void 0,!0)])]),_:3}),e.createVNode(_,{name:"face"},{label:e.withCtx(()=>[e.renderSlot(f.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",se,[e.renderSlot(f.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",re,[e.renderSlot(f.$slots,"tabTips2",{},void 0,!0)])]),_:3})]),_:3},8,["modelValue"])])}}}),le=P._export_sfc(ce,[["__scopeId","data-v-516c8b4a"]]),ie={class:"account-wrap"},de=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(V,{emit:T}){const h=V,p=e.reactive({account:"",password:""}),A=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),b=e.ref(null),f=T;return e.watch(()=>h.isClickLogin,m=>{var g;m&&(h==null?void 0:h.activeTabName)==="account"&&((g=b.value)==null||g.validate(_=>{var v;for(let l in p)p.hasOwnProperty(l)&&(p[l]=(v=p[l])==null?void 0:v.trim());f("handleLoginFormChange",_,_?p:null)}))},{immediate:!0}),e.watch(()=>h.activeTabName,m=>{var g;m==="account"&&((g=b.value)==null||g.resetFields())}),(m,g)=>{const _=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-input"),l=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(w,{model:p,rules:A,ref_key:"formRef",ref:b},{default:e.withCtx(()=>[e.createVNode(l,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(v,{class:"account-input",modelValue:p.account,"onUpdate:modelValue":g[0]||(g[0]=C=>p.account=C),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(_,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(l,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(v,{class:"account-input",modelValue:p.password,"onUpdate:modelValue":g[1]||(g[1]=C=>p.password=C),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(_,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),ue=P._export_sfc(de,[["__scopeId","data-v-48037c0f"]]);function pe(V){return i.service({url:"http://139.196.154.85:20015/api/face/face-verify",method:"post",data:V})}const fe={class:"account-wrap"},ye={class:"video-wrap"},ge=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(V,{emit:T}){const h=V,p=T,A=i.useLoginState(i.pinia),b=e.ref(null),f=e.ref(null);let m=!1;const g=async l=>{if(!l)return;const w=new FormData;w.set("file",l),h.systemKey&&w.set("systemKey",h.systemKey),console.log("Face Recognition",h.systemKey);const C=await pe(w),{data:S}=C||{},{account:x,password:I,layer:M}=(S==null?void 0:S.data)||{},L=S==null?void 0:S.msg;if(!x){i.ElMessage.warning(L||"识别失败,请重新识别!");return}const{privateKey:D}=await A.getModelSecretAsync();let $=I;M!=="superAdmin"&&($=k.decryptData(I,D)),p("handleLoginFormChange",!0,{account:x,password:$})},_=()=>{if(!f.value||!b.value)return;const l=f.value,w=l.getContext("2d"),C=b.value;l.width=200,l.height=200;const S=C.videoWidth||640,x=C.videoHeight||480,I=Math.min(200/S,200/x),M=S*I,L=x*I,D=(200-M)/2,$=(200-L)/2;w==null||w.drawImage(C,0,0,S,x,D,$,M,L),l.toBlob(R=>{if(R){const O=new File([R],"face.png",{type:"image/png"});g(O)}},"image/png")},v=async()=>{if(!b.value||m)return;const l=b.value;try{const w=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1});if(l){const C=l;C.srcObject=w,m=!0}}catch{i.ElMessage.warning("摄像头启动失败")}};return e.watch(()=>h.activeTabName,l=>{l==="face"&&!m&&v()}),e.onMounted(()=>{v()}),(l,w)=>(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("div",ye,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:b,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("button",{class:"face-screenshot",onClick:_},"人脸识别"),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:f,id:"canvas"},null,512)]))}}),me=P._export_sfc(ge,[["__scopeId","data-v-5538dabd"]]);function ve(){const V={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return i.service({url:"/api/sysAuth/login",method:"post",data:V})}const he={class:"login-wrap"},be={class:"login-body"},_e={class:"login-body-item left"},we={class:"title"},Ce={class:"login-body-item right"},Ne=e.defineComponent({__name:"index",props:{oldSystemKey:{}},emits:["change"],setup(V,{emit:T}){const h=G.useRouter(),p=i.useLoginState(i.pinia),{systemKey:A,systemInfo:b,loginUserInfo:f}=i.storeToRefs(p),m=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浏览器请使用极速模式"}]}),g=e.ref("account"),_=e.ref(!1),v=e.ref(!1),l=()=>{_.value=!0},w=(a,n)=>{_.value=!1,a&&O(n)},C=a=>k.getFirstArrayProperty(a),S=a=>{let n;const o=k.convertArrayToTree(a),s=k.addPathToTree(o),d=k.getLeafNodesRecursive(s),y=k.groupByField(d,"parentPath");return n=k.handleRowAuthorityRender(y),n},x=(a,n)=>{var s,d,y;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=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===(o==null?void 0:o[0])||t.角色名称===(o==null?void 0:o[0])),N=C(r),c=S(r==null?void 0:r[N]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}if((o==null?void 0:o.length)>1){let r=a==null?void 0:a.filter(t=>o==null?void 0:o.includes(t.roleName||(t==null?void 0:t.角色名称)));const N=C(r==null?void 0:r[0]),c=(y=(d=r==null?void 0:r.map(t=>Array.isArray(t==null?void 0:t[N])?t==null?void 0:t[N]:[]))==null?void 0:d.flat())==null?void 0:y.flatMap(t=>t.checkedButtons);return(c==null?void 0:c.length)===0?i.ElMessage.error("该用户没有权限,请联系管理员"):new Set(c)}}if(typeof o=="string"){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===o||(t==null?void 0:t.角色名称)===o),N=C(r),c=S(r==null?void 0:r[N]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}}catch(r){throw new Error(r)}},I=async a=>{var n,o;try{let s=[];const d=await i.getInsofDataApi({key:{systemKey:A.value?A.value:a==null?void 0:a.systemKey,pageKey:"系统管理/角色管理",type:"data"}});if(d.data.code===200){const y=(o=(n=d.data)==null?void 0:n.result)==null?void 0:o.map(r=>r.value.tableData);s=x(y,a)}if(s)return Array.isArray(s)?Array.from(s):s;throw i.ElMessage.error("获取用户权限失败,请联系管理员"),new Error("获取用户权限失败,请联系管理员")}catch(s){throw i.ElMessage.error("获取用户权限失败,请联系管理员"),new Error(s)}},M=async a=>{var n,o,s,d,y,r,N;try{let c=[],t,K,B;A.value?B={pageKey:"系统管理/用户管理",type:"data",systemKey:A.value}:B={pageKey:"系统管理/用户管理",type:"data"};const j=await i.getInsofDataApi({key:B});let q;if(!sessionStorage.getItem("systemKey")||sessionStorage.getItem("systemKey")===""?q=await i.getInsofDataApi({key:{layer:"superAdmin"}}):q=await i.getInsofDataApi({key:{layer:"superAdmin",systemKey:sessionStorage.getItem("systemKey")}}),j.data.code===200&&q.data.code===200){const W=(o=(n=q.data)==null?void 0:n.result)==null?void 0:o.map(u=>{var E,U;return{...u.value.tableData,layer:(E=u.key)==null?void 0:E.layer,systemKey:(U=u==null?void 0:u.key)==null?void 0:U.systemKey,id:u.id}}),z=(d=(s=j.data)==null?void 0:s.result)==null?void 0:d.map(u=>{var E,U;return{...u.value.tableData,layer:(E=u.key)==null?void 0:E.layer,systemKey:(U=u==null?void 0:u.key)==null?void 0:U.systemKey,id:u.id}}),H=[...W,...z];if(t=H==null?void 0:H.find(u=>(u==null?void 0:u.account)===(a==null?void 0:a.account)||(u==null?void 0:u.账号)===(a==null?void 0:a.account)),t){if(((y=t.layer)==null?void 0:y.toUpperCase())!=="SUPERADMIN"&&(!(t!=null&&t.状态)||(t==null?void 0:t.状态)==="禁用"||(t==null?void 0:t.status)==="禁用")){i.ElMessage.error("该用户已被禁用,请联系管理员"),v.value=!1;return}c=await I(t);const{privateKey:u}=await p.getModelSecretAsync(t);let E;if(t.password?E=((r=t.layer)==null?void 0:r.toUpperCase())==="SUPERADMIN"?t.password:k.decryptData(t.password,u):E=((N=t.layer)==null?void 0:N.toUpperCase())==="SUPERADMIN"?t.password:k.resetPassword,(a==null?void 0:a.password)===E)K=t;else throw K=null,i.ElMessage.error("输入的密码错误,请重新输入"),v.value=!1,new Error("输入的密码错误,请重新输入")}else return i.ElMessage.error("该用户不存在,请重新输入")}return K&&c?{matchedUser:K,userAuthority:c}:void 0}catch(c){throw new Error(c)}},L=async a=>{var o,s,d;const n=await M(a);if(n!=null&&n.matchedUser){p.setLoginUserInfo(n.matchedUser),sessionStorage.setItem("authority",JSON.stringify(n.userAuthority));const y=((s=(o=n.matchedUser)==null?void 0:o.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN";return sessionStorage.setItem("isSuperAdmin",JSON.stringify(y)),sessionStorage.setItem("systemKey",A.value?A.value:(d=n.matchedUser)==null?void 0:d.systemKey),await D(n.matchedUser),!0}else throw v.value=!1,new Error("该用户数据处理失败,请联系管理员")},D=async a=>{var o,s,d,y,r,N,c,t,K;const n=await i.getInsofDataApi({key:{layer:"superAdmin",systemKey:A.value?A.value:a==null?void 0:a.systemKey}});if(n.data.code===200&&(o=n.data)!=null&&o.result&&Array.isArray((s=n.data)==null?void 0:s.result)&&((y=(d=n.data)==null?void 0:d.result)==null?void 0:y.length)>0){const B=(K=(t=(c=(N=(r=n.data)==null?void 0:r.result)==null?void 0:N[0])==null?void 0:c.value)==null?void 0:t.tableData)==null?void 0:K.account;p.setSuperAdminInfo({account:B})}},$=async()=>{var a,n,o;try{const s=await ve();return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("loginToken",(o=(n=s.data)==null?void 0:n.result)==null?void 0:o.accessToken),!0):!1}catch(s){i.ElMessage.error(s)}},R=async()=>{var a,n,o;try{const s=await i.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",(o=(n=s.data)==null?void 0:n.result)==null?void 0:o.accessToken),!0):!1}catch(s){i.ElMessage.error(s)}},O=async a=>{var d,y,r,N;v.value=!0;let n=[L(a),$(),R()];const o=await Promise.all(n);(o==null?void 0:o.every(c=>c))&&(await Q.verifyStructureDataToStore(),h.push("/"),p.setLogRecordAsync({type:"登录",data:{account:((d=f.value)==null?void 0:d.account)??((y=f.value)==null?void 0:y.账号),userName:((r=f.value)==null?void 0:r.姓名)||((N=f.value)==null?void 0:N.userName)||"未知"}},"/login","login"))},F=a=>{g.value=a,_.value=!1,v.value=!1},J=a=>/^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);return(a,n)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",be,[e.createElementVNode("div",_e,[e.createVNode(te,{class:"login-left-bg"},{img:e.withCtx(()=>{var o,s,d,y;return[e.createElementVNode("div",we,[e.createElementVNode("div",null,e.toDisplayString(((o=e.unref(b))==null?void 0:o.EnglishName)||"INSOFWORKS"),1),e.createElementVNode("div",null,e.toDisplayString((s=e.unref(b))!=null&&s.chineseName&&J((d=e.unref(b))==null?void 0:d.chineseName)?(y=e.unref(b))==null?void 0:y.chineseName:"工业软件集成开发平台"),1)]),n[0]||(n[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",Ce,[e.createVNode(le,{loading:v.value,onClickLogin:l,onHandleTabChange:F},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(ue,{activeTabName:g.value,isClickLogin:_.value,onHandleLoginFormChange:w},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(me,{systemKey:a.oldSystemKey,activeTabName:g.value,isClickLogin:_.value,onHandleLoginFormChange:w},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),Ae=P._export_sfc(Ne,[["__scopeId","data-v-cc09996c"]]);exports.default=Ae;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElementBlock as J, openBlock as W, createElementVNode as m, renderSlot as $, defineComponent as Y, ref as E, resolveComponent as B, createVNode as k, withCtx as y, reactive as se, watch as ae, onMounted as fe, toDisplayString as V, unref as X, createTextVNode as j } from "vue";
|
|
2
2
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
import { a as ne, u as oe, p as ce, E as K, s as ye, b as pe, g as q } from "./index-DBDeHECn.js";
|
|
4
|
-
import { d as re, r as ge, g as ve, c as me, b as
|
|
4
|
+
import { d as re, r as ge, g as ve, c as me, b as be, e as he, f as _e, h as we } from "./index.vue_vue_type_style_index_1_lang-4wOK4zzH.js";
|
|
5
5
|
import { useRouter as Ae } from "vue-router";
|
|
6
6
|
import { v as Ce } from "./index-CamDUXA9.js";
|
|
7
7
|
const ke = {}, Se = { class: "left-wrap" }, Ie = { class: "left-bg" };
|
|
@@ -26,19 +26,19 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
26
26
|
},
|
|
27
27
|
emits: ["clickLogin", "handleTabChange"],
|
|
28
28
|
setup(T, { emit: M }) {
|
|
29
|
-
const
|
|
30
|
-
d("clickLogin",
|
|
31
|
-
},
|
|
29
|
+
const b = E("account"), d = M, S = () => {
|
|
30
|
+
d("clickLogin", b.value);
|
|
31
|
+
}, h = (u) => {
|
|
32
32
|
d("handleTabChange", u);
|
|
33
33
|
};
|
|
34
34
|
return (u, g) => {
|
|
35
35
|
const p = B("el-button"), _ = B("el-tab-pane"), v = B("el-tabs");
|
|
36
36
|
return W(), J("div", Ne, [
|
|
37
37
|
k(v, {
|
|
38
|
-
modelValue:
|
|
39
|
-
"onUpdate:modelValue": g[0] || (g[0] = (r) =>
|
|
38
|
+
modelValue: b.value,
|
|
39
|
+
"onUpdate:modelValue": g[0] || (g[0] = (r) => b.value = r),
|
|
40
40
|
class: "right-tabs",
|
|
41
|
-
onTabChange:
|
|
41
|
+
onTabChange: h
|
|
42
42
|
}, {
|
|
43
43
|
default: y(() => [
|
|
44
44
|
k(_, { name: "account" }, {
|
|
@@ -86,7 +86,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
86
86
|
]);
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
}), Pe = /* @__PURE__ */ z(Ue, [["__scopeId", "data-v-
|
|
89
|
+
}), Pe = /* @__PURE__ */ z(Ue, [["__scopeId", "data-v-516c8b4a"]]), Ve = { class: "account-wrap" }, Be = /* @__PURE__ */ Y({
|
|
90
90
|
__name: "index",
|
|
91
91
|
props: {
|
|
92
92
|
activeTabName: {
|
|
@@ -100,7 +100,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
100
100
|
},
|
|
101
101
|
emits: ["handleLoginFormChange"],
|
|
102
102
|
setup(T, { emit: M }) {
|
|
103
|
-
const
|
|
103
|
+
const b = T, d = se({
|
|
104
104
|
account: "",
|
|
105
105
|
password: ""
|
|
106
106
|
}), S = se({
|
|
@@ -110,10 +110,10 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
110
110
|
password: [
|
|
111
111
|
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
112
112
|
]
|
|
113
|
-
}),
|
|
114
|
-
return ae(() =>
|
|
113
|
+
}), h = E(null), u = M;
|
|
114
|
+
return ae(() => b.isClickLogin, (g) => {
|
|
115
115
|
var p;
|
|
116
|
-
g && (
|
|
116
|
+
g && (b == null ? void 0 : b.activeTabName) === "account" && ((p = h.value) == null || p.validate((_) => {
|
|
117
117
|
var v;
|
|
118
118
|
for (let r in d)
|
|
119
119
|
d.hasOwnProperty(r) && (d[r] = (v = d[r]) == null ? void 0 : v.trim());
|
|
@@ -121,9 +121,9 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
121
121
|
}));
|
|
122
122
|
}, {
|
|
123
123
|
immediate: !0
|
|
124
|
-
}), ae(() =>
|
|
124
|
+
}), ae(() => b.activeTabName, (g) => {
|
|
125
125
|
var p;
|
|
126
|
-
g === "account" && ((p =
|
|
126
|
+
g === "account" && ((p = h.value) == null || p.resetFields());
|
|
127
127
|
}), (g, p) => {
|
|
128
128
|
const _ = B("svg-icon"), v = B("el-input"), r = B("el-form-item"), w = B("el-form");
|
|
129
129
|
return W(), J("div", Ve, [
|
|
@@ -131,7 +131,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
131
131
|
model: d,
|
|
132
132
|
rules: S,
|
|
133
133
|
ref_key: "formRef",
|
|
134
|
-
ref:
|
|
134
|
+
ref: h
|
|
135
135
|
}, {
|
|
136
136
|
default: y(() => [
|
|
137
137
|
k(r, {
|
|
@@ -205,13 +205,13 @@ const Re = { class: "account-wrap" }, Oe = { class: "video-wrap" }, Fe = /* @__P
|
|
|
205
205
|
},
|
|
206
206
|
emits: ["handleLoginFormChange"],
|
|
207
207
|
setup(T, { emit: M }) {
|
|
208
|
-
const
|
|
208
|
+
const b = T, d = M, S = oe(ce), h = E(null), u = E(null);
|
|
209
209
|
let g = !1;
|
|
210
210
|
const p = async (r) => {
|
|
211
211
|
if (!r)
|
|
212
212
|
return;
|
|
213
213
|
const w = new FormData();
|
|
214
|
-
w.set("file", r),
|
|
214
|
+
w.set("file", r), b.systemKey && w.set("systemKey", b.systemKey), console.log("Face Recognition", b.systemKey);
|
|
215
215
|
const A = await De(w), { data: I } = A || {}, { account: L, password: U, layer: x } = (I == null ? void 0 : I.data) || {}, D = I == null ? void 0 : I.msg;
|
|
216
216
|
if (!L) {
|
|
217
217
|
K.warning(D || "识别失败,请重新识别!");
|
|
@@ -224,9 +224,9 @@ const Re = { class: "account-wrap" }, Oe = { class: "video-wrap" }, Fe = /* @__P
|
|
|
224
224
|
password: R
|
|
225
225
|
});
|
|
226
226
|
}, _ = () => {
|
|
227
|
-
if (!u.value || !
|
|
227
|
+
if (!u.value || !h.value)
|
|
228
228
|
return;
|
|
229
|
-
const r = u.value, w = r.getContext("2d"), A =
|
|
229
|
+
const r = u.value, w = r.getContext("2d"), A = h.value;
|
|
230
230
|
r.width = 200, r.height = 200;
|
|
231
231
|
const I = A.videoWidth || 640, L = A.videoHeight || 480, U = Math.min(200 / I, 200 / L), x = I * U, D = L * U, O = (200 - x) / 2, R = (200 - D) / 2;
|
|
232
232
|
w == null || w.drawImage(A, 0, 0, I, L, O, R, x, D), r.toBlob((G) => {
|
|
@@ -236,9 +236,9 @@ const Re = { class: "account-wrap" }, Oe = { class: "video-wrap" }, Fe = /* @__P
|
|
|
236
236
|
}
|
|
237
237
|
}, "image/png");
|
|
238
238
|
}, v = async () => {
|
|
239
|
-
if (!
|
|
239
|
+
if (!h.value || g)
|
|
240
240
|
return;
|
|
241
|
-
const r =
|
|
241
|
+
const r = h.value;
|
|
242
242
|
try {
|
|
243
243
|
const w = await navigator.mediaDevices.getUserMedia({
|
|
244
244
|
video: { facingMode: "user" },
|
|
@@ -253,7 +253,7 @@ const Re = { class: "account-wrap" }, Oe = { class: "video-wrap" }, Fe = /* @__P
|
|
|
253
253
|
K.warning("摄像头启动失败");
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
|
-
return ae(() =>
|
|
256
|
+
return ae(() => b.activeTabName, (r) => {
|
|
257
257
|
r === "face" && !g && v();
|
|
258
258
|
}), fe(() => {
|
|
259
259
|
v();
|
|
@@ -262,7 +262,7 @@ const Re = { class: "account-wrap" }, Oe = { class: "video-wrap" }, Fe = /* @__P
|
|
|
262
262
|
m("video", {
|
|
263
263
|
class: "face-video",
|
|
264
264
|
ref_key: "videoRef",
|
|
265
|
-
ref:
|
|
265
|
+
ref: h,
|
|
266
266
|
id: "v",
|
|
267
267
|
autoplay: "",
|
|
268
268
|
playsinline: ""
|
|
@@ -300,7 +300,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
300
300
|
},
|
|
301
301
|
emits: ["change"],
|
|
302
302
|
setup(T, { emit: M }) {
|
|
303
|
-
const
|
|
303
|
+
const b = Ae(), d = oe(ce), { systemKey: S, systemInfo: h, loginUserInfo: u } = ye(d), g = E({
|
|
304
304
|
// sysCTitle: 'INSOFWORKS',
|
|
305
305
|
sysCTitle: "",
|
|
306
306
|
sysETitle: "",
|
|
@@ -329,7 +329,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
329
329
|
_.value = !1, a && Z(t);
|
|
330
330
|
}, A = (a) => ve(a), I = (a) => {
|
|
331
331
|
let t;
|
|
332
|
-
const s = me(a), n =
|
|
332
|
+
const s = me(a), n = be(s), l = he(n), f = _e(l, "parentPath");
|
|
333
333
|
return t = we(f), t;
|
|
334
334
|
}, L = (a, t) => {
|
|
335
335
|
var n, l, f;
|
|
@@ -498,7 +498,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
498
498
|
v.value = !0;
|
|
499
499
|
let t = [D(a), R(), G()];
|
|
500
500
|
const s = await Promise.all(t);
|
|
501
|
-
(s == null ? void 0 : s.every((c) => c)) && (await Ce(),
|
|
501
|
+
(s == null ? void 0 : s.every((c) => c)) && (await Ce(), b.push("/"), d.setLogRecordAsync({
|
|
502
502
|
type: "登录",
|
|
503
503
|
data: {
|
|
504
504
|
account: ((l = u.value) == null ? void 0 : l.account) ?? ((f = u.value) == null ? void 0 : f.账号),
|
|
@@ -516,8 +516,8 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
516
516
|
var s, n, l, f;
|
|
517
517
|
return [
|
|
518
518
|
m("div", ze, [
|
|
519
|
-
m("div", null, V(((s = X(
|
|
520
|
-
m("div", null, V((n = X(
|
|
519
|
+
m("div", null, V(((s = X(h)) == null ? void 0 : s.EnglishName) || "INSOFWORKS"), 1),
|
|
520
|
+
m("div", null, V((n = X(h)) != null && n.chineseName && ie((l = X(h)) == null ? void 0 : l.chineseName) ? (f = X(h)) == null ? void 0 : f.chineseName : "工业软件集成开发平台"), 1)
|
|
521
521
|
]),
|
|
522
522
|
t[0] || (t[0] = m("div", { class: "divide-line" }, null, -1))
|
|
523
523
|
];
|