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) // 单击选中
},