付延余
2022-05-19 f6334332118fa7843432e9c069a454039d0b0831
其他业务
3个文件已修改
53 ■■■■■ 已修改文件
config/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/personnelTalents.js 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/index.js
@@ -3,7 +3,7 @@
// 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: {
src/api/personnelTalents.js
@@ -1,11 +1,16 @@
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)
}
src/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue
@@ -55,7 +55,7 @@
<script>
import nowSize from "../../../../libs/nowSize";
import {getPersonTable} from '@/api/personnelTalents';
import {getPersonTable,getUnitLine} from '@/api/personnelTalents';
export default {
  name: "PersonnelTalents_UnitPersonnel",
@@ -145,16 +145,16 @@
      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}) {
@@ -228,7 +228,7 @@
          nameGap: nowSize(92),// 坐标轴名称与轴线之间的距离。
          type: 'category',
          boundaryGap: false,// 坐标轴两端留白
          data: ['2017年', '2018年', '2019年', '2020年', '2021年'],
          data: this.echartSeries.years,
          axisLabel: {
            show: true,
            textStyle: {
@@ -277,17 +277,17 @@
          {
            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
          }
        ]
      };
@@ -298,17 +298,18 @@
    },
    // 通过点击更换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;
@@ -321,6 +322,15 @@
          this.tableData = res.list
        }
      })
    },
    // 41.查询事业年度变化情况折线图数据接口
    getUnitLine(){
      getUnitLine(this.selectIndex).then(res=>{
        if(res.code === 1000){
          this.echartSeries = res.obj
          this.Init_echarts()
        }
      })
    }
  },
  created() {