x轴坐标修改
This commit is contained in:
@@ -348,17 +348,17 @@ export default {
|
||||
if (this.timeType == 0) {
|
||||
this.resX = res.data.trend.map(
|
||||
(e) =>
|
||||
e.ymd.substring(5, 7) + "月" + e.ymd.substring(8, 10) + "日"
|
||||
e.ymd.substring(5, 7) + "-" + e.ymd.substring(8, 10)
|
||||
);
|
||||
} else if (this.timeType == 1) {
|
||||
this.resX = res.data.trend.map(
|
||||
(e) =>
|
||||
e.ymd.substring(5, 7) + "月" + e.ymd.substring(8, 10) + "日"
|
||||
e.ymd.substring(5, 7) + "-" + e.ymd.substring(8, 10)
|
||||
);
|
||||
} else if (this.timeType == 2) {
|
||||
this.resX = res.data.trend.map(
|
||||
(e) =>
|
||||
e.ymd.substring(0, 4) + "年" + e.ymd.substring(5, 7) + "月"
|
||||
e.ymd.substring(0, 4) + "-" + e.ymd.substring(5, 7)
|
||||
);
|
||||
}
|
||||
this.resY = res.data.trend.map((e) => e.receiveCount);
|
||||
|
||||
Reference in New Issue
Block a user