From 8dc1e8e11137beb5aad4852065d0c36c0d11b230 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期三, 06 四月 2022 09:32:20 +0800
Subject: [PATCH] 背景色
---
src/views/safetyproduction/gojudging.vue | 5 +++++
src/views/safetyproduction/new.vue | 7 ++++++-
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/views/safetyproduction/gojudging.vue b/src/views/safetyproduction/gojudging.vue
index 12bdd3a..eb661a8 100644
--- a/src/views/safetyproduction/gojudging.vue
+++ b/src/views/safetyproduction/gojudging.vue
@@ -59,6 +59,8 @@
<template slot-scope="scope">
<el-table
:data="scope.row.selfDeductionList"
+ border
+ :header-cell-style="{background:'#eef1f6',color:'#606266'}" :cell-style="{background:'#fff',color:'#606266'}"
>
<el-table-column prop="name" align="center" label="扣分项">
</el-table-column>
@@ -218,4 +220,7 @@
.titles {
font-size: 14px;
}
+/deep/ .el-table__expanded-cell{
+ background-color: #fff !important;
+}
</style>
diff --git a/src/views/safetyproduction/new.vue b/src/views/safetyproduction/new.vue
index 9a8f99a..5173eec 100644
--- a/src/views/safetyproduction/new.vue
+++ b/src/views/safetyproduction/new.vue
@@ -69,7 +69,9 @@
type="expand"
>
<template slot-scope="scope">
- <el-table :data="scope.row.deductionList" :cell-style="{background:'#fff',color:'#606266'}">
+ <el-table border :data="scope.row.deductionList"
+ :header-cell-style="{background:'#eef1f6',color:'#606266'}" :cell-style="{background:'#fff',color:'#606266'}"
+ >
<el-table-column
prop="name"
align="center"
@@ -476,4 +478,7 @@
background-color: #034ea2;
border: 1px solid #034ea2;
}
+/deep/ .el-table__expanded-cell{
+ background-color: #fff !important;
+}
</style>
--
Gitblit v1.9.2