From 6e41ce0ab4300758ebd77ea257c3d9532e3df7e0 Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123456 <zxx19900626>
Date: 星期二, 10 五月 2022 11:58:22 +0800
Subject: [PATCH] 接口对接

---
 src/pages/show/businessPolicy/BusinessPolicy.vue |  364 ++++++++--------------------------------------------
 1 files changed, 56 insertions(+), 308 deletions(-)

diff --git a/src/pages/show/businessPolicy/BusinessPolicy.vue b/src/pages/show/businessPolicy/BusinessPolicy.vue
index a01e5dc..0a3e77a 100644
--- a/src/pages/show/businessPolicy/BusinessPolicy.vue
+++ b/src/pages/show/businessPolicy/BusinessPolicy.vue
@@ -73,27 +73,27 @@
             :row-class-name="tableRowClassName"
             @row-click="tableRowClick"
           >
-            <el-table-column prop="keshi" label="绉戝" min-width="10" fixed>
+            <el-table-column prop="department" label="绉戝" min-width="10" fixed>
             </el-table-column>
             <el-table-column
-              prop="zhengchemingcheng"
+              prop="policyName"
               label="鏀跨瓥鍚嶇О"
               min-width="30"
             >
             </el-table-column>
             <el-table-column
-              prop="shengxiaoDate"
+              prop="effecttimeStart"
               label="鐢熸晥鏃ユ湡鑼冨洿"
               min-width="30"
             >
             </el-table-column>
             <el-table-column
-              prop="huijiqiyeNum"
+              prop="unitNums"
               label="鎯犲強浼佷笟鏁�"
               min-width="15"
             >
             </el-table-column>
-            <el-table-column prop="money" label="鍑忓厤閲戦" min-width="15">
+            <el-table-column prop="reductions" label="鍑忓厤閲戦" min-width="15">
             </el-table-column>
           </el-table>
         </div>
@@ -109,22 +109,22 @@
         <div class="BusinessPolicyTable">
           <el-table
             stripe
-            :data="tableData2"
+            :data="tableData"
             style="width: 100%"
             max-height="1005"
             :row-class-name="tableRowClassName"
           >
             <el-table-column
-              prop="tableTitle"
+              prop="policyName"
               label="鏍囬"
               min-width="70"
               align="right"
             >
             </el-table-column>
-            <el-table-column prop="laiyuan" label="鏉ユ簮" min-width="15">
+            <el-table-column prop="resource" label="鏉ユ簮" min-width="15">
             </el-table-column>
             <el-table-column
-              prop="dianjiliang"
+              prop="unitNums"
               label="绱鐐瑰嚮閲�"
               min-width="15"
             >
@@ -142,326 +142,73 @@
         min-height=" 112rem"
       >
         <div class="dislogCloseIcon" @click="tableDialogVisible = false"></div>
-        <h1>澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥</h1>
+        <h1>{{detailForm.policyName}}</h1>
         <div class="fuTitle">
-          <span>鍑哄彴閮ㄩ棬锛氫汉绀惧眬</span><span>鍑哄彴鏃堕棿锛�2021/3/1</span
-        ><span>鎯犲強浼佷笟锛�100瀹�</span><span>鍑忓厤閲戦锛�377涓囧厓</span>
+          <span v-if="detailForm.makeDept">鍑哄彴閮ㄩ棬锛歿{detailForm.makeDept}}</span><span v-if="detailForm.makeTime">鍑哄彴鏃堕棿锛歿{detailForm.makeTime}}</span
+        ><span v-if="detailForm.unitNums">鎯犲強浼佷笟锛歿{detailForm.unitNums}}</span><span v-if="detailForm.reductions">鍑忓厤閲戦锛歿{detailForm.reductions}}</span>
         </div>
         <div class="dialogText">
           <el-divider></el-divider>
