Merge branch 'shenzhen-dev' of http://10.0.0.60/dhp/zhgdyun into shenzhen-dev

This commit is contained in:
骆乐 2022-08-03 18:43:43 +08:00
commit 1a4200ea6f
2 changed files with 161 additions and 37 deletions

View File

@ -1,42 +1,91 @@
<template>
<!-- 安全预警 -->
<div class="container">
<div class="titleTxt">{{ title }}</div>
</div>
<div class="safety-warning">
<div class="title">{{ title }}</div>
<div class="content">
<div class="table">
<div class="thead">
<div class="row">
<div class="td">预警时间</div>
<div class="td">预警类型</div>
<div class="td"></div>
</div>
</div>
<div class="tbody">
<div class="row" v-for="i in 5" :key="i">
<div class="td">2022.03.05 15:23:22</div>
<div class="td">边临防护</div>
<div class="td">详情</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import JRingChart from '../jChart/pie/JRingChart.vue'
export default {
components: { JRingChart },
props: {
title: {
type: String,
default: "default title"
default: 'default title'
}
},
data() {
return {
};
},
return {}
}
}
</script>
<style lang="less" scoped>
.container {
.safety-warning {
width: 100%;
height: 100%;
border: 1px solid #0081c3;
.titleTxt {
.title {
padding-left: 6px;
height: 30px;
line-height: 30px;
font-size: 18px;
color: #6ee4f0;
margin-top: 5px;
margin-left: 5px;
}
.content {
height: calc(100% - 30px);
.table {
padding: 0 6px;
height: 100%;
font-size: 14px;
color: #fff;
.thead,
.tbody {
&.thead {
margin-bottom: 5px;
padding-bottom: 5px;
color: #6ee4f0;
border-bottom: 1px solid #fff;
}
.row {
width: 100%;
display: flex;
.td {
height: 30px;
line-height: 30px;
&:nth-child(1) {
width: 40%;
}
&:nth-child(2) {
flex: 1;
}
&:nth-child(3) {
margin-right: 10px;
color: #6ee4f0;
cursor: pointer;
}
}
}
}
}
}
}
</style>

View File

@ -1,42 +1,117 @@
<template>
<!-- 检查统计 -->
<div class="container">
<div class="titleTxt">{{ title }}</div>
</div>
<div class="wrap">
<div class="title">{{ title }}</div>
<div class="charts">
<div class="chart">
<JRingChart :title="{ text: 45, subTitle: '检查总数' }" :color="['#3CABFD']" />
</div>
<div class="chart">
<JRingChart :title="{ text: 45, subTitle: '隐患总数' }" :color="['#6EE4F0']" />
</div>
<div class="chart">
<JRingChart :title="{ text: 45, subTitle: '重大隐患' }" :color="['#557DEE']" />
</div>
<div class="chart">
<JRingChart
:title="{ text: '45', subTitle: '超期未消隐患' }"
:color="['#557DEE', '#FF6C7F']"
:data="[
{ value: 2314, name: '' },
{ value: 987, name: '' }
]"
/>
</div>
<div class="count">
<div class="count-item">
<div class="num">一般隐患 <span>2314</span></div>
<div class="rate">占比66%</div>
</div>
<div class="count-item">
<div class="num">重大隐患 <span>987</span></div>
<div class="rate">占比34%</div>
</div>
</div>
</div>
</div>
</template>
<script>
import JRingChart from '../jChart/pie/JRingChart.vue'
export default {
components: { JRingChart },
props: {
title: {
type: String,
default: "default title"
default: 'default title'
}
},
data() {
return {
};
},
return {}
}
}
</script>
<style lang="less" scoped>
.container {
.wrap {
width: 100%;
height: 100%;
border: 1px solid #0081c3;
.titleTxt {
.title {
padding-left: 6px;
height: 30px;
line-height: 30px;
font-size: 18px;
color: #6ee4f0;
margin-top: 5px;
margin-left: 5px;
}
.charts {
padding: 10px 30px 0;
display: flex;
justify-content: space-around;
.chart {
width: 200px;
height: 200px;
}
.count {
width: 14%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.count-item {
position: relative;
&::before {
position: absolute;
left: -16px;
top: 10px;
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
}
&:first-child {
margin-bottom: 20px;
}
&:first-child::before {
background-color: #557dee;
}
&:last-child::before {
background-color: #ff6c7f;
}
.num {
margin-bottom: 8px;
font-size: 14px;
color: rgba(255, 255, 255, 0.7);
span {
font-size: 18px;
color: #fff;
}
}
.rate {
font-size: 14px;
}
}
}
}
}
</style>