谢杰标 2 лет назад
Родитель
Сommit
60f7c56b15
2 измененных файлов с 20 добавлено и 2 удалено
  1. 1 0
      src/components/searchBoxNew.vue
  2. 19 2
      src/views/financed/arap/index.vue

+ 1 - 0
src/components/searchBoxNew.vue

@@ -237,6 +237,7 @@
             v-model="formData[item.prop]"
             :placeholder="item.placeholder"
             :size="size"
+            clearable
           >
             <el-option
               v-for="(items, indexs) in roleList"

+ 19 - 2
src/views/financed/arap/index.vue

@@ -293,8 +293,12 @@ export default {
         openCheckMore: true,
         changeWidth: "240px",
         custom: false,
-        tableColor: ({ row, rowIndex }) => {
-          console.log(row, 987);
+        tableColor: true,
+        tableColorFunc: ({ row, rowIndex }) => {
+          if (row.oId) {
+            return "child-row";
+          }
+          return "";
         },
       },
       formData: {
@@ -835,6 +839,9 @@ export default {
           month: [],
         };
       }
+      this.maps.forEach((value, id) => {
+        this.update(id);
+      });
       this.getDataList();
     },
     init() {
@@ -941,4 +948,14 @@ export default {
     content: ",";
   }
 }
+/deep/ {
+  .el-table {
+    .child-row {
+      background: #f0f9eb;
+      .el-table__cell {
+        background: #f0f9eb !important;
+      }
+    }
+  }
+}
 </style>