-          <span>
-            閫氳繃鍔犲ぇ鎵舵寔鍔涘害鍜岀簿鍑嗚惤瀹炲洶闅句紒涓氱ǔ宀楄繑杩樻斂绛栵紝鍏呭垎鍙戞尌澶变笟淇濋櫓鈥滈闃插け涓氣�濆姛鑳斤紝鍔犲ぇ澶变笟淇濋櫓鎻翠紒绋冲矖鍔涘害锛屾敮鎸佷紒涓氱ǔ瀹氬氨涓氬矖浣嶅拰鍋ュ悍鍙戝睍銆�
-            鍔犲ぇ鎵舵寔鍔涘害锛屾墿澶ф斂绛栧彈鐩婇潰銆傛斁瀹界敵棰嗘潯浠讹紝涓皬寰紒涓氳鍛樼巼涓嶉珮浜�2019骞村害鍏ㄥ浗鍩庨晣璋冩煡澶变笟鐜囨帶鍒剁洰鏍�5.5%锛屽弬淇濊亴宸�30浜�(鍚紝浠ヤ笂骞村害鏈堝潎鍙備繚浜烘暟涓哄噯)浠ヤ笅鐨勫弬淇濅紒涓氳鍛樹汉鏁颁笉瓒呰繃鍙備繚鑱屽伐鎬绘暟20%鐨勶紝鍙互鐢宠浼佷笟绋冲矖杩旇繕銆傛彁楂樿繑杩樻爣鍑嗭紝瀵逛笉瑁佸憳鎴栧皯瑁佸憳鐨勪腑灏忓井浼佷笟锛岀ǔ宀楄繑杩樻爣鍑嗕粠浼佷笟鍙婂叾鑱屽伐涓婂勾搴︾即绾冲け涓氫繚闄╄垂鐨�50%鎻愰珮鍒�100%銆�
-            鍔犲己鍥伴毦甯壎锛岀簿鍑嗚惤瀹炲洶闅句紒涓氱ǔ宀楄繑杩樻斂绛栥�傜‘瀹氫簡鍥伴毦浼佷笟绋冲矖杩旇繕鏍囧噯锛�100浜�(鍚�)鑷�500浜�(鍚�)浼佷笟锛岃繑杩樻爣鍑嗘寜1涓湀鐨勪笂骞村害鍏ㄥ競鏈堜汉鍧囧け涓氫繚闄╅噾鍜屾湀鍧囧弬淇濊亴宸ヤ汉鏁扮‘瀹氾紱501浜鸿嚦1000浜�(鍚�)浼佷笟锛岃繑杩樻爣鍑嗘寜2涓湀鐨勪笂骞村害鍏ㄥ競鏈堜汉鍧囧け涓氫繚闄╅噾鍜屾湀鍧囧弬淇濊亴宸ヤ汉鏁扮‘瀹氾紱1001浜轰互涓婁紒涓氾紝鎸�3涓湀鐨勪笂骞村害鍏ㄥ競鏈堜汉鍧囧け涓氫繚闄╅噾鍜屾湀鍧囧弬淇濊亴宸ヤ汉鏁扮‘瀹氾紱瀵瑰彈鐤儏褰卞搷杈冨ぇ鐨勯楗�侀厭搴椼�佹梾娓搞�侀浂鍞�佸啺闆瓑琛屼笟浼佷笟锛屽湪鐩稿簲琛ヨ创鏍囧噯鍩虹涓婂鍔犱竴涓湀銆�
-            鐢宠绋冲矖琛ヨ创浼佷笟搴斿悓鏃跺叿澶囦互涓嬫潯浠讹細
-            鐢熶骇缁忚惀娲诲姩绗﹀悎鍥藉鍙婃墍鍦ㄥ湴浜т笟缁撴瀯璋冩暣鍜岀幆淇濇斂绛栵紱
-            涓婂勾搴︽湭瑁佸憳鎴栬鍛樼巼涓嶈秴杩囧叏鐪佸煄闀囩櫥璁板け涓氱巼鎺у埗鐩爣4.5%锛�
-            涓婂勾搴﹁冻棰濈即绾冲け涓氫繚闄╄垂婊�12涓湀涓旀棤鍘嗗彶娆犵即锛�
-            2019骞村害缁忚惀鎯呭喌浜忔崯锛屾垨鍙楃柅鎯呭奖鍝�2020骞翠互鏉ヨ惀涓氭敹鍏ュ悓姣斾笅闄嶅箙搴﹀湪50%(鍚�)浠ヤ笂锛�
-            浼佷笟鍙傚姞澶变笟淇濋櫓鑱屽伐浜烘暟涓嶄綆浜�100浜猴紱
-            涓庝紒涓氬伐浼氱粍缁囧崗鍟嗗埗瀹氱ǔ瀹氬氨涓氬矖浣嶆帾鏂斤紝骞舵壙璇�1骞村唴涓嶈鍛樻垨鑰呰鍛樼巼浣庝簬鍏ㄧ渷鍩庨晣鐧昏澶变笟鐜囨帶鍒剁洰鏍�4.5%銆�
-            涓ラ噸澶变俊浼佷笟銆佽鍒楀叆鐮翠骇娓呯畻鎴栨敞閿�鍚嶅崟鐨勨�滃兊灏镐紒涓氣�濄�佺敵璇风ǔ宀楄繑杩樻椂澶变笟淇濋櫓鍙備繚浜烘暟姣斾笂骞村害骞冲潎鍙備繚浜烘暟鍑忓皯瓒呰繃50%鐨勪紒涓氫笉鍒楀叆杩旇繕鑼冨洿銆�</span>
+          <span v-if="detailForm.policyContent" v-html="detailForm.policyContent"></span>
         </div>
       </el-dialog>
     </div>
   </div>
 </template>
 <script>
