From 2b44260a2521f9c7504887e4cf2394161d72bf9a Mon Sep 17 00:00:00 2001 From: dzq Date: Thu, 15 May 2025 15:49:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20=E4=BC=98=E5=8C=96=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E6=A0=B7=E5=BC=8F=E5=92=8C=E7=BB=84=E4=BB=B6=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整侧边栏菜单激活状态的样式 - 移除标签组件中未使用的代码 - 删除智能柜表单中不必要的字段 - 优化智能柜卡片布局,使用el-descriptions组件展示信息 --- src/layout/components/sidebar/horizontal.vue | 4 +++ src/layout/components/tag/index.vue | 4 +-- .../cabinet/smart-cabinet-card/index.vue | 30 ++++++++++++------- .../smart-cabinet-card-form-modal.vue | 8 ----- 4 files changed, 25 insertions(+), 21 deletions(-) diff --git a/src/layout/components/sidebar/horizontal.vue b/src/layout/components/sidebar/horizontal.vue index 4c81165..91582c6 100644 --- a/src/layout/components/sidebar/horizontal.vue +++ b/src/layout/components/sidebar/horizontal.vue @@ -77,6 +77,10 @@ nextTick(() => { opacity: 0.45; } +:deep(.el-sub-menu.is-active .el-sub-menu__title) { + border-bottom: 0; +} + .logout { max-width: 120px; diff --git a/src/layout/components/tag/index.vue b/src/layout/components/tag/index.vue index 5957f29..9024b83 100644 --- a/src/layout/components/tag/index.vue +++ b/src/layout/components/tag/index.vue @@ -548,11 +548,11 @@ onBeforeUnmount(() => { > -
+ /> -->
diff --git a/src/views/cabinet/smart-cabinet-card/index.vue b/src/views/cabinet/smart-cabinet-card/index.vue index def280d..4b846d4 100644 --- a/src/views/cabinet/smart-cabinet-card/index.vue +++ b/src/views/cabinet/smart-cabinet-card/index.vue @@ -29,7 +29,7 @@ const pageLoading = ref(false); const dataList = ref([]); const pagination = ref({ total: 0, - pageSize: 5, + pageSize: 12, currentPage: 1, background: true }); @@ -113,12 +113,15 @@ onMounted(() => {
-
-
柜体名称:{{ item.cabinetName }}
-
柜体类型:{{ item.cabinetType === 0 ? '主柜' : '副柜' }}
-
模板:{{ CabinetImgMap[item.templateNo]?.name || '-' }}
-
归属商店:{{ item.shopName || '-' }}
-
+ + 柜体名称:{{ item.cabinetName }} + + + 模板:{{ CabinetImgMap[item.templateNo]?.name || '-' }} + + 商店:{{ item.shopName || '-' }} + +
@@ -142,7 +145,9 @@ onMounted(() => { margin-bottom: 12px; } } - +:deep(.el-descriptions__cell) { + padding-bottom: 1px!important; +} .cabinet-card { margin-bottom: 20px; min-height: 210px; @@ -152,8 +157,8 @@ onMounted(() => { .cabinet-image { width: 100%; - height: 420px; - object-fit: cover; + height: 200px; + object-fit: contain; border-radius: 4px; margin-bottom: 10px; } @@ -170,13 +175,16 @@ onMounted(() => { .shop, .location, .template { + width: 100%; font-size: 14px; color: #606266; margin-bottom: 6px; - line-height: 1.5; + line-height: 1; + text-align: left; } .name { + width: 100%; font-weight: 500; color: #303133; } diff --git a/src/views/cabinet/smart-cabinet-card/smart-cabinet-card-form-modal.vue b/src/views/cabinet/smart-cabinet-card/smart-cabinet-card-form-modal.vue index b94c401..a55ba1f 100644 --- a/src/views/cabinet/smart-cabinet-card/smart-cabinet-card-form-modal.vue +++ b/src/views/cabinet/smart-cabinet-card/smart-cabinet-card-form-modal.vue @@ -89,14 +89,6 @@ const templateOptions = Object.entries(CabinetImgMap).map(([value, item]) => ({ :value="option.value" /> - - - - - - - -