Files
starRiverProperty/frontend/alarm-front.20231109/js/chunk-eaa2ede2.30cc341b.js
反编译工作区 0c56a3e599 chore(frontend): add static frontend build artifacts (portal, front_acs, etc.)
Made-with: Cursor

Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
2026-04-27 13:40:23 +08:00

1 line
65 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp_security-control"]=window["webpackJsonp_security-control"]||[]).push([["chunk-eaa2ede2"],{"071e":function(e,t,a){"use strict";a("ccb5")},"125b":function(e,t,a){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",appHeaderBg:"#014051",appIconBg:"#6758F3",appIconColor:"#FFFFFF",appIconSize:"30px",appNameColor:"#FFFFFF",appNameSize:"30px"}},"1d98":function(e,t,a){e.exports=a.p+"img/hezi-online.23e20376.svg"},"1e3f":function(e,t,a){e.exports=a.p+"img/ipc-offline.9181666b.svg"},"2f28":function(e,t,a){e.exports=a.p+"img/5.e69bad60.svg"},"30d1":function(e,t,a){e.exports=a.p+"img/16.5d462cf8.svg"},3810:function(e,t){e.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QOPaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0MiA3OS4xNjA5MjQsIDIwMTcvMDcvMTMtMDE6MDY6MzkgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6YTBkOTNjOTMtMTRkNS00Y2UyLWFmOGUtNTYwMDJkNzQ5MGM4IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjVEQzhEOUY0NjI5QTExRUFCOUYyOEIxNEMyMUFCQ0ZGIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjVEQzhEOUYzNjI5QTExRUFCOUYyOEIxNEMyMUFCQ0ZGIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE3IChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MGFiZjY0MjktN2E3MC00NDM1LWE2ZTQtMzYzZWZkOTY2MWZlIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6NjI0NWNjOGQtOTkzMC0xMTdkLTlhY2ItYzAzOGQwY2FkMmFjIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f/8AAEQgAgABgAwERAAIRAQMRAf/EAaIAAAAHAQEBAQEAAAAAAAAAAAQFAwIGAQAHCAkKCwEAAgIDAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAACAQMDAgQCBgcDBAIGAnMBAgMRBAAFIRIxQVEGE2EicYEUMpGhBxWxQiPBUtHhMxZi8CRygvElQzRTkqKyY3PCNUQnk6OzNhdUZHTD0uIIJoMJChgZhJRFRqS0VtNVKBry4/PE1OT0ZXWFlaW1xdXl9WZ2hpamtsbW5vY3R1dnd4eXp7fH1+f3OEhYaHiImKi4yNjo+Ck5SVlpeYmZqbnJ2en5KjpKWmp6ipqqusra6voRAAICAQIDBQUEBQYECAMDbQEAAhEDBCESMUEFURNhIgZxgZEyobHwFMHR4SNCFVJicvEzJDRDghaSUyWiY7LCB3PSNeJEgxdUkwgJChgZJjZFGidkdFU38qOzwygp0+PzhJSktMTU5PRldYWVpbXF1eX1RlZmdoaWprbG1ub2R1dnd4eXp7fH1+f3OEhYaHiImKi4yNjo+DlJWWl5iZmpucnZ6fkqOkpaanqKmqq6ytrq+v/aAAwDAQACEQMRAD8A9N4q7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FWiQBU7DFVM3UA6uPoqf1YaW3LcQtsHH07frxpbVcCuxV2KuxV2KuxV2KuxVZLKsacm+geJxVLpZpJDVjt2HbJgMVgBPTfFXEEdcVVoLl4zQ7p4f0xIW0wVgyhgag9MgybxV2KuxV2KuxV2KpfeSFpSvZdvp75IMSoAVIHjhVOYoo41CoKeJ7nIsll1FG8TFhuqkg9xiEFKckhF2Mh+KM/MYCkIzIpdirsVdirsVdiqVS/3j/M/rybFaKVFemKp5kWS2UAxODsCpr92KpLkmKtZ/36/I/qwFQmORZOxV2KuxV2KuxVLbpOEzeDbj6cmGJUsVTayLG2TkKeHuMiUhZqBb0NhtUcj7YQpSzChFWKEsz9hsPngKQjcil2KuxV2KuxV2KqU8IlSnRh9k4QVat7W3H2hykHVW7fRhtFIsAAUHTAlxAIoRUHqDiqCuLWBmpGKP3p0Hzw2ilaONY0Cr0GRSuxV2KuxV2KuxV2KuxVayq3UdOh74q6kg6SN9ND+sYbVxVj9p2I8Nh+qmNq2AAKAUGBW8VdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdir//Z"},"3cc4":function(e,t,a){"use strict";a("125b")},"4e80":function(e,t,a){e.exports=a.p+"img/device.88b656a8.svg"},"60d0":function(e,t,a){e.exports=a.p+"img/6.9966f972.svg"},"613c":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("qz-wrap",{directives:[{name:"loading",rawName:"v-loading",value:e.getLoading,expression:"getLoading"}],staticClass:"alarmInformation-container",scopedSlots:e._u([{key:"header",fn:function(){return[a("ControlTypeTag",{attrs:{AllTypeTags:e.ALL_TYPES_TAGS_RECORD,activeTypeIndex:e.activeTypeIndexRecord},on:{typeChange:e.typeChange}})]},proxy:!0},"alarm-page"===e.activeIndex?{key:"footer",fn:function(){return[a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.isPageShow,expression:"isPageShow"}],attrs:{background:"","current-page":e.alarmInformation.pageIndex,"page-size":e.alarmInformation.pageSize,"page-sizes":[10,20,50,100,200],layout:"total, sizes, prev, pager, next, jumper",total:e.totalShow},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})]},proxy:!0}:{key:"footer",fn:function(){return[a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.isPageListShow,expression:"isPageListShow"}],attrs:{background:"","current-page":e.alarmInformationList.pageNo,"page-size":e.alarmInformationList.pageSize,"page-sizes":[10,20,50,100,200],layout:"total, sizes, prev, pager, next, jumper",total:e.totalListShow},on:{"size-change":e.handleListSizeChange,"current-change":e.handleListCurrentChange}})]},proxy:!0}],null,!0)},[a("el-tabs",{staticClass:"controlType-select-container",on:{"tab-click":e.indexChange},model:{value:e.activeIndex,callback:function(t){e.activeIndex=t},expression:"activeIndex"}},[a("el-tab-pane",{attrs:{label:"布控任务",name:"alarm-page"}},[a("AreaDepolyIndex",{ref:"areaDepolyPage",attrs:{sizeData:e.alarmInformation,parentData:e.parentData,operatorOptions:e.operatorOptions},on:{resetData:e.resetAreaData,pageLoading:e.pageLoading,updateTotal:e.updateDeployTotal,taskData:e.pageDataRecord}})],1),a("el-tab-pane",{attrs:{label:"预警记录",name:"alarmList-page"}},[a("AlarmList",{ref:"alarmListPage",attrs:{sizeData:e.alarmInformationList,parentData:e.parentData,operatorOptions:e.operatorOptions},on:{updateTotal:e.updateListTotal,resetData:e.resetListData,pageListLoading:e.pageListLoading,alarmListData:e.pageDataListRecord}})],1)],1)],1)},n=[],r=a("c973"),o=a.n(r),s=a("970b"),c=a.n(s),l=a("5bc3"),p=a.n(l),u=a("ed6d"),h=a.n(u),d=a("6b58"),m=a.n(d),f=a("36c6"),y=a.n(f),v=a("a34a"),g=a.n(v),T=a("9ab4"),C=a("60a3"),E=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("qz-wrap",{staticClass:"area-depoly-list-page security-control-main",scopedSlots:e._u([{key:"header",fn:function(){return[a("div",{staticClass:"task-search-header"},[a("div",{staticClass:"search-conditions"},[a("div",{staticClass:"label-title"},[e._v(" 布控名称 ")]),a("div",{staticClass:"search-item-style"},[a("el-input",{staticClass:"input-with-select select-icon",attrs:{placeholder:"请输入布控名称",clearable:""},on:{change:e.conditionChange},model:{value:e.areaDepolyEntity.name,callback:function(t){e.$set(e.areaDepolyEntity,"name",t)},expression:"areaDepolyEntity.name"}})],1),a("div",{staticClass:"label-title"},[e._v(" 创建人名称 ")]),a("div",{staticClass:"search-item-style"},[a("el-select",{attrs:{placeholder:"请选择创建人",multiple:!0,clearable:!0},on:{change:e.conditionChange},model:{value:e.areaDepolyEntity.operators,callback:function(t){e.$set(e.areaDepolyEntity,"operators",t)},expression:"areaDepolyEntity.operators"}},e._l(e.operatorOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("div",{staticClass:"label-title"},[e._v(" 任务状态 ")]),a("div",{staticClass:"search-item-style"},[a("el-select",{attrs:{placeholder:"请选择布控任务状态",clearable:!0},on:{change:e.conditionChange},model:{value:e.areaDepolyEntity.status,callback:function(t){e.$set(e.areaDepolyEntity,"status",t)},expression:"areaDepolyEntity.status"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("div",{staticClass:"search-item-style"},[a("el-button",{staticClass:"search-button",attrs:{type:"primary",disabled:e.isLoading},on:{click:e.fetchData}},[e._v("查询")]),a("el-button",{staticClass:"search-button",attrs:{disabled:e.isLoading},on:{click:e.resetSearchParams}},[e._v("重置")])],1)]),e.enableAdd?a("el-button",{staticClass:"addTask-button",attrs:{type:"primary"},on:{click:e.addDepoly}},[e._v("新增布控任务")]):e._e()],1)]},proxy:!0}])},[a("div",{staticClass:"area-depoly-body security-control-body",class:e.total>=10?"":"noPagination"},[a("el-table",{style:{width:"100%",overflow:"auto"},attrs:{data:e.areaDepolyData,stripe:""}},[a("el-table-column",{attrs:{prop:"name",label:"布控名称",align:"left","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"alarmCnt",label:"预警次数",align:"left","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"taskStartTime",label:"布控有效期",align:"left","show-overflow-tooltip":"","min-width":"145px"},scopedSlots:e._u([{key:"default",fn:function(t){return["FOREVER"===t.row.taskTimeType?a("div",{staticClass:"tasktime-block"},[e._v(" 长期有效 ")]):a("div",{staticClass:"tasktime-block"},[e._v(" "+e._s(e.formatDateStamp(t.row.taskStartTime))+"至"+e._s(e.formatDateStamp(t.row.taskEndTime))+" ")])]}}])}),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间",align:"left",sortable:"","show-overflow-tooltip":"","min-width":"125px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.updateTime||0===t.row.updateTime?e.formatTimeStamp(t.row.updateTime):"-"))])]}}])}),a("el-table-column",{attrs:{prop:"operator",label:"创建人",align:"left","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"status",label:"状态",align:"left","min-width":"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.id?[a("div",{class:t.row.status?"1"===t.row.status?"invalid-cell":"valid-cell":""},[a("span",{staticClass:"circle-cell"}),e._v(" "+e._s("1"===t.row.status?"禁用":"启用")+" ")]),a("el-popover",{key:t.row.id,attrs:{trigger:e.checkStatusPopover(t.row)?"hover":"manual","max-width":"420",placement:"top","popper-class":"status-popover"}},[e.checkStatusPopover(t.row)?a("div",[a("ul",{directives:[{name:"show",rawName:"v-show",value:t.row.monitor&&t.row.monitor.offlineDeviceList.length,expression:"\n scope.row.monitor &&\n scope.row.monitor.offlineDeviceList.length\n "}]},[a("h4",[e._v("设备展示情况统计")]),a("li",e._l(t.row.monitor&&t.row.monitor.offlineDeviceList,(function(i,n){return a("span",{key:n},[e._v("设备"+e._s(i)+e._s((t.row.monitor&&t.row.monitor.offlineDeviceList.length)===n+1?"已离线":"、"))])})),0)]),a("ul",{directives:[{name:"show",rawName:"v-show",value:t.row.monitor&&t.row.monitor.addressList.length,expression:"\n scope.row.monitor && scope.row.monitor.addressList.length\n "}]},[a("h4",[e._v("调用的外部接口状态统计")]),e._l(t.row.monitor&&t.row.monitor.addressList,(function(t,i){return a("li",{key:i},[a("span",[e._v(e._s(t.name)+" "+e._s(t.errorNum)+"/"+e._s(t.totalNum)+"调用失败")])])}))],2)]):e._e(),a("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[e.checkStatusPopover(t.row)?a("span",{staticClass:"exception-cell"}):e._e()])])]:void 0}}],null,!0)}),a("el-table-column",{attrs:{label:"操作",width:"150",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{staticClass:"edit-text-color",attrs:{type:"text"},on:{click:function(a){return e.editRowStatus(t.row,t.$index)}}},[e._v(e._s("1"===t.row.status?"启用":"禁用"))]),e.enableEdit?a("el-button",{staticClass:"edit-text-color",attrs:{type:"text"},on:{click:function(a){return e.editRow(t.row)}}},[e._v("编辑")]):e._e(),e.enableAdd?a("el-button",{staticClass:"edit-text-color",attrs:{type:"text"},on:{click:function(a){return e.deleteRowById(t.row)}}},[e._v("删除")]):e._e()],1)]}}])})],1)],1)])},L=[],I=a("e33d");function b(e){var t=k();return function(){var a,i=y()(e);if(t){var n=y()(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return m()(this,a)}}function k(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var A=function(e){h()(a,e);var t=b(a);function a(){var e;return c()(this,a),e=t.apply(this,arguments),e.areaDepolyEntity={pageIndex:1,pageSize:20,type:"BLACK_LIST",total:0,name:"",status:"",operators:[]},e.controlTaskTypes=[{name:"全部",code:"BLACK_LIST",type:"",flag:!0}],e.options=[{value:"1",label:"禁用"},{value:"0",label:"启用"}],e.isLoading=!1,e.areaDepolyData=[],e.isLoadingHandle=!1,e.total=0,e.value="",e}return p()(a,[{key:"sizeDataChange",value:function(e){e.type!==this.areaDepolyEntity.type?(this.areaDepolyEntity.type=e.type,this.areaDepolyEntity.name="",this.areaDepolyEntity.pageIndex=1,this.areaDepolyEntity.pageSize=20,this.areaDepolyEntity.status=void 0,this.areaDepolyEntity.operators=[],this.fetchData()):e.pageIndex!==this.areaDepolyEntity.pageIndex||e.pageSize!==this.areaDepolyEntity.pageSize?(this.areaDepolyEntity.pageIndex=e.pageIndex,this.areaDepolyEntity.pageSize=e.pageSize,this.fetchData()):e.isReset&&(this.fetchData(),this.areaDepolyEntity.isReset=!1,e.isReset=!1)}},{key:"enableAdd",get:function(){return"THREE_LEVEL_CONTROL"!==this.areaDepolyEntity.type&&"TAMPER_ALARM"!==this.areaDepolyEntity.type}},{key:"enableEdit",get:function(){return"TAMPER_ALARM"!==this.areaDepolyEntity.type}},{key:"created",value:function(){this.initareaDepolyData(),this.areaDepolyEntity.total=this.total,this.$emit("taskData",this.areaDepolyEntity)}},{key:"isPageLoading",value:function(e){this.$emit("pageLoading",e)}},{key:"addDepoly",value:function(){this.$router.push({path:"/alarmInformation/create",query:{type:this.areaDepolyEntity.type||"BLACK_LIST",activeIndex:this.parentData.activeIndex||"alarm-page"}})}},{key:"initAlarmControType",value:function(){var e=this;return new Promise((function(t,a){e.service.fetchAlarmTontrolType().then((function(a){if(a.success){var i=a.data&&a.data.filter((function(e){return e.flag}));e.controlTaskTypes=i||[]}else e.$message.error(a.message);t(!0)}))}))}},{key:"getControlTypes",value:function(e){var t=this.controlTaskTypes.filter((function(t){return t.code===e}))[0];return t&&t.name}},{key:"initareaDepolyData",value:function(){var e=o()(g.a.mark((function e(){return g.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.initAlarmControType();case 2:e.sent;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"conditionChange",value:function(){this.areaDepolyEntity.pageIndex=1,this.$emit("resetData")}},{key:"resetSearchParams",value:function(){var e=this;this.$nextTick((function(){e.$set(e,"areaDepolyEntity",{pageIndex:1,pageSize:20,type:e.areaDepolyEntity.type||"BLACK_LIST",name:"",total:0,status:"",isReset:!0,operators:[]}),e.fetchData(),e.$emit("resetData")}))}},{key:"fetchData",value:function(){var e=this;this.isLoading=!0;var t=Object.assign({},this.areaDepolyEntity);t.type?this.service.getControlTaskPage(t).then((function(t){e.areaDepolyData=t.data.list||[],e.total=t.data.total,e.areaDepolyEntity.total=e.total||0,e.areaDepolyEntity.pageIndex=t.data.pageNum?t.data.pageNum:e.areaDepolyEntity.pageIndex,e.$emit("updateTotal",e.areaDepolyEntity.total),e.isLoading=!1}),(function(t){e.$emit("updateTotal",0),e.$message.error(t)})):this.isLoading=!1}},{key:"editRowStatus",value:function(){var e=o()(g.a.mark((function e(t,a){var i=this;return g.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("确定".concat("1"===t.status?"启用":"禁用",""),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.editControlTaskStatus(t,a)}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}()},{key:"editRow",value:function(e){var t="THREE_LEVEL_CONTROL"==this.areaDepolyEntity.type?"/alarmInformation/edit/threeTask":"/alarmInformation/edit";this.$router.push({path:t,query:{id:e.id,type:this.areaDepolyEntity.type||"BLACK_LIST",activeIndex:this.parentData.activeIndex||"alarm-page"}})}},{key:"editControlTaskStatus",value:function(e,t){var a=this;if(!this.isLoadingHandle){var i="1"===e.status?"0":"1";this.isLoadingHandle=!0,this.service.editControlTaskStatus({id:e.id,status:i}).then((function(e){e.success&&(a.$message.success("修改区域布控成功"),a.fetchData()),a.isLoadingHandle=!1}),(function(){a.isLoadingHandle=!1}))}}},{key:"deleteControlTaskById",value:function(e){var t=this;this.service.delControlTaskById({id:e}).then((function(e){e.success?(t.$message.success("删除成功"),1===t.areaDepolyData.length&&(t.areaDepolyEntity.pageIndex>1?t.areaDepolyEntity.pageIndex=t.areaDepolyEntity.pageIndex-1:t.areaDepolyEntity.pageIndex=1),t.fetchData()):t.$message.error("删除失败,请重新操作")})).catch((function(e){t.$message.error(e)}))}},{key:"deleteRowById",value:function(e){var t=this;this.$confirm("此操作将删除该布控任务, 是否继续?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.deleteControlTaskById(e.id)})).catch((function(){}))}},{key:"formatTimeStamp",value:function(e){return Object(I["parseDate"])(e)}},{key:"formatDateStamp",value:function(e){var t=Object(I["parseDate"])(e);return t.substr(0,10)}},{key:"checkStatusPopover",value:function(e){return!(!e||!e.monitor||"1"!==e.monitor.monitorStatus||"0"!==e.status)}}]),a}(C["g"]);T["a"]([Object(C["e"])({type:Object,default:function(){}})],A.prototype,"sizeData",void 0),T["a"]([Object(C["e"])({type:Object,default:function(){}})],A.prototype,"parentData",void 0),T["a"]([Object(C["e"])({type:Array,default:function(){return[]}})],A.prototype,"operatorOptions",void 0),T["a"]([Object(C["h"])("sizeData",{deep:!0,immediate:!0})],A.prototype,"sizeDataChange",null),T["a"]([Object(C["h"])("isLoading")],A.prototype,"isPageLoading",null),A=T["a"]([Object(C["a"])({name:"AreaDepoly",components:{}})],A);var D=A,x=D,S=(a("ecc0"),a("2877")),R=Object(S["a"])(x,E,L,!1,null,null,null),_=R.exports,w=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",[a("qz-wrap",{staticClass:"alarm-record-container",scopedSlots:e._u([{key:"header",fn:function(){return[a("div",{staticClass:"alarm-record-search"},[a("div",{staticClass:"search-conditions"},[a("div",{staticClass:"label-title mr-bt-16"},[e._v(" 创建人名称 ")]),a("div",{staticClass:"search-item-style mr-bt-16"},[a("el-select",{attrs:{placeholder:"请选择创建人",multiple:!0,clearable:!0},on:{change:e.conditionChange},model:{value:e.alarmListEntity.operators,callback:function(t){e.$set(e.alarmListEntity,"operators",t)},expression:"alarmListEntity.operators"}},e._l(e.operatorOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("div",{staticClass:"label-title mr-bt-16"},[e._v(" 预警等级 ")]),a("div",{staticClass:"search-item-style mr-bt-16"},[a("el-select",{attrs:{placeholder:"请选择预警等级",clearable:!0},on:{change:e.conditionChange},model:{value:e.alarmListEntity.level,callback:function(t){e.$set(e.alarmListEntity,"level",t)},expression:"alarmListEntity.level"}},e._l(e.alarmLevelList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1),a("div",{staticClass:"label-title mr-bt-16"},[a("span",[e._v("布控名称")])]),a("div",{staticClass:"search-item-style mr-bt-16"},[a("el-input",{staticClass:"input-with-select select-icon",attrs:{placeholder:"请输入布控名称",clearable:""},on:{change:e.conditionChange},model:{value:e.alarmListEntity.controlTaskName,callback:function(t){e.$set(e.alarmListEntity,"controlTaskName",t)},expression:"alarmListEntity.controlTaskName"}})],1),a("div",{staticClass:"label-title mr-bt-16"},[a("span",[e._v("预警时间")])]),a("div",{staticClass:"search-item-style mr-bt-16"},[a("el-date-picker",{staticClass:"security-control-search-input",style:{"margin-right":"10px"},attrs:{clearable:"","value-format":"timestamp",type:"datetimerange","default-time":e.defaultTime,"picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{focus:e.datePickFoucs,change:e.dateTimeChange},model:{value:e.times,callback:function(t){e.times=t},expression:"times"}})],1),a("div",{staticClass:"search-item-style"},[a("el-button",{staticClass:"search-button",attrs:{type:"primary",disabled:e.isLoading},on:{click:e.fetchData}},[e._v("查询")]),a("el-button",{staticClass:"search-button",attrs:{disabled:e.isLoading},on:{click:e.resetSearchParams}},[e._v("重置")]),a("el-button",{style:{marginLeft:"30px"},attrs:{type:"search-button"},on:{click:e.exportTask}},[e._v("导出")])],1)])])]},proxy:!0}])},[a("div",{staticClass:"alarm-page-list-body security-control-body alarm-body-common",class:e.total>=10?"":"noPagination"},[e.alarmListData.length?[a("div",{staticClass:"alarm-boxs"},e._l(e.alarmListData,(function(t,i){return a("alarm-card",{key:t.captureImage+i,attrs:{data:t,showVideo:!0},on:{playVideo:e.playVideo,cardClick:e.previewPersonalInfo}})})),1)]:a("qz-no-data")],2),e.alarmInfoVisible?a("div",[a("el-dialog",{class:e.currentAlarmData.controlTypeCode+"_dialog_wrapper",attrs:{"custom-class":"preview-special-alarm-dialog",title:e.currentTypeName+"报警详情",visible:!0,"append-to-body":"",top:"0"},on:{close:e.cancelAlarmOperate}},[a("alarm-info",{attrs:{pType:e.alarmType,data:e.currentAlarmData,isShowVideo:!0,infoShowData:e.infoReceive}})],1)],1):e._e()]),a("router-view")],1)},O=[],N=a("17b0"),F=a("c2a7"),P=a("020c"),B=a("e888"),V=a("2fe1"),z=a("448a"),H=a.n(z);function M(e){var t=j();return function(){var a,i=y()(e);if(t){var n=y()(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return m()(this,a)}}function j(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Y=function(e){h()(a,e);var t=M(a);function a(){var e;return c()(this,a),e=t.apply(this,arguments),e.subDevicesIds=[],e.alarmListEntity={},e.deviceSelectVisible=!1,e}return p()(a,[{key:"deviceFocus",value:function(e){var t=this;this.deviceSelectVisible=!0,this.$nextTick((function(){t.dsDialog.open()}))}},{key:"confirmDeviceSelect",value:function(e){var t=this,a=[];this.alarmListEntity.devices=[],Object.keys(e).length>0&&Object.keys(e).map((function(t){return a.push.apply(a,H()(e[t]))})),this.subDevicesIds=[],a.map((function(e){var a,i;e.channel&&e.channel.length>0?((a=t.subDevicesIds).push.apply(a,H()(e.channel.map((function(e){return e.deviceId})))),(i=t.alarmListEntity.devices).push.apply(i,H()(e.channel.map((function(e){return e.deviceId}))))):(t.subDevicesIds.push(e.deviceId),t.alarmListEntity.devices.push(e.deviceId))})),this.alarmListEntity.deviceTemps=this.alarmListEntity.devices?"已选".concat(this.alarmListEntity.devices.length,"台"):""}}]),a}(C["g"]);T["a"]([Object(C["f"])("dsDialog")],Y.prototype,"dsDialog",void 0),Y=T["a"]([C["a"]],Y);var $=Y,G=a("ef24");function U(e,t){var a="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=K(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw r}}}}function K(e,t){if(e){if("string"===typeof e)return W(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?W(e,t):void 0}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}function Q(e){var t=q();return function(){var a,i=y()(e);if(t){var n=y()(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return m()(this,a)}}function q(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var J=function(e){h()(a,e);var t=Q(a);function a(){var e;return c()(this,a),e=t.apply(this,arguments),e.alarmListEntity={pageNo:1,pageSize:20,controlTypeCode:"BLACK_LIST",controlTaskIds:[],deviceTemps:"",controlTypeCodeCache:[],highSearch:[],devices:[],name:"",controlTaskName:"",operators:[],level:""},e.controlTypeCodeCache=0,e.alarmLevelList=[{value:"1",name:"一级预警"},{value:"2",name:"二级预警"},{value:"3",name:"三级预警"},{value:"4",name:"四级预警"},{value:"5",name:"五级预警"}],e.alarmControlTypes=[],e.defaultTime=[],e.times=[],e.searchParameterChange=!1,e.isLoading=!1,e.alarmListData=[],e.coordinateOperate=I["coordinateOperate"],e.currentAlarmData={},e.alarmType="",e.currentTypeName="",e.alarmInfoVisible=!1,e.typeJudege=I["typeJudege"],e.deviceSelectModel={},e.deviceList=[],e.alarmBodyWidth=0,e.alarmLastCard=220,e.infoReceive={},e.btnStatus=!1,e.videoPlayVisible=!1,e.devices=[{id:"",rtspUrl:""}],e.currentUserInfo=e.$store.state.user.userInfo,e.businessId=e.$store.state.user.userInfo.businessId,e.searchInfoGet=[],e.taskDeviceCodesAll=[],e.typeOperationList=[{}],e.subDevicesIds=[],e.SEARCH_PARAM_NUMBER=4,e.searchParamList=[],e.initialParam={columnName:"",operateType:"",value:"",type:""},e.updateAnalyze=!0,e.searchAttrInfo=[],e.total=0,e.pickerOptions={disabledDate:function(e){var t=Object(I["localDateStr"])();return e.getTime()>new Date(t+" 23:59:59")},shortcuts:[{text:"最近一周",onClick:function(t){e.shortcutDateTime(t,7)}},{text:"最近一个月",onClick:function(t){e.shortcutDateTime(t,30)}},{text:"最近三个月",onClick:function(t){e.shortcutDateTime(t,90)}}]},e}return p()(a,[{key:"sizeDataChange",value:function(e){e.controlTypeCode!==this.alarmListEntity.controlTypeCode?(this.alarmListEntity.controlTypeCode=e.controlTypeCode,this.$set(this,"times",[]),this.initSearchTimeData(!0),this.alarmListEntity.pageSize=20,this.alarmListEntity.pageNo=1,this.alarmListEntity.controlTaskName="",this.alarmListEntity.operators=[],this.alarmListEntity.level="",this.$set(this,"alarmListEntity",this.alarmListEntity),this.fetchData(this.alarmListEntity,[])):e.pageNo!==this.alarmListEntity.pageNo||e.pageSize!==this.alarmListEntity.pageSize?(this.alarmListEntity.pageNo=e.pageNo,this.alarmListEntity.pageSize=e.pageSize,this.fetchData(this.alarmListEntity,[])):e.isReset&&(this.fetchData(this.alarmListEntity,[]),this.alarmListEntity.isReset=!1,e.isReset=!1)}},{key:"isPageLoading",value:function(e){this.$emit("pageListLoading",e)}},{key:"created",value:function(){this.initalarmListData(),this.initBodySizeOnce(),this.alarmListEntity.total=this.total,this.$emit("alarmListData",this.alarmListEntity)}},{key:"mounted",value:function(){window.onresize=this.calcAlarmLayout,this.resetMoreSearchParams()}},{key:"beforeDestroy",value:function(){window.onresize=null}},{key:"currentPageChange",value:function(){this.searchParameterChange=!0}},{key:"shortcutDateTime",value:function(e,t){var a=Object(I["localDateStr"])(),i=new Date(a+" 23:59:59"),n=Object(I["localDateStr"])(+new Date-24*t*3600*1e3),r=new Date(n+" 00:00:00");1===t&&(i=new Date(n+" 23:59:59")),e.$emit("pick",[r,i])}},{key:"calcAlarmLayout",value:function(e){this.alarmBodyWidth=e.target.innerWidth||0,this.calcLayout()}},{key:"datePickFoucs",value:function(){this.defaultTime=["00:00:00","23:59:59"]}},{key:"dateTimeChange",value:function(e){this.conditionChange(),e&&e.length?(this.alarmListEntity.startTime=e[0],this.alarmListEntity.endTime=e[1]):(delete this.alarmListEntity.startTime,delete this.alarmListEntity.endTime)}},{key:"initBodySizeOnce",value:function(){this.alarmBodyWidth=document.body.offsetWidth,this.calcLayout()}},{key:"calcLayout",value:function(){this.alarmBodyWidth>=1280&&(this.alarmLastCard=Math.floor((this.alarmBodyWidth-48)/246))}},{key:"initalarmListData",value:function(){this.initControlTaskNameList(),this.initSearchTimeData(!0),this.initHighSearch();this.alarmListEntity.endTime,this.alarmListEntity.startTime}},{key:"initControlTaskNameList",value:function(){this.controlTypeCodeCache=0,this.alarmListEntity.controlTaskIds=[],this.alarmListEntity.controlTypeCodeCache=[]}},{key:"initHighSearch",value:function(){var e=this;this.service.getHighSearch({}).then((function(t){if(t.success){if(e.searchInfoGet=t.data,e.searchAttrInfo=[],0!==e.searchInfoGet.length){var a,i=U(e.searchInfoGet);try{for(i.s();!(a=i.n()).done;){var n=a.value;e.searchAttrInfo.push({code:n["code"],name:n["name"],type:n["type"],operation:n["operation"]})}}catch(r){i.e(r)}finally{i.f()}}}else e.$message.error(t.message)}))}},{key:"flatten",value:function(e){var t=[];if(e)for(var a=0;a<e.length;a++)Array.isArray(e[a])?t=t.concat(this.flatten(e[a])):t.push(e[a]);return t}},{key:"operationGet",value:function(e,t){var a,i=U(this.searchInfoGet);try{for(i.s();!(a=i.n()).done;){var n=a.value;n["code"]===e&&(this.$set(this.searchParamList[t],"operateType",""),this.$set(this.typeOperationList,t,n["operation"]),this.$set(this.searchParamList[t],"type",n["type"]))}}catch(r){i.e(r)}finally{i.f()}return this.typeOperationList}},{key:"conditionChange",value:function(){this.alarmListEntity.pageNo=1,this.$emit("resetData")}},{key:"initSearchTimeData",value:function(e){var t=Object(I["localDateStr"])(),a=new Date(t+" 23:59:59"),i=Object(I["localDateStr"])(new Date(+new Date-6048e5)),n=new Date(i+" 00:00:00");this.times=e?[n,a]:[],i=i.replace(/\//g,"-"),t=t.replace(/\//g,"-"),this.alarmListEntity.startTime=+n,this.alarmListEntity.endTime=+a}},{key:"resetSearchParams",value:function(){var e=this;this.$nextTick((function(){e.$set(e,"alarmListEntity",{pageNo:1,pageSize:20,deviceTemps:"",controlTypeCode:e.alarmListEntity.controlTypeCode||"BLACK_LIST",controlTaskIds:[],controlTypeCodeCache:[],devices:[],highSearch:[],controlTaskName:"",isReset:!0,total:0,operators:[],level:""}),e.subDevicesIds=[],e.resetMoreSearchParams(),e.initControlTaskNameList(),e.initSearchTimeData(!0),e.alarmListEntity.pageNo=1,e.btnStatus=!0,e.updateAnalyze=!e.updateAnalyze,e.fetchData(e.alarmListEntity,[]),e.$emit("resetData")}))}},{key:"resetMoreSearchParams",value:function(){this.searchParamList=[];for(var e=0;e<this.SEARCH_PARAM_NUMBER;e++)this.searchParamList.push(Object.assign({type:"text"},this.initialParam))}},{key:"exportTask",value:function(){var e=this;if(0!==this.alarmListData.length){var t=5e3;t="GATHER"===this.alarmListEntity.controlTypeCode||"HELMENT"===this.alarmListEntity.controlTypeCode?2e3:5e3,Object(N["cwQzDownload"])({message:"最大导出上限".concat(t,"条,请确认是否导出?"),confirmFn:function(){e.alarmControlTypes.filter((function(t){return t.code===e.alarmListEntity.controlTypeCode}));var t,a=JSON.parse(JSON.stringify(e.alarmListEntity)),i=Object.assign(a,{controlTaskCode:e.alarmListEntity.controlTypeCode,userName:e.currentUserInfo.loginName,userId:e.currentUserInfo.userId}),n=document.getElementsByClassName("expand-item");if(n&&n.length>1){var r=n[1].getBoundingClientRect();r&&(t={targetX:r.left||0,targetY:r.top||0})}return Object(N["cwQzDownloadAnimation"])(t),new Promise((function(t){e.service.addExportRecord(i).then((function(t){t.success?e.$message.success("文件已加入下载队列,如需查看请转到数据中心"):e.$message.error(t.message||"导出失败")}))}))}})}else this.$message.error("导出记录不能为空")}},{key:"checkTimeRankMonth",value:function(){var e=this.alarmListEntity.startTime,t=this.alarmListEntity.endTime;return t-e>5184e6&&(this.$message.warning("查询时间段过长,数据量过大,请耐心等待"),!1)}},{key:"fetchData",value:function(e,t){var a=this;this.isLoading=!0,e||(e=this.alarmListEntity),e=JSON.parse(JSON.stringify(this.alarmListEntity));this.checkTimeRankMonth();var i={controlTypeCode:e.controlTypeCode,endTime:e.endTime,pageNo:this.alarmListEntity.pageNo,pageSize:this.alarmListEntity.pageSize,startTime:e.startTime,controlTaskName:this.alarmListEntity.controlTaskName||"",operators:this.alarmListEntity.operators||[],level:this.alarmListEntity.level||""};!0===this.searchParameterChange&&(i.pageNo=1),this.alarmListData=[],i.controlTypeCode?this.service.fetchAlarmRecord(i).then((function(e){e.success&&e.data&&e.data.data?(a.alarmListData=e.data.data||[],a.alarmListData.forEach((function(e){a.coordinateOperate(e)})),a.total=e.data.total||0,a.alarmListEntity.total=a.total,a.$emit("updateTotal",a.alarmListEntity.total),a.alarmListEntity.pageNo=e.data.pageNo,a.searchParameterChange=!1,!0===e.data.overflow&&a.alarmListEntity.pageNo===Math.ceil(a.total/a.alarmListEntity.pageSize)&&a.$message({message:"最多显示".concat(e.data.total,"条报警数据,其余记录请重新选择条件查询"),type:"warning"}),a.$forceUpdate()):(a.alarmListData=[],e.success||a.$message.error(e.message),a.$emit("updateTotal",0)),a.isLoading=!1,a.btnStatus=!1})):(this.isLoading=!1,this.btnStatus=!1)}},{key:"cancelAlarmOperate",value:function(){this.alarmType="",this.currentAlarmData={},this.infoReceive={},this.currentTypeName="",this.alarmInfoVisible=!1}},{key:"previewPersonalInfo",value:function(e){this.alarmType=e.controlTypeCode,this.currentAlarmData=e,this.currentTypeName=e.controlTypeName,"FREQUENT_STRANGER"!==e.controlTypeCode?this.alarmInfoVisible=!0:this.$router.push({path:"/alarmInformation/frequent",query:{id:e.id,type:this.alarmListEntity.controlTypeCode||"BLACK_LIST",activeIndex:this.parentData.activeIndex||"alarm-page"}})}},{key:"playVideo",value:function(e,t){var a=this;e.stopPropagation(),t.hasVideo&&this.service.getRtspUrl({deviceId:t.deviceId,captureTime:t.captureTime}).then((function(e){e.success?e.data.cameraVodRtspUrl?(a.videoPlayVisible=!0,a.devices[0].rtspUrl=e.data.cameraVodRtspUrl):a.$message.error("当前播放链接不可用,请重新操作"):a.$message.error(e.message)}))}}]),a}(Object(V["mixins"])($));T["a"]([Object(C["e"])({type:Object,default:function(){return{controlTypeCode:void 0}}})],J.prototype,"sizeData",void 0),T["a"]([Object(C["e"])({type:Object,default:function(){}})],J.prototype,"parentData",void 0),T["a"]([Object(C["e"])({type:Array,default:function(){return[]}})],J.prototype,"operatorOptions",void 0),T["a"]([Object(C["h"])("sizeData",{deep:!0,immediate:!0})],J.prototype,"sizeDataChange",null),T["a"]([Object(C["h"])("isLoading")],J.prototype,"isPageLoading",null),J=T["a"]([Object(C["a"])({name:"AlarmList",components:{AlarmInfo:F["a"],DeviceSelectDialog:P["a"],AlarmCard:G["a"],AlarmSearch:B["a"]}})],J);var X=J,Z=X,ee=(a("3cc4"),Object(S["a"])(Z,w,O,!1,null,null,null)),te=ee.exports,ae=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"tagCcontainerRef",staticClass:"control-type-tag-container",style:{height:e.isUp?"106px":"auto"}},[e._l(e.AllTypeTags,(function(t,i){return a("div",{key:i,staticClass:"control-type-tagItem",class:e.activeTypeIndex===t.type?"activeStyle":"control-type-tagItem",on:{click:function(a){return e.typeClick(t)}}},[a("div",{staticClass:"tagItem-container"},[a("div",{staticClass:"tagItem-icon-container"},[a("svg-icon",{staticClass:"tagSvg-style",staticStyle:{width:"32px",height:"32px"},attrs:{name:t.iconName,color:"currentColor"}})],1),a("div",{staticClass:"tagItem-title"},[e._v(e._s(t.title))])])])})),e.showArrow?a("div",{staticClass:"icon-wrap",on:{click:e.handleArrow}},[e.isUp?a("i",{staticClass:"el-icon-arrow-down arrow"}):a("i",{staticClass:"el-icon-arrow-up arrow"})]):e._e()],2)},ie=[];function ne(e){var t=re();return function(){var a,i=y()(e);if(t){var n=y()(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return m()(this,a)}}function re(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var oe=function(e){h()(a,e);var t=ne(a);function a(){var e;return c()(this,a),e=t.apply(this,arguments),e.isUp=!1,e.showArrow=!0,e}return p()(a,[{key:"typeClick",value:function(e){this.$emit("typeChange",e)}},{key:"handleArrow",value:function(){this.isUp=!this.isUp}},{key:"mounted",value:function(){this.showArrow=this.tagCcontainerRef.offsetHeight>106}}]),a}(C["g"]);T["a"]([Object(C["f"])()],oe.prototype,"tagCcontainerRef",void 0),T["a"]([Object(C["e"])({type:Array,default:function(){return[]}})],oe.prototype,"AllTypeTags",void 0),T["a"]([Object(C["e"])({type:String,default:"BLACK_LIST"})],oe.prototype,"activeTypeIndex",void 0),oe=T["a"]([Object(C["a"])({})],oe);var se=oe,ce=se,le=(a("071e"),Object(S["a"])(ce,ae,ie,!1,null,null,null)),pe=le.exports,ue=a("93f3"),he=a("6fc5"),de=a("0613"),me=a("a0d6");function fe(e){var t=ye();return function(){var a,i=y()(e);if(t){var n=y()(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return m()(this,a)}}function ye(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var ve=function(e){h()(a,e);var t=fe(a);function a(){var e;return c()(this,a),e=t.apply(this,arguments),e.alarmInformation={pageIndex:1,pageSize:20,total:0},e.parentData={},e.operatorOptions=[],e.isListLoading=!1,e.isAreaLoading=!1,e.controlTaskTypes=[],e.typeCache="",e.alarmInformationList={pageNo:1,pageSize:20,total:0},e.pageForm={pageIndex:1,pageSize:20},e.returnIndex="alarm-page",e.isPageLoading=!1,e.activeTypeIndexRecord="BLACK_LIST",e.userfulTypes=[],e.activeIndex="alarm-page",e.ALL_TYPES_TAGS_RECORD=[],e}return p()(a,[{key:"totalShow",get:function(){return this.alarmInformation.total||0}},{key:"totalListShow",get:function(){return this.alarmInformationList.total||0}},{key:"isPageShow",get:function(){return this.alarmInformation.total>0}},{key:"isPageListShow",get:function(){return this.alarmInformationList.total>0}},{key:"resetAreaData",value:function(){this.$set(this.alarmInformation,"pageIndex",1),this.$set(this.alarmInformation,"pageSize",20)}},{key:"resetListData",value:function(){this.$set(this.alarmInformationList,"pageNo",1),this.$set(this.alarmInformationList,"pageSize",20)}},{key:"updateListTotal",value:function(e){this.alarmInformationList.total=e||0===e?e:0}},{key:"getLoading",get:function(){return"alarm-page"===this.activeIndex?!0===this.isAreaLoading:!0===this.isListLoading}},{key:"updateDeployTotal",value:function(e){this.alarmInformation.total=e||0===e?e:0}},{key:"pageDataRecord",value:function(e){var t=JSON.parse(JSON.stringify(e));this.typeCache&&(t.type=this.typeCache),this.$set(this,"alarmInformation",t)}},{key:"pageDataListRecord",value:function(e){var t=JSON.parse(JSON.stringify(e));this.typeCache&&(t.controlTypeCode=this.typeCache),this.$set(this,"alarmInformationList",t)}},{key:"handleSizeChange",value:function(e){this.alarmInformation.pageSize=e,this.$set(this,"alarmInformation",this.alarmInformation)}},{key:"handleListSizeChange",value:function(e){this.alarmInformationList.pageSize=e,this.$set(this,"alarmInformationList",this.alarmInformationList)}},{key:"typeChange",value:function(e){var t=this;Object(he["e"])(me["a"],de["a"])&&Object(he["e"])(me["a"],de["a"]).SAVE_TASK_INFO(""),this.activeTypeIndexRecord=e.type,this.$nextTick((function(){t.alarmInformation.pageSize=20,t.alarmInformationList.pageSize=20,t.alarmInformation.pageIndex=1,t.alarmInformationList.pageNo=1,t.alarmInformationList.controlTypeCode=e.type,t.alarmInformation.type=e.type,t.getOperatorList(e.type),t.$set(t,"alarmInformation",t.alarmInformation),t.$set(t,"alarmInformationList",t.alarmInformationList)}))}},{key:"getTaskTypes",value:function(){var e=this;return this.service.fetchAlarmTontrolType().then((function(t){if(t.success)if(e.controlTaskTypes=t.data||[],t.data&&t.data.length>0){t.data.forEach((function(t){t.flag&&e.userfulTypes.push(t.code)})),e.activeTypeIndexRecord=e.activeTypeIndexRecord||e.userfulTypes[0],e.alarmInformation.type=e.alarmInformation.type||e.userfulTypes[0];var a=JSON.parse(JSON.stringify(ue["a"]));e.ALL_TYPES_TAGS_RECORD=a.filter((function(t){return e.userfulTypes.indexOf(t.type)>-1})),e.parentData.allTypes=e.ALL_TYPES_TAGS_RECORD||[],e.parentData.activeIndex=e.activeIndex}else e.ALL_TYPES_TAGS_RECORD=[];else e.ALL_TYPES_TAGS_RECORD=[],e.$message.error(t.message),e.controlTaskTypes=[]}))}},{key:"getOperatorList",value:function(e){var t=this,a={controlTypeCode:e||"BLACK_LIST"};this.service.getOperatorList(a).then((function(e){if(e.success){var a=[];e.data&&e.data.operators&&e.data&&e.data.operators.length>0&&(e.data.operators.forEach((function(e){e&&a.push({label:e,value:e})})),t.operatorOptions=a)}else t.operatorOptions=[],e.message?t.$message.error(e.message):t.$message.error("获取创建人失败")}))}},{key:"handleCurrentChange",value:function(e){this.alarmInformation.pageIndex=e,this.$set(this,"alarmInformation",this.alarmInformation)}},{key:"handleListCurrentChange",value:function(e){this.alarmInformationList.pageNo=e,this.$set(this,"alarmInformationList",this.alarmInformationList)}},{key:"indexChange",value:function(e,t){this.parentData.activeIndex=this.activeIndex}},{key:"pageListLoading",value:function(e){this.isListLoading=!!e}},{key:"pageLoading",value:function(e){this.isAreaLoading=!!e}},{key:"created",value:function(){var e=o()(g.a.mark((function e(){var t,a;return g.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t="",t=this.$route.query.type||"BLACK_LIST",this.returnIndex=this.$route.query.activeIndex||"alarm-page",this.activeIndex=this.returnIndex,this.getTaskTypes(),a=sessionStorage.getItem("taskInfoSave"),a?(this.typeCache=a||"BLACK_LIST",this.activeTypeIndexRecord=a||"BLACK_LIST"):(this.typeCache=t||"BLACK_LIST",this.activeTypeIndexRecord=t||"BLACK_LIST"),this.getOperatorList(this.activeTypeIndexRecord);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),a}(C["g"]);ve=T["a"]([Object(C["a"])({name:"AlarmIndex",components:{AreaDepolyIndex:_,AlarmList:te,ControlTypeTag:pe}})],ve);var ge=ve,Te=ge,Ce=(a("8da0"),Object(S["a"])(Te,i,n,!1,null,null,null));t["default"]=Ce.exports},"6ca1d":function(e,t,a){e.exports=a.p+"img/17.ce211ea3.svg"},"739e":function(e,t,a){e.exports=a.p+"img/hezi-offline.a860bd37.svg"},7545:function(e,t,a){e.exports=a.p+"img/ipc-online.ee0c9563.svg"},7889:function(e,t,a){},"7a58":function(e,t,a){e.exports=a.p+"img/nvr-offline.937cb21e.svg"},"7eb6":function(e,t,a){"use strict";a.d(t,"a",(function(){return m}));var i=a("970b"),n=a.n(i),r=a("ed6d"),o=a.n(r),s=a("6b58"),c=a.n(s),l=a("36c6"),p=a.n(l),u=a("2b0e");function h(e){var t=d();return function(){var a,i=p()(e);if(t){var n=p()(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return c()(this,a)}}function d(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var m=function(e){o()(a,e);var t=h(a);function a(){return n()(this,a),t.apply(this,arguments)}return a}(u["default"])},"7faf":function(e,t,a){e.exports=a.p+"img/18.a7e278a9.svg"},8933:function(e,t,a){e.exports=a.p+"img/task.be0c063e.svg"},"8da0":function(e,t,a){"use strict";a("9384")},9157:function(e,t,a){e.exports=a.p+"img/11.3c2bd05d.svg"},9384:function(e,t,a){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",appHeaderBg:"#014051",appIconBg:"#6758F3",appIconColor:"#FFFFFF",appIconSize:"30px",appNameColor:"#FFFFFF",appNameSize:"30px"}},"93f3":function(e,t,a){"use strict";a.d(t,"d",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return o}));a("448a");var i=[{value:"0",label:"周一"},{value:"1",label:"周二"},{value:"2",label:"周三"},{value:"3",label:"周四"},{value:"4",label:"周五"},{value:"5",label:"周六"},{value:"6",label:"周日"}],n={1:"一",2:"二",3:"三",4:"四",5:"五"},r={1:"#E8684A",2:"#FF9D4D",3:"#F6BD16",4:"#5B8FF9",5:"#ABABAB"},o=[{type:"BLACK_LIST",title:"重点人员布控",iconName:"icon-BLACK_LIST"},{type:"STRANGER",title:"陌生人布控",iconName:"STRANGER"},{type:"FREQUENT_STRANGER",title:"频繁出没布控",iconName:"FREQUENT_STRANGER"},{type:"DEVICE_ROI",title:"人员入侵布控",iconName:"DEVICEROI"},{type:"GATHER",title:"人员聚集布控",iconName:"GATHER"},{type:"BODY_PROPERTIES",title:"行人属性布控",iconName:"BODYPROPERTIES"},{type:"PLATE",title:"重点车辆布控",iconName:"PLATE"},{type:"NON_VEHICLE",title:"非机动车布控",iconName:"NOVEHICLE"},{type:"FACE_PROPERTIES",title:"人脸属性布控",iconName:"FACEPROPERTIES"},{type:"HELMENT",title:"未戴安全帽布控",iconName:"SAFEHELMET"},{type:"BATTERY_VEHICLE",title:"电瓶车布控",iconName:"BATTERYVEHICLE"},{type:"THREE_LEVEL_CONTROL",title:"三级布控",iconName:"icon-THREE_LEVEL_CONTROL"},{type:"FIRE",title:"火点烟雾",iconName:"icon-FIRE"},{type:"SMOKING",title:"抽烟检测",iconName:"icon-SMOKING"},{type:"VEHICLE_BLOCKED",title:"车辆堵塞",iconName:"icon-VEHICLE_BLOCKED"},{type:"VEHICLE_ILLEGAL_PARK",title:"车辆违停",iconName:"icon-VEHICLE_ILLEGAL_PARK"},{type:"TAMPER_ALARM",title:"防拆报警",iconName:"icon-TAMPER_ALARM"}]},a53a:function(e,t,a){e.exports=a.p+"img/zhuapai-offline.47469e7e.svg"},b633:function(e,t,a){},b7b0:function(e,t,a){e.exports=a.p+"img/2.8d2895c0.svg"},cc82:function(e,t,a){"use strict";a("7889")},ccb5:function(e,t,a){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",appHeaderBg:"#014051",appIconBg:"#6758F3",appIconColor:"#FFFFFF",appIconSize:"30px",appNameColor:"#FFFFFF",appNameSize:"30px"}},db6c:function(e,t,a){"use strict";a("b633")},dbab:function(e,t,a){e.exports=a.p+"img/zhuapai-online.ec313ee6.svg"},dc5b:function(e,t,a){e.exports=a.p+"img/15.dbec71aa.svg"},deba:function(e,t,a){e.exports=a.p+"img/time.0ed9c24c.svg"},e223:function(e,t,a){e.exports=a.p+"img/nvr-online.0d409b27.svg"},e5da:function(e,t,a){e.exports=a.p+"img/1.c45034e8.svg"},e888:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"alarm-search-container"},[e._m(0),a("el-select",{staticClass:"search-input",attrs:{placeholder:"请选择布控类型"},on:{change:e.handleRepoTypeChange},model:{value:e.searchForm.controlTypeCode,callback:function(t){e.$set(e.searchForm,"controlTypeCode",t)},expression:"searchForm.controlTypeCode"}},e._l(e.controlTypeCodes,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.code}})})),1),e._m(1),a("div",{staticClass:"custom-cascader-block search-input"},[e.controlTypeCodeCache?a("div",{staticClass:"virtual-control-type",attrs:{disabled:!e.searchForm.controlTypeCode}},[e._v(" 已选"+e._s(e.controlTypeCodeCache)+"种任务 ")]):e._e(),a("el-cascader",{attrs:{disabled:!e.searchForm.controlTypeCode,options:e.controlTaskNames,separator:" ","collapse-tags":"",placeholder:"请选择布控任务","show-all-levels":!1,props:{multiple:!0,value:"id",label:"name"}},on:{change:e.handleCascaderChange},nativeOn:{click:function(t){return e.cliclCascader.apply(null,arguments)}},model:{value:e.searchForm.controlTypeCodeCache,callback:function(t){e.$set(e.searchForm,"controlTypeCodeCache",t)},expression:"searchForm.controlTypeCodeCache"}})],1),e._m(2),a("el-select",{staticClass:"search-input",attrs:{"popper-class":"device-select-wrap",clearable:"",placeholder:"请选择布控设备"},on:{focus:e.deviceFocus,clear:e.deviceClear},model:{value:e.searchForm.deviceTemps,callback:function(t){e.$set(e.searchForm,"deviceTemps",t)},expression:"searchForm.deviceTemps"}}),"#/alarmInformation/record"===e.currentAddress?a("el-date-picker",{staticClass:"security-control-search-input",style:{"margin-right":"10px"},attrs:{clearable:"","value-format":"timestamp",type:"datetimerange","default-time":e.defaultTime,"picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{focus:e.datePickFoucs,change:e.dateTimeChange},model:{value:e.times,callback:function(t){e.times=t},expression:"times"}}):e._e(),a("el-button",{staticClass:"search-button",attrs:{type:"primary",disabled:e.isLoading},on:{click:e.fetchData}},[e._v("查询")]),e.showMoreSearchButton?a("el-button",{staticClass:"search-button",attrs:{type:"primary"},on:{click:e.searchMore}},[e._v("高级查询")]):e._e(),a("el-button",{attrs:{disabled:e.isLoading},on:{click:e.resetSearchParams}},[e._v("重置")]),e.deviceSelectVisible?a("device-select-dialog",{ref:"dsDialog",attrs:{"task-ids":e.flatten(e.searchForm.controlTypeCodeCache)},on:{confirm:e.confirmDeviceSelect,cancel:e.cancelDevice}}):e._e()],1)},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"label-title"},[a("span",[e._v("布控类型")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"label-title"},[a("span",[e._v("布控任务")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"label-title"},[a("span",[e._v("布控设备")])])}],r=a("970b"),o=a.n(r),s=a("5bc3"),c=a.n(s),l=a("ed6d"),p=a.n(l),u=a("6b58"),h=a.n(u),d=a("36c6"),m=a.n(d),f=a("9ab4"),y=a("60a3"),v=a("b028"),g=a("020c"),T=a("2fe1"),C=a("e33d");function E(e){var t=L();return function(){var a,i=m()(e);if(t){var n=m()(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return h()(this,a)}}function L(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var I=function(e){p()(a,e);var t=E(a);function a(){var e;return o()(this,a),e=t.apply(this,arguments),e.controlTypeCodes=[],e.controlTaskNames=[],e.controlTypeCodeCache=0,e.taskDeviceCodesAll=[],e.deviceList=[],e.currentAddress="",e.defaultTime=[],e.times=[],e.isLoading=!1,e.showMoreSearchButton=!1,e.pickerOptions={disabledDate:function(e){var t=Object(C["localDateStr"])();return e.getTime()>new Date(t+" 23:59:59")},shortcuts:[{text:"最近一周",onClick:function(t){e.shortcutDateTime(t,7)}},{text:"最近一个月",onClick:function(t){e.shortcutDateTime(t,30)}},{text:"最近三个月",onClick:function(t){e.shortcutDateTime(t,90)}}]},e.searchForm={controlTypeCode:"",deviceTemps:"",devices:[],deviceIds:[],controlTypeCodeCache:[]},e}return c()(a,[{key:"watchSearchParamsChange",value:function(e){e&&(this.searchForm=this.searchParams)}},{key:"handleRepoTypeChange",value:function(){this.searchForm.deviceTemps="",this.fetchTaskNameList(),this.fetchData()}},{key:"fetchControlType",value:function(){var e=this;this.service.fetchAlarmTontrolType().then((function(t){if(t.success){var a=t.data&&t.data.filter((function(e){return e.flag}));e.controlTypeCodes=a||[],e.controlTypeCodes.unshift({name:"全部",code:"ALL",type:"",flag:!0}),e.searchForm.controlTypeCode="ALL"}else e.$message.error(t.message)}))}},{key:"fetchHighSearchButton",value:function(){var e=this;this.service.enableHighSearch().then((function(t){t.success&&(e.showMoreSearchButton=t.data)}))}},{key:"fetchTaskNameList",value:function(){var e=this,t=this.searchForm.controlTypeCode||"ALL";this.controlTypeCodeCache=0,this.searchForm.controlTaskIds=[],this.searchForm.controlTypeCodeCache=[],this.service.getControlTypeList({type:t}).then((function(t){t.success?e.controlTaskNames=t.data||[]:e.$message.error(t.message)}))}},{key:"shortcutDateTime",value:function(e,t){var a=Object(C["localDateStr"])(),i=new Date(a+" 23:59:59"),n=Object(C["localDateStr"])(+new Date-24*t*3600*1e3),r=new Date(n+" 00:00:00");1===t&&(i=new Date(n+" 23:59:59")),e.$emit("pick",[r,i])}},{key:"cliclCascader",value:function(){}},{key:"flatten",value:function(e){var t=[];if(e)for(var a=0;a<e.length;a++)Array.isArray(e[a])?t=t.concat(this.flatten(e[a])):t.push(e[a]);return t}},{key:"searchMore",value:function(){this.$emit("searchMore")}},{key:"fetchDeviceByTask",value:function(){var e=this;this.taskDeviceCodesAll=[],this.service.getTaskDevice({taskIds:this.flatten(this.searchForm.controlTypeCodeCache)}).then((function(t){if(t.success){var a=t.data||[];a.forEach((function(t){t.devices.forEach((function(t){t.channel&&t.channel.length>0?t.channel.forEach((function(t){-1===e.taskDeviceCodesAll.indexOf(t.deviceId)&&e.taskDeviceCodesAll.push(t.deviceId)})):-1===e.taskDeviceCodesAll.indexOf(t.deviceId)&&e.taskDeviceCodesAll.push(t.deviceId)}))}))}else e.$message.error(t.message)}))}},{key:"handleCascaderChange",value:function(e){e=e||[],e&&(this.$emit("currentPageChange"),this.searchForm.controlTaskIds=this.flatten(e),this.controlTypeCodeCache=e.length,this.searchForm.deviceTemps="",this.searchForm.devices=[],this.subDevicesIds=[],this.fetchDeviceByTask())}},{key:"datePickFoucs",value:function(){this.defaultTime=["00:00:00","23:59:59"]}},{key:"dateTimeChange",value:function(e){e&&e.length?(this.searchForm.startTime=e[0],this.searchForm.endTime=e[1],this.$emit("currentPageChange")):this.initSearchTimeData(!1)}},{key:"initSearchTimeData",value:function(e){var t=Object(C["localDateStr"])(),a=new Date(t+" 23:59:59"),i=Object(C["localDateStr"])(new Date(+new Date-2592e6)),n=new Date(i+" 00:00:00");this.times=e?[n,a]:[],i=i.replace(/\//g,"-"),t=t.replace(/\//g,"-"),this.searchForm.startTime=+n,this.searchForm.endTime=+a}},{key:"resetSearchParams",value:function(){var e=this;this.searchForm={controlTypeCode:"ALL",controlTaskIds:[],deviceTemps:"",devices:[],deviceIds:[],controlTypeCodeCache:[],pageNo:1,pageSize:10,highSearch:[]},this.isLoading=!0,this.subDevicesIds=[],this.deviceList=[],this.dsDialog&&this.dsDialog.clear(),this.fetchTaskNameList(),this.initSearchTimeData(!0),this.$emit("resetSearchParams"),this.fetchData(),setTimeout((function(){e.isLoading=!1}),1e3)}},{key:"cancelDevice",value:function(){this.searchForm.deviceTemps="",this.dsDialog&&this.dsDialog.clear()}},{key:"deviceClear",value:function(){this.deviceList=[],this.subDevicesIds=[],this.searchForm.devices=[],this.searchForm.deviceIds=[],this.searchForm.deviceTemps="",this.subDevicesIds=[],this.dsDialog&&this.dsDialog.clear(),this.fetchData()}},{key:"fetchData",value:function(){var e=this;this.isLoading=!0,setTimeout((function(){e.isLoading=!1}),1e3),this.$emit("fetch",this.searchForm,this.taskDeviceCodesAll)}},{key:"created",value:function(){this.currentAddress=window.location.hash,this.searchForm=this.searchParams,this.fetchControlType(),this.fetchTaskNameList(),this.initSearchTimeData(!0)}}]),a}(Object(T["mixins"])(v["a"]));f["a"]([Object(y["e"])({default:function(){}})],I.prototype,"searchParams",void 0),f["a"]([Object(y["h"])("searchParams",{deep:!0,immediate:!0})],I.prototype,"watchSearchParamsChange",null),I=f["a"]([Object(y["a"])({components:{DeviceSelectDialog:g["a"]}})],I);var b=I,k=b,A=(a("db6c"),a("2877")),D=Object(A["a"])(k,i,n,!1,null,null,null);t["a"]=D.exports},ecc0:function(e,t,a){"use strict";a("f7fd")},ef24:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("qz-card",{style:{width:e.switchCardSize(this.data,1),height:e.switchCardSize(this.data,2)},attrs:{title:e.data.controlTypeName,subtitle:e.captureTimeFormat(e.data),"show-header":!1,config:e.config,images:e.imagesRecord},on:{cardClick:e.handleCardClick},scopedSlots:e._u([{key:"footer",fn:function(){},proxy:!0},{key:"afterImage",fn:function(){return[a("div",{staticClass:"alarm-container"},[a("div",{staticClass:"alarm-header"},[a("span",{staticClass:"task-type"},[e._v(e._s(e.controlTypeNameShow(e.data)))]),e.data.alarmLevel?a("p",{class:["alarm-level",e.alarmLevelOperate(e.data.alarmLevel,2)]},[a("span",{staticClass:"alarm-level-text"},[e._v(e._s(e.alarmLevelOperate(e.data.alarmLevel,1)))])]):e._e(),"FREQUENT_STRANGER"===e.data.controlTypeCode?a("div",{staticClass:"frequent-style"},[e._v(" 最近"),a("span",[e._v(e._s(e.data.recentDays||0===e.data.recentDays?e.data.recentDays:"-"))]),e._v("天内出现:"),a("span",{staticClass:"frequent-numbers"},[e._v(e._s(e.data.appearanceTimes||0===e.data.appearanceTimes?e.data.appearanceTimes:"-"))]),e._v(e._s(e.data.appearanceMethod||0===e.data.appearanceMethod?0===e.data.appearanceMethod?"次":"天":"-")),a("span")]):"GATHER"===e.data.controlTypeCode?a("div",{staticClass:"roi-message"},[e._v(" 当前区域"),a("span",{staticClass:"roi-number"},[e._v(e._s(e.data.snapNum||0===e.data.snapNum?e.data.snapNum:"-"))]),e._v("人"),a("span",[e._v("(阈值上限"+e._s(e.data.threshold||0===e.data.threshold?e.data.threshold:"-")+"人)")])]):e._e()]),a("div",{staticClass:"alarm-label-container"},[e.content.length>0?a("div",{staticClass:"qz-card-content__form"},e._l(e.content,(function(t,i){return a("div",{key:i,staticClass:"card-form-item"},[a("el-tooltip",{attrs:{placement:"bottom","max-width":"200",content:t.label}},[a("img",{staticClass:"img-icon",attrs:{src:t.icon?t.icon:"",alt:""}})]),e.data.controlTypeCode&&e.excludeTypes.indexOf(e.data.controlTypeCode)>-1?a("span",[t.value.length>=13?a("el-tooltip",{key:i,staticClass:"item",attrs:{content:t.value,effect:"dark",placement:"bottom"}},[a("p",{staticClass:"label-value",style:{marginLeft:"3px"}},[e._v(e._s(t.value))])]):a("p",{staticClass:"label-value"},[e._v(e._s(t.value||"-"))])],1):a("span",[t.value.length>=17?a("el-tooltip",{key:i,staticClass:"item",attrs:{content:t.value,effect:"dark",placement:"bottom"}},[a("p",{staticClass:"label-value",style:{width:"210px",marginLeft:"3px"}},[e._v(" "+e._s(t.value)+" ")])]):a("p",{staticClass:"label-value",style:{width:"210px"}},[e._v(e._s(t.value||"-"))])],1)],1)})),0):e._e()])])]},proxy:!0}])},["FACE_PROPERTIES"===e.data.controlTypeCode||"BODY_PROPERTIES"===e.data.controlTypeCode?a("div",{staticClass:"properties-container",attrs:{slot:"innerImage"},slot:"innerImage"},e._l(e.taskProperties,(function(t,i){return a("div",{key:i,staticClass:"property-label"},[a("span",{staticClass:"property-item"},[e._v(e._s(t))])])})),0):e._e()])},n=[],r=a("c973"),o=a.n(r),s=a("970b"),c=a.n(s),l=a("5bc3"),p=a.n(l),u=a("ed6d"),h=a.n(u),d=a("6b58"),m=a.n(d),f=a("36c6"),y=a.n(f),v=a("a34a"),g=a.n(v),T=a("9ab4"),C=a("60a3"),E=a("1668"),L=a("e33d"),I=a("6fc5"),b=a("9dba"),k=a("0613");function A(e){var t=D();return function(){var a,i=y()(e);if(t){var n=y()(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return m()(this,a)}}function D(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var x=a("deba"),S=a("4e80"),R=a("8933"),_=function(e){h()(a,e);var t=A(a);function a(){var e;return c()(this,a),e=t.apply(this,arguments),e.currentUserName="",e.watermarkSetting={text:"",fontSize:30,offsetY:200,fontColor:"rgba(0,0,0,0.3)"},e.captureTimeFormat=E["g"],e.imageDataFormat=E["k"],e.captureImgHideDescType=E["f"],e.deployImgHideType=E["i"],e.groupDisaplyName=E["j"],e.cardIdShowLogic=E["h"],e.alarmShowGroupNumber=E["b"],e.typeJudege=L["typeJudege"],e.taskProperties=[],e.excludeTypes=["STRANGER","FREQUENT_STRANGER","DEVICE_ROI","NON_VEHICLE","PLATE"],e.config={},e.content=[],e.images=[],e.dataRecord={},e}return p()(a,[{key:"imagesRecord",get:function(){return this.images},set:function(e){}},{key:"watchDataChange",value:function(e){e&&this.init()}},{key:"created",value:function(){var e=Object(I["e"])(b["a"],k["a"]);this.currentUserName=e.userInfo&&Object.keys(e.userInfo).length>0?e.userInfo.loginName:"",this.watermarkSetting.text=this.currentUserName+" "+this.$utils.parseDate(new Date),this.data&&this.init()}},{key:"init",value:function(){this.config={title:this.data.controlTypeName,subtitle:this.captureTimeFormat(this.data),headColor:this.data.color||"red",fontColor:"#ffffff"};var e=this.formatAlarmProperties(this.data.taskProperties);e&&e.length>0&&(this.taskProperties=Object.assign([],e),this.taskProperties.length>=4&&(this.taskProperties=this.taskProperties.splice(0,3))),this.getContent();var t=this.imageDataFormat(this.data,"capture",!1);this.calcWidth(t)}},{key:"swicthImageSize",value:function(e,t){return e&&1===t?"THREE_LEVEL_CONTROL"===e.controlTypeCode||"SMOKING"===e.controlTypeCode||"FIRE"===e.controlTypeCode||"VEHICLE_ILLEGAL_PARK"===e.controlTypeCode||"VEHICLE_BLOCKED"===e.controlTypeCode?"249":"STRANGER"===e.controlTypeCode||"FREQUENT_STRANGER"===e.controlTypeCode||"DEVICE_ROI"===e.controlTypeCode||"NON_VEHICLE"===e.controlTypeCode||"PLATE"===e.controlTypeCode||"BATTERY_VEHICLE"===e.controlTypeCode?"182":(e.controlTypeCode,"120"):e&&2===t?"GATHER"===e.controlTypeCode||"HELMENT"===e.controlTypeCode?"131":"STRANGER"===e.controlTypeCode||"FREQUENT_STRANGER"===e.controlTypeCode||"DEVICE_ROI"===e.controlTypeCode||"NON_VEHICLE"===e.controlTypeCode||"PLATE"===e.controlTypeCode||"BATTERY_VEHICLE"===e.controlTypeCode?"182":(e.controlTypeCode,"120"):void 0}},{key:"switchCardSize",value:function(e,t){if(e&&1===t)return"GATHER"===e.controlTypeCode||"BLACK_LIST"===e.controlTypeCode||"FACE_PROPERTIES"===e.controlTypeCode||"BODY_PROPERTIES"===e.controlTypeCode||"HELMENT"===e.controlTypeCode?"249px":"STRANGER"===e.controlTypeCode||"FREQUENT_STRANGER"===e.controlTypeCode||"DEVICE_ROI"===e.controlTypeCode||"NON_VEHICLE"===e.controlTypeCode||"PLATE"===e.controlTypeCode?"182px":"249px";if(e&&2===t)switch(e.controlTypeCode){case"GATHER":return"264px";case"STRANGER":return"294px";case"FACE_PROPERTIES":return"230px";case"BODY_PROPERTIES":return"230px";case"FREQUENT_STRANGER":return"322px";case"DEVICE_ROI":return"294px";case"BLACK_LIST":return"240px";case"HELMENT":return"251px";case"TAMPER_ALARM":return"120px";case"PLATE":return"310px";default:return"234px"}}},{key:"controlTypeNameShow",value:function(e){var t=["BLACK_LIST","DEVICE_ROI","PLATE","FACE_PROPERTIES","BODY_PROPERTIES"];if(e&&e.controlTypeCode&&-1===t.indexOf(e.controlTypeCode))return e.controlTypeName;switch(e.controlTypeCode){case"BLACK_LIST":return e.name?e.name:"未知人员";case"DEVICE_ROI":return e.name?e.name:"未知人员";case"PLATE":return e.plate?e.plate:"-";case"FACE_PROPERTIES":return"人脸属性匹配";case"BODY_PROPERTIES":return"行人属性匹配"}}},{key:"calcWidth",value:function(e){var t=new Image,a={fontColor:"rgba(0,0,0,0.3)"};t.src=e,"GATHER"===this.data.controlTypeCode||"HELMENT"===this.data.controlTypeCode?(a.fontSize=100,a.offsetY=800,a.offsetX=100):(a.fontSize=30,a.offsetY=250,a.offsetX=30),this.getImages(a)}},{key:"getImages",value:function(){var e=o()(g.a.mark((function e(t){var a,i,n,r=this;return g.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=[],this.images=Object.assign([]),i=JSON.parse(JSON.stringify(t)),i.text=this.watermarkSetting.text,n={url:"FIRE"===this.data.controlTypeCode||"VEHICLE_ILLEGAL_PARK"===this.data.controlTypeCode||"VEHICLE_BLOCKED"===this.data.controlTypeCode?this.imageDataFormat(this.data,"parano",!1):this.imageDataFormat(this.data,"capture",!1),preview:!1,marker:"BLACK_LIST"===this.data.controlTypeCode?"抓拍照":"",watermark:!1,width:this.swicthImageSize(this.data,1),height:this.swicthImageSize(this.data,2),watermarkSetting:i,fitContainer:!0},a.push(n),this.deployImgHideType(this.data)&&a.push({url:this.imageDataFormat(this.data,"deploy",!1),preview:!1,marker:this.groupDisaplyName(this.data),watermark:!1,width:"120",height:"120",watermarkSetting:i,fitContainer:!0}),this.$nextTick((function(){r.$set(r,"images","TAMPER_ALARM"==r.data.controlTypeCode?[]:a)})),this.$forceUpdate();case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"alarmLevelOperate",value:function(e,t){if(e&&""!==e&&1===t)switch(e){case 1:return"一级";case 2:return"二级";case 3:return"三级";case 4:return"四级";case 5:return"五级"}else if(e&&""!==e&&2===t)switch(e){case 1:return"first-level";case 2:return"second-level";case 3:return"third-level";case 4:return"fourth-level";case 5:return"fifth-level"}}},{key:"getContent",value:function(){this.content=[],"GROUP_COMPARE"===this.data.controlTypeCode&&this.content.push({label:"人员名称2",value:this.data.subsidiaryName}),this.content.push({label:"设备名称",value:this.data.subDeviceName?this.data.subDeviceName:this.data.deviceName,icon:S}),this.content.push({label:"抓拍时间",value:this.$utils.parseDate(this.data.captureTime),icon:x}),this.content.push({label:"任务名称",value:this.data.controlTaskName,icon:R})}},{key:"formatAlarmProperties",value:function(e){var t=[];return e&&e.length&&e.map((function(e){t.push(e.value)})),t}},{key:"playVideo",value:function(e,t){!0===t.hasVideo&&this.$emit("playVideo",e,t)}},{key:"handleCardClick",value:function(){"TAMPER_ALARM"!=this.data.controlTypeCode&&this.$emit("cardClick",this.data)}},{key:"mounted",value:function(){}}]),a}(C["g"]);T["a"]([Object(C["e"])({default:function(){},type:Object})],_.prototype,"data",void 0),T["a"]([Object(C["e"])({default:!1,type:Boolean})],_.prototype,"showVideo",void 0),T["a"]([Object(C["h"])("data",{immediate:!0})],_.prototype,"watchDataChange",null),_=T["a"]([Object(C["a"])({name:"alarm-card"})],_);var w=_,O=w,N=(a("cc82"),a("2877")),F=Object(N["a"])(O,i,n,!1,null,null,null);t["a"]=F.exports},f7fd:function(e,t,a){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",appHeaderBg:"#014051",appIconBg:"#6758F3",appIconColor:"#FFFFFF",appIconSize:"30px",appNameColor:"#FFFFFF",appNameSize:"30px"}}}]);