diff --git a/src/views/home.vue b/src/views/home.vue index 6454b2d..f673624 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -59,7 +59,7 @@ - +
@@ -136,7 +136,7 @@
- +
@@ -242,8 +242,13 @@ export default { getData() { this.tableData = data1.rows }, - changeActiveTab() { - this.$router.push({ path: '/storeManage/warehouse3D' }) + changeActiveTab(id) { + this.$router.push({ + name: 'warehouse3D', + params: { + roomId: id + } + }) } } } @@ -264,9 +269,10 @@ export default { // } .chart-wrapper { + height: calc(100% - 40px); // background: #fff; - padding: 16px 16px 0; - margin-bottom: 32px; + // padding: 16px 16px 0; + // margin-bottom: 32px; } } @media (max-width: 1024px) { diff --git a/src/views/storeManage/warehouse3D/index.vue b/src/views/storeManage/warehouse3D/index.vue index a020a77..d44bcd0 100644 --- a/src/views/storeManage/warehouse3D/index.vue +++ b/src/views/storeManage/warehouse3D/index.vue @@ -66,6 +66,9 @@ export default { created() { console.log(1111) this.initWebSocket() + if (this.$route.params.roomId) { + this.activeIndex = this.$route.params.roomId + } }, methods: { handleMessageEvent(event) {