Bläddra i källkod

美化收费明细

huangyw 3 år sedan
förälder
incheckning
291484877f
1 ändrade filer med 5 tillägg och 3 borttagningar
  1. 5 3
      src/xt_pages/outpatientCharges/components/prescriptionTable.vue

+ 5 - 3
src/xt_pages/outpatientCharges/components/prescriptionTable.vue Visa fil

@@ -149,7 +149,7 @@
149 149
       :data="prescription.project"
150 150
       border
151 151
       style="width: 99%"
152
-      :row-style="{ color: '#303133' }"
152
+      :row-style="changColor"
153 153
       :header-cell-style="{
154 154
         backgroundColor: 'rgb(245, 247, 250)',
155 155
         color: '#606266',
@@ -349,11 +349,13 @@ export default {
349 349
     changColor({ row, rowIndex }) {
350 350
      if (rowIndex % 2 == 1) { // 变颜色的条件
351 351
 		return {
352
-		backgroundColor: "#ACD6FF"  // 这个return的就是样式 可以是color 也可以是backgroundColor
352
+		backgroundColor: "#ACD6FF",
353
+    color: '#303133'  // 这个return的就是样式 可以是color 也可以是backgroundColor
353 354
 		}
354 355
 	}else{
355 356
     return {
356
-      backgroundColor:"#FFF8D7"
357
+      backgroundColor:"#FFF8D7",
358
+      color: '#303133'
357 359
     }
358 360
   }
359 361
     },