chunk-46fd989a.8be14a41.js
8.36 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,c,i){try{var o=e[c](i),r=o.value}catch(l){return void n(l)}o.done?t(r):Promise.resolve(r).then(a,u)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(u,c){var i=e.apply(t,n);function o(e){a(i,u,c,o,r,"next",e)}function r(e){a(i,u,c,o,r,"throw",e)}o(void 0)}))}}},"472d":function(e,t,n){},"4df8":function(e,t,n){"use strict";var a=n("d4ec"),u=n("bee2"),c=n("672a"),i=n("c68b"),o=function(){function e(){Object(a["a"])(this,e)}return Object(u["a"])(e,[{key:"getSnapshotRecordList",value:function(e){return c["a"].request({method:"GET",url:"/faceRecognitions/faceRecord",params:Object(i["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(i["a"])({accountIds:e.account_id})})}},{key:"getZoneList",value:function(e){return c["a"].request({method:"GET",url:"/zones/zoneList",params:Object(i["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(i["a"])({account_id:e.account_id,plaza_id:e.plaza_id,zone_id:e.zone_id,type:e.type})})}}]),e}(),r=new o;t["a"]=r},"58f5":function(e,t,n){"use strict";n.r(t);var a=n("7a23"),u=Object(a["o"])("店员"),c=Object(a["o"])("顾客"),i=Object(a["o"])("查询");function o(e,t,n,o,r,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:o.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:o.queryForm.account_id,"onUpdate:value":t[0]||(t[0]=function(e){return o.queryForm.account_id=e}),style:{width:"280px"},onChange:o.onAccountChange,options:o.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:o.queryForm.plaza_id,"onUpdate:value":t[1]||(t[1]=function(e){return o.queryForm.plaza_id=e}),style:{width:"280px"},onChange:o.onPlazaChange,options:o.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:o.queryForm.gate_id,"onUpdate:value":t[2]||(t[2]=function(e){return o.queryForm.gate_id=e}),style:{width:"280px"},mode:"multiple",maxTagCount:1,options:o.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:o.queryForm.personType,"onUpdate:value":t[3]||(t[3]=function(e){return o.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[c]})),_: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:o.queryForm.date,"onUpdate:value":t[4]||(t[4]=function(e){return o.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:o.queryForm.startTime,"onUpdate:value":t[5]||(t[5]=function(e){return o.queryForm.startTime=e}),style:{width:"140px"}},null,8,["value"]),Object(a["p"])(f,{value:o.queryForm.endTime,"onUpdate:value":t[6]||(t[6]=function(e){return o.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:o.confirmSearch,loading:o.isLoading},{default:Object(a["ib"])((function(){return[i]})),_:1},8,["onClick","loading"])]})),_:1})]})),_:1},8,["model"]),Object(a["jb"])(Object(a["p"])(j,{dataSource:o.dataList,columns:o.columns,pagination:!1},null,8,["dataSource","columns"]),[[v,o.isLoading]])],64)}var r=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"])([]),c=Object(a["O"])([]),i=Object(a["O"])([]),o=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(),o.gate_id=[],c.value=[]},b=function(){j()},f=function(){o.plaza_id=[],n.value=[],p["a"].getPlazaList({account_id:o.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(c){a.e(c)}finally{a.f()}}}))},O=function(){o.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(c){a.e(c)}finally{a.f()}}}))},j=function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o.gate_id=[],c.value=[],p["a"].getGateList({account_id:o.account_id.toString(),plaza_id:o.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;o.gate_id.push(a.id),c.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"])(o),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})),i.value=t}))},y=function(){O()};return y(),{isLoading:e,accountList:t,plazaList:n,zoneList:u,gateList:c,dataList:i,queryForm:o,columns:_,onAccountChange:d,onPlazaChange:b,confirmSearch:v}}},T=(n("e2ca"),n("d959")),q=n.n(T);const x=q()(w,[["render",o],["__scopeId","data-v-3b0fceea"]]);t["default"]=x},"8d44":function(e,t,n){"use strict";var a=n("d4ec"),u=n("bee2"),c=n("672a"),i=(n("c68b"),function(){function e(){Object(a["a"])(this,e)}return Object(u["a"])(e,[{key:"getGateList",value:function(e){return c["a"].request({method:"GET",url:"/gates",params:e})}},{key:"getChannelList",value:function(e){return c["a"].request({method:"GET",url:"/channels",params:e})}},{key:"preview",value:function(e){return c["a"].request({method:"POST",url:"/preview/viewCountData",data:e})}},{key:"repair",value:function(e){return c["a"].request({method:"POST",url:"/preview/updateCountData",data:e})}}]),e}()),o=new i;t["a"]=o},e2ca:function(e,t,n){"use strict";n("472d")}}]);