Commit 15434de7 authored by zhengke's avatar zhengke

修改

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