fix:日志明细
This commit is contained in:
@ -846,8 +846,8 @@ export default {
|
||||
return
|
||||
}
|
||||
|
||||
if (numValue > 50) {
|
||||
this.tempValidationMessage = '温度不能高于50°C'
|
||||
if (numValue > 30) {
|
||||
this.tempValidationMessage = '温度不能高于30°C'
|
||||
this.tempValidationClass = 'error'
|
||||
return
|
||||
}
|
||||
@ -865,16 +865,16 @@ export default {
|
||||
|
||||
// 提高目标温度
|
||||
increaseTemperature() {
|
||||
if (this.targetTemperature < 50) {
|
||||
if (this.targetTemperature < 30) {
|
||||
const oldTemp = this.targetTemperature
|
||||
this.targetTemperature++
|
||||
console.log('目标温度提高至:', this.targetTemperature + '°C')
|
||||
this.showTemperatureChangeToast()
|
||||
// 记录温度调节日志
|
||||
this.logTemperatureAdjustment('提高', oldTemp, this.targetTemperature)
|
||||
this.logTemperatureAdjustment('升高', oldTemp, this.targetTemperature)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '温度不能高于50°C',
|
||||
title: '温度不能高于30°C',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
@ -1156,7 +1156,7 @@ export default {
|
||||
try {
|
||||
const currentTime = this.formatDateTime(new Date())
|
||||
const logEvent = {
|
||||
eventType: `空调目标温度${action}`,
|
||||
eventType: `空调目标温度${action}: ${oldTemp}°C -> ${newTemp}°C`,
|
||||
eventTime: currentTime,
|
||||
status: "已完成",
|
||||
description: `用户手动${action}空调目标温度,从${oldTemp}°C调整到${newTemp}°C,当前环境温度:${this.temperature}°C,空调状态:${this.acStatusList[this.acStatus]}`,
|
||||
@ -1175,7 +1175,7 @@ export default {
|
||||
try {
|
||||
const currentTime = this.formatDateTime(new Date())
|
||||
const logEvent = {
|
||||
eventType: `空调目标湿度${action}`,
|
||||
eventType: `空调目标湿度从${oldHumidity}%${action}到${newHumidity}%`,
|
||||
eventTime: currentTime,
|
||||
status: "已完成",
|
||||
description: `用户手动${action}空调目标湿度,从${oldHumidity}%调整到${newHumidity}%,当前环境湿度:${this.humidity}%,空调状态:${this.acStatusList[this.acStatus]}`,
|
||||
@ -1194,7 +1194,7 @@ export default {
|
||||
try {
|
||||
const currentTime = this.formatDateTime(new Date())
|
||||
const logEvent = {
|
||||
eventType: "环境控制范围更新",
|
||||
eventType: `环境控制范围更新:温度范围${this.tempSettings.min}°C-${this.tempSettings.max}°C,湿度范围${this.humiditySettings.min}%-${this.humiditySettings.max}%`,
|
||||
eventTime: currentTime,
|
||||
status: "已完成",
|
||||
description: `用户修改温湿度控制范围:温度范围${this.tempSettings.min}°C-${this.tempSettings.max}°C,湿度范围${this.humiditySettings.min}%-${this.humiditySettings.max}%,当前环境温度:${this.temperature}°C,当前环境湿度:${this.humidity}%,空调状态:${this.acStatusList[this.acStatus]}`,
|
||||
|
||||
Reference in New Issue
Block a user