湖里大屏(安全管理):完成隐患排查布局

This commit is contained in:
Jack 2022-08-03 16:44:08 +08:00
parent 838561dfa4
commit bd70d44507
2 changed files with 64 additions and 21 deletions

View File

@ -1,42 +1,75 @@
<template> <template>
<!-- 隐患排查 --> <div class="check-hidden">
<div class="container"> <div class="title">{{ title }}</div>
<div class="titleTxt">{{ title }}</div> <div class="content">
<div class="rates">
</div> <div class="rate">
<div class="chart">
<JRingChart title="89%" :data="[{ value: 89 }, { value: 11 }]" :color="['#557DEE', '#182B53']" />
</div>
<div class="label">项目整改率</div>
</div>
<div class="rate">
<div class="chart">
<JRingChart title="89%" :data="[{ value: 89 }, { value: 11 }]" :color="['#5BE2F6', '#193F54']" />
</div>
<div class="label">项目及时整改率</div>
</div>
<div class="rate">
<div class="chart">
<JRingChart title="89%" :data="[{ value: 89 }, { value: 11 }]" :color="['#FF6C7F', '#39273D']" />
</div>
<div class="label">项目及时复查率</div>
</div>
</div>
</div>
</div>
</template> </template>
<script> <script>
import JRingChart from '../jChart/pie/JRingChart.vue'
export default { export default {
components: { JRingChart },
props: { props: {
title: { title: {
type: String, type: String,
default: "default title" default: 'default title'
} }
}, },
data() { data() {
return { return {}
}
};
},
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.container { .check-hidden {
width: 100%; width: 100%;
height: 100%; height: 100%;
border: 1px solid #0081c3; border: 1px solid #0081c3;
.title {
.titleTxt { padding-left: 6px;
height: 30px;
line-height: 30px;
font-size: 18px; font-size: 18px;
color: #6ee4f0; color: #6ee4f0;
margin-top: 5px; }
margin-left: 5px; .content {
height: calc(100% - 30px);
.rates {
height: 100%;
display: flex;
.rate {
width: 33%;
height: 70%;
.chart {
height: 100%;
}
.label {
text-align: center;
}
}
}
} }
} }
</style> </style>

View File

@ -2,7 +2,7 @@
<div class="question-type"> <div class="question-type">
<div class="title">{{ title }}</div> <div class="title">{{ title }}</div>
<div class="content"> <div class="content">
<JProgressChart :seriesData="seriesData" :yData="yData.reverse()" /> <JProgressChart :seriesData="seriesData" :yData="yData" />
</div> </div>
</div> </div>
</template> </template>
@ -19,7 +19,17 @@ export default {
}, },
data() { data() {
return { return {
yData: ['未分类', '临边防护', '洞口防护', '悬挑式脚手架', '被电箱与开关箱', '扣件式钢管脚手架', '现场防火', '材料管理', '施工方案'], yData: [
'未分类',
'临边防护',
'洞口防护',
'悬挑式脚手架',
'被电箱与开关箱',
'扣件式钢管脚手架',
'现场防火',
'材料管理',
'施工方案'
].reverse(),
seriesData: [100, 235, 232, 532, 112, 532, 449, 269, 998] seriesData: [100, 235, 232, 532, 112, 532, 449, 269, 998]
} }
} }