固定表头

This commit is contained in:
bb_pan 2025-08-21 13:37:24 +08:00
parent 7e3bbbdd9f
commit b7c5a3a04f
7 changed files with 7 additions and 6 deletions

View File

@ -54,6 +54,7 @@
ref="multipleTable"
@selection-change="handleSelectionChange"
row-key="id"
:max-height="650"
>
<el-table-column type="selection" align="center" :selectable="selectable" />
<el-table-column label="序号" align="center" type="index">

View File

@ -59,7 +59,7 @@
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="tableList" @selection-change="handleSelectionChange">
<el-table v-loading="loading" :data="tableList" @selection-change="handleSelectionChange" :max-height="650">
<el-table-column
type="selection"
width="55"

View File

@ -51,7 +51,7 @@
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="tableList">
<el-table v-loading="loading" :data="tableList" :max-height="650">
<el-table-column label="序号" align="center" width="80" type="index">
<template slot-scope="scope">
<span>{{ (queryParams.pageNum - 1) * 10 + scope.$index + 1 }}</span>

View File

@ -79,7 +79,7 @@
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="typeList" @selection-change="handleSelectionChange">
<el-table v-loading="loading" :data="typeList" @selection-change="handleSelectionChange" :max-height="650">
<el-table-column width="60" align="center" label="序号" type="index">
<template slot-scope="scope">
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>

View File

@ -34,7 +34,7 @@
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="tableList" :span-method="objectSpanMethod">
<el-table v-loading="loading" :data="tableList" :span-method="objectSpanMethod" :max-height="650">
<el-table-column label="序号" align="center" type="index">
<template scope="scope">
<span v-if="scope.$index == 0">合计</span>

View File

@ -34,7 +34,7 @@
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="tableList" :span-method="objectSpanMethod">
<el-table v-loading="loading" :data="tableList" :span-method="objectSpanMethod" :max-height="650">
<el-table-column label="序号" align="center" type="index">
<template scope="scope">
<span v-if="scope.$index == 0">合计</span>

View File

@ -51,7 +51,7 @@
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="typeList">
<el-table v-loading="loading" :data="typeList" :max-height="650">
<el-table-column width="60" align="center" label="序号" type="index">
<template slot-scope="scope">
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>