gaosp
2024-01-18 c55d9376565a78ce31a5b8d78dad89df16c2628e
src/container/preview/index.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-05 22:26:22
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-13 23:03:31
 * @LastEditTime: 2024-01-16 22:54:39
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/preview/index.vue
-->
<template>
@@ -22,14 +22,14 @@
            <div class="right">
                <Status v-show="id" :info="info"/>
                <div class="preview-map">
                    <Map v-if="id" :status="2" :currentMap="currentMap"  @out="out" />
                    <Map v-if="id" :id="id" :status="2" :currentMap="currentMap"  @out="out" />
                </div>
            </div>
        </div>
    </div>
</template>
<script>
    import Map from '../Map/Map.vue';
    import Map from '../mapPreview/Map.vue';
    import Status from '@/components/newComp/Status'
    import LeftStatus from '../Map/LeftStatus.vue'
    import { getRequest, getUrl } from '@/api/Api'
@@ -99,16 +99,12 @@
                try {
                    this.mapList = this.workshopList.filter (v => v.gridSetting && v.gridSetting!='{}')
                    if (this.mapList.length === 0) {
                        this.status = 0
                        this.status = 2
                    }
                    this.id =this.mapList[0].id
                } catch (error) {
                    console.error(error)
                }
            },
            out () {
                this.status = 2
                this.getMapList()
            },
        },
        mounted () {