a80c2f0b by 任超

feat:首页设配

1 parent 640def75
.home {
display: flex;
justify-content: space-between;
height: 100%;
.flexst {
display: flex;
......@@ -48,6 +49,7 @@
.home-left {
width: 70%;
padding-right: 3px;
height: 100%;
.list-title {
overflow: hidden;
......@@ -58,7 +60,7 @@
ul {
li {
line-height: 36px;
p {
white-space: nowrap;
}
......@@ -66,6 +68,11 @@
}
}
.box-mountNode {
flex: 1;
height: calc(100% - 500px);
}
.home-right {
padding-left: 4px;
width: 30%;
......
......@@ -59,7 +59,8 @@
</el-card>
</el-col>
</el-row>
<el-card shadow="hover" class="marginTop10" :body-style="{ paddingRight: '6px' }">
<el-card shadow="hover" class="marginTop10 box-mountNode" id="mountNodeCon"
:body-style="{ padding: '8px 6px 0 6px' }">
<div id="mountNode"></div>
</el-card>
</div>
......@@ -208,13 +209,11 @@ export default {
window.open(href, '_blank');
},
buildChart () {
let height = document.getElementById("mountNodeCon").offsetHeight - 20
var chart = new G2.Chart({
container: 'mountNode',
height: 205
height: height
});
const e = document.createEvent('Event')
e.initEvent('resize', true, true)
window.dispatchEvent(e)
chart.source(this.chartData);
chart.scale({
value: {
......