调整告警展示

This commit is contained in:
Sake 2026-02-07 16:24:06 +08:00
parent 4a18c93b46
commit 9482cdb1c5
5 changed files with 18 additions and 5 deletions

Binary file not shown.

View File

@ -19,7 +19,7 @@
"homepage": "EasyVQD.html", "homepage": "EasyVQD.html",
"icon": "EasyVQD.ico", "icon": "EasyVQD.ico",
"updated_at": "2025-12-26", "updated_at": "2025-12-26",
"version": "v0.0.10", "version": "v0.0.11",
"website": "https://www.tsingsee.com", "website": "https://www.tsingsee.com",
"activation": "service", "activation": "service",
"status": "" "status": ""

View File

@ -288,7 +288,7 @@ export default function VqdAlarmPage() {
<Col xxl={6} xl={8} lg={12} md={12} sm={12} xs={24} key={item.id} > <Col xxl={6} xl={8} lg={12} md={12} sm={12} xs={24} key={item.id} >
<div className="overflow-hidden relative rounded-lg h-full w-full cursor-pointer shadow"> <div className="overflow-hidden relative rounded-lg h-full w-full cursor-pointer shadow">
<AlarmSnap filePath={item.file_path} /> <AlarmSnap filePath={item.file_path} />
<div className="pl-3 pr-2 pb-1"> <div className="pl-3 pr-2 pb-1 text-sm-1">
<Flex align="center" wrap gap="small"> <Flex align="center" wrap gap="small">
{ {
@ -299,8 +299,11 @@ export default function VqdAlarmPage() {
}) })
} }
</Flex> </Flex>
<div className="pt-2 truncate" title={`${item.channel_name}(${item.channel_id})`}> <div className="pt-2 truncate" title={`${item.channel_name||"-"}`}>
: {item.channel_name}({item.channel_id}) : {item.channel_name||"-"}
</div>
<div className="pt-2 truncate " title={`${item.channel_id}`}>
: {item.channel_id}
</div> </div>
<div> <div>
<Space className="pt-2">: {item.created_at}</Space> <Space className="pt-2">: {item.created_at}</Space>

View File

@ -108,6 +108,11 @@ export default function VqdTaskPage() {
}; };
// 表格列定义 // 表格列定义
const columns: ColumnsType<VqdTaskItem> = [ const columns: ColumnsType<VqdTaskItem> = [
{
title: "ID",
dataIndex: "id",
align: "center",
},
{ {
title: "诊断任务", title: "诊断任务",
dataIndex: "name", dataIndex: "name",
@ -119,7 +124,7 @@ export default function VqdTaskPage() {
align: "center", align: "center",
render: (text, record) => ( render: (text, record) => (
<Space> <Space>
{text||record.channel_id} {`${text}(${record.channel_id})`}
</Space> </Space>
), ),
}, },

View File

@ -523,6 +523,11 @@
line-height: 1.25rem; line-height: 1.25rem;
} }
.text-sm-1 {
font-size: 0.81rem;
line-height: 1rem;
}
.text-xs { .text-xs {
font-size: 0.75rem; font-size: 0.75rem;
line-height: 1rem; line-height: 1rem;