指标拟合图y轴展示修改

This commit is contained in:
stt
2025-12-05 16:18:48 +08:00
parent 4963dd495a
commit e3de350dc5

View File

@@ -166,7 +166,23 @@ const setEchart = () => {
}
}
},
yAxis: [{}, {}],
yAxis: [
{},
indicatorName ? {
min: 0,
max: 1,
axisLabel: {
formatter: function(value: number) {
if (value === 0) {
return '不越限'
} else if (value === 1) {
return '越限'
}
return value
}
}
} : {}
],
grid: {
left: '10px',
right: '20px'
@@ -417,7 +433,6 @@ watch(
deep: true
}
)
</script>
<style lang="scss" scoped>
// :deep(.el-select) {