chunk-e2ba07ae.7609fa1e.js
6.88 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e2ba07ae"],{"4df8":function(e,t,a){"use strict";var n=a("d4ec"),c=a("bee2"),i=a("672a"),u=a("c68b"),o=function(){function e(){Object(n["a"])(this,e)}return Object(c["a"])(e,[{key:"getSnapshotRecordList",value:function(e){return i["a"].request({method:"GET",url:"/faceRecognitions/faceRecord",params:Object(u["a"])(e)})}},{key:"getAccountList",value:function(){return i["a"].request({method:"GET",url:"/accounts"})}},{key:"getPlazaList",value:function(e){return i["a"].request({method:"GET",url:"/malls",params:Object(u["a"])({accountIds:e.account_id})})}},{key:"getZoneList",value:function(e){return i["a"].request({method:"GET",url:"/zones/zoneList",params:Object(u["a"])({account_id:e.account_id,plaza_id:e.plaza_id})})}},{key:"getGateList",value:function(e){return i["a"].request({method:"GET",url:"/gates/gateByInfo",params:Object(u["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},c99e:function(e,t,a){"use strict";a.r(t);var n=a("7a23"),c=Object(n["o"])("查询"),i=Object(n["o"])("执行");function u(e,t,a,u,o,r){var l=Object(n["S"])("a-select"),d=Object(n["S"])("a-form-item"),s=Object(n["S"])("a-date-picker"),b=Object(n["S"])("a-time-picker"),f=Object(n["S"])("a-button"),p=Object(n["S"])("a-form"),m=Object(n["S"])("a-table"),v=Object(n["T"])("loading");return Object(n["J"])(),Object(n["l"])(n["b"],null,[Object(n["p"])(p,{model:u.queryForm,layout:"inline","label-col":{style:{width:"70px"}}},{default:Object(n["ib"])((function(){return[Object(n["p"])(d,{label:"集团:"},{default:Object(n["ib"])((function(){return[Object(n["p"])(l,{value:u.queryForm.account_id,"onUpdate:value":t[0]||(t[0]=function(e){return u.queryForm.account_id=e}),style:{width:"200px"},options:u.accountList,onChange:u.onAccountChange,optionFilterProp:"label","show-search":""},null,8,["value","options","onChange"])]})),_:1}),Object(n["p"])(d,{label:"广场:"},{default:Object(n["ib"])((function(){return[Object(n["p"])(l,{value:u.queryForm.plaza_id,"onUpdate:value":t[1]||(t[1]=function(e){return u.queryForm.plaza_id=e}),mode:"multiple",maxTagCount:1,onChange:u.onPlazaChange,style:{width:"200px"},options:u.plazaList,optionFilterProp:"label","show-search":""},null,8,["value","onChange","options"])]})),_:1}),Object(n["p"])(d,{label:"选择设备:"},{default:Object(n["ib"])((function(){return[Object(n["p"])(l,{value:u.queryForm.device_id,"onUpdate:value":t[2]||(t[2]=function(e){return u.queryForm.device_id=e}),style:{width:"300px"},mode:"multiple",maxTagCount:1,optionFilterProp:"label",options:u.deviceList,"show-search":""},null,8,["value","options"])]})),_:1}),Object(n["p"])(d,{label:"选择日期:"},{default:Object(n["ib"])((function(){return[Object(n["p"])(s,{value:u.queryForm.date,"onUpdate:value":t[3]||(t[3]=function(e){return u.queryForm.date=e}),format:"YYYY-MM-DD",style:{width:"150px"}},null,8,["value"])]})),_:1}),Object(n["p"])(d,{label:"选择时间:"},{default:Object(n["ib"])((function(){return[Object(n["p"])(b,{value:u.queryForm.startTime,"onUpdate:value":t[4]||(t[4]=function(e){return u.queryForm.startTime=e}),style:{width:"100px"}},null,8,["value"]),Object(n["p"])(b,{value:u.queryForm.endTime,"onUpdate:value":t[5]||(t[5]=function(e){return u.queryForm.endTime=e}),style:{width:"100px"}},null,8,["value"])]})),_:1}),Object(n["p"])(d,null,{default:Object(n["ib"])((function(){return[Object(n["p"])(f,{type:"primary",onClick:u.confirmSearch,style:{"margin-right":"10px"}},{default:Object(n["ib"])((function(){return[c]})),_:1},8,["onClick"]),Object(n["p"])(f,{type:"primary",onClick:u.implement},{default:Object(n["ib"])((function(){return[i]})),_:1},8,["onClick"])]})),_:1})]})),_:1},8,["model"]),Object(n["jb"])(Object(n["p"])(m,{dataSource:u.deviceList,rowKey:function(e){return e.serialnum},columns:u.columns,pagination:!1},null,8,["dataSource","rowKey","columns"]),[[v,u.isLoading]])],64)}var o=a("b85c"),r=(a("b0c0"),a("d3b7"),a("25f0"),a("159b"),a("c1df")),l=a.n(r),d=a("f944"),s=a("4df8"),b=a("d4ec"),f=a("bee2"),p=a("672a"),m=a("c68b"),v=function(){function e(){Object(b["a"])(this,e)}return Object(f["a"])(e,[{key:"getDeviceList",value:function(e){return p["a"].request({method:"GET",url:"/devices/all",params:Object(m["a"])(e)})}},{key:"getResultresend",value:function(e){return p["a"].request({method:"GET",url:"/devices/resultresend",params:Object(m["a"])(e)})}},{key:"getReboot",value:function(e){return p["a"].request({method:"GET",url:"/devices/reboot",params:Object(m["a"])(e)})}}]),e}(),O=new v,j=O,h=(a("bc3a"),a("3fd4")),y={setup:function(){var e=Object(n["O"])([]),t=Object(n["O"])([]),a=Object(n["O"])([]),c=Object(n["O"])(!1),i=Object(n["O"])([{title:"序号",align:"center",dataIndex:"index"},{title:"IP配置",dataIndex:"localIp",align:"center"},{title:"设备序列号",dataIndex:"serialnum",align:"center"},{title:"数据重传状态",dataIndex:"retransmission",align:"center"},{title:"设备重启状态",dataIndex:"restart",align:"center"}]),u=Object(n["N"])({account_id:"",plaza_id:[],device_id:[],date:l()().format("YYYY-MM-DD"),startTime:l()().format("YYYY-MM-DD 08:00:00"),endTime:l()().format("YYYY-MM-DD 23:59:59")}),r=function(){u.account_id=[],e.value=[],s["a"].getAccountList().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;e.value.push({value:c.id,label:c.name})}}catch(i){n.e(i)}finally{n.f()}}}))},b=function(){f()},f=function(){u.plaza_id=[],t.value=[],s["a"].getPlazaList({account_id:u.account_id.toString()}).then((function(e){if(Object(d["a"])(e)){var a,n=Object(o["a"])(e);try{for(n.s();!(a=n.n()).done;){var c=a.value;t.value.push({value:c.id,label:c.name})}}catch(i){n.e(i)}finally{n.f()}}}))},p=function(){u.device_id=[],a.value=[],m()},m=function(){var e=Object(n["Y"])(u),t={mallIds:e.plaza_id.toString()};j.getDeviceList(t).then((function(e){if(c.value=!1,Object(d["a"])(e))for(var t=0;t<e.length;t++)e[t].index=t+1,e[t].label=e[t].serialnum+"——"+e[t].localIp,e[t].value=e[t].serialnum,a.value.push(e[t])}))},v=function(){u.device_id=[],a.value=[],c.value=!0,m()},O=function(){if(u.device_id.length<1)return Object(h["a"])({message:"请选择设备",type:"warning"}),!1;a.value.forEach((function(e){u.device_id.forEach((function(t){if(e.serialnum==t&&e.localIp){var n={ip:e.localIp,startTime:l()(u.date).format("YYYY-MM-DD")+" "+l()(u.startTime).format("HH:mm:ss"),endTime:l()(u.date).format("YYYY-MM-DD")+" "+l()(u.endTime).format("HH:mm:ss")};c.value=!0,j.getResultresend(n).then((function(t){c.value=!1,t&&t.success?(e.retransmission="重传成功",j.getReboot({ip:e.localIp}).then((function(t){t&&t.success?e.restart="重启成功":e.restart="重启失败",console.log(a.value)}))):e.retransmission="重传失败"}))}}))}))},y=function(){r()};return y(),{deviceList:a,accountList:e,plazaList:t,columns:i,isLoading:c,queryForm:u,onAccountChange:b,confirmSearch:v,implement:O,onPlazaChange:p}}},g=a("d959"),_=a.n(g);const Y=_()(y,[["render",u]]);t["default"]=Y}}]);