湖里大屏(安全管理):更改安全问题使用 Card 组件

This commit is contained in:
Jack 2022-08-23 18:07:40 +08:00
parent 8efdc2c036
commit 4247e5d2e2

View File

@ -1,6 +1,5 @@
<template>
<div class="wrap">
<div class="title">{{ title }}</div>
<Card :title="title">
<div class="charts">
<div class="chart">
<JRingChart :title="{ text: totals.totalNum, subTitle: '问题总数' }" :color="['#3CABFD']" />
@ -32,18 +31,19 @@
</div>
</div> -->
</div>
</div>
</Card>
</template>
<script>
import { selectSecurityManageStatisticsApi } from '@/assets/js/api/dataBoard'
import Card from '../components/Card.vue'
import JRingChart from '../jChart/pie/JRingChart.vue'
export default {
components: { JRingChart },
components: { Card, JRingChart },
props: {
title: {
type: String,
default: 'default title'
default: ''
}
},
mounted() {
@ -69,65 +69,52 @@ export default {
</script>
<style lang="less" scoped>
.wrap {
width: 100%;
height: 100%;
border: 1px solid #0081c3;
.title {
padding-left: 6px;
height: 30px;
line-height: 30px;
font-size: 18px;
color: #6ee4f0;
.charts {
padding: 10px 30px 0;
display: flex;
justify-content: space-around;
.chart {
width: 200px;
height: 200px;
}
.charts {
padding: 10px 30px 0;
.count {
width: 14%;
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;
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;
}
}
}
}