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
25 KiB
1 lines
25 KiB
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.string.anchor.js","webpack:///./node_modules/vue-baidu-map/components/controls/CityList.vue","webpack:///./node_modules/vue-baidu-map/components/controls/CityList.vue?77d2","webpack:///./src/views/hospitalMap/index.vue?fd48","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:///./node_modules/core-js/internals/string-html-forced.js","webpack:///node_modules/vue-baidu-map/components/controls/Navigation.vue","webpack:///./src/views/hospitalMap/index.vue?6fd6","webpack:///src/views/hospitalMap/index.vue","webpack:///./src/views/hospitalMap/index.vue?2f1c","webpack:///./src/views/hospitalMap/index.vue"],"names":["$","createHTML","forcedStringHTMLMethod","target","proto","forced","anchor","name","this","render","staticRenderFns","component","mixins","props","type","String","offset","Object","watch","reload","methods","load","originInstance","BMap","CityListControl","global","onChangeBefore","self","$emit","onChangeAfter","map","addControl","ScaleControl","uncurryThis","requireObjectCoercible","toString","quot","replace","module","exports","string","tag","attribute","value","S","p1","fails","METHOD_NAME","test","toLowerCase","split","length","showZoomInfo","Boolean","enableGeolocation","default","NavigationControl","_vm","_h","$createElement","_c","_self","staticClass","attrs","on","tapELInput","tapInputFocus","model","callback","$$v","Location","expression","tapSelectBlur","slot","scity","_l","item","key","regionCode","regionName","$event","goBaiduMap","directives","rawName","dropShow","dataSheetList","hospitalId","tapSheetList","hospitalName","_v","_s","style","width","height","zoom","lng","center","lat","handler","components","BaiduMap","BmScale","BmNavigation","CityList","data","orignList","pageObj","pageIndex","pageSize","total","selectBlur","computed","created","$route","query","location","getQueryGetHospitalList","getQueryIndexOrignList","res","unshift","district","forEach","_scity","_name","window","open"],"mappings":"kHACA,IAAIA,EAAI,EAAQ,QACZC,EAAa,EAAQ,QACrBC,EAAyB,EAAQ,QAIrCF,EAAE,CAAEG,OAAQ,SAAUC,OAAO,EAAMC,OAAQH,EAAuB,WAAa,CAC7EI,OAAQ,SAAgBC,GACtB,OAAON,EAAWO,KAAM,IAAK,OAAQD,O,wCCTrCE,EAAQC,E,YCAoR,S,YDO5RC,EAAY,eACd,EACAF,EACAC,GACA,EACA,KACA,KACA,MAIa,OAAAC,E,6CElBf,W,wHCIA,QACEJ,KAAM,eACNE,OAFF,aAGEG,OAAQ,CAAC,OAAX,OAAW,CAAX,YACEC,MAAO,CACLP,OAAQ,CACNQ,KAAMC,QAERC,OAAQ,CACNF,KAAMG,SAGVC,MAAO,CACLZ,OADJ,WAEME,KAAKW,UAEPH,OAJJ,WAKMR,KAAKW,WAGTC,QAAS,CACPC,KADJ,WAEM,IAAN,mDACA,OACMb,KAAKc,eAAiB,IAAIC,EAAKC,gBAAgB,CAC7ClB,OAAQmB,EAAOnB,GACfU,OAAQA,GAAU,OAA1B,OAA0B,CAA1B,KACQU,eAHR,WAIUC,EAAKC,MAAM,iBAEbC,cANR,WAOUF,EAAKC,MAAM,kBAGfE,EAAIC,WAAWvB,KAAKc,qB,uHClC1B,QACEf,KAAM,WACNE,OAFF,aAGEG,OAAQ,CAAC,OAAX,OAAW,CAAX,YACEC,MAAO,CACLP,OAAQ,CACNQ,KAAMC,QAERC,OAAQ,CACNF,KAAMG,SAGVC,MAAO,CACLZ,OADJ,WAEME,KAAKW,UAEPH,OAJJ,WAKMR,KAAKW,WAGTC,QAAS,CACPC,KADJ,WAEM,IAAN,mDACMb,KAAKc,eAAiB,IAAIC,EAAKS,aAAa,CAC1C1B,OAAQmB,EAAOnB,GACfU,OAAQA,GAAU,OAA1B,OAA0B,CAA1B,OAEMc,EAAIC,WAAWv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als/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","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&\"","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=411118da&lang=scss&scoped=true&\"","<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, '"') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\n","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',{staticClass:\"hospital-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.regionCode,attrs:{\"label\":item.regionName,\"value\":item.regionCode}})}),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.hospitalId,staticClass:\"drop-item\",on:{\"click\":function($event){return _vm.tapSheetList(item.hospitalName)}}},[_c('div',{staticClass:\"info\"},[_c('p',{staticClass:\"info-title\"},[_vm._v(_vm._s(item.hospitalName))])])])}),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')],1)],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"hospital-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.regionCode\" :label=\"item.regionName\" :value=\"item.regionCode\"></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.hospitalId\" @click=\"tapSheetList(item.hospitalName)\">\r\n <div class=\"info\">\r\n <p class=\"info-title\">{{item.hospitalName}}</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 </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\n\r\nimport { queryIndexOrignList, queryNoLoadingGetHospitalList } from '@/api/herbalMedicine'\r\n\r\nexport default {\r\n name: 'HospitalMap',\r\n components: {\r\n BaiduMap,\r\n BmScale,\r\n BmNavigation,\r\n CityList\r\n },\r\n data () {\r\n return {\r\n map:{\r\n center: {lng:120.219375416, lat:30.2592444615},//'洛阳市',120.219375416,30.2592444615\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.getQueryGetHospitalList()\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({regionCode: \"all\", regionName: \"全城\"})\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.regionName === this.$route.query.city) this.scity = item.regionCode\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 getQueryGetHospitalList () {\r\n this.dropShow = false\r\n this.dataSheetList = []\r\n queryNoLoadingGetHospitalList({ \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 hospitalName: 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.getQueryGetHospitalList()\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 if (this.Location != '') {\r\n this.getQueryGetHospitalList()\r\n }\r\n },\r\n tapInputFocus (e) {\r\n if (this.selectBlur) {\r\n this.getQueryGetHospitalList()\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®ion=杭州&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=411118da&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=411118da&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 \"411118da\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
|