chunk-a6a49af0.79143f18.js 5.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a6a49af0"],{"75a5":function(t,e,i){},"92e0":function(t,e,i){"use strict";i("75a5")},ecd5:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"toolBar"},[i("el-row",{staticStyle:{display:"flex",width:"100%","align-items":"center","justify-content":"flex-start"}},[i("el-row",{directives:[{name:"show",rawName:"v-show",value:!t.isPolling,expression:"!isPolling"}],attrs:{gutter:10,type:"flex",align:"middle"}},[i("el-col",{attrs:{span:1.5}},[i("v-icon",{attrs:{name:"ri-checkbox-blank-fill",scale:"2",fill:1===t.active?"#3f9dfd":"#ffffff"},nativeOn:{click:function(e){return t.one(e)}}})],1),i("el-col",{attrs:{span:1.5}},[i("v-icon",{attrs:{name:"ri-function-fill",scale:"2",fill:4===t.active?"#3f9dfd":"#ffffff"},nativeOn:{click:function(e){return t.two(e)}}})],1),i("el-col",{attrs:{span:1.5}},[i("v-icon",{attrs:{name:"ri-grid-fill",scale:"2",fill:9===t.active?"#3f9dfd":"#ffffff"},nativeOn:{click:function(e){return t.three(e)}}})],1),i("el-col",{attrs:{span:1.5}},[i("v-icon",{attrs:{name:"md-dashboardcustomize",scale:"2",fill:16===t.active?"#3f9dfd":"#ffffff"},nativeOn:{click:function(e){return t.four(e)}}})],1)],1)],1),i("el-row",{staticStyle:{display:"flex","align-items":"center","margin-right":"10px"}},[i("el-col",{attrs:{span:12}},[t.isPolling?t._e():i("v-icon",{attrs:{title:"开始轮询",name:"bi-bootstrap-reboot",scale:"2",fill:"#ffffff"},nativeOn:{click:function(e){t.openPolling=!0}}}),t.isPolling?i("v-icon",{attrs:{title:"停止轮询",name:"md-cached-outlined",animation:"spin",speed:"slow",scale:"2",fill:"#3f9dfd"},nativeOn:{click:function(e){return t.endPolling(e)}}}):t._e()],1),i("el-col",{staticStyle:{"margin-left":"20px"},attrs:{span:12}},[t.isPolling?t._e():i("v-icon",{attrs:{title:"清空预览",name:"md-cleaningservices-outlined",scale:"2",fill:"#ffffff"},nativeOn:{click:function(e){return t.handleCloseAll(e)}}}),t.isPolling?i("el-statistic",{attrs:{value:Date.now()+1e3*t.duration*60,"time-indices":"",format:"HH:mm:ss","value-style":{color:"#ffffff"}}}):t._e()],1)],1),i("el-dialog",{staticClass:"dialog-class",attrs:{title:"轮询参数",visible:t.openPolling,width:"450px","append-to-body":""},on:{"update:visible":function(e){t.openPolling=e}}},[i("el-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"15px"}},[t._v(" 画面数量: "),i("el-radio-group",{staticStyle:{width:"70%"},attrs:{size:"small"},model:{value:t.count,callback:function(e){t.count=e},expression:"count"}},[i("el-radio-button",{attrs:{label:"one"}},[t._v("1")]),i("el-radio-button",{attrs:{label:"two"}},[t._v("4")]),i("el-radio-button",{attrs:{label:"three"}},[t._v("9")]),i("el-radio-button",{attrs:{label:"four"}},[t._v("16")])],1)],1),i("el-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"15px"}},[t._v(" 轮询时长: "),i("el-input-number",{staticStyle:{width:"70%"},attrs:{placeholder:"请输入轮询时长(m)",type:"mini",controls:!1,precision:0},model:{value:t.duration,callback:function(e){t.duration=e},expression:"duration"}}),t._v(" 分钟 ")],1),i("el-row",{staticStyle:{display:"flex","align-items":"center"}},[t._v(" 时间间隔: "),i("el-input-number",{staticStyle:{width:"70%"},attrs:{placeholder:"请输入时间间隔(s)",type:"mini",controls:!1,min:5,precision:0},model:{value:t.interval,callback:function(e){t.interval=e},expression:"interval"}}),t._v(" s ")],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(e){t.openPolling=!1}}},[t._v("取消")]),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.startPolling}},[t._v("确定")])],1)],1)],1)},o=[],l=i("c7eb"),s=i("1da1"),a=i("5530"),r=(i("d3b7"),i("2f62")),c=i("bfa9"),f=i("74f3");Object(c["b"])(f["q"],f["n"],f["o"],f["p"],f["e"],f["a"],f["c"],f["d"]);var u={name:"toolBar",data:function(){return{color:"red",isPolling:!1,openPolling:!1,count:"one",duration:30,interval:5}},computed:Object(a["a"])({},Object(r["c"])(["boxList","active","boxListIndex"])),watch:{},methods:{startPolling:function(){switch(this.isPolling=!0,this.count){case"one":this.one();break;case"two":this.two();break;case"three":this.three();break;case"four":this.four();break}this.openPolling=!1,this.count="one",this.$emit("startPolling",this.duration,this.interval)},endPolling:function(){this.isPolling=!1,this.$emit("endPolling")},changePollingStatus:function(){this.isPolling=!1},handleCloseAll:function(){this.$emit("closeAllVideos")},one:function(){var t=this;return Object(s["a"])(Object(l["a"])().mark((function e(){return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$store.commit("updateBoxListIndex",0),t.boxList.some((function(t){return!0===t.recording}))?t.$message.warning("正在录像中,请先结束录像!"):t.$store.commit("updateActive",1);case 2:case"end":return e.stop()}}),e)})))()},two:function(){this.$store.commit("updateBoxListIndex",0),this.boxList.some((function(t){return!0===t.recording}))?this.$message.warning("正在录像中,请先结束录像!"):this.$store.commit("updateActive",4)},three:function(){this.$store.commit("updateBoxListIndex",0),this.boxList.some((function(t){return!0===t.recording}))?this.$message.warning("正在录像中,请先结束录像!"):this.$store.commit("updateActive",9)},four:function(){this.$store.commit("updateBoxListIndex",0),this.boxList.some((function(t){return!0===t.recording}))?this.$message.warning("正在录像中,请先结束录像!"):this.$store.commit("updateActive",16)}},destroyed:function(){this.$emit("endPolling")}},d=u,m=(i("92e0"),i("2877")),p=Object(m["a"])(d,n,o,!1,null,"7f417929",null);e["default"]=p.exports}}]);