-
订单类型占比
-
+
+
+
订单类型占比
+
+
+ 近7日
+ 近30日
+
+
+
+
@@ -118,6 +126,7 @@ export default {
],
type1:1,
type2:1,
+ type3:1,
myCharts1:null,
myCharts2:null,
myCharts3:null,
@@ -152,6 +161,7 @@ export default {
changType1(e){
console.log(this.type1)
this.InitEChartsOne()
+ this.myCharts1.resize();
},
InitEChartsOne() {
let chartData=[]
@@ -276,6 +286,7 @@ export default {
changType2(e){
console.log(this.type2)
this.InitEChartsTwo()
+ this.myCharts2.resize();
},
InitEChartsTwo() {
let chartData=[]
@@ -401,7 +412,7 @@ export default {
var getName = [];
var getValue = [];
var chartData=[]
- getThisMonthSDishSalesRankingApi({type:"2"}).then((response) => {
+ getThisMonthSDishSalesRankingApi().then((response) => {
chartData = response.data;
chartData.forEach((item,index)=>{
getName.push(item.name)
@@ -418,7 +429,7 @@ export default {
left: "10%",
right: "2%",
bottom: "2%",
- top: "2%",
+ top: "10%",
containLabel: true,
},
tooltip: {
@@ -607,9 +618,14 @@ export default {
// });
});
},
+ changType3(e){
+ console.log(this.type3)
+ this.InitEChartsFour()
+ this.myCharts4.resize();
+ },
InitEChartsFour() {
var chartData=[]
- getProportionOfOrderTypesApi({type:"2"}).then((response) => {
+ getProportionOfOrderTypesApi({type:this.type3}).then((response) => {
chartData = response.data;
var m2R2Data = []
var sumNum = 0