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 @@ /> --> - + - +