From fc75f2f27f1ce66801c5637175046f8c65a81249 Mon Sep 17 00:00:00 2001 From: zhang_12370 <z2864490065@outlook.com> Date: 星期四, 26 六月 2025 09:58:18 +0800 Subject: [PATCH] 完善部分页面查看 --- src/views/index.vue | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 60dba1c..525a893 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -88,8 +88,8 @@ <div class="card-header"> <h3>閿�鍞暟鎹�</h3> </div> - <el-table - :data="salesData" + <el-table + :data="salesData" style="width: 100%" :header-cell-style="tableHeaderStyle" > @@ -98,7 +98,7 @@ <el-table-column prop="amount" label="閲戦" width="90"></el-table-column> <el-table-column prop="status" label="鐘舵��" width="70"> <template #default="scope"> - <el-tag + <el-tag :type="scope.row.status === '宸插畬鎴�' ? 'success' : 'warning'" size="small" > @@ -325,11 +325,12 @@ } </script> -<style scoped> +<style scoped lang="scss"> .dashboard { padding: 20px; background-color: #f5f7fa; - min-height: 100vh; + min-height: 91vh; + box-sizing: border-box; } /* 椤堕儴缁熻鍗$墖 */ @@ -507,7 +508,7 @@ /* 琛ㄦ牸鏍峰紡璋冩暣 */ .bottom-card.table { - min-width: 320px; + width: 100%; } .bottom-card.table .el-table { @@ -518,7 +519,16 @@ .bottom-card.table .el-table th { padding: 8px 0; } - +:deep(.el-scrollbar__view){ + width: 100% !important; + +} +:deep(.el-table__header,){ + width: 100% !important; + } +:deep(.el-table__body,){ + width: 100% !important; + } /* 鍝嶅簲寮忚璁� */ @media (max-width: 1200px) { .bottom-section { -- Gitblit v1.9.3