Commit bad0f86d authored by zhengke's avatar zhengke

修改停车场管理

parent 97f2fcd3
......@@ -130,10 +130,12 @@
</el-col>
<el-col :span="5">
<el-form-item label="详细地址">
<el-input v-model="PostMsg.Address" class="w210"></el-input>
<el-input placeholder="请输入内容" class="w210" v-model="PostMsg.Address">
<el-button slot="append" @click="selectAddress = true" icon="iconfont icon-img_dw"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<!-- <el-col :span="5">
<el-form-item label="经度">
<el-input v-model="PostMsg.Lng" class="w210"></el-input>
</el-form-item>
......@@ -143,7 +145,7 @@
<el-form-item label="纬度">
<el-input v-model="PostMsg.Lat" class="w210"></el-input>
</el-form-item>
</el-col>
</el-col> -->
<el-col :span="5">
<el-form-item label="库存数量">
......@@ -152,9 +154,15 @@
</el-col>
</el-form>
</div>
<el-dialog custom-class="mapList" title="地图选址" center :visible.sync="selectAddress">
<googleMap @refList="googleMap" v-bind:address="PostMsg.Address" @headCallBack="headCall"></googleMap>
</el-dialog>
</div>
</template>
<script>
import googleMap from "../commonPage/googleMap.vue";
export default {
data() {
return {
......@@ -187,7 +195,8 @@
provinceList:[],
cityList:[],
provinceList2:[],
cityList2:[]
cityList2:[],
selectAddress:false,
}
},
......@@ -367,11 +376,25 @@
StockNum: 0,
}
this.PostMsg = msg;
}
},
googleMap() {
this.selectAddress = false;
},
headCall(msg) {
this.PostMsg.Lng = msg.lng;
this.PostMsg.Lat = msg.lat;
this.PostMsg.Address = msg.address;
console.log(msg,'msssgggg');
console.log(msg.address);
},
},
mounted() {
this.getCountryList();
this.getList();
},
components:{
googleMap: googleMap,
}
}
......@@ -432,4 +455,8 @@
.busStockManager .el-button.is-circle{
padding:5px;
}
.busStockManager .mapList{
width:850px;
height:510px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment