|
|
@ -20,7 +20,7 @@ export const useSystemStore = defineStore( |
|
|
|
const log = systemLogList.value.find(log => log.uuid === item.uuid) |
|
|
|
if (!log) { |
|
|
|
if (item.type === 'AppCheckPointCheckFailEvent' && item.errCheckPoints) { |
|
|
|
// 传感器检测失败弹窗事件
|
|
|
|
// 传感器检测失败弹窗事件
|
|
|
|
item.errCheckPoints.forEach((errCheckPoint) => { |
|
|
|
const log: System.SystemLog = { |
|
|
|
name: `${errCheckPoint.ecodeInfo}(${errCheckPoint.ecode})`, |
|
|
@ -32,7 +32,7 @@ export const useSystemStore = defineStore( |
|
|
|
}) |
|
|
|
} |
|
|
|
if (item.type === 'AppWarningPromoptEvent') { |
|
|
|
// 报警事件
|
|
|
|
// 报警事件
|
|
|
|
const log: System.SystemLog = { |
|
|
|
name: item.description || '', |
|
|
|
status: 'warn', |
|
|
@ -43,7 +43,7 @@ export const useSystemStore = defineStore( |
|
|
|
insertLog(log) |
|
|
|
} |
|
|
|
if (item.type === 'AppPromoptEvent') { |
|
|
|
// 普通弹窗事件
|
|
|
|
// 普通弹窗事件
|
|
|
|
const log: System.SystemLog = { |
|
|
|
name: item.message || '', |
|
|
|
status: 'check', |
|
|
@ -138,7 +138,7 @@ export const useSystemStore = defineStore( |
|
|
|
fnName: 'getTime', |
|
|
|
} |
|
|
|
const res = await sendCmd(timeParams) |
|
|
|
systemTime.value = res.time |
|
|
|
systemTime.value = res.time + 8 * 60 * 60 * 1000 |
|
|
|
} |
|
|
|
|
|
|
|
return { |
|
|
|