Commit f6417da23b9901a313bce872cb9ea0864ed423a5
1 parent
4ec15a7a
fix: 修复table高度问题
Showing
2 changed files
with
3 additions
and
2 deletions
src/views/main/main/index.vue
| @@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
| 24 | <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> | 24 | <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> |
| 25 | </el-row> | 25 | </el-row> |
| 26 | 26 | ||
| 27 | - <el-table border v-loading="loading" :data="mainList" @selection-change="handleSelectionChange"> | 27 | + <el-table max-height="600" border v-loading="loading" :data="mainList" @selection-change="handleSelectionChange"> |
| 28 | <el-table-column label="工号" align="center" prop="jobCode" /> | 28 | <el-table-column label="工号" align="center" prop="jobCode" /> |
| 29 | <el-table-column label="姓名" align="center" prop="name" /> | 29 | <el-table-column label="姓名" align="center" prop="name" /> |
| 30 | <el-table-column label="是否工作" align="center" prop="workFlag"> | 30 | <el-table-column label="是否工作" align="center" prop="workFlag"> |
src/views/main/manager/index.vue
| @@ -36,7 +36,8 @@ | @@ -36,7 +36,8 @@ | ||
| 36 | </el-col> | 36 | </el-col> |
| 37 | </el-row> | 37 | </el-row> |
| 38 | 38 | ||
| 39 | - <el-table v-loading="loading" :stripe="true" :data="driverList" border @selection-change="handleSelectionChange"> | 39 | + <el-table max-height="600" v-loading="loading" :stripe="true" :data="driverList" border |
| 40 | + @selection-change="handleSelectionChange"> | ||
| 40 | <el-table-column type="selection" width="40" align="center" fixed="left" /> | 41 | <el-table-column type="selection" width="40" align="center" fixed="left" /> |
| 41 | <el-table-column label="工号" show-overflow-tooltip="true" align="center" width="100" prop="jobCode" fixed="left" /> | 42 | <el-table-column label="工号" show-overflow-tooltip="true" align="center" width="100" prop="jobCode" fixed="left" /> |
| 42 | <el-table-column label="姓名" show-overflow-tooltip="true" align="center" width="100" prop="name" fixed="left" /> | 43 | <el-table-column label="姓名" show-overflow-tooltip="true" align="center" width="100" prop="name" fixed="left" /> |