From f6334332118fa7843432e9c069a454039d0b0831 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期四, 19 五月 2022 14:29:30 +0800
Subject: [PATCH] 其他业务

---
 src/pages/show/businessPolicy/BusinessPolicy.vue |  495 +++++++++++++++---------------------------------------
 1 files changed, 138 insertions(+), 357 deletions(-)

diff --git a/src/pages/show/businessPolicy/BusinessPolicy.vue b/src/pages/show/businessPolicy/BusinessPolicy.vue
index e97c7a9..0a3e77a 100644
--- a/src/pages/show/businessPolicy/BusinessPolicy.vue
+++ b/src/pages/show/businessPolicy/BusinessPolicy.vue
@@ -1,4 +1,5 @@
 <template>
+  <!--  钀ュ晢鏀跨瓥-->
   <div id="businessPolicy">
     <div class="upCentent">
       <!-- 涓讳俊鎭尯 -->
@@ -10,7 +11,7 @@
           />
         </div>
         <div class="text">绱鍑哄彴鏀跨瓥鏁伴噺</div>
-        <div class="numText"><span>280</span>鏉�</div>
+        <div class="numText"><span>{{ CountObj.totalPolicy }}</span>鏉�</div>
       </div>
       <div class="upCentent_item">
         <div class="icon">
@@ -20,7 +21,7 @@
           />
         </div>
         <div class="text">鎯犲強浼佷笟鏁伴噺</div>
-        <div class="numText"><span>70</span>涓囨埛</div>
+        <div class="numText"><span>{{ CountObj.units }}</span>涓囨埛</div>
       </div>
       <div class="upCentent_item">
         <div class="icon">
@@ -30,7 +31,7 @@
           />
         </div>
         <div class="text">鎯犲強涓汉鏁伴噺</div>
-        <div class="numText"><span>25.9</span>涓囦汉</div>
+        <div class="numText"><span>{{ CountObj.persons }}</span>涓囦汉</div>
       </div>
       <div class="upCentent_item">
         <div class="icon">
@@ -40,7 +41,7 @@
           />
         </div>
         <div class="text">鍑忓厤閲戦</div>
-        <div class="numText"><span>1563</span>涓囧厓</div>
+        <div class="numText"><span>{{ CountObj.amount }}</span>涓囧厓</div>
       </div>
       <div class="upCentent_item">
         <div class="icon">
@@ -50,7 +51,7 @@
           />
         </div>
         <div class="text">鏂伴椈鎶ラ亾鏁伴噺</div>
-        <div class="numText"><span>36500</span>鏉�</div>
+        <div class="numText"><span>{{ CountObj.news }}</span>鏉�</div>
       </div>
     </div>
     <!-- 琛ㄦ牸鍖� -->
@@ -59,41 +60,40 @@
         <div class="centent_title">
           <span>鏀跨瓥鍐呭</span
           ><img
-            src="../../../assets/images/businessPolicy/title_end@2x.png"
-            alt=""
-          />
+          src="../../../assets/images/businessPolicy/title_end@2x.png"
+          alt=""
+        />
         </div>
         <div class="BusinessPolicyTable">
           <el-table
             stripe
+            max-height="1005"
             :data="tableData"
             style="width: 100%"
-            :max-height="tableHeight"
-            :header-row-style="tableHeaderRow"
             :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>
@@ -102,30 +102,29 @@
         <div class="centent_title">
           <span>鐩稿叧鎶ラ亾</span
           ><img
-            src="../../../assets/images/businessPolicy/title_end@2x.png"
-            alt=""
-          />
+          src="../../../assets/images/businessPolicy/title_end@2x.png"
+          alt=""
+        />
         </div>
         <div class="BusinessPolicyTable">
           <el-table
             stripe
-            :data="tableData2"
+            :data="tableData"
             style="width: 100%"
-            :max-height="tableHeight"
-            :header-row-style="tableHeaderRow"
+            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"
             >
