diff --git a/src/views/board/board4/index.vue b/src/views/board/board4/index.vue index 13ad986..40cb41a 100644 --- a/src/views/board/board4/index.vue +++ b/src/views/board/board4/index.vue @@ -576,7 +576,6 @@ import {listQualityInspection} from "@/api/report/qualityInspection"; import {listShutDown} from "@/api/dms/shutDown"; import {parseTime} from "@/utils/ruoyi"; -const now = new Date() const getWeekRange = () => { const now = new Date(); const day = now.getDay(); // 0-6 (0=周日) @@ -713,6 +712,8 @@ export default { }, methods: { async getData() { + + const now = new Date() listShutDown({ beginTime: parseTime(new Date( now.getFullYear(),