manage-client 3.1.13 → 3.1.14-ls

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 (209) hide show
  1. package/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
  2. package/build/dev-server.js +174 -178
  3. package/package.json +101 -101
  4. package/src/components/SellReport/ManageBusSummary.vue +150 -187
  5. package/src/components/SellReport/ManageDayGas.vue +120 -120
  6. package/src/components/SellReport/ManageMonthGas.vue +124 -124
  7. package/src/components/SellReport/ManageOtherCharge.vue +121 -121
  8. package/src/components/SellReport/ManageSellType.vue +133 -133
  9. package/src/components/SellReport/ReportItems.vue +1 -2
  10. package/src/components/SellReport/jingwei/ManageHandSellMoney.vue +120 -120
  11. package/src/components/handReport/GeneraHandReport.vue +235 -0
  12. package/src/components/qinhua/BarChart.vue +26 -74
  13. package/src/components/qinhua/Style/qinhuaStyle.less +4 -111
  14. package/src/components/sale/businessquery/AccountQuery/GasReimbursementRate.vue +1 -1
  15. package/src/components/sale/businessquery/BusinesQuery.vue +3 -3
  16. package/src/components/sale/businessquery/BusinessManage.vue +0 -3
  17. package/src/components/sale/businessquery/CancellationQuery.vue +1 -1
  18. package/src/components/sale/businessquery/CardHandplanQuery.vue +1 -1
  19. package/src/components/sale/businessquery/ChangeMeterQuery.vue +1 -12
  20. package/src/components/sale/businessquery/ChangeUserQuery.vue +1 -7
  21. package/src/components/sale/businessquery/DisableQuery.vue +1 -1
  22. package/src/components/sale/businessquery/EnableQuery.vue +1 -1
  23. package/src/components/sale/businessquery/FillCardQuery.vue +1 -1
  24. package/src/components/sale/businessquery/FillGasQuery.vue +1 -1
  25. package/src/components/sale/businessquery/GasInspection.vue +1 -1
  26. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +19 -10
  27. package/src/components/sale/businessquery/HandplanQuery.vue +1 -1
  28. package/src/components/sale/businessquery/InspectListGas.vue +1 -1
  29. package/src/components/sale/businessquery/InspectListUser.vue +1 -1
  30. package/src/components/sale/businessquery/MoveMeterQuery.vue +1 -1
  31. package/src/components/sale/businessquery/OtherChargeQuery.vue +1 -1
  32. package/src/components/sale/businessquery/ReverseQuery.vue +1 -1
  33. package/src/components/sale/businessquery/SellingHand.vue +1 -1
  34. package/src/components/sale/businessquery/SendbookQuery.vue +1 -1
  35. package/src/components/sale/businessquery/SuspiciousUserQuery.vue +1 -1
  36. package/src/components/sale/businessquery/TransferQuery.vue +1 -1
  37. package/src/components/sale/businessquery/UserInsured.vue +1 -1
  38. package/src/components/sale/businessquery/overDueQuery.vue +1 -1
  39. package/src/components/sale/businessquery/priceadjustQuery.vue +1 -1
  40. package/src/components/sale/config/exportConfig.js +518 -527
  41. package/src/components/sale/filesquery/ArchivesManage.vue +0 -3
  42. package/src/components/sale/filesquery/DeviceQuery.vue +1 -1
  43. package/src/components/sale/filesquery/MeterQuery.vue +1 -1
  44. package/src/components/sale/filesquery/RecordInfoQuery.vue +9 -83
  45. package/src/components/sale/filesquery/UserDeviceQuery.vue +1 -1
  46. package/src/components/sale/filesquery/UserQuery.vue +0 -46
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +28 -19
  48. package/src/components/webmeter/DrillData/LostContactEcharts.vue +14 -32
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +10 -6
  50. package/src/components/webmeter/DrillData/UserGasEcharts.vue +7 -8
  51. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +27 -13
  52. package/src/components/webmeter/instruction/NewQueryInstructMain.vue +1 -1
  53. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +1 -1
  54. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +566 -753
  55. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +2 -6
  56. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +3 -10
  57. package/src/components/webmeter/newwebmeter/UserGasList.vue +10 -12
  58. package/src/components/webmeter/newwebmeter/UserInstructList.vue +1 -1
  59. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +18 -26
  60. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +1 -1
  61. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +14 -15
  62. package/src/components/webmeter/report/ReportList.vue +1 -1
  63. package/src/filiale/WEINAN/MeterQuery.vue +1 -1
  64. package/src/filiale/WEINAN/RecordInfoQuery.vue +1 -1
  65. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +1 -1
  66. package/src/filiale/gongyi/sale/businessquery/BusinessManage.vue +19 -19
  67. package/src/filiale/gongyi/sale/businessquery/ChangeMeterQuery.vue +0 -11
  68. package/src/filiale/gongyi/sale/filesquery/UserQuery.vue +0 -17
  69. package/src/filiale/jingwei/RecordInfoQuery.vue +1 -1
  70. package/src/filiale/jingzhou/ChargeQuery.vue +5 -15
  71. package/src/filiale/jingzhou/HandplanQuery.vue +1 -1
  72. package/src/filiale/jingzhou/config/exportConfig.js +13 -17
  73. package/src/filiale/liaoyuan/RecordInfoQuery.vue +14 -55
  74. package/src/filiale/liaoyuan/ReportList.vue +1 -1
  75. package/src/filiale/macheng/MeterQuery.vue +1 -1
  76. package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
  77. package/src/filiale/meihekou/ChargeQuery.vue +4 -4
  78. package/src/filiale/meihekou/HandplanQuery.vue +1 -1
  79. package/src/filiale/meihekou/RecordInfoQuery.vue +21 -3
  80. package/src/filiale/meihekou/sale.js +1 -5
  81. package/src/filiale/pingxiang/ChangeUserQuery.vue +1 -1
  82. package/src/filiale/shaoguan/HandplanQuery.vue +1 -1
  83. package/src/filiale/shaoguan/errorHandplanQuery.vue +1 -1
  84. package/src/filiale/shaoguan/overDueQuery.vue +1 -1
  85. package/src/filiale/shaoguan/sale/businessquery/ChangeUserQuery.vue +1 -1
  86. package/src/main.js +66 -66
  87. package/src/newmanage.js +3 -37
  88. package/src/reportManage.js +4 -0
  89. package/src/saleManage.js +0 -9
  90. package/src/components/daping/BarChart.vue +0 -256
  91. package/src/components/daping/BarChartLine.vue +0 -284
  92. package/src/components/daping/CallCenter.vue +0 -368
  93. package/src/components/daping/DataManagement.vue +0 -697
  94. package/src/components/daping/DataManagement1.vue +0 -345
  95. package/src/components/daping/DataStatistics.vue +0 -241
  96. package/src/components/daping/ExpireMeter.vue +0 -272
  97. package/src/components/daping/GMap.vue +0 -636
  98. package/src/components/daping/ManageMain.vue +0 -255
  99. package/src/components/daping/Pie.vue +0 -171
  100. package/src/components/daping/ResidentsSecurity.vue +0 -132
  101. package/src/components/daping/Ring.vue +0 -227
  102. package/src/components/daping/SafeCheckRing.vue +0 -160
  103. package/src/components/daping/SafecheckBarChart.vue +0 -294
  104. package/src/components/daping/Scada.vue +0 -198
  105. package/src/components/daping/SellBarEcharts.vue +0 -220
  106. package/src/components/daping/SellEcharts.vue +0 -219
  107. package/src/components/daping/Style/qinhuaStyle.less +0 -224
  108. package/src/components/daping/Style//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
  109. package/src/components/daping/XianMap.vue +0 -275
  110. package/src/components/daping/js/AMap.js +0 -19
  111. package/src/components/daping/js/BMap.js +0 -13
  112. package/src/components/daping/json/mapStyle.json +0 -1299
  113. package/src/components/daping/json/xian.json +0 -1
  114. package/src/components/daping/qinHuaMap.vue +0 -338
  115. package/src/components/sale/businessquery/PriceChange.vue +0 -411
  116. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +0 -334
  117. package/src/components/sale/filesquery/PriceChangeQuery.vue +0 -357
  118. package/src/filiale/meihekou/OtherChargeDetailQuery.vue +0 -74
  119. package/src/filiale/meihekou/OtherChargeQuery.vue +0 -613
  120. package/src/filiale/meihekou/UserGasEform.vue +0 -267
  121. package/src/filiale/rongchuang/SellingTable.vue +0 -250
  122. package/src/filiale/rongchuang/reportManage.js +0 -11
  123. package/src/filiale/tongchuan/UserQuery.vue +0 -846
  124. package/src/filiale/tongchuan/config/DefaultPrint.js +0 -6
  125. package/src/filiale/tongchuan/config/exportConfig.js +0 -857
  126. package/src/filiale/tongchuan/sale.js +0 -11
  127. package/src/filiale/zhoukou/CardHandplanQuery.vue +0 -457
  128. package/src/filiale/zhoukou/sale.js +0 -11
  129. package/src/plugins/transformer.js +0 -117
  130. package/static/NewManageHome/NewManageHome/01.png +0 -0
  131. package/static/NewManageHome/NewManageHome/02.png +0 -0
  132. package/static/NewManageHome/NewManageHome/03.png +0 -0
  133. package/static/NewManageHome/NewManageHome/04.png +0 -0
  134. package/static/NewManageHome/NewManageHome/1.gif +0 -0
  135. package/static/NewManageHome/NewManageHome/2.gif +0 -0
  136. package/static/NewManageHome/NewManageHome/3.gif +0 -0
  137. package/static/NewManageHome/NewManageHome/5gif.gif +0 -0
  138. package/static/NewManageHome/NewManageHome/6gif.gif +0 -0
  139. package/static/NewManageHome/NewManageHome/7.gif +0 -0
  140. package/static/NewManageHome/NewManageHome/8.gif +0 -0
  141. package/static/NewManageHome/NewManageHome/9.gif +0 -0
  142. package/static/NewManageHome/NewManageHome/background_qinhua.png +0 -0
  143. package/static/NewManageHome/NewManageHome/green.png +0 -0
  144. package/static/NewManageHome/NewManageHome/map.png +0 -0
  145. package/static/NewManageHome/NewManageHome/map1.png +0 -0
  146. package/static/NewManageHome/NewManageHome/mpa.png +0 -0
  147. package/static/NewManageHome/NewManageHome/sell_1.png +0 -0
  148. package/static/NewManageHome/NewManageHome/sell_2.png +0 -0
  149. package/static/NewManageHome/NewManageHome/title.png +0 -0
  150. package/static/NewManageHome/NewManageHome/title_left.png +0 -0
  151. package/static/NewManageHome/NewManageHome/title_right.png +0 -0
  152. package/static/NewManageHome/NewManageHome//345/210/206/345/205/254/345/217/270/345/271/264/345/272/246/350/264/255/350/277/233/351/207/217.png +0 -0
  153. package/static/NewManageHome/NewManageHome//345/212/240/350/275/275.gif +0 -0
  154. package/static/NewManageHome/NewManageHome//345/212/250/346/225/210.gif +0 -0
  155. package/static/NewManageHome/NewManageHome//345/215/203/351/230/263/345/216/2771.png +0 -0
  156. package/static/NewManageHome/NewManageHome//345/215/203/351/230/263/345/216/2772.png +0 -0
  157. package/static/NewManageHome/NewManageHome//345/215/242/346/260/217/345/216/2771.png +0 -0
  158. package/static/NewManageHome/NewManageHome//345/215/242/346/260/217/345/216/2772.png +0 -0
  159. package/static/NewManageHome/NewManageHome//345/217/263/344/270/212.png +0 -0
  160. package/static/NewManageHome/NewManageHome//345/217/263/344/270/213.png +0 -0
  161. package/static/NewManageHome/NewManageHome//345/233/272/345/256/232/350/265/204/344/272/247.png +0 -0
  162. package/static/NewManageHome/NewManageHome//345/233/276/345/261/2020.png +0 -0
  163. package/static/NewManageHome/NewManageHome//345/233/276/345/261/20212.png +0 -0
  164. package/static/NewManageHome/NewManageHome//345/233/276/345/261/2024.png +0 -0
  165. package/static/NewManageHome/NewManageHome//345/233/276/345/261/2025.png +0 -0
  166. package/static/NewManageHome/NewManageHome//345/233/276/345/261/202527.png +0 -0
  167. package/static/NewManageHome/NewManageHome//345/234/206/350/247/222/347/237/251/345/275/2421163.png +0 -0
  168. package/static/NewManageHome/NewManageHome//345/237/216/344/270/2341.png +0 -0
  169. package/static/NewManageHome/NewManageHome//345/237/216/344/270/2342.png +0 -0
  170. package/static/NewManageHome/NewManageHome//345/237/216/345/214/2271.png +0 -0
  171. package/static/NewManageHome/NewManageHome//345/237/216/345/214/2272.png +0 -0
  172. package/static/NewManageHome/NewManageHome//345/237/216/345/215/2271.png +0 -0
  173. package/static/NewManageHome/NewManageHome//345/237/216/345/215/2272.png +0 -0
  174. package/static/NewManageHome/NewManageHome//345/237/216/350/245/2771.png +0 -0
  175. package/static/NewManageHome/NewManageHome//345/237/216/350/245/2772.png +0 -0
  176. package/static/NewManageHome/NewManageHome//345/267/246/344/270/212.png +0 -0
  177. package/static/NewManageHome/NewManageHome//345/267/246/344/270/213.png +0 -0
  178. package/static/NewManageHome/NewManageHome//345/271/263/345/210/251/345/216/2771.png +0 -0
  179. package/static/NewManageHome/NewManageHome//345/271/263/345/210/251/345/216/2772.png +0 -0
  180. package/static/NewManageHome/NewManageHome//346/200/273/345/205/254/345/217/270/351/224/200/345/224/256/350/266/213/345/212/277.png +0 -0
  181. package/static/NewManageHome/NewManageHome//347/224/250/346/210/267.png +0 -0
  182. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2421173/346/213/267/350/264/235.png +0 -0
  183. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2421186.png +0 -0
  184. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2421186/346/213/267/350/264/235.png +0 -0
  185. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2353.png +0 -0
  186. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2356.png +0 -0
  187. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2357.png +0 -0
  188. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2359.png +0 -0
  189. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23511.png +0 -0
  190. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23516.png +0 -0
  191. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23522.png +0 -0
  192. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2353.png +0 -0
  193. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2354.png +0 -0
  194. package/static/NewManageHome/NewManageHome//347/273/20420.png +0 -0
  195. package/static/NewManageHome/NewManageHome//347/273/20437.png +0 -0
  196. package/static/NewManageHome/NewManageHome//347/273/20443.png +0 -0
  197. package/static/NewManageHome/NewManageHome//347/273/20445.png +0 -0
  198. package/static/NewManageHome/NewManageHome//350/203/214/346/231/2571.png +0 -0
  199. package/static/NewManageHome/NewManageHome//350/220/245/344/270/232/346/224/266/345/205/245.png +0 -0
  200. package/static/NewManageHome/NewManageHome//351/224/200/345/224/256/346/260/224/351/207/217.png +0 -0
  201. package/static/NewManageHome/green.png +0 -0
  202. package/static/NewManageHome/title.png +0 -0
  203. package/static/NewManageHome/title_wujie.png +0 -0
  204. package/static/NewManageHome//345/233/276/345/261/202527.png +0 -0
  205. package/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2353.png +0 -0
  206. package/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2354.png +0 -0
  207. package/static/NewManageHome//347/273/20443.png +0 -0
  208. package/static/NewManageHome//347/273/20445.png +0 -0
  209. package/static/newStyle/position.png +0 -0
@@ -1,636 +0,0 @@
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>