Sfoglia il codice sorgente

表头背景色更改

duy 2 anni fa
parent
commit
fe0d465a19

+ 3 - 3
src/views/static/components/tab-all.vue

@@ -26,7 +26,7 @@
                     </el-table-column>
                 </el-table-column>
             </el-table>
-            <el-table :data="tableData" border class="mt-4" v-if="costcheck==2" :header-cell-style="{ background:'#F5F7FA', fontSize:'16px'}" >
+            <el-table :data="tableData" border class="mt-4" v-if="costcheck==2" :header-cell-style="{ background:'rgb(214, 225, 255)', fontSize:'16px',color:'black'}" >
                 <el-table-column 
                 v-for="item in tableprojectColData"  
                 :prop="item.id"
@@ -35,7 +35,7 @@
                 
                 ></el-table-column>
             </el-table>
-            <el-table :data="tableData" border class="mt-4" v-if="costcheck!=='2'&&costcheck!=='1'" :header-cell-style="{ background:'#F5F7FA' ,fontSize:'16px'}" >
+            <el-table :data="tableData" border class="mt-4" v-if="costcheck!=='2'&&costcheck!=='1'" :header-cell-style="{ background:'rgb(214, 225, 255)', fontSize:'16px',color:'black'}" >
                 <el-table-column 
                 v-for="item in otherColData"  
                 :prop="item.id"
@@ -355,7 +355,7 @@ const otherColData=ref([
 
 const headerStyle=({ row, column, rowIndex, columnIndex })=>{
 
-    const comStyle = {fontSize:"16px" };
+    const comStyle = {fontSize:"16px" ,background: "rgb(214, 225, 255)",color:'black'}
       // 1.1 让第0行的第0列跨2行
       if (rowIndex === 0 && columnIndex === 0
       ||rowIndex === 0 && columnIndex === 1

+ 1 - 1
src/views/static/components/tab-decost.vue

@@ -149,7 +149,7 @@ const tableColData=ref([
 //合并
 
 const headerStyle=({ row, column, rowIndex, columnIndex })=>{
-  const comStyle = {fontSize:"16px" };
+  const comStyle = {fontSize:"16px" ,background: "rgb(214, 225, 255)",color:'black'}
       // 1.1 让第0行的第0列跨2行
       if (rowIndex === 0 && columnIndex === 0) {
         nextTick(() => {

+ 1 - 1
src/views/static/components/tab-mannager.vue

@@ -110,7 +110,7 @@ const tableColData=ref([
 //合并
 
 const headerStyle=({ row, column, rowIndex, columnIndex })=>{
-  const comStyle = {fontSize:"16px" };
+  const comStyle = {fontSize:"16px" ,background: "rgb(214, 225, 255)",color:'black'}
       // 1.1 让第0行的第0列跨2行
       if (rowIndex === 0 && columnIndex === 0) {
         nextTick(() => {

+ 1 - 1
src/views/static/components/tab-month.vue

@@ -121,7 +121,7 @@ const tableColData=ref([
 //合并
 
 const headerStyle=({ row, column, rowIndex, columnIndex })=>{
-  const comStyle = {fontSize:"16px" };
+  const comStyle = {fontSize:"16px" ,background: "rgb(214, 225, 255)",color:'black'}
       // 1.1 让第0行的第0列跨2行
       if (rowIndex === 0 && columnIndex === 0) {
         nextTick(() => {