gaosp
2024-01-21 3b10b08276f0b97253669a608cb750cf9f997379
车间图片
已修改3个文件
11 ■■■■ 文件已修改
src/container/mapPreview/Map.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/mapPreview/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mixins/index.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/mapPreview/Map.vue
@@ -1,7 +1,7 @@
<!--
 * @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>
@@ -16,7 +16,7 @@
                                :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>
src/container/mapPreview/index.vue
@@ -1,7 +1,7 @@
<!--
 * @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>
@@ -28,7 +28,7 @@
                    </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>
src/mixins/index.js
@@ -1,7 +1,7 @@
/*
 * @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'
@@ -32,6 +32,7 @@
                    getRequest('machineList',{plantId: val}).then(res => {
                        this.plantDeviceList = res.data.list.map(item => {
                            return {
                                ...item,
                                machineId: item.id,
                                machineName: item.machineName
                            }