湖里大屏(安全管理):完成问题类型布局

This commit is contained in:
Jack 2022-08-03 16:09:05 +08:00
parent 7d3bc793cb
commit 838561dfa4
2 changed files with 22 additions and 19 deletions

View File

@ -68,7 +68,7 @@ export default {
axisLabel: { axisLabel: {
textStyle: { textStyle: {
fontSize: 12, fontSize: 12,
color: 'rgba(225, 225, 225, .8)' color: '#fff'
} }
} }
}, },

View File

@ -1,42 +1,45 @@
<template> <template>
<!-- 问题类型 --> <div class="question-type">
<div class="container"> <div class="title">{{ title }}</div>
<div class="titleTxt">{{ title }}</div> <div class="content">
<JProgressChart :seriesData="seriesData" :yData="yData.reverse()" />
</div> </div>
</div>
</template> </template>
<script> <script>
import JProgressChart from '../jChart/bar/JProgressChart.vue'
export default { export default {
components: { JProgressChart },
props: { props: {
title: { title: {
type: String, type: String,
default: "default title" default: 'default title'
} }
}, },
data() { data() {
return { return {
yData: ['未分类', '临边防护', '洞口防护', '悬挑式脚手架', '被电箱与开关箱', '扣件式钢管脚手架', '现场防火', '材料管理', '施工方案'],
}; seriesData: [100, 235, 232, 532, 112, 532, 449, 269, 998]
}, }
}
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.container { .question-type {
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);
} }
} }
</style> </style>