@@ -143,333 +142,74 @@
         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>
-            閫氳繃鍔犲ぇ鎵舵寔鍔涘害鍜岀簿鍑嗚惤瀹炲洶闅句紒涓氱ǔ宀楄繑杩樻斂绛栵紝鍏呭垎鍙戞尌澶变笟淇濋櫓鈥滈闃插け涓氣�濆姛鑳斤紝鍔犲ぇ澶变笟淇濋櫓鎻翠紒绋冲矖鍔涘害锛屾敮鎸佷紒涓氱ǔ瀹氬氨涓氬矖浣嶅拰鍋ュ悍鍙戝睍銆�<br />
-            鍔犲ぇ鎵舵寔鍔涘害锛屾墿澶ф斂绛栧彈鐩婇潰銆傛斁瀹界敵棰嗘潯浠讹紝涓皬寰紒涓氳鍛樼巼涓嶉珮浜�2019骞村害鍏ㄥ浗鍩庨晣璋冩煡澶变笟鐜囨帶鍒剁洰鏍�5.5%锛屽弬淇濊亴宸�30浜�(鍚紝浠ヤ笂骞村害鏈堝潎鍙備繚浜烘暟涓哄噯)浠ヤ笅鐨勫弬淇濅紒涓氳鍛樹汉鏁颁笉瓒呰繃鍙備繚鑱屽伐鎬绘暟20%鐨勶紝鍙互鐢宠浼佷笟绋冲矖杩旇繕銆傛彁楂樿繑杩樻爣鍑嗭紝瀵逛笉瑁佸憳鎴栧皯瑁佸憳鐨勪腑灏忓井浼佷笟锛岀ǔ宀楄繑杩樻爣鍑嗕粠浼佷笟鍙婂叾鑱屽伐涓婂勾搴︾即绾冲け涓氫繚闄╄垂鐨�50%鎻愰珮鍒�100%銆�<br />
-            鍔犲己鍥伴毦甯壎锛岀簿鍑嗚惤瀹炲洶闅句紒涓氱ǔ宀楄繑杩樻斂绛栥�傜‘瀹氫簡鍥伴毦浼佷笟绋冲矖杩旇繕鏍囧噯锛�100浜�(鍚�)鑷�500浜�(鍚�)浼佷笟锛岃繑杩樻爣鍑嗘寜1涓湀鐨勪笂骞村害鍏ㄥ競鏈堜汉鍧囧け涓氫繚闄╅噾鍜屾湀鍧囧弬淇濊亴宸ヤ汉鏁扮‘瀹氾紱501浜鸿嚦1000浜�(鍚�)浼佷笟锛岃繑杩樻爣鍑嗘寜2涓湀鐨勪笂骞村害鍏ㄥ競鏈堜汉鍧囧け涓氫繚闄╅噾鍜屾湀鍧囧弬淇濊亴宸ヤ汉鏁扮‘瀹氾紱1001浜轰互涓婁紒涓氾紝鎸�3涓湀鐨勪笂骞村害鍏ㄥ競鏈堜汉鍧囧け涓氫繚闄╅噾鍜屾湀鍧囧弬淇濊亴宸ヤ汉鏁扮‘瀹氾紱瀵瑰彈鐤儏褰卞搷杈冨ぇ鐨勯楗�侀厭搴椼�佹梾娓搞�侀浂鍞�佸啺闆瓑琛屼笟浼佷笟锛屽湪鐩稿簲琛ヨ创鏍囧噯鍩虹涓婂鍔犱竴涓湀銆�<br />
-            鐢宠绋冲矖琛ヨ创浼佷笟搴斿悓鏃跺叿澶囦互涓嬫潯浠讹細<br />
-            鐢熶骇缁忚惀娲诲姩绗﹀悎鍥藉鍙婃墍鍦ㄥ湴浜т笟缁撴瀯璋冩暣鍜岀幆淇濇斂绛栵紱<br />
-            涓婂勾搴︽湭瑁佸憳鎴栬鍛樼巼涓嶈秴杩囧叏鐪佸煄闀囩櫥璁板け涓氱巼鎺у埗鐩爣4.5%锛�<br />
-            涓婂勾搴﹁冻棰濈即绾冲け涓氫繚闄╄垂婊�12涓湀涓旀棤鍘嗗彶娆犵即锛�<br />
-            2019骞村害缁忚惀鎯呭喌浜忔崯锛屾垨鍙楃柅鎯呭奖鍝�2020骞翠互鏉ヨ惀涓氭敹鍏ュ悓姣斾笅闄嶅箙搴﹀湪50%(鍚�)浠ヤ笂锛�<br />
-            浼佷笟鍙傚姞澶变笟淇濋櫓鑱屽伐浜烘暟涓嶄綆浜�100浜猴紱<br />
-            涓庝紒涓氬伐浼氱粍缁囧崗鍟嗗埗瀹氱ǔ瀹氬氨涓氬矖浣嶆帾鏂斤紝骞舵壙璇�1骞村唴涓嶈鍛樻垨鑰呰鍛樼巼浣庝簬鍏ㄧ渷鍩庨晣鐧昏澶变笟鐜囨帶鍒剁洰鏍�4.5%銆�<br />
-            涓ラ噸澶变俊浼佷笟銆佽鍒楀叆鐮翠骇娓呯畻鎴栨敞閿�鍚嶅崟鐨勨�滃兊灏镐紒涓氣�濄�佺敵璇风ǔ宀楄繑杩樻椂澶变笟淇濋櫓鍙備繚浜烘暟姣斾笂骞村害骞冲潎鍙備繚浜烘暟鍑忓皯瓒呰繃50%鐨勪紒涓氫笉鍒楀叆杩旇繕鑼冨洿銆�</span
-          >
+          <span v-if="detailForm.policyContent" v-html="detailForm.policyContent"></span>
         </div>
       </el-dialog>
     </div>
   </div>
 </template>
 <script>
