fix:修改页面错误
This commit is contained in:
@@ -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) => {
|
||||
|
@@ -147,6 +147,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 = {
|
||||
@@ -171,6 +172,7 @@
|
||||
});
|
||||
config.value.dataSource = logList.value;
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
return {
|
||||
|
@@ -49,7 +49,6 @@
|
||||
visible.value = false;
|
||||
};
|
||||
const toggle = async (data) => {
|
||||
console.log(data, 'xxxxxx');
|
||||
let states = await getEnum({ params: { enumType: 'AlarmLogStateEnum' } });
|
||||
stateOptions.value = states.data;
|
||||
let stateMap = {
|
||||
|
Reference in New Issue
Block a user