| | |
| | | // see http://vuejs-templates.github.io/webpack for documentation. |
| | | |
| | | const path = require("path"); |
| | | let url = 'http://192.168.0.139:8081' |
| | | let url = 'http://192.168.0.140:8081' |
| | | |
| | | module.exports = { |
| | | dev: { |
| | |
| | | import { getRequest, postRequest} from "../libs/axios"; |
| | | import {getRequest, postRequest} from "../libs/axios"; |
| | | |
| | | // 29. 查询事业单位人员情况表格数据接口 |
| | | export const getPersonTable = (params) => { |
| | | return postRequest('/ybg/webservice/app/personnel/getPersonTable.do',params) |
| | | return postRequest('/ybg/webservice/app/personnel/getPersonTable.do', params) |
| | | } |
| | | // 查询事业年度变化情况折线图数据接口 |
| | | export const getUnitLine = (params) => { |
| | | return postRequest('/ybg/webservice/app/personnel/ getUnitLine.do', params) |
| | | } |
| | | |
| | | |
| | | //30.查询人才绿卡购房补贴表格数据接口 |
| | | export const getPersonCardTable = (params) => { |
| | | return postRequest('/ybg/webservice/app/personnel/getPersonCardTable.do',params) |
| | | return postRequest('/ybg/webservice/app/personnel/getPersonCardTable.do', params) |
| | | } |
| | |
| | | <script> |
| | | |
| | | import nowSize from "../../../../libs/nowSize"; |
| | | import {getPersonTable} from '@/api/personnelTalents'; |
| | | import {getPersonTable,getUnitLine} from '@/api/personnelTalents'; |
| | | |
| | | export default { |
| | | name: "PersonnelTalents_UnitPersonnel", |
| | |
| | | CARE_GORY: ['事业单位', '在职人员', '年人均收入'], |
| | | tableHeight: window.innerHeight - nowSize(1000), |
| | | isShow:true, |
| | | echartSeries:{ |
| | | jumin:[120, 132, 101, 134, 90, 230], |
| | | chengzhen:[220, 182, 191, 234, 290, 330], |
| | | nongcun:[150, 232, 201, 154, 190, 330] |
| | | echartSeries: {}, |
| | | selectIndex: { |
| | | type:1 |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.Init_echarts() |
| | | this.getPersonTable() |
| | | this.getUnitLine() |
| | | }, |
| | | methods: { |
| | | mergeColumnTableCell({rowIndex, columnIndex}) { |
| | |
| | | nameGap: nowSize(92),// 坐标轴名称与轴线之间的距离。 |
| | | type: 'category', |
| | | boundaryGap: false,// 坐标轴两端留白 |
| | | data: ['2017年', '2018年', '2019年', '2020年', '2021年'], |
| | | data: this.echartSeries.years, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | |
| | | { |
| | | name: '居民人均可支配收入', |
| | | type: 'line', |
| | | data: this.echartSeries.jumin |
| | | data: this.echartSeries.quanshi |
| | | }, |
| | | { |
| | | name: '城镇居民', |
| | | type: 'line', |
| | | data: this.echartSeries.chengzhen |
| | | data: this.echartSeries.shizhi |
| | | }, |
| | | { |
| | | name: '农村居民', |
| | | type: 'line', |
| | | data: this.echartSeries.nongcun |
| | | data: this.echartSeries.xian |
| | | } |
| | | ] |
| | | }; |
| | |
| | | }, |
| | | // 通过点击更换echarts图表信息 |
| | | selectEcharts(index) { |
| | | console.log(index); |
| | | this.selectIndex.type = index+1 |
| | | switch(index){ |
| | | case 0: |
| | | this.isShow = true; |
| | | this.echartSeries = { |
| | | jumin:[120, 132, 101, 134, 90, 230], |
| | | chengzhen:[220, 182, 191, 234, 290, 330], |
| | | nongcun:[150, 232, 201, 154, 190, 330] |
| | | } |
| | | this.getUnitLine() |
| | | this.Init_echarts() |
| | | break; |
| | | // case 1: |
| | | // this.getUnitLine() |
| | | // this.Init_echarts() |
| | | // console.log('我是1'); |
| | | // break; |
| | | default: |
| | | this.isShow = false; |
| | | break; |
| | |
| | | this.tableData = res.list |
| | | } |
| | | }) |
| | | }, |
| | | // 41.查询事业年度变化情况折线图数据接口 |
| | | getUnitLine(){ |
| | | getUnitLine(this.selectIndex).then(res=>{ |
| | | if(res.code === 1000){ |
| | | this.echartSeries = res.obj |
| | | this.Init_echarts() |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | created() { |