Browse Source

统计:企业地块地图,各地市根据数据显示对应颜色;

chengbeibei 10 months ago
parent
commit
f918c9d3fc
2 changed files with 21 additions and 5 deletions
  1. 8 3
      src/views/tj/compoent/map3Data.vue
  2. 13 2
      src/views/tj/sjtjModules.vue

+ 8 - 3
src/views/tj/compoent/map3Data.vue

@@ -29,8 +29,8 @@ export default {
       tem_areaData: "",//临时数据
       tem_areaData: "",//临时数据
       areaUrl: "",
       areaUrl: "",
       options: {},
       options: {},
-      myTool1_show: false
-
+      myTool1_show: false,
+      rangeMax: 200,
     }
     }
   },
   },
   mounted() {
   mounted() {
@@ -48,6 +48,9 @@ export default {
           }
           }
           this.getPie()
           this.getPie()
         })
         })
+        // 获取组件允许最大值
+        this.rangeMax = Math.max.apply(Math, newVal.map(item => item.value));
+
       }
       }
     },
     },
     tem_data: {
     tem_data: {
@@ -217,7 +220,8 @@ export default {
           text: ['高', '低'],
           text: ['高', '低'],
           showLabel: false,
           showLabel: false,
           seriesIndex: [0],
           seriesIndex: [0],
-
+          min: 0,
+          max: this.rangeMax,
           inRange: {
           inRange: {
             color: ['#ADD6F1', '#26AEFB', '#0290EB'] // 渐变颜色
             color: ['#ADD6F1', '#26AEFB', '#0290EB'] // 渐变颜色
           },
           },
@@ -266,6 +270,7 @@ export default {
         }]
         }]
       };
       };
       myChart.clear();
       myChart.clear();
+      console.log("tem_data", this.tem_data);
       myChart.setOption(this.options, true);
       myChart.setOption(this.options, true);
       myChart.resize();
       myChart.resize();
       //地图的点击事件
       //地图的点击事件

+ 13 - 2
src/views/tj/sjtjModules.vue

@@ -600,7 +600,7 @@ export default {
       }
       }
     },
     },
 
 
-
+    // 顶部四大卡片数据查询
     getAreaData() {
     getAreaData() {
       getAction("/qcsb.qyxx/qcQyxx/sbdkmj").then(res => {
       getAction("/qcsb.qyxx/qcQyxx/sbdkmj").then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -620,6 +620,7 @@ export default {
         }
         }
       })
       })
     },
     },
+    // 省属企业土地获取方式占比
     getPieData() {
     getPieData() {
       getAction("/qcsb.qyxx/qcQyxx/tdhqfs", {xzqh: this.tem_xzqh}).then(res => {
       getAction("/qcsb.qyxx/qcQyxx/tdhqfs", {xzqh: this.tem_xzqh}).then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -634,6 +635,7 @@ export default {
     //     }
     //     }
     //   })
     //   })
     // },
     // },
+    // 省属企业土地地块面积获取方式占比
     getPieData2() {
     getPieData2() {
       getAction("/qcsb.qyxx/qcQyxx/tdhqfsArea", {xzqh: this.tem_xzqh}).then(res => {
       getAction("/qcsb.qyxx/qcQyxx/tdhqfsArea", {xzqh: this.tem_xzqh}).then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -641,6 +643,7 @@ export default {
         }
         }
       })
       })
     },
     },
+    // 省直单位土地获取方式占比
     getPieDatasz() {
     getPieDatasz() {
       getAction("/qcsb.qyxx/qcQyxx/tdhqfssz", {xzqh: this.tem_xzqh}).then(res => {
       getAction("/qcsb.qyxx/qcQyxx/tdhqfssz", {xzqh: this.tem_xzqh}).then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -648,6 +651,7 @@ export default {
         }
         }
       })
       })
     },
     },
+    // 省直单位权证登记比例情况
     getDougatass() {
     getDougatass() {
       getAction("/qcsb.qyxx/qcQyxx/qzdjblss", {xzqh: this.tem_xzqh}).then(res => {
       getAction("/qcsb.qyxx/qcQyxx/qzdjblss", {xzqh: this.tem_xzqh}).then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -656,6 +660,7 @@ export default {
       })
       })
 
 
     },
     },
+    // 省属企业权证登记比例情况
     getDougatasz() {
     getDougatasz() {
       getAction("/qcsb.qyxx/qcQyxx/qzdjblsz", {xzqh: this.tem_xzqh}).then(res => {
       getAction("/qcsb.qyxx/qcQyxx/qzdjblsz", {xzqh: this.tem_xzqh}).then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -664,7 +669,7 @@ export default {
         }
         }
       })
       })
     },
     },
-    //统计-土地使用现状占比
+    //统计-土地使用现状占比/省属企业土地使用现状占比
     getTdsyxzDougatasz() {
     getTdsyxzDougatasz() {
       getAction("/qcsb.qyxx/qcQyxx/tdsyxzzb", {xzqh: this.tem_xzqh}).then(res => {
       getAction("/qcsb.qyxx/qcQyxx/tdsyxzzb", {xzqh: this.tem_xzqh}).then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -672,6 +677,7 @@ export default {
         }
         }
       })
       })
     },
     },
+    // 省直单位土地批准用途情况
     getBarsz() {
     getBarsz() {
       getAction("/qcsb.qyxx/qcQyxx/sjyttjsz", {xzqh: this.tem_xzqh}).then(res => {
       getAction("/qcsb.qyxx/qcQyxx/sjyttjsz", {xzqh: this.tem_xzqh}).then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -680,6 +686,7 @@ export default {
       })
       })
 
 
     },
     },
+    // 省属企业土地实际用途情况
     getBarss() {
     getBarss() {
       getAction("/qcsb.qyxx/qcQyxx/sjyttjss", {xzqh: this.tem_xzqh}).then(res => {
       getAction("/qcsb.qyxx/qcQyxx/sjyttjss", {xzqh: this.tem_xzqh}).then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -694,6 +701,7 @@ export default {
         })
         })
 
 
     },
     },
+    // 省直单位地块统计
     getMapSzData() {
     getMapSzData() {
       getAction("/qcsb.qyxx/qcQyxx/szdtdktj").then(res => {
       getAction("/qcsb.qyxx/qcQyxx/szdtdktj").then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -703,6 +711,7 @@ export default {
       })
       })
 
 
     },
     },
+    // 省属企业地块统计
     getMapSsData() {
     getMapSsData() {
       getAction("/qcsb.qyxx/qcQyxx/ssdtdktj").then(res => {
       getAction("/qcsb.qyxx/qcQyxx/ssdtdktj").then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -710,6 +719,7 @@ export default {
         }
         }
       })
       })
     },
     },
+    // 省属企业实际占用面积
     getBarssSjzyData() {
     getBarssSjzyData() {
       getAction("/qcsb.qyxx/qcQyxx/sszytdmjtj", {xzqh: this.tem_xzqh}).then(res => {
       getAction("/qcsb.qyxx/qcQyxx/sszytdmjtj", {xzqh: this.tem_xzqh}).then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -718,6 +728,7 @@ export default {
         }
         }
       })
       })
     },
     },
+    // 省直单位实际占用面积
     getBarszSjzyData() {
     getBarszSjzyData() {
       getAction("/qcsb.qyxx/qcQyxx/szzytdmjtj", {xzqh: this.tem_xzqh}).then(res => {
       getAction("/qcsb.qyxx/qcQyxx/szzytdmjtj", {xzqh: this.tem_xzqh}).then(res => {
         if (res.code == 200) {
         if (res.code == 200) {