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.
shipin/public/admin/system_static/js/chunk-b5e218e2.f14e398b.js

1 line
7.1 KiB

1 year ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b5e218e2"],{"0662":function(t,e,a){},"18e7":function(t,e,a){"use strict";a.r(e);var s=a("c7eb"),i=a("1da1"),o=(a("a15b"),a("b0c0"),a("d81d"),a("14d9"),a("a584")),n=a("c71e");o={name:"index",components:{cardsData:o.a,echartsNew:n.a},data:function(){return{timeVal:[],style:{height:"400px"},fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"本周",val:"week"},{text:"本月",val:"month"},{text:"本季度",val:"quarter"},{text:"本年",val:"year"}]},formValidate:{status:"",date:""},cardLists:[{col:6,count:0,name:"参与人数(人)",className:"ios-speedometer-outline"},{col:6,count:0,name:"成团数量(个)",className:"md-rose"},{col:6,count:0,name:"参与人数(人)",className:"ios-speedometer-outline"},{col:6,count:0,name:"成团数量(个)",className:"md-rose"},{col:6,count:0,name:"参与人数(人)",className:"ios-speedometer-outline"},{col:6,count:0,name:"成团数量(个)",className:"md-rose"}],optionData:{},spinShow:!1}},created:function(){},methods:{onchangeTime:function(t){this.timeVal=t,this.dataTime=this.timeVal?this.timeVal.join("-"):"",this.name=this.dataTime},getTrend:function(){var t=this;this.spinShow=!0,statisticUserTrendApi(this.formInline).then(function(){var e=Object(i.a)(Object(s.a)().mark((function e(a){var i,o,n,r;return Object(s.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=a.data.series.map((function(t){return t.name})),o=a.data.xAxis,n=["#5B8FF9","#5AD8A6","#FFAB2B","#5D7092"],r=[],a.data.series.map((function(t,e){r.push({name:t.name,type:"line",data:t.value,itemStyle:{normal:{color:n[e]}},smooth:0})})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:i},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:o},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("6cef"),n=a("2877"),a=Object(n.a)(o,(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-mt",attrs:{bordered:!1,shadow:"never"}},[e("el-form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"订单时间:"}},[e("el-radio-group",{staticClass:"mr",attrs:{type:"button"},on:{change:function(e){return t.selectChange(t.formValidate.data)}},model:{value:t.formValidate.data,callback:function(e){t.$set(t.formValidate,"data",e)},expression:"formValidate.data"}},t._l(t.fromList.fromTxt,(function(a,s){return e("el-radio-button",{key:s,attrs:{label:a.val}},[t._v(t._s(a.text))])})),1),e("el-date-picker",{attrs:{editable:!1,clearable:"",format:"yyyy/MM/dd",type:"daterange","value-format":"yyyy/MM/dd","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1)],1)],1)],1),0<=t.cardLists.length?e("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),t.optionData?e("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e(),e("div",{staticClass:"code-row-bg"},[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"acea-row row-between-wrapper"},[e("div",{staticClass:"statics-header-title"},[t._v("积分来源")]),e("div",[t._v("切换样式")])]),t.optionData?e("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%"