付延余
2022-04-28 cfb813f540e11cbadf041b295c342b02da97da56
src/pages/show/jiuyeAndChuangye/jiuyeChildren/workStatistics.vue
@@ -4,9 +4,10 @@
        <h1>劳动就业统计表</h1>
        <div class="danwei-box">单位:人</div>
        <el-table
          :max-height="640"
          :max-height="tableHeight"
          :data="tableData"
          :header-cell-style="handleheader"
          :cell-style="handleCellStyle"
          stripe
          border
          style="width: 100%">
@@ -110,6 +111,7 @@
                loseReEmployment:[], //失业人员再就业
                diffReEmployment: [],  //就业困难人员再就业
                xdata:[],
                tableHeight: window.innerHeight - nowSize(960)
            }
        },
        mounted() {
@@ -198,7 +200,8 @@
                            show: true,
                            textStyle: {
                                color: "#fff",
                                fontSize:nowSize(24)
                                fontSize:nowSize(24),
                                lineHeight: nowSize(56)
                            }
                        },
                        axisLine: {
@@ -260,6 +263,20 @@
                return {
                    lineHeight: '0',
                }
            },
            handleCellStyle({rowIndex,columnIndex}) {
                if(columnIndex == 0) {
                    return { background:'#51D2FF' }
                }
            },
            getHeight() {
                this.tableHeight = window.innerHeight - nowSize(1000)
            },
            created() {
                window.addEventListener('resize', this.getHeight)
            },
            destroy() {
                window.addEventListener('resize', this.getHeight)
            }
        }
    }
@@ -328,7 +345,7 @@
       }
     }
    .laogongJiuyeEcharts{
      height: calc(100% - 640px - 0.33203125rem  /* 85/256 */);
      height: calc(100% - 2.5rem  /* 640/256 */ - 0.33203125rem  /* 85/256 */);
    }
  }
</style>