添加图表

master
夜笙歌 3 months ago
parent da14637f0d
commit 03cd1f2572

@ -333,7 +333,11 @@ export default {
type: 'category', type: 'category',
data: response.data.map(val => val.QUALITY_DEFECT_NAME), data: response.data.map(val => val.QUALITY_DEFECT_NAME),
axisTick: { axisTick: {
alignWithLabel: true alignWithLabel: true,
},
axisLabel:{
interval: 0
} }
} }
], ],
@ -355,7 +359,8 @@ export default {
formatter: (e) => { formatter: (e) => {
if (e.data === 0) { if (e.data === 0) {
return '' return ''
}else{} } else {
}
return e.data return e.data
}, },
textStyle: { textStyle: {
@ -380,7 +385,7 @@ export default {
]), ]),
}, },
}, },
data: response.data.map(val=>val.SEQ), data: response.data.map(val => val.DEFECT_NUMBER),
} }
] ]
}) })

Loading…
Cancel
Save