From ee658b8ab1dd3b76b8c3fa3f2006b4fa8e8af0cf Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123456 <zxx19900626>
Date: 星期五, 22 四月 2022 17:33:13 +0800
Subject: [PATCH] 社会保障接口对接

---
 src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoZhengjiShouru.vue |   75 +++++++++++++++++++++++++++++++------
 1 files changed, 63 insertions(+), 12 deletions(-)

diff --git a/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoZhengjiShouru.vue b/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoZhengjiShouru.vue
index 6b53974..ee58371 100644
--- a/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoZhengjiShouru.vue
+++ b/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoZhengjiShouru.vue
@@ -1,33 +1,84 @@
 <template>
   <div class="shebaoZhengjiShouru-wrap">
     <h1>鍚勫幙锛堝競銆佸尯锛�2021骞村氨涓氭儏鍐电粺璁¤〃</h1>
-    <el-tabs v-model="activeName">
-      <el-tab-pane label="鍩庨晣鏂板灏变笟" name="first">
-        <baoxianForm></baoxianForm>
+    <el-tabs v-model="activeName" @tab-click="tabHandleClick">
+<!--      <el-tab-pane-->
+<!--        v-for="item in tabMenuList"-->
+<!--        :key="item.id"-->
+<!--        :label="item.name"-->
+<!--        :name="item.id + ''">-->
+<!--        <shebaoZhengjiShouruForm :tableData="tableData"></shebaoZhengjiShouruForm>-->
+<!--      </el-tab-pane>-->
+      <el-tab-pane label="鎬昏" name="1">
+        <shebaoZhengjiShouruTotal :totalTableData="totalTableData"></shebaoZhengjiShouruTotal>
       </el-tab-pane>
-      <el-tab-pane label="澶变笟鍐嶅氨涓�" name="second">
-        <baoxianForm></baoxianForm>
+      <el-tab-pane label="澶变笟鍐嶅氨涓�" name="2">
+        <shebaoZhengjiShouruForm :tableData="tableData"></shebaoZhengjiShouruForm>
       </el-tab-pane>
-      <el-tab-pane label="灏变笟鍥伴毦浜哄憳鍐嶅氨涓�" name="third">
-        <baoxianForm></baoxianForm>
+      <el-tab-pane label="灏变笟鍥伴毦浜哄憳鍐嶅氨涓�" name="3">
+        <shebaoZhengjiShouruForm :tableData="tableData"></shebaoZhengjiShouruForm>
       </el-tab-pane>
-      <el-tab-pane label="鐧昏澶变笟鐜�" name="fourth">
-        <baoxianForm></baoxianForm>
+      <el-tab-pane label="鐧昏澶变笟鐜�" name="4">
+        <shebaoZhengjiShouruForm :tableData="tableData"></shebaoZhengjiShouruForm>
       </el-tab-pane>
     </el-tabs>
   </div>
 </template>
 
 <script>
-  import baoxianForm from "../../../components/juminYanglaoBaoxian/baoxianForm";
+  import {getFundincomeTable, getAverageTable} from '@/api/shehuiBaozhang'
+  import shebaoZhengjiShouruTotal from "../../../components/shebaoZhengjiShouru/shebaoZhengjiShouruTotal";
+  import shebaoZhengjiShouruForm from "../../../components/shebaoZhengjiShouru/shebaoZhengjiShouruForm";
     export default {
         name: "jiuyeQingkuang",
         components: {
-            baoxianForm,
+            shebaoZhengjiShouruTotal,
+            shebaoZhengjiShouruForm
         },
         data() {
             return {
-                activeName: 'first'
+                totalTableData: [],
+                tableData: [],
+                activeName: '1',
+                tabMenuList: [{
+                    name: '鎬昏',
+                    id: 1
+                },{
+                    name: '浼佷笟鑱屽伐鍏昏�佷繚闄�',
+                    id: 2
+                },{
+                    name: '鍩庝埂灞呮皯鍏昏�佷繚闄�',
+                    id: 3
+                },{
+                    name: '宸ヤ激淇濋櫓',
+                    id: 4
+                },{
+                    name: '澶变笟淇濋櫓',
+                    id: 5
+                }]
+            }
+        },
+        mounted() {
+          this.getFundincomeTable()
+          this.getAverageTable()
+        },
+        methods: {
+            getFundincomeTable() {
+                getFundincomeTable().then(res => {
+                   if(res.code == 1000) {
+                      this.totalTableData = res.list
+                   }
+                })
+            },
+            getAverageTable() {
+                getAverageTable().then(res => {
+                    if(res.code == 1000) {
+                        this.tableData = res.list
+                    }
+                })
+            },
+            tabHandleClick(tab) {
+
             }
         }
     }

--
Gitblit v1.9.1