Files
sgxt_web/src/views/backOfficeSystem/IntelligentControl/warningControl/components/yjItem.vue

192 lines
4.9 KiB
Vue
Raw Normal View History

2025-04-14 19:48:42 +08:00
<template>
<div class="personCard relative flex mb10 pointer">
2025-07-14 21:05:39 +08:00
<div class="cxbq f14 lh50 tc absolute" v-if="props.item.czzt == '03'">已完成</div>
2025-07-08 20:59:58 +08:00
<el-button color="#0072ff" size="small" class="btn_qs f14 tc absolute">签收</el-button>
2025-04-14 19:48:42 +08:00
<div class="avatarBox relative">
2025-07-15 16:20:18 +08:00
<div class="marks f12 absolute" :class="changeBg(props.item.yjJb)">
<span>{{ changetText(props.item.yjJb) }}</span>
2025-07-14 21:05:39 +08:00
</div>
2025-07-08 19:50:28 +08:00
<div>
2025-07-14 21:05:39 +08:00
<el-image :preview-teleported="true" style="width: 80px; height: 110px" :src="props.item.yjTp" :preview-src-list="[props.item.yjTp]"/>
2025-07-08 19:50:28 +08:00
</div>
2025-04-14 19:48:42 +08:00
<span class="smallbtn">全息档案</span>
</div>
<div class="infoBox">
2025-07-08 20:59:58 +08:00
<div class="items">
2025-07-14 21:05:39 +08:00
<div class="infoItem flex nowrap mb10">{{ props.item.yjRyxm }} <span class="bqbox ml6">{{ props.item.yjbq }}</span></div>
<div class="infoItem ellipsis">性别<span class="value">{{ IdCard(props.item.yjRysfzh , 2 )}}</span></div>
<div class="infoItem ellipsis">身份证号<span class="value">{{ props.item.yjRysfzh }}</span></div>
<div class="infoItem ellipsis">出生日期<span class="value">{{ IdCard(props.item.yjRysfzh , 1 )}}</span></div>
<div class="infoItem ellipsis">相似度<span class="value">{{ props.item.xsd * 100 }}%</span></div>
2025-07-14 21:08:51 +08:00
<div class="infoItem ellipsis">预警次数<span class="value"><span class="num">{{ props.item.yjCs }}</span> </span></div>
2025-07-08 20:59:58 +08:00
</div>
<div class="items">
2025-07-14 21:08:51 +08:00
<div class="infoItem ellipsis">预警级别<span class="value">{{ props.item.yjJb }}</span></div>
2025-07-14 21:05:39 +08:00
<div class="infoItem ellipsis">预警标题:<span class="value">{{ props.item.yjBt }}</span></div>
<div class="infoItem ellipsis">预警内容<span class="value">{{ props.item.yjNr }}</span></div>
<div class="infoItem ellipsis">预警地址<span class="value">{{ props.item.yjDz }}</span></div>
<div class="infoItem ellipsis">预警时间<span class="value">{{ props.item.yjSj }}</span></div>
<div class="infoItem ellipsis">签收时间<span class="value">{{ props.item.qssj }}</span></div>
<div class="infoItem ellipsis">反馈时间<span class="value">{{ props.item.fksj }}</span></div>
2025-04-14 19:48:42 +08:00
</div>
</div>
</div>
</template>
<script setup>
2025-07-14 21:05:39 +08:00
import { IdCard } from '@/utils/validate.js'
2025-04-14 19:48:42 +08:00
import { defineProps } from "vue";
const props = defineProps({
item: {
type: Object,
default: () => ({})
2025-07-08 19:50:28 +08:00
},
2025-07-14 21:05:39 +08:00
dic: {
type: Object,
default: () => ({})
},
2025-07-08 19:50:28 +08:00
type: {
type: String,
default: ""
2025-04-14 19:48:42 +08:00
}
});
// 切换背景
const changeBg = (type) => {
switch (type) {
case "10":
return "marks_red";
case "20":
return "marks_orange";
case "30":
return "marks_yellow";
case "40":
return "marks_blue";
default:
2025-07-15 16:20:18 +08:00
return "marks_blue";
}
};
const changetText = (type) => {
switch (type) {
case "10":
return "处置";
case "20":
return "提醒";
case "30":
return "关注";
case "40":
return "不关注";
default:
return "不关注";
2025-04-14 19:48:42 +08:00
}
};
2025-07-15 16:20:18 +08:00
2025-04-14 19:48:42 +08:00
</script>
<style lang="scss" scoped>
.personCard {
background: rgba(10, 49, 88, 0.6);
box-shadow: inset 0px 0px 10px 0px rgba(56, 119, 242, 0.5);
border-radius: 0px 0px 0px 0px;
border: 1px solid #0072ff;
padding: 10px;
box-sizing: border-box;
transition: all 0.3s;
2025-07-08 19:50:28 +08:00
2025-04-14 19:48:42 +08:00
&:hover {
background: rgba(17, 66, 96, 0.8);
}
2025-07-08 19:50:28 +08:00
2025-04-14 19:48:42 +08:00
.cxbq {
right: 5px;
top: 5px;
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(0, 255, 255, 0.3);
border: 1px solid #00ffff;
color: #00ffff;
transform: rotate(-48deg);
}
2025-07-08 19:50:28 +08:00
.btn_qs {
2025-07-08 20:59:58 +08:00
left: 94px;
bottom: 11px;
}
::v-deep .el-button{
span{
color: #fff;
}
2025-07-08 19:50:28 +08:00
}
2025-04-14 19:48:42 +08:00
.avatarBox {
2025-07-08 20:59:58 +08:00
margin-right: 5px;
2025-04-14 19:48:42 +08:00
overflow: hidden;
2025-07-08 20:59:58 +08:00
width: 80px;
2025-04-14 19:48:42 +08:00
.marks {
width: 70px;
height: 32px;
line-height: 40px;
text-align: center;
background: rgba(255, 62, 62, 0.75);
top: -4px;
left: -24px;
transform: rotate(-45deg);
2025-07-08 19:50:28 +08:00
z-index: 1;
2025-04-14 19:48:42 +08:00
}
2025-07-08 19:50:28 +08:00
2025-04-14 19:48:42 +08:00
.marks_red {
2025-07-15 16:20:18 +08:00
background: rgba(255, 62, 62, 0.35);
2025-04-14 19:48:42 +08:00
}
2025-07-08 19:50:28 +08:00
2025-04-14 19:48:42 +08:00
.marks_orange {
2025-07-15 16:20:18 +08:00
background: rgba(255, 155, 62, 0.35);
2025-04-14 19:48:42 +08:00
}
2025-07-08 19:50:28 +08:00
2025-04-14 19:48:42 +08:00
.marks_yellow {
2025-07-15 16:20:18 +08:00
background: rgba(255, 239, 62, 0.35);
2025-04-14 19:48:42 +08:00
}
2025-07-08 19:50:28 +08:00
2025-04-14 19:48:42 +08:00
.marks_blue {
2025-07-15 16:20:18 +08:00
background: rgba(0, 114, 255, 0.35);
2025-04-14 19:48:42 +08:00
}
}
2025-07-08 19:50:28 +08:00
2025-04-14 19:48:42 +08:00
.bqbox {
color: #ff0000;
2025-07-08 20:59:58 +08:00
padding: 0px 6px;
2025-04-14 19:48:42 +08:00
background: rgba(255, 0, 0, 0.3);
border-radius: 1px 1px 1px 1px;
border: 1px solid #ff0000;
border-radius: 4px;
}
2025-07-08 19:50:28 +08:00
2025-04-14 19:48:42 +08:00
.infoBox {
2025-07-08 20:59:58 +08:00
width: calc(100% - 90px);
display: flex;
justify-content: space-between;
.items{
2025-07-14 21:08:51 +08:00
width: 50%;
2025-04-14 19:48:42 +08:00
}
2025-07-08 20:59:58 +08:00
.infoItem {
font-size: 13px;
margin-bottom: 2px;
color: #fff;
2025-04-24 11:54:38 +08:00
.value {
color: #89afcf;
}
2025-04-14 19:48:42 +08:00
}
}
}
2025-07-08 19:50:28 +08:00
2025-04-14 19:48:42 +08:00
.smallbtn {
display: inline-block;
padding: 4px 10px;
border-radius: 4px;
background: #0072ff;
border-radius: 5px 5px 5px 5px;
margin-top: 6px;
}
2025-07-08 20:59:58 +08:00
.num{
color: #00ffff;
}
2025-04-14 19:48:42 +08:00
</style>