|  |  |  | 
|---|
|  |  |  | <h1>全市居民人均可支配收入情况</h1> | 
|---|
|  |  |  | <el-table | 
|---|
|  |  |  | :data="tableData" | 
|---|
|  |  |  | style="width: 100%"> | 
|---|
|  |  |  | style="width: 100%" :cell-style="updataCellStyle"> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | prop="year" | 
|---|
|  |  |  | label="年份" min-width="80"> | 
|---|
|  |  |  | label="年份" min-width="80" | 
|---|
|  |  |  | fied="left" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | label="国民人均可支配收入"> | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | series: [ | 
|---|
|  |  |  | { | 
|---|
|  |  |  | name:'居民人均可支配收入', | 
|---|
|  |  |  | name: '居民人均可支配收入', | 
|---|
|  |  |  | type: 'line', | 
|---|
|  |  |  | smooth: false,  //设置折线为圆滑曲线,false则有转折点 | 
|---|
|  |  |  | // symbol:'none', //默认显示折点,为none时不显示 | 
|---|
|  |  |  | 
|---|
|  |  |  | data: [120, 132, 101, 134, 90, 230] | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | name:'城镇居民', | 
|---|
|  |  |  | name: '城镇居民', | 
|---|
|  |  |  | type: 'line', | 
|---|
|  |  |  | smooth: false,  //设置折线为圆滑曲线,false则有转折点 | 
|---|
|  |  |  | // symbol:'none', //默认显示折点,为none时不显示 | 
|---|
|  |  |  | 
|---|
|  |  |  | data: [220, 182, 191, 234, 290, 330] | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | name:'农村居民', | 
|---|
|  |  |  | name: '农村居民', | 
|---|
|  |  |  | type: 'line', | 
|---|
|  |  |  | smooth: false,  //设置折线为圆滑曲线,false则有转折点 | 
|---|
|  |  |  | // symbol:'none', //默认显示折点,为none时不显示 | 
|---|
|  |  |  | 
|---|
|  |  |  | const option = this.option | 
|---|
|  |  |  | const myChart = this.$echarts.init(document.querySelector('.OtherB-PeopleJunShouRu__echart')); | 
|---|
|  |  |  | option && myChart.setOption(this.option) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 给单独单元格添加样式 | 
|---|
|  |  |  | updataCellStyle({rowIndex, columnIndex}) { | 
|---|
|  |  |  | if (rowIndex ===0 && columnIndex === 0) { | 
|---|
|  |  |  | return {background:'#51D2FF'} | 
|---|
|  |  |  | }else if(rowIndex===1 && columnIndex ===0){ | 
|---|
|  |  |  | return {background:'#51D2FF'} | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | @import "../../../../assets/css/base"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .OtherB-PeopleJunShouRu__table { | 
|---|
|  |  |  | .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{ | 
|---|
|  |  |  | background:transparent; | 
|---|
|  |  |  | .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell { | 
|---|
|  |  |  | background: transparent; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | width: 100%; | 
|---|
|  |  |  | height: calc(100% - 0.078125rem /* 20/256 */ | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | margin-top: 0.078125rem /* 20/256 */ | 
|---|
|  |  |  | ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .el-table th.el-table__cell { | 
|---|
|  |  |  | background-color: $color-blue; | 
|---|
|  |  |  | height: 0.3125rem /* 80/256 */ | 
|---|
|  |  |  | ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .el-table tr { | 
|---|
|  |  |  | 
|---|
|  |  |  | //); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .OtherB-PeopleJunShouRu__table { | 
|---|
|  |  |  | width:100%; | 
|---|
|  |  |  | width: 100%; | 
|---|
|  |  |  | margin-top: 0.078125rem /* 20/256 */ | 
|---|
|  |  |  | ; | 
|---|
|  |  |  |  | 
|---|