|
@@ -88,6 +88,12 @@ const dataHandle = (data) => {
|
|
|
}
|
|
|
};
|
|
|
const options = computed(() => {
|
|
|
+ let max = props.data?.length
|
|
|
+ ? Math.max.apply(
|
|
|
+ null,
|
|
|
+ (props.data || []).map((item) => item.sopNum)
|
|
|
+ )
|
|
|
+ : 10;
|
|
|
return {
|
|
|
backgroundColor: 'transparent',
|
|
|
// backgroundColor: '#fff',
|
|
@@ -151,7 +157,7 @@ const options = computed(() => {
|
|
|
|
|
|
visualMap: {
|
|
|
min: 0,
|
|
|
- max: Math.max((props.data || []).map((item) => item.sopNum || 0)) || 10,
|
|
|
+ max: max || 10,
|
|
|
left: 'left',
|
|
|
top: 'bottom',
|
|
|
text: ['高', '低'],
|