|
@@ -74,13 +74,29 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
items() {
|
|
items() {
|
|
- return {
|
|
|
|
|
|
+ let obj = {};
|
|
|
|
+ let arr = [
|
|
|
|
+ "MUSIC_GROUP_COURSE",
|
|
|
|
+ "VIP_GROUP_COURSE",
|
|
|
|
+ "VIP_GROUP_ONLINE_COURSE",
|
|
|
|
+ "VIP_GROUP_OFFLINE_COURSE",
|
|
|
|
+ "PRACTICE_GROUP_COURSE"
|
|
|
|
+ ];
|
|
|
|
+ arr.forEach((str) => {
|
|
|
|
+ if (this.data[str]) {
|
|
|
|
+ obj[str] = this.data[str];
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ /**
|
|
|
|
+ * {
|
|
MUSIC_GROUP_COURSE: this.data["MUSIC_GROUP_COURSE"] || {},
|
|
MUSIC_GROUP_COURSE: this.data["MUSIC_GROUP_COURSE"] || {},
|
|
VIP_GROUP_COURSE: this.data["VIP_GROUP_COURSE"] || {},
|
|
VIP_GROUP_COURSE: this.data["VIP_GROUP_COURSE"] || {},
|
|
VIP_GROUP_ONLINE_COURSE: this.data["VIP_GROUP_ONLINE_COURSE"] || {},
|
|
VIP_GROUP_ONLINE_COURSE: this.data["VIP_GROUP_ONLINE_COURSE"] || {},
|
|
VIP_GROUP_OFFLINE_COURSE: this.data["VIP_GROUP_OFFLINE_COURSE"] || {},
|
|
VIP_GROUP_OFFLINE_COURSE: this.data["VIP_GROUP_OFFLINE_COURSE"] || {},
|
|
PRACTICE_GROUP_COURSE: this.data["PRACTICE_GROUP_COURSE"] || {},
|
|
PRACTICE_GROUP_COURSE: this.data["PRACTICE_GROUP_COURSE"] || {},
|
|
};
|
|
};
|
|
|
|
+ */
|
|
|
|
+ return obj
|
|
},
|
|
},
|
|
dataZoom() {
|
|
dataZoom() {
|
|
return [
|
|
return [
|
|
@@ -135,7 +151,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.log(Object.values(months));
|
|
|
|
|
|
+ // console.log(Object.values(months));
|
|
return {
|
|
return {
|
|
columns: ["月份", ...values.map((item) => item.title)],
|
|
columns: ["月份", ...values.map((item) => item.title)],
|
|
rows: Object.values(months),
|
|
rows: Object.values(months),
|
|
@@ -147,6 +163,7 @@ export default {
|
|
chartExtend() {
|
|
chartExtend() {
|
|
return {
|
|
return {
|
|
series: {
|
|
series: {
|
|
|
|
+ type: "line",
|
|
smooth: false,
|
|
smooth: false,
|
|
},
|
|
},
|
|
yAxis: {
|
|
yAxis: {
|
|
@@ -265,7 +282,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
setVipMonthDetail() {
|
|
setVipMonthDetail() {
|
|
- console.log("调用");
|
|
|
|
|
|
+ // console.log("调用");
|
|
const vipdetail = {};
|
|
const vipdetail = {};
|
|
let datas = this.items["VIP_GROUP_COURSE"]["indexMonthData"];
|
|
let datas = this.items["VIP_GROUP_COURSE"]["indexMonthData"];
|
|
datas.forEach((item) => {
|
|
datas.forEach((item) => {
|