@@ -155,6 +155,7 @@ import Map from "./Map/index.vue"
import PieChart from "./Pie/PieChart.vue"
import PieChartFour from "./Pie/PieChartFour.vue"
import PieChartTwo from "./Pie/PieChartTwo.vue"
+import dayjs from "dayjs"
import {
screenOverview,
unionList,
@@ -251,10 +252,15 @@ export default {
{ value: 0, name: "未患癌占比" },
],
mapData: [],
+ curTime: "",
}
},
watch: {},
mounted() {
+ let currentZero = new Date().setHours(0, 0, 0, 0) // 获取当天零点
+ currentZero = currentZero - 24 * 60 * 60 * 1000
+ this.curTime = dayjs(currentZero).format("YYYY/MM/DD")
+
this.screenOverview()
this.getUnionList()
this.getSixMonthList()