chunk-5dc6092e.71fb9b51.js
7.08 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5dc6092e"],{"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"147c":function(e,t,a){"use strict";a.r(t);a("ac1f"),a("841c");var n=a("7a23"),c=Object(n["o"])("查询");function u(e,t,a,u,o,i){var l=Object(n["S"])("a-select"),r=Object(n["S"])("a-form-item"),d=Object(n["S"])("a-date-picker"),s=Object(n["S"])("a-button"),p=Object(n["S"])("a-form"),b=Object(n["S"])("a-table"),g=Object(n["S"])("a-pagination"),f=Object(n["T"])("loading");return Object(n["J"])(),Object(n["l"])(n["b"],null,[Object(n["p"])(p,{model:e.queryForm,layout:"inline","label-col":{style:{width:"100px"}}},{default:Object(n["ib"])((function(){return[Object(n["p"])(r,{label:"集团:",style:{padding:"5px 0"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(l,{value:e.queryForm.account_id,"onUpdate:value":t[0]||(t[0]=function(t){return e.queryForm.account_id=t}),style:{width:"280px"},mode:"multiple",maxTagCount:1,onChange:e.onAccountChange,options:e.accountList,optionFilterProp:"label","show-search":""},null,8,["value","onChange","options"])]})),_:1}),Object(n["p"])(r,{label:"广场:",style:{padding:"5px 0"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(l,{value:e.queryForm.plaza_id,"onUpdate:value":t[1]||(t[1]=function(t){return e.queryForm.plaza_id=t}),style:{width:"280px"},mode:"multiple",maxTagCount:1,onChange:e.onPlazaChange,options:e.plazaList,optionFilterProp:"label","show-search":""},null,8,["value","onChange","options"])]})),_:1}),Object(n["p"])(r,{label:"日期:",style:{padding:"5px 0"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(d,{value:e.queryForm.countDate,"onUpdate:value":t[2]||(t[2]=function(t){return e.queryForm.countDate=t}),style:{width:"280px"}},null,8,["value"])]})),_:1}),Object(n["p"])(r,{style:{padding:"5px 0"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(s,{type:"primary",onClick:e.search},{default:Object(n["ib"])((function(){return[c]})),_:1},8,["onClick"])]})),_:1})]})),_:1},8,["model"]),Object(n["jb"])(Object(n["p"])(b,{dataSource:e.dataList,columns:[{title:"集团名称",dataIndex:"accountname",align:"center",slots:{customRender:"accountname"}},{title:"商场名称",dataIndex:"mallname",align:"center"},{title:"监控点名称",dataIndex:"gatename",align:"center"},{title:"设备号",dataIndex:"serialnum",align:"center"},{title:"IP",dataIndex:"local_ip",align:"center"},{title:"mac地址",dataIndex:"mac",align:"center"},{title:"发送的错误的数据日期",dataIndex:"errordate",align:"center"},{title:"发送条数",dataIndex:"rowcount",align:"center"},{title:"统计日期",dataIndex:"countdate",align:"center"}],pagination:!1},null,8,["dataSource"]),[[f,e.isLoading]]),Object(n["p"])(g,{current:e.pageNum,"onUpdate:current":t[3]||(t[3]=function(t){return e.pageNum=t}),pageSize:e.pageSize,"onUpdate:pageSize":t[4]||(t[4]=function(t){return e.pageSize=t}),total:e.total,"show-total":function(e){return"共 ".concat(e," 条")},pageSizeOptions:["10","20"],onChange:e.onPageNumChange,onShowSizeChange:e.onPageSizeChange,"show-size-changer":"","show-quick-jumper":"",style:{"text-align":"center"}},null,8,["current","pageSize","total","show-total","onChange","onShowSizeChange"])],64)}var o=a("b85c"),i=(a("b0c0"),a("d3b7"),a("25f0"),a("c1df")),l=a.n(i),r=a("6efa"),d=a("f944"),s=a("c68b"),p=a("d4ec"),b=a("bee2"),g=a("672a"),f=function(){function e(){Object(p["a"])(this,e)}return Object(b["a"])(e,[{key:"getList",value:function(e){return g["a"].request({method:"GET",url:"/devices/deviceInfo",params:Object(s["a"])(e)})}}]),e}(),v=new f,O=v,h=Object(n["q"])({setup:function(){var e=Object(n["O"])(1),t=Object(n["O"])(10),a=Object(n["O"])(),c=Object(n["O"])([]),u=Object(n["O"])(!1),i=Object(n["O"])([]),p=Object(n["O"])([]),b=Object(n["N"])({account_id:[],plaza_id:[],countDate:l()(l()().format("YYYY-MM-DD"),"YYYY-MM-DD")}),g=Object(n["O"])({});window.localStorage.getItem("searchCondition")&&(g.value=JSON.parse(window.localStorage.getItem("searchCondition")),b.account_id=g.value.zone_id,b.plaza_id=g.value.plaza_id);var f=function(){b.accountIds=[],i.value=[],r["a"].getAccountList().then((function(e){if(Object(d["a"])(e)){var t,a=Object(o["a"])(e);try{for(a.s();!(t=a.n()).done;){var n=t.value;i.value.push({value:n.id,label:n.name})}}catch(c){a.e(c)}finally{a.f()}i.value.length&&(g.value.account_id&&g.value.account_id.length>0?b.account_id=g.value.account_id:b.account_id.push(i.value[0].value),h())}}))},v=function(){h(1)},h=function(e){b.plaza_id=[],p.value=[],b.account_id.toString()&&r["a"].getPlazaList({account_id:b.account_id.toString()}).then((function(t){if(Object(d["a"])(t)){var a,n=Object(o["a"])(t);try{for(n.s();!(a=n.n()).done;){var c=a.value;p.value.push({value:c.id,label:c.name})}}catch(u){n.e(u)}finally{n.f()}p.value.length>0&&(!e&&g.value.plaza_id&&g.value.plaza_id.length>0?b.plaza_id=g.value.plaza_id:b.plaza_id.push(p.value[0].value),z())}}))},j=function(){z()},m=function(t){e.value=t,z()},_=function(a,n){e.value=1,t.value=n,z()},z=function(){u.value=!0;var o=Object(n["Y"])(b),i=Object(s["a"])({page:e.value-1,pageSize:t.value,countDate:Object(s["b"])(o.countDate),accountIds:o.account_id.toString(),mallIds:o.plaza_id.toString()});c.value=[],a.value=0,O.getList(i).then((function(e){u.value=!1,200==e.msg_code&&(c.value=e.data.devices,a.value=e.data.pageNum)}))},y=function(){e.value=1,t.value=10,z()},S=function(){f()};return S(),{accountList:i,onAccountChange:v,plazaList:p,onPlazaChange:j,queryForm:b,pageNum:e,pageSize:t,total:a,isLoading:u,dataList:c,onPageNumChange:m,onPageSizeChange:_,confirmSearch:z,search:y}}}),j=a("d959"),m=a.n(j);const _=m()(h,[["render",u]]);t["default"]=_},"6efa":function(e,t,a){"use strict";var n=a("d4ec"),c=a("bee2"),u=a("672a"),o=a("c68b"),i=function(){function e(){Object(n["a"])(this,e)}return Object(c["a"])(e,[{key:"getClusterResultList",value:function(e){return u["a"].request({method:"GET",url:"/faceRecognitions/faceRecordGroup",params:Object(o["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(o["a"])({accountIds:e.account_id})})}},{key:"getZoneList",value:function(e){return u["a"].request({method:"GET",url:"/zones/zoneList",params:Object(o["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(o["a"])({account_id:e.account_id,plaza_id:e.plaza_id,zone_id:e.zone_id,type:e.type})})}},{key:"getBodyPoint",value:function(e){return u["a"].request({method:"GET",url:"/feature/bodyPoint",params:Object(o["a"])(e)})}}]),e}(),l=new i;t["a"]=l},"841c":function(e,t,a){"use strict";var n=a("d784"),c=a("825a"),u=a("1d80"),o=a("129f"),i=a("14c3");n("search",1,(function(e,t,a){return[function(t){var a=u(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,a):new RegExp(t)[e](String(a))},function(e){var n=a(t,e,this);if(n.done)return n.value;var u=c(e),l=String(this),r=u.lastIndex;o(r,0)||(u.lastIndex=0);var d=i(u,l);return o(u.lastIndex,r)||(u.lastIndex=r),null===d?-1:d.index}]}))}}]);