apply-clients 7.1.36-yuchuan-12 → 7.1.36-yuchuan-14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android.html +28 -28
- package/build/dev-server.js +25 -10
- package/index.html +39 -39
- package/package.json +1 -1
- package/src/apply.js +162 -161
- package/src/applyAndroid.js +97 -97
- package/src/components/android/AppSign.vue +235 -235
- package/src/components/android/AppUpload.vue +275 -275
- package/src/components/android/Ignition/VentilationIgnition.vue +408 -408
- package/src/components/android/Ignition/VentilationIgnitionHandle.vue +462 -462
- package/src/components/android/Process/AppExplorationUser.vue +454 -454
- package/src/components/android/Process/AppServiceControl.vue +1437 -1437
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +980 -980
- package/src/components/android/Sign/AppSignTask.vue +183 -183
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +344 -344
- package/src/components/android/Task/GuanXianJianShe/AppExplorationGuanXian.vue +317 -317
- package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +431 -431
- package/src/components/android/Task/yiban/AppShowDone.vue +442 -442
- package/src/components/android/Task/yiban/ShowDone.vue +95 -95
- package/src/components/android/Task/yiban/satisfactionShow.vue +166 -166
- package/src/components/android/newPackage/customerServiceManager.vue +218 -218
- package/src/components/android/newPackage/projectPrice.vue +218 -218
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +1 -1
- package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianViewList.vue +272 -272
- package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +236 -236
- package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +324 -324
- package/src/components/product/ApplyGuanXian/GuanXianExplorationUser.vue +144 -144
- package/src/components/product/ApplyGuanXian/GuanXianSupervisoryhCart.vue +119 -119
- package/src/components/product/ApplyMap/AMapLocation.vue +871 -0
- package/src/components/product/ApplyMap/ApplyDragaboutList.vue +223 -223
- package/src/components/product/ApplyMap/ApplyInputSearch.vue +212 -212
- package/src/components/product/ApplyMap/ApplyMapCom.vue +82 -82
- package/src/components/product/ApplyMap/ApplyMapInputSearch.vue +335 -335
- package/src/components/product/ApplyMap/ApplyMapLocation.vue +862 -862
- package/src/components/product/ChongZheng/ApplyChongZhengList.vue +415 -415
- package/src/components/product/Function/InstallFunction.vue +133 -133
- package/src/components/product/Function/InstallInfoSelect.vue +371 -371
- package/src/components/product/Function/Service/FunctionServiceControl.vue +586 -586
- package/src/components/product/GongJianPush/ApplyPushManage.vue +90 -90
- package/src/components/product/Ignition/IgnitionListManage.vue +602 -602
- package/src/components/product/Ignition/IgnitionRecord.vue +380 -380
- package/src/components/product/InsuranceApply/InsuranceReport.vue +1 -2
- package/src/components/product/List/OldShowDevices.vue +271 -271
- package/src/components/product/List/ShowAllActivity.vue +540 -540
- package/src/components/product/List/ShowDevices.vue +279 -279
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +446 -446
- package/src/components/product/Process/ExplorationSelect.vue +597 -597
- package/src/components/product/Process/ExplorationUser.vue +158 -158
- package/src/components/product/Process/New1ExplorationUser.vue +201 -201
- package/src/components/product/Process/NewExplorationSelect.vue +586 -586
- package/src/components/product/Process/NewExplorationUser.vue +219 -219
- package/src/components/product/Process/Processes/InstallationDetails.vue +1159 -1159
- package/src/components/product/Process/Processes/Print/printCharge.vue +250 -250
- package/src/components/product/Process/Processes/Print/printGaiXianCharge.vue +244 -244
- package/src/components/product/Process/Processes/chargeManagement.vue +704 -704
- package/src/components/product/Process/Processes/devicesManagement.vue +393 -393
- package/src/components/product/Process/Processes/newDevicesManagement.vue +413 -413
- package/src/components/product/Process/Processes/selectChaiChuUserinfo.vue +230 -230
- package/src/components/product/Process/Processes/selectOldUserinfo.vue +241 -241
- package/src/components/product/Process/Processes/selectUserinfo.vue +234 -234
- package/src/components/product/Process/Service/ServiceControl.vue +2205 -2205
- package/src/components/product/ServiceView.vue +644 -644
- package/src/components/product/Stop/StopApplyList.vue +224 -224
- package/src/components/product/Supervisory/NewSupervisoryhCart.vue +175 -175
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +592 -592
- package/src/components/product/Supervisory/SupervisoryControl.vue +116 -116
- package/src/components/product/Supervisory/SupervisoryList.vue +557 -557
- package/src/components/product/Supervisory/SupervisoryhCart.vue +119 -119
- package/src/components/product/Supervisory/YiBanSupervisoryList.vue +539 -539
- package/src/components/product/VueUtils/ApplyUpload.vue +285 -285
- package/src/components/product/records/AdjustmentRecordList.vue +162 -162
- package/src/main.js +27 -27
|
@@ -1,212 +1,212 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="overflow: hidden">
|
|
3
|
-
<div style="height: 5%">
|
|
4
|
-
<!--输入框 搜索成功返回事件 搜索框被点击 搜索框内容被改变 到最后一页 -->
|
|
5
|
-
<apply-map-input-search v-ref:mapinput
|
|
6
|
-
:thiscitycode="mobiCity.citycode"
|
|
7
|
-
:thiscity="mobiCity.city"
|
|
8
|
-
:model.sync="mainList"
|
|
9
|
-
@retres="syncinput"
|
|
10
|
-
@searchinputclick="isMaskLevelShow"
|
|
11
|
-
@closearchlist="closearchlist"
|
|
12
|
-
@searchchange="showLevelShow"
|
|
13
|
-
@endcount="endInputCount" ></apply-map-input-search>
|
|
14
|
-
</div>
|
|
15
|
-
<!--遮罩框 是否显示遮罩层 列表数据 滑动到底部加载 某一条数据被点击 背景色 -->
|
|
16
|
-
<amap-search-list v-ref:maplist
|
|
17
|
-
v-show="isMaskShow"
|
|
18
|
-
:model.sync="mainList"
|
|
19
|
-
@httpload="httpLoad"
|
|
20
|
-
@selected="listSelected"
|
|
21
|
-
:background_color="amaplist_bgcolor">
|
|
22
|
-
<template partial='head'></template>
|
|
23
|
-
<template partial='body'>
|
|
24
|
-
<tr>
|
|
25
|
-
<th>
|
|
26
|
-
<h5>{{row.name}} <small>{{row.type}}</small></h5>
|
|
27
|
-
<small>{{row.pname}}{{row.cityname}}{{row.adname}}{{row.address}}</small>
|
|
28
|
-
</th>
|
|
29
|
-
</tr>
|
|
30
|
-
</template>
|
|
31
|
-
</amap-search-list>
|
|
32
|
-
<div style="height: 50%" v-show="!isMaskShow">
|
|
33
|
-
<!--地图-->
|
|
34
|
-
<div>
|
|
35
|
-
<apply-map-location
|
|
36
|
-
@locationsuccess="locationsuccess"
|
|
37
|
-
v-ref:amapmain mapmodel="dragMap" :usenative="true"
|
|
38
|
-
:isshowsearch="false" :mylocationinfo="false"
|
|
39
|
-
:islocation="islocation" :locationzoomcenter="locationzoomcenter"
|
|
40
|
-
:islocationclearmark="false" :isshowmapmodel="false"
|
|
41
|
-
:zoomcenter="zoomcenter" mapmodel="dragMap"
|
|
42
|
-
@getmylocation="getmylocation"
|
|
43
|
-
@dragsuccess="dragsuccess"
|
|
44
|
-
@initamapsuc="initamapsuc"
|
|
45
|
-
:labelmarksarray="labelmarksarray">
|
|
46
|
-
</apply-map-location>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
<div style="height: 45%" v-show="!isMaskShow">
|
|
50
|
-
<!--拖拽到地方后附近的poi搜索结果-->
|
|
51
|
-
<apply-drag-list
|
|
52
|
-
:rimlocation="rimlocation"
|
|
53
|
-
:location-address="locationAddress"
|
|
54
|
-
@roundlistpoiclick="roundlistpoiclick"
|
|
55
|
-
></apply-drag-list>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</template>
|
|
59
|
-
|
|
60
|
-
<script>
|
|
61
|
-
export default {
|
|
62
|
-
/**
|
|
63
|
-
* 请勿修改源码,此代码是模板代码,如需其他实现方法,复制到项目中修改
|
|
64
|
-
*/
|
|
65
|
-
title: '高德选址主组件',
|
|
66
|
-
props: ['markmapdata'],
|
|
67
|
-
data () {
|
|
68
|
-
return {
|
|
69
|
-
islocation: true,
|
|
70
|
-
locationzoomcenter: true,
|
|
71
|
-
// 是否显示 搜索列表遮罩层
|
|
72
|
-
isMaskShow: false,
|
|
73
|
-
// 遮罩层背景色
|
|
74
|
-
amaplist_bgcolor: 'rgb(250 250 250)',
|
|
75
|
-
// 搜索列表主数据
|
|
76
|
-
mainList: {
|
|
77
|
-
rows: []
|
|
78
|
-
},
|
|
79
|
-
// 选中的城市信息
|
|
80
|
-
mobiCity: {
|
|
81
|
-
citycode: 610800,
|
|
82
|
-
city: '榆林市'
|
|
83
|
-
},
|
|
84
|
-
// 带label的简单点集
|
|
85
|
-
labelmarksarray: [],
|
|
86
|
-
// 地图当前显示的居中位置
|
|
87
|
-
zoomcenter: {
|
|
88
|
-
grade: 12,
|
|
89
|
-
lng: 109.741193,
|
|
90
|
-
lat: 38.290162
|
|
91
|
-
},
|
|
92
|
-
// 下方搜索附近的位置 [经度,纬度]
|
|
93
|
-
rimlocation: [],
|
|
94
|
-
// 拖拽选址当前地址
|
|
95
|
-
locationAddress: {}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
methods: {
|
|
99
|
-
initamapsuc () {
|
|
100
|
-
if (this.markmapdata) {
|
|
101
|
-
this.toMapMarker(this.markmapdata)
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
// 定位回调
|
|
105
|
-
locationsuccess (myLocation) {
|
|
106
|
-
this.mobiCity.citycode = myLocation.city.citycode
|
|
107
|
-
this.mobiCity.city = myLocation.city.city
|
|
108
|
-
},
|
|
109
|
-
// 下方搜索附近poi组件列表的点击事件
|
|
110
|
-
roundlistpoiclick (roeOne) {
|
|
111
|
-
console.log('下方搜索附近Poi' + JSON.stringify(roeOne))
|
|
112
|
-
this.$emit('locationclick', roeOne) // 外部去处理 关闭此选址组件
|
|
113
|
-
this.toMapMarker(roeOne)
|
|
114
|
-
},
|
|
115
|
-
// 上方搜索列表中某项被点击
|
|
116
|
-
listSelected (roeOne) {
|
|
117
|
-
console.log('上方搜索附近Poi' + JSON.stringify(roeOne))
|
|
118
|
-
this.$emit('locationclick', roeOne) // 外部去处理 关闭此选址组件
|
|
119
|
-
this.isMaskShow = false // 关闭搜索遮罩层
|
|
120
|
-
this.toMapMarker(roeOne)
|
|
121
|
-
},
|
|
122
|
-
// 切换显示搜索列表(遮罩层)
|
|
123
|
-
isMaskLevelShow (res) {
|
|
124
|
-
if (res === '') {
|
|
125
|
-
return this.$showMessage('请选择城市')
|
|
126
|
-
}
|
|
127
|
-
this.isMaskShow = true
|
|
128
|
-
},
|
|
129
|
-
// 输入框内点击关闭遮罩层
|
|
130
|
-
closearchlist () {
|
|
131
|
-
this.isMaskShow = false
|
|
132
|
-
},
|
|
133
|
-
// 当搜索框内值变化 (值变化必为新的搜索,就清空之前的数据打开或关闭遮罩)
|
|
134
|
-
showLevelShow (inputText) {
|
|
135
|
-
this.mainList.rows = []
|
|
136
|
-
if (inputText.trim()) {
|
|
137
|
-
// 当搜索框是关闭状态,就打开搜索框
|
|
138
|
-
if (this.isMaskShow === false) {
|
|
139
|
-
this.isMaskShow = true
|
|
140
|
-
}
|
|
141
|
-
} else {
|
|
142
|
-
this.isMaskShow = false
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
// 搜索框返回值组装到搜索列表
|
|
146
|
-
syncinput (res) {
|
|
147
|
-
let status = res.status
|
|
148
|
-
let result = res.result
|
|
149
|
-
console.log('父组件触发-搜索事件')
|
|
150
|
-
if (status === 'complete') {
|
|
151
|
-
if (result.poiList.count === 0) {
|
|
152
|
-
console.log('poi搜索为空')
|
|
153
|
-
// return this.mainList.rows=[]
|
|
154
|
-
}
|
|
155
|
-
this.$refs.maplist.listsuccess() // 搜索成功调用列表的成功(隐藏加载动画)
|
|
156
|
-
for (let i = 0, leat = result.poiList.pois.length; i < leat; i++) {
|
|
157
|
-
this.mainList.rows.push(result.poiList.pois[i])
|
|
158
|
-
}
|
|
159
|
-
} else if (status === 'error') {
|
|
160
|
-
console.log('检索POI失败====')
|
|
161
|
-
this.$refs.maplist.listcatch() // 搜索失败调用列表失败
|
|
162
|
-
} else if (status === 'no_data') {
|
|
163
|
-
console.log('检索返回0结果')
|
|
164
|
-
this.mainList.rows = []
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
// 列表到底部搜索方法
|
|
168
|
-
httpLoad () {
|
|
169
|
-
this.$refs.mapinput.whetherToPageSearch()
|
|
170
|
-
},
|
|
171
|
-
// 到最后一页
|
|
172
|
-
endInputCount () {
|
|
173
|
-
this.$refs.maplist.listend()
|
|
174
|
-
console.log('到最后一页了')
|
|
175
|
-
},
|
|
176
|
-
// 选中的当前位置改变
|
|
177
|
-
getmylocation (res) {
|
|
178
|
-
|
|
179
|
-
},
|
|
180
|
-
// 拖拽选址到哪
|
|
181
|
-
dragsuccess (res) {
|
|
182
|
-
this.rimlocation = [res.position.lng, res.position.lat]
|
|
183
|
-
this.locationAddress = res
|
|
184
|
-
console.log('当前地址', this.locationAddress)
|
|
185
|
-
},
|
|
186
|
-
// 在地图上渲染点 并将视图缩放到该点处
|
|
187
|
-
toMapMarker (data) {
|
|
188
|
-
this.labelmarksarray = [{
|
|
189
|
-
data: {data: '', label: '<span>' + data.name + '</span>', content: data.address},
|
|
190
|
-
position: data.location,
|
|
191
|
-
ismoseOpen: true, // 是否通过鼠标滑过打开信息框 true ,false
|
|
192
|
-
isclearmarker: true, // 是否重新渲染新点时就清除页面所有点 true false 也可以手动去调用 this.map.clearMap(); 该方法属于map地图对象
|
|
193
|
-
ismobiletouchendclear: false, // 手机端长按点后是否松开后关闭弹出的信息框 (_ismoseOpen为true并且_ismobiletouchendclear为true移动端才会在松开后关闭信息框,当你不想在松开后关闭信息框时请将_ismobiletouchendclear设置为false)
|
|
194
|
-
islabel: true // 是否渲染label 标注(标注与信息框不同,信息框全局只有唯一一个)
|
|
195
|
-
}]
|
|
196
|
-
this.zoomcenter = {grade: 15, lng: data.location.lng, lat: data.location.lat}
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
ready () {
|
|
200
|
-
},
|
|
201
|
-
created () {
|
|
202
|
-
},
|
|
203
|
-
watch: {
|
|
204
|
-
},
|
|
205
|
-
computed: {
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
</script>
|
|
209
|
-
|
|
210
|
-
<style scoped>
|
|
211
|
-
|
|
212
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="overflow: hidden">
|
|
3
|
+
<div style="height: 5%">
|
|
4
|
+
<!--输入框 搜索成功返回事件 搜索框被点击 搜索框内容被改变 到最后一页 -->
|
|
5
|
+
<apply-map-input-search v-ref:mapinput
|
|
6
|
+
:thiscitycode="mobiCity.citycode"
|
|
7
|
+
:thiscity="mobiCity.city"
|
|
8
|
+
:model.sync="mainList"
|
|
9
|
+
@retres="syncinput"
|
|
10
|
+
@searchinputclick="isMaskLevelShow"
|
|
11
|
+
@closearchlist="closearchlist"
|
|
12
|
+
@searchchange="showLevelShow"
|
|
13
|
+
@endcount="endInputCount" ></apply-map-input-search>
|
|
14
|
+
</div>
|
|
15
|
+
<!--遮罩框 是否显示遮罩层 列表数据 滑动到底部加载 某一条数据被点击 背景色 -->
|
|
16
|
+
<amap-search-list v-ref:maplist
|
|
17
|
+
v-show="isMaskShow"
|
|
18
|
+
:model.sync="mainList"
|
|
19
|
+
@httpload="httpLoad"
|
|
20
|
+
@selected="listSelected"
|
|
21
|
+
:background_color="amaplist_bgcolor">
|
|
22
|
+
<template partial='head'></template>
|
|
23
|
+
<template partial='body'>
|
|
24
|
+
<tr>
|
|
25
|
+
<th>
|
|
26
|
+
<h5>{{row.name}} <small>{{row.type}}</small></h5>
|
|
27
|
+
<small>{{row.pname}}{{row.cityname}}{{row.adname}}{{row.address}}</small>
|
|
28
|
+
</th>
|
|
29
|
+
</tr>
|
|
30
|
+
</template>
|
|
31
|
+
</amap-search-list>
|
|
32
|
+
<div style="height: 50%" v-show="!isMaskShow">
|
|
33
|
+
<!--地图-->
|
|
34
|
+
<div>
|
|
35
|
+
<apply-map-location
|
|
36
|
+
@locationsuccess="locationsuccess"
|
|
37
|
+
v-ref:amapmain mapmodel="dragMap" :usenative="true"
|
|
38
|
+
:isshowsearch="false" :mylocationinfo="false"
|
|
39
|
+
:islocation="islocation" :locationzoomcenter="locationzoomcenter"
|
|
40
|
+
:islocationclearmark="false" :isshowmapmodel="false"
|
|
41
|
+
:zoomcenter="zoomcenter" mapmodel="dragMap"
|
|
42
|
+
@getmylocation="getmylocation"
|
|
43
|
+
@dragsuccess="dragsuccess"
|
|
44
|
+
@initamapsuc="initamapsuc"
|
|
45
|
+
:labelmarksarray="labelmarksarray">
|
|
46
|
+
</apply-map-location>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
<div style="height: 45%" v-show="!isMaskShow">
|
|
50
|
+
<!--拖拽到地方后附近的poi搜索结果-->
|
|
51
|
+
<apply-drag-list
|
|
52
|
+
:rimlocation="rimlocation"
|
|
53
|
+
:location-address="locationAddress"
|
|
54
|
+
@roundlistpoiclick="roundlistpoiclick"
|
|
55
|
+
></apply-drag-list>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<script>
|
|
61
|
+
export default {
|
|
62
|
+
/**
|
|
63
|
+
* 请勿修改源码,此代码是模板代码,如需其他实现方法,复制到项目中修改
|
|
64
|
+
*/
|
|
65
|
+
title: '高德选址主组件',
|
|
66
|
+
props: ['markmapdata'],
|
|
67
|
+
data () {
|
|
68
|
+
return {
|
|
69
|
+
islocation: true,
|
|
70
|
+
locationzoomcenter: true,
|
|
71
|
+
// 是否显示 搜索列表遮罩层
|
|
72
|
+
isMaskShow: false,
|
|
73
|
+
// 遮罩层背景色
|
|
74
|
+
amaplist_bgcolor: 'rgb(250 250 250)',
|
|
75
|
+
// 搜索列表主数据
|
|
76
|
+
mainList: {
|
|
77
|
+
rows: []
|
|
78
|
+
},
|
|
79
|
+
// 选中的城市信息
|
|
80
|
+
mobiCity: {
|
|
81
|
+
citycode: 610800,
|
|
82
|
+
city: '榆林市'
|
|
83
|
+
},
|
|
84
|
+
// 带label的简单点集
|
|
85
|
+
labelmarksarray: [],
|
|
86
|
+
// 地图当前显示的居中位置
|
|
87
|
+
zoomcenter: {
|
|
88
|
+
grade: 12,
|
|
89
|
+
lng: 109.741193,
|
|
90
|
+
lat: 38.290162
|
|
91
|
+
},
|
|
92
|
+
// 下方搜索附近的位置 [经度,纬度]
|
|
93
|
+
rimlocation: [],
|
|
94
|
+
// 拖拽选址当前地址
|
|
95
|
+
locationAddress: {}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
methods: {
|
|
99
|
+
initamapsuc () {
|
|
100
|
+
if (this.markmapdata) {
|
|
101
|
+
this.toMapMarker(this.markmapdata)
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
// 定位回调
|
|
105
|
+
locationsuccess (myLocation) {
|
|
106
|
+
this.mobiCity.citycode = myLocation.city.citycode
|
|
107
|
+
this.mobiCity.city = myLocation.city.city
|
|
108
|
+
},
|
|
109
|
+
// 下方搜索附近poi组件列表的点击事件
|
|
110
|
+
roundlistpoiclick (roeOne) {
|
|
111
|
+
console.log('下方搜索附近Poi' + JSON.stringify(roeOne))
|
|
112
|
+
this.$emit('locationclick', roeOne) // 外部去处理 关闭此选址组件
|
|
113
|
+
this.toMapMarker(roeOne)
|
|
114
|
+
},
|
|
115
|
+
// 上方搜索列表中某项被点击
|
|
116
|
+
listSelected (roeOne) {
|
|
117
|
+
console.log('上方搜索附近Poi' + JSON.stringify(roeOne))
|
|
118
|
+
this.$emit('locationclick', roeOne) // 外部去处理 关闭此选址组件
|
|
119
|
+
this.isMaskShow = false // 关闭搜索遮罩层
|
|
120
|
+
this.toMapMarker(roeOne)
|
|
121
|
+
},
|
|
122
|
+
// 切换显示搜索列表(遮罩层)
|
|
123
|
+
isMaskLevelShow (res) {
|
|
124
|
+
if (res === '') {
|
|
125
|
+
return this.$showMessage('请选择城市')
|
|
126
|
+
}
|
|
127
|
+
this.isMaskShow = true
|
|
128
|
+
},
|
|
129
|
+
// 输入框内点击关闭遮罩层
|
|
130
|
+
closearchlist () {
|
|
131
|
+
this.isMaskShow = false
|
|
132
|
+
},
|
|
133
|
+
// 当搜索框内值变化 (值变化必为新的搜索,就清空之前的数据打开或关闭遮罩)
|
|
134
|
+
showLevelShow (inputText) {
|
|
135
|
+
this.mainList.rows = []
|
|
136
|
+
if (inputText.trim()) {
|
|
137
|
+
// 当搜索框是关闭状态,就打开搜索框
|
|
138
|
+
if (this.isMaskShow === false) {
|
|
139
|
+
this.isMaskShow = true
|
|
140
|
+
}
|
|
141
|
+
} else {
|
|
142
|
+
this.isMaskShow = false
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
// 搜索框返回值组装到搜索列表
|
|
146
|
+
syncinput (res) {
|
|
147
|
+
let status = res.status
|
|
148
|
+
let result = res.result
|
|
149
|
+
console.log('父组件触发-搜索事件')
|
|
150
|
+
if (status === 'complete') {
|
|
151
|
+
if (result.poiList.count === 0) {
|
|
152
|
+
console.log('poi搜索为空')
|
|
153
|
+
// return this.mainList.rows=[]
|
|
154
|
+
}
|
|
155
|
+
this.$refs.maplist.listsuccess() // 搜索成功调用列表的成功(隐藏加载动画)
|
|
156
|
+
for (let i = 0, leat = result.poiList.pois.length; i < leat; i++) {
|
|
157
|
+
this.mainList.rows.push(result.poiList.pois[i])
|
|
158
|
+
}
|
|
159
|
+
} else if (status === 'error') {
|
|
160
|
+
console.log('检索POI失败====')
|
|
161
|
+
this.$refs.maplist.listcatch() // 搜索失败调用列表失败
|
|
162
|
+
} else if (status === 'no_data') {
|
|
163
|
+
console.log('检索返回0结果')
|
|
164
|
+
this.mainList.rows = []
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
// 列表到底部搜索方法
|
|
168
|
+
httpLoad () {
|
|
169
|
+
this.$refs.mapinput.whetherToPageSearch()
|
|
170
|
+
},
|
|
171
|
+
// 到最后一页
|
|
172
|
+
endInputCount () {
|
|
173
|
+
this.$refs.maplist.listend()
|
|
174
|
+
console.log('到最后一页了')
|
|
175
|
+
},
|
|
176
|
+
// 选中的当前位置改变
|
|
177
|
+
getmylocation (res) {
|
|
178
|
+
|
|
179
|
+
},
|
|
180
|
+
// 拖拽选址到哪
|
|
181
|
+
dragsuccess (res) {
|
|
182
|
+
this.rimlocation = [res.position.lng, res.position.lat]
|
|
183
|
+
this.locationAddress = res
|
|
184
|
+
console.log('当前地址', this.locationAddress)
|
|
185
|
+
},
|
|
186
|
+
// 在地图上渲染点 并将视图缩放到该点处
|
|
187
|
+
toMapMarker (data) {
|
|
188
|
+
this.labelmarksarray = [{
|
|
189
|
+
data: {data: '', label: '<span>' + data.name + '</span>', content: data.address},
|
|
190
|
+
position: data.location,
|
|
191
|
+
ismoseOpen: true, // 是否通过鼠标滑过打开信息框 true ,false
|
|
192
|
+
isclearmarker: true, // 是否重新渲染新点时就清除页面所有点 true false 也可以手动去调用 this.map.clearMap(); 该方法属于map地图对象
|
|
193
|
+
ismobiletouchendclear: false, // 手机端长按点后是否松开后关闭弹出的信息框 (_ismoseOpen为true并且_ismobiletouchendclear为true移动端才会在松开后关闭信息框,当你不想在松开后关闭信息框时请将_ismobiletouchendclear设置为false)
|
|
194
|
+
islabel: true // 是否渲染label 标注(标注与信息框不同,信息框全局只有唯一一个)
|
|
195
|
+
}]
|
|
196
|
+
this.zoomcenter = {grade: 15, lng: data.location.lng, lat: data.location.lat}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
ready () {
|
|
200
|
+
},
|
|
201
|
+
created () {
|
|
202
|
+
},
|
|
203
|
+
watch: {
|
|
204
|
+
},
|
|
205
|
+
computed: {
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
</script>
|
|
209
|
+
|
|
210
|
+
<style scoped>
|
|
211
|
+
|
|
212
|
+
</style>
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="background-color: #ffffff;padding: 10px;">
|
|
3
|
-
<template v-if="this.selectdata.defname === '报装申请'|| this.selectdata.defname === '报建受理'|| this.selectdata.defname ==='现场勘察'">
|
|
4
|
-
<apply-input-search
|
|
5
|
-
:markmapdata="markmapdata" v-ref:pick
|
|
6
|
-
@locationclick="locationclick"
|
|
7
|
-
></apply-input-search>
|
|
8
|
-
</template>
|
|
9
|
-
<template v-else>
|
|
10
|
-
<amap-location
|
|
11
|
-
:isshowsearch="false"
|
|
12
|
-
:mylocationinfo="false"
|
|
13
|
-
:isshowmapmodel="false"
|
|
14
|
-
:islocation="false"
|
|
15
|
-
mapmodel="dragMarker"
|
|
16
|
-
:labelmarksarray="labelmarksarray"
|
|
17
|
-
></amap-location>
|
|
18
|
-
</template>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
<script>
|
|
22
|
-
export default {
|
|
23
|
-
title: '地图',
|
|
24
|
-
props: {
|
|
25
|
-
selectdata: {
|
|
26
|
-
type: Object
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
data () {
|
|
30
|
-
return {
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
ready () {
|
|
34
|
-
console.log('-----------------------进入地图-------------------------')
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
locationclick (res) {
|
|
38
|
-
console.log('=======选点回调=======')
|
|
39
|
-
console.log(res)
|
|
40
|
-
|
|
41
|
-
this.$dispatch('locationclick', res)
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
events: {
|
|
45
|
-
},
|
|
46
|
-
computed: {
|
|
47
|
-
markmapdata () {
|
|
48
|
-
if (!this.selectdata.f_lng || !this.selectdata.f_lat) {
|
|
49
|
-
return null
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
name: `${this.selectdata.f_user_name}`,
|
|
53
|
-
address: `${this.selectdata.f_order_address}`,
|
|
54
|
-
location: {
|
|
55
|
-
Q: this.selectdata.f_lat,
|
|
56
|
-
R: this.selectdata.f_lng,
|
|
57
|
-
lat: this.selectdata.f_lat,
|
|
58
|
-
lng: this.selectdata.f_lng
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
labelmarksarray () {
|
|
63
|
-
return [{
|
|
64
|
-
data: {
|
|
65
|
-
data: this.selectdata,
|
|
66
|
-
label: `<div style="background: #fff;border-radius: 5px;height: 100px;padding: 5px">
|
|
67
|
-
<h5>${this.selectdata.f_user_name}</h5>
|
|
68
|
-
<h5>${this.selectdata.f_phone}</h5>
|
|
69
|
-
<h5>${this.selectdata.f_order_address}</h5>
|
|
70
|
-
</div>`
|
|
71
|
-
},
|
|
72
|
-
position: [this.selectdata.f_lng, this.selectdata.f_lat],
|
|
73
|
-
isclearmarker: false
|
|
74
|
-
}]
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
watch: {
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
</script>
|
|
81
|
-
<style scoped>
|
|
82
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="background-color: #ffffff;padding: 10px;">
|
|
3
|
+
<template v-if="this.selectdata.defname === '报装申请'|| this.selectdata.defname === '报建受理'|| this.selectdata.defname ==='现场勘察'">
|
|
4
|
+
<apply-input-search
|
|
5
|
+
:markmapdata="markmapdata" v-ref:pick
|
|
6
|
+
@locationclick="locationclick"
|
|
7
|
+
></apply-input-search>
|
|
8
|
+
</template>
|
|
9
|
+
<template v-else>
|
|
10
|
+
<apply-amap-location
|
|
11
|
+
:isshowsearch="false"
|
|
12
|
+
:mylocationinfo="false"
|
|
13
|
+
:isshowmapmodel="false"
|
|
14
|
+
:islocation="false"
|
|
15
|
+
mapmodel="dragMarker"
|
|
16
|
+
:labelmarksarray="labelmarksarray"
|
|
17
|
+
></apply-amap-location>
|
|
18
|
+
</template>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
<script>
|
|
22
|
+
export default {
|
|
23
|
+
title: '地图',
|
|
24
|
+
props: {
|
|
25
|
+
selectdata: {
|
|
26
|
+
type: Object
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
data () {
|
|
30
|
+
return {
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
ready () {
|
|
34
|
+
console.log('-----------------------进入地图-------------------------')
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
locationclick (res) {
|
|
38
|
+
console.log('=======选点回调=======')
|
|
39
|
+
console.log(res)
|
|
40
|
+
|
|
41
|
+
this.$dispatch('locationclick', res)
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
events: {
|
|
45
|
+
},
|
|
46
|
+
computed: {
|
|
47
|
+
markmapdata () {
|
|
48
|
+
if (!this.selectdata.f_lng || !this.selectdata.f_lat) {
|
|
49
|
+
return null
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
name: `${this.selectdata.f_user_name}`,
|
|
53
|
+
address: `${this.selectdata.f_order_address}`,
|
|
54
|
+
location: {
|
|
55
|
+
Q: this.selectdata.f_lat,
|
|
56
|
+
R: this.selectdata.f_lng,
|
|
57
|
+
lat: this.selectdata.f_lat,
|
|
58
|
+
lng: this.selectdata.f_lng
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
labelmarksarray () {
|
|
63
|
+
return [{
|
|
64
|
+
data: {
|
|
65
|
+
data: this.selectdata,
|
|
66
|
+
label: `<div style="background: #fff;border-radius: 5px;height: 100px;padding: 5px">
|
|
67
|
+
<h5>${this.selectdata.f_user_name}</h5>
|
|
68
|
+
<h5>${this.selectdata.f_phone}</h5>
|
|
69
|
+
<h5>${this.selectdata.f_order_address}</h5>
|
|
70
|
+
</div>`
|
|
71
|
+
},
|
|
72
|
+
position: [this.selectdata.f_lng, this.selectdata.f_lat],
|
|
73
|
+
isclearmarker: false
|
|
74
|
+
}]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
watch: {
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
</script>
|
|
81
|
+
<style scoped>
|
|
82
|
+
</style>
|