From 3f023b3b294f1b58f97ca131caa7ef14353a8d31 Mon Sep 17 00:00:00 2001
From: xuhuajiao <13476289682@163.com>
Date: Wed, 17 Aug 2022 10:30:13 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=86=E9=9B=86=E6=9E=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../warehouse3D/deseCabinet/index.vue | 52 ++++++++++++-------
1 file changed, 33 insertions(+), 19 deletions(-)
diff --git a/src/views/storeManage/warehouse3D/deseCabinet/index.vue b/src/views/storeManage/warehouse3D/deseCabinet/index.vue
index 5930985..1bd2b21 100644
--- a/src/views/storeManage/warehouse3D/deseCabinet/index.vue
+++ b/src/views/storeManage/warehouse3D/deseCabinet/index.vue
@@ -17,6 +17,11 @@
{{ item }}
+
+ 层
+ /
+ 节
+
@@ -79,6 +84,11 @@
{{ item }}
+
+ 节
+ \
+ 层
+
开架
@@ -116,22 +126,24 @@ export default {
},
computed: {
cellStyle: function() {
- let h
- if (this.cabinetNum > 8) {
- h = '100%/' + (this.deviceData.rowNo - 1)
- } else {
- h = '100%/' + this.deviceData.rowNo
- }
+ // let h
+ // if (this.cabinetNum > 8) {
+ // h = '100%/' + (this.deviceData.rowNo - 1)
+ // } else {
+ // h = '100%/' + this.deviceData.rowNo
+ // }
+ const h = '100%/' + this.deviceData.rowNo
const w = '100%/' + this.deviceData.partNo
return { width: `calc(${w} - 10px )`, height: `calc(${h} - 10px)` }
},
heightStyle: function() {
- let h
- if (this.cabinetNum > 8) {
- h = '100%/' + (this.deviceData.rowNo - 1)
- } else {
- h = '100%/' + this.deviceData.rowNo
- }
+ // let h
+ // if (this.cabinetNum > 8) {
+ // h = '100%/' + (this.deviceData.rowNo - 1)
+ // } else {
+ // h = '100%/' + this.deviceData.rowNo
+ // }
+ const h = '100%/' + this.deviceData.rowNo
return { height: `calc(${h})` }
},
widhtStyle: function() {
@@ -171,13 +183,13 @@ export default {
if (item.deviceTypeId.name === '密集架' && item.deviceName === '战备密集架测试') { // 写死状态
this.deviceData = item
this.totalPartRowNum = item.partNo * item.rowNo
- let rowNo
- if (this.cabinetNum > 8) { // 战备密集架得情况
- rowNo = item.rowNo - 1
- } else {
- rowNo = item.rowNo
- }
- for (let i = 0; i < rowNo; i++) {
+ // let rowNo
+ // if (this.cabinetNum > 8) { // 战备密集架得情况
+ // rowNo = item.rowNo - 1
+ // } else {
+ // rowNo = item.rowNo
+ // }
+ for (let i = 0; i < item.rowNo; i++) {
this.rowNum.push(i + 1)
}
for (let i = 0; i < item.partNo; i++) {
@@ -381,6 +393,7 @@ export default {
bottom: 0;
span{
height: 20px;
+ line-height: 20px;
}
}
.part-right-num{
@@ -390,6 +403,7 @@ export default {
bottom: 0;
span{
height: 20px;
+ line-height: 20px;
}
}