Преглед изворни кода

经确认,首页土地资源为5个指标。资源环境项目中间标题为:实现“五个结合”审计项目。

DESKTOP-6LTVLN7\Liumouren пре 2 година
родитељ
комит
d8d0031ce8

+ 245 - 157
public/static/json/home/layout_land.json

@@ -1,157 +1,245 @@
-[{
-    "name":"北蔡镇",
-    "pid":310115105000,
-    "data":[{
-        "year":2019,
-        "type":"基本农田面积",
-        "area":150
-    },{
-        "year":2020,
-        "type":"基本农田面积",
-        "area":160
-    },{
-        "year":2021,
-        "type":"基本农田面积",
-        "area":170
-    },{
-        "year":2019,
-        "type":"减量化面积",
-        "area":170
-    },{
-        "year":2020,
-        "type":"减量化面积",
-        "area":170
-    },{
-        "year":2021,
-        "type":"减量化面积",
-        "area":170
-    },{
-        "year":2019,
-        "type":"储备土地面积",
-        "area":170
-    },{
-        "year":2020,
-        "type":"储备土地面积",
-        "area":170
-    },{
-        "year":2021,
-        "type":"储备土地面积",
-        "area":170
-    },{
-        "year":2019,
-        "type":"一般耕地面积",
-        "area":170
-    },{
-        "year":2020,
-        "type":"一般耕地面积",
-        "area":170
-    },{
-        "year":2021,
-        "type":"一般耕地面积",
-        "area":170
-    }]
-},{
-    "name":"祝桥镇",
-    "pid":310115105000,
-    "data":[{
-        "year":2019,
-        "type":"基本农田面积",
-        "area":150
-    },{
-        "year":2020,
-        "type":"基本农田面积",
-        "area":160
-    },{
-        "year":2021,
-        "type":"基本农田面积",
-        "area":170
-    },{
-        "year":2019,
-        "type":"减量化面积",
-        "area":170
-    },{
-        "year":2020,
-        "type":"减量化面积",
-        "area":170
-    },{
-        "year":2021,
-        "type":"减量化面积",
-        "area":170
-    },{
-        "year":2019,
-        "type":"储备土地面积",
-        "area":170
-    },{
-        "year":2020,
-        "type":"储备土地面积",
-        "area":170
-    },{
-        "year":2021,
-        "type":"储备土地面积",
-        "area":170
-    },{
-        "year":2019,
-        "type":"一般耕地面积",
-        "area":170
-    },{
-        "year":2020,
-        "type":"一般耕地面积",
-        "area":170
-    },{
-        "year":2021,
-        "type":"一般耕地面积",
-        "area":170
-    }]
-},{
-    "name":"大团镇",
-    "pid":310115105000,
-    "data":[{
-        "year":2019,
-        "type":"基本农田面积",
-        "area":130
-    },{
-        "year":2020,
-        "type":"基本农田面积",
-        "area":160
-    },{
-        "year":2021,
-        "type":"基本农田面积",
-        "area":170
-    },{
-        "year":2019,
-        "type":"减量化面积",
-        "area":170
-    },{
-        "year":2020,
-        "type":"减量化面积",
-        "area":160
-    },{
-        "year":2021,
-        "type":"减量化面积",
-        "area":170
-    },{
-        "year":2019,
-        "type":"储备土地面积",
-        "area":170
-    },{
-        "year":2020,
-        "type":"储备土地面积",
-        "area":170
-    },{
-        "year":2021,
-        "type":"储备土地面积",
-        "area":170
-    },{
-        "year":2019,
-        "type":"一般耕地面积",
-        "area":210
-    },{
-        "year":2020,
-        "type":"一般耕地面积",
-        "area":170
-    },{
-        "year":2021,
-        "type":"一般耕地面积",
-        "area":170
-    }]
-}]
+[
+    {
+        "name": "北蔡镇",
+        "pid": 310115105000,
+        "data": [
+            {
+                "year": 2019,
+                "type": "基本农田面积",
+                "area": 150
+            },
+            {
+                "year": 2020,
+                "type": "基本农田面积",
+                "area": 160
+            },
+            {
+                "year": 2021,
+                "type": "基本农田面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "减量化面积",
+                "area": 170
+            },
+            {
+                "year": 2020,
+                "type": "减量化面积",
+                "area": 170
+            },
+            {
+                "year": 2021,
+                "type": "减量化面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "储备土地面积",
+                "area": 170
+            },
+            {
+                "year": 2020,
+                "type": "储备土地面积",
+                "area": 170
+            },
+            {
+                "year": 2021,
+                "type": "储备土地面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "一般耕地面积",
+                "area": 170
+            },
+            {
+                "year": 2020,
+                "type": "一般耕地面积",
+                "area": 170
+            },
+            {
+                "year": 2021,
+                "type": "一般耕地面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "土地资源面积",
+                "area": 170
+            },
+            {
+                "year": 2020,
+                "type": "土地资源面积",
+                "area": 170
+            },
+            {
+                "year": 2021,
+                "type": "土地资源面积",
+                "area": 170
+            }
+        ]
+    },
+    {
+        "name": "祝桥镇",
+        "pid": 310115105000,
+        "data": [
+            {
+                "year": 2019,
+                "type": "基本农田面积",
+                "area": 150
+            },
+            {
+                "year": 2020,
+                "type": "基本农田面积",
+                "area": 160
+            },
+            {
+                "year": 2021,
+                "type": "基本农田面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "减量化面积",
+                "area": 170
+            },
+            {
+                "year": 2020,
+                "type": "减量化面积",
+                "area": 170
+            },
+            {
+                "year": 2021,
+                "type": "减量化面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "储备土地面积",
+                "area": 170
+            },
+            {
+                "year": 2020,
+                "type": "储备土地面积",
+                "area": 170
+            },
+            {
+                "year": 2021,
+                "type": "储备土地面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "一般耕地面积",
+                "area": 170
+            },
+            {
+                "year": 2020,
+                "type": "一般耕地面积",
+                "area": 170
+            },
+            {
+                "year": 2021,
+                "type": "一般耕地面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "土地资源面积",
+                "area": 170
+            },
+            {
+                "year": 2020,
+                "type": "土地资源面积",
+                "area": 170
+            },
+            {
+                "year": 2021,
+                "type": "土地资源面积",
+                "area": 170
+            }
+        ]
+    },
+    {
+        "name": "大团镇",
+        "pid": 310115105000,
+        "data": [
+            {
+                "year": 2019,
+                "type": "基本农田面积",
+                "area": 130
+            },
+            {
+                "year": 2020,
+                "type": "基本农田面积",
+                "area": 160
+            },
+            {
+                "year": 2021,
+                "type": "基本农田面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "减量化面积",
+                "area": 170
+            },
+            {
+                "year": 2020,
+                "type": "减量化面积",
+                "area": 160
+            },
+            {
+                "year": 2021,
+                "type": "减量化面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "储备土地面积",
+                "area": 170
+            },
+            {
+                "year": 2020,
+                "type": "储备土地面积",
+                "area": 170
+            },
+            {
+                "year": 2021,
+                "type": "储备土地面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "一般耕地面积",
+                "area": 210
+            },
+            {
+                "year": 2020,
+                "type": "一般耕地面积",
+                "area": 170
+            },
+            {
+                "year": 2021,
+                "type": "一般耕地面积",
+                "area": 170
+            },
+            {
+                "year": 2019,
+                "type": "土地资源面积",
+                "area": 170
+            },
+            {
+                "year": 2020,
+                "type": "土地资源面积",
+                "area": 170
+            },
+            {
+                "year": 2021,
+                "type": "土地资源面积",
+                "area": 170
+            }
+        ]
+    }
+]

