首页,报警图表,字段顺序调整

This commit is contained in:
fengerli
2025-09-20 15:43:53 +08:00
parent eb4bb8c208
commit b1f5cfdd7a
3 changed files with 22 additions and 16 deletions

View File

@ -16,6 +16,7 @@ export interface AlarmVO {
deviceMac: string; deviceMac: string;
devicePic:string; devicePic:string;
finishTime: string; finishTime: string;
timeDiff:string
} }

View File

@ -307,6 +307,10 @@ onMounted(() => {
getList(); getList();
getDeviceType() getDeviceType()
}); });
// 组件卸载时清除所有定时器
onUnmounted(() => {
clearAllTimers();
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
:deep .el-collapse { :deep .el-collapse {

View File

@ -326,7 +326,7 @@ const initAlarmRingChart = async () => {
}, },
textStyle: { textStyle: {
color: 'rgba(56, 64, 79, 0.6)', // 文字颜色(可自定义) color: 'rgba(56, 64, 79, 0.6)', // 文字颜色(可自定义)
fontSize: 12, // 文字字号 fontSize: 14, // 文字字号
lineHeight: 20 // 文字行高 lineHeight: 20 // 文字行高
} }
}, },
@ -338,15 +338,16 @@ const initAlarmRingChart = async () => {
show: false // 隐藏标签连接线 show: false // 隐藏标签连接线
}, },
data: [ data: [
{ {
value:processingAlarmToday , value:processingAlarmToday ,
name: '报警', name: '已处理',
itemStyle: { color: '#F65757' } // 红色:未处理 itemStyle: { color: '#07BE75' }
}, },
{ {
value: alarmsTotalToday, value: alarmsTotalToday,
name: '已处理', name: '报警',
itemStyle: { color: '#07BE75' } // 绿色:已处理 itemStyle: { color: '#F65757' }
}, },
] ]