From 013c63b6a07231bb4456106e31715b0982167abd Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期三, 04 六月 2025 09:38:46 +0800
Subject: [PATCH] Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/leshan-laboratory

---
 culture/src/views/strainReportLibrary/reportLibraryOneTWO/index.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/culture/src/views/strainReportLibrary/reportLibraryOneTWO/index.vue b/culture/src/views/strainReportLibrary/reportLibraryOneTWO/index.vue
index 4e8c129..aeb711c 100644
--- a/culture/src/views/strainReportLibrary/reportLibraryOneTWO/index.vue
+++ b/culture/src/views/strainReportLibrary/reportLibraryOneTWO/index.vue
@@ -122,7 +122,7 @@
             },
             tableData: [],
             showDelConfirm: false,
-            roleType: JSON.parse(sessionStorage.getItem('userInfo')).roleType,
+            roleType: Number(JSON.parse(sessionStorage.getItem('userInfo')).roleType || 0),
             rowId: '',
             changeStatus: false,
             showApproval: false,
@@ -222,7 +222,7 @@
                 pageSize: this.queryForm.pageSize,
                 teamName: this.form.teamName,
                 reportName: this.form.reportName,
-                time: this.form.date.length?moment(this.form.date[0]).format('YYYY-MM-DD 00:00:00') + ' - ' + moment(this.form.date[1]).format('YYYY-MM-DD 23:59:59'):'',
+                time: this.form.date?.length?moment(this.form.date[0]).format('YYYY-MM-DD 00:00:00') + ' - ' + moment(this.form.date[1]).format('YYYY-MM-DD 23:59:59'):'',
                 status: this.form.status,
                 isDraft: this.isDraft ? 1 : 0,
                 reportType: 2

--
Gitblit v1.7.1