From d9b500f188ffa5dac2ac5d6a7231ba455da78906 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 17 四月 2025 11:38:38 +0800
Subject: [PATCH] 视频报表数据展示颜色调整
---
src/views/system/check/result/detail/index.vue | 25 ++++++++++++++-----------
1 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/src/views/system/check/result/detail/index.vue b/src/views/system/check/result/detail/index.vue
index 0c1dd20..52e2695 100644
--- a/src/views/system/check/result/detail/index.vue
+++ b/src/views/system/check/result/detail/index.vue
@@ -156,12 +156,12 @@
this.date = year + '-' + month;
this.queryParams.date = this.date;
let examineTag = this.$route.query.examineTag;
- if (examineTag === '2' || examineTag === '3') {
- examineTag = '1'
- }
- if (examineTag === '4' || examineTag === '5') {
- examineTag = '2'
- }
+ // if (examineTag === '2' || examineTag === '3') {
+ // examineTag = '1'
+ // }
+ // if (examineTag === '4' || examineTag === '5') {
+ // examineTag = '2'
+ // }
this.queryParams.examineTag = examineTag;
this.queryParamsList.examineTag = examineTag;
this.activeIndex = examineTag;
@@ -344,11 +344,14 @@
},
getAllDay() {
- // const date = new Date();
- // const year = date.getFullYear();
- // const month = (date.getMonth() + 1) >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1);
- // this.date = year + '-' + month;
- const currentDate = this.date.split('-');
+ let date = this.date
+ if(!this.date) {
+ date = new Date();
+ const year = date.getFullYear();
+ const month = (date.getMonth() + 1) >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1);
+ date = year + '-' + month;
+ }
+ const currentDate = date.split('-');
const currentYear = currentDate[0];
const currentMonth = currentDate[1];
const daysInMonth = new Date(currentYear, currentMonth, 0).getDate();
--
Gitblit v1.8.0