付延余
2022-04-26 3fdd7cb635c582dd359979ce106b1d94444a6878
首页数据
1个文件已修改
13 ■■■■■ 已修改文件
src/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue
@@ -40,8 +40,8 @@
      <!-- 单选框 -->
    <div class="PT_unitPersonnel--echart-box">
      <div class="PT_navEchart--title">
        <el-radio-group v-model="checkedCategory">
          <el-radio v-for="categoryItem in careGory" :label="categoryItem" :key="categoryItem">{{ categoryItem }}
        <el-radio-group v-model="checkedCategory" >
          <el-radio v-for="(categoryItem,index) in CARE_GORY" :label="categoryItem" :key="index" @change="selectEcharts(index)">{{ categoryItem }}
          </el-radio>
        </el-radio-group>
      </div>
@@ -54,8 +54,6 @@
<script>
import nowSize from "../../../../libs/nowSize";
const CARE_GORY = ['事业单位', '在职人员', '年人均收入']
export default {
  name: "PersonnelTalents_UnitPersonnel",
  data() {
@@ -141,7 +139,7 @@
        },
      ],
      checkedCategory: '事业单位',
      careGory: CARE_GORY,
      CARE_GORY:['事业单位', '在职人员', '年人均收入'],
      tableHeight: window.innerHeight - nowSize(1000)
    }
  },
@@ -287,6 +285,10 @@
    },
    getHeight() {
        this.tableHeight = window.innerHeight - nowSize(900)
    },
    // 通过点击更换echarts图表信息
    selectEcharts(index){
      console.log(index);
    }
  },
    created() {
@@ -295,6 +297,7 @@
    destroy() {
        window.addEventListener('resize',this.getHeight)
    }
}
</script>
<style lang="scss">