2025-07-14 17:31:24 +08:00
|
|
|
<template>
|
2025-07-14 18:15:09 +08:00
|
|
|
<DialogDragger title="预警详情" top="150px" v-model="props.show" @close="close">
|
|
|
|
<ul class="warningList" ref="gjyjList">
|
|
|
|
<li v-for="item in props.data" :key="item.id">
|
2025-07-14 17:31:24 +08:00
|
|
|
<YjItem :data="item"/>
|
|
|
|
</li>
|
2025-07-14 18:15:09 +08:00
|
|
|
<MOSTY.Empty :show="props.data.length <= 0" :imgSize="150"></MOSTY.Empty>
|
2025-07-14 17:31:24 +08:00
|
|
|
</ul>
|
|
|
|
</DialogDragger>
|
|
|
|
</template>
|
|
|
|
<script setup>
|
|
|
|
import * as MOSTY from "@/components/MyComponents/index";
|
|
|
|
import DialogDragger from "@/views/home/layout/dialogDragger.vue";
|
|
|
|
import YjItem from "@/views/home/components/yjItem.vue";
|
2025-07-14 18:15:09 +08:00
|
|
|
import { ref, defineProps } from "vue";
|
2025-07-14 17:31:24 +08:00
|
|
|
import emitter from "@/utils/eventBus.js";
|
|
|
|
const gjyjList = ref(null); //预警列表数据
|
|
|
|
//参数传递
|
|
|
|
const props = defineProps({
|
|
|
|
//某条预警详情
|
|
|
|
data: {
|
2025-07-14 18:15:09 +08:00
|
|
|
type:Array,
|
|
|
|
default:[]
|
2025-07-14 17:31:24 +08:00
|
|
|
},
|
|
|
|
show: {
|
|
|
|
type:Boolean,
|
|
|
|
default:false
|
|
|
|
},
|
|
|
|
});
|
2025-07-14 18:15:09 +08:00
|
|
|
|
2025-07-14 17:31:24 +08:00
|
|
|
//关闭
|
|
|
|
function close() {
|
|
|
|
emitter.emit('deletePointArea','home_yj_map');
|
|
|
|
emitter.emit("showHomeYJ",false);
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import "@/assets/css/homeScreen.scss";
|
|
|
|
.dialogBox {
|
2025-07-14 18:15:09 +08:00
|
|
|
z-index: 999;
|
2025-07-14 17:31:24 +08:00
|
|
|
ul.warningList{
|
|
|
|
height: calc(100vh - 198px);
|
|
|
|
overflow: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
padding: 7px 10px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
.photo {
|
|
|
|
width: 60px;
|
|
|
|
height: 80px;
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//加载时 取消背景
|
|
|
|
::v-deep .el-loading-mask {
|
|
|
|
background-color: transparent !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|