+
-
+
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
-
+
@@ -235,7 +374,8 @@ export default {
methods: {
changeCustomerName() {
- this.customerName = localStorage.getItem("customerNameDataBoard") || "数据分析可视化平台";
+ this.customerName =
+ localStorage.getItem("customerNameDataBoard") || "数据分析可视化平台";
},
changeType(e) {
this.peopleType = e;
@@ -290,7 +430,8 @@ export default {
orgLevel: item.level,
};
} else {
- this.customerName = localStorage.getItem("customerNameDataBoard") || "数据分析可视化平台";
+ this.customerName =
+ localStorage.getItem("customerNameDataBoard") || "数据分析可视化平台";
this.currentLevelData = {
...this.$store.state.chooseArea.chooseName,
orgLevel: this.$store.state.chooseArea.chooseName.level,
@@ -326,7 +467,10 @@ export default {
if (!item.longitude) {
return this.$message.error("请先设置坐标");
}
- this.$refs.map.setDotMarker(item, [parseFloat(item.longitude), parseFloat(item.latitude)]);
+ this.$refs.map.setDotMarker(item, [
+ parseFloat(item.longitude),
+ parseFloat(item.latitude),
+ ]);
},
setNum(data) {
// data
@@ -357,19 +501,25 @@ export default {
// }
},
//获取地图上显示的组织数据
- async getMapData(orgId = this.$store.state.chooseArea.chooseName.orgId, level = this.$store.state.chooseArea.chooseName.level) {
+ async getMapData(
+ orgId = this.$store.state.chooseArea.chooseName.orgId,
+ level = this.$store.state.chooseArea.chooseName.level
+ ) {
const url = "org_map";
- this.$http.post(`/gov/org/agency/maporg`, { orgId, level }).then(({ data: { data } }) => {
- this.orgData = data;
- this.orgId = this.orgData.id;
- this.orgLevel = this.orgData.level;
- this.currentLevel = this.orgData.agencyLevel;
- this.currentLevelData = {
- orgId: this.orgId,
- orgLevel: this.currentLevel,
- };
- this.peopleType = this.currentLevel === "grid" ? "unit" : "staffAgency";
- });
+ this.$http
+ .post(`/gov/org/agency/maporg`, { orgId, level })
+ .then(({ data: { data } }) => {
+ this.orgData = data;
+ this.orgId = this.orgData.id;
+ this.orgLevel = this.orgData.level;
+ this.currentLevel = this.orgData.agencyLevel;
+ this.currentLevelData = {
+ orgId: this.orgId,
+ orgLevel: this.currentLevel,
+ };
+ this.peopleType =
+ this.currentLevel === "grid" ? "unit" : "staffAgency";
+ });
},
//获取地图上显示的组织数据
@@ -463,7 +613,11 @@ export default {
background: #000;
}
-
+