Browse Source

0427jiatijiao

liuhj 1 year ago
parent
commit
62b7edeafd
1 changed files with 22 additions and 7 deletions
  1. 22 7
      src/components/statistics/Reportstbale.vue

+ 22 - 7
src/components/statistics/Reportstbale.vue

@@ -293,7 +293,8 @@
                 <div class="reportsbale-table-li">
                     <el-table
                     :data="groupHotelFeeViews"
-                    style="width: 100%">
+                    style="width: 100%"
+                    :row-style="TableRowStyle">
                         <el-table-column
                         label="酒店预订费用">
                             <el-table-column
@@ -457,7 +458,8 @@
                     <el-table
                     :data="groupCTGGRFeeViews"
                     border
-                    style="width: 100%;">
+                    style="width: 100%;"
+                    :row-style="TableRowStyle">
                         <el-table-column
                         label="地接费用">
                             <el-table-column
@@ -549,7 +551,8 @@
                     <el-table
                     :data="groupAirFeeViews"
                     border
-                    style="width: 100%;">
+                    style="width: 100%;"
+                    :row-style="TableRowStyle">
                         <el-table-column
                         label="机票费用">
                             <el-table-column
@@ -642,7 +645,8 @@
                     <el-table
                     :data="groupVisaFeeViews"
                     border
-                    style="width: 100%;">
+                    style="width: 100%;"
+                    :row-style="TableRowStyle">
                         <el-table-column
                         label="签证费用">
                             <el-table-column
@@ -715,7 +719,8 @@
                     <el-table
                     :data="groupInvitationalFeeViews"
                     border
-                    style="width: 100%;">
+                    style="width: 100%;"
+                    :row-style="TableRowStyle">
                         <el-table-column
                         label="邀请/公务活动费用">
                             <el-table-column
@@ -816,7 +821,8 @@
                     <el-table
                     :data="groupInsuranceFeeViews"
                     border
-                    style="width: 100%;">
+                    style="width: 100%;"
+                    :row-style="TableRowStyle">
                         <el-table-column
                         label="保险费用">
                             <el-table-column
@@ -877,7 +883,8 @@
                     <el-table
                     :data="groupDecreaseFeeViews"
                     border
-                    style="width: 100%;">
+                    style="width: 100%;"
+                    :row-style="TableRowStyle">
                         <el-table-column
                         label="其他款项费用">
                             <el-table-column
@@ -1081,6 +1088,14 @@ export default {
                 }
             }, 16);
         },
+        TableRowStyle({ row, rowIndex }) {
+            // 注意,这里返回的是一个对象
+            let rowBackground = {};
+            if (row.isPay==0) {
+                rowBackground.background = "#f0f9ff";
+                return rowBackground;
+            }
+        },
         // 为了计算距离顶部的高度,当高度大于60显示回顶部图标,小于60则隐藏
         scrollToTop() {
             console.log(123);