fix:温湿度操作记录日志、温湿度同步后台、删除查询日志、停止视频播放

This commit is contained in:
吉浩茹
2025-10-10 10:58:43 +08:00
parent 7a88643b5d
commit 4e66592cf8
8 changed files with 716 additions and 163 deletions

View File

@ -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)
// }
},
// 获取事件状态