12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["personnel"],{"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},1605:function(e,t,c){"use strict";c("8e6c")},"17ba":function(e,t,c){"use strict";c("61b5")},"5c12":function(e,t,c){"use strict";c.r(t);var a=c("f2bf"),n={class:"iframe4"},l={class:"iframe-1"},o={class:"iframe-2"},s=Object(a["createElementVNode"])("div",{class:"iframe4-title"},"视频监视",-1),r=["onClick"],i=Object(a["createElementVNode"])("div",{class:"mask"},null,-1),d={class:"iframe-3"},b=Object(a["createElementVNode"])("iframe",{src:"http://192.168.1.52/webiui/#/online",frameborder:"0"},null,-1),u=Object(a["createElementVNode"])("div",{class:"iframe-4"},[Object(a["createElementVNode"])("div",{class:"iframe4-title"},"数字孪生"),Object(a["createElementVNode"])("div",{class:"iframe-4-body"})],-1);function m(e,t,c,m,p,j){var v=Object(a["resolveComponent"])("personnel"),O=Object(a["resolveComponent"])("hlsVideo"),f=Object(a["resolveComponent"])("el-dialog");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",n,[Object(a["createElementVNode"])("div",l,[Object(a["createElementVNode"])("div",{class:"iframe4-title",onClick:t[0]||(t[0]=function(e){return j.jumpUrl("/save/personnel")})}," 人员健康 "),Object(a["createVNode"])(v)]),Object(a["createElementVNode"])("div",o,[s,(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(p.videoArray,(function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"videoDiv",key:t,width:"95%",height:"48vh",onClick:function(t){return j.openVideoDialog(e)}},[i,Object(a["createVNode"])(O,{code:e.code,class:Object(a["normalizeClass"])(e.class)},null,8,["code","class"])],8,r)})),128))]),Object(a["createElementVNode"])("div",d,[Object(a["createElementVNode"])("div",{class:"iframe4-title",onClick:t[1]||(t[1]=function(e){return j.openUrl("http://192.168.1.52/webiui/#/online")})}," 智能安全帽 "),b]),u,Object(a["createVNode"])(f,{top:"50px",modelValue:p.showVideoDialog,"onUpdate:modelValue":t[2]||(t[2]=function(e){return p.showVideoDialog=e}),width:"80vw","destroy-on-close":!0,"custom-class":e.videoDialogClass},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(O,{class:"videoBoxiframe",width:"95%",height:"800px",code:p.dialogVideoUrl},null,8,["code"])]})),_:1},8,["modelValue","custom-class"])])}var p=c("79db"),j=c("1632"),v=c("143d"),O={setup:function(){},components:{personnel:p["default"],PanelSand:j["a"],hlsVideo:v["a"]},data:function(){return{showVideoDialog:!1,dialogVideoUrl:"",videoArray:[{code:"SBQ_FDC_SC",class:"",switch:!0},{code:"NSS_FDC_SC",class:"",switch:!0},{code:"QS_FDC_SC",class:"",switch:!0},{code:"MHS_FDC_SC",class:"",switch:!0},{code:"XS_FDC_SC",class:"",switch:!0},{code:"PL_GDC_SC",class:"",switch:!0}]}},methods:{openVideoDialog:function(e){e.code&&(this.dialogVideoUrl=e.code,this.showVideoDialog=!0)},jumpUrl:function(e){this.$router.push(e)},openUrl:function(e){window.open(e)}},created:function(){}},f=(c("6c17"),c("6b0d")),h=c.n(f);const V=h()(O,[["render",m]]);t["default"]=V},"61b5":function(e,t,c){},"645c":function(e,t,c){},"6c17":function(e,t,c){"use strict";c("645c")},"79db":function(e,t,c){"use strict";c.r(t);c("b0c0"),c("b680");var a=c("f2bf"),n={class:"personnel"},l={class:"personnel-btn"},o=["onClick"],s={class:"personnel-box"},r=["onClick"],i={class:"personnel-box-item-h"},d={class:"personnel-box-item-header"},b=["src"],u={class:"personnel-box-item-form"},m={class:"personnel-box-item-group"},p=Object(a["createElementVNode"])("div",{class:"personnel-box-item-label"},"收缩血压:",-1),j={class:"personnel-box-item-value"},v={class:"personnel-box-item-group"},O=Object(a["createElementVNode"])("div",{class:"personnel-box-item-label"},"舒张血压:",-1),f={class:"personnel-box-item-value"},h={class:"personnel-box-item-group"},V=Object(a["createElementVNode"])("div",{class:"personnel-box-item-label"},"心跳频率:",-1),E={class:"personnel-box-item-value"},N={class:"personnel-box-item-group"},g=Object(a["createElementVNode"])("div",{class:"personnel-box-item-label"},"血氧浓度:",-1),x={class:"personnel-box-item-value"},y={class:"personnel-box-item-f"},D={class:"personnel-box-item-name"},w={class:"personnel-box-item-icon"},k={class:"info-popup"},S={class:"query left mg-b-8"},C={class:"query-items"},B={class:"query-item"},L=Object(a["createElementVNode"])("div",{class:"lable"},"开始日期:",-1),F={class:"search-input"},_={class:"query-item"},I=Object(a["createElementVNode"])("div",{class:"lable"},"结束日期:",-1),U={class:"search-input"},T={class:"query-actions"},q={class:"prople-info mg-t-16 mg-b-16"},M={class:"prople-info-item"},z=Object(a["createElementVNode"])("div",{class:"font-md gray-l"},"检修人员",-1),A={class:"font-md white"},X={class:"prople-info-item"},P=Object(a["createElementVNode"])("div",{class:"font-md gray-l"},"疲劳度",-1),Y={class:"font-md white"},H={class:"prople-info-item"},Q=Object(a["createElementVNode"])("div",{class:"font-md gray-l"},"步数",-1),$={class:"font-md white"},G={class:"prople-info-item"},J=Object(a["createElementVNode"])("div",{class:"font-md gray-l"},"收缩血压",-1),R={class:"font-md white"},Z={class:"prople-info-item"},K=Object(a["createElementVNode"])("div",{class:"font-md gray-l"},"舒张血压",-1),W={class:"font-md white"},ee={class:"prople-info-item"},te=Object(a["createElementVNode"])("div",{class:"font-md gray-l"},"心跳频率",-1),ce={class:"font-md white"},ae={class:"prople-info-item"},ne=Object(a["createElementVNode"])("div",{class:"font-md gray-l"},"血氧浓度",-1),le={class:"font-md white"},oe=Object(a["createElementVNode"])("div",{class:"white font-md mg-t-16 mg-b-16"},"检测人员健康情况",-1);function se(e,t,c,se,re,ie){var de=Object(a["resolveComponent"])("el-date-picker"),be=Object(a["resolveComponent"])("normal-line-chart"),ue=Object(a["resolveComponent"])("el-dialog");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",n,[Object(a["createElementVNode"])("div",l,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(re.btns,(function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{onClick:function(c){return ie.clickBtn(e,t)},class:Object(a["normalizeClass"])(["i-btn",{active:t==re.btnIndex}]),key:t},Object(a["toDisplayString"])(e.name),11,o)})),128))]),Object(a["createElementVNode"])("div",s,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(re.resData,(function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"personnel-box-item",key:t,onClick:function(t){return ie.todesc(e)},style:Object(a["normalizeStyle"])([e.objects&&re.frontOneHour<e.objects["LAT"].ts?"order:-1":""])},[Object(a["createElementVNode"])("div",i,[Object(a["createElementVNode"])("div",d,[Object(a["createElementVNode"])("img",{src:ie.imgurl(e.username)},null,8,b)]),Object(a["createElementVNode"])("div",u,[Object(a["createElementVNode"])("div",m,[p,Object(a["createElementVNode"])("div",j,Object(a["toDisplayString"])(e.objects&&e.objects.SSXY.doubleValue.toFixed(2)),1)]),Object(a["createElementVNode"])("div",v,[O,Object(a["createElementVNode"])("div",f,Object(a["toDisplayString"])(e.objects&&e.objects.SZXY.doubleValue.toFixed(2)),1)]),Object(a["createElementVNode"])("div",h,[V,Object(a["createElementVNode"])("div",E,Object(a["toDisplayString"])(e.objects&&e.objects.XTPL.doubleValue.toFixed(2)),1)]),Object(a["createElementVNode"])("div",N,[g,Object(a["createElementVNode"])("div",x,Object(a["toDisplayString"])(e.objects&&e.objects.XYND.doubleValue.toFixed(2)),1)])])]),Object(a["createElementVNode"])("div",y,[Object(a["createElementVNode"])("div",D,Object(a["toDisplayString"])(e.objects&&e.username),1),Object(a["createElementVNode"])("div",w,[Object(a["createElementVNode"])("i",{class:Object(a["normalizeClass"])(["el-icon-user-solid",e.objects&&re.frontOneHour<e.objects["LAT"].ts?"icolor":""])},null,2)])])],12,r)})),128))]),Object(a["createVNode"])(ue,{title:"人员信息",modelValue:re.dialogVisible,"onUpdate:modelValue":t[3]||(t[3]=function(e){return re.dialogVisible=e}),width:"1400px",top:"10vh","custom-class":"modal hide-header","close-on-click-modal":!1},{default:Object(a["withCtx"])((function(){return[Object(a["createElementVNode"])("div",k,[Object(a["createElementVNode"])("div",S,[Object(a["createElementVNode"])("div",C,[Object(a["createElementVNode"])("div",B,[L,Object(a["createElementVNode"])("div",F,[Object(a["createVNode"])(de,{modelValue:re.startdate,"onUpdate:modelValue":t[0]||(t[0]=function(e){return re.startdate=e}),type:"datetime",placeholder:"选择日期","popper-class":"date-select",class:"placeholder-left"},null,8,["modelValue"])])]),Object(a["createElementVNode"])("div",_,[I,Object(a["createElementVNode"])("div",U,[Object(a["createVNode"])(de,{modelValue:re.enddate,"onUpdate:modelValue":t[1]||(t[1]=function(e){return re.enddate=e}),type:"datetime",placeholder:"选择日期","popper-class":"date-select",class:"placeholder-left"},null,8,["modelValue"])])])]),Object(a["createElementVNode"])("div",T,[Object(a["createElementVNode"])("button",{class:"btn green",onClick:t[2]||(t[2]=function(){return ie.searchper&&ie.searchper.apply(ie,arguments)})},"查询")])]),Object(a["createElementVNode"])("div",q,[Object(a["createElementVNode"])("div",M,[z,Object(a["createElementVNode"])("div",A,Object(a["toDisplayString"])(re.perData.objects&&re.perData.username),1)]),Object(a["createElementVNode"])("div",X,[P,Object(a["createElementVNode"])("div",Y,Object(a["toDisplayString"])(re.perData.objects&&re.perData.objects.PLD.doubleValue.toFixed(2)),1)]),Object(a["createElementVNode"])("div",H,[Q,Object(a["createElementVNode"])("div",$,Object(a["toDisplayString"])(re.perData.objects&&re.perData.objects.BS.doubleValue.toFixed(2)),1)]),Object(a["createElementVNode"])("div",G,[J,Object(a["createElementVNode"])("div",R,Object(a["toDisplayString"])(re.perData.objects&&re.perData.objects.SSXY.doubleValue.toFixed(2)),1)]),Object(a["createElementVNode"])("div",Z,[K,Object(a["createElementVNode"])("div",W,Object(a["toDisplayString"])(re.perData.objects&&re.perData.objects.SZXY.doubleValue.toFixed(2)),1)]),Object(a["createElementVNode"])("div",ee,[te,Object(a["createElementVNode"])("div",ce,Object(a["toDisplayString"])(re.perData.objects&&re.perData.objects.XTPL.doubleValue.toFixed(2)),1)]),Object(a["createElementVNode"])("div",ae,[ne,Object(a["createElementVNode"])("div",le,Object(a["toDisplayString"])(re.perData.objects&&re.perData.objects.XYND.doubleValue.toFixed(2)),1)])]),oe,Object(a["createVNode"])(be,{class:"people-chart",height:"45vh",showLegend:!0,units:["半小时检测值"],list:re.chartList},null,8,["list"])])]})),_:1},8,["modelValue"])])}var re=c("c7eb"),ie=c("1da1"),de=(c("ac1f"),c("841c"),c("99af"),c("d3b7"),c("159b"),c("5419")),be=c("bc3a"),ue=c.n(be),me={name:"personnel",components:{NormalLineChart:de["a"]},data:function(){return{btns:[{name:"全部",val:""},{name:"麻黄山",val:"MHS_FDC"},{name:"牛首山",val:"NSS_FDC"},{name:"青山",val:"QS_FDC"},{name:"石板泉",val:"SBQ_FDC"},{name:"香山",val:"XS_FDC"}],btnIndex:0,dialogVisible:!1,resData:null,perData:null,frontOneHour:(new Date).getTime()-6e5,startdate:new Date((new Date).getTime()-36e5).formatDate("yyyy-MM-dd hh:mm:ss"),enddate:new Date(new Date).formatDate("yyyy-MM-dd hh:mm:ss"),chartList:[{title:"疲劳度",yAxisIndex:0,value:[{text:"1",value:1},{text:"2",value:2},{text:"3",value:1},{text:"4",value:3},{text:"5",value:3},{text:"6",value:3},{text:"7",value:3},{text:"8",value:3},{text:"9",value:3},{text:"10",value:3},{text:"11",value:3},{text:"12",value:3},{text:"13",value:3},{text:"14",value:3},{text:"15",value:3},{text:"16",value:3}]},{title:"上网电量",yAxisIndex:0,value:[{text:"1",value:1},{text:"2",value:2},{text:"3",value:1},{text:"4",value:3}]}]}},methods:{imgurl:function(e){try{return url}catch(t){}},clickBtn:function(e,t){this.search(e.val),this.btnIndex=t},clickItem:function(e){this.panelIndex=e},todesc:function(e){var t=this;return Object(ie["a"])(Object(re["a"])().mark((function c(){return Object(re["a"])().wrap((function(c){while(1)switch(c.prev=c.next){case 0:t.dialogVisible=!0,t.perData=e,t.searchper();case 3:case"end":return c.stop()}}),c)})))()},searchper:function(){var e=this;return Object(ie["a"])(Object(re["a"])().mark((function t(){var c,a,n,l,o;return Object(re["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ue.a.get("http://10.155.32.4:8034/bracelet/getInfo?userid=".concat(e.perData.mobile,"&beginDate=").concat(new Date(e.startdate).formatDate("yyyy-MM-dd hh:mm:ss"),"&endDate=").concat(new Date(e.enddate).formatDate("yyyy-MM-dd hh:mm:ss")));case 2:c=t.sent,a=c.data,console.warn(a),n=[],l=["pld","ssxy","szxy","xtpl","xy"],o={pld:"疲劳度",ssxy:"收缩血压",szxy:"舒张血压",xtpl:"心跳频率",xy:"血氧"},l.forEach((function(e){var t={title:o[e],yAxisIndex:0,value:[]},c=[];a.forEach((function(t){var a={text:new Date(t.date).formatDate("hh:mm"),value:t[e]};c.push(a)})),t.value=c,n.push(t)})),console.warn(n),e.chartList=n;case 11:case"end":return t.stop()}}),t)})))()},search:function(e){var t=this;return Object(ie["a"])(Object(re["a"])().mark((function c(){var a,n,l;return Object(re["a"])().wrap((function(c){while(1)switch(c.prev=c.next){case 0:return c.next=2,ue.a.get("http://192.168.1.18:8087/shbraceletuser/selectRaceletUserinfo?stationid=".concat(e,"&pageNum=",1,"&pageSize=",300));case 2:a=c.sent,n=a.data,l=n.data.records,t.resData=l;case 6:case"end":return c.stop()}}),c)})))()}},beforeCreate:function(){},created:function(){this.search("")},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){}},pe=(c("1605"),c("6b0d")),je=c.n(pe);const ve=je()(me,[["render",se]]);t["default"]=ve},"83a4":function(e,t,c){"use strict";c.r(t);c("b0c0");var a=c("f2bf"),n={class:"alarm-center"},l={class:"action-bar"},o={class:"selections mg-b-16"},s=["onClick"],r={class:"query mg-b-16"},i={class:"query-items"},d={class:"query-item"},b=Object(a["createElementVNode"])("div",{class:"lable"},"风场:",-1),u={class:"search-input"},m={class:"query-actions"},p={class:"fj"},j={class:"fj-title"},v={class:"fj-info"};function O(e,t,c,O,f,h){var V=Object(a["resolveComponent"])("el-option"),E=Object(a["resolveComponent"])("el-select"),N=Object(a["resolveComponent"])("Table"),g=Object(a["resolveComponent"])("el-scrollbar");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",n,[Object(a["createElementVNode"])("div",l,[Object(a["createElementVNode"])("div",o,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(f.tabLists,(function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:e.type,class:Object(a["normalizeClass"])(["item",{active:t==f.cureent}]),onClick:function(c){return h.tabSelect(e.type,t)}},Object(a["toDisplayString"])(e.name),11,s)})),128))]),Object(a["createElementVNode"])("div",r,[Object(a["createElementVNode"])("div",i,[Object(a["createElementVNode"])("div",d,[b,Object(a["createElementVNode"])("div",u,[Object(a["createVNode"])(E,{modelValue:f.optSelectValue,"onUpdate:modelValue":t[0]||(t[0]=function(e){return f.optSelectValue=e}),clearable:"",placeholder:"请选择","popper-class":"select",onChange:h.handelSelectChange},{default:Object(a["withCtx"])((function(){return[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(f.options,(function(e){return Object(a["openBlock"])(),Object(a["createBlock"])(V,{key:e.id,label:e.name,value:e.id},null,8,["label","value"])})),128))]})),_:1},8,["modelValue","onChange"])])])]),Object(a["createElementVNode"])("div",m,[Object(a["createElementVNode"])("button",{class:"btn green",onClick:t[1]||(t[1]=function(){return h.handelSelectChange&&h.handelSelectChange.apply(h,arguments)})},"搜索")])])]),Object(a["createVNode"])(g,null,{default:Object(a["withCtx"])((function(){return[Object(a["createElementVNode"])("div",p,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(f.tableLists,(function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"fj-item",key:t},[Object(a["createElementVNode"])("div",j,"风机编号:"+Object(a["toDisplayString"])(e[0].wtId),1),Object(a["createElementVNode"])("div",v,[Object(a["createVNode"])(N,{data:h.handleTable(e)},null,8,["data"])])])})),128))])]})),_:1})])}var f=c("bfc3"),h={components:{Table:f["a"]},data:function(){return{cureent:0,optSelectValue:"",tabLists:[{type:"fdj",name:"发电机"},{type:"clx",name:"齿轮箱"},{type:"bj",name:"变桨系统"},{type:"yyz",name:"液压站"},{type:"zd",name:"风机震动"},{type:"qt",name:"其他参数"}],tableLists:[],options:[],type:"",timmer:null}},methods:{tabSelect:function(e,t){this.cureent=t,this.type=e,this.getList(!0)},handleTable:function(e){var t={column:[{name:"",field:"name",is_num:!1,is_light:!1},{name:"",field:"value",is_num:!1,is_light:!1}],data:e};return t},handelSelectChange:function(){this.getList(!0)},getList:function(e){var t=this;t.API.requestData({showLoading:e,method:"POST",subUrl:"/temperature/getTemperatureList",data:{type:this.type,wpId:this.optSelectValue},success:function(e){t.tableLists=e.data,console.log(e)}})},getSelectLists:function(e){var t=this;t.API.requestData({showLoading:e,method:"GET",subUrl:"/powercompare/windfarmAjax",success:function(e){t.options=e.data,t.optSelectValue=e.data[0].id,t.$nextTick((function(){t.getList(!1),t.timmer=setInterval((function(){t.getList(!1)}),t.$store.state.websocketTimeSec)}))}})}},created:function(){this.type=this.tabLists[0].type,this.getSelectLists(!1)},unmounted:function(){clearInterval(this.timmer),this.timmer=null}},V=(c("17ba"),c("6b0d")),E=c.n(V);const N=E()(h,[["render",O]]);t["default"]=N},"841c":function(e,t,c){"use strict";var a=c("c65b"),n=c("d784"),l=c("825a"),o=c("1d80"),s=c("129f"),r=c("577e"),i=c("dc4a"),d=c("14c3");n("search",(function(e,t,c){return[function(t){var c=o(this),n=void 0==t?void 0:i(t,e);return n?a(n,t,c):new RegExp(t)[e](r(c))},function(e){var a=l(this),n=r(e),o=c(t,a,n);if(o.done)return o.value;var i=a.lastIndex;s(i,0)||(a.lastIndex=0);var b=d(a,n);return s(a.lastIndex,i)||(a.lastIndex=i),null===b?-1:b.index}]}))},"8e6c":function(e,t,c){}}]);
- //# sourceMappingURL=personnel.d36bfed3.js.map
|