no message

Former-commit-id: 3e6434c86b341668215ee62f1bb8a051d3e6cf61
Former-commit-id: 560c230393b7171404bc75faee74ea061a46ade1
Former-commit-id: 9248be31f0fe0e1e123509c7ea90634fe6f92505
This commit is contained in:
李杨
2018-02-18 17:56:08 +08:00
parent d6d01a06bc
commit 94658db1bf
5 changed files with 87 additions and 1 deletions

View File

@@ -22,6 +22,13 @@
<G2ColumnBase :ref="chart[2].refName" v-bind="chart[2]"></G2ColumnBase>
</el-card>
</GridItem>
<!-- 卡片 -->
<GridItem v-bind="layout.layout[3]" @resized="handleResized(chart[3].refName)">
<el-card class="header-in">
<ChartCardHeader slot="header" @refresh="handleRefreshData(3)" title="近年行情"></ChartCardHeader>
<G2BarBase :ref="chart[3].refName" v-bind="chart[3]"></G2BarBase>
</el-card>
</GridItem>
</GridLayout>
</Container>
</template>
@@ -52,6 +59,12 @@ export default {
refName: 'G2ColumnBase',
data: [],
padding: [30, 40, 50, 50]
},
{
api: {url: '/api/chart/G2Bar', data: {type: 'base'}},
refName: 'G2BarBase',
data: [],
padding: [30, 40, 50, 50]
}
],
layout: {
@@ -59,7 +72,8 @@ export default {
layout: [
{'x': 0, 'y': 0, 'w': 4, 'h': 7, 'i': '0'},
{'x': 4, 'y': 0, 'w': 4, 'h': 7, 'i': '1'},
{'x': 8, 'y': 0, 'w': 4, 'h': 7, 'i': '2'}
{'x': 8, 'y': 0, 'w': 4, 'h': 7, 'i': '2'},
{'x': 0, 'y': 7, 'w': 4, 'h': 7, 'i': '3'}
],
colNum: 12,
rowHeight: 30,