ソースを参照

合计项目变色显示

yanliming 1 年間 前
コミット
3fe03ea161

+ 12 - 14
src/views/base/fundIncomeInfo-list.vue

@@ -77,7 +77,6 @@
         style="min-height:400px;"
         height="500"
         v-loading="loading"
-        stripe
         border
         @cell-click="handleCellClick"
         :row-class-name="tableRowClassName"
@@ -127,6 +126,7 @@
         <el-table-column  prop="curMonthReceived"  label="本月到账资金" width="200">
             <div class="item" slot-scope="scope">
                 <el-input-number 
+                v-if="!scope.row.isSum"
                 style="width:180px"
                 size="mini" 
                 class="item__input" 
@@ -134,7 +134,7 @@
                 v-model="scope.row.curMonthReceived" 
                 @blur="saveNum(scope.row)">
               </el-input-number>
-                <div class="item__txt">{{scope.row.curMonthReceived}}</div>
+              <div class="item__txt">{{scope.row.curMonthReceived}}</div>
             </div>
         </el-table-column>
         <el-table-column  prop="actualTotalRevenue"  label="实际总收入"  width="200">
@@ -146,7 +146,7 @@
                  :precision="2" :step="0.1"
                  v-model="scope.row.actualTotalRevenue" 
                  @blur="save(scope.row)"></el-input-number>
-                <div class="item__txt">{{scope.row.actualTotalRevenue}}</div>
+                <div class="item__txt" v-if="!scope.row.isSum">{{scope.row.actualTotalRevenue}}</div>
             </div>
         </el-table-column>
         <el-table-column  prop="accumulatedArrears"  label="累计欠费" width="200">
@@ -158,7 +158,7 @@
                   :precision="2" :step="0.1"
                   v-model="scope.row.accumulatedArrears"
                   @blur="save(scope.row)"></el-input-number>
-                <div class="item__txt">{{scope.row.accumulatedArrears}}</div>
+                <div class="item__txt" v-if="!scope.row.isSum">{{scope.row.accumulatedArrears}}</div>
             </div>
         </el-table-column>
         <el-table-column  prop="incomeTimeRange"  label="收入时间区间" width="200">
@@ -776,7 +776,9 @@
           if (row.isSum) {
             return 'success-row';
           }
-          return ''; 
+          else{
+            return ''; 
+          }
         }
       
     },
@@ -788,15 +790,6 @@
     }
   };
   </script>
-<style>
-  .el-table .warning-row {
-    background: oldlace;
-  }
-
-  .el-table .success-row {
-    background: #f0f9eb;
-  }
-</style>
   <style lang="scss" scoped>
   .el-breadcrumb {
     margin: 10px;
@@ -848,3 +841,8 @@
   cursor: pointer; /* 将鼠标光标设置为手形 */
   }
   </style>
+  <style>
+  .el-table .success-row {
+    background: #f0f9eb;
+  }
+</style>

+ 3 - 1
src/views/base/templateDepartment-list.vue

@@ -87,7 +87,9 @@
           <template slot-scope="{row}" >
             <el-button v-if="row.attachment&&row.status=='0'" size="mini" type="warning" @click="handleSave(row)">保存附件</el-button>
             <el-button size="mini" type="primary" @click="handleOption(row)">模板选项</el-button>
-            <el-button v-if="row.status=='0'" size="mini" type="success" @click="handleChecked(row)">审核</el-button>
+            <permission-detect class="inline" style="display:inline;margin-left:10px" path="/base/templateDepartment/Checked" method="post">
+              <el-button v-if="row.status=='0'" size="mini" type="success" @click="handleChecked(row)">审核</el-button>
+            </permission-detect>
           </template>
         </el-table-column>
       </el-table>