+import {getCount, getList, getDetail} from '@/api/businessPolicy'
 export default {
   data() {
     return {
-      tableData: [
-        {
-          id: 1,
-          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"
-        }
-      ],
+      CountObj:{},
+      tableData: [],
       tableDialogVisible: false,
-      tableHeight: window.innerHeight * 0.62
-    };
-  },
-  mounted() {
-    const that = this;
-    window.onresize = () => {
-      let height = window.innerHeight * 0.62;
-      that.tableHieght = height;
-      console.log(height);
-    };
-
-    // this.$nextTick(() => {
-    //   this.tableHeight = window.innerHeight * 0.62;
-    //   console.log(this.tableHeight);
-    // });
-    //
-    // window.onresize = () =>
-    //   (() => {
-    //     window.screenWidth = document.body.clientWidth;
-    //     that.screenWidth = window.screenWidth;
-    //   })();
-  },
-  watch: {
-    tableHeight(val) {
-      // 涓轰簡閬垮厤棰戠箒瑙﹀彂resize鍑芥暟瀵艰嚧椤甸潰鍗¢】锛屼娇鐢ㄥ畾鏃跺櫒
-      if (!this.timer) {
-        // 涓�鏃︾洃鍚埌鐨則ableHeight鍊兼敼鍙橈紝灏卞皢鍏堕噸鏂拌祴缁檇ata閲岀殑tableHeight
-        this.tableHeight = val;
-        this.timer = true;
-        const that = this;
-        setTimeout(function() {
-          // that.sjcount(that.screenWidth); //绐楀彛澶у皬鍙樺寲鍚庢墽琛岀殑鏂规硶
-          that.reload(); //绐楀彛澶у皬鍙樺寲鍚庢墽琛岀殑鏂规硶
-          console.log(tableHeight);
-          that.timer = false;
-        }, 10);
+      tableHeight: window.innerHeight * 0.62,
+      detailForm:{
+          policyName:'',  //鏀跨瓥鍚嶇О/鏂伴椈鏍囬
+          makeDept:'',  //鍑哄彴閮ㄩ棬
+          makeTime:'',   //鍑哄彴鏃堕棿
+          unitNums:'',   //鎯犲強浼佷笟鏁�
+          reductions:'',   //鍑忓厤閲戦
+          policyContent:'',  //鏀跨瓥鍐呭
       }
-    }
+    };
+  },
+  mounted(){
+    this.getCount()
+    this.getZhengce()
+    this.getBaodao()
   },
   methods: {
-    tableHeaderRow({ rowIndex }) {
-      if (rowIndex === 0) return { height: "8rem" };
-    },
-    tableRowClassName({ rowIndex }) {
+   /*******鏌ヨ钀ュ晢鏀跨瓥鍜岀浉鍏虫姤閬撳垪琛ㄦ帴鍙�*******/
+   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";
       }
@@ -480,59 +220,79 @@
       console.log(row);
       console.log(row.__ob__.dep.id);
       console.log(row.id);
+      this.getDetail(row.id)
     },
-    reload() {
-      this.isAlive = false;
-      this.$nextTick(function() {
-        this.isAlive = true;
-      });
+    // 37. 鏌ヨ钀ュ晢鏀跨瓥浜斾釜缁熻鏁伴噺鎺ュ彛
+    getCount(){
+      getCount().then(res=>{
+        // console.log(res);
+        if(res.code === 1000){
+          this.CountObj = res.obj
+        }
+      })
     }
   }
 };
 </script>
 <style lang="scss">
 @import "../../../assets/css/base";
