(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5152901d"],{"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",{key:e.isKey,staticStyle:{width:"100%"},attrs:{data:e.tableData}},[o("el-table-column",{attrs:{label:"ID",prop:"monitorpointId"}}),o("el-table-column",{attrs:{label:"监测点名称",prop:"monitorpointName"}}),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.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)]}}])}),o("el-table-column",{attrs:{label:"录制通道1"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("div",[o("div",[o("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[o("el-form-item",{attrs:{label:"频率:"}},[o("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.isLeftEdit,expression:"!scope.row.isLeftEdit"}],on:{dblclick:function(o){return e.changeLeftInput(o,t)}}},[e._v(e._s(e._f("formateFre")(t.row.channels[0].frequencyValue)))]),o("el-input",{directives:[{name:"show",rawName:"v-show",value:t.row.isLeftEdit,expression:"scope.row.isLeftEdit"}],ref:"editLeftInput",staticStyle:{width:"80px",height:"22px"},attrs:{placeholder:""},on:{blur:function(o){return e.changeLeftP(t)}},model:{value:t.row.channels[0].frequencyValue,callback:function(o){e.$set(t.row.channels[0],"frequencyValue",o)},expression:"scope.row.channels[0].frequencyValue"}})],1),o("el-form-item",{attrs:{label:"状态:"}},[o("span",[e._v(e._s(e._f("formatSTATUS")(t.row.channels[0].status)))])]),o("el-form-item",{attrs:{label:"操作:"}},[o("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"加入录制",placement:"top"}},[o("svg-icon",{staticClass:"svgIcon",attrs:{"icon-class":"recordAddBlack"},on:{click:function(o){return e.jionRecord(t.row.channels[0])}}})],1),o("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"停止录制",placement:"top"}},[o("svg-icon",{staticClass:"svgIcon",staticStyle:{"margin-left":"10px"},attrs:{"icon-class":"stopBlack"},on:{click:function(o){return e.dropRecord(t.row.channels[0])}}})],1)],1)],1)],1)])]}}])}),o("el-table-column",{attrs:{label:"录制通道2"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("div",{staticStyle:{width:"50%"}},[o("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[o("el-form-item",{attrs:{label:"频率:"}},[o("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.isRightEdit,expression:"!scope.row.isRightEdit"}],on:{dblclick:function(o){return e.changeRightInput(o,t)}}},[e._v(e._s(e._f("formateFre")(t.row.channels[1].frequencyValue)))]),o("el-input",{directives:[{name:"show",rawName:"v-show",value:t.row.isRightEdit,expression:"scope.row.isRightEdit"}],ref:"editRightInput",staticStyle:{width:"80px",height:"22px"},attrs:{placeholder:""},on:{blur:function(o){return e.changeRightP(t)}},model:{value:t.row.channels[1].frequencyValue,callback:function(o){e.$set(t.row.channels[1],"frequencyValue",o)},expression:"scope.row.channels[1].frequencyValue"}})],1),o("el-form-item",{attrs:{label:"状态:"}},[o("span",[e._v(e._s(e._f("formatSTATUS")(t.row.channels[1].status)))])]),o("el-form-item",{attrs:{label:"操作:"}},[o("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"加入录制",placement:"top"}},[o("svg-icon",{staticClass:"svgIcon",attrs:{"icon-class":"recordAddBlack"},on:{click:function(o){return e.jionRecord(t.row.channels[1])}}})],1),o("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"停止录制",placement:"top"}},[o("svg-icon",{staticClass:"svgIcon",staticStyle:{"margin-left":"10px"},attrs:{"icon-class":"stopBlack"},on:{click:function(o){return e.dropRecord(t.row.channels[1])}}})],1)],1)],1)],1)]}}])})],1)],1),o("el-dialog",{attrs:{title:"查看通道",visible:e.lookPassageVisible},on:{"update:visible":function(t){e.lookPassageVisible=t}}},[o("el-table",{key:e.tableKey,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[o("div",{staticStyle:{display:"flex"}},[t.row.isEdit?o("div",[o("el-input",{attrs:{placeholder:""},model:{value:t.row.frequencyValue,callback:function(o){e.$set(t.row,"frequencyValue",o)},expression:"scope.row.frequencyValue"}})],1):o("div",[0!=t.row.channelId?o("div",[e._v(" "+e._s(t.row.frequencyValue)+" ")]):o("div",[e._v("--")])]),o("i",{class:{"el-icon-edit":!t.row.isEdit,"el-icon-check":t.row.isEdit},staticStyle:{"margin-left":"10px"},on:{click:function(o){return e.changeEdit(t)}}})])]}}])}),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"}),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},close:e.closeReplay}},[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"}},e._l(e.frequencyArr,(function(e,t){return o("el-option",{key:t,attrs:{label:e,value:e}})})),1),o("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"点击收听",placement:"top"}},[o("i",{directives:[{name:"show",rawName:"v-show",value:!e.isReplay,expression:"!isReplay"}],staticClass:"el-icon-video-play",staticStyle:{"margin-left":"20px"},on:{click:function(t){return e.replayRecord()}}})])],1)]),o("div",{staticStyle:{"margin-top":"30px"}},[o("video",{directives:[{name:"show",rawName:"v-show",value:e.isReplay,expression:"isReplay"}],ref:"testVideo",attrs:{id:"testVideo",src:"",controls:"",preload:"",width:"90%",height:"300"}},[e._v(" qqq ")])])])],1)},i=[],n=(o("b0c0"),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.frequencySel="",this.getFrequencySel())}},frequencySel:{handler:function(e,t){this.frequencySel&&(this.isReplay=!1,this.playVideo&&(this.playVideo.pause(),this.playVideo=null))}},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:{formateFre:function(e){return e||"--"},formatChannelId:function(e){return console.log(e),1==e?"监听通道":0==e?"扫频通道":"录制通道"},formatSTATUS:function(e){return"1"==e?"正在录制":"停止录制"},formateFreStatus:function(e){return"0"==e?"合法频点":"1"==e?"非法频点":"2"==e?"误报":"3"==e?"白名单":"4"==e?"异地频点":"5"==e?"疑似非法频点":"6"==e?"丢失":"未知"}},data:function(){return{isKey:!1,playVideo:null,isReplay:!1,isEdit:!1,tableData:[],activeName:"first",showFirst:[],showSecond:[],lookPassageVisible:!1,lookFrequencyVisible:!1,lookBackVisible:!1,lookBackData:{},timeValue:[],frequencySel:"",frequencyArr:[],nowPlayId:null,player:null,isPlay:!1,isChange:!1,tableKey:!1,userid:"",username:"",isLeftEdit:!1,isRightEdit:!1}},mounted:function(){localStorage.getItem("user")&&localStorage.getItem("_token")?(this.userid=JSON.parse(localStorage.getItem("user")).name,this.username=JSON.parse(localStorage.getItem("_token")).account,console.log(this.userid),console.log(this.username)):window.location.href="http://wiibox.xicp.io:8484/ammonitor/#/passport/login",this.getInfo()},methods:{changeLeftInput:function(e,t){var o=e.currentTarget;console.log(this.$refs.editLeftInput),t.row.isLeftEdit=!t.row.isLeftEdit,this.isKey=!this.isKey,setTimeout((function(){o.parentNode.children[1].children[0].focus(),console.log("123123")}),500)},changeLeftP:function(e){e.row.isLeftEdit=!e.row.isLeftEdit,this.isKey=!this.isKey},changeRightInput:function(e,t){var o=e.currentTarget;console.log(this.$refs.editLeftInput),t.row.isRightEdit=!t.row.isRightEdit,this.isKey=!this.isKey,setTimeout((function(){o.parentNode.children[1].children[0].focus()}),500)},changeRightP:function(e){e.row.isRightEdit=!e.row.isRightEdit,this.isKey=!this.isKey},closeReplay:function(){this.timeValue=[],this.frequencySel="",this.frequencyArr=[],this.isReplay=!1,this.playVideo&&(this.playVideo.pause(),this.playVideo=null)},replayRecord:function(){var e=this;console.log(this.frequencySel);var t=new URLSearchParams;t.append("method","mutipleReview"),t.append("instruct",1),t.append("playType",1),t.append("hls",1),t.append("key",123456),t.append("monitorpointId",this.lookBackData.monitorpointId),t.append("frequencyValue",this.frequencySel),t.append("startTime",this.dateFormatter(this.timeValue[0])),t.append("endTime",this.dateFormatter(this.timeValue[1])),this.$post("http://wiibox.xicp.io:19868/FRP/NetRequest.do",t).then((function(t){console.log(t),"true"==t.success?(console.log("123"),e.isReplay=!0,e.playReplay(t.url)):e.$message.error(t.msg)}))},playReplay:function(e){if(console.log("1"),this.playVideo=this.$refs.testVideo,Hls.isSupported()){var t=new Hls;t.loadSource(e),t.attachMedia(this.playVideo),t.on(Hls.Events.MANIFEST_PARSED,(function(){this.playVideo.play()}))}else this.playVideo.canPlayType("application/vnd.apple.mpegurl")&&(this.playVideo.src=e,this.playVideo.addEventListener("loadedmetadata",(function(){this.playVideo.play()})))},changeEdit:function(e){e.row.isEdit=!e.row.isEdit,this.tableKey=!this.tableKey},jionRecord:function(e){var t=this;if(localStorage.getItem("user")&&localStorage.getItem("_token")){JSON.parse(localStorage.getItem("user")),JSON.parse(localStorage.getItem("_token"));this.$confirm("是否确定将".concat(e.frequencyValue,"加入录制"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$emit("showLoading","luzhi");var o=new URLSearchParams;o.append("method","record"),o.append("key",111111),o.append("recordTimeLength",180),o.append("monitorpointId",e.monitorpointId),o.append("frequencyValue",e.frequencyValue),o.append("isUnderWay",0);var a="http://wiibox.xicp.io:19868/FRP/TNewrecordtask.do?method=record&monitorpointId=".concat(e.monitorpointId,"&frequencyValue=").concat(e.frequencyValue);t.$getJSON("http://wiibox.xicp.io:19868/FRP/TNewrecordtask.do",o).then((function(o){t.$emit("hideLoading");var i={bid:"setChannelRecord",monitorpointId:e.monitorpointId,frequency:e.frequencyValue,userid:t.userid,requesturl:a,success:o[0].success.toString(),msg:o[0].msg,recordminitus:180};t.$post("http://wiibox.xicp.io:8484/dataservice/dealData",i).then((function(e){})),o[0].success?t.$message.success(o[0].msg):t.$message.error(o[0].msg)}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}else window.location.href="http://wiibox.xicp.io:8484/ammonitor/#/passport/login"},dropRecord:function(e){var t=this,o=new URLSearchParams;o.append("method","delete"),o.append("key",123456),o.append("monitorpointId",e.monitorpointId),o.append("frequencyValue",e.frequencyValue),this.$getJSON("http://wiibox.xicp.io:19868/FRP/TNewrecordtask.do",o).then((function(o){console.log(o),o.success?(e.status,t.tableKey=!t.tableKey):t.$message.warning(o.msg)}))},pauseVideo:function(e){this.player.pause()},playVideo1: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(),i=e.getHours(),n=e.getMinutes(),s=e.getSeconds();return this.add0(t)+"-"+this.add0(o)+"-"+this.add0(a)+" "+this.add0(i)+":"+this.add0(n)+":"+this.add0(s)},add0:function(e){return e<10?"0"+e:e},getInfo:function(){var e=this;this.$getJSON("http://wiibox.xicp.io:8484/dataservice/getNoTokenData?bid=getPointAndChannels").then((function(t){console.log(t),e.tableData=JSON.parse(JSON.stringify(t.data.data.monitorpoints)),e.tableData.forEach((function(e){e.isLeftEdit=!1,e.isRightEdit=!1}))}))},lookBack:function(e){console.log(e.row),this.lookBackData=e.row,this.lookBackVisible=!0},getFrequencySel:function(){var e=this;this.isReplay=!1,this.playVideo&&(this.playVideo.pause(),this.playVideo=null);var t=new URLSearchParams;t.append("bid","getRecordFreqs"),t.append("start_time",this.dateFormatter(this.timeValue[0])),t.append("end_time",this.dateFormatter(this.timeValue[1])),t.append("monitorpointId",this.lookBackData.monitorpointId),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,console.log(e.frequencyArr)}))},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],t.showFirst.forEach((function(e){e.isEdit=!1})),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)}}),s=n,l=(o("77d3"),o("2877")),r=Object(l["a"])(s,a,i,!1,null,null,null);t["default"]=r.exports},"77d3":function(e,t,o){"use strict";o("19b9")}}]);
|