|
@@ -418,10 +418,15 @@ export default {
|
|
|
getLoadEchartsTwo() {
|
|
getLoadEchartsTwo() {
|
|
|
var chartDom = document.getElementById("in-echarts");
|
|
var chartDom = document.getElementById("in-echarts");
|
|
|
const setEchartWH = {
|
|
const setEchartWH = {
|
|
|
- //设置控制图表大小变量
|
|
|
|
|
- width: 400,
|
|
|
|
|
- height: 300,
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ // 设置控制图表大小变量
|
|
|
|
|
+ width: 500,
|
|
|
|
|
+ height: this.source.length < 7 ? 350 : (this.source.length - 1) * 30 + 100
|
|
|
|
|
+ }
|
|
|
|
|
+ // const setEchartWH = {
|
|
|
|
|
+ // //设置控制图表大小变量
|
|
|
|
|
+ // width: 400,
|
|
|
|
|
+ // height: 300,
|
|
|
|
|
+ // };
|
|
|
|
|
|
|
|
var myChart = echarts.init(chartDom, null, setEchartWH);
|
|
var myChart = echarts.init(chartDom, null, setEchartWH);
|
|
|
var option;
|
|
var option;
|
|
@@ -464,7 +469,7 @@ export default {
|
|
|
// Map the "product" column to Y axis
|
|
// Map the "product" column to Y axis
|
|
|
y: "product",
|
|
y: "product",
|
|
|
},
|
|
},
|
|
|
- barWidth: 30,
|
|
|
|
|
|
|
+ barWidth: 15,
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
};
|
|
};
|
|
@@ -474,12 +479,16 @@ export default {
|
|
|
//cma指定数据到坐标轴的映射
|
|
//cma指定数据到坐标轴的映射
|
|
|
getLoadCmaEchartsX() {
|
|
getLoadCmaEchartsX() {
|
|
|
var chartDom = document.getElementById("in-CMAecharts");
|
|
var chartDom = document.getElementById("in-CMAecharts");
|
|
|
|
|
+ // const setEchartWH = {
|
|
|
|
|
+ // //设置控制图表大小变量
|
|
|
|
|
+ // width: 400,
|
|
|
|
|
+ // height: 300,
|
|
|
|
|
+ // };
|
|
|
const setEchartWH = {
|
|
const setEchartWH = {
|
|
|
- //设置控制图表大小变量
|
|
|
|
|
- width: 400,
|
|
|
|
|
- height: 300,
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // 设置控制图表大小变量
|
|
|
|
|
+ width: 500,
|
|
|
|
|
+ height: this.source.length < 7 ? 350 : (this.source.length - 1) * 30 + 100
|
|
|
|
|
+ }
|
|
|
var myChart = echarts.init(chartDom, null, setEchartWH);
|
|
var myChart = echarts.init(chartDom, null, setEchartWH);
|
|
|
var option;
|
|
var option;
|
|
|
|
|
|
|
@@ -520,7 +529,7 @@ export default {
|
|
|
// Map the "product" column to Y axis
|
|
// Map the "product" column to Y axis
|
|
|
y: "product",
|
|
y: "product",
|
|
|
},
|
|
},
|
|
|
- barWidth: 30,
|
|
|
|
|
|
|
+ barWidth: 15,
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
};
|
|
};
|
|
@@ -949,6 +958,7 @@ export default {
|
|
|
.department {
|
|
.department {
|
|
|
width: 400px;
|
|
width: 400px;
|
|
|
height: 300px;
|
|
height: 300px;
|
|
|
|
|
+ margin-left: 60px;
|
|
|
}
|
|
}
|
|
|
#department {
|
|
#department {
|
|
|
width: 400px;
|
|
width: 400px;
|