|
|
@ -140,6 +140,7 @@ |
|
|
|
.then((res) => { |
|
|
|
if (res.msg === 'success') { |
|
|
|
logList.value = res.data; |
|
|
|
if (logList.value.length > 0) { |
|
|
|
infoObject.value = { ...logList.value[0] }; |
|
|
|
infoObject.value.state = infoObject.value.state.value; |
|
|
|
let colorMap = { |
|
|
@ -162,9 +163,9 @@ |
|
|
|
item.bgColor = bgColorMap[item.state.value]; |
|
|
|
item.src = 'state-' + item.state.value; |
|
|
|
}); |
|
|
|
console.log(logList.value); |
|
|
|
config.value.dataSource = logList.value; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}; |
|
|
|
const handleKeyDown = (event) => { |
|
|
|