x轴坐标修改

This commit is contained in:
shijingjing
2022-08-08 10:12:37 +08:00
parent 8f87aad528
commit e912b6d00c

View File

@@ -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);