|
@@ -270,7 +270,11 @@ export default {
|
|
|
_this.equipmentparams.forEach((item) => {
|
|
|
if(paramslength === 1){
|
|
|
// 只有一个时,占满屏
|
|
|
- grid.push({left: leftValue, top: "5%", bottom: "8%"});
|
|
|
+ grid.push({left: leftValue, top: "15%", bottom: "8%"});
|
|
|
+ }
|
|
|
+ if(paramslength === 2){
|
|
|
+ // 当两个时
|
|
|
+ grid.push({left: leftValue,top: '15%', bottom: "56%"}, {left: leftValue, top: "58%", bottom: '8%'});
|
|
|
}
|
|
|
// 加判断是为了最上和最下有点间距好看,也可以不判断直接用注释那句
|
|
|
var firstTop = 3 // 最上面一个距离顶部占比2%
|
|
@@ -285,6 +289,7 @@ export default {
|
|
|
grid.push({left: leftValue, top: (firstTop + (itemHP + itemPadding) * paramscount) + "%", bottom: (lastBottom + (itemHP + itemPadding) * (paramslength - (paramscount + 1))) + "%"});
|
|
|
}
|
|
|
// grid.push({left: leftValue, top: (0.02 + paramscount / paramslength) * 100 + "%", bottom: (1.01 - (paramscount + 1) / paramslength) * 100 + "%"});;
|
|
|
+ console.log(grid)
|
|
|
|
|
|
xAxis.push({
|
|
|
type: 'category',
|