|
@@ -13,6 +13,7 @@ import router from '@/router'
|
|
|
|
|
|
//获取RGBA的透明度
|
|
|
const parseRgbaColor = (color='rgba(51, 51, 51, 1)') => {
|
|
|
+ if(color.includes('#')) return 1
|
|
|
const arr = color.match(/(\d(\.\d+)?)+/g) || ['','','',1];
|
|
|
return parseFloat(arr[3]+''||'1')
|
|
|
}
|
|
@@ -401,6 +402,7 @@ const setSeasonOptions = (data:any) => {
|
|
|
color:MaxMinLimits.Color||'#075EEE',
|
|
|
fillOpacity:parseRgbaColor(MaxMinLimits.Color||'')>0.75?0.75:parseRgbaColor(MaxMinLimits.Color||'') //透明度最高0.75
|
|
|
}
|
|
|
+ console.log('serieItem?',serieItem.fillOpacity)
|
|
|
MaxMinLimits.List.forEach((item:any)=>{
|
|
|
serieItem.data.push([item.DataTimestamp,item.MinValue,item.MaxValue])
|
|
|
})
|