webpackJsonp([3],{"7cZT":function(t,e){},"91Nw":function(t,e){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/",i(i.s=284)}({284:function(t,e,i){"use strict";e.__esModule=!0;var n,s=i(285),o=(n=s)&&n.__esModule?n:{default:n};o.default.install=function(t){t.component(o.default.name,o.default)},e.default=o.default},285:function(t,e,i){"use strict";e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){for(var t=this.$parent;t&&"ElRow"!==t.$options.componentName;)t=t.$parent;return t?t.gutter:0}},render:function(t){var e=this,i=[],s={};return this.gutter&&(s.paddingLeft=this.gutter/2+"px",s.paddingRight=s.paddingLeft),["span","offset","pull","push"].forEach(function(t){(e[t]||0===e[t])&&i.push("span"!==t?"el-col-"+t+"-"+e[t]:"el-col-"+e[t])}),["xs","sm","md","lg","xl"].forEach(function(t){var s;"number"==typeof e[t]?i.push("el-col-"+t+"-"+e[t]):"object"===n(e[t])&&(s=e[t],Object.keys(s).forEach(function(e){i.push("span"!==e?"el-col-"+t+"-"+e+"-"+s[e]:"el-col-"+t+"-"+s[e])}))}),t(this.tag,{class:["el-col",i],style:s},this.$slots.default)}}}})},Jros:function(t,e){},QQwf:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});i("GXEp"),i("+BTi");var n=i("mtrD"),s=i.n(n),o=(i("jZDA"),i("91Nw")),r=i.n(o),a=(i("d7TW"),i("ajQY")),c=i.n(a),l=(i("Yq4J"),i("qubY")),u=i.n(l),d=i("pw6x"),p={props:{index:{type:Number,default:0},w:{type:Number,default:100},h:{type:Number,default:100},data:{type:Object,default:null},tags:{type:Object,default:null},toDOMId:{type:String,default:""}},data:function(){return{grabEvents:["mousedown","touchstart"],moveEvents:["mousemove","touchmove"],releaseEvents:["mouseup","touchend"],isAdd:!1,isOnDowm:!1,boxContent:{},beginx:0,beginy:0,item:"",CloneDom:null}},mounted:function(){this.item=this.$refs.box,this.listenEvents()},methods:{_addGrabListeners:function(){var t=this;this.grabEvents.forEach(function(e){window.addEventListener(e,t._onMouseDown,{passive:!1})}),this.moveEvents.forEach(function(e){window.document.addEventListener(e,t._onMouseMove,{passive:!1})}),this.releaseEvents.forEach(function(e){window.document.addEventListener(e,t._onMouseUp,{passive:!1})})},listenEvents:function(){this._addGrabListeners()},_onMouseDown:function(t){this.boxContent=this._getContainerRect(this.item),this.isAdd=this._current(this.boxContent,t),!this.isOnDowm&&this.isAdd&&(this.isOnDowm=!0,this.$emit("down",{index:this.index,data:this.data,tags:this.tags}),this.beginx=t.clientX||t.changedTouches[0].clientX,this.beginy=t.clientY||t.changedTouches[0].clientY,this.CloneDom=this.item.cloneNode(!0),document.getElementsByTagName("body")[0].append(this.CloneDom),this.CloneDom.style.position="absolute",this.CloneDom.style.width=this.w+"px",this.CloneDom.style.height=this.h+"px",this.CloneDom.style.top=this.beginy-20+"px",this.CloneDom.style.left=this.beginx-20+"px",this.CloneDom.style.opacity=.4)},_onMouseMove:function(t){if(this.isOnDowm){var e=this._getContainerRect(this.item);this.boxContent=e;var i=t.clientX||t.changedTouches[0].clientX,n=t.clientY||t.changedTouches[0].clientY,s=i-this.beginx,o=n-this.beginy;if(this.beginy=n,this.beginx=i,this.isAdd&&this.CloneDom){var r=s+this.CloneDom.offsetLeft,a=o+this.CloneDom.offsetTop;this.CloneDom&&(this.CloneDom.style.position="absolute",this.CloneDom.style.top=a+"px",this.CloneDom.style.left=r+"px")}}},_onMouseUp:function(t){if(this.CloneDom&&document.getElementsByTagName("body")[0].removeChild(this.CloneDom),this.CloneDom=null,this.isOnDowm&&this.isAdd){var e=t.clientX||t.changedTouches[0].clientX,i=t.clientY||t.changedTouches[0].clientY;if(this.isOnDowm=!1,""!==this.toDOMId){var n=document.getElementById(this.toDOMId),s=this._getContainerRect(n);if(!(i>=s.top&&i<=s.bottom&&e>=s.left&&e<=s.right))return!1;e-=s.left,i-=s.top}console.log(e,"_onMouseUp clientX"),this.$emit("_getContainerRect",{x:e,y:i,index:this.index,data:this.data,tags:this.tags})}return!1},_current:function(t,e){return t.left<=(e.clientX||e.changedTouches[0].clientX)&&t.right>=(e.clientX||e.changedTouches[0].clientX)&&t.top<=(e.clientY||e.changedTouches[0].clientY)&&t.bottom>=(e.clientY||e.changedTouches[0].clientY)},_getContainerRect:function(t){var e=t.getBoundingClientRect();return{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width,height:e.height}},reset:function(){this.item.style.position&&(this.item.style.position="static")}}},f=i("XyMi");var v=function(t){i("kNle")},h=Object(f.a)(p,function(){var t=this.$createElement;return(this._self._c||t)("div",{ref:"box"},[this._t("default")],2)},[],!1,v,"data-v-80157500",null).exports,m=i("RSLX"),g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},y={props:{url:{default:"",type:String},width:{default:"460",type:String},height:{default:"320",type:String}},computed:{},data:function(){return{vxgPlayer:"vxgPlayer",vxgPlayerId:"vxgPlayerId",videoUrl:""}},methods:{vxgplayerInit:function(t){var e=t.id,i=void 0===e?"vxgPlayer":e,n=t.url,s=void 0===n?"":n,o=t.nmf_path,r=void 0===o?"media_player.nmf":o,a=t.nmf_src,c=void 0===a?"/static/vxgplayer-1.8.31/pnacl/Release/media_player.nmf":a,l=t.latency,u=void 0===l?"10000":l,d=t.width,p=void 0===d?this.width:d,f=t.height,v=void 0===f?this.height:f,h=t.aspect_ratio_mode,m=void 0===h?1:h,y=t.autohide,_=void 0===y?3:y,x=t.controls,b=void 0===x||x,$=t.connection_timeout,C=void 0===$?5e3:$,w=t.connection_udp,I=void 0===w?0:w,O=t.custom_digital_zoom,D=void 0!==O&&O;t.autostart;console.log(i,"==============id"),vxgplayer(i,g({},t,{url:s,nmf_path:r,nmf_src:c,latency:u,width:p,height:v,aspect_ratio_mode:m,autohide:_,controls:b,connection_timeout:C,connection_udp:I,custom_digital_zoom:D})).ready(function(t){vxgplayer(i).src(s),vxgplayer(i).play(),vxgplayer(i).onStateChange(function(t){console.log("state",t)}),vxgplayer(i).onError(function(t){console.log(t.error(),"播放错误")})})},getRandomNum:function(t){for(var e=void 0;!((e=1e3*Math.random())<=t&&e>0););return parseInt(e)},reciveUrl:function(t){var e=this;this.videoUrl="rtsp://admin:a1234567@192.168.1.201:554/h264/ch1/main/av_stream",this.vxgPlayerId=this.vxgPlayerId+(new Date).getTime()+"",this.$nextTick(function(){e.vxgplayerInit({id:e.vxgPlayerId,url:e.videoUrl,autostart:!0})})}},mounted:function(){this.reciveUrl({})},created:function(){}};var _=function(t){i("uKxw")},x=Object(f.a)(y,function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{attrs:{id:this.vxgPlayerId,width:this.width,height:this.height}})])},[],!1,_,null,null).exports,b={name:"speciaButton",data:function(){return{}},props:{isLock:{default:!0,type:Boolean}},computed:{orgId:function(){return this.$store.getters.basicUserInfo.orgId}},methods:{setLockState:function(){this.$emit("change",this.isLock)}}};var $=function(t){i("Rhnq")},C=Object(f.a)(b,function(){var t=this.$createElement;return(this._self._c||t)("b-btn",{staticClass:"btn-circle",attrs:{variant:"primary"},on:{click:this.setLockState}},[this._t("default")],2)},[],!1,$,null,null).exports,w=i("JYWD"),I=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};var O={components:{elDialog:u.a,elRow:c.a,elCol:r.a,elButton:s.a,vxg:m.a,vxgjs:x,speciaButton:C},data:function(){return{dialogVisible:!1,rtspUrl:"rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov",indexPlayer:1,deviceInfo:{},playerId:"vxg_media_player1"+(new Date).getTime(),vxgPlayerId:"vxgPlayerId",videoUrl:""}},methods:{showModel:function(t){var e,i=this;return(e=regeneratorRuntime.mark(function e(){var n,s,o,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i.dialogVisible=!0,n={id:t.data.id},e.next=4,Object(w.h)(n);case 4:if(!(s=e.sent)||!s.success){e.next=20;break}return i.deviceInfo=s.data,e.next=9,Object(w.i)();case 9:return o=e.sent,e.next=12,Object(w.l)();case 12:r=e.sent,o&&o.success&&0!==o.data.length&&o.data.forEach(function(t){t.value===i.deviceInfo.type&&i.$set(i.deviceInfo,"typeName",t.name)}),r&&r.success&&0!==r.data.length&&r.data.forEach(function(t){parseInt(t.value)===i.deviceInfo.status&&i.$set(i.deviceInfo,"statusName",t.name)}),i.videoUrl=t.data.url,i.vxgPlayerId=i.vxgPlayerId+(new Date).getTime()+"",i.$nextTick(function(){i.vxgplayerInit({id:i.vxgPlayerId,url:i.videoUrl,autostart:!0})}),e.next=21;break;case 20:i.$toast({type:"error",message:"查询设备信息失败!"});case 21:case"end":return e.stop()}},e,i)}),function(){var t=e.apply(this,arguments);return new Promise(function(e,i){return function n(s,o){try{var r=t[s](o),a=r.value}catch(t){return void i(t)}if(!r.done)return Promise.resolve(a).then(function(t){n("next",t)},function(t){n("throw",t)});e(a)}("next")})})()},vxgplayerInit:function(t){var e=t.id,i=void 0===e?"vxgplayer":e,n=t.url,s=void 0===n?"":n,o=t.nmf_path,r=void 0===o?"media_player.nmf":o,a=t.nmf_src,c=void 0===a?"/static/vxgplayer-1.8.31/pnacl/Release/media_player.nmf":a,l=t.latency,u=void 0===l?"10000":l,d=t.width,p=void 0===d?"360px":d,f=t.height,v=void 0===f?"200px":f,h=t.aspect_ratio_mode,m=void 0===h?1:h,g=t.autohide,y=void 0===g?3:g,_=t.controls,x=void 0===_||_,b=t.connection_timeout,$=void 0===b?5e3:b,C=t.connection_udp,w=void 0===C?0:C,O=t.custom_digital_zoom,D=void 0!==O&&O;t.autostart;vxgplayer(i,I({},t,{url:s,nmf_path:r,nmf_src:c,latency:u,width:p,height:v,aspect_ratio_mode:m,autohide:y,controls:x,connection_timeout:$,connection_udp:w,custom_digital_zoom:D})).ready(function(t){vxgplayer(i).src(s),vxgplayer(i).play(),vxgplayer(i).onStateChange(function(t){console.log("state",t)}),vxgplayer(i).onError(function(t){console.log(t.error(),"播放错误")})})},searchRepair:function(){console.log()},clearDom:function(){var t=document.getElementById("vxg_media_player1");console.log("dom",t)},openEven:function(){var t=this;console.log("打开model"),setTimeout(function(){t.$refs.vxg.VxgInit()},100)}},mounted:function(){}};var D=function(t){i("Jros")},M=Object(f.a)(O,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{ref:"myModelRef",staticClass:"el-dialog_jes",attrs:{visible:t.dialogVisible,"show-close":!0},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("el-row",{staticClass:"flex-center"},[i("el-col",{attrs:{span:1}},[i("specia-button",[i("i",{staticClass:"ion d-block ion-ios-videocam"})])],1),t._v(" "),i("el-col",{attrs:{span:23}},[i("span",{staticClass:"f18"},[t._v(t._s(t.deviceInfo.id))]),t._v(" "),i("br"),t._v(" "),i("span",{staticClass:"f14"},[t._v(t._s(t.deviceInfo.address))])])],1)],1),t._v(" "),i("hr",{staticClass:"hborder"}),t._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("div",[i("div",{ref:"vxgPlayer",staticClass:"vxgplayer mb-2",staticStyle:{width:"460px",height:"320px"},attrs:{id:t.vxgPlayerId}})])]),t._v(" "),i("el-col",{staticClass:"pl20",attrs:{span:12}},[i("div",[i("h5",{staticClass:"fb"},[t._v("基本信息:")]),t._v(" "),i("div",{staticClass:"p5"},[i("span",[t._v("设备类型:"+t._s(t.deviceInfo.typeName))])]),t._v(" "),i("div",{staticClass:"p5"},[i("span",[t._v("设备名称:"+t._s(t.deviceInfo.name))])]),t._v(" "),i("div",{staticClass:"p5"},[i("span",[t._v("所在位置:"+t._s(t.deviceInfo.address))])]),t._v(" "),i("div",{staticClass:"p5"},[i("span",[t._v("经度:"+t._s(t.deviceInfo.longitude))])]),t._v(" "),i("div",{staticClass:"p5"},[i("span",[t._v("纬度:"+t._s(t.deviceInfo.latitude))])]),t._v(" "),i("div",{staticClass:"p5"},[i("span",[t._v("IP地址:"+t._s(t.deviceInfo.ip))])]),t._v(" "),i("div",{staticClass:"p5"},[i("span",[t._v("端口:"+t._s(t.deviceInfo.port))])]),t._v(" "),i("div",{staticClass:"p5"},[i("span",[t._v("设备状态:"+t._s(t.deviceInfo.statusName))])])])])],1),t._v(" "),i("hr",{staticClass:"hborder"}),t._v(" "),i("div",[i("el-button",{attrs:{type:"primary"},nativeOn:{click:function(e){t.searchRepair()}}},[t._v("维修记录")]),t._v(" "),i("div",{staticStyle:{height:"200px"}},[i("el-row")],1)],1)],1)},[],!1,D,null,null).exports;function k(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,i){return function n(s,o){try{var r=e[s](o),a=r.value}catch(t){return void i(t)}if(!r.done)return Promise.resolve(a).then(function(t){n("next",t)},function(t){n("throw",t)});t(a)}("next")})}}var P={components:{elDialog:u.a,elRow:c.a,elCol:r.a,elButton:s.a,mapDeviceModel:M,vxg:m.a,draggerBox:h,aMap:d.default,speciaButton:C},props:{currentOrgItem:{default:function(){return{id:"0",type:"MENU",name:"平台设备"}},type:Object},searchName:{default:"",type:String},currentColonyItem:{default:function(){return{id:"0",type:"1",name:"集群设备"}},type:Object}},data:function(){return{searchType:"",result:[],tempDevice:{},deviceList:[],bPoint:{},markerObject:{},okDeviceNum:0,exDeviceNum:0,okServerNum:0,exServerNum:0}},methods:{showModel:function(t){this.$refs.mapModelRef.showModel(t)},toDetails:function(t){console.log(t,"接收点击详情后回调函数 toDetails"),t&&this.showModel(t)},findAllDevice:function(){var t=this;return k(regeneratorRuntime.mark(function e(){var i,n,s,o,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(w.c)();case 2:(i=e.sent)&&(i.success?(n=0,s=0,0!==(o=i.data.noPosList).length&&o.forEach(function(e){0===e.status?(n+=1,"101"===e.type?t.okDeviceNum+=1:"103"===e.type&&(t.okServerNum+=1)):(s+=1,"101"===e.type?t.exDeviceNum+=1:"103"===e.type&&(t.exServerNum+=1))}),t.createPic(o),0!==(r=i.data.posList).length&&r.forEach(function(t){0===t.status?n+=1:s+=1}),t.okDeviceNum=n,t.exDeviceNum=s,t.$refs.aMap.amapCreateMarker(r)):t.$toast({type:"error",message:"查询设备信息失败!"}));case 4:case"end":return e.stop()}},e,t)}))()},addMapIconIteam:function(t){var e=t.x,i=t.y,n=t.data,s=t.index,o=t.tags;console.log(n,"addMapIconIteam data",{x:e,y:i,data:n,index:s,tags:o}),e>160&&790-i>120&&0!==Object.keys(n).length&&0!==Object.keys(this.tempDevice).length&&n.id===this.tempDevice.id&&this.$refs.aMap.receveLnglat(n)},iconIteamDrag:function(t){var e=t.x,i=t.y,n=t.data,s=this.deviceArr.map(function(t){return t.id===n.id&&(t.position=JSON.stringify({x:e,y:i})),t});this.deviceArr=s},getPoint:function(t){var e=this;if(console.log(t,"放置的百度地图坐标"),this.bPoint={},t&&(this.bPoint=t,0!==Object.keys(this.markerObject).length)){this.markerObject.lat=t.lat,this.markerObject.lng=t.lng,console.log(this.markerObject,"this.markerObject");var i=[];i.push(this.markerObject),this.setMarker(i);var n=this.deviceList.filter(function(t,i){return e.markerObject.id!==t.id});console.log(n,"----------------newArr",this.deviceList),this.markerObject={}}},setMarker:function(t){this.$refs.baiduMap.bmapCreateMarker(t)},getRandomNum:function(t,e){for(var i=void 0;;)if(i=1e3*Math.random(),"top"===e){if(i<=t&&i>20)break}else if(i<=t&&i>0)break;return parseInt(i)},createPic:function(t){var e=this;0!==t.length&&(t.forEach(function(t,i){var n=e.getRandomNum(80,"top"),s=e.getRandomNum(130,"left");e.$set(t,"top",n),e.$set(t,"left",s),0===t.status?"101"===t.type?(e.$set(t,"url","/static/img/icon/green_camer.png"),e.$set(t,"isZindex",!1),e.$set(t,"isActive",!1)):"103"===t.type&&(e.$set(t,"url","/static/img/icon/green_server.png"),e.$set(t,"isActive",!1),e.$set(t,"isZindex",!1)):1===t.status?"101"===t.type?(e.$set(t,"url","/static/img/icon/red_camer.png"),e.$set(t,"isActive",!1),e.$set(t,"isZindex",!1)):"103"===t.type&&(e.$set(t,"url","/static/img/icon/red_server.png"),e.$set(t,"isActive",!1),e.$set(t,"isZindex",!1)):-1===t.status&&("101"===t.type?(e.$set(t,"url","/static/img/icon/gray_camer.png"),e.$set(t,"isActive",!1),e.$set(t,"isZindex",!1)):"103"===t.type&&(e.$set(t,"url","/static/img/icon/gray_server.png"),e.$set(t,"isActive",!1),e.$set(t,"isZindex",!1)))}),this.deviceList=t)},updatePos:function(t){var e=this;return k(regeneratorRuntime.mark(function i(){var n,s,o;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return console.log(t,"===========marker"),n={id:t.data.id,type:t.data.type,longitude:t.Mg.position.lng,latitude:t.Mg.position.lat},i.next=4,Object(w.q)(n);case 4:(s=i.sent)&&s.success?(o=e.deviceList.filter(function(e){return e.id!==t.data.id}),e.deviceList!==o.length&&(e.createPic(o),0===o.length&&(e.deviceList=o)),e.$toast({type:"success",message:"更新设备坐标成功!"})):e.$toast({type:"error",message:"更新设备坐标失败!"});case 6:case"end":return i.stop()}},i,e)}))()},findDeviceByParams:function(){var t=this;return k(regeneratorRuntime.mark(function e(){var i,n,s,o,r,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=void 0,"currentOrgItem"!==t.searchType){e.next=7;break}return e.next=4,Object(w.j)({orgId:t.currentOrgItem.id,type:t.currentOrgItem.type,length:9999,start:0,condition:t.searchName});case 4:i=e.sent,e.next=12;break;case 7:if("currentColonyItem"!==t.searchType){e.next=12;break}return n=t.currentColonyItem,s=n.type,o=void 0===s?"1":s,r=n.id,a=void 0===r?"0":r,e.next=11,Object(w.f)({id:a,type:o,condition:t.searchName});case 11:i=e.sent;case 12:i&&i.data?"0"===t.currentOrgItem.id&&"0"===t.currentColonyItem.id?t.$refs.aMap.removeActiveDeviceMarkers():i&&0!==i.data.length?(t.$refs.aMap.removeActiveDeviceMarkers(),void 0===i.data[0].child?(t.$refs.aMap.setActiveDeviceMarkers(i.data),t.setActiveForNoPos(i.data)):(t.Iteart(i.data),t.$refs.aMap.setActiveDeviceMarkers(t.result),t.setActiveForNoPos(t.result))):(t.$refs.aMap.removeActiveDeviceMarkers(),t.setActiveForNoPos(i.data)):t.$toast({type:"error",message:i&&i.msg?i.msg:"设备查询失败!"});case 13:case"end":return e.stop()}},e,t)}))()},Iteart:function(t){var e=this;this.result=[],t.forEach(function(t,i){e.result.push(t),null!==t.child&&0!==t.child.length&&e.Iteart(t.child)})},setActiveForNoPos:function(t){var e=this,i=t||[],n=this.deviceList||[];if(0===i.length){var s=!0,o=!1,r=void 0;try{for(var a,c=n[Symbol.iterator]();!(s=(a=c.next()).done);s=!0){var l=a.value;0===l.status?"101"===l.type?(this.$set(l,"url","/static/img/icon/green_camer.png"),this.$set(l,"isActive",!1)):"103"===l.type&&(this.$set(l,"url","/static/img/icon/green_server.png"),this.$set(l,"isActive",!1)):1===l.status?"101"===l.type?(this.$set(l,"url","/static/img/icon/red_camer.png"),this.$set(l,"isActive",!1)):"103"===l.type&&(this.$set(l,"url","/static/img/icon/red_server.png"),this.$set(l,"isActive",!1)):-1===l.status&&("101"===l.type?(this.$set(l,"url","/static/img/icon/gray_camer.png"),this.$set(l,"isActive",!1)):"103"===l.type&&(this.$set(l,"url","/static/img/icon/gray_server.png"),this.$set(l,"isActive",!1)))}}catch(t){o=!0,r=t}finally{try{!s&&c.return&&c.return()}finally{if(o)throw r}}return!1}var u=[];i.forEach(function(t,i){var s=!0,o=!1,r=void 0;try{for(var a,c=n[Symbol.iterator]();!(s=(a=c.next()).done);s=!0){var l=a.value;l.id===t.id?u.push(l):(console.log("回复"),0===l.status?"101"===l.type?(e.$set(l,"url","/static/img/icon/green_camer.png"),e.$set(l,"isActive",!1),e.$set(l,"isZindex",!1)):"103"===l.type&&(e.$set(l,"url","/static/img/icon/green_server.png"),e.$set(l,"isActive",!1),e.$set(l,"isZindex",!1)):1===l.status?"101"===l.type?(e.$set(l,"url","/static/img/icon/red_camer.png"),e.$set(l,"isActive",!1),e.$set(l,"isZindex",!1)):"103"===l.type&&(e.$set(l,"url","/static/img/icon/red_server.png"),e.$set(l,"isActive",!1),e.$set(l,"isZindex",!1)):-1===l.status&&("101"===l.type?(e.$set(l,"url","/static/img/icon/gray_camer.png"),e.$set(l,"isActive",!1),e.$set(l,"isZindex",!1)):"103"===l.type&&(e.$set(l,"url","/static/img/icon/gray_server.png"),e.$set(l,"isActive",!1),e.$set(l,"isZindex",!1))))}}catch(t){o=!0,r=t}finally{try{!s&&c.return&&c.return()}finally{if(o)throw r}}});var d=!0,p=!1,f=void 0;try{for(var v,h=u[Symbol.iterator]();!(d=(v=h.next()).done);d=!0){var m=v.value;console.log(m,"设置左下角高亮"),0===m.status?"101"===m.type?(this.$set(m,"url","/static/img/icon/green_camer_active.png"),this.$set(m,"isActive",!0),this.$set(m,"isZindex",!0)):"103"===m.type&&(this.$set(m,"url","/static/img/icon/green_server_active.png"),this.$set(m,"isActive",!0),this.$set(m,"isZindex",!0)):1===m.status?"101"===m.type?(this.$set(m,"url","/static/img/icon/red_camer_active.png"),this.$set(m,"isActive",!0),this.$set(m,"isZindex",!0)):"103"===m.type&&(this.$set(m,"url","/static/img/icon/red_server_active.png"),this.$set(m,"isActive",!0),this.$set(m,"isZindex",!0)):-1===m.status&&("101"===m.type?(this.$set(m,"url","/static/img/icon/gray_camer_active.png"),this.$set(m,"isActive",!0),this.$set(m,"isZindex",!0)):"103"===m.type&&(this.$set(m,"url","/static/img/icon/gray_server_active.png"),this.$set(m,"isActive",!0),this.$set(m,"isZindex",!0)))}}catch(t){p=!0,f=t}finally{try{!d&&h.return&&h.return()}finally{if(p)throw f}}},focusChange:function(t){this.tempDevice=t}},mounted:function(){this.findAllDevice()},watch:{currentOrgItem:{handler:function(t,e){t!==e&&(this.searchType="currentOrgItem",this.findDeviceByParams())},deep:!0,immediate:!0},currentColonyItem:{handler:function(t,e){t!==e&&(this.searchType="currentColonyItem",this.findDeviceByParams())},deep:!0,immediate:!0}}};var j=function(t){i("nvLE")},E=Object(f.a)(P,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pr",staticStyle:{height:"100%",width:"100%"}},[i("a-map",{ref:"aMap",attrs:{newId:"amap",zoomSize:12},on:{toDetails:t.toDetails,updatePos:t.updatePos}}),t._v(" "),i("div",{staticClass:"list clearfix"},[i("div",{staticClass:"flex-center"},[i("span",{staticStyle:{color:"#5cc9e9"}},[t._v("未标记:"+t._s(t.deviceList.length))])]),t._v(" "),i("div",t._l(t.deviceList,function(e){return i("dragger-box",{key:e.id,class:["float-left",e.isZindex?"zIndex1":"zIndex0"],style:"top:"+e.top+"px;left:"+e.left+"px;position:absolute",attrs:{data:e,toDOMId:"amap"},on:{_getContainerRect:t.addMapIconIteam}},[i("div",{staticClass:"cursor-move",attrs:{tabindex:"-1"},on:{focus:function(i){t.focusChange(e)}}},[i("div",{class:e.isActive?"img-icon2":"img-icon",style:"background-image: url("+e.url+");"})])])}))]),t._v(" "),i("mapDeviceModel",{ref:"mapModelRef"}),t._v(" "),i("div",{staticClass:"status"},[i("el-row",{staticClass:"pt10",attrs:{gutter:10}},[i("el-col",{staticClass:"flex-center",attrs:{span:8}},[i("div",{staticClass:"iconClass flex-center mr10"},[i("specia-button",[i("i",{staticClass:"ion d-block ion-ios-videocam"})])],1),t._v(" "),i("span",{staticClass:"spanfontright fb"},[t._v(t._s(t.okDeviceNum))]),t._v(" "),i("span",{staticStyle:{"font-size":"18px"}},[t._v("|")]),t._v(" "),i("span",{staticClass:"spanfontleft fb"},[t._v(t._s(t.exDeviceNum)+" ")])]),t._v(" "),i("el-col",{staticClass:"flex-center",attrs:{span:8}},[i("div",{staticClass:"iconClass flex-center mr10"},[i("specia-button",[i("i",{staticClass:"d-block fas fa-hdd"})])],1),t._v(" "),i("span",{staticClass:"spanfontright fb"},[t._v(t._s(t.okServerNum))]),t._v(" "),i("span",{staticStyle:{"font-size":"18px"}},[t._v("|")]),t._v(" "),i("span",{staticClass:"spanfontleft fb"},[t._v(t._s(t.exServerNum)+" ")])])],1)],1)],1)},[],!1,j,null,null);e.default=E.exports},RSLX:function(t,e,i){"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};var s,o,r,a={props:{url:{default:"",type:String},width:{default:"460",type:String},height:{default:"320",type:String}},data:function(){return{playerId:"vxg_media_player1",vxgPlayerId:"vxgPlayerId",videoUrl:""}},methods:(s={vxgplayerInit:function(t){var e=t.id,i=void 0===e?"vxgplayer":e,s=t.url,o=void 0===s?"":s,r=t.nmf_path,a=void 0===r?"media_player.nmf":r,c=t.nmf_src,l=void 0===c?"/static/vxgplayer-1.8.31/pnacl/Release/media_player.nmf":c,u=t.latency,d=void 0===u?"10000":u,p=t.width,f=void 0===p?"360px":p,v=t.height,h=void 0===v?"200px":v,m=t.aspect_ratio_mode,g=void 0===m?1:m,y=t.autohide,_=void 0===y?3:y,x=t.controls,b=void 0===x||x,$=t.connection_timeout,C=void 0===$?5e3:$,w=t.connection_udp,I=void 0===w?0:w,O=t.custom_digital_zoom,D=void 0!==O&&O;t.autostart;vxgplayer(i,n({},t,{url:o,nmf_path:a,nmf_src:l,latency:d,width:f,height:h,aspect_ratio_mode:g,autohide:_,controls:b,connection_timeout:C,connection_udp:I,custom_digital_zoom:D})).ready(function(t){vxgplayer(i).src(o),vxgplayer(i).play(),vxgplayer(i).onStateChange(function(t){console.log("state",t)}),vxgplayer(i).onError(function(t){console.log(t.error(),"播放错误")})})}},o="vxgplayerInit",r=function(){var t=this;this.videoUrl="rtsp://admin:a1234567@192.168.1.64:554/h264/ch1/main/av_stream",this.vxgPlayerId=this.vxgPlayerId+(new Date).getTime()+"",this.$nextTick(function(){t.vxgplayerInit({id:t.vxgPlayerId,url:t.videoUrl,autostart:!0})})},o in s?Object.defineProperty(s,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):s[o]=r,s),mounted:function(){this.vxgplayerInit()},watch:{refresh:function(t,e){this.vxgplayerInit(),console.log(t,"refresh----")},url:function(t,e){this.vxgplayerInit(),console.log(t,"url----")}}},c=i("XyMi");var l=function(t){i("7cZT")},u=Object(c.a)(a,function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"vxgplayer",attrs:{id:this.vxgPlayerId,width:this.width,height:this.height,url:this.url,"nmf-src":"/static/vxgplayer-1.8.31/pnacl/Release/media_player.nmf","nmf-path":"media_player.nmf","useragent-prefix":"MMP/3.0",latency:"10000",autohide:"2",volume:"0.7",avsync:"",controls:"",autostart:!0,mute:"","aspect-ratio":"","aspect-ratio-mode":"1","auto-reconnect":"","connection-timeout":"5000","connection-udp":"0","custom-digital-zoom":""}})])},[],!1,l,null,null);e.a=u.exports},Rhnq:function(t,e){},Yq4J:function(t,e){},ajQY:function(t,e){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/",i(i.s=282)}({282:function(t,e,i){"use strict";e.__esModule=!0;var n,s=i(283),o=(n=s)&&n.__esModule?n:{default:n};o.default.install=function(t){t.component(o.default.name,o.default)},e.default=o.default},283:function(t,e,i){"use strict";e.__esModule=!0,e.default={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:{type:String,default:"top"}},computed:{style:function(){var t={};return this.gutter&&(t.marginLeft="-"+this.gutter/2+"px",t.marginRight=t.marginLeft),t}},render:function(t){return t(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"","top"!==this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)}}}})},d7TW:function(t,e){},jZDA:function(t,e){},kNle:function(t,e){},nvLE:function(t,e){},qubY:function(t,e,i){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/",i(i.s=61)}({0:function(t,e){t.exports=function(t,e,i,n,s,o){var r,a=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(r=t,a=t.default);var l,u="function"==typeof a?a.options:a;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),i&&(u.functional=!0),s&&(u._scopeId=s),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):n&&(l=n),l){var d=u.functional,p=d?u.render:u.beforeCreate;d?(u._injectStyles=l,u.render=function(t,e){return l.call(e),p(t,e)}):u.beforeCreate=p?[].concat(p,l):[l]}return{esModule:r,exports:a,options:u}}},1:function(t,e){t.exports=i("fPll")},13:function(t,e){t.exports=i("7J9s")},61:function(t,e,i){"use strict";e.__esModule=!0;var n,s=i(62),o=(n=s)&&n.__esModule?n:{default:n};o.default.install=function(t){t.component(o.default.name,o.default)},e.default=o.default},62:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(63),s=i.n(n),o=i(64),r=i(0)(s.a,o.a,!1,null,null,null);e.default=r.exports},63:function(t,e,i){"use strict";e.__esModule=!0;var n=r(i(13)),s=r(i(8)),o=r(i(1));function r(t){return t&&t.__esModule?t:{default:t}}e.default={name:"ElDialog",mixins:[n.default,o.default,s.default],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1}},data:function(){return{closed:!1}},watch:{visible:function(t){var e=this;t?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick(function(){e.$refs.dialog.scrollTop=0}),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"))}},computed:{style:function(){var t={};return this.fullscreen||(t.marginTop=this.top,this.width&&(t.width=this.width)),t}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(t){!1!==t&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}}},64:function(t,e,i){"use strict";var n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(e){if(e.target!==e.currentTarget)return null;t.handleWrapperClick(e)}}},[i("div",{ref:"dialog",staticClass:"el-dialog",class:[{"is-fullscreen":t.fullscreen,"el-dialog--center":t.center},t.customClass],style:t.style,attrs:{role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"}},[i("div",{staticClass:"el-dialog__header"},[t._t("title",[i("span",{staticClass:"el-dialog__title"},[t._v(t._s(t.title))])]),t.showClose?i("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:t.handleClose}},[i("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):t._e()],2),t.rendered?i("div",{staticClass:"el-dialog__body"},[t._t("default")],2):t._e(),t.$slots.footer?i("div",{staticClass:"el-dialog__footer"},[t._t("footer")],2):t._e()])])])},staticRenderFns:[]};e.a=n},8:function(t,e){t.exports=i("aW5l")}})},uKxw:function(t,e){}});
|