From 4494bb04aad4df6e55bec4c8c33aef8e921ddd4f Mon Sep 17 00:00:00 2001
From: xuhuajiao <13476289682@163.com>
Date: Sat, 14 Sep 2024 15:53:51 +0800
Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E7=A6=81=E6=97=A5=E5=BF=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../system/logManage/deviceLog/index.vue | 54 ++++++++++---------
src/views/system/logManage/storeLog/index.vue | 4 +-
2 files changed, 30 insertions(+), 28 deletions(-)
diff --git a/src/views/system/logManage/deviceLog/index.vue b/src/views/system/logManage/deviceLog/index.vue
index e991651..2bfc58e 100644
--- a/src/views/system/logManage/deviceLog/index.vue
+++ b/src/views/system/logManage/deviceLog/index.vue
@@ -3,26 +3,17 @@
-
+ 导出
-
-
-
-
-
+ />
@@ -35,7 +26,7 @@
@row-click="clickRowHandler"
@selection-change="selectionChangeHandler"
>
-
+
@@ -88,6 +79,7 @@ export default {
data() {
return {
selections: [],
+ blurry: null,
keyWord: '',
optionVal: 'QuNo',
options: [
@@ -104,15 +96,16 @@ export default {
},
methods: {
[CRUD.HOOK.beforeRefresh]() {
- this.crud.query.roomName = null
- this.crud.query.deviceName = null
+ // this.crud.query.roomName = null
+ // this.crud.query.deviceName = null
+ this.crud.query.blurry = this.blurry
this.crud.query.startTime = null
this.crud.query.endTime = null
- if (this.optionVal === 'QuNo') {
- this.crud.query.QuNo = this.keyWord
- } else if (this.optionVal === 'roomName') {
- this.crud.query.roomName = this.keyWord
- }
+ // if (this.optionVal === 'QuNo') {
+ // this.crud.query.QuNo = this.keyWord
+ // } else if (this.optionVal === 'roomName') {
+ // this.crud.query.roomName = this.keyWord
+ // }
if (this.queryTime && this.queryTime.length !== 0) {
this.crud.query.startTime = this.queryTime[0]
this.crud.query.endTime = this.queryTime[1]
@@ -123,9 +116,18 @@ export default {
},
// 导出
handleDownload() {
+ if (this.queryTime && this.queryTime.length !== 0) {
+ this.crud.query.startTime = this.queryTime[0]
+ this.crud.query.endTime = this.queryTime[1]
+ } else {
+ this.crud.query.startTime = null
+ this.crud.query.endTime = null
+ this.$message.warning('请先选择开始时间和结束时间!')
+ return false
+ }
this.crud.downloadLoading = true
const fileName = parseTime(new Date()) + '-密集架日志.xlsx'
- getBlob(this.baseApi + '/api/securitydoor/exportSecurityDoorLog1List' + '?' + qs.stringify(this.crud.query, { indices: false }), function(blob) {
+ getBlob(this.baseApi + '/api/alarmDeseCaBinetLog/exportLogList' + '?' + qs.stringify(this.crud.query, { indices: false }), function(blob) {
saveAs(blob, fileName)
})
this.crud.downloadLoading = false
diff --git a/src/views/system/logManage/storeLog/index.vue b/src/views/system/logManage/storeLog/index.vue
index 7782a2b..38aaa88 100644
--- a/src/views/system/logManage/storeLog/index.vue
+++ b/src/views/system/logManage/storeLog/index.vue
@@ -22,7 +22,7 @@
/>
-->
-
+
-
+
5F档案库