Files
starRiverProperty/frontend/snap-front/js/chunk-0ea239e8.af0ad0df.js
T
反编译工作区 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
23 KiB
JavaScript

(window["webpackJsonp_canoe-snap-record"]=window["webpackJsonp_canoe-snap-record"]||[]).push([["chunk-0ea239e8"],{"22d4":function(e,t,a){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",appHeaderBg:"#014051",appIconBg:"#6758f3",appIconColor:"#fff",appIconSize:"30px",appNameColor:"#fff",appNameSize:"30px"}},"2d5a":function(e,t,a){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",appHeaderBg:"#014051",appIconBg:"#6758f3",appIconColor:"#fff",appIconSize:"30px",appNameColor:"#fff",appNameSize:"30px"}},"45e8":function(e,t,a){"use strict";a("22d4")},5498:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAC3klEQVRYR+2WTUgUYRjH//8xpyDt3pcSQdahD+hQdMhZCCox1FkIzbEgqUsWhJ1DOkYSUV0Kg3IXI9jRpUyow44KnTpVIElU9HnplHZoc+aJWbPanZ2vJfHSXN93nuf3fPyf9yGW+OMS+8d/gFgZGBoZX++I0yLCJgE2UrDGLaEQnyB4RWBUVdXs4UN7PkYtbSSAe/efrM3/yF+AyDEBqoKME7AFHACUvq7k3s9hIKEAqYzVBuCOQGrCjP19TvIrIJ2GnngQAux/nDatswL0i0goaHkrdEieMfTG635efA0XIicyQc5JZAHWi8gO/zBcCGnxy0RZgFQmtw7gVGDaie9b6mprp9/N7LIFk4HlIWcgSkO5nigPYFoDInI8pObfupKJmvTw5E7HmXsa1h8kbxq6drL0ngfAlZptO2/Cuh1APADAVtXl9aUS9QCkh3M9joOrYRHFBXDtkUpPaUN6AAZNawwiBxYHgGOGrjUVybXU0aBpvYTIpsUAADndpWsNgQCpjDUTcegUeqCgGPKhiGwNgyY4ayS12n8CQFKWQba164kXrsH0yMR+sZ1zAtnnP3QiAMQoAQjmQRmCovQbrY3PXcd3zcntc2L3CtAOSHURTKQSmJabzoNh6fTomXykAJeO6Npj9+xXaS6KSMfCXTJCE6bM8VMizrW4AH/u85lC9jfUrRya+jC7G7ZMLJwpCk53tiWKbHtkOD+G8TbCIAqZvvwCwYqFhnaf6aoqZUNHa+P7wCYspM+0bojIicqz4P2T5C1D17pDR7F7YTAzsRp03HlQJJlKgVz5qaq6udym5P8cm7lmEWYBUSp1PD9+KRAkjaQ2XM5O4KIx/y7wSqUQrnMCvZ26dtl/NoSElzJzzQDTIrIqTibctAM46hf5b2lGMVroCTh9hHSHqcPtdpC31Wr1fJTtONauV9iO8/kWEM2etRx4rVBGFSrZUqkFBRkLIEq24t75D7DkGfgJwf5HMA7QGKwAAAAASUVORK5CYII="},"551f":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEBklEQVRYR+2WTWwUZRjHn2dmd9pmW0prgZpiJAYDpibGgKZpyq4jhQr92A/MJrLbaE082Ghi4pEEY8LBgxc9GC/ix25HU+1sKwkq0O5MKQRMEQiCkHjqRRpJIUK7uJ19/2Zsd7ut3Z1dPPTCHOf9v//3N8/XvExr/PAan08PAcqOQFw3DhPRuyA6vrkOfaqq3v8/aSwLIK6brwLii+yBzHxCaVQC4dbW1INClAwQHzKeA+M0gSryD2Om0Vp3TU939865B4EoCUAbObcpY6UuEFHTaocws7HBU9fV0fHMbLkQjgCTk5Pu36bujRHQVsyciceVenSGVfVeORCOAIM/nq1Pz/49DqJmJ2MmOlPjcu/z+9vuOmlzdVRMGBsyeyrWeUxrzqoU1n0DhO1Oxsx8jiorO6L7W/5y0trrBSMwOJLcmrb4KggXuapqL1JpD5MwQXjSyZiZf/YwOoJB9Y6jtpBA042+DHB0YZ3PVtSjIz1D64nYhnjC0ZjpAiuuPZGuXbeL106BVV0//8gcpa4AeHQhVDxeq1TvSyHVkLYyJoAtThBEfLHCo7SHX2qdKaQtWoTa9xPNYt4aB6F+IRA8VtGodNGt+ca0BRviMUcIpsuym9oPdqu3Vm1hJ4OBxPjzEGIUhOpFiJOb69AzfUdpmhdps9BsWD6s+IpSKe0O7/f+ufI8xza0N2i6+WKGxPHsFGTmH5RtGwLixsyWeWRMIjQ6fQgTXZVcVbsP+luml8E5bcyua4lkQAj6DkTyYmEee+rx6gO/T81unScYBGx08mLi60ol1HCnerPgHBgYMVRkqJ+JhyMh34AtjI1MbGPLep0l+hWgLwH8GzlmTjTVITx9m7ZbxEkADaVA1CrVO7L/jv+kIDZk/GGHlJkhubHRLp64bvwEYC8RvS9JPC0EPsl9AfO3StD3ikhMPG0hM5Yr2CIkLMnt0aB3dKG7VjyxoSSWXvEhIihE9F7uncxeSXCrgPhgKYysRUK+Xm144lmBzCkC1hdsO+ZrNbKrJTuuHQCW2zDzpUjQt4OZRVxPHgHoUE7B/FU06OvThk/vBMRJAOuWFxunmelDd6NyJP/+UB6AS26L+r1nssbxhPExBN7OO+izaOiFN75OmC0CdCKvdcdIdvX3+ttuOLbhihRMMpF90cgQczwa8i2O5gUbuxgHdPMoCK8t1YT0aTTkezM2bOwigc9Zkg5HAz6tYEqK1QDLcnM04L1WrLIHATmdML8B8HJWJzF9FAmp79iAdjEX2180BaUA2Ob2peX61N0EQJ1EdJ5I7u894P3FqSVX7YK4nrwJ0Kb8NizFyNZox5INhWZ+ySnQdGOPIHqLGYlIUM3dgEuFKFdX0r+gXNNy9A8B1jwC/wCyeaQwcDAWigAAAABJRU5ErkJggg=="},"7b52":function(e,t,a){e.exports=a.p+"img/error.b4df2b8d.svg"},c85a:function(e,t,a){"use strict";a("2d5a")},cb80:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{style:{height:"100%"}},[r("layout-column",{staticClass:"search-container",scopedSlots:e._u([{key:"left",fn:function(){return[r("search-list",{attrs:{searchItems:e.searchItemList},on:{reset:e.handleReset},model:{value:e.captureSearchEntity,callback:function(t){e.captureSearchEntity=t},expression:"captureSearchEntity"}})]},proxy:!0},{key:"right",fn:function(){return[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading,expression:"isLoading"}],staticClass:"snap-result-container"},[r("div",{staticClass:"snap-count"},[r("div",{staticClass:"snap-count_label"},[e._v("照片检索数量:"),r("span",{staticClass:"snap-count_value"},[e._v(e._s(e.snapCount))])]),r("div",{staticClass:"snap-action"},[r("el-button",{staticClass:"margin-left-12",style:{marginRight:"12px",width:"70px"},attrs:{type:"primary"},on:{click:e.refreshData}},[e._v("刷新")]),e.isOneToN?r("div",{staticClass:"track-actions"},[r("el-checkbox",{attrs:{indeterminate:e.indeterminate},model:{value:e.selectAll,callback:function(t){e.selectAll=t},expression:"selectAll"}},[e._v("全选")]),r("div",{staticClass:"gutter"}),r("el-select",{staticClass:"no-border",attrs:{placeholder:"请选择"},model:{value:e.captureSearchEntity.sortType,callback:function(t){e.$set(e.captureSearchEntity,"sortType",t)},expression:"captureSearchEntity.sortType"}},[r("el-option",{attrs:{label:"按时间顺序排序",value:"1"}}),r("el-option",{attrs:{label:"按相似度排序",value:"2"}})],1),r("div",{staticClass:"gutter"}),r("el-button",{attrs:{type:"primary"},on:{click:e.generateTrack}},[e._v("生成轨迹")])],1):e._e(),r("el-select",{staticClass:"no-border",style:{marginRight:"12px",width:"70px"},model:{value:e.captureImgSize,callback:function(t){e.captureImgSize=t},expression:"captureImgSize"}},[r("el-option",{attrs:{label:"抓拍图",value:"SMALL"}}),r("el-option",{attrs:{label:"全景图",value:"BIG"}})],1),r("el-button",{staticClass:"margin-left-12",on:{click:e.exportData}},[e._v("导出")])],1)]),r("div",{staticClass:"card-container"},[e.captureRecordData.length>0?r("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.handleScroll,expression:"handleScroll"}],staticClass:"card-list",attrs:{"immediate-check":!1,"infinite-scroll-disabled":e.busy,"infinite-scroll-distance":50,"infinite-scroll-immediate":!1}},e._l(e.captureRecordData,(function(t,i){return r("qz-easy-card",{key:t.id,staticClass:"card-info margin-16",attrs:{showTime:!!t.load,showSimilarity:e.isOneToN,showCheck:e.isOneToN,content:t,config:"SMALL"===e.captureImgSize?e.cardConfig:e.cardConfigBig,select:e.selectAll},on:{cardSelect:function(a){return e.handleCardSelect(a,t)},cardClick:function(a){return e.cardClick(t)}}},[t.error?r("div",{staticClass:"errorContainer"},[r("img",{attrs:{src:a("7b52"),alt:""}})]):r("img",{style:{height:"SMALL"===e.captureImgSize?"140px":"180px"},attrs:{src:"SMALL"===e.captureImgSize?t.captureUrl:t.panoramaUrl}})])})),1):r("qz-no-data")],1)])]},proxy:!0}])}),r("card-detail",{ref:"cardDetail",attrs:{data:e.cardItem},on:{retrieve:e.retrieveImg,close:e.handleDetailClose}})],1)},i=[],n=a("9523"),c=a.n(n),s=a("c973"),o=a.n(s),l=a("970b"),u=a.n(l),p=a("5bc3"),h=a.n(p),d=a("ed6d"),f=a.n(d),v=a("6b58"),g=a.n(v),y=a("36c6"),m=a.n(y),b=a("a34a"),C=a.n(b),S=a("9ab4"),I=a("6fc5"),k=a("9dba"),A=a("6ef6"),T=a("60a3"),x=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.dialogVisible?r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading,expression:"isLoading"}],staticClass:"card-detail-dialog",attrs:{title:"抓拍详情","close-on-click-modal":!1,visible:!0,"before-close":e.close,width:"930px"}},[r("div",{staticClass:"dialog-container"},[r("div",{staticClass:"top"},[r("div",{staticClass:"cap-wrap"},[r("qz-image",{attrs:{fitContainer:"",width:72,height:72,preview:!1,src:e.data.captureUrl||""}}),r("div",{staticClass:"info"},[r("div",{staticClass:"cap-info blod-color",class:{"margin-top-12":"car"!==e.mode}},[r("img",{attrs:{src:a("551f"),alt:""}}),r("span",{staticClass:"info-text"},[e._v(e._s(e.data.deviceName||""))])]),r("div",{staticClass:"cap-info blod-color"},[r("img",{attrs:{src:a("5498"),alt:""}}),r("span",{staticClass:"info-text"},[e._v(e._s(e.data.captureTime&&e.parseDate(e.data.captureTime,"yyyy-MM-dd hh:mm:ss")))])]),e.data.vehiclePlateNum?r("div",{staticClass:"cap-info"},[r("svg-icon",{staticClass:"plate-icon",attrs:{name:"plate-2"}}),r("span",{staticClass:"info-text"},[e._v(e._s(e.data.vehiclePlateNum))])],1):e._e()])],1),r("el-button",{staticClass:"retrieval-button",attrs:{plain:""},on:{click:e.retrieveSame}},[r("img",{attrs:{src:a("939c"),alt:""}}),e._v("以图搜图")])],1),r("div",{staticClass:"tab-container"},[r("div",{staticClass:"switch-tab"},[r("el-radio-group",{on:{change:e.tabChange},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[r("el-radio-button",{attrs:{label:"图片"}}),r("el-radio-button",{attrs:{label:"视频"}}),r("el-radio-button",{attrs:{label:"位置"}})],1)],1)]),r("div",{staticClass:"bottom"},[r("div",{staticClass:"pane-wrap"},["图片"===e.activeTab?r("div",{staticClass:"capture-img"},[r("PanoramaBox",{attrs:{showTab:!1,width:592,height:334,cardItem:e.data}})],1):"视频"===e.activeTab?[e.canPlay?r("qz-player",{attrs:{type:"playback","plugin-url":e.dcsPluginUrl,"player-server":e.playerServer,devices:e.devices,vodTime:e.vodTime}}):r("qz-no-data")]:"位置"===e.activeTab?[r("qz-map",{attrs:{map:e.mapType,mapInitinalOptions:e.mapInitinalOptions,showFullscreenButton:!1,playerPluginUrl:e.dcsPluginUrl,service:e.Server,showAll:!1,showPlayer:!1,infoWindow:!1,points:e.devicePoints,data:e.devicePoints}})]:e._e()],2),r("div",{staticClass:"cap-props"},[r("span",{staticClass:"title"},[e._v("识别属性")]),r("el-scrollbar",{staticStyle:{height:"100%",marginTop:"14px"}},e._l(e.data.propertiesList||[],(function(t,a){return r("div",{key:a,staticClass:"list"},e._l(t.properties,(function(t,a){return r("div",{key:a,staticClass:"prop-item-wrap"},[r("span",{staticClass:"title"},[e._v(e._s(t.name))]),r("div",{staticClass:"props"},e._l(t.properties||[],(function(t,a){return 1===t.isChoosen&&t.name?r("span",{key:a,staticClass:"prop-item"},[e._v(e._s(t.name))]):e._e()})),0)])})),0)})),0)],1)])])]):e._e()},O=[],w=a("5dd1"),R=a("e33d"),D=a("fca5"),L=a.n(D),E=a("f5ea"),P=a("103b"),U=a("b1f3"),N=a("93f3");function B(e){var t=j();return function(){var a,r=m()(e);if(t){var i=m()(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return g()(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 z=function(e){f()(a,e);var t=B(a);function a(){var e;return u()(this,a),e=t.apply(this,arguments),e.dataTypeMap=N["a"],e.isLoading=!1,e.dialogVisible=!1,e.parseDate=R["parseDate"],e.activeTab="图片",e.playerServer="",e.devices=[],e.vodTime={beginTime:"",endTime:""},e.canPlay=!1,e.mapInitinalOptions={zoom:3},e.Server=P["a"],e.filterRoiLocation=U["filterRoiLocation"],e}return h()(a,[{key:"mode",get:function(){return this.dataTypeMap[this.data.dataType]}},{key:"retrieveSame",value:function(){this.$emit("retrieve",this.data,this.data.dataType)}},{key:"dcsPluginUrl",get:function(){return Object(I["e"])(k["a"],this.$store).dcsPluginUrl}},{key:"mapType",get:function(){return this.data.mapId}},{key:"devicePoints",get:function(){return[{objectId:this.data.id,id:this.data.id,x:this.data.mapX,y:this.data.mapY,lon:this.data.longitude,lat:this.data.latitude,infoWindow:!1,show:!0,draggable:!1,status:+this.data.status,onlineStatus:+this.data.onlineStatus}]}},{key:"tabChange",value:function(){var e=o()(C.a.mark((function e(){return C.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("视频"!==this.activeTab){e.next=5;break}return e.next=3,this.getDcsinfo();case 3:return e.next=5,this.getCanplayVideo();case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getDcsinfo",value:function(){var e=o()(C.a.mark((function e(){var t,a;return C.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.service.fetchDCSDeviceList({deviceTypeCode:"dcs"}).catch((function(){return{success:!1}}));case 2:t=e.sent,t.success?t.data.length>0&&(a=t.data[0],this.playerServer="".concat(a.cameraUserName,":").concat(a.cameraPassword,"@").concat(a.cameraIp,":2015")):this.$message.error(t.message);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getCanplayVideo",value:function(){var e=o()(C.a.mark((function e(){var t,a;return C.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={deviceId:this.data.deviceId,captureTime:this.data.captureTime},e.next=3,this.service.getVideByDeviceId(t).catch((function(){return{success:!1}}));case 3:a=e.sent,a.success&&a.data&&a.data.cameraRtspUrl&&(this.vodTime.beginTime=a.data.beginTime,this.vodTime.endTime=a.data.endTime,this.devices=[].concat({rtspUrl:a.data.cameraRtspUrl,dcs:0===a.data.fromDcm}),this.canPlay=!0);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"open",value:function(){this.canPlay=!1,this.dialogVisible=!0,this.activeTab="图片"}},{key:"close",value:function(){this.dialogVisible=!1,this.$emit("close")}}]),a}(T["h"]);S["a"]([Object(T["e"])({type:Object,default:function(){}})],z.prototype,"data",void 0),z=S["a"]([Object(T["a"])({components:{QzPlayer:L.a,QzMap:E["a"],PanoramaBox:w["a"]}})],z);var M=z,V=M,F=(a("c85a"),a("2877")),H=Object(F["a"])(V,x,O,!1,null,null,null),J=H.exports,Q=a("d862"),W=a("17b0"),G=a("84d6");function q(e,t){var a="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=Y(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 n,c=!0,s=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return c=e.done,e},e:function(e){s=!0,n=e},f:function(){try{c||null==a.return||a.return()}finally{if(s)throw n}}}}function Y(e,t){if(e){if("string"===typeof e)return K(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)?K(e,t):void 0}}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Z(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?_(Object(a),!0).forEach((function(t){c()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function X(e){var t=$();return function(){var a,r=m()(e);if(t){var i=m()(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return g()(this,a)}}function $(){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 ee=function(e){f()(a,e);var t=X(a);function a(){var e;return u()(this,a),e=t.apply(this,arguments),e.captureSearchEntity={sortType:"2",timeRange:["0",new Date((new Date).toLocaleDateString()).getTime(),new Date((new Date).toLocaleDateString()).getTime()+864e5-1],propertyList:[],devices:[],thresholdScore:90,dataType:"all",searhImgType:"all",searchImg:"",vehiclePlateNum:void 0},e.searchImg="",e.searhImgType="all",e.pager={pageNo:1,pageSize:50},e.snapCount=0,e.captureRecordData=[],e.isLoading=!1,e.cardItem={},e.cardConfig={headColor:"#7A869A",fontColor:"#ffffff",height:"140px"},e.cardConfigBig={headColor:"#7A869A",fontColor:"#ffffff",height:"180px"},e.selectAll=!0,e.trackList=[],e.captureImgSize="SMALL",e.busy=!0,e.fetchFunc=e.service.fetchAllRecordByPage,e.exportFunc=e.service.exportCaptureRecord,e.throttleCaptureSearchEntityFn=null,e.deviceList=[],e}return h()(a,[{key:"searchItemList",get:function(){return[{type:"upload",key:"searchImg",label:"以图搜图",icon:"searchImg",clean:!0},{type:"timeRadio",key:"timeRange",label:"时间",icon:"time"},{type:"deviceSelect",key:"devices",label:"已选相机",icon:"camera",clean:!0},{type:"props",key:"dataType",label:"属性检索",icon:"prop-search",clean:!0,vehiclePlate:"vehiclePlateNum"}]}},{key:"currentUserInfo",get:function(){return Object(I["e"])(k["a"],this.$store).userInfo}},{key:"isOneToN",get:function(){return"all"!==this.captureSearchEntity.searhImgType}},{key:"indeterminate",get:function(){return this.trackList.length>0&&this.trackList.length<this.captureRecordData.length}},{key:"selectAllWatch",value:function(e){this.trackList=e?this.captureRecordData:[]}},{key:"trackListWatch",value:function(e){e&&0===e.length&&(this.selectAll=!1)}},{key:"captureSearchEntityWatch",value:function(e){this.getService(e),this.throttleCaptureSearchEntityFn()}},{key:"CaptureSearchEntityChangeFn",value:function(){this.pager.pageNo=1,this.captureRecordData=[],this.fetchData()}},{key:"getService",value:function(e){switch(e.searhImgType){case"face":this.fetchFunc=this.service.fetchRetrieveRecord,this.exportFunc=this.service.exportRetrieveRecord;break;case"person":this.fetchFunc=this.service.fetchBodyRetrieveRecord,this.exportFunc=this.service.exportBodyRetrieveRecord;break;case"motorVehicle":this.fetchFunc=this.service.fetchVehicleRetrieveRecord,this.exportFunc=this.service.addVehicleRetrieveRecord;break;case"nonVehicle":this.fetchFunc=this.service.fetchNoVehicleRetrieveRecord,this.exportFunc=this.service.addNonVehicleRetrieveRecord;break;case"all":this.fetchFunc=this.service.fetchAllRecordByPage,this.exportFunc=this.service.exportCaptureRecord}}},{key:"throttle",value:function(e,t){var a=!0;return function(){if(!a)return!1;a=!1,setTimeout((function(){e(),a=!0}),t)}}},{key:"handleScroll",value:function(){var e=o()(C.a.mark((function e(){return C.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.pager.pageNo+=1,e.next=3,this.fetchData();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"refreshData",value:function(){this.captureRecordData=[],this.pager.pageNo=1,this.throttleCaptureSearchEntityFn()}},{key:"fetchData",value:function(){var e=this;this.isLoading=!0,this.busy=!0;var t,a=this.captureSearchEntity,r=a.sortType,i=a.timeRange,n=a.dataType,c=a.devices,s=a.propertyList,o=a.thresholdScore,l=a.vehiclePlateNum,u=Z(Z({vehiclePlateNum:l,deviceIds:[],sortType:r,captureStartTime:i[1]&&i[1][0],captureEndTime:i[1]&&i[1][1],dataType:n,propertyList:s,thresholdScore:o/100},this.pager),{},{userName:this.currentUserInfo.loginName,userId:this.currentUserInfo.userId}),p=q(c);try{for(p.s();!(t=p.n()).done;){var h=t.value;if(h.channel&&h.channel.length>0){var d,f=q(h.channel);try{for(f.s();!(d=f.n()).done;){var v=d.value;u.deviceIds.push(v.deviceId)}}catch(g){f.e(g)}finally{f.f()}}else u.deviceIds.push(h.deviceId)}}catch(g){p.e(g)}finally{p.f()}this.captureSearchEntity.searchImg&&(this.captureSearchEntity.searchImg.includes("data:image/")?u.img=this.captureSearchEntity.searchImg.split(",")[1]:u.imgUrl=this.captureSearchEntity.searchImg),this.fetchFunc.call(this,u).then((function(t){var a;e.isOneToN?(a=t.data||[],e.captureRecordData=a||[]):(a=t.data.list||[],e.captureRecordData=e.captureRecordData.concat(a)||[]),e.snapCount=e.isOneToN?t.data&&t.data.length:t.data&&t.data.total||0,e.isLoading=!1,e.isOneToN||a.length!==e.pager.pageSize||(e.busy=!1),e.isOneToN&&(e.trackList=JSON.parse(JSON.stringify(a)))})).catch((function(t){e.isLoading=!1,e.snapCount=0,e.busy=!1}))}},{key:"handleReset",value:function(){this.captureSearchEntity={dataType:"all",sortType:"2",timeRange:["0",[new Date((new Date).toLocaleDateString()).getTime(),new Date((new Date).toLocaleDateString()).getTime()+864e5-1]],propertyList:[],devices:[],thresholdScore:90,searhImgType:"all",searchImg:"",vehiclePlateNum:void 0}}},{key:"exportData",value:function(){var e=this;if(0!==this.captureRecordData.length){var t,a=this.captureSearchEntity,r=a.orderBy,i=a.dataType,n=a.devices,c=a.propertyList,s=a.thresholdScore,o=a.timeRange,l=(a.searhImgType,a.searchImg),u={captureStartTime:o[1][0],captureEndTime:o[1][1],deviceIds:[],orderBy:r,dataType:i,propertyList:c,thresholdScore:s/100,userName:this.currentUserInfo.loginName,userId:this.currentUserInfo.userId},p=q(n);try{for(p.s();!(t=p.n()).done;){var h=t.value;if(h.channel&&h.channel.length>0){var d,f=q(h.channel);try{for(f.s();!(d=f.n()).done;){var v=d.value;u.deviceIds.push(v.deviceId)}}catch(g){f.e(g)}finally{f.f()}}else u.deviceIds.push(h.deviceId)}}catch(g){p.e(g)}finally{p.f()}l&&this.isBase64(l)?u.img=l:u.imgUrl=l,this.service.fetchSysProperties({snapType:this.searhImgType}).then((function(t){t.success?Object(W["cwQzDownload"])({message:"最多导出".concat(t.data.exportAllCount,"条,确定导出么?"),confirmFn:function(){return new Promise((function(t){e.exportFunc.call(e,u).then((function(a){a.success?t(!0):e.$message.error(a.message)}))}))}}):e.$message.error(t.message)}))}else this.$message.error("导出记录不能为空")}},{key:"cardClick",value:function(e){var t=this,a={id:e.userId,dataType:e.dataType};this.service.fetchRecordDetailById(a).then((function(e){t.cardItem=e.data,t.cardDetail.open()}))}},{key:"handleDetailClose",value:function(){this.cardItem={}}},{key:"handleCardSelect",value:function(e,t){if(e)this.trackList.push(t);else{var a=this.trackList.findIndex((function(e){return e.userId===e.userId}));a>-1&&this.trackList.splice(a,1)}}},{key:"generateTrack",value:function(){var e=this.trackList||[];if(e.length){var t=JSON.stringify(e);localStorage.setItem("trackData",t),localStorage.setItem("captureSearchEntity",JSON.stringify(this.captureSearchEntity)),this.$router.push({path:"/search/track"})}else this.$message.error("当前没有轨迹数据")}},{key:"retrieveImg",value:function(e,t){this.captureSearchEntity.searchImg=e.captureUrl,this.captureSearchEntity.searhImgType=t,this.cardDetail.close()}},{key:"getDataFromStorage",value:function(){try{var e=JSON.parse(localStorage.getItem("deviceList")||"[]"),t=localStorage.getItem("seatchImgType"),a=localStorage.getItem("searchImg");this.captureSearchEntity=Object.assign(this.captureSearchEntity,{devices:e,searchImg:a,searhImgType:t||"all"}),localStorage.removeItem("deviceList"),localStorage.removeItem("seatchImgType"),localStorage.removeItem("searchImg")}catch(r){}}},{key:"isBase64",value:function(e){return e.includes("data:image/")}},{key:"created",value:function(){this.getDataFromStorage(),this.throttleCaptureSearchEntityFn=this.throttle(this.CaptureSearchEntityChangeFn,300)}},{key:"mounted",value:function(){var e=this;this.$nextTick((function(){e.busy=!1}))}}]),a}(T["h"]);S["a"]([Object(T["g"])()],ee.prototype,"cardDetail",void 0),S["a"]([Object(T["i"])("selectAll")],ee.prototype,"selectAllWatch",null),S["a"]([Object(T["i"])("trackList")],ee.prototype,"trackListWatch",null),S["a"]([Object(T["i"])("captureSearchEntity",{deep:!0})],ee.prototype,"captureSearchEntityWatch",null),ee=S["a"]([Object(T["a"])({components:{layoutColumn:A["a"],QzEasyCard:Q["a"],CardDetail:J,SearchList:G["a"]}})],ee);var te=ee,ae=te,re=(a("45e8"),Object(F["a"])(ae,r,i,!1,null,null,null));t["default"]=re.exports}}]);