付延余
2022-04-29 41d6da7f5f8f0ce37c3521f6c4d639ab77ed9aac
其他业务
2个文件已修改
33 ■■■■ 已修改文件
src/api/shehuiBaozhang.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/shehuiBaozhang.js
@@ -44,3 +44,8 @@
export const getCardNumsTable = (params) => {
  return postRequest('/ybg/webservice/app/social/getCardNumsTable.do',params)
}
// 35. 查询历年社保基金数据分析图数据接口
export const getStatisticsChart = (params) => {
  return postRequest('/ybg/webservice/app/social/getStatisticsChart.do',params)
}
src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue
@@ -67,19 +67,20 @@
<script>
  import nowSize from "../../../../libs/nowSize";
  import {getStatisticsTable} from '@/api/shehuiBaozhang'
  import {getStatisticsTable,getStatisticsChart } from '@/api/shehuiBaozhang'
export default {
  name: "shebaoShouzhiZongbiao",
  data() {
    return {
      tableHead:[],
      tableData:[],
      headerArry:[]
      headerArry:[],
      echartsSeries:{}
    }
  },
  mounted() {
      this.getStatisticsTable()
     this.shebaoShouzhiZongbiaoEcharts()
     this.getStatisticsChart()
  },
  methods: {
      getStatisticsTable() {
@@ -142,13 +143,13 @@
                  top: '15%',
                  left: '4%',
                  right: '18%',
                  bottom: '3%',
                  bottom: '9%',
                  containLabel: true
              },
              xAxis: {
                  type: 'category',
                  boundaryGap: false,
                  data: ['2021/4', '2021/5', '2021/6', '2021/7', '2021/8', '2021/9', '2021/10'],
                  data: this.echartsSeries.years,
                  axisLabel: {
                      show: true,
                      textStyle: {
@@ -191,22 +192,22 @@
                  {
                      name: '年累计总收入',
                      type: 'line',
                      data: [370, 332, 401, 534, 490, 530, 910]
                      data: this.echartsSeries.income
                  },
                  {
                      name: '年累计支出',
                      type: 'line',
                      data: [220, 182, 191, 234, 290, 330, 310]
                      data: this.echartsSeries.pay
                  },
                  {
                      name: '年累计征缴收入',
                      type: 'line',
                      data: [150, 132, 201, 154, 190, 330, 410]
                      data: this.echartsSeries.taxes
                  },
                  {
                      name: '年累计结余',
                      type: 'line',
                      data: [350, 112, 209, 164, 290, 310, 400]
                      data:this.echartsSeries.balance
                  }
              ]
          };
@@ -220,6 +221,15 @@
              return { background:'#51D2FF' }
          }
      },
    //35. 查询历年社保基金数据分析图数据接口
    getStatisticsChart() {
      getStatisticsChart().then(res => {
        if(res.code ===1000){
          this.echartsSeries = res.obj
          this.shebaoShouzhiZongbiaoEcharts()
        }
      })
    }
  }
}
</script>