| | |
| | | <!-- |
| | | * @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> |
| | |
| | | <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' |
| | |
| | | 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 () { |