From 08b5ddfa9a0a2ed52bd7d7b98ca16ef4dcc610a6 Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123 <819527061@qq.com>
Date: 星期二, 13 九月 2022 14:19:43 +0800
Subject: [PATCH] 页面修改
---
src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue | 235 +++++++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 207 insertions(+), 28 deletions(-)
diff --git a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue
index bb28ab5..1224121 100644
--- a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue
+++ b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue
@@ -2,7 +2,41 @@
<div class="chuangyeDanbaoDaikuan-wrap">
<div class="danbaotongjibiao-box">
<h1>鍒涗笟鎷呬繚璐锋缁熻琛�</h1>
- <table class="chuangye-table-box">
+ <div class="chuangye-table">
+ <el-table
+ :max-height="tableHeight"
+ :cell-style="handleCellStyle"
+ border
+ :data="danbaoTableData"
+ style="width: 100%">
+ <el-table-column
+ align="center"
+ prop="jmonth"
+ label="鏃堕棿">
+ </el-table-column>
+ <el-table-column
+ align="center"
+ prop="loanNums"
+ label="鏀捐捶绗旀暟锛堢瑪锛�">
+ </el-table-column>
+ <el-table-column
+ align="center"
+ prop="loanNums"
+ label="鏀捐捶閲戦锛堜竾鍏冿級">
+ </el-table-column>
+ <el-table-column
+ align="center"
+ prop="supportNums"
+ label="鐩存帴鎵舵寔鑷富鍒涗笟锛堜汉锛�">
+ </el-table-column>
+ <el-table-column
+ align="center"
+ prop="addjobNums"
+ label="甯﹀姩灏变笟锛堜汉锛�">
+ </el-table-column>
+ </el-table>
+ </div>
+ <!--<table class="chuangye-table-box">
<thead>
<tr>
<th>
@@ -18,14 +52,14 @@
</tr>
</thead>
<tbody>
- <tr>
- <th>12鏈�</th>
- <td>57</td>
- <td>5327</td>
- <td>57</td>
- <td>57</td>
+ <tr v-for="(item,index) in tableData" :key="index">
+ <th>{{item.jmonth}}</th>
+ <td>{{item.loanNums}}</td>
+ <td>{{item.loanAmount}}</td>
+ <td>{{item.supportNums}}</td>
+ <td>{{item.addjobNums}}</td>
</tr>
- <tr>
+ <!–<tr>
<th>1鈥斺��12鏈堢疮璁�</th>
<td>257</td>
<td>1327</td>
@@ -38,13 +72,58 @@
<td>1327.5</td>
<td>5557</td>
<td>16757</td>
- </tr>
+ </tr>–>
</tbody>
- </table>
+ </table>-->
</div>
<div class="danbaotongjibiao-box">
- <h1>鍒涗笟鎷呬繚璐锋缁熻琛�</h1>
- <table class="chuangye-table-box">
+ <h1>浜哄姏璧勬簮鏈嶅姟浜т笟鍥綋鏈堟儏鍐电粺璁¤〃</h1>
+ <div class="danbaotongjibiao-table">
+ <el-table
+ :cell-style="handleCellStyle"
+ :max-height="tableHeight"
+ border
+ :data="renliziyuanTableData"
+ :span-method="arraySpanMethod"
+ style="width: 100%">
+ <el-table-column
+ align="center"
+ prop="parkName"
+ label="浜т笟鍥悕绉�">
+ </el-table-column>
+ <el-table-column
+ align="center"
+ prop="startTime"
+ label="寮�鍥繍钀ユ椂闂�">
+ </el-table-column>
+ <el-table-column
+ align="center"
+ prop="parkArea"
+ label="寤虹瓚闈㈢Н锛堜竾骞虫柟绫筹級">
+ </el-table-column>
+ <el-table-column
+ align="center"
+ prop="enterpriseNums"
+ label="鍏ヤ綇浼佷笟锛堝锛�">
+ </el-table-column>
+ <el-table-column
+ align="center"
+ prop="income"
+ :label="'钀ヤ笟鏀跺叆锛堜嚎鍏冿級 \n 锛堝惈浠f敹浠d粯锛�'">
+ </el-table-column>
+ <el-table-column
+ align="center"
+ prop="taxAmount"
+ label="绾崇◣棰濓紙浜垮厓锛�">
+ </el-table-column>
+ <el-table-column
+ align="center"
+ prop="personnels"
+ label="寮曡繘楂樺眰娆′汉鎵嶏紙浜猴級">
+ </el-table-column>
+ </el-table>
+ </div>
+ <!--<table class="chuangye-table-box">
<thead>
<tr>
<th>浜т笟鍥悕绉�</th>
@@ -88,29 +167,124 @@
<td>16757</td>
</tr>
</tbody>
- </table>
+ </table>-->
</div>
</div>
</template>
<script>
+ import {getLoanTable, getParkTable} from '@/api/jiuyeAndChuangye'
+ import nowSize from "../../../../libs/nowSize";
export default {
name: "chuangyeDanbaoDaikuan",
data() {
return {
-
+ danbaoTableData:[],
+ renliziyuanTableData:[],
+ tableHeight: (window.innerHeight - nowSize(400)) / 2
}
+ },
+ mounted() {
+ this.getLoanTable()
+ this.getParkTable()
+ },
+ methods: {
+ getLoanTable() {
+ getLoanTable().then(res => {
+ if(res.code == 1000) {
+ this.danbaoTableData = res.list
+ }
+ })
+ },
+ getParkTable() {
+ getParkTable().then(res => {
+ if(res.code == 1000) {
+ this.renliziyuanTableData = res.list
+ }
+ })
+ },
+ arraySpanMethod({ row, column, rowIndex, columnIndex }) {
+ if(rowIndex === 0) {
+ if(columnIndex === 0) {
+ return {
+ rowspan: 1,
+ colspan: 2
+ }
+ }else if(columnIndex === 1) {
+ return {
+ rowspan: 0,
+ colspan: 0
+ }
+ }
+ }
+ },
+ 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>
+<style lang="scss">
+ @import "../../../../assets/css/base";
+ .danbaotongjibiao-table,.chuangye-table{
+ .el-table tr{
+ background-color: #CEF2FF;
+ height: 0.4375rem /* 112/256 */;
+ }
+ .el-table th.el-table__cell{
+ background-color: #51D2FF;
+ }
+ .el-table__fixed, .el-table__fixed-right,.el-table__fixed-right::before, .el-table__fixed::before{
+ background-color: #51D2FF;
+ }
+ .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{
+ background-color: #A8E9FF;
+ }
+ .el-table thead{
+ color: #111111;
+ }
+ .el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf{
+ border-bottom: 1Px solid #8E8E8E;
+ }
+ .el-table--border .el-table__cell, .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed{
+ border-right: 1Px solid #8E8E8E;
+ }
+ .el-table .el-table__cell{
+ padding: 0.0859375rem /* 22/256 */ 0;
+ }
+ .el-table__body tr.hover-row.current-row>td.el-table__cell, .el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell, .el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell, .el-table__body tr.hover-row>td.el-table__cell{
+ background: transparent;
+ }
+ .el-table .cell{
+ font-size: $fontSize-28;
+ color: $color-darkGrey;
+ font-weight: 300;
+ line-height: 1.3;
+ }
+ }
+</style>
<style lang="scss" scoped>
@import "../../../../assets/css/base";
.chuangyeDanbaoDaikuan-wrap{
width: 100%;
- height: 100%;
+ height: calc(100% - 0.07813rem);
.danbaotongjibiao-box{
- margin-top: 2rem;
+ margin-top: 0.078125rem /* 20/256 */;
+ &:nth-child(2) {
+ margin-top: 0.234375rem /* 60/256 */;
+ }
h1{
font-size: $fontSize-30;
color: $color-white;
@@ -118,17 +292,22 @@
line-height: 2;
}
}
+ .chuangye-table,.danbaotongjibiao-table{
+ margin-top: 0.078125rem /* 20/256 */;
+ }
.chuangye-table-box{
width: 100%;
- border: 1px solid $color-grey; /*no*/
+ border: 1Px solid $color-grey; /*no*/
border-collapse:collapse;
table-layout: fixed;
thead{
background-color: $color-blue;
- height: 11.2rem /* 112/10 */;
+ tr{
+ height: 0.4375rem /* 112/256 */;
+ }
th,td{
color: $color-darkGrey;
- border:1px solid $color-grey; /*no*/
+ border:1Px solid $color-grey; /*no*/
font-weight: 300;
font-size: $fontSize-28;
}
@@ -138,24 +317,24 @@
&::after{
content: '';
width: calc(100%);
- height: 1px; /*no*/
+ height: 1Px; /*no*/
background-color: $color-grey;
position: absolute;
- left: -0.1rem /* -1/10 */;
- top: 0rem /* 22/10 */;
+ left: -1Px;
+ top: 0;
transform: rotate(10deg);
}
.time{
position: absolute;
- left: 10rem;
+ left: 0.390625rem /* 100/256 */;
top: 0rem;
font-size: $fontSize-28;
font-weight: 300;
}
.xiaomu{
position: absolute;
- right: 10rem;
- top: -3rem;
+ right: 0.390625rem /* 100/256 */;
+ top: -0.1171875rem /* -30/256 */;
font-size: $fontSize-28;
font-weight: 300;
}
@@ -164,10 +343,10 @@
background-color: #CEF2FF;
th,td{
color: $color-darkGrey;
- height: 11.2rem /* 112/10 */;
- line-height: 11.2rem;
+ height: 0.4375rem /* 112/256 */;
+ line-height: 0.4375rem /* 112/256 */;
text-align: center;
- border:1px solid $color-grey; /*no*/
+ border:1Px solid $color-grey; /*no*/
font-weight: 300;
font-size: $fontSize-28;
}
--
Gitblit v1.9.1