dai 3 years ago
parent
commit
be87f5b10c
  1. BIN
      src/assets/img/shuju/command/close.png
  2. 21
      src/assets/scss/modules/visual/command.scss
  3. 773
      src/views/modules/communityService/measure/info.vue
  4. 2
      src/views/modules/visual/command/cpts/eventInfo.vue
  5. 10
      src/views/modules/visual/command/cpts/map.vue
  6. 9
      src/views/modules/visual/command/index.vue

BIN
src/assets/img/shuju/command/close.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

21
src/assets/scss/modules/visual/command.scss

@ -81,7 +81,7 @@
box-shadow: 0px 4px 8px 0px rgba(147, 147, 147, 0.26); box-shadow: 0px 4px 8px 0px rgba(147, 147, 147, 0.26);
> input { > input {
width: 420px; width: 400px;
border: none; border: none;
line-height: 45px; line-height: 45px;
font-size: 18px; font-size: 18px;
@ -90,10 +90,17 @@
color: #333333; color: #333333;
} }
> img { .i-search {
margin: 0 16px; margin: 0 16px;
width: 30px; width: 24px;
height: 30px; height: 24px;
}
.i-close {
margin-left: 15px;
opacity: 0.2;
width: 20px;
cursor: pointer;
} }
.btn { .btn {
@ -206,7 +213,11 @@
} }
.list { .list {
min-height: 780px; margin-right: -8px;
height: calc(825px - 120px);
overflow-y: auto;
overflow-x: hidden;
@include scrollBar;
} }
} }

773
src/views/modules/communityService/measure/info.vue

File diff suppressed because it is too large

2
src/views/modules/visual/command/cpts/eventInfo.vue

@ -18,7 +18,7 @@
:eventId="eventId" :eventId="eventId"
:eventDetailData="eventDetailData" :eventDetailData="eventDetailData"
:source="'visiual'" :source="'visiual'"
@close="handleClose" @close="handleClose"
@handleClose="handleClose" @handleClose="handleClose"
@handleOk="handleOk" @handleOk="handleOk"
@dialogOk="handleEditSuccess" @dialogOk="handleEditSuccess"

10
src/views/modules/visual/command/cpts/map.vue

@ -628,9 +628,7 @@ export default {
}, },
async setDotMarker(item, posArr) { async setDotMarker(item, posArr) {
if (searchMarker) { this.removeDotMarker();
searchMarker.remove();
}
const marker = new Marker({ const marker = new Marker({
offsets: [0, -20], offsets: [0, -20],
}).setLnglat(posArr); }).setLnglat(posArr);
@ -659,6 +657,12 @@ export default {
searchMarker = marker; searchMarker = marker;
}, },
removeDotMarker() {
if (searchMarker) {
searchMarker.remove();
}
},
// //
zoomInABit() { zoomInABit() {
// let current = scene.getZoom(); // let current = scene.getZoom();

9
src/views/modules/visual/command/index.vue

@ -43,13 +43,14 @@
<div class="m-search"> <div class="m-search">
<div class="input"> <div class="input">
<img src="@/assets/img/shuju/command/search.png" /> <img class="i-search" src="@/assets/img/shuju/command/search.png" />
<input <input
type="text" type="text"
placeholder="请输入" placeholder="请输入"
@keyup.enter="handleSearch" @keyup.enter="handleSearch"
v-model="searchName" v-model="searchName"
/> />
<img class="i-close" @click="clearSearch" src="@/assets/img/shuju/command/close.png" />
<div class="btn" @click="handleSearch">搜索</div> <div class="btn" @click="handleSearch">搜索</div>
</div> </div>
<div class="result" v-if="showedSearchResult"> <div class="result" v-if="showedSearchResult">
@ -189,6 +190,7 @@
v-if="pageType === 'create-demand'" v-if="pageType === 'create-demand'"
ref="ref_demand" ref="ref_demand"
:icResiUserId="icResiUserId" :icResiUserId="icResiUserId"
:selGridId="selGridId"
@handleClose="handleClose" @handleClose="handleClose"
/> />
@ -769,6 +771,11 @@ export default {
} }
}, },
clearSearch(){
this.searchName = '';
this.$refs.map.removeDotMarker();
},
async searchPos() { async searchPos() {
let data = await this.$refs.map.searchPos(this.searchName); let data = await this.$refs.map.searchPos(this.searchName);

Loading…
Cancel
Save