From 1e852d03a904fe4738e03b1f3340aeb5fe420467 Mon Sep 17 00:00:00 2001 From: zhaichao Date: Thu, 27 Aug 2026 16:38:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E6=89=8D=E5=9F=B9=E5=85=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/classHour/plan/index.vue | 220 ++++++++++++-------- 1 file changed, 129 insertions(+), 91 deletions(-) diff --git a/frontend/src/views/classHour/plan/index.vue b/frontend/src/views/classHour/plan/index.vue index 626e0e2e0..6b80b9e82 100644 --- a/frontend/src/views/classHour/plan/index.vue +++ b/frontend/src/views/classHour/plan/index.vue @@ -15,97 +15,108 @@ 查询 - 新增{{ currentTitle }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
{{ currentTitle }}
+
+ 新增{{ currentTitle }} +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + { state.loading = false + this.$nextTick(() => { + this.$refs.tableRef && this.$refs.tableRef.doLayout() + }) }) }, @@ -634,13 +648,6 @@ export default { } .plan-page { - .list-title { - font-size: 16px; - font-weight: 600; - color: #303133; - margin-bottom: 12px; - } - // ==================== 1. 查询区域 ==================== .search-card { margin-bottom: 16px; @@ -654,6 +661,37 @@ export default { // ==================== 2. 数据表格 ==================== .table-card { + .table-title { + font-size: 16px; + font-weight: 600; + color: #303133; + margin-bottom: 8px; + } + + .list-toolbar { + display: flex; + justify-content: flex-end; + margin-bottom: 12px; + } + + ::v-deep .el-table .cell { + white-space: nowrap; + } + + /* 修复操作栏 cell 底部错位: + el-button--small 实际高度 30px, 但 .cell 默认 line-height:23px 装不下, + 按钮溢出 cell 顶部被 overflow:hidden 截掉, 导致按钮底部离行底比文字列小 12px。 + 把 td 上下 padding 去掉、cell line-height 改成 30px, 让 cell 高度 = 按钮高度, + 并把 cell 顶端贴 td 顶端, 按钮底部就与文字列底部对齐(都离 td 底约 17px)。 */ + ::v-deep .op-cell { + padding-top: 0 !important; + padding-bottom: 0 !important; + } + ::v-deep .op-cell > .cell { + line-height: 30px !important; + padding: 0 10px; + } + .pagination { display: flex; justify-content: flex-end;