index.vue 773 Bytes
Newer Older
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 36 37 38 39 40 41
<template>
  <GetPos
    :dialogVisible.sync="dialogTableVisible"
    device=""
    :devicePos="devicePos"
    @close="dialogcancelFun"
    @getPath="getPath"
  />
</template>

<script>
  import GetPos from '@/components/GetPos';
  export default {
    name: "index",
    components:{
      GetPos
    },
    data(){
      return{
        dialogTableVisible: false,
        devicePos: []
      }
    },
    methods: {
      dialogcancelFun() {
        this.dialogTableVisible = false;
        //this.$parent.dialogTableVisible = false;
      },
      getPath(res){
        //确认选择经纬度
        this.devicePos = res;
        this.$parent.form.longitude = res[0];
        this.$parent.form.latitude = res[1];
      },
    }
  }
</script>

<style scoped>

</style>