apply-clients 7.1.35 → 7.1.36-yuchuan-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +5 -1
- package/android.html +9 -0
- package/build/css-loaders.js +34 -0
- package/build/dev-client.js +8 -0
- package/build/dev-server.js +172 -0
- package/build/example-server.js +80 -0
- package/build/release.sh +28 -0
- package/build/utils.js +80 -0
- package/build/webpack.base.conf.js +123 -0
- package/build/webpack.baseandroid.conf.js +123 -0
- package/build/webpack.dev.conf.js +43 -0
- package/build/webpack.devandroid.conf.js +34 -0
- package/build/webpack.example.conf.js +49 -0
- package/build/webpack.prod.conf.js +60 -0
- package/build/webpack.prodandroid.conf.js +60 -0
- package/dist-android.7z +0 -0
- package/dist.7z +0 -0
- package/index.html +10 -1
- package/package.json +14 -8
- package/src/AndroidApp.vue +21 -14
- package/src/App.vue +4 -6
- package/src/android-bootstrap/less/.csscomb.json +304 -0
- package/src/android-bootstrap/less/.csslintrc +19 -0
- package/src/android-bootstrap/less/alerts.less +73 -0
- package/src/android-bootstrap/less/badges.less +66 -0
- package/src/android-bootstrap/less/bootstrap.less +56 -0
- package/src/android-bootstrap/less/breadcrumbs.less +26 -0
- package/src/android-bootstrap/less/button-groups.less +247 -0
- package/src/android-bootstrap/less/buttons.less +173 -0
- package/src/android-bootstrap/less/carousel.less +269 -0
- package/src/android-bootstrap/less/close.less +34 -0
- package/src/android-bootstrap/less/code.less +69 -0
- package/src/android-bootstrap/less/component-animations.less +33 -0
- package/src/android-bootstrap/less/dropdowns.less +216 -0
- package/src/android-bootstrap/less/forms.less +626 -0
- package/src/android-bootstrap/less/glyphicons.less +305 -0
- package/src/android-bootstrap/less/grid.less +84 -0
- package/src/android-bootstrap/less/input-groups.less +167 -0
- package/src/android-bootstrap/less/jumbotron.less +52 -0
- package/src/android-bootstrap/less/labels.less +64 -0
- package/src/android-bootstrap/less/list-group.less +141 -0
- package/src/android-bootstrap/less/media.less +66 -0
- package/src/android-bootstrap/less/mixins/alerts.less +14 -0
- package/src/android-bootstrap/less/mixins/background-variant.less +9 -0
- package/src/android-bootstrap/less/mixins/border-radius.less +18 -0
- package/src/android-bootstrap/less/mixins/buttons.less +69 -0
- package/src/android-bootstrap/less/mixins/center-block.less +7 -0
- package/src/android-bootstrap/less/mixins/clearfix.less +22 -0
- package/src/android-bootstrap/less/mixins/forms.less +90 -0
- package/src/android-bootstrap/less/mixins/gradients.less +59 -0
- package/src/android-bootstrap/less/mixins/grid-framework.less +92 -0
- package/src/android-bootstrap/less/mixins/grid.less +122 -0
- package/src/android-bootstrap/less/mixins/hide-text.less +21 -0
- package/src/android-bootstrap/less/mixins/image.less +33 -0
- package/src/android-bootstrap/less/mixins/labels.less +12 -0
- package/src/android-bootstrap/less/mixins/list-group.less +30 -0
- package/src/android-bootstrap/less/mixins/nav-divider.less +10 -0
- package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -0
- package/src/android-bootstrap/less/mixins/opacity.less +8 -0
- package/src/android-bootstrap/less/mixins/pagination.less +24 -0
- package/src/android-bootstrap/less/mixins/panels.less +24 -0
- package/src/android-bootstrap/less/mixins/progress-bar.less +10 -0
- package/src/android-bootstrap/less/mixins/reset-filter.less +8 -0
- package/src/android-bootstrap/less/mixins/reset-text.less +18 -0
- package/src/android-bootstrap/less/mixins/resize.less +6 -0
- package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -0
- package/src/android-bootstrap/less/mixins/size.less +10 -0
- package/src/android-bootstrap/less/mixins/tab-focus.less +9 -0
- package/src/android-bootstrap/less/mixins/table-row.less +44 -0
- package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -0
- package/src/android-bootstrap/less/mixins/text-overflow.less +8 -0
- package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -0
- package/src/android-bootstrap/less/mixins.less +40 -0
- package/src/android-bootstrap/less/modals.less +151 -0
- package/src/android-bootstrap/less/navbar.less +660 -0
- package/src/android-bootstrap/less/navs.less +302 -0
- package/src/android-bootstrap/less/normalize.less +424 -0
- package/src/android-bootstrap/less/pager.less +76 -0
- package/src/android-bootstrap/less/pagination.less +89 -0
- package/src/android-bootstrap/less/panels.less +274 -0
- package/src/android-bootstrap/less/popovers.less +131 -0
- package/src/android-bootstrap/less/print.less +101 -0
- package/src/android-bootstrap/less/progress-bars.less +87 -0
- package/src/android-bootstrap/less/responsive-embed.less +35 -0
- package/src/android-bootstrap/less/responsive-utilities.less +194 -0
- package/src/android-bootstrap/less/scaffolding.less +161 -0
- package/src/android-bootstrap/less/tables.less +262 -0
- package/src/android-bootstrap/less/theme.less +291 -0
- package/src/android-bootstrap/less/thumbnails.less +36 -0
- package/src/android-bootstrap/less/tooltip.less +102 -0
- package/src/android-bootstrap/less/type.less +303 -0
- package/src/android-bootstrap/less/utilities.less +55 -0
- package/src/android-bootstrap/less/variables.less +896 -0
- package/src/android-bootstrap/less/wells.less +29 -0
- package/src/android.js +7 -4
- package/src/apply.js +83 -16
- package/src/applyAndroid.js +70 -28
- package/src/assets/marker-default.png +0 -0
- package/src/assets/myLocationIcon.png +0 -0
- package/src/assets//345/210/240/351/231/244.png +0 -0
- package/src/components/android/AppOnetomany.vue +301 -0
- package/src/components/android/AppServiceView.vue +603 -0
- package/src/components/android/AppSign.vue +231 -0
- package/src/components/android/AppTakePic.vue +142 -0
- package/src/components/android/AppUpload.vue +260 -0
- package/src/components/android/Ignition/VentilationIgnition.vue +408 -0
- package/src/components/android/Ignition/VentilationIgnitionHandle.vue +455 -0
- package/src/components/android/Process/AppExplorationUser.vue +454 -0
- package/src/components/android/Process/AppServiceControl.vue +1397 -0
- package/src/components/android/Process/Processes/AppChaiChuInfo.vue +546 -0
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +339 -0
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +867 -0
- package/src/components/android/Process/Processes/SurveyUserSign.vue +65 -0
- package/src/components/android/Process/Processes/newAppDevicesManagement.vue +344 -0
- package/src/components/android/Process/Processes/newAppInstallationDetails.vue +669 -0
- package/src/components/android/Sign/AppSignTask.vue +183 -0
- package/src/components/android/Sign/SignProcess.vue +103 -0
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +334 -0
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +128 -0
- package/src/components/android/Task/Build/BuildTsak.vue +114 -0
- package/src/components/android/Task/BuildIgnition/BuildIgnition.vue +114 -0
- package/src/components/android/Task/RepairFromSend/RepairFrom.vue +124 -0
- package/src/components/android/Task/RepairFromSend/RepairSend.vue +124 -0
- package/src/components/android/Task/ShenHe/BuZhangShenHe.vue +64 -0
- package/src/components/android/Task/ShenHe/JingLiShenHe.vue +64 -0
- package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +427 -0
- package/src/components/android/Task/ShiGongXinXi/ShowBuild.vue +95 -0
- package/src/components/android/Task/Survey/SurveyTsak.vue +141 -0
- package/src/components/android/Task/UpBuild/UpBuildDui.vue +95 -0
- package/src/components/android/Task/UpBuild/UpBuildTsak.vue +95 -0
- package/src/components/android/Task/UpBuild/UpJianLi.vue +95 -0
- package/src/components/android/TaskGraph.vue +130 -0
- package/src/components/android/newPackage/customerServiceManager.vue +218 -0
- package/src/components/android/newPackage/designDrawings.vue +94 -0
- package/src/components/android/newPackage/detailedData.vue +24 -0
- package/src/components/android/newPackage/projectPrice.vue +218 -0
- package/src/components/image/dwg.png +0 -0
- package/src/components/image/dxf.png +0 -0
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +568 -73
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +2 -2
- package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeList.vue +198 -0
- package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeSearch.vue +30 -0
- package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +235 -0
- package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +323 -0
- package/src/components/product/ApplyGuanXian/GuanXianExplorationUser.vue +144 -0
- package/src/components/product/ApplyGuanXian/GuanXianSupervisoryhCart.vue +119 -0
- package/src/components/product/ApplyGuanXian/TabButton.vue +157 -0
- package/src/components/product/ApplyGuanXian/Tabs.vue +67 -0
- package/src/components/product/ApplyMap/ApplyDragaboutList.vue +223 -0
- package/src/components/product/ApplyMap/ApplyInputSearch.vue +212 -0
- package/src/components/product/ApplyMap/ApplyMapCom.vue +82 -0
- package/src/components/product/ApplyMap/ApplyMapLocation.vue +850 -0
- package/src/components/product/ChongZheng/ApplyChongZhengList.vue +414 -0
- package/src/components/product/ChongZheng/ApplyChongZhengSearch.vue +30 -0
- package/src/components/product/Function/InstallFunction.vue +56 -70
- package/src/components/product/Function/InstallInfoSelect.vue +193 -105
- package/src/components/product/Function/Service/FunctionServiceControl.vue +475 -245
- package/src/components/product/Ignition/IgnitionDispatch.vue +92 -0
- package/src/components/product/Ignition/IgnitionList.vue +236 -0
- package/src/components/product/Ignition/IgnitionListManage.vue +403 -0
- package/src/components/product/Ignition/IgnitionRecord.vue +357 -0
- package/src/components/product/List/ShowDevices.vue +279 -0
- package/src/components/product/Onetomany.vue +377 -0
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +445 -0
- package/src/components/product/Print/BuildOrder/printBuildOrder.vue +252 -0
- package/src/components/product/Print/BuildOrder/printGaiXianOrder.vue +232 -0
- package/src/components/product/Print/OrderPrint/GaiXianOrder.vue +281 -0
- package/src/components/product/Print/OrderPrint/printChaiChuOrder.vue +260 -0
- package/src/components/product/Print/img/R-C.jpg +0 -0
- package/src/components/product/Process/ExplorationSelect.vue +580 -347
- package/src/components/product/Process/ExplorationUser.vue +118 -98
- package/src/components/product/Process/NewExplorationUser.vue +184 -0
- package/src/components/product/Process/Processes/ApplyChaiChuInfo.vue +587 -0
- package/src/components/product/Process/Processes/ExhibitionPicture.vue +27 -0
- package/src/components/product/Process/Processes/InstallationDetails.vue +845 -276
- package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
- package/src/components/product/Process/Processes/Print/printCharge.vue +250 -0
- package/src/components/product/Process/Processes/Print/printPaymentApproval.vue +224 -0
- package/src/components/product/Process/Processes/Print/printPaymentSubject.vue +170 -0
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +59 -113
- package/src/components/product/Process/Processes/chargeManagement.vue +492 -350
- package/src/components/product/Process/Processes/devicesManagement.vue +374 -0
- package/src/components/product/Process/Processes/newDevicesManagement.vue +379 -0
- package/src/components/product/Process/Processes/newInstallationDetails.vue +718 -0
- package/src/components/product/Process/Processes/satisfactionShow.vue +202 -0
- package/src/components/product/Process/Processes/selectApply.vue +250 -0
- package/src/components/product/Process/Processes/selectChaiChuUserinfo.vue +230 -0
- package/src/components/product/Process/Processes/selectOldUserinfo.vue +241 -0
- package/src/components/product/Process/Processes/selectUserinfo.vue +234 -0
- package/src/components/product/Process/Processes/supplementalAgreement.vue +182 -181
- package/src/components/product/Process/Service/ServiceControl.vue +2155 -856
- package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
- package/src/components/product/Report/ReportItems.vue +79 -0
- package/src/components/product/Report/apply-stair-anzhuang.vue +361 -0
- package/src/components/product/Report/apply-stair-kaifa.vue +138 -0
- package/src/components/product/Report/apply-stair-tongqi.vue +137 -0
- package/src/components/product/Report/apply-stair-wtongqi.vue +138 -0
- package/src/components/product/ServiceView.vue +557 -680
- package/src/components/product/Stop/StopApply.vue +105 -0
- package/src/components/product/Stop/StopApplyList.vue +224 -0
- package/src/components/product/Supervisory/ExportExcel.vue +360 -0
- package/src/components/product/Supervisory/NewSupervisoryhCart.vue +175 -0
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +454 -73
- package/src/components/product/Supervisory/SupervisoryControl.vue +28 -35
- package/src/components/product/Supervisory/SupervisoryList.vue +536 -208
- package/src/components/product/Supervisory/SupervisoryhCart.vue +52 -36
- package/src/components/product/VueUtils/ApplyUpload.vue +70 -47
- package/src/components/product/VueUtils/HighMeter.vue +208 -0
- package/src/expandcssAndroid.less +1034 -0
- package/src/main.js +5 -1
- package/src/public/history/HistoryApplyList.vue +108 -0
- package/src/public/history/PublicHistoryApply.vue +39 -0
- package/src/public/history/PublicSupervisoryhCart.vue +72 -0
- package/src/public/order/PublicOrderApply.vue +387 -0
- package/static/images/lefticon/yingyechaxun.png +0 -0
- package/static/images/lefticon/zongheyewu.png +0 -0
- package/static/images/lefticon//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
- package/{dist-android/static/denglu.png → static/images/lefticonNew//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png} +0 -0
- package/static/images/lefticonNew//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticonNew//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticonNew//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
- package/static/images/lefticonNew//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
- package/static/images/lefticonNew//345/233/276/345/261/202577.png +0 -0
- package/{dist-android/static/psicon.png → static/images/lefticonNew//345/233/276/345/261/2028/346/213/267/350/264/23513.png} +0 -0
- package/static/images/lefticonNew//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
- package/static/images/lefticonNew//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
- package/static/images/lefticonNew//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
- package/static/images/lefticonNew//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticonNew//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticonNew//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticonNew//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticonNew//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
- package/static/images/lefticonNew//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticonNew//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
- package/static/images/lefticonNew//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticonNew//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
- package/static/images/lefticonNew//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
- package/static/images/lefticonNew//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
- package/static/images/lefticonNew//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticonNew//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
- package/static/images/lefticonNew//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
- package/yarn-error.log +9976 -0
- package/dist-android/index.html +0 -3
- package/dist-android/static/.gitkeep +0 -0
- package/dist-android/static/0.js +0 -2
- package/dist-android/static/0.js.map +0 -1
- package/dist-android/static/1.js +0 -2
- package/dist-android/static/1.js.map +0 -1
- package/dist-android/static/10.js +0 -2
- package/dist-android/static/10.js.map +0 -1
- package/dist-android/static/100.js +0 -2
- package/dist-android/static/100.js.map +0 -1
- package/dist-android/static/11.js +0 -2
- package/dist-android/static/11.js.map +0 -1
- package/dist-android/static/12.js +0 -2
- package/dist-android/static/12.js.map +0 -1
- package/dist-android/static/13.js +0 -2
- package/dist-android/static/13.js.map +0 -1
- package/dist-android/static/14.js +0 -2
- package/dist-android/static/14.js.map +0 -1
- package/dist-android/static/15.js +0 -2
- package/dist-android/static/15.js.map +0 -1
- package/dist-android/static/16.js +0 -2
- package/dist-android/static/16.js.map +0 -1
- package/dist-android/static/17.js +0 -2
- package/dist-android/static/17.js.map +0 -1
- package/dist-android/static/18.js +0 -2
- package/dist-android/static/18.js.map +0 -1
- package/dist-android/static/19.js +0 -2
- package/dist-android/static/19.js.map +0 -1
- package/dist-android/static/2.js +0 -2
- package/dist-android/static/2.js.map +0 -1
- package/dist-android/static/20.js +0 -2
- package/dist-android/static/20.js.map +0 -1
- package/dist-android/static/21.js +0 -2
- package/dist-android/static/21.js.map +0 -1
- package/dist-android/static/22.js +0 -2
- package/dist-android/static/22.js.map +0 -1
- package/dist-android/static/23.js +0 -2
- package/dist-android/static/23.js.map +0 -1
- package/dist-android/static/24.js +0 -2
- package/dist-android/static/24.js.map +0 -1
- package/dist-android/static/25.js +0 -2
- package/dist-android/static/25.js.map +0 -1
- package/dist-android/static/26.js +0 -2
- package/dist-android/static/26.js.map +0 -1
- package/dist-android/static/27.js +0 -2
- package/dist-android/static/27.js.map +0 -1
- package/dist-android/static/28.js +0 -2
- package/dist-android/static/28.js.map +0 -1
- package/dist-android/static/29.js +0 -2
- package/dist-android/static/29.js.map +0 -1
- package/dist-android/static/3.js +0 -2
- package/dist-android/static/3.js.map +0 -1
- package/dist-android/static/30.js +0 -2
- package/dist-android/static/30.js.map +0 -1
- package/dist-android/static/31.js +0 -2
- package/dist-android/static/31.js.map +0 -1
- package/dist-android/static/32.js +0 -2
- package/dist-android/static/32.js.map +0 -1
- package/dist-android/static/33.js +0 -2
- package/dist-android/static/33.js.map +0 -1
- package/dist-android/static/34.js +0 -2
- package/dist-android/static/34.js.map +0 -1
- package/dist-android/static/35.js +0 -2
- package/dist-android/static/35.js.map +0 -1
- package/dist-android/static/36.js +0 -2
- package/dist-android/static/36.js.map +0 -1
- package/dist-android/static/37.js +0 -2
- package/dist-android/static/37.js.map +0 -1
- package/dist-android/static/38.js +0 -2
- package/dist-android/static/38.js.map +0 -1
- package/dist-android/static/39.js +0 -2
- package/dist-android/static/39.js.map +0 -1
- package/dist-android/static/4.js +0 -2
- package/dist-android/static/4.js.map +0 -1
- package/dist-android/static/40.js +0 -2
- package/dist-android/static/40.js.map +0 -1
- package/dist-android/static/41.js +0 -2
- package/dist-android/static/41.js.map +0 -1
- package/dist-android/static/42.js +0 -2
- package/dist-android/static/42.js.map +0 -1
- package/dist-android/static/43.js +0 -2
- package/dist-android/static/43.js.map +0 -1
- package/dist-android/static/44.js +0 -2
- package/dist-android/static/44.js.map +0 -1
- package/dist-android/static/45.js +0 -2
- package/dist-android/static/45.js.map +0 -1
- package/dist-android/static/46.js +0 -2
- package/dist-android/static/46.js.map +0 -1
- package/dist-android/static/47.js +0 -2
- package/dist-android/static/47.js.map +0 -1
- package/dist-android/static/48.js +0 -2
- package/dist-android/static/48.js.map +0 -1
- package/dist-android/static/49.js +0 -2
- package/dist-android/static/49.js.map +0 -1
- package/dist-android/static/5.js +0 -2
- package/dist-android/static/5.js.map +0 -1
- package/dist-android/static/50.js +0 -2
- package/dist-android/static/50.js.map +0 -1
- package/dist-android/static/51.js +0 -2
- package/dist-android/static/51.js.map +0 -1
- package/dist-android/static/52.js +0 -2
- package/dist-android/static/52.js.map +0 -1
- package/dist-android/static/53.js +0 -2
- package/dist-android/static/53.js.map +0 -1
- package/dist-android/static/54.js +0 -2
- package/dist-android/static/54.js.map +0 -1
- package/dist-android/static/55.js +0 -2
- package/dist-android/static/55.js.map +0 -1
- package/dist-android/static/56.js +0 -2
- package/dist-android/static/56.js.map +0 -1
- package/dist-android/static/57.js +0 -2
- package/dist-android/static/57.js.map +0 -1
- package/dist-android/static/58.js +0 -2
- package/dist-android/static/58.js.map +0 -1
- package/dist-android/static/59.js +0 -2
- package/dist-android/static/59.js.map +0 -1
- package/dist-android/static/6.js +0 -2
- package/dist-android/static/6.js.map +0 -1
- package/dist-android/static/60.js +0 -2
- package/dist-android/static/60.js.map +0 -1
- package/dist-android/static/61.js +0 -2
- package/dist-android/static/61.js.map +0 -1
- package/dist-android/static/62.js +0 -2
- package/dist-android/static/62.js.map +0 -1
- package/dist-android/static/63.js +0 -2
- package/dist-android/static/63.js.map +0 -1
- package/dist-android/static/64.js +0 -2
- package/dist-android/static/64.js.map +0 -1
- package/dist-android/static/65.js +0 -2
- package/dist-android/static/65.js.map +0 -1
- package/dist-android/static/66.js +0 -2
- package/dist-android/static/66.js.map +0 -1
- package/dist-android/static/67.js +0 -2
- package/dist-android/static/67.js.map +0 -1
- package/dist-android/static/68.js +0 -2
- package/dist-android/static/68.js.map +0 -1
- package/dist-android/static/69.js +0 -2
- package/dist-android/static/69.js.map +0 -1
- package/dist-android/static/7.js +0 -6
- package/dist-android/static/7.js.map +0 -1
- package/dist-android/static/70.js +0 -2
- package/dist-android/static/70.js.map +0 -1
- package/dist-android/static/71.js +0 -2
- package/dist-android/static/71.js.map +0 -1
- package/dist-android/static/72.js +0 -2
- package/dist-android/static/72.js.map +0 -1
- package/dist-android/static/73.js +0 -2
- package/dist-android/static/73.js.map +0 -1
- package/dist-android/static/74.js +0 -2
- package/dist-android/static/74.js.map +0 -1
- package/dist-android/static/75.js +0 -2
- package/dist-android/static/75.js.map +0 -1
- package/dist-android/static/76.js +0 -2
- package/dist-android/static/76.js.map +0 -1
- package/dist-android/static/77.js +0 -2
- package/dist-android/static/77.js.map +0 -1
- package/dist-android/static/78.js +0 -2
- package/dist-android/static/78.js.map +0 -1
- package/dist-android/static/79.js +0 -2
- package/dist-android/static/79.js.map +0 -1
- package/dist-android/static/8.js +0 -2
- package/dist-android/static/8.js.map +0 -1
- package/dist-android/static/80.js +0 -2
- package/dist-android/static/80.js.map +0 -1
- package/dist-android/static/81.js +0 -2
- package/dist-android/static/81.js.map +0 -1
- package/dist-android/static/82.js +0 -2
- package/dist-android/static/82.js.map +0 -1
- package/dist-android/static/83.js +0 -2
- package/dist-android/static/83.js.map +0 -1
- package/dist-android/static/84.js +0 -2
- package/dist-android/static/84.js.map +0 -1
- package/dist-android/static/85.js +0 -2
- package/dist-android/static/85.js.map +0 -1
- package/dist-android/static/86.js +0 -2
- package/dist-android/static/86.js.map +0 -1
- package/dist-android/static/87.js +0 -2
- package/dist-android/static/87.js.map +0 -1
- package/dist-android/static/88.js +0 -2
- package/dist-android/static/88.js.map +0 -1
- package/dist-android/static/89.js +0 -2
- package/dist-android/static/89.js.map +0 -1
- package/dist-android/static/9.js +0 -3
- package/dist-android/static/9.js.map +0 -1
- package/dist-android/static/90.js +0 -2
- package/dist-android/static/90.js.map +0 -1
- package/dist-android/static/91.js +0 -2
- package/dist-android/static/91.js.map +0 -1
- package/dist-android/static/92.js +0 -2
- package/dist-android/static/92.js.map +0 -1
- package/dist-android/static/93.js +0 -2
- package/dist-android/static/93.js.map +0 -1
- package/dist-android/static/94.js +0 -2
- package/dist-android/static/94.js.map +0 -1
- package/dist-android/static/95.js +0 -2
- package/dist-android/static/95.js.map +0 -1
- package/dist-android/static/96.js +0 -2
- package/dist-android/static/96.js.map +0 -1
- package/dist-android/static/97.js +0 -2
- package/dist-android/static/97.js.map +0 -1
- package/dist-android/static/98.js +0 -2
- package/dist-android/static/98.js.map +0 -1
- package/dist-android/static/99.js +0 -2
- package/dist-android/static/99.js.map +0 -1
- package/dist-android/static/app.css +0 -2
- package/dist-android/static/app.css.map +0 -1
- package/dist-android/static/app.js +0 -80
- package/dist-android/static/app.js.map +0 -1
- package/dist-android/static/batchleft.png +0 -0
- package/dist-android/static/batchright.png +0 -0
- package/dist-android/static/bluemainbg.jpg +0 -0
- package/dist-android/static/config.json +0 -7
- package/dist-android/static/huangtengbiaozhi.png +0 -0
- package/dist-android/static/jingyin.jpg +0 -0
- package/dist-android/static/login_bg.jpg +0 -0
- package/dist-android/static/login_title.png +0 -0
- package/dist-android/static/login_title1.png +0 -0
- package/dist-android/static/loginbg.jpg +0 -0
- package/dist-android/static/loginlogo.png +0 -0
- package/dist-android/static/main_logo.png +0 -0
- package/dist-android/static/mainbg.jpg +0 -0
- package/dist-android/static/menulogo.png +0 -0
- package/dist-android/static/newmainbg.jpg +0 -0
- package/dist-android/static/singleleft.png +0 -0
- package/dist-android/static/singleright.png +0 -0
- package/dist-android/static/treeopen.png +0 -0
- package/dist-android/static/treeout.png +0 -0
- package/dist-android/static/treeset.png +0 -0
- package/dist-android/static/usericon.png +0 -0
- package/dist-android/static/workflow_apply.json +0 -766
- package/dist-android/static/xinxi.png +0 -0
- package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
- package/dist-android/static//345/256/211/346/243/200/345/257/274/350/210/252/347/253/226/345/261/2173.png +0 -0
- package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
- package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
- package/src/components/app_apply/Acceptance.vue +0 -298
- package/src/components/app_apply/ApplyApp.vue +0 -91
- package/src/components/app_apply/ApplyDownList.vue +0 -166
- package/src/components/app_apply/ApplyInfo.vue +0 -56
- package/src/components/app_apply/ApplyListUpload.vue +0 -258
- package/src/components/app_apply/ApplyToDoList.vue +0 -165
- package/src/components/app_apply/ApplyUserInfo.vue +0 -56
- package/src/components/app_apply/FieldExploration.vue +0 -267
- package/src/components/app_apply/PlaceControler.vue +0 -258
- package/src/components/app_apply/ServiceControl.vue +0 -267
- package/src/components/app_apply/ServiceView.vue +0 -355
- package/src/components/app_apply/ToolsPage.vue +0 -51
- package/src/components/app_apply/Ventilation.vue +0 -199
- package/src/components/product/ApplyCharge/ApplyChargeReport.vue +0 -107
- package/src/components/product/Function/StopApplyCrrdList.vue +0 -176
- package/src/components/product/Function/functions/ApplyRecordCancel.vue +0 -102
- package/src/components/product/Function/functions/StopInstall.vue +0 -106
- package/src/components/product/Process/Processes/printCharge.vue +0 -126
- package/src/components/product/Process/ShowBackReason.vue +0 -32
- package/src/components/product/ReportForm/GasIgnitionSummary.vue +0 -352
- package/src/components/product/VueUtils/ToolsPage.vue +0 -51
- package/src/components/product/VueUtils/Tree.vue +0 -330
- /package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.eot +0 -0
- /package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.svg +0 -0
- /package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.ttf +0 -0
- /package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.woff +0 -0
- /package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.woff2 +0 -0
- /package/static/images/lefticon/{/345/256/211/346/243/200/346/237/245/347/234/213.png" → anjianjihua.png} +0 -0
- /package/static/images/lefticon/{/346/241/243/346/241/210/347/256/241/347/220/206.png" → danganguanli.png} +0 -0
- /package/static/images/lefticon/{/345/224/256/346/260/224/346/224/266/350/264/271.png" → shouqishoufei.png} +0 -0
- /package/static/images/lefticon/{/347/211/251/350/201/224/347/275/221/350/241/250.png" → wulianwang.png} +0 -0
- /package/static/images/lefticon/{/347/263/273/347/273/237/347/256/241/347/220/206.png" → xitongguanli.png} +0 -0
- /package/static/images/lefticon/{/345/221/274/345/217/253/347/263/273/347/273/237.png" → yuyinkefu.png} +0 -0
|
@@ -0,0 +1,850 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex main-div">
|
|
3
|
+
<div class="auto">
|
|
4
|
+
<div class="row" style="z-index: 1;margin-top: 1px" v-if="isshowsearch">
|
|
5
|
+
<div class="form-group has-feedback">
|
|
6
|
+
<input type="search" placeholder="输入关键字选取地点" v-model="searchModel"
|
|
7
|
+
autocomplete="off"
|
|
8
|
+
id="pickerInput"
|
|
9
|
+
class="form-control">
|
|
10
|
+
<svg t="1628961488010" class="icon form-control-feedback"
|
|
11
|
+
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6775" width="48"
|
|
12
|
+
height="48">
|
|
13
|
+
<path
|
|
14
|
+
d="M854.3 887.3c-9.3 0-18.1-3.6-24.8-10.3L628 675.5l-3.5 2.7c-21 16.5-44.1 30.1-68.8 40.6-37.4 15.8-77.1 23.8-118 23.8-40.9 0-80.6-8-118-23.8-36.1-15.3-68.5-37.1-96.3-64.9-27.8-27.8-49.7-60.2-64.9-96.3-15.8-37.4-23.8-77.1-23.8-118s8-80.6 23.8-118c15.3-36.1 37.1-68.5 64.9-96.3 27.8-27.8 60.2-49.7 96.3-64.9 37.4-15.8 77.1-23.8 118-23.8 40.9 0 80.6 8 118 23.8 36.1 15.3 68.5 37.1 96.3 64.9 27.8 27.8 49.7 60.2 64.9 96.3 15.8 37.4 23.8 77.1 23.8 118s-8 80.6-23.8 118c-9.7 23-22.2 44.7-37.2 64.5l-2.6 3.5 202 202c6.6 6.6 10.3 15.4 10.3 24.7 0 9.4-3.6 18.1-10.3 24.7-6.7 6.7-15.5 10.3-24.8 10.3zM437.7 206.7c-62.2 0-120.7 24.2-164.8 68.2-44 44-68.2 102.5-68.2 164.8 0 62.2 24.2 120.7 68.2 164.8 44 44 102.5 68.2 164.8 68.2 62.2 0 120.7-24.2 164.8-68.2 44-44 68.2-102.5 68.2-164.8S646.5 319 602.5 274.9c-44-44-102.5-68.2-164.8-68.2z"
|
|
15
|
+
p-id="6776" fill="#707070"></path>
|
|
16
|
+
</svg>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<!--搜索联想 结果框-->
|
|
20
|
+
<!--<div class="row col-sm-12" v-if="isshowsearch" style="z-index: 1;" :style="{display:isShowSearchToTs}">
|
|
21
|
+
<div id="pickerOut" class="col-sm-12" @click="isShowSearchToTs='none'"></div>
|
|
22
|
+
</div>-->
|
|
23
|
+
</div>
|
|
24
|
+
<div class="table_sy" style="position:relative;">
|
|
25
|
+
<div :id="dom" class="row" style="flexGrow: 1" tabindex="0">
|
|
26
|
+
<!--地图绘制区域-->
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="auto">
|
|
30
|
+
<div class="row auto" v-if="isshowmapmodel">
|
|
31
|
+
<radio-group :value.sync="mapmodel">
|
|
32
|
+
<radio value="dragMarker">地图拖拽</radio>
|
|
33
|
+
<radio value="dragMap">拖拽选点</radio>
|
|
34
|
+
</radio-group>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="row auto " v-if="mylocationinfo">
|
|
37
|
+
<table class="table table-bordered table-hover">
|
|
38
|
+
<tr>
|
|
39
|
+
<td class="font_normal_body text-nowrap">经纬度 </td>
|
|
40
|
+
<td>经度:{{ myLocation.position.lng }} 纬度:{{ myLocation.position.lat }}</td>
|
|
41
|
+
</tr>
|
|
42
|
+
<tr>
|
|
43
|
+
<td class="font_normal_body text-nowrap">定位类型</td>
|
|
44
|
+
<td>{{ myLocation.location_type }}</td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<td class="font_normal_body text-nowrap">地址信息</td>
|
|
48
|
+
<td>{{ myLocation.formattedAddress }}</td>
|
|
49
|
+
</tr>
|
|
50
|
+
</table>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<script>
|
|
57
|
+
const markerDefaultIcon = require('../../../assets/marker-default.png')
|
|
58
|
+
const myico = require('../../../assets/myLocationIcon.png')
|
|
59
|
+
import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
|
|
60
|
+
import Radio from 'vue-client/src/vue-strap/src/radioBtn'
|
|
61
|
+
import {getSW, getNE} from 'vue-client/src/components/AMapComponents/AmapUtil.js'
|
|
62
|
+
|
|
63
|
+
export default {
|
|
64
|
+
title: '高德地图POI搜索拖拽选址组件,海量点显示组件',
|
|
65
|
+
components: {
|
|
66
|
+
RadioGroup,
|
|
67
|
+
Radio
|
|
68
|
+
},
|
|
69
|
+
props: {
|
|
70
|
+
// 定位成功后将定位到的位置作为地图中心点
|
|
71
|
+
locationzoomcenter: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: true
|
|
74
|
+
},
|
|
75
|
+
// 设置当前地图的视图位置 格式 {grade:15,lng:经度,lat:纬度} grade:取值范围1~15 代表不同等级的缩放比例
|
|
76
|
+
zoomcenter: {
|
|
77
|
+
type: Object,
|
|
78
|
+
default: null
|
|
79
|
+
},
|
|
80
|
+
// 是否使用AndroidSDK进行定位 (手机端请设置为true否则会定位失败)
|
|
81
|
+
usenative: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: false
|
|
84
|
+
},
|
|
85
|
+
// 定位成功后是否打开当前位置详细信息框
|
|
86
|
+
locationwindow: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: true
|
|
89
|
+
},
|
|
90
|
+
// 海量点手机端 松开长按后是否关闭弹出框
|
|
91
|
+
massivemarkerphonepressclose: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: false
|
|
94
|
+
},
|
|
95
|
+
// 地图组件ID 命名规则与JavaScript ID一致
|
|
96
|
+
dom: {
|
|
97
|
+
type: String,
|
|
98
|
+
default: ''
|
|
99
|
+
},
|
|
100
|
+
// 是否显示搜索框
|
|
101
|
+
isshowsearch: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: true
|
|
104
|
+
},
|
|
105
|
+
// 是否显示当前位置信息内容(div中)
|
|
106
|
+
mylocationinfo: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: true
|
|
109
|
+
},
|
|
110
|
+
// 定位当前位置成功后是否清楚页面的点
|
|
111
|
+
islocationclearmark: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: true
|
|
114
|
+
},
|
|
115
|
+
// 是否显示选择地图模式
|
|
116
|
+
isshowmapmodel: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: true
|
|
119
|
+
},
|
|
120
|
+
// 是否自动获取当前位置信息
|
|
121
|
+
islocation: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: true
|
|
124
|
+
},
|
|
125
|
+
// 搜索框的值
|
|
126
|
+
pickerinput: {
|
|
127
|
+
type: String,
|
|
128
|
+
default: ''
|
|
129
|
+
},
|
|
130
|
+
// 地图模式 (拖拽模式地图 dragMarker 和 拖拽选点模式 dragMap)
|
|
131
|
+
mapmodel: {
|
|
132
|
+
type: String,
|
|
133
|
+
default: 'dragMarker'
|
|
134
|
+
},
|
|
135
|
+
// 自定义结果回显的id
|
|
136
|
+
searchpoiresult: {
|
|
137
|
+
type: String,
|
|
138
|
+
default: ''
|
|
139
|
+
},
|
|
140
|
+
// 传递来的海量点集 (点集模式 会自动将 地图模式为设置为 拖拽地图模式dragMarker)
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
*[
|
|
144
|
+
* {
|
|
145
|
+
* "lnglat": [116.258446, 37.686622], (点位置)
|
|
146
|
+
* "content": "显示的内容可以是html标签", (显示的内容)
|
|
147
|
+
* "item": { 任意值(点击点后携带出去)
|
|
148
|
+
* "name": "用户名",
|
|
149
|
+
* "userinfoid": "用户id",
|
|
150
|
+
* }
|
|
151
|
+
* }
|
|
152
|
+
*]
|
|
153
|
+
*/
|
|
154
|
+
/* inputmarksarray: {
|
|
155
|
+
type: Array,
|
|
156
|
+
default: []
|
|
157
|
+
}, */
|
|
158
|
+
inputmarksarray: {
|
|
159
|
+
type: Array,
|
|
160
|
+
default: () => []
|
|
161
|
+
},
|
|
162
|
+
// 海量点显示样式
|
|
163
|
+
markstyle: {
|
|
164
|
+
type: Array,
|
|
165
|
+
default: () => [{
|
|
166
|
+
url: 'https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png', // 图标URL
|
|
167
|
+
// eslint-disable-next-line no-undef
|
|
168
|
+
anchor: new AMap.Pixel(6, 6), // 图标偏移位置
|
|
169
|
+
// eslint-disable-next-line no-undef
|
|
170
|
+
size: new AMap.Size(20, 30) // 图标大小
|
|
171
|
+
}]
|
|
172
|
+
},
|
|
173
|
+
// {
|
|
174
|
+
// data: {data:'随意内容1',label:'label标题',content:'鼠标放上去显示的内容信息框'}, // 必填
|
|
175
|
+
// position:[233.111,39.333], //经纬度 必填
|
|
176
|
+
// --------------------------------------------以下信息是非必填的选填--------------------------------------------------------
|
|
177
|
+
// ismoseOpen:true,//是否通过鼠标滑过打开信息框 true ,false
|
|
178
|
+
// isclearmarker:false,//是否重新渲染新点时就清除页面所有点 true false 也可以手动去调用 this.map.clearMap(); 该方法属于map地图对象
|
|
179
|
+
// ismobiletouchendclear:true 手机端长按点后是否松开后关闭弹出的信息框 (ismoseOpen为true并且ismobiletouchendclear为true移动端才会在松开后关闭信息框,当你不想在松开后关闭信息框时请将ismobiletouchendclear设置为false)
|
|
180
|
+
// islabel:true, //是否渲染label标注(标注与信息框不同,信息框全局只有唯一一个)
|
|
181
|
+
// //icon:'' //点位置处显示的图标 可以是url
|
|
182
|
+
// }
|
|
183
|
+
// 渲染带label的简单点集(多点勿用-多点请使用海量点)
|
|
184
|
+
labelmarksarray: {
|
|
185
|
+
type: Array,
|
|
186
|
+
default: () => []
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
},
|
|
190
|
+
data () {
|
|
191
|
+
return {
|
|
192
|
+
map: null, // 显示地图实例
|
|
193
|
+
searchModel: this.pickerinput, // 输入框搜索的值
|
|
194
|
+
myLocation: {
|
|
195
|
+
position: { // 经纬度信息
|
|
196
|
+
lng: 0, // 经度
|
|
197
|
+
lat: 0 // 纬度
|
|
198
|
+
},
|
|
199
|
+
location_type: '', // 定位类型
|
|
200
|
+
formattedAddress: '' // 地址信息
|
|
201
|
+
},
|
|
202
|
+
isShowSearchToTs: 'none', // 是否显示搜索联想
|
|
203
|
+
toolbar: null,
|
|
204
|
+
positionPickerDrag: null, // 拖拽选址poi对象
|
|
205
|
+
markerList: [], // 点标记集合
|
|
206
|
+
myMarker: null, // 当前位置的标记点
|
|
207
|
+
massMarks: null, // 海量点对象
|
|
208
|
+
poiPicker: null // POI搜索对象
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
methods: {
|
|
212
|
+
// 初始化地图相关
|
|
213
|
+
initAmap () {
|
|
214
|
+
var thas = this
|
|
215
|
+
// 初始化地图组件
|
|
216
|
+
// eslint-disable-next-line no-undef
|
|
217
|
+
this.map = new AMap.Map(thas.dom, {
|
|
218
|
+
zoom: 12,
|
|
219
|
+
resizeEnable: true, // 如果center属性缺省,地图默认定位到用户所在城市的中心
|
|
220
|
+
viewMode: '2D', // 设置地图模式
|
|
221
|
+
lang: 'zh_cn', // 设置地图语言类型
|
|
222
|
+
zindex: 99999
|
|
223
|
+
})
|
|
224
|
+
// eslint-disable-next-line no-undef
|
|
225
|
+
AMap.event.addListener(this.map, 'complete', this.mapInitSuccess())
|
|
226
|
+
window.map = this.map
|
|
227
|
+
// 异步加载地图插件
|
|
228
|
+
// eslint-disable-next-line no-undef
|
|
229
|
+
AMap.plugin(
|
|
230
|
+
['AMap.ToolBar', 'AMap.Driving', 'AMap.Geolocation', 'AMap.PlaceSearch'], () => {
|
|
231
|
+
// 异步加载插件
|
|
232
|
+
if (thas.islocation) {
|
|
233
|
+
// 自动定位插件
|
|
234
|
+
var geolocation = new AMap.Geolocation({
|
|
235
|
+
// 是否使用高精度定位,默认:true
|
|
236
|
+
enableHighAccuracy: true,
|
|
237
|
+
// 控制按钮的显示
|
|
238
|
+
showbutton: true,
|
|
239
|
+
// 设置定位超时时间,默认:无穷大 1000
|
|
240
|
+
timeout: 1000,
|
|
241
|
+
// 定位按钮的停靠位置的偏移量,默认:Pixel(10, 20)
|
|
242
|
+
// eslint-disable-next-line no-undef
|
|
243
|
+
buttonOffset: new AMap.Pixel(20, 30),
|
|
244
|
+
zoomToAccuracy: false, // 定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
|
|
245
|
+
buttonPosition: 'RB', // 定位按钮的排放位置, RB表示右下
|
|
246
|
+
showMarker: false, // 定位成功后在定位到的位置显示点标记,默认:true
|
|
247
|
+
showCircle: true, // 定位成功后用圆圈表示定位精度范围,默认:true
|
|
248
|
+
panToLocation: false, // 定位成功后将定位到的位置作为地图中心点,默认:true
|
|
249
|
+
/* markerOptions:{//自定义定位点样式,同Marker的Options
|
|
250
|
+
'offset': new AMap.Pixel(-10, -15),
|
|
251
|
+
'content':'<img src="'+myico+'"/>'
|
|
252
|
+
},*/
|
|
253
|
+
useNative: thas.usenative // 是否使用安卓定位sdk用来进行定位,默认:false
|
|
254
|
+
})
|
|
255
|
+
thas.map.addControl(geolocation)
|
|
256
|
+
geolocation.getCurrentPosition()
|
|
257
|
+
AMap.event.addListener(geolocation, 'complete', thas.onComplete)
|
|
258
|
+
AMap.event.addListener(geolocation, 'error', thas.onError)
|
|
259
|
+
}
|
|
260
|
+
})
|
|
261
|
+
},
|
|
262
|
+
mapInitSuccess () {
|
|
263
|
+
// 地图加载成功回调
|
|
264
|
+
console.log('地图加载成功回调')
|
|
265
|
+
this.$emit('initamapsuc')
|
|
266
|
+
},
|
|
267
|
+
// 定位成功回调
|
|
268
|
+
onComplete (res) {
|
|
269
|
+
let thas = this
|
|
270
|
+
if (thas.positionPickerDrag == null) {
|
|
271
|
+
thas.poiPickerDropReady()
|
|
272
|
+
thas.positionPickerDrag.setMode(thas.mapmodel) // 设置地图模式到拖拽选址组件
|
|
273
|
+
} else {
|
|
274
|
+
thas.positionPickerDrag.setMode(thas.mapmodel) // 设置地图模式到拖拽选址组件
|
|
275
|
+
}
|
|
276
|
+
// eslint-disable-next-line quotes
|
|
277
|
+
console.log(`定位成功` + JSON.stringify(res))
|
|
278
|
+
let content = ''
|
|
279
|
+
// eslint-disable-next-line quotes
|
|
280
|
+
content += `<div style="padding:0px 0px 0px 4px"><b>我的位置</b></div>`
|
|
281
|
+
content += `地址:${res.formattedAddress}`
|
|
282
|
+
thas.showMarkInfoWindow(content, res.position) // 显示窗口信息
|
|
283
|
+
// 是否回到当前位置
|
|
284
|
+
if (this.locationzoomcenter) {
|
|
285
|
+
console.log('定位成功,将地图中心点设置为当前位置')
|
|
286
|
+
thas.setZommAndCenterView(15, res.position.lng, res.position.lat)
|
|
287
|
+
}
|
|
288
|
+
if (this.islocationclearmark) {
|
|
289
|
+
console.log('回到当前位置,清理当前地图所有覆盖物')
|
|
290
|
+
thas.map.clearMap() // 清除地图覆盖物
|
|
291
|
+
}
|
|
292
|
+
if (thas.myMarker) {
|
|
293
|
+
thas.map.remove(thas.myMarker)
|
|
294
|
+
thas.myMarker = null
|
|
295
|
+
}
|
|
296
|
+
// 为当前位置添加标记
|
|
297
|
+
// eslint-disable-next-line no-undef
|
|
298
|
+
var marker = new AMap.Marker({
|
|
299
|
+
position: res.position, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
|
|
300
|
+
// eslint-disable-next-line no-undef
|
|
301
|
+
offset: new AMap.Pixel(-15, -35),
|
|
302
|
+
icon: myico // 添加 Icon 图标 URL
|
|
303
|
+
})
|
|
304
|
+
|
|
305
|
+
thas.map.add(marker)
|
|
306
|
+
// 设置点标记的动画效果,此处为弹跳效果
|
|
307
|
+
// marker.setAnimation('AMAP_ANIMATION_BOUNCE');
|
|
308
|
+
this.myMarker = marker
|
|
309
|
+
// 对marker绑定点击时事件
|
|
310
|
+
// eslint-disable-next-line no-undef
|
|
311
|
+
AMap.event.addListener(marker, 'click', mkOnclick)
|
|
312
|
+
|
|
313
|
+
function mkOnclick (result) {
|
|
314
|
+
console.log('事件触发')
|
|
315
|
+
thas.showMarkInfoWindow(content, res.position)
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// 回写当前位置数据
|
|
319
|
+
thas.myLocation = {
|
|
320
|
+
position: { // 经纬度信息
|
|
321
|
+
lng: res.position.lng, // 经度
|
|
322
|
+
lat: res.position.lat // 纬度
|
|
323
|
+
},
|
|
324
|
+
location_type: res.location_type, // 定位类型
|
|
325
|
+
formattedAddress: res.formattedAddress, // 地址信息
|
|
326
|
+
city: res.addressComponent // 城市信息
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// 定位成功
|
|
330
|
+
thas.$emit('locationsuccess', thas.myLocation)
|
|
331
|
+
},
|
|
332
|
+
// 定位失败回调
|
|
333
|
+
onError (res) {
|
|
334
|
+
// eslint-disable-next-line quotes
|
|
335
|
+
console.log(`定位失败` + JSON.stringify(res))
|
|
336
|
+
AMap.plugin('AMap.CitySearch', function () {
|
|
337
|
+
var citySearch = new AMap.CitySearch()
|
|
338
|
+
citySearch.getLocalCity(function (status, result) {
|
|
339
|
+
if (status === 'complete' && result.info === 'OK') {
|
|
340
|
+
// 查询成功,result即为当前所在城市信息
|
|
341
|
+
console.log(result)
|
|
342
|
+
AMap.plugin('AMap.Geocoder', function () {
|
|
343
|
+
var geocoder = new AMap.Geocoder({
|
|
344
|
+
// city 指定进行编码查询的城市,支持传入城市名、adcode 和 citycode
|
|
345
|
+
city: result.adcode
|
|
346
|
+
})
|
|
347
|
+
var lnglat = result.rectangle.split(';')[0].split(',')
|
|
348
|
+
geocoder.getAddress(lnglat, function (status, data) {
|
|
349
|
+
if (status === 'complete' && data.info === 'OK') {
|
|
350
|
+
// result为对应的地理位置详细信息
|
|
351
|
+
console.log(data)
|
|
352
|
+
}
|
|
353
|
+
})
|
|
354
|
+
})
|
|
355
|
+
}
|
|
356
|
+
})
|
|
357
|
+
})
|
|
358
|
+
// this.$showMessage("定位失败,请检查权限信息后重试")
|
|
359
|
+
},
|
|
360
|
+
// 初始化poi搜索
|
|
361
|
+
poiPickerReady () {
|
|
362
|
+
console.log('===========开始判断设备类型=')
|
|
363
|
+
var _than = this
|
|
364
|
+
// eslint-disable-next-line no-undef
|
|
365
|
+
AMapUI.loadUI(['misc/PoiPicker'], (PoiPicker) => {
|
|
366
|
+
_than.poiPicker = new PoiPicker({
|
|
367
|
+
// city:'北京',
|
|
368
|
+
input: 'pickerInput'
|
|
369
|
+
// suggestContainer: 'pickerOut' // 结果展示的id
|
|
370
|
+
})
|
|
371
|
+
if (!_than.poiPicker) {
|
|
372
|
+
_than.poiPickerReady()
|
|
373
|
+
}
|
|
374
|
+
// eslint-disable-next-line no-undef
|
|
375
|
+
let marker = new AMap.Marker() // 点标记
|
|
376
|
+
// 选取了某个POI
|
|
377
|
+
_than.poiPicker.on('poiPicked', (poiResult) => {
|
|
378
|
+
var source = poiResult.source,
|
|
379
|
+
poi = poiResult.item
|
|
380
|
+
console.log('当前poi定位信息' + JSON.stringify(poiResult))
|
|
381
|
+
_than.myLocation = {
|
|
382
|
+
position: { // 经纬度信息
|
|
383
|
+
lng: poi.location.lng, // 经度
|
|
384
|
+
lat: poi.location.lat // 纬度
|
|
385
|
+
},
|
|
386
|
+
location_type: 'poi', // 定位类型
|
|
387
|
+
formattedAddress: `${poi.district !== undefined ? poi.district : ""}${poi.address !== undefined ? poi.address : ""}${poi.name !== undefined ? poi.name : ""}`
|
|
388
|
+
}
|
|
389
|
+
console.log("当前poi定位信息", poi)
|
|
390
|
+
_than.map.clearMap(); //清楚地图上所有的marks (清楚点标记)
|
|
391
|
+
marker.setMap(_than.map); //设置点标记的地图对象
|
|
392
|
+
marker.setPosition(poi.location);
|
|
393
|
+
_than.searchModel = "" // 将poi返回的地址赋值给搜索地址栏
|
|
394
|
+
_than.map.setCenter(poi.location);
|
|
395
|
+
});
|
|
396
|
+
window.poiPicker = _than.poiPicker;
|
|
397
|
+
/*poiPicker.onCityReady(() => {
|
|
398
|
+
poiPicker.suggest('小区');
|
|
399
|
+
});*/
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
},
|
|
403
|
+
// PC端中可用 地图中鼠标右键
|
|
404
|
+
contextRightKeyMenu() {
|
|
405
|
+
//创建右键菜单
|
|
406
|
+
var contextMenu = new AMap.ContextMenu();
|
|
407
|
+
//右键放大
|
|
408
|
+
contextMenu.addItem("放大一级", () => {
|
|
409
|
+
this.map.zoomIn();
|
|
410
|
+
}, 0);
|
|
411
|
+
//右键缩小
|
|
412
|
+
contextMenu.addItem("缩小一级", () => {
|
|
413
|
+
this.map.zoomOut();
|
|
414
|
+
}, 1);
|
|
415
|
+
//右键显示全国范围
|
|
416
|
+
contextMenu.addItem("缩放至全国范围", (e) => {
|
|
417
|
+
this.map.setZoomAndCenter(4, [108.946609, 34.262324]);
|
|
418
|
+
}, 2);
|
|
419
|
+
//右键添加Marker标记
|
|
420
|
+
contextMenu.addItem("添加标记", (e) => {
|
|
421
|
+
var marker = new AMap.Marker({
|
|
422
|
+
map: this.map,
|
|
423
|
+
position: contextMenu.contextMenuPositon || this.map.getCenter()
|
|
424
|
+
});
|
|
425
|
+
this.markerList.push(marker)
|
|
426
|
+
}, 3);
|
|
427
|
+
//地图绑定鼠标右击事件——弹出右键菜单
|
|
428
|
+
this.map.on('rightclick', (e) => {
|
|
429
|
+
contextMenu.contextMenuPositon = e.lnglat; //右键菜单位置
|
|
430
|
+
contextMenu.open(this.map, e.lnglat);
|
|
431
|
+
});
|
|
432
|
+
},
|
|
433
|
+
// 拖拽选址
|
|
434
|
+
poiPickerDropReady() {
|
|
435
|
+
let _than = this;
|
|
436
|
+
//加载PositionPicker,loadUI的路径参数为模块名中 'ui/' 之后的部分
|
|
437
|
+
AMapUI.loadUI(['misc/PositionPicker'], (PositionPicker) => {
|
|
438
|
+
_than.positionPickerDrag = new PositionPicker({
|
|
439
|
+
mode: _than.mapmodel,//设定为拖拽地图模式,可选'dragMap'、'dragMarker',默认为'dragMarker'
|
|
440
|
+
map: _than.map//依赖地图对象
|
|
441
|
+
});
|
|
442
|
+
_than.positionPickerDrag.on('success', (positionResult) => {
|
|
443
|
+
_than.dragMapSuccessSuces(positionResult)
|
|
444
|
+
});
|
|
445
|
+
_than.positionPickerDrag.on('fail', (positionResult) => {
|
|
446
|
+
_than.dragMapSuccessFul(positionResult)
|
|
447
|
+
});
|
|
448
|
+
// 地图模式 (拖拽模式地图 dragMarker 和 拖拽选点模式 dragMap)
|
|
449
|
+
if (_than.mapmodel === 'dragMap') {
|
|
450
|
+
_than.openDragMap() //开启拖拽选点
|
|
451
|
+
} else {
|
|
452
|
+
_than.closeDragMap() // 关闭拖拽选点
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
},
|
|
456
|
+
// 拖拽选址成功事件
|
|
457
|
+
dragMapSuccessSuces(res) {
|
|
458
|
+
// console.log("==拖拽选址==" + JSON.stringify(res))
|
|
459
|
+
// 回写当前位置数据
|
|
460
|
+
this.myLocation = {
|
|
461
|
+
position: { //经纬度信息
|
|
462
|
+
lng: res.position.lng, //经度
|
|
463
|
+
lat: res.position.lat //纬度
|
|
464
|
+
},
|
|
465
|
+
location_type: "拖拽选点", //定位类型
|
|
466
|
+
formattedAddress: res.address, //地址信息
|
|
467
|
+
positionResult: res
|
|
468
|
+
}
|
|
469
|
+
this.$emit("dragsuccess", this.myLocation)
|
|
470
|
+
},
|
|
471
|
+
// 拖拽选址失败事件
|
|
472
|
+
dragMapSuccessFul(res) {
|
|
473
|
+
console.log("飞天了!");
|
|
474
|
+
this.myLocation = {
|
|
475
|
+
position: { //经纬度信息
|
|
476
|
+
lng: 0, //经度
|
|
477
|
+
lat: 0 //纬度
|
|
478
|
+
},
|
|
479
|
+
location_type: '', //定位类型
|
|
480
|
+
formattedAddress: '' //地址信息
|
|
481
|
+
}
|
|
482
|
+
this.$emit("dragerror", this.myLocation)
|
|
483
|
+
},
|
|
484
|
+
// 关闭拖拽选址
|
|
485
|
+
closeDragMap() {
|
|
486
|
+
console.log("关闭拖拽选址")
|
|
487
|
+
this.positionPickerDrag.stop()
|
|
488
|
+
},
|
|
489
|
+
// 打开拖拽选址
|
|
490
|
+
openDragMap() {
|
|
491
|
+
console.log("打开拖拽选址")
|
|
492
|
+
this.positionPickerDrag.start()
|
|
493
|
+
},
|
|
494
|
+
/**
|
|
495
|
+
* 简单信息框窗体
|
|
496
|
+
* @param _content 显示的内容 可以为html 页面
|
|
497
|
+
* @param _position 点位置信息 AMap.LngLat(lng:Number,lat:Number)
|
|
498
|
+
* @param _offset 位置偏移 格式 new AMap.Pixel(0, -20)
|
|
499
|
+
*/
|
|
500
|
+
showMarkInfoWindow(_content, _position, _offset = new AMap.Pixel(1, -45)) {
|
|
501
|
+
// 信息窗体的内容
|
|
502
|
+
// 创建 infoWindow 实例
|
|
503
|
+
var infoWindow = new AMap.InfoWindow({
|
|
504
|
+
content: _content,
|
|
505
|
+
offset: _offset
|
|
506
|
+
});
|
|
507
|
+
if (this.locationwindow) {
|
|
508
|
+
// 打开信息窗体
|
|
509
|
+
infoWindow.open(this.map, _position);
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
/**
|
|
513
|
+
* 关闭信息窗体
|
|
514
|
+
*/
|
|
515
|
+
closeInfoWindow() {
|
|
516
|
+
this.map.clearInfoWindow();
|
|
517
|
+
},
|
|
518
|
+
/**
|
|
519
|
+
* 自定义点标记 在那个地图 什么图片 在哪标记
|
|
520
|
+
* @param _img 点标记图片
|
|
521
|
+
* @param _position 点标记位置
|
|
522
|
+
*/
|
|
523
|
+
showMarkerSpot(_img = markerDefaultIcon, _position) {
|
|
524
|
+
var marker = new AMap.Marker({
|
|
525
|
+
position: _position,
|
|
526
|
+
icon: _img,
|
|
527
|
+
offset: new AMap.Pixel(-13, -30)
|
|
528
|
+
});
|
|
529
|
+
|
|
530
|
+
this.markerList.push(marker)
|
|
531
|
+
marker.setMap(this.map);
|
|
532
|
+
},
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
*自定义点标记与简单信息框和标注
|
|
536
|
+
* @param _data 传入内容 {"data":"随意内容","label":"标注显示的值可以为html标签","content":"信息框显示的内容可以为html标签"}
|
|
537
|
+
* @param _position 点标记位置 格式 [经度,纬度]
|
|
538
|
+
* @param _ismoseOpen 是否通过鼠标滑过打开信息框 true false
|
|
539
|
+
* @param _isclearmarker 是否重新渲染新点时就清除页面所有点 true false 也可以手动去调用 this.map.clearMap(); 该方法属于map地图对象
|
|
540
|
+
* @param _ismobiletouchendclear 手机端长按点后是否松开后关闭弹出的信息框 (_ismoseOpen为true并且_ismobiletouchendclear为true移动端才会在松开后关闭信息框,当你不想在松开后关闭信息框时请将_ismobiletouchendclear设置为false)
|
|
541
|
+
* @param _islabel 是否渲染label 标注(标注与信息框不同,信息框全局只有唯一一个)
|
|
542
|
+
* @param _icon 点位置处显示的图标 可以是url,也可以使用require 引入图片
|
|
543
|
+
* @param _contextOffset 信息框内容位置偏移 格式 new AMap.Pixel(0, -20)
|
|
544
|
+
* @param _laberOffset lable 内容偏移 格式 new AMap.Pixel(0, -20)
|
|
545
|
+
*/
|
|
546
|
+
showWindowInfoAndSpot
|
|
547
|
+
(_data, _position, _ismoseOpen = true, _isclearmarker = true, _ismobiletouchendclear = true,
|
|
548
|
+
_islabel = true,
|
|
549
|
+
_icon = markerDefaultIcon,
|
|
550
|
+
_contextOffset = new AMap.Pixel(0, -30),
|
|
551
|
+
_laberOffset = new AMap.Pixel(-5, -3)) {
|
|
552
|
+
if (_isclearmarker) {
|
|
553
|
+
this.map.clearMap();
|
|
554
|
+
}
|
|
555
|
+
var marker = new AMap.Marker({
|
|
556
|
+
position: _position,
|
|
557
|
+
icon: _icon,
|
|
558
|
+
map: this.map
|
|
559
|
+
});
|
|
560
|
+
if (_islabel) {
|
|
561
|
+
marker.setLabel({
|
|
562
|
+
content: '<div class="tooltips-amp-diy">' + _data.label + '</div>', //设置文本标注内容
|
|
563
|
+
direction: 'top', //设置文本标注方位
|
|
564
|
+
offset: _laberOffset, //设置文本标注偏移量
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
this.markerList.push(marker)
|
|
568
|
+
var infoWindow = new AMap.InfoWindow({
|
|
569
|
+
offset: _contextOffset
|
|
570
|
+
});
|
|
571
|
+
if (!/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) {
|
|
572
|
+
// 鼠标移动到点触发
|
|
573
|
+
AMap.event.addListener(marker, 'mouseover', (row) => {
|
|
574
|
+
// 打开信息窗体
|
|
575
|
+
if (_ismoseOpen) {
|
|
576
|
+
infoWindow.setContent(_data.content)
|
|
577
|
+
infoWindow.open(this.map, _position);
|
|
578
|
+
}
|
|
579
|
+
console.log("触发鼠标选中事件" + _data.data)
|
|
580
|
+
this.$emit("diyspotmouseover", _data.data)
|
|
581
|
+
})
|
|
582
|
+
// 鼠标离开改点触发
|
|
583
|
+
AMap.event.addListener(marker, 'mouseout', (row) => {
|
|
584
|
+
// 关闭信息窗体
|
|
585
|
+
if (_ismoseOpen) {
|
|
586
|
+
infoWindow.close();
|
|
587
|
+
}
|
|
588
|
+
console.log("触发鼠标离开事件" + _data.data)
|
|
589
|
+
this.$emit("diyspotmouseout", _data.data)
|
|
590
|
+
})
|
|
591
|
+
|
|
592
|
+
} else {
|
|
593
|
+
// 触摸开始时触发事件,仅适用移动设备
|
|
594
|
+
AMap.event.addListener(marker, 'touchstart', (row) => {
|
|
595
|
+
// 打开信息窗体
|
|
596
|
+
if (_ismoseOpen) {
|
|
597
|
+
infoWindow.setContent(_data.content)
|
|
598
|
+
infoWindow.open(this.map, _position);
|
|
599
|
+
}
|
|
600
|
+
console.log("触摸开始时触发事件" + _data.data)
|
|
601
|
+
this.$emit("diyspottouchstart", _data.data)
|
|
602
|
+
})
|
|
603
|
+
// 触摸结束触发
|
|
604
|
+
AMap.event.addListener(marker, 'touchend', (row) => {
|
|
605
|
+
|
|
606
|
+
// 关闭信息窗体 (移动端长按时间离开后触发)
|
|
607
|
+
if (_ismoseOpen) {
|
|
608
|
+
if (_ismobiletouchendclear) {
|
|
609
|
+
infoWindow.close();
|
|
610
|
+
}
|
|
611
|
+
} else
|
|
612
|
+
console.log("触摸结束时触发事件," + _data.data)
|
|
613
|
+
this.$emit("diyspottouchover", _data.data)
|
|
614
|
+
})
|
|
615
|
+
}
|
|
616
|
+
// 鼠标点击触发
|
|
617
|
+
AMap.event.addListener(marker, 'click', (row) => {
|
|
618
|
+
this.$emit("diyspotmouseclick", _data.data)
|
|
619
|
+
})
|
|
620
|
+
this.map.setFitView();
|
|
621
|
+
},
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* 将海量点集显示在地图上,海量点设计使用在PC端,如要显示少量点,请使用showMarkInfoWindow
|
|
625
|
+
*/
|
|
626
|
+
showMarkerList() {
|
|
627
|
+
this.clearMarkerList()
|
|
628
|
+
this.map.clearMap(); //清楚地图上所有的marks (清楚点标记)
|
|
629
|
+
this.massMarks = new AMap.MassMarks(this.inputmarksarray, {
|
|
630
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
|
631
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
|
632
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
|
633
|
+
style: this.markstyle
|
|
634
|
+
});
|
|
635
|
+
|
|
636
|
+
// 信息窗体的内容
|
|
637
|
+
// 创建 infoWindow 实例
|
|
638
|
+
var infoWindow = new AMap.InfoWindow({
|
|
639
|
+
content: " ",
|
|
640
|
+
offset: new AMap.Pixel(1, -20)
|
|
641
|
+
});
|
|
642
|
+
if (!/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) {
|
|
643
|
+
// 鼠标移动上去的事件
|
|
644
|
+
this.massMarks.on('mouseover', (e) => {
|
|
645
|
+
console.log("鼠标移动上去" + JSON.stringify(e.data.lnglat))
|
|
646
|
+
infoWindow.setContent(e.data.content)
|
|
647
|
+
infoWindow.open(this.map, e.data.lnglat);
|
|
648
|
+
this.$emit('inputmarkarraymouseover', e.data) //海量点鼠标入
|
|
649
|
+
});
|
|
650
|
+
// 鼠标移出
|
|
651
|
+
this.massMarks.on('mouseout', (e) => {
|
|
652
|
+
console.log("鼠标离开" + JSON.stringify(e.data.lnglat))
|
|
653
|
+
infoWindow.close()
|
|
654
|
+
this.$emit('inputmarkarraymouseout', e.data) //海量点鼠标出
|
|
655
|
+
});
|
|
656
|
+
} else {
|
|
657
|
+
// 触摸开始时触发事件,仅适用移动设备,
|
|
658
|
+
this.massMarks.on('touchstart', (e) => {
|
|
659
|
+
console.log("触摸开始时触发事件" + JSON.stringify(e.data.lnglat))
|
|
660
|
+
infoWindow.setContent(e.data.content)
|
|
661
|
+
infoWindow.open(this.map, e.data.lnglat);
|
|
662
|
+
this.$emit('inputmarkarraytouchstart', e.data) //海量点触摸
|
|
663
|
+
});
|
|
664
|
+
// 触摸结束时触发事件,仅适用移动设备,
|
|
665
|
+
this.massMarks.on('touchend', (e) => {
|
|
666
|
+
console.log("触摸结束时触发事件" + JSON.stringify(e.data.lnglat))
|
|
667
|
+
if (this.simplemarkerphonepressclose) {
|
|
668
|
+
infoWindow.close()
|
|
669
|
+
}
|
|
670
|
+
this.$emit('inputmarkarraytouchend', e.data) //海量点结束触摸
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* 海量点的点击事件 当渲染出海量点后点击某个点触发此方法 回调
|
|
675
|
+
*/
|
|
676
|
+
this.massMarks.on("click", (e) => {
|
|
677
|
+
console.log("当前点的信息" + JSON.stringify(e.data))
|
|
678
|
+
this.$emit("rowmarkerclick", e.data)
|
|
679
|
+
});
|
|
680
|
+
|
|
681
|
+
this.massMarks.setMap(this.map);
|
|
682
|
+
const sw = getSW(this.inputmarksarray) // 循环所有的点标记,返回最西南的一个经纬度
|
|
683
|
+
const ne = getNE(this.inputmarksarray) // 循环所有的点标记,返回最东北的一个经纬度
|
|
684
|
+
console.log('GET BOUNDS', sw, ne) // [xxx,xxx], [xxx,xxx]
|
|
685
|
+
let mybounds = new AMap.Bounds(sw, ne)
|
|
686
|
+
this.map.setBounds(mybounds)
|
|
687
|
+
},
|
|
688
|
+
/**
|
|
689
|
+
* 清楚海量点
|
|
690
|
+
*/
|
|
691
|
+
clearMarkerList() {
|
|
692
|
+
if (this.massMarks != null) {
|
|
693
|
+
this.massMarks.clear()
|
|
694
|
+
} else {
|
|
695
|
+
console.log("当前未初始化海量点")
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
/***
|
|
699
|
+
* 渲染多个点标记与简单信息卡和标注
|
|
700
|
+
*/
|
|
701
|
+
showLabelMarksArray() {
|
|
702
|
+
if (this.labelmarksarray) {
|
|
703
|
+
let _date_ = {}
|
|
704
|
+
for (let labelitem of this.labelmarksarray) {
|
|
705
|
+
let labelconfig = ["data", "position", "ismoseOpen", "isclearmarker", "ismobiletouchendclear", "islabel", "icon"]
|
|
706
|
+
for (let labelconfigKey of labelconfig) {
|
|
707
|
+
if (labelitem.hasOwnProperty(labelconfigKey)) {
|
|
708
|
+
_date_[labelconfigKey] = labelitem[labelconfigKey]
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
this.showWindowInfoAndSpot(_date_.data, _date_.position, _date_.ismoseOpen, _date_.isclearmarker, _date_.ismobiletouchendclear, _date_.islabel, _date_.icon)
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
/**
|
|
716
|
+
* 让地图中心位置视图转移 显示在某个经纬度
|
|
717
|
+
*_grade:等级1~15 缩放等级 全国~街道
|
|
718
|
+
*/
|
|
719
|
+
setZommAndCenterView(_grade, _lng, _lat) {
|
|
720
|
+
this.map.setZoomAndCenter(_grade, [_lng, _lat])
|
|
721
|
+
this.map.getCenter();
|
|
722
|
+
},
|
|
723
|
+
|
|
724
|
+
},
|
|
725
|
+
watch: {
|
|
726
|
+
// 当传入的中心地图位置变化
|
|
727
|
+
|
|
728
|
+
zoomcenter: {
|
|
729
|
+
handler: function (newV, oldV) {
|
|
730
|
+
if (newV) {
|
|
731
|
+
this.$nextTick(() => {
|
|
732
|
+
this.setZommAndCenterView(this.zoomcenter.grade, this.zoomcenter.lng, this.zoomcenter.lat)
|
|
733
|
+
})
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
deep: true
|
|
737
|
+
},
|
|
738
|
+
pickerinput: function () {
|
|
739
|
+
console.log("搜索关键字变化")
|
|
740
|
+
this.searchModel = this.pickerinput
|
|
741
|
+
},
|
|
742
|
+
searchModel: function () {
|
|
743
|
+
if (this.searchModel != undefined && this.searchModel.trim() != "") {
|
|
744
|
+
this.isShowSearchToTs = "block"
|
|
745
|
+
} else {
|
|
746
|
+
this.isShowSearchToTs = "none"
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
mapmodel: function () { // (拖拽模式地图 dragMarker 和 拖拽选点模式 dragMap)
|
|
750
|
+
this.map.clearMap(); //清楚地图上所有的marks (清楚点标记)
|
|
751
|
+
if (this.mapmodel === 'dragMap') {
|
|
752
|
+
console.log("当前地图模式为dragMap(拖拽选点)打开拖拽选单功能")
|
|
753
|
+
this.openDragMap(); //开启拖拽选点
|
|
754
|
+
this.clearMarkerList();//清楚海量点
|
|
755
|
+
} else if (this.mapmodel === 'dragMarker') {
|
|
756
|
+
console.log("当前地图模式为dragMarker(地图拖拽)关闭拖拽选点功能")
|
|
757
|
+
this.closeDragMap(); //关闭拖拽选点
|
|
758
|
+
this.clearMarkerList();//清楚海量点
|
|
759
|
+
this.map.clearMap(); //清楚地图上所有的marks (清楚点标记)
|
|
760
|
+
}
|
|
761
|
+
// 当页面中地图模式变化,就将地图模式设置到poi对象中
|
|
762
|
+
if (this.mapmodel !== '' && this.mapmodel !== null) {
|
|
763
|
+
this.positionPickerDrag.setMode(this.mapmodel)
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
myLocation: function () {
|
|
767
|
+
console.log("当前位置信息", this.myLocation)
|
|
768
|
+
// 对外抛出当前位置信息
|
|
769
|
+
this.$emit("getmylocation", this.myLocation);
|
|
770
|
+
},
|
|
771
|
+
inputmarksarray: function () {
|
|
772
|
+
if (this.inputmarksarray !== null && this.inputmarksarray !== [] && this.inputmarksarray !== "[]") {
|
|
773
|
+
this.showMarkerList(); //渲染海量点
|
|
774
|
+
} else {
|
|
775
|
+
this.clearMarkerList();//清楚海量点
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
labelmarksarray: function () {
|
|
779
|
+
this.map.clearMap(); //清楚地图上所有的marks (清楚点标记)
|
|
780
|
+
if (this.labelmarksarray !== null && this.labelmarksarray !== [] && this.labelmarksarray !== "[]") {
|
|
781
|
+
this.showLabelMarksArray()
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
ready() {
|
|
786
|
+
this.$nextTick(() => {
|
|
787
|
+
/*判断机型
|
|
788
|
+
手机端有:地图,poi搜索选址,poi拖拽选址
|
|
789
|
+
PC端有:地图 右键菜单初始化
|
|
790
|
+
*/
|
|
791
|
+
this.initAmap(); //地图初始化
|
|
792
|
+
if (this.pickerInput) {
|
|
793
|
+
this.poiPickerReady(); // poi选址初始化
|
|
794
|
+
}
|
|
795
|
+
this.poiPickerDropReady(); // poi拖拽选址初始化
|
|
796
|
+
if (!/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) {
|
|
797
|
+
// PC端
|
|
798
|
+
console.log("当前设备不是 iPhone|iPad|iPod|iOS|Android 当前设备是" + navigator.userAgent)
|
|
799
|
+
this.contextRightKeyMenu(); // 右键菜单初始化
|
|
800
|
+
let toolBar = new AMap.ToolBar(); // 高德插件工具栏 (地图查看等级放大缩小)
|
|
801
|
+
this.map.addControl(toolBar);
|
|
802
|
+
} else {
|
|
803
|
+
// 移动端
|
|
804
|
+
AMapUI.loadUI(['control/BasicControl'], (BasicControl) => {
|
|
805
|
+
//添加一个缩放控件
|
|
806
|
+
this.map.addControl(new BasicControl.Zoom({
|
|
807
|
+
position: 'lt'
|
|
808
|
+
}));
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
if (this.zoomcenter != null) {
|
|
812
|
+
this.setZommAndCenterView(this.zoomcenter.grade, this.zoomcenter.lng, this.zoomcenter.lat)
|
|
813
|
+
}
|
|
814
|
+
if (this.inputmarksarray.length > 0) {
|
|
815
|
+
this.showMarkerList(); //渲染海量点
|
|
816
|
+
}
|
|
817
|
+
if (this.labelmarksarray.length > 0) {
|
|
818
|
+
this.showLabelMarksArray()
|
|
819
|
+
}
|
|
820
|
+
})
|
|
821
|
+
},
|
|
822
|
+
created() {
|
|
823
|
+
if (this.dom === '') {
|
|
824
|
+
this.dom = "amapId" + Math.round(Math.random() * 10) + Math.round(Math.random() * 10)
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
computed() {
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
</script>
|
|
831
|
+
|
|
832
|
+
<style scoped>
|
|
833
|
+
#pickerOut {
|
|
834
|
+
overflow: auto;
|
|
835
|
+
min-height: 200px;
|
|
836
|
+
min-width: 100px;
|
|
837
|
+
position: absolute;
|
|
838
|
+
background-color: #fff;
|
|
839
|
+
z-index: 3;
|
|
840
|
+
margin: 0 auto;
|
|
841
|
+
border: 1px solid #e8e8e8;
|
|
842
|
+
border-radius: 5px;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.tooltips-amp-diy {
|
|
846
|
+
position: relative;
|
|
847
|
+
border: 1px solid #A5C4EC;
|
|
848
|
+
border-radius: 4px;
|
|
849
|
+
}
|
|
850
|
+
</style>
|