gaosp
2024-01-29 a359332dbd9fbedee6db289a8dfcf1986d8639b1
src/container/mapPreview/Map.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-05 23:47:53
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-24 21:17:31
 * @LastEditTime: 2024-01-29 22:29:51
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/mapPreview/Map.vue
-->
<template>
@@ -15,7 +15,7 @@
                            <td v-if="v.rowspan !== 0 && v.colspan !== 0" :class="{ aisle: v.type === 1 }"
                                :width="v.colspan * height + 'px'" :height="v.rowspan * height + 'px'" v-for="v in item"
                                :rowspan="v.rowspan" :colspan="v.colspan" :key="v.rowIndex + '-' + v.colIndex">
                                <Device @click.native="toDetail(v)" v-if="v.id" :id="v.id" style="width: 100%;height: 100%;"
                                <Device v-if="v.id" :id="v.id" style="width: 100%;height: 100%;"
                                    :deviceList="deviceList" :plantDeviceList="plantDeviceList"></Device>
                            </td>
                        </tr>
@@ -152,14 +152,6 @@
                    this.leftMax = 0
                }
            }
        },
        toDetail(v) {
            this.$router.push({
                name: 'mapPreviewDetail',
                query: {
                    id: v.id
                }
            })
        },
    }
}