Commit a8fcf0e2 authored by miaojiale's avatar miaojiale

修改时间显示

parent 69d20bd6
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="line-gredient">无症状人群胃癌筛查随访数据分析</div> <div class="line-gredient">无症状人群胃癌筛查随访数据分析</div>
</div> </div>
<div class="over-all"> <div class="over-all">
<div class="data-time">数据截止到 2022-10-20 18:00</div> <div class="data-time">数据截止到 {{ curTime }}</div>
<div class="common-title">总体概览</div> <div class="common-title">总体概览</div>
<div class="over-box"> <div class="over-box">
<div class="over-left"> <div class="over-left">
...@@ -155,6 +155,7 @@ import Map from "./Map/index.vue" ...@@ -155,6 +155,7 @@ import Map from "./Map/index.vue"
import PieChart from "./Pie/PieChart.vue" import PieChart from "./Pie/PieChart.vue"
import PieChartFour from "./Pie/PieChartFour.vue" import PieChartFour from "./Pie/PieChartFour.vue"
import PieChartTwo from "./Pie/PieChartTwo.vue" import PieChartTwo from "./Pie/PieChartTwo.vue"
import dayjs from "dayjs"
import { import {
screenOverview, screenOverview,
unionList, unionList,
...@@ -251,10 +252,15 @@ export default { ...@@ -251,10 +252,15 @@ export default {
{ value: 0, name: "未患癌占比" }, { value: 0, name: "未患癌占比" },
], ],
mapData: [], mapData: [],
curTime: "",
} }
}, },
watch: {}, watch: {},
mounted() { 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.screenOverview()
this.getUnionList() this.getUnionList()
this.getSixMonthList() this.getSixMonthList()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment