vue2-client 1.2.0 → 1.2.3
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/README.md +65 -65
- package/babel.config.js +1 -0
- package/docs/notice.md +22 -0
- package/index.js +28 -28
- package/package.json +1 -1
- package/src/App.vue +93 -93
- package/src/assets/img/SunClientDownload.png +0 -0
- package/src/assets/img/SunClientManual/1.png +0 -0
- package/src/assets/img/SunClientManual/2.png +0 -0
- package/src/assets/img/SunClientManual/3.png +0 -0
- package/src/assets/img/SunClientManual/4.png +0 -0
- package/src/assets/img/ToDeskDownload.png +0 -0
- package/src/assets/img/ToDeskManual/1.png +0 -0
- package/src/assets/img/ToDeskManual/2.png +0 -0
- package/src/assets/img/ToDeskManual/3.png +0 -0
- package/src/assets/img/ToDeskManual/4.png +0 -0
- package/src/assets/sound/newNote.mp3 +0 -0
- package/src/base-client/all.js +57 -57
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +1157 -1159
- package/src/base-client/components/common/CreateQuery/index.md +42 -42
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +540 -540
- package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
- package/src/base-client/components/common/CustomColumnsDrawer/index.md +46 -46
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +150 -150
- package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
- package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
- package/src/base-client/components/common/XAddForm/XAddForm.vue +323 -323
- package/src/base-client/components/common/XAddForm/index.md +60 -60
- package/src/base-client/components/common/XBadge/index.md +39 -39
- package/src/base-client/components/common/XCard/index.md +43 -43
- package/src/base-client/components/common/XForm/XForm.vue +275 -275
- package/src/base-client/components/common/XForm/XFormItem.vue +217 -217
- package/src/base-client/components/common/XForm/index.md +196 -196
- package/src/base-client/components/common/XFormCol/index.md +35 -35
- package/src/base-client/components/common/XFormTable/XFormTable.vue +407 -405
- package/src/base-client/components/common/XFormTable/index.md +89 -89
- package/src/base-client/components/common/XTable/XTable.vue +262 -262
- package/src/base-client/components/common/XTable/index.md +255 -255
- package/src/base-client/components/common/XTreeOne/XTreeOne.vue +105 -105
- package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +226 -226
- package/src/base-client/components/iot/CustomerDetailsView/index.md +41 -41
- package/src/base-client/components/iot/DataAnalysisUser/DataAnalysisUser.vue +127 -127
- package/src/base-client/components/iot/DataAnalysisView/DataAnalysisView.vue +244 -250
- package/src/base-client/components/iot/DataAnalysisViewGD/DataAnalysisViewGD.vue +548 -548
- package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +453 -453
- package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +231 -231
- package/src/base-client/components/iot/DeviceDetailsView/index.md +43 -43
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +330 -330
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -57
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstruct.vue +122 -122
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +122 -122
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsMain.vue +225 -225
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +135 -135
- package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +277 -277
- package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +472 -472
- package/src/base-client/components/iot/InstructDetailsView/index.md +45 -45
- package/src/base-client/components/iot/LogDetailsView/LogDetailsView.vue +380 -380
- package/src/base-client/components/iot/LogDetailsView/index.md +43 -43
- package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +360 -360
- package/src/base-client/components/iot/MeterDetailsView/index.md +43 -43
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +335 -335
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +185 -185
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +292 -292
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +237 -237
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +257 -257
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +190 -190
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +723 -723
- package/src/base-client/components/iot/WebmeterAnalysisView/index.md +48 -48
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
- package/src/base-client/components/system/DictionaryDetailsView/index.md +41 -41
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +248 -248
- package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +371 -406
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +838 -486
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +261 -184
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +528 -303
- package/src/base-client/plugins/AppData.js +69 -69
- package/src/base-client/plugins/GetLoginInfoService.js +221 -221
- package/src/base-client/plugins/index.js +21 -21
- package/src/bootstrap.js +27 -27
- package/src/components/Ellipsis/Ellipsis.vue +64 -64
- package/src/components/Ellipsis/index.md +38 -38
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/STable/README.md +341 -341
- package/src/components/Trend/index.md +45 -45
- package/src/components/cache/AKeepAlive.js +172 -172
- package/src/components/checkbox/index.js +7 -7
- package/src/components/index.js +36 -36
- package/src/components/menu/menu.js +273 -273
- package/src/components/setting/Setting.vue +237 -237
- package/src/components/table/advance/AdvanceTable.vue +275 -275
- package/src/components/transition/PageToggleTransition.vue +97 -97
- package/src/layouts/CommonLayout.vue +42 -42
- package/src/layouts/PageLayout.vue +151 -151
- package/src/layouts/SinglePageView.vue +74 -74
- package/src/layouts/header/AdminHeader.vue +109 -109
- package/src/layouts/header/HeaderAvatar.vue +60 -60
- package/src/layouts/header/HeaderNotice.vue +97 -97
- package/src/layouts/tabs/TabsHead.vue +190 -190
- package/src/layouts/tabs/TabsView.vue +355 -355
- package/src/main.js +20 -20
- package/src/mock/goods/index.js +108 -108
- package/src/mock/index.js +12 -12
- package/src/mock/project/index.js +17 -17
- package/src/mock/user/current.js +13 -13
- package/src/mock/user/login.js +39 -39
- package/src/mock/workplace/index.js +15 -15
- package/src/pages/exception/403.vue +25 -25
- package/src/pages/exception/404.vue +25 -25
- package/src/pages/exception/500.vue +25 -25
- package/src/pages/login/Login.vue +194 -194
- package/src/pages/report/ReportTableHome.vue +28 -28
- package/src/pages/resourceManage/resourceManageMain.vue +55 -55
- package/src/pages/system/applyInstallView/Core.vue +570 -570
- package/src/pages/system/applyInstallView/index.vue +34 -34
- package/src/pages/system/dictionary/index.vue +41 -41
- package/src/pages/system/queryParams/index.vue +41 -41
- package/src/router/async/config.async.js +25 -25
- package/src/router/async/router.map.js +59 -59
- package/src/router/guards.js +104 -104
- package/src/router/index.js +27 -27
- package/src/services/api/EmployeeDetailsViewApi.js +3 -1
- package/src/services/api/TicketDetailsViewApi.js +9 -1
- package/src/services/api/common.js +37 -39
- package/src/services/api/restTools.js +23 -23
- package/src/services/dataSource.js +12 -12
- package/src/services/user.js +34 -34
- package/src/store/modules/setting.js +114 -114
- package/src/utils/i18n.js +80 -80
- package/src/utils/indexedDB.js +146 -146
- package/src/utils/request.js +197 -197
- package/src/utils/routerUtil.js +15 -2
- package/tests/unit/ReportTable.spec.js +15 -15
- package/vue.config.js +153 -153
- package/webpack.config.js +12 -12
|
@@ -1,250 +1,244 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-row type="flex">
|
|
3
|
-
<baidu-map
|
|
4
|
-
:mapStyle="mapStyle"
|
|
5
|
-
class="bm-view"
|
|
6
|
-
:center="'西安'"
|
|
7
|
-
:scroll-wheel-zoom="true"
|
|
8
|
-
:zoom="zoom"
|
|
9
|
-
@ready="handler"
|
|
10
|
-
@click="searchClick"
|
|
11
|
-
ak="YOUR_APP_KEY">
|
|
12
|
-
<bm-view style="width: 100%; height:100%; flex: 1"></bm-view>
|
|
13
|
-
<bm-control :offset="{width: '10px', height: '10px'}">
|
|
14
|
-
<bm-auto-complete :sugStyle="{zIndex: 1}">
|
|
15
|
-
<a-input v-model="keyword" type="text" placeholder="地区信息搜索" style="width: 150px;height: 50px" /> <!-- 这里指代一个自定义搜索框组件 -->
|
|
16
|
-
</bm-auto-complete>
|
|
17
|
-
</bm-control>
|
|
18
|
-
<bm-navigation anchor="BMAP_ANCHOR_TOP_RIGHT"></bm-navigation>
|
|
19
|
-
<bm-geolocation anchor="BMAP_ANCHOR_BOTTOM_RIGHT" :showAddressBar="true" :autoLocation="true"></bm-geolocation>
|
|
20
|
-
<bm-local-search :keyword="keyword" :panel="false" :auto-viewport="true" zoom="12.8" style="display: none" ></bm-local-search>
|
|
21
|
-
</baidu-map>
|
|
22
|
-
</a-row>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script>
|
|
26
|
-
import BaiduMap from 'vue-baidu-map
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
this
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
display: none;
|
|
246
|
-
}
|
|
247
|
-
.anchorBL {
|
|
248
|
-
display: none;
|
|
249
|
-
}
|
|
250
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<a-row type="flex">
|
|
3
|
+
<baidu-map
|
|
4
|
+
:mapStyle="mapStyle"
|
|
5
|
+
class="bm-view"
|
|
6
|
+
:center="'西安'"
|
|
7
|
+
:scroll-wheel-zoom="true"
|
|
8
|
+
:zoom="zoom"
|
|
9
|
+
@ready="handler"
|
|
10
|
+
@click="searchClick"
|
|
11
|
+
ak="YOUR_APP_KEY">
|
|
12
|
+
<bm-view style="width: 100%; height:100%; flex: 1"></bm-view>
|
|
13
|
+
<bm-control :offset="{width: '10px', height: '10px'}">
|
|
14
|
+
<bm-auto-complete :sugStyle="{zIndex: 1}">
|
|
15
|
+
<a-input v-model="keyword" type="text" placeholder="地区信息搜索" style="width: 150px;height: 50px" /> <!-- 这里指代一个自定义搜索框组件 -->
|
|
16
|
+
</bm-auto-complete>
|
|
17
|
+
</bm-control>
|
|
18
|
+
<bm-navigation anchor="BMAP_ANCHOR_TOP_RIGHT"></bm-navigation>
|
|
19
|
+
<bm-geolocation anchor="BMAP_ANCHOR_BOTTOM_RIGHT" :showAddressBar="true" :autoLocation="true"></bm-geolocation>
|
|
20
|
+
<bm-local-search :keyword="keyword" :panel="false" :auto-viewport="true" zoom="12.8" style="display: none" ></bm-local-search>
|
|
21
|
+
</baidu-map>
|
|
22
|
+
</a-row>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
import { BaiduMap, BmView, BmNavigation, BMCityList, BmGeolocation, BmControl, BmLocalSearch } from 'vue-baidu-map'
|
|
27
|
+
export default {
|
|
28
|
+
components: {
|
|
29
|
+
BaiduMap,
|
|
30
|
+
BmNavigation,
|
|
31
|
+
BmView,
|
|
32
|
+
BMCityList,
|
|
33
|
+
BmGeolocation,
|
|
34
|
+
BmControl,
|
|
35
|
+
BmLocalSearch
|
|
36
|
+
},
|
|
37
|
+
data () {
|
|
38
|
+
return {
|
|
39
|
+
keyword: '',
|
|
40
|
+
center: {
|
|
41
|
+
lng: 12131693.03,
|
|
42
|
+
lat: 4063684.53
|
|
43
|
+
},
|
|
44
|
+
zoom: 17,
|
|
45
|
+
address: {
|
|
46
|
+
propprovince: '', // 省
|
|
47
|
+
propcity: '', // 市
|
|
48
|
+
propcounty: '', // 县
|
|
49
|
+
propaddress: '' // 详细地址
|
|
50
|
+
},
|
|
51
|
+
mapStyle: {
|
|
52
|
+
styleJson: [
|
|
53
|
+
{
|
|
54
|
+
featureType: 'water',
|
|
55
|
+
elementType: 'all',
|
|
56
|
+
stylers: {
|
|
57
|
+
color: '#021019'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
featureType: 'highway',
|
|
62
|
+
elementType: 'geometry.fill',
|
|
63
|
+
stylers: {
|
|
64
|
+
color: '#000000'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
featureType: 'highway',
|
|
69
|
+
elementType: 'geometry.stroke',
|
|
70
|
+
stylers: {
|
|
71
|
+
color: '#147a92'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
featureType: 'arterial',
|
|
76
|
+
elementType: 'geometry.fill',
|
|
77
|
+
stylers: {
|
|
78
|
+
color: '#000000'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
featureType: 'arterial',
|
|
83
|
+
elementType: 'geometry.stroke',
|
|
84
|
+
stylers: {
|
|
85
|
+
color: '#0b3d51'
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
featureType: 'local',
|
|
90
|
+
elementType: 'geometry',
|
|
91
|
+
stylers: {
|
|
92
|
+
color: '#000000'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
featureType: 'land',
|
|
97
|
+
elementType: 'all',
|
|
98
|
+
stylers: {
|
|
99
|
+
color: '#08304b'
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
featureType: 'railway',
|
|
104
|
+
elementType: 'geometry.fill',
|
|
105
|
+
stylers: {
|
|
106
|
+
color: '#000000'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
featureType: 'railway',
|
|
111
|
+
elementType: 'geometry.stroke',
|
|
112
|
+
stylers: {
|
|
113
|
+
color: '#08304b'
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
featureType: 'subway',
|
|
118
|
+
elementType: 'geometry',
|
|
119
|
+
stylers: {
|
|
120
|
+
lightness: -70
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
featureType: 'building',
|
|
125
|
+
elementType: 'geometry.fill',
|
|
126
|
+
stylers: {
|
|
127
|
+
color: '#000000'
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
featureType: 'all',
|
|
132
|
+
elementType: 'labels.text.fill',
|
|
133
|
+
stylers: {
|
|
134
|
+
color: '#857f7f'
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
featureType: 'all',
|
|
139
|
+
elementType: 'labels.text.stroke',
|
|
140
|
+
stylers: {
|
|
141
|
+
color: '#000000'
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
featureType: 'building',
|
|
146
|
+
elementType: 'geometry',
|
|
147
|
+
stylers: {
|
|
148
|
+
color: '#022338'
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
featureType: 'green',
|
|
153
|
+
elementType: 'geometry',
|
|
154
|
+
stylers: {
|
|
155
|
+
color: '#062032'
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
featureType: 'boundary',
|
|
160
|
+
elementType: 'all',
|
|
161
|
+
stylers: {
|
|
162
|
+
color: '#1e1c1c'
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
featureType: 'manmade',
|
|
167
|
+
elementType: 'geometry',
|
|
168
|
+
stylers: {
|
|
169
|
+
color: '#022338'
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
featureType: 'poi',
|
|
174
|
+
elementType: 'all',
|
|
175
|
+
stylers: {
|
|
176
|
+
visibility: 'off'
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
featureType: 'all',
|
|
181
|
+
elementType: 'labels.icon',
|
|
182
|
+
stylers: {
|
|
183
|
+
visibility: 'off'
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
featureType: 'all',
|
|
188
|
+
elementType: 'labels.text.fill',
|
|
189
|
+
stylers: {
|
|
190
|
+
color: '#2da0c6',
|
|
191
|
+
visibility: 'on'
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
methods: {
|
|
199
|
+
searchClick (e) {
|
|
200
|
+
const _this = this
|
|
201
|
+
this.longitude = e.point.lng// 经度
|
|
202
|
+
this.latitude = e.point.lat// 维度
|
|
203
|
+
this.center.lng = _this.longitude // 中心点
|
|
204
|
+
this.center.lat = _this.latitude// 中心点
|
|
205
|
+
// eslint-disable-next-line no-undef
|
|
206
|
+
const geocoder = new BMap.Geocoder() // 创建地址解析器的实例
|
|
207
|
+
geocoder.getLocation(e.point, function (rs) {
|
|
208
|
+
console.log(rs)
|
|
209
|
+
_this.address.propprovince = rs.addressComponents.province // 省
|
|
210
|
+
_this.address.propcity = rs.addressComponents.city // 市
|
|
211
|
+
_this.address.propcounty = rs.addressComponents.district // 县
|
|
212
|
+
_this.address.propaddress = rs.address// 详细地址
|
|
213
|
+
})
|
|
214
|
+
console.log('geocoder', _this.address)
|
|
215
|
+
this.$emit('togShow', _this.address)
|
|
216
|
+
},
|
|
217
|
+
|
|
218
|
+
handler ({ BMap, map }) {
|
|
219
|
+
console.log(BMap, map)
|
|
220
|
+
this.center.lng = 116.404
|
|
221
|
+
this.center.lat = 39.915
|
|
222
|
+
this.zoom = 15
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
watch: {
|
|
226
|
+
'keyword' (val) {
|
|
227
|
+
console.log(val)
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
</script>
|
|
232
|
+
|
|
233
|
+
<style>
|
|
234
|
+
.bm-view {
|
|
235
|
+
width: 100%;
|
|
236
|
+
height:500px;
|
|
237
|
+
}
|
|
238
|
+
.BMap_cpyCtrl {
|
|
239
|
+
display: none;
|
|
240
|
+
}
|
|
241
|
+
.anchorBL {
|
|
242
|
+
display: none;
|
|
243
|
+
}
|
|
244
|
+
</style>
|