zhangxiaoxu123456
2022-04-24 60be35fec8bced93ae8b5c55fc554291a819adf9
人事人才
1个文件已修改
22 ■■■■ 已修改文件
src/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue
@@ -2,7 +2,7 @@
  <div class="PersonnelTalents_unitPersonnel--warp">
    <div class="PT_unitPersonnel--table">
      <el-table
        :max-height="640"
        :max-height="tableHeight"
        :data="tableData"
        stripe
        border
@@ -36,6 +36,7 @@
          <el-table-column label="全省排位" prop="quanshengpaiming2"></el-table-column>
        </el-table-column>
      </el-table>
    </div>
      <!-- 单选框 -->
      <div class="PT_unitPersonnel--echart-box">
        <div class="PT_navEchart--title">
@@ -46,7 +47,7 @@
        </div>
        <div class="PT_unitPersonnel--Echarts"></div>
      </div>
    </div>
  </div>
</template>
@@ -140,7 +141,8 @@
        },
      ],
      checkedCategory: '事业单位',
      careGory: CARE_GORY
      careGory: CARE_GORY,
      tableHeight: window.innerHeight - nowSize(900)
    }
  },
  mounted() {
@@ -168,6 +170,7 @@
      }
    },
    Init_echarts() {
      const myChart = this.$echarts.init(document.querySelector('.PT_unitPersonnel--Echarts'));
      const option = {
        color: ['#FF5151', '#51FF5D', '#FFD151'],
        title: {
@@ -280,9 +283,17 @@
          }
        ]
      };
      const myChart = this.$echarts.init(document.querySelector('.PT_unitPersonnel--Echarts'));
      option && myChart.setOption(option)
    },
    getHeight() {
        this.tableHeight = window.innerHeight - nowSize(900)
    }
  },
    created() {
      window.addEventListener('resize',this.getHeight)
    },
    destroy() {
        window.addEventListener('resize',this.getHeight)
  }
}
</script>
@@ -401,7 +412,6 @@
  .PT_unitPersonnel--table {
    width: 100%;
    height: 100%;
  }
@@ -409,7 +419,7 @@
    width: 100%;
    margin-top: 0.234375rem /* 60/256 */
  ;
    height: calc(100% - 600Px - 0.254375rem /* 60/256 */
    height: calc(100% - 2.34375rem  /* 600/256 */ - 0.254375rem /* 60/256 */
    );
    position: relative;