From 4bc2fb3718346cca364a02bce8d771f40006e45f Mon Sep 17 00:00:00 2001 From: liupeng <511646242@qq.com> Date: Fri, 4 Jul 2025 15:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A7=E4=BD=8D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home.less | 45 ++++++++++++++++++++++++++++++++++++++++++ src/views/HomeView.vue | 1 + src/views/device/locations.vue | 12 ++++------- 3 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 src/views/Home.less diff --git a/src/views/Home.less b/src/views/Home.less new file mode 100644 index 0000000..6e71228 --- /dev/null +++ b/src/views/Home.less @@ -0,0 +1,45 @@ +.common-layout{ + width: 100%; + background: #fff; + &>.toolbar{ + background: #fff; + border-radius: 4px; + padding: 16px; + display: flex; + align-items: flex-start; + border-bottom: 1px solid #f0f0f0; + flex-shrink: 0; + } + &>.query-form{ + flex-shrink: 0; + padding: 14px 0 0 16px; + text-align: left; + .el-form-item { + margin-bottom: 14px; + } + } + &>.yv-table{ + margin:0 10px 10px 10px; + .ag-root-wrapper.ag-layout-normal{ + border:none; + } + .ag-header{ + background: #f8f8f8; + border-bottom-color: #dfe6ec; + } + &.ag-theme-alpine .ag-header-row{ + color:#444; + .ag-header-cell-text{ + font-size: 14px; + font-weight: bold; + } + } + .ag-row{ + color:#606266; + border-color:#ebeef5; + .ag-cell{ + font-weight: 300; + } + } + } +} diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index df7da33..ce289ff 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -33,6 +33,7 @@ import {useRoute} from "vue-router"; import Sidebar from './Sidebar.vue' import Header from './Header.vue' + import './Home.less' const route = useRoute() console.log(route.meta?.title) const collapsed = ref(false) diff --git a/src/views/device/locations.vue b/src/views/device/locations.vue index e4967a1..0468bd6 100644 --- a/src/views/device/locations.vue +++ b/src/views/device/locations.vue @@ -104,19 +104,19 @@ function reload() {