| | |
| | | <!-- |
| | | * @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> |
| | |
| | | <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> |
| | |
| | | this.leftMax = 0 |
| | | } |
| | | } |
| | | }, |
| | | toDetail(v) { |
| | | this.$router.push({ |
| | | name: 'mapPreviewDetail', |
| | | query: { |
| | | id: v.id |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | } |