Pārlūkot izejas kodu

fix: 销售政策、家用工程调整

Howie 2 gadi atpakaļ
vecāks
revīzija
2862fdf5e6

+ 11 - 1
src/views/deposit_home/deposit_list.vue

@@ -197,7 +197,8 @@ export default {
       // 表格属性
       tableAttributes: {
         // 启用勾选列
-        selectColumn: false
+        selectColumn: false,
+        "row-class-name":this.tableRowClassName
       },
       // 表格事件
       tableEvents: {
@@ -283,6 +284,12 @@ export default {
       }
       return list
     },
+    tableRowClassName({row, rowIndex}){
+      if ( row.confirmResult === '驳回') {
+          return 'red-row';
+        }
+        return ''
+    },
     // 列表请求函数
     getList2(...p) {
       this.$refs.pageRef.showTable = false
@@ -420,4 +427,7 @@ export default {
     margin-right: 20px;
   }
 }
+::v-deep .red-row{
+  color: #f00;
+}
 </style>

+ 1 - 0
src/views/sales_policy/policy_list.vue

@@ -139,6 +139,7 @@ export default {
           [
             {
               name: '批量修改延期',
+              isRole: this.$checkBtnRole('yanqi', this.$route.meta.roles),
               click: () => {
                 if (!this.recordSelected.length) {
                   this.$errorMsg('请选择内容')