From 87cbee9b14970d997c1e5c54b5fef4d04369c968 Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123456 <zxx19900626>
Date: 星期四, 05 五月 2022 09:57:52 +0800
Subject: [PATCH] 社会收支总表修改
---
src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoChikaRenshu.vue | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoChikaRenshu.vue b/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoChikaRenshu.vue
index 9106609..a653ca2 100644
--- a/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoChikaRenshu.vue
+++ b/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoChikaRenshu.vue
@@ -2,18 +2,20 @@
<div class="shebaoChikaRenshu-wrap">
<h1>鍚勫幙锛堝競銆佸尯锛�2021骞村氨涓氭儏鍐电粺璁¤〃</h1>
<el-table
+ :cell-style="handleCellStyle"
:max-height="tableHeight"
:data="tableData"
stripe
border
style="width: 100%">
- <template v-for="item in headerArry">
+ <template v-for="(item,index) in headerArry">
<el-table-column
+ :key="index"
align="center"
:prop="item.val"
:label="item.time">
<template slot-scope="scope">
- <spn>{{item}}</spn>
+ <span>{{scope.row[index].val}}</span>
</template>
</el-table-column>
</template>
@@ -113,7 +115,6 @@
if(res.code == 1000) {
let result = res.list
let data = []
- console.log('result---',result)
result.forEach((item,index) => {
let row = item.dataList
row.unshift({
@@ -127,13 +128,16 @@
})
this.tableData = data
- console.log('this.headerArry------',this.headerArry)
- console.log('this.tableData------',this.tableData)
}
})
},
getHeight() {
this.tableHeight = window.innerHeight - nowSize(250)
+ },
+ handleCellStyle({rowIndex, columnIndex}) {
+ if(columnIndex == 0) {
+ return { background:'#51D2FF' }
+ }
}
},
created() {
@@ -180,6 +184,9 @@
color: $color-darkGrey;
font-weight: 300;
line-height: 1;
+ span{
+ font-size: $fontSize-28;
+ }
}
}
</style>
--
Gitblit v1.9.1