chunk-28e98f5e.aef449e6.js
9.13 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28e98f5e"],{2175:function(e,t,a){},"325e":function(e,t,a){"use strict";a.r(t);var u=a("7a23"),n=Object(u["o"])("人脸+全身照特征"),c=Object(u["o"])("人脸特征"),r=Object(u["o"])("全身照特征"),l=Object(u["o"])("店员特征"),i=Object(u["o"])("开始");function o(e,t,a,o,s,b){var d=Object(u["S"])("a-select"),f=Object(u["S"])("a-form-item"),p=Object(u["S"])("a-select-option"),O=Object(u["S"])("a-date-picker"),j=Object(u["S"])("a-button"),v=Object(u["S"])("a-form"),m=Object(u["S"])("ResultDisplay");return Object(u["J"])(),Object(u["l"])(u["b"],null,[Object(u["p"])(v,{model:o.queryForm,layout:"inline"},{default:Object(u["ib"])((function(){return[Object(u["p"])(f,{label:"集团:",style:{padding:"5px 0"}},{default:Object(u["ib"])((function(){return[Object(u["p"])(d,{value:o.queryForm.account_id,"onUpdate:value":t[0]||(t[0]=function(e){return o.queryForm.account_id=e}),style:{width:"280px"},mode:"multiple",maxTagCount:1,onChange:o.onAccountChange,options:o.accountList,optionFilterProp:"label","show-search":""},null,8,["value","onChange","options"])]})),_:1}),Object(u["p"])(f,{label:"广场:",style:{padding:"5px 0"}},{default:Object(u["ib"])((function(){return[Object(u["p"])(d,{value:o.queryForm.plaza_id,"onUpdate:value":t[1]||(t[1]=function(e){return o.queryForm.plaza_id=e}),style:{width:"280px"},mode:"multiple",maxTagCount:1,options:o.plazaList,optionFilterProp:"label","show-search":""},null,8,["value","options"])]})),_:1}),Object(u["p"])(f,{label:"特征重提类型:",style:{padding:"5px 0"}},{default:Object(u["ib"])((function(){return[Object(u["p"])(d,{value:o.queryForm.featureRevisitType,"onUpdate:value":t[2]||(t[2]=function(e){return o.queryForm.featureRevisitType=e}),style:{width:"280px"}},{default:Object(u["ib"])((function(){return[Object(u["p"])(p,{value:0},{default:Object(u["ib"])((function(){return[n]})),_:1}),Object(u["p"])(p,{value:1},{default:Object(u["ib"])((function(){return[c]})),_:1}),Object(u["p"])(p,{value:2},{default:Object(u["ib"])((function(){return[r]})),_:1}),Object(u["p"])(p,{value:3},{default:Object(u["ib"])((function(){return[l]})),_:1})]})),_:1},8,["value"])]})),_:1}),3!==o.queryForm.featureRevisitType?(Object(u["J"])(),Object(u["j"])(f,{key:0,label:"选择日期:",style:{padding:"5px 0"}},{default:Object(u["ib"])((function(){return[Object(u["p"])(O,{value:o.queryForm.date,"onUpdate:value":t[3]||(t[3]=function(e){return o.queryForm.date=e}),style:{width:"280px"}},null,8,["value"])]})),_:1})):Object(u["k"])("",!0),Object(u["p"])(f,{style:{padding:"5px 0"}},{default:Object(u["ib"])((function(){return[Object(u["p"])(j,{type:"primary",onClick:o.initializeWebSocket},{default:Object(u["ib"])((function(){return[i]})),_:1},8,["onClick"])]})),_:1})]})),_:1},8,["model"]),(Object(u["J"])(),Object(u["j"])(m,{data:o.resultList,key:o.resultList},null,8,["data"]))],64)}var s=a("b85c"),b=(a("d3b7"),a("25f0"),a("b0c0"),a("159b"),a("99af"),a("caad"),a("7f0b"),a("c1df")),d=a.n(b),f=a("4df8"),p=a("f944"),O=a("c68b"),j=a("d4ec"),v=a("bee2"),m=a("672a"),y=function(){function e(){Object(j["a"])(this,e)}return Object(v["a"])(e,[{key:"getFeatureResult",value:function(e){return m["a"].request({method:"POST",url:"/mall/feature",data:e})}},{key:"getStaffFeatureResult",value:function(e){return m["a"].request({method:"POST",url:"/mall/staffFeature",data:e})}}]),e}(),g=new y,h=g,_=a("b93f"),T={components:{ResultDisplay:_["a"]},setup:function(){var e=void 0,t=Object(u["O"])([]),a=(Object(u["O"])([]),Object(u["O"])([])),n=Object(u["O"])([]),c=Object(u["O"])([]),r=Object(u["O"])([]),l=Object(u["N"])({account_id:[],plaza_id:[],featureRevisitType:1,date:d()(d()().format("YYYY-MM-DD"),"YYYY-MM-DD")}),i=function(){o()},o=function(){l.plaza_id=[],n.value=[],f["a"].getPlazaList({account_id:l.account_id.toString()}).then((function(e){if(Object(p["a"])(e)){var t,a=Object(s["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()}}}))},b=function(){l.account_id=[],a.value=[],f["a"].getAccountList().then((function(e){if(Object(p["a"])(e)){var t,u=Object(s["a"])(e);try{for(u.s();!(t=u.n()).done;){var n=t.value;a.value.push({value:n.id,label:n.name})}}catch(c){u.e(c)}finally{u.f()}}}))},j=function(e){if(!e)return 0;var t=Math.floor(100*e);return t>=100?100:t},v=function(e){var a=e.dates,u=e.mallIds,n=e.mallNames,c=e.status,r=e.stepCount,l=e.scheduleType,i=e.counter,o={};if(o.dates=a,o.mallIds=u,o.mallNames=n,o.status=c,o.progress=j(r),o.totalNum=0,o.totalPage=0,o.current=0,o.curPageSize=0,o.currentPage=0,o.scheduleType=l,i&&(o.totalNum=i.allDataCount,o.totalPage=i.totalMallDateProduct,o.current=i.dataNum,o.curPageSize=i.totalData,o.currentPage=i.dateMallNum),t.value.length){var s=t.value.some((function(e){return e.scheduleType===l}));s?t.value.forEach((function(e){e.progress=j(r),i&&(e.totalNum=i.allDataCount,e.totalPage=i.totalMallDateProduct,e.current=i.dataNum,e.curPageSize=i.totalData,e.currentPage=i.dateMallNum)})):t.value.push(o),o={}}else t.value.push(o),o={}},m=function(){void 0!==e&&e.close(),t.value=[],e=new WebSocket("".concat(window._socketUrl,"/recal/schedule/revisitFeature").concat(l.featureRevisitType)),e.onopen=y,e.onmessage=function(t){var a=JSON.parse(t.data);v(a),1===a.stepCount&&e.close()}},y=function(){var e=Object(u["Y"])(l);if([0,1,2].includes(e.featureRevisitType)){var t={mallIds:e.plaza_id,featureType:e.featureRevisitType,scheduleType:"revisitFeature".concat(e.featureRevisitType),startDate:Object(O["b"])(e.date)+" 00:00:00",endDate:Object(O["b"])(e.date)+" 23:59:59"};h.getFeatureResult(t)}else{var a={mallIds:e.plaza_id,featureType:e.featureRevisitType,scheduleType:"revisitFeature".concat(e.featureRevisitType)};h.getStaffFeatureResult(a)}},g=function(){b()};return g(),{accountList:a,plazaList:n,zoneList:c,gateList:r,resultList:t,queryForm:l,onAccountChange:i,initializeWebSocket:m}}},S=a("d959"),z=a.n(S);const k=z()(T,[["render",o]]);t["default"]=k},3981:function(e,t,a){"use strict";a("2175")},"4df8":function(e,t,a){"use strict";var u=a("d4ec"),n=a("bee2"),c=a("672a"),r=a("c68b"),l=function(){function e(){Object(u["a"])(this,e)}return Object(n["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}(),i=new l;t["a"]=i},"7f0b":function(e,t,a){"use strict";var u=a("d4ec"),n=a("bee2"),c=a("672a"),r=(a("c68b"),function(){function e(){Object(u["a"])(this,e)}return Object(n["a"])(e,[{key:"getStaffResult",value:function(e){return c["a"].request({method:"POST",url:"/mall/staffPool",data:e})}},{key:"getCustomResult",value:function(e){return c["a"].request({method:"POST",url:"/mall/customPool",data:e})}}]),e}()),l=new r;t["a"]=l},b93f:function(e,t,a){"use strict";var u=a("7a23"),n=function(e){return Object(u["M"])("data-v-31a12a94"),e=e(),Object(u["K"])(),e},c={class:"result-wrapper"},r=n((function(){return Object(u["m"])("div",{class:"result-header"},"结果展示",-1)})),l={class:"scrollbar-wrapper"},i={class:"result-item"},o={class:"result-page"},s=Object(u["o"])(" 执行进度 : "),b={class:"pagination-page"};function d(e,t,a,n,d,f){var p=Object(u["S"])("el-col"),O=Object(u["S"])("el-progress"),j=Object(u["S"])("el-row");return Object(u["J"])(),Object(u["l"])("div",c,[r,Object(u["m"])("div",l,[(Object(u["J"])(!0),Object(u["l"])(u["b"],null,Object(u["Q"])(n.resultList,(function(e){return Object(u["J"])(),Object(u["l"])("div",i,[Object(u["m"])("div",o,[Object(u["m"])("span",null,"总处理条数 : "+Object(u["W"])(e.totalNum)+"条",1)]),Object(u["p"])(j,null,{default:Object(u["ib"])((function(){return[Object(u["p"])(p,{span:2},{default:Object(u["ib"])((function(){return[s]})),_:1}),Object(u["p"])(p,{span:22},{default:Object(u["ib"])((function(){return[Object(u["p"])(O,{"text-inside":!0,"stroke-width":26,percentage:null===e||void 0===e?void 0:e.progress},null,8,["percentage"])]})),_:2},1024)]})),_:2},1024),Object(u["p"])(j,null,{default:Object(u["ib"])((function(){return[Object(u["p"])(p,{span:2}),Object(u["p"])(p,{span:22},{default:Object(u["ib"])((function(){return[Object(u["m"])("span",null,"第"+Object(u["W"])(e.current)+"条/共"+Object(u["W"])(e.curPageSize)+"条",1),Object(u["m"])("span",b,"第"+Object(u["W"])(e.currentPage)+"页/共"+Object(u["W"])(e.totalPage)+"页",1)]})),_:2},1024)]})),_:2},1024)])})),256))])])}var f={props:{data:{type:Array,default:[]}},setup:function(e,t){t.emit;var a=e.data;return{resultList:a}}},p=(a("3981"),a("d959")),O=a.n(p);const j=O()(f,[["render",d],["__scopeId","data-v-31a12a94"]]);t["a"]=j}}]);