湖里大屏(安全管理):问题占比布局
This commit is contained in:
parent
008f92cd0a
commit
799264f561
@ -6,7 +6,7 @@
|
||||
<leftTop title="待整改" />
|
||||
</div>
|
||||
<div class="leftCenter">
|
||||
<leftCenter title="安全预警" />
|
||||
<leftCenter title="问题占比" />
|
||||
</div>
|
||||
<div class="leftBottom">
|
||||
<leftBottom title="整改动态" />
|
||||
|
||||
@ -1,88 +1,91 @@
|
||||
<template>
|
||||
<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>
|
||||
<Card :title="title">
|
||||
<!-- <div class="table">
|
||||
<div class="thead">
|
||||
<div class="row">
|
||||
<div class="td">预警时间</div>
|
||||
<div class="td">预警类型</div>
|
||||
<div class="td"></div>
|
||||
</div>
|
||||
</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> -->
|
||||
|
||||
<JNestedRingChart :title="{ text: 654, subTitle: '问题总数', y: '35%' }" :series="series" />
|
||||
</Card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import JRingChart from '../jChart/pie/JRingChart.vue'
|
||||
import Card from '../components/Card.vue'
|
||||
import { getNewestSecurityManageDataList2Api } from '@/assets/js/api/dataBoard'
|
||||
import JNestedRingChart from '../jChart/pie/JNestedRingChart.vue'
|
||||
export default {
|
||||
components: { JRingChart },
|
||||
components: { Card, JNestedRingChart },
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: 'default title'
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
getNewestSecurityManageDataList2Api({ projectSn: this.projectSn }).then(res => {
|
||||
this.alarmList = res.result || []
|
||||
})
|
||||
},
|
||||
data() {
|
||||
return {}
|
||||
return {
|
||||
projectSn: this.$store.state.projectSn,
|
||||
series: [
|
||||
{
|
||||
color: ['#FE6C7F', '#786FF0', '#5CE2F6'],
|
||||
data: [
|
||||
{ value: 45, name: '周检' },
|
||||
{ value: 5, name: '月检' },
|
||||
{ value: 15, name: '其他' }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.safety-warning {
|
||||
width: 100%;
|
||||
.table {
|
||||
padding: 0 6px;
|
||||
height: 100%;
|
||||
border: 1px solid #0081c3;
|
||||
.title {
|
||||
padding-left: 6px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
font-size: 18px;
|
||||
color: #6ee4f0;
|
||||
}
|
||||
.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;
|
||||
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%;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
}
|
||||
&:nth-child(2) {
|
||||
flex: 1;
|
||||
}
|
||||
&:nth-child(3) {
|
||||
margin-right: 10px;
|
||||
color: #6ee4f0;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user