Browse Source

五大图层可视化

shibei_master
jiangyy 3 years ago
parent
commit
21181b383f
  1. 12
      src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue

12
src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue

@ -391,7 +391,7 @@ import { Circle as CircleStyle, Icon, Fill, Stroke, Style, Text } from 'ol/style
import nextTick from 'dai-js/tools/nextTick' import nextTick from 'dai-js/tools/nextTick'
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { Loading } from 'element-ui'; //Loading import { Loading } from 'element-ui'; //Loading
import { requestPost } from "@/js/dai/request"; import { requestPost, requestGet } from "@/js/dai/request";
import cptTb from "@/views/modules/visual/cpts/tb"; import cptTb from "@/views/modules/visual/cpts/tb";
@ -1030,6 +1030,7 @@ const vueGis = {
this.selInfo = JSON.parse(JSON.stringify(data)) this.selInfo = JSON.parse(JSON.stringify(data))
this.handleShowPopup(coordinate) this.handleShowPopup(coordinate)
} else { } else {
this.$message.error(msg) this.$message.error(msg)
} }
@ -1125,12 +1126,17 @@ const vueGis = {
this.getMapTable(); this.getMapTable();
}, },
handleSearch () { handleSearch () {
this.demand.pageNo = 1
this.getTable();
this.getMapTable();
}, },
// //
handleClickRow (index) { handleClickRow (index) {
let selData = this.tableList[index] let selData = this.tableList[index]
mapView.setCenter([selData.longitude, selData.latitude]); if (selData.longitude && selData.latitude) {
mapView.setCenter([selData.longitude, selData.latitude]);
}
this.clickMapVolunteer(selData) this.clickMapVolunteer(selData)
// alert(index) // alert(index)

Loading…
Cancel
Save