Переглянути джерело

辅助研判-分析结果接口联调,两个接口(图斑个数列表与列表详情)

lkk 5 місяців тому
батько
коміт
c4ff94be33

+ 1 - 1
src/api/ghss/hgxfx.js

@@ -8,7 +8,7 @@ const hgxfxApi = {
     UpdateScx: '/apply/hgxfx/UpdateScx',
     // ShapeUpload:'/file/uploadShpZip',
     ShapeUpload: '/file/upload/geom',
-    ShapeUploadV1: '/upload/geom/v1',
+    ShapeUploadV1: '/file/upload/geom/v1',
     GetLog: '/apply/hgxfx/GetLog',
     AddHgxfxV1:'/apply/hgxfx/AddHgxfxV1'
 }

+ 6 - 36
src/views/farmlandProtection/components/interDetails.vue

@@ -27,7 +27,7 @@
             </el-table-column>
             <el-table-column
               show-overflow-tooltip="true"
-              prop="siweiarea"
+              prop="geomarea"
               label="图斑面积(㎡)"
             >
             </el-table-column>
@@ -187,9 +187,10 @@ export default {
         if (res.statuscode == 200) {
           this.viewsData = res.data;
           this.yzjgData = res.data.yzjg;
-          this.jbxxData = Object.keys(res.data.tbxx).map((key) => ({
+          let geomJson = JSON.parse(res.data.tbxx.geomJson);
+          this.jbxxData = Object.keys(geomJson).map((key) => ({
             name: key,
-            value: res.data.tbxx[key],
+            value: geomJson[key],
           }));
         } else {
           this.$message.error(res.message);
@@ -217,8 +218,8 @@ export default {
     getAll() {
       getgeoms(this.interObj).then((res) => {
         if (res.statuscode == 200) {
-          this.tableData = res.data.dataListMap;
-          this.active_tableData(res.data.dataListMap);
+          this.tableData = res.data;
+          this.active_tableData(res.data);
         } else {
           this.$message.error(res.message);
         }
@@ -267,37 +268,6 @@ export default {
 
 .tableCon {
   height: 48rem;
-
-  // /deep/ .el-table tr {
-  //   background: rgba(10, 25, 38, 0.5) !important;
-  // }
-
-  // /deep/ .el-table td.el-table__cell,
-  // .el-table th.el-table__cell.is-leaf {
-  //   background: rgba(10, 25, 38, 0.5) !important;
-
-  //   border-bottom: 0px solid #ebeef5;
-  // }
-
-  // .el-table {
-  //   color: #fff;
-  //   background: rgba(10, 25, 38, 0.5) !important;
-  // }
-
-  // /deep/ .el-table__fixed-right::before,
-  // .el-table__fixed::before {
-  //   background: rgba(10, 25, 38, 0.9) !important;
-  // }
-
-  // /deep/ .el-table__fixed-right-patch {
-  //   background: rgba(10, 25, 38, 0.9) !important;
-  // }
-
-  // /deep/ .el-table--border::after,
-  // .el-table--group::after,
-  // .el-table::before {
-  //   background: rgba(10, 25, 38, 0) !important;
-  // }
 }
 
 /deep/ .el-icon-close:before {