From 8115ffb36245b4d37e3c00fe51cdae25247029cf Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 26 Jan 2022 13:57:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E8=AE=B0=E5=BD=95=EF=BC=8C?= =?UTF-8?q?=E5=88=86=E6=9E=90=E5=B9=B3=E5=8F=B0=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/communityService/sqzzz/index.vue | 2 +- .../visual/communityGovern/processAnalyze.vue | 41 ++++++++++++++++++- .../visual/components/screen-map/index.vue | 9 ---- 3 files changed, 40 insertions(+), 12 deletions(-) diff --git a/src/views/modules/communityService/sqzzz/index.vue b/src/views/modules/communityService/sqzzz/index.vue index ade23d15..e0f09f0d 100644 --- a/src/views/modules/communityService/sqzzz/index.vue +++ b/src/views/modules/communityService/sqzzz/index.vue @@ -165,7 +165,7 @@ top="5vh" @closed="diaClose"> + :serviceType="'community_org'"> diff --git a/src/views/modules/visual/communityGovern/processAnalyze.vue b/src/views/modules/visual/communityGovern/processAnalyze.vue index 7bc6bf1f..d55502af 100644 --- a/src/views/modules/visual/communityGovern/processAnalyze.vue +++ b/src/views/modules/visual/communityGovern/processAnalyze.vue @@ -434,8 +434,45 @@ export default { }, //点击项目 - clickProject (feature) { - console.log('项目信息', feature.values_.properties) + async clickProject (feature) { + console.log(feature) + const featureInfo = feature.values_.properties.info + let coordinate = [featureInfo.longitude, featureInfo.latitude] + const url = "/gov/project/trace/projectdetail"; + + const { data, code, msg } = await requestPost(url, { + projectId: featureInfo.projectId, + }); + + if (code === 0) { + let projectInfo = data; + let showData = ` +
项目信息
+
项目标题: + `+ data.projectTitle + ` +
+
项目背景: + `+ data.backGround + ` +
+
项目方案: + `+ data.projectTitle + ` +
+
内部备注: + `+ data.internalRemark + ` +
+
当前处理部门: + `+ data.departmentNameList.join("、") + ` +
+ + ` + + this.$refs.map.handleShowPopup(showData, coordinate) + + + } else { + this.$message.error(msg); + } + }, pieInitOk (dom) { diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue index 52abb16e..df996b48 100644 --- a/src/views/modules/visual/components/screen-map/index.vue +++ b/src/views/modules/visual/components/screen-map/index.vue @@ -638,15 +638,6 @@ const vueGis = { } else if (_that.clickType === 'popup') { _that.$emit('clickFeature', feature) - // _that.overlay.getElement().parentNode.style.display = 'block' - // _that.overlay.getElement().parentNode.parentNode.style.display = 'block' - - // content.innerHTML = ` - //

你点击了这里:

- //

经纬度:

- //

坐标:

X:   Y: `; - // _that.overlay.setPosition(evt.coordinate); //把 overlay 显示到指定的 x,y坐标 - } else { console.log('此处没有标注')