-
+@import "../../../assets/css/mixin.scss";
 // 琛ㄦ牸
 .BusinessPolicyTable {
+  height: 3.92578125rem;
   width: 4.5078rem;
   position: absolute;
   top: 0.2813rem;
   left: 0.1289rem;
+  @include overflow-y();
+
   .el-table {
     background: transparent;
   }
+
+  .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
+    background: none;
+  }
+
   // 鍘绘帀褰撳墠琛岄珮浜儗鏅鑹�
   .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
     background: none;
   }
+
   // 鐘舵�侀鑹�
   .el-table .warning-row {
     background-color: rgba(81, 210, 255, 0.1);
   }
+
   .el-table td.el-table__cell,
   .el-table th.el-table__cell.is-leaf {
     border: none;
   }
+
   .el-table tr {
     background: transparent;
   }
+
   // 澶撮儴
   .el-table th.el-table__cell {
     background: transparent;
   }
+
   .el-table--striped,
-    .el-table__body,
-    tr.el-table__row--striped,
-    td.el-table__cell {
+  .el-table__body,
+  tr.el-table__row--striped,
+  td.el-table__cell {
     background: transparent;
   }
+
   .el-table thead {
     color: #111111;
   }
+
   .el-table .el-table__cell {
-    padding: 2rem 0;
+    padding: 0;
   }
+
   .el-table__body tr.hover-row.current-row > td.el-table__cell,
   .el-table__body,
   tr.hover-row.el-table__row--striped.current-row,
@@ -541,13 +301,13 @@
   .el-table__body tr.hover-row > td.el-table__cell {
     background: transparent;
   }
+
   .el-table .cell {
     font-weight: 300;
     font-size: 0.1016rem;
-    //font-family: Source Han Sans CN, Source Han Sans CN-Light;
     text-align: center;
     color: #ffffff;
-    line-height: 0.1016rem;
+    line-height: 0.25rem;
   }
 }
 
@@ -556,32 +316,38 @@
   .el-dialog__wrapper {
     background: rgba(0, 0, 0, 0.9);
   }
+
   .el-dialog {
-    background: url(../../../assets/images/businessPolicy/dialog@2x.png)
-      no-repeat center;
+    background: url(../../../assets/images/businessPolicy/dialog@2x.png) no-repeat center;
     background-size: 100% 100%;
     height: 4.375rem;
   }
