Commit 77d3949d by wuwx

修复bug

1 parent 86bb4bad
......@@ -8,6 +8,12 @@
<div class="map-address">
<img class="icon-map" src="./images/icon-map.png" />
{{ address }}
<!-- <el-input
placeholder="请输入内容"
v-model="inputAddress"
@change="geoCode"
clearable>
</el-input> -->
</div>
</div>
</template>
......@@ -31,7 +37,8 @@ export default {
address: '',
adrList: [],
lnglat: [],
geocoderAddress: {}
geocoderAddress: {},
inputAddress: ''
}
},
mounted() {
......@@ -129,6 +136,23 @@ export default {
marker.setMap(map)
// this.map.setFitView()
},
// 输入地址获取得到经纬度
geoCode() {
var geocoder = new AMap.Geocoder({
city: ""
})
var address = this.inputAddress
let _this = this
geocoder.getLocation(address, function(status, result) {
if (status === 'complete' && result.geocodes.length) {
var lnglat = result.geocodes[0].location
console.log('lnglat',lnglat)
_this.addMarker(lnglat)
} else {
console.log('根据地址查询位置失败')
}
})
},
getAddress(e) {
let self = this
let position
......
......@@ -1663,6 +1663,9 @@ export default {
let idx = this.editFormData.findIndex(val => val.name == 'goodsCategory')
this.editFormData[idx].isHide = false
}
},
'editForm.activityActionReport.noteTouchConversionRate'(newValue, oldValue) {
this.editForm.activityActionReport.noteTouchConversionRate = limitPrice(newValue, oldValue, 99999, 2, 0)
}
},
......@@ -2162,6 +2165,10 @@ export default {
let resetArr = [{ name: 'id' }, { name: 'activityTime', type: 'array' }, { name: 'liveBroadcastRoomId' }, { name: 'groupQrCode' }, { name: 'floatingMaskDiagram' }, { name: 'selectedProInfo', type: 'Object' }, { name: 'goodsId' }, { name: 'activityPrice' }, { name: 'goodsStock' }]
this.copyReset(resetArr)
}
// 标杆门店总产值/元(已结束战报)
this.editForm.activityActionReport.signMerchantProduceCount = (info.activityActionReport.signMerchantProduceCount / 10000).toFixed(2)
// 转化率(已结束战报)
this.editForm.activityActionReport.noteTouchConversionRate = (info.activityActionReport.noteTouchConversionRate / 100).toFixed(2)
this.$nextTick(() => {
this.editStatus = false
})
......@@ -2250,6 +2257,10 @@ export default {
param.groupQrCode = ''
param.floatingMaskDiagram = ''
}
// 标杆门店总产值/元(已结束战报)
param.activityActionReport.signMerchantProduceCount = (this.editForm.activityActionReport.signMerchantProduceCount * 10000).toFixed(0)
// 转化率(已结束战报)
param.activityActionReport.noteTouchConversionRate = (this.editForm.activityActionReport.noteTouchConversionRate * 100).toFixed(0)
delete param.liveFlag
return param
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!