| | |
| | | <script> |
| | | |
| | | import nowSize from "../../../../libs/nowSize"; |
| | | import {getPersonTable,getUnitLine} from '@/api/personnelTalents'; |
| | | import {getPersonTable, getUnitLine} from '@/api/personnelTalents'; |
| | | |
| | | export default { |
| | | name: "PersonnelTalents_UnitPersonnel", |
| | |
| | | checkedCategory: '事业单位', |
| | | CARE_GORY: ['事业单位', '在职人员', '年人均收入'], |
| | | tableHeight: window.innerHeight - nowSize(1000), |
| | | isShow:true, |
| | | isShow: true, |
| | | echartSeries: {}, |
| | | selectIndex: { |
| | | type:1 |
| | | type: 1 |
| | | } |
| | | } |
| | | }, |
| | |
| | | containLabel: true |
| | | }, |
| | | xAxis: { |
| | | name: '单位:年', |
| | | name: '单位:年/月', |
| | | nameTextStyle: { |
| | | color: '#FFFFFF', |
| | | fontSize: nowSize(24) |
| | |
| | | } |
| | | }, |
| | | yAxis: { |
| | | name: '单位:年', |
| | | name: '单位:家', |
| | | nameTextStyle: { |
| | | color: '#FFFFFF', |
| | | fontSize: nowSize(24) |
| | |
| | | }, |
| | | // 通过点击更换echarts图表信息 |
| | | selectEcharts(index) { |
| | | this.selectIndex.type = index+1 |
| | | switch(index){ |
| | | case 0: |
| | | this.isShow = true; |
| | | this.getUnitLine() |
| | | this.Init_echarts() |
| | | break; |
| | | // case 1: |
| | | // this.getUnitLine() |
| | | // this.Init_echarts() |
| | | // console.log('我是1'); |
| | | // break; |
| | | default: |
| | | this.isShow = false; |
| | | break; |
| | | } |
| | | this.selectIndex.type = index + 1 |
| | | this.getUnitLine() |
| | | this.Init_echarts() |
| | | // switch(index){ |
| | | // case 0: |
| | | // this.isShow = true; |
| | | // this.getUnitLine() |
| | | // this.Init_echarts() |
| | | // break; |
| | | // // case 1: |
| | | // // this.getUnitLine() |
| | | // // this.Init_echarts() |
| | | // // console.log('我是1'); |
| | | // // break; |
| | | // default: |
| | | // this.isShow = false; |
| | | // break; |
| | | // } |
| | | }, |
| | | // 29. 查询事业单位人员情况表格数据接口 |
| | | getPersonTable() { |
| | |
| | | }) |
| | | }, |
| | | // 41.查询事业年度变化情况折线图数据接口 |
| | | getUnitLine(){ |
| | | getUnitLine(this.selectIndex).then(res=>{ |
| | | if(res.code === 1000){ |
| | | getUnitLine() { |
| | | getUnitLine(this.selectIndex).then(res => { |
| | | if (res.code === 1000) { |
| | | this.echartSeries = res.obj |
| | | console.log(this.echartSeries); |
| | | this.Init_echarts() |
| | | } |
| | | }) |