Commit 93a3599e by 王志慧

fixd

1 parent 4b331362
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
background: #FFFFFF !important; background: #FFFFFF !important;
box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px 0 #00000014, 0 9px 28px 8px #0000000d !important; box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px 0 #00000014, 0 9px 28px 8px #0000000d !important;
border-radius: 4px !important; border-radius: 4px !important;
padding: 12px 0 !important; // padding: 12px 0 !important;
overflow: hidden!important; overflow: hidden!important;
} }
...@@ -35,8 +35,7 @@ ...@@ -35,8 +35,7 @@
color: #333333; color: #333333;
border-bottom: 1px solid #E5E5E5; border-bottom: 1px solid #E5E5E5;
padding-left: 20px; padding:12px 20px;
padding-bottom: 12px;
box-sizing: border-box; box-sizing: border-box;
} }
......
...@@ -337,7 +337,7 @@ export default { ...@@ -337,7 +337,7 @@ export default {
}, },
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.increaseTime.length) { if (this.searchForm.increaseTime&&this.searchForm.increaseTime.length) {
params.startIncreaseTime = dayjs(this.searchForm.increaseTime[0]).format('YYYY-MM-DD') + ' 00:00:00' params.startIncreaseTime = dayjs(this.searchForm.increaseTime[0]).format('YYYY-MM-DD') + ' 00:00:00'
params.endIncreaseTime = dayjs(this.searchForm.increaseTime[1]).format('YYYY-MM-DD') + ' 23:59:59' params.endIncreaseTime = dayjs(this.searchForm.increaseTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-option v-for="item in adrList" :key="item.id" :label="item.address" :value="item.id"></el-option> <el-option v-for="item in adrList" :key="item.id" :label="item.address" :value="item.id"></el-option>
</el-select> </el-select>
<div class="icon-card"> <div class="icon-card">
<div class="icon-item" v-for="(ctr, index) in controlList" @click="controlHandle(index, ctr.icon)" :key="index"> <div :class="['icon-item',ctr.checked?'active':'']" v-for="(ctr, index) in controlList" @click="controlHandle(index, ctr.icon)" :key="index">
<img class="control-icon" :src="require(`@/assets/${ctr.icon}.png`)" /> <img class="control-icon" :src="require(`@/assets/${ctr.icon}.png`)" />
{{ ctr.name }} {{ ctr.name }}
</div> </div>
...@@ -33,23 +33,28 @@ export default { ...@@ -33,23 +33,28 @@ export default {
controlList: [ controlList: [
{ {
icon: 'moon', icon: 'moon',
name: '卫星' name: '卫星',
checked:false
}, },
{ {
icon: 'ranging', icon: 'ranging',
name: '测距' name: '测距',
checked:false
}, },
{ {
icon: 'location', icon: 'location',
name: '定位' name: '定位',
checked:false
}, },
{ {
icon: 'magnify', icon: 'magnify',
name: '放大' name: '放大',
checked:false
}, },
{ {
icon: 'reduce', icon: 'reduce',
name: '缩小' name: '缩小',
checked:false
} }
], ],
activeIndex: '' activeIndex: ''
...@@ -140,12 +145,13 @@ export default { ...@@ -140,12 +145,13 @@ export default {
style: { width: '48px', height: '48px' } style: { width: '48px', height: '48px' }
}) })
marker.setMap(map) marker.setMap(map)
//是否可删除 1=》可以
this.initMarket(marker, delFlag) this.initMarket(marker, delFlag)
} }
} }
}) })
}, },
//是否有删除功能 1=》可以
initMarket(marker, delFlag) { initMarket(marker, delFlag) {
let { map, AMap } = this, let { map, AMap } = this,
that = this, that = this,
...@@ -297,20 +303,18 @@ export default { ...@@ -297,20 +303,18 @@ export default {
merchantId, merchantId,
contextMenuPositon: { lng, lat } contextMenuPositon: { lng, lat }
} = this, } = this,
marker marker, params = {
let params = {
id: queryData.id, id: queryData.id,
parkingAddressLng: lng, parkingAddressLng: lng,
parkingAddressLat: lat, parkingAddressLat: lat,
merchantId merchantId
} }
this.$apis.parkingSpace.addFlagparkingSpace(params).then(res => { this.$apis.parkingSpace.addFlagparkingSpace(params).then(res => {
console.log(res)
if (res.code==0) { if (res.code==0) {
marker = new AMap.Marker({ marker = new AMap.Marker({
icon: require('@/assets/select.png'), icon: require('@/assets/select.png'),
position: [lng, lat], position: [lng, lat],
anchor: 'bottom-left', anchor: 'bottom',
extData: { extData: {
id: queryData.id, id: queryData.id,
parkingNumber: queryData.parkingNumber parkingNumber: queryData.parkingNumber
...@@ -355,7 +359,7 @@ export default { ...@@ -355,7 +359,7 @@ export default {
_this.placeSearch.search(query, function (status, result) { _this.placeSearch.search(query, function (status, result) {
if (status === 'complete' && result.poiList.pois.length) { if (status === 'complete' && result.poiList.pois.length) {
_this.adrList = result.poiList.pois _this.adrList = result.poiList.pois
console.log(_this.adrList) // console.log(_this.adrList)
} }
}) })
}, },
...@@ -405,6 +409,7 @@ export default { ...@@ -405,6 +409,7 @@ export default {
controlHandle(index, event) { controlHandle(index, event) {
this[event + 'Handle'](index) this[event + 'Handle'](index)
this.activeIndex = index this.activeIndex = index
// this.controlList[index].checked=! this.controlList[index].checked
}, },
//卫星 //卫星
moonHandle(index) { moonHandle(index) {
...@@ -440,7 +445,7 @@ export default { ...@@ -440,7 +445,7 @@ export default {
position: 'RB', //定位按钮的停靠位置 position: 'RB', //定位按钮的停靠位置
offset: [10, 20], //定位按钮与设置的停靠位置的偏移量,默认:[10, 20] offset: [10, 20], //定位按钮与设置的停靠位置的偏移量,默认:[10, 20]
zoomToAccuracy: true, zoomToAccuracy: true,
showButton: false //定位成功后是否自动调整地图视野到定位点 showButton: true //定位成功后是否自动调整地图视野到定位点
}) })
map.addControl(geolocation) map.addControl(geolocation)
}, },
...@@ -503,6 +508,7 @@ export default { ...@@ -503,6 +508,7 @@ export default {
padding: 0 10px; padding: 0 10px;
box-sizing: border-box; box-sizing: border-box;
cursor: pointer; cursor: pointer;
.icon-item { .icon-item {
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
...@@ -513,6 +519,7 @@ export default { ...@@ -513,6 +519,7 @@ export default {
border-right: 1px solid #f0f1f7; border-right: 1px solid #f0f1f7;
padding-right: 10px; padding-right: 10px;
box-sizing: border-box; box-sizing: border-box;
white-space: nowrap;
&:last-child { &:last-child {
border-right: none; border-right: none;
} }
...@@ -522,6 +529,9 @@ export default { ...@@ -522,6 +529,9 @@ export default {
margin: 0 6px 0 10px; margin: 0 6px 0 10px;
} }
} }
.active{
color:#5f5efb;
}
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!