mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
25 KiB
JavaScript
1 line
25 KiB
JavaScript
(window["webpackJsonp_security-control"]=window["webpackJsonp_security-control"]||[]).push([["chunk-commons"],{"020c":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{"custom-class":"device-select-dialog",title:"选择设备","close-on-click-modal":!1,visible:e.dialogVisible,top:"0"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("qz-device-select",{ref:"deviceSelector",attrs:{"area-list":e.areaList,"device-list":e.deviceList,width:e.deviceWidth,single:e.single,config:e.config,"custom-node":e.handleCustomNode,"active-area":e.activeArea},on:{areaClick:e.handleAreaClick},model:{value:e.deviceValue,callback:function(t){e.deviceValue=t},expression:"deviceValue"}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.handleDialogClose}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.handleDialogConfirm}},[e._v("确定")])],1)],1)},o=[],i=a("c973"),r=a.n(i),s=a("970b"),l=a.n(s),c=a("5bc3"),u=a.n(c),f=a("ed6d"),d=a.n(f),p=a("6b58"),v=a.n(p),h=a("36c6"),m=a.n(h),y=a("a34a"),g=a.n(y),b=a("9ab4"),I=a("60a3");function C(e){var t=T();return function(){var a,n=m()(e);if(t){var o=m()(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return v()(this,a)}}function T(){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 S=a("7545"),k=a("1e3f"),L=a("e223"),w=a("7a58"),N=a("dbab"),F=a("a53a"),_=a("1d98"),E=a("739e"),O=function(e){d()(a,e);var t=C(a);function a(){var e;return l()(this,a),e=t.apply(this,arguments),e.activeArea="",e.config={areaLoading:!1,deviceLoading:!1},e.deviceTypeList={4:{onLine:S,offLine:k},5:{onLine:N,offLine:F},6:{onLine:L,offLine:w},8:{onLine:_,offLine:E},7:{onLine:L,offLine:w}},e.deviceWidth="350px",e.dialogVisible=!1,e.areaList=[],e.deviceList=[],e.deviceValue={},e}return u()(a,[{key:"taskIdChangeListener",value:function(e,t){e&&e.join(",")!==t.join(",")&&(this.clear(),this.fetchAreaTreeList(e))}},{key:"fetchAreaTreeList",value:function(e){var t=this;return this.config.areaLoading=!0,new Promise((function(a,n){t.service.getTaskDevice({taskIds:e}).then((function(e){if(t.config.areaLoading=!1,e.success){var a=e.data||[];a.forEach((function(e){e.children||(e.children=[])})),t.areaList=a,t.$emit("load")}else t.config.areaLoading=!1,t.$message.error(e.message)}))}))}},{key:"handleAreaClick",value:function(e){var t;this.areaList.forEach((function(a){a.id&&a.id===e.id&&(t=a.devices.map((function(e){return e.id||(e.id=e.realDeviceId),e})))})),!0===this.single?t.forEach((function(e){e.channel&&e.channel.length>0?e.channel.forEach((function(e){e.disabled=!("2"===e.onlineStatus&&e.cameraMainRtspUrl&&""!==e.cameraMainRtspUrl)})):e.disabled=!("2"===e.onlineStatus&&e.cameraMainRtspUrl&&""!==e.cameraMainRtspUrl)})):t.forEach((function(e){e.channel&&e.channel.length>0?e.channel.forEach((function(e){e.disabled=!1})):e.disabled=!1})),this.deviceList=t}},{key:"switchPicture",value:function(e){if(!this.deviceTypeList.hasOwnProperty(e.deviceTypeCategoryId)||!e.deviceTypeCategoryId)return"2"===e.onlineStatus?S:k;if("2"===e.onlineStatus)switch(e.deviceTypeCategoryId){case"4":return S;case"5":return N;case"6":return L;case"7":return L;case"8":return _}else switch(e.deviceTypeCategoryId){case"4":return k;case"5":return F;case"6":return w;case"7":return w;case"8":return E}}},{key:"handleCustomNode",value:function(e,t,a){a.onlineStatus,0===a.identifyType&&a.channel,a.deviceTypeCategoryId;var n=this.switchPicture(a);return n&&""!==n?e("div",{class:"image-container"},[e("img",{attrs:{src:n}}),e("span",{class:"device-name-label"},[a.deviceName])]):e("div",[e("span",{domProps:{innerHTML:a.deviceName}})])}},{key:"handleDialogConfirm",value:function(){this.dialogVisible=!1,this.$emit("confirm",this.deviceValue,this.areaList)}},{key:"handleDialogClose",value:function(){var e=this;this.dialogVisible=!1,this.deviceValue={},this.deviceList=[],this.$nextTick((function(){e.deviceSelector&&e.deviceSelector.clear()})),this.$emit("cancel")}},{key:"open",value:function(){this.dialogVisible=!0}},{key:"setValue",value:function(e){this.deviceValue=e}},{key:"clear",value:function(){var e=this;this.deviceValue={},this.deviceList=[],this.$nextTick((function(){e.deviceSelector.clear()}))}},{key:"created",value:function(){var e=r()(g.a.mark((function e(){return g.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.fetchAreaTreeList(this.taskIds);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"mounted",value:function(){}}]),a}(I["g"]);b["a"]([Object(I["e"])({default:function(){return[]},type:Array})],O.prototype,"taskIds",void 0),b["a"]([Object(I["f"])("deviceSelector")],O.prototype,"deviceSelector",void 0),b["a"]([Object(I["e"])({default:!1,type:Boolean})],O.prototype,"single",void 0),b["a"]([Object(I["e"])({default:!1,type:Boolean})],O.prototype,"ftilered",void 0),b["a"]([Object(I["h"])("taskIds")],O.prototype,"taskIdChangeListener",null),O=b["a"]([Object(I["a"])({components:{}})],O);var R=O,x=R,P=(a("59bd"),a("2877")),D=Object(P["a"])(x,n,o,!1,null,null,null);t["a"]=D.exports},"4a57":function(e,t,a){"use strict";a("918d")},"59bd":function(e,t,a){"use strict";a("875c")},"844f":function(e,t,a){},"875c":function(e,t,a){},"918d":function(e,t,a){},b028:function(e,t,a){"use strict";var n=a("448a"),o=a.n(n),i=a("970b"),r=a.n(i),s=a("5bc3"),l=a.n(s),c=a("ed6d"),u=a.n(c),f=a("6b58"),d=a.n(f),p=a("36c6"),v=a.n(p),h=a("9ab4"),m=a("60a3");function y(e){var t=g();return function(){var a,n=v()(e);if(t){var o=v()(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return d()(this,a)}}function g(){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 b=function(e){u()(a,e);var t=y(a);function a(){var e;return r()(this,a),e=t.apply(this,arguments),e.subDevicesIds=[],e.searchForm={},e.deviceSelectVisible=!1,e}return l()(a,[{key:"deviceTempsChange",value:function(e){this.$emit("currentPageChange")}},{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.searchForm.devices=[],e&&Object.keys(e).map((function(t){return a.push.apply(a,o()(e[t]))})),this.subDevicesIds=[],a.map((function(e){var a,n;e.channel&&e.channel.length>0?((a=t.subDevicesIds).push.apply(a,o()(e.channel.map((function(e){return e.deviceId})))),(n=t.searchForm.devices).push.apply(n,o()(e.channel.map((function(e){return e.deviceId}))))):(t.subDevicesIds.push(e.deviceId),t.searchForm.devices.push(e.deviceId))})),this.$emit("currentPageChange"),this.searchForm.deviceTemps=this.searchForm.devices?"已选".concat(this.searchForm.devices.length,"台"):""}}]),a}(m["g"]);h["a"]([Object(m["f"])("dsDialog")],b.prototype,"dsDialog",void 0),h["a"]([Object(m["h"])("searchForm.deviceTemps",{deep:!0})],b.prototype,"deviceTempsChange",null),b=h["a"]([m["a"]],b),t["a"]=b},b6ec:function(e,t,a){"use strict";a("844f")},c2a7:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-alarm-parallel-info-page"},["GROUP_COMPARE"===e.psersonInfo.controlTypeCode?a("el-tabs",{attrs:{stretch:""},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"抓拍照1",name:"first"}}),a("el-tab-pane",{attrs:{label:"抓拍照2",name:"second"}})],1):e._e(),a("div",{staticClass:"custom-alarm-parallel-body"},[a("div",{staticClass:"image-display-block"},[a("div",{staticClass:"big-image-block"},[a("div",{staticClass:"big-image"},[a("qz-image",{attrs:{src:e.alarmShowBigImgLogic(e.psersonInfo,e.activeName,!1),width:420,height:236,roi:e.locationListObj,preview:!0,fitContainer:!0}})],1)]),a("div",{staticClass:"small-image-block"},[a("div",{staticClass:"small-image-item"},[a("div",{staticClass:"samll-image"},["FIRE"!==e.psersonInfo.controlTypeCode&&"VEHICLE_ILLEGAL_PARK"!==e.psersonInfo.controlTypeCode&&"VEHICLE_BLOCKED"!==e.psersonInfo.controlTypeCode?a("div",{staticClass:"text-center"},[a("qz-image",{attrs:{src:e.imageDataFormat(e.psersonInfo,"capture",!1),width:86,height:120,preview:!1,fitContainer:!0,alt:"抓拍照"+e.alarmShowGroupNumber(e.psersonInfo,!0)},on:{error:function(t){e.imgLoadErrorHandle(e.psersonInfo,e.imageDataFormat(e.psersonInfo,"capture",!0))}}}),a("span",{staticClass:"fixed-layer-desc"},[e._v("抓拍照"+e._s(e.alarmShowGroupNumber(e.psersonInfo,!0)))])],1):e._e(),e.deployImgHideType(e.psersonInfo)?a("div",{staticClass:"text-center margin-left7 img-color"},[a("qz-image",{attrs:{src:e.alarmShowSmallImgLogic(e.psersonInfo,!1),alt:"布控照"+e.alarmShowGroupNumber(e.psersonInfo,!0),width:86,height:120,preview:!1,fitContainer:!0},on:{error:function(t){e.imgLoadErrorHandle(e.psersonInfo,e.alarmShowSmallImgLogic(e.psersonInfo,!0))}}}),a("span",{staticClass:"fixed-layer-desc"},[e._v("布控照"+e._s(e.alarmShowGroupNumber(e.psersonInfo,!0)))])],1):e._e()])]),"GROUP_COMPARE"===e.psersonInfo.controlTypeCode?a("div",{staticClass:"small-image-item"},[a("div",{staticClass:"samll-image"},[a("div",{staticClass:"text-center"},[a("img",{attrs:{src:e.psersonInfo.subsidiaryCaptureImage,alt:"抓拍照2"},on:{error:function(t){return e.imgLoadErrorHandle(e.psersonInfo,"subsidiaryCaptureImage")}}}),a("span",{staticClass:"fixed-layer-desc"},[e._v("抓拍照2")])]),a("div",{staticClass:"text-center margin-left7 img-color"},[a("img",{attrs:{src:e.psersonInfo.subsidiaryImgUrl,alt:"布控照2"},on:{error:function(t){return e.imgLoadErrorHandle(e.psersonInfo,"subsidiaryImgUrl")}}}),a("span",{staticClass:"fixed-layer-desc"},[e._v("布控照2")])])])]):e._e()])]),a("div",{staticClass:"alarm-more-info"},[a("el-row",["VEHICLE_ILLEGAL_PARK"===e.psersonInfo.controlTypeCode?[a("el-col",{staticClass:"more-info-text",attrs:{span:12}},[e._v(" 识别车牌: "),a("div",{staticClass:"plate-number-style"},[e.psersonInfo.plateNo?a("qz-plate",{ref:"qzPlate",attrs:{value:e.psersonInfo.plateNo,plateColor:"5"}}):a("span",[e._v("-")])],1)]),a("el-col",{staticClass:"more-info-text",attrs:{span:12}},[e._v(" 车主姓名: "),a("div",{staticClass:"plate-number-style"},[e._v(" "+e._s(e.psersonInfo.personName||"-")+" ")])]),a("el-col",{staticClass:"more-info-text",attrs:{span:12}},[e._v(" 车主单位: "),a("div",{staticClass:"plate-number-style"},[e._v(" "+e._s(e.psersonInfo.unitName||"-")+" ")])])]:e._e(),e._l(this.topListData,(function(t,n){return["FREQUENT_STRANGER"===e.psersonInfo.controlTypeCode&&t.value&&"controlTaskName"===t.code?a("el-col",{key:n,staticClass:"more-info-text",staticStyle:{display:"none"},attrs:{span:12}}):""!==t.value&&"undefined"!==t.value&&null!==t.value?a("el-col",{key:n,staticClass:"more-info-text text-slice",attrs:{span:12}},["FREQUENT_STRANGER"===e.psersonInfo.controlTypeCode&&t.value&&"controlTaskName"===t.code?a("span",{staticStyle:{display:"none"}}):t.value&&""!==t.value?a("span",[e._v(e._s(t.name)+":")]):e._e(),!t.value||"captureTime"!==t.code&&"createTime"!==t.code?"FREQUENT_STRANGER"===e.psersonInfo.controlTypeCode&&t.value&&"controlTaskName"===t.code?a("span"):a("span",[e._v(e._s(t.value))]):a("span",[e._v(e._s(e.formateTimeStamp(t.value)))])]):e._e()]}))],2)],1),13!==this.moreFlag?a("div",{staticClass:"info-show-more"},[a("span",{staticClass:"moreInfo"},[e._v("更多信息")]),a("div",{class:[!1===this.readFlag?e.iconContainer:e.iconContainerClicked],on:{click:e.showHumanList}},[a("svg-icon",{staticClass:"read-More",staticStyle:{width:"24px",height:"24px"},attrs:{name:e.clickMore}})],1)]):e._e(),this.showInfoFlag?a("div",{staticClass:"alarm-more-info"},[a("el-row",[e._l(this.listShowInfo,(function(t,n){return[t.value?a("el-col",{key:n,staticClass:"more-info-text",attrs:{span:12}},[a("span",[e._v(e._s(t.name)+":")]),t.name?a("span",[e._v(e._s(t.value))]):e._e()]):e._e()]}))],2)],1):e._e(),a("div",{staticClass:"play-alarm-video-dialog"},[a("div",["THREE_LEVEL_CONTROL"==e.data.controlTypeCode?a("el-button",{attrs:{type:"primary"},on:{click:e.jumpFile}},[e._v("查看历史通行档案")]):e._e()],1)])]),a("el-dialog",{ref:"videoShow",attrs:{"custom-class":"play-video-dialog play-video-dialog-fullscreen",title:"播放视频","close-on-click-modal":!1,visible:e.videoPlayVisible,"append-to-body":!e.isFullScreen,top:"0",modal:!1},on:{"update:visible":function(t){e.videoPlayVisible=t},close:e.cancelVideoPlay}},[a("qz-player",{staticStyle:{height:"450px"},attrs:{type:e.videoType,"plugin-url":e.pluginUrl,"player-server":e.playServer,devices:e.devices,vodTime:e.vodTime}})],1)],1)},o=[],i=a("c973"),r=a.n(i),s=a("970b"),l=a.n(s),c=a("5bc3"),u=a.n(c),f=a("ed6d"),d=a.n(f),p=a("6b58"),v=a.n(p),h=a("36c6"),m=a.n(h),y=a("a34a"),g=a.n(y),b=a("9ab4"),I=a("60a3"),C=a("fca5"),T=a.n(C),S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("qz-plate",{attrs:{plateColor:e.type,colors:e.PLATE_COLORS},model:{value:e.plate,callback:function(t){e.plate=t},expression:"plate"}})},k=[],L=a("7eb6"),w=a("e5da"),N=a.n(w),F=a("b7b0"),_=a.n(F),E=a("2f28"),O=a.n(E),R=a("60d0"),x=a.n(R),P=a("9157"),D=a.n(P),A=a("dc5b"),j=a.n(A),V=a("30d1"),M=a.n(V),U=a("6ca1d"),B=a.n(U),H=a("7faf"),$=a.n(H);function G(e){var t=z();return function(){var a,n=m()(e);if(t){var o=m()(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return v()(this,a)}}function z(){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 q=function(e){d()(a,e);var t=G(a);function a(){var e;return l()(this,a),e=t.apply(this,arguments),e.PLATE_COLORS=[{label:"未知",value:"未知",fontColor:"#010101"},{label:"黑",value:"黑",fontColor:"#FFFFFF",plateSrc:N.a},{label:"白",value:"白",fontColor:"#010101",plateSrc:_.a},{label:"蓝",value:"蓝",fontColor:"#FFFFFF",plateSrc:O.a},{label:"黄",value:"黄",fontColor:"#010101",plateSrc:x.a},{label:"绿色",value:"绿",fontColor:"#FFFFFF",plateSrc:D.a,special:!0},{label:"黄绿",value:"黄绿",fontColor:"#010101",plateSrc:j.a},{label:"蓝白渐变",value:"蓝白渐变",fontColor:"#010101",plateSrc:M.a},{label:"渐变绿",value:"渐变绿",fontColor:"#010101",plateSrc:B.a},{label:"临时牌照",value:"临时车牌",fontColor:"#010101",plateSrc:$.a},{label:"其他",value:"其他",fontColor:"#010101"}],e}return u()(a,[{key:"mounted",value:function(){}}]),a}(L["a"]);b["a"]([Object(I["e"])({default:""})],q.prototype,"plate",void 0),b["a"]([Object(I["e"])({default:""})],q.prototype,"type",void 0),q=b["a"]([Object(I["a"])({})],q);var Z=q,Q=Z,K=(a("b6ec"),a("2877")),J=Object(K["a"])(Q,S,k,!1,null,null,null),W=J.exports,Y=a("6fc5"),X=a("9dba"),ee=a("0613"),te=a("e33d"),ae=a("1668");function ne(e,t){var a="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=oe(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,r=!0,s=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){s=!0,i=e},f:function(){try{r||null==a.return||a.return()}finally{if(s)throw i}}}}function oe(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,n=new Array(t);a<t;a++)n[a]=e[a];return n}function re(e){var t=se();return function(){var a,n=m()(e);if(t){var o=m()(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return v()(this,a)}}function se(){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 le=function(e){d()(n,e);var t=re(n);function n(){var e;return l()(this,n),e=t.apply(this,arguments),e.psersonInfo={locationList:{x:"",y:"",z:"",width:"",height:""}},e.humanInfoList={location:{locationList:{x:"",y:"",z:"",width:"",height:""}}},e.activeName="first",e.videoPlayVisible=!1,e.pluginUrl="./alarm-front/player/DCSPlugin-1.2.0.exe",e.playServer="",e.playServerSave="",e.filterZero=te["filterZero"],e.devices=[{rtspUrl:"",dcs:!1}],e.vodTime={beginTime:"",endTime:""},e.captureTimeFormat=ae["g"],e.imageDataFormat=ae["k"],e.alarmShowSmallImgLogic=ae["c"],e.deployImgHideType=ae["i"],e.alarmShowBigImgLogic=ae["a"],e.cardIdShowLogic=ae["h"],e.alarmShowGroupNumber=ae["b"],e.captureFullTimeFormat=ae["d"],e.captureFullTimeOperation=ae["e"],e.videoType="playback",e.videoShow="videoShow",e.clickMore="click",e.showInfoFlag=!1,e.moreFlag=0,e.readFlag=!1,e.iconContainer="iconContainer",e.iconContainerClicked="iconContainerClicked",e.rightPush="rightPush",e.locationFirst={locationList:{x:"",y:"",z:"",width:"",height:""}},e.topListData=[],e.targetListFilter=[],e.listShowInfo=[],e.isFullScreenError=!1,e.currentUserName="",e.errorMsg="回放链接已失效",e}return u()(n,[{key:"filterListOperation",value:function(e){return e.filter((function(e){return""===e.value||void 0===e.value}))}},{key:"srcListOperate",value:function(e,t){var a=this.alarmShowBigImgLogic(e,t,!1),n=[];return n.push(a),n}},{key:"formateTimeStamp",value:function(e){var t="",a=new Date(e),n=a.getFullYear(),o=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,i=a.getDate()<10?"0"+a.getDate():a.getDate(),r=a.getHours()<10?"0"+a.getHours():a.getHours(),s=a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes(),l=a.getSeconds()<10?"0"+a.getSeconds():a.getSeconds();return t=n+"-"+o+"-"+i+" "+r+":"+s+":"+l,t}},{key:"pTypeChanges",value:function(e){this.initMetaAlarmInfo()}},{key:"created",value:function(){var e=r()(g.a.mark((function e(){var t;return g.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.initMetaAlarmInfo(),t=Object(Y["e"])(X["a"],ee["a"]),this.currentUserName=t.userInfo&&Object.keys(t.userInfo).length>0?t.userInfo.loginName:"",e.next=5,this.fetchDcsAccount();case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"fetchDcsAccount",value:function(){var e=this;return this.service.getDCSAccount({deviceTypeCode:"dcs"}).then((function(t){if(t.success&&t.data.length>0){var a=t.data[0];a.cameraUserName&&a.cameraPassword&&a.cameraIp?e.playServerSave="".concat(a.cameraUserName,":").concat(a.cameraPassword,"@").concat(a.cameraIp,":2015"):e.playServerSave=""}}))}},{key:"locationListObj",get:function(){return this.psersonInfo.location&&this.psersonInfo.location.locationList?this.psersonInfo.location.locationList:[]}},{key:"initMetaAlarmInfo",value:function(){var e=this;this.psersonInfo=Object.assign({},this.data),this.humanInfoList=Object.assign({},this.infoShowData),this.locationFirst=this.psersonInfo.location,0===this.psersonInfo.identifyType||(this.psersonInfo.subDeviceName=this.psersonInfo.deviceName),this.psersonInfo.deviceName="";var t=[{code:"name",value:this.psersonInfo.name||"",name:"人员名称"},{code:"",value:"GATHER"===this.psersonInfo.controlTypeCode?this.filterZero(this.psersonInfo.threshold):"",name:"布控任务阈值"},{code:"",value:"GATHER"===this.psersonInfo.controlTypeCode?this.filterZero(this.psersonInfo.snapNum):"",name:"抓拍人数"},{code:"helmetOffNum",value:"HELMENT"===this.psersonInfo.controlTypeCode?this.filterZero(this.psersonInfo.helmetOffNum):"",name:"未戴安全帽人数"},{code:"personNum",value:"HELMENT"===this.psersonInfo.controlTypeCode?this.filterZero(this.psersonInfo.helmetNum):"",name:"抓拍人数"},{code:"areaName",value:this.psersonInfo.areaName||"",name:"设备区域"},{code:"personNo",value:this.psersonInfo.personNo||"",name:"工号"},{code:"deviceName",value:this.psersonInfo.deviceName||"",name:"边端名称"},{code:"subDeviceName",value:this.psersonInfo.subDeviceName||"",name:"设备名称"},{code:"carColour",value:this.psersonInfo.carColour||"",name:"车辆颜色"},{code:"carType",value:this.psersonInfo.carType||"",name:"识别车型"},{code:"carBrand",value:this.psersonInfo.carBrand||"",name:"车辆品牌"},{code:"controlTaskName",value:this.psersonInfo.controlTaskName||"",name:"任务名称"},{code:"controlTaskName",value:this.formatAlarmProperties(this.psersonInfo.taskProperties)||"",name:"布控属性"},{code:"captureTime",value:this.psersonInfo.captureTime||"",name:"抓拍时间"}];this.topListData=t;var a=[{code:"groupName",value:this.psersonInfo.groupName||"",name:"人像库名称"},{code:"sex",value:this.psersonInfo.sex?0===this.psersonInfo.sex?"男":"女":"",name:"性别"},{code:"age",value:this.psersonInfo.age||"",name:"年龄"},{code:"cardType",value:this.psersonInfo.cardType||"",name:"IC卡类型"},{code:"cardId",value:this.psersonInfo.cardId||"",name:"IC卡号"},{code:"userName",value:this.psersonInfo.userName||"",name:"用户名"},{code:"phone",value:this.psersonInfo.phone||"",name:"手机号"},{code:"email",value:this.psersonInfo.email||"",name:"邮箱"},{code:"welcome",value:this.psersonInfo.welcome||"",name:"欢迎语"},{code:"masterName",value:this.psersonInfo.masterName||"",name:"A的用户名"},{code:"masterPersonNo",value:this.psersonInfo.masterPersonNo||"",name:"A的工号"},{code:"subsidiaryName",value:this.psersonInfo.subsidiaryName||"",name:"B的用户名"},{code:"subsidiaryPersonNo",value:this.psersonInfo.subsidiaryPersonNo||"",name:"B的工号"}];this.listShowInfo=a;var n,o=ne(this.listShowInfo);try{for(o.s();!(n=o.n()).done;){var i=n.value;""===i.value&&(this.moreFlag+=1)}}catch(c){o.e(c)}finally{o.f()}if(this.psersonInfo.userDefined&&0!==this.psersonInfo.userDefined.length){var r,s=ne(this.psersonInfo.userDefined);try{var l=function(){var t=r.value,a=e.listShowInfo.filter((function(e){return e.code===t.code}));0===a.length&&e.listShowInfo.push({code:t.code,name:t.name,value:t.value})};for(s.s();!(r=s.n()).done;)l()}catch(c){s.e(c)}finally{s.f()}}this.activeName="first",this.psersonInfo.activeName=this.activeName}},{key:"imgLoadErrorHandle",value:function(e,t){e&&(e[t]=a("3810"))}},{key:"handleClick",value:function(){this.psersonInfo.activeName=this.activeName}},{key:"cancelVideoPlay",value:function(){this.videoPlayVisible=!1}},{key:"showHumanList",value:function(){this.showInfoFlag=!this.showInfoFlag,this.readFlag=!this.readFlag}},{key:"playVideo",value:function(e){var t=this;this.service.getRtspUrl({deviceId:e.deviceId,captureTime:e.captureTime}).then((function(e){if(e.success)if(e.data.cameraRtspUrl)t.videoPlayVisible=!0,t.devices[0].rtspUrl=e.data.cameraRtspUrl,t.devices[0].dcs=0===e.data.fromDcm,t.vodTime={beginTime:e.data.beginTime,endTime:e.data.endTime},t.playServer=0===e.data.fromDcm?t.playServerSave:"";else if(t.isFullScreen){if(t.isFullScreenError)return;t.isFullScreenError=!0,t.errorMsg="当前播放链接不可用,请重新操作",setTimeout((function(){t.isFullScreenError=!1}),3e3)}else t.$message.error("当前播放链接不可用,请重新操作");else if(t.isFullScreen){if(t.isFullScreenError)return;t.isFullScreenError=!0,t.errorMsg=e.message,setTimeout((function(){t.isFullScreenError=!1}),3e3)}else t.$message.error(e.message)}))}},{key:"videoBack",value:function(e){e.hasVideo&&(this.videoPlayVisible=!0,e.videoPath||this.$message.error("当前播放链接不可用,请重新操作"),this.videoType="playback")}},{key:"formatAlarmProperties",value:function(e){var t=[];return e&&e.length&&e.map((function(e){t.push(e.value)})),t.join("; ")}},{key:"plateBtnBg",value:function(e){return"蓝"===e?"plate-btn-blue":"绿"===e?"plate-btn-green":"黑"===e?"plate-btn-black":"黄"===e?"plate-btn-yellow":"白"===e?"plate-btn-white":"黄绿"===e?"plate-btn-yellow-green":"蓝白渐变"===e?"plate-btn-white-blue":"渐变绿"===e?"plate-btn-white-green":"未知"===e||"临时车牌"===e||"其他"===e?"plate-btn-unknown":void 0}},{key:"jumpFile",value:function(){var e=1==this.data.registerType?"/sub-front-file#/suspected/list/detail?id=".concat(this.data.personId):"/sub-front-file#/archives/list/detail?id=".concat(this.data.personId);window.open(e,"_blank")}}]),n}(I["g"]);b["a"]([Object(I["e"])({default:!1})],le.prototype,"isFullScreen",void 0),b["a"]([Object(I["e"])({default:""})],le.prototype,"pType",void 0),b["a"]([Object(I["e"])({required:!0,default:{}})],le.prototype,"data",void 0),b["a"]([Object(I["e"])()],le.prototype,"infoShowData",void 0),b["a"]([Object(I["e"])({default:!0})],le.prototype,"isShowVideo",void 0),b["a"]([Object(I["h"])("pType")],le.prototype,"pTypeChanges",null),le=b["a"]([Object(I["a"])({components:{QzPlayer:T.a,AlarmPlate:W}})],le);var ce=le,ue=ce,fe=(a("4a57"),Object(K["a"])(ue,n,o,!1,null,null,null));t["a"]=fe.exports}}]); |