(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-37bb"],{"Sh7+":function(t,e,a){},hoxy:function(t,e,a){"use strict";var i=a("Sh7+");a.n(i).a},kJzg:function(t,e,a){"use strict";a.r(e);var i=a("MT78"),n=a.n(i),s=(a("MTm3"),a("vDqi"),a("qSeR")),l={name:"customer-address-statistics",data:function(){return{loading:!1,allOption:null,dealOption:null,allChart:null,dealChart:null,list:[]}},computed:{},mounted:function(){this.initAxis(),this.getDataList()},methods:{getDataList:function(){var t=this;this.loading=!0,Object(s.a)().then(function(e){t.loading=!1;for(var a=[],i=[],n=0;n<e.data.length;n++){var s=e.data[n];s.allCustomer&&a.push({name:s.address,value:s.allCustomer}),s.dealCustomer&&i.push({name:s.address,value:s.dealCustomer})}t.allOption.series[0].data=a,t.dealOption.series[0].data=i,t.allChart.setOption(t.allOption,!0),t.dealChart.setOption(t.dealOption,!0)}).catch(function(){t.loading=!1})},initAxis:function(){this.allChart=n.a.init(document.getElementById("allChart")),this.dealChart=n.a.init(document.getElementById("dealChart")),this.allOption=this.getChartOptione("全部客户"),this.dealOption=this.getChartOptione("成交客户"),this.allChart.setOption(this.allOption,!0),this.dealChart.setOption(this.dealOption,!0)},getChartOptione:function(t){return{title:{text:t,left:"center",bottom:0},tooltip:{trigger:"item",formatter:function(t){return t.name+"<br/>"+(t.value||"-")+"（个）"}},legend:{orient:"vertical",left:"left",data:["客户数"]},visualMap:{min:0,max:50,left:"left",top:"bottom",text:["多","少"],calculable:!0,inRange:{color:["lightskyblue","yellow","orangered"]}},toolbox:{show:!0,orient:"vertical",left:"right",top:"center",feature:{mark:{show:!0},dataView:{show:!0,readOnly:!1},restore:{show:!0},saveAsImage:{show:!0}}},series:[{name:"",type:"map",mapType:"china",showLegendSymbol:!1,itemStyle:{normal:{label:{show:!0},borderColor:"#ccc"},emphasis:{label:{show:!0}}},data:[]}]}}}},o=(a("hoxy"),a("KHd+")),r=Object(o.a)(l,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:this.loading,expression:"loading"}],staticClass:"main-container"},[e("flexbox",{staticClass:"content"},[e("flexbox-item",[e("div",{staticClass:"axis-content"},[e("div",{staticClass:"axismain",attrs:{id:"allChart"}})])]),this._v(" "),e("flexbox-item",[e("div",{staticClass:"axis-content"},[e("div",{staticClass:"axismain",attrs:{id:"dealChart"}})])])],1)],1)},[],!1,null,"35c7ce58",null);r.options.__file="CustomerAddressStatistics.vue";e.default=r.exports},qSeR:function(t,e,a){"use strict";a.d(e,"a",function(){return n}),a.d(e,"b",function(){return s});var i=a("t3Un");function n(t){return Object(i.a)({url:"bi/customer/addressAnalyse",method:"post",data:t})}function s(t){return Object(i.a)({url:"bi/customer/portrait",method:"post",data:t})}}}]);