|
|
|
@ -68,20 +68,23 @@
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>经度:
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>经度:
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<el-input clearable placeholder="请填写经度" v-model="form.lng" style="width: 120px;"/>
|
|
|
|
<el-input disabled clearable placeholder="请填写经度" v-model="form.lng" style="width: 120px;"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-slot:eng>
|
|
|
|
<template v-slot:lat>
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>纬度:
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>纬度:
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<el-input clearable placeholder="请填写纬度" v-model="form.eng" style="width: 120px;"/>
|
|
|
|
<el-input disabled clearable placeholder="请填写纬度" v-model="form.lat" style="width: 120px;"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:extraFormBottom>
|
|
|
|
|
|
|
|
<avue-map size="small" :option="option" v-model="map" @mapClick="test"></avue-map>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</xy-dialog>
|
|
|
|
</xy-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
@ -99,12 +102,46 @@ export default {
|
|
|
|
address:'',
|
|
|
|
address:'',
|
|
|
|
contact:'',
|
|
|
|
contact:'',
|
|
|
|
contactNumber:'',
|
|
|
|
contactNumber:'',
|
|
|
|
lng:'',
|
|
|
|
lng:'',//经度
|
|
|
|
eng:''
|
|
|
|
lat:'',//纬度
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
map:{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
option: {
|
|
|
|
|
|
|
|
column: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: '坐标',
|
|
|
|
|
|
|
|
prop: 'map',
|
|
|
|
|
|
|
|
type: 'map',
|
|
|
|
|
|
|
|
//高德初始化参数
|
|
|
|
|
|
|
|
params:{
|
|
|
|
|
|
|
|
zoom: 10,
|
|
|
|
|
|
|
|
// zoomEnable: false,
|
|
|
|
|
|
|
|
// dragEnable: false,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {}
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
test(r,p){
|
|
|
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
|
|
|
this.form.lat = p
|
|
|
|
|
|
|
|
this.form.lng = r
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
watch:{
|
|
|
|
|
|
|
|
map(newVal){
|
|
|
|
|
|
|
|
this.form.lat = newVal?.location?.lat
|
|
|
|
|
|
|
|
this.form.lng = newVal?.location?.lng
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|