shuishen
2022-07-21 03df59a72de4354fcc731675c53dd2805c2ec8b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<template>
    <div @click="selectMapClick">
        <el-input readonly class="select-input-map" v-model="mapXyValue" placeholder="请选择2.5维坐标"></el-input>
    </div>
</template>
 
<script>
 
import { mapGetters } from "vuex"
 
export default {
    computed: {
        ...mapGetters(['mapXyValue'])
    },
    methods: {
        selectMapClick () {
            this.$store.commit('SET_SELECT_MAP', true)
        },
    },
    created () {
        this.$store.commit('SET_MAP_X_Y', '')
    },
    watch: {
        mapXyValue: {
            immediate: true,
            handler (newVal) {
                this.$emit("setData", newVal)
            }
        }
    },
}
</script>
 
<style>
</style>