(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5152901d"],{"19b9":function(e,t,a){},"19c7":function(e,t,a){"use strict";a.r(t);var i=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",{key:e.isKey,staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"ID",prop:"monitorpointId"}}),a("el-table-column",{attrs:{label:"监测点名称",prop:"monitorpointName"}}),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.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)]}}])}),a("el-table-column",{attrs:{label:"录制通道1"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("div",[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[a("el-form-item",{attrs:{label:"频率:"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.isLeftEdit,expression:"!scope.row.isLeftEdit"}],on:{dblclick:function(a){return e.changeLeftInput(a,t)}}},[e._v(e._s(e._f("formateFre")(t.row.channels[0].frequencyValue)))]),a("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(a){return e.changeLeftP(t)}},model:{value:t.row.channels[0].frequencyValue,callback:function(a){e.$set(t.row.channels[0],"frequencyValue",a)},expression:"scope.row.channels[0].frequencyValue"}})],1),a("el-form-item",{attrs:{label:"状态:"}},[a("span",[e._v(e._s(e._f("formatSTATUS")(t.row.channels[0].status)))])]),a("el-form-item",{attrs:{label:"操作:"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"加入录制",placement:"top"}},[a("svg-icon",{staticClass:"svgIcon",attrs:{"icon-class":"recordAddBlack"},on:{click:function(a){return e.jionRecord(t.row.channels[0])}}})],1)],1)],1)],1)])]}}])}),a("el-table-column",{attrs:{label:"录制通道2"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{width:"50%"}},[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[a("el-form-item",{attrs:{label:"频率:"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.isRightEdit,expression:"!scope.row.isRightEdit"}],on:{dblclick:function(a){return e.changeRightInput(a,t)}}},[e._v(e._s(e._f("formateFre")(t.row.channels[1].frequencyValue)))]),a("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(a){return e.changeRightP(t)}},model:{value:t.row.channels[1].frequencyValue,callback:function(a){e.$set(t.row.channels[1],"frequencyValue",a)},expression:"scope.row.channels[1].frequencyValue"}})],1),a("el-form-item",{attrs:{label:"状态:"}},[a("span",[e._v(e._s(e._f("formatSTATUS")(t.row.channels[1].status)))])]),a("el-form-item",{attrs:{label:"操作:"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"加入录制",placement:"top"}},[a("svg-icon",{staticClass:"svgIcon",attrs:{"icon-class":"recordAddBlack"},on:{click:function(a){return e.jionRecord(t.row.channels[1])}}})],1)],1)],1)],1)]}}])})],1)],1),a("el-dialog",{attrs:{title:"查看通道",visible:e.lookPassageVisible},on:{"update:visible":function(t){e.lookPassageVisible=t}}},[a("el-table",{key:e.tableKey,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[0!=t.row.channelId?a("div",[e._v(" "+e._s(e._f("formatSTATUS")(t.row.STATUS))+" ")]):a("div",[e._v("--")])]}}])}),a("el-table-column",{attrs:{label:"frequencyValue",prop:"frequencyValue"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{display:"flex"}},[t.row.isEdit?a("div",[a("el-input",{attrs:{placeholder:""},model:{value:t.row.frequencyValue,callback:function(a){e.$set(t.row,"frequencyValue",a)},expression:"scope.row.frequencyValue"}})],1):a("div",[0!=t.row.channelId?a("div",[e._v(" "+e._s(t.row.frequencyValue)+" ")]):a("div",[e._v("--")])]),a("i",{class:{"el-icon-edit":!t.row.isEdit,"el-icon-check":t.row.isEdit},staticStyle:{"margin-left":"10px"},on:{click:function(a){return e.changeEdit(t)}}})])]}}])}),a("el-table-column",{attrs:{label:"start_time",prop:"start_time"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.channelId?a("div",[t.row.start_time?a("div",[e._v(" "+e._s(t.row.start_time)+" ")]):a("div",[e._v("--")])]):a("div",[e._v("--")])]}}])}),a("el-table-column",{attrs:{label:"stop_time",prop:"stop_time"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.channelId?a("div",[t.row.stop_time?a("div",[e._v(" "+e._s(t.row.stop_time)+" ")]):a("div",[e._v("--")])]):a("div",[e._v("--")])]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.channelId?a("div",[""!=t.row.frequencyValue&&"--"!=t.row.frequencyValue?a("div",{key:e.isChange},[1==t.row.channelId?a("div",[a("i",{staticClass:"el-icon-video-play"}),a("i",{staticClass:"el-icon-video-pause",staticStyle:{"margin-left":"20px"},on:{click:function(a){return e.pauseVideo(t)}}})]):a("div",[0==t.row.STATUS?a("i",{staticClass:"el-icon-download",on:{click:function(a){return e.jionRecord(t)}}}):e._e(),1==t.row.STATUS?a("i",{staticClass:"el-icon-delete-solid",on:{click:function(a){return e.dropRecord(t)}}}):e._e()])]):a("div",[e._v("--")])]):a("div",[e._v("--")])]}}])})],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},close:e.closeReplay}},[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"}},e._l(e.frequencyArr,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:e}})})),1),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"点击收听",placement:"top"}},[a("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)]),a("div",{staticStyle:{"margin-top":"30px"}},[a("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)},o=[],n=(a("b0c0"),a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("99af"),a("25f0"),a("159b"),{watch:{timeValue:{handler:function(e,t){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)}}},filters:{formateFre:function(e){return e||"--"},formatChannelId:function(e){return 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):window.location.href="http://wiibox.xicp.io:8484/ammonitor/#/passport/login",this.getInfo()},methods:{changeLeftInput:function(e,t){var a=e.currentTarget;t.row.isLeftEdit=!t.row.isLeftEdit,this.isKey=!this.isKey,setTimeout((function(){a.parentNode.children[1].children[0].focus()}),500)},changeLeftP:function(e){e.row.isLeftEdit=!e.row.isLeftEdit,this.isKey=!this.isKey},changeRightInput:function(e,t){var a=e.currentTarget;t.row.isRightEdit=!t.row.isRightEdit,this.isKey=!this.isKey,setTimeout((function(){a.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,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){"true"==t.success?(e.isReplay=!0,e.playReplay(t.url)):e.$message.error(t.msg)}))},playReplay:function(e){if(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.$prompt("请输入时间(分钟)","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^([1-9]|([1-9][0-9])|([1-2][0-9][0-9])|([3][0-5][0-9])|([0]{1}))$|^[3][6][0]$/,inputErrorMessage:"请输入1到360的整数"}).then((function(a){var i=a.value;t.$emit("showLoading","luzhi");var o=new URLSearchParams;o.append("method","record"),o.append("key",111111),o.append("recordTimeLength",i),o.append("monitorpointId",e.monitorpointId),o.append("frequencyValue",e.frequencyValue),o.append("isUnderWay",0);var n="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(a){t.$emit("hideLoading");var i={bid:"setChannelRecord",monitorpointId:e.monitorpointId,frequency:e.frequencyValue,userid:t.userid,requesturl:n,success:a[0].success.toString(),msg:a[0].msg,recordminitus:180};t.$post("http://wiibox.xicp.io:8484/dataservice/dealData",i).then((function(e){})),a[0].success?t.$message.success(a[0].msg):t.$message.error(a[0].msg)}))})).catch((function(){t.$message({type:"info",message:"取消输入"})}))})).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,a=new URLSearchParams;a.append("method","delete"),a.append("key",123456),a.append("monitorpointId",e.monitorpointId),a.append("frequencyValue",e.frequencyValue),this.$getJSON("http://wiibox.xicp.io:19868/FRP/TNewrecordtask.do",a).then((function(a){a.success?(e.status,t.tableKey=!t.tableKey):t.$message.warning(a.msg)}))},pauseVideo:function(e){this.player.pause()},playVideo1:function(e){this.nowPlayId?this.nowPlayId==e.row.monitorpointId?(this.isplay=!0,this.player.play()):(this.player.pause(),this.player.unload(),this.player.detachMediaElement(),this.player.destroy(),this.player=null,this.nowPlayId=e.row.monitorpointId,this.getPalyUrl(e.row)):(this.nowPlayId=e.row.monitorpointId,this.getPalyUrl(e.row))},stopVideo:function(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){})),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){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,i=e.getDate(),o=e.getHours(),n=e.getMinutes(),s=e.getSeconds();return this.add0(t)+"-"+this.add0(a)+"-"+this.add0(i)+" "+this.add0(o)+":"+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){e.tableData=JSON.parse(JSON.stringify(t.data.data.monitorpoints)),e.tableData.forEach((function(e){e.isLeftEdit=!1,e.isRightEdit=!1}))}))},lookBack:function(e){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){var a=[];t.data.data[0].forEach((function(e){a.push(e.frequencyValue)})),e.frequencyArr=a}))},handleClick:function(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){t.showSecond=e.data.data[0],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){t.showFirst=e.data.data[0],t.showFirst.forEach((function(e){e.isEdit=!1})),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=(a("77d3"),a("2877")),r=Object(l["a"])(s,i,o,!1,null,null,null);t["default"]=r.exports},"77d3":function(e,t,a){"use strict";a("19b9")}}]);
|