From 1995e710dcf70e635c4edaa8173f8b66cd67d499 Mon Sep 17 00:00:00 2001 From: 黄何裕 <1053952480@qq.com> Date: 星期二, 30 七月 2024 14:05:06 +0800 Subject: [PATCH] 样式优化 --- src/views/system/monitor/face/index.vue | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/views/system/monitor/face/index.vue b/src/views/system/monitor/face/index.vue index 4c0ad16..0f8030a 100644 --- a/src/views/system/monitor/face/index.vue +++ b/src/views/system/monitor/face/index.vue @@ -2,12 +2,12 @@ <div class="app-container"> <el-card class="box-card" > <el-row type="flex" align="middle" justify="space-between"> - <el-col :xl="8" :lg="8" :md="10" :sm="8" :xs="6"> - <div class="icon-container" style="background-color: #5599F7"> + <el-col :span="4"> + <div class="icon-container" style="background-color: #1890FF"> <i class="el-icon-user"></i> </div> </el-col> - <el-col :xl="14" :lg="14" :md="12" :sm="14" :xs="16"> + <el-col :span="20"> <div class="dashboard"> <div class="dashboard-item"> <h3 style="color: #5C9BF8">{{ count.totalPosts }}</h3> @@ -94,8 +94,8 @@ </el-select> </el-form-item> <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> + <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">鎼滅储</el-button> + <el-button icon="el-icon-refresh" size="small" @click="resetQuery">閲嶇疆</el-button> </el-form-item> </el-form> @@ -115,7 +115,7 @@ <el-table v-loading="loading" :data="monitorList" @selection-change="handleSelectionChange"> <el-table-column type="selection" align="center" /> - <el-table-column label="璁惧鍚嶇О" align="center" prop="name" width="280" fixed/> + <el-table-column label="璁惧鍚嶇О" align="center" prop="name" width="280" fixed show-overflow-tooltip/> <el-table-column label="璁惧缂栫爜" align="center" prop="serialNumber" width="180"/> <el-table-column label="鏍囩" align="center" prop="publicSecurity" width="180" v-if="columns[0].visible"/> <el-table-column label="鍖哄煙" align="center" prop="address" width="180" v-if="columns[1].visible"/> @@ -190,8 +190,8 @@ </el-form-item> </el-form> <div slot="footer" class="dialog-footer"> - <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> <el-button @click="cancel">鍙� 娑�</el-button> + <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> </div> </el-dialog> @@ -434,7 +434,7 @@ <style lang="scss" scoped> .box-card { - background-color: #F5F9FE; + background-color: #ffffff; width: 100%; margin-bottom: 20px; height: 120px @@ -443,8 +443,8 @@ display: flex; justify-content: center; align-items: center; - border-radius: 20px; - width: 20%; + border-radius: 4px; + width: 130px; height: 80px; margin-left: 5%; } @@ -455,9 +455,10 @@ .dashboard { display: flex; - gap: 10%; + gap: 5%; align-items: center; - margin-left: -50%; + justify-content: space-between; + margin-right: 20px; } .dashboard-item { -- Gitblit v1.8.0