zhangxiaoxu123456
2022-05-10 6e41ce0ab4300758ebd77ea257c3d9532e3df7e0
src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoChikaRenshu.vue
@@ -2,6 +2,7 @@
  <div class="shebaoChikaRenshu-wrap">
    <h1>各县(市、区)2021年就业情况统计表</h1>
    <el-table
      :cell-style="handleCellStyle"
      :max-height="tableHeight"
      :data="tableData"
      stripe
@@ -114,7 +115,6 @@
                    if(res.code == 1000) {
                       let result = res.list
                        let data = []
                        console.log('result---',result)
                        result.forEach((item,index) => {
                            let row = item.dataList
                            row.unshift({
@@ -128,13 +128,16 @@
                        })
                        this.tableData = data
                        console.log('this.headerArry------',this.headerArry)
                        console.log('this.tableData------',this.tableData)
                    }
                })
            },
            getHeight() {
                this.tableHeight = window.innerHeight - nowSize(250)
            },
            handleCellStyle({rowIndex, columnIndex}) {
                if(columnIndex == 0) {
                    return { background:'#51D2FF' }
                }
            }
        },
        created() {
@@ -181,6 +184,9 @@
      color: $color-darkGrey;
      font-weight: 300;
      line-height: 1;
      span{
        font-size: $fontSize-28;
      }
    }
  }
</style>