From c6c12fba04f26d07f6107377f0c8093d780f5e92 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 26 Mar 2021 17:35:40 +0800
Subject: [PATCH] 包裹图片,体温,健康码页面优化

---
 src/views/healthcode/healthcode.vue |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/src/views/healthcode/healthcode.vue b/src/views/healthcode/healthcode.vue
index ca6170e..6485a3b 100644
--- a/src/views/healthcode/healthcode.vue
+++ b/src/views/healthcode/healthcode.vue
@@ -8,6 +8,7 @@
                :before-open="beforeOpen"
                v-model="form"
                ref="crud"
+               :row-style="rowStyle"
                @row-update="rowUpdate"
                @row-save="rowSave"
                @row-del="rowDel"
@@ -66,7 +67,7 @@
           tip: false,
           searchShow: true,
           searchMenuSpan: 6,
-          activeClass: 3,
+          activeClass: 0,
           border: true,
           index: true,
           viewBtn: true,
@@ -233,6 +234,13 @@
       refreshChange() {
         this.onLoad(this.page, this.query);
       },
+      rowStyle({row, column, rowIndex}){
+         if(row.type=="3"){
+           return {
+             color:"#fe1515"
+           }
+         }
+      },
       getHealthcodeData(e) {
         this.activeClass = e;
         //status 0:本日  1:本月  2:本年   type: 1:绿色   2:黄色  3:红色
@@ -304,3 +312,10 @@
     }
   };
 </script>
+<style scoped>
+  .el-button.btn-color {
+    color: rgb(255, 255, 255);
+    background-color: rgb(64, 158, 255);
+    border-color: rgb(64, 158, 255);
+  }
+</style>

--
Gitblit v1.9.3