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; } }