+ 9 - 9
public/static/json/home/layout_project.json

@@ -15,15 +15,15 @@
         "area":170
     },{
         "year":2019,
-        "type":"自然资源环境项目",
+        "type":"实现“五个结合”审计项目",
         "area":170
     },{
         "year":2020,
-        "type":"自然资源环境项目",
+        "type":"实现“五个结合”审计项目",
         "area":170
     },{
         "year":2021,
-        "type":"自然资源环境项目",
+        "type":"实现“五个结合”审计项目",
         "area":170
     },{
         "year":2019,
@@ -55,15 +55,15 @@
         "area":170
     },{
         "year":2019,
-        "type":"自然资源环境项目",
+        "type":"实现“五个结合”审计项目",
         "area":170
     },{
         "year":2020,
-        "type":"自然资源环境项目",
+        "type":"实现“五个结合”审计项目",
         "area":170
     },{
         "year":2021,
-        "type":"自然资源环境项目",
+        "type":"实现“五个结合”审计项目",
         "area":170
     },{
         "year":2019,
@@ -95,15 +95,15 @@
         "area":170
     },{
         "year":2019,
-        "type":"自然资源环境项目",
+        "type":"实现“五个结合”审计项目",
         "area":170
     },{
         "year":2020,
-        "type":"自然资源环境项目",
+        "type":"实现“五个结合”审计项目",
         "area":160
     },{
         "year":2021,
-        "type":"自然资源环境项目",
+        "type":"实现“五个结合”审计项目",
         "area":170
     },{
         "year":2019,

+ 1 - 1
src/components/common/TagTableCard.vue

@@ -22,7 +22,7 @@
       </div>
     </div>
     <div>
-      <TagCard :data="echartData[4]"></TagCard>
+      <TagCard :data="echartData[4]" :index="4" :chartCardDataIndex="mousemoveIndex" @changeMousemoveIndex="mousemoveEvent"></TagCard>
     </div>
     <div class="displayFlex-c">
       <div

+ 8 - 8
src/components/layout/MenuCard.vue

@@ -225,9 +225,9 @@ export default {
                 sum += this.menuData.topSolt.commonData[_index].value;
                 _index++;
               }
-              if (this.menuData.topSolt.commonData[4]) {
-                this.menuData.topSolt.commonData[4].valueData = [sum];
-              }
+              // if (this.menuData.topSolt.commonData[4]) {
+              //   this.menuData.topSolt.commonData[4].valueData = [sum];
+              // }
             }
             this.dataInitLoading = false;
           },
@@ -580,7 +580,7 @@ export default {
           this.menuData.topSolt.commonData[0].valueData = this.resData[this.$store.state.homeSpecialTown].valueData;
         } else {
           let _index = 0;
-          let sum = 0;
+          // let sum = 0;
           for (let keys in this.resData["全部"]) {
             this.menuData.topSolt.commonData[_index].title = keys;
             this.menuData.topSolt.commonData[_index].categoryData =
@@ -591,12 +591,12 @@ export default {
               this.resData[this.$store.state.homeSpecialTown][keys].valueData[
                 this.resData[this.$store.state.homeSpecialTown][keys].valueData.length - 1
               ];
-            sum += this.menuData.topSolt.commonData[_index].value;
+            // sum += this.menuData.topSolt.commonData[_index].value;
             _index++;
           }
-          if (this.menuData.topSolt.commonData[4]) {
-            this.menuData.topSolt.commonData[4].valueData = [sum];
-          }
+          // if (this.menuData.topSolt.commonData[4]) {
+          //   this.menuData.topSolt.commonData[4].valueData = [sum];
+          // }
         }
       } else if (this.menuData && this.menuData.commonName && this.menuData.commonName === "TOP") {
         this.topData(this.$store.state.homeSpecialTown);

+ 4 - 1
src/config/common.js

@@ -604,8 +604,11 @@ export const menuOnLine = {
           {
             type: "tb",
             title: "土地资源面积",
+            value: 450,
             valueData: [172],
             unit: "公顷",
+            categoryData: ["2019", "2020", "2021"],
+            valueData: [40, 420, 450],
           },
         ],
       },
@@ -928,7 +931,7 @@ export const menuOnLine = {
             },
             {
               type: "tb",
-              title: "自然资源环境项目",
+              title: "实现“五个结合”审计项目",
               value: 156,
               unit: "个",
               categoryData: ["2019", "2020", "2021"],

+ 3 - 1
src/views/HomeView.vue

@@ -270,7 +270,9 @@ export default {
         }, 300);
       }
       // this.menus = menuOnLine;
-      // this.getSourcesData();
+      // setTimeout(() => {
+      //   this.getSourcesData();
+      // }, 300);
     },
     navSelect: function (data) {
       this.$store.commit("changeNavSelect", data);