zhangxiaoxu123456
2022-04-29 af63b044b26ddf2a381b28e7a7f413ddeb31e1e9
src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoZhengjiShouru.vue
@@ -12,14 +12,17 @@
      <el-tab-pane label="总览" name="1">
        <shebaoZhengjiShouruTotal :totalTableData="totalTableData"></shebaoZhengjiShouruTotal>
      </el-tab-pane>
      <el-tab-pane label="失业再就业" name="2">
        <shebaoZhengjiShouruForm :tableData="tableData"></shebaoZhengjiShouruForm>
      <el-tab-pane label="企业职工养老保险" name="2">
        <shebaoZhengjiShouruForm :tableData="tableData" label="在职职工(人)" type="1"></shebaoZhengjiShouruForm>
      </el-tab-pane>
      <el-tab-pane label="就业困难人员再就业" name="3">
        <shebaoZhengjiShouruForm :tableData="tableData"></shebaoZhengjiShouruForm>
      <el-tab-pane label="城乡居民养老保险" name="3">
        <shebaoZhengjiShouruForm :tableData="tableData" label="参保人数(人)" type="3"></shebaoZhengjiShouruForm>
      </el-tab-pane>
      <el-tab-pane label="登记失业率" name="4">
        <shebaoZhengjiShouruForm :tableData="tableData"></shebaoZhengjiShouruForm>
      <el-tab-pane label="失业保险" name="4">
        <shebaoZhengjiShouruForm :tableData="tableData" label="参保人数(人)" type="4"></shebaoZhengjiShouruForm>
      </el-tab-pane>
      <el-tab-pane label="工伤保险" name="5">
        <shebaoZhengjiShouruForm :tableData="tableData" label="参保人数(人)" type="5"></shebaoZhengjiShouruForm>
      </el-tab-pane>
    </el-tabs>
  </div>
@@ -40,27 +43,12 @@
                totalTableData: [],
                tableData: [],
                activeName: '1',
                tabMenuList: [{
                    name: '总览',
                    id: 1
                },{
                    name: '企业职工养老保险',
                    id: 2
                },{
                    name: '城乡居民养老保险',
                    id: 3
                },{
                    name: '工伤保险',
                    id: 4
                },{
                    name: '失业保险',
                    id: 5
                }]
                type:'1',
            }
        },
        mounted() {
          this.getFundincomeTable()
          this.getAverageTable()
        },
        methods: {
            getFundincomeTable() {
@@ -71,14 +59,16 @@
                })
            },
            getAverageTable() {
                getAverageTable().then(res => {
                getAverageTable({type: this.type}).then(res => {
                    if(res.code == 1000) {
                        this.tableData = res.list
                    }
                })
            },
            tabHandleClick(tab) {
                console.log('tab------',tab)
                this.type = tab.name
                this.getAverageTable()
            }
        }
    }