zhangxiaoxu123
2022-09-14 77536cfa95b1e3c5e60f94dce3a53aa2e93f121a
src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shehuiBaoxian.vue
@@ -86,7 +86,11 @@
        </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>
@@ -103,7 +107,8 @@
                juminData: [],  //城乡居民养老保险参保人数
                gongshangData: [],  //工伤保险参保人数
                shiyeData: [],  //失业保险参保人数
                tableHeight: window.innerHeight - nowSize(960)
                tableHeight: window.innerHeight - nowSize(960),
                echartsShow: true
            }
        },
        mounted() {
@@ -111,6 +116,14 @@
          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) {
@@ -301,6 +314,12 @@
  .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;