瀏覽代碼

1. 修改统计页面-省直图形自适应宽度
2. 去掉地块核算价值显示(原界面有问题)

sugb 6 月之前
父節點
當前提交
045d6ebd1a
共有 2 個文件被更改,包括 4 次插入18 次删除
  1. 2 16
      src/components/OneMap/widgets/SpatialAnalysis.vue
  2. 2 2
      src/views/tj/sjtjModules.vue

+ 2 - 16
src/components/OneMap/widgets/SpatialAnalysis.vue

@@ -1092,11 +1092,9 @@ export default {
               data.push([])
               col = { title: '用途', dataIndex: 'types', key: 'types', scopedSlots: { customRender: 'types' } }
               col2 = { title: '面积(公顷)', dataIndex: 'area', key: 'area', scopedSlots: { customRender: 'area' } }
-              // 土地价值
-              col3 = { title: '土地价值(元)', dataIndex: 'tdjz', key: 'tdjz', scopedSlots: { customRender: 'tdjz' } }
               col.title = item.afieldcname
               //列信息
-              this.result[resInd].columns.push(col, col2, col3)
+              this.result[resInd].columns.push(col, col2)
             }
             data[resInd].push(item.result)
             //遍历分组
@@ -1113,7 +1111,7 @@ export default {
                   console.log(map[ai.types])
 
                   //判断map里记录类型存在######################
-                  if (!map[ai.types]) {
+                  // if (!map[ai.types]) {
                     dest.push({
                       key: ai.types,
                       types: ai.types,
@@ -1127,18 +1125,6 @@ export default {
                     pie.count = parseFloat(ai.area)
                     pies.push(pie)
                     map[ai.types] = ai
-                  } else {
-                    for (let j = 0; j < dest.length; j++) {
-                      let dj = dest[j]
-                      if (dj.types === ai.types) {
-                        dj.area = parseFloat(parseFloat(dj.area) + parseFloat(ai.area)).toFixed(4)
-                        dj.wkt.push(ai.info)
-                        dj.objectids.push(ai.objectid)
-                        pies[j].count = parseFloat(dj.area)
-                        break
-                      }
-                    }
-                  }
                   //##############################################
                 }
                 //饼图

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

@@ -174,7 +174,7 @@
             <a-col :sm="24" :md="12" :xl="24">
               <BarTdsjyt :titleText="this.tem_xzqhmc? this.tem_xzqhmc+'省直单位土地批准用途情况':'省直单位土地批准用途情况'"
                          :result-x-data=this.resXData :dw="this.dw2"
-                         style="width:800px ;height:300px;" @visibleSz="visibleInfoBySz"></BarTdsjyt>
+                         style="width:100% ;height:300px;" @visibleSz="visibleInfoBySz"></BarTdsjyt>
             </a-col>
           </a-card>
         </a-col>
@@ -195,7 +195,7 @@
         <!--        </a-col>-->
         <a-col :sm="24" :md="12" :xl="24">
           <a-card style="margin-bottom: 1rem;width:100%;height: 21rem">
-            <BarDobuleData style="width: 1600px"
+            <BarDobuleData style="width: 100%"
                            :titleText="this.tem_xzqhmc ? this.tem_xzqhmc+'省直单位实际占用面积':'省直单位实际占用面积'"
                            :result-x-data="resBarSzData"
                            @visible="visibleInfoSzXzqh">