application-system-e6081603.js 7.0 KB

1
  1. import{_ as K,u as X,a as A,o as u,f as _,F as M,h as P,j as w,g as m,t as R,a5 as H,n as V,I as $,J as q}from"./index-ab0329a3.js";import{a as Q,d as ee}from"./login-a6e2698a.js";import{e as ae}from"./base64-4eed9625.js";import{s as z}from"./tip-a7451ffc.js";import"./index-fdf5788b.js";const te=""+new URL("szcs-84930f81.png",import.meta.url).href,ne=""+new URL("szzf-935675db.png",import.meta.url).href,se=""+new URL("szgc-93093f2f.png",import.meta.url).href,re=""+new URL("szcz-3b98cd60.png",import.meta.url).href;const oe=p=>($("data-v-7b621085"),p=p(),q(),p),ce={class:"application-system"},ie={class:"left-part"},le=["src"],de={class:"right-part"},me={class:"module-title"},ge=["onMouseover"],ue=oe(()=>m("div",{class:"single-icon"},null,-1)),_e=["onClick"],pe={__name:"application-system",setup(p){const g=X();let D=A([{name:"数字工程",imgUrl:"xxxx",children:[{name:"上海重大工程信息管理系统",moduleId:"655",linkHref:"http://10.86.133.76:8080/FGW_WEB_SZDB",loginPage:"http://10.86.133.76:8080/FGW_WEB_SZDB"},{name:"上海市城市维护项目管理信息系统",disabled:!0}]},{name:"数字住房",imgUrl:"xxxx",children:[{name:"上海市售后公房维修资金管理业务系统",disabled:!0}]},{name:"数字城市",imgUrl:"xxxx",children:[{name:"上海市住建行业基础数据应用系统",isZi:!0,linkHref:"https://cimweb.zjw.sh.cegn.cn:2007/industry-database/#/visualizationHome/mainPage",loginPage:"https://cimweb.zjw.sh.cegn.cn:2007/industry-database/#/visualizationHome/mainPage",moduleId:"692"},{name:"上海城市体检信息系统",isZi:!0,linkHref:"https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/infoHome",loginPage:"https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/login",moduleId:"603"},{name:"上海城市更新信息系统",moduleId:"653",linkHref:"https://cimweb.zjw.sh.cegn.cn:2007/urban-renew/#/home",loginPage:"https://cimweb.zjw.sh.cegn.cn:2007/urban-renew/#/home"},{name:"上海地下空间信息基础平台",moduleId:"656",linkHref:"http://10.81.73.104:8086",loginPage:"http://10.81.73.104:8086"},{name:"上海路面塌陷风险预警平台",moduleId:"657",linkHref:"http://10.81.73.104:8086/#/first/four",loginPage:"http://10.81.73.104:8086/#/first/four"}]},{name:"数字村镇",imgUrl:"xxxx",children:[{name:"上海市农民相对集中居住管理系统",moduleId:"659",linkHref:"https://10.90.11.49:2005/cr/",loginPage:"https://10.90.11.49:2005/cr/"},{name:"上海市农村路桥信息管理系统",moduleId:"658",linkHref:"http://10.83.244.180:8888",loginPage:"http://10.83.244.180:8888"}]}]),l=A("");function C(n){switch(n){case"数字工程":return se;case"数字住房":return ne;case"数字城市":return te;case"数字村镇":return re}}function Z(n,r){let c=i(n);if(!n.disabled&&n.linkHref){if(!g.canSeeSystemArr.find(t=>+t.MODULE_ID==+n.moduleId))return;s(n,c,r)}function i(e){return!g.canSeeSystemArr.find(t=>+t.MODULE_ID==+e.moduleId)&&e.isZi}function s(e,t,o){debugger;let a=t?e.loginPage:e.linkHref;if(!e.isZi){a.indexOf("http://")>-1||a.indexOf("https://")>-1?window.open(a,a):(selectedHead.value=o,router.push({name:"interface",params:{type:e.type}}));return}if(t){a.indexOf("http://")>-1||a.indexOf("https://")>-1?window.open(a,a):router.push(a);return}switch(e.moduleId){case"692":h(2,a);break;case"569":h(2,a);break;case"538":h(1,a);break;case"570":loginZW(0,a,"166ab385ec6d49e3aa8473f31d2aaca3");break;case"116":loginZW(1,a,"0693eeb52c154ba3ba57db71b30a0b98");break;case"51":loginZW(2,a,"ebb42096345340359741dcb9c039f15c");break;case"571":loginZHFXFN(3,a,"ed698aa9d09e4ac7b35df02a2d73985f");break;case"572":break;case"573":break;case"574":break;case"575":break;case"576":loginZW(9,a,"47e0971bb15b4420bf1f351510378c72");break;case"577":break;case"578":break;case"579":loginZHFXFN(3,a,"ed698aa9d09e4ac7b35df02a2d73985f");break;case"603":h(9,a);break}}}function h(n,r,c){Q(g.loginInfo.username,ae(g.loginInfo.psd),n).then(i=>{debugger;let s=i.msg;if(s.length==0){z({type:"warning",message:"登录信息失效"});return}let e=s[0].Rows;if(n=="1"){var t=e[0].USERID,o=e[0].UNIT,a=e[0].USERNAME;e[0].NAME;var k=e[0].PASSWORD,d=e[0].UNIT_NAME,f=e[0].CONTACT;e[0].SEX;var I=e[0].TELPHONE,v=e[0].MAIL,S=e[0].IS_IDENTIFY;e[0].TYPE;var j=e[0].TEMPUSERKEYCODE,b=e[0].CHANGE_TIME;const Y={ywxt_usercode:t,ywxt_username:a,ywxt_unitcode:o,ywxt_unitname:d,ywxt_contact:f,ywxt_telephone:I,ywxt_email:v,ywxt_identify:S,ywxt_userkeycode:j,ptjk_changetime:b,password:k};localStorage.setItem("loginUserInfoSpace",JSON.stringify(Y)),E(o,t,"运维系统-登录","登录系统成功","系统登录"),selectUserRole(t,r);return}if(n=="2"){var t=e[0].USERID,a=e[0].USERNAME;e[0].NAME;var k=e[0].PASSWORD,o=e[0].UNIT,d=e[0].UNIT_NAME,f=e[0].CONTACT;e[0].SEX;var I=e[0].TELPHONE,v=e[0].MAIL,S=e[0].IS_IDENTIFY;e[0].TYPE;var j=e[0].TEMPUSERKEYCODE,F=e[0].CHANGE_TIME;const J={gxjh_usercode:t,gxjh_username:a,gxjh_unitcode:o,gxjh_unitname:d,gxjh_contact:f?decode(f):"",gxjh_telephone:I?decode(I):"",gxjh_email:v?decode(v):"",gxjh_identify:S,gxjh_userkeycode:j,gxjh_changetime:F};localStorage.setItem("exchangeUserInfo",JSON.stringify(J)),E(o,t,"浏览系统-登录","登录系统成功","系统登录"),window.open(r,r);return}if(n=="9"){var t=e[0].USERID,a=e[0].USERNAME,o=e[0].UNIT,d=e[0].UNIT_NAME,y=e[0].LAST_TIME,N=e[0].NAME,U=e[0].PHONE,T=e[0].MAIL,b=e[0].CHANGE_TIME,W=e[0].UNIT_LEVEL,B=e[0].UNIT_LEVEL_NAME;debugger;var L=e[0].ROLE_LIST.map(x=>x.ROLE_ID).join(","),O=e[0].ROLE_LIST.map(x=>x.UUID).join(",");localStorage.setItem("cstj_usercode",t),localStorage.setItem("cstj_username",a),localStorage.setItem("cstj_unitcode",o),localStorage.setItem("cstj_unitname",d),localStorage.setItem("cstj_lasttime",y),localStorage.setItem("cstj_role",L),localStorage.setItem("cstj_role_uuid",O),localStorage.setItem("cstj_name",N),localStorage.setItem("cstj_phone",U),localStorage.setItem("cstj_mail",T),localStorage.setItem("cstj_changetime",b),localStorage.setItem("cstj_unit_level",W),localStorage.setItem("cstj_unit_level_name",B);let G={cstj_usercode:t,cstj_username:a,cstj_unitcode:o,cstj_unitname:d,cstj_lasttime:y,cstj_role:L,cstj_name:N,cstj_phone:U,cstj_mail:T,cstj_changetime:b,cstj_role_uuid:O};localStorage.setItem("cstjUserInfo",JSON.stringify(G)),E(o,t,"城市体检-登录","登录系统成功","系统登录"),window.open(r,r);return}}).catch(i=>{z({type:"error",message:"登录失败"})})}function E(n,r,c,i,s){var e={UNIT:n,userid:r,PLATE:c,OPERATION:i,OPERATIONRESULT:s,appkey:localStorage.getItem("ywxt_userkeycode")};ee(e).then(t=>{})}return(n,r)=>(u(),_("div",ce,[(u(!0),_(M,null,P(w(D),(c,i)=>(u(),_("div",{class:"module",key:i},[m("div",ie,[m("img",{src:C(c.name),style:{width:"242px",height:"313px"}},null,8,le)]),m("div",de,[m("div",me,R(c.name),1),(u(!0),_(M,null,P(c.children,s=>(u(),_("div",{onMouseover:e=>H(l)?l.value=s.name:l=s.name,onMouseleave:r[0]||(r[0]=e=>H(l)?l.value="":l=""),key:s.name,class:"single"},[ue,m("span",{class:V(["single-title",{disabled:s.disabled||!w(g).canSeeSystemArr.find(e=>+e.MODULE_ID==+s.moduleId),highlight:s.name===w(l)}]),onClick:e=>Z(s,c.name)},R(s.name),11,_e)],40,ge))),128))])]))),128))]))}},Ee=K(pe,[["__scopeId","data-v-7b621085"]]);export{Ee as default};