update 质量管理,产线缺陷月对比

This commit is contained in:
lb
2022-11-18 10:15:57 +08:00
parent d89eb46f58
commit df6cdf8f13
3 changed files with 33 additions and 23 deletions

View File

@@ -125,12 +125,12 @@ export default {
}
},
legend: {
top: '10%',
top: '12%',
bottom: 0,
left: 0,
orient: 'vertical',
icon: 'none',
itemGap: 5,
itemGap: 8,
itemWidth: 10,
formatter: name => {
const testData = this.dataList

View File

@@ -15,6 +15,10 @@ export default {
name: 'OverviewBar',
mixins: [resize],
props: {
unitName: {
type: String,
default: '单位: 片'
},
chartName: {
type: String,
default: ''
@@ -176,15 +180,8 @@ export default {
{ offset: 0, color: this.dataList[0].topColor },
{ offset: 1, color: this.dataList[0].bottomColor }
])
// borderWidth: 1,
// borderColor: this.dataList[0].bottomColor + '66' // 边框颜色+透明度
},
data: this.dataList[0].data
// backgroundStyle: {
// // borderColor: this.dataList[0].bottomColor,
// borderColor: '#ff0000',
// borderWidth: 1
// }
},
{
// 柱顶
@@ -255,6 +252,7 @@ export default {
legend: {
itemWidth: 8,
itemHeight: 8,
selectedMode: false,
top: '7%',
right: '2%',
textStyle: {
@@ -282,7 +280,7 @@ export default {
},
yAxis: [
{
name: '单位:片',
name: this.unitName, // '单位: 片',
nameTextStyle: { align: 'right', fontSize: 9, color: '#fff9' },
type: 'value',
splitNumber: 3,