Files
starRiverProperty/frontend/snap-front/js/chunk-7be79217.8b3945ba.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
16 KiB
JavaScript

(window["webpackJsonp_canoe-snap-record"]=window["webpackJsonp_canoe-snap-record"]||[]).push([["chunk-7be79217"],{5412: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"}},"623d":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"}},"7d2b":function(e,t,a){"use strict";a("8551")},8551: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"}},c987:function(e,t,a){"use strict";a("623d")},d822: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("div",{style:{height:"100%"}},[a("layout-column",{staticClass:"search-container",scopedSlots:e._u([{key:"left",fn:function(){return[a("SearchList",{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[a("div",{staticClass:"snap-result-container"},[a("div",{staticClass:"snap-count"},[a("div",{staticClass:"snap-count_label"},[e._v("照片检索数量:"),a("span",{staticClass:"snap-count_value"},[e._v(e._s(e.snapCount))])])]),a("capture-axle",{ref:"axleRef",attrs:{captureList:e.captureRecordData,min:e.captureSearchEntity.times[0],max:e.captureSearchEntity.times[1]},on:{play:e.handlePlay,reset:function(t){e.cardItem={}}},model:{value:e.currentDetailIndex,callback:function(t){e.currentDetailIndex=t},expression:"currentDetailIndex"}}),a("div",{staticClass:"snap-result"},[a("Detail",{attrs:{isEmpty:e.isEmpty,cardItem:e.cardItem},on:{action:e.handleDetailAction}}),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading,expression:"isLoading"}],staticClass:"right"},[e.captureRecordData.length>0?a("div",{staticClass:"card-list"},e._l(e.captureRecordData,(function(t,i){return a("qz-easy-card",{key:t.id,staticClass:"card-info",class:{"select-active":e.currentDetailIndex===i},attrs:{showTime:!0,content:t,config:e.cardConfig},on:{cardSelect:function(a){return e.handleCardSelect(a,t)},cardClick:function(a){return e.cardClick(t,i)}}},[t.panoramaUrl?a("qz-image",{attrs:{fitContainer:"",src:t.panoramaUrl,height:115,width:202,preview:!1}}):e._e()],1)})),1):a("qz-no-data")],1)],1)],1)]},proxy:!0}])})],1)},n=[],r=a("c973"),s=a.n(r),c=a("970b"),o=a.n(c),l=a("5bc3"),u=a.n(l),p=a("ed6d"),d=a.n(p),f=a("6b58"),h=a.n(f),v=a("36c6"),y=a.n(v),m=a("a34a"),g=a.n(m),I=a("9ab4"),x=a("6fc5"),b=a("9dba"),S=a("6ef6"),C=a("60a3"),k=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"axle-container"},[e.isPlay?i("svg-icon",{staticClass:"play-icon",attrs:{name:"play"},on:{click:e.start}}):i("img",{staticClass:"pause-img",attrs:{src:a("104a"),alt:""},on:{click:e.pause}}),i("svg-icon",{staticClass:"reset-icon",attrs:{name:"reset"},on:{click:e.reset}}),i("div",{staticClass:"chart"},[i("input",{attrs:{type:"range",min:e.min,max:e.max,id:"progress"},domProps:{value:0}}),e._l(e.renderList,(function(t,a){return i("div",{key:a,staticClass:"item",class:{active:e.playIndex===a},style:e.getPosition(t.value)})})),i("div",{staticClass:"playTime",style:e.getPosition(e.currentValue,!0)},[e._v(e._s(e.parseTime(e.currentTime,"{h}:{i}:{s}")))]),i("div",{staticClass:"startTime"},[e._v(e._s(e.parseTime(e.min)))]),i("div",{staticClass:"endTime"},[e._v(e._s(e.parseTime(e.max)))])],2)],1)},_=[],D=a("7037"),T=a.n(D),E=function(e,t){if(void 0===e)return null;var a,i=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===T()(e)?a=e:("string"===typeof e&&/^[0-9]+$/.test(e)&&(e=parseInt(e)),"number"===typeof e&&10===e.toString().length&&(e*=1e3),a=new Date(e));var n={y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate(),h:a.getHours(),i:a.getMinutes(),s:a.getSeconds(),a:a.getDay()},r=i.replace(/{([ymdhisa])+}/g,(function(e,t){var a=n[t];return"a"===t?["日","一","二","三","四","五","六"][a]:a.toString().padStart(2,"0")}));return r};function R(e){var t=w();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 h()(this,a)}}function w(){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 O=function(e){d()(a,e);var t=R(a);function a(){var e;return o()(this,a),e=t.apply(this,arguments),e.isPlay=!0,e.playIndex=-1,e.renderList=[],e.parseTime=E,e}return u()(a,[{key:"valueWatcher",value:function(e){this.playIndex=e}},{key:"currentValue",get:function(){return this.renderList[this.playIndex]&&this.renderList[this.playIndex].value}},{key:"currentTime",get:function(){return this.renderList[this.playIndex]&&this.renderList[this.playIndex].captureTime}},{key:"captureListWatch",value:function(e){var t=this;this.renderList=[],e.forEach((function(e){e.captureTime&&(e.value=e.captureTime-t.min),t.renderList.push(e)}))}},{key:"playIndexWatch",value:function(e){this.$emit("play",e)}},{key:"getPosition",value:function(e,t){return{left:t?(e/(this.max-this.min)*100-2).toFixed(4)+"%":(e/(this.max-this.min)*100).toFixed(4)+"%"}}},{key:"start",value:function(){var e=this;this.isPlay=!1,this.playIndex<0&&(this.playIndex=0),this.interval=setInterval((function(){e.playIndex+=1;var t=document.querySelector(".card-info.select-active");t&&t.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}),e.playIndex>e.renderList.length&&(e.pause(),e.playIndex=0)}),3e3)}},{key:"pause",value:function(){clearInterval(this.interval),this.interval=null,this.isPlay=!0}},{key:"reset",value:function(){this.pause(),this.playIndex=-1,this.$emit("reset")}},{key:"created",value:function(){}}]),a}(C["h"]);I["a"]([Object(C["e"])({required:!0,type:Array})],O.prototype,"captureList",void 0),I["a"]([Object(C["e"])({required:!0,type:Number})],O.prototype,"min",void 0),I["a"]([Object(C["e"])({required:!0,type:Number})],O.prototype,"max",void 0),I["a"]([Object(C["e"])({required:!0,type:Number})],O.prototype,"value",void 0),I["a"]([Object(C["i"])("value")],O.prototype,"valueWatcher",null),I["a"]([Object(C["i"])("captureList",{deep:!1})],O.prototype,"captureListWatch",null),I["a"]([Object(C["i"])("playIndex")],O.prototype,"playIndexWatch",null),O=I["a"]([Object(C["a"])({components:{}})],O);var L=O,j=L,P=(a("7d2b"),a("2877")),N=Object(P["a"])(j,k,_,!1,null,null,null),A=N.exports,W=a("d862"),B=a("84d6"),z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"smart-left"},[a("PanoramaBox",{attrs:{isEmpty:e.isEmpty,width:620,height:348,cardItem:e.cardItem},on:{action:e.handleAction}}),a("div",{staticClass:"capture-detail-container"},[a("div",{staticClass:"capture-left"},[e._m(0),a("div",{staticClass:"detail-item"},[a("span",[e._v("抓拍设备:"),a("span",{staticClass:"detail-item-value"},[e._v(e._s(e.isEmpty?"- -":e.cardItem.deviceName))])])]),a("div",{staticClass:"detail-item"},[a("span",[e._v("抓拍时间:"),a("span",{staticClass:"detail-item-value"},[e._v(e._s(e.isEmpty?"- -":e.cardItem.captureTime&&e.parseDate(e.cardItem.captureTime,"yyyy-MM-dd hh:mm:ss")))])])]),a("div",{staticClass:"detail-item"},[a("span",[e._v("抓拍地点:"),a("span",{staticClass:"detail-item-value"},[e._v(e._s(e.isEmpty?"- -":""))])])]),e.isEmpty?a("div",{staticClass:"map-empty"}):a("qz-map",{staticClass:"map",attrs:{map:e.mapType,mapInitinalOptions:e.mapInitinalOptions,showAll:!1,showFullscreenButton:!1,showPlayer:!1,points:e.devicePoints,service:e.Server,data:e.devicePoints}})],1),a("div",{staticClass:"capture-right"},[e._m(1),a("div",{staticClass:"cap-props"},[e.isEmpty?a("qz-no-data"):e._l(e.cardItem.propertiesList||[],(function(t,i){return a("div",{key:i,staticClass:"list"},e._l(t.properties,(function(t,i){return a("div",{staticClass:"propWrap"},[a("span",{staticClass:"title"},[e._v(e._s(t.name))]),a("div",{staticClass:"props"},e._l(t.properties||[],(function(t,i){return 1===t.isChoosen&&t.name?a("span",{key:i,staticClass:"prop-item"},[e._v(e._s(t.name))]):e._e()})),0)])})),0)}))],2)])])],1)},q=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"gap-title"},[i("img",{attrs:{src:a("8659"),alt:""}}),e._v("抓拍详情")])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"gap-title"},[i("img",{attrs:{src:a("4f4f"),alt:""}}),e._v("识别属性")])}],$=a("f5ea"),M=a("3b58"),F=a.n(M),V=a("b1f3"),J=a("103b"),H=a("5dd1"),U=a("e33d");function Q(e){var t=Y();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 h()(this,a)}}function Y(){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=function(e){d()(a,e);var t=Q(a);function a(){var e;return o()(this,a),e=t.apply(this,arguments),e.activeTab="1",e.vodTime={beginTime:"",endTime:""},e.canPlay=!1,e.devices=[],e.filterRoiLocation=V["filterRoiLocation"],e.mapInitinalOptions={zoom:3},e.Server=J["a"],e.parseDate=U["parseDate"],e}return u()(a,[{key:"mapType",get:function(){return this.cardItem.mapId}},{key:"devicePoints",get:function(){return[{objectId:this.cardItem.id,id:this.cardItem.id,x:this.cardItem.mapX,y:this.cardItem.mapY,lon:this.cardItem.longitude,lat:this.cardItem.latitude,show:!0,draggable:!1,status:+this.cardItem.status,onlineStatus:+this.cardItem.onlineStatus}]}},{key:"handleAction",value:function(){this.$emit("action")}}]),a}(C["h"]);I["a"]([Object(C["g"])()],X.prototype,"downRef",void 0),I["a"]([Object(C["g"])()],X.prototype,"dragResizeRef",void 0),I["a"]([Object(C["e"])({required:!0,type:Object})],X.prototype,"cardItem",void 0),I["a"]([Object(C["e"])({required:!0,type:Boolean})],X.prototype,"isEmpty",void 0),X=I["a"]([Object(C["a"])({components:{QzMap:$["a"],VueDragResize:F.a,PanoramaBox:H["a"]}})],X);var G=X,K=G,Z=(a("e928"),Object(P["a"])(K,z,q,!1,null,null,null)),ee=Z.exports;function te(e,t){var a="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=ae(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,s=!0,c=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){c=!0,r=e},f:function(){try{s||null==a.return||a.return()}finally{if(c)throw r}}}}function ae(e,t){if(e){if("string"===typeof e)return ie(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)?ie(e,t):void 0}}function ie(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 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 h()(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 se=function(e){d()(a,e);var t=ne(a);function a(){var e;return o()(this,a),e=t.apply(this,arguments),e.hasDiasble=!0,e.showTip=!0,e.showAllProps=!0,e.captureSearchEntity={propertyList:[],devices:[],dataType:"all",times:[new Date((new Date).toLocaleDateString()).getTime(),(new Date).getTime()],vehiclePlateNum:void 0},e.snapCount=0,e.captureRecordData=[],e.isLoading=!1,e.cardItem={},e.currentDetailIndex=-1,e.cardConfig={headColor:"#7A869A",fontColor:"#ffffff",height:"115px"},e}return u()(a,[{key:"captureSearchEntityWatch",value:function(e){this.fetchData(),this.saveDeviceToSession()}},{key:"searchItemList",get:function(){return[{type:"timeRange",key:"times",label:"时间",icon:"time"},{type:"deviceSelect",key:"devices",label:"已选相机",icon:"camera",clean:!0},{type:"props",key:"dataType",disableDep:"devices",label:"属性检索",icon:"prop-search",clean:!0,vehiclePlate:"vehiclePlateNum"}]}},{key:"isEmpty",get:function(){return 0===Object.keys(this.cardItem).length}},{key:"currentUserInfo",get:function(){return Object(x["e"])(b["a"],this.$store).userInfo}},{key:"fetchData",value:function(){var e=this;return new Promise((function(t,a){e.isLoading=!0;var i,n=e.captureSearchEntity,r=n.dataType,s=n.devices,c=n.propertyList,o=n.times,l=n.vehiclePlateNum,u={vehiclePlateNum:l,deviceIds:[],captureStartTime:o[0],captureEndTime:o[1],propertyList:c,dataType:r},p=te(s);try{for(p.s();!(i=p.n()).done;){var d=i.value;if(d.channel&&d.channel.length>0){var f,h=te(d.channel);try{for(h.s();!(f=h.n()).done;){var v=f.value;u.deviceIds.push(v.deviceId)}}catch(y){h.e(y)}finally{h.f()}}else u.deviceIds.push(d.deviceId)}}catch(y){p.e(y)}finally{p.f()}e.service.fetchAllRecord(u).then((function(a){var i=a.data.list||[];e.captureRecordData=i||[],e.snapCount=a.data&&a.data.total||0,e.isLoading=!1,t(!0)})).catch((function(t){e.isLoading=!1,e.captureRecordData=[],e.snapCount=0,a()}))}))}},{key:"cardClick",value:function(e,t){var a=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(i||this.axleRef.pause(),this.currentDetailIndex=t,-1!==t){var n={id:e.userId,dataType:e.dataType};this.service.fetchRecordDetailById(n).then((function(e){e.success?a.cardItem=e.data:a.$message.error(e.message)}))}}},{key:"handleReset",value:function(){this.captureSearchEntity={propertyList:[],devices:[],dataType:"all",times:[new Date((new Date).toLocaleDateString()).getTime(),(new Date).getTime()],vehiclePlateNum:void 0},this.cardItem={},this.currentDetailIndex=-1}},{key:"handlePlay",value:function(e){this.cardClick(this.captureRecordData[e],e,!0)}},{key:"handleDetailAction",value:function(){return this.axleRef.pause()}},{key:"saveDeviceToSession",value:function(){var e=this.captureSearchEntity.devices;sessionStorage.setItem("SMART_DEVICES",JSON.stringify(e))}},{key:"getDeviceFromSession",value:function(){var e=sessionStorage.getItem("SMART_DEVICES")||"[]";this.captureSearchEntity.devices=JSON.parse(e),sessionStorage.removeItem("SMART_DEVICES")}},{key:"getDataFromStorage",value:function(){this.captureSearchEntity.devices=JSON.parse(localStorage.getItem("deviceList")||"[]"),localStorage.removeItem("deviceList")}},{key:"created",value:function(){var e=s()(g.a.mark((function e(){return g.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.getDeviceFromSession(),this.getDataFromStorage(),!(this.captureSearchEntity.devices.length>0)){e.next=5;break}return e.next=5,this.fetchData();case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),a}(C["h"]);I["a"]([Object(C["g"])()],se.prototype,"cardDetail",void 0),I["a"]([Object(C["g"])()],se.prototype,"axleRef",void 0),I["a"]([Object(C["i"])("captureSearchEntity",{deep:!0})],se.prototype,"captureSearchEntityWatch",null),I["a"]([Object(C["f"])()],se.prototype,"hasDiasble",void 0),I["a"]([Object(C["f"])()],se.prototype,"showTip",void 0),I["a"]([Object(C["f"])()],se.prototype,"showAllProps",void 0),se=I["a"]([Object(C["a"])({components:{layoutColumn:S["a"],QzEasyCard:W["a"],captureAxle:A,SearchList:B["a"],Detail:ee}})],se);var ce=se,oe=ce,le=(a("c987"),Object(P["a"])(oe,i,n,!1,null,null,null));t["default"]=le.exports},e928:function(e,t,a){"use strict";a("5412")}}]);