From 6e6be1ecbe17c1df6ab6fead53ccee8500b74826 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Fri, 1 Aug 2025 20:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/xg/xsjcxx/stuRoster/index.vue | 194 +++++++++++++++----- 1 file changed, 143 insertions(+), 51 deletions(-) diff --git a/web/src/views/xg/xsjcxx/stuRoster/index.vue b/web/src/views/xg/xsjcxx/stuRoster/index.vue index 49294e37..930026c3 100644 --- a/web/src/views/xg/xsjcxx/stuRoster/index.vue +++ b/web/src/views/xg/xsjcxx/stuRoster/index.vue @@ -136,64 +136,97 @@ + + +
-
- - - -
-
- - - +
+ +
+ + + +
+
+ + + +
+
+

{{ item.name }}

+

{{ item.studentNo }}

+ + {{ getStudentStatusLabel(item.studentStatus) }} + +
-
-

{{ item.name }}

-

{{ item.studentNo }}

- - {{ getStudentStatusLabel(item.studentStatus) }} - +
+

院系:{{ item.collegeName || '未设置' }}

+

专业:{{ item.majorName || '未设置' }}

+

班级:{{ item.className || '未设置' }}

+

手机:{{ item.phone || '未设置' }}

+

入学年份:{{ item.enrollmentYear || '未设置' }}

-
-
-

院系:{{ item.collegeName || '未设置' }}

-

专业:{{ item.majorName || '未设置' }}

-

班级:{{ item.className || '未设置' }}

-

手机:{{ item.phone || '未设置' }}

-

入学年份:{{ item.enrollmentYear || '未设置' }}

-
-
- - - 双击查看详情 - -
-
-
-
+
+ + + 双击查看详情 + +
+ + + +
+ + +
+ + + + +
@@ -1229,6 +1262,48 @@ onMounted(() => { font-weight: 500; } +/* 空状态容器样式 */ +.empty-container { + display: flex; + align-items: center; + justify-content: center; + min-height: 400px; + padding: 40px 20px; +} + +.card-empty-container { + display: flex; + align-items: center; + justify-content: center; + min-height: 400px; + height: 100%; + width: 100%; + padding: 40px 20px; +} + +.empty-description { + color: #909399; + font-size: 16px; + margin-top: 16px; +} + +.card-empty-container .empty-description { + color: #909399; + font-size: 18px; + margin-top: 20px; +} + +/* 空状态图标和文字的间距优化 */ +.empty-container :deep(.el-empty__description), +.card-empty-container :deep(.el-empty__description) { + margin-top: 16px; +} + +.empty-container :deep(.el-empty__image), +.card-empty-container :deep(.el-empty__image) { + margin-bottom: 20px; +} + /* 响应式布局 */ @media (max-width: 1200px) { .left-panel { @@ -1293,5 +1368,22 @@ onMounted(() => { .card-content { font-size: 12px; } + + /* 移动端空状态样式调整 */ + .empty-container, + .card-empty-container { + min-height: 300px; + padding: 20px 10px; + } + + .empty-description, + .card-empty-container .empty-description { + font-size: 14px; + } + + .empty-container :deep(.el-empty__image) .el-icon, + .card-empty-container :deep(.el-empty__image) .el-icon { + font-size: 100px !important; + } }