(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fa27c6ca"],{"19b9":function(e,t,o){},"19c7":function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("video",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"videoElement",controls:"",width:"0",height:"0"}},[e._v(" xxx ")]),o("div",{staticClass:"tableDiv"},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[o("el-table-column",{attrs:{label:"ID",prop:"monitorpointId"}}),o("el-table-column",{attrs:{label:"监测点名称",prop:"monitorstationId_name"}}),o("el-table-column",{attrs:{label:"状态",prop:"status_name",align:"center"}}),o("el-table-column",{attrs:{label:"查看通道"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("div",[o("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(o){return e.lookPassage(t)}}},[e._v("查看通道")])],1)]}}])}),o("el-table-column",{attrs:{label:"频率清单"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("div",[o("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(o){return e.lookFrequency(t)}}},[e._v("查看")])],1)]}}])}),o("el-table-column",{attrs:{label:"录音回放"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("div",[o("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(o){return e.lookBack(t)}}},[e._v("回放")])],1)]}}])})],1)],1),o("el-dialog",{attrs:{title:"查看通道",visible:e.lookPassageVisible},on:{"update:visible":function(t){e.lookPassageVisible=t}}},[o("el-table",{attrs:{data:e.showFirst,"show-header":!1}},[o("el-table-column",{attrs:{label:"channelId",prop:"channelId"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("div",[e._v(" "+e._s(e._f("formatChannelId")(t.row.channelId))+" ")])]}}])}),o("el-table-column",{attrs:{label:"STATUS",prop:"STATUS"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.channelId?o("div",[e._v(" "+e._s(e._f("formatSTATUS")(t.row.STATUS))+" ")]):o("div",[e._v("--")])]}}])}),o("el-table-column",{attrs:{label:"frequencyValue",prop:"frequencyValue"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.channelId?o("div",[e._v(" "+e._s(t.row.frequencyValue)+" ")]):o("div",[e._v("--")])]}}])}),o("el-table-column",{attrs:{label:"start_time",prop:"start_time"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.channelId?o("div",[t.row.start_time?o("div",[e._v(" "+e._s(t.row.start_time)+" ")]):o("div",[e._v("--")])]):o("div",[e._v("--")])]}}])}),o("el-table-column",{attrs:{label:"stop_time",prop:"stop_time"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.channelId?o("div",[t.row.stop_time?o("div",[e._v(" "+e._s(t.row.stop_time)+" ")]):o("div",[e._v("--")])]):o("div",[e._v("--")])]}}])}),o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.channelId?o("div",[""!=t.row.frequencyValue&&"--"!=t.row.frequencyValue?o("div",{key:e.isChange},[1==t.row.channelId?o("div",[o("i",{staticClass:"el-icon-video-play",on:{click:function(o){return e.playVideo(t)}}}),o("i",{staticClass:"el-icon-video-pause",staticStyle:{"margin-left":"20px"},on:{click:function(o){return e.pauseVideo(t)}}})]):o("div",[0==t.row.STATUS?o("i",{staticClass:"el-icon-download",on:{click:function(o){return e.jionRecord(t)}}}):e._e(),1==t.row.STATUS?o("i",{staticClass:"el-icon-delete-solid",on:{click:function(o){return e.dropRecord(t)}}}):e._e()])]):o("div",[e._v("--")])]):o("div",[e._v("--")])]}}])})],1)],1),o("el-dialog",{attrs:{title:"频率清单",visible:e.lookFrequencyVisible},on:{"update:visible":function(t){e.lookFrequencyVisible=t}}},[o("el-table",{attrs:{data:e.showSecond}},[o("el-table-column",{attrs:{label:"频率",prop:"frequencyValue"}}),o("el-table-column",{attrs:{label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("div",[e._v(" "+e._s(e._f("formateFreStatus")(t.row.status))+" ")])]}}])}),o("el-table-column",{attrs:{label:"信号",prop:"level"}})],1)],1),o("el-dialog",{attrs:{visible:e.lookBackVisible},on:{"update:visible":function(t){e.lookBackVisible=t}}},[o("div",{staticClass:"lookBackDataTitle",attrs:{slot:"title"},slot:"title"},[o("p",[e._v(e._s(e.lookBackData.monitorpointName))]),o("p",[e._v(e._s(e.lookBackData.status_name))])]),o("div",[o("div",{staticClass:"lookBackBlock"},[o("span",{staticClass:"demonstration"},[e._v("回放时间")]),o("el-date-picker",{staticStyle:{"margin-left":"20px"},attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.timeValue,callback:function(t){e.timeValue=t},expression:"timeValue"}})],1),o("div",{staticClass:"lookBackBlock",staticStyle:{"margin-top":"30px"}},[o("span",[e._v("请选择频率:")]),o("el-select",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"请先填写日期"},model:{value:e.frequencySel,callback:function(t){e.frequencySel=t},expression:"frequencySel"}})],1)]),o("div",{staticStyle:{"margin-top":"30px"}},[o("div",[o("i",{staticClass:"el-icon-video-play"}),o("i",{staticClass:"el-icon-video-pause"})])])])],1)},n=[],i=(o("d3b7"),o("3ca3"),o("ddb0"),o("2b3d"),o("99af"),o("25f0"),o("159b"),{watch:{timeValue:{handler:function(e,t){console.log(this.timeValue),2==this.timeValue.length&&this.getFrequencySel()}},lookPassageVisible:{handler:function(e,t){this.lookPassageVisible||this.player&&(this.player.pause(),this.player.unload(),this.player.detachMediaElement(),this.player.destroy(),this.player=null,console.log("drop"))}}},filters:{formatChannelId:function(e){return console.log(e),1==e?"监听通道":0==e?"扫频通道":"录制通道"},formatSTATUS:function(e){return"1"==e?"正在录制":"0"==e?"停止录制":void 0},formateFreStatus:function(e){return"0"==e?"合法频点":"1"==e?"非法频点":"2"==e?"误报":"3"==e?"白名单":"4"==e?"异地频点":"5"==e?"疑似非法频点":"6"==e?"丢失":"未知"}},data:function(){return{tableData:[],activeName:"first",showFirst:[],showSecond:[],lookPassageVisible:!1,lookFrequencyVisible:!1,lookBackVisible:!1,lookBackData:{},timeValue:"",frequencySel:"",frequencyArr:[],nowPlayId:null,player:null,isPlay:!1,isChange:!1}},mounted:function(){this.getInfo()},methods:{jionRecord:function(e){var t=this;if(console.log(e.row),sessionStorage.getItem("userName")){var o=JSON.parse(sessionStorage.getItem("userName"));this.$confirm("是否确定将".concat(e.row.frequencyValue,"加入录制"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$emit("showLoading","luzhi");var a=new URLSearchParams;a.append("method","record"),a.append("key",123456),a.append("monitorpointId",e.row.monitorpointId),a.append("frequencyValue",e.row.frequencyValue);var n="http://wiibox.xicp.io:19868/FRP/TNewrecordtask.do?method=record&monitorpointId=".concat(e.row.monitorpointId,"&frequencyValue=").concat(e.row.frequencyValue);t.$getJSON("http://wiibox.xicp.io:19868/FRP/TNewrecordtask.do",a).then((function(a){t.$emit("hideLoading");var i={bid:"setChannelRecord",monitorpointId:e.row.monitorpointId,frequency:e.row.frequencyValue,userid:o.username,requesturl:n,success:a.success.toString(),msg:a.msg};t.$post("http://wiibox.xicp.io:8484/dataservice/dealData",i).then((function(e){})),a.success?(t.$message.success(a.msg),t.getInfo()):t.$message.error(a.msg)}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}else this.$emit("showLogin")},dropRecord:function(e){var t=this,o=new URLSearchParams;o.append("method","delete"),o.append("key",123456),o.append("monitorpointId",e.row.monitorpointId),o.append("frequencyValue",e.row.frequencyValue),this.$getJSON("http://wiibox.xicp.io:19868/FRP/TNewrecordtask.do",o).then((function(e){console.log(e),e.success?t.getInfo():t.$message.warning(e.msg)}))},pauseVideo:function(e){this.player.pause()},playVideo:function(e){console.log(e),this.nowPlayId?this.nowPlayId==e.row.monitorpointId?(console.log("暂停后开始"),this.isplay=!0,this.player.play()):(console.log("停止后开始"),this.player.pause(),this.player.unload(),this.player.detachMediaElement(),this.player.destroy(),this.player=null,this.nowPlayId=e.row.monitorpointId,this.getPalyUrl(e.row)):(console.log("初始"),this.nowPlayId=e.row.monitorpointId,this.getPalyUrl(e.row))},stopVideo:function(e){console.log(e);var t=new URLSearchParams;t.append("method","delete"),t.append("monitorpointId",e.row.monitorpointId),t.append("frequencyValue",e.row.frequencyValue),t.append("key",123456),this.$getJSON("http://wiibox.xicp.io:19868/FRP/TNewrecordtask.do",t).then((function(e){console.log(e)})),this.player&&(this.player.pause(),this.player.unload(),this.player.detachMediaElement(),this.player.destroy(),this.player=null)},getPalyUrl:function(e){var t=this,o=new URLSearchParams;o.append("method","playLiveNew"),o.append("instruct",1),o.append("playType",0),o.append("hls",0),o.append("key",123456),o.append("monitorpointId",e.monitorpointId),o.append("frequencyValue",e.frequencyValue),this.$getJSON("http://wiibox.xicp.io:19868/FRP/ScanSignal.do",o).then((function(e){console.log(e),t.$message.warning(e.success);if(e.url&&e.url,e.url){t.rtsp=e.url;var o=document.getElementById("videoElement");flvjs.isSupported()&&(t.player=flvjs.createPlayer({type:"flv",url:t.rtsp}),t.player.attachMediaElement(o),t.player.load(),t.rtsp?(t.isplay=!0,t.player.play()):t.$message.error("无音频文件"))}else t.isPlay=!0,t.isChange=!t.isChange}))},dateFormatter:function(e){var t=e.getFullYear(),o=e.getMonth()+1,a=e.getDate(),n=e.getHours(),i=e.getMinutes(),l=e.getSeconds();return this.add0(t)+"-"+this.add0(o)+"-"+this.add0(a)+" "+this.add0(n)+":"+this.add0(i)+":"+this.add0(l)},add0:function(e){return e<10?"0"+e:e},getInfo:function(){var e=this,t=new URLSearchParams;t.append("method","searchByPage"),t.append("type",1),t.append("key",10010),t.append("iDisplayStart",0),t.append("iDisplayLength",1e5),this.$getJSON("http://wiibox.xicp.io:19868/FRP/TMonitorpointInfo.do",t).then((function(t){console.log(t),e.tableData=t.aaData}))},lookBack:function(e){console.log(e),this.lookBackData=e.row,this.lookBackVisible=!0},getFrequencySel:function(){var e=this,t=new URLSearchParams;t.append("bid","getRecordFreqs"),t.append("start_time",1),t.append("end_time",10010),t.append("monitorpointId",0),this.$getJSON("http://wiibox.xicp.io:8484/dataservice/getNoTokenData",t).then((function(t){console.log(t);var o=[];t.data.data[0].forEach((function(e){o.push(e.frequencyValue)})),e.frequencyArr=o}))},handleClick:function(e,t){console.log(e,t)},lookFrequency:function(e){var t=this,o=new URLSearchParams;o.append("bid","getCurrPointFreqs"),o.append("monitorpointId",e.row.monitorpointId),this.$getJSON("http://wiibox.xicp.io:8484/dataservice/getNoTokenData",o).then((function(e){console.log(e),t.showSecond=e.data.data[0],console.log(t.showSecond),t.lookFrequencyVisible=!0}))},lookPassage:function(e){var t=this,o=new URLSearchParams;o.append("bid","getChannelRecord"),o.append("monitorpointId",e.row.monitorpointId),this.$getJSON("http://wiibox.xicp.io:8484/dataservice/getNoTokenData",o).then((function(e){console.log(e),t.showFirst=e.data.data[0],console.log(t.showFirst),t.lookPassageVisible=!0}))}},beforeDestroy:function(){this.player&&(this.player.pause(),this.player.unload(),this.player.detachMediaElement(),this.player.destroy(),this.player=null)}}),l=i,s=(o("77d3"),o("2877")),r=Object(s["a"])(l,a,n,!1,null,null,null);t["default"]=r.exports},"77d3":function(e,t,o){"use strict";o("19b9")}}]); //# sourceMappingURL=chunk-fa27c6ca.d59da445.js.map