| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e4442910","chunk-61cf34a0","chunk-65e3e776","chunk-03ae4161"],{"0270":function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"c",(function(){return r})),i.d(e,"e",(function(){return s})),i.d(e,"d",(function(){return a})),i.d(e,"b",(function(){return c}));var n=i("b775");function o(t){return Object(n["a"])({url:"/sis/group",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/sis/group/"+t,method:"delete"})}function s(t){return Object(n["a"])({url:"/sis/group",method:"put",data:t})}function a(t){return Object(n["a"])({url:"/sis/group/selectSisDeviceGroupListPage",method:"get",params:t})}function c(){return Object(n["a"])({url:"/sis/group/selectSisDeviceGroupList",method:"get"})}},"08fa":function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return r})),i.d(e,"f",(function(){return s})),i.d(e,"e",(function(){return a})),i.d(e,"c",(function(){return c})),i.d(e,"d",(function(){return l}));var n=i("b775");function o(t){return Object(n["a"])({url:"/sis/lamplight",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/sis/lamplight/"+t,method:"delete"})}function s(t){return Object(n["a"])({url:"/sis/lamplight",method:"put",data:t})}function a(t){return Object(n["a"])({url:"/sis/lamplight/selectSisLamplightListPage",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/sis/lamplight/lamplightInfo",method:"get",params:t})}function l(){return Object(n["a"])({url:"/sis/lamplight/selectSisLamplightList",method:"get"})}},"0d10":function(t,e,i){"use strict";i("9378")},"1d0b":function(t,e,i){"use strict";i.d(e,"m",(function(){return o})),i.d(e,"a",(function(){return r})),i.d(e,"k",(function(){return s})),i.d(e,"i",(function(){return a})),i.d(e,"j",(function(){return c})),i.d(e,"h",(function(){return l})),i.d(e,"e",(function(){return u})),i.d(e,"g",(function(){return d})),i.d(e,"d",(function(){return f})),i.d(e,"b",(function(){return h})),i.d(e,"c",(function(){return p})),i.d(e,"f",(function(){return m})),i.d(e,"l",(function(){return v}));var n=i("b775");function o(t){return Object(n["a"])({url:"/monitor/big",method:"get",params:t})}function r(t){return Object(n["a"])({url:"/monitor/small",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/monitor/up",method:"get",params:t})}function a(t){return Object(n["a"])({url:"/monitor/left",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/monitor/right",method:"get",params:t})}function l(t){return Object(n["a"])({url:"/monitor/down",method:"get",params:t})}function u(t){return Object(n["a"])({url:"/monitor/leftUp",method:"get",params:t})}function d(t){return Object(n["a"])({url:"/monitor/rightUp",method:"get",params:t})}function f(t){return Object(n["a"])({url:"/monitor/leftDown",method:"get",params:t})}function h(t){return Object(n["a"])({url:"/monitor/focusIn",method:"get",params:t})}function p(t){return Object(n["a"])({url:"/monitor/focusOut",method:"get",params:t})}function m(t){return Object(n["a"])({url:"/monitor/rightDown",method:"get",params:t})}function v(t){return Object(n["a"])({url:"/monitor/stopMove",method:"get",params:t})}},5790:function(t,e,i){"use strict";i("d2b1")},6152: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),i("el-col",{attrs:{span:1.5}},[i("v-icon",{attrs:{name:"md-gridon",scale:"2",fill:36===t.active?"#3f9dfd":"#ffffff",title:"36分屏"},nativeOn:{click:function(e){return t.five(e)}}})],1),i("el-col",{attrs:{span:1.5}},[i("v-icon",{attrs:{name:"md-viewcomfy",scale:"2",fill:64===t.active?"#3f9dfd":"#ffffff",title:"64分屏"},nativeOn:{click:function(e){return t.six(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:"550px","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:"80%","margin-left":"10px"},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")]),i("el-radio-button",{attrs:{label:"five"}},[t._v("36")]),i("el-radio-button",{attrs:{label:"six"}},[t._v("64")])],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=[],r=i("c7eb"),s=i("1da1"),a=i("5530"),c=(i("d3b7"),i("2f62")),l=i("bfa9"),u=i("74f3");Object(l["b"])(u["q"],u["n"],u["o"],u["p"],u["e"],u["a"],u["c"],u["d"],u["g"],u["j"]);var d={name:"toolBar",data:function(){return{color:"red",isPolling:!1,openPolling:!1,count:"one",duration:30,interval:5}},computed:Object(a["a"])({},Object(c["c"])(["boxList","active","boxListIndex"])),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;case"five":this.five();break;case"six":this.six();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(r["a"])().mark((function e(){return Object(r["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)},five:function(){this.$store.commit("updateBoxListIndex",0),this.boxList.some((function(t){return!0===t.recording}))?this.$message.warning("正在录像中,请先结束录像!"):this.$store.commit("updateActive",36)},six:function(){this.$store.commit("updateBoxListIndex",0),this.boxList.some((function(t){return!0===t.recording}))?this.$message.warning("正在录像中,请先结束录像!"):this.$store.commit("updateActive",64)}},destroyed:function(){this.$emit("endPolling")}},f=d,h=(i("f9d6"),i("2877")),p=Object(h["a"])(f,n,o,!1,null,"3c57ae06",null);e["default"]=p.exports},"6dcb":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:"app-container"},[i("el-row",{staticStyle:{display:"flex",width:"100%"}},[i("div",{staticClass:"tree-card",staticStyle:{width:"220px"}},[i("div",{staticClass:"head-container"},[i("el-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"请输入设备名称",clearable:"",size:"small","prefix-icon":"el-icon-search"},model:{value:t.searchWord,callback:function(e){t.searchWord=e},expression:"searchWord"}})],1),i("div",{staticClass:"head-container"},[i("el-tabs",{attrs:{stretch:!0},on:{"tab-click":t.handleTabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"设备",name:"first"}},[i("el-tree",{ref:"tree1",attrs:{data:t.equipmentOptions,props:t.defaultProps,"node-key":"id","expand-on-click-node":!1,"filter-node-method":t.filterNode,"default-expand-all":"","highlight-current":""},on:{"node-click":t.handleNodeClick},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.node,o=e.data;return i("span",{staticStyle:{flex:"1",display:"flex","align-items":"center","justify-content":"space-between","font-size":"14px"},on:{dblclick:function(e){return t.handleNodedbClick(o)}}},[i("el-row",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",width:"100%",height:"100%"},attrs:{gutter:10,id:o.id}},[n.isLeaf?i("el-col",{attrs:{span:4}},["1"===t.onlinePresenceList.find((function(t){return t.id===o.id})).onlinePresence?i("i",{staticClass:"el-icon-video-camera",staticStyle:{"font-size":"20px",display:"inline-flex",color:"green"}}):i("i",{staticClass:"el-icon-video-camera",staticStyle:{"font-size":"20px",display:"inline-flex",color:"#6E7A89"}})]):t._e(),i("el-col",{attrs:{span:20}},[i("el-row",[i("span",{staticStyle:{"font-size":"12px"}},[t._v(t._s(o.label))])])],1)],1)],1)}}])})],1),i("el-tab-pane",{attrs:{label:"分组",name:"second"}},[i("el-tree",{ref:"tree2",attrs:{data:t.groupOptions,props:t.defaultProps,"node-key":"id","expand-on-click-node":!1,"filter-node-method":t.filterNode,"default-expand-all":"","highlight-current":""},on:{"node-click":t.handleNodeClick},scopedSlots:t._u([{key:"default",fn:function(e){e.node;var n=e.data;return i("span",{staticStyle:{flex:"1",display:"flex","align-items":"center","justify-content":"space-between","font-size":"14px"},on:{dblclick:function(e){return t.handleNodedbClick(n)}}},[i("el-row",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",width:"100%",height:"100%"},attrs:{gutter:10,id:"group"+n.id}},[n.isLeaf?i("el-col",{attrs:{span:4}},["1"===t.onlinePresenceList.find((function(t){return t.id===n.id})).onlinePresence?i("i",{staticClass:"el-icon-video-camera",staticStyle:{"font-size":"20px",display:"inline-flex",color:"green"}}):i("i",{staticClass:"el-icon-video-camera",staticStyle:{"font-size":"20px",display:"inline-flex",color:"#6E7A89"}})]):t._e(),i("el-col",{attrs:{span:20}},[i("el-row",[i("span",{staticStyle:{"font-size":"12px"}},[t._v(t._s(n.label))])])],1)],1)],1)}}])})],1),i("el-tab-pane",{attrs:{label:"视图",name:"third"}},[i("el-tree",{ref:"tree3",attrs:{data:t.viewOptions,props:t.defaultProps,"expand-on-click-node":!0,"filter-node-method":t.filterNode,"default-expand-all":"","highlight-current":""},on:{"node-click":t.handleViewNodeClick},scopedSlots:t._u([{key:"default",fn:function(e){e.node;var n=e.data;return i("span",{staticStyle:{flex:"1",display:"flex","align-items":"center","justify-content":"space-between","font-size":"14px"},on:{dblclick:function(e){return t.handleViewNodedbClick(n)}}},[i("div",{staticStyle:{display:"flex","align-items":"center"}},[i("v-icon",{attrs:{name:"md-preview-sharp",scale:"1.2",fill:"#ffffff"}}),i("span",{staticStyle:{"font-size":"13px","margin-left":"5px"}},[t._v(t._s(n.label))])],1),n.isLeaf?i("span",{staticStyle:{"margin-right":"10px"}},[i("el-dropdown",{attrs:{size:"mini",trigger:"click"}},[i("i",{staticClass:"el-icon-more",staticStyle:{color:"#ffffff","font-size":"20px"}}),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{icon:"el-icon-edit"},nativeOn:{click:function(e){t.openUpdateView=!0}}},[t._v(" 编辑 ")]),i("el-dropdown-item",{attrs:{icon:"el-icon-delete"},nativeOn:{click:function(e){return t.deleteView(n)}}},[t._v(" 删除")])],1)],1)],1):t._e()])}}])})],1)],1)],1),i("div",{staticClass:"tool-tab"},[i("el-tabs",{attrs:{stretch:!0},model:{value:t.activeTool,callback:function(e){t.activeTool=e},expression:"activeTool"}},["1"===t.equipmentInfo.isGimbalControl&&"1"===t.equipmentInfo.isHolder?i("el-tab-pane",{attrs:{label:"云台",name:"ptz"}},[i("div",{staticClass:"operate-panel",on:{dragstart:function(t){t.preventDefault()}}},[i("div",{staticClass:"move-btn"},[i("div",{staticClass:"btn",staticStyle:{"align-self":"flex-end"}},[i("i",{staticClass:"btn el-icon-arrow-up",staticStyle:{transform:"rotate(-45deg)",cursor:"pointer"},on:{mousedown:function(e){return t.ptzStart("leftUp")}}})]),i("div",{staticClass:"btn",staticStyle:{"margin-bottom":"13px",cursor:"pointer"}},[i("i",{staticClass:"btn el-icon-arrow-up",on:{mousedown:function(e){return t.ptzStart("up")}}})]),i("div",{staticClass:"btn",staticStyle:{"align-self":"flex-end"}},[i("i",{staticClass:"btn el-icon-arrow-up",staticStyle:{transform:"rotate(45deg)",cursor:"pointer"},on:{mousedown:function(e){return t.ptzStart("rightUp")}}})]),i("div",{staticClass:"btn",staticStyle:{"margin-right":"13px"}},[i("i",{staticClass:"btn el-icon-arrow-up",staticStyle:{transform:"rotate(-90deg)",cursor:"pointer"},on:{mousedown:function(e){return t.ptzStart("left")}}})]),i("div",{staticClass:"btn"},[i("i",{staticClass:"btn el-icon-refresh",on:{click:function(e){return t.handleMove("refresh")}}})]),i("div",{staticClass:"btn",staticStyle:{"margin-left":"13px"}},[i("i",{staticClass:"btn el-icon-arrow-up",staticStyle:{transform:"rotate(90deg)",cursor:"pointer"},on:{mousedown:function(e){return t.ptzStart("right")}}})]),i("div",{staticClass:"btn",staticStyle:{"align-self":"flex-start"}},[i("i",{staticClass:"btn el-icon-arrow-up",staticStyle:{transform:"rotate(225deg)",cursor:"pointer"},on:{mousedown:function(e){return t.ptzStart("leftDown")}}})]),i("div",{staticClass:"btn",staticStyle:{"margin-top":"13px"}},[i("i",{staticClass:"btn el-icon-arrow-up",staticStyle:{transform:"rotate(180deg)",cursor:"pointer"},on:{mousedown:function(e){return t.ptzStart("down")}}})]),i("div",{staticClass:"btn",staticStyle:{"align-self":"flex-start"}},[i("i",{staticClass:"btn el-icon-arrow-up",staticStyle:{transform:"rotate(135deg)",cursor:"pointer"},on:{mousedown:function(e){return t.ptzStart("rightDown")}}})])]),i("div",{staticClass:"compose-btn"},[i("div",{staticClass:"btn2"},[i("i",{staticClass:"el-icon-zoom-in",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.addSpeed()}}}),i("div",{staticStyle:{display:"flex"}},[t._v("速度:"+t._s(t.getSpeed))]),i("i",{staticClass:"el-icon-zoom-out",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.delSpeed()}}})]),i("div",{staticClass:"btn2"},[i("i",{staticClass:"el-icon-zoom-in",staticStyle:{cursor:"pointer"},on:{mousedown:function(e){return t.ptzFocusStart("up")}}}),i("span",[t._v("变倍")]),i("i",{staticClass:"el-icon-zoom-out",staticStyle:{cursor:"pointer"},on:{mousedown:function(e){return t.ptzFocusStart("down")}}})]),i("div",{staticClass:"btn2"},[i("i",{staticClass:"el-icon-zoom-in",staticStyle:{cursor:"pointer"},on:{mousedown:function(e){return t.ptzFocusStart("focusOut")}}}),i("span",[t._v("变焦")]),i("i",{staticClass:"el-icon-zoom-out",staticStyle:{cursor:"pointer"},on:{mousedown:function(e){return t.ptzFocusStart("focusIn")}}})])])])]):t._e(),i("el-tab-pane",{attrs:{label:"工具",name:"first"}},[i("div",{staticStyle:{display:"flex","flex-direction":"row","flex-wrap":"wrap","justify-content":"space-around"}},[i("div",{staticClass:"fast-button",on:{click:function(e){t.openSave=!0}}},[t._v(" 保存当前视图 ")]),"1"===t.equipmentInfo.isFishEye?i("div",{staticClass:"fast-button",on:{click:t.fisheye}},[t._v(" 切换显示模式 ")]):t._e()])]),"1"===t.equipmentInfo.isOutboard&&"1"===t.equipmentInfo.isLamplight?i("el-tab-pane",{attrs:{label:"灯光"}},[i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"baseline"}},[i("el-switch",{staticStyle:{color:"#ffffff",zoom:"1.15","margin-top":"5px"},attrs:{"inactive-text":"开启灯光","active-value":"1","inactive-value":"0"},on:{change:t.handleOpenLight},model:{value:t.equipmentInfo.lamplightStatus,callback:function(e){t.$set(t.equipmentInfo,"lamplightStatus",e)},expression:"equipmentInfo.lamplightStatus"}}),i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center",width:"100%","margin-top":"5px"}},[i("span",{staticStyle:{"font-size":"16px",color:"#ffffff",width:"70px"}},[t._v("亮度调节")]),i("el-slider",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}],staticStyle:{width:"60%","margin-right":"10px","margin-left":"10px"},attrs:{"element-loading-text":"命令执行中","element-loading-spinner":"el-icon-loading",step:20,min:20,"show-stops":""},on:{change:t.changeLight},model:{value:t.equipmentInfo.light,callback:function(e){t.$set(t.equipmentInfo,"light",e)},expression:"equipmentInfo.light"}})],1),i("div",{staticClass:"device-info"},[i("el-row",{attrs:{type:"flex",justify:"space-around"}},[i("el-col",{staticClass:"info-item",attrs:{span:8}},[i("div",{class:["status-light",t.newEquipmentInfo.overallSwitch?"active":"inactive"]}),i("span",[t._v("总控")])]),this.equipmentInfo.isGeneralControl?t._e():i("el-col",{staticClass:"info-item",attrs:{span:8}},[i("div",{class:["status-light",t.newEquipmentInfo.moduleSwitch?"active":"inactive"]}),i("span",[t._v("分控")])]),i("el-col",{staticClass:"info-item",attrs:{span:8}},[i("div",{class:["status-light",t.newEquipmentInfo.lightSwitch?"active":"inactive"]}),i("span",[t._v("照明灯")])])],1)],1)],1)]):t._e()],1)],1)]),i("div",{staticClass:"tree-card",staticStyle:{flex:"1","margin-left":"5px","flex-direction":"column-reverse"}},[i("toolbar",{ref:"toolbar",staticStyle:{height:"35px"},on:{startPolling:t.startPolling,endPolling:t.endPolling,closeAllVideos:t.handleCloseAllVideos}}),i("div",{staticStyle:{display:"flex","align-items":"flex-start","justify-content":"center",flex:"1","background-color":"black",overflow:"hidden"}},[i("div",{staticStyle:{height:"100%","aspect-ratio":"16/9"}},[i("videoBox",{ref:"video",on:{clearTreeSelected:t.clearTreeSelected,setCurrentKeyTree:t.setCurrentKeyTree,clickToolBar:t.clickToolBar}})],1)])],1),i("el-dialog",{attrs:{title:"保存视图",visible:t.openSave,width:"300px","append-to-body":""},on:{"update:visible":function(e){t.openSave=e}}},[i("el-row",{attrs:{type:"flex",justify:"center"}},[i("el-input",{attrs:{placeholder:"请输入视图名称"},model:{value:t.viewName,callback:function(e){t.viewName=e},expression:"viewName"}})],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(e){t.openSave=!1}}},[t._v("取消")]),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.save}},[t._v("确定")])],1)],1),i("el-dialog",{attrs:{title:"修改视图",visible:t.openUpdateView,width:"300px","append-to-body":""},on:{"update:visible":function(e){t.openUpdateView=e}}},[i("el-row",{attrs:{type:"flex",justify:"center"}},[i("el-input",{attrs:{placeholder:"请输入视图名称"},model:{value:t.viewName,callback:function(e){t.viewName=e},expression:"viewName"}})],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(e){t.openUpdateView=!1}}},[t._v("取消")]),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.updateView}},[t._v("确定")])],1)],1),i("el-dialog",{attrs:{title:"分享视图",visible:t.openShare,width:"600px","append-to-body":""},on:{"update:visible":function(e){t.openShare=e}}},[i("el-row",{attrs:{type:"flex",justify:"center"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.userList},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),i("el-table-column",{key:"userId",attrs:{label:"用户编号",align:"center",prop:"userId"}}),i("el-table-column",{key:"userName",attrs:{label:"用户名称",align:"center",prop:"userName","show-overflow-tooltip":!0}}),i("el-table-column",{key:"nickName",attrs:{label:"用户昵称",align:"center",prop:"nickName","show-overflow-tooltip":!0}}),i("el-table-column",{key:"deptName",attrs:{label:"部门",align:"center",prop:"dept.deptName","show-overflow-tooltip":!0}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(e){t.openShare=!1}}},[t._v("取消")]),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.share}},[t._v("确定")])],1)],1)],1)],1)},o=[],r=i("53ca"),s=i("c7eb"),a=i("1da1"),c=i("5530"),l=(i("99af"),i("4de4"),i("7db0"),i("caad"),i("d81d"),i("14d9"),i("fb6a"),i("b0c0"),i("e9c4"),i("a9e3"),i("b64b"),i("d3b7"),i("2532"),i("159b"),i("a458")),u=i("6152"),d=i("2f62"),f=i("cf4e"),h=i("1d0b"),p=i("0270"),m=i("e37d"),v=i("c0c7"),g=i("08fa"),b=i("cc43"),w=i("bfa9"),x=i("74f3"),y=i("863e");Object(w["b"])(x["h"],x["f"],x["b"],x["i"]);var I={components:{videoBox:l["default"],toolbar:u["default"]},data:function(){return{cellCount:1,speed:.5,userId:void 0,searchWord:"",activeName:"first",activeTool:"first",equipmentOptions:[],onlinePresenceList:[],groupOptions:[],viewOptions:[],defaultProps:{children:"children",label:"label"},equipmentInfo:{lamplightId:void 0,lamplightOnline:"",lamplightStatus:"",cameraName:"",light:"",lightSwitch:!0,overallSwitch:!0,moduleSwitch:!0,id:"",app:"",isGeneralControl:!0},newEquipmentInfo:{lamplightId:void 0,lamplightOnline:"",lamplightStatus:"",cameraName:"",light:"",lightSwitch:!0,overallSwitch:!0,moduleSwitch:!0,id:"",app:"",isGeneralControl:!0},viewId:void 0,viewName:"",openSave:!1,loading:!1,ids:[],single:!0,multiple:!0,userList:[],openShare:!1,openSeize:!1,seizeTime:void 0,selectedTree:[],showLightCard:!1,timer:null,cameraList:[],autoplay:!1,interval:1e4,pollingInterval:null,openUpdateView:!1,fishEyeType:"鱼眼",onlinePresenceInterval:null,messages:[],eventSource:null,fullscreenLoading:!1,totalDurationTimer:null}},watch:{searchWord:function(t){switch(this.activeName){case"first":return void this.$refs.tree1.filter(t);case"second":return void this.$refs.tree2.filter(t);case"third":return void this.$refs.tree3.filter(t)}}},computed:Object(c["a"])(Object(c["a"])({},Object(d["c"])(["selectedTreeData","selectedMonitor","boxList","active"])),{},{getSpeed:function(){return this.speed}}),created:function(){this.userId=this.$store.getters.userId,this.getEquipmentOptions(),this.getGroupOptions(),this.getViewOptions()},mounted:function(){this.initSSE()},beforeDestroy:function(){this.closeSSE()},methods:{checkRecordingAndProceed:function(t){var e=this;return Object(a["a"])(Object(s["a"])().mark((function i(){var n,o,r,a,c,l,u,d;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.targetBox,o=void 0===n?null:n,r=t.actionName,a=void 0===r?"执行此操作":r,c=!1,l=[],u="录像提示",d="您确定要".concat(a,"吗?"),o?o.recording&&(c=!0,l.push(o),u="窗口 ".concat(o.boxId," 正在录像"),d="您确定要".concat(a,"吗?这将会停止当前窗口的录像。")):(l=e.boxList.filter((function(t){return t.recording})),l.length>0&&(c=!0,u="有窗口正在录像",d="您确定要".concat(a,"吗?这将会停止 ").concat(l.length," 个窗口的录像。"))),c){i.next=8;break}return i.abrupt("return",!0);case 8:return i.prev=8,i.next=11,e.$modal.confirm(d,u,{distinguishCancelAndClose:!0,confirmButtonText:"保存并停止",cancelButtonText:"不保存并停止",type:"warning"});case 11:return e.$refs.video.stopRecordings(l,!0),i.abrupt("return",!0);case 15:if(i.prev=15,i.t0=i["catch"](8),"cancel"!==i.t0){i.next=22;break}return e.$refs.video.stopRecordings(l,!1),i.abrupt("return",!0);case 22:if("close"!==i.t0){i.next=25;break}return e.$message.info("操作已取消"),i.abrupt("return",!1);case 25:case"end":return i.stop()}}),i,null,[[8,15]])})))()},handleCloseAllVideos:function(){var t=this;return Object(a["a"])(Object(s["a"])().mark((function e(){var i;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.checkRecordingAndProceed({targetBox:null,actionName:"关闭所有视频"});case 2:if(i=e.sent,i){e.next=5;break}return e.abrupt("return");case 5:t.$refs.video&&t.$refs.video.closeAllVideos();case 6:case"end":return e.stop()}}),e)})))()},getEquipmentOptions:function(){var t=this;Object(f["c"])().then((function(e){t.cameraList=e.rows;var i=e.rows.map((function(t){return Object(c["a"])(Object(c["a"])({},t),{},{isLeaf:!0,label:t.cameraName,key:t.id})}));t.equipmentOptions=i,t.onlinePresenceList=i}))},getGroupOptions:function(){var t=this;Object(p["b"])().then((function(e){t.groupOptions=e.map((function(t){return Object(c["a"])(Object(c["a"])({},t),{},{children:[],isLeaf:!1,label:t.groupName,key:t.id})}))}))},handleTabClick:function(t){"second"===t.name&&this.groupOptions.forEach((function(t){Object(f["e"])({groupId:t.id}).then((function(e){var i=e.rows.map((function(t){return Object(c["a"])(Object(c["a"])({},t),{},{isLeaf:!0,label:t.cameraName})}));t.children=i}))}))},getViewOptions:function(){var t=this;Object(m["c"])().then((function(e){var i=e.data.filter((function(t){return t})).map((function(t){return Object(c["a"])(Object(c["a"])({},t),{},{isLeaf:!0,label:t.viewName,key:t.id})}));t.viewOptions=i}))},filterNode:function(t,e){return!t||-1!==e.label.indexOf(t)},setCurrentKeyTree:function(t){var e=this;"first"===this.activeName||"third"===this.activeName?this.$nextTick().then((function(){e.$refs.tree1.setCurrentKey(t),e.equipmentInfo=e.$refs.tree1.getCurrentNode(t);var i=document.getElementById(t);setTimeout((function(){i&&e.$nextTick((function(){i.scrollIntoView({block:"nearest"})}))}),100)})):"second"===this.activeName&&this.$nextTick().then((function(){e.$refs.tree2.setCurrentKey(t),e.equipmentInfo=e.$refs.tree2.getCurrentNode(t);var i=e.$refs.tree2.getCurrentNode();e.$refs.tree2.getNode(i)&&e.$refs.tree2.getNode(i).parent&&e.expandParents(e.$refs.tree2.getNode(i).parent);var n=document.getElementById("group"+t);setTimeout((function(){n&&e.$nextTick((function(){n.scrollIntoView({block:"center"})}))}),100)}))},expandParents:function(t){t.expanded=!0,t.parent&&this.expandParents(t.parent)},handleNodeClick:function(t){var e=this;this.fishEyeType="鱼眼";var i=this.timer;i&&(window.clearTimeout(i),this.timer=null),this.timer=window.setTimeout((function(){console.log(t),"1"===e.equipmentInfo.isGimbalControl&&"1"===e.equipmentInfo.isHolder?e.activeTool="ptz":e.activeTool="first",t.isLeaf?(e.equipmentInfo=t,"1"===e.equipmentInfo.isOutboard&&Object(g["c"])({id:e.equipmentInfo.lamplightEquipment}).then((function(t){0!==t.total&&(e.equipmentInfo.lamplightId=t.data.id,e.equipmentInfo.lamplightOnline=t.data.lamplightOnline,e.equipmentInfo.lamplightStatus=t.data.lamplightStatus,e.newEquipmentInfo.lightSwitch=t.data.lightSwitch,e.equipmentInfo.light=20*Number(t.data.light),e.newEquipmentInfo.overallSwitch=t.data.overallSwitch,e.newEquipmentInfo.moduleSwitch=t.data.moduleSwitch,e.equipmentInfo.isGeneralControl=t.data.isGeneralControl)})),e.$nextTick((function(){e.$store.commit("updateSelectedTreeData",t),e.$store.commit("updateSelectedMonitor",{});e.boxList.forEach((function(i){i.cameraId===t.id&&(e.$store.commit("updateSelectedMonitor",i),!0)}))}))):(e.activeTool="first",e.$nextTick((function(){})))}),300)},handleNodedbClick:function(t){var e=this;return Object(a["a"])(Object(s["a"])().mark((function i(){var n,o,r,a,c;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(console.log("dbclick"),e.fishEyeType="鱼眼",n=e.timer,n&&(window.clearTimeout(n),e.timer=null),!t.isLeaf){i.next=18;break}return e.equipmentInfo=t,o=null,e.selectedMonitor&&e.selectedMonitor.boxId?o=e.selectedMonitor:(r=!1,e.boxList.slice(0,e.active).forEach((function(t){r||t.cameraId||(r=!0,o=t)})),r||(o=e.boxList[e.active-1])),i.next=10,e.checkRecordingAndProceed({targetBox:o,actionName:"在窗口 ".concat(o.boxId," 播放新视频")});case 10:if(a=i.sent,a){i.next=13;break}return i.abrupt("return");case 13:"1"===e.equipmentInfo.isGimbalControl&&"1"===e.equipmentInfo.isHolder?e.activeTool="ptz":e.activeTool="first",e.$nextTick((function(){e.$store.commit("updateSelectedTreeData",t);var i=null;if(e.selectedMonitor&&e.selectedMonitor.boxId&&(console.log("selectedMonitor.boxId",e.selectedMonitor.boxId),i=e.selectedMonitor),!i){var n=!1;e.boxList.slice(0,e.active).forEach((function(t){n||t.cameraId||(n=!0,i=t)})),n||(i=e.boxList[e.active-1]),e.$store.commit("updateSelectedMonitor",i)}"1"===e.onlinePresenceList.find((function(t){return t.id===e.selectedTreeData.id})).onlinePresence?e.getPlayUrl(i):(e.$message.warning("当前设备已离线!"),e.clearTreeSelected())})),"1"===e.equipmentInfo.isOutboard&&Object(g["c"])({id:e.equipmentInfo.lamplightEquipment}).then((function(t){0!==t.total&&(e.equipmentInfo.lamplightId=t.data.id,e.equipmentInfo.lamplightOnline=t.data.lamplightOnline,e.equipmentInfo.lamplightStatus=t.data.lamplightStatus,e.newEquipmentInfo.lightSwitch=t.data.lightSwitch,e.equipmentInfo.light=20*Number(t.data.light),e.newEquipmentInfo.overallSwitch=t.data.overallSwitch,e.newEquipmentInfo.moduleSwitch=t.data.moduleSwitch,e.equipmentInfo.isGeneralControl=t.data.isGeneralControl)})),i.next=25;break;case 18:return e.activeTool="first",i.next=21,e.checkRecordingAndProceed({targetBox:null,actionName:"播放分组视频"});case 21:if(c=i.sent,c){i.next=24;break}return i.abrupt("return");case 24:e.$nextTick((function(){e.boxList.forEach((function(i,n){setTimeout((function(){t.children[n]&&(e.$store.commit("updateSelectedMonitor",i),e.$store.commit("updateSelectedTreeData",t.children[n]),"1"===e.onlinePresenceList.find((function(t){return t.id===e.selectedTreeData.id})).onlinePresence?e.getPlayUrl(e.selectedMonitor):e.clearTreeSelected())}),600*n)}))}));case 25:case"end":return i.stop()}}),i)})))()},handleViewNodeClick:function(t){this.equipmentInfo={},this.viewId=t.id,this.activeTool="first"},handleViewNodedbClick:function(t){var e=this;return Object(a["a"])(Object(s["a"])().mark((function i(){var n,o;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return console.log(t),i.next=3,e.checkRecordingAndProceed({targetBox:null,actionName:"切换视图"});case 3:if(n=i.sent,n){i.next=6;break}return i.abrupt("return");case 6:e.equipmentInfo={},e.viewId=t.id,e.activeTool="first",o=JSON.parse(t.viewPreviewJson),e.$store.commit("updateActive",o.active),e.$store.commit("updateBoxList",o.boxList);case 12:case"end":return i.stop()}}),i)})))()},updateView:function(){var t=this;Object(m["e"])({id:this.viewId,viewName:this.viewName}).then((function(e){t.viewName="",t.getViewOptions(),t.openUpdateView=!1,t.$message.success("修改成功!")}))},deleteView:function(t){var e=this;this.$modal.confirm('是否确认删除名称为"'+t.label+'"的视图?').then((function(){return Object(m["a"])(t.id)})).then((function(){e.getViewOptions(),e.$modal.msgSuccess("删除成功!")})).catch((function(){}))},getPlayUrl:function(t){this.$store.commit("updateSelectedMonitor",Object(c["a"])(Object(c["a"])({},t),{},{mainUrl:"",auxiliaryUrl:""}));var e="1"===this.selectedTreeData.isFishEye,i=e?"鱼眼":"",n=this.equipmentInfo.streamProxyList.filter((function(t){return t.app.includes(i)}));if(console.log(n),0===n.length){t.cameraId=this.selectedTreeData.id,t.name=this.selectedTreeData.cameraName;var o=JSON.parse(this.equipmentInfo.streamProxyList[0].urlObject);t.code=o.codec_id_name,t.rtc=o.rtc,t.rtsp=o.rtsp;var r="H264"===o.codec_id_name,s="H265"===o.codec_id_name;if(n=this.equipmentInfo.streamProxyList,"0"===n[0].typeOfBitstream)if(t.mainUrl="https:"===location.protocol?r||s?r?o.rtcs:o.https_flv:o.rtcs:r||s?r?o.rtc:o.flv:o.rtc,n.length>1){var a=JSON.parse(n[1].urlObject);t.auxiliaryUrl="https:"===location.protocol?r||s?r?a.rtcs:a.https_flv:a.rtcs:r||s?r?a.rtc:a.flv:a.rtc}else t.auxiliaryUrl=t.mainUrl;else if(t.auxiliaryUrl="https:"===location.protocol?r||s?r?o.rtcs:o.https_flv:o.rtcs:r||s?r?o.rtc:o.flv:o.rtc,n.length>1){var l=JSON.parse(n[1].urlObject);t.mainUrl="https:"===location.protocol?r||s?r?l.rtcs:l.https_flv:l.rtcs:r||s?r?l.rtc:l.flv:l.rtc}else t.mainUrl=t.auxiliaryUrl}else{t.cameraId=this.selectedTreeData.id,t.name=this.selectedTreeData.cameraName;var u=JSON.parse(n[0].urlObject);t.code=u.codec_id_name,t.rtc=u.rtc,t.rtsp=u.rtsp;var d="H264"===u.codec_id_name,f="H265"===u.codec_id_name;if("0"===n[0].typeOfBitstream)if(t.mainUrl="https:"===location.protocol?d||f?d?u.rtcs:u.https_flv:u.rtcs:d||f?d?u.rtc:u.flv:u.rtc,n.length>1){var h=JSON.parse(n[1].urlObject);t.auxiliaryUrl="https:"===location.protocol?d||f?d?h.rtcs:h.https_flv:h.rtcs:d||f?d?h.rtc:h.flv:h.rtc}else t.auxiliaryUrl=t.mainUrl;else if(t.auxiliaryUrl="https:"===location.protocol?d||f?d?u.rtcs:u.https_flv:u.rtcs:d||f?d?u.rtc:u.flv:u.rtc,n.length>1){var p=JSON.parse(n[1].urlObject);t.mainUrl="https:"===location.protocol?d||f?d?p.rtcs:p.https_flv:p.rtcs:d||f?d?p.rtc:p.flv:p.rtc}else t.mainUrl=t.auxiliaryUrl}console.log("item",t)},clearTreeSelected:function(){this.$store.commit("updateSelectedTreeData",{}),"first"===this.activeName&&this.$refs.tree1?this.$refs.tree1.setCurrentKey(null):"second"===this.activeName&&this.$refs.tree2&&this.$refs.tree2.setCurrentKey(null)},clickToolBar:function(t){1===t&&this.$refs.toolbar.one()},startPolling:function(t,e){var i=this;return Object(a["a"])(Object(s["a"])().mark((function n(){var o,r,a;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,i.checkRecordingAndProceed({targetBox:null,actionName:"开始轮巡"});case 2:if(o=n.sent,o){n.next=6;break}return i.$refs.toolbar.changePollingStatus(),n.abrupt("return");case 6:i.totalDurationTimer&&clearTimeout(i.totalDurationTimer),i.totalDurationTimer=setTimeout((function(){i.endPolling()}),1e3*t*60),i.$store.commit("updateBoxList",i.boxList.map((function(t){return{boxId:t.boxId,recording:!1}}))),r=i.active,console.log("viewCount",r),i.cameraList.length<=r?i.$nextTick((function(){i.boxList.forEach((function(t,e){setTimeout((function(){i.cameraList[e]&&(i.equipmentInfo=i.cameraList[e],i.$store.commit("updateSelectedMonitor",t),i.$store.commit("updateSelectedTreeData",i.cameraList[e]),"1"===i.onlinePresenceList.find((function(t){return t.id===i.selectedTreeData.id})).onlinePresence?i.getPlayUrl(i.selectedMonitor):(i.$message.warning(i.selectedTreeData.cameraName+"设备已离线!"),i.clearTreeSelected()))}),600*e)}))})):(a=0,i.pollingInterval=setInterval((function(){a>=i.cameraList.length&&(a=0),i.$nextTick((function(){i.boxList.slice(0,r).forEach((function(t,e){setTimeout((function(){a<i.cameraList.length&&(i.equipmentInfo=i.cameraList[a],i.$store.commit("updateSelectedMonitor",t),i.$store.commit("updateSelectedTreeData",i.cameraList[a]),a++,"1"===i.onlinePresenceList.find((function(t){return t.id===i.selectedTreeData.id})).onlinePresence?i.getPlayUrl(i.selectedMonitor):(i.$message.warning(i.selectedTreeData.cameraName+"设备已离线!"),i.clearTreeSelected()))}),600*e)}))}))}),1e3*e));case 12:case"end":return n.stop()}}),n)})))()},endPolling:function(){clearInterval(this.pollingInterval),this.pollingInterval=null,this.totalDurationTimer&&(clearTimeout(this.totalDurationTimer),this.totalDurationTimer=null),this.$refs.toolbar.changePollingStatus()},save:function(){var t=this;Object(m["b"])({viewName:this.viewName,viewPreviewJson:{active:this.$store.getters.active,boxList:this.$store.getters.boxList},userId:this.$store.getters.userId}).then((function(e){t.viewName="",t.getViewOptions(),t.openSave=!1,t.$message.success("保存成功!")}))},beforeShare:function(){var t=this;this.openShare=!0,this.loading=!0,Object(v["h"])().then((function(e){t.userList=e.rows,t.loading=!1}))},handleSelectionChange:function(t){this.ids=t.map((function(t){return t.userId})),this.single=1!=t.length,this.multiple=!t.length},share:function(){var t=this;Object(m["d"])({userId:this.ids,viewId:this.viewId}).then((function(e){t.ids=[],t.openShare=!1,t.$message.success("分享成功!")}))},fisheye:function(){var t=this;this.boxList.forEach((function(e){e.cameraId===t.equipmentInfo.id&&(t.$store.commit("updateSelectedMonitor",e),"鱼眼"===t.fishEyeType?t.$nextTick((function(){var i=t.equipmentInfo.streamProxyList.filter((function(t){return t.app.includes("全景")}));if(0===i.length){var n=JSON.parse(t.equipmentInfo.streamProxyList[0].urlObject),o="H264"===n.codec_id_name,r="H265"===n.codec_id_name;e.mainUrl="https:"===location.protocol?o||r?o?n.rtcs:n.https_flv:n.rtcs:o||r?o?n.rtc:n.flv:n.rtc,e.auxiliaryUrl=e.mainUrl}else{var s=JSON.parse(i[0].urlObject),a="H264"===s.codec_id_name,c="H265"===s.codec_id_name;if("0"===i[0].typeOfBitstream)if(e.mainUrl="https:"===location.protocol?a||c?a?s.rtcs:s.https_flv:s.rtcs:a||c?a?s.rtc:s.flv:s.rtc,i.length>1){var l=JSON.parse(i[1].urlObject);e.auxiliaryUrl="https:"===location.protocol?a||c?a?l.rtcs:l.https_flv:l.rtcs:a||c?a?l.rtc:l.flv:l.rtc}else e.auxiliaryUrl=e.mainUrl;else if(e.auxiliaryUrl="https:"===location.protocol?a||c?a?object1.rtcs:object1.https_flv:object1.rtcs:a||c?a?object1.rtc:object1.flv:object1.rtc,i.length>1){var u=JSON.parse(i[1].urlObject);e.mainUrl="https:"===location.protocol?a||c?a?u.rtcs:u.https_flv:u.rtcs:a||c?a?u.rtc:u.flv:u.rtc}else e.mainUrl=e.auxiliaryUrl}t.$message.success("切换成功"),t.fishEyeType="全景"})):t.$nextTick((function(){var i=t.equipmentInfo.streamProxyList.filter((function(t){return t.app.includes("鱼眼")}));if(0===i.length){var n=JSON.parse(t.equipmentInfo.streamProxyList[0].urlObject),o="H264"===n.codec_id_name,r="H265"===n.codec_id_name;e.mainUrl="https:"===location.protocol?o||r?o?n.rtcs:n.https_flv:n.rtcs:o||r?o?n.rtc:n.flv:n.rtc,e.auxiliaryUrl=e.mainUrl}else{var s=JSON.parse(i[0].urlObject),a="H264"===s.codec_id_name,c="H265"===s.codec_id_name;if("0"===i[0].typeOfBitstream)if(e.mainUrl="https:"===location.protocol?a||c?a?s.rtcs:s.https_flv:s.rtcs:a||c?a?s.rtc:s.flv:s.rtc,i.length>1){var l=JSON.parse(i[1].urlObject);e.auxiliaryUrl="https:"===location.protocol?a||c?a?l.rtcs:l.https_flv:l.rtcs:a||c?a?l.rtc:l.flv:l.rtc}else e.auxiliaryUrl=e.mainUrl;else if(e.auxiliaryUrl="https:"===location.protocol?a||c?a?object1.rtcs:object1.https_flv:object1.rtcs:a||c?a?object1.rtc:object1.flv:object1.rtc,i.length>1){var u=JSON.parse(i[1].urlObject);e.mainUrl="https:"===location.protocol?a||c?a?u.rtcs:u.https_flv:u.rtcs:a||c?a?u.rtc:u.flv:u.rtc}else e.mainUrl=e.auxiliaryUrl}t.$message.success("切换成功"),t.fishEyeType="鱼眼"})))}))},handleOpenLight:function(){var t=this,e="1"===this.equipmentInfo.lamplightStatus?"启用":"停用";this.$modal.confirm('确认要"'+e+'"吗?').then((function(){return"启用"===e?Object(b["e"])({deviceId:t.equipmentInfo.lamplightId,powerOn:!0}):Object(b["e"])({deviceId:t.equipmentInfo.lamplightId,powerOn:!1})})).then((function(){t.$modal.msgSuccess(e+"成功"),Object(g["c"])({id:t.equipmentInfo.lamplightEquipment}).then((function(e){0!==e.total&&(t.equipmentInfo.lamplightId=e.data.id,t.equipmentInfo.lamplightOnline=e.data.lamplightOnline,t.equipmentInfo.lamplightStatus="1"===t.equipmentInfo.lamplightStatus?"1":"0",t.newEquipmentInfo.lightSwitch=!t.newEquipmentInfo.lightSwitch,t.equipmentInfo.light=20*Number(e.data.light),t.newEquipmentInfo.overallSwitch=e.data.overallSwitch,t.newEquipmentInfo.moduleSwitch=e.data.moduleSwitch,t.equipmentInfo.isGeneralControl=e.data.isGeneralControl,console.log(t.newEquipmentInfo.lightSwitch),console.log(t.equipmentInfo.lamplightStatus))}))})).catch((function(){t.equipmentInfo.lamplightStatus="0"===t.equipmentInfo.lamplightStatus?"1":"0"}))},changeLight:function(){var t=this;"1"==this.equipmentInfo.lamplightStatus?(this.fullscreenLoading=!0,Object(b["c"])({deviceId:this.equipmentInfo.lamplightId,dimLevel:this.equipmentInfo.light/20}).then((function(){t.fullscreenLoading=!1,t.$modal.msgSuccess("调光成功")})).catch((function(){t.fullscreenLoading=!1}))):this.$modal.msgError("请先开启灯光")},ptzStart:function(t){this.handleMove(t),document.addEventListener("mouseup",this.ptzStop,{once:!0})},ptzStop:function(){this.handleMove("stop")},ptzFocusStart:function(t){this.handleFocusing(t),document.addEventListener("mouseup",this.ptzFocusStop,{once:!0})},ptzFocusStop:function(){this.handleFocusing("stop")},handleMove:function(t){switch(t){case"up":Object(h["k"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break;case"left":Object(h["i"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break;case"right":Object(h["j"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break;case"down":Object(h["h"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break;case"leftUp":Object(h["e"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break;case"rightUp":Object(h["g"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break;case"leftDown":Object(h["d"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break;case"rightDown":Object(h["f"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break;case"stop":Object(h["l"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break}},addSpeed:function(){var t=(10*this.speed+1)/10;this.speed=t>1?1:t},delSpeed:function(){var t=(10*this.speed-1)/10;this.speed=t<.1?.1:t},handleFocusing:function(t){switch(t){case"up":Object(h["m"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break;case"down":Object(h["a"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break;case"stop":Object(h["l"])({id:this.equipmentInfo.id}).then((function(t){}));break;case"focusIn":Object(h["b"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break;case"focusOut":Object(h["c"])({id:this.equipmentInfo.id,speed:this.speed}).then((function(t){}));break}},initSSE:function(){var t=this,e="".concat(y["configPage"].httpServe,"/sse/stream");this.eventSource=new EventSource(e),this.eventSource.onmessage=function(e){var i=JSON.parse(e.data);if(Array.isArray(i)){console.log("jsonData is an array."),console.log(i),t.cameraList=i;var n=i.map((function(t){return Object(c["a"])(Object(c["a"])({},t),{},{isLeaf:!0,label:t.cameraName,key:t.id})}));console.log(t.onlinePresenceList),t.$nextTick((function(){t.onlinePresenceList.forEach((function(e){if("0"===e.onlinePresence){var i=n.find((function(t){return t.id===e.id}));"1"===i.onlinePresence&&t.boxList.forEach((function(i){if(i.cameraId===e.id){t.$store.commit("updateSelectedMonitor",i);var n=JSON.parse(JSON.stringify(i));t.$refs.video.close(i.boxId),console.log(t.boxList),setTimeout((function(){t.boxList[i.boxId-1]=n,console.log(t.boxList),t.$store.commit("updateSelectedMonitor",i),t.$store.commit("updateBoxList",t.boxList)}),1e3)}}))}})),t.onlinePresenceList=n}))}else"object"===Object(r["a"])(i)&&null!==i?(console.log(t.userId===Number(i.userId)),t.userId===Number(i.userId)&&t.$message({type:"error",message:"名称为:"+i.name+"的云台已被"+i.newUserId+"抢占!"})):console.log("jsonData is neither an array nor an object.")},this.eventSource.onerror=function(e){console.error("SSE error:",e),t.handleReconnect(e)},this.eventSource.onclose=function(){console.error("SSE connection closed."),t.handleReconnect()}},closeSSE:function(){this.eventSource&&(this.eventSource.close(),this.eventSource=null)},handleReconnect:function(t){var e=this;this.eventSource&&this.eventSource.close();var i=5e3;setTimeout((function(){console.log("Attempting to reconnect..."),e.initSSE()}),i)}},beforeRouteLeave:function(t,e,i){var n=this;return Object(a["a"])(Object(s["a"])().mark((function t(){var e;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.checkRecordingAndProceed({targetBox:null,actionName:"离开此页面"});case 2:e=t.sent,e?i():i(!1);case 4:case"end":return t.stop()}}),t)})))()}},S=I,O=(i("9516"),i("2877")),j=Object(O["a"])(S,n,o,!1,null,"55757e25",null);e["default"]=j.exports},"87d3":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",{ref:"app1",staticStyle:{width:"100%",height:"100%"},attrs:{id:"app1"}},[i("player",{directives:[{name:"show",rawName:"v-show",value:t.videoShow,expression:"videoShow"}],ref:"player",attrs:{"video-url":t.videoSrc,"camera-name":t.cameraName,fluent:"",autoplay:"",live:"","has-audio":!0},on:{destroy:t.close}}),i("div",{ref:"rectArea",staticClass:"rect"}),i("div",{ref:"videoZoom",staticClass:"video-zoom"},[t.videoZoomShow?i("player",{ref:"playerZoom",attrs:{id:"zoom"+t.videoId,"video-url":t.videoSrc,"camera-name":t.cameraName,showButtonBox:!1,fluent:"",autoplay:"",live:"","has-audio":!0}}):t._e()],1)],1)},o=[],r=i("5530"),s=(i("a9e3"),i("badc")),a=i("2f62"),c={name:"jessibucaBox",components:{player:s["a"]},props:{videoId:{type:Number,default:0},videoSrc:{type:String,default:""},cameraName:{type:String,default:""}},data:function(){return{videoZoomShow:!1,videoShow:!0,videoZoomFlag:!1,top:0,left:0,downX:0,downY:0,mouseX2:0,mouseY2:0,rect:null,select:!1,rectInfo:{videoWidth:0,videoHeight:0,rectWidth:0,rectHeight:0,rectCenterOffsetX:0,rectCenterOffsetY:0}}},computed:Object(r["a"])({},Object(a["c"])(["boxList"])),mounted:function(){this.rectZoomInit()},created:function(){},methods:{close:function(){this.$emit("destroy",this.videoId)},rectZoomInit:function(){this.$refs.app1.addEventListener("mousedown",this.down),this.$refs.app1.addEventListener("mousemove",this.move)},down:function(t){this.rect||(this.downX=t.clientX,this.downY=t.clientY,this.select=!0,this.rect=this.$refs.rectArea,this.top=this.$refs.app1.getBoundingClientRect().top,console.log("this.top",this.top),this.left=this.$refs.app1.getBoundingClientRect().left,console.log("this.left",this.left),this.rectInfo.videoHeight=this.$refs.app1.offsetHeight,this.rectInfo.videoWidth=this.$refs.app1.offsetWidth,document.addEventListener("mouseup",this.up))},move:function(t){this.select&&(this.mouseX2=t.clientX,this.mouseY2=t.clientY,this.mouseX2<this.downX&&this.mouseY2<this.downY&&(this.rect.style.left=this.mouseX2-this.left+"px",this.rect.style.top=this.mouseY2-this.top+"px",this.videoZoomFlag=!1),this.mouseX2>this.downX&&this.mouseY2<this.downY&&(this.rect.style.left=this.downX-this.left+"px",this.rect.style.top=this.mouseY2-this.top+"px",this.videoZoomFlag=!1),this.mouseX2<this.downX&&this.mouseY2>this.downY&&(this.rect.style.left=this.mouseX2-this.left+"px",this.rect.style.top=this.downY-this.top+"px",this.videoZoomFlag=!1),this.mouseX2>this.downX&&this.mouseY2>this.downY&&(this.rect.style.left=this.downX-this.left+"px",this.rect.style.top=this.downY-this.top+"px",this.videoZoomFlag=!0),this.rect.style.width=Math.abs(this.mouseX2-this.downX)+"px",this.rect.style.height=Math.abs(this.mouseY2-this.downY)+"px",this.rect.style.visibility="visible")},up:function(){if(this.select=!1,"hidden"!==this.rect.style.visibility){this.rectInfo.rectWidth=Math.abs(this.mouseX2-this.downX),this.rectInfo.rectHeight=Math.abs(this.mouseY2-this.downY),this.rectInfo.rectCenterOffsetX=parseInt(this.rect.style.left)+this.rectInfo.rectWidth/2,this.rectInfo.rectCenterOffsetY=parseInt(this.rect.style.top)+this.rectInfo.rectHeight/2;var t=this.rectInfo.rectWidth/this.rectInfo.rectHeight,e=this.rectInfo.videoWidth/this.rectInfo.videoHeight;t<e?(this.rectInfo.rectWidth=this.rectInfo.rectHeight*e,this.rectInfo.rectCenterOffsetX<this.rectInfo.rectWidth/2&&(this.rectInfo.rectCenterOffsetX=this.rectInfo.rectWidth/2),this.rectInfo.rectCenterOffsetX+this.rectInfo.rectWidth/2>this.rectInfo.videoWidth&&(this.rectInfo.rectCenterOffsetX=this.rectInfo.videoWidth-this.rectInfo.rectWidth/2)):t>e&&(this.rectInfo.rectHeight=this.rectInfo.rectWidth/e,this.rectInfo.rectCenterOffsetY<this.rectInfo.rectHeight/2&&(this.rectInfo.rectCenterOffsetY=this.rectInfo.rectHeight/2),this.rectInfo.rectCenterOffsetY+this.rectInfo.rectHeight/2>this.rectInfo.videoHeight&&(this.rectInfo.rectCenterOffsetY=this.rectInfo.videoHeight-this.rectInfo.rectHeight/2)),this.handleVideo()}this.resetRect()},handleVideo:function(){if(this.rectInfo.videoWidth/this.rectInfo.rectWidth<=10&&this.videoZoomFlag){var t=this.rectInfo.videoWidth/this.rectInfo.rectWidth;this.videoZoomShow||(this.$refs.videoZoom.style.width=this.rectInfo.videoWidth*t+"px",this.$refs.videoZoom.style.height=9/16*this.rectInfo.videoWidth*t+"px",this.$refs.videoZoom.style.top=-(this.rectInfo.rectCenterOffsetY-this.rectInfo.rectHeight/2)*t+"px",this.$refs.videoZoom.style.left=-(this.rectInfo.rectCenterOffsetX-this.rectInfo.rectWidth/2)*t+"px",this.videoShow=!1,this.videoZoomShow=!0)}else this.$refs.videoZoom.style.width="0px",this.$refs.videoZoom.style.height="0px",this.videoShow=!0,this.videoZoomShow=!1},resetRect:function(){document.removeEventListener("mouseup",this.up),this.rect.style.visibility="hidden",this.rect.style.width="0px",this.rect.style.height="0px",this.top=0,this.left=0,this.downX=0,this.downY=0,this.mouseX2=0,this.mouseY2=0,this.rect=null,this.rectInfo={videoWidth:0,videoHeight:0,rectWidth:0,rectHeight:0,rectCenterOffsetX:0,rectCenterOffsetY:0}}},destroyed:function(){}},l=c,u=(i("0d10"),i("2877")),d=Object(u["a"])(l,n,o,!1,null,"92372ab6",null);e["default"]=d.exports},9378:function(t,e,i){},9516:function(t,e,i){"use strict";i("9983")},9983:function(t,e,i){},"9b6b":function(t,e,i){},a458: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:"video-wall-container"},[i("transition-group",{staticClass:"video-grid",style:t.gridStyle,attrs:{name:"grid-fade",tag:"div"}},t._l(t.currentBoxList,(function(e,n){return i("div",{key:e.boxId,staticClass:"video-cell",class:{"is-active":t.selectedMonitor&&t.selectedMonitor.boxId===e.boxId,"is-dragging":t.draggedItem&&t.draggedItem.boxId===e.boxId,"is-recording":e.recording},attrs:{id:"childBox_"+e.boxId,draggable:"true"},on:{click:function(i){return t.setActiveBox(e)},dblclick:function(i){return t.changeToOne(e)},dragstart:function(i){return t.handleDragStart(e,i)},dragover:function(e){return t.handleDragOver(e)},drop:function(i){return t.handleDrop(e,i)},dragend:function(e){return t.handleDragEnd(e)}}},[i("div",{staticClass:"video-wrapper"},["H264"!==e.code&&"H265"===e.code||!e.mainUrl?"H265"===e.code&&e.mainUrl?i("jessibucaBox",{ref:"player",refInFor:!0,staticClass:"player-instance",attrs:{"video-src":1===t.active?e.mainUrl:e.auxiliaryUrl,"video-id":e.boxId,"camera-name":e.name},on:{destroy:t.close}}):i("div",{staticClass:"empty-state"},[i("i",{staticClass:"el-icon-video-camera"}),i("span",[t._v("无信号")])]):i("webrtc-player",{ref:"player",refInFor:!0,staticClass:"player-instance",attrs:{"video-src":1===t.active?e.mainUrl:e.auxiliaryUrl,"video-id":e.boxId,"camera-name":e.name},on:{destroy:t.close}})],1),i("div",{staticClass:"video-overlay"},[i("span",{staticClass:"video-title"},[t._v(t._s(e.name||"通道 "+e.boxId))]),i("div",{staticClass:"status-indicators"},[e.recording?i("i",{staticClass:"el-icon-loading recording-icon",attrs:{title:"录像中"}}):t._e()])])])})),0)],1)},o=[];i("a4d3");function r(t,e){if(null==t)return{};var i={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;i[n]=t[n]}return i}function s(t,e){if(null==t)return{};var i,n,o=r(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||{}.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}var a=i("5530"),c=(i("7db0"),i("c740"),i("fb6a"),i("e9c4"),i("b64b"),i("d3b7"),i("159b"),i("badc")),l=i("3724"),u=i("87d3"),d=i("2f62"),f=["boxId"],h=["boxId"],p={name:"VideoWall",components:{player:c["a"],webrtcPlayer:l["a"],jessibucaBox:u["default"]},data:function(){return{draggedItem:null,timer:null}},computed:Object(a["a"])(Object(a["a"])({},Object(d["c"])(["boxList","active","lastActive","selectedTreeData","selectedMonitor","boxListIndex"])),{},{currentBoxList:function(){var t=0;switch(this.active){case 1:t=1;break;case 4:t=4;break;case 9:t=9;break;case 16:t=16;break;case 36:t=36;break;case 64:t=64;break;default:t=this.active}return this.boxList.slice(this.boxListIndex,this.boxListIndex+t)},gridStyle:function(){var t=1;switch(this.active){case 1:t=1;break;case 4:t=2;break;case 9:t=3;break;case 16:t=4;break;case 36:t=6;break;case 64:t=8;break;default:t=Math.ceil(Math.sqrt(this.active))}return{"grid-template-columns":"repeat(".concat(t,", 1fr)"),"grid-template-rows":"repeat(".concat(t,", 1fr)")}}}),methods:{stopRecordings:function(t,e){var i=this;this.$refs.player&&0!==this.$refs.player.length&&t.forEach((function(t){var n=i.$refs.player.find((function(e){return e.videoId===t.boxId}));n&&"function"===typeof n.stopRecording&&n.stopRecording(e)}))},closeAllVideos:function(){var t=this;this.boxList.forEach((function(e){(e.mainUrl||e.auxiliaryUrl)&&(t.setActiveBox(e),Object.assign(e,{mainUrl:"",auxiliaryUrl:"",code:"",cameraId:"",name:"",rtc:"",rtsp:"",recording:!1}))})),this.$store.commit("updateSelectedMonitor",{}),this.$emit("clearTreeSelected"),this.$message.success("所有预览已关闭")},changeToOne:function(t){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.boxList.some((function(t){return t.recording}))&&1!==this.active&&this.$message.warning("正在录像中,切换分屏可能会中断录像!"),0!==this.lastActive)this.$store.commit("updateBoxListIndex",0),this.$store.commit("updateActive",this.lastActive),this.$store.commit("updateLastActive",0);else{if(1===this.active)return;this.$store.commit("updateLastActive",this.active);var e=t.boxId-1;this.$store.commit("updateBoxListIndex",e),this.$store.commit("updateActive",1)}},close:function(t){var e=JSON.parse(JSON.stringify(this.boxList)),i=e.findIndex((function(e){return e.boxId===t}));-1!==i&&(e[i]={boxId:t,mainUrl:"",auxiliaryUrl:"",code:"",cameraId:"",name:"",rtc:"",rtsp:"",recording:!1}),this.$store.commit("updateBoxList",e),this.showRedBorder=!1,this.$emit("clearTreeSelected")},setActiveBox:function(t){this.$store.commit("updateSelectedMonitor",t),t.cameraId?this.$emit("setCurrentKeyTree",t.cameraId):this.$emit("clearTreeSelected")},handleDragStart:function(t,e){if(t.recording)return this.$message.warning("无法拖拽正在录像的窗口!"),void e.preventDefault();this.draggedItem=t,e.dataTransfer.effectAllowed="move"},handleDragOver:function(t){t.preventDefault(),t.dataTransfer.dropEffect="move"},handleDragEnd:function(){this.draggedItem=null},handleDrop:function(t,e){e.preventDefault();var i=this.draggedItem;if(i&&i.boxId!==t.boxId)if(t.recording)this.$message.warning("无法拖拽到正在录像的窗口!");else{var n=JSON.parse(JSON.stringify(this.boxList)),o=n.findIndex((function(t){return t.boxId===i.boxId})),r=n.findIndex((function(e){return e.boxId===t.boxId}));if(-1!==o&&-1!==r){var c=n[o],l=c.boxId,u=s(c,f),d=n[r],p=d.boxId,m=s(d,h);if(n[o]=Object(a["a"])(Object(a["a"])({},m),{},{boxId:l}),n[r]=Object(a["a"])(Object(a["a"])({},u),{},{boxId:p}),this.$store.commit("updateBoxList",n),this.selectedMonitor&&(this.selectedMonitor.boxId===l||this.selectedMonitor.boxId===p))this.selectedMonitor.boxId}this.draggedItem=null}}}},m=p,v=(i("5790"),i("2877")),g=Object(v["a"])(m,n,o,!1,null,"15eba178",null);e["default"]=g.exports},c0c7:function(t,e,i){"use strict";i.d(e,"h",(function(){return r})),i.d(e,"f",(function(){return s})),i.d(e,"a",(function(){return a})),i.d(e,"k",(function(){return c})),i.d(e,"c",(function(){return l})),i.d(e,"i",(function(){return u})),i.d(e,"b",(function(){return d})),i.d(e,"g",(function(){return f})),i.d(e,"l",(function(){return h})),i.d(e,"m",(function(){return p})),i.d(e,"n",(function(){return m})),i.d(e,"e",(function(){return v})),i.d(e,"j",(function(){return g})),i.d(e,"d",(function(){return b}));var n=i("b775"),o=i("c38a");function r(t){return Object(n["a"])({url:"/system/user/list",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/system/user/"+Object(o["e"])(t),method:"get"})}function a(t){return Object(n["a"])({url:"/system/user",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/system/user",method:"put",data:t})}function l(t){return Object(n["a"])({url:"/system/user/"+t,method:"delete"})}function u(t,e){var i={userId:t,password:e};return Object(n["a"])({url:"/system/user/resetPwd",method:"put",data:i})}function d(t,e){var i={userId:t,status:e};return Object(n["a"])({url:"/system/user/changeStatus",method:"put",data:i})}function f(){return Object(n["a"])({url:"/system/user/profile",method:"get"})}function h(t){return Object(n["a"])({url:"/system/user/profile",method:"put",data:t})}function p(t,e){var i={oldPassword:t,newPassword:e};return Object(n["a"])({url:"/system/user/profile/updatePwd",method:"put",params:i})}function m(t){return Object(n["a"])({url:"/system/user/profile/avatar",method:"post",data:t})}function v(t){return Object(n["a"])({url:"/system/user/authRole/"+t,method:"get"})}function g(t){return Object(n["a"])({url:"/system/user/authRole",method:"put",params:t})}function b(){return Object(n["a"])({url:"/system/user/deptTree",method:"get"})}},c421:function(t,e,i){"use strict";i("b775")},cc43:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"a",(function(){return r})),i.d(e,"c",(function(){return s})),i.d(e,"e",(function(){return a})),i.d(e,"d",(function(){return c}));var n=i("b775");function o(t){return Object(n["a"])({url:"/keycontrol/controlDevices?controlType="+t.controlType,method:"post",timeout:5e3,data:t.devices})}function r(t){return Object(n["a"])({url:"/keycontrol/all/power",method:"post",timeout:5e3,params:t})}function s(t){return Object(n["a"])({url:"/keycontrol/dim",method:"post",timeout:3e4,params:t})}function a(t){return Object(n["a"])({url:"/keycontrol/power",method:"post",timeout:3e4,params:t})}function c(t){return Object(n["a"])({url:"/keycontrol/moudle/controlDevicesMoudlePower",method:"post",timeout:5e3,params:t})}},cf4e:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"d",(function(){return r})),i.d(e,"g",(function(){return s})),i.d(e,"e",(function(){return a})),i.d(e,"c",(function(){return c})),i.d(e,"b",(function(){return l})),i.d(e,"f",(function(){return u}));var n=i("b775");function o(t){return Object(n["a"])({url:"/sis/camera",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/sis/camera/"+t,method:"delete"})}function s(t){return Object(n["a"])({url:"/sis/camera",method:"put",data:t})}function a(t){return Object(n["a"])({url:"/sis/camera/selectSisCameraListPage",method:"get",params:t})}function c(){return Object(n["a"])({url:"/sis/camera/selectSisCameraList",method:"get"})}function l(t){return Object(n["a"])({url:"/sis/permissions",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/sis/permissions/selectSisLamplightListPage",method:"get",params:t})}},d2b1:function(t,e,i){},e37d:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"e",(function(){return r})),i.d(e,"a",(function(){return s})),i.d(e,"d",(function(){return a})),i.d(e,"c",(function(){return c}));var n=i("b775");function o(t){return Object(n["a"])({url:"/sis/preview",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/sis/preview",method:"put",data:t})}function s(t){return Object(n["a"])({url:"/sis/preview/"+t,method:"delete"})}function a(t){return Object(n["a"])({url:"/sis/preview/addshare",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/sis/preview/selectSisViewPreviewList",method:"get",params:t})}},ed08:function(t,e,i){"use strict";i.d(e,"e",(function(){return n})),i.d(e,"f",(function(){return o})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return s})),i.d(e,"h",(function(){return a})),i.d(e,"d",(function(){return c})),i.d(e,"a",(function(){return l})),i.d(e,"i",(function(){return u})),i.d(e,"g",(function(){return d}));i("53ca"),i("d9e2"),i("a630"),i("a15b"),i("d81d"),i("14d9"),i("fb6a"),i("b64b"),i("d3b7"),i("4d63"),i("c607"),i("ac1f"),i("2c3e"),i("00b4"),i("25f0"),i("6062"),i("3ca3"),i("466d"),i("5319"),i("159b"),i("ddb0"),i("c38a");function n(t){if(null==t||""==t)return"";var e=new Date(t),i=e.getFullYear(),n=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),r=e.getHours()<10?"0"+e.getHours():e.getHours(),s=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),a=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return i+"-"+n+"-"+o+" "+r+":"+s+":"+a}function o(t){if(null==t||""==t)return"";var e=new Date(t),i=e.getFullYear(),n=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate();e.getHours(),e.getHours(),e.getMinutes(),e.getMinutes(),e.getSeconds(),e.getSeconds();return i+"/"+n+"/"+o}function r(t){for(var e=t.length,i=t.length-1;i>=0;i--){var n=t.charCodeAt(i);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&i--}return e}function s(t,e,i){var n,o,r,s,a,c=function c(){var l=+new Date-s;l<e&&l>0?n=setTimeout(c,e-l):(n=null,i||(a=t.apply(r,o),n||(r=o=null)))};return function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];r=this,s=+new Date;var d=i&&!n;return n||(n=setTimeout(c,e)),d&&(a=t.apply(r,l),r=l=null),a}}function a(t,e){for(var i=Object.create(null),n=t.split(","),o=0;o<n.length;o++)i[n[o]]=!0;return e?function(t){return i[t.toLowerCase()]}:function(t){return i[t]}}var c="export default ",l={html:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"separate",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function u(t){return t.replace(/( |^)[a-z]/g,(function(t){return t.toUpperCase()}))}function d(t){return/^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(t)}},f9d6:function(t,e,i){"use strict";i("9b6b")}}]);
|