| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div class="shehuiBaoxianEcharts" id="shehuiBaoxianEcharts"></div> |
| | | <div v-show="echartsShow" class="shehuiBaoxianEcharts" id="shehuiBaoxianEcharts"></div> |
| | | <div class="yincang-box"> |
| | | <el-button @click="showEchartsBtn" v-show="echartsShow" type="primary">隐藏</el-button> |
| | | <el-button @click="showEchartsBtn" v-show="!echartsShow" type="primary">显示</el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | juminData: [], //城乡居民养老保险参保人数 |
| | | gongshangData: [], //工伤保险参保人数 |
| | | shiyeData: [], //失业保险参保人数 |
| | | tableHeight: window.innerHeight - nowSize(960) |
| | | tableHeight: window.innerHeight - nowSize(960), |
| | | echartsShow: true |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.getPersonChart() |
| | | }, |
| | | methods: { |
| | | showEchartsBtn() { |
| | | this.echartsShow = !this.echartsShow |
| | | if(this.echartsShow) { |
| | | this.tableHeight = window.innerHeight - nowSize(960) |
| | | }else { |
| | | this.tableHeight = window.innerHeight - nowSize(320) |
| | | } |
| | | }, |
| | | getPersonTable(){ |
| | | getPersonTable().then(res => { |
| | | if(res.code == 1000) { |
| | |
| | | .shehuiBaoxian-wrap{ |
| | | width: 100%; |
| | | height: 100%; |
| | | position: relative; |
| | | .yincang-box{ |
| | | position: absolute; |
| | | right: 0.078125rem /* 20/256 */; |
| | | bottom: 0.078125rem /* 20/256 */; |
| | | } |
| | | .shehuiBaoxian-table{ |
| | | width: 100%; |
| | | position: relative; |