From cb60b30e899aea2db91bd8cc0272df7508e12fa4 Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期二, 16 一月 2024 23:26:42 +0800 Subject: [PATCH] update --- src/container/mapPreview/index.vue | 25 ++++--------------------- 1 files changed, 4 insertions(+), 21 deletions(-) diff --git a/src/container/mapPreview/index.vue b/src/container/mapPreview/index.vue index 3f78f7a..045a5bd 100644 --- a/src/container/mapPreview/index.vue +++ b/src/container/mapPreview/index.vue @@ -1,19 +1,14 @@ <!-- * @Date: 2024-01-05 22:26:22 * @LastEditors: Sneed - * @LastEditTime: 2024-01-15 22:09:41 + * @LastEditTime: 2024-01-16 22:50:48 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/mapPreview/index.vue --> <template> <div class="workshop"> - <Map v-if="status === 0 || status === 1 && id" :status="status" :currentMap="currentMap" :name="plantName" :id="id" - @out="out" /> - <div v-else class="preview"> + <div class="preview"> <LeftStatus class="left" :info="info"> <template> - <!-- <div @click="editMap" class="edit-btn"> - {{ id ? '杩涘叆缂栬緫鐘舵��' : '鏂板' }} - </div> --> <el-select clearable class="left-select" v-model="id" placeholder="璇烽�夋嫨"> <el-option v-for="item in mapList" :key="item.id" :label="item.name" :value="item.id"> </el-option> @@ -23,7 +18,7 @@ <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> @@ -35,6 +30,7 @@ import LeftStatus from './LeftStatus.vue' import { getRequest, getUrl } from '@/api/Api' import { mapGetters } from 'vuex' + export default { components: { Map, @@ -97,8 +93,6 @@ }, methods: { getMapList() { - // this.$store.dispatch('GetPlanList', {}) - this.$store.dispatch('GetPlanList', {}).then(res => { try { this.mapList = this.workshopList.filter(v => v.gridSetting && v.gridSetting != '{}') @@ -110,17 +104,6 @@ console.error(error) } }) - }, - editMap() { - if (this.id) { - this.status = 1 - } else { - this.status = 0 - } - }, - out() { - this.status = 2 - this.getMapList() }, }, mounted() { -- Gitblit v1.9.3