| | |
| | | <!-- |
| | | * @Date: 2024-01-05 23:47:53 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-21 22:36:40 |
| | | * @LastEditTime: 2024-01-21 22:43:47 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/mapPreview/Map.vue |
| | | --> |
| | | <template> |
| | |
| | | :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%;" |
| | | :deviceList="deviceList" :plantDeviceList="plantDeviceList" ::info="info"></Device> |
| | | :deviceList="deviceList" :plantDeviceList="plantDeviceList"></Device> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | |
| | | <!-- |
| | | * @Date: 2024-01-05 22:26:22 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-20 19:30:32 |
| | | * @LastEditTime: 2024-01-21 22:43:32 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/mapPreview/index.vue |
| | | --> |
| | | <template> |
| | |
| | | </template> |
| | | </Status> |
| | | <div class="preview-map"> |
| | | <Map v-if="id" :id="id" :status="2" :currentMap="currentMap" /> |
| | | <Map v-if="id" :id="id" :currentMap="currentMap" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | /* |
| | | * @Date: 2024-01-07 22:18:41 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-17 23:06:26 |
| | | * @LastEditTime: 2024-01-21 22:48:07 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/mixins/index.js |
| | | */ |
| | | import { getUseDpts, getRequest } from '@/api/Api' |
| | |
| | | getRequest('machineList',{plantId: val}).then(res => { |
| | | this.plantDeviceList = res.data.list.map(item => { |
| | | return { |
| | | ...item, |
| | | machineId: item.id, |
| | | machineName: item.machineName |
| | | } |