1 line
9.2 KiB
Plaintext
1 line
9.2 KiB
Plaintext
"use strict";(self["webpackChunkinfrastructure_control"]=self["webpackChunkinfrastructure_control"]||[]).push([[886],{3886:function(e,t,a){a.r(t),a.d(t,{default:function(){return L}});var l=a(3396);const i={class:"layout"},s={class:"header"},n={class:"content"},r={class:"main"};function d(e,t,a,d,o,c){const h=(0,l.up)("theHeader"),u=(0,l.up)("theTabs"),p=(0,l.up)("router-view");return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",s,[(0,l.Wm)(h)]),(0,l._)("div",n,[(0,l._)("div",r,[o.menuLevelList.includes(e.$route.path)?(0,l.kq)("",!0):((0,l.wg)(),(0,l.j4)(u,{key:0})),(0,l.Wm)(p)])])])}var o=a(7139);const c={class:"theHeader"},h={class:"page_header"},u={class:"header_left"},p={class:"left_weather"},m={class:"left_temperature"},k={class:"header_center"},w={class:"menu_center"},_={class:"el-dropdown-link"},f={class:"el-dropdown-link"},g={class:"el-dropdown-link"},v={class:"el-dropdown-link"},b={class:"header_right"},W={class:"right_date"},$={class:"right_week"},T={class:"right_hms"};function C(e,t,a,i,s,n){const r=(0,l.up)("arrow-down"),d=(0,l.up)("el-icon"),C=(0,l.up)("el-dropdown-menu"),S=(0,l.up)("el-dropdown"),U=(0,l.up)("el-dropdown-item");return(0,l.wg)(),(0,l.iD)("div",c,[(0,l._)("div",h,[(0,l._)("div",{class:"header_title",onClick:t[0]||(t[0]=e=>n.handleReplace("/analyticalDecision"))}),(0,l._)("div",null,[(0,l._)("div",{class:"header_back",onClick:t[1]||(t[1]=e=>n.pageBack())},"返回")]),(0,l._)("div",u,[(0,l._)("div",p,"天气:"+(0,o.zw)(s.weatherheader&&s.weatherheader["weather"]),1),(0,l._)("div",m,(0,o.zw)(s.weatherheader&&s.weatherheader["currentTemp"]),1)]),(0,l._)("div",k,[(0,l._)("div",{class:"menu_left",onClick:t[2]||(t[2]=e=>n.handleReplace("/illegalOperation"))},"违章作业"),(0,l._)("div",w,[(0,l.Wm)(S,null,{dropdown:(0,l.w5)((()=>[(0,l.Wm)(C)])),default:(0,l.w5)((()=>[(0,l._)("span",_,[(0,l.Uk)(" 工程画像 "),(0,l.Wm)(d,{class:"el-icon--right"},{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1})])])),_:1}),(0,l.Wm)(S,null,{dropdown:(0,l.w5)((()=>[(0,l.Wm)(C,null,{default:(0,l.w5)((()=>[(0,l.Wm)(U,{onClick:t[3]||(t[3]=e=>n.handleSkip("/teamStructure","队伍结构"))},{default:(0,l.w5)((()=>[(0,l.Uk)("队伍结构")])),_:1}),(0,l.Wm)(U,{onClick:t[4]||(t[4]=e=>n.handleSkip("/teamEvaluation","队伍综合评级"))},{default:(0,l.w5)((()=>[(0,l.Uk)("队伍综合评级")])),_:1}),(0,l.Wm)(U,{onClick:t[5]||(t[5]=e=>n.handleSkip("/teamRisk","队伍风险事件"))},{default:(0,l.w5)((()=>[(0,l.Uk)("队伍风险事件")])),_:1}),(0,l.Wm)(U,{onClick:t[6]||(t[6]=e=>n.handleSkip("/teamPerformance","队伍业绩"))},{default:(0,l.w5)((()=>[(0,l.Uk)("队伍业绩")])),_:1}),(0,l.Wm)(U,{onClick:t[7]||(t[7]=e=>n.handleSkip("/teamAccident","队伍质量事故"))},{default:(0,l.w5)((()=>[(0,l.Uk)("队伍质量事故")])),_:1}),(0,l.Wm)(U,{onClick:t[8]||(t[8]=e=>n.handleSkip("/teamSecurity","队伍安全事故防范"))},{default:(0,l.w5)((()=>[(0,l.Uk)("队伍安全事故防范")])),_:1})])),_:1})])),default:(0,l.w5)((()=>[(0,l._)("span",f,[(0,l.Uk)(" 队伍画像 "),(0,l.Wm)(d,{class:"el-icon--right"},{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1})])])),_:1}),(0,l.Wm)(S,null,{dropdown:(0,l.w5)((()=>[(0,l.Wm)(C,null,{default:(0,l.w5)((()=>[(0,l.Wm)(U,{onClick:t[9]||(t[9]=e=>n.handleSkip("/securityDaily","安全日报"))},{default:(0,l.w5)((()=>[(0,l.Uk)("安全日报")])),_:1}),(0,l.Wm)(U,{onClick:t[10]||(t[10]=e=>n.handleSkip("/monitorRisk","监控风险告警分析"))},{default:(0,l.w5)((()=>[(0,l.Uk)("监控风险告警分析")])),_:1}),(0,l.Wm)(U,{onClick:t[11]||(t[11]=e=>n.handleSkip("/riskWarning","风险预警提前处置"))},{default:(0,l.w5)((()=>[(0,l.Uk)("风险预警提前处置")])),_:1}),(0,l.Wm)(U,{onClick:t[12]||(t[12]=e=>n.handleSkip("/emphasisRisk","重点风险分析"))},{default:(0,l.w5)((()=>[(0,l.Uk)("重点风险分析")])),_:1}),(0,l.Wm)(U,{onClick:t[13]||(t[13]=e=>n.handleSkip("/riskRectification","风险整改分析"))},{default:(0,l.w5)((()=>[(0,l.Uk)("风险整改分析")])),_:1}),(0,l.Wm)(U,{onClick:t[14]||(t[14]=e=>n.handleSkip("/riskPeriod","风险时段分析"))},{default:(0,l.w5)((()=>[(0,l.Uk)("风险时段分析")])),_:1}),(0,l.Wm)(U,{onClick:t[15]||(t[15]=e=>n.handleSkip("/riskCostImpact","风险成本影响分析"))},{default:(0,l.w5)((()=>[(0,l.Uk)("风险成本影响分析")])),_:1}),(0,l.Wm)(U,{onClick:t[16]||(t[16]=e=>n.handleSkip("/riskProjectRank","风险工程排名"))},{default:(0,l.w5)((()=>[(0,l.Uk)("风险工程排名")])),_:1})])),_:1})])),default:(0,l.w5)((()=>[(0,l._)("span",g,[(0,l.Uk)(" 安全风险 "),(0,l.Wm)(d,{class:"el-icon--right"},{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1})])])),_:1}),(0,l.Wm)(S,null,{dropdown:(0,l.w5)((()=>[(0,l.Wm)(C,null,{default:(0,l.w5)((()=>[(0,l.Wm)(U,{onClick:t[17]||(t[17]=e=>n.handleSkip("/jobInfo","工程作业信息"))},{default:(0,l.w5)((()=>[(0,l.Uk)("工程作业信息")])),_:1}),(0,l.Wm)(U,{onClick:t[18]||(t[18]=e=>n.handleSkip("/siteControl","现场管控"))},{default:(0,l.w5)((()=>[(0,l.Uk)("现场管控")])),_:1}),(0,l.Wm)(U,{onClick:t[19]||(t[19]=e=>n.handleSkip("/planExecution","计划执行情况"))},{default:(0,l.w5)((()=>[(0,l.Uk)("计划执行情况")])),_:1}),(0,l.Wm)(U,{onClick:t[20]||(t[20]=e=>n.handleSkip("/crewMember","班组人员"))},{default:(0,l.w5)((()=>[(0,l.Uk)("班组人员")])),_:1}),(0,l.Wm)(U,{onClick:t[21]||(t[21]=e=>n.handleSkip("/fieldOperation","现场作业"))},{default:(0,l.w5)((()=>[(0,l.Uk)("现场作业")])),_:1}),(0,l.Wm)(U,{onClick:t[22]||(t[22]=e=>n.handleSkip("/qualityAlarm","工程质量告警及整改"))},{default:(0,l.w5)((()=>[(0,l.Uk)("工程质量告警及整改")])),_:1}),(0,l.Wm)(U,{onClick:t[23]||(t[23]=e=>n.handleSkip("/accidentAnalysis","队伍质量事故分析"))},{default:(0,l.w5)((()=>[(0,l.Uk)("队伍质量事故分析")])),_:1})])),_:1})])),default:(0,l.w5)((()=>[(0,l._)("span",v,[(0,l.Uk)(" 工程质量 "),(0,l.Wm)(d,{class:"el-icon--right"},{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1})])])),_:1})]),(0,l._)("div",{class:"menu_right",onClick:t[24]||(t[24]=e=>n.handleReplace("/monitoringCoverage"))},"监控覆盖")]),(0,l._)("div",b,[(0,l._)("div",W,(0,o.zw)(s.dateNow1),1),(0,l._)("div",$,(0,o.zw)(s.weekNow),1),(0,l._)("div",T,(0,o.zw)(s.hmsNow),1)])])])}a(7658);var S=a(1836),U={name:"theHeader",data(){return{weatherheader:[],dateNow1:"",dateNow:"",dateYes:"",weekNow:"",hmsNow:"",timer:null}},created(){this.initData()},methods:{initData(){this.setTime(),this.getWeatherMap()},pageBack(){this.clerTime(),window.close(window.openUrl)},getWeatherMap(){this.$http.post("proteam/home/getWeatherMap",{token:(0,S.LP)(),orgId:(0,S.PR)().orgId}).then((e=>{if(console.log(e),200==e.code){const t=e.data||[];console.log(t),this.weatherheader=t&&t[0]}}))},setTime(){this.timer=window.setInterval((()=>{this.getTime()}),1e3)},clerTime(){window.clearInterval(this.timer)},getTime(e){const t=new Date,a=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],l=t.getFullYear(),i=(t.getMonth()+1+"").padStart(2,"0"),s=(t.getDate()+"").padStart(2,"0"),n=(t.getDate()-1+"").padStart(2,"0"),r=(t.getHours()+"").padStart(2,"0"),d=(t.getMinutes()+"").padStart(2,"0"),o=(t.getSeconds()+"").padStart(2,"0"),c=t.getDay();return this.dateNow1=`${l}年${t.getMonth()+1}月${t.getDate()}日`,this.dateNow=`${l}-${i}-${s}`,this.dateYes=`${l}-${i}-${n}`,this.weekNow=a[c],this.hmsNow=`${r}:${d}:${o}`,"YYYY-MM-DD hh:mm"===e?`${l}-${i}-${s} ${r}:${d}`:`${l}-${i}-${s}`},handleReplace(e){this.$router.push(e)},handleSkip(e,t){0===this.$store.state.openTabs.length&&(this.$store.dispatch("addTab",{route:e,title:t}),this.$store.dispatch("activeTab",e)),this.$router.push(e)}}},y=a(89);const D=(0,y.Z)(U,[["render",C],["__scopeId","data-v-7865da14"]]);var N=D;const I={class:"theTabs"};function R(e,t,a,i,s,n){const r=(0,l.up)("el-tab-pane"),d=(0,l.up)("el-tabs");return(0,l.wg)(),(0,l.iD)("div",I,[(0,l.Wm)(d,{modelValue:n.selectTabsName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.selectTabsName=e),type:"card",onTabClick:n.addTab,closable:"",onTabRemove:n.removeTab},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.tabsArray,((e,t)=>((0,l.wg)(),(0,l.j4)(r,{key:t,label:e.title,name:e.route},null,8,["label","name"])))),128))])),_:1},8,["modelValue","onTabClick","onTabRemove"])])}var A={computed:{tabsArray(){return this.$store.state.openTabs},selectTabsName:{get(){return this.$store.state.activeTabIndex},set(e){this.$store.state.activeTabIndex=e}}},data(){return{tabIndex:2}},watch:{$route(e,t){let a=!1;for(let l=0;l<this.tabsArray.length;l++)if(this.tabsArray[l].route===e.path){this.$store.dispatch("activeTab",e.path),a=!0;break}a||(this.$store.dispatch("addTab",{route:e.path,title:e.meta.title}),this.$store.dispatch("activeTab",this.$route.path))}},created(){},methods:{addTab(e){const t=e.props["name"];this.$router.push({path:t})},removeTab(e){if(console.log(e),"/"===e||1==this.tabsArray.length)return this.$message("不能再删啦!"),!1;this.$store.dispatch("deleteTab",e),this.selectTabsName===e&&(this.$store.dispatch("activeTab",this.tabsArray[this.tabsArray.length-1].route),this.$router.push({path:this.selectTabsName}))}}};const M=(0,y.Z)(A,[["render",R],["__scopeId","data-v-69a100d1"]]);var Y=M,H={components:{theHeader:N,theTabs:Y},data(){return{menuLevelList:["/analyticalDecision","/illegalOperation","/monitoringCoverage"]}},created(){},methods:{}};const z=(0,y.Z)(H,[["render",d],["__scopeId","data-v-5d682d18"]]);var L=z}}]); |