wangrong
2021-11-24 130b72d6c5734f8acaac0214b6dfe5c8bfa319c3
1
2
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fa27c6ca"],{"19b9":function(e,t,a){},"19c7":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("video",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"videoElement",controls:"",width:"0",height:"0"}},[e._v(" xxx ")]),a("div",{staticClass:"tableDiv"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"ID",prop:"monitorpointId"}}),a("el-table-column",{attrs:{label:"监测点名称",prop:"monitorstationId_name"}}),a("el-table-column",{attrs:{label:"状态",prop:"status_name",align:"center"}}),a("el-table-column",{attrs:{label:"查看通道"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(a){return e.lookPassage(t)}}},[e._v("查看通道")])],1)]}}])}),a("el-table-column",{attrs:{label:"频率清单"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(a){return e.lookFrequency(t)}}},[e._v("查看")])],1)]}}])}),a("el-table-column",{attrs:{label:"录音回放"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(a){return e.lookBack(t)}}},[e._v("回放")])],1)]}}])})],1)],1),a("el-dialog",{attrs:{title:"查看通道",visible:e.lookPassageVisible},on:{"update:visible":function(t){e.lookPassageVisible=t}}},[a("el-table",{attrs:{data:e.showFirst,"show-header":!1}},[a("el-table-column",{attrs:{label:"channelId",prop:"channelId"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(" "+e._s(e._f("formatChannelId")(t.row.channelId))+" ")])]}}])}),a("el-table-column",{attrs:{label:"STATUS",prop:"STATUS"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(" "+e._s(e._f("formatSTATUS")(t.row.STATUS))+" ")])]}}])}),a("el-table-column",{attrs:{label:"frequencyValue",prop:"frequencyValue"}}),a("el-table-column",{attrs:{label:"start_time",prop:"start_time"}}),a("el-table-column",{attrs:{label:"stop_time",prop:"stop_time"}}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.frequencyValue&&"--"!=t.row.frequencyValue?a("div",{key:e.isChange},[e.isPlay?a("i",{staticClass:"el-icon-video-pause",on:{click:function(a){return e.pauseVideo(t)}}}):a("i",{staticClass:"el-icon-video-play",on:{click:function(a){return e.playVideo(t)}}}),a("i",{staticClass:"el-icon-video-pause",staticStyle:{"margin-left":"30px"},on:{click:function(a){return e.stopVideo(t)}}})]):e._e()]}}])})],1)],1),a("el-dialog",{attrs:{title:"频率清单",visible:e.lookFrequencyVisible},on:{"update:visible":function(t){e.lookFrequencyVisible=t}}},[a("el-table",{attrs:{data:e.showSecond}},[a("el-table-column",{attrs:{label:"频率",prop:"frequencyValue"}}),a("el-table-column",{attrs:{label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(" "+e._s(e._f("formateFreStatus")(t.row.status))+" ")])]}}])}),a("el-table-column",{attrs:{label:"信号",prop:"level"}})],1)],1),a("el-dialog",{attrs:{visible:e.lookBackVisible},on:{"update:visible":function(t){e.lookBackVisible=t}}},[a("div",{staticClass:"lookBackDataTitle",attrs:{slot:"title"},slot:"title"},[a("p",[e._v(e._s(e.lookBackData.monitorpointName))]),a("p",[e._v(e._s(e.lookBackData.status_name))])]),a("div",[a("div",{staticClass:"lookBackBlock"},[a("span",{staticClass:"demonstration"},[e._v("回放时间")]),a("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),a("div",{staticClass:"lookBackBlock",staticStyle:{"margin-top":"30px"}},[a("span",[e._v("请选择频率:")]),a("el-select",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"请先填写日期"},model:{value:e.frequencySel,callback:function(t){e.frequencySel=t},expression:"frequencySel"}})],1)]),a("div",{staticStyle:{"margin-top":"30px"}},[a("div",[a("i",{staticClass:"el-icon-video-play"}),a("i",{staticClass:"el-icon-video-pause"})])])])],1)},l=[],n=(a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("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:{pauseVideo:function(e){},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,a=new URLSearchParams;a.append("method","playLiveNew"),a.append("instruct",1),a.append("playType",0),a.append("hls",0),a.append("key",123456),a.append("monitorpointId",e.monitorpointId),a.append("frequencyValue",e.frequencyValue),this.$getJSON("http://wiibox.xicp.io:19868/FRP/ScanSignal.do",a).then((function(e){console.log(e),t.$message.warning(e.success);if(e.url&&e.url,e.url){t.rtsp=e.url;var a=document.getElementById("videoElement");flvjs.isSupported()&&(t.player=flvjs.createPlayer({type:"flv",url:t.rtsp}),t.player.attachMediaElement(a),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(),a=e.getMonth()+1,o=e.getDate(),l=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return this.add0(t)+"-"+this.add0(a)+"-"+this.add0(o)+" "+this.add0(l)+":"+this.add0(n)+":"+this.add0(i)},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 a=[];t.data.data[0].forEach((function(e){a.push(e.frequencyValue)})),e.frequencyArr=a}))},handleClick:function(e,t){console.log(e,t)},lookFrequency:function(e){var t=this,a=new URLSearchParams;a.append("bid","getCurrPointFreqs"),a.append("monitorpointId",e.row.monitorpointId),this.$getJSON("http://wiibox.xicp.io:8484/dataservice/getNoTokenData",a).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,a=new URLSearchParams;a.append("bid","getChannelRecord"),a.append("monitorpointId",e.row.monitorpointId),this.$getJSON("http://wiibox.xicp.io:8484/dataservice/getNoTokenData",a).then((function(e){console.log(e),t.showFirst=e.data.data[0],console.log(t.showFirst),t.lookPassageVisible=!0}))}}}),i=n,s=(a("77d3"),a("2877")),r=Object(s["a"])(i,o,l,!1,null,null,null);t["default"]=r.exports},"77d3":function(e,t,a){"use strict";a("19b9")}}]);
//# sourceMappingURL=chunk-fa27c6ca.ac9f56fc.js.map