| @@ -1417,7 +1417,6 @@ | |||||
| this.jzhcssfyzfOptions = this.dictTypeList.jzhcssfyzf; | this.jzhcssfyzfOptions = this.dictTypeList.jzhcssfyzf; | ||||
| this.cybzOptions = this.dictTypeList.member_remark; | this.cybzOptions = this.dictTypeList.member_remark; | ||||
| }) | }) | ||||
| this.getDicts("family_status").then(response => { | this.getDicts("family_status").then(response => { | ||||
| var arr = []; | var arr = []; | ||||
| response.data.forEach(function (item) { | response.data.forEach(function (item) { | ||||
| @@ -2179,6 +2178,21 @@ | |||||
| }) | }) | ||||
| } | } | ||||
| }); | }); | ||||
| this.mapZjdData = ""; | |||||
| this.mapZrzData = ""; | |||||
| this.mapFsssData = ""; | |||||
| //that.mapZjdTeAll.active ="1"; | |||||
| this.mapZjdTeAll.mapZjdAData = {}; | |||||
| this.mapZjdTeAll.mapZrzAData = {}; | |||||
| this.mapZjdTeAll.mapFsssAData = {}; | |||||
| this.mapZjdDataTure = ""; | |||||
| this.mapXs =false; | |||||
| this.mapClick =""; | |||||
| this.mapAddJump = ""; | |||||
| this.backTheGeom = ""; | |||||
| this.zjdHcDy = ""; | |||||
| this.mapZjdDataTure = ""; | |||||
| this.mapAddJumpNum =""; | |||||
| }, | }, | ||||
| // 查询农户列表 | // 查询农户列表 | ||||
| getNh(){ | getNh(){ | ||||
| @@ -2191,11 +2205,41 @@ | |||||
| this.nhlist = response.rows | this.nhlist = response.rows | ||||
| this.totalN = response.total | this.totalN = response.total | ||||
| }); | }); | ||||
| this.mapZjdData = ""; | |||||
| this.mapZrzData = ""; | |||||
| this.mapFsssData = ""; | |||||
| //that.mapZjdTeAll.active ="1"; | |||||
| this.mapZjdTeAll.mapZjdAData = {}; | |||||
| this.mapZjdTeAll.mapZrzAData = {}; | |||||
| this.mapZjdTeAll.mapFsssAData = {}; | |||||
| this.mapZjdDataTure = ""; | |||||
| this.mapXs =false; | |||||
| this.mapClick =""; | |||||
| this.mapAddJump = ""; | |||||
| this.backTheGeom = ""; | |||||
| this.zjdHcDy = ""; | |||||
| this.mapZjdDataTure = ""; | |||||
| this.mapAddJumpNum =""; | |||||
| }, | }, | ||||
| //调查 | //调查 | ||||
| getDc(){ | getDc(){ | ||||
| //删除地图选中状态 | //删除地图选中状态 | ||||
| $("#deleteHistoryMap").trigger("click"); | $("#deleteHistoryMap").trigger("click"); | ||||
| this.mapZjdData = ""; | |||||
| this.mapZrzData = ""; | |||||
| this.mapFsssData = ""; | |||||
| //that.mapZjdTeAll.active ="1"; | |||||
| this.mapZjdTeAll.mapZjdAData = {}; | |||||
| this.mapZjdTeAll.mapZrzAData = {}; | |||||
| this.mapZjdTeAll.mapFsssAData = {}; | |||||
| this.mapZjdDataTure = ""; | |||||
| this.mapXs =false; | |||||
| this.mapClick =""; | |||||
| this.mapAddJump = ""; | |||||
| this.backTheGeom = ""; | |||||
| this.zjdHcDy = ""; | |||||
| this.mapZjdDataTure = ""; | |||||
| this.mapAddJumpNum =""; | |||||
| }, | }, | ||||
| // 农户信息搜索框 | // 农户信息搜索框 | ||||
| onSearchnh(){ | onSearchnh(){ | ||||
| @@ -3401,12 +3445,10 @@ | |||||
| // map.getView().setResolution(resolution); | // map.getView().setResolution(resolution); | ||||
| // //初始视图大小控制 | // //初始视图大小控制 | ||||
| // map.getView().setZoom(16.0); | // map.getView().setZoom(16.0); | ||||
| console.log(data); | |||||
| console.log(data.features[0].geometry.coordinates[0][0][0]); | |||||
| map.getView().animate({ | map.getView().animate({ | ||||
| // 只设置需要的属性即可 | // 只设置需要的属性即可 | ||||
| center: data.features[0].geometry.coordinates[0][0][0], // 中心点 | center: data.features[0].geometry.coordinates[0][0][0], // 中心点 | ||||
| zoom: 16.9, // 缩放级别 | |||||
| zoom: 15.9, // 缩放级别 | |||||
| rotation: undefined, // 缩放完成view视图旋转弧度 | rotation: undefined, // 缩放完成view视图旋转弧度 | ||||
| duration: 1000, // 缩放持续时间,默认不需要设置 | duration: 1000, // 缩放持续时间,默认不需要设置 | ||||
| resolution: Math.random() * 0.00000001, | resolution: Math.random() * 0.00000001, | ||||