diff --git a/src/views/dataBoard/overview/components/jdwgy.vue b/src/views/dataBoard/overview/components/jdwgy.vue index fa5fe7b02..4e9316780 100644 --- a/src/views/dataBoard/overview/components/jdwgy.vue +++ b/src/views/dataBoard/overview/components/jdwgy.vue @@ -138,15 +138,12 @@ export default { ); }); } else { - this.$http.get("/actual/base/streetOverview/queryPersonnelGroup?level=" + this.currentLevelData.orgLevel + "&orgId=" + this.currentLevelData.orgId + "&personnelType=" + this.peopleType).then(({ data: { code, msg, data } }) => { + this.$http.get("/actual/base/streetOverview/queryPersonnelGroup?level=" + this.currentLevelData.orgLevel + "&orgId=" + this.currentLevelData.orgId + "&personnelType=" + this.peopleType).then(({ data: { data } }) => { this.loading = false; - if (code === 0) { - this.list = data.personnelInfoVOList; - this.unitList = data.departmentInfoVOList ? data.departmentInfoVOList : []; - this.$emit("setNum", data.orgPersonnelVOList); - } else { - this.$message.error(msg); - } + console.log(data); + this.list = data.personnelInfoVOList; + this.unitList = data.departmentInfoVOList ? data.departmentInfoVOList : []; + this.$emit("setNum", data.orgPersonnelVOList); }); } }, diff --git a/src/views/dataBoard/overview/components/map-top.vue b/src/views/dataBoard/overview/components/map-top.vue index 58abae67a..7ce39a05f 100644 --- a/src/views/dataBoard/overview/components/map-top.vue +++ b/src/views/dataBoard/overview/components/map-top.vue @@ -4,7 +4,7 @@
- + 社区工作者
@@ -15,7 +15,7 @@
- + 网格员
@@ -24,9 +24,9 @@
-
+
- + 楼组/单元长
@@ -37,7 +37,7 @@
- + 公益岗
@@ -47,18 +47,16 @@
-
- 单位/组织 -
+
单位/组织
{{ numData.staffDepartmentNum }}
-
+
- + 志愿者
@@ -71,7 +69,7 @@
- + 微网格
@@ -82,7 +80,7 @@
- + 楼栋
@@ -90,10 +88,10 @@
-
+
- + 房屋
@@ -101,10 +99,10 @@
-
+
- + 居民
@@ -125,12 +123,16 @@ export default { }, level: { type: String, - default: '', + default: "", + }, + peopleType: { + type: String, + default: "", }, }, data() { return { - selectIndex: 0, + selectIndex: "", numData: {}, }; }, @@ -140,6 +142,18 @@ export default { this.getData(val); } }, + peopleType(val) { + if (val) { + this.selectIndex = val; + } + }, + level(val) { + if (val === "grid") { + this.selectIndex = "unit"; + } else { + this.selectIndex = "staffAgency"; + } + }, }, mounted() { if (this.currentLevelData.orgId) { @@ -152,26 +166,15 @@ export default { this.$emit("changeType", type); }, getData(item) { - this.$http - .get( - "/actual/base/streetOverview/mapOrgSum?level=" + - item.orgLevel + - "&orgId=" + - item.orgId - ) - .then(({data: {data}}) => { - this.numData = data; - }); + this.$http.get("/actual/base/streetOverview/mapOrgSum?level=" + item.orgLevel + "&orgId=" + item.orgId).then(({ data: { data } }) => { + this.numData = data; + }); }, }, }; - +