You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
35 KiB

{"version":3,"sources":["webpack:///node_modules/vue-baidu-map/components/overlays/Marker.vue","webpack:///./node_modules/core-js/modules/es.string.anchor.js","webpack:///./src/views/drivingMap/index.vue?a469","webpack:///./node_modules/vue-baidu-map/components/controls/CityList.vue","webpack:///./node_modules/vue-baidu-map/components/controls/CityList.vue?77d2","webpack:///node_modules/vue-baidu-map/components/controls/CityList.vue","webpack:///node_modules/vue-baidu-map/components/controls/Scale.vue","webpack:///./node_modules/vue-baidu-map/components/controls/Navigation.vue","webpack:///./node_modules/vue-baidu-map/components/controls/Navigation.vue?8a72","webpack:///./node_modules/vue-baidu-map/components/controls/Scale.vue","webpack:///./node_modules/vue-baidu-map/components/controls/Scale.vue?837e","webpack:///./node_modules/core-js/internals/create-html.js","webpack:///./src/views/drivingMap/index.vue?0774","webpack:///src/views/drivingMap/index.vue","webpack:///./src/views/drivingMap/index.vue?e0fa","webpack:///./src/views/drivingMap/index.vue","webpack:///./node_modules/core-js/internals/string-html-forced.js","webpack:///node_modules/vue-baidu-map/components/controls/Navigation.vue","webpack:///./node_modules/vue-baidu-map/components/overlays/Marker.vue?fc25","webpack:///./node_modules/vue-baidu-map/components/overlays/Marker.vue?64d1","webpack:///./node_modules/vue-baidu-map/components/overlays/Marker.vue"],"names":["name","mixins","props","position","offset","icon","massClear","type","Boolean","default","dragging","clicking","raiseOnDrag","draggingCursor","String","rotation","Number","shadow","Object","title","label","animation","top","zIndex","watch","val","oldVal","originInstance","setPosition","renderByParent","$parent","reload","setOffset","BMap","Size","this","height","width","deep","handler","setIcon","setRotation","enableMassClear","disableMassClear","enableDragging","disableDragging","setDraggingCursor","setShadow","setTitle","setAnimation","global","setTop","setZIndex","methods","load","enableClicking","overlay","setLabel","map","addOverlay","$","createHTML","forcedStringHTMLMethod","target","proto","forced","anchor","render","staticRenderFns","component","CityListControl","onChangeBefore","self","$emit","onChangeAfter","addControl","ScaleControl","uncurryThis","requireObjectCoercible","toString","quot","replace","module","exports","string","tag","attribute","value","S","p1","_vm","_h","$createElement","_c","_self","staticClass","attrs","on","tapELInput","tapInputFocus","model","callback","$$v","Location","expression","tapSelectBlur","slot","scity","_l","item","key","areaCode","areaName","$event","goBaiduMap","directives","rawName","dropShow","dataSheetList","length","schoolId","tapSheetList","schoolName","_v","_s","style","zoom","lng","center","lat","marker","code","components","BaiduMap","BmScale","BmNavigation","CityList","BmMarker","data","markers","orignList","pageObj","pageIndex","pageSize","total","selectBlur","computed","created","$route","query","location","getQueryGetSchoolByName","getQueryIndexOrignList","res","unshift","district","getQueryGetHospitalList","forEach","regionCode","_scity","_name","regionName","window","open","fails","METHOD_NAME","test","toLowerCase","split","showZoomInfo","enableGeolocation","NavigationControl","_t"],"mappings":"2LAWA,QACEA,KAAM,YACNC,OAAQ,CAAC,OAAX,OAAW,CAAX,YACEC,MAAO,CACLC,SAAU,GACVC,OAAQ,GACRC,KAAM,GACNC,UAAW,CACTC,KAAMC,QACNC,SAAS,GAEXC,SAAU,CACRH,KAAMC,QACNC,SAAS,GAEXE,SAAU,CACRJ,KAAMC,QACNC,SAAS,GAEXG,YAAa,CACXL,KAAMC,QACNC,SAAS,GAEXI,eAAgB,CACdN,KAAMO,QAERC,SAAU,CACRR,KAAMS,QAERC,OAAQ,CACNV,KAAMW,QAERC,MAAO,CACLZ,KAAMO,QAERM,MAAO,CACLb,KAAMW,QAERG,UAAW,CACTd,KAAMO,QAERQ,IAAK,CACHf,KAAMC,QACNC,SAAS,GAEXc,OAAQ,CACNhB,KAAMS,OACNP,QAAS,IAGbe,MAAO,CACL,eADJ,SACA,KACM,IAAN,uFACUC,IAAQC,GAAUD,IAAQ,KAAOA,GAAO,KAC1CE,EAAeC,YAAY,OAAnC,OAAmC,CAAnC,sBAEMC,GAAkBC,EAAQC,UAE5B,eARJ,SAQA,KACM,IAAN,uFACUN,IAAQC,GAAUD,IAAQ,IAAMA,GAAO,IACz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AAM,KAAKjD,OAAS,O,+FCHnE,QACEvH,KAAM,gBACNmE,OAFF,aAGElE,OAAQ,CAAC,OAAX,OAAW,CAAX,YACEC,MAAO,CACLgE,OAAQ,CACN3D,KAAMO,QAERV,OAAQ,CACNG,KAAMW,QAERX,KAAM,CACJA,KAAMO,QAER2J,aAAc,CACZlK,KAAMC,SAERkK,kBAAmB,CACjBnK,KAAMC,QACNC,SAAS,IAGbe,MAAO,CACL0C,OADJ,WAEM/B,KAAKJ,UAEP3B,OAJJ,WAKM+B,KAAKJ,UAEPxB,KAPJ,WAQM4B,KAAKJ,UAEP0I,aAVJ,WAWMtI,KAAKJ,WAGTsB,QAAS,CACPC,KADJ,WAEM,IAAN,4GACMnB,KAAKR,eAAiB,IAAIM,EAAK0I,kBAAkB,CAC/CzG,OAAQhB,EAAOgB,GACf9D,OAAQA,GAAU,OAA1B,OAA0B,CAA1B,KACQG,KAAM2C,EAAO3C,GACbkK,aAAR,EACQC,kBAAR,IAEMhH,EAAIiB,WAAWxC,KAAKR,qB,wDClD1B,IAAIwC,EAAS,WAAa,IAAIuB,EAAIvD,KAASwD,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACH,EAAIkF,GAAG,YAAY,IACzHxG,EAAkB,G,YCDwQ,S,YCO1RC,EAAY,eACd,EACAF,EACAC,GACA,EACA,KACA,KACA,MAIa,OAAAC,E","file":"js/chunk-05513051.c50d58bd.js","sourcesContent":["<template>\n<div>\n <slot></slot>\n</div>\n</template>\n\n<script>\nimport commonMixin from '../base/mixins/common.js'\nimport bindEvents from '../base/bindEvent.js'\nimport {createLabel, createIcon, createPoint} from '../base/factory.js'\n\nexport default {\n name: 'bm-marker',\n mixins: [commonMixin('overlay')],\n props: {\n position: {},\n offset: {},\n icon: {},\n massClear: {\n type: Boolean,\n default: true\n },\n dragging: {\n type: Boolean,\n default: false\n },\n clicking: {\n type: Boolean,\n default: true\n },\n raiseOnDrag: {\n type: Boolean,\n default: false\n },\n draggingCursor: {\n type: String\n },\n rotation: {\n type: Number\n },\n shadow: {\n type: Object\n },\n title: {\n type: String\n },\n label: {\n type: Object\n },\n animation: {\n type: String\n },\n top: {\n type: Boolean,\n default: false\n },\n zIndex: {\n type: Number,\n default: 0\n }\n },\n watch: {\n 'position.lng' (val, oldVal) {\n const {BMap, originInstance, position, renderByParent, $parent} = this\n if (val !== oldVal && val >= -180 && val <= 180) {\n originInstance.setPosition(createPoint(BMap, {lng: val, lat: position.lat}))\n }\n renderByParent && $parent.reload()\n },\n 'position.lat' (val, oldVal) {\n const {BMap, originInstance, position, renderByParent, $parent} = this\n if (val !== oldVal && val >= -74 && val <= 74) {\n originInstance.setPosition(createPoint(BMap, {lng: position.lng, lat: val}))\n }\n renderByParent && $parent.reload()\n },\n 'offset.width' (val, oldVal) {\n const {BMap, originInstance} = this\n if (val !== oldVal) {\n originInstance.setOffset(new BMap.Size(val, this.offset.height))\n }\n },\n 'offset.height' (val, oldVal) {\n const {BMap, originInstance} = this\n if (val !== oldVal) {\n originInstance.setOffset(new BMap.Size(this.offset.width, val))\n }\n },\n icon: {\n deep: true,\n handler (val) {\n const {BMap, originInstance, rotation} = this\n originInstance && originInstance.setIcon(createIcon(BMap, val))\n rotation && originInstance && originInstance.setRotation(rotation)\n }\n },\n massClear (val) {\n val ? this.originInstance.enableMassClear() : this.originInstance.disableMassClear()\n },\n dragging (val) {\n val ? this.originInstance.enableDragging() : this.originInstance.disableDragging()\n },\n clicking () {\n this.reload()\n },\n raiseOnDrag () {\n this.reload()\n },\n draggingCursor (val) {\n this.originInstance.setDraggingCursor(val)\n },\n rotation (val) {\n this.originInstance.setRotation(val)\n },\n shadow (val) {\n this.originInstance.setShadow(val)\n },\n title (val) {\n this.originInstance.setTitle(val)\n },\n label (val) {\n this.reload()\n },\n animation (val) {\n this.originInstance.setAnimation(global[val])\n },\n top (val) {\n this.originInstance.setTop(val)\n },\n zIndex (val) {\n this.originInstance.setZIndex(val)\n }\n },\n methods: {\n load () {\n const {BMap, map, position, offset, icon, massClear, dragging, clicking, raiseOnDrag, draggingCursor, rotation, shadow, title, label, animation, top, renderByParent, $parent, zIndex} = this\n const overlay = new BMap.Marker(new BMap.Point(position.lng, position.lat), {\n offset,\n icon: icon && createIcon(BMap, icon),\n enableMassClear: massClear,\n enableDragging: dragging,\n enableClicking: clicking,\n raiseOnDrag,\n draggingCursor,\n rotation,\n shadow,\n title\n })\n this.originInstance = overlay\n label && overlay && overlay.setLabel(createLabel(BMap, label))\n overlay.setTop(top)\n overlay.setZIndex(zIndex)\n bindEvents.call(this, overlay)\n if (renderByParent) {\n $parent.reload()\n } else {\n map.addOverlay(overlay)\n }\n overlay.setAnimation(global[animation])\n }\n }\n}\n</script>\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.anchor` method\n// https://tc39.es/ecma262/#sec-string.prototype.anchor\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, {\n anchor: function anchor(name) {\n return createHTML(this, 'a', 'name', name);\n }\n});\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=b114c748&lang=scss&scoped=true&\"","var render, staticRenderFns\nimport script from \"./CityList.vue?vue&type=script&lang=js&\"\nexport * from \"./CityList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./CityList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./CityList.vue?vue&type=script&lang=js&\"","<script>\nimport commonMixin from '../base/mixins/common.js'\nimport {createSize} from '../base/factory.js'\n\nexport default {\n name: 'bm-city-list',\n render () {},\n mixins: [commonMixin('control')],\n props: {\n anchor: {\n type: String\n },\n offset: {\n type: Object\n }\n },\n watch: {\n anchor () {\n this.reload()\n },\n offset () {\n this.reload()\n }\n },\n methods: {\n load () {\n const {BMap, map, anchor, offset} = this\n const self = this\n this.originInstance = new BMap.CityListControl({\n anchor: global[anchor],\n offset: offset && createSize(BMap, offset),\n onChangeBefore () {\n self.$emit('changeBefore')\n },\n onChangeAfter () {\n self.$emit('changeAfter')\n }\n })\n map.addControl(this.originInstance)\n }\n }\n}\n</script>\n","<script>\nimport commonMixin from '../base/mixins/common.js'\nimport {createSize} from '../base/factory.js'\n\nexport default {\n name: 'bm-scale',\n render () {},\n mixins: [commonMixin('control')],\n props: {\n anchor: {\n type: String\n },\n offset: {\n type: Object\n }\n },\n watch: {\n anchor () {\n this.reload()\n },\n offset () {\n this.reload()\n }\n },\n methods: {\n load () {\n const {BMap, map, anchor, offset} = this\n this.originInstance = new BMap.ScaleControl({\n anchor: global[anchor],\n offset: offset && createSize(BMap, offset)\n })\n map.addControl(this.originInstance)\n }\n }\n}\n</script>\n","var render, staticRenderFns\nimport script from \"./Navigation.vue?vue&type=script&lang=js&\"\nexport * from \"./Navigation.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./Navigation.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./Navigation.vue?vue&type=script&lang=js&\"","var render, staticRenderFns\nimport script from \"./Scale.vue?vue&type=script&lang=js&\"\nexport * from \"./Scale.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./Scale.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./Scale.vue?vue&type=script&lang=js&\"","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\n\nvar quot = /\"/g;\nvar replace = uncurryThis(''.replace);\n\n// `CreateHTML` abstract operation\n// https://tc39.es/ecma262/#sec-createhtml\nmodule.exports = function (string, tag, attribute, value) {\n var S = toString(requireObjectCoercible(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + replace(toString(value), quot, '&quot;') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"driving-map\"},[_c('div',{staticClass:\"map-wrapper\"},[_c('div',{staticClass:\"map-select\"},[_c('el-input',{staticClass:\"input-with-select\",attrs:{\"placeholder\":\"请输入您要搜索的驾校\"},on:{\"input\":_vm.tapELInput,\"focus\":_vm.tapInputFocus},model:{value:(_vm.Location),callback:function ($$v) {_vm.Location=$$v},expression:\"Location\"}},[_c('el-select',{attrs:{\"slot\":\"prepend\",\"placeholder\":\"请选择\"},on:{\"change\":_vm.tapSelectBlur},slot:\"prepend\",model:{value:(_vm.scity),callback:function ($$v) {_vm.scity=$$v},expression:\"scity\"}},_vm._l((_vm.orignList),function(item){return _c('el-option',{key:item.areaCode,attrs:{\"label\":item.areaName,\"value\":item.areaCode}})}),1),_c('el-button',{staticClass:\"btns\",attrs:{\"slot\":\"append\",\"icon\":\"el-icon-search\"},on:{\"click\":function($event){return _vm.goBaiduMap()}},slot:\"append\"})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.dropShow && _vm.dataSheetList.length > 0),expression:\"dropShow && dataSheetList.length > 0\"}],staticClass:\"drop-downselect\"},_vm._l((_vm.dataSheetList),function(item){return _c('div',{key:item.schoolId,staticClass:\"drop-item\",on:{\"click\":function($event){return _vm.tapSheetList(item.schoolName)}}},[_c('div',{staticClass:\"info\"},[_c('p',{staticClass:\"info-title\"},[_vm._v(_vm._s(item.schoolName))])])])}),0)],1),_c('div',{staticClass:\"map-context\"},[_c('baidu-map',{staticClass:\"map\",style:({width:_vm.map.width,height:_vm.map.height}),attrs:{\"ak\":\"kwCrzOkUIYBl1YV7Q0MPGqWLn4oW2Cje\",\"zoom\":_vm.map.zoom,\"center\":{lng: _vm.map.center.lng, lat: _vm.map.center.lat},\"scroll-wheel-zoom\":true},on:{\"ready\":_vm.handler}},[_c('bm-scale',{attrs:{\"anchor\":\"BMAP_ANCHOR_TOP_RIGHT\"}}),_c('bm-navigation',{attrs:{\"anchor\":\"BMAP_ANCHOR_BOTTOM_RIGHT\"}}),_c('city-list'),_vm._l((_vm.markers),function(marker){return _c('bm-marker',{key:marker.code,attrs:{\"position\":{lng: marker.lng, lat: marker.lat}}})})],2)],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"driving-map\">\r\n <div class=\"map-wrapper\">\r\n <!-- 地区驾校选择容器 -->\r\n <div class=\"map-select\">\r\n <el-input placeholder=\"请输入您要搜索的驾校\" v-model=\"Location\" class=\"input-with-select\" @input=\"tapELInput\" @focus=\"tapInputFocus\">\r\n <el-select v-model=\"scity\" slot=\"prepend\" placeholder=\"请选择\" @change=\"tapSelectBlur\">\r\n <el-option v-for=\"item in orignList\" :key=\"item.areaCode\" :label=\"item.areaName\" :value=\"item.areaCode\"></el-option>\r\n </el-select>\r\n <el-button class=\"btns\" slot=\"append\" icon=\"el-icon-search\" @click=\"goBaiduMap()\"></el-button>\r\n </el-input>\r\n <div class=\"drop-downselect\" v-show=\"dropShow && dataSheetList.length > 0\">\r\n <div class=\"drop-item\" v-for=\"item in dataSheetList\" :key=\"item.schoolId\" @click=\"tapSheetList(item.schoolName)\">\r\n <div class=\"info\">\r\n <p class=\"info-title\">{{item.schoolName}}</p>\r\n <!-- <p class=\"info-address\">洛阳市钱江世纪城广孚联合国际中心裙楼2楼洛阳市钱江世纪城广孚联合国际中心裙楼2楼</p>\r\n <p class=\"info-address\">电话:4000890999</p> -->\r\n </div>\r\n <!-- <div class=\"info-img\">\r\n </div> -->\r\n </div>\r\n </div>\r\n </div>\r\n <!-- 地图容器 -->\r\n <div class=\"map-context\">\r\n <baidu-map :style=\"{width:map.width,height:map.height}\" class=\"map\" ak=\"kwCrzOkUIYBl1YV7Q0MPGqWLn4oW2Cje\" :zoom=\"map.zoom\" :center=\"{lng: map.center.lng, lat: map.center.lat}\" @ready=\"handler\" :scroll-wheel-zoom=\"true\">\r\n <!--比例尺控件-->\r\n <bm-scale anchor=\"BMAP_ANCHOR_TOP_RIGHT\"></bm-scale>\r\n <!--缩放控件-->\r\n <bm-navigation anchor=\"BMAP_ANCHOR_BOTTOM_RIGHT\" ></bm-navigation>\r\n <!--城市选择列表-->\r\n <city-list></city-list>\r\n <bm-marker v-for=\"marker of markers\" :key=\"marker.code\" :position=\"{lng: marker.lng, lat: marker.lat}\"></bm-marker>\r\n </baidu-map>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n// 百度地图\r\nimport BaiduMap from 'vue-baidu-map/components/map/Map.vue'\r\nimport BmScale from 'vue-baidu-map/components/controls/Scale'\r\nimport BmNavigation from 'vue-baidu-map/components/controls/Navigation'\r\nimport CityList from 'vue-baidu-map/components/controls/CityList'\r\nimport BmMarker from 'vue-baidu-map/components/overlays/Marker'\r\n\r\nimport { queryIndexOrignList, queryGetSchoolByName, queryGetHospitalList } from '@/api/herbalMedicine'\r\n\r\nexport default {\r\n name: 'DrivingMap',\r\n components: {\r\n BaiduMap,\r\n BmScale,\r\n BmNavigation,\r\n CityList,\r\n BmMarker\r\n },\r\n data () {\r\n return {\r\n markers: [],\r\n map:{\r\n center: {lng:112.477298, lat: 34.682945},//'洛阳市',\r\n zoom: 12,\r\n width:'100vw',\r\n height:'700px'\r\n },\r\n // 全部区域列表\r\n orignList: [],\r\n // 驾校列表\r\n dataSheetList: [],\r\n Location:\"\",\r\n scity: 'all',\r\n // 分页信息\r\n pageObj: {\r\n pageIndex: 1,\r\n pageSize: 10,\r\n total: 0\r\n },\r\n // 下拉框是否展示\r\n dropShow: false,\r\n // el-select失去焦点\r\n selectBlur: false,\r\n }\r\n },\r\n computed: {\r\n },\r\n created () {\r\n if (this.$route.query && this.$route.query.location) {\r\n this.Location = this.$route.query.location\r\n this.getQueryGetSchoolByName()\r\n }\r\n // 全部区域列表\r\n this.getQueryIndexOrignList()\r\n },\r\n methods: {\r\n // 全部区域列表\r\n getQueryIndexOrignList () {\r\n queryIndexOrignList().then(res => {\r\n res.data.unshift({areaCode: \"all\", areaName: \"全城\"})\r\n this.orignList = res.data\r\n if (this.$route.query && this.$route.query.city) {\r\n this.orignList.map(item => {\r\n if (item.areaName === this.$route.query.city) this.scity = item.areaCode\r\n })\r\n }\r\n this.selectBlur = true\r\n })\r\n },\r\n // 地图初始化\r\n handler ({BMap, map}) {\r\n console.log(BMap, map)\r\n map.disableScrollWheelZoom() //禁止缩放\r\n // this.map.width= document.getElementById(\"container\").clientWidth-330+'px';\r\n // this.map.height=document.body.clientHeight -160+'px';\r\n },\r\n // 查询驾校列表\r\n getQueryGetSchoolByName () {\r\n this.dropShow = false\r\n this.dataSheetList = []\r\n queryGetSchoolByName({\r\n // isPublish: 1,\r\n // pageIndex: this.pageObj.pageIndex,\r\n // pageSize: this.pageObj.pageSize,\r\n district: this.scity == 'all' ? '' : this.scity,\r\n schoolName: this.Location == '' ? '' : this.Location\r\n }).then(res => {\r\n if (res.data.length > 0) {\r\n this.dataSheetList = res.data\r\n this.dropShow = true\r\n } else {\r\n this.dataSheetList = res.data\r\n // this.showMessage('未找到结果', \"error\");\r\n }\r\n })\r\n },\r\n // 查询医院列表\r\n getQueryGetHospitalList () {\r\n this.dropShow = false\r\n this.dataSheetList = []\r\n queryGetHospitalList({ \r\n // isPublish: 1,\r\n // pageIndex: this.pageObj.pageIndex,\r\n // pageSize: this.pageObj.pageSize,\r\n district: this.scity == 'all' ? '' : this.scity,\r\n schoolName: this.Location == '' ? '' : this.Location\r\n }).then(res => {\r\n if (res.data.length > 0) {\r\n this.dataSheetList = res.data\r\n this.dropShow = true\r\n } else {\r\n this.dataSheetList = res.data\r\n this.showMessage('未找到结果', \"error\");\r\n }\r\n })\r\n },\r\n tapELInput (e) {\r\n this.getQueryGetSchoolByName()\r\n },\r\n tapSelectBlur (e) {\r\n // el-select失去焦点\r\n this.selectBlur=true\r\n this.Location=''\r\n this.dropShow = false\r\n this.getQueryGetSchoolByName()\r\n\r\n },\r\n tapInputFocus (e) {\r\n if (this.selectBlur) {\r\n this.getQueryGetSchoolByName()\r\n } else {\r\n this.dropShow = false\r\n }\r\n },\r\n tapSheetList(name) {\r\n this.Location = name\r\n },\r\n goBaiduMap(){\r\n if (this.Location == \"\") {\r\n const _scity = this.scity;\r\n let _name;\r\n this.orignList.forEach(item => {\r\n if (item.regionCode == _scity) {\r\n _name = item.regionName\r\n }\r\n })\r\n if (_name == '全城') _name = '洛阳市'\r\n window.open(\r\n `https://api.map.baidu.com/geocoder?address=${_name}驾校&output=html&region=洛阳&src=我的位置`,\r\n \"_blank\"\r\n );\r\n } else {\r\n const schoolName = this.Location\r\n // window.location.href = \"http://api.map.baidu.com/geocoder?address=\"+this.Location +\"&output=html&src=我的位置\"\r\n window.open(\"https://api.map.baidu.com/geocoder?address=\"+schoolName +\"&output=html&src=我的位置\",'_blank')\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n@import \"./index.scss\";\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=b114c748&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=b114c748&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b114c748\",\n null\n \n)\n\nexport default component.exports","var fails = require('../internals/fails');\n\n// check the existence of a method, lowercase\n// of a tag and escaping quotes in arguments\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n var test = ''[METHOD_NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n });\n};\n","<script>\nimport commonMixin from '../base/mixins/common.js'\nimport {createSize} from '../base/factory.js'\n\nexport default {\n name: 'bm-navigation',\n render () {},\n mixins: [commonMixin('control')],\n props: {\n anchor: {\n type: String\n },\n offset: {\n type: Object\n },\n type: {\n type: String\n },\n showZoomInfo: {\n type: Boolean\n },\n enableGeolocation: {\n type: Boolean,\n default: false\n }\n },\n watch: {\n anchor () {\n this.reload()\n },\n offset () {\n this.reload()\n },\n type () {\n this.reload()\n },\n showZoomInfo () {\n this.reload()\n }\n },\n methods: {\n load () {\n const {BMap, map, anchor, offset, type, showZoomInfo, enableGeolocation} = this\n this.originInstance = new BMap.NavigationControl({\n anchor: global[anchor],\n offset: offset && createSize(BMap, offset),\n type: global[type],\n showZoomInfo,\n enableGeolocation\n })\n map.addControl(this.originInstance)\n }\n }\n}\n</script>\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./Marker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./Marker.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Marker.vue?vue&type=template&id=8b00e1e8&\"\nimport script from \"./Marker.vue?vue&type=script&lang=js&\"\nexport * from \"./Marker.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}