From b9e37476923b00e13efee0336343c388a39dc042 Mon Sep 17 00:00:00 2001 From: x_ying <2438792676@qq.com> Date: Thu, 18 Aug 2022 16:23:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E7=A6=81=E6=97=A5=E5=BF=97=20?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E9=80=89=E6=8B=A9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/logManage/doorLog/index.vue | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/views/system/logManage/doorLog/index.vue b/src/views/system/logManage/doorLog/index.vue index a496e44..834fb21 100644 --- a/src/views/system/logManage/doorLog/index.vue +++ b/src/views/system/logManage/doorLog/index.vue @@ -45,7 +45,7 @@ - + @@ -85,8 +85,6 @@ export default { cruds() { return CRUD({ url: 'api/securitydoor/initSecurityDoorLog', - // sort: ['createTime,desc'], - // crudMethod: caseCrudMethod, optShow: { add: false, edit: false, @@ -104,7 +102,7 @@ export default { { value: 'deviceName', label: '设备' }, { value: 'roomName', label: '库房' } ], - queryTime: null + queryTime: [] } }, computed: { @@ -123,8 +121,10 @@ export default { } else if (this.optionVal === 'roomName') { this.crud.query.roomName = this.keyWord } - this.crud.query.startTime = this.queryTime[0] - this.crud.query.endTime = this.queryTime[1] + if (this.queryTime.length > 0) { + this.crud.query.startTime = this.queryTime[0] + this.crud.query.endTime = this.queryTime[1] + } }, // 导出 handleDownload() { @@ -132,9 +132,6 @@ export default { exportFile(this.baseApi + '/api/securitydoor/exportSecurityDoorLogList') this.crud.downloadLoading = false }, - test() { - console.log(this.crud, 'crud') - }, clickRowHandler(row) { this.$refs.table.toggleRowSelection(row) // 单击选中 },