|
@ -45,7 +45,7 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="roomName" label="库房" align="center" min-width="150" /> |
|
|
<el-table-column prop="roomName" label="库房" align="center" min-width="150" /> |
|
|
<el-table-column prop="deviceName" label="设备名称" align="center" min-width="180" /> |
|
|
<el-table-column prop="deviceName" label="设备名称" align="center" min-width="180" /> |
|
|
<el-table-column prop="" label="档案信息" align="center" min-width="180" /> |
|
|
|
|
|
|
|
|
<el-table-column prop="maintitle" label="档案信息" align="center" min-width="180" /> |
|
|
<el-table-column prop="archiveNo" label="档号" align="center" min-width="180" /> |
|
|
<el-table-column prop="archiveNo" label="档号" align="center" min-width="180" /> |
|
|
<el-table-column prop="alarmMsg" label="警情描述" align="center" min-width="180" /> |
|
|
<el-table-column prop="alarmMsg" label="警情描述" align="center" min-width="180" /> |
|
|
<el-table-column prop="createTime" label="报警时间" align="center" min-width="180"> |
|
|
<el-table-column prop="createTime" label="报警时间" align="center" min-width="180"> |
|
@ -85,8 +85,6 @@ export default { |
|
|
cruds() { |
|
|
cruds() { |
|
|
return CRUD({ |
|
|
return CRUD({ |
|
|
url: 'api/securitydoor/initSecurityDoorLog', |
|
|
url: 'api/securitydoor/initSecurityDoorLog', |
|
|
// sort: ['createTime,desc'], |
|
|
|
|
|
// crudMethod: caseCrudMethod, |
|
|
|
|
|
optShow: { |
|
|
optShow: { |
|
|
add: false, |
|
|
add: false, |
|
|
edit: false, |
|
|
edit: false, |
|
@ -104,7 +102,7 @@ export default { |
|
|
{ value: 'deviceName', label: '设备' }, |
|
|
{ value: 'deviceName', label: '设备' }, |
|
|
{ value: 'roomName', label: '库房' } |
|
|
{ value: 'roomName', label: '库房' } |
|
|
], |
|
|
], |
|
|
queryTime: null |
|
|
|
|
|
|
|
|
queryTime: [] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
@ -123,8 +121,10 @@ export default { |
|
|
} else if (this.optionVal === 'roomName') { |
|
|
} else if (this.optionVal === 'roomName') { |
|
|
this.crud.query.roomName = this.keyWord |
|
|
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() { |
|
|
handleDownload() { |
|
@ -132,9 +132,6 @@ export default { |
|
|
exportFile(this.baseApi + '/api/securitydoor/exportSecurityDoorLogList') |
|
|
exportFile(this.baseApi + '/api/securitydoor/exportSecurityDoorLogList') |
|
|
this.crud.downloadLoading = false |
|
|
this.crud.downloadLoading = false |
|
|
}, |
|
|
}, |
|
|
test() { |
|
|
|
|
|
console.log(this.crud, 'crud') |
|
|
|
|
|
}, |
|
|
|
|
|
clickRowHandler(row) { |
|
|
clickRowHandler(row) { |
|
|
this.$refs.table.toggleRowSelection(row) // 单击选中 |
|
|
this.$refs.table.toggleRowSelection(row) // 单击选中 |
|
|
}, |
|
|
}, |
|
|