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/reportLibraryOne/index.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/culture/src/views/strainReportLibrary/reportLibraryOne/index.vue b/culture/src/views/strainReportLibrary/reportLibraryOne/index.vue
index 27363ec..5d34f3e 100644
--- a/culture/src/views/strainReportLibrary/reportLibraryOne/index.vue
+++ b/culture/src/views/strainReportLibrary/reportLibraryOne/index.vue
@@ -117,7 +117,7 @@
                 experimentName: ''
             },
             tableData: [],
-            roleType: JSON.parse(sessionStorage.getItem('userInfo')).roleType,
+            roleType: Number(JSON.parse(sessionStorage.getItem('userInfo')).roleType || 0),
             showDelConfirm: false,
             rowId: '',
             changeStatus: false,
@@ -207,7 +207,7 @@
                 pageSize: this.queryForm.pageSize,
                 teamName: this.form.teamName,
                 reportName: this.form.reportName,
-                time: this.form.time.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: 1

--
Gitblit v1.7.1