From ab8f893edcd0d87c8d175eccc98610b6899ff5b9 Mon Sep 17 00:00:00 2001 From: guangyin Date: Fri, 19 May 2023 16:00:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=E6=A0=91=E5=BD=A2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=B0=83=E6=95=B4=20=E5=91=8A=E8=AD=A6=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E8=AE=BE=E6=96=BD=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/left/homeLeft.component.html | 2 +- src/components/warningDetail.component.vue | 44 +- src/components/warningList.component.vue | 16 +- src/mock/treeData.ts | 863 ++++++++++++++---- src/store/index.ts | 311 ++++++- src/views/overview.component.scss | 2 +- src/views/overview.component.ts | 16 +- 7 files changed, 1053 insertions(+), 201 deletions(-) diff --git a/src/components/home/left/homeLeft.component.html b/src/components/home/left/homeLeft.component.html index 236d06a..fadb756 100644 --- a/src/components/home/left/homeLeft.component.html +++ b/src/components/home/left/homeLeft.component.html @@ -73,7 +73,7 @@
- 告警列表 + 设施列表
- 告警类型: - {{info.typeName}} -
-
- 告警级别: - {{info.levelName}} - -
-
- 告警内容: - {{info.content}} -
-
- 告警时间: - {{info.time}} + 设施名称: + {{info.title}}
- 告警设备: - {{info.equipment}} - + 设施介绍:
-
- 关联危险源: - {{info.linkDangerSource}} +
+ {{info.main}}
-
- 数据详情: -
- - + -->
@@ -70,7 +55,7 @@ export default class WarningDetailComponent extends Vue { //传入的报警信息详情 @Prop({default: []}) info!: any[]; //传入的报警信息详情 - @Prop({default: '告警详情'}) title!: any[]; + @Prop({default: '设施详情'}) title!: any[]; //表格添加类 tableRowClassName({row, rowIndex}) { @@ -124,5 +109,8 @@ export default class WarningDetailComponent extends Vue { .tb-info-style { margin-bottom: 20px; } - +.main-text-style{ + white-space: pre-wrap; + text-indent: 2em; +} diff --git a/src/components/warningList.component.vue b/src/components/warningList.component.vue index fa095b6..5c07809 100644 --- a/src/components/warningList.component.vue +++ b/src/components/warningList.component.vue @@ -1,12 +1,12 @@