| | |
| | | </tbody> |
| | | </table>--> |
| | | <el-table |
| | | :height="tableHeight" |
| | | :data="tableData" |
| | | :span-method="objectSpanMethod" |
| | | :cell-style="cellClass" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import nowSize from "../../../../libs/nowSize"; |
| | | import {getGraduateTable} from '@/api/jiuyeAndChuangye' |
| | | export default { |
| | | name: "biyeshengStatistics", |
| | |
| | | return { |
| | | tableData: [], |
| | | heardArry: [], |
| | | rowIndexArr: []//存储合并单元格的开始位置 |
| | | rowIndexArr: [],//存储合并单元格的开始位置 |
| | | tableHeight: window.innerHeight - nowSize(230) |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | document.querySelector('.getTextWidth').remove() |
| | | return width |
| | | }, |
| | | getHeight() { |
| | | this.tableHeight = window.innerHeight - nowSize(230) |
| | | } |
| | | }, |
| | | watch: { |
| | | created() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | }, |
| | | destroyed() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | } |
| | | } |
| | | </script> |
| | |
| | | .biyeshengStatistics-wrap{ |
| | | width: 100%; |
| | | height: 100%; |
| | | overflow-y: auto; |
| | | .biyeshengStatistics-table{ |
| | | width: 100%; |
| | | border: 1Px solid $color-grey; /*no*/ |