chunk-6236aa01.afae7344.js
11.9 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6236aa01"],{1058:function(e,t,n){"use strict";n("a505")},1148:function(e,t,n){"use strict";var i=n("a691"),a=n("1d80");e.exports=function(e){var t=String(a(this)),n="",c=i(e);if(c<0||c==1/0)throw RangeError("Wrong number of repetitions");for(;c>0;(c>>>=1)&&(t+=t))1&c&&(n+=t);return n}},"19e3":function(e,t,n){"use strict";n("b0c0"),n("b680");var i=n("7a23"),a={style:{margin:"0 5px"},class:"itemBox"},c={style:{margin:"0 5px"},class:"itemBox"},r=["onClick"],u=["onClick"],o={class:"featureNum"},l=Object(i["o"])("返回");function s(e,t,n,s,b,d){var f=Object(i["S"])("el-image"),O=Object(i["S"])("a-col"),j=Object(i["S"])("a-row"),m=Object(i["S"])("a-button"),g=Object(i["S"])("a-modal"),p=Object(i["S"])("imgDialog"),v=Object(i["S"])("imgOtherDialog"),h=Object(i["T"])("loading");return Object(i["J"])(),Object(i["l"])(i["b"],null,[Object(i["p"])(g,{title:"店员特征对比",visible:s.isVisible,"onUpdate:visible":t[2]||(t[2]=function(e){return s.isVisible=e}),width:"1500px",height:"90%",class:"detail-modal"},{footer:Object(i["ib"])((function(){return[Object(i["p"])(m,{onClick:s.onCancel},{default:Object(i["ib"])((function(){return[l]})),_:1},8,["onClick"])]})),default:Object(i["ib"])((function(){return[Object(i["jb"])((Object(i["J"])(),Object(i["l"])("div",null,[Object(i["p"])(j,{gutter:[16,16]},{default:Object(i["ib"])((function(){return[Object(i["p"])(O,{span:4},{default:Object(i["ib"])((function(){return[Object(i["m"])("div",a,[Object(i["p"])(f,{src:s.detailData.picture_url,fit:"fill",class:"single-image",onClick:t[0]||(t[0]=function(e){return s.clickItem(s.detailData)})},null,8,["src"]),Object(i["m"])("span",{class:"el-icon-document downloadFile",onClick:t[1]||(t[1]=function(e){return s.downloadFile(s.detailData,e)})}),Object(i["m"])("div",null,"时间:"+Object(i["W"])(s.detailData.counttime),1),Object(i["m"])("div",{class:Object(i["z"])(["direction","direction"+s.detailData.direction])},"方向:"+Object(i["W"])(s.formatDirection(s.detailData.direction)),3),Object(i["m"])("div",null,"地点:"+Object(i["W"])(s.detailData.gate_name),1)])]})),_:1}),Object(i["p"])(O,{span:20},{default:Object(i["ib"])((function(){return[(Object(i["J"])(!0),Object(i["l"])(i["b"],null,Object(i["Q"])(s.dataList,(function(e,t){return Object(i["J"])(),Object(i["l"])("div",{key:t,class:"rowBox"},[Object(i["m"])("p",null,Object(i["W"])(e.name)+" "+Object(i["W"])(e.shopname),1),Object(i["p"])(j,null,{default:Object(i["ib"])((function(){return[(Object(i["J"])(!0),Object(i["l"])(i["b"],null,Object(i["Q"])(e.personList,(function(e){return Object(i["J"])(),Object(i["j"])(O,{span:4,key:e.id,class:"colItem"},{default:Object(i["ib"])((function(){return[Object(i["m"])("div",c,[Object(i["p"])(f,{src:e.picture_url,fit:"fill",class:"single-image",onClick:function(t){return s.clickItem(e)}},null,8,["src","onClick"]),Object(i["m"])("span",{class:"el-icon-picture-outline openImage",onClick:function(t){return s.openImage(e,t)}},null,8,r),Object(i["m"])("span",{class:"el-icon-document downloadFile",onClick:function(t){return s.downloadFile(e,t)}},null,8,u),Object(i["m"])("p",o,Object(i["W"])(e.featureNum?e.featureNum.toFixed(2):0),1),Object(i["m"])("div",null,"时间:"+Object(i["W"])(e.counttime),1)])]})),_:2},1024)})),128))]})),_:2},1024)])})),128))]})),_:1})]})),_:1})])),[[h,s.isLoading]])]})),_:1},8,["visible"]),Object(i["p"])(p,{ref:"imgModelRef"},null,512),Object(i["p"])(v,{ref:"imgOtherDialogRef"},null,512)],64)}n("159b"),n("ac1f"),n("1276");var b=n("f944"),d=n("6e63"),f=n("6efa"),O=n("5c11"),j=n("3cad"),m={components:{imgDialog:O["a"],imgOtherDialog:j["a"]},setup:function(){var e=Object(i["O"])(!1),t=Object(i["O"])(!1),n=Object(i["O"])({}),a=Object(i["O"])(),c=Object(i["O"])(),r=Object(i["O"])([]),u=function(i,a){n.value=i,e.value=!0,r.value=[],t.value=!0,d["a"].getStaffContrastList(a).then((function(e){t.value=!1,Object(b["a"])(e.data)&&e.data.length>0&&(e.data.forEach((function(e){e.personList.forEach((function(e){e.features_url&&(e.features_url=window._baseImgUrl+e.features_url),e.picture_url&&(e.picture_url=window._baseImgUrl+e.picture_url)}))})),r.value=e.data)}))},o=function(e){switch(e){case 1:return"进";case-1:return"出";case 0:return"横穿";default:break}},l=function(e){f["a"].getBodyPoint({feature_url:e.features_url}).then((function(t){a.value.initDialog(e.picture_url,t.data)}))},s=function(){e.value=!1},O=function(e,t){t.stopPropagation(),e.features_url?window.open(e.features_url):ElMessage({message:"该图片没有特征",type:"warning"})},j=function(e,t){if(t.stopPropagation(),e.features_url){var n=e.picture_url;c.value.initDialog(n.split("0.jpg")[0]+"1.jpg")}else ElMessage({message:"该图片没有特征",type:"warning"})};return{isVisible:e,detailData:n,onCancel:s,dataList:r,initDialog:u,isLoading:t,formatDirection:o,downloadFile:O,clickItem:l,imgModelRef:a,imgOtherDialogRef:c,openImage:j}}},g=(n("4017"),n("d959")),p=n.n(g);const v=p()(m,[["render",s],["__scopeId","data-v-541ec4d6"]]);t["a"]=v},"3cad":function(e,t,n){"use strict";var i=n("7a23"),a={style:{width:"100%","text-align":"center"}},c=Object(i["o"])("返回");function r(e,t,n,r,u,o){var l=Object(i["S"])("el-image"),s=Object(i["S"])("a-button"),b=Object(i["S"])("a-modal");return r.isVisible?(Object(i["J"])(),Object(i["j"])(b,{key:0,title:"body1",visible:r.isVisible,"onUpdate:visible":t[1]||(t[1]=function(e){return r.isVisible=e}),width:"1200px",height:"90%",class:"detail-modal"},{footer:Object(i["ib"])((function(){return[Object(i["p"])(s,{onClick:t[0]||(t[0]=function(e){return r.isVisible=!1})},{default:Object(i["ib"])((function(){return[c]})),_:1})]})),default:Object(i["ib"])((function(){return[Object(i["m"])("div",a,[Object(i["p"])(l,{src:r.imgUrl,fit:"contain",class:"single-image"},null,8,["src"])])]})),_:1},8,["visible"])):Object(i["k"])("",!0)}var u={setup:function(){var e=Object(i["O"])(!1),t=Object(i["O"])(),n=function(n){t.value=n,e.value=!0};return{isVisible:e,initDialog:n,imgUrl:t}}},o=n("d959"),l=n.n(o);const s=l()(u,[["render",r]]);t["a"]=s},4017:function(e,t,n){"use strict";n("7db9")},"408a":function(e,t,n){var i=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=i(e))throw TypeError("Incorrect invocation");return+e}},"4df8":function(e,t,n){"use strict";var i=n("d4ec"),a=n("bee2"),c=n("672a"),r=n("c68b"),u=function(){function e(){Object(i["a"])(this,e)}return Object(a["a"])(e,[{key:"getSnapshotRecordList",value:function(e){return c["a"].request({method:"GET",url:"/faceRecognitions/faceRecord",params:Object(r["a"])(e)})}},{key:"getAccountList",value:function(){return c["a"].request({method:"GET",url:"/accounts"})}},{key:"getPlazaList",value:function(e){return c["a"].request({method:"GET",url:"/malls",params:Object(r["a"])({accountIds:e.account_id})})}},{key:"getResidenceList",value:function(e){return c["a"].request({method:"GET",url:"/residence",params:e})}},{key:"getZoneList",value:function(e){return c["a"].request({method:"GET",url:"/zones/zoneList",params:Object(r["a"])({account_id:e.account_id,plaza_id:e.plaza_id})})}},{key:"getGateList",value:function(e){return c["a"].request({method:"GET",url:"/gates/gateByInfo",params:Object(r["a"])({account_id:e.account_id,plaza_id:e.plaza_id,zone_id:e.zone_id,type:e.type})})}}]),e}(),o=new u;t["a"]=o},"5c11":function(e,t,n){"use strict";var i=n("7a23"),a=function(e){return Object(i["M"])("data-v-1ba71689"),e=e(),Object(i["K"])(),e},c=a((function(){return Object(i["m"])("canvas",{id:"myCanvas"},null,-1)})),r=["src"],u=Object(i["o"])("返回");function o(e,t,n,a,o,l){var s=Object(i["S"])("a-button"),b=Object(i["S"])("a-modal");return a.isVisible?(Object(i["J"])(),Object(i["j"])(b,{key:0,title:"图片",visible:a.isVisible,"onUpdate:visible":t[0]||(t[0]=function(e){return a.isVisible=e}),width:"1200px",height:"90%",class:"detail-modal"},{footer:Object(i["ib"])((function(){return[Object(i["p"])(s,{onClick:a.onCancel},{default:Object(i["ib"])((function(){return[u]})),_:1},8,["onClick"])]})),default:Object(i["ib"])((function(){return[c,Object(i["m"])("img",{src:a.imgUrl,alt:"",id:"img"},null,8,r)]})),_:1},8,["visible"])):Object(i["k"])("",!0)}var l={setup:function(){var e=Object(i["O"])(!1),t=Object(i["O"])(!1),n=Object(i["O"])({}),a=Object(i["O"])(),c=Object(i["O"])(),r=Object(i["O"])(),u=function(t,n){a.value=t,e.value=!0,setTimeout((function(){var e=document.getElementById("img"),t=e.offsetHeight,i=e.offsetWidth;c.value=document.getElementById("myCanvas"),c.value.height=t,c.value.width=i,r.value=c.value.getContext("2d"),r.value.drawImage(e,0,0,i,t),r.value.beginPath(),r.value.lineWidth=3,r.value.strokeStyle="red",r.value.moveTo(n.head_x_inSmall,n.head_y_inSmall),r.value.lineTo(n.foot_x_inSmall,n.foot_y_inSmall),r.value.stroke()}),0)},o=function(){c.value="",e.value=!1};return{isVisible:e,onCancel:o,initDialog:u,isLoading:t,imgUrl:a,detailData:n}}},s=(n("1058"),n("d959")),b=n.n(s);const d=b()(l,[["render",o],["__scopeId","data-v-1ba71689"]]);t["a"]=d},"6e63":function(e,t,n){"use strict";var i=n("d4ec"),a=n("bee2"),c=n("672a"),r=n("c68b"),u=function(){function e(){Object(i["a"])(this,e)}return Object(a["a"])(e,[{key:"getPersonGroupList",value:function(e){return c["a"].request({method:"GET",url:"/feature/personGroup",params:Object(r["a"])(e)})}},{key:"getPersonsDetailList",value:function(e){return c["a"].request({method:"GET",url:"/feature/persons",params:Object(r["a"])(e)})}},{key:"getStaffContrastList",value:function(e){return c["a"].request({method:"GET",url:"/feature/staffContrast",params:Object(r["a"])(e)})}},{key:"getPersonContrastList",value:function(e){return c["a"].request({method:"POST",url:"/feature/personContrast",data:Object(r["a"])(e)})}}]),e}(),o=new u;t["a"]=o},"6efa":function(e,t,n){"use strict";var i=n("d4ec"),a=n("bee2"),c=n("672a"),r=n("c68b"),u=function(){function e(){Object(i["a"])(this,e)}return Object(a["a"])(e,[{key:"getClusterResultList",value:function(e){return c["a"].request({method:"GET",url:"/faceRecognitions/faceRecordGroup",params:Object(r["a"])(e)})}},{key:"getAccountList",value:function(){return c["a"].request({method:"GET",url:"/accounts"})}},{key:"getPlazaList",value:function(e){return c["a"].request({method:"GET",url:"/malls",params:Object(r["a"])({accountIds:e.account_id})})}},{key:"getZoneList",value:function(e){return c["a"].request({method:"GET",url:"/zones/zoneList",params:Object(r["a"])({account_id:e.account_id,plaza_id:e.plaza_id})})}},{key:"getGateList",value:function(e){return c["a"].request({method:"GET",url:"/gates/gateByInfo",params:Object(r["a"])({account_id:e.account_id,plaza_id:e.plaza_id,zone_id:e.zone_id,type:e.type})})}},{key:"getBodyPoint",value:function(e){return c["a"].request({method:"GET",url:"/feature/bodyPoint",params:Object(r["a"])(e)})}}]),e}(),o=new u;t["a"]=o},"7db9":function(e,t,n){},a505:function(e,t,n){},b680:function(e,t,n){"use strict";var i=n("23e7"),a=n("a691"),c=n("408a"),r=n("1148"),u=n("d039"),o=1..toFixed,l=Math.floor,s=function(e,t,n){return 0===t?n:t%2===1?s(e,t-1,n*e):s(e*e,t/2,n)},b=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},d=function(e,t,n){var i=-1,a=n;while(++i<6)a+=t*e[i],e[i]=a%1e7,a=l(a/1e7)},f=function(e,t){var n=6,i=0;while(--n>=0)i+=e[n],e[n]=l(i/t),i=i%t*1e7},O=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var i=String(e[t]);n=""===n?i:n+r.call("0",7-i.length)+i}return n},j=o&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!u((function(){o.call({})}));i({target:"Number",proto:!0,forced:j},{toFixed:function(e){var t,n,i,u,o=c(this),l=a(e),j=[0,0,0,0,0,0],m="",g="0";if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(m="-",o=-o),o>1e-21)if(t=b(o*s(2,69,1))-69,n=t<0?o*s(2,-t,1):o/s(2,t,1),n*=4503599627370496,t=52-t,t>0){d(j,0,n),i=l;while(i>=7)d(j,1e7,0),i-=7;d(j,s(10,i,1),0),i=t-1;while(i>=23)f(j,1<<23),i-=23;f(j,1<<i),d(j,1,1),f(j,2),g=O(j)}else d(j,0,n),d(j,1<<-t,0),g=O(j)+r.call("0",l);return l>0?(u=g.length,g=m+(u<=l?"0."+r.call("0",l-u)+g:g.slice(0,u-l)+"."+g.slice(u-l))):g=m+g,g}})}}]);