Browse Source

fix:修改页面错误

temp
zhaohy 3 months ago
parent
commit
12a9040ee5
  1. 3
      hx-ai-intelligent/src/view/alarmManagement/energyAlarm/status.vue
  2. 2
      hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/status.vue
  3. 1
      hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/status.vue

3
hx-ai-intelligent/src/view/alarmManagement/energyAlarm/status.vue

@ -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) => {

2
hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/status.vue

@ -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 {

1
hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/status.vue

@ -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 = {

Loading…
Cancel
Save