| | |
| | | <el-form-item label="坐标"> |
| | | <el-row class="mb16"> |
| | | <el-col :span="24"> |
| | | <el-input v-model="form.supplier.coordinate" class="max-w460"></el-input> |
| | | <el-input v-model="formData.coordinate" class="max-w460"></el-input> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row class="mb16"> |
| | | <el-col :span="24"> |
| | | <Getpoint :form="form.supplier" @getMapdata="getMapdataFunc" @chose="choseFunc"></Getpoint> |
| | | <Getpoint :form="formData.supplier" @getMapdata="getMapdataFunc" @chose="choseFunc"></Getpoint> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> |
| | |
| | | description:'', |
| | | logo_id:0, |
| | | //business_id:0, |
| | | notice: '' |
| | | notice: '', |
| | | coordinate:'' |
| | | }, |
| | | /*是否打开图片选择*/ |
| | | isupload:false, |
| | |
| | | methods:{ |
| | | /*初始化城市id*/ |
| | | initCity() { |
| | | this.form.supplier.city_id = '' |
| | | this.formData.city_id = '' |
| | | }, |
| | | |
| | | /*初始化区id*/ |
| | | initRegion() { |
| | | this.form.supplier.region_id = '' |
| | | this.formData.region_id = '' |
| | | }, |
| | | |
| | | /*获取经纬度*/ |
| | | getMapdataFunc(e) { |
| | | this.form.supplier.coordinate = e.data[0].toFixed(6) + ',' + e.data[1].toFixed(6); |
| | | this.formData.coordinate = e.data[0].toFixed(6) + ',' + e.data[1].toFixed(6); |
| | | }, |
| | | /*选择的地址*/ |
| | | choseFunc(e){ |
| | | this.form.supplier.coordinate=e.location.lat+','+e.location.lng; |
| | | this.form.supplier.address=e.address; |
| | | this.formData.coordinate=e.location.lat+','+e.location.lng; |
| | | this.formData.address=e.address; |
| | | |
| | | }, |
| | | |