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