fix:温湿度操作记录日志、温湿度同步后台、删除查询日志、停止视频播放
This commit is contained in:
@ -938,23 +938,23 @@ export default {
|
||||
|
||||
// 创建查询事件
|
||||
async createQueryEvent(status, dataCount) {
|
||||
try {
|
||||
const currentTime = this.formatDateTime(new Date())
|
||||
const queryEvent = {
|
||||
eventType: "参数记录查询",
|
||||
eventTime: currentTime,
|
||||
status: this.getEventStatus(status),
|
||||
description: this.getEventDescription(status, dataCount),
|
||||
deviceId: "PARAMETER_QUERY_001"
|
||||
}
|
||||
// try {
|
||||
// const currentTime = this.formatDateTime(new Date())
|
||||
// const queryEvent = {
|
||||
// eventType: "参数记录查询",
|
||||
// eventTime: currentTime,
|
||||
// status: this.getEventStatus(status),
|
||||
// description: this.getEventDescription(status, dataCount),
|
||||
// deviceId: "PARAMETER_QUERY_001"
|
||||
// }
|
||||
|
||||
console.log('📤 提交查询事件:', queryEvent)
|
||||
const response = await eventApi.create(queryEvent)
|
||||
console.log('✅ 查询事件创建成功:', response)
|
||||
// console.log('📤 提交查询事件:', queryEvent)
|
||||
// const response = await eventApi.create(queryEvent)
|
||||
// console.log('✅ 查询事件创建成功:', response)
|
||||
|
||||
} catch (error) {
|
||||
console.error('❌ 查询事件创建失败:', error)
|
||||
}
|
||||
// } catch (error) {
|
||||
// console.error('❌ 查询事件创建失败:', error)
|
||||
// }
|
||||
},
|
||||
|
||||
// 获取事件状态
|
||||
|
||||
Reference in New Issue
Block a user