Browse Source

修改规划选址展示单位

lkk 1 year ago
parent
commit
4f59e432b4
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/views/siteselection/components/xzjg.vue

+ 6 - 6
src/views/siteselection/components/xzjg.vue

@@ -29,7 +29,7 @@
             <div class="collapseCon">
               <p class="oneItem">
                 <span>{{ item1.kzxxgydmc }}</span>
-                <span>{{ item1.area.toFixed(2) }}平方米</span>
+                <span>{{ (item1.area * 0.0015).toFixed(2) }}亩</span>
               </p>
               <p style="color: #cddeeb">
                 <img src="/static/images/ghzc/iconSun.png" />
@@ -73,7 +73,7 @@
             <div class="collapseCon">
               <p class="oneItem">
                 <span>{{ item.kzxxgydmc }}</span>
-                <span>{{ item.area.toFixed(2) }}平方米</span>
+                <span>{{ (item.area * 0.0015).toFixed(2) }}亩</span>
               </p>
               <p style="color: #cddeeb">
                 <!-- <i class="iconSun"></i> -->
@@ -155,7 +155,7 @@ export default {
       copyData: null,
       arrww: [],
       dataSources: {},
-      tempdataSourcesId:null,
+      tempdataSourcesId: null,
     };
   },
   mounted() {
@@ -254,7 +254,7 @@ export default {
             offset: new Cesium.HeadingPitchRange(0, -45, 5000),
           });
           if (id) {
-            this.tempdataSourcesId = id
+            this.tempdataSourcesId = id;
             _this.dataSources[id] = dataSource;
           }
         });
@@ -334,11 +334,11 @@ export default {
       }
     },
     //监听区域id的变化,用于删除上一次点击生成的geojson区域面
-    tempdataSourcesId(newVal,oldVal){
+    tempdataSourcesId(newVal, oldVal) {
       if (oldVal) {
         viewer.dataSources.remove(this.dataSources[oldVal]);
       }
-    }
+    },
   },
 
   beforeDestroy() {