瀏覽代碼

美化收费明细

huangyw 3 年之前
父節點
當前提交
291484877f
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/xt_pages/outpatientCharges/components/prescriptionTable.vue

+ 5 - 3
src/xt_pages/outpatientCharges/components/prescriptionTable.vue 查看文件

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