From 87169eaa6c9df167f0a47043da64435b9fee2e79 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 24 May 2022 14:27:51 +0800 Subject: [PATCH] 111 --- .env.development | 1 + src/views/modules/shequzhili/event/cpts/add.vue | 3 ++- src/views/modules/shequzhili/event/eventList.vue | 3 ++- src/views/modules/visual/basicinfo/basicInfoMain.vue | 11 +++++++---- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.env.development b/.env.development index f7a1145d0..fa857bf28 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ NODE_ENV=development # VUE_APP_API_SERVER = http://epmet-dev.elinkservice.cn:41080/api VUE_APP_API_SERVER = http://192.168.1.140/api # VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api +# VUE_APP_API_SERVER = https://epdc-shibei.elinkservice.cn/api #家中开发连级的后端服务 # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn:41080/api diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue index 294c1b1a3..d22ccc17f 100644 --- a/src/views/modules/shequzhili/event/cpts/add.vue +++ b/src/views/modules/shequzhili/event/cpts/add.vue @@ -484,7 +484,8 @@ export default { const url = "/gov/org/customergrid/gridoption" let params = { - agencyId: this.agencyId + agencyId: this.agencyId, + purpose: "addorupdate" } const { data, code, msg } = await requestPost(url, params) diff --git a/src/views/modules/shequzhili/event/eventList.vue b/src/views/modules/shequzhili/event/eventList.vue index c35141f1a..c82cd9c05 100644 --- a/src/views/modules/shequzhili/event/eventList.vue +++ b/src/views/modules/shequzhili/event/eventList.vue @@ -470,7 +470,8 @@ export default { const url = "/gov/org/customergrid/gridoption" let params = { - agencyId: this.agencyId + agencyId: this.agencyId, + purpose: "query" } const { data, code, msg } = await requestPost(url, params) diff --git a/src/views/modules/visual/basicinfo/basicInfoMain.vue b/src/views/modules/visual/basicinfo/basicInfoMain.vue index 28372ee7c..c304c20cf 100644 --- a/src/views/modules/visual/basicinfo/basicInfoMain.vue +++ b/src/views/modules/visual/basicinfo/basicInfoMain.vue @@ -172,7 +172,8 @@ let iconSource; // icon let polygonSource;//变电站标注多边形 let select;//选中标注 -let xoffset = 0.005 +let xoffset = 0.0051 +let yoffset = 0.0002 //url图标 @@ -633,10 +634,12 @@ const vueGis = { coorArray.forEach((item, index) => { if (index % 2 == 0) {//偶 - // item = (parseFloat(item) + xoffset) + '' + item = (parseFloat(item) + xoffset) + '' itemArray.push(item) } else {//奇 + item = (parseFloat(item) + yoffset) + '' itemArray.push(item) + polygonArray.push(itemArray) itemArray = [] } @@ -700,12 +703,12 @@ const vueGis = { coorArray.forEach((item, index) => { // itemArray.push(item) if (index % 2 == 0) {//偶 - // item = (parseFloat(item) + xoffset) + '' + item = (parseFloat(item) + xoffset) + '' itemArray.push(item) } else {//奇 - + item = (parseFloat(item) + yoffset) + '' itemArray.push(item) polygonArray.push(itemArray) itemArray = []