湖里大屏(质量管理):完成质量问题图表布局

This commit is contained in:
Jack 2022-08-02 17:59:10 +08:00
parent e8c6fc28a4
commit 7d0b9cdb00
3 changed files with 47 additions and 22 deletions

View File

@ -59,7 +59,7 @@ export default {
{
name: '',
type: 'pie',
radius: ['50%', '70%'],
radius: ['65%', '80%'],
avoidLabelOverlap: false,
hoverAnimation: false,
label: {

View File

@ -1,10 +1,27 @@
<template>
<!-- 质量问题 -->
<div class="container">
<div class="titleTxt">{{ title }}</div>
<div class="wrap">
<div class="title">{{ title }}</div>
<div class="charts">
<div class="chart">
<JRingChart title="hello" subTitle="world" />
<JRingChart title="45" subTitle="问题总数" :color="['#3CABFD']" />
</div>
<div class="chart">
<JRingChart title="45" subTitle="未闭合问题" :color="['#557DEE']" />
</div>
<div class="chart">
<JRingChart title="45" subTitle="未整改问题" :color="['#FE6C7F']" />
</div>
<div class="chart">
<JRingChart
title="90%"
subTitle="即时整改问题"
:color="['#557DEE', '#43D7B5']"
:data="[
{ value: 1, name: '' },
{ value: 9, name: '' }
]"
/>
</div>
</div>
</div>
@ -27,21 +44,25 @@ export default {
</script>
<style lang="less" scoped>
.container {
.wrap {
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;
}
.charts {
padding: 10px 30px 0;
display: flex;
justify-content: space-around;
.chart {
width: 300px;
height: 180px;
width: 200px;
height: 200px;
}
}
}

View File

@ -1,23 +1,23 @@
<template>
<!-- CIM -->
<!-- CIM -->
<div class="container">
<div class="leftBox">
<div class="leftTop">
<leftTop title="问题类型" />
<leftTop title="问题类型" />
</div>
<div class="leftCenter">
<leftCenter title="问题占比" />
<leftCenter title="问题占比" />
</div>
<div class="leftBottom">
<leftCenter title="频发问题" />
<leftCenter title="频发问题" />
</div>
</div>
<div class="centerBox">
<div class="centerTop">
<centerTop title="质量问题" />
<centerTop title="质量问题" />
</div>
<div class="centerBottom">
<centerTop title="问题趋势" />
<centerTop title="问题趋势" />
</div>
</div>
</div>
@ -28,11 +28,15 @@ import leftTop from './leftTop'
import leftCenter from './leftCenter'
import leftBottom from './leftBottom'
import centerTop from './centerTop'
import centerBottom from './centerBottom';
import centerBottom from './centerBottom'
export default {
components: {
leftTop,leftCenter,leftBottom,centerTop,centerBottom
},
leftTop,
leftCenter,
leftBottom,
centerTop,
centerBottom
}
}
</script>
@ -68,11 +72,11 @@ export default {
height: 100%;
margin-right: 15px;
.centerTop {
height: 66%;
height: 35%;
margin-bottom: 15px;
}
.centerBottom {
height: 30%;
height: 62%;
}
}
</style>
</style>