{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\basicDataManagement\\MapToolManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\basicDataManagement\\MapToolManagement.vue","mtime":1714500819515},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport req from '@/request.js';\nimport basicData from '@/api/basicData.js';\nvar yhxt = window.context.yhxt;\nexport default {\n name: 'MapToolManagement',\n data: function data() {\n var _ref;\n return _ref = {\n map: '',\n marker: '',\n radio: '桥梁',\n tableData: [],\n name: '桥梁名称',\n url: '/bizBridgeInformation/v1/getJson',\n //默认请求桥梁数据\n type: '1',\n //控制数据显示表头名称,1 代表是桥梁,隧道, 沿线设施,2 代表边坡, 3代表涵洞\n open: true\n }, _defineProperty(_ref, \"marker\", ''), _defineProperty(_ref, \"editObj\", ''), _defineProperty(_ref, \"value\", '桥梁'), _defineProperty(_ref, \"fullscreenLoading\", false), _defineProperty(_ref, \"markers\", []), _defineProperty(_ref, \"activeName\", 'first'), _defineProperty(_ref, \"currentPage\", 1), _defineProperty(_ref, \"pageSize\", 10), _defineProperty(_ref, \"total\", 0), _defineProperty(_ref, \"pageBean\", {\n page: 1,\n pageSize: 10,\n showTotal: true\n }), _defineProperty(_ref, \"searchForm\", {\n name: '',\n number: '',\n roadSegmentName: ''\n }), _defineProperty(_ref, \"roadData\", []), _ref;\n },\n created: function created() {\n var _this = this;\n this.roadData = this.getroad();\n setTimeout(function () {\n // this.initMap()\n }, 1000);\n //默认第一次请求桥梁信息\n this.getData(this.url).then(function (res) {\n console.log(res, 'map');\n _this.total = res.total;\n _this.pageSize = res.pageSize;\n _this.currentPage = res.page;\n _this.tableData = res.rows;\n });\n },\n watch: {\n iconStyle: function iconStyle() {\n console.log(this.iconStyle);\n }\n },\n methods: {\n getroad: function getroad() {\n var arr = [];\n basicData.getRoadManagement().then(function (res) {\n res.rows.forEach(function (item) {\n arr.push({\n value: item.name,\n key: item.name\n });\n });\n console.log(arr, '12');\n });\n return arr;\n },\n //分页\n handleSizeChange: function handleSizeChange(val) {\n console.log(1);\n this.pageBean.pageSize = val;\n var obj = {};\n obj.pageBean = this.pageBean;\n this.handleChange(this.value, obj);\n // console.log(`每页 ${val} 条`)\n },\n handleCurrentChange: function handleCurrentChange(val) {\n var query = [];\n var search = {\n road_segment_name_: this.searchForm.roadSegmentName,\n name: this.searchForm.name,\n number: this.searchForm.number\n };\n for (var i in search) {\n if (search[i]) {\n query.push({\n group: 'advance',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n this.pageBean.page = val;\n if (query.length == 0) {\n var obj = {};\n obj.pageBean = this.pageBean;\n this.handleChange(this.value, obj);\n } else {\n var data = {\n pageBean: {\n page: val,\n pageSize: 10,\n showTotal: true\n },\n querys: query\n };\n this.handleChange(this.value, data);\n }\n // console.log(`当前页: ${val}`)\n },\n //tab栏切换事件\n handleClick: function handleClick(tab) {\n var value = tab.label;\n this.handleChange(value);\n },\n // 标记地图坐标\n remark: function remark(obj) {\n //移除上一个标记点\n if (this.marker) {\n this.marker.setMap(null);\n this.marker = null;\n }\n //扩展出x,lat\n var lng = obj.lng,\n lat = obj.lat,\n name = obj.name,\n id = obj.id;\n if (lng && lat) {\n this.locationMark(lng, lat, name);\n // }\n } else {\n //如果不存在默认一个坐标\n lng = 117.678805;\n lat = 35.357825;\n this.locationMark(lng, lat, name);\n }\n },\n //修改地图横纵坐标\n edit: function edit(obj) {\n //暂存修改的数据\n this.$set(obj, 'show', true);\n this.editObj = obj;\n //移除上一个标记点\n if (this.marker) {\n this.marker.setMap(null);\n this.marker = null;\n }\n //扩展出x,lat\n var lng = obj.lng,\n lat = obj.lat,\n name = obj.name,\n id = obj.id;\n if (lng && lat) {\n // console.log(lng.indexOf('.'))\n // if (lng.indexOf('.') && lat.indexOf('.') != -1) {\n // this.locationMark(lng, lat, name)\n // } else {\n // lng = lng.slice(0, 3) + '.' + lng.slice(3)\n // lat = lat.slice(0, 2) + '.' + lat.slice(2)\n this.locationMark(lng, lat, name);\n // }\n } else {\n //如果不存在默认一个坐标\n lng = 117.678805;\n lat = 35.357825;\n this.locationMark(lng, lat, name);\n }\n },\n //将获取的坐标标记到地图上\n locationMark: function locationMark(lng, lat, name) {\n var _this2 = this;\n var icon;\n if (this.value == '桥梁') {\n icon = new AMap.Icon({\n size: new AMap.Size(48, 48),\n image: require(\"../../assets/img/qiaoliang.png\")\n });\n } else if (this.value == '隧道') {\n icon = new AMap.Icon({\n size: new AMap.Size(48, 48),\n image: require(\"../../assets/img/suidao.png\")\n });\n } else if (this.value == '边坡') {\n icon = new AMap.Icon({\n size: new AMap.Size(48, 48),\n image: require(\"../../assets/img/bianpo.png\")\n });\n } else if (this.value == '涵洞') {\n icon = new AMap.Icon({\n size: new AMap.Size(48, 48),\n image: require(\"../../assets/img/hanong.png\")\n });\n } else if (this.value == '沿线设施') {\n icon = new AMap.Icon({\n size: new AMap.Size(48, 48),\n image: require(\"../../assets/img/yanxiansheshi.png\")\n });\n } else {\n icon = new AMap.Icon({\n size: new AMap.Size(48, 48),\n image: require(\"../../assets/img/qiaoliang.png\")\n // imageSize: new AMap.Size(135, 40),\n // imageOffset: new AMap.Pixel(-8, -3)\n });\n }\n\n // 创建一个 Marker 实例:\n this.marker = new AMap.Marker({\n map: this.map,\n position: [lng, lat],\n // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]\n offset: new AMap.Pixel(-13, -30),\n title: name,\n icon: icon\n });\n // 将创建的点标记添加到已有的地图实例:\n this.map.add(this.marker);\n //定位导标记点\n this.map.setFitView();\n //设置图标移动\n // this.marker.setDraggable(true)\n //标记移动绑定事件\n // let amp = AMap.event.addListener\n // amp(this.marker, 'mouseup', (e) => {\n // console.log(this.editObj)\n // // console.log(e.lnglat)\n // let lng = e.lnglat.lng //经度\n // let lat = e.lnglat.lat //维度\n // // console.log(this.editObj)\n // //保存数据,保存之前给用户一个提示\n // this.editObj.lng = lng\n // this.editObj.lat = lat\n // this.editObj.show = true\n // // this.saveData(this.editObj)\n // })\n // let dvd=window.document.createElement('div')\n var info = [];\n if (this.value == '桥梁') {\n info.push(\"
桥梁编号 : \" + this.editObj.number + '
');\n info.push(\"桥梁名称 : \" + this.editObj.name + '
');\n info.push(\"所在路段 : \" + this.editObj.roadSegmentName + '
');\n info.push(\"桥梁类型 : \" + this.editObj.typeValue + '
');\n info.push(\"桥梁分类 : \" + this.editObj.categoryValue + '
');\n info.push(\"桥梁方向 : \" + this.editObj.directionValue + '
');\n info.push(\"桥面铺装 : \" + this.editObj.surfaceinstallValue + '
');\n info.push(\"桥梁长度 : \" + this.editObj.length + 'm
');\n info.push(\"跨径组合 : \" + this.editObj.spanCombo + '
');\n info.push(\"上部结构类型 : \" + this.editObj.shapeTypeValue + '
');\n info.push(\"横坐标 : \" + this.editObj.lng + '
');\n info.push(\"纵坐标 : \" + this.editObj.lat + '
隧道编号 : \" + this.editObj.number + '
');\n info.push(\"隧道名称 : \" + this.editObj.name + '
');\n info.push(\"所在路段 : \" + this.editObj.roadSegmentName + '
');\n info.push(\"隧道类型 : \" + this.editObj.typeValue + '
');\n info.push(\"隧道等级 : \" + this.editObj.gradeValue + '
');\n info.push(\"隧道方向 : \" + this.editObj.directionValue + '
');\n info.push(\"入口形式 : \" + this.editObj.entranceFormValue + '
');\n info.push(\"出口形式 : \" + this.editObj.exitFormValue + '
');\n info.push(\"断面形式 : \" + this.editObj.surfaceLayValue + '
');\n info.push(\"衬砌材料 : \" + this.editObj.onMaterialValue + '
');\n info.push(\"洞身材料 : \" + this.editObj.bodyMaterialValue + '
');\n info.push(\"横坐标 : \" + this.editObj.lng + '
');\n info.push(\"纵坐标 : \" + this.editObj.lat + '
边坡编号 : \" + this.editObj.number + '
');\n info.push(\"所在路段 : \" + this.editObj.roadSegmentName + '
');\n info.push(\"起点桩号 : \" + this.editObj.startPeg + '
');\n info.push(\"止点桩号 : \" + this.editObj.endPeg + '
');\n info.push(\"边坡方向 : \" + this.editObj.directionValue + '
');\n info.push(\"保护尺寸 : \" + this.editObj.protectiveDimension + '
');\n info.push(\"是否高危边坡 : \" + this.editObj.isHighRiskValue + '
');\n info.push(\"是否匝道结构物 : \" + this.editObj.isRampValue + '
');\n info.push(\"保护种类 : \" + this.editObj.protectType + '
');\n info.push(\"防护位置 : \" + this.editObj.geology + '
');\n info.push(\"横坐标 : \" + this.editObj.lng + '
');\n info.push(\"纵坐标 : \" + this.editObj.lat + '
涵洞编号 : \" + this.editObj.number + '
');\n info.push(\"涵洞类型 : \" + this.editObj.typeValue + '
');\n info.push(\"所在路段 : \" + this.editObj.roadSegmentName + '
');\n info.push(\"涵洞方向 : \" + this.editObj.directionValue + '
');\n info.push(\"涵洞高度 : \" + this.editObj.height + '
');\n info.push(\"涵洞长度 : \" + this.editObj.length + '
');\n info.push(\"上层材料 : \" + this.editObj.topMaterialValue + '
');\n info.push(\"身体材料 : \" + this.editObj.bodyMaterialValue + '
');\n info.push(\"入口材料 : \" + this.editObj.entranceMaterialValue + '
');\n info.push(\"出口材料 : \" + this.editObj.exitMaterialValue + '
');\n info.push(\"入口形式 : \" + this.editObj.entranceFormValue + '
');\n info.push(\"出口形式 : \" + this.editObj.exitFormValue + '
');\n info.push(\"用途 : \" + this.editObj.usesValue + '
');\n info.push(\"横坐标 : \" + this.editObj.lng + '
');\n info.push(\"纵坐标 : \" + this.editObj.lat + '
沿线设施名称 : \" + this.editObj.name + '
');\n info.push(\"所在路段 : \" + this.editObj.roadSegmentName + '
');\n info.push(\"设施类型 : \" + this.editObj.typeValue + '
');\n info.push(\"设施方向 : \" + this.editObj.directionValue + '
');\n info.push(\"桩号 : \" + this.editObj.peg + '
');\n info.push(\"横坐标 : \" + this.editObj.lng + '
');\n info.push(\"纵坐标 : \" + this.editObj.lat + '