湖里大屏(质量管理):简化质量问题代码
This commit is contained in:
parent
36239c4d0d
commit
f476f3e898
@ -1,7 +1,5 @@
|
||||
<template>
|
||||
<!-- 质量问题 -->
|
||||
<div class="wrap">
|
||||
<div class="title">{{ title }}</div>
|
||||
<Card :title="title">
|
||||
<div class="charts">
|
||||
<div class="chart">
|
||||
<JRingChart :title="{ text: 45, subTitle: '问题总数' }" :color="['#3CABFD']" />
|
||||
@ -23,17 +21,18 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Card from '../components/Card.vue'
|
||||
import JRingChart from '../jChart/pie/JRingChart.vue'
|
||||
export default {
|
||||
components: { JRingChart },
|
||||
components: { Card, JRingChart },
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: 'default title'
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@ -43,26 +42,14 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.wrap {
|
||||
width: 100%;
|
||||
.charts {
|
||||
padding: 10px 30px 0;
|
||||
height: 100%;
|
||||
border: 1px solid #0081c3;
|
||||
|
||||
.title {
|
||||
padding-left: 6px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
font-size: 18px;
|
||||
color: #6ee4f0;
|
||||
}
|
||||
.charts {
|
||||
padding: 10px 30px 0;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
.chart {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
.chart {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user