湖里大屏(质量管理):简化频发问题代码

This commit is contained in:
Jack 2022-08-08 11:39:18 +08:00
parent 3fa112ccd8
commit 36239c4d0d

View File

@ -1,21 +1,18 @@
<template>
<!-- 问题占比 -->
<div class="frequentProblems">
<div class="title">{{ title }}</div>
<div class="content">
<JBarChart :xData="xData" :yData="yData" :title="{ text: '频发问题类别排名前十' }" />
</div>
</div>
<Card :title="title">
<JBarChart :xData="xData" :yData="yData" :title="{ text: '频发问题类别排名前十' }" :color="['#557DEE']" />
</Card>
</template>
<script>
import Card from '../components/Card.vue'
import JBarChart from '../jChart/bar/JBarChart.vue'
export default {
components: { JBarChart },
components: { Card, JBarChart },
props: {
title: {
type: String,
default: 'default title'
default: ''
}
},
data() {
@ -27,20 +24,4 @@ export default {
}
</script>
<style lang="less" scoped>
.frequentProblems {
width: 100%;
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);
}
}
</style>
<style lang="less" scoped></style>