-import {getCount} from '@/api/businessPolicy'
+import {getCount, getList, getDetail} from '@/api/businessPolicy'
 export default {
   data() {
     return {
       CountObj:{},
-      tableData: [
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        },
-        {
-          keshi: "澶变笟澶�",
-          zhengchemingcheng: "澶变笟淇濋櫓绋冲矖杩旇繕鏀跨瓥",
-          shengxiaoDate: "2021/3鈥�2022/12",
-          huijiqiyeNum: "100瀹�",
-          money: "277涓囧厓"
-        }
-      ],
-      tableData2: [
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        },
-        {
-          tableTitle:
-            "澶у姏浼樺寲钀ュ晢鐜涓ㄥ競浜虹ぞ灞�锛氭湇鍔℃彁閫熸彁鑳� 璁╃櫨濮撲韩鍙楁敼闈╃孩鍒�",
-          laiyuan: "鐭冲搴勬柊闂�",
-          dianjiliang: "15690"
-        }
-      ],
+      tableData: [],
       tableDialogVisible: false,
-      tableHeight: window.innerHeight * 0.62
+      tableHeight: window.innerHeight * 0.62,
+      detailForm:{
+          policyName:'',  //鏀跨瓥鍚嶇О/鏂伴椈鏍囬
+          makeDept:'',  //鍑哄彴閮ㄩ棬
+          makeTime:'',   //鍑哄彴鏃堕棿
+          unitNums:'',   //鎯犲強浼佷笟鏁�
+          reductions:'',   //鍑忓厤閲戦
+          policyContent:'',  //鏀跨瓥鍐呭
+      }
     };
   },
   mounted(){
     this.getCount()
+    this.getZhengce()
+    this.getBaodao()
   },
   methods: {
+   /*******鏌ヨ钀ュ晢鏀跨瓥鍜岀浉鍏虫姤閬撳垪琛ㄦ帴鍙�*******/
+   getZhengce() {
+       this.getList('1')
+   },
+   getBaodao() {
+       this.getList('2')
+   },
+
+   getList(type) {
+       getList({type:type}).then(res => {
+           if(res.code == 1000) {
+               this.tableData = res.list
+           }
+       })
+   },
+      /***39.鏌ヨ钀ュ晢鏀跨瓥璇︽儏鎺ュ彛***/
+      getDetail(id) {
+          getDetail({id:id}).then(res => {
+              if(res.code == 1000) {
+                this.detailForm.policyName = res.obj.policyName
+                this.detailForm.makeDept = res.obj.makeDept
+                this.detailForm.makeTime = res.obj.makeTime
+                this.detailForm.policyContent = res.obj.policyContent
+                this.detailForm.unitNums = res.obj.unitNums
+                this.detailForm.reductions  = res.obj.reductions
+              }
+          })
+      },
+
     tableRowClassName({rowIndex}) {
       if (rowIndex % 2 === 0) {
         return "warning-row";
@@ -473,6 +220,7 @@
       console.log(row);
       console.log(row.__ob__.dep.id);
       console.log(row.id);
+      this.getDetail(row.id)
     },
     // 37. 鏌ヨ钀ュ晢鏀跨瓥浜斾釜缁熻鏁伴噺鎺ュ彛
     getCount(){

--
Gitblit v1.9.1