From a8fcf0e243d6de1304705a178a9b61df80ad0d84 Mon Sep 17 00:00:00 2001 From: miaojiale <1123971748@qq.com> Date: Wed, 19 Jul 2023 09:41:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataAnalysis/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/dataAnalysis/index.vue b/src/views/dataAnalysis/index.vue index 81a4323..97e1a60 100644 --- a/src/views/dataAnalysis/index.vue +++ b/src/views/dataAnalysis/index.vue @@ -5,7 +5,7 @@
无症状人群胃癌筛查随访数据分析
-
数据截止到 2022-10-20 18:00
+
数据截止到 {{ curTime }}
总体概览
@@ -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() -- 2.22.0