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

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: {
textStyle: {
fontSize: 12,
color: 'rgba(225, 225, 225, .8)'
color: '#fff'
}
}
},

View File

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