指标拟合图y轴展示修改
This commit is contained in:
@@ -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: {
|
grid: {
|
||||||
left: '10px',
|
left: '10px',
|
||||||
right: '20px'
|
right: '20px'
|
||||||
@@ -417,7 +433,6 @@ watch(
|
|||||||
deep: true
|
deep: true
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
// :deep(.el-select) {
|
// :deep(.el-select) {
|
||||||
|
|||||||
Reference in New Issue
Block a user