manage-client 3.2.16 → 3.2.20

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.
Files changed (88) hide show
  1. package/build/dev-server.js +8 -24
  2. package/package.json +1 -1
  3. package/src/components/BasisEcharts/BarChart.vue +247 -247
  4. package/src/components/SellReport/BonSummary.vue +178 -178
  5. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  6. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  7. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  8. package/src/components/SellReport/NonResidentGas.vue +203 -203
  9. package/src/components/SellReport/OutletTable.vue +258 -258
  10. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  11. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  12. package/src/components/SellReport/SellingTable.vue +220 -220
  13. package/src/components/SellReport/UserSellingGas.vue +177 -177
  14. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  15. package/src/components/daping/GMap.vue +636 -636
  16. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  17. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  18. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  19. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  20. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  21. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  22. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  23. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  24. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  25. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  26. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  27. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  28. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  29. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  30. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  31. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  32. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  33. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  34. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  35. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  36. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  37. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  38. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  39. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  40. package/src/components/webmeter/report/ReportList.vue +36 -22
  41. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  42. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  43. package/src/filiale/WEINAN/ReportDataQuery.vue +276 -249
  44. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  45. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  46. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  47. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  48. package/src/filiale/WEINAN/config/exportConfig.js +99 -83
  49. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  50. package/src/filiale/WEINAN/reportManage.js +12 -12
  51. package/src/filiale/WEINAN/sale.js +36 -36
  52. package/src/filiale/alashan/reportManage.js +10 -10
  53. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  54. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  55. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  56. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  57. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  58. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  59. package/src/filiale/meihekou/YingShouMingXi.vue +538 -0
  60. package/src/filiale/meihekou/config/exportConfig.js +27 -0
  61. package/src/filiale/meihekou/sale.js +29 -26
  62. package/src/filiale/pingxiang/sale.js +9 -9
  63. package/src/filiale/qingtongxia/sale.js +13 -13
  64. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  65. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  66. package/src/filiale/rongchuang/reportManage.js +11 -11
  67. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  68. package/src/filiale/shaoguan/RecordInfoQuery.vue +80 -80
  69. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  70. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  71. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  72. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  73. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  74. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  75. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  76. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -302
  77. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  78. package/src/filiale/tongchuan/reportManage.js +5 -6
  79. package/src/main.js +4 -4
  80. package/static/wuhai.json +1610 -1610
  81. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  82. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  83. package/.gradle/5.4.1/gc.properties +0 -0
  84. package/src/.idea/misc.xml +0 -9
  85. package/src/.idea/modules.xml +0 -8
  86. package/src/.idea/src.iml +0 -9
  87. package/src/.idea/vcs.xml +0 -6
  88. package/src/.idea/workspace.xml +0 -93
@@ -1,636 +1,636 @@
1
- <template>
2
- <div>
3
- <div id="containerr" style="height: auto" tabindex="0">
4
- <div class="input-card" v-if="outerlinedata&&outerlinedata.points">
5
- <h4>轨迹回放</h4>
6
- <div class="input-item">
7
- <input type="button" class="btn btn-info" value="开始动画" id="start" @click="startAnimation()"/>
8
- <input v-show="!ispause" type="button" class="btn btn-info" value="暂停动画" id="pause" @click="pauseAnimation()"/>
9
- <input v-if="ispause" type="button" class="btn btn-info" value="继续动画" id="resume" @click="resumeAnimation()"/>
10
- </div>
11
- <div class="input-item">
12
- <input type="button" class="btn btn-info" value="加速动画" id="add" @click="speedUp()"/>
13
- <input type="button" class="btn btn-info" value="减速动画" id="des" @click="speedDown()"/>
14
- </div>
15
- </div>
16
- </div>
17
-
18
- <div id="panel" v-show="showPanel"></div>
19
- </div>
20
- </template>
21
- <script>
22
- import * as maptool from '../../plugins/transformer'
23
- export default {
24
- title: "地图",
25
- props: {
26
- //轨迹
27
- //示例
28
-
29
- outerlinedata: {
30
- type: Object,
31
- default: {}
32
- },
33
- //单点
34
- //示例 {"name2":"终点","f_longitude":108.9592663294896,"f_latitude":34.163040719830576,"iconurl":"https://webapi.amap.com/theme/v1.3/markers/n/end.png","zIndex":10}
35
- singlepoint: {
36
- type: Object,
37
- default: {}
38
- },
39
- //点集
40
- points: {
41
- type: Object,
42
- default: {
43
- url: 'rs/sql/getDapingStationMap',
44
- data: {subcompany:'%'}
45
- }
46
- },
47
- //当前用户
48
- curuser: {
49
- type: Object,
50
- default: {}
51
- },
52
- ispause: false,
53
- //最大高度
54
- maxheight: '',
55
- //最大宽度
56
- maxwidth: '',
57
- showBox: {
58
- type: Boolean,
59
- default: false
60
- },
61
- showPanel: {
62
- type: Boolean,
63
- default: false
64
- }
65
- },
66
- data() {
67
- return {
68
- // model: new PagedList('rs/sql/singleTable_OrderBy', 10, {
69
- // items: '"*"',
70
- // tablename: '"t_repairman"',
71
- // orderitem: '"ID desc"'
72
- // }),
73
- path: "rs/WX/searchMarker", // 获取标记点数组请求路径
74
- rate: 1, // 控制速度比率
75
- postData: [], // 获取后台数据的参数
76
- map: null, // 显示地图实例
77
- position: null, // 定位对象
78
- startmaker: null,
79
- stmarker: {}, // 开始标记
80
- endmarker: {}, // 结束标记
81
- repairmanData: [], // 维修员信息
82
- placeSearch: null, // 地点查询对象
83
- driving: null, // 驾车线路规划对象
84
- parameters: [], // 西安银行ATM接口需求,将参数放在数组中
85
- R: 1, // 半径 (单位:千米) 围栏显示范围
86
- searchNearByData: "西安银行", // searchNearBy中要查的名称
87
- markerType: [], // 界面上分类显示按钮菜单
88
- markerData: [], // 要标记的点——本地数据库和西安银行ATM位置提取数据的集合
89
- localRows: [], // 本地数据库获取的数据初始化
90
- rows: [], // 西安银行ATM位置后台数据初始化
91
- lineData: this.outerlinedata,// 绘制轨迹路线的数据(坐标点)
92
- stopstart: true,
93
- // timeoutHandle: window.setInterval(this.timemet, 120000),
94
- modalshow: false
95
- };
96
- },
97
- methods: {
98
- // 开始回放
99
- startAnimation() {
100
- this.startmarker.moveAlong(this.lineData, 2000)
101
- },
102
- // 暂停
103
- pauseAnimation() {
104
- this.startmarker.pauseMove();
105
- this.ispause = true
106
- },
107
- // 继续
108
- resumeAnimation() {
109
- this.ispause = false
110
- this.startmarker.resumeMove();
111
- },
112
- //加速
113
- speedUp() {
114
- this.rate = this.rate / 2
115
- this.startmarker.moveAlong(this.lineData, 2000 / this.rate)
116
- },
117
- //减速
118
- speedDown() {
119
- this.rate = this.rate * 2
120
- this.startmarker.moveAlong(this.lineData, 2000 / this.rate)
121
- },
122
- close() {
123
- this.modalshow = false
124
- },
125
- //定时刷新位置
126
- timemet() {
127
- this.map.clearMap()
128
- this.getnewposit(this.map)
129
- },
130
- setPoint(data) {
131
- this.map.clearMap()
132
- console.log('当前点' + data)
133
- this.outerlinedata= {}
134
- this.markerData = []
135
- this.markerData.push(data)
136
- this.markerDataToMap()
137
- let position = []
138
- position = [data.f_longitude, data.f_latitude]
139
- this.map.setCenter(position)
140
- this.map.setFitView()
141
- },
142
- getnewposit(map) {
143
- //如果有点集在地图上显示所有的点
144
- console.log('开始获取散点集')
145
- if (this.points) {
146
- let url = this.points.url
147
- let data = this.points.data
148
- this.$resetpost(url, {data: data}, {
149
- rejectMsg: null,
150
- resolveMsg: null,
151
- silent: true
152
- }).then((row) => {
153
- this.markerData = row.data
154
- this.markerDataToMap()
155
- console.log(this.map.getZoom())
156
- this.map.setZoom(9.2)
157
- })
158
- }
159
- },
160
- // json对象去重-下拉菜单
161
- unique: function (arr) {
162
- var ret = [];
163
- for (var i = 0, j = arr.length; i < j; i++) {
164
- if (ret.indexOf(arr[i]) === -1) {
165
- ret.push(arr[i]);
166
- }
167
- }
168
- return ret;
169
- },
170
- searchNearByAPI: function () {
171
- // POI搜索插件
172
- this.placeSearch = new AMap.PlaceSearch({
173
- pageSize: 5,
174
- pageIndex: 1,
175
- city: "029",
176
- map: this.map,
177
- panel: "panel"
178
- });
179
- },
180
- markerClick(e){
181
- var infoWindow = new AMap.InfoWindow({});
182
- console.log(e.target)
183
- console.log(e.value)
184
- let content = `<div style="height: auto">1111</div>`
185
- infoWindow.setContent(content);
186
- infoWindow.open(this.map, e.target.getPosition());
187
- // this.map.setCenter(e.target.getPosition());
188
- },
189
- markerDataToMap: function () {
190
- // start— if 数据库有坐标信息则使用数据库标记点
191
- // start- else 数据库没有坐标信息,使用高德地图API SearchNearBy方法去获取高德标记库中的标记点。
192
- // this.markerData=null
193
-
194
- if (!(this.markerData == undefined || this.markerData == null || this.markerData.length == 0)) {
195
- this.markerData.map((item)=>{
196
- if (item.f_longitude != 0) {
197
- var lnglat = item.f_geo_coordinates.split(',');
198
- console.log('坐标.......'+lnglat)
199
- if (!item.iconurl) {
200
- item.iconurl = "static/newStyle/position.png";
201
- } else {
202
- }
203
-
204
- this.marker = new AMap.Marker({
205
- title: item.f_name,
206
- position: lnglat,
207
- // animation: "AMAP_ANIMATION_DROP",
208
- draggable: false, //是否可拖动
209
- // content: '<img src="' +
210
- // this.markerData[i].iconurl +
211
- // '" />' //自定义点标记覆盖物内容
212
- content: '<img style="text-align: center;margin-left:10px;" src="' +
213
- item.iconurl +
214
- '" /><span style="text-align: center;max-height:14px;width:60px;padding:0px;margin-top:0px;margin-bottom:0px;color:#00A7D2;font-size:14px; font-weight:bold;display: inline-block;text-align: left;">' +
215
- item.f_name +
216
- "</span>"
217
- }); //自定义点标记覆盖物内容
218
- var that = this
219
- var infoWindow = new AMap.InfoWindow({
220
- offset: new AMap.Pixel(40, 10)
221
- })
222
-
223
- this.marker.on("mouseover", function (e) {
224
- let content =
225
- `<div class="row tooltip" style="height: auto;">
226
- <div style="font-size: 16px">
227
- <span style="color:#13FDFD;font-weight: bolder">${item.f_name}</span>
228
- </div>
229
- <div style="margin-top: 3px">
230
- <span class="t2">累计流量(NM3):</span>
231
- <span class="t3">${item.f_cumulative_flow}</span>
232
- </div>
233
- <div style="margin-top: 3px">
234
- <span class="t2">瞬时流量(NM3):</span>
235
- <span class="t3">${item.f_instantaneous_flow}</span>
236
- </div>
237
- <div style="margin-top: 3px">
238
- <span class="t2">进站压力(NPA):</span>
239
- <span class="t3">${item.f_input_pressure}</span>
240
- </div>
241
- <div>
242
- <span class="t2">出站压力(NPA):</span>
243
- <span class="t3">${item.f_output_pressure}</span>
244
- </div>
245
- </div>`
246
- infoWindow.setContent(content)
247
- that.map.setZoomAndCenter(that.map.getZoom(),e.target.getPosition())
248
- // that.marker.setLabel({
249
- // // offset: new AMap.Pixel(20, 20), //设置文本标注偏移量
250
- // content: `<div class="info" style="height: auto">${item.f_name}</div>`, //设置文本标注内容
251
- // direction: 'bottom' //设置文本标注方位
252
- // });
253
- // that.map.setZoomAndCenter(that.map.getZoom(),e.target.getPosition())
254
-
255
- infoWindow.open(that.map, e.target.getPosition());
256
- });
257
- this.marker.on("mouseout", function (e) {
258
- // that.marker.setLabel(null);
259
- infoWindow.close(that.map, e.target.getPosition());
260
- });
261
- this.marker.setMap(this.map)
262
- console.log(this.map.getZoom())
263
- // this.map.setZoom(15)
264
- }
265
-
266
- })
267
-
268
-
269
-
270
- }
271
- this.map.setFitView();
272
-
273
-
274
- }, // end- if else,
275
- // select选中
276
- changeType(val) {
277
- document.getElementById("panel").innerHTML = "";
278
- if (this.maxheight) {
279
- document.getElementById("containerr").style.height = `${this.maxheight}px`
280
- document.getElementById("containerr").style.width = `${this.maxwidth}px`
281
- } else {
282
- console.log('设置高度')
283
- document.getElementById("containerr").style.height = '100%'
284
- document.getElementById("containerr").style.width = '100%'
285
-
286
- }
287
- console.log("选中" + val);
288
- var optionVal = val;
289
- // 如果为空不去清空地图标记
290
- if (optionVal) {
291
- this.map.clearMap();
292
- }
293
- // 定位和范围
294
- // this.makeCircle();
295
- // 按条件标记
296
- for (var i = 0; i < this.markerData.length; i++) {
297
- if (optionVal == this.markerData[i].type) {
298
- var lnglat = [this.markerData[i].x, this.markerData[i].y];
299
- if (this.markerData[i].iconurl == null || this.markerData[i].iconurl == undefined) {
300
- this.markerData[i].iconurl = "static/newStyle/clear.png";
301
- }
302
- ;
303
- this.marker = new AMap.Marker({
304
- position: lnglat,
305
- animation: "AMAP_ANIMATION_DROP",
306
- content: '<img style="text-align: center;margin-left:10px;" src="' +
307
- this.markerData[i].iconurl +
308
- '" /><span style="text-align: center;height:14px;width:60px;padding:0px;margin-top:0px;margin-bottom:0px;margin-right:60px;color:#ff0000;font-size:14px;display: inline-block;text-align: left;">' +
309
- this.markerData[i].type +
310
- "</span>" //自定义点标记覆盖物内容
311
- });
312
- // this.marker.setMap(this.map);
313
- // AMap.event.addListener(this.marker, "click", e => {
314
- // this.changeType()
315
- // //构造路线导航类
316
- // this.driving = new AMap.Driving({
317
- // map: this.map,
318
- // panel: "panel"
319
- // });
320
- // this.driving.search(this.position, e.lnglat);
321
- // });
322
- }
323
- }
324
- },
325
- onComplete(data) {
326
- console.log('定位成功')
327
- },
328
- //解析定位错误信息
329
- onError(data) {
330
- console.log('失败原因排查信息:' + data.message)
331
- },
332
- //绘制轨迹路线
333
- startPointTrack() {
334
- console.log("绘制轨迹路线start");
335
- var thisa = this;
336
- this.startmarker = new AMap.Marker({
337
- map: thisa.map,
338
- position: [thisa.stmarker.f_longitude, thisa.stmarker.f_latitude],
339
- icon: "https://webapi.amap.com/images/car.png",
340
- offset: new AMap.Pixel(-26, -13),
341
- autoRotation: true,
342
- angle: -90,
343
- });
344
- this.startmarker.on('moving', function (e) {
345
- passedPolyline.setPath(e.passedPath);
346
- });
347
- var polyline = new AMap.Polyline({
348
- map: thisa.map,
349
- path: thisa.lineData,
350
- showDir: true,
351
- strokeColor: "#28F", //线颜色
352
- // strokeOpacity: 1, //线透明度
353
- strokeWeight: 6, //线宽
354
- // strokeStyle: "solid" //线样式
355
- });
356
- var passedPolyline = new AMap.Polyline({
357
- map: thisa.map,
358
- // path: lineArr,
359
- strokeColor: "#AF5", //线颜色
360
- // strokeOpacity: 1, //线透明度
361
- strokeWeight: 6, //线宽
362
- // strokeStyle: "solid" //线样式
363
- });
364
- }
365
- },
366
- //当外部传给这个组件的props的outerlinedata参数发生变化,就重新绘制轨迹路线
367
- watch: {
368
- 'singlepoint'(val) {
369
- if (this.singlepoint.f_longitude && this.singlepoint.f_latitude) {
370
- this.setPoint(this.singlepoint)
371
- }
372
- },
373
- 'outerlinedata'(llval) {
374
- this.lineData = []
375
- if (llval && llval.points.length > 0) {
376
- for (let i = 0; i < llval.points.length; i++) {
377
- if (llval.points[i].lnglat[0] && llval.points[i].lnglat[1]) {
378
- let data = [llval.points[i].lnglat[0], llval.points[i].lnglat[1]]
379
- let json = maptool.wgs84togcj02(Number(data[0]), Number(data[1]))
380
- this.lineData.push(json)
381
- }
382
- }
383
- }
384
- this.map.clearMap()
385
- if (llval == null || llval.points.length < 1) {
386
- console.log('开始清空')
387
- if (window.pathSimplifierIns) {
388
- //通过该方法清空上次传入的轨迹
389
- window.pathSimplifierIns.setData([]);
390
- }
391
- this.getnewposit(this.map)
392
- // clearInterval(this.timeoutHandle);
393
- // this.timeoutHandle = setInterval(this.timemet, 120000); //重新启动即可
394
- } else {
395
- // clearInterval(this.timeoutHandle);
396
- var startPot = this.lineData[0];
397
- var endPot = this.lineData[this.lineData.length - 1];
398
- this.stmarker = {
399
- name2: '起点',
400
- f_longitude: startPot[0], //基点位置
401
- f_latitude: startPot[1], //基点位置
402
- iconurl: "https://webapi.amap.com/theme/v1.3/markers/n/start.png",
403
- zIndex: 10
404
- };
405
- this.endmarker = {
406
- name2: '终点',
407
- f_longitude: endPot[0], //基点位置
408
- f_latitude: endPot[1],
409
- iconurl: "https://webapi.amap.com/theme/v1.3/markers/n/end.png",
410
- zIndex: 10
411
- };
412
- this.markerData = [],
413
- console.log('起点' + this.stmarker.position)
414
- this.markerData.push(this.stmarker)
415
- this.markerData.push(this.endmarker)
416
- this.markerDataToMap()
417
- this.startPointTrack()
418
- this.map.setFitView();
419
- }
420
- }
421
- },
422
- ready() {
423
-
424
- // 初始化地图
425
- this.map = new AMap.Map("containerr", {
426
- resizeEnable: true,
427
- scrollWheel: false,
428
- mapStyle: 'amap://styles/darkblue',
429
- zoom: 15
430
- });
431
- this.changeType()
432
- console.log("地图加载正常");
433
- var thisp = this;
434
- // 异步加载插件
435
- AMap.plugin(
436
- [
437
- "AMap.ToolBar",
438
- "AMap.PlaceSearch",
439
- "AMap.Driving",
440
- "AMap.Geolocation"
441
- ],
442
- () => {
443
- // 工具条,控制地图的缩放、平移等
444
- var geolocation = new AMap.Geolocation({
445
- // 是否使用高精度定位,默认:true
446
- enableHighAccuracy: true,
447
- // 设置定位超时时间,默认:无穷大
448
- showbutton: true,
449
- //控制按钮的显示
450
- timeout: 10000,
451
- // 定位按钮的停靠位置的偏移量,默认:Pixel(10, 20)
452
- buttonOffset: new AMap.Pixel(10, 20),
453
- // 定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
454
- zoomToAccuracy: true,
455
- // 定位按钮的排放位置, RB表示右下
456
- buttonPosition: 'LB'
457
- })
458
- // this.map.addControl(geolocation);
459
- // geolocation.getCurrentPosition(function (status, result) {
460
- // if (status == 'complete') {
461
- // thisp.onComplete(result)
462
- // } else {
463
- // thisp.onError(result)
464
- // }
465
- // });
466
- // this.map.addControl(new AMap.ToolBar());
467
- }
468
- );
469
- console.log("执行代码开始前");
470
- if (!/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) {
471
- }
472
- else {
473
- AMapUI.loadUI(["misc/PoiPicker"], function (PoiPicker) {
474
- let poiPicker = new PoiPicker({
475
- input: "pickerInput"
476
- });
477
- var marker = new AMap.Marker();
478
- this.map.setMapStyle('amap://styles/darkblue')
479
- poiPicker.on("poiPicked", poiResult => {
480
- let source = poiResult.source;
481
- var poi = poiResult.item;
482
- console.log(poi.location.lng, poi.location.lat);
483
- thisp.position = new AMap.LngLat(poi.location.lng, poi.location.lat);
484
- thisp.map.setCenter(thisp.position);
485
-
486
- console.log("this.position" + thisp.position);
487
- thisp.startPost();
488
- });
489
- marker.setMap(thisp.map);
490
- // marker.setPosition(thisp.position);
491
- });
492
- }
493
- thisp.getnewposit(this.map)
494
- }
495
- }
496
- </script>
497
- <style scoped>
498
- /*div{*/
499
- /*height: fit-content !important;*/
500
- /*}*/
501
- #containerr {
502
- height: 100%;
503
- }
504
-
505
- /*地图上已经有获取当前位置的控制器按钮,因此隐藏*/
506
- .input-card .btn {
507
- margin-right: 1.2rem;
508
- width: 9rem;
509
- }
510
-
511
- .input-card .btn:last-child {
512
- margin-right: 0;
513
- }
514
-
515
- #pickerBox {
516
- position: relative;
517
- z-index: 10;
518
- top: 20px;
519
- left: 70px;
520
- width: 245px;
521
- height: 200px;
522
- }
523
-
524
- #pickerInput {
525
- width: 60%;
526
- padding: 0px 0px;
527
- }
528
-
529
- #fight {
530
- height: 5%;
531
- float: right;
532
- }
533
-
534
- .input-item {
535
- position: relative;
536
- display: -ms-flexbox;
537
- display: flex;
538
- -ms-flex-wrap: wrap;
539
- flex-wrap: wrap;
540
- -ms-flex-align: center;
541
- align-items: center;
542
- width: 100%;
543
- height: 3rem;
544
- }
545
-
546
- .input-item:last-child {
547
- margin-bottom: 0;
548
- }
549
-
550
- .input-item > select, .input-item > input[type=text], .input-item > input[type=date] {
551
- position: relative;
552
- -ms-flex: 1 1 auto;
553
- flex: 1 1 auto;
554
- width: 1%;
555
- margin-bottom: 0;
556
- }
557
-
558
- .input-item > select:not(:last-child), .input-item > input[type=text]:not(:last-child), .input-item > input[type=date]:not(:last-child) {
559
- border-top-right-radius: 0;
560
- border-bottom-right-radius: 0
561
- }
562
-
563
- .input-item > select:not(:first-child), .input-item > input[type=text]:not(:first-child), .input-item > input[type=date]:not(:first-child) {
564
- border-top-left-radius: 0;
565
- border-bottom-left-radius: 0
566
- }
567
-
568
- .input-item-prepend {
569
- margin-right: -1px;
570
- }
571
-
572
- .input-item-text, input[type=text], input[type=date], select {
573
- height: calc(2.2rem + 2px);
574
- }
575
- .info{
576
- height: auto;
577
- }
578
- .input-item-text {
579
- width: 6rem;
580
- text-align: justify;
581
- padding: 0.4rem 0.7rem;
582
- display: inline-block;
583
- text-justify: distribute-all-lines;
584
- /*ie6-8*/
585
- text-align-last: justify;
586
- /* ie9*/
587
- -moz-text-align-last: justify;
588
- /*ff*/
589
- -webkit-text-align-last: justify;
590
- /*chrome 20+*/
591
- -ms-flex-align: center;
592
- align-items: center;
593
- margin-bottom: 0;
594
- font-size: 1rem;
595
- font-weight: 400;
596
- line-height: 1.5;
597
- color: #495057;
598
- text-align: center;
599
- white-space: nowrap;
600
- background-color: #e9ecef;
601
- border: 1px solid #ced4da;
602
- border-radius: .25rem;
603
- border-bottom-right-radius: 0;
604
- border-top-right-radius: 0;
605
- }
606
-
607
- .input-item-text input[type=checkbox], .input-item-text input[type=radio] {
608
- margin-top: 0
609
- }
610
- .amap-info-content{
611
- height: auto !important;
612
- }
613
- .amap-info-outer{
614
- height: auto !important;
615
- }
616
- .input-card {
617
- /*margin-right: 25%;*/
618
- z-index: 999;
619
- float: right;
620
- position:absolute;
621
- margin: 0px;
622
- height: auto;
623
- min-width: 0;
624
- word-wrap: break-word;
625
- background-color: #fff;
626
- background-clip: border-box;
627
- border-radius: .25rem;
628
- width: 22rem;
629
- border-width: 0;
630
- border-radius: 0.4rem;
631
- box-shadow: 0 2px 6px 0 rgba(114, 124, 245, .5);
632
- bottom: 1rem;
633
- padding: 0.75rem 1.25rem;
634
- }
635
-
636
- </style>
1
+ <template>
2
+ <div>
3
+ <div id="containerr" style="height: auto" tabindex="0">
4
+ <div class="input-card" v-if="outerlinedata&&outerlinedata.points">
5
+ <h4>轨迹回放</h4>
6
+ <div class="input-item">
7
+ <input type="button" class="btn btn-info" value="开始动画" id="start" @click="startAnimation()"/>
8
+ <input v-show="!ispause" type="button" class="btn btn-info" value="暂停动画" id="pause" @click="pauseAnimation()"/>
9
+ <input v-if="ispause" type="button" class="btn btn-info" value="继续动画" id="resume" @click="resumeAnimation()"/>
10
+ </div>
11
+ <div class="input-item">
12
+ <input type="button" class="btn btn-info" value="加速动画" id="add" @click="speedUp()"/>
13
+ <input type="button" class="btn btn-info" value="减速动画" id="des" @click="speedDown()"/>
14
+ </div>
15
+ </div>
16
+ </div>
17
+
18
+ <div id="panel" v-show="showPanel"></div>
19
+ </div>
20
+ </template>
21
+ <script>
22
+ import * as maptool from '../../plugins/transformer'
23
+ export default {
24
+ title: "地图",
25
+ props: {
26
+ //轨迹
27
+ //示例
28
+
29
+ outerlinedata: {
30
+ type: Object,
31
+ default: {}
32
+ },
33
+ //单点
34
+ //示例 {"name2":"终点","f_longitude":108.9592663294896,"f_latitude":34.163040719830576,"iconurl":"https://webapi.amap.com/theme/v1.3/markers/n/end.png","zIndex":10}
35
+ singlepoint: {
36
+ type: Object,
37
+ default: {}
38
+ },
39
+ //点集
40
+ points: {
41
+ type: Object,
42
+ default: {
43
+ url: 'rs/sql/getDapingStationMap',
44
+ data: {subcompany:'%'}
45
+ }
46
+ },
47
+ //当前用户
48
+ curuser: {
49
+ type: Object,
50
+ default: {}
51
+ },
52
+ ispause: false,
53
+ //最大高度
54
+ maxheight: '',
55
+ //最大宽度
56
+ maxwidth: '',
57
+ showBox: {
58
+ type: Boolean,
59
+ default: false
60
+ },
61
+ showPanel: {
62
+ type: Boolean,
63
+ default: false
64
+ }
65
+ },
66
+ data() {
67
+ return {
68
+ // model: new PagedList('rs/sql/singleTable_OrderBy', 10, {
69
+ // items: '"*"',
70
+ // tablename: '"t_repairman"',
71
+ // orderitem: '"ID desc"'
72
+ // }),
73
+ path: "rs/WX/searchMarker", // 获取标记点数组请求路径
74
+ rate: 1, // 控制速度比率
75
+ postData: [], // 获取后台数据的参数
76
+ map: null, // 显示地图实例
77
+ position: null, // 定位对象
78
+ startmaker: null,
79
+ stmarker: {}, // 开始标记
80
+ endmarker: {}, // 结束标记
81
+ repairmanData: [], // 维修员信息
82
+ placeSearch: null, // 地点查询对象
83
+ driving: null, // 驾车线路规划对象
84
+ parameters: [], // 西安银行ATM接口需求,将参数放在数组中
85
+ R: 1, // 半径 (单位:千米) 围栏显示范围
86
+ searchNearByData: "西安银行", // searchNearBy中要查的名称
87
+ markerType: [], // 界面上分类显示按钮菜单
88
+ markerData: [], // 要标记的点——本地数据库和西安银行ATM位置提取数据的集合
89
+ localRows: [], // 本地数据库获取的数据初始化
90
+ rows: [], // 西安银行ATM位置后台数据初始化
91
+ lineData: this.outerlinedata,// 绘制轨迹路线的数据(坐标点)
92
+ stopstart: true,
93
+ // timeoutHandle: window.setInterval(this.timemet, 120000),
94
+ modalshow: false
95
+ };
96
+ },
97
+ methods: {
98
+ // 开始回放
99
+ startAnimation() {
100
+ this.startmarker.moveAlong(this.lineData, 2000)
101
+ },
102
+ // 暂停
103
+ pauseAnimation() {
104
+ this.startmarker.pauseMove();
105
+ this.ispause = true
106
+ },
107
+ // 继续
108
+ resumeAnimation() {
109
+ this.ispause = false
110
+ this.startmarker.resumeMove();
111
+ },
112
+ //加速
113
+ speedUp() {
114
+ this.rate = this.rate / 2
115
+ this.startmarker.moveAlong(this.lineData, 2000 / this.rate)
116
+ },
117
+ //减速
118
+ speedDown() {
119
+ this.rate = this.rate * 2
120
+ this.startmarker.moveAlong(this.lineData, 2000 / this.rate)
121
+ },
122
+ close() {
123
+ this.modalshow = false
124
+ },
125
+ //定时刷新位置
126
+ timemet() {
127
+ this.map.clearMap()
128
+ this.getnewposit(this.map)
129
+ },
130
+ setPoint(data) {
131
+ this.map.clearMap()
132
+ console.log('当前点' + data)
133
+ this.outerlinedata= {}
134
+ this.markerData = []
135
+ this.markerData.push(data)
136
+ this.markerDataToMap()
137
+ let position = []
138
+ position = [data.f_longitude, data.f_latitude]
139
+ this.map.setCenter(position)
140
+ this.map.setFitView()
141
+ },
142
+ getnewposit(map) {
143
+ //如果有点集在地图上显示所有的点
144
+ console.log('开始获取散点集')
145
+ if (this.points) {
146
+ let url = this.points.url
147
+ let data = this.points.data
148
+ this.$resetpost(url, {data: data}, {
149
+ rejectMsg: null,
150
+ resolveMsg: null,
151
+ silent: true
152
+ }).then((row) => {
153
+ this.markerData = row.data
154
+ this.markerDataToMap()
155
+ console.log(this.map.getZoom())
156
+ this.map.setZoom(9.2)
157
+ })
158
+ }
159
+ },
160
+ // json对象去重-下拉菜单
161
+ unique: function (arr) {
162
+ var ret = [];
163
+ for (var i = 0, j = arr.length; i < j; i++) {
164
+ if (ret.indexOf(arr[i]) === -1) {
165
+ ret.push(arr[i]);
166
+ }
167
+ }
168
+ return ret;
169
+ },
170
+ searchNearByAPI: function () {
171
+ // POI搜索插件
172
+ this.placeSearch = new AMap.PlaceSearch({
173
+ pageSize: 5,
174
+ pageIndex: 1,
175
+ city: "029",
176
+ map: this.map,
177
+ panel: "panel"
178
+ });
179
+ },
180
+ markerClick(e){
181
+ var infoWindow = new AMap.InfoWindow({});
182
+ console.log(e.target)
183
+ console.log(e.value)
184
+ let content = `<div style="height: auto">1111</div>`
185
+ infoWindow.setContent(content);
186
+ infoWindow.open(this.map, e.target.getPosition());
187
+ // this.map.setCenter(e.target.getPosition());
188
+ },
189
+ markerDataToMap: function () {
190
+ // start— if 数据库有坐标信息则使用数据库标记点
191
+ // start- else 数据库没有坐标信息,使用高德地图API SearchNearBy方法去获取高德标记库中的标记点。
192
+ // this.markerData=null
193
+
194
+ if (!(this.markerData == undefined || this.markerData == null || this.markerData.length == 0)) {
195
+ this.markerData.map((item)=>{
196
+ if (item.f_longitude != 0) {
197
+ var lnglat = item.f_geo_coordinates.split(',');
198
+ console.log('坐标.......'+lnglat)
199
+ if (!item.iconurl) {
200
+ item.iconurl = "static/newStyle/position.png";
201
+ } else {
202
+ }
203
+
204
+ this.marker = new AMap.Marker({
205
+ title: item.f_name,
206
+ position: lnglat,
207
+ // animation: "AMAP_ANIMATION_DROP",
208
+ draggable: false, //是否可拖动
209
+ // content: '<img src="' +
210
+ // this.markerData[i].iconurl +
211
+ // '" />' //自定义点标记覆盖物内容
212
+ content: '<img style="text-align: center;margin-left:10px;" src="' +
213
+ item.iconurl +
214
+ '" /><span style="text-align: center;max-height:14px;width:60px;padding:0px;margin-top:0px;margin-bottom:0px;color:#00A7D2;font-size:14px; font-weight:bold;display: inline-block;text-align: left;">' +
215
+ item.f_name +
216
+ "</span>"
217
+ }); //自定义点标记覆盖物内容
218
+ var that = this
219
+ var infoWindow = new AMap.InfoWindow({
220
+ offset: new AMap.Pixel(40, 10)
221
+ })
222
+
223
+ this.marker.on("mouseover", function (e) {
224
+ let content =
225
+ `<div class="row tooltip" style="height: auto;">
226
+ <div style="font-size: 16px">
227
+ <span style="color:#13FDFD;font-weight: bolder">${item.f_name}</span>
228
+ </div>
229
+ <div style="margin-top: 3px">
230
+ <span class="t2">累计流量(NM3):</span>
231
+ <span class="t3">${item.f_cumulative_flow}</span>
232
+ </div>
233
+ <div style="margin-top: 3px">
234
+ <span class="t2">瞬时流量(NM3):</span>
235
+ <span class="t3">${item.f_instantaneous_flow}</span>
236
+ </div>
237
+ <div style="margin-top: 3px">
238
+ <span class="t2">进站压力(NPA):</span>
239
+ <span class="t3">${item.f_input_pressure}</span>
240
+ </div>
241
+ <div>
242
+ <span class="t2">出站压力(NPA):</span>
243
+ <span class="t3">${item.f_output_pressure}</span>
244
+ </div>
245
+ </div>`
246
+ infoWindow.setContent(content)
247
+ that.map.setZoomAndCenter(that.map.getZoom(),e.target.getPosition())
248
+ // that.marker.setLabel({
249
+ // // offset: new AMap.Pixel(20, 20), //设置文本标注偏移量
250
+ // content: `<div class="info" style="height: auto">${item.f_name}</div>`, //设置文本标注内容
251
+ // direction: 'bottom' //设置文本标注方位
252
+ // });
253
+ // that.map.setZoomAndCenter(that.map.getZoom(),e.target.getPosition())
254
+
255
+ infoWindow.open(that.map, e.target.getPosition());
256
+ });
257
+ this.marker.on("mouseout", function (e) {
258
+ // that.marker.setLabel(null);
259
+ infoWindow.close(that.map, e.target.getPosition());
260
+ });
261
+ this.marker.setMap(this.map)
262
+ console.log(this.map.getZoom())
263
+ // this.map.setZoom(15)
264
+ }
265
+
266
+ })
267
+
268
+
269
+
270
+ }
271
+ this.map.setFitView();
272
+
273
+
274
+ }, // end- if else,
275
+ // select选中
276
+ changeType(val) {
277
+ document.getElementById("panel").innerHTML = "";
278
+ if (this.maxheight) {
279
+ document.getElementById("containerr").style.height = `${this.maxheight}px`
280
+ document.getElementById("containerr").style.width = `${this.maxwidth}px`
281
+ } else {
282
+ console.log('设置高度')
283
+ document.getElementById("containerr").style.height = '100%'
284
+ document.getElementById("containerr").style.width = '100%'
285
+
286
+ }
287
+ console.log("选中" + val);
288
+ var optionVal = val;
289
+ // 如果为空不去清空地图标记
290
+ if (optionVal) {
291
+ this.map.clearMap();
292
+ }
293
+ // 定位和范围
294
+ // this.makeCircle();
295
+ // 按条件标记
296
+ for (var i = 0; i < this.markerData.length; i++) {
297
+ if (optionVal == this.markerData[i].type) {
298
+ var lnglat = [this.markerData[i].x, this.markerData[i].y];
299
+ if (this.markerData[i].iconurl == null || this.markerData[i].iconurl == undefined) {
300
+ this.markerData[i].iconurl = "static/newStyle/clear.png";
301
+ }
302
+ ;
303
+ this.marker = new AMap.Marker({
304
+ position: lnglat,
305
+ animation: "AMAP_ANIMATION_DROP",
306
+ content: '<img style="text-align: center;margin-left:10px;" src="' +
307
+ this.markerData[i].iconurl +
308
+ '" /><span style="text-align: center;height:14px;width:60px;padding:0px;margin-top:0px;margin-bottom:0px;margin-right:60px;color:#ff0000;font-size:14px;display: inline-block;text-align: left;">' +
309
+ this.markerData[i].type +
310
+ "</span>" //自定义点标记覆盖物内容
311
+ });
312
+ // this.marker.setMap(this.map);
313
+ // AMap.event.addListener(this.marker, "click", e => {
314
+ // this.changeType()
315
+ // //构造路线导航类
316
+ // this.driving = new AMap.Driving({
317
+ // map: this.map,
318
+ // panel: "panel"
319
+ // });
320
+ // this.driving.search(this.position, e.lnglat);
321
+ // });
322
+ }
323
+ }
324
+ },
325
+ onComplete(data) {
326
+ console.log('定位成功')
327
+ },
328
+ //解析定位错误信息
329
+ onError(data) {
330
+ console.log('失败原因排查信息:' + data.message)
331
+ },
332
+ //绘制轨迹路线
333
+ startPointTrack() {
334
+ console.log("绘制轨迹路线start");
335
+ var thisa = this;
336
+ this.startmarker = new AMap.Marker({
337
+ map: thisa.map,
338
+ position: [thisa.stmarker.f_longitude, thisa.stmarker.f_latitude],
339
+ icon: "https://webapi.amap.com/images/car.png",
340
+ offset: new AMap.Pixel(-26, -13),
341
+ autoRotation: true,
342
+ angle: -90,
343
+ });
344
+ this.startmarker.on('moving', function (e) {
345
+ passedPolyline.setPath(e.passedPath);
346
+ });
347
+ var polyline = new AMap.Polyline({
348
+ map: thisa.map,
349
+ path: thisa.lineData,
350
+ showDir: true,
351
+ strokeColor: "#28F", //线颜色
352
+ // strokeOpacity: 1, //线透明度
353
+ strokeWeight: 6, //线宽
354
+ // strokeStyle: "solid" //线样式
355
+ });
356
+ var passedPolyline = new AMap.Polyline({
357
+ map: thisa.map,
358
+ // path: lineArr,
359
+ strokeColor: "#AF5", //线颜色
360
+ // strokeOpacity: 1, //线透明度
361
+ strokeWeight: 6, //线宽
362
+ // strokeStyle: "solid" //线样式
363
+ });
364
+ }
365
+ },
366
+ //当外部传给这个组件的props的outerlinedata参数发生变化,就重新绘制轨迹路线
367
+ watch: {
368
+ 'singlepoint'(val) {
369
+ if (this.singlepoint.f_longitude && this.singlepoint.f_latitude) {
370
+ this.setPoint(this.singlepoint)
371
+ }
372
+ },
373
+ 'outerlinedata'(llval) {
374
+ this.lineData = []
375
+ if (llval && llval.points.length > 0) {
376
+ for (let i = 0; i < llval.points.length; i++) {
377
+ if (llval.points[i].lnglat[0] && llval.points[i].lnglat[1]) {
378
+ let data = [llval.points[i].lnglat[0], llval.points[i].lnglat[1]]
379
+ let json = maptool.wgs84togcj02(Number(data[0]), Number(data[1]))
380
+ this.lineData.push(json)
381
+ }
382
+ }
383
+ }
384
+ this.map.clearMap()
385
+ if (llval == null || llval.points.length < 1) {
386
+ console.log('开始清空')
387
+ if (window.pathSimplifierIns) {
388
+ //通过该方法清空上次传入的轨迹
389
+ window.pathSimplifierIns.setData([]);
390
+ }
391
+ this.getnewposit(this.map)
392
+ // clearInterval(this.timeoutHandle);
393
+ // this.timeoutHandle = setInterval(this.timemet, 120000); //重新启动即可
394
+ } else {
395
+ // clearInterval(this.timeoutHandle);
396
+ var startPot = this.lineData[0];
397
+ var endPot = this.lineData[this.lineData.length - 1];
398
+ this.stmarker = {
399
+ name2: '起点',
400
+ f_longitude: startPot[0], //基点位置
401
+ f_latitude: startPot[1], //基点位置
402
+ iconurl: "https://webapi.amap.com/theme/v1.3/markers/n/start.png",
403
+ zIndex: 10
404
+ };
405
+ this.endmarker = {
406
+ name2: '终点',
407
+ f_longitude: endPot[0], //基点位置
408
+ f_latitude: endPot[1],
409
+ iconurl: "https://webapi.amap.com/theme/v1.3/markers/n/end.png",
410
+ zIndex: 10
411
+ };
412
+ this.markerData = [],
413
+ console.log('起点' + this.stmarker.position)
414
+ this.markerData.push(this.stmarker)
415
+ this.markerData.push(this.endmarker)
416
+ this.markerDataToMap()
417
+ this.startPointTrack()
418
+ this.map.setFitView();
419
+ }
420
+ }
421
+ },
422
+ ready() {
423
+
424
+ // 初始化地图
425
+ this.map = new AMap.Map("containerr", {
426
+ resizeEnable: true,
427
+ scrollWheel: false,
428
+ mapStyle: 'amap://styles/darkblue',
429
+ zoom: 15
430
+ });
431
+ this.changeType()
432
+ console.log("地图加载正常");
433
+ var thisp = this;
434
+ // 异步加载插件
435
+ AMap.plugin(
436
+ [
437
+ "AMap.ToolBar",
438
+ "AMap.PlaceSearch",
439
+ "AMap.Driving",
440
+ "AMap.Geolocation"
441
+ ],
442
+ () => {
443
+ // 工具条,控制地图的缩放、平移等
444
+ var geolocation = new AMap.Geolocation({
445
+ // 是否使用高精度定位,默认:true
446
+ enableHighAccuracy: true,
447
+ // 设置定位超时时间,默认:无穷大
448
+ showbutton: true,
449
+ //控制按钮的显示
450
+ timeout: 10000,
451
+ // 定位按钮的停靠位置的偏移量,默认:Pixel(10, 20)
452
+ buttonOffset: new AMap.Pixel(10, 20),
453
+ // 定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
454
+ zoomToAccuracy: true,
455
+ // 定位按钮的排放位置, RB表示右下
456
+ buttonPosition: 'LB'
457
+ })
458
+ // this.map.addControl(geolocation);
459
+ // geolocation.getCurrentPosition(function (status, result) {
460
+ // if (status == 'complete') {
461
+ // thisp.onComplete(result)
462
+ // } else {
463
+ // thisp.onError(result)
464
+ // }
465
+ // });
466
+ // this.map.addControl(new AMap.ToolBar());
467
+ }
468
+ );
469
+ console.log("执行代码开始前");
470
+ if (!/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) {
471
+ }
472
+ else {
473
+ AMapUI.loadUI(["misc/PoiPicker"], function (PoiPicker) {
474
+ let poiPicker = new PoiPicker({
475
+ input: "pickerInput"
476
+ });
477
+ var marker = new AMap.Marker();
478
+ this.map.setMapStyle('amap://styles/darkblue')
479
+ poiPicker.on("poiPicked", poiResult => {
480
+ let source = poiResult.source;
481
+ var poi = poiResult.item;
482
+ console.log(poi.location.lng, poi.location.lat);
483
+ thisp.position = new AMap.LngLat(poi.location.lng, poi.location.lat);
484
+ thisp.map.setCenter(thisp.position);
485
+
486
+ console.log("this.position" + thisp.position);
487
+ thisp.startPost();
488
+ });
489
+ marker.setMap(thisp.map);
490
+ // marker.setPosition(thisp.position);
491
+ });
492
+ }
493
+ thisp.getnewposit(this.map)
494
+ }
495
+ }
496
+ </script>
497
+ <style scoped>
498
+ /*div{*/
499
+ /*height: fit-content !important;*/
500
+ /*}*/
501
+ #containerr {
502
+ height: 100%;
503
+ }
504
+
505
+ /*地图上已经有获取当前位置的控制器按钮,因此隐藏*/
506
+ .input-card .btn {
507
+ margin-right: 1.2rem;
508
+ width: 9rem;
509
+ }
510
+
511
+ .input-card .btn:last-child {
512
+ margin-right: 0;
513
+ }
514
+
515
+ #pickerBox {
516
+ position: relative;
517
+ z-index: 10;
518
+ top: 20px;
519
+ left: 70px;
520
+ width: 245px;
521
+ height: 200px;
522
+ }
523
+
524
+ #pickerInput {
525
+ width: 60%;
526
+ padding: 0px 0px;
527
+ }
528
+
529
+ #fight {
530
+ height: 5%;
531
+ float: right;
532
+ }
533
+
534
+ .input-item {
535
+ position: relative;
536
+ display: -ms-flexbox;
537
+ display: flex;
538
+ -ms-flex-wrap: wrap;
539
+ flex-wrap: wrap;
540
+ -ms-flex-align: center;
541
+ align-items: center;
542
+ width: 100%;
543
+ height: 3rem;
544
+ }
545
+
546
+ .input-item:last-child {
547
+ margin-bottom: 0;
548
+ }
549
+
550
+ .input-item > select, .input-item > input[type=text], .input-item > input[type=date] {
551
+ position: relative;
552
+ -ms-flex: 1 1 auto;
553
+ flex: 1 1 auto;
554
+ width: 1%;
555
+ margin-bottom: 0;
556
+ }
557
+
558
+ .input-item > select:not(:last-child), .input-item > input[type=text]:not(:last-child), .input-item > input[type=date]:not(:last-child) {
559
+ border-top-right-radius: 0;
560
+ border-bottom-right-radius: 0
561
+ }
562
+
563
+ .input-item > select:not(:first-child), .input-item > input[type=text]:not(:first-child), .input-item > input[type=date]:not(:first-child) {
564
+ border-top-left-radius: 0;
565
+ border-bottom-left-radius: 0
566
+ }
567
+
568
+ .input-item-prepend {
569
+ margin-right: -1px;
570
+ }
571
+
572
+ .input-item-text, input[type=text], input[type=date], select {
573
+ height: calc(2.2rem + 2px);
574
+ }
575
+ .info{
576
+ height: auto;
577
+ }
578
+ .input-item-text {
579
+ width: 6rem;
580
+ text-align: justify;
581
+ padding: 0.4rem 0.7rem;
582
+ display: inline-block;
583
+ text-justify: distribute-all-lines;
584
+ /*ie6-8*/
585
+ text-align-last: justify;
586
+ /* ie9*/
587
+ -moz-text-align-last: justify;
588
+ /*ff*/
589
+ -webkit-text-align-last: justify;
590
+ /*chrome 20+*/
591
+ -ms-flex-align: center;
592
+ align-items: center;
593
+ margin-bottom: 0;
594
+ font-size: 1rem;
595
+ font-weight: 400;
596
+ line-height: 1.5;
597
+ color: #495057;
598
+ text-align: center;
599
+ white-space: nowrap;
600
+ background-color: #e9ecef;
601
+ border: 1px solid #ced4da;
602
+ border-radius: .25rem;
603
+ border-bottom-right-radius: 0;
604
+ border-top-right-radius: 0;
605
+ }
606
+
607
+ .input-item-text input[type=checkbox], .input-item-text input[type=radio] {
608
+ margin-top: 0
609
+ }
610
+ .amap-info-content{
611
+ height: auto !important;
612
+ }
613
+ .amap-info-outer{
614
+ height: auto !important;
615
+ }
616
+ .input-card {
617
+ /*margin-right: 25%;*/
618
+ z-index: 999;
619
+ float: right;
620
+ position:absolute;
621
+ margin: 0px;
622
+ height: auto;
623
+ min-width: 0;
624
+ word-wrap: break-word;
625
+ background-color: #fff;
626
+ background-clip: border-box;
627
+ border-radius: .25rem;
628
+ width: 22rem;
629
+ border-width: 0;
630
+ border-radius: 0.4rem;
631
+ box-shadow: 0 2px 6px 0 rgba(114, 124, 245, .5);
632
+ bottom: 1rem;
633
+ padding: 0.75rem 1.25rem;
634
+ }
635
+
636
+ </style>