|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="record-item-container">
|
|
|
|
|
|
|
+ <div class="record-item-container list-record" @click="dialogVisible = true">
|
|
|
<img class="record-img" :src="imgUrl" alt="" />
|
|
<img class="record-img" :src="imgUrl" alt="" />
|
|
|
<div class="record-info">
|
|
<div class="record-info">
|
|
|
<div class="info-title">{{ disasterType }}</div>
|
|
<div class="info-title">{{ disasterType }}</div>
|
|
@@ -9,15 +9,36 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <el-dialog v-model="dialogVisible" width="984" align-center class="record-dialog">
|
|
|
|
|
+ <template #header>
|
|
|
|
|
+ <div class="record-item-container">
|
|
|
|
|
+ <img class="record-img dialog-record-img" :src="imgUrl" alt="" />
|
|
|
|
|
+ <div class="record-info">
|
|
|
|
|
+ <div class="info-title dialog-info-title">{{ disasterType }}</div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div class="info-time">{{ warnTime }}</div>
|
|
|
|
|
+ <div class="info-source">{{ source }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <div>{{ content }}</div>
|
|
|
|
|
+ </el-dialog>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
|
|
+ import { ref } from 'vue';
|
|
|
|
|
+ import { ElDialog } from 'element-plus';
|
|
|
|
|
+
|
|
|
defineProps<{
|
|
defineProps<{
|
|
|
imgUrl: string | undefined;
|
|
imgUrl: string | undefined;
|
|
|
disasterType: string | undefined;
|
|
disasterType: string | undefined;
|
|
|
warnTime: string;
|
|
warnTime: string;
|
|
|
source: string;
|
|
source: string;
|
|
|
|
|
+ content: string;
|
|
|
}>();
|
|
}>();
|
|
|
|
|
+
|
|
|
|
|
+ const dialogVisible = ref(false);
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -32,6 +53,10 @@
|
|
|
margin-right: 10px;
|
|
margin-right: 10px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .dialog-record-img {
|
|
|
|
|
+ margin-right: 25px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.record-info {
|
|
.record-info {
|
|
|
flex: 1;
|
|
flex: 1;
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
@@ -48,6 +73,10 @@
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .dialog-info-title {
|
|
|
|
|
+ font-size: 24px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.info-time,
|
|
.info-time,
|
|
|
.info-source {
|
|
.info-source {
|
|
|
margin-bottom: 2px;
|
|
margin-bottom: 2px;
|
|
@@ -57,4 +86,38 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .list-record {
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .list-record:hover {
|
|
|
|
|
+ background-color: #f5f5f5;
|
|
|
|
|
+ }
|
|
|
|
|
+</style>
|
|
|
|
|
+<style lang="scss">
|
|
|
|
|
+ .record-dialog {
|
|
|
|
|
+ padding: 30px;
|
|
|
|
|
+
|
|
|
|
|
+ .el-dialog__close {
|
|
|
|
|
+ font-size: 24px;
|
|
|
|
|
+ color: #000;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .el-dialog__headerbtn {
|
|
|
|
|
+ margin: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .el-dialog__header {
|
|
|
|
|
+ padding: 0 0 30px 0;
|
|
|
|
|
+ border-bottom: 1px solid #dcdfe6;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .el-dialog__body {
|
|
|
|
|
+ min-height: 353px;
|
|
|
|
|
+ padding-top: 30px;
|
|
|
|
|
+ overflow: atuo;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|