(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15792e51"],{"0dd5":function(e,t,n){},"0fb6":function(e,t,n){},"323a":function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return r}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return c});var a=n("bf9a");function i(e){return a["b"].post("admin_merchants",e)}function r(e,t){return a["b"].put("admin_merchants/".concat(e),t)}function s(e){return a["b"].get("admin_merchants/".concat(e,"/edit"))}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("admin_merchants",{params:e})}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("admin_merchant_config/get",{params:e})}function c(e){return a["b"].post("admin_merchant_config/edit",e)}},"386d":function(e,t,n){"use strict";var a=n("cb7c"),i=n("83a1"),r=n("5f1b");n("214f")("search",1,function(e,t,n,s){return[function(n){var a=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,a):new RegExp(n)[t](String(a))},function(e){var t=s(n,e,this);if(t.done)return t.value;var o=a(e),l=String(this),c=o.lastIndex;i(c,0)||(o.lastIndex=0);var u=r(o,l);return i(o.lastIndex,c)||(o.lastIndex=c),null===u?-1:u.index}]})},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"5d73":function(e,t,n){e.exports=n("469f")},"69d9":function(e,t,n){"use strict";n("8e6e"),n("456d"),n("7f7f"),n("ac6a");var a=n("bd86");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function r(e){for(var t=1;t=0?"点:"+a+"/"+e.path.length+",时间:"+t.pathDataTimes[a]+",角色:"+t.pathDataRoles[a]:e.name+",点数量"+e.path.length},renderOptions:{pathLineStyle:{strokeStyle:"red",lineWidth:2,dirArrowStyle:!0},renderAllPointsIfNumberBelow:1e3}});n.renderLater([{delay:1e3}]),window.pathSimplifierIns=n,n.setData([{name:"轨迹",path:this.pathData}]);var a=n.createPathNavigator(0,{loop:!0,speed:500});a.start(),""!==t.oldMsaaMarks&&t.oldMsaaMarks.clear(),t.closeInfoWindow()},onSearchResult:function(e){var t=0,n=0;if(e.length>0){e.forEach(function(e){var a=e.lng,i=e.lat;n+=a,t+=i});var a={lng:n/e.length,lat:t/e.length};this.center=[a.lng,a.lat]}},handle:function(e){var t=e.BMap,n=(e.map,this),a=new t.Geolocation;a.getCurrentPosition(function(e){n.center={lng:e.longitude,lat:e.latitude}},{enableHighAccuracy:!0})},rowClick:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(t,n){var a,i,r,s,o,l,c,u,d;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return this.click_index=n.id,a="",e.next=4,Object(p["e"])({bike_id:n.id});case 4:i=e.sent,r=i.data,this.bike_position_name=r.position,a=r.lately_order.start_use_bike_time?r.lately_order.start_use_bike_time:"暂无",s=r.lately_order.username?r.lately_order.username:"暂无",o=r.lately_order.mobile?r.lately_order.mobile:"暂无",l="list-item",c="",u="",0==r.workInfo.length?(l="list-no-show",console.log(111)):(console.log(222),l="list-show",c=r.workInfo.name,u=r.workInfo.phone),this.center=[n.last_location.lng,n.last_location.lat],this.zoom=15,d=new AMap.InfoWindow({draggable:!1,autoMove:!0,content:'
\n
车辆信息
\n

车牌号:'+n.bike_no+'

\n

设备号:'+n.box_no+'

\n

状态:'+(n.is_trouble?"有故障":"无故障")+'

\n

电量:'+n.battery_power+'%

\n

最新定位时间:'+n.last_location_time+'

\n

最近订单时间:'+a+'

\n

最近用户名:'+s+'

\n

最近用户手机:'+o+'

\n

运维人员:'+c+'

\n

运维人员手机:'+u+'

\n

最新定位位置:'+this.bike_position_name+"

\n
\n "}),d.open(this.amapManager._map,new AMap.LngLat(n.last_location.lng,n.last_location.lat));case 18:case"end":return e.stop()}},e,this)}));function t(t,n){return e.apply(this,arguments)}return t}(),closeInfoWindow:function(){this.amapManager._map.clearInfoWindow()},getAddress:function(e){},pointClick:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(t){var n,a,i,r,s,o,l,c,u,d;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n="",this.click_index=t,e.next=4,Object(p["e"])({bike_id:t});case 4:a=e.sent,i=a.data,this.bike_position_name=i.position,n=i.lately_order.start_use_bike_time?i.lately_order.start_use_bike_time:"暂无",r=i.lately_order.username?i.lately_order.username:"暂无",s=i.lately_order.mobile?i.lately_order.mobile:"暂无",o=i.bike,l="list-item",c="",u="",0==i.workInfo.length?(l="list-no-show",console.log(111)):(console.log(222),l="list-show",c=i.workInfo.name,u=i.workInfo.phone),this.center=[o.last_location.lng,o.last_location.lat],this.zoom=15,d=new AMap.InfoWindow({draggable:!1,autoMove:!0,content:'
\n
车辆信息
\n

车牌号:'+o.bike_no+'

\n

设备号:'+o.box_no+'

\n

状态:'+(o.is_trouble?"有故障":"无故障")+'

\n

电量:'+o.battery_power+'%

\n

最新定位时间:'+o.last_location_time+'

\n

最近订单时间:'+n+'

\n

最近用户名:'+r+'

\n

最近用户手机:'+s+'

\n

运维人员:'+c+'

\n

运维人员手机:'+u+'

\n

最新定位位置:'+this.bike_position_name+"

\n
\n "}),d.open(this.amapManager._map,new AMap.LngLat(o.last_location.lng,o.last_location.lat));case 19:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),getNowFormatDate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new Date;t.setTime(t.getTime()-864e5*e);var n="-",a=":",i=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,r=t.getDate()<10?"0"+t.getDate():t.getDate(),s=t.getFullYear()+n+i+n+r+" "+t.getHours()+a+t.getMinutes()+a+t.getSeconds();new Date(s).getTime();return s}},watch:{$route:{handler:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(t){var n,a,i,s,o,l,d,f,h,m,g,b,_,v,y,k,w,x,O,M,C,P,S,j,z,I;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t.query.all=1,this.first_blood&&(t.query.put_status="1",this.first_blood=!1),e.next=4,Object(p["g"])(t.query);case 4:return n=e.sent,a=n.data,e.next=8,Object(p["f"])(t.query);case 8:return i=e.sent,s=i.data,this.low_power_num=s.low_power_num,this.riding_yes_num=s.riding_yes_num,this.riding_no_num=s.riding_no_num,this.worker_riding_num=s.worker_riding_num,this.bikes=a,o=this,e.next=18,Object(p["h"])(t.query);case 18:if(l=e.sent,d=l.data,f=[{url:"http://resource.bike.hanyiyun.com/common/low-power.admin.png",size:new AMap.Size(25,35),anchor:new AMap.Pixel(5,5)},{url:"http://resource.bike.hanyiyun.com/common/unuse.admin.png",size:new AMap.Size(25,35),anchor:new AMap.Pixel(5,5)},{url:"http://resource.bike.hanyiyun.com/common/using.admin.png",size:new AMap.Size(25,35),anchor:new AMap.Pixel(5,5)},{url:"http://resource.bike.hanyiyun.com/work_riding.png",size:new AMap.Size(25,35),anchor:new AMap.Pixel(5,5)},{url:"http://resource.bike.hanyiyun.com/bike_yunwei/outLi.png",size:new AMap.Size(30,35),anchor:new AMap.Pixel(5,5)}],""!==o.oldMsaaMarks&&o.oldMsaaMarks.clear(),h=new AMap.MassMarks(d,{zIndex:500,zooms:[3,19],style:f}),h.on("mousedown",function(e){o.pointClick(e.data.id)}),h.setMap(this.amapManager._map),o.oldMsaaMarks=h,m=this.bikes[0].put_area_id,void 0!==t.query.put_area_id&&(m=t.query.put_area_id),void 0===m){e.next=58;break}return e.next=31,Promise.all([Object(c["c"])(m)]);case 31:return g=e.sent,b=Object(r["a"])(g,1),_=b[0].data,v=_.areaSetting.is_parking_fushe,this.polygonsarea[0].path=JSON.parse(_.area_fence),this.center=JSON.parse(_.area_centre),e.next=39,Promise.all([Object(u["c"])({type:2,area_id:m,status:1})]);case 39:return y=e.sent,k=Object(r["a"])(y,1),w=k[0].data,x=[],O=[],M=w,M.forEach(function(e,t){e.parking_centre=JSON.parse(e.parking_centre),x.push({draggable:!1,strokeOpacity:.1,fillOpacity:.1,path:e.parking_fence,events:{change:function(){},click:function(){}}}),O.push({center:e.parking_centre,radius:e.parking_radius,fillOpacity:.1,events:{click:function(){}}})}),1==v&&(this.circles=O),this.polygons=x,e.next=50,Promise.all([Object(u["c"])({type:1,area_id:m,status:1})]);case 50:C=e.sent,P=Object(r["a"])(C,1),S=P[0].data,j=[],S.forEach(function(e,t){e.parking_centre=JSON.parse(e.parking_centre),j.push({draggable:!1,strokeOpacity:.1,fillOpacity:.3,fillColor:"red",strokeColor:"red",path:e.parking_fence,events:{change:function(){},click:function(){}}})}),this.banPolygons=j,e.next=67;break;case 58:return e.next=60,Promise.all([Object(u["c"])({type:2})]);case 60:z=e.sent,I=Object(r["a"])(z,1),I[0].dataP,this.circles=[],this.polygons=[],this.banPolygons=[],this.polygonsarea[0].path=[];case 67:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),immediate:!0}}},g=m,b=(n("f7fb"),n("ecb8"),n("2877")),_=Object(b["a"])(g,a,i,!1,null,"5e4d2182",null);t["default"]=_.exports},"81df":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.page?n("el-pagination",e._b({ref:"page",attrs:{"page-sizes":e.pageSizes,"current-page":e.currentPage,"page-size":e.perPage,total:e.page.total,layout:e.layout,background:""},on:{"size-change":e.onSizeChange,"current-change":e.onChange,"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.perPage=t},"update:page-size":function(t){e.perPage=t}}},"el-pagination",e.$attrs,!1)):e._e()},i=[],r={name:"Pagination",data:function(){return{currentPage:1,perPage:10}},props:{page:Object,layout:{type:String,default:"total, prev, pager, next, sizes, jumper"},autoPush:{type:Boolean,default:!0}},computed:{pageSizes:function(){var e=[10,30,50,100,200],t=this.page.per_page;return-1===e.indexOf(t)?[this.page.per_page].concat(e):e}},methods:{push:function(){var e=Object.assign({},this.$route.query,{page:this.currentPage,per_page:this.perPage});this.$router.push({path:this.$route.path,query:e})},onSizeChange:function(e){this.$emit("size-change",e),this.autoPush&&(this.currentPage=1,this.push())},onChange:function(e){this.$emit("current-change",e),this.autoPush&&this.push()}},watch:{page:{handler:function(e){var t=this;e&&(this.currentPage=e.current_page,this.perPage=e.per_page,this.$nextTick(function(){t.$refs.page.internalCurrentPage=e.current_page}))},immediate:!0}}},s=r,o=n("2877"),l=Object(o["a"])(s,a,i,!1,null,"f691fd2e",null);t["a"]=l.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"89bc":function(e,t,n){e.exports=n.p+"img/using.172bef6.172bef66.png"},a414:function(e,t,n){e.exports=n.p+"img/unuse.38fefdf.38fefdf9.png"},b64d:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return o}),n.d(t,"a",function(){return l});var a=n("bf9a");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("area",{params:e})}function r(e){return a["b"].get("area/".concat(e))}function s(e){return a["b"].post("area",e)}function o(e,t){return a["b"].put("area/".concat(e),t)}function l(e){return a["b"].get("area/".concat(e,"/edit"))}},cafd:function(e,t,n){"use strict";var a=n("0fb6"),i=n.n(a);i.a},d52f:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"d",function(){return r}),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return o}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return c});var a=n("bf9a");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("parking",{params:e})}function r(e){return a["b"].post("parking",e)}function s(e,t){return a["b"].put("parking/".concat(e),t)}function o(e){return a["b"].post("parking/status",e)}function l(e){return a["b"].delete("parking/"+e)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("parking/applyAddParking",{params:e})}},ea81:function(e,t,n){e.exports=n.p+"img/low.29a1bda.29a1bdac.png"},ecb8:function(e,t,n){"use strict";var a=n("0dd5"),i=n.n(a);i.a},f7fb:function(e,t,n){"use strict";var a=n("febc"),i=n.n(a);i.a},febc:function(e,t,n){}}]); //# sourceMappingURL=chunk-15792e51.b988d84a.js.map