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('此处没有标注')