From 7319fae44748c828e6f462854a22fe65ec74e498 Mon Sep 17 00:00:00 2001 From: dzq Date: Mon, 2 Jun 2025 10:25:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=99=BA=E8=83=BD?= =?UTF-8?q?=E6=9F=9C=E7=9B=B8=E5=85=B3=E7=95=8C=E9=9D=A2=E5=92=8C=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在SmartCabinetDTO接口中添加usedCells和availableCells字段 - 修改机柜图片映射文件中的命名格式为"X格柜" - 将商店相关文案统一修改为地址 - 优化智能柜卡片布局,增加使用状态显示并调整样式 --- src/api/cabinet/smart-cabinet.ts | 2 ++ src/utils/cabinetImgMap.ts | 18 ++++++------- src/views/cabinet/shop/index.vue | 10 ++++---- src/views/cabinet/shop/shop-form-modal.vue | 10 ++++---- .../cabinet/smart-cabinet-card/index.vue | 25 +++++++++++++------ 5 files changed, 38 insertions(+), 27 deletions(-) diff --git a/src/api/cabinet/smart-cabinet.ts b/src/api/cabinet/smart-cabinet.ts index b114e33..8de20fe 100644 --- a/src/api/cabinet/smart-cabinet.ts +++ b/src/api/cabinet/smart-cabinet.ts @@ -43,6 +43,8 @@ export interface SmartCabinetDTO { operator?: string; /** 归属类型(0-借还柜 1-固资通) */ belongType?: number; + usedCells?: number; + availableCells?: number; } /** diff --git a/src/utils/cabinetImgMap.ts b/src/utils/cabinetImgMap.ts index 15a34a1..639bfac 100644 --- a/src/utils/cabinetImgMap.ts +++ b/src/utils/cabinetImgMap.ts @@ -1,38 +1,38 @@ export const CabinetImgMap = { 1: { img: "cabinet_16.jpg", - name: "16口机柜", + name: "16格柜", }, 2: { img: "cabinet_20.jpg", - name: "20口机柜", + name: "20格柜", }, 3: { img: "cabinet_22.jpg", - name: "22口机柜", + name: "22格柜", }, 4: { img: "cabinet_24.jpg", - name: "24口机柜", + name: "24格柜", }, 5: { img: "cabinet_40.jpg", - name: "40口机柜", + name: "40格柜", }, 6: { img: "cabinet_48.jpg", - name: "48口机柜", + name: "48格柜", }, 7: { img: "cabinet_60.jpg", - name: "60口机柜", + name: "60格柜", }, 8: { img: "cabinet_120.jpg", - name: "120口机柜", + name: "120格柜", }, 9: { img: "cabinet_4.jpg", - name: "4口机柜", + name: "4格柜", }, } \ No newline at end of file diff --git a/src/views/cabinet/shop/index.vue b/src/views/cabinet/shop/index.vue index c4de39b..f49756c 100644 --- a/src/views/cabinet/shop/index.vue +++ b/src/views/cabinet/shop/index.vue @@ -93,7 +93,7 @@ const handleBulkDelete = async () => { try { await ElMessageBox.confirm( - `确认删除选中的${multipleSelection.value.length}家商店吗?`, + `确认删除选中的${multipleSelection.value.length}家地址吗?`, "警告", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" } ); @@ -138,7 +138,7 @@ getList(); - @@ -151,7 +151,7 @@ getList(); - 新增商店 + 新增地址 @@ -160,8 +160,8 @@ getList(); - - + +