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