From 8dbbe477b97af728a5c4d5b444a4f67c582eb319 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 08 一月 2025 17:43:34 +0800
Subject: [PATCH] osd导出

---
 src/views/system/check/result/detail/index.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/views/system/check/result/detail/index.vue b/src/views/system/check/result/detail/index.vue
index 895d76d..1001197 100644
--- a/src/views/system/check/result/detail/index.vue
+++ b/src/views/system/check/result/detail/index.vue
@@ -83,6 +83,7 @@
       <pagination
         v-show="total>0"
         :total="total"
+        :auto-scroll="false"
         :page.sync="queryParamsList.pageNum"
         :limit.sync="queryParamsList.pageSize"
         @pagination="getList"
@@ -343,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