Commit 15434de7 authored by zhengke's avatar zhengke

修改

parent ed18a5a0
......@@ -213,7 +213,12 @@
},
mounted() {
this.newAddress = this.address ? this.address : '';
this.mapKeyword = this.newAddress;
console.log(this.address,'传入地址');
this.initMap();
if(this.mapKeyword!=''){
this.mapSearch();
}
}
};
......
......@@ -75,11 +75,13 @@
<i class="el-icon-info"></i>
</el-tooltip>
</label>
<el-input type="text" placeholder="请输入门店经纬度" v-model="addMsg.LngLat" size="small"></el-input>
<el-input type="text" :disabled="true" placeholder="请输入门店经纬度" v-model="addMsg.LngLat" size="small">
<el-button slot="append" @click="isShowMap=true">地图</el-button>
</el-input>
</el-form-item>
<el-form-item label="地图">
<!-- <el-form-item label="地图">
<el-button size="small" @click="isShowMap=true">展开地图</el-button>
</el-form-item>
</el-form-item> -->
<el-form-item label="门店评分">
<el-select v-model="addMsg.Score" size="small">
<el-option :key="1" label="1分" :value="1"></el-option>
......@@ -91,7 +93,7 @@
</el-form-item>
<el-form-item label="门店描述" prop="Intro">
<div style="line-height:normal;">
<UE :defaultMsg="addMsg.Intro" :config="config" ref="ue" @input="input"></UE>
<UE :defaultMsg="addMsg.Intro" :config="config" ref="ue" :IsMultiple="true"></UE>
</div>
</el-form-item>
</div>
......@@ -145,7 +147,7 @@
</el-form-item>
<el-form-item label="服务价目表" prop="ServiceProject">
<div style="line-height:normal;">
<UE :defaultMsg="addMsg.ServiceProject" :config="config" ref="ue2" @input="getService"></UE>
<UE :defaultMsg="addMsg.ServiceProject" :config="config" ref="ue2" :IsMultiple="true"></UE>
</div>
</el-form-item>
</div>
......@@ -162,7 +164,7 @@
</el-dialog>
<!-- 地图选址 -->
<el-dialog title="地图展示" :visible.sync="isShowMap" width="960px">
<commonMap @map-submit="mapEvent"></commonMap>
<commonMap @map-submit="mapEvent" :address="address"></commonMap>
</el-dialog>
</div>
</template>
......@@ -206,6 +208,7 @@
IsAllDay: 0, //是否全天营业(1-是)
ServiceProject: "", //服务项目
},
address:'',
config: {
initialFrameWidth: null,
initialFrameHeight: 350,
......@@ -280,6 +283,8 @@
},
//保存
saveMsg() {
this.addMsg.Intro = this.$refs.ue.getUEContent();
this.addMsg.ServiceProject = this.$refs.ue2.getUEContent();
this.apipost("/api/MContent/SetStores", this.addMsg, res => {
if (res.data.resultCode == 1) {
this.storesIsShowAdd = true;
......@@ -368,14 +373,6 @@
}
})
},
//门店描述
input(obj) {
this.addMsg.Intro = obj;
},
//服务项目
getService(obj) {
this.addMsg.ServiceProject = obj;
},
//选择图片
SelectId(msg) {
if (this.commonIndex == 1) {
......@@ -392,6 +389,11 @@
this.isShowMap = false;
},
},
watch:{
"addMsg.Address"(val){
this.address = val;
}
},
mounted() {
this.getList();
}
......
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