Commit ec9c2a56 authored by youjie's avatar youjie

上传 地图

parent 1183e78a
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</div> </div>
</div> </div>
<Tripmap v-if="ShowMap" :PostConfig="PostConfig" :ConfigId="ConfigId" @Cancel="ShowMap=false" <Tripmap v-if="ShowMap" :PostConfig="PostConfig" :ConfigId="ConfigId" @Cancel="ShowMap=false"
@saveMsg="ShowMap=false,SaveData(1)"></Tripmap> @saveMsg="SaveData"></Tripmap>
</div> </div>
<TravelNotice :class="{'showOther':TeamType==3}" ref="TravelNotice" id="fourAnchor" @headCallBack="getNotice" <TravelNotice :class="{'showOther':TeamType==3}" ref="TravelNotice" id="fourAnchor" @headCallBack="getNotice"
:subArray="NoticeParameters" :NoticeData="NoticeData" v-bind:PostConfig="PostConfig" :subArray="NoticeParameters" :NoticeData="NoticeData" v-bind:PostConfig="PostConfig"
...@@ -440,7 +440,8 @@ ...@@ -440,7 +440,8 @@
} }
}, },
/*保存数据*/ /*保存数据*/
SaveData(SaveType) { SaveData(SaveType,MapUrl) {
this.ShowMap = false
this.saveLoading = true; this.saveLoading = true;
this.MsgBus.$emit('saveTravel', true); this.MsgBus.$emit('saveTravel', true);
this.FeatureData.IsSave = true; this.FeatureData.IsSave = true;
......
...@@ -718,11 +718,11 @@ ...@@ -718,11 +718,11 @@
if (x.data.StatusCode == 1) { if (x.data.StatusCode == 1) {
that.saveLoading = false; that.saveLoading = false;
let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath; let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath;
that.PostConfig.Mapurl = allPath; that.PostConfig.MapUrl = allPath;
//调用父页面保存方法 //调用父页面保存方法
that.PostConfig.TripCountryList = JSON.parse(JSON.stringify(that.countriesData)); that.PostConfig.TripCountryList = JSON.parse(JSON.stringify(that.countriesData));
that.PostConfig.TripCityList = JSON.parse(JSON.stringify(that.citiesData)); that.PostConfig.TripCityList = JSON.parse(JSON.stringify(that.citiesData));
that.$emit('saveMsg'); that.$emit('saveMsg',1);
} else { } else {
that.saveLoading = false; that.saveLoading = false;
} }
......
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