Bläddra i källkod

首页单位; 综合分析图层初始化分页部分

Bella 2 år sedan
förälder
incheckning
d601f8168a

+ 2 - 2
src/components/popup/CaseAuditPopup.vue

@@ -109,12 +109,12 @@ export default {
   watch: {
     getPopupStatus(val) {
       if (val.index === 1 && val.subIndex === 0) {
-        console.log("激活疑点审计按钮");
+        // console.log("激活疑点审计按钮");
         this.status = "special";
       }
 
       if (val.index === -1 && val.subIndex === -1) {
-        console.log("未激活疑点审计按钮");
+        // console.log("未激活疑点审计按钮");
         this.status = "normal";
       }
       // console.log(val, "疑点审计当前的状态");

+ 1 - 1
src/config/common.js

@@ -624,7 +624,7 @@ export const menusMap = {
           {
             type: "tb",
             title: "水域面积",
-            unit: "",
+            unit: "公顷",
             categoryData: ["2019", "2020", "2021"],
             valueData: [40, 420, 654],
           },

+ 4 - 5
src/views/ComprehensiveAnalysis.vue

@@ -498,6 +498,8 @@ export default {
             this.$message.info("暂无数据!");
           }
           if (res.code === 200 && res.content.data.length > 0) {
+            this.paginationData.currentPage = 1
+            this.paginationData.total = res.content.count
             let uniqueId = id;
             map2DViewer.analysisGroups[uniqueId] = L.featureGroup();
             map2DViewer.analysisGroups[uniqueId].addTo(map2DViewer.map);
@@ -562,13 +564,13 @@ export default {
       };
       this.$Post(this.urlsCollection.selectContentList, layerParams).then(
         (res) => {
-          console.log(res, "changeSingeLayer");
+          // console.log(res, "changeSingeLayer");
           if (res.code === 200 && res.content.data.length > 0) {
             this.paginationData.currentPage = val;
             this.paginationData.total = res.content.count;
             let uniqueId = id;
             if (map2DViewer.analysisGroups[uniqueId]) {
-              console.log("当前的analysisGroups有数据");
+              // console.log("当前的analysisGroups有数据");
               // map2DViewer.analysisGroups[uniqueId].remove()
               map2DViewer.analysisGroups[uniqueId].clearLayers();
               this.originalData[uniqueId] = res.content.data.map((ele) => {
@@ -1012,7 +1014,6 @@ export default {
             };
             this.$Post(this.urlsCollection.selectContentList, params).then(
               (res) => {
-                console.log(res, "res");
                 if (res.code === 202 && res.content === "数据不存在") {
                   this.$message.info("当前用户无权限!");
                   layerAuthorityMap.set(data.id, "无权限");
@@ -1022,8 +1023,6 @@ export default {
                   layerAuthorityMap.set(data.id, "有权限");
                   this.$store.state.treeDataCollection.set(data.id, {
                     mainType: data.mainType,
-                    // town: data.town,
-                    // type: data.type,
                   });
                   this.displaySingleLayer(data.columnId, data.id);
                 }