chunk-0361d0b6.8db98afe.js 8.34 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0361d0b6"],{2175:function(e,t,a){},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}(),o=new l;t["a"]=o},"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"},o={class:"result-item"},i={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",o,[Object(u["m"])("div",i,[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},c9b3: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"])("开始");function l(e,t,a,l,o,i){var s=Object(u["S"])("a-select"),b=Object(u["S"])("a-form-item"),d=Object(u["S"])("a-select-option"),f=Object(u["S"])("a-date-picker"),p=Object(u["S"])("a-button"),O=Object(u["S"])("a-form"),j=Object(u["S"])("ResultDisplay");return Object(u["J"])(),Object(u["l"])(u["b"],null,[Object(u["p"])(O,{model:l.queryForm,layout:"inline"},{default:Object(u["ib"])((function(){return[Object(u["p"])(b,{label:"集团:"},{default:Object(u["ib"])((function(){return[Object(u["p"])(s,{value:l.queryForm.account_id,"onUpdate:value":t[0]||(t[0]=function(e){return l.queryForm.account_id=e}),style:{width:"280px"},mode:"multiple",maxTagCount:1,onChange:l.onAccountChange,options:l.accountList,optionFilterProp:"label","show-search":""},null,8,["value","onChange","options"])]})),_:1}),Object(u["p"])(b,{label:"广场:"},{default:Object(u["ib"])((function(){return[Object(u["p"])(s,{value:l.queryForm.plaza_id,"onUpdate:value":t[1]||(t[1]=function(e){return l.queryForm.plaza_id=e}),style:{width:"280px"},mode:"multiple",maxTagCount:1,options:l.plazaList,optionFilterProp:"label","show-search":""},null,8,["value","options"])]})),_:1}),Object(u["p"])(b,{label:"特征重提类型:"},{default:Object(u["ib"])((function(){return[Object(u["p"])(s,{value:l.queryForm.featureRevisitType,"onUpdate:value":t[2]||(t[2]=function(e){return l.queryForm.featureRevisitType=e}),style:{width:"280px"}},{default:Object(u["ib"])((function(){return[Object(u["p"])(d,{value:1},{default:Object(u["ib"])((function(){return[n]})),_:1}),Object(u["p"])(d,{value:2},{default:Object(u["ib"])((function(){return[c]})),_:1})]})),_:1},8,["value"])]})),_:1}),2===l.queryForm.featureRevisitType?(Object(u["J"])(),Object(u["j"])(b,{key:0,label:"选择日期:"},{default:Object(u["ib"])((function(){return[Object(u["p"])(f,{value:l.queryForm.date,"onUpdate:value":t[3]||(t[3]=function(e){return l.queryForm.date=e})},null,8,["value"])]})),_:1})):Object(u["k"])("",!0),Object(u["p"])(b,null,{default:Object(u["ib"])((function(){return[Object(u["p"])(p,{type:"primary",onClick:l.initializeWebSocket},{default:Object(u["ib"])((function(){return[r]})),_:1},8,["onClick"])]})),_:1})]})),_:1},8,["model"]),(Object(u["J"])(),Object(u["j"])(j,{data:l.resultList,key:l.resultList},null,8,["data"]))],64)}var o=a("b85c"),i=(a("d3b7"),a("25f0"),a("b0c0"),a("159b"),a("99af"),a("7f0b")),s=a("c1df"),b=a.n(s),d=a("4df8"),f=a("f944"),p=a("c68b"),O=a("b93f"),j={components:{ResultDisplay:O["a"]},setup:function(){var e=void 0,t=Object(u["O"])([]),a=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:b()(b()().format("YYYY-MM-DD"),"YYYY-MM-DD")}),s=function(){O()},O=function(){l.plaza_id=[],n.value=[],d["a"].getPlazaList({account_id:l.account_id.toString()}).then((function(e){if(Object(f["a"])(e)){var t,a=Object(o["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()}}}))},j=function(){l.account_id=[],a.value=[],d["a"].getAccountList().then((function(e){if(Object(f["a"])(e)){var t,u=Object(o["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()}}}))},v=function(e){if(!e)return 0;var t=Math.floor(100*e);return t>=100?100:t},m=function(e){var a=e.dates,u=e.mallIds,n=e.mallNames,c=e.status,r=e.stepCount,l=e.scheduleType,o=e.counter,i={};if(i.dates=a,i.mallIds=u,i.mallNames=n,i.status=c,i.progress=v(r),i.totalNum=0,i.totalPage=0,i.current=0,i.curPageSize=0,i.currentPage=0,i.scheduleType=l,o&&(i.totalNum=o.allDataCount,i.totalPage=o.totalMallDateProduct,i.current=o.dataNum,i.curPageSize=o.totalData,i.currentPage=o.dateMallNum),t.value.length){var s=t.value.some((function(e){return e.scheduleType===l}));s?t.value.forEach((function(e){e.progress=v(r),o&&(e.totalNum=o.allDataCount,e.totalPage=o.totalMallDateProduct,e.current=o.dataNum,e.curPageSize=o.totalData,e.currentPage=o.dateMallNum)})):t.value.push(i),i={}}else t.value.push(i),i={}},y=function(){void 0!==e&&e.close(),t.value=[],e=new WebSocket("".concat(window._socketUrl,"/recal/schedule/rebuildFeatureLib").concat(l.featureRevisitType)),e.onopen=g,e.onmessage=function(t){var a=JSON.parse(t.data);m(a),1===a.stepCount&&e.close()}},g=function(){var e=Object(u["Y"])(l);switch(e.featureRevisitType){case 1:var t={mallIds:e.plaza_id,scheduleType:"rebuildFeatureLib".concat(e.featureRevisitType)};i["a"].getStaffResult(t);break;case 2:var a={mallIds:e.plaza_id,scheduleType:"rebuildFeatureLib".concat(e.featureRevisitType),startDate:Object(p["b"])(e.date)+" 00:00:00",endDate:Object(p["b"])(e.date)+" 23:59:59"};i["a"].getCustomResult(a);break}},h=function(){j()};return h(),{accountList:a,plazaList:n,zoneList:c,gateList:r,resultList:t,queryForm:l,onAccountChange:s,initializeWebSocket:y}}},v=a("d959"),m=a.n(v);const y=m()(j,[["render",l]]);t["default"]=y}}]);