chunk-46fd989a.4a99d8bc.js 8.46 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-46fd989a"],{"1da1":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n("d3b7");function a(e,t,n,a,u,i,c){try{var r=e[i](c),o=r.value}catch(l){return void n(l)}r.done?t(o):Promise.resolve(o).then(a,u)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(u,i){var c=e.apply(t,n);function r(e){a(c,u,i,r,o,"next",e)}function o(e){a(c,u,i,r,o,"throw",e)}r(void 0)}))}}},"472d":function(e,t,n){},"4df8":function(e,t,n){"use strict";var a=n("d4ec"),u=n("bee2"),i=n("672a"),c=n("c68b"),r=function(){function e(){Object(a["a"])(this,e)}return Object(u["a"])(e,[{key:"getSnapshotRecordList",value:function(e){return i["a"].request({method:"GET",url:"/faceRecognitions/faceRecord",params:Object(c["a"])(e)})}},{key:"getAccountList",value:function(){return i["a"].request({method:"GET",url:"/accounts"})}},{key:"getPlazaList",value:function(e){return i["a"].request({method:"GET",url:"/malls",params:Object(c["a"])({accountIds:e.account_id})})}},{key:"getResidenceList",value:function(e){return i["a"].request({method:"GET",url:"/residence",params:e})}},{key:"getZoneList",value:function(e){return i["a"].request({method:"GET",url:"/zones/zoneList",params:Object(c["a"])({account_id:e.account_id,plaza_id:e.plaza_id})})}},{key:"getGateList",value:function(e){return i["a"].request({method:"GET",url:"/gates/gateByInfo",params:Object(c["a"])({account_id:e.account_id,plaza_id:e.plaza_id,zone_id:e.zone_id,type:e.type})})}}]),e}(),o=new r;t["a"]=o},"58f5":function(e,t,n){"use strict";n.r(t);var a=n("7a23"),u=Object(a["o"])("店员"),i=Object(a["o"])("顾客"),c=Object(a["o"])("查询");function r(e,t,n,r,o,l){var d=Object(a["S"])("a-select"),s=Object(a["S"])("a-form-item"),p=Object(a["S"])("a-select-option"),b=Object(a["S"])("a-date-picker"),f=Object(a["S"])("a-time-picker"),O=Object(a["S"])("a-button"),m=Object(a["S"])("a-form"),j=Object(a["S"])("a-table"),v=Object(a["T"])("loading");return Object(a["J"])(),Object(a["l"])(a["b"],null,[Object(a["p"])(m,{model:r.queryForm,layout:"inline","label-col":{style:{width:"80px"}}},{default:Object(a["ib"])((function(){return[Object(a["p"])(s,{label:"集团:",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(d,{value:r.queryForm.account_id,"onUpdate:value":t[0]||(t[0]=function(e){return r.queryForm.account_id=e}),style:{width:"280px"},onChange:r.onAccountChange,options:r.accountList,optionFilterProp:"label","show-search":""},null,8,["value","onChange","options"])]})),_:1}),Object(a["p"])(s,{label:"门店:",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(d,{value:r.queryForm.plaza_id,"onUpdate:value":t[1]||(t[1]=function(e){return r.queryForm.plaza_id=e}),style:{width:"280px"},onChange:r.onPlazaChange,options:r.plazaList,optionFilterProp:"label","show-search":""},null,8,["value","onChange","options"])]})),_:1}),Object(a["p"])(s,{label:"监控点名称:",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(d,{value:r.queryForm.gate_id,"onUpdate:value":t[2]||(t[2]=function(e){return r.queryForm.gate_id=e}),style:{width:"280px"},mode:"multiple",maxTagCount:1,options:r.gateList,optionFilterProp:"label","show-search":""},null,8,["value","options"])]})),_:1}),Object(a["p"])(s,{label:"人员类型:",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(d,{value:r.queryForm.personType,"onUpdate:value":t[3]||(t[3]=function(e){return r.queryForm.personType=e}),mode:"multiple",maxTagCount:1,style:{width:"280px"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(p,{value:1},{default:Object(a["ib"])((function(){return[u]})),_:1}),Object(a["p"])(p,{value:0},{default:Object(a["ib"])((function(){return[i]})),_:1})]})),_:1},8,["value"])]})),_:1}),Object(a["p"])(s,{label:"选择日期:",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(b,{value:r.queryForm.date,"onUpdate:value":t[4]||(t[4]=function(e){return r.queryForm.date=e}),format:"YYYY-MM-DD",style:{width:"280px"}},null,8,["value"])]})),_:1}),Object(a["p"])(s,{label:"选择时间:",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(f,{value:r.queryForm.startTime,"onUpdate:value":t[5]||(t[5]=function(e){return r.queryForm.startTime=e}),style:{width:"140px"}},null,8,["value"]),Object(a["p"])(f,{value:r.queryForm.endTime,"onUpdate:value":t[6]||(t[6]=function(e){return r.queryForm.endTime=e}),style:{width:"140px"}},null,8,["value"])]})),_:1}),Object(a["p"])(s,{style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(O,{type:"primary",onClick:r.confirmSearch,loading:r.isLoading},{default:Object(a["ib"])((function(){return[c]})),_:1},8,["onClick","loading"])]})),_:1})]})),_:1},8,["model"]),Object(a["jb"])(Object(a["p"])(j,{dataSource:r.dataList,columns:r.columns,pagination:!1},null,8,["dataSource","columns"]),[[v,r.isLoading]])],64)}var o=n("1da1"),l=n("b85c"),d=(n("96cf"),n("d3b7"),n("25f0"),n("b0c0"),n("159b"),n("c1df")),s=n.n(d),p=n("4df8"),b=n("d4ec"),f=n("bee2"),O=n("672a"),m=n("c68b"),j=function(){function e(){Object(b["a"])(this,e)}return Object(f["a"])(e,[{key:"getMinuteList",value:function(e){return O["a"].request({method:"GET",url:"/faceRecognitions/minute",params:Object(m["a"])(e)})}}]),e}(),v=new j,g=v,h=n("f944"),y=(n("8d44"),n("47ce")),_=[{title:"序号",dataIndex:"index",align:"center",width:100},{title:"统计时间",dataIndex:"dateTime",align:"center"},{title:"进客流",dataIndex:"in",align:"center"},{title:"出客流",dataIndex:"out",align:"center"}],w={components:{PlusOutlined:y["a"],VNodes:function(e,t){var n=t.attrs;return n.vnodes}},setup:function(){var e=Object(a["O"])(!1),t=(Object(a["O"])(!1),Object(a["O"])([])),n=Object(a["O"])([]),u=Object(a["O"])([]),i=Object(a["O"])([]),c=Object(a["O"])([]),r=Object(a["N"])({account_id:[],plaza_id:[],gate_id:[],personType:[1,0],date:s()(s()().format("YYYY-MM-DD"),"YYYY-MM-DD"),startTime:s()("00:00:00","HH:mm:ss"),endTime:s()("23:59:59","HH:mm:ss")}),d=function(){f(),r.gate_id=[],i.value=[]},b=function(){j()},f=function(){r.plaza_id=[],n.value=[],p["a"].getPlazaList({account_id:r.account_id.toString()}).then((function(e){if(Object(h["a"])(e)){var t,a=Object(l["a"])(e);try{for(a.s();!(t=a.n()).done;){var u=t.value;n.value.push({value:u.id,label:u.name})}}catch(i){a.e(i)}finally{a.f()}}}))},O=function(){r.account_id=[],t.value=[],p["a"].getAccountList().then((function(e){if(Object(h["a"])(e)){var n,a=Object(l["a"])(e);try{for(a.s();!(n=a.n()).done;){var u=n.value;t.value.push({value:u.id,label:u.name})}}catch(i){a.e(i)}finally{a.f()}}}))},j=function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r.gate_id=[],i.value=[],p["a"].getGateList({account_id:r.account_id.toString(),plaza_id:r.plaza_id.toString(),type:0}).then((function(e){if(Object(h["a"])(e.data)){var t,n=Object(l["a"])(e.data);try{for(n.s();!(t=n.n()).done;){var a=t.value;r.gate_id.push(a.id),i.value.push({value:a.id,label:a.name})}}catch(u){n.e(u)}finally{n.f()}}}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){e.value=!0;var t=Object(a["Y"])(r),n=Object(m["a"])({account_id:t.account_id.toString(),plaza_id:t.plaza_id.toString(),gate_id:t.gate_id.toString(),personType:t.personType.toString(),startTime:Object(m["b"])(t.date)+" "+Object(m["c"])(t.startTime),endTime:Object(m["b"])(t.date)+" "+Object(m["c"])(t.endTime)});g.getMinuteList(n).then((function(t){e.value=!1,t.forEach((function(e,t){e.index=t+1})),c.value=t}))},y=function(){O()};return y(),{isLoading:e,accountList:t,plazaList:n,zoneList:u,gateList:i,dataList:c,queryForm:r,columns:_,onAccountChange:d,onPlazaChange:b,confirmSearch:v}}},T=(n("e2ca"),n("d959")),q=n.n(T);const L=q()(w,[["render",r],["__scopeId","data-v-3b0fceea"]]);t["default"]=L},"8d44":function(e,t,n){"use strict";var a=n("d4ec"),u=n("bee2"),i=n("672a"),c=(n("c68b"),function(){function e(){Object(a["a"])(this,e)}return Object(u["a"])(e,[{key:"getGateList",value:function(e){return i["a"].request({method:"GET",url:"/gates",params:e})}},{key:"getChannelList",value:function(e){return i["a"].request({method:"GET",url:"/channels",params:e})}},{key:"preview",value:function(e){return i["a"].request({method:"POST",url:"/preview/viewCountData",data:e})}},{key:"repair",value:function(e){return i["a"].request({method:"POST",url:"/preview/updateCountData",data:e})}}]),e}()),r=new c;t["a"]=r},e2ca:function(e,t,n){"use strict";n("472d")}}]);