| src/views/three/resPic/resPic.vue | ●●●●● patch | view | raw | blame | history | |
| src/views/three/riskHidDangPic/riskHidDangPic.vue | ●●●●● patch | view | raw | blame | history |
src/views/three/resPic/resPic.vue
@@ -42,9 +42,9 @@ import MapBox from "@/components/map/mapBox" import SearchMap from "@/components/map/searchMap" import DcMap from "@/components/map/dcMap" import { exportBlob } from "@/api/common"; import { getToken } from "@/util/auth"; import { downloadXls } from "@/util/util"; import { exportBlob } from "@/api/common" import { getToken } from "@/util/auth" import { downloadXls } from "@/util/util" export default { components: { DcMap, @@ -352,17 +352,17 @@ methods: { //下面为导入操作 handleImport() { this.excelBox = true; this.excelBox = true }, uploadAfter(res, done, loading, column) { window.console.log(column); this.excelBox = false; this.refreshChange(); done(); window.console.log(column) this.excelBox = false this.refreshChange() done() }, handleTemplate() { exportBlob(`/api/blade-resPicDetail/resPicDetail/export-template?${this.website.tokenHeader}=${getToken()}`).then(res => { downloadXls(res.data, "可用资源图明细数据模板.xlsx"); downloadXls(res.data, "可用资源图明细数据模板.xlsx") }) }, getUserInfo() { @@ -447,9 +447,9 @@ var data = res.data.data this.form = data this.form['datetimerange'] = [data.startTime, data.endTime] this.form['longitude'] = data.position.split(" ")[0] this.form['latitude'] = data.position.split(" ")[1] this.point = "POINT(" + this.form.longitude + " " + this.form.latitude + ")" this.form['lng'] = data.position.split(" ")[0] this.form['lat'] = data.position.split(" ")[1] this.point = "POINT(" + this.form.lng + " " + this.form.lat + ")" this.$refs.dcMap.showPolygon(this.form.activityArea) }) } @@ -512,18 +512,18 @@ this.form.activityArea = data }, getLonLat(data) { this.chosePoint.longitude = data[0] this.chosePoint.latitude = data[1] this.chosePoint.lng = data[0] this.chosePoint.lat = data[1] }, getAddress(data) { this.chosePoint.address = data }, confirmLonLat() { if (this.chosePoint.longitude) { this.form.longitude = this.chosePoint.longitude this.form.latitude = this.chosePoint.latitude if (this.chosePoint.lng) { this.form.lng = this.chosePoint.lng this.form.lat = this.chosePoint.lat this.form.place = this.chosePoint.address this.point = "POINT(" + this.form.longitude + " " + this.form.latitude + ")" this.point = "POINT(" + this.form.lng + " " + this.form.lat + ")" this.placeBox = false } else { this.$alert('该点没有位置信息,请重新选点!', '提示', { src/views/three/riskHidDangPic/riskHidDangPic.vue
@@ -40,9 +40,9 @@ import MapBox from "@/components/map/mapBox" import SearchMap from "@/components/map/searchMap" import DcMap from "@/components/map/dcMap" import { exportBlob } from "@/api/common"; import { getToken } from "@/util/auth"; import { downloadXls } from "@/util/util"; import { exportBlob } from "@/api/common" import { getToken } from "@/util/auth" import { downloadXls } from "@/util/util" export default { components: { DcMap, @@ -296,17 +296,17 @@ methods: { //下面为导入操作 handleImport() { this.excelBox = true; this.excelBox = true }, uploadAfter(res, done, loading, column) { window.console.log(column); this.excelBox = false; this.refreshChange(); done(); window.console.log(column) this.excelBox = false this.refreshChange() done() }, handleTemplate() { exportBlob(`/api/blade-riskHidDangPicDetail/riskHidDangPicDetail/export-template?${this.website.tokenHeader}=${getToken()}`).then(res => { downloadXls(res.data, "风险隐患图明细数据模板.xlsx"); downloadXls(res.data, "风险隐患图明细数据模板.xlsx") }) }, getUserInfo() { @@ -391,9 +391,9 @@ var data = res.data.data this.form = data this.form['datetimerange'] = [data.startTime, data.endTime] this.form['longitude'] = data.position.split(" ")[0] this.form['latitude'] = data.position.split(" ")[1] this.point = "POINT(" + this.form.longitude + " " + this.form.latitude + ")" this.form['lng'] = data.position.split(" ")[0] this.form['lat'] = data.position.split(" ")[1] this.point = "POINT(" + this.form.lng + " " + this.form.lat + ")" this.$refs.dcMap.showPolygon(this.form.activityArea) }) } @@ -456,18 +456,18 @@ this.form.activityArea = data }, getLonLat(data) { this.chosePoint.longitude = data[0] this.chosePoint.latitude = data[1] this.chosePoint.lng = data[0] this.chosePoint.lat = data[1] }, getAddress(data) { this.chosePoint.address = data }, confirmLonLat() { if (this.chosePoint.longitude) { this.form.longitude = this.chosePoint.longitude this.form.latitude = this.chosePoint.latitude if (this.chosePoint.lng) { this.form.lng = this.chosePoint.lng this.form.lat = this.chosePoint.lat this.form.place = this.chosePoint.address this.point = "POINT(" + this.form.longitude + " " + this.form.latitude + ")" this.point = "POINT(" + this.form.lng + " " + this.form.lat + ")" this.placeBox = false } else { this.$alert('该点没有位置信息,请重新选点!', '提示', {