From b2289781b8ecdd943b0cc2257e0be56e43eaa3a8 Mon Sep 17 00:00:00 2001 From: jianjun Date: Fri, 1 Jul 2022 17:31:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=94=E5=A4=A7=E5=9B=BE=E5=B1=82bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/workSys/mapConfig.vue | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/views/modules/workSys/mapConfig.vue b/src/views/modules/workSys/mapConfig.vue index bc2f4d3d..1cfee9bc 100644 --- a/src/views/modules/workSys/mapConfig.vue +++ b/src/views/modules/workSys/mapConfig.vue @@ -622,6 +622,8 @@ const vueGis = { this.zoom = 13 } else if (agencyLevel === 'community') { this.zoom = 14 + }else{ + this.zoom = 11 } }, @@ -792,13 +794,23 @@ const vueGis = { //中国经纬度范围 // 经度范围:73°33′E至135°05′E 东经 // 纬度范围:3°51′N至53°33′N 北纬 + let aaa = this.polygonManullyString.replace(/\[/g, ',') + aaa = aaa.replace(/\]/g, ',') - const arrayString = this.polygonManullyString - let array = arrayString.split(/[, ()]/) + + let array = aaa.split(/[, ()]/) + // const arrayString = this.polygonManullyString + // let array = arrayString.split(",|(|)|[|]") console.log(array) let polygonStringResult = '' + // const arrayString = this.polygonManullyString + // let array = arrayString.split(/[, ()]/) + // console.log(array) + // let polygonStringResult = '' + + array.forEach(element => { let num = Number(element) if (num) { @@ -1139,9 +1151,9 @@ export default vueGis; .div_textarea { text-align: center; } - + +