+
   // 娓呴櫎榛樿鍏抽棴鏍峰紡
   .el-icon-close:before {
     content: "";
   }
+
   .el-dialog__header {
     padding: 0;
     width: 0;
     height: 0;
   }
+
   .el-dialog__body {
     text-align: center;
     color: #eeeeee;
+
     h1 {
       margin-top: 0.4375rem;
       font-size: 0.1563rem;
     }
+
     span {
       font-size: 0.1094rem;
     }
   }
+
   .el-divider {
     margin: 0;
     background-color: #eeeeee;
@@ -589,43 +355,47 @@
 }
 </style>
 <style lang="scss" scoped>
-#businessPolicy {
-}
+// #businessPolicy {
+// }
 .upCentent {
   height: 0.8984rem;
   width: 9.6875rem;
   margin: 0.1172rem 0.1563rem 0 0.1563rem;
   display: flex;
+
   .upCentent_item {
     width: 1.8125rem;
     height: 0.8984rem;
-    background: url(../../../assets/images/businessPolicy/bg_1@2x.png) no-repeat
-      center;
+    background: url(../../../assets/images/businessPolicy/bg_1@2x.png) no-repeat center;
     background-size: 100% 100%;
     flex: 1;
     margin-right: 0.1563rem;
     text-align: center;
+
     &:nth-child(5) {
       margin-right: 0;
     }
+
     .icon img {
       width: 0.3125rem;
       height: 0.3125rem;
       margin-top: 0.1211rem;
     }
+
     .text {
       height: 0.0938rem;
       font-size: 0.0938rem;
-      //font-family: Source Han Sans CN, Source Han Sans CN-Light;
       font-weight: 300;
       text-align: center;
       color: #ffffff;
       line-height: 0.0938rem;
     }
+
     .numText {
       font-size: 0.0781rem;
       margin-top: 0.0977rem;
       color: #ffffff;
+
       span {
         font-size: 0.1875rem;
         //font-family: Source Han Sans CN, Source Han Sans CN-Light;
@@ -637,24 +407,27 @@
     }
   }
 }
+
 .downCentent {
   width: 9.6875rem;
   height: 4.4766rem;
   margin: 0.1406rem 0.1563rem 0.2422rem 40px;
   display: flex;
+
   .downCentent_item {
     width: 4.7656rem;
     height: 4.4766rem;
-    background: url(../../../assets/images/businessPolicy/bg_big@2x.png)
-      no-repeat center;
+    background: url(../../../assets/images/businessPolicy/bg_big@2x.png) no-repeat center;
     background-size: 100% 100%;
     flex: 1;
     margin-right: 0.1563rem;
     padding: 0 0.1289rem 0 0.1289rem;
     position: relative;
+
     &:nth-child(2) {
       margin-right: 0;
     }
+
     .centent_title {
       position: absolute;
       top: 0.0313rem;
@@ -664,9 +437,15 @@
       // text-align: left;
       color: #51d2ff;
       line-height: 0.1016rem;
+
       span {
         margin-left: 0.1445rem;
         margin-right: 0.0781rem;
+      }
+
+      img {
+        width: 0.5313rem;
+        height: 0.0625rem;
       }
     }
   }
@@ -677,8 +456,7 @@
     display: inline-block;
     width: 0.1875rem;
     height: 0.1875rem;
-    background: url(../../../assets/images/businessPolicy/dialogClose@2x.png)
-      no-repeat center;
+    background: url(../../../assets/images/businessPolicy/dialogClose@2x.png) no-repeat center;
     // background: 100% 100%;
     // background-color: red;
     margin: 0;
@@ -686,12 +464,15 @@
     top: 0.2734rem;
     left: 45%;
   }
+
   .fuTitle {
     margin-top: 0.2344rem;
+
     span {
       margin-right: 0.3125rem;
     }
   }
+
   .dialogText {
     width: 7.5rem;
     height: 2.3438rem;

--
Gitblit v1.9.1