chunk-33b17574.2d478979.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-33b17574"],{"28da":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return n})),r.d(t,"g",(function(){return s})),r.d(t,"c",(function(){return i})),r.d(t,"d",(function(){return l})),r.d(t,"h",(function(){return u})),r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return p}));var a=r("b775");function o(e){return Object(a["a"])({url:"/sis/yuhang",method:"post",data:e})}function n(e){return Object(a["a"])({url:"/sis/yuhang/"+e,method:"delete"})}function s(e){return Object(a["a"])({url:"/sis/yuhang",method:"put",data:e})}function i(e){return Object(a["a"])({url:"/sis/yuhang/format",method:"get",params:e})}function l(e){return Object(a["a"])({url:"/sis/yuhang/selectSisYuhangListPage",method:"get",params:e})}function u(){return Object(a["a"])({url:"/sis/yuhang/selectSisYuhangList",method:"get"})}function c(e){return Object(a["a"])({url:"/sis/yuhang/selectSisYuhangAllocationListPage",method:"get",params:e})}function p(e){return Object(a["a"])({url:"/sis/yuhang/selectSisYuhangDiskListPage",method:"get",params:e})}},8169:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return n}));var a=r("b775");function o(e){return Object(a["a"])({url:"/sis/videoRecord/updateStatusByTrue",method:"get",params:e})}function n(e){return Object(a["a"])({url:"/sis/videoRecord/updateStatusByFalse",method:"get",params:e})}},"9b0a":function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return n})),r.d(t,"g",(function(){return s})),r.d(t,"d",(function(){return i})),r.d(t,"e",(function(){return l})),r.d(t,"a",(function(){return u})),r.d(t,"f",(function(){return c}));var a=r("b775");function o(e){return Object(a["a"])({url:"/sis/videoRecordTemplete/saveAsTemplete/"+e.taskName,method:"post",data:e.weekList})}function n(e){return Object(a["a"])({url:"/sis/videoRecordTemplete/deleteTemplete",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/sis/videoRecordTemplete",method:"put",data:e})}function i(e){return Object(a["a"])({url:"/sis/videoRecordTemplete/detailTemplete",method:"get",params:e})}function l(e){return Object(a["a"])({url:"/sis/videoRecordTemplete/listTemplete",method:"get",params:e})}function u(e){return Object(a["a"])({url:"/sis/videoRecord",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/sis/videoRecord/selectSisVideoRecordListByPage",method:"get",params:e})}},a06a:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0}},[r("el-form-item",{attrs:{label:"摄像名称",prop:"cameraName"}},[r("el-input",{attrs:{placeholder:"请输入摄像名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.cameraName,callback:function(t){e.$set(e.queryParams,"cameraName",t)},expression:"queryParams.cameraName"}})],1),r("el-form-item",{attrs:{label:"玉航设备名称",prop:"yuhangName"}},[r("el-input",{attrs:{placeholder:"请输入玉航设备名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.yuhangName,callback:function(t){e.$set(e.queryParams,"yuhangName",t)},expression:"queryParams.yuhangName"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),r("el-row",{staticClass:"mb8",attrs:{gutter:10}},[r("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),e.refreshTable?r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.mediaList,width:"120"}},[r("el-table-column",{attrs:{label:"序号",align:"center",prop:"id"}}),r("el-table-column",{attrs:{label:"通道名称",align:"center",prop:"app"}}),r("el-table-column",{attrs:{label:"摄像头名称",align:"center",prop:"cameraName"}}),r("el-table-column",{attrs:{label:"流唯一标识",align:"center",prop:"stream"}}),r("el-table-column",{attrs:{label:"流在线状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"==t.row.status?r("el-tag",{attrs:{type:"success"}},[e._v("在线")]):r("el-tag",{attrs:{type:"danger"}},[e._v("离线")])]}}],null,!1,792468882)}),r("el-table-column",{attrs:{label:"码流类型",align:"center",prop:"typeOfBitstream"},scopedSlots:e._u([{key:"default",fn:function(t){return["0"==t.row.typeOfBitstream?r("el-tag",[e._v("主码流")]):r("el-tag",[e._v("辅码流")])]}}],null,!1,1781387808)}),r("el-table-column",{attrs:{label:"玉航设备名称",align:"center",prop:"yuhangName"}}),r("el-table-column",{attrs:{label:"玉航存储模块",align:"center",prop:"yuhangNum"}}),r("el-table-column",{attrs:{label:"是否开启录制",align:"center",prop:"taskStatus"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},on:{change:function(r){return e.handleStatusChange(t.row)}},model:{value:t.row.taskStatus,callback:function(r){e.$set(t.row,"taskStatus",r)},expression:"scope.row.taskStatus"}})]}}],null,!1,377414195)}),r("el-table-column",{attrs:{label:"操作",align:"center",width:"100px","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(r){return e.handleUpdate(t.row)}}},[e._v("设置录像计划 ")])]}}],null,!1,2359958624)})],1):e._e(),r("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),r("el-dialog",{attrs:{title:e.title,visible:e.open,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"设备名称",prop:"proxyApp"}},[r("el-input",{attrs:{placeholder:"请输入",disabled:""},model:{value:e.form.proxyApp,callback:function(t){e.$set(e.form,"proxyApp",t)},expression:"form.proxyApp"}})],1),r("el-form-item",{attrs:{label:"计划模板",prop:"taskName"}},[r("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.form.taskName,callback:function(t){e.$set(e.form,"taskName",t)},expression:"form.taskName"}},e._l(e.recordTempleteOptions,(function(e,t){return r("el-option",{key:e.index,attrs:{label:e.taskName,value:e.taskName}})})),1)],1),r("el-form-item",{attrs:{label:"时间段选择"}}),e._l(e.weekList,(function(t,a){return r("el-form-item",{key:a,staticStyle:{"margin-left":"10%"},attrs:{label:t.val}},[r("el-time-picker",{attrs:{"is-range":"",format:"HH:mm","value-format":"HH:mm","range-separator":"-"},model:{value:t.hours,callback:function(r){e.$set(t,"hours",r)},expression:"item.hours"}})],1)}))],2),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},o=[];r("d3b7"),r("159b"),r("b775");var n=r("28da"),s=r("9b0a"),i=r("8169"),l={name:"cameraEquipmentMGT",dicts:["sys_normal_disable","sys_yes_no"],data:function(){return{loading:!0,showSearch:!0,mediaList:[],total:0,title:"",open:!1,refreshTable:!0,queryParams:{pageNum:1,pageSize:10,cameraName:void 0,yuhangName:void 0,yuhangNum:void 0,recordType:0},form:{},rules:{proxyApp:[{required:!0,message:"设备名称不能为空",trigger:"blur"}]},recordTempleteOptions:[],weekList:[{id:"",recordType:"0",proxyApp:"",proxyStreamid:"",val:"星期一",weekNum:"1",executeCycle:"2",hours:["00","00"]},{id:"",recordType:"0",proxyApp:"",proxyStreamid:"",val:"星期二",weekNum:"2",executeCycle:"2",hours:["00","00"]},{id:"",recordType:"0",proxyApp:"",proxyStreamid:"",val:"星期三",weekNum:"3",executeCycle:"2",hours:["00","00"]},{id:"",recordType:"0",proxyApp:"",proxyStreamid:"",val:"星期四",weekNum:"4",executeCycle:"2",hours:["00","00"]},{id:"",recordType:"0",proxyApp:"",proxyStreamid:"",val:"星期五",weekNum:"5",executeCycle:"2",hours:["00","00"]},{id:"",recordType:"0",proxyApp:"",proxyStreamid:"",val:"星期六",weekNum:"6",executeCycle:"2",hours:["00","00"]},{id:"",recordType:"0",proxyApp:"",proxyStreamid:"",val:"星期天",weekNum:"7",executeCycle:"2",hours:["00","00"]}]}},watch:{"form.taskName":function(){var e=this;this.form.taskName&&Object(s["d"])({taskName:this.form.taskName}).then((function(t){e.weekList.forEach((function(r,a){r.proxyApp=e.form.proxyApp,r.proxyStreamid=e.form.proxyStreamid,r.hours=t.data[a].hours}))}))}},created:function(){this.getList(),this.getRecordTempleteOptions()},methods:{getList:function(){var e=this;this.loading=!0,Object(n["e"])(this.queryParams).then((function(t){e.mediaList=t.rows,e.total=t.total,e.loading=!1}))},getRecordTempleteOptions:function(){var e=this;Object(s["e"])().then((function(t){e.recordTempleteOptions=t.rows}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={},this.weekList.forEach((function(e){e.hours=["00:00","23:59"]})),this.resetForm("form")},handleQuery:function(){this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleAdd:function(){this.reset(),this.open=!0,this.title="添加视频接入配置"},handleUpdate:function(e){var t=this;this.reset(),this.form.proxyApp=e.app,this.form.proxyStreamid=e.stream,Object(s["f"])({proxyApp:this.form.proxyApp,proxyStreamid:this.form.proxyStreamid,recordType:0}).then((function(r){r.rows.length>0?t.weekList.forEach((function(e,t){e.id=r.rows[t].id,e.proxyApp=r.rows[t].proxyApp,e.proxyStreamid=r.rows[t].proxyStreamid,e.hours=r.rows[t].hours})):t.weekList.forEach((function(t,r){t.proxyApp=e.app,t.proxyStreamid=e.stream}))})),this.open=!0,this.title="设置录像计划"},handleStatusChange:function(e){var t=this,r="1"===e.taskStatus?"确认要启用吗?":"确认要停用吗?停用后无法进行录制!";this.$modal.confirm(r).then((function(){return"1"===e.taskStatus?Object(i["b"])({app:e.app,stream:e.stream}):Object(i["a"])({app:e.app,stream:e.stream})})).then((function(){t.$modal.msgSuccess("成功")})).catch((function(){e.taskStatus="0"===e.taskStatus?"1":"0"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(e.$modal.loading("正在加载,请稍候!"),Object(s["a"])(e.weekList).then((function(t){e.$modal.msgSuccess("设置成功"),e.$modal.closeLoading(),e.open=!1,e.getList()})).catch((function(){e.$modal.msgError("设置失败"),e.$modal.closeLoading()})))}))}}},u=l,c=r("2877"),p=Object(c["a"])(u,a,o,!1,null,null,null);t["default"]=p.exports}}]);