chunk-2ae178bc.ebe3be95.js 4.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ae178bc"],{"0325":function(t,e,o){var a,i,r;(function(l,n){i=[e,o("4d28")],a=n,r="function"===typeof a?a.apply(e,i):a,void 0===r||(t.exports=r)})(0,(function(t,e){var o=function(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)};if(e){var a=["#C1232B","#27727B","#FCCE10","#E87C25","#B5C334","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD","#D7504B","#C6E579","#F4E001","#F0805A","#26C0C0"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#27727B"}},visualMap:{color:["#C1232B","#FCCE10"]},toolbox:{iconStyle:{normal:{borderColor:a[0]}}},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#27727B",type:"dashed"},crossStyle:{color:"#27727B"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"rgba(181,195,52,0.3)",fillerColor:"rgba(181,195,52,0.2)",handleColor:"#27727B"},categoryAxis:{axisLine:{lineStyle:{color:"#27727B"}},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1},splitArea:{show:!1},splitLine:{lineStyle:{color:["#ccc"],type:"dashed"}}},timeline:{itemStyle:{color:"#27727B"},lineStyle:{color:"#27727B"},controlStyle:{color:"#27727B",borderColor:"#27727B"},symbol:"emptyCircle",symbolSize:3},line:{itemStyle:{borderWidth:2,borderColor:"#fff",lineStyle:{width:3},emphasis:{borderWidth:0}},symbol:"circle",symbolSize:3.5},candlestick:{itemStyle:{color:"#c1232b",color0:"#b5c334"},lineStyle:{width:1,color:"#c1232b",color0:"#b5c334"},areaStyle:{color:"#c1232b",color0:"#27727b"}},graph:{itemStyle:{color:"#c1232b"},linkStyle:{color:"#b5c334"}},map:{itemStyle:{color:"#f2385a",areaColor:"#ddd",borderColor:"#eee"},areaStyle:{color:"#fe994e"},label:{color:"#c1232b"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#B5C334"],[.8,"#27727B"],[1,"#C1232B"]]}},axisTick:{splitNumber:2,length:5,lineStyle:{color:"#fff"}},axisLabel:{textStyle:{color:"#fff"}},splitLine:{length:"5%",lineStyle:{color:"#fff"}},title:{offsetCenter:[0,-20]}}};e.registerTheme("infographic",i)}else o("ECharts is not Loaded")}))},3288:function(t,e,o){},"5c7a":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.isLoading}},[e("a-card",{attrs:{bordere:!1}},[e("div",{staticClass:"timeSelectContent"},[e("div",{staticClass:"timeBoxLeft"},[e("a-range-picker",{staticClass:"inputW240",attrs:{placeholder:["开始时间","结束时间"],disabledDate:t.disabledDate},on:{change:t.changeCustomTime},model:{value:t.customTime,callback:function(e){t.customTime=e},expression:"customTime"}}),e("a-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")])],1),e("a-radio-group",{attrs:{"button-style":"solid"},on:{change:t.changeRadio},model:{value:t.modeType,callback:function(e){t.modeType=e},expression:"modeType"}},[e("a-radio-button",{attrs:{value:1}},[t._v("按日")]),e("a-radio-button",{attrs:{value:2}},[t._v("按周")]),e("a-radio-button",{attrs:{value:3}},[t._v("按月")])],1)],1),e("div",{staticClass:"echartsBody"},[e("div",{staticStyle:{width:"100%",height:"500px"},attrs:{id:"main"}})])])],1)},i=[],r=(o("9f29"),o("0528"),o("9b73"),o("b775")),l={list:"/members.MemberTj/list"};function n(t){return Object(r["b"])({url:l.list,method:"get",params:t})}o("9b2d"),o("2f42");var c=o("4d28"),s=o.n(c),d=(o("0325"),{components:{},data:function(){return{isLoading:!1,queryParam:{},customTime:[],modeType:1}},created:function(){this.getData()},methods:{disabledDate:function(t){},getData:function(){var t=this;this.queryParam.ftype=this.modeType,this.queryParam.betweenTime=this.customTime,this.isLoading=!0,n(this.queryParam).then((function(e){t.echartsData=e.data.list.data||[],t.changeEcharts(),t.isLoading=!1})).finally((function(){t.isLoading=!1}))},changeCustomTime:function(t){this.customTime=t},changeRadio:function(t){this.getData()},changeEcharts:function(){var t=this;this.$nextTick((function(){t.myEcharts()}))},myEcharts:function(){var t=[];this.echartsData&&this.echartsData.forEach((function(e){t.push(e.remark)}));var e=[];this.echartsData&&this.echartsData.forEach((function(t){e.push(t.values)}));var o=[{name:"会员增长数",type:"bar",data:e}],a=s.a.init(document.getElementById("main"),"infographic"),i="5%",r="5%";1==this.modeType&&(r="3%",i="3%");var l={color:["#5b9bd5"],tooltip:{trigger:"axis"},legend:{data:["会员增长数"],y:"bottom"},grid:{left:r,right:i},xAxis:{type:"category",data:t},yAxis:{type:"value"},series:o};l&&a.setOption(l,!0)}}}),u=d,h=(o("7d43a"),o("829d")),m=Object(h["a"])(u,a,i,!1,null,"32c2c40e",null);e["default"]=m.exports},"7d43a":function(t,e,o){"use strict";o("3288")}}]);