1 |
- /* empty css *//* empty css *//* empty css */import{r as fe,k as he}from"./basicMap-b9bb99ee.js";import{_ as Ae,b as Te,a as k,u as we,r as ye,o as v,f as h,m as i,w as u,F as N,E as je,p as ke,g as y,h as $,q as V,t as Y,c as ee,n as Ne,j as te,s as O,k as R,v as Re,x as Ue,y as Me,z as Ce,A as Oe,B as be,C as De,D as xe,G as Le,H as Pe,I as He,J as ze}from"./index-ab0329a3.js";import{l as Ye,a as Ge,c as Ke,d as Je,e as Ve,f as Ze,i as Be,h as Fe}from"./login-a6e2698a.js";import{e as Z}from"./base64-4eed9625.js";import{s as p,h as We}from"./tip-a7451ffc.js";import"./index-fdf5788b.js";const Qe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAM9JREFUOE9jZKAQMFKon2EQGaAsKWJ89/mbs8R4CVkt2AsgAYb/jGd+s/0SevTo43t8hsjJ8Quy/mJ7x8D43wRkIUoYKEuIPmNg/O+LyyVQizbfffFaCmYJRiAqS4ieY2RgaL/z4vVqZJeoSIiG/mdgqLz74rURsjjWWFCWEN32n4Hh4L0XrztBipUkRMsZGRjs77547YXuPZzRqCIhOu//f8bfIA2MjP9Z77x4nYQtbPCmAyVJ0TaQpnvPX1fhCthBlJCISUAkhwExhlIcBgCxhEIRPFtx0AAAAABJRU5ErkJggg==";const ae=b=>(He("data-v-a49bb9c9"),b=b(),ze(),b),qe=ae(()=>y("div",{class:"title font-ht"},"应用赋能中台",-1)),Xe={class:"more-t"},$e={key:0,class:"el-dropdown"},et=["onClick"],tt={key:2,class:"line"},at={style:{},class:"user-name"},ot=ae(()=>y("img",{style:{width:"10px",height:"10px"},src:Qe},null,-1)),rt={key:0},st={key:1},nt={key:2},lt={class:"dialog-footer"},ct={__name:"index",setup(b){const D=Te(),U=k(),M=k(!1),C=k("11111111"),G=k(""),x=k("");function oe(a){G.value=a}function B(a,l){Ke(A.loginInfo.username,Z(A.loginInfo.psd),a).then(m=>{var o=m.msg;if(o.length==0){p({type:"warning",message:"登录信息已失效!"});return}var e=o[0].Rows;if(a=="3"){var t=e[0].USERID,n=e[0].USERNAME,s=e[0].UNIT,r=e[0].UNIT_NAME,c=e[0].LAST_TIME,I=e[0].CHANGE_TIME,g=e[0].ROLE_LIST,S=e[0].TEMPUSERKEYCODE,f=e[0].ROLE_UUID,d=e[0].CHANGE_TIME;localStorage.setItem("zhfx_usercode",t),localStorage.setItem("zhfx_username",n),localStorage.setItem("zhfx_unitcode",s),localStorage.setItem("zhfx_unitname",r),localStorage.setItem("zhfx_lasttime",c),localStorage.setItem("zhfx_role",g),localStorage.setItem("zhfx_userkeycode",S),localStorage.setItem("zhfx_changetime",I),localStorage.setItem("zhfx_role_uuid",f),localStorage.setItem("zhfx_changetime",d),window.open(l);return}}).catch(m=>{p({type:"error",message:"登录失败"})})}function re(a){C.value=a,M.value=!0,U.value=[],se()}function se(){fe().then(a=>{U.value=a.msg[0].Rows})}function ne(a){C.value=a,M.value=!0,le()}function le(){U.value=[],he().then(a=>{U.value=a})}function ce(a,l,m){debugger;let o=l?a.loginPage:a.linkHref;if(!a.isZi){o.indexOf("http://")>-1||o.indexOf("https://")>-1?window.open(o,o):(x.value=m,D.push({name:"interface",params:{type:a.type}}));return}if(l){o.indexOf("http://")>-1||o.indexOf("https://")>-1?window.open(o,o):D.push(o);return}switch(a.moduleId){case"692":H(2,o);break;case"569":H(2,o);break;case"538":H(1,o);break;case"570":P(0,o);break;case"116":P(1,o);break;case"51":P(2,o);break;case"571":B(3,o);break;case"572":break;case"573":break;case"574":break;case"575":break;case"576":P(9,o);break;case"577":break;case"578":break;case"579":B(3,o);break;case"603":H(9,o);break}}function ie(a){let l={unit_id:localStorage.getItem("ywxt_unitcode")};Fe(l).then(m=>{let o=m.msg;if(o.length==0){p({type:"error",message:"获取所属行业失败!"});return}if(o[0].TotalRowCount=="0"){p({type:"error",message:"获取所属行业失败!"});return}let t=o[0].Rows;if(t.length==0){p({type:"error",message:"获取所属行业失败!"});return}let n=[];for(var s=0;s<t.length;s++)n.push({code:t[s].CODE,name:t[s].NAME});for(var r="",s=0;s<n.length;s++)r+="code:"+n[s].code+",name:"+n[s].name+";";r=r.substring(0,r.length-1),localStorage.setItem("ywxt_unitclass",r),window.open(a,a)})}function K(a,l,m,o,e){var t={UNIT:a,userid:l,PLATE:m,OPERATION:o,OPERATIONRESULT:e,appkey:localStorage.getItem("ywxt_userkeycode")};Je(t).then(n=>{})}function L(a,l,m,o,e){Ve({CODE:a,USERKEYCODE:l,LOGIN_LOCK:m,LOGIN_TYPE:o}).then(n=>{We(n,()=>{let s=e==="http://10.81.66.8:8080/CSTJNEWWebsite/#/infoHome"?e+"?appkey="+l:e;window.open(s,s)})})}function P(a,l){Ye(A.loginInfo.username,Z(A.loginInfo.psd),a).then(m=>{var o=m.msg;if(o.length==0){p({type:"warning",message:"登录信息已失效!"});return}var e=o[0].Rows;if(a=="0"){var t=e[0].USERID,n=e[0].USERNAME;e[0].NAME;var s=e[0].UNIT,r=e[0].UNIT_NAME,c=e[0].LAST_TIME,I=e[0].ROLE_CODE,g=e[0].NAME,S=e[0].PHONE,f=e[0].MAIL,d=e[0].TEMPUSERKEYCODE;localStorage.setItem("zjw_usercode",t),localStorage.setItem("zjw_username",n),localStorage.setItem("zjw_unitcode",s),localStorage.setItem("zjw_unitname",r),localStorage.setItem("zjw_lasttime",c),localStorage.setItem("zjw_role",I),localStorage.setItem("zjw_name",g),localStorage.setItem("zjw_phone",S),localStorage.setItem("zjw_mail",f),localStorage.setItem("zjw_userkeycode",d),L(t,d,"1","0",l);return}if(a=="1"){var t=e[0].USERID,n=e[0].USERNAME;e[0].NAME;var s=e[0].UNIT,r=e[0].UNIT_NAME,c=e[0].LAST_TIME,_=e[0].CHANGE_TIME,I=e[0].ROLE_CODE,d=e[0].TEMPUSERKEYCODE,T=e[0].QC,E=e[0].TYSHDM,w=e[0].HLWJ,z=e[0].ROLE_UUID;localStorage.setItem("yml_usercode",t),localStorage.setItem("yml_username",n),localStorage.setItem("yml_unitcode",s),localStorage.setItem("yml_unitname",r),localStorage.setItem("yml_lasttime",c),localStorage.setItem("yml_role",I),localStorage.setItem("yml_userkeycode",d),localStorage.setItem("yml_changetime",_),localStorage.setItem("zyml_role_uuid",z),localStorage.setItem("yml_qc",T),localStorage.setItem("yml_tyshdm",E),localStorage.setItem("hlwj",w),L(t,d,"1","1",l);return}if(a=="2"){var t=e[0].USERID,n=e[0].USERNAME;e[0].NAME;var s=e[0].UNIT,r=e[0].UNIT_NAME,c=e[0].LAST_TIME,j=e[0].CHANGE_TIME,I=e[0].ROLE_CODE,d=e[0].TEMPUSERKEYCODE;localStorage.setItem("ptjk_usercode",t),localStorage.setItem("ptjk_username",n),localStorage.setItem("ptjk_unitcode",s),localStorage.setItem("ptjk_unitname",r),localStorage.setItem("ptjk_lasttime",c),localStorage.setItem("ptjk_changetime",j),localStorage.setItem("ptjk_role",I),localStorage.setItem("ptjk_userkeycode",d),localStorage.setItem("ptjk-part",""),L(t,d,"1","2",l);return}if(a=="9"){var t=e[0].USERID,n=e[0].USERNAME,s=e[0].UNIT,r=e[0].UNIT_NAME,c=e[0].LAST_TIME,I=e[0].ROLE_CODE,g=e[0].NAME,S=e[0].PHONE,f=e[0].MAIL,d=e[0].TEMPUSERKEYCODE,j=e[0].CHANGE_TIME;localStorage.setItem("cstj_usercode",t),localStorage.setItem("cstj_username",n),localStorage.setItem("cstj_unitcode",s),localStorage.setItem("cstj_unitname",r),localStorage.setItem("cstj_lasttime",c),localStorage.setItem("cstj_role",I),localStorage.setItem("cstj_name",g),localStorage.setItem("cstj_phone",S),localStorage.setItem("cstj_mail",f),localStorage.setItem("cstj_userkeycode",d),localStorage.setItem("cstj_changetime",j),L(t,d,"1","9",l);return}}).catch(m=>{p({type:"error",message:"登录失败"})})}function me(a){debugger;x.value=a.name,D.push(a.linkHref)}function _e(a,l){var m={user_id:a};Be(m).then(o=>{var e=o.msg;if(e.length==0){p({type:"error",message:"获取用户权限失败!"});return}var t=e[0].TotalRowCount;if(t=="0"){p({type:"error",message:"获取用户权限失败!"});return}var n=e[0].Rows;if(n.length==0){p({type:"error",message:"获取用户权限失败!"});return}for(var s=[],r=0;r<n.length;r++)s.push({code:n[r].CODE,name:n[r].NAME,state:n[r].STATE});for(var c="",r=0;r<s.length;r++)c+="code:"+s[r].code+",name:"+s[r].name+",state:"+s[r].state+";";c=c.substring(0,c.length-1),localStorage.setItem("ywxt_module",c),ie(l)})}function ue(a,l){var m={user_id:a};Ze(m).then(o=>{var e=o.msg;if(e.length==0){p({type:"error",message:"获取用户角色失败!"});return}var t=e[0].TotalRowCount;if(t=="0"){p({type:"error",message:"获取用户角色失败!"});return}var n=e[0].Rows;if(n.length==0){p({type:"error",message:"获取用户角色失败!"});return}for(var s=[],r=0;r<n.length;r++)s.push({code:n[r].ROLE_ID,name:n[r].ROLE_NAME});for(var c="",r=0;r<s.length;r++)c+="code:"+s[r].code+",name:"+s[r].name+";";c=c.substring(0,c.length-1),localStorage.setItem("ywxt_userrole",c),_e(a,l)})}function H(a,l,m){debugger;Ge(A.loginInfo.username,Z(A.loginInfo.psd),a).then(o=>{debugger;let e=o.msg;if(e.length==0){p({type:"warning",message:"登录信息失效"});return}let t=e[0].Rows;if(a=="1"){var n=t[0].USERID,s=t[0].UNIT,r=t[0].USERNAME;t[0].NAME;var c=t[0].PASSWORD,I=t[0].UNIT_NAME,g=t[0].CONTACT;t[0].SEX;var S=t[0].TELPHONE,f=t[0].MAIL,d=t[0].IS_IDENTIFY;t[0].TYPE;var _=t[0].TEMPUSERKEYCODE,T=t[0].CHANGE_TIME;const pe={ywxt_usercode:n,ywxt_username:r,ywxt_unitcode:s,ywxt_unitname:I,ywxt_contact:g,ywxt_telephone:S,ywxt_email:f,ywxt_identify:d,ywxt_userkeycode:_,ptjk_changetime:T,password:c};localStorage.setItem("loginUserInfoSpace",JSON.stringify(pe)),K(s,n,"运维系统-登录","登录系统成功","系统登录"),ue(n,l);return}if(a=="2"){var n=t[0].USERID,r=t[0].USERNAME;t[0].NAME;var c=t[0].PASSWORD,s=t[0].UNIT,I=t[0].UNIT_NAME,g=t[0].CONTACT;t[0].SEX;var S=t[0].TELPHONE,f=t[0].MAIL,d=t[0].IS_IDENTIFY;t[0].TYPE;var _=t[0].TEMPUSERKEYCODE,E=t[0].CHANGE_TIME;const Se={gxjh_usercode:n,gxjh_username:r,gxjh_unitcode:s,gxjh_unitname:I,gxjh_contact:g?decode(g):"",gxjh_telephone:S?decode(S):"",gxjh_email:f?decode(f):"",gxjh_identify:d,gxjh_userkeycode:_,gxjh_changetime:E};localStorage.setItem("exchangeUserInfo",JSON.stringify(Se)),K(s,n,"浏览系统-登录","登录系统成功","系统登录"),window.open(l,l);return}if(a=="9"){var n=t[0].USERID,r=t[0].USERNAME,s=t[0].UNIT,I=t[0].UNIT_NAME,w=t[0].LAST_TIME,z=t[0].NAME,j=t[0].PHONE,Q=t[0].MAIL,T=t[0].CHANGE_TIME,Ie=t[0].UNIT_LEVEL,Ee=t[0].UNIT_LEVEL_NAME;debugger;var q=t[0].ROLE_LIST.map(J=>J.ROLE_ID).join(","),X=t[0].ROLE_LIST.map(J=>J.UUID).join(",");localStorage.setItem("cstj_usercode",n),localStorage.setItem("cstj_username",r),localStorage.setItem("cstj_unitcode",s),localStorage.setItem("cstj_unitname",I),localStorage.setItem("cstj_lasttime",w),localStorage.setItem("cstj_role",q),localStorage.setItem("cstj_role_uuid",X),localStorage.setItem("cstj_name",z),localStorage.setItem("cstj_phone",j),localStorage.setItem("cstj_mail",Q),localStorage.setItem("cstj_changetime",T),localStorage.setItem("cstj_unit_level",Ie),localStorage.setItem("cstj_unit_level_name",Ee);let ve={cstj_usercode:n,cstj_username:r,cstj_unitcode:s,cstj_unitname:I,cstj_lasttime:w,cstj_role:q,cstj_name:z,cstj_phone:j,cstj_mail:Q,cstj_changetime:T,cstj_role_uuid:X};localStorage.setItem("cstjUserInfo",JSON.stringify(ve)),K(s,n,"城市体检-登录","登录系统成功","系统登录"),window.open(l,l);return}}).catch(o=>{p({type:"error",message:"登录失败"})})}const A=we(),F=k([{name:"首页",linkHref:"/power-home"},{name:"GIS",children:[{name:"Geoscene工具",moduleId:"716",isZi:!1,linkHref:"/gis/interface",type:1},{name:"cesium工具"}]},{name:"BIM",children:[{name:"轻量化",moduleId:"753",isZi:!1,linkHref:"/gis/interface",type:4},{name:"可视化"},{name:"应用工具",moduleId:"753",isZi:!1,linkHref:"/gis/interface",type:3}]},{name:"IOT",children:[{name:"视频分发"},{name:"IOT接入"}]},{name:"AI赋能",children:[{name:"文本识别算法"},{name:"图像识别算法"},{name:"视频识别算法"}]},{name:"应用系统",linkHref:"/gis/application-system"}]);function ge(){D.push("/login")}function W(a){return!A.canSeeSystemArr.find(l=>+l.MODULE_ID==+a.moduleId)&&a.isZi}function de(a,l,m){debugger;if(!a.disabled&&a.linkHref){if(!A.canSeeSystemArr.find(e=>+e.MODULE_ID==+a.moduleId))return;ce(a,l,m)}}return(a,l)=>{const m=Re,o=Ue,e=Me,t=Ce,n=Oe,s=be,r=ye("router-view"),c=De,I=je,g=xe,S=Le,f=Pe,d=ke;return v(),h(N,null,[i(I,{style:{height:"100%"}},{default:u(()=>[i(s,{height:"8.247vh"},{default:u(()=>[i(n,{gutter:24},{default:u(()=>[i(m,{span:4},{default:u(()=>[qe]),_:1}),i(m,{span:18},{default:u(()=>[y("div",Xe,[(v(!0),h(N,null,$(F.value,(_,T)=>(v(),h(N,{key:_.name},[_.children?(v(),ee(t,{key:1,onCommand:oe},{dropdown:u(()=>[i(e,null,{default:u(()=>[(v(!0),h(N,null,$(_.children,E=>(v(),ee(o,{style:V(G.value==E.name?{color:"#2e4eda"}:{}),command:E.name,onClick:w=>de(E,W(E),_.name),key:E.name,class:Ne({disabled:E.disabled||!E.isZi&&!te(A).canSeeSystemArr.find(w=>+w.MODULE_ID==+E.moduleId),"not-login":W(E),highlight:E.name===G.value})},{default:u(()=>[O(Y(E.name),1)]),_:2},1032,["style","command","onClick","class"]))),128))]),_:2},1024)]),default:u(()=>[y("span",{class:"more-t-item",style:V(x.value==_.name?{color:"#2e4eda"}:{})},Y(_.name),5)]),_:2},1024)):(v(),h("div",$e,[y("p",{onClick:E=>me(_),class:"more-t-item el-tooltip__trigger el-tooltip__trigger",style:V(x.value==_.name?{color:"#2e4eda"}:{}),"aria-haspopup":"menu"},Y(_.name),13,et)])),T!==F.value.length-1?(v(),h("div",tt)):R("",!0)],64))),128))])]),_:1}),i(m,{span:2},{default:u(()=>[i(t,{trigger:"click",size:"small"},{dropdown:u(()=>[i(e,null,{default:u(()=>[i(o,{onClick:ge},{default:u(()=>[O(" 退出登录 ")]),_:1}),i(o,{onClick:l[0]||(l[0]=_=>re("申请列表"))},{default:u(()=>[O(" 申请列表 ")]),_:1}),i(o,{onClick:l[1]||(l[1]=_=>ne("收藏列表"))},{default:u(()=>[O(" 收藏列表 ")]),_:1})]),_:1})]),default:u(()=>[y("span",at,Y(te(A).loginInfo.username),1),ot]),_:1})]),_:1})]),_:1})]),_:1}),i(c,null,{default:u(()=>[i(r)]),_:1})]),_:1}),i(d,{"close-on-click-modal":!1,"close-on-press-escape":!1,modelValue:M.value,"onUpdate:modelValue":l[3]||(l[3]=_=>M.value=_),"show-close":!1,title:C.value},{footer:u(()=>[y("span",lt,[i(f,{onClick:l[2]||(l[2]=_=>M.value=!1)},{default:u(()=>[O("关闭")]),_:1})])]),default:u(()=>[i(S,{stripe:"",data:U.value,style:{width:"100%"},height:"500"},{default:u(()=>[C.value=="收藏列表"?(v(),h(N,{key:0},[i(g,{prop:"resourceName",label:"申请资源"}),i(g,{prop:"interfaceRemarks",label:"资源简介"}),i(g,{prop:"insertTime",label:"申请时间"})],64)):R("",!0),C.value=="申请列表"?(v(),h(N,{key:1},[i(g,{prop:"RESOURCE_NAME",label:"资源名称"}),i(g,{prop:"RELEASE_REMARKS",label:"资源简介"}),i(g,{prop:"AUDIT_STATE",label:"申请状态"},{default:u(({row:_})=>[_.AUDIT_STATE=="1"?(v(),h("span",rt," 提交 ")):R("",!0),_.AUDIT_STATE=="2"?(v(),h("span",st," 通过 ")):R("",!0),_.AUDIT_STATE=="3"?(v(),h("span",nt," 不通过 ")):R("",!0)]),_:1}),i(g,{prop:"CID",label:"CID"}),i(g,{prop:"RID",label:"RID"}),i(g,{prop:"APP_KEY",label:"APP_KEY"})],64)):R("",!0)]),_:1},8,["data"])]),_:1},8,["modelValue","title"])],64)}}},vt=Ae(ct,[["__scopeId","data-v-a49bb9c9"]]);export{vt as default};
|