feat: 修改峰谷平的报表

This commit is contained in:
zty 2024-12-06 15:06:38 +08:00
parent 2427752b2a
commit bf581b872d
1 changed files with 8 additions and 19 deletions

View File

@ -58,24 +58,6 @@
</div>
</el-header>
<el-card style="margin-top:5px">
<!-- <div ref="print" id="myReport" class="printContainer">
<h3 style="text-align: center;">{{ tableName }}</h3>
<el-table
:data="tableData"
style="width: 100%"
border
:height="tableHeight"
:span-method="objectSpanMethod">
<el-table-column
v-for="item in tableData[0]"
:key="item"
:prop="item"
:label="item"
width="100">
</el-table-column>
</el-table>
</div> -->
<div>
<table id="myTable" class="myTable" border="1" cellspacing="0" style="width: 100%; text-align: center;">
<thead class="myTableHead">
@ -86,7 +68,14 @@
</thead>
<tbody>
<tr v-for="(row, rowIndex) in tableData" :key="rowIndex">
<td v-for="(cell, cellIndex) in row" :key="cellIndex"
<td
v-if="rowIndex === 0 || rowIndex === 2 || rowIndex === 4"
:rowspan="rowIndex === 0 || rowIndex === 2 ? 2 : 1"
>
{{ row[0] }}
</td>
<td>{{ row[1] }}</td>
<td v-for="(cell, cellIndex) in row.slice(2)" :key="cellIndex"
>{{ cell }}</td>
</tr>
</tbody>