You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
8.0 KiB
1 line
8.0 KiB
1 year ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-723c1520"],{"4d92":function(t,e,a){"use strict";a.r(e),a("b0c0");var i=a("c7eb"),s=a("1da1"),n=(a("d81d"),a("a15b"),a("14d9"),a("a584")),o=a("c71e"),r=a("b7be"),l=a("61f7"),c=a("9901"),d=a("fd73");n={name:"index",components:{cardsData:n.a,echartsNew:o.a,echartsFrom:c.a,dateRadio:d.a},data:function(){return{timeVal:[],style:{height:"400px"},infoList:{},infoList2:{},echartLeft:!0,echartRight:!1,loading:!1,loading2:!1,formValidate:{time:""},cardLists:[{col:8,count:0,name:"当前积分",className:"icondangqianjifen"},{col:8,count:0,name:"累计总积分",className:"iconleijijifen"},{col:8,count:0,name:"累计消耗积分",className:"iconxiaohaojifen"}],optionData:{},spinShow:!1,pickerOptions:this.$timeOptions,tabList:[],tabList2:[]}},created:function(){var t=new Date,e=new Date;e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),this.timeVal=[e,t],this.formValidate.time=Object(l.a)(e,"yyyy/MM/dd")+"-"+Object(l.a)(t,"yyyy/MM/dd"),this.onInit()},methods:{onInit:function(){this.getPointBasic(),this.getPointTrend(),this.getChannel(),this.getType()},onSelectDate:function(t){this.formValidate.time=t,this.onInit()},getPointBasic:function(){var t=this;Object(r.B)(this.formValidate).then((function(e){var a=["now_point","all_point","pay_point"];t.cardLists.map((function(t,i){t.count=e.data[a[i]]}))}))},getChannel:function(){var t=this;this.loading=!0,Object(r.v)(this.formValidate).then((function(e){t.infoList=e.data,t.tabList=e.data.list,t.loading=!1}))},getType:function(){var t=this;this.loading2=!0,Object(r.D)(this.formValidate).then((function(e){t.infoList2=e.data,t.tabList2=e.data.list,t.loading2=!1}))},onchangeTime:function(t){this.timeVal=t,this.formValidate.time=this.timeVal?this.timeVal.join("-"):"",this.name=this.formValidate.time,this.getPointBasic(),this.getPointTrend()},getPointTrend:function(){var t=this;this.spinShow=!0,Object(r.C)(this.formValidate).then(function(){var e=Object(s.a)(Object(i.a)().mark((function e(a){var s,n,o,r;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=a.data.series.map((function(t){return t.name})),n=a.data.xAxis,o=["#5B8FF9","#5AD8A6","#FFAB2B","#5D7092"],r=[],a.data.series.map((function(t,e){r.push({name:t.name,type:"line",data:t.data,itemStyle:{normal:{color:o[e]}},smooth:0})})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:s},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:n},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},series:r},t.spinShow=!1;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg),t.spinShow=!1}))}}},a("dc0b"),o=a("2877"),c=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}]},[e("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"label_text"},[t._v("时间选择:")]),e("el-date-picker",{staticClass:"mr20",staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)]),0<=t.cardLists.length?e("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),e("el-card",{attrs:{bordered:!1,shadow:"never"}},[e("h4",[t._v("积分使用趋势")]),t.optionData?e("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e()],1),e("div",{staticClass:"cod
|