Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

2 řádky
7.5KB

  1. import{_ as _e,d as me,G as O,D as x,r as _,T as fe,o as he,c as r,e as c,I as V,i as a,h as s,g as e,f as d,J as M,F as y,n as $,u as n,j as S,U as ve,V as xe,k as B,t as f,W as ge,A as we,z as ke,a as ye,N as q,q as Ce,s as Ee,x as Re,X as z}from"./index.d340e473.js";import{l as be}from"./auth.fe48d6d0.js";import{h as G}from"./moment.40bc58bf.js";const g=C=>(Ce("data-v-718aa8c8"),C=C(),Ee(),C),Me={class:"flex items-center flex-1"},Se=g(()=>e("p",{class:"title text-black flex-shrink-0"},"\u6E56\u5DDE\u5E02\u4FE1\u606F\u5316\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF",-1)),Ie=["onClick"],Te=["onClick"],Ne={class:"flex items-center flex-shrink-0"},Oe={class:"el-dropdown-link"},Ve=g(()=>e("p",{class:"text-center font-semibold border-b border-gray-300 text-14 py-9"},"\u6D88\u606F\u901A\u77E5",-1)),$e={class:"w-11/12 items-center text-14"},Be={class:"truncate",style:{color:"rgba(0, 0, 0, 0.65)"}},ze={style:{color:"rgba(0, 0, 0, 0.25)"}},De={class:"flex items-center text-[rgba(0,0,0,0.85)] text-14"},We={class:"flex p-8"},je=g(()=>e("span",{class:"flex-shrink-0"},"\u5F53\u524D\u89D2\u8272\uFF1A",-1)),Je={class:"flex p-8"},Le=g(()=>e("span",{class:"flex-shrink-0"},"\u5F53\u524D\u533A\u57DF\uFF1A",-1)),Pe={class:"flex p-8"},Ae=g(()=>e("span",{class:"flex-shrink-0"},"\u5F53\u524D\u5355\u4F4D\uFF1A",-1)),Ue=g(()=>e("span",null,"\u9000\u51FA\u767B\u5F55",-1)),qe=me({name:"layout"}),Ge=Object.assign(qe,{setup(C){const{proxy:H}=Re(),{projectCount:D,infoList:F}=O(x.countStore)||0,u=O(x.userStore).userInfo||{},p=we(),E=ke(),{menuArr:W}=O(x.menuStore),X=_([]),j=i=>{if(X.value=W.value.find(t=>t.name===i).children,i==="cockpits"){const t=p.resolve({path:"/cockpit"});window.open(t.href,"_blank")}else p.push({name:i})},K=async()=>{await be(),ye.remove("token"),localStorage.clear(),p.push("/login"),window.location.reload()},Q=()=>{H.$messageBox.alert("\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\uFF0813588274036\uFF09","\u7533\u8BF7\u6743\u9650",{showConfirmButton:!1})},Y=async({id:i,type:t,instanceId:b,projectId:h,meetingId:k})=>{t==="PROJECT_REVIEW"?(await z({id:i}),await x.countStore.setCountStore(),p.push({name:"handleDuringExamine",query:{instanceId:b,projectId:h}})):t==="PROJECT_REVIEW_PASS"||t==="PROJECT_REVIEW_REJECT"?(await z({id:i}),await x.countStore.setCountStore(),p.push({name:"projectStore"})):t==="PROJECT_REVIEW_BACK"?(await z({id:i}),await x.countStore.setCountStore(),p.push({name:"handleAfterGiveBack",query:{instanceId:b,id:h}})):t==="EXPERT_REVIEW"?p.push({name:"expertReview"}):t==="REVIEW_MEETING"&&p.push({name:"meetingDetail",query:{id:k}})},m=_(),I=_(),w=_(!1),T=_(),J=_(),L=_(),R=_(),Z=_(0),N=async()=>{var i;m.value=JSON.parse(JSON.stringify(W.value.filter(t=>!t.meta.hidden&&t.meta.menuType==="MENU"))),m.value.forEach(t=>{t.meta.hidden=!1}),await q(),Z.value=m.value.length*120-I.value.offsetWidth,R.value=Math.floor((m.value.length*120-I.value.offsetWidth)/120+2),T.value=m.value.slice(-R.value);for(let t=1;t<=R.value;t++)m.value[m.value.length-t].meta.hidden=!0;await q(),L.value=(i=J.value)==null?void 0:i.offsetHeight},ee=()=>{w.value=!w.value},P=i=>{window.open(i,"_blank")},te="production";return fe(()=>{N()}),he(()=>{N(),window.addEventListener("resize",()=>{N()}),document.addEventListener("click",()=>{w.value=!1}),x.countStore.setCountStore()}),(i,t)=>{const b=r("More"),h=r("el-icon"),k=r("svg-icon"),oe=r("el-tooltip"),A=r("el-dropdown-item"),ne=r("el-dropdown-menu"),se=r("el-dropdown"),ae=r("el-badge"),le=r("arrow-down"),re=r("el-divider"),U=r("SwitchButton"),ie=r("el-popover"),ce=r("el-header"),ue=r("router-view"),de=r("el-container");return c(),V(de,{class:"h-screen overflow-hidden"},{default:a(()=>[s(ce,{class:"header flex items-center justify-between"},{default:a(()=>[e("div",Me,[Se,e("ul",{ref_key:"topMenuRef",ref:I,class:"flex -mx-20 header-menu flex-1"},[(c(!0),d(y,null,M(m.value,o=>(c(),d(y,{key:o.name},[o.meta.hidden?B("",!0):(c(),d("li",{key:0,class:"px-12 text-16 cursor-pointer flex items-center",onClick:l=>n(E).meta.topMenu!==o.name?j(o.name):null},[e("span",{class:$(["flex items-center",[n(E).meta.topMenu===o.name?"active-menu":"border-transparent"]])},f(o.meta.title),3)],8,Ie))],64))),128)),R.value>0?(c(),d("li",{key:0,class:"px-20 text-16 cursor-pointer whitespace-nowrap relative flex items-center",onClick:xe(ee,["stop"])},[e("span",{class:$(["flex items-center",[T.value.some(o=>o.name===n(E).meta.topMenu)?"active-menu":"border-transparent"]])},[s(h,{class:"mr-8",size:16},{default:a(()=>[s(b)]),_:1}),S(" \u66F4\u591A\u83DC\u5355 ")],2),e("div",{class:"absolute hidMenus w-full top-full z-10 text-center overflow-hidden",style:ve({height:w.value?`${L.value}px`:0,opacity:w.value?"100%":0})},[e("div",{ref_key:"hidMenuRef",ref:J,class:"py-10"},[(c(!0),d(y,null,M(T.value,o=>{var l;return c(),d("p",{key:o.name,class:"px-20 hidMenu",onClick:v=>j(o.name)},[e("span",{class:$(["flex items-center",[n(E).meta.topMenu===o.name?"active-menu":"border-transparent"]])},f((l=o==null?void 0:o.meta)==null?void 0:l.title),3)],8,Te)}),128))],512)],4)])):B("",!0)],512)]),e("div",Ne,[e("span",{class:"text-14 cursor-pointer mr-8 pointTit",onClick:t[0]||(t[0]=o=>P(`https://xmglhejia.dsj.lishui.gov.cn/sys/thirdLogin/zzd/login?employeeCode=${n(u).employeeCode}&employeeName==${n(u).realName}`))},"\u6838\u4EF7\u7EC4\u4EF6"),e("span",{class:"text-14 cursor-pointer mr-8 pointTit",onClick:t[1]||(t[1]=o=>P(n(te)==="production"?`https://xmglchacho.dsj.lishui.gov.cn:4430/login?code=${n(u).employeeCode}`:`http://xmcc.ningdatech.com/login?code=${n(u).employeeCode}`))},"\u67E5\u91CD\u7EC4\u4EF6"),s(oe,{content:"\u64CD\u4F5C\u624B\u518C",placement:"bottom",effect:"light"},{default:a(()=>[s(k,{name:"czsc",class:"cursor-pointer text-16"})]),_:1}),s(ae,{value:n(D),hidden:!n(D),class:"h-16 ml-12 mr-28"},{default:a(()=>[s(se,{trigger:"hover"},{dropdown:a(()=>[s(ne,{style:{width:"305px"},class:"newsDropDownMenu"},{default:a(()=>{var o;return[Ve,(c(!0),d(y,null,M((o=n(F))==null?void 0:o.sort((l,v)=>n(G)(v.createTime).valueOf()-n(G)(l.createTime).valueOf()).filter((l,v)=>v<5),l=>(c(),V(A,{key:l.id,onClick:v=>Y(l)},{default:a(()=>[e("div",$e,[e("div",Be,f(l.content),1),e("div",ze,f(l.createTime),1)])]),_:2},1032,["onClick"]))),128)),s(A,{class:"justify-center font-semibold border-t border-gray-300",style:{color:"rgba(0, 87, 255, 1)"},onClick:t[2]||(t[2]=l=>n(p).push({name:"infoCenter"}))},{default:a(()=>[S("\u67E5\u770B\u66F4\u591A"),s(k,{name:"forward","svg-class":"message-icon mr-8"})]),_:1})]}),_:1})]),default:a(()=>[e("span",Oe,[s(k,{name:"bell",class:"cursor-pointer text-16"})])]),_:1})]),_:1},8,["value","hidden"]),s(ie,{placement:"bottom",width:200,trigger:"click","popper-class":"loginOutPop"},{reference:a(()=>[e("a",De,[S(f(n(u).realName)+" ",1),s(h,{class:"el-icon--right"},{default:a(()=>[s(le)]),_:1})])]),default:a(()=>{var o,l;return[e("div",null,[e("div",We,[je,e("div",null,[(c(!0),d(y,null,M(n(u).userRoleInfoList,(v,pe)=>(c(),d("p",{key:pe},f(v.name),1))),128))])]),e("div",Je,[Le,e("div",null,f(n(u).regionName),1)]),e("div",Pe,[Ae,e("div",null,f(n(u).empPosUnitName),1)]),s(re,{style:{margin:"8px 0 0 0"}}),n(u).regionCode==="330000"&&((o=n(u).userRoleInfoList)==null?void 0:o.length)<2&&((l=n(u).userRoleInfoList)==null?void 0:l[0].code)==="VISITOR"?(c(),d("p",{key:0,class:"cursor-pointer p-8 login-out",onClick:Q},[s(h,null,{default:a(()=>[s(U)]),_:1}),S("\u7533\u8BF7\u6743\u9650")])):B("",!0),e("p",{class:"cursor-pointer p-8 login-out flex items-center",onClick:K},[s(h,{class:"mr-4"},{default:a(()=>[s(U)]),_:1}),Ue])])]}),_:1})])]),_:1}),s(ue,null,{default:a(({Component:o})=>[(c(),V(ge(o)))]),_:1})]),_:1})}}}),Ke=_e(Ge,[["__scopeId","data-v-718aa8c8"]]);export{Ke as default};