From 7c2ff43a4f70638fb063d0aa1d2f1624e6cada33 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期六, 07 五月 2022 15:25:42 +0800
Subject: [PATCH] 其他业务
---
src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue
index 4ad47eb..1224121 100644
--- a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue
+++ b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue
@@ -4,6 +4,8 @@
<h1>鍒涗笟鎷呬繚璐锋缁熻琛�</h1>
<div class="chuangye-table">
<el-table
+ :max-height="tableHeight"
+ :cell-style="handleCellStyle"
border
:data="danbaoTableData"
style="width: 100%">
@@ -78,6 +80,8 @@
<h1>浜哄姏璧勬簮鏈嶅姟浜т笟鍥綋鏈堟儏鍐电粺璁¤〃</h1>
<div class="danbaotongjibiao-table">
<el-table
+ :cell-style="handleCellStyle"
+ :max-height="tableHeight"
border
:data="renliziyuanTableData"
:span-method="arraySpanMethod"
@@ -170,12 +174,14 @@
<script>
import {getLoanTable, getParkTable} from '@/api/jiuyeAndChuangye'
+ import nowSize from "../../../../libs/nowSize";
export default {
name: "chuangyeDanbaoDaikuan",
data() {
return {
danbaoTableData:[],
- renliziyuanTableData:[]
+ renliziyuanTableData:[],
+ tableHeight: (window.innerHeight - nowSize(400)) / 2
}
},
mounted() {
@@ -211,7 +217,21 @@
}
}
}
+ },
+ getHeight() {
+ this.tableHeight = (window.innerHeight - nowSize(400)) / 2
+ },
+ handleCellStyle({rowIndex, columnIndex}) {
+ if(columnIndex == 0) {
+ return {background:'#51D2FF'}
+ }
}
+ },
+ created() {
+ window.addEventListener('resize', this.getHeight)
+ },
+ destroy() {
+ window.addEventListener('resize', this.getHeight)
}
}
</script>
--
Gitblit v1.9.1