mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-05 18:40:14 +08:00
up
This commit is contained in:
@@ -195,6 +195,7 @@ export default {
|
||||
dicts: ["station_type", "match_cars", "construction_type"],
|
||||
data() {
|
||||
return {
|
||||
dialogVisible:false,
|
||||
headers: {
|
||||
Authorization: "Bearer " + getToken()
|
||||
},
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<el-tab-pane label="基本资料" name="stationInfo">
|
||||
<div class="over">
|
||||
<div id="map_wrap">
|
||||
<MapContainer ref="map"/>
|
||||
<MapContainer ref="map" :stationLat="stationLat" :stationLng="stationLng"/>
|
||||
</div>
|
||||
<div class="menu">
|
||||
<site-info ref="stationInfo"/>
|
||||
@@ -98,7 +98,9 @@ export default {
|
||||
dialogFormVisible: false,
|
||||
stationId: this.$route.params.id,
|
||||
stationName: this.$route.params.stationName,
|
||||
stationDetail: {}
|
||||
stationDetail: {},
|
||||
stationLat:null,
|
||||
stationLng:null
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@@ -128,7 +130,7 @@ export default {
|
||||
} else if (name === "billing") {
|
||||
this.$refs.billing.getStationBillingTemplateList();
|
||||
} else if (name === "stationInfo") {
|
||||
this.$refs.map.queryStationInfo();
|
||||
this.$refs.map.initMap();
|
||||
this.$refs.stationInfo.queryStationInfo();
|
||||
} else if (name === "order") {
|
||||
this.$refs.order.dataLoading();
|
||||
@@ -137,8 +139,11 @@ export default {
|
||||
queryStationInfo() {
|
||||
console.log("stationId", this.stationId);
|
||||
getStationInfo(this.stationId).then((res) => {
|
||||
console.log(res);
|
||||
// console.log(res);
|
||||
this.stationDetail = res.data;
|
||||
this.stationLat = res.data.stationLat
|
||||
this.stationLng = res.data.stationLng
|
||||
console.log(this.stationLat,this.stationLng,"父组件里面的经纬度")
|
||||
});
|
||||
console.log("queryStationInfo==", this.stationDetail);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user