threejshb.ded5abcc.js 27 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["threejshb"],{"0baf":function(t,e,i){"use strict";i.r(e);var a=[function(){var t=this.$createElement,t=this._self._c||t;return t("div",{staticClass:"left"},[t("div",{staticClass:"img"},[t("img",{attrs:{src:i("89a6"),alt:""}})])])}],o=i("d4ec"),s=i("bee2"),c=i("257e"),r=i("262e"),d=i("2caf"),l=i("ade3"),n=(i("99af"),i("d3b7"),i("caad"),i("2532"),i("4de4"),i("159b"),i("ac1f"),i("5319"),i("4d63"),i("c607"),i("2c3e"),i("25f0"),i("b0c0"),i("a9e3"),i("fb6a"),i("cfc3"),i("907a"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("3c5d"),i("2954"),i("649e"),i("219c"),i("170b"),i("b39a"),i("72f7"),i("2b0e")),u=i("2fe1"),h=i("5a89"),b=i("4721"),g=i("0ca5"),v=i("34ad"),m=i("32ab"),f=i("4b1d"),p=i("539b"),y=i("85af"),C=i("0805"),O=i.n(C),k=i("3193"),n=Object(u.a)({components:{echarts:p.a,ProgressBar:y.a}})(y=function(t){Object(r.a)(n,t);var i=Object(d.a)(n);function n(){var t;Object(o.a)(this,n);for(var e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Object(l.a)(Object(c.a)(t),"config",null),Object(l.a)(Object(c.a)(t),"isRouterAlive",!0),Object(l.a)(Object(c.a)(t),"tab",1),Object(l.a)(Object(c.a)(t),"task",[]),Object(l.a)(Object(c.a)(t),"isWebp",!1),Object(l.a)(Object(c.a)(t),"windowWidth",document.documentElement.clientWidth),Object(l.a)(Object(c.a)(t),"windowHeight",document.documentElement.clientHeight),Object(l.a)(Object(c.a)(t),"zoom",1),Object(l.a)(Object(c.a)(t),"top",0),Object(l.a)(Object(c.a)(t),"loading",!0),Object(l.a)(Object(c.a)(t),"config2loading",!0),Object(l.a)(Object(c.a)(t),"token",""),Object(l.a)(Object(c.a)(t),"info",null),Object(l.a)(Object(c.a)(t),"scene",null),Object(l.a)(Object(c.a)(t),"camera",null),Object(l.a)(Object(c.a)(t),"renderer",null),Object(l.a)(Object(c.a)(t),"CSS3Renderer",null),Object(l.a)(Object(c.a)(t),"gltf",null),Object(l.a)(Object(c.a)(t),"pmremGenerator",null),Object(l.a)(Object(c.a)(t),"flyLines",[]),Object(l.a)(Object(c.a)(t),"week",""),Object(l.a)(Object(c.a)(t),"day",""),Object(l.a)(Object(c.a)(t),"time",""),Object(l.a)(Object(c.a)(t),"config",{header:["类型","工人","任务内容","状态"],data:[],rowNum:12,columnWidth:["80","80","160","80"],align:["center","center","center","center"],headerBGC:"rgba(17, 43, 117, 0)",oddRowBGC:"rgba(17, 43, 117, 0)",evenRowBGC:"rgba(9, 32, 99, 0)"}),Object(l.a)(Object(c.a)(t),"configflag",!0),Object(l.a)(Object(c.a)(t),"config2",{header:["地点名称","打卡次数"],data:[],rowNum:12,columnWidth:["200","200"],align:["center","center","center","center"],headerBGC:"rgba(17, 43, 117, 0)",oddRowBGC:"rgba(17, 43, 117, 0)",evenRowBGC:"rgba(9, 32, 99, 0)"}),Object(l.a)(Object(c.a)(t),"title","河北省中医院项目智慧大屏"),Object(l.a)(Object(c.a)(t),"curCates",[1,2,3,4,5,6]),Object(l.a)(Object(c.a)(t),"curPoints",[]),Object(l.a)(Object(c.a)(t),"curPointsObj",[]),Object(l.a)(Object(c.a)(t),"curYsLines",[]),Object(l.a)(Object(c.a)(t),"curYsLinesObj",[]),Object(l.a)(Object(c.a)(t),"curPatrols",[]),Object(l.a)(Object(c.a)(t),"curPatrolsObj",[]),Object(l.a)(Object(c.a)(t),"curTask",[]),Object(l.a)(Object(c.a)(t),"curWorldVector",null),Object(l.a)(Object(c.a)(t),"week",""),Object(l.a)(Object(c.a)(t),"day",""),Object(l.a)(Object(c.a)(t),"time",""),Object(l.a)(Object(c.a)(t),"weather",{}),Object(l.a)(Object(c.a)(t),"mode",1),Object(l.a)(Object(c.a)(t),"modelurl","".concat("http://guoyao.jya-tech.com","/hbzyy.gltf")),Object(l.a)(Object(c.a)(t),"userTypeFlag",!1),Object(l.a)(Object(c.a)(t),"userCountConfig",{radius:"80%",activeRadius:"85%",data:[],lineWidth:10,digitalFlopStyle:{fontSize:16},color:["#0263FF","#FF7723","#FFE84B","#8E30FF","#E541AC","#50E1F7"],showOriginValue:!0}),Object(l.a)(Object(c.a)(t),"commentRankingFlag",!1),Object(l.a)(Object(c.a)(t),"commentRankingConfig",{header:["排名","后勤人员","部门","角色","完成任务数","满意度"],data:[],rowNum:2,headerBGC:"rgba(7,34,94,0.5)",align:["center","center","center","center","center","center"],oddRowBGC:"rgba(17, 43, 117, 0.5)",evenRowBGC:"rgba(9, 32, 99, 0.5)"}),Object(l.a)(Object(c.a)(t),"mateRankingFlag",!1),Object(l.a)(Object(c.a)(t),"mateRankongConfig",{data:[],rowNum:3,oddRowBGC:"rgba(17, 43, 117, 0.5)",evenRowBGC:"rgba(9, 32, 99, 0.5)"}),Object(l.a)(Object(c.a)(t),"taskFlag",!1),Object(l.a)(Object(c.a)(t),"taskConfig",{header:["任务类型","执行人员","任务内容","任务状态"],data:[],rowNum:3,headerBGC:"rgba(7,34,94,0.5)",oddRowBGC:"rgba(17, 43, 117, 0.5)",evenRowBGC:"rgba(9, 32, 99, 0.5)"}),Object(l.a)(Object(c.a)(t),"todoeFlag",!1),Object(l.a)(Object(c.a)(t),"todoEchartsOption",{tooltip:{trigger:"item"},legend:{top:"5%",left:"center"},color:["#0E8AF5","#8DFFFF"],series:[]}),Object(l.a)(Object(c.a)(t),"mode",1),Object(l.a)(Object(c.a)(t),"type",1),Object(l.a)(Object(c.a)(t),"todoTypeEchartsOption",{color:["#49A9FA","#00FFFF"],tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{show:!0,data:["工单数","订单数"],itemWidth:20,itemHeight:5,textStyle:{fontSize:12,color:"#fff"},top:"-3px"},grid:{top:"15px",left:"0",right:"0",bottom:"0",containLabel:!0},xAxis:[{type:"category",data:[],axisLine:{lineStyle:{color:"#FFFFFF",width:1}}}],yAxis:[{type:"value",name:"数量",axisLabel:{formatter:"{value}"},axisLine:{show:!0,lineStyle:{color:"#FFFFFF",width:1}},axisTick:{show:!0},splitLine:{show:!1}}],series:[{name:"工单数",type:"bar",barWidth:"10px",data:[]},{name:"订单数",type:"line",data:[]}]}),Object(l.a)(Object(c.a)(t),"wasteEchartsOption",{color:["#FF9518","#FFD540"],legend:{show:!0,data:["当天收取重量","30天内平均收取重量"],itemWidth:20,itemHeight:5,textStyle:{fontSize:12,color:"#fff"},top:"-3px"},grid:{top:"15px",left:"0",right:"0",bottom:"0",containLabel:!0},xAxis:{type:"category",data:[],axisLine:{lineStyle:{color:"#C4C4C4",width:1}}},yAxis:{type:"value",axisLine:{lineStyle:{color:"#C4C4C4",width:1}},axisTick:{},splitLine:{show:!1}},series:[]}),Object(l.a)(Object(c.a)(t),"patrolEchartsOption",{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},color:["#9433D6","#1E8BFF","#E9179C","#00BFFF"],legend:{data:["巡检","巡视","巡查","巡更"],textStyle:{color:"#ffffff"}},toolbox:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:[],axisLabel:{show:!0,textStyle:{color:"#ffffff"}}}],yAxis:[{type:"value",name:"数量",splitLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#ffffff"}},axisLine:{lineStyle:{color:"#FFFFFF",width:1}}}],series:[]}),Object(l.a)(Object(c.a)(t),"todoCountData",{}),Object(l.a)(Object(c.a)(t),"userCount",0),Object(l.a)(Object(c.a)(t),"dailyList",[]),Object(l.a)(Object(c.a)(t),"todayTodoData",[]),Object(l.a)(Object(c.a)(t),"patrolImg",[]),t}return Object(s.a)(n,[{key:"created",value:function(){var t=this;this.isWebp=this.$isSupportWebp,this.token=this.getUrlParam("token")?this.getUrlParam("token"):"",this.token="MDAwMDAwMDAwMIitrK4",this.token&&this.$utils.setLocalStorage("token",this.token),this.orgId=this.$route.params.orgId,document.title=this.title,this.realSysTime(),setInterval(function(){t.realSysTime()},1e3),this.initThree(),this.getData(),this.getTodayWeather(),this.getTodoCountData(),this.getUserCount(),this.getUserCate(),this.userCommentScoreList(),this.getMateData(),this.getTaskRecordOne(),this.getTaskListData(),this.getTodayTodoData(),this.getOrderCount(),this.getDepRecordList(),this.getPatrolImg(),this.getPatrolRecordCount(),setInterval(function(){t.getData(),t.getTodoCountData(),t.getUserCount(),t.getUserCate(),t.userCommentScoreList(),t.getMateData(),t.getTaskRecordOne(),t.getTaskListData(),t.getTodayTodoData(),t.getOrderCount(),t.getDepRecordList(),t.getPatrolRecordCount()},3e5),setInterval(function(){t.getPatrolImg()},4e3),setInterval(function(){t.getTodayWeather()},144e5)}},{key:"backPage",value:function(){this.$router.back()}},{key:"getData",value:function(){var e=this,t={token:this.token};k.a.getTaskData(t).then(function(t){e.task=t.data.task,e.loading=!1,e.config2loading=!0,e.$nextTick(function(){e.config2loading=!1,e.config2.data=t.data.addrs}),e.formatTaskData(),e.scene||e.initThree()}).catch(function(){}).finally(function(){e.loading=!1})}},{key:"getTodayWeather",value:function(){var e=this;k.a.getTodayWeather({token:this.token}).then(function(t){e.weather=t.data}).catch(function(){})}},{key:"getTodoCountData",value:function(){var e=this;k.a.todoCountData({token:this.token}).then(function(t){e.todoCountData=t.data}).catch(function(){})}},{key:"getUserCount",value:function(){var e=this;k.a.getUserCount({token:this.token}).then(function(t){e.userCount=t.data}).catch(function(){})}},{key:"getUserCate",value:function(){var e=this;k.a.getUserCate({token:this.token}).then(function(t){e.userTypeFlag=!1,e.$nextTick(function(){e.userTypeFlag=!0,e.userCountConfig.data=t.data})}).catch(function(){e.userTypeFlag=!0})}},{key:"userCommentScoreList",value:function(){var e=this;k.a.userCommentScoreList({token:this.token}).then(function(t){e.commentRankingFlag=!1,e.$nextTick(function(){e.commentRankingFlag=!0,e.commentRankingConfig.data=t.data})}).catch(function(){e.commentRankingFlag=!0})}},{key:"getMateData",value:function(){var e=this;k.a.getMateData({token:this.token}).then(function(t){e.mateRankingFlag=!1,e.$nextTick(function(){e.mateRankingFlag=!0,e.mateRankongConfig.data=t.data})}).catch(function(){e.mateRankingFlag=!0})}},{key:"getTaskRecordOne",value:function(){var e=this;k.a.getTaskRecordOne({token:this.token}).then(function(t){e.dailyList=t.data}).catch(function(){})}},{key:"getTaskListData",value:function(){var e=this;k.a.getTaskListData({token:this.token}).then(function(t){e.taskFlag=!1,e.$nextTick(function(){e.taskFlag=!0,e.taskConfig.data=t.data})}).catch(function(){e.taskFlag=!0})}},{key:"getTodayTodoData",value:function(){var e=this;k.a.getTodayTodoData({token:this.token}).then(function(t){e.todayTodoData=t.data,e.todoeFlag=!1,e.todoEchartsOption.series.data=t.data.list;t={type:"pie",radius:["55%","75%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:40,fontWeight:"bold"}},labelLine:{show:!1},data:t.data.list};e.todoEchartsOption.series.push(t),e.todoeFlag=!0}).catch(function(){e.todoeFlag=!0})}},{key:"getOrderCount",value:function(){var e=this;k.a.getOrderCount({type:this.type,mode:this.mode,token:this.token}).then(function(t){e.$nextTick(function(){e.todoTypeEchartsOption.xAxis=[{type:"category",data:t.data.d,axisLine:{lineStyle:{color:"#FFFFFF",width:1}}}],e.todoTypeEchartsOption.series=[{name:"工单数",type:"bar",barWidth:"5px",data:t.data.d1},{name:"订单数",type:"line",data:t.data.d2}]})}).catch(function(){}).finally(function(){})}},{key:"getDepRecordList",value:function(){var e=this;k.a.getDepRecordList({token:this.token}).then(function(t){e.$nextTick(function(){e.wasteEchartsOption.xAxis=[{type:"category",data:t.data.x,axisLine:{lineStyle:{color:"#FFFFFF",width:1}}}],e.wasteEchartsOption.series=[{type:"bar",stack:"total",barWidth:"12px",data:t.data.y1},{type:"bar",stack:"total",barWidth:"12px",data:t.data.y2}]})}).catch(function(){}).finally(function(){})}},{key:"getPatrolImg",value:function(){var e=this;k.a.getPatrolImg({token:this.token}).then(function(t){e.patrolImg=t.data}).catch(function(){})}},{key:"getPatrolRecordCount",value:function(){var e=this;k.a.getPatrolRecordCount({token:this.token}).then(function(t){e.$nextTick(function(){e.patrolEchartsOption.xAxis=[{type:"category",boundaryGap:!1,data:t.data.date,axisLabel:{show:!0,textStyle:{color:"#ffffff"}}}],e.patrolEchartsOption.series=[{name:"巡检",type:"line",stack:"总量",smooth:!0,data:t.data.count1},{name:"巡视",type:"line",stack:"总量",smooth:!0,data:t.data.count2},{name:"巡查",type:"line",stack:"总量",smooth:!0,data:t.data.count3},{name:"巡更",type:"line",stack:"总量",smooth:!0,data:t.data.count4}]})}).catch(function(){}).finally(function(){})}},{key:"reload",value:function(){var t=this;this.isRouterAlive=!1,this.$nextTick(function(){t.isRouterAlive=!0})}},{key:"handTask",value:function(e){this.curCates.includes(e)?this.curCates=this.curCates.filter(function(t){return t!==e}):this.curCates.push(e),this.formatTaskData()}},{key:"handClose",value:function(){document.getElementById("mark").style.opacity=0,this.curWorldVector=null}},{key:"formatTaskData",value:function(){var s=this,i=[],n=[],o=[],c=[],r=[];this.task.forEach(function(e){var t,a;s.curCates.includes(e.cate)&&(t='<span style="color:#4BA4FF;">未开始<span>',1===e.status&&(t='<span style="color:#28ffed;">进行中<span>'),i.push([e.cateTitle,e.userName,e.content,t]),1===e.cate?3===e.address.xyz.length&&(n.push({cate:e.cate,x:e.address.xyz[0],y:e.address.xyz[1],z:e.address.xyz[2],addrId:e.address.id,addrName:e.address.title,obj:e}),r.includes(e.address.id)||r.push(e.address.id)):2===e.cate?3===e.start.xyz.length&&3===e.end.xyz.length&&(n.push({cate:e.cate,x:e.start.xyz[0],y:e.start.xyz[1],z:e.start.xyz[2],addrId:e.start.id,addrName:e.start.title,obj:e}),r.includes(e.start.id)||r.push(e.start.id),n.push({cate:e.cate,x:e.end.xyz[0],y:e.end.xyz[1],z:e.end.xyz[2],addrId:e.end.id,addrName:e.end.title,obj:e}),r.includes(e.end.id)||r.push(e.end.id),o.push({start:e.start.xyz,end:e.end.xyz,obj:e})):(a=[],e.addrs.forEach(function(t){3===t.xyz.length&&(a.push(t.xyz),n.push({cate:e.cate,x:t.xyz[0],y:t.xyz[1],z:t.xyz[2],addrId:t.id,addrName:t.title,obj:e}),r.includes(t.id)||r.push(t.id))}),0<a.length&&c.push({cate:e.cate,points:a})))});var t=[];r.forEach(function(e){var a={cate:1,x:"",y:"",z:"",addrId:0,addrName:"",obj:[]},s=[],i=[];n.forEach(function(t){t.addrId!==e||s.includes(t.obj.id)||(a.x=t.x,a.y=t.y,a.z=t.z,a.addrId=t.addrId,a.addrName=t.addrName,s.push(t.obj.id),i.push(t.obj))}),a.obj=i,t.push(a)}),this.config.data=i,this.curPoints=t,this.curYsLines=o,this.curPatrols=c,this.configflag=!1,this.$nextTick(function(){s.configflag=!0,s.drawPoints()})}},{key:"beforeDestroy",value:function(){}},{key:"mounted",value:function(){var t=this;window.onresize=function(){t.windowHeight=document.documentElement.clientHeight,t.windowWidth=document.documentElement.clientWidth,window.location.reload()}}},{key:"handTab",value:function(t){this.tab=t}},{key:"getUrlParam",value:function(t){return decodeURIComponent((new RegExp("[?|&]".concat(t,"=")+"([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null}},{key:"initThree",value:function(){this.scene=null,this.scene=new h.gb,this.CSS3Renderer=new m.a,this.CSS3Renderer.setSize(window.innerWidth,window.innerHeight),this.CSS3Renderer.domElement.style.position="absolute",this.CSS3Renderer.domElement.style.top="0px",this.CSS3Renderer.domElement.style.left="0px",this.CSS3Renderer.domElement.style.pointerEvents="none",document.body.appendChild(this.CSS3Renderer.domElement);var t=window.innerWidth,e=window.innerHeight;this.camera=new h.W(60,t/e,.01,3e3),this.camera.position.set(0,11,39),this.camera.lookAt(this.scene.position),this.renderer=new h.wb({antialias:!0,alpha:!0}),this.renderer.setSize(t,e),this.renderer.setClearColor(1315103,0),document.body.appendChild(this.renderer.domElement),this.renderer.domElement.style.position="absolute",this.renderer.domElement.style.top="0px",this.renderer.domElement.style.zIndex="-1",this.renderer.render(this.scene,this.camera),this.pmremGenerator=new h.V(this.renderer),this.pmremGenerator.compileEquirectangularShader(),this.scene.environment=this.pmremGenerator.fromScene(new f.a).texture;var a=this;!function t(){a.CSS3Renderer.render(a.scene,a.camera),a.renderer.render(a.scene,a.camera),requestAnimationFrame(t),a.updateDrawFlyLines()}(),new b.a(this.camera,this.renderer.domElement).enableZoom=!1,this.loadModel()}},{key:"loadModel",value:function(){var e=this,a=this,t=new g.a;t.setDecoderPath("./draco/");var s=new v.a;s.setDRACOLoader(t),s.load(this.modelurl,function(t){a.gltf=t,e.scene.animations.push(a.gltf.animations),a.scene.add(a.gltf.scene),a.scene.environment=a.pmremGenerator.fromScene(new f.a,100).texture,a.gltf.scene.scale.set(.02,.02,.02),e.drawPoints()},function(t){100===Math.floor(t.loaded/t.total*100)&&(a.loading=!1)})}},{key:"drawPoints",value:function(){var s=this;this.curPointsObj.forEach(function(t){s.scene.remove(t)}),this.curPoints.forEach(function(t){var e=document.createElement("div"),a=O.a;e.innerHTML='<img src="'.concat(a,'">'),e.onclick=function(){s.curTask=t,s.curWorldVector=new h.tb(t.x,t.y,t.z),s.showTag()};a=new m.b(e);s.scene.add(a);e=new h.tb(t.x,t.y,t.z);a.position.copy(e),a.name="customPoints",a.customData=t.obj,a.scale.set(.04,.04,.04),s.curPointsObj.push(a)})}},{key:"showTag",value:function(){var t=this.curWorldVector.project(this.camera),e=window.innerWidth/2,a=window.innerHeight/2,e=Math.round(t.x*e+e),t=Math.round(-t.y*a+a),a=document.getElementById("mark");a.style.opacity=1,a.style.left="".concat(e-290,"px"),a.style.top="".concat(t,"px")}},{key:"drawPatrols",value:function(){var a=this;this.curPatrolsObj.forEach(function(t){a.scene.remove(t)}),this.curPatrols.forEach(function(t){var e=[];t.points.forEach(function(t){3===t.length&&e.push(t)}),a.drawPatrolLine(e)})}},{key:"drawPatrolLine",value:function(t){var e=[];t.forEach(function(t){e.push(new h.tb(t[0],t[1],t[2]))});var a=new h.g;a.setFromPoints(e);t=new h.y({color:13434761,dashSize:2,gapSize:3}),t=new h.w(a,t);t.computeLineDistances(),this.scene.add(t),this.curPatrolsObj.push(t)}},{key:"drawFlyLines",value:function(){var s=this;this.curYsLinesObj.forEach(function(t){s.scene.remove(t)}),this.curYsLines.forEach(function(t){var e=new h.tb(Number(t.start[0]),Number(t.start[1]),Number(t.start[2])),a=new h.tb(Number(t.end[0]),Number(t.end[1]),Number(t.end[2]));s.drawFlyLine(e,a,t.obj.status)})}},{key:"drawFlyLine",value:function(t,e,a){var s={curve:null,v1:t,v2:e,points:[],index:0,num:10,geometry2:null},i=new h.g,t=t,e=e;s.curve=new h.h([new h.tb(t.x,t.y,t.z),new h.tb((t.x+e.x)/2,(t.y+e.y)/2+this.randomNum(10,20),(t.z+e.z)/2),new h.tb(e.x,e.y,e.z)]),s.points=s.curve.getSpacedPoints(100),i.setFromPoints(s.points);var n=2386913,a=new h.x({color:n=1===a?2686957:n}),a=new h.w(i,a);this.scene.add(a),this.curYsLinesObj.push(a),s.index=20,s.num=20;var o=s.points.slice(s.index,s.index+s.num);s.geometry2=new h.g,s.geometry2.setFromPoints(o);for(var c=o.length-2,r=[],d=0;d<o.length;d++){var l=new h.j(n),u=new h.j(16776960),l=d<c?l.lerp(u,d/c):u.lerp(l,(d-c)/(o.length-c));r.push(l.r,l.g,l.b)}s.geometry2.attributes.color=new h.f(new Float32Array(r),3);a=new h.x({vertexColors:h.vb}),a=new h.w(s.geometry2,a);this.scene.add(a),this.curYsLinesObj.push(a),this.flyLines.push(s)}},{key:"randomNum",value:function(t,e){return Math.floor(Math.random()*(t-e)+e)}},{key:"updateDrawFlyLines",value:function(){this.flyLines.forEach(function(t){var e;0<t.points.length&&(e=t.points.length-t.num,t.index>e&&(t.index=0),t.index+=1,e=t.points.slice(t.index,t.index+t.num),t.geometry2.setFromPoints(e))})}},{key:"choose",value:function(t){var e=t.clientX,a=t.clientY,t=e/window.innerWidth*2-1,e=-a/window.innerHeight*2+1,a=new h.eb;a.setFromCamera(new h.sb(t,e),this.camera);a.intersectObjects(this.curPointsObj)}},{key:"realSysTime",value:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth(),s=t.getDate(),i=t.getDay(),n=t.getHours(),o=t.getMinutes(),t=t.getSeconds();a+=1;this.week=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][i],a<10&&(a="0".concat(a)),s<10&&(s="0".concat(s)),n<10&&(n="0".concat(n)),o<10&&(o="0".concat(o)),t<10&&(t="0".concat(t)),this.day="".concat(e,".").concat(a,".").concat(s),this.time="".concat(n,":").concat(o,":").concat(t)}},{key:"updateData",value:function(){this.getOrderCount()}}]),n}(n.a))||y,y=(i("bf0e"),i("2877")),a=Object(y.a)(n,function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("div",[s("div",{staticClass:"mainbg"}),s("div",{staticClass:"mainheader"},[a._m(0),s("div",{staticClass:"title"},[a._v("河北省中医院项目智慧大屏")]),s("div",{staticClass:"right"},[s("div",{staticClass:"weather-box"},[s("div",{staticClass:"status"},[s("div",[a._v(a._s(a.weather.direct))]),s("div",[a._v(a._s(a.weather.city))])]),s("div",{staticClass:"wendu"},[a._v(a._s(a.weather.temperature))]),s("div",{staticClass:"img"},[s("img",{attrs:{src:a.weather.img,alt:""}})])]),s("div",{staticClass:"time-box"},[s("div",{staticClass:"his"},[a._v(a._s(a.time))]),s("div",{staticClass:"week"},[s("div",[a._v(a._s(a.week))]),s("div",[a._v(a._s(a.day))])])])])]),s("div",{staticClass:"mainleft"},[s("div",{staticClass:"leftonde-box"},[s("div",{staticClass:"public-header-box"},[a._v(" 项目任务数据分析 ")]),s("div",{staticClass:"contentbox"},[s("div",{staticClass:"oneF"}),s("div",{staticClass:"twoF"},[s("div",{staticClass:"title"},[a._v("今日工单数")]),s("div",{staticClass:"num"},[a._v(a._s(a.todoCountData.todayCount))])]),s("div",{staticClass:"threeF"},[s("div",{staticClass:"tbox maginBottom"},[s("span",{staticClass:"title"},[a._v("项目工单总数")]),s("span",{staticClass:"pull-right"},[a._v(a._s(a.todoCountData.todoCount))])]),s("div",{staticClass:"tbox maginBottom"},[s("span",{staticClass:"title"},[a._v("项目订单总数")]),s("span",{staticClass:"pull-right"},[a._v(a._s(a.todoCountData.orderCount))])]),s("div",{staticClass:"tbox"},[s("span",{staticClass:"title"},[a._v("项目任务总数")]),s("span",{staticClass:"pull-right"},[a._v(a._s(a.todoCountData.taskCount))])])]),s("div",{staticClass:"foreF"})])]),s("div",{staticClass:"lefttwo-box"},[s("div",{staticClass:"public-header-box"},[a._v(" 项目人员数据分析 ")]),s("div",{staticClass:"contentbox"},[s("div",{staticClass:"leftbox"},[s("div",{staticClass:"title"},[a._v("项目人员总数")]),s("div",{staticClass:"num"},[a._v(a._s(a.userCount))])]),a.userTypeFlag?s("dv-active-ring-chart",{staticClass:"rightbox",attrs:{config:a.userCountConfig}}):a._e()],1)]),a.commentRankingFlag?s("dv-scroll-board",{staticClass:"leftthree-box",attrs:{config:a.commentRankingConfig}}):a._e(),s("div",{staticClass:"leftfore-box"},[s("div",{staticClass:"public-header-box"},[a._v(" 项目耗材使用排名分析 ")]),s("div",{staticClass:"content-box"},[s("div",{staticClass:"leftk"}),a.mateRankingFlag?s("dv-scroll-board",{staticClass:"mate-box",attrs:{config:a.mateRankongConfig}}):a._e(),s("div",{staticClass:"rightk"})],1)]),s("div",{staticClass:"leftfive"},[s("div",{staticClass:"public-header-box"},[a._v(" 网格化保洁管理 ")]),s("div",{staticClass:"content-box"},a._l(a.dailyList,function(t,e){return s("div",{key:e,staticClass:"p-box"},[s("div",{staticClass:"s-box"},[s("div",{staticClass:"title"},[a._v(a._s(t.title))]),s("div",{staticClass:"num"},[a._v(a._s(t.count))])])])}),0)])],1),s("div",{staticClass:"maintop"}),s("div",{staticClass:"mainbottomtop"}),s("div",{staticClass:"mainbottom"},[s("div",{staticClass:"public-header-box"},[a._v(" 项目任务数据总览 ")]),a.taskFlag?s("dv-scroll-board",{staticClass:"task-box",attrs:{config:a.taskConfig}}):a._e()],1),s("div",{staticClass:"mainright"},[s("div",{staticClass:"rightone-box"},[s("div",{staticClass:"public-header-box"},[a._v(" 项目任务数据分析 ")]),s("div",{staticClass:"contentbox"},[s("div",{staticClass:"oneF"}),s("div",{staticClass:"twoF"},[s("div",{staticClass:"topbox"},[s("div",{staticClass:"name"},[a._v("保洁工单 "),s("span",{staticClass:"pull-right"},[a._v(a._s(a.todayTodoData.bj))])]),s("progress-bar",{staticClass:"todop",attrs:{bl:a.todayTodoData.bjBl,"background-color":"#0E8AF5"}})],1),s("div",{staticClass:"bottombox"},[s("div",{staticClass:"name"},[a._v("维修工单 "),s("span",{staticClass:"pull-right"},[a._v(a._s(a.todayTodoData.bx))])]),s("progress-bar",{staticClass:"todop",attrs:{bl:a.todayTodoData.bxBl,"background-color":"#009A16"}})],1)]),s("div",{staticClass:"threeF"},[a.todoeFlag?s("echarts",{staticClass:"todaybl",attrs:{data:a.todoEchartsOption}}):a._e(),s("div",{staticClass:"namebl"},[s("div",{staticClass:"bl"},[a._v(a._s(a.todayTodoData.bl)+"%")]),s("div",{staticClass:"name"},[a._v("今日完成率")])])],1),s("div",{staticClass:"foreF"},[s("div",{staticClass:"topbox"},[s("div",{staticClass:"name"},[a._v("运送工单 "),s("span",{staticClass:"pull-right"},[a._v(a._s(a.todayTodoData.ys))])]),s("progress-bar",{staticClass:"todop",attrs:{bl:a.todayTodoData.ysBl,"background-color":"#8144BF"}})],1),s("div",{staticClass:"bottombox"},[s("div",{staticClass:"name"},[a._v("隐患工单 "),s("span",{staticClass:"pull-right"},[a._v(a._s(a.todayTodoData.yh))])]),s("progress-bar",{staticClass:"todop",attrs:{bl:a.todayTodoData.byhBl,"background-color":"#BA4B4B"}})],1)]),s("div",{staticClass:"fiveF"})])]),s("div",{staticClass:"righttwo"},[s("div",{staticClass:"public-header-box"},[a._v(" 项目任务数据分析 "),s("select",{directives:[{name:"model",rawName:"v-model",value:a.type,expression:"type"}],staticClass:"module-select",on:{change:[function(t){var e=Array.prototype.filter.call(t.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});a.type=t.target.multiple?e:e[0]},a.updateData]}},[s("option",{attrs:{value:"1"}},[a._v("日统计")]),s("option",{attrs:{value:"2"}},[a._v("周统计")]),s("option",{attrs:{value:"3"}},[a._v("月统计")])]),s("select",{directives:[{name:"model",rawName:"v-model",value:a.mode,expression:"mode"}],staticClass:"module-select",on:{change:[function(t){var e=Array.prototype.filter.call(t.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});a.mode=t.target.multiple?e:e[0]},a.updateData]}},[s("option",{attrs:{value:"1"}},[a._v("报修")]),s("option",{attrs:{value:"2"}},[a._v("保洁")]),s("option",{attrs:{value:"3"}},[a._v("运送")]),s("option",{attrs:{value:"4"}},[a._v("隐患")])])]),s("div",{staticClass:"sub1-box"},[s("echarts",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"ttecharts1",data:a.todoTypeEchartsOption}})],1)]),s("div",{staticClass:"rightthree"},[s("div",{staticClass:"public-header-box"},[a._v(" 项目医废收集量分析 ")]),s("div",{staticClass:"waste-box"},[s("echarts",{staticStyle:{width:"100%",height:"100%"},attrs:{data:a.wasteEchartsOption}})],1)]),s("div",{staticClass:"rightfour"},[s("div",{staticClass:"public-header-box"},[a._v(" 项目可视化数据分析 ")]),s("div",{staticClass:"imgall"},a._l(a.patrolImg,function(t,e){return s("div",{key:e,staticClass:"img"},[s("img",{attrs:{src:t.images,alt:""}})])}),0),s("div",{staticClass:"patrolbox"},[s("echarts",{staticStyle:{width:"100%",height:"100%"},attrs:{data:a.patrolEchartsOption}})],1)])]),s("div",{staticClass:"box-top",attrs:{id:"mark"}},[s("img",{staticClass:"box-top-close",attrs:{src:i("40ce"),alt:""},on:{click:a.handClose}}),s("div",{staticClass:"box-top-title"},[a.curTask?s("span",[a._v(a._s(a.curTask.addrName))]):a._e()]),a.curTask?a._l(a.curTask.obj,function(t,e){return s("div",{key:e,staticClass:"box-top-list"},[s("table",{staticStyle:{width:"100%"}},[s("tr",[s("td",{staticStyle:{width:"80px"}},[a._v("任务类型")]),s("td",[a._v(a._s(t.cateTitle))])]),s("tr",[s("td",[a._v("执行工人")]),s("td",[a._v(a._s(t.userName))])]),s("tr",[s("td",[a._v("任务时间")]),s("td",[a._v(a._s(t.startTime))])]),s("tr",[s("td",[a._v("任务内容")]),s("td",[a._v(a._s(t.content))])]),s("tr",[s("td",[a._v("任务状态")]),s("td",[1===t.status?s("span",[a._v("进行中")]):a._e(),0===t.status?s("span",[a._v("未开始")]):a._e()])])])])}):a._e()],2)])},a,!1,null,"63fdc988",null);e.default=a.exports},"9c06":function(t,e,a){},bf0e:function(t,e,a){"use strict";a("9c06")}}]);