manage-client 3.2.10 → 3.2.11

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 (459) hide show
  1. package/.babelrc +5 -5
  2. package/.classpath +6 -6
  3. package/.editorconfig +9 -9
  4. package/.eslintrc.js +20 -20
  5. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  6. package/.project +18 -18
  7. package/CHANGELOG.md +15 -15
  8. package/DOC//345/212/237/350/203/275/350/257/264/346/230/216.md +13 -13
  9. package/DOC//347/211/210/346/234/254/344/277/241/346/201/257.md +8 -8
  10. package/ManageClient.iml +13 -13
  11. package/README.md +38 -38
  12. package/build/dev-server.js +5 -7
  13. package/build/webpack.base.conf.js +82 -82
  14. package/build.gradle +13 -13
  15. package/config/dev.env.js +6 -6
  16. package/config/index.js +40 -40
  17. package/config/prod.env.js +3 -3
  18. package/config/test.env.js +6 -6
  19. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  20. package/gradlew.bat +100 -100
  21. package/index.html +28 -28
  22. package/package.json +1 -1
  23. package/release.bat +5 -5
  24. package/src/ManageHome.js +269 -269
  25. package/src/Staff/StaffCompileList.vue +334 -334
  26. package/src/Staff/StaffList.vue +161 -161
  27. package/src/Staff/StaffListManage.vue +49 -49
  28. package/src/Util.js +367 -367
  29. package/src/components/BasisEcharts/LineChart.vue +243 -243
  30. package/src/components/ManageHome/CustomerService/ContentmentStatistics.vue +135 -135
  31. package/src/components/ManageHome/CustomerService/ExcepCollect.vue +174 -174
  32. package/src/components/ManageHome/CustomerService/ReasonComplaint.vue +116 -116
  33. package/src/components/ManageHome/CustomerService/ReasonConsultation.vue +115 -115
  34. package/src/components/ManageHome/CustomerService/ServiceFix.vue +155 -155
  35. package/src/components/ManageHome/CustomerService/ServiceHome.vue +179 -179
  36. package/src/components/ManageHome/CustomerService/ServiceStatistics.vue +147 -147
  37. package/src/components/ManageHome/CustomerService/TrafficStatistics.vue +160 -160
  38. package/src/components/ManageHome/Drill/DrillData.vue +791 -791
  39. package/src/components/ManageHome/Drill/DrillList.vue +320 -320
  40. package/src/components/ManageHome/Drill/DrillPool.vue +129 -129
  41. package/src/components/ManageHome/Home/CallCenter.vue +124 -124
  42. package/src/components/ManageHome/Home/CallFix.vue +172 -172
  43. package/src/components/ManageHome/Home/CallStatistics.vue +147 -147
  44. package/src/components/ManageHome/Home/GasValue.vue +233 -233
  45. package/src/components/ManageHome/Home/Home.vue +138 -138
  46. package/src/components/ManageHome/Home/Monitor.vue +329 -329
  47. package/src/components/ManageHome/Home/NetWork.vue +202 -202
  48. package/src/components/ManageHome/Home/SafeCheck.vue +249 -249
  49. package/src/components/ManageHome/Home/UserModule.vue +367 -367
  50. package/src/components/ManageHome/ImportSupplygas/AddSupply.vue +206 -206
  51. package/src/components/ManageHome/ImportSupplygas/SuppleManagement.vue +43 -43
  52. package/src/components/ManageHome/ImportSupplygas/SupplySelect.vue +85 -85
  53. package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
  54. package/src/components/ManageHome/ManageHome.vue +292 -292
  55. package/src/components/ManageHome/Monitor/BuySub.vue +311 -311
  56. package/src/components/ManageHome/Monitor/Caveat.vue +300 -300
  57. package/src/components/ManageHome/Monitor/ComparedGas.vue +264 -264
  58. package/src/components/ManageHome/Monitor/MeterBrand.vue +211 -211
  59. package/src/components/ManageHome/Monitor/MonitorCenter.vue +132 -132
  60. package/src/components/ManageHome/Monitor/MonitorHome.vue +188 -188
  61. package/src/components/ManageHome/Monitor/NoBuyGas.vue +223 -223
  62. package/src/components/ManageHome/Monitor/NoContact.vue +233 -233
  63. package/src/components/ManageHome/Monitor/NoGas.vue +202 -202
  64. package/src/components/ManageHome/NetWork/LineInspection.vue +267 -267
  65. package/src/components/ManageHome/NetWork/NetDanger.vue +258 -258
  66. package/src/components/ManageHome/NetWork/NetHome.vue +84 -84
  67. package/src/components/ManageHome/NetWork/SupplyGas.vue +204 -204
  68. package/src/components/ManageHome/SecurityCheck/CheckHome.vue +94 -94
  69. package/src/components/ManageHome/SecurityCheck/CustomerType.vue +244 -244
  70. package/src/components/ManageHome/SecurityCheck/LatentDanger.vue +218 -218
  71. package/src/components/ManageHome/SecurityCheck/PlanStatistics.vue +231 -231
  72. package/src/components/ManageHome/SecurityCheck/StateStatistics.vue +237 -237
  73. package/src/components/ManageHome/SecurityCheck/TaskStatistics.vue +303 -303
  74. package/src/components/ManageHome/User/GasDistri.vue +271 -271
  75. package/src/components/ManageHome/User/InspecDistri.vue +272 -272
  76. package/src/components/ManageHome/User/SaleProportion.vue +309 -309
  77. package/src/components/ManageHome/User/UseHome.vue +155 -155
  78. package/src/components/ManageHome/User/UserGascontrast.vue +223 -223
  79. package/src/components/ManageHome/User/UserNumber.vue +519 -519
  80. package/src/components/ManageHome/User/UsernumIncrease.vue +243 -243
  81. package/src/components/ManageHome/loading.vue +23 -23
  82. package/src/components/ManageHomeCS/Cockpit.vue +43 -43
  83. package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +161 -161
  84. package/src/components/ManageHomeCS/CustomerService/ExcepCollect.vue +201 -201
  85. package/src/components/ManageHomeCS/CustomerService/ReasonComplaint.vue +146 -146
  86. package/src/components/ManageHomeCS/CustomerService/ReasonConsultation.vue +148 -148
  87. package/src/components/ManageHomeCS/CustomerService/ServiceFix.vue +242 -242
  88. package/src/components/ManageHomeCS/CustomerService/ServiceHome.vue +176 -176
  89. package/src/components/ManageHomeCS/CustomerService/ServiceStatistics.vue +277 -277
  90. package/src/components/ManageHomeCS/CustomerService/TrafficStatistics.vue +226 -226
  91. package/src/components/ManageHomeCS/Drill/DrillData.vue +918 -918
  92. package/src/components/ManageHomeCS/Drill/DrillList.vue +320 -320
  93. package/src/components/ManageHomeCS/Drill/DrillPool.vue +129 -129
  94. package/src/components/ManageHomeCS/Home/CallCenter.vue +206 -206
  95. package/src/components/ManageHomeCS/Home/CallFix.vue +172 -172
  96. package/src/components/ManageHomeCS/Home/CallStatistics.vue +147 -147
  97. package/src/components/ManageHomeCS/Home/GasValue.vue +466 -466
  98. package/src/components/ManageHomeCS/Home/Home.vue +57 -57
  99. package/src/components/ManageHomeCS/Home/Monitor.vue +423 -423
  100. package/src/components/ManageHomeCS/Home/NetWork.vue +223 -223
  101. package/src/components/ManageHomeCS/Home/SafeCheck.vue +446 -446
  102. package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
  103. package/src/components/ManageHomeCS/Home/UserModule.vue +511 -511
  104. package/src/components/ManageHomeCS/Home/YulinMap.vue +424 -424
  105. package/src/components/ManageHomeCS/ImportSupplygas/AddSupply.vue +206 -206
  106. package/src/components/ManageHomeCS/ImportSupplygas/SuppleManagement.vue +43 -43
  107. package/src/components/ManageHomeCS/ImportSupplygas/SupplySelect.vue +85 -85
  108. package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
  109. package/src/components/ManageHomeCS/Monitor/BuySub.vue +339 -339
  110. package/src/components/ManageHomeCS/Monitor/Caveat.vue +301 -301
  111. package/src/components/ManageHomeCS/Monitor/ComparedGas.vue +276 -276
  112. package/src/components/ManageHomeCS/Monitor/MeterBrand.vue +220 -220
  113. package/src/components/ManageHomeCS/Monitor/MonitorCenter.vue +139 -139
  114. package/src/components/ManageHomeCS/Monitor/MonitorHome.vue +188 -188
  115. package/src/components/ManageHomeCS/Monitor/NoBuyGas.vue +218 -218
  116. package/src/components/ManageHomeCS/Monitor/NoContact.vue +217 -217
  117. package/src/components/ManageHomeCS/Monitor/NoGas.vue +214 -214
  118. package/src/components/ManageHomeCS/NetWork/LineInspection.vue +268 -268
  119. package/src/components/ManageHomeCS/NetWork/NetDanger.vue +258 -258
  120. package/src/components/ManageHomeCS/NetWork/NetHome.vue +106 -106
  121. package/src/components/ManageHomeCS/NetWork/NetWork.vue +222 -222
  122. package/src/components/ManageHomeCS/NetWork/NetWorkMap.vue +86 -86
  123. package/src/components/ManageHomeCS/NetWork/SupplyGas.vue +291 -291
  124. package/src/components/ManageHomeCS/NewHome/GasProperties.vue +314 -314
  125. package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +182 -182
  126. package/src/components/ManageHomeCS/NewHome/TextBusiness.vue +267 -267
  127. package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +209 -209
  128. package/src/components/ManageHomeCS/NewHome/TextProfit.vue +298 -298
  129. package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +82 -82
  130. package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +389 -389
  131. package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +406 -406
  132. package/src/components/ManageHomeCS/NewHome/TextUser.vue +378 -378
  133. package/src/components/ManageHomeCS/NewHome/yulin.vue +425 -425
  134. package/src/components/ManageHomeCS/Poor/PoorHome.vue +176 -176
  135. package/src/components/ManageHomeCS/SecurityCheck/CheckHome.vue +94 -94
  136. package/src/components/ManageHomeCS/SecurityCheck/CustomerType.vue +246 -246
  137. package/src/components/ManageHomeCS/SecurityCheck/LatentDanger.vue +220 -220
  138. package/src/components/ManageHomeCS/SecurityCheck/PlanStatistics.vue +306 -306
  139. package/src/components/ManageHomeCS/SecurityCheck/StateStatistics.vue +239 -239
  140. package/src/components/ManageHomeCS/SecurityCheck/TaskStatistics.vue +311 -311
  141. package/src/components/ManageHomeCS/User/FMYInspecDistri.vue +269 -269
  142. package/src/components/ManageHomeCS/User/GasDistri.vue +220 -220
  143. package/src/components/ManageHomeCS/User/MYInspecDistri.vue +269 -269
  144. package/src/components/ManageHomeCS/User/SaleProportion.vue +384 -384
  145. package/src/components/ManageHomeCS/User/UseHome.vue +162 -162
  146. package/src/components/ManageHomeCS/User/UserGascontrast.vue +221 -221
  147. package/src/components/ManageHomeCS/User/UserNumber.vue +600 -600
  148. package/src/components/ManageHomeCS/User/UsernumIncrease.vue +277 -277
  149. package/src/components/ManageHomeCS/loading.vue +39 -39
  150. package/src/components/ManageHomeCS/test.vue +88 -88
  151. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  152. package/src/components/MeterManage/ChargeQuery.vue +79 -79
  153. package/src/components/MeterManage/FillCardQuery.vue +80 -80
  154. package/src/components/MeterManage/FillGasQuery.vue +80 -80
  155. package/src/components/MeterManage/HandQuery.vue +72 -72
  156. package/src/components/MeterManage/MeterInfoManage.vue +107 -107
  157. package/src/components/MeterManage/MeterList.vue +336 -336
  158. package/src/components/MeterManage/MeterMsg.vue +181 -181
  159. package/src/components/MeterManage/OtherChargeQuery.vue +78 -78
  160. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  161. package/src/components/MeterManage/TransferQuery.vue +72 -72
  162. package/src/components/SellReport/BankManager.vue +146 -146
  163. package/src/components/SellReport/BonSummary.vue +178 -178
  164. package/src/components/SellReport/CaiManageDayGas.vue +280 -280
  165. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  166. package/src/components/SellReport/ChManageHandSellMoney.vue +274 -274
  167. package/src/components/SellReport/ChManageMonthGas.vue +285 -285
  168. package/src/components/SellReport/ChOtherfee.vue +251 -251
  169. package/src/components/SellReport/CollectFee.vue +184 -184
  170. package/src/components/SellReport/Contrast.vue +188 -188
  171. package/src/components/SellReport/DayStairMoney.vue +256 -256
  172. package/src/components/SellReport/FenxiangSell.vue +183 -183
  173. package/src/components/SellReport/FxGasTable.vue +220 -220
  174. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  175. package/src/components/SellReport/GasCollect.vue +174 -174
  176. package/src/components/SellReport/GaspriceHas.vue +141 -141
  177. package/src/components/SellReport/HandCollect.vue +189 -189
  178. package/src/components/SellReport/JinChengBusSummary.vue +182 -182
  179. package/src/components/SellReport/JinChengHandGas.vue +182 -182
  180. package/src/components/SellReport/JinChengOperSummary.vue +182 -182
  181. package/src/components/SellReport/JinChengSliceSumgas.vue +182 -182
  182. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  183. package/src/components/SellReport/ManageBusTable.vue +207 -207
  184. package/src/components/SellReport/ManageGasFee.vue +247 -247
  185. package/src/components/SellReport/ManageGasFeeOperator.vue +236 -236
  186. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  187. package/src/components/SellReport/ManageHandSellInputtor.vue +241 -241
  188. package/src/components/SellReport/ManageMonthGas.vue +249 -249
  189. package/src/components/SellReport/ManageNewGasPrice.vue +245 -245
  190. package/src/components/SellReport/ManageReceivable.vue +254 -254
  191. package/src/components/SellReport/ManageUserCollect.vue +183 -183
  192. package/src/components/SellReport/MeterBill.vue +185 -185
  193. package/src/components/SellReport/MeterGasMoney.vue +226 -226
  194. package/src/components/SellReport/MeterInput.vue +250 -250
  195. package/src/components/SellReport/MonthStairMoney.vue +256 -256
  196. package/src/components/SellReport/NonResidentGas.vue +203 -203
  197. package/src/components/SellReport/OutletTable.vue +258 -258
  198. package/src/components/SellReport/OweAging.vue +174 -174
  199. package/src/components/SellReport/QibiaoShouqi.vue +282 -282
  200. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  201. package/src/components/SellReport/ReportHistory.vue +80 -80
  202. package/src/components/SellReport/ReportPool.vue +60 -60
  203. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  204. package/src/components/SellReport/Selling.vue +188 -188
  205. package/src/components/SellReport/SellingTable.vue +220 -220
  206. package/src/components/SellReport/SiteManager.vue +147 -147
  207. package/src/components/SellReport/UserSellingGas.vue +177 -177
  208. package/src/components/SellReport/UserStateStatistics.vue +188 -188
  209. package/src/components/SellReport/UsertypePie.vue +101 -101
  210. package/src/components/SellReport/XianYangDate.vue +227 -227
  211. package/src/components/SellReport/XianYangOperator.vue +228 -228
  212. package/src/components/SellReport/XyDateCharge.vue +227 -227
  213. package/src/components/SellReport/XyOperatorCharge.vue +256 -256
  214. package/src/components/SellReport/YuShouTableTwo.vue +309 -309
  215. package/src/components/SellReport/jingwei/CardCharge.vue +142 -142
  216. package/src/components/SellReport/jingwei/MachineCharge.vue +141 -141
  217. package/src/components/SellReport/jingwei/PaymentNotice.vue +479 -479
  218. package/src/components/SellReport/jingwei/handplanReport.vue +280 -280
  219. package/src/components/SellReport/jingwei/widegt/PaymentNoticePrint.vue +198 -198
  220. package/src/components/SellReport/jingwei/widegt/handplanPrint.vue +143 -143
  221. package/src/components/SellReport/pengan/ManageBusSummaryPeng.vue +241 -241
  222. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  223. package/src/components/WebReport/AbnormalInfo.vue +197 -197
  224. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  225. package/src/components/WebReport/BatteryLow.vue +148 -148
  226. package/src/components/WebReport/BusinessHall.vue +85 -85
  227. package/src/components/WebReport/BussinessType.vue +137 -137
  228. package/src/components/WebReport/Communication.vue +131 -131
  229. package/src/components/WebReport/CompanyUser.vue +79 -79
  230. package/src/components/WebReport/EchartsBox.vue +110 -110
  231. package/src/components/WebReport/ElectroMagnetic.vue +142 -142
  232. package/src/components/WebReport/GaspriceHas.vue +141 -141
  233. package/src/components/WebReport/HandplanPrint.vue +167 -167
  234. package/src/components/WebReport/NotUpload.vue +165 -165
  235. package/src/components/WebReport/OweQuery.vue +169 -169
  236. package/src/components/WebReport/PaymentDistributed.vue +176 -176
  237. package/src/components/WebReport/Paymentpie.vue +157 -157
  238. package/src/components/WebReport/ReportWorklist.vue +220 -220
  239. package/src/components/WebReport/SellType.vue +89 -89
  240. package/src/components/WebReport/Telemanlist.vue +221 -221
  241. package/src/components/WebReport/UserGasAll.vue +214 -214
  242. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  243. package/src/components/WebReport/UsertypePie.vue +105 -105
  244. package/src/components/WebReport/ValueEcharts.vue +99 -99
  245. package/src/components/WebReport/ValueInfo.vue +194 -194
  246. package/src/components/daping/GMap.vue +636 -636
  247. package/src/components/qinhua/BarChartLine.vue +288 -288
  248. package/src/components/qinhua/ManageMain.vue +162 -162
  249. package/src/components/qinhua/Ring.vue +165 -165
  250. package/src/components/qinhua/SafeCheckRing.vue +149 -149
  251. package/src/components/qinhua/SafecheckBarChart.vue +209 -209
  252. package/src/components/qinhua/Scada.vue +93 -93
  253. package/src/components/safecheck/analysis/SafeHiddenAnaly.vue +932 -932
  254. package/src/components/safecheck/planCheck/chanceSituation.vue +149 -149
  255. package/src/components/safecheck/planCheck/checkFamily.vue +217 -217
  256. package/src/components/safecheck/planCheck/hidderDanger.vue +179 -179
  257. package/src/components/safecheck/planCheck/inFamily.vue +185 -185
  258. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  259. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  260. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  261. package/src/components/sale/businessquery/AccountQuery/TransactionSummary.vue +373 -373
  262. package/src/components/sale/businessquery/BalanceQuery.vue +456 -456
  263. package/src/components/sale/businessquery/BusinesQuery.vue +2 -2
  264. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  265. package/src/components/sale/businessquery/InspectManage.vue +47 -47
  266. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  267. package/src/components/sale/businessquery/NewAccountQuery.vue +409 -409
  268. package/src/components/sale/businessquery/NoBusinessQuery.vue +778 -778
  269. package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +74 -74
  270. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  271. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  272. package/src/components/sale/businessquery/ResourceOperatingQuery.vue +317 -317
  273. package/src/components/sale/businessquery/TongjiManage.vue +74 -74
  274. package/src/components/sale/businessquery/UserTongjiQuery.vue +358 -358
  275. package/src/components/sale/businessquery/YearGasQuery.vue +422 -422
  276. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  277. package/src/components/sale/businessquery/analysisquery/AnalysisManage.vue +65 -65
  278. package/src/components/sale/businessquery/weChatBind.vue +361 -361
  279. package/src/components/sale/common/PrintData.vue +171 -171
  280. package/src/components/sale/common/PrintDataSelf.vue +225 -225
  281. package/src/components/sale/common/PrintTable.vue +228 -228
  282. package/src/components/sale/common/PrintTableSelf.vue +251 -251
  283. package/src/components/sale/common/TabButton.vue +155 -155
  284. package/src/components/sale/common/Tabs.vue +67 -67
  285. package/src/components/sale/common/handplanUser.vue +112 -112
  286. package/src/components/sale/config/DefaultPrint.js +6 -6
  287. package/src/components/sale/config/exportConfig.js +526 -524
  288. package/src/components/sale/config/tableConfig.js +48 -48
  289. package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
  290. package/src/components/sale/filesquery/detail/UserDetail.vue +41 -41
  291. package/src/components/sale/filesquery/detail/UserOperInfo.vue +76 -76
  292. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  293. package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
  294. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  295. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  296. package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
  297. package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
  298. package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
  299. package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
  300. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  301. package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
  302. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
  303. package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
  304. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  305. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  306. package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
  307. package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
  308. package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
  309. package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
  310. package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
  311. package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
  312. package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
  313. package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
  314. package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
  315. package/src/components/sale/report/aode/DayReport.vue +50 -50
  316. package/src/components/sale/report/aode/DayReportSummary.vue +75 -75
  317. package/src/components/sale/report/aode/MonthByChargeType.vue +446 -446
  318. package/src/components/sale/report/aode/MonthByUserType.vue +413 -413
  319. package/src/components/sale/report/aode/YearByChargeTpye.vue +215 -215
  320. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  321. package/src/components/sale/report/aode/life/LifeDayReport.vue +50 -50
  322. package/src/components/sale/report/aode/life/LifeDayReportList.vue +241 -241
  323. package/src/components/sale/report/aode/life/LifeDayReportSummary.vue +49 -49
  324. package/src/components/sale/report/aode/life/LifeMonthReport.vue +303 -303
  325. package/src/components/sale/report/aode/life/LifeYearReport.vue +175 -175
  326. package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +189 -189
  327. package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +153 -153
  328. package/src/components/sale/report/aode/widget/LifeYearPrint.vue +143 -143
  329. package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +236 -236
  330. package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
  331. package/src/components/sale/report/aode/widget/YearByChargePrint.vue +203 -203
  332. package/src/components/sale/report/aode/widget/YearByUserPrint.vue +225 -225
  333. package/src/components/scada/CaculateGasConsumputionByDay/CaculateGasConsumputionByDay.vue +290 -290
  334. package/src/components/scada/ChartDisplay/ChartDisplayManage.vue +55 -55
  335. package/src/components/scada/ChartDisplay/ChartThreeDayContrast.vue +164 -164
  336. package/src/components/scada/CumulativeFlow/CumulativeFlowHeatPlant.vue +400 -400
  337. package/src/components/scada/CumulativeFlow/CumulativeFlowManage.vue +59 -59
  338. package/src/components/scada/CumulativeFlow/CumulativeFlowRegulatorStation.vue +504 -504
  339. package/src/components/scada/CumulativeFlow/CumulativeFlowStation.vue +248 -248
  340. package/src/components/scada/GasSupplyRunning/GasSupplyRunningByDay.vue +297 -297
  341. package/src/components/scada/InstantaneousFlow/InstantaneousFlowHeatPlant.vue +389 -389
  342. package/src/components/scada/InstantaneousFlow/InstantaneousFlowManage.vue +57 -57
  343. package/src/components/scada/InstantaneousFlow/InstantaneousFlowRegulatorStation.vue +503 -503
  344. package/src/components/scada/InstantaneousFlow/InstantaneousFlowStation.vue +244 -244
  345. package/src/components/scada/OnTimePressure/OnTimePressureHeatPlant.vue +356 -356
  346. package/src/components/scada/OnTimePressure/OnTimePressureManage.vue +51 -51
  347. package/src/components/scada/OnTimePressure/OnTimePressureRegulatorStation.vue +526 -526
  348. package/src/components/scada/ThreeDayContrast/ThreeDayContrastManage.vue +282 -282
  349. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  350. package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
  351. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  352. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  353. package/src/components/webmeter/DrillData/LostContactAnalysisManage.vue +30 -30
  354. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  355. package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
  356. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  357. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  358. package/src/components/webmeter/dataCollection/DataCollection.vue +676 -676
  359. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  360. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  361. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  362. package/src/components/webmeter/handplan/NewWebmeterHandPlanMain.vue +59 -59
  363. package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
  364. package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
  365. package/src/components/webmeter/meterinfo/NewMeterList.vue +414 -414
  366. package/src/components/webmeter/meterinfo/NewMeterListMain.vue +53 -53
  367. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  368. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
  369. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  370. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  371. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  372. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  373. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  374. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  375. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  376. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  377. package/src/components/yulin/GuanWang.vue +24 -24
  378. package/src/components/yulin/SingleBarLine.vue +352 -352
  379. package/src/components/yulin/Weather.vue +157 -157
  380. package/src/expandcss.less +26 -26
  381. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  382. package/src/filiale/WEINAN/InspectListUser.vue +492 -492
  383. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  384. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  385. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  386. package/src/filiale/WEINAN/reportManage.js +12 -12
  387. package/src/filiale/WEINAN/sale.js +32 -32
  388. package/src/filiale/alashan/reportManage.js +10 -10
  389. package/src/filiale/aode/ArchivesManage.vue +38 -38
  390. package/src/filiale/aode/BusinessManage.vue +94 -94
  391. package/src/filiale/aode/DefaultPrint.js +6 -6
  392. package/src/filiale/aode/HandplanQuery.vue +632 -632
  393. package/src/filiale/aode/Tabs.vue +67 -67
  394. package/src/filiale/aode/UserQuery.vue +599 -599
  395. package/src/filiale/aode/sale.js +17 -17
  396. package/src/filiale/ceshi/ArrearsQuery.vue +642 -642
  397. package/src/filiale/ceshi/ChManageBusSummary.vue +293 -293
  398. package/src/filiale/ceshi/CollectManage.vue +94 -94
  399. package/src/filiale/ceshi/MeterRateQuery.vue +633 -633
  400. package/src/filiale/ceshi/TabButton.vue +149 -149
  401. package/src/filiale/ceshi/Tabs.vue +69 -69
  402. package/src/filiale/ceshi/reportManage.js +5 -5
  403. package/src/filiale/ceshi/sale.js +11 -11
  404. package/src/filiale/gaomi/config/DefaultPrint.js +6 -6
  405. package/src/filiale/gaomi/config/tableConfig.js +47 -47
  406. package/src/filiale/gongyi/sale/businessquery/exportConfig.js +17 -17
  407. package/src/filiale/gongyi/sale/filesquery/MeterQuery.vue +718 -718
  408. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  409. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  410. package/src/filiale/liaoyuan/sale.js +11 -11
  411. package/src/filiale/macheng/config/DefaultPrint.js +12 -12
  412. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  413. package/src/filiale/meihekou/UserQuery.vue +773 -773
  414. package/src/filiale/meihekou/sale.js +26 -26
  415. package/src/filiale/qingtongxia/config/DefaultPrint.js +6 -6
  416. package/src/filiale/qingtongxia/sale.js +13 -13
  417. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  418. package/src/filiale/rongchuang/reportManage.js +11 -11
  419. package/src/filiale/shaoguan/OtherChargeDetailQuery.vue +74 -74
  420. package/src/filiale/shaoguan/config/DefaultPrint.js +6 -6
  421. package/src/filiale/shennongjia/config/DefaultPrint.js +6 -6
  422. package/src/filiale/shennongjia/config/tableConfig.js +47 -47
  423. package/src/filiale/shennongjia/sale.js +10 -10
  424. package/src/filiale/tongchuan/sale.js +16 -16
  425. package/src/main.js +2 -2
  426. package/src/plugins/GetLoginInfoService.js +505 -505
  427. package/src/plugins/LodopFuncs.js +124 -124
  428. package/src/plugins/getAllInputtor.js +29 -29
  429. package/src/safeCheck.js +63 -63
  430. package/src/stores/AppData.js +62 -62
  431. package/src/stores/DataSql.js +585 -585
  432. package/src/stores/DrillECharts.js +602 -602
  433. package/src/stores/DrillSql.js +888 -888
  434. package/src/stores/GetParames.js +15 -15
  435. package/src/stores/MagGetSaleParams.js +156 -156
  436. package/src/stores/MagLoadParams.js +63 -63
  437. package/src/stores/Util.js +132 -132
  438. package/src/stores/shanxi1.js +26 -26
  439. package/src/stores/yulin.js +27 -27
  440. package/src/webmeterManage.js +105 -105
  441. package/static/china.json +1 -1
  442. package/static/qh.json +2410 -2410
  443. package/static/res.json +58411 -58411
  444. package/static/shanxi1.json +1 -1
  445. package/static/wuhai.json +1610 -1610
  446. package/static/yulin.json +1 -1
  447. package/static//345/261/261/344/270/234/347/234/201.json +1 -1
  448. package/test/unit/.eslintrc +5 -5
  449. package/test/unit/TestUtil.js +35 -35
  450. package/test/unit/context.html +20 -20
  451. package/test/unit/index.js +13 -13
  452. package/test/unit/init.js +11 -11
  453. package/test/unit/karma.conf.js +45 -45
  454. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  455. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  456. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  457. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
  458. package/webstorm.config.js +13 -13
  459. package/src/filiale/tongchuan/CriteriaPaged.vue +0 -49
@@ -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>