|
@@ -69,20 +69,20 @@
|
|
|
filterable
|
|
|
></el-cascader>
|
|
|
<div class="input-container">
|
|
|
- <el-input placeholder="请输入内容" v-model="input3" class="input-with-select" @focus="focus1">
|
|
|
+ <el-input placeholder="请输入内容" v-model="input3" class="input-with-select" @focus="open=true">
|
|
|
<el-button slot="append" icon="el-icon-search" @click="setValue" ></el-button>
|
|
|
</el-input>
|
|
|
</div>
|
|
|
<div class="router-wraps" v-if="open" style="top: calc(100% + 2px); margin-top: 4px; left: 117px;">
|
|
|
<div style="width: 90%"><!---->
|
|
|
- <el-input placeholder="请输入起点" v-model="start">
|
|
|
- </el-input><el-input placeholder="请输入终点" v-model="end">
|
|
|
+ <el-input placeholder="请输入起点" v-model="start" @focus="focus1">
|
|
|
+ </el-input><el-input placeholder="请输入终点" @focus="focus1" v-model="end">
|
|
|
</el-input>
|
|
|
</div>
|
|
|
<el-dropdown trigger="click">
|
|
|
- <span class="el-dropdown-link" style="color: white">
|
|
|
- 方式<i class="el-icon-caret-bottom el-icon--right"></i>
|
|
|
- </span>
|
|
|
+ <span class="el-dropdown-link" style="color: white">
|
|
|
+ 方式<i class="el-icon-caret-bottom el-icon--right"></i>
|
|
|
+ </span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item class="clearfix">
|
|
|
驾车
|
|
@@ -345,10 +345,9 @@ export default {
|
|
|
this.setpoint()
|
|
|
},
|
|
|
setpoint(){
|
|
|
- console.log(123)
|
|
|
const location = new CTMapOl.extend.ToolLocation(this.map.map, {
|
|
|
onPick: coords => {
|
|
|
- console.log('coords',coords)
|
|
|
+ console.log("1",coords)
|
|
|
if (this.start){
|
|
|
this.end = [coords[0],coords[1]]
|
|
|
}else {
|
|
@@ -359,11 +358,12 @@ export default {
|
|
|
location._draw.overlay_.setStyle(null) //
|
|
|
location.pick() //
|
|
|
const onClickMap = this.map.on('click', evt => {
|
|
|
- console.log(evt.coordinate)
|
|
|
+ console.log("2",evt.coordinate)
|
|
|
})
|
|
|
CTMapOl.Observable.unByKey(onClickMap)
|
|
|
},
|
|
|
loadFind(){
|
|
|
+ console.log(this.start,this.end)
|
|
|
let option = {
|
|
|
width: '8',
|
|
|
color: '#f40'
|