@ -1,4 +1,5 @@
< template >
< div class = "mains" >
< div class = "index" >
@ -135,19 +136,26 @@
< div class = "centre-title-view" > < / div >
< / div >
< div id = "main" style = "width: 100%;height: 20px;margin-top: 20px;" > < / div >
< div id = "main" style = "width: 100%;height: 25 0px;margin-top: 20px;" > < / div >
< / div >
< div class = "bom" >
< el -table v-loading ="tableLoading" :data="listSalesChannelData" border style="width: 100%;" >
< el -table -column width = "200" label = "销售渠道类别" prop = "salesChannelCategory" align = "center" / >
< el -table -column label = "总额" prop = "totalAmount" align = "center" / >
< el -table -column label = "应收帐款" prop = "accountsReceivable" align = "center" / >
< el -table -column label = "扣除应收" prop = "deductionAccountsReceivable" align = "center" / >
< / e l - t a b l e >
< / div >
< / div >
< / div >
< / template >
< / div >
@ -176,11 +184,72 @@
label : "333333" ,
value : "项目3"
}
]
] ,
listSalesChannelData : [ {
salesChannelCategory : '连网连锁店' ,
totalAmount : '2000000' ,
accountsReceivable : '31,914' ,
deductionAccountsReceivable : '35,793'
} ,
{
salesChannelCategory : '连锁内加盟' ,
totalAmount : '28,700' ,
accountsReceivable : '28,749' ,
deductionAccountsReceivable : '58,339'
} ,
{
salesChannelCategory : '配送中心' ,
totalAmount : '-1241.81' ,
accountsReceivable : '28,749' ,
deductionAccountsReceivable : '58,339'
} ,
{
salesChannelCategory : '连锁外加盟' ,
totalAmount : '29822.44' ,
accountsReceivable : '28,749' ,
deductionAccountsReceivable : '58,339'
} ,
{
salesChannelCategory : '配送中心' ,
totalAmount : '-1241.81' ,
accountsReceivable : '28,749' ,
deductionAccountsReceivable : '58,339'
} ,
{
salesChannelCategory : '连锁外加盟' ,
totalAmount : '29822.44' ,
accountsReceivable : '28,749' ,
deductionAccountsReceivable : '58,339'
} ,
{
salesChannelCategory : '配送中心' ,
totalAmount : '-1241.81' ,
accountsReceivable : '28,749' ,
deductionAccountsReceivable : '58,339'
} ,
{
salesChannelCategory : '连锁外加盟' ,
totalAmount : '29822.44' ,
accountsReceivable : '28,749' ,
deductionAccountsReceivable : '58,339'
} ,
{
salesChannelCategory : '配送中心' ,
totalAmount : '-1241.81' ,
accountsReceivable : '28,749' ,
deductionAccountsReceivable : '58,339'
} ,
{
salesChannelCategory : '连锁外加盟' ,
totalAmount : '29822.44' ,
accountsReceivable : '28,749' ,
deductionAccountsReceivable : '58,339'
}
] ,
}
} ,
created ( ) {
moun ted( ) {
this . drawLine ( )
} ,
@ -197,10 +266,9 @@
/ / 基 于 准 备 好 的 d o m , 初 始 化 e c h a r t s 实 例
var myChart = echarts . init ( document . getElementById ( 'main' ) ) ;
/ / 绘 制 图 表
console . log ( 'option' , obj )
myChart . setOption ( {
title : {
text : 'Stacked Line '
text : ''
} ,
tooltip : {
trigger : 'axis'
@ -215,8 +283,24 @@
containLabel : true
} ,
toolbox : {
show : true ,
feature : {
saveAsImage : { }
mark : {
show : true
} ,
/ / 数 据 图 标
dataView : {
show : false ,
readOnly : false
} ,
/ / 刷 新 图 标
restore : {
show : false
} ,
/ / 下 载 图 标
saveAsImage : {
show : false
}
}
} ,
xAxis : {
@ -275,6 +359,11 @@
text - align : right ;
padding - right : 40 px ;
}
. mains {
overflow - x : hidden ;
overflow - y : auto ;
height : 100 % ;
}
. index {
width : 100 % ;
@ -449,5 +538,10 @@
}
}
}
. bom {
margin - top : 36 px ;
padding - bottom : 50 px ;
}
}
< / style >