feat: 修改峰谷平的报表
This commit is contained in:
parent
2427752b2a
commit
bf581b872d
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue