Procházet zdrojové kódy

首页街镇资源分类

Bella před 2 roky
rodič
revize
27b55b42b2
2 změnil soubory, kde provedl 6 přidání a 5 odebrání
  1. 3 2
      src/views/ComprehensiveAnalysis.vue
  2. 3 3
      src/views/HomeView.vue

+ 3 - 2
src/views/ComprehensiveAnalysis.vue

@@ -432,7 +432,7 @@ export default {
   },
   created() {
     this.getColumnList();
-    // this.classDictQuery("0", "c_task_type", "任务类型");
+    this.classDictQuery("0", "c_task_type", "任务类型");
     this.classDictQuery("0", "浦东新区行政区划", "浦东新区行政区划");
 
     //获取我的标记数据
@@ -502,6 +502,7 @@ export default {
       this.modelData = [];
       this.$Post(this.urlsCollection.getColumnList).then((res) => {
         if (res.code === 200 && res.content.length > 0) {
+          // debugger
           let data = res.content.map((item1) => {
             if (item1.title === "所有图层" && item1.columnList.length > 0) {
               treeIdMap.set(
@@ -536,7 +537,7 @@ export default {
                                     id: `${item3.title}_${item3.id}`,
                                     label: item3.title,
                                     tag: item3.tag,
-                                    children:
+                                    children:item3.columnList&&
                                       item3.columnList.length === 0
                                         ? []
                                         : item3.columnList.map((item4) => {

+ 3 - 3
src/views/HomeView.vue

@@ -371,7 +371,7 @@ export default {
             let BDataArr = [];
             let CDataArr = [];
             data.map((v) => {
-              if (v.c_town_type === "1") {
+              if (v.zy_type === "0") {
                 ADataArr.push({
                   name: v.title,
                   soil: v.c_land_area,
@@ -380,7 +380,7 @@ export default {
                   sum: v.c_land_area + v.c_water_area + v.c_forest_area,
                 });
               }
-              if (v.c_town_type === "2") {
+              if (v.zy_type === "1") {
                 BDataArr.push({
                   name: v.title,
                   soil: v.c_land_area,
@@ -389,7 +389,7 @@ export default {
                   sum: v.c_land_area + v.c_water_area + v.c_forest_area,
                 });
               }
-              if (v.c_town_type === "3") {
+              if (v.zy_type === "2") {
                 CDataArr.push({
                   name: v.title,
                   soil: v.c_land_area,