chunk-7cc3643e.232aa0c6.js 6.95 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7cc3643e"],{"356a":function(e,t,a){"use strict";a.r(t);var n=a("7a23"),c=Object(n["o"])("是"),u=Object(n["o"])("否"),r=Object(n["o"])("是"),o=Object(n["o"])("否"),l=Object(n["o"])("添加任务");function i(e,t,a,i,d,b){var s=Object(n["S"])("a-select"),O=Object(n["S"])("a-form-item"),f=Object(n["S"])("a-date-picker"),p=Object(n["S"])("a-select-option"),j=Object(n["S"])("a-button"),m=Object(n["S"])("a-form"),v=Object(n["S"])("a-table"),g=Object(n["T"])("loading");return Object(n["J"])(),Object(n["l"])(n["b"],null,[Object(n["p"])(m,{model:i.queryForm,layout:"inline","label-col":{style:{width:"100px"}}},{default:Object(n["ib"])((function(){return[Object(n["p"])(O,{label:"集团:",style:{padding:"5px 0"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(s,{value:i.queryForm.accountId,"onUpdate:value":t[0]||(t[0]=function(e){return i.queryForm.accountId=e}),style:{width:"280px"},onChange:i.onAccountChange,options:i.accountList,optionFilterProp:"label","show-search":""},null,8,["value","onChange","options"])]})),_:1}),Object(n["p"])(O,{label:"广场:",style:{padding:"5px 0"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(s,{value:i.queryForm.mallId,"onUpdate:value":t[1]||(t[1]=function(e){return i.queryForm.mallId=e}),style:{width:"280px"},options:i.plazaList,optionFilterProp:"label","show-search":""},null,8,["value","options"])]})),_:1}),Object(n["p"])(O,{label:"日期:",style:{padding:"5px 0"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(f,{value:i.queryForm.countdate,"onUpdate:value":t[2]||(t[2]=function(e){return i.queryForm.countdate=e}),style:{width:"280px"}},null,8,["value"])]})),_:1}),Object(n["p"])(O,{label:"是否重提:",style:{padding:"5px 0"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(s,{value:i.queryForm.reExtractFeature,"onUpdate:value":t[3]||(t[3]=function(e){return i.queryForm.reExtractFeature=e}),style:{width:"280px"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(p,{value:"true"},{default:Object(n["ib"])((function(){return[c]})),_:1}),Object(n["p"])(p,{value:"false"},{default:Object(n["ib"])((function(){return[u]})),_:1})]})),_:1},8,["value"])]})),_:1}),Object(n["p"])(O,{label:"是否重读:",style:{padding:"5px 0"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(s,{value:i.queryForm.reTrack,"onUpdate:value":t[4]||(t[4]=function(e){return i.queryForm.reTrack=e}),style:{width:"280px"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(p,{value:"true"},{default:Object(n["ib"])((function(){return[r]})),_:1}),Object(n["p"])(p,{value:"false"},{default:Object(n["ib"])((function(){return[o]})),_:1})]})),_:1},8,["value"])]})),_:1}),Object(n["p"])(O,{style:{padding:"5px 0"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(j,{type:"primary",onClick:i.preview,loading:i.isLoading},{default:Object(n["ib"])((function(){return[l]})),_:1},8,["onClick","loading"])]})),_:1})]})),_:1},8,["model"]),Object(n["jb"])((Object(n["J"])(),Object(n["j"])(v,{dataSource:i.dataList,columns:i.columns,rowKey:"id",pagination:!1},{countdate:Object(n["ib"])((function(e){var t=e.text;return[Object(n["m"])("span",null,Object(n["W"])(i.moment(t).format("YYYY-MM-DD")),1)]})),reExtractFeature:Object(n["ib"])((function(e){var t=e.text;return[Object(n["m"])("span",null,Object(n["W"])(t?"是":"否"),1)]})),reTrack:Object(n["ib"])((function(e){var t=e.text;return[Object(n["m"])("span",null,Object(n["W"])(t?"是":"否"),1)]})),_:1},8,["dataSource","columns"])),[[g,i.isLoading]])],64)}var d=a("b85c"),b=(a("d3b7"),a("25f0"),a("b0c0"),a("c1df")),s=a.n(b),O=a("4df8"),f=a("f944"),p=a("c68b"),j=a("d4ec"),m=a("bee2"),v=a("672a"),g=function(){function e(){Object(j["a"])(this,e)}return Object(m["a"])(e,[{key:"getRematch",value:function(e){return v["a"].request({method:"POST",url:"/rematch",data:e})}},{key:"getRematchList",value:function(e){return v["a"].request({method:"GET",url:"/rematch/all",params:e})}}]),e}(),y=new g,h=y,x=a("47ce"),_=a("3fd4"),I=[{title:"广场名称",dataIndex:"mallName",align:"center"},{title:"重跑日期",dataIndex:"countdate",align:"center",slots:{customRender:"countdate"}},{title:"是否重提特征",dataIndex:"reExtractFeature",align:"center",slots:{customRender:"reExtractFeature"}},{title:"是否重读轨迹文件",dataIndex:"reTrack",align:"center",slots:{customRender:"reTrack"}},{title:"数据总数",dataIndex:"total",align:"center"},{title:"已完成数",dataIndex:"completedNum",align:"center"}],F={components:{PlusOutlined:x["a"],VNodes:function(e,t){var a=t.attrs;return a.vnodes}},setup:function(){var e=Object(n["O"])(!1),t=(Object(n["O"])(!1),Object(n["O"])([])),a=Object(n["O"])([]),c=Object(n["O"])([]),u=Object(n["N"])({accountId:"",mallId:"",countdate:s()().format("YYYY-MM-DD"),reExtractFeature:"true",reTrack:"true"}),r=function(){o()},o=function(){u.mallId="",a.value=[],O["a"].getPlazaList({account_id:u.accountId.toString()}).then((function(e){if(Object(f["a"])(e)){var t,n=Object(d["a"])(e);try{for(n.s();!(t=n.n()).done;){var c=t.value;a.value.push({value:c.id,label:c.name})}}catch(r){n.e(r)}finally{n.f()}e&&e.length&&(u.mallId=e[0].id)}}))},l=function(){u.accountId="",t.value=[],O["a"].getAccountList().then((function(e){if(Object(f["a"])(e)){var a,n=Object(d["a"])(e);try{for(n.s();!(a=n.n()).done;){var c=a.value;t.value.push({value:c.id,label:c.name})}}catch(r){n.e(r)}finally{n.f()}e&&e.length&&(u.accountId=e[0].id,o())}}))},i=function(){e.value=!0;var t=Object(n["Y"])(u);h.getRematch(Object(p["a"])({accountId:t.accountId.toString(),mallId:t.mallId.toString(),countdate:t.countdate,reExtractFeature:t.reExtractFeature,reTrack:t.reTrack})).then((function(t){return e.value=!1,200==t.code?void Object(_["a"])({message:"添加成功",type:"success"}):void Object(_["a"])({message:t.msg,type:"error"})}))},b=function(){h.getRematchList().then((function(e){Object(f["a"])(e)?c.value=e:c.value=[]}))},j=function(){l(),b()};return j(),{isLoading:e,accountList:t,plazaList:a,dataList:c,queryForm:u,columns:I,onAccountChange:r,preview:i,moment:s.a}}},k=a("d959"),q=a.n(k);const w=q()(F,[["render",i]]);t["default"]=w},"4df8":function(e,t,a){"use strict";var n=a("d4ec"),c=a("bee2"),u=a("672a"),r=a("c68b"),o=function(){function e(){Object(n["a"])(this,e)}return Object(c["a"])(e,[{key:"getSnapshotRecordList",value:function(e){return u["a"].request({method:"GET",url:"/faceRecognitions/faceRecord",params:Object(r["a"])(e)})}},{key:"getAccountList",value:function(){return u["a"].request({method:"GET",url:"/accounts"})}},{key:"getPlazaList",value:function(e){return u["a"].request({method:"GET",url:"/malls",params:Object(r["a"])({accountIds:e.account_id})})}},{key:"getZoneList",value:function(e){return u["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 u["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}(),l=new o;t["a"]=l}}]);